configure revision 5b28f862df2419ac767734758d1ce0ccee3e41b4
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.60 for llvm 2.6svn.
4#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
12# Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
13## --------------------- ##
14## M4sh Initialization.  ##
15## --------------------- ##
16
17# Be Bourne compatible
18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19  emulate sh
20  NULLCMD=:
21  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22  # is contrary to our usage.  Disable this feature.
23  alias -g '${1+"$@"}'='"$@"'
24  setopt NO_GLOB_SUBST
25else
26  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27fi
28BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42  echo "#! /bin/sh" >conf$$.sh
43  echo  "exit 0"   >>conf$$.sh
44  chmod +x conf$$.sh
45  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46    PATH_SEPARATOR=';'
47  else
48    PATH_SEPARATOR=:
49  fi
50  rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55  as_unset=unset
56else
57  as_unset=false
58fi
59
60
61# IFS
62# We need space, tab and new line, in precisely that order.  Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" ""	$as_nl"
69
70# Find who we are.  Look in the path if we contain no directory separator.
71case $0 in
72  *[\\/]* ) as_myself=$0 ;;
73  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76  IFS=$as_save_IFS
77  test -z "$as_dir" && as_dir=.
78  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82     ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87  as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91  { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106  LC_TELEPHONE LC_TIME
107do
108  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109    eval $as_var=C; export $as_var
110  else
111    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112  fi
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117   test "X`expr 00001 : '.*\(...\)'`" = X001; then
118  as_expr=expr
119else
120  as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124  as_basename=basename
125else
126  as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133	 X"$0" : 'X\(//\)$' \| \
134	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136    sed '/^.*\/\([^/][^/]*\)\/*$/{
137	    s//\1/
138	    q
139	  }
140	  /^X\/\(\/\/\)$/{
141	    s//\1/
142	    q
143	  }
144	  /^X\/\(\/\).*/{
145	    s//\1/
146	    q
147	  }
148	  s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155  if (eval ":") 2>/dev/null; then
156  as_have_required=yes
157else
158  as_have_required=no
159fi
160
161  if test $as_have_required = yes && 	 (eval ":
162(as_func_return () {
163  (exit \$1)
164}
165as_func_success () {
166  as_func_return 0
167}
168as_func_failure () {
169  as_func_return 1
170}
171as_func_ret_success () {
172  return 0
173}
174as_func_ret_failure () {
175  return 1
176}
177
178exitcode=0
179if as_func_success; then
180  :
181else
182  exitcode=1
183  echo as_func_success failed.
184fi
185
186if as_func_failure; then
187  exitcode=1
188  echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192  :
193else
194  exitcode=1
195  echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199  exitcode=1
200  echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204  :
205else
206  exitcode=1
207  echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213  as_lineno_1=\$LINENO
214  as_lineno_2=\$LINENO
215  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218  :
219else
220  as_candidate_shells=
221    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224  IFS=$as_save_IFS
225  test -z "$as_dir" && as_dir=.
226  case $as_dir in
227	 /*)
228	   for as_base in sh bash ksh sh5; do
229	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230	   done;;
231       esac
232done
233IFS=$as_save_IFS
234
235
236      for as_shell in $as_candidate_shells $SHELL; do
237	 # Try only shells that exist, to save several forks.
238	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239		{ ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242  emulate sh
243  NULLCMD=:
244  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245  # is contrary to our usage.  Disable this feature.
246  alias -g '${1+"$@"}'='"$@"'
247  setopt NO_GLOB_SUBST
248else
249  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257  CONFIG_SHELL=$as_shell
258	       as_have_required=yes
259	       if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276  (exit $1)
277}
278as_func_success () {
279  as_func_return 0
280}
281as_func_failure () {
282  as_func_return 1
283}
284as_func_ret_success () {
285  return 0
286}
287as_func_ret_failure () {
288  return 1
289}
290
291exitcode=0
292if as_func_success; then
293  :
294else
295  exitcode=1
296  echo as_func_success failed.
297fi
298
299if as_func_failure; then
300  exitcode=1
301  echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305  :
306else
307  exitcode=1
308  echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312  exitcode=1
313  echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317  :
318else
319  exitcode=1
320  echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
326  as_lineno_1=$LINENO
327  as_lineno_2=$LINENO
328  test "x$as_lineno_1" != "x$as_lineno_2" &&
329  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333  break
334fi
335
336fi
337
338      done
339
340      if test "x$CONFIG_SHELL" != x; then
341  for as_var in BASH_ENV ENV
342        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343        done
344        export CONFIG_SHELL
345        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349    if test $as_have_required = no; then
350  echo This script requires a shell more modern than all the
351      echo shells that I found on your system.  Please install a
352      echo modern shell, or manually run the script under such a
353      echo shell if you do have one.
354      { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365  (exit \$1)
366}
367as_func_success () {
368  as_func_return 0
369}
370as_func_failure () {
371  as_func_return 1
372}
373as_func_ret_success () {
374  return 0
375}
376as_func_ret_failure () {
377  return 1
378}
379
380exitcode=0
381if as_func_success; then
382  :
383else
384  exitcode=1
385  echo as_func_success failed.
386fi
387
388if as_func_failure; then
389  exitcode=1
390  echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394  :
395else
396  exitcode=1
397  echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401  exitcode=1
402  echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406  :
407else
408  exitcode=1
409  echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413  echo No shell found that supports shell functions.
414  echo Please tell autoconf@gnu.org about your system,
415  echo including any error possibly output before this
416  echo message
417}
418
419
420
421  as_lineno_1=$LINENO
422  as_lineno_2=$LINENO
423  test "x$as_lineno_1" != "x$as_lineno_2" &&
424  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427  # uniformly replaced by the line number.  The first 'sed' inserts a
428  # line-number line after each line using $LINENO; the second 'sed'
429  # does the real work.  The second script uses 'N' to pair each
430  # line-number line with the line containing $LINENO, and appends
431  # trailing '-' during substitution so that $LINENO is not a special
432  # case at line end.
433  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434  # scripts with optimization help from Paolo Bonzini.  Blame Lee
435  # E. McMahon (1931-1989) for sed's syntax.  :-)
436  sed -n '
437    p
438    /[$]LINENO/=
439  ' <$as_myself |
440    sed '
441      s/[$]LINENO.*/&-/
442      t lineno
443      b
444      :lineno
445      N
446      :loop
447      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448      t loop
449      s/-\n.*//
450    ' >$as_me.lineno &&
451  chmod +x "$as_me.lineno" ||
452    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453   { (exit 1); exit 1; }; }
454
455  # Don't try to exec as it changes $[0], causing all sort of problems
456  # (the dirname of $[0] is not the place where we might find the
457  # original and so on.  Autoconf is especially sensitive to this).
458  . "./$as_me.lineno"
459  # Exit status is that of the last command.
460  exit
461}
462
463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465  as_dirname=dirname
466else
467  as_dirname=false
468fi
469
470ECHO_C= ECHO_N= ECHO_T=
471case `echo -n x` in
472-n*)
473  case `echo 'x\c'` in
474  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
475  *)   ECHO_C='\c';;
476  esac;;
477*)
478  ECHO_N='-n';;
479esac
480
481if expr a : '\(a\)' >/dev/null 2>&1 &&
482   test "X`expr 00001 : '.*\(...\)'`" = X001; then
483  as_expr=expr
484else
485  as_expr=false
486fi
487
488rm -f conf$$ conf$$.exe conf$$.file
489if test -d conf$$.dir; then
490  rm -f conf$$.dir/conf$$.file
491else
492  rm -f conf$$.dir
493  mkdir conf$$.dir
494fi
495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
497  as_ln_s='ln -s'
498  # ... but there are two gotchas:
499  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501  # In both cases, we have to default to `cp -p'.
502  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503    as_ln_s='cp -p'
504elif ln conf$$.file conf$$ 2>/dev/null; then
505  as_ln_s=ln
506else
507  as_ln_s='cp -p'
508fi
509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
511
512if mkdir -p . 2>/dev/null; then
513  as_mkdir_p=:
514else
515  test -d ./-p && rmdir ./-p
516  as_mkdir_p=false
517fi
518
519# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527  as_executable_p="test -x"
528else
529  as_executable_p=:
530fi
531rm -f conf$$.file
532
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541
542# Check that we are running under the correct shell.
543SHELL=${CONFIG_SHELL-/bin/sh}
544
545case X$ECHO in
546X*--fallback-echo)
547  # Remove one level of quotation (which was required for Make).
548  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549  ;;
550esac
551
552echo=${ECHO-echo}
553if test "X$1" = X--no-reexec; then
554  # Discard the --no-reexec flag, and continue.
555  shift
556elif test "X$1" = X--fallback-echo; then
557  # Avoid inline document here, it may be left over
558  :
559elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560  # Yippee, $echo works!
561  :
562else
563  # Restart under the correct shell.
564  exec $SHELL "$0" --no-reexec ${1+"$@"}
565fi
566
567if test "X$1" = X--fallback-echo; then
568  # used as fallback echo
569  shift
570  cat <<EOF
571$*
572EOF
573  exit 0
574fi
575
576# The HP-UX ksh and POSIX shell print the target directory to stdout
577# if CDPATH is set.
578(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
579
580if test -z "$ECHO"; then
581if test "X${echo_test_string+set}" != Xset; then
582# find a string as large as possible, as long as the shell can cope with it
583  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586       echo_test_string=`eval $cmd` &&
587       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588    then
589      break
590    fi
591  done
592fi
593
594if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596   test "X$echo_testing_string" = "X$echo_test_string"; then
597  :
598else
599  # The Solaris, AIX, and Digital Unix default echo programs unquote
600  # backslashes.  This makes it impossible to quote backslashes using
601  #   echo "$something" | sed 's/\\/\\\\/g'
602  #
603  # So, first we look for a working echo in the user's PATH.
604
605  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606  for dir in $PATH /usr/ucb; do
607    IFS="$lt_save_ifs"
608    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611       test "X$echo_testing_string" = "X$echo_test_string"; then
612      echo="$dir/echo"
613      break
614    fi
615  done
616  IFS="$lt_save_ifs"
617
618  if test "X$echo" = Xecho; then
619    # We didn't find a better echo, so look for alternatives.
620    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622       test "X$echo_testing_string" = "X$echo_test_string"; then
623      # This shell has a builtin print -r that does the trick.
624      echo='print -r'
625    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626	 test "X$CONFIG_SHELL" != X/bin/ksh; then
627      # If we have ksh, try running configure again with it.
628      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629      export ORIGINAL_CONFIG_SHELL
630      CONFIG_SHELL=/bin/ksh
631      export CONFIG_SHELL
632      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633    else
634      # Try using printf.
635      echo='printf %s\n'
636      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638	 test "X$echo_testing_string" = "X$echo_test_string"; then
639	# Cool, printf works
640	:
641      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642	   test "X$echo_testing_string" = 'X\t' &&
643	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644	   test "X$echo_testing_string" = "X$echo_test_string"; then
645	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646	export CONFIG_SHELL
647	SHELL="$CONFIG_SHELL"
648	export SHELL
649	echo="$CONFIG_SHELL $0 --fallback-echo"
650      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651	   test "X$echo_testing_string" = 'X\t' &&
652	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653	   test "X$echo_testing_string" = "X$echo_test_string"; then
654	echo="$CONFIG_SHELL $0 --fallback-echo"
655      else
656	# maybe with a smaller string...
657	prev=:
658
659	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661	  then
662	    break
663	  fi
664	  prev="$cmd"
665	done
666
667	if test "$prev" != 'sed 50q "$0"'; then
668	  echo_test_string=`eval $prev`
669	  export echo_test_string
670	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671	else
672	  # Oops.  We lost completely, so just stick with echo.
673	  echo=echo
674	fi
675      fi
676    fi
677  fi
678fi
679fi
680
681# Copy echo and quote the copy suitably for passing to libtool from
682# the Makefile, instead of quoting the original, which is used later.
683ECHO=$echo
684if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686fi
687
688
689
690
691tagnames=${tagnames+${tagnames},}CXX
692
693tagnames=${tagnames+${tagnames},}F77
694
695exec 7<&0 </dev/null 6>&1
696
697# Name of the host.
698# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699# so uname gets run too.
700ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
702#
703# Initializations.
704#
705ac_default_prefix=/usr/local
706ac_clean_files=
707ac_config_libobj_dir=.
708LIBOBJS=
709cross_compiling=no
710subdirs=
711MFLAGS=
712MAKEFLAGS=
713SHELL=${CONFIG_SHELL-/bin/sh}
714
715# Identity of this package.
716PACKAGE_NAME='llvm'
717PACKAGE_TARNAME='-llvm-'
718PACKAGE_VERSION='2.6svn'
719PACKAGE_STRING='llvm 2.6svn'
720PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
722ac_unique_file="lib/VMCore/Module.cpp"
723# Factoring default headers for most tests.
724ac_includes_default="\
725#include <stdio.h>
726#if HAVE_SYS_TYPES_H
727# include <sys/types.h>
728#endif
729#if HAVE_SYS_STAT_H
730# include <sys/stat.h>
731#endif
732#if STDC_HEADERS
733# include <stdlib.h>
734# include <stddef.h>
735#else
736# if HAVE_STDLIB_H
737#  include <stdlib.h>
738# endif
739#endif
740#if HAVE_STRING_H
741# if !STDC_HEADERS && HAVE_MEMORY_H
742#  include <memory.h>
743# endif
744# include <string.h>
745#endif
746#if HAVE_STRINGS_H
747# include <strings.h>
748#endif
749#if HAVE_INTTYPES_H
750# include <inttypes.h>
751#endif
752#if HAVE_STDINT_H
753# include <stdint.h>
754#endif
755#if HAVE_UNISTD_H
756# include <unistd.h>
757#endif"
758
759ac_subst_vars='SHELL
760PATH_SEPARATOR
761PACKAGE_NAME
762PACKAGE_TARNAME
763PACKAGE_VERSION
764PACKAGE_STRING
765PACKAGE_BUGREPORT
766exec_prefix
767prefix
768program_transform_name
769bindir
770sbindir
771libexecdir
772datarootdir
773datadir
774sysconfdir
775sharedstatedir
776localstatedir
777includedir
778oldincludedir
779docdir
780infodir
781htmldir
782dvidir
783pdfdir
784psdir
785libdir
786localedir
787mandir
788DEFS
789ECHO_C
790ECHO_N
791ECHO_T
792LIBS
793build_alias
794host_alias
795target_alias
796LLVM_COPYRIGHT
797subdirs
798build
799build_cpu
800build_vendor
801build_os
802host
803host_cpu
804host_vendor
805host_os
806target
807target_cpu
808target_vendor
809target_os
810OS
811LINKALL
812NOLINKALL
813LLVM_ON_UNIX
814LLVM_ON_WIN32
815ARCH
816ENDIAN
817CC
818CFLAGS
819LDFLAGS
820CPPFLAGS
821ac_ct_CC
822EXEEXT
823OBJEXT
824CPP
825GREP
826EGREP
827LLVM_CROSS_COMPILING
828BUILD_CC
829BUILD_EXEEXT
830BUILD_CXX
831CVSBUILD
832ENABLE_OPTIMIZED
833DISABLE_ASSERTIONS
834ENABLE_EXPENSIVE_CHECKS
835EXPENSIVE_CHECKS
836DEBUG_RUNTIME
837JIT
838TARGET_HAS_JIT
839ENABLE_DOXYGEN
840ENABLE_THREADS
841ENABLE_PIC
842TARGETS_TO_BUILD
843ENABLE_CBE_PRINTF_A
844EXTRA_OPTIONS
845BINUTILS_INCDIR
846CXX
847CXXFLAGS
848ac_ct_CXX
849NM
850ifGNUmake
851LN_S
852CMP
853CP
854DATE
855FIND
856MKDIR
857MV
858RANLIB
859RM
860SED
861TAR
862BINPWD
863GRAPHVIZ
864DOT
865GV
866DOTTY
867PERL
868HAVE_PERL
869INSTALL_PROGRAM
870INSTALL_SCRIPT
871INSTALL_DATA
872BZIP2
873DOXYGEN
874GROFF
875GZIP
876POD2HTML
877POD2MAN
878RUNTEST
879TCLSH
880ZIP
881OCAMLC
882OCAMLOPT
883OCAMLDEP
884OCAMLDOC
885GAS
886INSTALL_LTDL_TRUE
887INSTALL_LTDL_FALSE
888CONVENIENCE_LTDL_TRUE
889CONVENIENCE_LTDL_FALSE
890LIBADD_DL
891ECHO
892AR
893STRIP
894CXXCPP
895F77
896FFLAGS
897ac_ct_F77
898LIBTOOL
899LLVMGCC
900LLVMGXX
901USE_UDIS86
902HAVE_PTHREAD
903HAVE_FFI
904HUGE_VAL_SANITY
905ALLOCA
906MMAP_FILE
907LLVMCC1
908LLVMCC1PLUS
909LLVMGCCDIR
910LLVMGCCLIBEXEC
911LLVMGCC_VERSION
912LLVMGCC_MAJVERS
913LLVMGCC_LANGS
914SHLIBEXT
915LLVM_PREFIX
916LLVM_BINDIR
917LLVM_LIBDIR
918LLVM_DATADIR
919LLVM_DOCSDIR
920LLVM_ETCDIR
921LLVM_INCLUDEDIR
922LLVM_INFODIR
923LLVM_MANDIR
924LLVM_CONFIGTIME
925BINDINGS_TO_BUILD
926ALL_BINDINGS
927OCAML_LIBDIR
928ENABLE_VISIBILITY_INLINES_HIDDEN
929RPATH
930RDYNAMIC
931LIBOBJS
932LTLIBOBJS'
933ac_subst_files=''
934      ac_precious_vars='build_alias
935host_alias
936target_alias
937CC
938CFLAGS
939LDFLAGS
940CPPFLAGS
941CPP
942CXX
943CXXFLAGS
944CCC
945CXXCPP
946F77
947FFLAGS'
948ac_subdirs_all='projects/sample
949projects/privbracket
950projects/llvm-stacker
951projects/llvm-test
952projects/test-suite
953projects/llvm-reopt
954projects/llvm-gcc
955projects/llvm-java
956projects/llvm-tv
957projects/llvm-poolalloc
958projects/poolalloc
959projects/llvm-kernel'
960
961# Initialize some variables set by options.
962ac_init_help=
963ac_init_version=false
964# The variables have the same names as the options, with
965# dashes changed to underlines.
966cache_file=/dev/null
967exec_prefix=NONE
968no_create=
969no_recursion=
970prefix=NONE
971program_prefix=NONE
972program_suffix=NONE
973program_transform_name=s,x,x,
974silent=
975site=
976srcdir=
977verbose=
978x_includes=NONE
979x_libraries=NONE
980
981# Installation directory options.
982# These are left unexpanded so users can "make install exec_prefix=/foo"
983# and all the variables that are supposed to be based on exec_prefix
984# by default will actually change.
985# Use braces instead of parens because sh, perl, etc. also accept them.
986# (The list follows the same order as the GNU Coding Standards.)
987bindir='${exec_prefix}/bin'
988sbindir='${exec_prefix}/sbin'
989libexecdir='${exec_prefix}/libexec'
990datarootdir='${prefix}/share'
991datadir='${datarootdir}'
992sysconfdir='${prefix}/etc'
993sharedstatedir='${prefix}/com'
994localstatedir='${prefix}/var'
995includedir='${prefix}/include'
996oldincludedir='/usr/include'
997docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
998infodir='${datarootdir}/info'
999htmldir='${docdir}'
1000dvidir='${docdir}'
1001pdfdir='${docdir}'
1002psdir='${docdir}'
1003libdir='${exec_prefix}/lib'
1004localedir='${datarootdir}/locale'
1005mandir='${datarootdir}/man'
1006
1007ac_prev=
1008ac_dashdash=
1009for ac_option
1010do
1011  # If the previous option needs an argument, assign it.
1012  if test -n "$ac_prev"; then
1013    eval $ac_prev=\$ac_option
1014    ac_prev=
1015    continue
1016  fi
1017
1018  case $ac_option in
1019  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1020  *)	ac_optarg=yes ;;
1021  esac
1022
1023  # Accept the important Cygnus configure options, so we can diagnose typos.
1024
1025  case $ac_dashdash$ac_option in
1026  --)
1027    ac_dashdash=yes ;;
1028
1029  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1030    ac_prev=bindir ;;
1031  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1032    bindir=$ac_optarg ;;
1033
1034  -build | --build | --buil | --bui | --bu)
1035    ac_prev=build_alias ;;
1036  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1037    build_alias=$ac_optarg ;;
1038
1039  -cache-file | --cache-file | --cache-fil | --cache-fi \
1040  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1041    ac_prev=cache_file ;;
1042  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1043  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1044    cache_file=$ac_optarg ;;
1045
1046  --config-cache | -C)
1047    cache_file=config.cache ;;
1048
1049  -datadir | --datadir | --datadi | --datad)
1050    ac_prev=datadir ;;
1051  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1052    datadir=$ac_optarg ;;
1053
1054  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1055  | --dataroo | --dataro | --datar)
1056    ac_prev=datarootdir ;;
1057  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1058  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1059    datarootdir=$ac_optarg ;;
1060
1061  -disable-* | --disable-*)
1062    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1063    # Reject names that are not valid shell variable names.
1064    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1065      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1066   { (exit 1); exit 1; }; }
1067    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1068    eval enable_$ac_feature=no ;;
1069
1070  -docdir | --docdir | --docdi | --doc | --do)
1071    ac_prev=docdir ;;
1072  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1073    docdir=$ac_optarg ;;
1074
1075  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1076    ac_prev=dvidir ;;
1077  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1078    dvidir=$ac_optarg ;;
1079
1080  -enable-* | --enable-*)
1081    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1082    # Reject names that are not valid shell variable names.
1083    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1084      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1085   { (exit 1); exit 1; }; }
1086    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1087    eval enable_$ac_feature=\$ac_optarg ;;
1088
1089  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1090  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1091  | --exec | --exe | --ex)
1092    ac_prev=exec_prefix ;;
1093  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1094  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1095  | --exec=* | --exe=* | --ex=*)
1096    exec_prefix=$ac_optarg ;;
1097
1098  -gas | --gas | --ga | --g)
1099    # Obsolete; use --with-gas.
1100    with_gas=yes ;;
1101
1102  -help | --help | --hel | --he | -h)
1103    ac_init_help=long ;;
1104  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1105    ac_init_help=recursive ;;
1106  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1107    ac_init_help=short ;;
1108
1109  -host | --host | --hos | --ho)
1110    ac_prev=host_alias ;;
1111  -host=* | --host=* | --hos=* | --ho=*)
1112    host_alias=$ac_optarg ;;
1113
1114  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1115    ac_prev=htmldir ;;
1116  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1117  | --ht=*)
1118    htmldir=$ac_optarg ;;
1119
1120  -includedir | --includedir | --includedi | --included | --include \
1121  | --includ | --inclu | --incl | --inc)
1122    ac_prev=includedir ;;
1123  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1124  | --includ=* | --inclu=* | --incl=* | --inc=*)
1125    includedir=$ac_optarg ;;
1126
1127  -infodir | --infodir | --infodi | --infod | --info | --inf)
1128    ac_prev=infodir ;;
1129  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1130    infodir=$ac_optarg ;;
1131
1132  -libdir | --libdir | --libdi | --libd)
1133    ac_prev=libdir ;;
1134  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1135    libdir=$ac_optarg ;;
1136
1137  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1138  | --libexe | --libex | --libe)
1139    ac_prev=libexecdir ;;
1140  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1141  | --libexe=* | --libex=* | --libe=*)
1142    libexecdir=$ac_optarg ;;
1143
1144  -localedir | --localedir | --localedi | --localed | --locale)
1145    ac_prev=localedir ;;
1146  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1147    localedir=$ac_optarg ;;
1148
1149  -localstatedir | --localstatedir | --localstatedi | --localstated \
1150  | --localstate | --localstat | --localsta | --localst | --locals)
1151    ac_prev=localstatedir ;;
1152  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1153  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1154    localstatedir=$ac_optarg ;;
1155
1156  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1157    ac_prev=mandir ;;
1158  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1159    mandir=$ac_optarg ;;
1160
1161  -nfp | --nfp | --nf)
1162    # Obsolete; use --without-fp.
1163    with_fp=no ;;
1164
1165  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1166  | --no-cr | --no-c | -n)
1167    no_create=yes ;;
1168
1169  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1170  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1171    no_recursion=yes ;;
1172
1173  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1174  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1175  | --oldin | --oldi | --old | --ol | --o)
1176    ac_prev=oldincludedir ;;
1177  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1178  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1179  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1180    oldincludedir=$ac_optarg ;;
1181
1182  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1183    ac_prev=prefix ;;
1184  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1185    prefix=$ac_optarg ;;
1186
1187  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1188  | --program-pre | --program-pr | --program-p)
1189    ac_prev=program_prefix ;;
1190  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1191  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1192    program_prefix=$ac_optarg ;;
1193
1194  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1195  | --program-suf | --program-su | --program-s)
1196    ac_prev=program_suffix ;;
1197  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1198  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1199    program_suffix=$ac_optarg ;;
1200
1201  -program-transform-name | --program-transform-name \
1202  | --program-transform-nam | --program-transform-na \
1203  | --program-transform-n | --program-transform- \
1204  | --program-transform | --program-transfor \
1205  | --program-transfo | --program-transf \
1206  | --program-trans | --program-tran \
1207  | --progr-tra | --program-tr | --program-t)
1208    ac_prev=program_transform_name ;;
1209  -program-transform-name=* | --program-transform-name=* \
1210  | --program-transform-nam=* | --program-transform-na=* \
1211  | --program-transform-n=* | --program-transform-=* \
1212  | --program-transform=* | --program-transfor=* \
1213  | --program-transfo=* | --program-transf=* \
1214  | --program-trans=* | --program-tran=* \
1215  | --progr-tra=* | --program-tr=* | --program-t=*)
1216    program_transform_name=$ac_optarg ;;
1217
1218  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1219    ac_prev=pdfdir ;;
1220  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1221    pdfdir=$ac_optarg ;;
1222
1223  -psdir | --psdir | --psdi | --psd | --ps)
1224    ac_prev=psdir ;;
1225  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1226    psdir=$ac_optarg ;;
1227
1228  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1229  | -silent | --silent | --silen | --sile | --sil)
1230    silent=yes ;;
1231
1232  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1233    ac_prev=sbindir ;;
1234  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1235  | --sbi=* | --sb=*)
1236    sbindir=$ac_optarg ;;
1237
1238  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1239  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1240  | --sharedst | --shareds | --shared | --share | --shar \
1241  | --sha | --sh)
1242    ac_prev=sharedstatedir ;;
1243  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1244  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1245  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1246  | --sha=* | --sh=*)
1247    sharedstatedir=$ac_optarg ;;
1248
1249  -site | --site | --sit)
1250    ac_prev=site ;;
1251  -site=* | --site=* | --sit=*)
1252    site=$ac_optarg ;;
1253
1254  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1255    ac_prev=srcdir ;;
1256  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1257    srcdir=$ac_optarg ;;
1258
1259  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1260  | --syscon | --sysco | --sysc | --sys | --sy)
1261    ac_prev=sysconfdir ;;
1262  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1263  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1264    sysconfdir=$ac_optarg ;;
1265
1266  -target | --target | --targe | --targ | --tar | --ta | --t)
1267    ac_prev=target_alias ;;
1268  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1269    target_alias=$ac_optarg ;;
1270
1271  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1272    verbose=yes ;;
1273
1274  -version | --version | --versio | --versi | --vers | -V)
1275    ac_init_version=: ;;
1276
1277  -with-* | --with-*)
1278    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1279    # Reject names that are not valid shell variable names.
1280    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1281      { echo "$as_me: error: invalid package name: $ac_package" >&2
1282   { (exit 1); exit 1; }; }
1283    ac_package=`echo $ac_package| sed 's/-/_/g'`
1284    eval with_$ac_package=\$ac_optarg ;;
1285
1286  -without-* | --without-*)
1287    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1288    # Reject names that are not valid shell variable names.
1289    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1290      { echo "$as_me: error: invalid package name: $ac_package" >&2
1291   { (exit 1); exit 1; }; }
1292    ac_package=`echo $ac_package | sed 's/-/_/g'`
1293    eval with_$ac_package=no ;;
1294
1295  --x)
1296    # Obsolete; use --with-x.
1297    with_x=yes ;;
1298
1299  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1300  | --x-incl | --x-inc | --x-in | --x-i)
1301    ac_prev=x_includes ;;
1302  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1303  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1304    x_includes=$ac_optarg ;;
1305
1306  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1307  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1308    ac_prev=x_libraries ;;
1309  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1310  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1311    x_libraries=$ac_optarg ;;
1312
1313  -*) { echo "$as_me: error: unrecognized option: $ac_option
1314Try \`$0 --help' for more information." >&2
1315   { (exit 1); exit 1; }; }
1316    ;;
1317
1318  *=*)
1319    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1320    # Reject names that are not valid shell variable names.
1321    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1322      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1323   { (exit 1); exit 1; }; }
1324    eval $ac_envvar=\$ac_optarg
1325    export $ac_envvar ;;
1326
1327  *)
1328    # FIXME: should be removed in autoconf 3.0.
1329    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1330    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1331      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1332    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1333    ;;
1334
1335  esac
1336done
1337
1338if test -n "$ac_prev"; then
1339  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1340  { echo "$as_me: error: missing argument to $ac_option" >&2
1341   { (exit 1); exit 1; }; }
1342fi
1343
1344# Be sure to have absolute directory names.
1345for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1346		datadir sysconfdir sharedstatedir localstatedir includedir \
1347		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1348		libdir localedir mandir
1349do
1350  eval ac_val=\$$ac_var
1351  case $ac_val in
1352    [\\/$]* | ?:[\\/]* )  continue;;
1353    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1354  esac
1355  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1356   { (exit 1); exit 1; }; }
1357done
1358
1359# There might be people who depend on the old broken behavior: `$host'
1360# used to hold the argument of --host etc.
1361# FIXME: To remove some day.
1362build=$build_alias
1363host=$host_alias
1364target=$target_alias
1365
1366# FIXME: To remove some day.
1367if test "x$host_alias" != x; then
1368  if test "x$build_alias" = x; then
1369    cross_compiling=maybe
1370    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1371    If a cross compiler is detected then cross compile mode will be used." >&2
1372  elif test "x$build_alias" != "x$host_alias"; then
1373    cross_compiling=yes
1374  fi
1375fi
1376
1377ac_tool_prefix=
1378test -n "$host_alias" && ac_tool_prefix=$host_alias-
1379
1380test "$silent" = yes && exec 6>/dev/null
1381
1382
1383ac_pwd=`pwd` && test -n "$ac_pwd" &&
1384ac_ls_di=`ls -di .` &&
1385ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1386  { echo "$as_me: error: Working directory cannot be determined" >&2
1387   { (exit 1); exit 1; }; }
1388test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389  { echo "$as_me: error: pwd does not report name of working directory" >&2
1390   { (exit 1); exit 1; }; }
1391
1392
1393# Find the source files, if location was not specified.
1394if test -z "$srcdir"; then
1395  ac_srcdir_defaulted=yes
1396  # Try the directory containing this script, then the parent directory.
1397  ac_confdir=`$as_dirname -- "$0" ||
1398$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1399	 X"$0" : 'X\(//\)[^/]' \| \
1400	 X"$0" : 'X\(//\)$' \| \
1401	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1402echo X"$0" |
1403    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1404	    s//\1/
1405	    q
1406	  }
1407	  /^X\(\/\/\)[^/].*/{
1408	    s//\1/
1409	    q
1410	  }
1411	  /^X\(\/\/\)$/{
1412	    s//\1/
1413	    q
1414	  }
1415	  /^X\(\/\).*/{
1416	    s//\1/
1417	    q
1418	  }
1419	  s/.*/./; q'`
1420  srcdir=$ac_confdir
1421  if test ! -r "$srcdir/$ac_unique_file"; then
1422    srcdir=..
1423  fi
1424else
1425  ac_srcdir_defaulted=no
1426fi
1427if test ! -r "$srcdir/$ac_unique_file"; then
1428  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1429  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1430   { (exit 1); exit 1; }; }
1431fi
1432ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1433ac_abs_confdir=`(
1434	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1435   { (exit 1); exit 1; }; }
1436	pwd)`
1437# When building in place, set srcdir=.
1438if test "$ac_abs_confdir" = "$ac_pwd"; then
1439  srcdir=.
1440fi
1441# Remove unnecessary trailing slashes from srcdir.
1442# Double slashes in file names in object file debugging info
1443# mess up M-x gdb in Emacs.
1444case $srcdir in
1445*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1446esac
1447for ac_var in $ac_precious_vars; do
1448  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1449  eval ac_env_${ac_var}_value=\$${ac_var}
1450  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1451  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1452done
1453
1454#
1455# Report the --help message.
1456#
1457if test "$ac_init_help" = "long"; then
1458  # Omit some internal or obsolete options to make the list less imposing.
1459  # This message is too long to be a string in the A/UX 3.1 sh.
1460  cat <<_ACEOF
1461\`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1462
1463Usage: $0 [OPTION]... [VAR=VALUE]...
1464
1465To assign environment variables (e.g., CC, CFLAGS...), specify them as
1466VAR=VALUE.  See below for descriptions of some of the useful variables.
1467
1468Defaults for the options are specified in brackets.
1469
1470Configuration:
1471  -h, --help              display this help and exit
1472      --help=short        display options specific to this package
1473      --help=recursive    display the short help of all the included packages
1474  -V, --version           display version information and exit
1475  -q, --quiet, --silent   do not print \`checking...' messages
1476      --cache-file=FILE   cache test results in FILE [disabled]
1477  -C, --config-cache      alias for \`--cache-file=config.cache'
1478  -n, --no-create         do not create output files
1479      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1480
1481Installation directories:
1482  --prefix=PREFIX         install architecture-independent files in PREFIX
1483			  [$ac_default_prefix]
1484  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1485			  [PREFIX]
1486
1487By default, \`make install' will install all the files in
1488\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1489an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1490for instance \`--prefix=\$HOME'.
1491
1492For better control, use the options below.
1493
1494Fine tuning of the installation directories:
1495  --bindir=DIR           user executables [EPREFIX/bin]
1496  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1497  --libexecdir=DIR       program executables [EPREFIX/libexec]
1498  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1499  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1500  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1501  --libdir=DIR           object code libraries [EPREFIX/lib]
1502  --includedir=DIR       C header files [PREFIX/include]
1503  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1504  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1505  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1506  --infodir=DIR          info documentation [DATAROOTDIR/info]
1507  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1508  --mandir=DIR           man documentation [DATAROOTDIR/man]
1509  --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1510  --htmldir=DIR          html documentation [DOCDIR]
1511  --dvidir=DIR           dvi documentation [DOCDIR]
1512  --pdfdir=DIR           pdf documentation [DOCDIR]
1513  --psdir=DIR            ps documentation [DOCDIR]
1514_ACEOF
1515
1516  cat <<\_ACEOF
1517
1518System types:
1519  --build=BUILD     configure for building on BUILD [guessed]
1520  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1521  --target=TARGET   configure for building compilers for TARGET [HOST]
1522_ACEOF
1523fi
1524
1525if test -n "$ac_init_help"; then
1526  case $ac_init_help in
1527     short | recursive ) echo "Configuration of llvm 2.6svn:";;
1528   esac
1529  cat <<\_ACEOF
1530
1531Optional Features:
1532  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1533  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1534  --enable-optimized
1535  --enable-assertions
1536  --enable-expensive-checks
1537
1538  --enable-debug-runtime
1539  --enable-jit            Enable Just In Time Compiling (default is YES)
1540  --enable-doxygen        Build doxygen documentation (default is NO)
1541  --enable-threads        Use threads if available (default is YES)
1542  --enable-pic            Build LLVM with Position Independent Code (default
1543                          is YES)
1544  --enable-targets        Build specific host targets:
1545                          all,host-only,{target-name} (default=all)
1546  --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1547                          %a (default is YES)
1548  --enable-bindings       Build specific language bindings:
1549                          all,auto,none,{binding-name} (default=auto)
1550  --enable-ltdl-install   install libltdl
1551  --enable-shared[=PKGS]  build shared libraries
1552                          [default=yes]
1553  --enable-static[=PKGS]  build static libraries
1554                          [default=yes]
1555  --enable-fast-install[=PKGS]
1556                          optimize for fast installation
1557                          [default=yes]
1558  --disable-libtool-lock  avoid locking (might break parallel builds)
1559
1560Optional Packages:
1561  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1562  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1563  --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1564                          searches PATH)
1565  --with-llvmgcc          Specify location of llvm-gcc driver (default
1566                          searches PATH)
1567  --with-llvmgxx          Specify location of llvm-g++ driver (default
1568                          searches PATH)
1569  --with-extra-options    Specify addtional options to compile LLVM with
1570  --with-ocaml-libdir     Specify install location for ocaml bindings (default
1571                          is stdlib)
1572  --with-binutils-include Specify path to binutils/include/ containing
1573                          plugin-api.h file for gold plugin.
1574  --with-tclinclude       directory where tcl headers are
1575  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1576  --with-pic              try to use only PIC/non-PIC objects [default=use
1577                          both]
1578  --with-tags[=TAGS]      include additional configurations [automatic]
1579  --with-udis86=<path>    Use udis86 external x86 disassembler library
1580
1581Some influential environment variables:
1582  CC          C compiler command
1583  CFLAGS      C compiler flags
1584  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1585              nonstandard directory <lib dir>
1586  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1587              you have headers in a nonstandard directory <include dir>
1588  CPP         C preprocessor
1589  CXX         C++ compiler command
1590  CXXFLAGS    C++ compiler flags
1591  CXXCPP      C++ preprocessor
1592  F77         Fortran 77 compiler command
1593  FFLAGS      Fortran 77 compiler flags
1594
1595Use these variables to override the choices made by `configure' or to help
1596it to find libraries and programs with nonstandard names/locations.
1597
1598Report bugs to <llvmbugs@cs.uiuc.edu>.
1599_ACEOF
1600ac_status=$?
1601fi
1602
1603if test "$ac_init_help" = "recursive"; then
1604  # If there are subdirs, report their specific --help.
1605  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1606    test -d "$ac_dir" || continue
1607    ac_builddir=.
1608
1609case "$ac_dir" in
1610.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611*)
1612  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1613  # A ".." for each directory in $ac_dir_suffix.
1614  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1615  case $ac_top_builddir_sub in
1616  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1618  esac ;;
1619esac
1620ac_abs_top_builddir=$ac_pwd
1621ac_abs_builddir=$ac_pwd$ac_dir_suffix
1622# for backward compatibility:
1623ac_top_builddir=$ac_top_build_prefix
1624
1625case $srcdir in
1626  .)  # We are building in place.
1627    ac_srcdir=.
1628    ac_top_srcdir=$ac_top_builddir_sub
1629    ac_abs_top_srcdir=$ac_pwd ;;
1630  [\\/]* | ?:[\\/]* )  # Absolute name.
1631    ac_srcdir=$srcdir$ac_dir_suffix;
1632    ac_top_srcdir=$srcdir
1633    ac_abs_top_srcdir=$srcdir ;;
1634  *) # Relative name.
1635    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1636    ac_top_srcdir=$ac_top_build_prefix$srcdir
1637    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1638esac
1639ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1640
1641    cd "$ac_dir" || { ac_status=$?; continue; }
1642    # Check for guested configure.
1643    if test -f "$ac_srcdir/configure.gnu"; then
1644      echo &&
1645      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1646    elif test -f "$ac_srcdir/configure"; then
1647      echo &&
1648      $SHELL "$ac_srcdir/configure" --help=recursive
1649    else
1650      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1651    fi || ac_status=$?
1652    cd "$ac_pwd" || { ac_status=$?; break; }
1653  done
1654fi
1655
1656test -n "$ac_init_help" && exit $ac_status
1657if $ac_init_version; then
1658  cat <<\_ACEOF
1659llvm configure 2.6svn
1660generated by GNU Autoconf 2.60
1661
1662Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16632002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1664This configure script is free software; the Free Software Foundation
1665gives unlimited permission to copy, distribute and modify it.
1666
1667Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1668_ACEOF
1669  exit
1670fi
1671cat >config.log <<_ACEOF
1672This file contains any messages produced by compilers while
1673running configure, to aid debugging if configure makes a mistake.
1674
1675It was created by llvm $as_me 2.6svn, which was
1676generated by GNU Autoconf 2.60.  Invocation command line was
1677
1678  $ $0 $@
1679
1680_ACEOF
1681exec 5>>config.log
1682{
1683cat <<_ASUNAME
1684## --------- ##
1685## Platform. ##
1686## --------- ##
1687
1688hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1689uname -m = `(uname -m) 2>/dev/null || echo unknown`
1690uname -r = `(uname -r) 2>/dev/null || echo unknown`
1691uname -s = `(uname -s) 2>/dev/null || echo unknown`
1692uname -v = `(uname -v) 2>/dev/null || echo unknown`
1693
1694/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1695/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1696
1697/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1698/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1699/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1700/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1701/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1702/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1703/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1704
1705_ASUNAME
1706
1707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708for as_dir in $PATH
1709do
1710  IFS=$as_save_IFS
1711  test -z "$as_dir" && as_dir=.
1712  echo "PATH: $as_dir"
1713done
1714IFS=$as_save_IFS
1715
1716} >&5
1717
1718cat >&5 <<_ACEOF
1719
1720
1721## ----------- ##
1722## Core tests. ##
1723## ----------- ##
1724
1725_ACEOF
1726
1727
1728# Keep a trace of the command line.
1729# Strip out --no-create and --no-recursion so they do not pile up.
1730# Strip out --silent because we don't want to record it for future runs.
1731# Also quote any args containing shell meta-characters.
1732# Make two passes to allow for proper duplicate-argument suppression.
1733ac_configure_args=
1734ac_configure_args0=
1735ac_configure_args1=
1736ac_must_keep_next=false
1737for ac_pass in 1 2
1738do
1739  for ac_arg
1740  do
1741    case $ac_arg in
1742    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1743    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1744    | -silent | --silent | --silen | --sile | --sil)
1745      continue ;;
1746    *\'*)
1747      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1748    esac
1749    case $ac_pass in
1750    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1751    2)
1752      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1753      if test $ac_must_keep_next = true; then
1754	ac_must_keep_next=false # Got value, back to normal.
1755      else
1756	case $ac_arg in
1757	  *=* | --config-cache | -C | -disable-* | --disable-* \
1758	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1759	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1760	  | -with-* | --with-* | -without-* | --without-* | --x)
1761	    case "$ac_configure_args0 " in
1762	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1763	    esac
1764	    ;;
1765	  -* ) ac_must_keep_next=true ;;
1766	esac
1767      fi
1768      ac_configure_args="$ac_configure_args '$ac_arg'"
1769      ;;
1770    esac
1771  done
1772done
1773$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1774$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1775
1776# When interrupted or exit'd, cleanup temporary files, and complete
1777# config.log.  We remove comments because anyway the quotes in there
1778# would cause problems or look ugly.
1779# WARNING: Use '\'' to represent an apostrophe within the trap.
1780# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1781trap 'exit_status=$?
1782  # Save into config.log some information that might help in debugging.
1783  {
1784    echo
1785
1786    cat <<\_ASBOX
1787## ---------------- ##
1788## Cache variables. ##
1789## ---------------- ##
1790_ASBOX
1791    echo
1792    # The following way of writing the cache mishandles newlines in values,
1793(
1794  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1795    eval ac_val=\$$ac_var
1796    case $ac_val in #(
1797    *${as_nl}*)
1798      case $ac_var in #(
1799      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1800echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1801      esac
1802      case $ac_var in #(
1803      _ | IFS | as_nl) ;; #(
1804      *) $as_unset $ac_var ;;
1805      esac ;;
1806    esac
1807  done
1808  (set) 2>&1 |
1809    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1810    *${as_nl}ac_space=\ *)
1811      sed -n \
1812	"s/'\''/'\''\\\\'\'''\''/g;
1813	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1814      ;; #(
1815    *)
1816      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1817      ;;
1818    esac |
1819    sort
1820)
1821    echo
1822
1823    cat <<\_ASBOX
1824## ----------------- ##
1825## Output variables. ##
1826## ----------------- ##
1827_ASBOX
1828    echo
1829    for ac_var in $ac_subst_vars
1830    do
1831      eval ac_val=\$$ac_var
1832      case $ac_val in
1833      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1834      esac
1835      echo "$ac_var='\''$ac_val'\''"
1836    done | sort
1837    echo
1838
1839    if test -n "$ac_subst_files"; then
1840      cat <<\_ASBOX
1841## ------------------- ##
1842## File substitutions. ##
1843## ------------------- ##
1844_ASBOX
1845      echo
1846      for ac_var in $ac_subst_files
1847      do
1848	eval ac_val=\$$ac_var
1849	case $ac_val in
1850	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1851	esac
1852	echo "$ac_var='\''$ac_val'\''"
1853      done | sort
1854      echo
1855    fi
1856
1857    if test -s confdefs.h; then
1858      cat <<\_ASBOX
1859## ----------- ##
1860## confdefs.h. ##
1861## ----------- ##
1862_ASBOX
1863      echo
1864      cat confdefs.h
1865      echo
1866    fi
1867    test "$ac_signal" != 0 &&
1868      echo "$as_me: caught signal $ac_signal"
1869    echo "$as_me: exit $exit_status"
1870  } >&5
1871  rm -f core *.core core.conftest.* &&
1872    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1873    exit $exit_status
1874' 0
1875for ac_signal in 1 2 13 15; do
1876  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1877done
1878ac_signal=0
1879
1880# confdefs.h avoids OS command line length limits that DEFS can exceed.
1881rm -f -r conftest* confdefs.h
1882
1883# Predefined preprocessor variables.
1884
1885cat >>confdefs.h <<_ACEOF
1886#define PACKAGE_NAME "$PACKAGE_NAME"
1887_ACEOF
1888
1889
1890cat >>confdefs.h <<_ACEOF
1891#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1892_ACEOF
1893
1894
1895cat >>confdefs.h <<_ACEOF
1896#define PACKAGE_VERSION "$PACKAGE_VERSION"
1897_ACEOF
1898
1899
1900cat >>confdefs.h <<_ACEOF
1901#define PACKAGE_STRING "$PACKAGE_STRING"
1902_ACEOF
1903
1904
1905cat >>confdefs.h <<_ACEOF
1906#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1907_ACEOF
1908
1909
1910# Let the site file select an alternate cache file if it wants to.
1911# Prefer explicitly selected file to automatically selected ones.
1912if test -n "$CONFIG_SITE"; then
1913  set x "$CONFIG_SITE"
1914elif test "x$prefix" != xNONE; then
1915  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1916else
1917  set x "$ac_default_prefix/share/config.site" \
1918	"$ac_default_prefix/etc/config.site"
1919fi
1920shift
1921for ac_site_file
1922do
1923  if test -r "$ac_site_file"; then
1924    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1925echo "$as_me: loading site script $ac_site_file" >&6;}
1926    sed 's/^/| /' "$ac_site_file" >&5
1927    . "$ac_site_file"
1928  fi
1929done
1930
1931if test -r "$cache_file"; then
1932  # Some versions of bash will fail to source /dev/null (special
1933  # files actually), so we avoid doing that.
1934  if test -f "$cache_file"; then
1935    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1936echo "$as_me: loading cache $cache_file" >&6;}
1937    case $cache_file in
1938      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1939      *)                      . "./$cache_file";;
1940    esac
1941  fi
1942else
1943  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1944echo "$as_me: creating cache $cache_file" >&6;}
1945  >$cache_file
1946fi
1947
1948# Check that the precious variables saved in the cache have kept the same
1949# value.
1950ac_cache_corrupted=false
1951for ac_var in $ac_precious_vars; do
1952  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1953  eval ac_new_set=\$ac_env_${ac_var}_set
1954  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1955  eval ac_new_val=\$ac_env_${ac_var}_value
1956  case $ac_old_set,$ac_new_set in
1957    set,)
1958      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1959echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1960      ac_cache_corrupted=: ;;
1961    ,set)
1962      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1963echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1964      ac_cache_corrupted=: ;;
1965    ,);;
1966    *)
1967      if test "x$ac_old_val" != "x$ac_new_val"; then
1968	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1969echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1970	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1971echo "$as_me:   former value:  $ac_old_val" >&2;}
1972	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1973echo "$as_me:   current value: $ac_new_val" >&2;}
1974	ac_cache_corrupted=:
1975      fi;;
1976  esac
1977  # Pass precious variables to config.status.
1978  if test "$ac_new_set" = set; then
1979    case $ac_new_val in
1980    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1981    *) ac_arg=$ac_var=$ac_new_val ;;
1982    esac
1983    case " $ac_configure_args " in
1984      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1985      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1986    esac
1987  fi
1988done
1989if $ac_cache_corrupted; then
1990  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1991echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1992  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1993echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1994   { (exit 1); exit 1; }; }
1995fi
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021ac_ext=c
2022ac_cpp='$CPP $CPPFLAGS'
2023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2025ac_compiler_gnu=$ac_cv_c_compiler_gnu
2026
2027
2028
2029LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2030
2031
2032
2033
2034
2035
2036
2037ac_aux_dir=
2038for ac_dir in autoconf "$srcdir"/autoconf; do
2039  if test -f "$ac_dir/install-sh"; then
2040    ac_aux_dir=$ac_dir
2041    ac_install_sh="$ac_aux_dir/install-sh -c"
2042    break
2043  elif test -f "$ac_dir/install.sh"; then
2044    ac_aux_dir=$ac_dir
2045    ac_install_sh="$ac_aux_dir/install.sh -c"
2046    break
2047  elif test -f "$ac_dir/shtool"; then
2048    ac_aux_dir=$ac_dir
2049    ac_install_sh="$ac_aux_dir/shtool install -c"
2050    break
2051  fi
2052done
2053if test -z "$ac_aux_dir"; then
2054  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2055echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2056   { (exit 1); exit 1; }; }
2057fi
2058
2059# These three variables are undocumented and unsupported,
2060# and are intended to be withdrawn in a future Autoconf release.
2061# They can cause serious problems if a builder's source tree is in a directory
2062# whose full name contains unusual characters.
2063ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2064ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2065ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2066
2067
2068
2069if test ${srcdir} != "." ; then
2070  if test -f ${srcdir}/include/llvm/Config/config.h ; then
2071    { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2072echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2073   { (exit 1); exit 1; }; }
2074  fi
2075fi
2076
2077for i in `ls ${srcdir}/projects`
2078do
2079  if test -d ${srcdir}/projects/${i} ; then
2080    case ${i} in
2081      CVS) ;;
2082      sample)       subdirs="$subdirs projects/sample"
2083    ;;
2084      privbracket)  subdirs="$subdirs projects/privbracket"
2085 ;;
2086      llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2087 ;;
2088      # llvm-test is the old name of the test-suite, kept here for backwards
2089      # compatibility
2090      llvm-test)    subdirs="$subdirs projects/llvm-test"
2091 ;;
2092      test-suite)   subdirs="$subdirs projects/test-suite"
2093 ;;
2094      llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2095;;
2096      llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2097  ;;
2098      llvm-java)    subdirs="$subdirs projects/llvm-java"
2099 ;;
2100      llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2101   ;;
2102      llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2103 ;;
2104      poolalloc)    subdirs="$subdirs projects/poolalloc"
2105 ;;
2106      llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2107 ;;
2108      *)
2109        { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2110echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2111        ;;
2112    esac
2113  fi
2114done
2115
2116
2117# Make sure we can run config.sub.
2118$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2119  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2120echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2121   { (exit 1); exit 1; }; }
2122
2123{ echo "$as_me:$LINENO: checking build system type" >&5
2124echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2125if test "${ac_cv_build+set}" = set; then
2126  echo $ECHO_N "(cached) $ECHO_C" >&6
2127else
2128  ac_build_alias=$build_alias
2129test "x$ac_build_alias" = x &&
2130  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2131test "x$ac_build_alias" = x &&
2132  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2133echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2134   { (exit 1); exit 1; }; }
2135ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2136  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2137echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2138   { (exit 1); exit 1; }; }
2139
2140fi
2141{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2142echo "${ECHO_T}$ac_cv_build" >&6; }
2143case $ac_cv_build in
2144*-*-*) ;;
2145*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2146echo "$as_me: error: invalid value of canonical build" >&2;}
2147   { (exit 1); exit 1; }; };;
2148esac
2149build=$ac_cv_build
2150ac_save_IFS=$IFS; IFS='-'
2151set x $ac_cv_build
2152shift
2153build_cpu=$1
2154build_vendor=$2
2155shift; shift
2156# Remember, the first character of IFS is used to create $*,
2157# except with old shells:
2158build_os=$*
2159IFS=$ac_save_IFS
2160case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2161
2162
2163{ echo "$as_me:$LINENO: checking host system type" >&5
2164echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2165if test "${ac_cv_host+set}" = set; then
2166  echo $ECHO_N "(cached) $ECHO_C" >&6
2167else
2168  if test "x$host_alias" = x; then
2169  ac_cv_host=$ac_cv_build
2170else
2171  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2172    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2173echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2174   { (exit 1); exit 1; }; }
2175fi
2176
2177fi
2178{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2179echo "${ECHO_T}$ac_cv_host" >&6; }
2180case $ac_cv_host in
2181*-*-*) ;;
2182*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2183echo "$as_me: error: invalid value of canonical host" >&2;}
2184   { (exit 1); exit 1; }; };;
2185esac
2186host=$ac_cv_host
2187ac_save_IFS=$IFS; IFS='-'
2188set x $ac_cv_host
2189shift
2190host_cpu=$1
2191host_vendor=$2
2192shift; shift
2193# Remember, the first character of IFS is used to create $*,
2194# except with old shells:
2195host_os=$*
2196IFS=$ac_save_IFS
2197case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2198
2199
2200{ echo "$as_me:$LINENO: checking target system type" >&5
2201echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2202if test "${ac_cv_target+set}" = set; then
2203  echo $ECHO_N "(cached) $ECHO_C" >&6
2204else
2205  if test "x$target_alias" = x; then
2206  ac_cv_target=$ac_cv_host
2207else
2208  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2209    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2210echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2211   { (exit 1); exit 1; }; }
2212fi
2213
2214fi
2215{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2216echo "${ECHO_T}$ac_cv_target" >&6; }
2217case $ac_cv_target in
2218*-*-*) ;;
2219*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2220echo "$as_me: error: invalid value of canonical target" >&2;}
2221   { (exit 1); exit 1; }; };;
2222esac
2223target=$ac_cv_target
2224ac_save_IFS=$IFS; IFS='-'
2225set x $ac_cv_target
2226shift
2227target_cpu=$1
2228target_vendor=$2
2229shift; shift
2230# Remember, the first character of IFS is used to create $*,
2231# except with old shells:
2232target_os=$*
2233IFS=$ac_save_IFS
2234case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2235
2236
2237# The aliases save the names the user supplied, while $host etc.
2238# will get canonicalized.
2239test -n "$target_alias" &&
2240  test "$program_prefix$program_suffix$program_transform_name" = \
2241    NONENONEs,x,x, &&
2242  program_prefix=${target_alias}-
2243
2244{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2245echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2246if test "${llvm_cv_os_type+set}" = set; then
2247  echo $ECHO_N "(cached) $ECHO_C" >&6
2248else
2249  case $host in
2250  *-*-aix*)
2251    llvm_cv_link_all_option="-Wl,--whole-archive"
2252    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2253    llvm_cv_os_type="AIX"
2254    llvm_cv_platform_type="Unix" ;;
2255  *-*-irix*)
2256    llvm_cv_link_all_option="-Wl,--whole-archive"
2257    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2258    llvm_cv_os_type="IRIX"
2259    llvm_cv_platform_type="Unix" ;;
2260  *-*-cygwin*)
2261    llvm_cv_link_all_option="-Wl,--whole-archive"
2262    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2263    llvm_cv_os_type="Cygwin"
2264    llvm_cv_platform_type="Unix" ;;
2265  *-*-darwin*)
2266    llvm_cv_link_all_option="-Wl,-all_load"
2267    llvm_cv_no_link_all_option="-Wl,-noall_load"
2268    llvm_cv_os_type="Darwin"
2269    llvm_cv_platform_type="Unix" ;;
2270  *-*-freebsd*)
2271    llvm_cv_link_all_option="-Wl,--whole-archive"
2272    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2273    llvm_cv_os_type="FreeBSD"
2274    llvm_cv_platform_type="Unix" ;;
2275  *-*-openbsd*)
2276    llvm_cv_link_all_option="-Wl,--whole-archive"
2277    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2278    llvm_cv_os_type="OpenBSD"
2279    llvm_cv_platform_type="Unix" ;;
2280  *-*-netbsd*)
2281    llvm_cv_link_all_option="-Wl,--whole-archive"
2282    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2283    llvm_cv_os_type="NetBSD"
2284    llvm_cv_platform_type="Unix" ;;
2285  *-*-dragonfly*)
2286    llvm_cv_link_all_option="-Wl,--whole-archive"
2287    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2288    llvm_cv_os_type="DragonFly"
2289    llvm_cv_platform_type="Unix" ;;
2290  *-*-hpux*)
2291    llvm_cv_link_all_option="-Wl,--whole-archive"
2292    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2293    llvm_cv_os_type="HP-UX"
2294    llvm_cv_platform_type="Unix" ;;
2295  *-*-interix*)
2296    llvm_cv_link_all_option="-Wl,--whole-archive"
2297    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2298    llvm_cv_os_type="Interix"
2299    llvm_cv_platform_type="Unix" ;;
2300  *-*-linux*)
2301    llvm_cv_link_all_option="-Wl,--whole-archive"
2302    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2303    llvm_cv_os_type="Linux"
2304    llvm_cv_platform_type="Unix" ;;
2305  *-*-solaris*)
2306    llvm_cv_link_all_option="-Wl,-z,allextract"
2307    llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2308    llvm_cv_os_type="SunOS"
2309    llvm_cv_platform_type="Unix" ;;
2310  *-*-win32*)
2311    llvm_cv_link_all_option="-Wl,--whole-archive"
2312    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2313    llvm_cv_os_type="Win32"
2314    llvm_cv_platform_type="Win32" ;;
2315  *-*-mingw*)
2316    llvm_cv_link_all_option="-Wl,--whole-archive"
2317    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2318    llvm_cv_os_type="MingW"
2319    llvm_cv_platform_type="Win32" ;;
2320  *)
2321    llvm_cv_link_all_option=""
2322    llvm_cv_no_link_all_option=""
2323    llvm_cv_os_type="Unknown"
2324    llvm_cv_platform_type="Unknown" ;;
2325esac
2326fi
2327{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2328echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2329
2330if test "$llvm_cv_os_type" = "Unknown" ; then
2331  { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2332echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2333   { (exit 1); exit 1; }; }
2334fi
2335
2336OS=$llvm_cv_os_type
2337
2338
2339LINKALL=$llvm_cv_link_all_option
2340
2341NOLINKALL=$llvm_cv_no_link_all_option
2342
2343
2344case $llvm_cv_platform_type in
2345  Unix)
2346
2347cat >>confdefs.h <<\_ACEOF
2348#define LLVM_ON_UNIX 1
2349_ACEOF
2350
2351    LLVM_ON_UNIX=1
2352
2353    LLVM_ON_WIN32=0
2354
2355    ;;
2356  Win32)
2357
2358cat >>confdefs.h <<\_ACEOF
2359#define LLVM_ON_WIN32 1
2360_ACEOF
2361
2362    LLVM_ON_UNIX=0
2363
2364    LLVM_ON_WIN32=1
2365
2366    ;;
2367esac
2368
2369{ echo "$as_me:$LINENO: checking target architecture" >&5
2370echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2371if test "${llvm_cv_target_arch+set}" = set; then
2372  echo $ECHO_N "(cached) $ECHO_C" >&6
2373else
2374  case $target in
2375  i?86-*)                 llvm_cv_target_arch="x86" ;;
2376  amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2377  sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2378  powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2379  alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2380  ia64-*)                 llvm_cv_target_arch="IA64" ;;
2381  arm-*)                  llvm_cv_target_arch="ARM" ;;
2382  mips-*)                 llvm_cv_target_arch="Mips" ;;
2383  pic16-*)                llvm_cv_target_arch="PIC16" ;;
2384  xcore-*)                llvm_cv_target_arch="XCore" ;;
2385  *)                      llvm_cv_target_arch="Unknown" ;;
2386esac
2387fi
2388{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2389echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2390
2391if test "$llvm_cv_target_arch" = "Unknown" ; then
2392  { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2393echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2394fi
2395
2396ARCH=$llvm_cv_target_arch
2397
2398
2399ac_ext=c
2400ac_cpp='$CPP $CPPFLAGS'
2401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2403ac_compiler_gnu=$ac_cv_c_compiler_gnu
2404if test -n "$ac_tool_prefix"; then
2405  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2406set dummy ${ac_tool_prefix}gcc; ac_word=$2
2407{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2409if test "${ac_cv_prog_CC+set}" = set; then
2410  echo $ECHO_N "(cached) $ECHO_C" >&6
2411else
2412  if test -n "$CC"; then
2413  ac_cv_prog_CC="$CC" # Let the user override the test.
2414else
2415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416for as_dir in $PATH
2417do
2418  IFS=$as_save_IFS
2419  test -z "$as_dir" && as_dir=.
2420  for ac_exec_ext in '' $ac_executable_extensions; do
2421  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2422    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2423    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2424    break 2
2425  fi
2426done
2427done
2428IFS=$as_save_IFS
2429
2430fi
2431fi
2432CC=$ac_cv_prog_CC
2433if test -n "$CC"; then
2434  { echo "$as_me:$LINENO: result: $CC" >&5
2435echo "${ECHO_T}$CC" >&6; }
2436else
2437  { echo "$as_me:$LINENO: result: no" >&5
2438echo "${ECHO_T}no" >&6; }
2439fi
2440
2441
2442fi
2443if test -z "$ac_cv_prog_CC"; then
2444  ac_ct_CC=$CC
2445  # Extract the first word of "gcc", so it can be a program name with args.
2446set dummy gcc; ac_word=$2
2447{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2449if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2450  echo $ECHO_N "(cached) $ECHO_C" >&6
2451else
2452  if test -n "$ac_ct_CC"; then
2453  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2454else
2455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456for as_dir in $PATH
2457do
2458  IFS=$as_save_IFS
2459  test -z "$as_dir" && as_dir=.
2460  for ac_exec_ext in '' $ac_executable_extensions; do
2461  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2462    ac_cv_prog_ac_ct_CC="gcc"
2463    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2464    break 2
2465  fi
2466done
2467done
2468IFS=$as_save_IFS
2469
2470fi
2471fi
2472ac_ct_CC=$ac_cv_prog_ac_ct_CC
2473if test -n "$ac_ct_CC"; then
2474  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2475echo "${ECHO_T}$ac_ct_CC" >&6; }
2476else
2477  { echo "$as_me:$LINENO: result: no" >&5
2478echo "${ECHO_T}no" >&6; }
2479fi
2480
2481  if test "x$ac_ct_CC" = x; then
2482    CC=""
2483  else
2484    case $cross_compiling:$ac_tool_warned in
2485yes:)
2486{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2487whose name does not start with the host triplet.  If you think this
2488configuration is useful to you, please write to autoconf@gnu.org." >&5
2489echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2490whose name does not start with the host triplet.  If you think this
2491configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2492ac_tool_warned=yes ;;
2493esac
2494    CC=$ac_ct_CC
2495  fi
2496else
2497  CC="$ac_cv_prog_CC"
2498fi
2499
2500if test -z "$CC"; then
2501          if test -n "$ac_tool_prefix"; then
2502    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2503set dummy ${ac_tool_prefix}cc; ac_word=$2
2504{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2506if test "${ac_cv_prog_CC+set}" = set; then
2507  echo $ECHO_N "(cached) $ECHO_C" >&6
2508else
2509  if test -n "$CC"; then
2510  ac_cv_prog_CC="$CC" # Let the user override the test.
2511else
2512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513for as_dir in $PATH
2514do
2515  IFS=$as_save_IFS
2516  test -z "$as_dir" && as_dir=.
2517  for ac_exec_ext in '' $ac_executable_extensions; do
2518  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2519    ac_cv_prog_CC="${ac_tool_prefix}cc"
2520    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2521    break 2
2522  fi
2523done
2524done
2525IFS=$as_save_IFS
2526
2527fi
2528fi
2529CC=$ac_cv_prog_CC
2530if test -n "$CC"; then
2531  { echo "$as_me:$LINENO: result: $CC" >&5
2532echo "${ECHO_T}$CC" >&6; }
2533else
2534  { echo "$as_me:$LINENO: result: no" >&5
2535echo "${ECHO_T}no" >&6; }
2536fi
2537
2538
2539  fi
2540fi
2541if test -z "$CC"; then
2542  # Extract the first word of "cc", so it can be a program name with args.
2543set dummy cc; ac_word=$2
2544{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2546if test "${ac_cv_prog_CC+set}" = set; then
2547  echo $ECHO_N "(cached) $ECHO_C" >&6
2548else
2549  if test -n "$CC"; then
2550  ac_cv_prog_CC="$CC" # Let the user override the test.
2551else
2552  ac_prog_rejected=no
2553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2554for as_dir in $PATH
2555do
2556  IFS=$as_save_IFS
2557  test -z "$as_dir" && as_dir=.
2558  for ac_exec_ext in '' $ac_executable_extensions; do
2559  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2560    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2561       ac_prog_rejected=yes
2562       continue
2563     fi
2564    ac_cv_prog_CC="cc"
2565    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2566    break 2
2567  fi
2568done
2569done
2570IFS=$as_save_IFS
2571
2572if test $ac_prog_rejected = yes; then
2573  # We found a bogon in the path, so make sure we never use it.
2574  set dummy $ac_cv_prog_CC
2575  shift
2576  if test $# != 0; then
2577    # We chose a different compiler from the bogus one.
2578    # However, it has the same basename, so the bogon will be chosen
2579    # first if we set CC to just the basename; use the full file name.
2580    shift
2581    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2582  fi
2583fi
2584fi
2585fi
2586CC=$ac_cv_prog_CC
2587if test -n "$CC"; then
2588  { echo "$as_me:$LINENO: result: $CC" >&5
2589echo "${ECHO_T}$CC" >&6; }
2590else
2591  { echo "$as_me:$LINENO: result: no" >&5
2592echo "${ECHO_T}no" >&6; }
2593fi
2594
2595
2596fi
2597if test -z "$CC"; then
2598  if test -n "$ac_tool_prefix"; then
2599  for ac_prog in cl.exe
2600  do
2601    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2602set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2603{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2605if test "${ac_cv_prog_CC+set}" = set; then
2606  echo $ECHO_N "(cached) $ECHO_C" >&6
2607else
2608  if test -n "$CC"; then
2609  ac_cv_prog_CC="$CC" # Let the user override the test.
2610else
2611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612for as_dir in $PATH
2613do
2614  IFS=$as_save_IFS
2615  test -z "$as_dir" && as_dir=.
2616  for ac_exec_ext in '' $ac_executable_extensions; do
2617  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2618    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2619    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2620    break 2
2621  fi
2622done
2623done
2624IFS=$as_save_IFS
2625
2626fi
2627fi
2628CC=$ac_cv_prog_CC
2629if test -n "$CC"; then
2630  { echo "$as_me:$LINENO: result: $CC" >&5
2631echo "${ECHO_T}$CC" >&6; }
2632else
2633  { echo "$as_me:$LINENO: result: no" >&5
2634echo "${ECHO_T}no" >&6; }
2635fi
2636
2637
2638    test -n "$CC" && break
2639  done
2640fi
2641if test -z "$CC"; then
2642  ac_ct_CC=$CC
2643  for ac_prog in cl.exe
2644do
2645  # Extract the first word of "$ac_prog", so it can be a program name with args.
2646set dummy $ac_prog; ac_word=$2
2647{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2649if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2650  echo $ECHO_N "(cached) $ECHO_C" >&6
2651else
2652  if test -n "$ac_ct_CC"; then
2653  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2654else
2655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656for as_dir in $PATH
2657do
2658  IFS=$as_save_IFS
2659  test -z "$as_dir" && as_dir=.
2660  for ac_exec_ext in '' $ac_executable_extensions; do
2661  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2662    ac_cv_prog_ac_ct_CC="$ac_prog"
2663    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2664    break 2
2665  fi
2666done
2667done
2668IFS=$as_save_IFS
2669
2670fi
2671fi
2672ac_ct_CC=$ac_cv_prog_ac_ct_CC
2673if test -n "$ac_ct_CC"; then
2674  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2675echo "${ECHO_T}$ac_ct_CC" >&6; }
2676else
2677  { echo "$as_me:$LINENO: result: no" >&5
2678echo "${ECHO_T}no" >&6; }
2679fi
2680
2681
2682  test -n "$ac_ct_CC" && break
2683done
2684
2685  if test "x$ac_ct_CC" = x; then
2686    CC=""
2687  else
2688    case $cross_compiling:$ac_tool_warned in
2689yes:)
2690{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2691whose name does not start with the host triplet.  If you think this
2692configuration is useful to you, please write to autoconf@gnu.org." >&5
2693echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2694whose name does not start with the host triplet.  If you think this
2695configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2696ac_tool_warned=yes ;;
2697esac
2698    CC=$ac_ct_CC
2699  fi
2700fi
2701
2702fi
2703
2704
2705test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2706See \`config.log' for more details." >&5
2707echo "$as_me: error: no acceptable C compiler found in \$PATH
2708See \`config.log' for more details." >&2;}
2709   { (exit 1); exit 1; }; }
2710
2711# Provide some information about the compiler.
2712echo "$as_me:$LINENO: checking for C compiler version" >&5
2713ac_compiler=`set X $ac_compile; echo $2`
2714{ (ac_try="$ac_compiler --version >&5"
2715case "(($ac_try" in
2716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717  *) ac_try_echo=$ac_try;;
2718esac
2719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2720  (eval "$ac_compiler --version >&5") 2>&5
2721  ac_status=$?
2722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723  (exit $ac_status); }
2724{ (ac_try="$ac_compiler -v >&5"
2725case "(($ac_try" in
2726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727  *) ac_try_echo=$ac_try;;
2728esac
2729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2730  (eval "$ac_compiler -v >&5") 2>&5
2731  ac_status=$?
2732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733  (exit $ac_status); }
2734{ (ac_try="$ac_compiler -V >&5"
2735case "(($ac_try" in
2736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737  *) ac_try_echo=$ac_try;;
2738esac
2739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2740  (eval "$ac_compiler -V >&5") 2>&5
2741  ac_status=$?
2742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743  (exit $ac_status); }
2744
2745cat >conftest.$ac_ext <<_ACEOF
2746/* confdefs.h.  */
2747_ACEOF
2748cat confdefs.h >>conftest.$ac_ext
2749cat >>conftest.$ac_ext <<_ACEOF
2750/* end confdefs.h.  */
2751
2752int
2753main ()
2754{
2755
2756  ;
2757  return 0;
2758}
2759_ACEOF
2760ac_clean_files_save=$ac_clean_files
2761ac_clean_files="$ac_clean_files a.out a.exe b.out"
2762# Try to create an executable without -o first, disregard a.out.
2763# It will help us diagnose broken compilers, and finding out an intuition
2764# of exeext.
2765{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2766echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2767ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2768#
2769# List of possible output files, starting from the most likely.
2770# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2771# only as a last resort.  b.out is created by i960 compilers.
2772ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2773#
2774# The IRIX 6 linker writes into existing files which may not be
2775# executable, retaining their permissions.  Remove them first so a
2776# subsequent execution test works.
2777ac_rmfiles=
2778for ac_file in $ac_files
2779do
2780  case $ac_file in
2781    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2782    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2783  esac
2784done
2785rm -f $ac_rmfiles
2786
2787if { (ac_try="$ac_link_default"
2788case "(($ac_try" in
2789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2790  *) ac_try_echo=$ac_try;;
2791esac
2792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2793  (eval "$ac_link_default") 2>&5
2794  ac_status=$?
2795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796  (exit $ac_status); }; then
2797  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2798# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2799# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2800# so that the user can short-circuit this test for compilers unknown to
2801# Autoconf.
2802for ac_file in $ac_files
2803do
2804  test -f "$ac_file" || continue
2805  case $ac_file in
2806    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2807	;;
2808    [ab].out )
2809	# We found the default executable, but exeext='' is most
2810	# certainly right.
2811	break;;
2812    *.* )
2813        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2814	then :; else
2815	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2816	fi
2817	# We set ac_cv_exeext here because the later test for it is not
2818	# safe: cross compilers may not add the suffix if given an `-o'
2819	# argument, so we may need to know it at that point already.
2820	# Even if this section looks crufty: it has the advantage of
2821	# actually working.
2822	break;;
2823    * )
2824	break;;
2825  esac
2826done
2827test "$ac_cv_exeext" = no && ac_cv_exeext=
2828
2829else
2830  echo "$as_me: failed program was:" >&5
2831sed 's/^/| /' conftest.$ac_ext >&5
2832
2833{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2834See \`config.log' for more details." >&5
2835echo "$as_me: error: C compiler cannot create executables
2836See \`config.log' for more details." >&2;}
2837   { (exit 77); exit 77; }; }
2838fi
2839
2840ac_exeext=$ac_cv_exeext
2841{ echo "$as_me:$LINENO: result: $ac_file" >&5
2842echo "${ECHO_T}$ac_file" >&6; }
2843
2844# Check that the compiler produces executables we can run.  If not, either
2845# the compiler is broken, or we cross compile.
2846{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2847echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2848# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2849# If not cross compiling, check that we can run a simple program.
2850if test "$cross_compiling" != yes; then
2851  if { ac_try='./$ac_file'
2852  { (case "(($ac_try" in
2853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854  *) ac_try_echo=$ac_try;;
2855esac
2856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2857  (eval "$ac_try") 2>&5
2858  ac_status=$?
2859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860  (exit $ac_status); }; }; then
2861    cross_compiling=no
2862  else
2863    if test "$cross_compiling" = maybe; then
2864	cross_compiling=yes
2865    else
2866	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2867If you meant to cross compile, use \`--host'.
2868See \`config.log' for more details." >&5
2869echo "$as_me: error: cannot run C compiled programs.
2870If you meant to cross compile, use \`--host'.
2871See \`config.log' for more details." >&2;}
2872   { (exit 1); exit 1; }; }
2873    fi
2874  fi
2875fi
2876{ echo "$as_me:$LINENO: result: yes" >&5
2877echo "${ECHO_T}yes" >&6; }
2878
2879rm -f a.out a.exe conftest$ac_cv_exeext b.out
2880ac_clean_files=$ac_clean_files_save
2881# Check that the compiler produces executables we can run.  If not, either
2882# the compiler is broken, or we cross compile.
2883{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2884echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2885{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2886echo "${ECHO_T}$cross_compiling" >&6; }
2887
2888{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2889echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2890if { (ac_try="$ac_link"
2891case "(($ac_try" in
2892  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893  *) ac_try_echo=$ac_try;;
2894esac
2895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2896  (eval "$ac_link") 2>&5
2897  ac_status=$?
2898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899  (exit $ac_status); }; then
2900  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2901# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2902# work properly (i.e., refer to `conftest.exe'), while it won't with
2903# `rm'.
2904for ac_file in conftest.exe conftest conftest.*; do
2905  test -f "$ac_file" || continue
2906  case $ac_file in
2907    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2908    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2909	  break;;
2910    * ) break;;
2911  esac
2912done
2913else
2914  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2915See \`config.log' for more details." >&5
2916echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2917See \`config.log' for more details." >&2;}
2918   { (exit 1); exit 1; }; }
2919fi
2920
2921rm -f conftest$ac_cv_exeext
2922{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2923echo "${ECHO_T}$ac_cv_exeext" >&6; }
2924
2925rm -f conftest.$ac_ext
2926EXEEXT=$ac_cv_exeext
2927ac_exeext=$EXEEXT
2928{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2929echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2930if test "${ac_cv_objext+set}" = set; then
2931  echo $ECHO_N "(cached) $ECHO_C" >&6
2932else
2933  cat >conftest.$ac_ext <<_ACEOF
2934/* confdefs.h.  */
2935_ACEOF
2936cat confdefs.h >>conftest.$ac_ext
2937cat >>conftest.$ac_ext <<_ACEOF
2938/* end confdefs.h.  */
2939
2940int
2941main ()
2942{
2943
2944  ;
2945  return 0;
2946}
2947_ACEOF
2948rm -f conftest.o conftest.obj
2949if { (ac_try="$ac_compile"
2950case "(($ac_try" in
2951  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952  *) ac_try_echo=$ac_try;;
2953esac
2954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2955  (eval "$ac_compile") 2>&5
2956  ac_status=$?
2957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958  (exit $ac_status); }; then
2959  for ac_file in conftest.o conftest.obj conftest.*; do
2960  test -f "$ac_file" || continue;
2961  case $ac_file in
2962    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2963    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2964       break;;
2965  esac
2966done
2967else
2968  echo "$as_me: failed program was:" >&5
2969sed 's/^/| /' conftest.$ac_ext >&5
2970
2971{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2972See \`config.log' for more details." >&5
2973echo "$as_me: error: cannot compute suffix of object files: cannot compile
2974See \`config.log' for more details." >&2;}
2975   { (exit 1); exit 1; }; }
2976fi
2977
2978rm -f conftest.$ac_cv_objext conftest.$ac_ext
2979fi
2980{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2981echo "${ECHO_T}$ac_cv_objext" >&6; }
2982OBJEXT=$ac_cv_objext
2983ac_objext=$OBJEXT
2984{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2985echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2986if test "${ac_cv_c_compiler_gnu+set}" = set; then
2987  echo $ECHO_N "(cached) $ECHO_C" >&6
2988else
2989  cat >conftest.$ac_ext <<_ACEOF
2990/* confdefs.h.  */
2991_ACEOF
2992cat confdefs.h >>conftest.$ac_ext
2993cat >>conftest.$ac_ext <<_ACEOF
2994/* end confdefs.h.  */
2995
2996int
2997main ()
2998{
2999#ifndef __GNUC__
3000       choke me
3001#endif
3002
3003  ;
3004  return 0;
3005}
3006_ACEOF
3007rm -f conftest.$ac_objext
3008if { (ac_try="$ac_compile"
3009case "(($ac_try" in
3010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011  *) ac_try_echo=$ac_try;;
3012esac
3013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3014  (eval "$ac_compile") 2>conftest.er1
3015  ac_status=$?
3016  grep -v '^ *+' conftest.er1 >conftest.err
3017  rm -f conftest.er1
3018  cat conftest.err >&5
3019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020  (exit $ac_status); } &&
3021	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3022  { (case "(($ac_try" in
3023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024  *) ac_try_echo=$ac_try;;
3025esac
3026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027  (eval "$ac_try") 2>&5
3028  ac_status=$?
3029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030  (exit $ac_status); }; } &&
3031	 { ac_try='test -s conftest.$ac_objext'
3032  { (case "(($ac_try" in
3033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034  *) ac_try_echo=$ac_try;;
3035esac
3036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037  (eval "$ac_try") 2>&5
3038  ac_status=$?
3039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040  (exit $ac_status); }; }; then
3041  ac_compiler_gnu=yes
3042else
3043  echo "$as_me: failed program was:" >&5
3044sed 's/^/| /' conftest.$ac_ext >&5
3045
3046	ac_compiler_gnu=no
3047fi
3048
3049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3050ac_cv_c_compiler_gnu=$ac_compiler_gnu
3051
3052fi
3053{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3054echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3055GCC=`test $ac_compiler_gnu = yes && echo yes`
3056ac_test_CFLAGS=${CFLAGS+set}
3057ac_save_CFLAGS=$CFLAGS
3058{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3059echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3060if test "${ac_cv_prog_cc_g+set}" = set; then
3061  echo $ECHO_N "(cached) $ECHO_C" >&6
3062else
3063  ac_save_c_werror_flag=$ac_c_werror_flag
3064   ac_c_werror_flag=yes
3065   ac_cv_prog_cc_g=no
3066   CFLAGS="-g"
3067   cat >conftest.$ac_ext <<_ACEOF
3068/* confdefs.h.  */
3069_ACEOF
3070cat confdefs.h >>conftest.$ac_ext
3071cat >>conftest.$ac_ext <<_ACEOF
3072/* end confdefs.h.  */
3073
3074int
3075main ()
3076{
3077
3078  ;
3079  return 0;
3080}
3081_ACEOF
3082rm -f conftest.$ac_objext
3083if { (ac_try="$ac_compile"
3084case "(($ac_try" in
3085  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086  *) ac_try_echo=$ac_try;;
3087esac
3088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089  (eval "$ac_compile") 2>conftest.er1
3090  ac_status=$?
3091  grep -v '^ *+' conftest.er1 >conftest.err
3092  rm -f conftest.er1
3093  cat conftest.err >&5
3094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095  (exit $ac_status); } &&
3096	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3097  { (case "(($ac_try" in
3098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099  *) ac_try_echo=$ac_try;;
3100esac
3101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102  (eval "$ac_try") 2>&5
3103  ac_status=$?
3104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105  (exit $ac_status); }; } &&
3106	 { ac_try='test -s conftest.$ac_objext'
3107  { (case "(($ac_try" in
3108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109  *) ac_try_echo=$ac_try;;
3110esac
3111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112  (eval "$ac_try") 2>&5
3113  ac_status=$?
3114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115  (exit $ac_status); }; }; then
3116  ac_cv_prog_cc_g=yes
3117else
3118  echo "$as_me: failed program was:" >&5
3119sed 's/^/| /' conftest.$ac_ext >&5
3120
3121	CFLAGS=""
3122      cat >conftest.$ac_ext <<_ACEOF
3123/* confdefs.h.  */
3124_ACEOF
3125cat confdefs.h >>conftest.$ac_ext
3126cat >>conftest.$ac_ext <<_ACEOF
3127/* end confdefs.h.  */
3128
3129int
3130main ()
3131{
3132
3133  ;
3134  return 0;
3135}
3136_ACEOF
3137rm -f conftest.$ac_objext
3138if { (ac_try="$ac_compile"
3139case "(($ac_try" in
3140  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141  *) ac_try_echo=$ac_try;;
3142esac
3143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144  (eval "$ac_compile") 2>conftest.er1
3145  ac_status=$?
3146  grep -v '^ *+' conftest.er1 >conftest.err
3147  rm -f conftest.er1
3148  cat conftest.err >&5
3149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150  (exit $ac_status); } &&
3151	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3152  { (case "(($ac_try" in
3153  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154  *) ac_try_echo=$ac_try;;
3155esac
3156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157  (eval "$ac_try") 2>&5
3158  ac_status=$?
3159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160  (exit $ac_status); }; } &&
3161	 { ac_try='test -s conftest.$ac_objext'
3162  { (case "(($ac_try" in
3163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164  *) ac_try_echo=$ac_try;;
3165esac
3166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3167  (eval "$ac_try") 2>&5
3168  ac_status=$?
3169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170  (exit $ac_status); }; }; then
3171  :
3172else
3173  echo "$as_me: failed program was:" >&5
3174sed 's/^/| /' conftest.$ac_ext >&5
3175
3176	ac_c_werror_flag=$ac_save_c_werror_flag
3177	 CFLAGS="-g"
3178	 cat >conftest.$ac_ext <<_ACEOF
3179/* confdefs.h.  */
3180_ACEOF
3181cat confdefs.h >>conftest.$ac_ext
3182cat >>conftest.$ac_ext <<_ACEOF
3183/* end confdefs.h.  */
3184
3185int
3186main ()
3187{
3188
3189  ;
3190  return 0;
3191}
3192_ACEOF
3193rm -f conftest.$ac_objext
3194if { (ac_try="$ac_compile"
3195case "(($ac_try" in
3196  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197  *) ac_try_echo=$ac_try;;
3198esac
3199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200  (eval "$ac_compile") 2>conftest.er1
3201  ac_status=$?
3202  grep -v '^ *+' conftest.er1 >conftest.err
3203  rm -f conftest.er1
3204  cat conftest.err >&5
3205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206  (exit $ac_status); } &&
3207	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3208  { (case "(($ac_try" in
3209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210  *) ac_try_echo=$ac_try;;
3211esac
3212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3213  (eval "$ac_try") 2>&5
3214  ac_status=$?
3215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216  (exit $ac_status); }; } &&
3217	 { ac_try='test -s conftest.$ac_objext'
3218  { (case "(($ac_try" in
3219  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220  *) ac_try_echo=$ac_try;;
3221esac
3222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3223  (eval "$ac_try") 2>&5
3224  ac_status=$?
3225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226  (exit $ac_status); }; }; then
3227  ac_cv_prog_cc_g=yes
3228else
3229  echo "$as_me: failed program was:" >&5
3230sed 's/^/| /' conftest.$ac_ext >&5
3231
3232
3233fi
3234
3235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3236fi
3237
3238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3239fi
3240
3241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3242   ac_c_werror_flag=$ac_save_c_werror_flag
3243fi
3244{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3245echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3246if test "$ac_test_CFLAGS" = set; then
3247  CFLAGS=$ac_save_CFLAGS
3248elif test $ac_cv_prog_cc_g = yes; then
3249  if test "$GCC" = yes; then
3250    CFLAGS="-g -O2"
3251  else
3252    CFLAGS="-g"
3253  fi
3254else
3255  if test "$GCC" = yes; then
3256    CFLAGS="-O2"
3257  else
3258    CFLAGS=
3259  fi
3260fi
3261{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3262echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3263if test "${ac_cv_prog_cc_c89+set}" = set; then
3264  echo $ECHO_N "(cached) $ECHO_C" >&6
3265else
3266  ac_cv_prog_cc_c89=no
3267ac_save_CC=$CC
3268cat >conftest.$ac_ext <<_ACEOF
3269/* confdefs.h.  */
3270_ACEOF
3271cat confdefs.h >>conftest.$ac_ext
3272cat >>conftest.$ac_ext <<_ACEOF
3273/* end confdefs.h.  */
3274#include <stdarg.h>
3275#include <stdio.h>
3276#include <sys/types.h>
3277#include <sys/stat.h>
3278/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3279struct buf { int x; };
3280FILE * (*rcsopen) (struct buf *, struct stat *, int);
3281static char *e (p, i)
3282     char **p;
3283     int i;
3284{
3285  return p[i];
3286}
3287static char *f (char * (*g) (char **, int), char **p, ...)
3288{
3289  char *s;
3290  va_list v;
3291  va_start (v,p);
3292  s = g (p, va_arg (v,int));
3293  va_end (v);
3294  return s;
3295}
3296
3297/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3298   function prototypes and stuff, but not '\xHH' hex character constants.
3299   These don't provoke an error unfortunately, instead are silently treated
3300   as 'x'.  The following induces an error, until -std is added to get
3301   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3302   array size at least.  It's necessary to write '\x00'==0 to get something
3303   that's true only with -std.  */
3304int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3305
3306/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3307   inside strings and character constants.  */
3308#define FOO(x) 'x'
3309int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3310
3311int test (int i, double x);
3312struct s1 {int (*f) (int a);};
3313struct s2 {int (*f) (double a);};
3314int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3315int argc;
3316char **argv;
3317int
3318main ()
3319{
3320return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3321  ;
3322  return 0;
3323}
3324_ACEOF
3325for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3326	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3327do
3328  CC="$ac_save_CC $ac_arg"
3329  rm -f conftest.$ac_objext
3330if { (ac_try="$ac_compile"
3331case "(($ac_try" in
3332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333  *) ac_try_echo=$ac_try;;
3334esac
3335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3336  (eval "$ac_compile") 2>conftest.er1
3337  ac_status=$?
3338  grep -v '^ *+' conftest.er1 >conftest.err
3339  rm -f conftest.er1
3340  cat conftest.err >&5
3341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342  (exit $ac_status); } &&
3343	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3344  { (case "(($ac_try" in
3345  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346  *) ac_try_echo=$ac_try;;
3347esac
3348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3349  (eval "$ac_try") 2>&5
3350  ac_status=$?
3351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352  (exit $ac_status); }; } &&
3353	 { ac_try='test -s conftest.$ac_objext'
3354  { (case "(($ac_try" in
3355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3356  *) ac_try_echo=$ac_try;;
3357esac
3358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3359  (eval "$ac_try") 2>&5
3360  ac_status=$?
3361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362  (exit $ac_status); }; }; then
3363  ac_cv_prog_cc_c89=$ac_arg
3364else
3365  echo "$as_me: failed program was:" >&5
3366sed 's/^/| /' conftest.$ac_ext >&5
3367
3368
3369fi
3370
3371rm -f core conftest.err conftest.$ac_objext
3372  test "x$ac_cv_prog_cc_c89" != "xno" && break
3373done
3374rm -f conftest.$ac_ext
3375CC=$ac_save_CC
3376
3377fi
3378# AC_CACHE_VAL
3379case "x$ac_cv_prog_cc_c89" in
3380  x)
3381    { echo "$as_me:$LINENO: result: none needed" >&5
3382echo "${ECHO_T}none needed" >&6; } ;;
3383  xno)
3384    { echo "$as_me:$LINENO: result: unsupported" >&5
3385echo "${ECHO_T}unsupported" >&6; } ;;
3386  *)
3387    CC="$CC $ac_cv_prog_cc_c89"
3388    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3389echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3390esac
3391
3392
3393ac_ext=c
3394ac_cpp='$CPP $CPPFLAGS'
3395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3397ac_compiler_gnu=$ac_cv_c_compiler_gnu
3398
3399
3400ac_ext=c
3401ac_cpp='$CPP $CPPFLAGS'
3402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404ac_compiler_gnu=$ac_cv_c_compiler_gnu
3405{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3406echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3407# On Suns, sometimes $CPP names a directory.
3408if test -n "$CPP" && test -d "$CPP"; then
3409  CPP=
3410fi
3411if test -z "$CPP"; then
3412  if test "${ac_cv_prog_CPP+set}" = set; then
3413  echo $ECHO_N "(cached) $ECHO_C" >&6
3414else
3415      # Double quotes because CPP needs to be expanded
3416    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3417    do
3418      ac_preproc_ok=false
3419for ac_c_preproc_warn_flag in '' yes
3420do
3421  # Use a header file that comes with gcc, so configuring glibc
3422  # with a fresh cross-compiler works.
3423  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3424  # <limits.h> exists even on freestanding compilers.
3425  # On the NeXT, cc -E runs the code through the compiler's parser,
3426  # not just through cpp. "Syntax error" is here to catch this case.
3427  cat >conftest.$ac_ext <<_ACEOF
3428/* confdefs.h.  */
3429_ACEOF
3430cat confdefs.h >>conftest.$ac_ext
3431cat >>conftest.$ac_ext <<_ACEOF
3432/* end confdefs.h.  */
3433#ifdef __STDC__
3434# include <limits.h>
3435#else
3436# include <assert.h>
3437#endif
3438		     Syntax error
3439_ACEOF
3440if { (ac_try="$ac_cpp conftest.$ac_ext"
3441case "(($ac_try" in
3442  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443  *) ac_try_echo=$ac_try;;
3444esac
3445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3446  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3447  ac_status=$?
3448  grep -v '^ *+' conftest.er1 >conftest.err
3449  rm -f conftest.er1
3450  cat conftest.err >&5
3451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452  (exit $ac_status); } >/dev/null; then
3453  if test -s conftest.err; then
3454    ac_cpp_err=$ac_c_preproc_warn_flag
3455    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3456  else
3457    ac_cpp_err=
3458  fi
3459else
3460  ac_cpp_err=yes
3461fi
3462if test -z "$ac_cpp_err"; then
3463  :
3464else
3465  echo "$as_me: failed program was:" >&5
3466sed 's/^/| /' conftest.$ac_ext >&5
3467
3468  # Broken: fails on valid input.
3469continue
3470fi
3471
3472rm -f conftest.err conftest.$ac_ext
3473
3474  # OK, works on sane cases.  Now check whether nonexistent headers
3475  # can be detected and how.
3476  cat >conftest.$ac_ext <<_ACEOF
3477/* confdefs.h.  */
3478_ACEOF
3479cat confdefs.h >>conftest.$ac_ext
3480cat >>conftest.$ac_ext <<_ACEOF
3481/* end confdefs.h.  */
3482#include <ac_nonexistent.h>
3483_ACEOF
3484if { (ac_try="$ac_cpp conftest.$ac_ext"
3485case "(($ac_try" in
3486  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3487  *) ac_try_echo=$ac_try;;
3488esac
3489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3490  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3491  ac_status=$?
3492  grep -v '^ *+' conftest.er1 >conftest.err
3493  rm -f conftest.er1
3494  cat conftest.err >&5
3495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496  (exit $ac_status); } >/dev/null; then
3497  if test -s conftest.err; then
3498    ac_cpp_err=$ac_c_preproc_warn_flag
3499    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3500  else
3501    ac_cpp_err=
3502  fi
3503else
3504  ac_cpp_err=yes
3505fi
3506if test -z "$ac_cpp_err"; then
3507  # Broken: success on invalid input.
3508continue
3509else
3510  echo "$as_me: failed program was:" >&5
3511sed 's/^/| /' conftest.$ac_ext >&5
3512
3513  # Passes both tests.
3514ac_preproc_ok=:
3515break
3516fi
3517
3518rm -f conftest.err conftest.$ac_ext
3519
3520done
3521# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3522rm -f conftest.err conftest.$ac_ext
3523if $ac_preproc_ok; then
3524  break
3525fi
3526
3527    done
3528    ac_cv_prog_CPP=$CPP
3529
3530fi
3531  CPP=$ac_cv_prog_CPP
3532else
3533  ac_cv_prog_CPP=$CPP
3534fi
3535{ echo "$as_me:$LINENO: result: $CPP" >&5
3536echo "${ECHO_T}$CPP" >&6; }
3537ac_preproc_ok=false
3538for ac_c_preproc_warn_flag in '' yes
3539do
3540  # Use a header file that comes with gcc, so configuring glibc
3541  # with a fresh cross-compiler works.
3542  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3543  # <limits.h> exists even on freestanding compilers.
3544  # On the NeXT, cc -E runs the code through the compiler's parser,
3545  # not just through cpp. "Syntax error" is here to catch this case.
3546  cat >conftest.$ac_ext <<_ACEOF
3547/* confdefs.h.  */
3548_ACEOF
3549cat confdefs.h >>conftest.$ac_ext
3550cat >>conftest.$ac_ext <<_ACEOF
3551/* end confdefs.h.  */
3552#ifdef __STDC__
3553# include <limits.h>
3554#else
3555# include <assert.h>
3556#endif
3557		     Syntax error
3558_ACEOF
3559if { (ac_try="$ac_cpp conftest.$ac_ext"
3560case "(($ac_try" in
3561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562  *) ac_try_echo=$ac_try;;
3563esac
3564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3565  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3566  ac_status=$?
3567  grep -v '^ *+' conftest.er1 >conftest.err
3568  rm -f conftest.er1
3569  cat conftest.err >&5
3570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571  (exit $ac_status); } >/dev/null; then
3572  if test -s conftest.err; then
3573    ac_cpp_err=$ac_c_preproc_warn_flag
3574    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3575  else
3576    ac_cpp_err=
3577  fi
3578else
3579  ac_cpp_err=yes
3580fi
3581if test -z "$ac_cpp_err"; then
3582  :
3583else
3584  echo "$as_me: failed program was:" >&5
3585sed 's/^/| /' conftest.$ac_ext >&5
3586
3587  # Broken: fails on valid input.
3588continue
3589fi
3590
3591rm -f conftest.err conftest.$ac_ext
3592
3593  # OK, works on sane cases.  Now check whether nonexistent headers
3594  # can be detected and how.
3595  cat >conftest.$ac_ext <<_ACEOF
3596/* confdefs.h.  */
3597_ACEOF
3598cat confdefs.h >>conftest.$ac_ext
3599cat >>conftest.$ac_ext <<_ACEOF
3600/* end confdefs.h.  */
3601#include <ac_nonexistent.h>
3602_ACEOF
3603if { (ac_try="$ac_cpp conftest.$ac_ext"
3604case "(($ac_try" in
3605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606  *) ac_try_echo=$ac_try;;
3607esac
3608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3609  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3610  ac_status=$?
3611  grep -v '^ *+' conftest.er1 >conftest.err
3612  rm -f conftest.er1
3613  cat conftest.err >&5
3614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615  (exit $ac_status); } >/dev/null; then
3616  if test -s conftest.err; then
3617    ac_cpp_err=$ac_c_preproc_warn_flag
3618    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3619  else
3620    ac_cpp_err=
3621  fi
3622else
3623  ac_cpp_err=yes
3624fi
3625if test -z "$ac_cpp_err"; then
3626  # Broken: success on invalid input.
3627continue
3628else
3629  echo "$as_me: failed program was:" >&5
3630sed 's/^/| /' conftest.$ac_ext >&5
3631
3632  # Passes both tests.
3633ac_preproc_ok=:
3634break
3635fi
3636
3637rm -f conftest.err conftest.$ac_ext
3638
3639done
3640# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3641rm -f conftest.err conftest.$ac_ext
3642if $ac_preproc_ok; then
3643  :
3644else
3645  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3646See \`config.log' for more details." >&5
3647echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3648See \`config.log' for more details." >&2;}
3649   { (exit 1); exit 1; }; }
3650fi
3651
3652ac_ext=c
3653ac_cpp='$CPP $CPPFLAGS'
3654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3656ac_compiler_gnu=$ac_cv_c_compiler_gnu
3657
3658
3659{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3660echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3661if test "${ac_cv_path_GREP+set}" = set; then
3662  echo $ECHO_N "(cached) $ECHO_C" >&6
3663else
3664  # Extract the first word of "grep ggrep" to use in msg output
3665if test -z "$GREP"; then
3666set dummy grep ggrep; ac_prog_name=$2
3667if test "${ac_cv_path_GREP+set}" = set; then
3668  echo $ECHO_N "(cached) $ECHO_C" >&6
3669else
3670  ac_path_GREP_found=false
3671# Loop through the user's path and test for each of PROGNAME-LIST
3672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3673for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3674do
3675  IFS=$as_save_IFS
3676  test -z "$as_dir" && as_dir=.
3677  for ac_prog in grep ggrep; do
3678  for ac_exec_ext in '' $ac_executable_extensions; do
3679    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3680    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3681    # Check for GNU ac_path_GREP and select it if it is found.
3682  # Check for GNU $ac_path_GREP
3683case `"$ac_path_GREP" --version 2>&1` in
3684*GNU*)
3685  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3686*)
3687  ac_count=0
3688  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3689  while :
3690  do
3691    cat "conftest.in" "conftest.in" >"conftest.tmp"
3692    mv "conftest.tmp" "conftest.in"
3693    cp "conftest.in" "conftest.nl"
3694    echo 'GREP' >> "conftest.nl"
3695    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3696    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3697    ac_count=`expr $ac_count + 1`
3698    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3699      # Best one so far, save it but keep looking for a better one
3700      ac_cv_path_GREP="$ac_path_GREP"
3701      ac_path_GREP_max=$ac_count
3702    fi
3703    # 10*(2^10) chars as input seems more than enough
3704    test $ac_count -gt 10 && break
3705  done
3706  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3707esac
3708
3709
3710    $ac_path_GREP_found && break 3
3711  done
3712done
3713
3714done
3715IFS=$as_save_IFS
3716
3717
3718fi
3719
3720GREP="$ac_cv_path_GREP"
3721if test -z "$GREP"; then
3722  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3723echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3724   { (exit 1); exit 1; }; }
3725fi
3726
3727else
3728  ac_cv_path_GREP=$GREP
3729fi
3730
3731
3732fi
3733{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3734echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3735 GREP="$ac_cv_path_GREP"
3736
3737
3738{ echo "$as_me:$LINENO: checking for egrep" >&5
3739echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3740if test "${ac_cv_path_EGREP+set}" = set; then
3741  echo $ECHO_N "(cached) $ECHO_C" >&6
3742else
3743  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3744   then ac_cv_path_EGREP="$GREP -E"
3745   else
3746     # Extract the first word of "egrep" to use in msg output
3747if test -z "$EGREP"; then
3748set dummy egrep; ac_prog_name=$2
3749if test "${ac_cv_path_EGREP+set}" = set; then
3750  echo $ECHO_N "(cached) $ECHO_C" >&6
3751else
3752  ac_path_EGREP_found=false
3753# Loop through the user's path and test for each of PROGNAME-LIST
3754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3756do
3757  IFS=$as_save_IFS
3758  test -z "$as_dir" && as_dir=.
3759  for ac_prog in egrep; do
3760  for ac_exec_ext in '' $ac_executable_extensions; do
3761    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3762    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3763    # Check for GNU ac_path_EGREP and select it if it is found.
3764  # Check for GNU $ac_path_EGREP
3765case `"$ac_path_EGREP" --version 2>&1` in
3766*GNU*)
3767  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3768*)
3769  ac_count=0
3770  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3771  while :
3772  do
3773    cat "conftest.in" "conftest.in" >"conftest.tmp"
3774    mv "conftest.tmp" "conftest.in"
3775    cp "conftest.in" "conftest.nl"
3776    echo 'EGREP' >> "conftest.nl"
3777    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3778    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3779    ac_count=`expr $ac_count + 1`
3780    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3781      # Best one so far, save it but keep looking for a better one
3782      ac_cv_path_EGREP="$ac_path_EGREP"
3783      ac_path_EGREP_max=$ac_count
3784    fi
3785    # 10*(2^10) chars as input seems more than enough
3786    test $ac_count -gt 10 && break
3787  done
3788  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3789esac
3790
3791
3792    $ac_path_EGREP_found && break 3
3793  done
3794done
3795
3796done
3797IFS=$as_save_IFS
3798
3799
3800fi
3801
3802EGREP="$ac_cv_path_EGREP"
3803if test -z "$EGREP"; then
3804  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3805echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3806   { (exit 1); exit 1; }; }
3807fi
3808
3809else
3810  ac_cv_path_EGREP=$EGREP
3811fi
3812
3813
3814   fi
3815fi
3816{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3817echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3818 EGREP="$ac_cv_path_EGREP"
3819
3820
3821{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3822echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3823if test "${ac_cv_header_stdc+set}" = set; then
3824  echo $ECHO_N "(cached) $ECHO_C" >&6
3825else
3826  cat >conftest.$ac_ext <<_ACEOF
3827/* confdefs.h.  */
3828_ACEOF
3829cat confdefs.h >>conftest.$ac_ext
3830cat >>conftest.$ac_ext <<_ACEOF
3831/* end confdefs.h.  */
3832#include <stdlib.h>
3833#include <stdarg.h>
3834#include <string.h>
3835#include <float.h>
3836
3837int
3838main ()
3839{
3840
3841  ;
3842  return 0;
3843}
3844_ACEOF
3845rm -f conftest.$ac_objext
3846if { (ac_try="$ac_compile"
3847case "(($ac_try" in
3848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849  *) ac_try_echo=$ac_try;;
3850esac
3851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3852  (eval "$ac_compile") 2>conftest.er1
3853  ac_status=$?
3854  grep -v '^ *+' conftest.er1 >conftest.err
3855  rm -f conftest.er1
3856  cat conftest.err >&5
3857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858  (exit $ac_status); } &&
3859	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3860  { (case "(($ac_try" in
3861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3862  *) ac_try_echo=$ac_try;;
3863esac
3864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3865  (eval "$ac_try") 2>&5
3866  ac_status=$?
3867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868  (exit $ac_status); }; } &&
3869	 { ac_try='test -s conftest.$ac_objext'
3870  { (case "(($ac_try" in
3871  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3872  *) ac_try_echo=$ac_try;;
3873esac
3874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3875  (eval "$ac_try") 2>&5
3876  ac_status=$?
3877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878  (exit $ac_status); }; }; then
3879  ac_cv_header_stdc=yes
3880else
3881  echo "$as_me: failed program was:" >&5
3882sed 's/^/| /' conftest.$ac_ext >&5
3883
3884	ac_cv_header_stdc=no
3885fi
3886
3887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3888
3889if test $ac_cv_header_stdc = yes; then
3890  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3891  cat >conftest.$ac_ext <<_ACEOF
3892/* confdefs.h.  */
3893_ACEOF
3894cat confdefs.h >>conftest.$ac_ext
3895cat >>conftest.$ac_ext <<_ACEOF
3896/* end confdefs.h.  */
3897#include <string.h>
3898
3899_ACEOF
3900if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3901  $EGREP "memchr" >/dev/null 2>&1; then
3902  :
3903else
3904  ac_cv_header_stdc=no
3905fi
3906rm -f conftest*
3907
3908fi
3909
3910if test $ac_cv_header_stdc = yes; then
3911  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3912  cat >conftest.$ac_ext <<_ACEOF
3913/* confdefs.h.  */
3914_ACEOF
3915cat confdefs.h >>conftest.$ac_ext
3916cat >>conftest.$ac_ext <<_ACEOF
3917/* end confdefs.h.  */
3918#include <stdlib.h>
3919
3920_ACEOF
3921if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3922  $EGREP "free" >/dev/null 2>&1; then
3923  :
3924else
3925  ac_cv_header_stdc=no
3926fi
3927rm -f conftest*
3928
3929fi
3930
3931if test $ac_cv_header_stdc = yes; then
3932  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3933  if test "$cross_compiling" = yes; then
3934  :
3935else
3936  cat >conftest.$ac_ext <<_ACEOF
3937/* confdefs.h.  */
3938_ACEOF
3939cat confdefs.h >>conftest.$ac_ext
3940cat >>conftest.$ac_ext <<_ACEOF
3941/* end confdefs.h.  */
3942#include <ctype.h>
3943#include <stdlib.h>
3944#if ((' ' & 0x0FF) == 0x020)
3945# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3946# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3947#else
3948# define ISLOWER(c) \
3949		   (('a' <= (c) && (c) <= 'i') \
3950		     || ('j' <= (c) && (c) <= 'r') \
3951		     || ('s' <= (c) && (c) <= 'z'))
3952# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3953#endif
3954
3955#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3956int
3957main ()
3958{
3959  int i;
3960  for (i = 0; i < 256; i++)
3961    if (XOR (islower (i), ISLOWER (i))
3962	|| toupper (i) != TOUPPER (i))
3963      return 2;
3964  return 0;
3965}
3966_ACEOF
3967rm -f conftest$ac_exeext
3968if { (ac_try="$ac_link"
3969case "(($ac_try" in
3970  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3971  *) ac_try_echo=$ac_try;;
3972esac
3973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3974  (eval "$ac_link") 2>&5
3975  ac_status=$?
3976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3978  { (case "(($ac_try" in
3979  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3980  *) ac_try_echo=$ac_try;;
3981esac
3982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3983  (eval "$ac_try") 2>&5
3984  ac_status=$?
3985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986  (exit $ac_status); }; }; then
3987  :
3988else
3989  echo "$as_me: program exited with status $ac_status" >&5
3990echo "$as_me: failed program was:" >&5
3991sed 's/^/| /' conftest.$ac_ext >&5
3992
3993( exit $ac_status )
3994ac_cv_header_stdc=no
3995fi
3996rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3997fi
3998
3999
4000fi
4001fi
4002{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4003echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4004if test $ac_cv_header_stdc = yes; then
4005
4006cat >>confdefs.h <<\_ACEOF
4007#define STDC_HEADERS 1
4008_ACEOF
4009
4010fi
4011
4012# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4023		  inttypes.h stdint.h unistd.h
4024do
4025as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4026{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4027echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4028if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4029  echo $ECHO_N "(cached) $ECHO_C" >&6
4030else
4031  cat >conftest.$ac_ext <<_ACEOF
4032/* confdefs.h.  */
4033_ACEOF
4034cat confdefs.h >>conftest.$ac_ext
4035cat >>conftest.$ac_ext <<_ACEOF
4036/* end confdefs.h.  */
4037$ac_includes_default
4038
4039#include <$ac_header>
4040_ACEOF
4041rm -f conftest.$ac_objext
4042if { (ac_try="$ac_compile"
4043case "(($ac_try" in
4044  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4045  *) ac_try_echo=$ac_try;;
4046esac
4047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4048  (eval "$ac_compile") 2>conftest.er1
4049  ac_status=$?
4050  grep -v '^ *+' conftest.er1 >conftest.err
4051  rm -f conftest.er1
4052  cat conftest.err >&5
4053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054  (exit $ac_status); } &&
4055	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4056  { (case "(($ac_try" in
4057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058  *) ac_try_echo=$ac_try;;
4059esac
4060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4061  (eval "$ac_try") 2>&5
4062  ac_status=$?
4063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064  (exit $ac_status); }; } &&
4065	 { ac_try='test -s conftest.$ac_objext'
4066  { (case "(($ac_try" in
4067  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068  *) ac_try_echo=$ac_try;;
4069esac
4070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4071  (eval "$ac_try") 2>&5
4072  ac_status=$?
4073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074  (exit $ac_status); }; }; then
4075  eval "$as_ac_Header=yes"
4076else
4077  echo "$as_me: failed program was:" >&5
4078sed 's/^/| /' conftest.$ac_ext >&5
4079
4080	eval "$as_ac_Header=no"
4081fi
4082
4083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4084fi
4085ac_res=`eval echo '${'$as_ac_Header'}'`
4086	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4087echo "${ECHO_T}$ac_res" >&6; }
4088if test `eval echo '${'$as_ac_Header'}'` = yes; then
4089  cat >>confdefs.h <<_ACEOF
4090#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4091_ACEOF
4092
4093fi
4094
4095done
4096
4097
4098{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4099echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4100if test "${ac_cv_c_bigendian+set}" = set; then
4101  echo $ECHO_N "(cached) $ECHO_C" >&6
4102else
4103  # See if sys/param.h defines the BYTE_ORDER macro.
4104cat >conftest.$ac_ext <<_ACEOF
4105/* confdefs.h.  */
4106_ACEOF
4107cat confdefs.h >>conftest.$ac_ext
4108cat >>conftest.$ac_ext <<_ACEOF
4109/* end confdefs.h.  */
4110#include <sys/types.h>
4111#include <sys/param.h>
4112
4113int
4114main ()
4115{
4116#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4117 bogus endian macros
4118#endif
4119
4120  ;
4121  return 0;
4122}
4123_ACEOF
4124rm -f conftest.$ac_objext
4125if { (ac_try="$ac_compile"
4126case "(($ac_try" in
4127  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128  *) ac_try_echo=$ac_try;;
4129esac
4130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4131  (eval "$ac_compile") 2>conftest.er1
4132  ac_status=$?
4133  grep -v '^ *+' conftest.er1 >conftest.err
4134  rm -f conftest.er1
4135  cat conftest.err >&5
4136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137  (exit $ac_status); } &&
4138	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4139  { (case "(($ac_try" in
4140  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141  *) ac_try_echo=$ac_try;;
4142esac
4143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4144  (eval "$ac_try") 2>&5
4145  ac_status=$?
4146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147  (exit $ac_status); }; } &&
4148	 { ac_try='test -s conftest.$ac_objext'
4149  { (case "(($ac_try" in
4150  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151  *) ac_try_echo=$ac_try;;
4152esac
4153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4154  (eval "$ac_try") 2>&5
4155  ac_status=$?
4156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157  (exit $ac_status); }; }; then
4158  # It does; now see whether it defined to BIG_ENDIAN or not.
4159cat >conftest.$ac_ext <<_ACEOF
4160/* confdefs.h.  */
4161_ACEOF
4162cat confdefs.h >>conftest.$ac_ext
4163cat >>conftest.$ac_ext <<_ACEOF
4164/* end confdefs.h.  */
4165#include <sys/types.h>
4166#include <sys/param.h>
4167
4168int
4169main ()
4170{
4171#if BYTE_ORDER != BIG_ENDIAN
4172 not big endian
4173#endif
4174
4175  ;
4176  return 0;
4177}
4178_ACEOF
4179rm -f conftest.$ac_objext
4180if { (ac_try="$ac_compile"
4181case "(($ac_try" in
4182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183  *) ac_try_echo=$ac_try;;
4184esac
4185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4186  (eval "$ac_compile") 2>conftest.er1
4187  ac_status=$?
4188  grep -v '^ *+' conftest.er1 >conftest.err
4189  rm -f conftest.er1
4190  cat conftest.err >&5
4191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192  (exit $ac_status); } &&
4193	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4194  { (case "(($ac_try" in
4195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196  *) ac_try_echo=$ac_try;;
4197esac
4198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4199  (eval "$ac_try") 2>&5
4200  ac_status=$?
4201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202  (exit $ac_status); }; } &&
4203	 { ac_try='test -s conftest.$ac_objext'
4204  { (case "(($ac_try" in
4205  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206  *) ac_try_echo=$ac_try;;
4207esac
4208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4209  (eval "$ac_try") 2>&5
4210  ac_status=$?
4211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212  (exit $ac_status); }; }; then
4213  ac_cv_c_bigendian=yes
4214else
4215  echo "$as_me: failed program was:" >&5
4216sed 's/^/| /' conftest.$ac_ext >&5
4217
4218	ac_cv_c_bigendian=no
4219fi
4220
4221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4222else
4223  echo "$as_me: failed program was:" >&5
4224sed 's/^/| /' conftest.$ac_ext >&5
4225
4226	# It does not; compile a test program.
4227if test "$cross_compiling" = yes; then
4228  # try to guess the endianness by grepping values into an object file
4229  ac_cv_c_bigendian=unknown
4230  cat >conftest.$ac_ext <<_ACEOF
4231/* confdefs.h.  */
4232_ACEOF
4233cat confdefs.h >>conftest.$ac_ext
4234cat >>conftest.$ac_ext <<_ACEOF
4235/* end confdefs.h.  */
4236short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4237short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4238void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4239short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4240short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4241void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4242int
4243main ()
4244{
4245 _ascii (); _ebcdic ();
4246  ;
4247  return 0;
4248}
4249_ACEOF
4250rm -f conftest.$ac_objext
4251if { (ac_try="$ac_compile"
4252case "(($ac_try" in
4253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254  *) ac_try_echo=$ac_try;;
4255esac
4256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4257  (eval "$ac_compile") 2>conftest.er1
4258  ac_status=$?
4259  grep -v '^ *+' conftest.er1 >conftest.err
4260  rm -f conftest.er1
4261  cat conftest.err >&5
4262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263  (exit $ac_status); } &&
4264	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4265  { (case "(($ac_try" in
4266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4267  *) ac_try_echo=$ac_try;;
4268esac
4269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4270  (eval "$ac_try") 2>&5
4271  ac_status=$?
4272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273  (exit $ac_status); }; } &&
4274	 { ac_try='test -s conftest.$ac_objext'
4275  { (case "(($ac_try" in
4276  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277  *) ac_try_echo=$ac_try;;
4278esac
4279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4280  (eval "$ac_try") 2>&5
4281  ac_status=$?
4282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283  (exit $ac_status); }; }; then
4284  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4285  ac_cv_c_bigendian=yes
4286fi
4287if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4288  if test "$ac_cv_c_bigendian" = unknown; then
4289    ac_cv_c_bigendian=no
4290  else
4291    # finding both strings is unlikely to happen, but who knows?
4292    ac_cv_c_bigendian=unknown
4293  fi
4294fi
4295else
4296  echo "$as_me: failed program was:" >&5
4297sed 's/^/| /' conftest.$ac_ext >&5
4298
4299
4300fi
4301
4302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4303else
4304  cat >conftest.$ac_ext <<_ACEOF
4305/* confdefs.h.  */
4306_ACEOF
4307cat confdefs.h >>conftest.$ac_ext
4308cat >>conftest.$ac_ext <<_ACEOF
4309/* end confdefs.h.  */
4310$ac_includes_default
4311int
4312main ()
4313{
4314
4315  /* Are we little or big endian?  From Harbison&Steele.  */
4316  union
4317  {
4318    long int l;
4319    char c[sizeof (long int)];
4320  } u;
4321  u.l = 1;
4322  return u.c[sizeof (long int) - 1] == 1;
4323
4324  ;
4325  return 0;
4326}
4327_ACEOF
4328rm -f conftest$ac_exeext
4329if { (ac_try="$ac_link"
4330case "(($ac_try" in
4331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332  *) ac_try_echo=$ac_try;;
4333esac
4334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4335  (eval "$ac_link") 2>&5
4336  ac_status=$?
4337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4339  { (case "(($ac_try" in
4340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4341  *) ac_try_echo=$ac_try;;
4342esac
4343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4344  (eval "$ac_try") 2>&5
4345  ac_status=$?
4346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347  (exit $ac_status); }; }; then
4348  ac_cv_c_bigendian=no
4349else
4350  echo "$as_me: program exited with status $ac_status" >&5
4351echo "$as_me: failed program was:" >&5
4352sed 's/^/| /' conftest.$ac_ext >&5
4353
4354( exit $ac_status )
4355ac_cv_c_bigendian=yes
4356fi
4357rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4358fi
4359
4360
4361fi
4362
4363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4364fi
4365{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4366echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4367case $ac_cv_c_bigendian in
4368  yes)
4369    ENDIAN=big
4370 ;;
4371  no)
4372    ENDIAN=little
4373 ;;
4374  *)
4375    { { echo "$as_me:$LINENO: error: unknown endianness
4376presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4377echo "$as_me: error: unknown endianness
4378presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4379   { (exit 1); exit 1; }; } ;;
4380esac
4381
4382
4383if test "$cross_compiling" = yes; then
4384  LLVM_CROSS_COMPILING=1
4385
4386
4387{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4388echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4389if test "${ac_cv_build_exeext+set}" = set; then
4390  echo $ECHO_N "(cached) $ECHO_C" >&6
4391else
4392  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4393  ac_cv_build_exeext=.exe
4394else
4395  ac_build_prefix=${build_alias}-
4396
4397  # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4398set dummy ${ac_build_prefix}gcc; ac_word=$2
4399{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4401if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4402  echo $ECHO_N "(cached) $ECHO_C" >&6
4403else
4404  if test -n "$BUILD_CC"; then
4405  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4406else
4407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408for as_dir in $PATH
4409do
4410  IFS=$as_save_IFS
4411  test -z "$as_dir" && as_dir=.
4412  for ac_exec_ext in '' $ac_executable_extensions; do
4413  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4414    ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4415    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4416    break 2
4417  fi
4418done
4419done
4420IFS=$as_save_IFS
4421
4422fi
4423fi
4424BUILD_CC=$ac_cv_prog_BUILD_CC
4425if test -n "$BUILD_CC"; then
4426  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4427echo "${ECHO_T}$BUILD_CC" >&6; }
4428else
4429  { echo "$as_me:$LINENO: result: no" >&5
4430echo "${ECHO_T}no" >&6; }
4431fi
4432
4433
4434  if test -z "$BUILD_CC"; then
4435     # Extract the first word of "gcc", so it can be a program name with args.
4436set dummy gcc; ac_word=$2
4437{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4439if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4440  echo $ECHO_N "(cached) $ECHO_C" >&6
4441else
4442  if test -n "$BUILD_CC"; then
4443  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4444else
4445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446for as_dir in $PATH
4447do
4448  IFS=$as_save_IFS
4449  test -z "$as_dir" && as_dir=.
4450  for ac_exec_ext in '' $ac_executable_extensions; do
4451  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4452    ac_cv_prog_BUILD_CC="gcc"
4453    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4454    break 2
4455  fi
4456done
4457done
4458IFS=$as_save_IFS
4459
4460fi
4461fi
4462BUILD_CC=$ac_cv_prog_BUILD_CC
4463if test -n "$BUILD_CC"; then
4464  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4465echo "${ECHO_T}$BUILD_CC" >&6; }
4466else
4467  { echo "$as_me:$LINENO: result: no" >&5
4468echo "${ECHO_T}no" >&6; }
4469fi
4470
4471
4472     if test -z "$BUILD_CC"; then
4473       # Extract the first word of "cc", so it can be a program name with args.
4474set dummy cc; ac_word=$2
4475{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4477if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4478  echo $ECHO_N "(cached) $ECHO_C" >&6
4479else
4480  if test -n "$BUILD_CC"; then
4481  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4482else
4483  ac_prog_rejected=no
4484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485for as_dir in $PATH
4486do
4487  IFS=$as_save_IFS
4488  test -z "$as_dir" && as_dir=.
4489  for ac_exec_ext in '' $ac_executable_extensions; do
4490  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4491    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4492       ac_prog_rejected=yes
4493       continue
4494     fi
4495    ac_cv_prog_BUILD_CC="cc"
4496    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4497    break 2
4498  fi
4499done
4500done
4501IFS=$as_save_IFS
4502
4503if test $ac_prog_rejected = yes; then
4504  # We found a bogon in the path, so make sure we never use it.
4505  set dummy $ac_cv_prog_BUILD_CC
4506  shift
4507  if test $# != 0; then
4508    # We chose a different compiler from the bogus one.
4509    # However, it has the same basename, so the bogon will be chosen
4510    # first if we set BUILD_CC to just the basename; use the full file name.
4511    shift
4512    ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4513  fi
4514fi
4515fi
4516fi
4517BUILD_CC=$ac_cv_prog_BUILD_CC
4518if test -n "$BUILD_CC"; then
4519  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4520echo "${ECHO_T}$BUILD_CC" >&6; }
4521else
4522  { echo "$as_me:$LINENO: result: no" >&5
4523echo "${ECHO_T}no" >&6; }
4524fi
4525
4526
4527     fi
4528  fi
4529  test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4530echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4531   { (exit 1); exit 1; }; }
4532  ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4533  rm -f conftest*
4534  echo 'int main () { return 0; }' > conftest.$ac_ext
4535  ac_cv_build_exeext=
4536  if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4537  (eval $ac_build_link) 2>&5
4538  ac_status=$?
4539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540  (exit $ac_status); }; then
4541    for file in conftest.*; do
4542      case $file in
4543      *.c | *.o | *.obj | *.dSYM) ;;
4544      *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4545      esac
4546    done
4547  else
4548    { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4549echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4550   { (exit 1); exit 1; }; }
4551  fi
4552  rm -f conftest*
4553  test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4554fi
4555fi
4556
4557BUILD_EXEEXT=""
4558test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4559{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4560echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4561ac_build_exeext=$BUILD_EXEEXT
4562
4563  ac_build_prefix=${build_alias}-
4564  # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4565set dummy ${ac_build_prefix}g++; ac_word=$2
4566{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4568if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4569  echo $ECHO_N "(cached) $ECHO_C" >&6
4570else
4571  if test -n "$BUILD_CXX"; then
4572  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4573else
4574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575for as_dir in $PATH
4576do
4577  IFS=$as_save_IFS
4578  test -z "$as_dir" && as_dir=.
4579  for ac_exec_ext in '' $ac_executable_extensions; do
4580  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4581    ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4582    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4583    break 2
4584  fi
4585done
4586done
4587IFS=$as_save_IFS
4588
4589fi
4590fi
4591BUILD_CXX=$ac_cv_prog_BUILD_CXX
4592if test -n "$BUILD_CXX"; then
4593  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4594echo "${ECHO_T}$BUILD_CXX" >&6; }
4595else
4596  { echo "$as_me:$LINENO: result: no" >&5
4597echo "${ECHO_T}no" >&6; }
4598fi
4599
4600
4601  if test -z "$BUILD_CXX"; then
4602     # Extract the first word of "g++", so it can be a program name with args.
4603set dummy g++; ac_word=$2
4604{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4606if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4607  echo $ECHO_N "(cached) $ECHO_C" >&6
4608else
4609  if test -n "$BUILD_CXX"; then
4610  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4611else
4612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613for as_dir in $PATH
4614do
4615  IFS=$as_save_IFS
4616  test -z "$as_dir" && as_dir=.
4617  for ac_exec_ext in '' $ac_executable_extensions; do
4618  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4619    ac_cv_prog_BUILD_CXX="g++"
4620    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4621    break 2
4622  fi
4623done
4624done
4625IFS=$as_save_IFS
4626
4627fi
4628fi
4629BUILD_CXX=$ac_cv_prog_BUILD_CXX
4630if test -n "$BUILD_CXX"; then
4631  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4632echo "${ECHO_T}$BUILD_CXX" >&6; }
4633else
4634  { echo "$as_me:$LINENO: result: no" >&5
4635echo "${ECHO_T}no" >&6; }
4636fi
4637
4638
4639     if test -z "$BUILD_CXX"; then
4640       # Extract the first word of "c++", so it can be a program name with args.
4641set dummy c++; ac_word=$2
4642{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4644if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4645  echo $ECHO_N "(cached) $ECHO_C" >&6
4646else
4647  if test -n "$BUILD_CXX"; then
4648  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4649else
4650  ac_prog_rejected=no
4651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652for as_dir in $PATH
4653do
4654  IFS=$as_save_IFS
4655  test -z "$as_dir" && as_dir=.
4656  for ac_exec_ext in '' $ac_executable_extensions; do
4657  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4658    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4659       ac_prog_rejected=yes
4660       continue
4661     fi
4662    ac_cv_prog_BUILD_CXX="c++"
4663    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4664    break 2
4665  fi
4666done
4667done
4668IFS=$as_save_IFS
4669
4670if test $ac_prog_rejected = yes; then
4671  # We found a bogon in the path, so make sure we never use it.
4672  set dummy $ac_cv_prog_BUILD_CXX
4673  shift
4674  if test $# != 0; then
4675    # We chose a different compiler from the bogus one.
4676    # However, it has the same basename, so the bogon will be chosen
4677    # first if we set BUILD_CXX to just the basename; use the full file name.
4678    shift
4679    ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4680  fi
4681fi
4682fi
4683fi
4684BUILD_CXX=$ac_cv_prog_BUILD_CXX
4685if test -n "$BUILD_CXX"; then
4686  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4687echo "${ECHO_T}$BUILD_CXX" >&6; }
4688else
4689  { echo "$as_me:$LINENO: result: no" >&5
4690echo "${ECHO_T}no" >&6; }
4691fi
4692
4693
4694     fi
4695  fi
4696else
4697  LLVM_CROSS_COMPILING=0
4698
4699fi
4700
4701if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4702  cvsbuild="yes"
4703  optimize="no"
4704  CVSBUILD=CVSBUILD=1
4705
4706else
4707  cvsbuild="no"
4708  optimize="yes"
4709fi
4710
4711
4712# Check whether --enable-optimized was given.
4713if test "${enable_optimized+set}" = set; then
4714  enableval=$enable_optimized;
4715else
4716  enableval=$optimize
4717fi
4718
4719if test ${enableval} = "no" ; then
4720  ENABLE_OPTIMIZED=
4721
4722else
4723  ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4724
4725fi
4726
4727# Check whether --enable-assertions was given.
4728if test "${enable_assertions+set}" = set; then
4729  enableval=$enable_assertions;
4730else
4731  enableval="yes"
4732fi
4733
4734if test ${enableval} = "yes" ; then
4735  DISABLE_ASSERTIONS=
4736
4737else
4738  DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4739
4740fi
4741
4742# Check whether --enable-expensive-checks was given.
4743if test "${enable_expensive_checks+set}" = set; then
4744  enableval=$enable_expensive_checks;
4745else
4746  enableval="no"
4747fi
4748
4749if test ${enableval} = "yes" ; then
4750  ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4751
4752  EXPENSIVE_CHECKS=yes
4753
4754else
4755  ENABLE_EXPENSIVE_CHECKS=
4756
4757  EXPENSIVE_CHECKS=no
4758
4759fi
4760
4761# Check whether --enable-debug-runtime was given.
4762if test "${enable_debug_runtime+set}" = set; then
4763  enableval=$enable_debug_runtime;
4764else
4765  enableval=no
4766fi
4767
4768if test ${enableval} = "no" ; then
4769  DEBUG_RUNTIME=
4770
4771else
4772  DEBUG_RUNTIME=DEBUG_RUNTIME=1
4773
4774fi
4775
4776# Check whether --enable-jit was given.
4777if test "${enable_jit+set}" = set; then
4778  enableval=$enable_jit;
4779else
4780  enableval=default
4781fi
4782
4783if test ${enableval} = "no"
4784then
4785  JIT=
4786
4787else
4788  case "$llvm_cv_target_arch" in
4789    x86)     TARGET_HAS_JIT=1
4790 ;;
4791    Sparc)   TARGET_HAS_JIT=0
4792 ;;
4793    PowerPC) TARGET_HAS_JIT=1
4794 ;;
4795    x86_64)  TARGET_HAS_JIT=1
4796 ;;
4797    Alpha)   TARGET_HAS_JIT=1
4798 ;;
4799    IA64)    TARGET_HAS_JIT=0
4800 ;;
4801    ARM)     TARGET_HAS_JIT=0
4802 ;;
4803    Mips)    TARGET_HAS_JIT=0
4804 ;;
4805    PIC16)   TARGET_HAS_JIT=0
4806 ;;
4807    XCore)   TARGET_HAS_JIT=0
4808 ;;
4809    *)       TARGET_HAS_JIT=0
4810 ;;
4811  esac
4812fi
4813
4814# Check whether --enable-doxygen was given.
4815if test "${enable_doxygen+set}" = set; then
4816  enableval=$enable_doxygen;
4817else
4818  enableval=default
4819fi
4820
4821case "$enableval" in
4822  yes) ENABLE_DOXYGEN=1
4823 ;;
4824  no)  ENABLE_DOXYGEN=0
4825 ;;
4826  default) ENABLE_DOXYGEN=0
4827 ;;
4828  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4829echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4830   { (exit 1); exit 1; }; } ;;
4831esac
4832
4833# Check whether --enable-threads was given.
4834if test "${enable_threads+set}" = set; then
4835  enableval=$enable_threads;
4836else
4837  enableval=default
4838fi
4839
4840case "$enableval" in
4841  yes) ENABLE_THREADS=1
4842 ;;
4843  no)  ENABLE_THREADS=0
4844 ;;
4845  default) ENABLE_THREADS=1
4846 ;;
4847  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4848echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4849   { (exit 1); exit 1; }; } ;;
4850esac
4851
4852cat >>confdefs.h <<_ACEOF
4853#define ENABLE_THREADS $ENABLE_THREADS
4854_ACEOF
4855
4856
4857# Check whether --enable-pic was given.
4858if test "${enable_pic+set}" = set; then
4859  enableval=$enable_pic;
4860else
4861  enableval=default
4862fi
4863
4864case "$enableval" in
4865  yes) ENABLE_PIC=1
4866 ;;
4867  no)  ENABLE_PIC=0
4868 ;;
4869  default) ENABLE_PIC=1
4870 ;;
4871  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4872echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4873   { (exit 1); exit 1; }; } ;;
4874esac
4875
4876cat >>confdefs.h <<_ACEOF
4877#define ENABLE_PIC $ENABLE_PIC
4878_ACEOF
4879
4880
4881TARGETS_TO_BUILD=""
4882# Check whether --enable-targets was given.
4883if test "${enable_targets+set}" = set; then
4884  enableval=$enable_targets;
4885else
4886  enableval=all
4887fi
4888
4889case "$enableval" in
4890  all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore CBackend MSIL CppBackend" ;;
4891  host-only)
4892    case "$llvm_cv_target_arch" in
4893      x86)     TARGETS_TO_BUILD="X86" ;;
4894      x86_64)  TARGETS_TO_BUILD="X86" ;;
4895      Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4896      PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4897      Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4898      IA64)    TARGETS_TO_BUILD="IA64" ;;
4899      ARM)     TARGETS_TO_BUILD="ARM" ;;
4900      Mips)    TARGETS_TO_BUILD="Mips" ;;
4901      CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4902      PIC16)   TARGETS_TO_BUILD="PIC16" ;;
4903      XCore)   TARGETS_TO_BUILD="XCore" ;;
4904      *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4905echo "$as_me: error: Can not set target to build" >&2;}
4906   { (exit 1); exit 1; }; } ;;
4907    esac
4908    ;;
4909  *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4910      case "$a_target" in
4911        x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4912        x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4913        sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4914        powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4915        alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4916        ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4917        arm)     TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4918        mips)    TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4919        spu)     TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4920        pic16)   TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4921        xcore)   TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4922        cbe)     TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4923        msil)    TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4924        cpp)     TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4925        *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4926echo "$as_me: error: Unrecognized target $a_target" >&2;}
4927   { (exit 1); exit 1; }; } ;;
4928      esac
4929  done
4930  ;;
4931esac
4932TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4933
4934
4935# Check whether --enable-cbe-printf-a was given.
4936if test "${enable_cbe_printf_a+set}" = set; then
4937  enableval=$enable_cbe_printf_a;
4938else
4939  enableval=default
4940fi
4941
4942case "$enableval" in
4943  yes) ENABLE_CBE_PRINTF_A=1
4944 ;;
4945  no)  ENABLE_CBE_PRINTF_A=0
4946 ;;
4947  default)  ENABLE_CBE_PRINTF_A=1
4948 ;;
4949  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4950echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4951   { (exit 1); exit 1; }; } ;;
4952esac
4953
4954cat >>confdefs.h <<_ACEOF
4955#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4956_ACEOF
4957
4958
4959
4960# Check whether --with-llvmgccdir was given.
4961if test "${with_llvmgccdir+set}" = set; then
4962  withval=$with_llvmgccdir;
4963else
4964  withval=default
4965fi
4966
4967case "$withval" in
4968  default) WITH_LLVMGCCDIR=default ;;
4969  /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4970  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4971echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4972   { (exit 1); exit 1; }; } ;;
4973esac
4974
4975
4976# Check whether --with-llvmgcc was given.
4977if test "${with_llvmgcc+set}" = set; then
4978  withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4979      WITH_LLVMGCCDIR=""
4980fi
4981
4982
4983
4984# Check whether --with-llvmgxx was given.
4985if test "${with_llvmgxx+set}" = set; then
4986  withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4987    WITH_LLVMGCCDIR=""
4988fi
4989
4990
4991if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4992   { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4993echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4994   { (exit 1); exit 1; }; };
4995fi
4996
4997if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4998   { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4999echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5000   { (exit 1); exit 1; }; };
5001fi
5002
5003
5004# Check whether --with-extra-options was given.
5005if test "${with_extra_options+set}" = set; then
5006  withval=$with_extra_options;
5007else
5008  withval=default
5009fi
5010
5011case "$withval" in
5012  default) EXTRA_OPTIONS= ;;
5013  *) EXTRA_OPTIONS=$withval ;;
5014esac
5015EXTRA_OPTIONS=$EXTRA_OPTIONS
5016
5017
5018# Check whether --enable-bindings was given.
5019if test "${enable_bindings+set}" = set; then
5020  enableval=$enable_bindings;
5021else
5022  enableval=default
5023fi
5024
5025BINDINGS_TO_BUILD=""
5026case "$enableval" in
5027  yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5028  all ) BINDINGS_TO_BUILD="ocaml" ;;
5029  none | no) BINDINGS_TO_BUILD="" ;;
5030  *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5031      case "$a_binding" in
5032        ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5033        *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5034echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5035   { (exit 1); exit 1; }; } ;;
5036      esac
5037  done
5038  ;;
5039esac
5040
5041
5042# Check whether --with-ocaml-libdir was given.
5043if test "${with_ocaml_libdir+set}" = set; then
5044  withval=$with_ocaml_libdir;
5045else
5046  withval=auto
5047fi
5048
5049case "$withval" in
5050  auto) with_ocaml_libdir="$withval" ;;
5051  /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5052  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5053echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5054   { (exit 1); exit 1; }; } ;;
5055esac
5056
5057
5058# Check whether --with-binutils-include was given.
5059if test "${with_binutils_include+set}" = set; then
5060  withval=$with_binutils_include;
5061else
5062  withval=default
5063fi
5064
5065case "$withval" in
5066  default) WITH_BINUTILS_INCDIR=default ;;
5067  /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5068  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5069echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5070   { (exit 1); exit 1; }; } ;;
5071esac
5072if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5073  BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5074
5075  if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5076     echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5077     { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5078echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5079   { (exit 1); exit 1; }; };
5080  fi
5081fi
5082
5083
5084ac_ext=c
5085ac_cpp='$CPP $CPPFLAGS'
5086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5088ac_compiler_gnu=$ac_cv_c_compiler_gnu
5089{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5090echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5091# On Suns, sometimes $CPP names a directory.
5092if test -n "$CPP" && test -d "$CPP"; then
5093  CPP=
5094fi
5095if test -z "$CPP"; then
5096  if test "${ac_cv_prog_CPP+set}" = set; then
5097  echo $ECHO_N "(cached) $ECHO_C" >&6
5098else
5099      # Double quotes because CPP needs to be expanded
5100    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5101    do
5102      ac_preproc_ok=false
5103for ac_c_preproc_warn_flag in '' yes
5104do
5105  # Use a header file that comes with gcc, so configuring glibc
5106  # with a fresh cross-compiler works.
5107  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5108  # <limits.h> exists even on freestanding compilers.
5109  # On the NeXT, cc -E runs the code through the compiler's parser,
5110  # not just through cpp. "Syntax error" is here to catch this case.
5111  cat >conftest.$ac_ext <<_ACEOF
5112/* confdefs.h.  */
5113_ACEOF
5114cat confdefs.h >>conftest.$ac_ext
5115cat >>conftest.$ac_ext <<_ACEOF
5116/* end confdefs.h.  */
5117#ifdef __STDC__
5118# include <limits.h>
5119#else
5120# include <assert.h>
5121#endif
5122		     Syntax error
5123_ACEOF
5124if { (ac_try="$ac_cpp conftest.$ac_ext"
5125case "(($ac_try" in
5126  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5127  *) ac_try_echo=$ac_try;;
5128esac
5129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5130  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5131  ac_status=$?
5132  grep -v '^ *+' conftest.er1 >conftest.err
5133  rm -f conftest.er1
5134  cat conftest.err >&5
5135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136  (exit $ac_status); } >/dev/null; then
5137  if test -s conftest.err; then
5138    ac_cpp_err=$ac_c_preproc_warn_flag
5139    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5140  else
5141    ac_cpp_err=
5142  fi
5143else
5144  ac_cpp_err=yes
5145fi
5146if test -z "$ac_cpp_err"; then
5147  :
5148else
5149  echo "$as_me: failed program was:" >&5
5150sed 's/^/| /' conftest.$ac_ext >&5
5151
5152  # Broken: fails on valid input.
5153continue
5154fi
5155
5156rm -f conftest.err conftest.$ac_ext
5157
5158  # OK, works on sane cases.  Now check whether nonexistent headers
5159  # can be detected and how.
5160  cat >conftest.$ac_ext <<_ACEOF
5161/* confdefs.h.  */
5162_ACEOF
5163cat confdefs.h >>conftest.$ac_ext
5164cat >>conftest.$ac_ext <<_ACEOF
5165/* end confdefs.h.  */
5166#include <ac_nonexistent.h>
5167_ACEOF
5168if { (ac_try="$ac_cpp conftest.$ac_ext"
5169case "(($ac_try" in
5170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5171  *) ac_try_echo=$ac_try;;
5172esac
5173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5174  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5175  ac_status=$?
5176  grep -v '^ *+' conftest.er1 >conftest.err
5177  rm -f conftest.er1
5178  cat conftest.err >&5
5179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180  (exit $ac_status); } >/dev/null; then
5181  if test -s conftest.err; then
5182    ac_cpp_err=$ac_c_preproc_warn_flag
5183    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5184  else
5185    ac_cpp_err=
5186  fi
5187else
5188  ac_cpp_err=yes
5189fi
5190if test -z "$ac_cpp_err"; then
5191  # Broken: success on invalid input.
5192continue
5193else
5194  echo "$as_me: failed program was:" >&5
5195sed 's/^/| /' conftest.$ac_ext >&5
5196
5197  # Passes both tests.
5198ac_preproc_ok=:
5199break
5200fi
5201
5202rm -f conftest.err conftest.$ac_ext
5203
5204done
5205# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5206rm -f conftest.err conftest.$ac_ext
5207if $ac_preproc_ok; then
5208  break
5209fi
5210
5211    done
5212    ac_cv_prog_CPP=$CPP
5213
5214fi
5215  CPP=$ac_cv_prog_CPP
5216else
5217  ac_cv_prog_CPP=$CPP
5218fi
5219{ echo "$as_me:$LINENO: result: $CPP" >&5
5220echo "${ECHO_T}$CPP" >&6; }
5221ac_preproc_ok=false
5222for ac_c_preproc_warn_flag in '' yes
5223do
5224  # Use a header file that comes with gcc, so configuring glibc
5225  # with a fresh cross-compiler works.
5226  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5227  # <limits.h> exists even on freestanding compilers.
5228  # On the NeXT, cc -E runs the code through the compiler's parser,
5229  # not just through cpp. "Syntax error" is here to catch this case.
5230  cat >conftest.$ac_ext <<_ACEOF
5231/* confdefs.h.  */
5232_ACEOF
5233cat confdefs.h >>conftest.$ac_ext
5234cat >>conftest.$ac_ext <<_ACEOF
5235/* end confdefs.h.  */
5236#ifdef __STDC__
5237# include <limits.h>
5238#else
5239# include <assert.h>
5240#endif
5241		     Syntax error
5242_ACEOF
5243if { (ac_try="$ac_cpp conftest.$ac_ext"
5244case "(($ac_try" in
5245  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5246  *) ac_try_echo=$ac_try;;
5247esac
5248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5249  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5250  ac_status=$?
5251  grep -v '^ *+' conftest.er1 >conftest.err
5252  rm -f conftest.er1
5253  cat conftest.err >&5
5254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255  (exit $ac_status); } >/dev/null; then
5256  if test -s conftest.err; then
5257    ac_cpp_err=$ac_c_preproc_warn_flag
5258    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5259  else
5260    ac_cpp_err=
5261  fi
5262else
5263  ac_cpp_err=yes
5264fi
5265if test -z "$ac_cpp_err"; then
5266  :
5267else
5268  echo "$as_me: failed program was:" >&5
5269sed 's/^/| /' conftest.$ac_ext >&5
5270
5271  # Broken: fails on valid input.
5272continue
5273fi
5274
5275rm -f conftest.err conftest.$ac_ext
5276
5277  # OK, works on sane cases.  Now check whether nonexistent headers
5278  # can be detected and how.
5279  cat >conftest.$ac_ext <<_ACEOF
5280/* confdefs.h.  */
5281_ACEOF
5282cat confdefs.h >>conftest.$ac_ext
5283cat >>conftest.$ac_ext <<_ACEOF
5284/* end confdefs.h.  */
5285#include <ac_nonexistent.h>
5286_ACEOF
5287if { (ac_try="$ac_cpp conftest.$ac_ext"
5288case "(($ac_try" in
5289  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5290  *) ac_try_echo=$ac_try;;
5291esac
5292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5293  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5294  ac_status=$?
5295  grep -v '^ *+' conftest.er1 >conftest.err
5296  rm -f conftest.er1
5297  cat conftest.err >&5
5298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299  (exit $ac_status); } >/dev/null; then
5300  if test -s conftest.err; then
5301    ac_cpp_err=$ac_c_preproc_warn_flag
5302    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5303  else
5304    ac_cpp_err=
5305  fi
5306else
5307  ac_cpp_err=yes
5308fi
5309if test -z "$ac_cpp_err"; then
5310  # Broken: success on invalid input.
5311continue
5312else
5313  echo "$as_me: failed program was:" >&5
5314sed 's/^/| /' conftest.$ac_ext >&5
5315
5316  # Passes both tests.
5317ac_preproc_ok=:
5318break
5319fi
5320
5321rm -f conftest.err conftest.$ac_ext
5322
5323done
5324# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5325rm -f conftest.err conftest.$ac_ext
5326if $ac_preproc_ok; then
5327  :
5328else
5329  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5330See \`config.log' for more details." >&5
5331echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5332See \`config.log' for more details." >&2;}
5333   { (exit 1); exit 1; }; }
5334fi
5335
5336ac_ext=c
5337ac_cpp='$CPP $CPPFLAGS'
5338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5340ac_compiler_gnu=$ac_cv_c_compiler_gnu
5341
5342ac_ext=c
5343ac_cpp='$CPP $CPPFLAGS'
5344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5346ac_compiler_gnu=$ac_cv_c_compiler_gnu
5347if test -n "$ac_tool_prefix"; then
5348  for ac_prog in gcc
5349  do
5350    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5351set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5352{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5354if test "${ac_cv_prog_CC+set}" = set; then
5355  echo $ECHO_N "(cached) $ECHO_C" >&6
5356else
5357  if test -n "$CC"; then
5358  ac_cv_prog_CC="$CC" # Let the user override the test.
5359else
5360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361for as_dir in $PATH
5362do
5363  IFS=$as_save_IFS
5364  test -z "$as_dir" && as_dir=.
5365  for ac_exec_ext in '' $ac_executable_extensions; do
5366  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5367    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5368    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5369    break 2
5370  fi
5371done
5372done
5373IFS=$as_save_IFS
5374
5375fi
5376fi
5377CC=$ac_cv_prog_CC
5378if test -n "$CC"; then
5379  { echo "$as_me:$LINENO: result: $CC" >&5
5380echo "${ECHO_T}$CC" >&6; }
5381else
5382  { echo "$as_me:$LINENO: result: no" >&5
5383echo "${ECHO_T}no" >&6; }
5384fi
5385
5386
5387    test -n "$CC" && break
5388  done
5389fi
5390if test -z "$CC"; then
5391  ac_ct_CC=$CC
5392  for ac_prog in gcc
5393do
5394  # Extract the first word of "$ac_prog", so it can be a program name with args.
5395set dummy $ac_prog; ac_word=$2
5396{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5398if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5399  echo $ECHO_N "(cached) $ECHO_C" >&6
5400else
5401  if test -n "$ac_ct_CC"; then
5402  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5403else
5404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405for as_dir in $PATH
5406do
5407  IFS=$as_save_IFS
5408  test -z "$as_dir" && as_dir=.
5409  for ac_exec_ext in '' $ac_executable_extensions; do
5410  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5411    ac_cv_prog_ac_ct_CC="$ac_prog"
5412    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5413    break 2
5414  fi
5415done
5416done
5417IFS=$as_save_IFS
5418
5419fi
5420fi
5421ac_ct_CC=$ac_cv_prog_ac_ct_CC
5422if test -n "$ac_ct_CC"; then
5423  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5424echo "${ECHO_T}$ac_ct_CC" >&6; }
5425else
5426  { echo "$as_me:$LINENO: result: no" >&5
5427echo "${ECHO_T}no" >&6; }
5428fi
5429
5430
5431  test -n "$ac_ct_CC" && break
5432done
5433
5434  if test "x$ac_ct_CC" = x; then
5435    CC=""
5436  else
5437    case $cross_compiling:$ac_tool_warned in
5438yes:)
5439{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5440whose name does not start with the host triplet.  If you think this
5441configuration is useful to you, please write to autoconf@gnu.org." >&5
5442echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5443whose name does not start with the host triplet.  If you think this
5444configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5445ac_tool_warned=yes ;;
5446esac
5447    CC=$ac_ct_CC
5448  fi
5449fi
5450
5451
5452test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5453See \`config.log' for more details." >&5
5454echo "$as_me: error: no acceptable C compiler found in \$PATH
5455See \`config.log' for more details." >&2;}
5456   { (exit 1); exit 1; }; }
5457
5458# Provide some information about the compiler.
5459echo "$as_me:$LINENO: checking for C compiler version" >&5
5460ac_compiler=`set X $ac_compile; echo $2`
5461{ (ac_try="$ac_compiler --version >&5"
5462case "(($ac_try" in
5463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5464  *) ac_try_echo=$ac_try;;
5465esac
5466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5467  (eval "$ac_compiler --version >&5") 2>&5
5468  ac_status=$?
5469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470  (exit $ac_status); }
5471{ (ac_try="$ac_compiler -v >&5"
5472case "(($ac_try" in
5473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474  *) ac_try_echo=$ac_try;;
5475esac
5476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5477  (eval "$ac_compiler -v >&5") 2>&5
5478  ac_status=$?
5479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480  (exit $ac_status); }
5481{ (ac_try="$ac_compiler -V >&5"
5482case "(($ac_try" in
5483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5484  *) ac_try_echo=$ac_try;;
5485esac
5486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5487  (eval "$ac_compiler -V >&5") 2>&5
5488  ac_status=$?
5489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490  (exit $ac_status); }
5491
5492{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5493echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5494if test "${ac_cv_c_compiler_gnu+set}" = set; then
5495  echo $ECHO_N "(cached) $ECHO_C" >&6
5496else
5497  cat >conftest.$ac_ext <<_ACEOF
5498/* confdefs.h.  */
5499_ACEOF
5500cat confdefs.h >>conftest.$ac_ext
5501cat >>conftest.$ac_ext <<_ACEOF
5502/* end confdefs.h.  */
5503
5504int
5505main ()
5506{
5507#ifndef __GNUC__
5508       choke me
5509#endif
5510
5511  ;
5512  return 0;
5513}
5514_ACEOF
5515rm -f conftest.$ac_objext
5516if { (ac_try="$ac_compile"
5517case "(($ac_try" in
5518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5519  *) ac_try_echo=$ac_try;;
5520esac
5521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5522  (eval "$ac_compile") 2>conftest.er1
5523  ac_status=$?
5524  grep -v '^ *+' conftest.er1 >conftest.err
5525  rm -f conftest.er1
5526  cat conftest.err >&5
5527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528  (exit $ac_status); } &&
5529	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5530  { (case "(($ac_try" in
5531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5532  *) ac_try_echo=$ac_try;;
5533esac
5534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5535  (eval "$ac_try") 2>&5
5536  ac_status=$?
5537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538  (exit $ac_status); }; } &&
5539	 { ac_try='test -s conftest.$ac_objext'
5540  { (case "(($ac_try" in
5541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5542  *) ac_try_echo=$ac_try;;
5543esac
5544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5545  (eval "$ac_try") 2>&5
5546  ac_status=$?
5547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548  (exit $ac_status); }; }; then
5549  ac_compiler_gnu=yes
5550else
5551  echo "$as_me: failed program was:" >&5
5552sed 's/^/| /' conftest.$ac_ext >&5
5553
5554	ac_compiler_gnu=no
5555fi
5556
5557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5558ac_cv_c_compiler_gnu=$ac_compiler_gnu
5559
5560fi
5561{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5562echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5563GCC=`test $ac_compiler_gnu = yes && echo yes`
5564ac_test_CFLAGS=${CFLAGS+set}
5565ac_save_CFLAGS=$CFLAGS
5566{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5567echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5568if test "${ac_cv_prog_cc_g+set}" = set; then
5569  echo $ECHO_N "(cached) $ECHO_C" >&6
5570else
5571  ac_save_c_werror_flag=$ac_c_werror_flag
5572   ac_c_werror_flag=yes
5573   ac_cv_prog_cc_g=no
5574   CFLAGS="-g"
5575   cat >conftest.$ac_ext <<_ACEOF
5576/* confdefs.h.  */
5577_ACEOF
5578cat confdefs.h >>conftest.$ac_ext
5579cat >>conftest.$ac_ext <<_ACEOF
5580/* end confdefs.h.  */
5581
5582int
5583main ()
5584{
5585
5586  ;
5587  return 0;
5588}
5589_ACEOF
5590rm -f conftest.$ac_objext
5591if { (ac_try="$ac_compile"
5592case "(($ac_try" in
5593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5594  *) ac_try_echo=$ac_try;;
5595esac
5596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5597  (eval "$ac_compile") 2>conftest.er1
5598  ac_status=$?
5599  grep -v '^ *+' conftest.er1 >conftest.err
5600  rm -f conftest.er1
5601  cat conftest.err >&5
5602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603  (exit $ac_status); } &&
5604	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5605  { (case "(($ac_try" in
5606  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5607  *) ac_try_echo=$ac_try;;
5608esac
5609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5610  (eval "$ac_try") 2>&5
5611  ac_status=$?
5612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613  (exit $ac_status); }; } &&
5614	 { ac_try='test -s conftest.$ac_objext'
5615  { (case "(($ac_try" in
5616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5617  *) ac_try_echo=$ac_try;;
5618esac
5619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5620  (eval "$ac_try") 2>&5
5621  ac_status=$?
5622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623  (exit $ac_status); }; }; then
5624  ac_cv_prog_cc_g=yes
5625else
5626  echo "$as_me: failed program was:" >&5
5627sed 's/^/| /' conftest.$ac_ext >&5
5628
5629	CFLAGS=""
5630      cat >conftest.$ac_ext <<_ACEOF
5631/* confdefs.h.  */
5632_ACEOF
5633cat confdefs.h >>conftest.$ac_ext
5634cat >>conftest.$ac_ext <<_ACEOF
5635/* end confdefs.h.  */
5636
5637int
5638main ()
5639{
5640
5641  ;
5642  return 0;
5643}
5644_ACEOF
5645rm -f conftest.$ac_objext
5646if { (ac_try="$ac_compile"
5647case "(($ac_try" in
5648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5649  *) ac_try_echo=$ac_try;;
5650esac
5651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5652  (eval "$ac_compile") 2>conftest.er1
5653  ac_status=$?
5654  grep -v '^ *+' conftest.er1 >conftest.err
5655  rm -f conftest.er1
5656  cat conftest.err >&5
5657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658  (exit $ac_status); } &&
5659	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5660  { (case "(($ac_try" in
5661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5662  *) ac_try_echo=$ac_try;;
5663esac
5664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5665  (eval "$ac_try") 2>&5
5666  ac_status=$?
5667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668  (exit $ac_status); }; } &&
5669	 { ac_try='test -s conftest.$ac_objext'
5670  { (case "(($ac_try" in
5671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5672  *) ac_try_echo=$ac_try;;
5673esac
5674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5675  (eval "$ac_try") 2>&5
5676  ac_status=$?
5677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678  (exit $ac_status); }; }; then
5679  :
5680else
5681  echo "$as_me: failed program was:" >&5
5682sed 's/^/| /' conftest.$ac_ext >&5
5683
5684	ac_c_werror_flag=$ac_save_c_werror_flag
5685	 CFLAGS="-g"
5686	 cat >conftest.$ac_ext <<_ACEOF
5687/* confdefs.h.  */
5688_ACEOF
5689cat confdefs.h >>conftest.$ac_ext
5690cat >>conftest.$ac_ext <<_ACEOF
5691/* end confdefs.h.  */
5692
5693int
5694main ()
5695{
5696
5697  ;
5698  return 0;
5699}
5700_ACEOF
5701rm -f conftest.$ac_objext
5702if { (ac_try="$ac_compile"
5703case "(($ac_try" in
5704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5705  *) ac_try_echo=$ac_try;;
5706esac
5707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5708  (eval "$ac_compile") 2>conftest.er1
5709  ac_status=$?
5710  grep -v '^ *+' conftest.er1 >conftest.err
5711  rm -f conftest.er1
5712  cat conftest.err >&5
5713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714  (exit $ac_status); } &&
5715	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5716  { (case "(($ac_try" in
5717  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5718  *) ac_try_echo=$ac_try;;
5719esac
5720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5721  (eval "$ac_try") 2>&5
5722  ac_status=$?
5723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724  (exit $ac_status); }; } &&
5725	 { ac_try='test -s conftest.$ac_objext'
5726  { (case "(($ac_try" in
5727  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5728  *) ac_try_echo=$ac_try;;
5729esac
5730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5731  (eval "$ac_try") 2>&5
5732  ac_status=$?
5733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734  (exit $ac_status); }; }; then
5735  ac_cv_prog_cc_g=yes
5736else
5737  echo "$as_me: failed program was:" >&5
5738sed 's/^/| /' conftest.$ac_ext >&5
5739
5740
5741fi
5742
5743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5744fi
5745
5746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5747fi
5748
5749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5750   ac_c_werror_flag=$ac_save_c_werror_flag
5751fi
5752{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5753echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5754if test "$ac_test_CFLAGS" = set; then
5755  CFLAGS=$ac_save_CFLAGS
5756elif test $ac_cv_prog_cc_g = yes; then
5757  if test "$GCC" = yes; then
5758    CFLAGS="-g -O2"
5759  else
5760    CFLAGS="-g"
5761  fi
5762else
5763  if test "$GCC" = yes; then
5764    CFLAGS="-O2"
5765  else
5766    CFLAGS=
5767  fi
5768fi
5769{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5770echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5771if test "${ac_cv_prog_cc_c89+set}" = set; then
5772  echo $ECHO_N "(cached) $ECHO_C" >&6
5773else
5774  ac_cv_prog_cc_c89=no
5775ac_save_CC=$CC
5776cat >conftest.$ac_ext <<_ACEOF
5777/* confdefs.h.  */
5778_ACEOF
5779cat confdefs.h >>conftest.$ac_ext
5780cat >>conftest.$ac_ext <<_ACEOF
5781/* end confdefs.h.  */
5782#include <stdarg.h>
5783#include <stdio.h>
5784#include <sys/types.h>
5785#include <sys/stat.h>
5786/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5787struct buf { int x; };
5788FILE * (*rcsopen) (struct buf *, struct stat *, int);
5789static char *e (p, i)
5790     char **p;
5791     int i;
5792{
5793  return p[i];
5794}
5795static char *f (char * (*g) (char **, int), char **p, ...)
5796{
5797  char *s;
5798  va_list v;
5799  va_start (v,p);
5800  s = g (p, va_arg (v,int));
5801  va_end (v);
5802  return s;
5803}
5804
5805/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5806   function prototypes and stuff, but not '\xHH' hex character constants.
5807   These don't provoke an error unfortunately, instead are silently treated
5808   as 'x'.  The following induces an error, until -std is added to get
5809   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5810   array size at least.  It's necessary to write '\x00'==0 to get something
5811   that's true only with -std.  */
5812int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5813
5814/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5815   inside strings and character constants.  */
5816#define FOO(x) 'x'
5817int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5818
5819int test (int i, double x);
5820struct s1 {int (*f) (int a);};
5821struct s2 {int (*f) (double a);};
5822int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5823int argc;
5824char **argv;
5825int
5826main ()
5827{
5828return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5829  ;
5830  return 0;
5831}
5832_ACEOF
5833for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5834	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5835do
5836  CC="$ac_save_CC $ac_arg"
5837  rm -f conftest.$ac_objext
5838if { (ac_try="$ac_compile"
5839case "(($ac_try" in
5840  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5841  *) ac_try_echo=$ac_try;;
5842esac
5843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5844  (eval "$ac_compile") 2>conftest.er1
5845  ac_status=$?
5846  grep -v '^ *+' conftest.er1 >conftest.err
5847  rm -f conftest.er1
5848  cat conftest.err >&5
5849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850  (exit $ac_status); } &&
5851	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5852  { (case "(($ac_try" in
5853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5854  *) ac_try_echo=$ac_try;;
5855esac
5856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5857  (eval "$ac_try") 2>&5
5858  ac_status=$?
5859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860  (exit $ac_status); }; } &&
5861	 { ac_try='test -s conftest.$ac_objext'
5862  { (case "(($ac_try" in
5863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5864  *) ac_try_echo=$ac_try;;
5865esac
5866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5867  (eval "$ac_try") 2>&5
5868  ac_status=$?
5869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870  (exit $ac_status); }; }; then
5871  ac_cv_prog_cc_c89=$ac_arg
5872else
5873  echo "$as_me: failed program was:" >&5
5874sed 's/^/| /' conftest.$ac_ext >&5
5875
5876
5877fi
5878
5879rm -f core conftest.err conftest.$ac_objext
5880  test "x$ac_cv_prog_cc_c89" != "xno" && break
5881done
5882rm -f conftest.$ac_ext
5883CC=$ac_save_CC
5884
5885fi
5886# AC_CACHE_VAL
5887case "x$ac_cv_prog_cc_c89" in
5888  x)
5889    { echo "$as_me:$LINENO: result: none needed" >&5
5890echo "${ECHO_T}none needed" >&6; } ;;
5891  xno)
5892    { echo "$as_me:$LINENO: result: unsupported" >&5
5893echo "${ECHO_T}unsupported" >&6; } ;;
5894  *)
5895    CC="$CC $ac_cv_prog_cc_c89"
5896    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5897echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5898esac
5899
5900
5901ac_ext=c
5902ac_cpp='$CPP $CPPFLAGS'
5903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5905ac_compiler_gnu=$ac_cv_c_compiler_gnu
5906
5907ac_ext=cpp
5908ac_cpp='$CXXCPP $CPPFLAGS'
5909ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5910ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5911ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5912if test -z "$CXX"; then
5913  if test -n "$CCC"; then
5914    CXX=$CCC
5915  else
5916    if test -n "$ac_tool_prefix"; then
5917  for ac_prog in g++
5918  do
5919    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5920set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5921{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5923if test "${ac_cv_prog_CXX+set}" = set; then
5924  echo $ECHO_N "(cached) $ECHO_C" >&6
5925else
5926  if test -n "$CXX"; then
5927  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5928else
5929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930for as_dir in $PATH
5931do
5932  IFS=$as_save_IFS
5933  test -z "$as_dir" && as_dir=.
5934  for ac_exec_ext in '' $ac_executable_extensions; do
5935  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5936    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5937    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5938    break 2
5939  fi
5940done
5941done
5942IFS=$as_save_IFS
5943
5944fi
5945fi
5946CXX=$ac_cv_prog_CXX
5947if test -n "$CXX"; then
5948  { echo "$as_me:$LINENO: result: $CXX" >&5
5949echo "${ECHO_T}$CXX" >&6; }
5950else
5951  { echo "$as_me:$LINENO: result: no" >&5
5952echo "${ECHO_T}no" >&6; }
5953fi
5954
5955
5956    test -n "$CXX" && break
5957  done
5958fi
5959if test -z "$CXX"; then
5960  ac_ct_CXX=$CXX
5961  for ac_prog in g++
5962do
5963  # Extract the first word of "$ac_prog", so it can be a program name with args.
5964set dummy $ac_prog; ac_word=$2
5965{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5967if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5968  echo $ECHO_N "(cached) $ECHO_C" >&6
5969else
5970  if test -n "$ac_ct_CXX"; then
5971  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5972else
5973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974for as_dir in $PATH
5975do
5976  IFS=$as_save_IFS
5977  test -z "$as_dir" && as_dir=.
5978  for ac_exec_ext in '' $ac_executable_extensions; do
5979  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5980    ac_cv_prog_ac_ct_CXX="$ac_prog"
5981    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5982    break 2
5983  fi
5984done
5985done
5986IFS=$as_save_IFS
5987
5988fi
5989fi
5990ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5991if test -n "$ac_ct_CXX"; then
5992  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5993echo "${ECHO_T}$ac_ct_CXX" >&6; }
5994else
5995  { echo "$as_me:$LINENO: result: no" >&5
5996echo "${ECHO_T}no" >&6; }
5997fi
5998
5999
6000  test -n "$ac_ct_CXX" && break
6001done
6002
6003  if test "x$ac_ct_CXX" = x; then
6004    CXX="g++"
6005  else
6006    case $cross_compiling:$ac_tool_warned in
6007yes:)
6008{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6009whose name does not start with the host triplet.  If you think this
6010configuration is useful to you, please write to autoconf@gnu.org." >&5
6011echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6012whose name does not start with the host triplet.  If you think this
6013configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6014ac_tool_warned=yes ;;
6015esac
6016    CXX=$ac_ct_CXX
6017  fi
6018fi
6019
6020  fi
6021fi
6022# Provide some information about the compiler.
6023echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6024ac_compiler=`set X $ac_compile; echo $2`
6025{ (ac_try="$ac_compiler --version >&5"
6026case "(($ac_try" in
6027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6028  *) ac_try_echo=$ac_try;;
6029esac
6030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6031  (eval "$ac_compiler --version >&5") 2>&5
6032  ac_status=$?
6033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034  (exit $ac_status); }
6035{ (ac_try="$ac_compiler -v >&5"
6036case "(($ac_try" in
6037  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6038  *) ac_try_echo=$ac_try;;
6039esac
6040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6041  (eval "$ac_compiler -v >&5") 2>&5
6042  ac_status=$?
6043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044  (exit $ac_status); }
6045{ (ac_try="$ac_compiler -V >&5"
6046case "(($ac_try" in
6047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6048  *) ac_try_echo=$ac_try;;
6049esac
6050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6051  (eval "$ac_compiler -V >&5") 2>&5
6052  ac_status=$?
6053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054  (exit $ac_status); }
6055
6056{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6057echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6058if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6059  echo $ECHO_N "(cached) $ECHO_C" >&6
6060else
6061  cat >conftest.$ac_ext <<_ACEOF
6062/* confdefs.h.  */
6063_ACEOF
6064cat confdefs.h >>conftest.$ac_ext
6065cat >>conftest.$ac_ext <<_ACEOF
6066/* end confdefs.h.  */
6067
6068int
6069main ()
6070{
6071#ifndef __GNUC__
6072       choke me
6073#endif
6074
6075  ;
6076  return 0;
6077}
6078_ACEOF
6079rm -f conftest.$ac_objext
6080if { (ac_try="$ac_compile"
6081case "(($ac_try" in
6082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6083  *) ac_try_echo=$ac_try;;
6084esac
6085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6086  (eval "$ac_compile") 2>conftest.er1
6087  ac_status=$?
6088  grep -v '^ *+' conftest.er1 >conftest.err
6089  rm -f conftest.er1
6090  cat conftest.err >&5
6091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092  (exit $ac_status); } &&
6093	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6094  { (case "(($ac_try" in
6095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6096  *) ac_try_echo=$ac_try;;
6097esac
6098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6099  (eval "$ac_try") 2>&5
6100  ac_status=$?
6101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102  (exit $ac_status); }; } &&
6103	 { ac_try='test -s conftest.$ac_objext'
6104  { (case "(($ac_try" in
6105  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6106  *) ac_try_echo=$ac_try;;
6107esac
6108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6109  (eval "$ac_try") 2>&5
6110  ac_status=$?
6111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112  (exit $ac_status); }; }; then
6113  ac_compiler_gnu=yes
6114else
6115  echo "$as_me: failed program was:" >&5
6116sed 's/^/| /' conftest.$ac_ext >&5
6117
6118	ac_compiler_gnu=no
6119fi
6120
6121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6122ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6123
6124fi
6125{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6126echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6127GXX=`test $ac_compiler_gnu = yes && echo yes`
6128ac_test_CXXFLAGS=${CXXFLAGS+set}
6129ac_save_CXXFLAGS=$CXXFLAGS
6130{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6131echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6132if test "${ac_cv_prog_cxx_g+set}" = set; then
6133  echo $ECHO_N "(cached) $ECHO_C" >&6
6134else
6135  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6136   ac_cxx_werror_flag=yes
6137   ac_cv_prog_cxx_g=no
6138   CXXFLAGS="-g"
6139   cat >conftest.$ac_ext <<_ACEOF
6140/* confdefs.h.  */
6141_ACEOF
6142cat confdefs.h >>conftest.$ac_ext
6143cat >>conftest.$ac_ext <<_ACEOF
6144/* end confdefs.h.  */
6145
6146int
6147main ()
6148{
6149
6150  ;
6151  return 0;
6152}
6153_ACEOF
6154rm -f conftest.$ac_objext
6155if { (ac_try="$ac_compile"
6156case "(($ac_try" in
6157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6158  *) ac_try_echo=$ac_try;;
6159esac
6160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6161  (eval "$ac_compile") 2>conftest.er1
6162  ac_status=$?
6163  grep -v '^ *+' conftest.er1 >conftest.err
6164  rm -f conftest.er1
6165  cat conftest.err >&5
6166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167  (exit $ac_status); } &&
6168	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6169  { (case "(($ac_try" in
6170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171  *) ac_try_echo=$ac_try;;
6172esac
6173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6174  (eval "$ac_try") 2>&5
6175  ac_status=$?
6176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177  (exit $ac_status); }; } &&
6178	 { ac_try='test -s conftest.$ac_objext'
6179  { (case "(($ac_try" in
6180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6181  *) ac_try_echo=$ac_try;;
6182esac
6183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6184  (eval "$ac_try") 2>&5
6185  ac_status=$?
6186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187  (exit $ac_status); }; }; then
6188  ac_cv_prog_cxx_g=yes
6189else
6190  echo "$as_me: failed program was:" >&5
6191sed 's/^/| /' conftest.$ac_ext >&5
6192
6193	CXXFLAGS=""
6194      cat >conftest.$ac_ext <<_ACEOF
6195/* confdefs.h.  */
6196_ACEOF
6197cat confdefs.h >>conftest.$ac_ext
6198cat >>conftest.$ac_ext <<_ACEOF
6199/* end confdefs.h.  */
6200
6201int
6202main ()
6203{
6204
6205  ;
6206  return 0;
6207}
6208_ACEOF
6209rm -f conftest.$ac_objext
6210if { (ac_try="$ac_compile"
6211case "(($ac_try" in
6212  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6213  *) ac_try_echo=$ac_try;;
6214esac
6215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6216  (eval "$ac_compile") 2>conftest.er1
6217  ac_status=$?
6218  grep -v '^ *+' conftest.er1 >conftest.err
6219  rm -f conftest.er1
6220  cat conftest.err >&5
6221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222  (exit $ac_status); } &&
6223	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6224  { (case "(($ac_try" in
6225  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6226  *) ac_try_echo=$ac_try;;
6227esac
6228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6229  (eval "$ac_try") 2>&5
6230  ac_status=$?
6231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232  (exit $ac_status); }; } &&
6233	 { ac_try='test -s conftest.$ac_objext'
6234  { (case "(($ac_try" in
6235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6236  *) ac_try_echo=$ac_try;;
6237esac
6238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6239  (eval "$ac_try") 2>&5
6240  ac_status=$?
6241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242  (exit $ac_status); }; }; then
6243  :
6244else
6245  echo "$as_me: failed program was:" >&5
6246sed 's/^/| /' conftest.$ac_ext >&5
6247
6248	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6249	 CXXFLAGS="-g"
6250	 cat >conftest.$ac_ext <<_ACEOF
6251/* confdefs.h.  */
6252_ACEOF
6253cat confdefs.h >>conftest.$ac_ext
6254cat >>conftest.$ac_ext <<_ACEOF
6255/* end confdefs.h.  */
6256
6257int
6258main ()
6259{
6260
6261  ;
6262  return 0;
6263}
6264_ACEOF
6265rm -f conftest.$ac_objext
6266if { (ac_try="$ac_compile"
6267case "(($ac_try" in
6268  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269  *) ac_try_echo=$ac_try;;
6270esac
6271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6272  (eval "$ac_compile") 2>conftest.er1
6273  ac_status=$?
6274  grep -v '^ *+' conftest.er1 >conftest.err
6275  rm -f conftest.er1
6276  cat conftest.err >&5
6277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278  (exit $ac_status); } &&
6279	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6280  { (case "(($ac_try" in
6281  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6282  *) ac_try_echo=$ac_try;;
6283esac
6284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6285  (eval "$ac_try") 2>&5
6286  ac_status=$?
6287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288  (exit $ac_status); }; } &&
6289	 { ac_try='test -s conftest.$ac_objext'
6290  { (case "(($ac_try" in
6291  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6292  *) ac_try_echo=$ac_try;;
6293esac
6294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6295  (eval "$ac_try") 2>&5
6296  ac_status=$?
6297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298  (exit $ac_status); }; }; then
6299  ac_cv_prog_cxx_g=yes
6300else
6301  echo "$as_me: failed program was:" >&5
6302sed 's/^/| /' conftest.$ac_ext >&5
6303
6304
6305fi
6306
6307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6308fi
6309
6310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6311fi
6312
6313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6314   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6315fi
6316{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6317echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6318if test "$ac_test_CXXFLAGS" = set; then
6319  CXXFLAGS=$ac_save_CXXFLAGS
6320elif test $ac_cv_prog_cxx_g = yes; then
6321  if test "$GXX" = yes; then
6322    CXXFLAGS="-g -O2"
6323  else
6324    CXXFLAGS="-g"
6325  fi
6326else
6327  if test "$GXX" = yes; then
6328    CXXFLAGS="-O2"
6329  else
6330    CXXFLAGS=
6331  fi
6332fi
6333ac_ext=c
6334ac_cpp='$CPP $CPPFLAGS'
6335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6337ac_compiler_gnu=$ac_cv_c_compiler_gnu
6338
6339
6340{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6341echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6342if test "${lt_cv_path_NM+set}" = set; then
6343  echo $ECHO_N "(cached) $ECHO_C" >&6
6344else
6345  if test -n "$NM"; then
6346  # Let the user override the test.
6347  lt_cv_path_NM="$NM"
6348else
6349  lt_nm_to_check="${ac_tool_prefix}nm"
6350  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6351    lt_nm_to_check="$lt_nm_to_check nm"
6352  fi
6353  for lt_tmp_nm in $lt_nm_to_check; do
6354    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6355    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6356      IFS="$lt_save_ifs"
6357      test -z "$ac_dir" && ac_dir=.
6358      tmp_nm="$ac_dir/$lt_tmp_nm"
6359      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6360	# Check to see if the nm accepts a BSD-compat flag.
6361	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6362	#   nm: unknown option "B" ignored
6363	# Tru64's nm complains that /dev/null is an invalid object file
6364	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6365	*/dev/null* | *'Invalid file or object type'*)
6366	  lt_cv_path_NM="$tmp_nm -B"
6367	  break
6368	  ;;
6369	*)
6370	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6371	  */dev/null*)
6372	    lt_cv_path_NM="$tmp_nm -p"
6373	    break
6374	    ;;
6375	  *)
6376	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6377	    continue # so that we can try to find one that supports BSD flags
6378	    ;;
6379	  esac
6380	  ;;
6381	esac
6382      fi
6383    done
6384    IFS="$lt_save_ifs"
6385  done
6386  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6387fi
6388fi
6389{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6390echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6391NM="$lt_cv_path_NM"
6392
6393
6394
6395{ echo "$as_me:$LINENO: checking for GNU make" >&5
6396echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6397if test "${llvm_cv_gnu_make_command+set}" = set; then
6398  echo $ECHO_N "(cached) $ECHO_C" >&6
6399else
6400  llvm_cv_gnu_make_command=''
6401 for a in "$MAKE" make gmake gnumake ; do
6402  if test -z "$a" ; then continue ; fi ;
6403  if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6404  then
6405   llvm_cv_gnu_make_command=$a ;
6406   break;
6407  fi
6408 done
6409fi
6410{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6411echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6412 if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6413   ifGNUmake='' ;
6414 else
6415   ifGNUmake='#' ;
6416   { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6417echo "${ECHO_T}\"Not found\"" >&6; };
6418 fi
6419
6420
6421{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6422echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6423LN_S=$as_ln_s
6424if test "$LN_S" = "ln -s"; then
6425  { echo "$as_me:$LINENO: result: yes" >&5
6426echo "${ECHO_T}yes" >&6; }
6427else
6428  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6429echo "${ECHO_T}no, using $LN_S" >&6; }
6430fi
6431
6432# Extract the first word of "cmp", so it can be a program name with args.
6433set dummy cmp; ac_word=$2
6434{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6436if test "${ac_cv_path_CMP+set}" = set; then
6437  echo $ECHO_N "(cached) $ECHO_C" >&6
6438else
6439  case $CMP in
6440  [\\/]* | ?:[\\/]*)
6441  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6442  ;;
6443  *)
6444  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445for as_dir in $PATH
6446do
6447  IFS=$as_save_IFS
6448  test -z "$as_dir" && as_dir=.
6449  for ac_exec_ext in '' $ac_executable_extensions; do
6450  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6451    ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6452    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6453    break 2
6454  fi
6455done
6456done
6457IFS=$as_save_IFS
6458
6459  test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6460  ;;
6461esac
6462fi
6463CMP=$ac_cv_path_CMP
6464if test -n "$CMP"; then
6465  { echo "$as_me:$LINENO: result: $CMP" >&5
6466echo "${ECHO_T}$CMP" >&6; }
6467else
6468  { echo "$as_me:$LINENO: result: no" >&5
6469echo "${ECHO_T}no" >&6; }
6470fi
6471
6472
6473# Extract the first word of "cp", so it can be a program name with args.
6474set dummy cp; ac_word=$2
6475{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6477if test "${ac_cv_path_CP+set}" = set; then
6478  echo $ECHO_N "(cached) $ECHO_C" >&6
6479else
6480  case $CP in
6481  [\\/]* | ?:[\\/]*)
6482  ac_cv_path_CP="$CP" # Let the user override the test with a path.
6483  ;;
6484  *)
6485  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486for as_dir in $PATH
6487do
6488  IFS=$as_save_IFS
6489  test -z "$as_dir" && as_dir=.
6490  for ac_exec_ext in '' $ac_executable_extensions; do
6491  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6492    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6493    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6494    break 2
6495  fi
6496done
6497done
6498IFS=$as_save_IFS
6499
6500  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6501  ;;
6502esac
6503fi
6504CP=$ac_cv_path_CP
6505if test -n "$CP"; then
6506  { echo "$as_me:$LINENO: result: $CP" >&5
6507echo "${ECHO_T}$CP" >&6; }
6508else
6509  { echo "$as_me:$LINENO: result: no" >&5
6510echo "${ECHO_T}no" >&6; }
6511fi
6512
6513
6514# Extract the first word of "date", so it can be a program name with args.
6515set dummy date; ac_word=$2
6516{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6518if test "${ac_cv_path_DATE+set}" = set; then
6519  echo $ECHO_N "(cached) $ECHO_C" >&6
6520else
6521  case $DATE in
6522  [\\/]* | ?:[\\/]*)
6523  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6524  ;;
6525  *)
6526  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527for as_dir in $PATH
6528do
6529  IFS=$as_save_IFS
6530  test -z "$as_dir" && as_dir=.
6531  for ac_exec_ext in '' $ac_executable_extensions; do
6532  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6533    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6534    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6535    break 2
6536  fi
6537done
6538done
6539IFS=$as_save_IFS
6540
6541  test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6542  ;;
6543esac
6544fi
6545DATE=$ac_cv_path_DATE
6546if test -n "$DATE"; then
6547  { echo "$as_me:$LINENO: result: $DATE" >&5
6548echo "${ECHO_T}$DATE" >&6; }
6549else
6550  { echo "$as_me:$LINENO: result: no" >&5
6551echo "${ECHO_T}no" >&6; }
6552fi
6553
6554
6555# Extract the first word of "find", so it can be a program name with args.
6556set dummy find; ac_word=$2
6557{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6559if test "${ac_cv_path_FIND+set}" = set; then
6560  echo $ECHO_N "(cached) $ECHO_C" >&6
6561else
6562  case $FIND in
6563  [\\/]* | ?:[\\/]*)
6564  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6565  ;;
6566  *)
6567  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6568for as_dir in $PATH
6569do
6570  IFS=$as_save_IFS
6571  test -z "$as_dir" && as_dir=.
6572  for ac_exec_ext in '' $ac_executable_extensions; do
6573  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6574    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6575    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6576    break 2
6577  fi
6578done
6579done
6580IFS=$as_save_IFS
6581
6582  test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6583  ;;
6584esac
6585fi
6586FIND=$ac_cv_path_FIND
6587if test -n "$FIND"; then
6588  { echo "$as_me:$LINENO: result: $FIND" >&5
6589echo "${ECHO_T}$FIND" >&6; }
6590else
6591  { echo "$as_me:$LINENO: result: no" >&5
6592echo "${ECHO_T}no" >&6; }
6593fi
6594
6595
6596# Extract the first word of "grep", so it can be a program name with args.
6597set dummy grep; ac_word=$2
6598{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6600if test "${ac_cv_path_GREP+set}" = set; then
6601  echo $ECHO_N "(cached) $ECHO_C" >&6
6602else
6603  case $GREP in
6604  [\\/]* | ?:[\\/]*)
6605  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6606  ;;
6607  *)
6608  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609for as_dir in $PATH
6610do
6611  IFS=$as_save_IFS
6612  test -z "$as_dir" && as_dir=.
6613  for ac_exec_ext in '' $ac_executable_extensions; do
6614  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6615    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6616    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6617    break 2
6618  fi
6619done
6620done
6621IFS=$as_save_IFS
6622
6623  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6624  ;;
6625esac
6626fi
6627GREP=$ac_cv_path_GREP
6628if test -n "$GREP"; then
6629  { echo "$as_me:$LINENO: result: $GREP" >&5
6630echo "${ECHO_T}$GREP" >&6; }
6631else
6632  { echo "$as_me:$LINENO: result: no" >&5
6633echo "${ECHO_T}no" >&6; }
6634fi
6635
6636
6637# Extract the first word of "mkdir", so it can be a program name with args.
6638set dummy mkdir; ac_word=$2
6639{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6641if test "${ac_cv_path_MKDIR+set}" = set; then
6642  echo $ECHO_N "(cached) $ECHO_C" >&6
6643else
6644  case $MKDIR in
6645  [\\/]* | ?:[\\/]*)
6646  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6647  ;;
6648  *)
6649  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650for as_dir in $PATH
6651do
6652  IFS=$as_save_IFS
6653  test -z "$as_dir" && as_dir=.
6654  for ac_exec_ext in '' $ac_executable_extensions; do
6655  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6656    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6657    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6658    break 2
6659  fi
6660done
6661done
6662IFS=$as_save_IFS
6663
6664  test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6665  ;;
6666esac
6667fi
6668MKDIR=$ac_cv_path_MKDIR
6669if test -n "$MKDIR"; then
6670  { echo "$as_me:$LINENO: result: $MKDIR" >&5
6671echo "${ECHO_T}$MKDIR" >&6; }
6672else
6673  { echo "$as_me:$LINENO: result: no" >&5
6674echo "${ECHO_T}no" >&6; }
6675fi
6676
6677
6678# Extract the first word of "mv", so it can be a program name with args.
6679set dummy mv; ac_word=$2
6680{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6682if test "${ac_cv_path_MV+set}" = set; then
6683  echo $ECHO_N "(cached) $ECHO_C" >&6
6684else
6685  case $MV in
6686  [\\/]* | ?:[\\/]*)
6687  ac_cv_path_MV="$MV" # Let the user override the test with a path.
6688  ;;
6689  *)
6690  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691for as_dir in $PATH
6692do
6693  IFS=$as_save_IFS
6694  test -z "$as_dir" && as_dir=.
6695  for ac_exec_ext in '' $ac_executable_extensions; do
6696  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6697    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6698    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6699    break 2
6700  fi
6701done
6702done
6703IFS=$as_save_IFS
6704
6705  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6706  ;;
6707esac
6708fi
6709MV=$ac_cv_path_MV
6710if test -n "$MV"; then
6711  { echo "$as_me:$LINENO: result: $MV" >&5
6712echo "${ECHO_T}$MV" >&6; }
6713else
6714  { echo "$as_me:$LINENO: result: no" >&5
6715echo "${ECHO_T}no" >&6; }
6716fi
6717
6718
6719if test -n "$ac_tool_prefix"; then
6720  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6721set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6722{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6724if test "${ac_cv_prog_RANLIB+set}" = set; then
6725  echo $ECHO_N "(cached) $ECHO_C" >&6
6726else
6727  if test -n "$RANLIB"; then
6728  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6729else
6730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731for as_dir in $PATH
6732do
6733  IFS=$as_save_IFS
6734  test -z "$as_dir" && as_dir=.
6735  for ac_exec_ext in '' $ac_executable_extensions; do
6736  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6737    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6738    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6739    break 2
6740  fi
6741done
6742done
6743IFS=$as_save_IFS
6744
6745fi
6746fi
6747RANLIB=$ac_cv_prog_RANLIB
6748if test -n "$RANLIB"; then
6749  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6750echo "${ECHO_T}$RANLIB" >&6; }
6751else
6752  { echo "$as_me:$LINENO: result: no" >&5
6753echo "${ECHO_T}no" >&6; }
6754fi
6755
6756
6757fi
6758if test -z "$ac_cv_prog_RANLIB"; then
6759  ac_ct_RANLIB=$RANLIB
6760  # Extract the first word of "ranlib", so it can be a program name with args.
6761set dummy ranlib; ac_word=$2
6762{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6764if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6765  echo $ECHO_N "(cached) $ECHO_C" >&6
6766else
6767  if test -n "$ac_ct_RANLIB"; then
6768  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6769else
6770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6771for as_dir in $PATH
6772do
6773  IFS=$as_save_IFS
6774  test -z "$as_dir" && as_dir=.
6775  for ac_exec_ext in '' $ac_executable_extensions; do
6776  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6777    ac_cv_prog_ac_ct_RANLIB="ranlib"
6778    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6779    break 2
6780  fi
6781done
6782done
6783IFS=$as_save_IFS
6784
6785fi
6786fi
6787ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6788if test -n "$ac_ct_RANLIB"; then
6789  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6790echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6791else
6792  { echo "$as_me:$LINENO: result: no" >&5
6793echo "${ECHO_T}no" >&6; }
6794fi
6795
6796  if test "x$ac_ct_RANLIB" = x; then
6797    RANLIB=":"
6798  else
6799    case $cross_compiling:$ac_tool_warned in
6800yes:)
6801{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6802whose name does not start with the host triplet.  If you think this
6803configuration is useful to you, please write to autoconf@gnu.org." >&5
6804echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6805whose name does not start with the host triplet.  If you think this
6806configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6807ac_tool_warned=yes ;;
6808esac
6809    RANLIB=$ac_ct_RANLIB
6810  fi
6811else
6812  RANLIB="$ac_cv_prog_RANLIB"
6813fi
6814
6815# Extract the first word of "rm", so it can be a program name with args.
6816set dummy rm; ac_word=$2
6817{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6819if test "${ac_cv_path_RM+set}" = set; then
6820  echo $ECHO_N "(cached) $ECHO_C" >&6
6821else
6822  case $RM in
6823  [\\/]* | ?:[\\/]*)
6824  ac_cv_path_RM="$RM" # Let the user override the test with a path.
6825  ;;
6826  *)
6827  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828for as_dir in $PATH
6829do
6830  IFS=$as_save_IFS
6831  test -z "$as_dir" && as_dir=.
6832  for ac_exec_ext in '' $ac_executable_extensions; do
6833  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6834    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6835    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6836    break 2
6837  fi
6838done
6839done
6840IFS=$as_save_IFS
6841
6842  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6843  ;;
6844esac
6845fi
6846RM=$ac_cv_path_RM
6847if test -n "$RM"; then
6848  { echo "$as_me:$LINENO: result: $RM" >&5
6849echo "${ECHO_T}$RM" >&6; }
6850else
6851  { echo "$as_me:$LINENO: result: no" >&5
6852echo "${ECHO_T}no" >&6; }
6853fi
6854
6855
6856# Extract the first word of "sed", so it can be a program name with args.
6857set dummy sed; ac_word=$2
6858{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6860if test "${ac_cv_path_SED+set}" = set; then
6861  echo $ECHO_N "(cached) $ECHO_C" >&6
6862else
6863  case $SED in
6864  [\\/]* | ?:[\\/]*)
6865  ac_cv_path_SED="$SED" # Let the user override the test with a path.
6866  ;;
6867  *)
6868  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869for as_dir in $PATH
6870do
6871  IFS=$as_save_IFS
6872  test -z "$as_dir" && as_dir=.
6873  for ac_exec_ext in '' $ac_executable_extensions; do
6874  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6875    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6876    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6877    break 2
6878  fi
6879done
6880done
6881IFS=$as_save_IFS
6882
6883  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6884  ;;
6885esac
6886fi
6887SED=$ac_cv_path_SED
6888if test -n "$SED"; then
6889  { echo "$as_me:$LINENO: result: $SED" >&5
6890echo "${ECHO_T}$SED" >&6; }
6891else
6892  { echo "$as_me:$LINENO: result: no" >&5
6893echo "${ECHO_T}no" >&6; }
6894fi
6895
6896
6897# Extract the first word of "tar", so it can be a program name with args.
6898set dummy tar; ac_word=$2
6899{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6901if test "${ac_cv_path_TAR+set}" = set; then
6902  echo $ECHO_N "(cached) $ECHO_C" >&6
6903else
6904  case $TAR in
6905  [\\/]* | ?:[\\/]*)
6906  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6907  ;;
6908  *)
6909  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910for as_dir in $PATH
6911do
6912  IFS=$as_save_IFS
6913  test -z "$as_dir" && as_dir=.
6914  for ac_exec_ext in '' $ac_executable_extensions; do
6915  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6916    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6917    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6918    break 2
6919  fi
6920done
6921done
6922IFS=$as_save_IFS
6923
6924  test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6925  ;;
6926esac
6927fi
6928TAR=$ac_cv_path_TAR
6929if test -n "$TAR"; then
6930  { echo "$as_me:$LINENO: result: $TAR" >&5
6931echo "${ECHO_T}$TAR" >&6; }
6932else
6933  { echo "$as_me:$LINENO: result: no" >&5
6934echo "${ECHO_T}no" >&6; }
6935fi
6936
6937
6938# Extract the first word of "pwd", so it can be a program name with args.
6939set dummy pwd; ac_word=$2
6940{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6942if test "${ac_cv_path_BINPWD+set}" = set; then
6943  echo $ECHO_N "(cached) $ECHO_C" >&6
6944else
6945  case $BINPWD in
6946  [\\/]* | ?:[\\/]*)
6947  ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6948  ;;
6949  *)
6950  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951for as_dir in $PATH
6952do
6953  IFS=$as_save_IFS
6954  test -z "$as_dir" && as_dir=.
6955  for ac_exec_ext in '' $ac_executable_extensions; do
6956  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6957    ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6958    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6959    break 2
6960  fi
6961done
6962done
6963IFS=$as_save_IFS
6964
6965  test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6966  ;;
6967esac
6968fi
6969BINPWD=$ac_cv_path_BINPWD
6970if test -n "$BINPWD"; then
6971  { echo "$as_me:$LINENO: result: $BINPWD" >&5
6972echo "${ECHO_T}$BINPWD" >&6; }
6973else
6974  { echo "$as_me:$LINENO: result: no" >&5
6975echo "${ECHO_T}no" >&6; }
6976fi
6977
6978
6979
6980# Extract the first word of "Graphviz", so it can be a program name with args.
6981set dummy Graphviz; ac_word=$2
6982{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6984if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6985  echo $ECHO_N "(cached) $ECHO_C" >&6
6986else
6987  case $GRAPHVIZ in
6988  [\\/]* | ?:[\\/]*)
6989  ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6990  ;;
6991  *)
6992  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993for as_dir in $PATH
6994do
6995  IFS=$as_save_IFS
6996  test -z "$as_dir" && as_dir=.
6997  for ac_exec_ext in '' $ac_executable_extensions; do
6998  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6999    ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7000    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7001    break 2
7002  fi
7003done
7004done
7005IFS=$as_save_IFS
7006
7007  test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7008  ;;
7009esac
7010fi
7011GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7012if test -n "$GRAPHVIZ"; then
7013  { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7014echo "${ECHO_T}$GRAPHVIZ" >&6; }
7015else
7016  { echo "$as_me:$LINENO: result: no" >&5
7017echo "${ECHO_T}no" >&6; }
7018fi
7019
7020
7021if test "$GRAPHVIZ" != "echo Graphviz" ; then
7022
7023cat >>confdefs.h <<\_ACEOF
7024#define HAVE_GRAPHVIZ 1
7025_ACEOF
7026
7027    if test "$llvm_cv_os_type" = "MingW" ; then
7028    GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7029  fi
7030
7031cat >>confdefs.h <<_ACEOF
7032#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7033_ACEOF
7034
7035fi
7036# Extract the first word of "dot", so it can be a program name with args.
7037set dummy dot; ac_word=$2
7038{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7040if test "${ac_cv_path_DOT+set}" = set; then
7041  echo $ECHO_N "(cached) $ECHO_C" >&6
7042else
7043  case $DOT in
7044  [\\/]* | ?:[\\/]*)
7045  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7046  ;;
7047  *)
7048  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049for as_dir in $PATH
7050do
7051  IFS=$as_save_IFS
7052  test -z "$as_dir" && as_dir=.
7053  for ac_exec_ext in '' $ac_executable_extensions; do
7054  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7055    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7056    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7057    break 2
7058  fi
7059done
7060done
7061IFS=$as_save_IFS
7062
7063  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7064  ;;
7065esac
7066fi
7067DOT=$ac_cv_path_DOT
7068if test -n "$DOT"; then
7069  { echo "$as_me:$LINENO: result: $DOT" >&5
7070echo "${ECHO_T}$DOT" >&6; }
7071else
7072  { echo "$as_me:$LINENO: result: no" >&5
7073echo "${ECHO_T}no" >&6; }
7074fi
7075
7076
7077if test "$DOT" != "echo dot" ; then
7078
7079cat >>confdefs.h <<\_ACEOF
7080#define HAVE_DOT 1
7081_ACEOF
7082
7083    if test "$llvm_cv_os_type" = "MingW" ; then
7084    DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7085  fi
7086
7087cat >>confdefs.h <<_ACEOF
7088#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7089_ACEOF
7090
7091fi
7092for ac_prog in gv gsview32
7093do
7094  # Extract the first word of "$ac_prog", so it can be a program name with args.
7095set dummy $ac_prog; ac_word=$2
7096{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7098if test "${ac_cv_path_GV+set}" = set; then
7099  echo $ECHO_N "(cached) $ECHO_C" >&6
7100else
7101  case $GV in
7102  [\\/]* | ?:[\\/]*)
7103  ac_cv_path_GV="$GV" # Let the user override the test with a path.
7104  ;;
7105  *)
7106  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107for as_dir in $PATH
7108do
7109  IFS=$as_save_IFS
7110  test -z "$as_dir" && as_dir=.
7111  for ac_exec_ext in '' $ac_executable_extensions; do
7112  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7113    ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7114    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7115    break 2
7116  fi
7117done
7118done
7119IFS=$as_save_IFS
7120
7121  ;;
7122esac
7123fi
7124GV=$ac_cv_path_GV
7125if test -n "$GV"; then
7126  { echo "$as_me:$LINENO: result: $GV" >&5
7127echo "${ECHO_T}$GV" >&6; }
7128else
7129  { echo "$as_me:$LINENO: result: no" >&5
7130echo "${ECHO_T}no" >&6; }
7131fi
7132
7133
7134  test -n "$GV" && break
7135done
7136test -n "$GV" || GV="echo gv"
7137
7138if test "$GV" != "echo gv" ; then
7139
7140cat >>confdefs.h <<\_ACEOF
7141#define HAVE_GV 1
7142_ACEOF
7143
7144    if test "$llvm_cv_os_type" = "MingW" ; then
7145    GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7146  fi
7147
7148cat >>confdefs.h <<_ACEOF
7149#define LLVM_PATH_GV "$GV${EXEEXT}"
7150_ACEOF
7151
7152fi
7153# Extract the first word of "dotty", so it can be a program name with args.
7154set dummy dotty; ac_word=$2
7155{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7156echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7157if test "${ac_cv_path_DOTTY+set}" = set; then
7158  echo $ECHO_N "(cached) $ECHO_C" >&6
7159else
7160  case $DOTTY in
7161  [\\/]* | ?:[\\/]*)
7162  ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7163  ;;
7164  *)
7165  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166for as_dir in $PATH
7167do
7168  IFS=$as_save_IFS
7169  test -z "$as_dir" && as_dir=.
7170  for ac_exec_ext in '' $ac_executable_extensions; do
7171  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7172    ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7173    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7174    break 2
7175  fi
7176done
7177done
7178IFS=$as_save_IFS
7179
7180  test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7181  ;;
7182esac
7183fi
7184DOTTY=$ac_cv_path_DOTTY
7185if test -n "$DOTTY"; then
7186  { echo "$as_me:$LINENO: result: $DOTTY" >&5
7187echo "${ECHO_T}$DOTTY" >&6; }
7188else
7189  { echo "$as_me:$LINENO: result: no" >&5
7190echo "${ECHO_T}no" >&6; }
7191fi
7192
7193
7194if test "$DOTTY" != "echo dotty" ; then
7195
7196cat >>confdefs.h <<\_ACEOF
7197#define HAVE_DOTTY 1
7198_ACEOF
7199
7200    if test "$llvm_cv_os_type" = "MingW" ; then
7201    DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7202  fi
7203
7204cat >>confdefs.h <<_ACEOF
7205#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7206_ACEOF
7207
7208fi
7209
7210
7211# Extract the first word of "perl", so it can be a program name with args.
7212set dummy perl; ac_word=$2
7213{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7215if test "${ac_cv_path_PERL+set}" = set; then
7216  echo $ECHO_N "(cached) $ECHO_C" >&6
7217else
7218  case $PERL in
7219  [\\/]* | ?:[\\/]*)
7220  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7221  ;;
7222  *)
7223  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224for as_dir in $PATH
7225do
7226  IFS=$as_save_IFS
7227  test -z "$as_dir" && as_dir=.
7228  for ac_exec_ext in '' $ac_executable_extensions; do
7229  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7230    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7231    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7232    break 2
7233  fi
7234done
7235done
7236IFS=$as_save_IFS
7237
7238  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7239  ;;
7240esac
7241fi
7242PERL=$ac_cv_path_PERL
7243if test -n "$PERL"; then
7244  { echo "$as_me:$LINENO: result: $PERL" >&5
7245echo "${ECHO_T}$PERL" >&6; }
7246else
7247  { echo "$as_me:$LINENO: result: no" >&5
7248echo "${ECHO_T}no" >&6; }
7249fi
7250
7251
7252if test "$PERL" != "none"; then
7253  { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7254echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7255  if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7256    { echo "$as_me:$LINENO: result: yes" >&5
7257echo "${ECHO_T}yes" >&6; }
7258  else
7259    PERL=none
7260    { echo "$as_me:$LINENO: result: not found" >&5
7261echo "${ECHO_T}not found" >&6; }
7262  fi
7263fi
7264
7265
7266if test x"$PERL" = xnone; then
7267   HAVE_PERL=0
7268
7269   { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7270echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7271   { (exit 1); exit 1; }; }
7272else
7273   HAVE_PERL=1
7274
7275fi
7276
7277# Find a good install program.  We prefer a C program (faster),
7278# so one script is as good as another.  But avoid the broken or
7279# incompatible versions:
7280# SysV /etc/install, /usr/sbin/install
7281# SunOS /usr/etc/install
7282# IRIX /sbin/install
7283# AIX /bin/install
7284# AmigaOS /C/install, which installs bootblocks on floppy discs
7285# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7286# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7287# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7288# OS/2's system install, which has a completely different semantic
7289# ./install, which can be erroneously created by make from ./install.sh.
7290{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7291echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7292if test -z "$INSTALL"; then
7293if test "${ac_cv_path_install+set}" = set; then
7294  echo $ECHO_N "(cached) $ECHO_C" >&6
7295else
7296  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297for as_dir in $PATH
7298do
7299  IFS=$as_save_IFS
7300  test -z "$as_dir" && as_dir=.
7301  # Account for people who put trailing slashes in PATH elements.
7302case $as_dir/ in
7303  ./ | .// | /cC/* | \
7304  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7305  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7306  /usr/ucb/* ) ;;
7307  *)
7308    # OSF1 and SCO ODT 3.0 have their own names for install.
7309    # Don't use installbsd from OSF since it installs stuff as root
7310    # by default.
7311    for ac_prog in ginstall scoinst install; do
7312      for ac_exec_ext in '' $ac_executable_extensions; do
7313	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7314	  if test $ac_prog = install &&
7315	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7316	    # AIX install.  It has an incompatible calling convention.
7317	    :
7318	  elif test $ac_prog = install &&
7319	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7320	    # program-specific install script used by HP pwplus--don't use.
7321	    :
7322	  else
7323	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7324	    break 3
7325	  fi
7326	fi
7327      done
7328    done
7329    ;;
7330esac
7331done
7332IFS=$as_save_IFS
7333
7334
7335fi
7336  if test "${ac_cv_path_install+set}" = set; then
7337    INSTALL=$ac_cv_path_install
7338  else
7339    # As a last resort, use the slow shell script.  Don't cache a
7340    # value for INSTALL within a source directory, because that will
7341    # break other packages using the cache if that directory is
7342    # removed, or if the value is a relative name.
7343    INSTALL=$ac_install_sh
7344  fi
7345fi
7346{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7347echo "${ECHO_T}$INSTALL" >&6; }
7348
7349# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7350# It thinks the first close brace ends the variable substitution.
7351test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7352
7353test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7354
7355test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7356
7357
7358# Extract the first word of "bzip2", so it can be a program name with args.
7359set dummy bzip2; ac_word=$2
7360{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7362if test "${ac_cv_path_BZIP2+set}" = set; then
7363  echo $ECHO_N "(cached) $ECHO_C" >&6
7364else
7365  case $BZIP2 in
7366  [\\/]* | ?:[\\/]*)
7367  ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7368  ;;
7369  *)
7370  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371for as_dir in $PATH
7372do
7373  IFS=$as_save_IFS
7374  test -z "$as_dir" && as_dir=.
7375  for ac_exec_ext in '' $ac_executable_extensions; do
7376  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7377    ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7378    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7379    break 2
7380  fi
7381done
7382done
7383IFS=$as_save_IFS
7384
7385  ;;
7386esac
7387fi
7388BZIP2=$ac_cv_path_BZIP2
7389if test -n "$BZIP2"; then
7390  { echo "$as_me:$LINENO: result: $BZIP2" >&5
7391echo "${ECHO_T}$BZIP2" >&6; }
7392else
7393  { echo "$as_me:$LINENO: result: no" >&5
7394echo "${ECHO_T}no" >&6; }
7395fi
7396
7397
7398# Extract the first word of "doxygen", so it can be a program name with args.
7399set dummy doxygen; ac_word=$2
7400{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7402if test "${ac_cv_path_DOXYGEN+set}" = set; then
7403  echo $ECHO_N "(cached) $ECHO_C" >&6
7404else
7405  case $DOXYGEN in
7406  [\\/]* | ?:[\\/]*)
7407  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7408  ;;
7409  *)
7410  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411for as_dir in $PATH
7412do
7413  IFS=$as_save_IFS
7414  test -z "$as_dir" && as_dir=.
7415  for ac_exec_ext in '' $ac_executable_extensions; do
7416  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7417    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7418    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7419    break 2
7420  fi
7421done
7422done
7423IFS=$as_save_IFS
7424
7425  ;;
7426esac
7427fi
7428DOXYGEN=$ac_cv_path_DOXYGEN
7429if test -n "$DOXYGEN"; then
7430  { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7431echo "${ECHO_T}$DOXYGEN" >&6; }
7432else
7433  { echo "$as_me:$LINENO: result: no" >&5
7434echo "${ECHO_T}no" >&6; }
7435fi
7436
7437
7438# Extract the first word of "groff", so it can be a program name with args.
7439set dummy groff; ac_word=$2
7440{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7442if test "${ac_cv_path_GROFF+set}" = set; then
7443  echo $ECHO_N "(cached) $ECHO_C" >&6
7444else
7445  case $GROFF in
7446  [\\/]* | ?:[\\/]*)
7447  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7448  ;;
7449  *)
7450  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451for as_dir in $PATH
7452do
7453  IFS=$as_save_IFS
7454  test -z "$as_dir" && as_dir=.
7455  for ac_exec_ext in '' $ac_executable_extensions; do
7456  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7457    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7458    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7459    break 2
7460  fi
7461done
7462done
7463IFS=$as_save_IFS
7464
7465  ;;
7466esac
7467fi
7468GROFF=$ac_cv_path_GROFF
7469if test -n "$GROFF"; then
7470  { echo "$as_me:$LINENO: result: $GROFF" >&5
7471echo "${ECHO_T}$GROFF" >&6; }
7472else
7473  { echo "$as_me:$LINENO: result: no" >&5
7474echo "${ECHO_T}no" >&6; }
7475fi
7476
7477
7478# Extract the first word of "gzip", so it can be a program name with args.
7479set dummy gzip; ac_word=$2
7480{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7482if test "${ac_cv_path_GZIP+set}" = set; then
7483  echo $ECHO_N "(cached) $ECHO_C" >&6
7484else
7485  case $GZIP in
7486  [\\/]* | ?:[\\/]*)
7487  ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7488  ;;
7489  *)
7490  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7491for as_dir in $PATH
7492do
7493  IFS=$as_save_IFS
7494  test -z "$as_dir" && as_dir=.
7495  for ac_exec_ext in '' $ac_executable_extensions; do
7496  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7497    ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7498    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7499    break 2
7500  fi
7501done
7502done
7503IFS=$as_save_IFS
7504
7505  ;;
7506esac
7507fi
7508GZIP=$ac_cv_path_GZIP
7509if test -n "$GZIP"; then
7510  { echo "$as_me:$LINENO: result: $GZIP" >&5
7511echo "${ECHO_T}$GZIP" >&6; }
7512else
7513  { echo "$as_me:$LINENO: result: no" >&5
7514echo "${ECHO_T}no" >&6; }
7515fi
7516
7517
7518# Extract the first word of "pod2html", so it can be a program name with args.
7519set dummy pod2html; ac_word=$2
7520{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7522if test "${ac_cv_path_POD2HTML+set}" = set; then
7523  echo $ECHO_N "(cached) $ECHO_C" >&6
7524else
7525  case $POD2HTML in
7526  [\\/]* | ?:[\\/]*)
7527  ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7528  ;;
7529  *)
7530  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7531for as_dir in $PATH
7532do
7533  IFS=$as_save_IFS
7534  test -z "$as_dir" && as_dir=.
7535  for ac_exec_ext in '' $ac_executable_extensions; do
7536  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7537    ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7538    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7539    break 2
7540  fi
7541done
7542done
7543IFS=$as_save_IFS
7544
7545  ;;
7546esac
7547fi
7548POD2HTML=$ac_cv_path_POD2HTML
7549if test -n "$POD2HTML"; then
7550  { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7551echo "${ECHO_T}$POD2HTML" >&6; }
7552else
7553  { echo "$as_me:$LINENO: result: no" >&5
7554echo "${ECHO_T}no" >&6; }
7555fi
7556
7557
7558# Extract the first word of "pod2man", so it can be a program name with args.
7559set dummy pod2man; ac_word=$2
7560{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7562if test "${ac_cv_path_POD2MAN+set}" = set; then
7563  echo $ECHO_N "(cached) $ECHO_C" >&6
7564else
7565  case $POD2MAN in
7566  [\\/]* | ?:[\\/]*)
7567  ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7568  ;;
7569  *)
7570  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7571for as_dir in $PATH
7572do
7573  IFS=$as_save_IFS
7574  test -z "$as_dir" && as_dir=.
7575  for ac_exec_ext in '' $ac_executable_extensions; do
7576  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7577    ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7578    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7579    break 2
7580  fi
7581done
7582done
7583IFS=$as_save_IFS
7584
7585  ;;
7586esac
7587fi
7588POD2MAN=$ac_cv_path_POD2MAN
7589if test -n "$POD2MAN"; then
7590  { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7591echo "${ECHO_T}$POD2MAN" >&6; }
7592else
7593  { echo "$as_me:$LINENO: result: no" >&5
7594echo "${ECHO_T}no" >&6; }
7595fi
7596
7597
7598# Extract the first word of "runtest", so it can be a program name with args.
7599set dummy runtest; ac_word=$2
7600{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7602if test "${ac_cv_path_RUNTEST+set}" = set; then
7603  echo $ECHO_N "(cached) $ECHO_C" >&6
7604else
7605  case $RUNTEST in
7606  [\\/]* | ?:[\\/]*)
7607  ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7608  ;;
7609  *)
7610  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7611for as_dir in $PATH
7612do
7613  IFS=$as_save_IFS
7614  test -z "$as_dir" && as_dir=.
7615  for ac_exec_ext in '' $ac_executable_extensions; do
7616  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7617    ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7618    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7619    break 2
7620  fi
7621done
7622done
7623IFS=$as_save_IFS
7624
7625  ;;
7626esac
7627fi
7628RUNTEST=$ac_cv_path_RUNTEST
7629if test -n "$RUNTEST"; then
7630  { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7631echo "${ECHO_T}$RUNTEST" >&6; }
7632else
7633  { echo "$as_me:$LINENO: result: no" >&5
7634echo "${ECHO_T}no" >&6; }
7635fi
7636
7637
7638
7639no_itcl=true
7640{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7641echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7642
7643# Check whether --with-tclinclude was given.
7644if test "${with_tclinclude+set}" = set; then
7645  withval=$with_tclinclude; with_tclinclude=${withval}
7646else
7647  with_tclinclude=''
7648fi
7649
7650if test "${ac_cv_path_tclsh+set}" = set; then
7651  echo $ECHO_N "(cached) $ECHO_C" >&6
7652else
7653
7654if test x"${with_tclinclude}" != x ; then
7655  if test -f ${with_tclinclude}/tclsh ; then
7656    ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7657  elif test -f ${with_tclinclude}/src/tclsh ; then
7658    ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7659  else
7660    { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7661echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7662   { (exit 1); exit 1; }; }
7663  fi
7664fi
7665
7666if test x"${ac_cv_path_tclsh}" = x ; then
7667  { echo "$as_me:$LINENO: result: none" >&5
7668echo "${ECHO_T}none" >&6; }
7669  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
7670do
7671  # Extract the first word of "$ac_prog", so it can be a program name with args.
7672set dummy $ac_prog; ac_word=$2
7673{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7675if test "${ac_cv_path_TCLSH+set}" = set; then
7676  echo $ECHO_N "(cached) $ECHO_C" >&6
7677else
7678  case $TCLSH in
7679  [\\/]* | ?:[\\/]*)
7680  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7681  ;;
7682  *)
7683  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684for as_dir in $PATH
7685do
7686  IFS=$as_save_IFS
7687  test -z "$as_dir" && as_dir=.
7688  for ac_exec_ext in '' $ac_executable_extensions; do
7689  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7690    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7691    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7692    break 2
7693  fi
7694done
7695done
7696IFS=$as_save_IFS
7697
7698  ;;
7699esac
7700fi
7701TCLSH=$ac_cv_path_TCLSH
7702if test -n "$TCLSH"; then
7703  { echo "$as_me:$LINENO: result: $TCLSH" >&5
7704echo "${ECHO_T}$TCLSH" >&6; }
7705else
7706  { echo "$as_me:$LINENO: result: no" >&5
7707echo "${ECHO_T}no" >&6; }
7708fi
7709
7710
7711  test -n "$TCLSH" && break
7712done
7713
7714  if test x"${TCLSH}" = x ; then
7715    ac_cv_path_tclsh='';
7716  else
7717    ac_cv_path_tclsh="${TCLSH}";
7718  fi
7719else
7720  { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7721echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7722  TCLSH="${ac_cv_path_tclsh}"
7723
7724fi
7725
7726fi
7727
7728# Extract the first word of "zip", so it can be a program name with args.
7729set dummy zip; ac_word=$2
7730{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7732if test "${ac_cv_path_ZIP+set}" = set; then
7733  echo $ECHO_N "(cached) $ECHO_C" >&6
7734else
7735  case $ZIP in
7736  [\\/]* | ?:[\\/]*)
7737  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7738  ;;
7739  *)
7740  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741for as_dir in $PATH
7742do
7743  IFS=$as_save_IFS
7744  test -z "$as_dir" && as_dir=.
7745  for ac_exec_ext in '' $ac_executable_extensions; do
7746  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7747    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7748    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7749    break 2
7750  fi
7751done
7752done
7753IFS=$as_save_IFS
7754
7755  ;;
7756esac
7757fi
7758ZIP=$ac_cv_path_ZIP
7759if test -n "$ZIP"; then
7760  { echo "$as_me:$LINENO: result: $ZIP" >&5
7761echo "${ECHO_T}$ZIP" >&6; }
7762else
7763  { echo "$as_me:$LINENO: result: no" >&5
7764echo "${ECHO_T}no" >&6; }
7765fi
7766
7767
7768for ac_prog in ocamlc
7769do
7770  # Extract the first word of "$ac_prog", so it can be a program name with args.
7771set dummy $ac_prog; ac_word=$2
7772{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7774if test "${ac_cv_path_OCAMLC+set}" = set; then
7775  echo $ECHO_N "(cached) $ECHO_C" >&6
7776else
7777  case $OCAMLC in
7778  [\\/]* | ?:[\\/]*)
7779  ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7780  ;;
7781  *)
7782  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783for as_dir in $PATH
7784do
7785  IFS=$as_save_IFS
7786  test -z "$as_dir" && as_dir=.
7787  for ac_exec_ext in '' $ac_executable_extensions; do
7788  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7789    ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7790    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7791    break 2
7792  fi
7793done
7794done
7795IFS=$as_save_IFS
7796
7797  ;;
7798esac
7799fi
7800OCAMLC=$ac_cv_path_OCAMLC
7801if test -n "$OCAMLC"; then
7802  { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7803echo "${ECHO_T}$OCAMLC" >&6; }
7804else
7805  { echo "$as_me:$LINENO: result: no" >&5
7806echo "${ECHO_T}no" >&6; }
7807fi
7808
7809
7810  test -n "$OCAMLC" && break
7811done
7812
7813for ac_prog in ocamlopt
7814do
7815  # Extract the first word of "$ac_prog", so it can be a program name with args.
7816set dummy $ac_prog; ac_word=$2
7817{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7819if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7820  echo $ECHO_N "(cached) $ECHO_C" >&6
7821else
7822  case $OCAMLOPT in
7823  [\\/]* | ?:[\\/]*)
7824  ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7825  ;;
7826  *)
7827  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828for as_dir in $PATH
7829do
7830  IFS=$as_save_IFS
7831  test -z "$as_dir" && as_dir=.
7832  for ac_exec_ext in '' $ac_executable_extensions; do
7833  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7834    ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7835    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7836    break 2
7837  fi
7838done
7839done
7840IFS=$as_save_IFS
7841
7842  ;;
7843esac
7844fi
7845OCAMLOPT=$ac_cv_path_OCAMLOPT
7846if test -n "$OCAMLOPT"; then
7847  { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7848echo "${ECHO_T}$OCAMLOPT" >&6; }
7849else
7850  { echo "$as_me:$LINENO: result: no" >&5
7851echo "${ECHO_T}no" >&6; }
7852fi
7853
7854
7855  test -n "$OCAMLOPT" && break
7856done
7857
7858for ac_prog in ocamldep
7859do
7860  # Extract the first word of "$ac_prog", so it can be a program name with args.
7861set dummy $ac_prog; ac_word=$2
7862{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7864if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7865  echo $ECHO_N "(cached) $ECHO_C" >&6
7866else
7867  case $OCAMLDEP in
7868  [\\/]* | ?:[\\/]*)
7869  ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7870  ;;
7871  *)
7872  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7873for as_dir in $PATH
7874do
7875  IFS=$as_save_IFS
7876  test -z "$as_dir" && as_dir=.
7877  for ac_exec_ext in '' $ac_executable_extensions; do
7878  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7879    ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7880    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7881    break 2
7882  fi
7883done
7884done
7885IFS=$as_save_IFS
7886
7887  ;;
7888esac
7889fi
7890OCAMLDEP=$ac_cv_path_OCAMLDEP
7891if test -n "$OCAMLDEP"; then
7892  { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7893echo "${ECHO_T}$OCAMLDEP" >&6; }
7894else
7895  { echo "$as_me:$LINENO: result: no" >&5
7896echo "${ECHO_T}no" >&6; }
7897fi
7898
7899
7900  test -n "$OCAMLDEP" && break
7901done
7902
7903for ac_prog in ocamldoc
7904do
7905  # Extract the first word of "$ac_prog", so it can be a program name with args.
7906set dummy $ac_prog; ac_word=$2
7907{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7909if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7910  echo $ECHO_N "(cached) $ECHO_C" >&6
7911else
7912  case $OCAMLDOC in
7913  [\\/]* | ?:[\\/]*)
7914  ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7915  ;;
7916  *)
7917  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7918for as_dir in $PATH
7919do
7920  IFS=$as_save_IFS
7921  test -z "$as_dir" && as_dir=.
7922  for ac_exec_ext in '' $ac_executable_extensions; do
7923  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7924    ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7925    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7926    break 2
7927  fi
7928done
7929done
7930IFS=$as_save_IFS
7931
7932  ;;
7933esac
7934fi
7935OCAMLDOC=$ac_cv_path_OCAMLDOC
7936if test -n "$OCAMLDOC"; then
7937  { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7938echo "${ECHO_T}$OCAMLDOC" >&6; }
7939else
7940  { echo "$as_me:$LINENO: result: no" >&5
7941echo "${ECHO_T}no" >&6; }
7942fi
7943
7944
7945  test -n "$OCAMLDOC" && break
7946done
7947
7948for ac_prog in gas as
7949do
7950  # Extract the first word of "$ac_prog", so it can be a program name with args.
7951set dummy $ac_prog; ac_word=$2
7952{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7954if test "${ac_cv_path_GAS+set}" = set; then
7955  echo $ECHO_N "(cached) $ECHO_C" >&6
7956else
7957  case $GAS in
7958  [\\/]* | ?:[\\/]*)
7959  ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7960  ;;
7961  *)
7962  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963for as_dir in $PATH
7964do
7965  IFS=$as_save_IFS
7966  test -z "$as_dir" && as_dir=.
7967  for ac_exec_ext in '' $ac_executable_extensions; do
7968  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7969    ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7970    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7971    break 2
7972  fi
7973done
7974done
7975IFS=$as_save_IFS
7976
7977  ;;
7978esac
7979fi
7980GAS=$ac_cv_path_GAS
7981if test -n "$GAS"; then
7982  { echo "$as_me:$LINENO: result: $GAS" >&5
7983echo "${ECHO_T}$GAS" >&6; }
7984else
7985  { echo "$as_me:$LINENO: result: no" >&5
7986echo "${ECHO_T}no" >&6; }
7987fi
7988
7989
7990  test -n "$GAS" && break
7991done
7992
7993
7994{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7995echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7996if test "${llvm_cv_link_use_r+set}" = set; then
7997  echo $ECHO_N "(cached) $ECHO_C" >&6
7998else
7999   ac_ext=c
8000ac_cpp='$CPP $CPPFLAGS'
8001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8003ac_compiler_gnu=$ac_cv_c_compiler_gnu
8004
8005  oldcflags="$CFLAGS"
8006  CFLAGS="$CFLAGS -Wl,-R."
8007  cat >conftest.$ac_ext <<_ACEOF
8008/* confdefs.h.  */
8009_ACEOF
8010cat confdefs.h >>conftest.$ac_ext
8011cat >>conftest.$ac_ext <<_ACEOF
8012/* end confdefs.h.  */
8013
8014int
8015main ()
8016{
8017int main() { return 0; }
8018  ;
8019  return 0;
8020}
8021_ACEOF
8022rm -f conftest.$ac_objext conftest$ac_exeext
8023if { (ac_try="$ac_link"
8024case "(($ac_try" in
8025  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8026  *) ac_try_echo=$ac_try;;
8027esac
8028eval "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	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8037  { (case "(($ac_try" in
8038  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8039  *) ac_try_echo=$ac_try;;
8040esac
8041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8042  (eval "$ac_try") 2>&5
8043  ac_status=$?
8044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045  (exit $ac_status); }; } &&
8046	 { ac_try='test -s conftest$ac_exeext'
8047  { (case "(($ac_try" in
8048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8049  *) ac_try_echo=$ac_try;;
8050esac
8051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8052  (eval "$ac_try") 2>&5
8053  ac_status=$?
8054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055  (exit $ac_status); }; }; then
8056  llvm_cv_link_use_r=yes
8057else
8058  echo "$as_me: failed program was:" >&5
8059sed 's/^/| /' conftest.$ac_ext >&5
8060
8061	llvm_cv_link_use_r=no
8062fi
8063
8064rm -f core conftest.err conftest.$ac_objext \
8065      conftest$ac_exeext conftest.$ac_ext
8066  CFLAGS="$oldcflags"
8067  ac_ext=c
8068ac_cpp='$CPP $CPPFLAGS'
8069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8071ac_compiler_gnu=$ac_cv_c_compiler_gnu
8072
8073
8074fi
8075{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8076echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8077if test "$llvm_cv_link_use_r" = yes ; then
8078
8079cat >>confdefs.h <<\_ACEOF
8080#define HAVE_LINK_R 1
8081_ACEOF
8082
8083  fi
8084
8085
8086{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8087echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8088if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8089  echo $ECHO_N "(cached) $ECHO_C" >&6
8090else
8091   ac_ext=c
8092ac_cpp='$CPP $CPPFLAGS'
8093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8095ac_compiler_gnu=$ac_cv_c_compiler_gnu
8096
8097  oldcflags="$CFLAGS"
8098  CFLAGS="$CFLAGS -Wl,-export-dynamic"
8099  cat >conftest.$ac_ext <<_ACEOF
8100/* confdefs.h.  */
8101_ACEOF
8102cat confdefs.h >>conftest.$ac_ext
8103cat >>conftest.$ac_ext <<_ACEOF
8104/* end confdefs.h.  */
8105
8106int
8107main ()
8108{
8109int main() { return 0; }
8110  ;
8111  return 0;
8112}
8113_ACEOF
8114rm -f conftest.$ac_objext conftest$ac_exeext
8115if { (ac_try="$ac_link"
8116case "(($ac_try" in
8117  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8118  *) ac_try_echo=$ac_try;;
8119esac
8120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8121  (eval "$ac_link") 2>conftest.er1
8122  ac_status=$?
8123  grep -v '^ *+' conftest.er1 >conftest.err
8124  rm -f conftest.er1
8125  cat conftest.err >&5
8126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127  (exit $ac_status); } &&
8128	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8129  { (case "(($ac_try" in
8130  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131  *) ac_try_echo=$ac_try;;
8132esac
8133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8134  (eval "$ac_try") 2>&5
8135  ac_status=$?
8136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137  (exit $ac_status); }; } &&
8138	 { ac_try='test -s conftest$ac_exeext'
8139  { (case "(($ac_try" in
8140  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8141  *) ac_try_echo=$ac_try;;
8142esac
8143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8144  (eval "$ac_try") 2>&5
8145  ac_status=$?
8146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147  (exit $ac_status); }; }; then
8148  llvm_cv_link_use_export_dynamic=yes
8149else
8150  echo "$as_me: failed program was:" >&5
8151sed 's/^/| /' conftest.$ac_ext >&5
8152
8153	llvm_cv_link_use_export_dynamic=no
8154fi
8155
8156rm -f core conftest.err conftest.$ac_objext \
8157      conftest$ac_exeext conftest.$ac_ext
8158  CFLAGS="$oldcflags"
8159  ac_ext=c
8160ac_cpp='$CPP $CPPFLAGS'
8161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8163ac_compiler_gnu=$ac_cv_c_compiler_gnu
8164
8165
8166fi
8167{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8168echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8169if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8170
8171cat >>confdefs.h <<\_ACEOF
8172#define HAVE_LINK_EXPORT_DYNAMIC 1
8173_ACEOF
8174
8175  fi
8176
8177
8178
8179
8180{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8181echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8182if test "${ac_cv_c_const+set}" = set; then
8183  echo $ECHO_N "(cached) $ECHO_C" >&6
8184else
8185  cat >conftest.$ac_ext <<_ACEOF
8186/* confdefs.h.  */
8187_ACEOF
8188cat confdefs.h >>conftest.$ac_ext
8189cat >>conftest.$ac_ext <<_ACEOF
8190/* end confdefs.h.  */
8191
8192int
8193main ()
8194{
8195/* FIXME: Include the comments suggested by Paul. */
8196#ifndef __cplusplus
8197  /* Ultrix mips cc rejects this.  */
8198  typedef int charset[2];
8199  const charset x;
8200  /* SunOS 4.1.1 cc rejects this.  */
8201  char const *const *ccp;
8202  char **p;
8203  /* NEC SVR4.0.2 mips cc rejects this.  */
8204  struct point {int x, y;};
8205  static struct point const zero = {0,0};
8206  /* AIX XL C 1.02.0.0 rejects this.
8207     It does not let you subtract one const X* pointer from another in
8208     an arm of an if-expression whose if-part is not a constant
8209     expression */
8210  const char *g = "string";
8211  ccp = &g + (g ? g-g : 0);
8212  /* HPUX 7.0 cc rejects these. */
8213  ++ccp;
8214  p = (char**) ccp;
8215  ccp = (char const *const *) p;
8216  { /* SCO 3.2v4 cc rejects this.  */
8217    char *t;
8218    char const *s = 0 ? (char *) 0 : (char const *) 0;
8219
8220    *t++ = 0;
8221    if (s) return 0;
8222  }
8223  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8224    int x[] = {25, 17};
8225    const int *foo = &x[0];
8226    ++foo;
8227  }
8228  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8229    typedef const int *iptr;
8230    iptr p = 0;
8231    ++p;
8232  }
8233  { /* AIX XL C 1.02.0.0 rejects this saying
8234       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8235    struct s { int j; const int *ap[3]; };
8236    struct s *b; b->j = 5;
8237  }
8238  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8239    const int foo = 10;
8240    if (!foo) return 0;
8241  }
8242  return !x[0] && !zero.x;
8243#endif
8244
8245  ;
8246  return 0;
8247}
8248_ACEOF
8249rm -f conftest.$ac_objext
8250if { (ac_try="$ac_compile"
8251case "(($ac_try" in
8252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8253  *) ac_try_echo=$ac_try;;
8254esac
8255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8256  (eval "$ac_compile") 2>conftest.er1
8257  ac_status=$?
8258  grep -v '^ *+' conftest.er1 >conftest.err
8259  rm -f conftest.er1
8260  cat conftest.err >&5
8261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262  (exit $ac_status); } &&
8263	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8264  { (case "(($ac_try" in
8265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8266  *) ac_try_echo=$ac_try;;
8267esac
8268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8269  (eval "$ac_try") 2>&5
8270  ac_status=$?
8271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272  (exit $ac_status); }; } &&
8273	 { ac_try='test -s conftest.$ac_objext'
8274  { (case "(($ac_try" in
8275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8276  *) ac_try_echo=$ac_try;;
8277esac
8278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8279  (eval "$ac_try") 2>&5
8280  ac_status=$?
8281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282  (exit $ac_status); }; }; then
8283  ac_cv_c_const=yes
8284else
8285  echo "$as_me: failed program was:" >&5
8286sed 's/^/| /' conftest.$ac_ext >&5
8287
8288	ac_cv_c_const=no
8289fi
8290
8291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8292fi
8293{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8294echo "${ECHO_T}$ac_cv_c_const" >&6; }
8295if test $ac_cv_c_const = no; then
8296
8297cat >>confdefs.h <<\_ACEOF
8298#define const
8299_ACEOF
8300
8301fi
8302
8303
8304
8305
8306
8307
8308ac_header_dirent=no
8309for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8310  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8311{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8312echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8313if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8314  echo $ECHO_N "(cached) $ECHO_C" >&6
8315else
8316  cat >conftest.$ac_ext <<_ACEOF
8317/* confdefs.h.  */
8318_ACEOF
8319cat confdefs.h >>conftest.$ac_ext
8320cat >>conftest.$ac_ext <<_ACEOF
8321/* end confdefs.h.  */
8322#include <sys/types.h>
8323#include <$ac_hdr>
8324
8325int
8326main ()
8327{
8328if ((DIR *) 0)
8329return 0;
8330  ;
8331  return 0;
8332}
8333_ACEOF
8334rm -f conftest.$ac_objext
8335if { (ac_try="$ac_compile"
8336case "(($ac_try" in
8337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8338  *) ac_try_echo=$ac_try;;
8339esac
8340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8341  (eval "$ac_compile") 2>conftest.er1
8342  ac_status=$?
8343  grep -v '^ *+' conftest.er1 >conftest.err
8344  rm -f conftest.er1
8345  cat conftest.err >&5
8346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347  (exit $ac_status); } &&
8348	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8349  { (case "(($ac_try" in
8350  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8351  *) ac_try_echo=$ac_try;;
8352esac
8353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8354  (eval "$ac_try") 2>&5
8355  ac_status=$?
8356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357  (exit $ac_status); }; } &&
8358	 { ac_try='test -s conftest.$ac_objext'
8359  { (case "(($ac_try" in
8360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8361  *) ac_try_echo=$ac_try;;
8362esac
8363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8364  (eval "$ac_try") 2>&5
8365  ac_status=$?
8366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367  (exit $ac_status); }; }; then
8368  eval "$as_ac_Header=yes"
8369else
8370  echo "$as_me: failed program was:" >&5
8371sed 's/^/| /' conftest.$ac_ext >&5
8372
8373	eval "$as_ac_Header=no"
8374fi
8375
8376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8377fi
8378ac_res=`eval echo '${'$as_ac_Header'}'`
8379	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8380echo "${ECHO_T}$ac_res" >&6; }
8381if test `eval echo '${'$as_ac_Header'}'` = yes; then
8382  cat >>confdefs.h <<_ACEOF
8383#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8384_ACEOF
8385
8386ac_header_dirent=$ac_hdr; break
8387fi
8388
8389done
8390# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8391if test $ac_header_dirent = dirent.h; then
8392  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8393echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8394if test "${ac_cv_search_opendir+set}" = set; then
8395  echo $ECHO_N "(cached) $ECHO_C" >&6
8396else
8397  ac_func_search_save_LIBS=$LIBS
8398cat >conftest.$ac_ext <<_ACEOF
8399/* confdefs.h.  */
8400_ACEOF
8401cat confdefs.h >>conftest.$ac_ext
8402cat >>conftest.$ac_ext <<_ACEOF
8403/* end confdefs.h.  */
8404
8405/* Override any GCC internal prototype to avoid an error.
8406   Use char because int might match the return type of a GCC
8407   builtin and then its argument prototype would still apply.  */
8408#ifdef __cplusplus
8409extern "C"
8410#endif
8411char opendir ();
8412int
8413main ()
8414{
8415return opendir ();
8416  ;
8417  return 0;
8418}
8419_ACEOF
8420for ac_lib in '' dir; do
8421  if test -z "$ac_lib"; then
8422    ac_res="none required"
8423  else
8424    ac_res=-l$ac_lib
8425    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8426  fi
8427  rm -f conftest.$ac_objext conftest$ac_exeext
8428if { (ac_try="$ac_link"
8429case "(($ac_try" in
8430  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8431  *) ac_try_echo=$ac_try;;
8432esac
8433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8434  (eval "$ac_link") 2>conftest.er1
8435  ac_status=$?
8436  grep -v '^ *+' conftest.er1 >conftest.err
8437  rm -f conftest.er1
8438  cat conftest.err >&5
8439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440  (exit $ac_status); } &&
8441	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8442  { (case "(($ac_try" in
8443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8444  *) ac_try_echo=$ac_try;;
8445esac
8446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8447  (eval "$ac_try") 2>&5
8448  ac_status=$?
8449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450  (exit $ac_status); }; } &&
8451	 { ac_try='test -s conftest$ac_exeext'
8452  { (case "(($ac_try" in
8453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8454  *) ac_try_echo=$ac_try;;
8455esac
8456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8457  (eval "$ac_try") 2>&5
8458  ac_status=$?
8459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460  (exit $ac_status); }; }; then
8461  ac_cv_search_opendir=$ac_res
8462else
8463  echo "$as_me: failed program was:" >&5
8464sed 's/^/| /' conftest.$ac_ext >&5
8465
8466
8467fi
8468
8469rm -f core conftest.err conftest.$ac_objext \
8470      conftest$ac_exeext
8471  if test "${ac_cv_search_opendir+set}" = set; then
8472  break
8473fi
8474done
8475if test "${ac_cv_search_opendir+set}" = set; then
8476  :
8477else
8478  ac_cv_search_opendir=no
8479fi
8480rm conftest.$ac_ext
8481LIBS=$ac_func_search_save_LIBS
8482fi
8483{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8484echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8485ac_res=$ac_cv_search_opendir
8486if test "$ac_res" != no; then
8487  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8488
8489fi
8490
8491else
8492  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8493echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8494if test "${ac_cv_search_opendir+set}" = set; then
8495  echo $ECHO_N "(cached) $ECHO_C" >&6
8496else
8497  ac_func_search_save_LIBS=$LIBS
8498cat >conftest.$ac_ext <<_ACEOF
8499/* confdefs.h.  */
8500_ACEOF
8501cat confdefs.h >>conftest.$ac_ext
8502cat >>conftest.$ac_ext <<_ACEOF
8503/* end confdefs.h.  */
8504
8505/* Override any GCC internal prototype to avoid an error.
8506   Use char because int might match the return type of a GCC
8507   builtin and then its argument prototype would still apply.  */
8508#ifdef __cplusplus
8509extern "C"
8510#endif
8511char opendir ();
8512int
8513main ()
8514{
8515return opendir ();
8516  ;
8517  return 0;
8518}
8519_ACEOF
8520for ac_lib in '' x; do
8521  if test -z "$ac_lib"; then
8522    ac_res="none required"
8523  else
8524    ac_res=-l$ac_lib
8525    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8526  fi
8527  rm -f conftest.$ac_objext conftest$ac_exeext
8528if { (ac_try="$ac_link"
8529case "(($ac_try" in
8530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8531  *) ac_try_echo=$ac_try;;
8532esac
8533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8534  (eval "$ac_link") 2>conftest.er1
8535  ac_status=$?
8536  grep -v '^ *+' conftest.er1 >conftest.err
8537  rm -f conftest.er1
8538  cat conftest.err >&5
8539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540  (exit $ac_status); } &&
8541	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8542  { (case "(($ac_try" in
8543  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8544  *) ac_try_echo=$ac_try;;
8545esac
8546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8547  (eval "$ac_try") 2>&5
8548  ac_status=$?
8549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550  (exit $ac_status); }; } &&
8551	 { ac_try='test -s conftest$ac_exeext'
8552  { (case "(($ac_try" in
8553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8554  *) ac_try_echo=$ac_try;;
8555esac
8556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8557  (eval "$ac_try") 2>&5
8558  ac_status=$?
8559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560  (exit $ac_status); }; }; then
8561  ac_cv_search_opendir=$ac_res
8562else
8563  echo "$as_me: failed program was:" >&5
8564sed 's/^/| /' conftest.$ac_ext >&5
8565
8566
8567fi
8568
8569rm -f core conftest.err conftest.$ac_objext \
8570      conftest$ac_exeext
8571  if test "${ac_cv_search_opendir+set}" = set; then
8572  break
8573fi
8574done
8575if test "${ac_cv_search_opendir+set}" = set; then
8576  :
8577else
8578  ac_cv_search_opendir=no
8579fi
8580rm conftest.$ac_ext
8581LIBS=$ac_func_search_save_LIBS
8582fi
8583{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8584echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8585ac_res=$ac_cv_search_opendir
8586if test "$ac_res" != no; then
8587  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8588
8589fi
8590
8591fi
8592
8593
8594for ac_header in dlfcn.h
8595do
8596as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8597if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8598  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8599echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8600if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8601  echo $ECHO_N "(cached) $ECHO_C" >&6
8602fi
8603ac_res=`eval echo '${'$as_ac_Header'}'`
8604	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8605echo "${ECHO_T}$ac_res" >&6; }
8606else
8607  # Is the header compilable?
8608{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8609echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8610cat >conftest.$ac_ext <<_ACEOF
8611/* confdefs.h.  */
8612_ACEOF
8613cat confdefs.h >>conftest.$ac_ext
8614cat >>conftest.$ac_ext <<_ACEOF
8615/* end confdefs.h.  */
8616$ac_includes_default
8617#include <$ac_header>
8618_ACEOF
8619rm -f conftest.$ac_objext
8620if { (ac_try="$ac_compile"
8621case "(($ac_try" in
8622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8623  *) ac_try_echo=$ac_try;;
8624esac
8625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8626  (eval "$ac_compile") 2>conftest.er1
8627  ac_status=$?
8628  grep -v '^ *+' conftest.er1 >conftest.err
8629  rm -f conftest.er1
8630  cat conftest.err >&5
8631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632  (exit $ac_status); } &&
8633	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8634  { (case "(($ac_try" in
8635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8636  *) ac_try_echo=$ac_try;;
8637esac
8638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8639  (eval "$ac_try") 2>&5
8640  ac_status=$?
8641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642  (exit $ac_status); }; } &&
8643	 { ac_try='test -s conftest.$ac_objext'
8644  { (case "(($ac_try" in
8645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8646  *) ac_try_echo=$ac_try;;
8647esac
8648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8649  (eval "$ac_try") 2>&5
8650  ac_status=$?
8651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652  (exit $ac_status); }; }; then
8653  ac_header_compiler=yes
8654else
8655  echo "$as_me: failed program was:" >&5
8656sed 's/^/| /' conftest.$ac_ext >&5
8657
8658	ac_header_compiler=no
8659fi
8660
8661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8662{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8663echo "${ECHO_T}$ac_header_compiler" >&6; }
8664
8665# Is the header present?
8666{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8667echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8668cat >conftest.$ac_ext <<_ACEOF
8669/* confdefs.h.  */
8670_ACEOF
8671cat confdefs.h >>conftest.$ac_ext
8672cat >>conftest.$ac_ext <<_ACEOF
8673/* end confdefs.h.  */
8674#include <$ac_header>
8675_ACEOF
8676if { (ac_try="$ac_cpp conftest.$ac_ext"
8677case "(($ac_try" in
8678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8679  *) ac_try_echo=$ac_try;;
8680esac
8681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8682  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8683  ac_status=$?
8684  grep -v '^ *+' conftest.er1 >conftest.err
8685  rm -f conftest.er1
8686  cat conftest.err >&5
8687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688  (exit $ac_status); } >/dev/null; then
8689  if test -s conftest.err; then
8690    ac_cpp_err=$ac_c_preproc_warn_flag
8691    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8692  else
8693    ac_cpp_err=
8694  fi
8695else
8696  ac_cpp_err=yes
8697fi
8698if test -z "$ac_cpp_err"; then
8699  ac_header_preproc=yes
8700else
8701  echo "$as_me: failed program was:" >&5
8702sed 's/^/| /' conftest.$ac_ext >&5
8703
8704  ac_header_preproc=no
8705fi
8706
8707rm -f conftest.err conftest.$ac_ext
8708{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8709echo "${ECHO_T}$ac_header_preproc" >&6; }
8710
8711# So?  What about this header?
8712case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8713  yes:no: )
8714    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8715echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8716    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8717echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8718    ac_header_preproc=yes
8719    ;;
8720  no:yes:* )
8721    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8722echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8723    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8724echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8725    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8726echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8727    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8728echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8729    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8730echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8731    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8732echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8733    ( cat <<\_ASBOX
8734## ----------------------------------- ##
8735## Report this to llvmbugs@cs.uiuc.edu ##
8736## ----------------------------------- ##
8737_ASBOX
8738     ) | sed "s/^/$as_me: WARNING:     /" >&2
8739    ;;
8740esac
8741{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8742echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8743if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8744  echo $ECHO_N "(cached) $ECHO_C" >&6
8745else
8746  eval "$as_ac_Header=\$ac_header_preproc"
8747fi
8748ac_res=`eval echo '${'$as_ac_Header'}'`
8749	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8750echo "${ECHO_T}$ac_res" >&6; }
8751
8752fi
8753if test `eval echo '${'$as_ac_Header'}'` = yes; then
8754  cat >>confdefs.h <<_ACEOF
8755#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8756_ACEOF
8757
8758fi
8759
8760done
8761
8762# Check whether --enable-ltdl-install was given.
8763if test "${enable_ltdl_install+set}" = set; then
8764  enableval=$enable_ltdl_install;
8765fi
8766
8767
8768
8769
8770if test x"${enable_ltdl_install-no}" != xno; then
8771  INSTALL_LTDL_TRUE=
8772  INSTALL_LTDL_FALSE='#'
8773else
8774  INSTALL_LTDL_TRUE='#'
8775  INSTALL_LTDL_FALSE=
8776fi
8777
8778
8779
8780if test x"${enable_ltdl_convenience-no}" != xno; then
8781  CONVENIENCE_LTDL_TRUE=
8782  CONVENIENCE_LTDL_FALSE='#'
8783else
8784  CONVENIENCE_LTDL_TRUE='#'
8785  CONVENIENCE_LTDL_FALSE=
8786fi
8787
8788
8789{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8790echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8791library_names_spec=
8792libname_spec='lib$name'
8793soname_spec=
8794shrext_cmds=".so"
8795postinstall_cmds=
8796postuninstall_cmds=
8797finish_cmds=
8798finish_eval=
8799shlibpath_var=
8800shlibpath_overrides_runpath=unknown
8801version_type=none
8802dynamic_linker="$host_os ld.so"
8803sys_lib_dlsearch_path_spec="/lib /usr/lib"
8804if test "$GCC" = yes; then
8805  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8806  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8807    # if the path contains ";" then we assume it to be the separator
8808    # otherwise default to the standard path separator (i.e. ":") - it is
8809    # assumed that no part of a normal pathname contains ";" but that should
8810    # okay in the real world where ";" in dirpaths is itself problematic.
8811    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8812  else
8813    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8814  fi
8815else
8816  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8817fi
8818need_lib_prefix=unknown
8819hardcode_into_libs=no
8820
8821# when you set need_version to no, make sure it does not cause -set_version
8822# flags to be left without arguments
8823need_version=unknown
8824
8825case $host_os in
8826aix3*)
8827  version_type=linux
8828  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8829  shlibpath_var=LIBPATH
8830
8831  # AIX 3 has no versioning support, so we append a major version to the name.
8832  soname_spec='${libname}${release}${shared_ext}$major'
8833  ;;
8834
8835aix4* | aix5*)
8836  version_type=linux
8837  need_lib_prefix=no
8838  need_version=no
8839  hardcode_into_libs=yes
8840  if test "$host_cpu" = ia64; then
8841    # AIX 5 supports IA64
8842    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8843    shlibpath_var=LD_LIBRARY_PATH
8844  else
8845    # With GCC up to 2.95.x, collect2 would create an import file
8846    # for dependence libraries.  The import file would start with
8847    # the line `#! .'.  This would cause the generated library to
8848    # depend on `.', always an invalid library.  This was fixed in
8849    # development snapshots of GCC prior to 3.0.
8850    case $host_os in
8851      aix4 | aix4.[01] | aix4.[01].*)
8852      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8853	   echo ' yes '
8854	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8855	:
8856      else
8857	can_build_shared=no
8858      fi
8859      ;;
8860    esac
8861    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8862    # soname into executable. Probably we can add versioning support to
8863    # collect2, so additional links can be useful in future.
8864    if test "$aix_use_runtimelinking" = yes; then
8865      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8866      # instead of lib<name>.a to let people know that these are not
8867      # typical AIX shared libraries.
8868      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8869    else
8870      # We preserve .a as extension for shared libraries through AIX4.2
8871      # and later when we are not doing run time linking.
8872      library_names_spec='${libname}${release}.a $libname.a'
8873      soname_spec='${libname}${release}${shared_ext}$major'
8874    fi
8875    shlibpath_var=LIBPATH
8876  fi
8877  ;;
8878
8879amigaos*)
8880  library_names_spec='$libname.ixlibrary $libname.a'
8881  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8882  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'
8883  ;;
8884
8885beos*)
8886  library_names_spec='${libname}${shared_ext}'
8887  dynamic_linker="$host_os ld.so"
8888  shlibpath_var=LIBRARY_PATH
8889  ;;
8890
8891bsdi[45]*)
8892  version_type=linux
8893  need_version=no
8894  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8895  soname_spec='${libname}${release}${shared_ext}$major'
8896  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8897  shlibpath_var=LD_LIBRARY_PATH
8898  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8899  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8900  # the default ld.so.conf also contains /usr/contrib/lib and
8901  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8902  # libtool to hard-code these into programs
8903  ;;
8904
8905cygwin* | mingw* | pw32*)
8906  version_type=windows
8907  shrext_cmds=".dll"
8908  need_version=no
8909  need_lib_prefix=no
8910
8911  case $GCC,$host_os in
8912  yes,cygwin* | yes,mingw* | yes,pw32*)
8913    library_names_spec='$libname.dll.a'
8914    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8915    postinstall_cmds='base_file=`basename \${file}`~
8916      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8917      dldir=$destdir/`dirname \$dlpath`~
8918      test -d \$dldir || mkdir -p \$dldir~
8919      $install_prog $dir/$dlname \$dldir/$dlname~
8920      chmod a+x \$dldir/$dlname'
8921    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8922      dlpath=$dir/\$dldll~
8923       $rm \$dlpath'
8924    shlibpath_overrides_runpath=yes
8925
8926    case $host_os in
8927    cygwin*)
8928      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8929      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8930      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8931      ;;
8932    mingw*)
8933      # MinGW DLLs use traditional 'lib' prefix
8934      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8935      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8936      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8937        # It is most probably a Windows format PATH printed by
8938        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8939        # path with ; separators, and with drive letters. We can handle the
8940        # drive letters (cygwin fileutils understands them), so leave them,
8941        # especially as we might pass files found there to a mingw objdump,
8942        # which wouldn't understand a cygwinified path. Ahh.
8943        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8944      else
8945        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8946      fi
8947      ;;
8948    pw32*)
8949      # pw32 DLLs use 'pw' prefix rather than 'lib'
8950      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8951      ;;
8952    esac
8953    ;;
8954
8955  *)
8956    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8957    ;;
8958  esac
8959  dynamic_linker='Win32 ld.exe'
8960  # FIXME: first we should search . and the directory the executable is in
8961  shlibpath_var=PATH
8962  ;;
8963
8964darwin* | rhapsody*)
8965  dynamic_linker="$host_os dyld"
8966  version_type=darwin
8967  need_lib_prefix=no
8968  need_version=no
8969  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8970  soname_spec='${libname}${release}${major}$shared_ext'
8971  shlibpath_overrides_runpath=yes
8972  shlibpath_var=DYLD_LIBRARY_PATH
8973  shrext_cmds='.dylib'
8974  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8975  if test "$GCC" = yes; then
8976    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"`
8977  else
8978    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8979  fi
8980  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8981  ;;
8982
8983dgux*)
8984  version_type=linux
8985  need_lib_prefix=no
8986  need_version=no
8987  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8988  soname_spec='${libname}${release}${shared_ext}$major'
8989  shlibpath_var=LD_LIBRARY_PATH
8990  ;;
8991
8992freebsd1*)
8993  dynamic_linker=no
8994  ;;
8995
8996kfreebsd*-gnu)
8997  version_type=linux
8998  need_lib_prefix=no
8999  need_version=no
9000  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9001  soname_spec='${libname}${release}${shared_ext}$major'
9002  shlibpath_var=LD_LIBRARY_PATH
9003  shlibpath_overrides_runpath=no
9004  hardcode_into_libs=yes
9005  dynamic_linker='GNU ld.so'
9006  ;;
9007
9008freebsd* | dragonfly*)
9009  # DragonFly does not have aout.  When/if they implement a new
9010  # versioning mechanism, adjust this.
9011  if test -x /usr/bin/objformat; then
9012    objformat=`/usr/bin/objformat`
9013  else
9014    case $host_os in
9015    freebsd[123]*) objformat=aout ;;
9016    *) objformat=elf ;;
9017    esac
9018  fi
9019  version_type=freebsd-$objformat
9020  case $version_type in
9021    freebsd-elf*)
9022      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9023      need_version=no
9024      need_lib_prefix=no
9025      ;;
9026    freebsd-*)
9027      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9028      need_version=yes
9029      ;;
9030  esac
9031  shlibpath_var=LD_LIBRARY_PATH
9032  case $host_os in
9033  freebsd2*)
9034    shlibpath_overrides_runpath=yes
9035    ;;
9036  freebsd3.[01]* | freebsdelf3.[01]*)
9037    shlibpath_overrides_runpath=yes
9038    hardcode_into_libs=yes
9039    ;;
9040  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9041  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9042    shlibpath_overrides_runpath=no
9043    hardcode_into_libs=yes
9044    ;;
9045  freebsd*) # from 4.6 on
9046    shlibpath_overrides_runpath=yes
9047    hardcode_into_libs=yes
9048    ;;
9049  esac
9050  ;;
9051
9052gnu*)
9053  version_type=linux
9054  need_lib_prefix=no
9055  need_version=no
9056  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9057  soname_spec='${libname}${release}${shared_ext}$major'
9058  shlibpath_var=LD_LIBRARY_PATH
9059  hardcode_into_libs=yes
9060  ;;
9061
9062hpux9* | hpux10* | hpux11*)
9063  # Give a soname corresponding to the major version so that dld.sl refuses to
9064  # link against other versions.
9065  version_type=sunos
9066  need_lib_prefix=no
9067  need_version=no
9068  case $host_cpu in
9069  ia64*)
9070    shrext_cmds='.so'
9071    hardcode_into_libs=yes
9072    dynamic_linker="$host_os dld.so"
9073    shlibpath_var=LD_LIBRARY_PATH
9074    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9075    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9076    soname_spec='${libname}${release}${shared_ext}$major'
9077    if test "X$HPUX_IA64_MODE" = X32; then
9078      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9079    else
9080      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9081    fi
9082    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9083    ;;
9084   hppa*64*)
9085     shrext_cmds='.sl'
9086     hardcode_into_libs=yes
9087     dynamic_linker="$host_os dld.sl"
9088     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9089     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9090     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9091     soname_spec='${libname}${release}${shared_ext}$major'
9092     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9093     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9094     ;;
9095   *)
9096    shrext_cmds='.sl'
9097    dynamic_linker="$host_os dld.sl"
9098    shlibpath_var=SHLIB_PATH
9099    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9100    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9101    soname_spec='${libname}${release}${shared_ext}$major'
9102    ;;
9103  esac
9104  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9105  postinstall_cmds='chmod 555 $lib'
9106  ;;
9107
9108interix3*)
9109  version_type=linux
9110  need_lib_prefix=no
9111  need_version=no
9112  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9113  soname_spec='${libname}${release}${shared_ext}$major'
9114  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9115  shlibpath_var=LD_LIBRARY_PATH
9116  shlibpath_overrides_runpath=no
9117  hardcode_into_libs=yes
9118  ;;
9119
9120irix5* | irix6* | nonstopux*)
9121  case $host_os in
9122    nonstopux*) version_type=nonstopux ;;
9123    *)
9124	if test "$lt_cv_prog_gnu_ld" = yes; then
9125		version_type=linux
9126	else
9127		version_type=irix
9128	fi ;;
9129  esac
9130  need_lib_prefix=no
9131  need_version=no
9132  soname_spec='${libname}${release}${shared_ext}$major'
9133  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9134  case $host_os in
9135  irix5* | nonstopux*)
9136    libsuff= shlibsuff=
9137    ;;
9138  *)
9139    case $LD in # libtool.m4 will add one of these switches to LD
9140    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9141      libsuff= shlibsuff= libmagic=32-bit;;
9142    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9143      libsuff=32 shlibsuff=N32 libmagic=N32;;
9144    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9145      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9146    *) libsuff= shlibsuff= libmagic=never-match;;
9147    esac
9148    ;;
9149  esac
9150  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9151  shlibpath_overrides_runpath=no
9152  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9153  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9154  hardcode_into_libs=yes
9155  ;;
9156
9157# No shared lib support for Linux oldld, aout, or coff.
9158linux*oldld* | linux*aout* | linux*coff*)
9159  dynamic_linker=no
9160  ;;
9161
9162# This must be Linux ELF.
9163linux*)
9164  version_type=linux
9165  need_lib_prefix=no
9166  need_version=no
9167  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9168  soname_spec='${libname}${release}${shared_ext}$major'
9169  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9170  shlibpath_var=LD_LIBRARY_PATH
9171  shlibpath_overrides_runpath=no
9172  # This implies no fast_install, which is unacceptable.
9173  # Some rework will be needed to allow for fast_install
9174  # before this can be enabled.
9175  hardcode_into_libs=yes
9176
9177  # Append ld.so.conf contents to the search path
9178  if test -f /etc/ld.so.conf; then
9179    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' ' '`
9180    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9181  fi
9182
9183  # We used to test for /lib/ld.so.1 and disable shared libraries on
9184  # powerpc, because MkLinux only supported shared libraries with the
9185  # GNU dynamic linker.  Since this was broken with cross compilers,
9186  # most powerpc-linux boxes support dynamic linking these days and
9187  # people can always --disable-shared, the test was removed, and we
9188  # assume the GNU/Linux dynamic linker is in use.
9189  dynamic_linker='GNU/Linux ld.so'
9190  ;;
9191
9192knetbsd*-gnu)
9193  version_type=linux
9194  need_lib_prefix=no
9195  need_version=no
9196  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9197  soname_spec='${libname}${release}${shared_ext}$major'
9198  shlibpath_var=LD_LIBRARY_PATH
9199  shlibpath_overrides_runpath=no
9200  hardcode_into_libs=yes
9201  dynamic_linker='GNU ld.so'
9202  ;;
9203
9204netbsd*)
9205  version_type=sunos
9206  need_lib_prefix=no
9207  need_version=no
9208  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9209    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9210    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9211    dynamic_linker='NetBSD (a.out) ld.so'
9212  else
9213    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9214    soname_spec='${libname}${release}${shared_ext}$major'
9215    dynamic_linker='NetBSD ld.elf_so'
9216  fi
9217  shlibpath_var=LD_LIBRARY_PATH
9218  shlibpath_overrides_runpath=yes
9219  hardcode_into_libs=yes
9220  ;;
9221
9222newsos6)
9223  version_type=linux
9224  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9225  shlibpath_var=LD_LIBRARY_PATH
9226  shlibpath_overrides_runpath=yes
9227  ;;
9228
9229nto-qnx*)
9230  version_type=linux
9231  need_lib_prefix=no
9232  need_version=no
9233  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9234  soname_spec='${libname}${release}${shared_ext}$major'
9235  shlibpath_var=LD_LIBRARY_PATH
9236  shlibpath_overrides_runpath=yes
9237  ;;
9238
9239openbsd*)
9240  version_type=sunos
9241  sys_lib_dlsearch_path_spec="/usr/lib"
9242  need_lib_prefix=no
9243  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9244  case $host_os in
9245    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9246    *)                         need_version=no  ;;
9247  esac
9248  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9249  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9250  shlibpath_var=LD_LIBRARY_PATH
9251  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9252    case $host_os in
9253      openbsd2.[89] | openbsd2.[89].*)
9254	shlibpath_overrides_runpath=no
9255	;;
9256      *)
9257	shlibpath_overrides_runpath=yes
9258	;;
9259      esac
9260  else
9261    shlibpath_overrides_runpath=yes
9262  fi
9263  ;;
9264
9265os2*)
9266  libname_spec='$name'
9267  shrext_cmds=".dll"
9268  need_lib_prefix=no
9269  library_names_spec='$libname${shared_ext} $libname.a'
9270  dynamic_linker='OS/2 ld.exe'
9271  shlibpath_var=LIBPATH
9272  ;;
9273
9274osf3* | osf4* | osf5*)
9275  version_type=osf
9276  need_lib_prefix=no
9277  need_version=no
9278  soname_spec='${libname}${release}${shared_ext}$major'
9279  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9280  shlibpath_var=LD_LIBRARY_PATH
9281  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9282  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9283  ;;
9284
9285solaris*)
9286  version_type=linux
9287  need_lib_prefix=no
9288  need_version=no
9289  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9290  soname_spec='${libname}${release}${shared_ext}$major'
9291  shlibpath_var=LD_LIBRARY_PATH
9292  shlibpath_overrides_runpath=yes
9293  hardcode_into_libs=yes
9294  # ldd complains unless libraries are executable
9295  postinstall_cmds='chmod +x $lib'
9296  ;;
9297
9298sunos4*)
9299  version_type=sunos
9300  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9301  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9302  shlibpath_var=LD_LIBRARY_PATH
9303  shlibpath_overrides_runpath=yes
9304  if test "$with_gnu_ld" = yes; then
9305    need_lib_prefix=no
9306  fi
9307  need_version=yes
9308  ;;
9309
9310sysv4 | sysv4.3*)
9311  version_type=linux
9312  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9313  soname_spec='${libname}${release}${shared_ext}$major'
9314  shlibpath_var=LD_LIBRARY_PATH
9315  case $host_vendor in
9316    sni)
9317      shlibpath_overrides_runpath=no
9318      need_lib_prefix=no
9319      export_dynamic_flag_spec='${wl}-Blargedynsym'
9320      runpath_var=LD_RUN_PATH
9321      ;;
9322    siemens)
9323      need_lib_prefix=no
9324      ;;
9325    motorola)
9326      need_lib_prefix=no
9327      need_version=no
9328      shlibpath_overrides_runpath=no
9329      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9330      ;;
9331  esac
9332  ;;
9333
9334sysv4*MP*)
9335  if test -d /usr/nec ;then
9336    version_type=linux
9337    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9338    soname_spec='$libname${shared_ext}.$major'
9339    shlibpath_var=LD_LIBRARY_PATH
9340  fi
9341  ;;
9342
9343sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9344  version_type=freebsd-elf
9345  need_lib_prefix=no
9346  need_version=no
9347  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9348  soname_spec='${libname}${release}${shared_ext}$major'
9349  shlibpath_var=LD_LIBRARY_PATH
9350  hardcode_into_libs=yes
9351  if test "$with_gnu_ld" = yes; then
9352    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9353    shlibpath_overrides_runpath=no
9354  else
9355    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9356    shlibpath_overrides_runpath=yes
9357    case $host_os in
9358      sco3.2v5*)
9359        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9360	;;
9361    esac
9362  fi
9363  sys_lib_dlsearch_path_spec='/usr/lib'
9364  ;;
9365
9366uts4*)
9367  version_type=linux
9368  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9369  soname_spec='${libname}${release}${shared_ext}$major'
9370  shlibpath_var=LD_LIBRARY_PATH
9371  ;;
9372
9373*)
9374  dynamic_linker=no
9375  ;;
9376esac
9377{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9378echo "${ECHO_T}$dynamic_linker" >&6; }
9379test "$dynamic_linker" = no && can_build_shared=no
9380
9381variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9382if test "$GCC" = yes; then
9383  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9384fi
9385
9386
9387{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9388echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9389if test "${libltdl_cv_shlibext+set}" = set; then
9390  echo $ECHO_N "(cached) $ECHO_C" >&6
9391else
9392
9393module=yes
9394eval libltdl_cv_shlibext=$shrext_cmds
9395
9396fi
9397{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9398echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9399if test -n "$libltdl_cv_shlibext"; then
9400
9401cat >>confdefs.h <<_ACEOF
9402#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9403_ACEOF
9404
9405fi
9406
9407
9408{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9409echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9410if test "${libltdl_cv_shlibpath_var+set}" = set; then
9411  echo $ECHO_N "(cached) $ECHO_C" >&6
9412else
9413  libltdl_cv_shlibpath_var="$shlibpath_var"
9414fi
9415{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9416echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9417if test -n "$libltdl_cv_shlibpath_var"; then
9418
9419cat >>confdefs.h <<_ACEOF
9420#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9421_ACEOF
9422
9423fi
9424
9425
9426{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9427echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9428if test "${libltdl_cv_sys_search_path+set}" = set; then
9429  echo $ECHO_N "(cached) $ECHO_C" >&6
9430else
9431  libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9432fi
9433{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9434echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9435if test -n "$libltdl_cv_sys_search_path"; then
9436  sys_search_path=
9437  for dir in $libltdl_cv_sys_search_path; do
9438    if test -z "$sys_search_path"; then
9439      sys_search_path="$dir"
9440    else
9441      sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9442    fi
9443  done
9444
9445cat >>confdefs.h <<_ACEOF
9446#define LTDL_SYSSEARCHPATH "$sys_search_path"
9447_ACEOF
9448
9449fi
9450
9451{ echo "$as_me:$LINENO: checking for objdir" >&5
9452echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9453if test "${libltdl_cv_objdir+set}" = set; then
9454  echo $ECHO_N "(cached) $ECHO_C" >&6
9455else
9456  libltdl_cv_objdir="$objdir"
9457  if test -n "$objdir"; then
9458    :
9459  else
9460    rm -f .libs 2>/dev/null
9461    mkdir .libs 2>/dev/null
9462    if test -d .libs; then
9463      libltdl_cv_objdir=.libs
9464    else
9465      # MS-DOS does not allow filenames that begin with a dot.
9466      libltdl_cv_objdir=_libs
9467    fi
9468  rmdir .libs 2>/dev/null
9469  fi
9470
9471fi
9472{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9473echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9474
9475cat >>confdefs.h <<_ACEOF
9476#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9477_ACEOF
9478
9479
9480
9481
9482
9483
9484# Check for command to grab the raw symbol name followed by C symbol from nm.
9485{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9486echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9487if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9488  echo $ECHO_N "(cached) $ECHO_C" >&6
9489else
9490
9491# These are sane defaults that work on at least a few old systems.
9492# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9493
9494# Character class describing NM global symbol codes.
9495symcode='[BCDEGRST]'
9496
9497# Regexp to match symbols that can be accessed directly from C.
9498sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9499
9500# Transform an extracted symbol line into a proper C declaration
9501lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9502
9503# Transform an extracted symbol line into symbol name and symbol address
9504lt_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'"
9505
9506# Define system-specific variables.
9507case $host_os in
9508aix*)
9509  symcode='[BCDT]'
9510  ;;
9511cygwin* | mingw* | pw32*)
9512  symcode='[ABCDGISTW]'
9513  ;;
9514hpux*) # Its linker distinguishes data from code symbols
9515  if test "$host_cpu" = ia64; then
9516    symcode='[ABCDEGRST]'
9517  fi
9518  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9519  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'"
9520  ;;
9521linux*)
9522  if test "$host_cpu" = ia64; then
9523    symcode='[ABCDGIRSTW]'
9524    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9525    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'"
9526  fi
9527  ;;
9528irix* | nonstopux*)
9529  symcode='[BCDEGRST]'
9530  ;;
9531osf*)
9532  symcode='[BCDEGQRST]'
9533  ;;
9534solaris*)
9535  symcode='[BDRT]'
9536  ;;
9537sco3.2v5*)
9538  symcode='[DT]'
9539  ;;
9540sysv4.2uw2*)
9541  symcode='[DT]'
9542  ;;
9543sysv5* | sco5v6* | unixware* | OpenUNIX*)
9544  symcode='[ABDT]'
9545  ;;
9546sysv4)
9547  symcode='[DFNSTU]'
9548  ;;
9549esac
9550
9551# Handle CRLF in mingw tool chain
9552opt_cr=
9553case $build_os in
9554mingw*)
9555  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9556  ;;
9557esac
9558
9559# If we're using GNU nm, then use its standard symbol codes.
9560case `$NM -V 2>&1` in
9561*GNU* | *'with BFD'*)
9562  symcode='[ABCDGIRSTW]' ;;
9563esac
9564
9565# Try without a prefix undercore, then with it.
9566for ac_symprfx in "" "_"; do
9567
9568  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9569  symxfrm="\\1 $ac_symprfx\\2 \\2"
9570
9571  # Write the raw and C identifiers.
9572  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9573
9574  # Check to see that the pipe works correctly.
9575  pipe_works=no
9576
9577  rm -f conftest*
9578  cat > conftest.$ac_ext <<EOF
9579#ifdef __cplusplus
9580extern "C" {
9581#endif
9582char nm_test_var;
9583void nm_test_func(){}
9584#ifdef __cplusplus
9585}
9586#endif
9587int main(){nm_test_var='a';nm_test_func();return(0);}
9588EOF
9589
9590  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9591  (eval $ac_compile) 2>&5
9592  ac_status=$?
9593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594  (exit $ac_status); }; then
9595    # Now try to grab the symbols.
9596    nlist=conftest.nm
9597    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9598  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9599  ac_status=$?
9600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601  (exit $ac_status); } && test -s "$nlist"; then
9602      # Try sorting and uniquifying the output.
9603      if sort "$nlist" | uniq > "$nlist"T; then
9604	mv -f "$nlist"T "$nlist"
9605      else
9606	rm -f "$nlist"T
9607      fi
9608
9609      # Make sure that we snagged all the symbols we need.
9610      if grep ' nm_test_var$' "$nlist" >/dev/null; then
9611	if grep ' nm_test_func$' "$nlist" >/dev/null; then
9612	  cat <<EOF > conftest.$ac_ext
9613#ifdef __cplusplus
9614extern "C" {
9615#endif
9616
9617EOF
9618	  # Now generate the symbol file.
9619	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9620
9621	  cat <<EOF >> conftest.$ac_ext
9622#if defined (__STDC__) && __STDC__
9623# define lt_ptr_t void *
9624#else
9625# define lt_ptr_t char *
9626# define const
9627#endif
9628
9629/* The mapping between symbol names and symbols. */
9630const struct {
9631  const char *name;
9632  lt_ptr_t address;
9633}
9634lt_preloaded_symbols[] =
9635{
9636EOF
9637	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9638	  cat <<\EOF >> conftest.$ac_ext
9639  {0, (lt_ptr_t) 0}
9640};
9641
9642#ifdef __cplusplus
9643}
9644#endif
9645EOF
9646	  # Now try linking the two files.
9647	  mv conftest.$ac_objext conftstm.$ac_objext
9648	  lt_save_LIBS="$LIBS"
9649	  lt_save_CFLAGS="$CFLAGS"
9650	  LIBS="conftstm.$ac_objext"
9651	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9652	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9653  (eval $ac_link) 2>&5
9654  ac_status=$?
9655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656  (exit $ac_status); } && test -s conftest${ac_exeext}; then
9657	    pipe_works=yes
9658	  fi
9659	  LIBS="$lt_save_LIBS"
9660	  CFLAGS="$lt_save_CFLAGS"
9661	else
9662	  echo "cannot find nm_test_func in $nlist" >&5
9663	fi
9664      else
9665	echo "cannot find nm_test_var in $nlist" >&5
9666      fi
9667    else
9668      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9669    fi
9670  else
9671    echo "$progname: failed program was:" >&5
9672    cat conftest.$ac_ext >&5
9673  fi
9674  rm -f conftest* conftst*
9675
9676  # Do not use the global_symbol_pipe unless it works.
9677  if test "$pipe_works" = yes; then
9678    break
9679  else
9680    lt_cv_sys_global_symbol_pipe=
9681  fi
9682done
9683
9684fi
9685
9686if test -z "$lt_cv_sys_global_symbol_pipe"; then
9687  lt_cv_sys_global_symbol_to_cdecl=
9688fi
9689if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9690  { echo "$as_me:$LINENO: result: failed" >&5
9691echo "${ECHO_T}failed" >&6; }
9692else
9693  { echo "$as_me:$LINENO: result: ok" >&5
9694echo "${ECHO_T}ok" >&6; }
9695fi
9696
9697
9698{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9699echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9700if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9701  echo $ECHO_N "(cached) $ECHO_C" >&6
9702else
9703  if test -n "$lt_cv_sys_global_symbol_pipe"; then
9704    libltdl_cv_preloaded_symbols=yes
9705  else
9706    libltdl_cv_preloaded_symbols=no
9707  fi
9708
9709fi
9710{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9711echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9712if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9713
9714cat >>confdefs.h <<\_ACEOF
9715#define HAVE_PRELOADED_SYMBOLS 1
9716_ACEOF
9717
9718fi
9719
9720LIBADD_DL=
9721
9722ac_ext=c
9723ac_cpp='$CPP $CPPFLAGS'
9724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9726ac_compiler_gnu=$ac_cv_c_compiler_gnu
9727
9728
9729{ echo "$as_me:$LINENO: checking for shl_load" >&5
9730echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9731if test "${ac_cv_func_shl_load+set}" = set; then
9732  echo $ECHO_N "(cached) $ECHO_C" >&6
9733else
9734  cat >conftest.$ac_ext <<_ACEOF
9735/* confdefs.h.  */
9736_ACEOF
9737cat confdefs.h >>conftest.$ac_ext
9738cat >>conftest.$ac_ext <<_ACEOF
9739/* end confdefs.h.  */
9740/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9741   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9742#define shl_load innocuous_shl_load
9743
9744/* System header to define __stub macros and hopefully few prototypes,
9745    which can conflict with char shl_load (); below.
9746    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9747    <limits.h> exists even on freestanding compilers.  */
9748
9749#ifdef __STDC__
9750# include <limits.h>
9751#else
9752# include <assert.h>
9753#endif
9754
9755#undef shl_load
9756
9757/* Override any GCC internal prototype to avoid an error.
9758   Use char because int might match the return type of a GCC
9759   builtin and then its argument prototype would still apply.  */
9760#ifdef __cplusplus
9761extern "C"
9762#endif
9763char shl_load ();
9764/* The GNU C library defines this for functions which it implements
9765    to always fail with ENOSYS.  Some functions are actually named
9766    something starting with __ and the normal name is an alias.  */
9767#if defined __stub_shl_load || defined __stub___shl_load
9768choke me
9769#endif
9770
9771int
9772main ()
9773{
9774return shl_load ();
9775  ;
9776  return 0;
9777}
9778_ACEOF
9779rm -f conftest.$ac_objext conftest$ac_exeext
9780if { (ac_try="$ac_link"
9781case "(($ac_try" in
9782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9783  *) ac_try_echo=$ac_try;;
9784esac
9785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9786  (eval "$ac_link") 2>conftest.er1
9787  ac_status=$?
9788  grep -v '^ *+' conftest.er1 >conftest.err
9789  rm -f conftest.er1
9790  cat conftest.err >&5
9791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792  (exit $ac_status); } &&
9793	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9794  { (case "(($ac_try" in
9795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9796  *) ac_try_echo=$ac_try;;
9797esac
9798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9799  (eval "$ac_try") 2>&5
9800  ac_status=$?
9801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802  (exit $ac_status); }; } &&
9803	 { ac_try='test -s conftest$ac_exeext'
9804  { (case "(($ac_try" in
9805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9806  *) ac_try_echo=$ac_try;;
9807esac
9808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9809  (eval "$ac_try") 2>&5
9810  ac_status=$?
9811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812  (exit $ac_status); }; }; then
9813  ac_cv_func_shl_load=yes
9814else
9815  echo "$as_me: failed program was:" >&5
9816sed 's/^/| /' conftest.$ac_ext >&5
9817
9818	ac_cv_func_shl_load=no
9819fi
9820
9821rm -f core conftest.err conftest.$ac_objext \
9822      conftest$ac_exeext conftest.$ac_ext
9823fi
9824{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9825echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9826if test $ac_cv_func_shl_load = yes; then
9827
9828cat >>confdefs.h <<\_ACEOF
9829#define HAVE_SHL_LOAD 1
9830_ACEOF
9831
9832else
9833  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9834echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9835if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9836  echo $ECHO_N "(cached) $ECHO_C" >&6
9837else
9838  ac_check_lib_save_LIBS=$LIBS
9839LIBS="-ldld  $LIBS"
9840cat >conftest.$ac_ext <<_ACEOF
9841/* confdefs.h.  */
9842_ACEOF
9843cat confdefs.h >>conftest.$ac_ext
9844cat >>conftest.$ac_ext <<_ACEOF
9845/* end confdefs.h.  */
9846
9847/* Override any GCC internal prototype to avoid an error.
9848   Use char because int might match the return type of a GCC
9849   builtin and then its argument prototype would still apply.  */
9850#ifdef __cplusplus
9851extern "C"
9852#endif
9853char shl_load ();
9854int
9855main ()
9856{
9857return shl_load ();
9858  ;
9859  return 0;
9860}
9861_ACEOF
9862rm -f conftest.$ac_objext conftest$ac_exeext
9863if { (ac_try="$ac_link"
9864case "(($ac_try" in
9865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866  *) ac_try_echo=$ac_try;;
9867esac
9868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9869  (eval "$ac_link") 2>conftest.er1
9870  ac_status=$?
9871  grep -v '^ *+' conftest.er1 >conftest.err
9872  rm -f conftest.er1
9873  cat conftest.err >&5
9874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875  (exit $ac_status); } &&
9876	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9877  { (case "(($ac_try" in
9878  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9879  *) ac_try_echo=$ac_try;;
9880esac
9881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9882  (eval "$ac_try") 2>&5
9883  ac_status=$?
9884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885  (exit $ac_status); }; } &&
9886	 { ac_try='test -s conftest$ac_exeext'
9887  { (case "(($ac_try" in
9888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9889  *) ac_try_echo=$ac_try;;
9890esac
9891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9892  (eval "$ac_try") 2>&5
9893  ac_status=$?
9894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895  (exit $ac_status); }; }; then
9896  ac_cv_lib_dld_shl_load=yes
9897else
9898  echo "$as_me: failed program was:" >&5
9899sed 's/^/| /' conftest.$ac_ext >&5
9900
9901	ac_cv_lib_dld_shl_load=no
9902fi
9903
9904rm -f core conftest.err conftest.$ac_objext \
9905      conftest$ac_exeext conftest.$ac_ext
9906LIBS=$ac_check_lib_save_LIBS
9907fi
9908{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9909echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9910if test $ac_cv_lib_dld_shl_load = yes; then
9911
9912cat >>confdefs.h <<\_ACEOF
9913#define HAVE_SHL_LOAD 1
9914_ACEOF
9915
9916	LIBADD_DL="$LIBADD_DL -ldld"
9917else
9918  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9919echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9920if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9921  echo $ECHO_N "(cached) $ECHO_C" >&6
9922else
9923  ac_check_lib_save_LIBS=$LIBS
9924LIBS="-ldl  $LIBS"
9925cat >conftest.$ac_ext <<_ACEOF
9926/* confdefs.h.  */
9927_ACEOF
9928cat confdefs.h >>conftest.$ac_ext
9929cat >>conftest.$ac_ext <<_ACEOF
9930/* end confdefs.h.  */
9931
9932/* Override any GCC internal prototype to avoid an error.
9933   Use char because int might match the return type of a GCC
9934   builtin and then its argument prototype would still apply.  */
9935#ifdef __cplusplus
9936extern "C"
9937#endif
9938char dlopen ();
9939int
9940main ()
9941{
9942return dlopen ();
9943  ;
9944  return 0;
9945}
9946_ACEOF
9947rm -f conftest.$ac_objext conftest$ac_exeext
9948if { (ac_try="$ac_link"
9949case "(($ac_try" in
9950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9951  *) ac_try_echo=$ac_try;;
9952esac
9953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9954  (eval "$ac_link") 2>conftest.er1
9955  ac_status=$?
9956  grep -v '^ *+' conftest.er1 >conftest.err
9957  rm -f conftest.er1
9958  cat conftest.err >&5
9959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960  (exit $ac_status); } &&
9961	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9962  { (case "(($ac_try" in
9963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9964  *) ac_try_echo=$ac_try;;
9965esac
9966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9967  (eval "$ac_try") 2>&5
9968  ac_status=$?
9969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970  (exit $ac_status); }; } &&
9971	 { ac_try='test -s conftest$ac_exeext'
9972  { (case "(($ac_try" in
9973  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9974  *) ac_try_echo=$ac_try;;
9975esac
9976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9977  (eval "$ac_try") 2>&5
9978  ac_status=$?
9979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980  (exit $ac_status); }; }; then
9981  ac_cv_lib_dl_dlopen=yes
9982else
9983  echo "$as_me: failed program was:" >&5
9984sed 's/^/| /' conftest.$ac_ext >&5
9985
9986	ac_cv_lib_dl_dlopen=no
9987fi
9988
9989rm -f core conftest.err conftest.$ac_objext \
9990      conftest$ac_exeext conftest.$ac_ext
9991LIBS=$ac_check_lib_save_LIBS
9992fi
9993{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9994echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9995if test $ac_cv_lib_dl_dlopen = yes; then
9996
9997cat >>confdefs.h <<\_ACEOF
9998#define HAVE_LIBDL 1
9999_ACEOF
10000
10001	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10002else
10003  cat >conftest.$ac_ext <<_ACEOF
10004/* confdefs.h.  */
10005_ACEOF
10006cat confdefs.h >>conftest.$ac_ext
10007cat >>conftest.$ac_ext <<_ACEOF
10008/* end confdefs.h.  */
10009#if HAVE_DLFCN_H
10010#  include <dlfcn.h>
10011#endif
10012
10013int
10014main ()
10015{
10016dlopen(0, 0);
10017  ;
10018  return 0;
10019}
10020_ACEOF
10021rm -f conftest.$ac_objext conftest$ac_exeext
10022if { (ac_try="$ac_link"
10023case "(($ac_try" in
10024  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10025  *) ac_try_echo=$ac_try;;
10026esac
10027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10028  (eval "$ac_link") 2>conftest.er1
10029  ac_status=$?
10030  grep -v '^ *+' conftest.er1 >conftest.err
10031  rm -f conftest.er1
10032  cat conftest.err >&5
10033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034  (exit $ac_status); } &&
10035	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10036  { (case "(($ac_try" in
10037  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10038  *) ac_try_echo=$ac_try;;
10039esac
10040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10041  (eval "$ac_try") 2>&5
10042  ac_status=$?
10043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044  (exit $ac_status); }; } &&
10045	 { ac_try='test -s conftest$ac_exeext'
10046  { (case "(($ac_try" in
10047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10048  *) ac_try_echo=$ac_try;;
10049esac
10050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10051  (eval "$ac_try") 2>&5
10052  ac_status=$?
10053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054  (exit $ac_status); }; }; then
10055
10056cat >>confdefs.h <<\_ACEOF
10057#define HAVE_LIBDL 1
10058_ACEOF
10059 libltdl_cv_func_dlopen="yes"
10060else
10061  echo "$as_me: failed program was:" >&5
10062sed 's/^/| /' conftest.$ac_ext >&5
10063
10064	{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10065echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10066if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10067  echo $ECHO_N "(cached) $ECHO_C" >&6
10068else
10069  ac_check_lib_save_LIBS=$LIBS
10070LIBS="-lsvld  $LIBS"
10071cat >conftest.$ac_ext <<_ACEOF
10072/* confdefs.h.  */
10073_ACEOF
10074cat confdefs.h >>conftest.$ac_ext
10075cat >>conftest.$ac_ext <<_ACEOF
10076/* end confdefs.h.  */
10077
10078/* Override any GCC internal prototype to avoid an error.
10079   Use char because int might match the return type of a GCC
10080   builtin and then its argument prototype would still apply.  */
10081#ifdef __cplusplus
10082extern "C"
10083#endif
10084char dlopen ();
10085int
10086main ()
10087{
10088return dlopen ();
10089  ;
10090  return 0;
10091}
10092_ACEOF
10093rm -f conftest.$ac_objext conftest$ac_exeext
10094if { (ac_try="$ac_link"
10095case "(($ac_try" in
10096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10097  *) ac_try_echo=$ac_try;;
10098esac
10099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10100  (eval "$ac_link") 2>conftest.er1
10101  ac_status=$?
10102  grep -v '^ *+' conftest.er1 >conftest.err
10103  rm -f conftest.er1
10104  cat conftest.err >&5
10105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106  (exit $ac_status); } &&
10107	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10108  { (case "(($ac_try" in
10109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10110  *) ac_try_echo=$ac_try;;
10111esac
10112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10113  (eval "$ac_try") 2>&5
10114  ac_status=$?
10115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116  (exit $ac_status); }; } &&
10117	 { ac_try='test -s conftest$ac_exeext'
10118  { (case "(($ac_try" in
10119  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10120  *) ac_try_echo=$ac_try;;
10121esac
10122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10123  (eval "$ac_try") 2>&5
10124  ac_status=$?
10125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126  (exit $ac_status); }; }; then
10127  ac_cv_lib_svld_dlopen=yes
10128else
10129  echo "$as_me: failed program was:" >&5
10130sed 's/^/| /' conftest.$ac_ext >&5
10131
10132	ac_cv_lib_svld_dlopen=no
10133fi
10134
10135rm -f core conftest.err conftest.$ac_objext \
10136      conftest$ac_exeext conftest.$ac_ext
10137LIBS=$ac_check_lib_save_LIBS
10138fi
10139{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10140echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10141if test $ac_cv_lib_svld_dlopen = yes; then
10142
10143cat >>confdefs.h <<\_ACEOF
10144#define HAVE_LIBDL 1
10145_ACEOF
10146
10147	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10148else
10149  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10150echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10151if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10152  echo $ECHO_N "(cached) $ECHO_C" >&6
10153else
10154  ac_check_lib_save_LIBS=$LIBS
10155LIBS="-ldld  $LIBS"
10156cat >conftest.$ac_ext <<_ACEOF
10157/* confdefs.h.  */
10158_ACEOF
10159cat confdefs.h >>conftest.$ac_ext
10160cat >>conftest.$ac_ext <<_ACEOF
10161/* end confdefs.h.  */
10162
10163/* Override any GCC internal prototype to avoid an error.
10164   Use char because int might match the return type of a GCC
10165   builtin and then its argument prototype would still apply.  */
10166#ifdef __cplusplus
10167extern "C"
10168#endif
10169char dld_link ();
10170int
10171main ()
10172{
10173return dld_link ();
10174  ;
10175  return 0;
10176}
10177_ACEOF
10178rm -f conftest.$ac_objext conftest$ac_exeext
10179if { (ac_try="$ac_link"
10180case "(($ac_try" in
10181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10182  *) ac_try_echo=$ac_try;;
10183esac
10184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10185  (eval "$ac_link") 2>conftest.er1
10186  ac_status=$?
10187  grep -v '^ *+' conftest.er1 >conftest.err
10188  rm -f conftest.er1
10189  cat conftest.err >&5
10190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191  (exit $ac_status); } &&
10192	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10193  { (case "(($ac_try" in
10194  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10195  *) ac_try_echo=$ac_try;;
10196esac
10197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10198  (eval "$ac_try") 2>&5
10199  ac_status=$?
10200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201  (exit $ac_status); }; } &&
10202	 { ac_try='test -s conftest$ac_exeext'
10203  { (case "(($ac_try" in
10204  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10205  *) ac_try_echo=$ac_try;;
10206esac
10207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10208  (eval "$ac_try") 2>&5
10209  ac_status=$?
10210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211  (exit $ac_status); }; }; then
10212  ac_cv_lib_dld_dld_link=yes
10213else
10214  echo "$as_me: failed program was:" >&5
10215sed 's/^/| /' conftest.$ac_ext >&5
10216
10217	ac_cv_lib_dld_dld_link=no
10218fi
10219
10220rm -f core conftest.err conftest.$ac_objext \
10221      conftest$ac_exeext conftest.$ac_ext
10222LIBS=$ac_check_lib_save_LIBS
10223fi
10224{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10225echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10226if test $ac_cv_lib_dld_dld_link = yes; then
10227
10228cat >>confdefs.h <<\_ACEOF
10229#define HAVE_DLD 1
10230_ACEOF
10231
10232	 	LIBADD_DL="$LIBADD_DL -ldld"
10233else
10234  { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10235echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10236if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10237  echo $ECHO_N "(cached) $ECHO_C" >&6
10238else
10239  cat >conftest.$ac_ext <<_ACEOF
10240/* confdefs.h.  */
10241_ACEOF
10242cat confdefs.h >>conftest.$ac_ext
10243cat >>conftest.$ac_ext <<_ACEOF
10244/* end confdefs.h.  */
10245/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10246   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10247#define _dyld_func_lookup innocuous__dyld_func_lookup
10248
10249/* System header to define __stub macros and hopefully few prototypes,
10250    which can conflict with char _dyld_func_lookup (); below.
10251    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10252    <limits.h> exists even on freestanding compilers.  */
10253
10254#ifdef __STDC__
10255# include <limits.h>
10256#else
10257# include <assert.h>
10258#endif
10259
10260#undef _dyld_func_lookup
10261
10262/* Override any GCC internal prototype to avoid an error.
10263   Use char because int might match the return type of a GCC
10264   builtin and then its argument prototype would still apply.  */
10265#ifdef __cplusplus
10266extern "C"
10267#endif
10268char _dyld_func_lookup ();
10269/* The GNU C library defines this for functions which it implements
10270    to always fail with ENOSYS.  Some functions are actually named
10271    something starting with __ and the normal name is an alias.  */
10272#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10273choke me
10274#endif
10275
10276int
10277main ()
10278{
10279return _dyld_func_lookup ();
10280  ;
10281  return 0;
10282}
10283_ACEOF
10284rm -f conftest.$ac_objext conftest$ac_exeext
10285if { (ac_try="$ac_link"
10286case "(($ac_try" in
10287  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10288  *) ac_try_echo=$ac_try;;
10289esac
10290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10291  (eval "$ac_link") 2>conftest.er1
10292  ac_status=$?
10293  grep -v '^ *+' conftest.er1 >conftest.err
10294  rm -f conftest.er1
10295  cat conftest.err >&5
10296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297  (exit $ac_status); } &&
10298	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10299  { (case "(($ac_try" in
10300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10301  *) ac_try_echo=$ac_try;;
10302esac
10303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10304  (eval "$ac_try") 2>&5
10305  ac_status=$?
10306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307  (exit $ac_status); }; } &&
10308	 { ac_try='test -s conftest$ac_exeext'
10309  { (case "(($ac_try" in
10310  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10311  *) ac_try_echo=$ac_try;;
10312esac
10313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10314  (eval "$ac_try") 2>&5
10315  ac_status=$?
10316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317  (exit $ac_status); }; }; then
10318  ac_cv_func__dyld_func_lookup=yes
10319else
10320  echo "$as_me: failed program was:" >&5
10321sed 's/^/| /' conftest.$ac_ext >&5
10322
10323	ac_cv_func__dyld_func_lookup=no
10324fi
10325
10326rm -f core conftest.err conftest.$ac_objext \
10327      conftest$ac_exeext conftest.$ac_ext
10328fi
10329{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10330echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10331if test $ac_cv_func__dyld_func_lookup = yes; then
10332
10333cat >>confdefs.h <<\_ACEOF
10334#define HAVE_DYLD 1
10335_ACEOF
10336
10337fi
10338
10339
10340fi
10341
10342
10343fi
10344
10345
10346fi
10347
10348rm -f core conftest.err conftest.$ac_objext \
10349      conftest$ac_exeext conftest.$ac_ext
10350
10351fi
10352
10353
10354fi
10355
10356
10357fi
10358
10359
10360if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10361then
10362  lt_save_LIBS="$LIBS"
10363  LIBS="$LIBS $LIBADD_DL"
10364
10365for ac_func in dlerror
10366do
10367as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10368{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10369echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10370if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10371  echo $ECHO_N "(cached) $ECHO_C" >&6
10372else
10373  cat >conftest.$ac_ext <<_ACEOF
10374/* confdefs.h.  */
10375_ACEOF
10376cat confdefs.h >>conftest.$ac_ext
10377cat >>conftest.$ac_ext <<_ACEOF
10378/* end confdefs.h.  */
10379/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10380   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10381#define $ac_func innocuous_$ac_func
10382
10383/* System header to define __stub macros and hopefully few prototypes,
10384    which can conflict with char $ac_func (); below.
10385    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10386    <limits.h> exists even on freestanding compilers.  */
10387
10388#ifdef __STDC__
10389# include <limits.h>
10390#else
10391# include <assert.h>
10392#endif
10393
10394#undef $ac_func
10395
10396/* Override any GCC internal prototype to avoid an error.
10397   Use char because int might match the return type of a GCC
10398   builtin and then its argument prototype would still apply.  */
10399#ifdef __cplusplus
10400extern "C"
10401#endif
10402char $ac_func ();
10403/* The GNU C library defines this for functions which it implements
10404    to always fail with ENOSYS.  Some functions are actually named
10405    something starting with __ and the normal name is an alias.  */
10406#if defined __stub_$ac_func || defined __stub___$ac_func
10407choke me
10408#endif
10409
10410int
10411main ()
10412{
10413return $ac_func ();
10414  ;
10415  return 0;
10416}
10417_ACEOF
10418rm -f conftest.$ac_objext conftest$ac_exeext
10419if { (ac_try="$ac_link"
10420case "(($ac_try" in
10421  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10422  *) ac_try_echo=$ac_try;;
10423esac
10424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10425  (eval "$ac_link") 2>conftest.er1
10426  ac_status=$?
10427  grep -v '^ *+' conftest.er1 >conftest.err
10428  rm -f conftest.er1
10429  cat conftest.err >&5
10430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431  (exit $ac_status); } &&
10432	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10433  { (case "(($ac_try" in
10434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10435  *) ac_try_echo=$ac_try;;
10436esac
10437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10438  (eval "$ac_try") 2>&5
10439  ac_status=$?
10440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441  (exit $ac_status); }; } &&
10442	 { ac_try='test -s conftest$ac_exeext'
10443  { (case "(($ac_try" in
10444  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10445  *) ac_try_echo=$ac_try;;
10446esac
10447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10448  (eval "$ac_try") 2>&5
10449  ac_status=$?
10450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451  (exit $ac_status); }; }; then
10452  eval "$as_ac_var=yes"
10453else
10454  echo "$as_me: failed program was:" >&5
10455sed 's/^/| /' conftest.$ac_ext >&5
10456
10457	eval "$as_ac_var=no"
10458fi
10459
10460rm -f core conftest.err conftest.$ac_objext \
10461      conftest$ac_exeext conftest.$ac_ext
10462fi
10463ac_res=`eval echo '${'$as_ac_var'}'`
10464	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10465echo "${ECHO_T}$ac_res" >&6; }
10466if test `eval echo '${'$as_ac_var'}'` = yes; then
10467  cat >>confdefs.h <<_ACEOF
10468#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10469_ACEOF
10470
10471fi
10472done
10473
10474  LIBS="$lt_save_LIBS"
10475fi
10476ac_ext=c
10477ac_cpp='$CPP $CPPFLAGS'
10478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10480ac_compiler_gnu=$ac_cv_c_compiler_gnu
10481
10482
10483
10484{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10485echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10486if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10487  echo $ECHO_N "(cached) $ECHO_C" >&6
10488else
10489  ac_cv_sys_symbol_underscore=no
10490  cat > conftest.$ac_ext <<EOF
10491void nm_test_func(){}
10492int main(){nm_test_func;return 0;}
10493EOF
10494  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10495  (eval $ac_compile) 2>&5
10496  ac_status=$?
10497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498  (exit $ac_status); }; then
10499    # Now try to grab the symbols.
10500    ac_nlist=conftest.nm
10501    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10502  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10503  ac_status=$?
10504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505  (exit $ac_status); } && test -s "$ac_nlist"; then
10506      # See whether the symbols have a leading underscore.
10507      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10508        ac_cv_sys_symbol_underscore=yes
10509      else
10510        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10511	  :
10512        else
10513	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10514        fi
10515      fi
10516    else
10517      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10518    fi
10519  else
10520    echo "configure: failed program was:" >&5
10521    cat conftest.c >&5
10522  fi
10523  rm -rf conftest*
10524
10525fi
10526{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10527echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10528
10529
10530if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10531  if test x"$libltdl_cv_func_dlopen" = xyes ||
10532     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10533	{ echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10534echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10535if test "${libltdl_cv_need_uscore+set}" = set; then
10536  echo $ECHO_N "(cached) $ECHO_C" >&6
10537else
10538  libltdl_cv_need_uscore=unknown
10539          save_LIBS="$LIBS"
10540          LIBS="$LIBS $LIBADD_DL"
10541	  if test "$cross_compiling" = yes; then :
10542  libltdl_cv_need_uscore=cross
10543else
10544  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10545  lt_status=$lt_dlunknown
10546  cat > conftest.$ac_ext <<EOF
10547#line 10547 "configure"
10548#include "confdefs.h"
10549
10550#if HAVE_DLFCN_H
10551#include <dlfcn.h>
10552#endif
10553
10554#include <stdio.h>
10555
10556#ifdef RTLD_GLOBAL
10557#  define LT_DLGLOBAL		RTLD_GLOBAL
10558#else
10559#  ifdef DL_GLOBAL
10560#    define LT_DLGLOBAL		DL_GLOBAL
10561#  else
10562#    define LT_DLGLOBAL		0
10563#  endif
10564#endif
10565
10566/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10567   find out it does not work in some platform. */
10568#ifndef LT_DLLAZY_OR_NOW
10569#  ifdef RTLD_LAZY
10570#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10571#  else
10572#    ifdef DL_LAZY
10573#      define LT_DLLAZY_OR_NOW		DL_LAZY
10574#    else
10575#      ifdef RTLD_NOW
10576#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10577#      else
10578#        ifdef DL_NOW
10579#          define LT_DLLAZY_OR_NOW	DL_NOW
10580#        else
10581#          define LT_DLLAZY_OR_NOW	0
10582#        endif
10583#      endif
10584#    endif
10585#  endif
10586#endif
10587
10588#ifdef __cplusplus
10589extern "C" void exit (int);
10590#endif
10591
10592void fnord() { int i=42;}
10593int main ()
10594{
10595  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10596  int status = $lt_dlunknown;
10597
10598  if (self)
10599    {
10600      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10601      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10602      /* dlclose (self); */
10603    }
10604  else
10605    puts (dlerror ());
10606
10607    exit (status);
10608}
10609EOF
10610  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10611  (eval $ac_link) 2>&5
10612  ac_status=$?
10613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10615    (./conftest; exit; ) >&5 2>/dev/null
10616    lt_status=$?
10617    case x$lt_status in
10618      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10619      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10620      x$lt_dlunknown|x*)  ;;
10621    esac
10622  else :
10623    # compilation failed
10624
10625  fi
10626fi
10627rm -fr conftest*
10628
10629	  LIBS="$save_LIBS"
10630
10631fi
10632{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10633echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10634  fi
10635fi
10636
10637if test x"$libltdl_cv_need_uscore" = xyes; then
10638
10639cat >>confdefs.h <<\_ACEOF
10640#define NEED_USCORE 1
10641_ACEOF
10642
10643fi
10644
10645
10646{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10647echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10648if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10649  echo $ECHO_N "(cached) $ECHO_C" >&6
10650else
10651  # PORTME does your system automatically load deplibs for dlopen?
10652  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10653  # For now, we just catch OSes we know something about -- in the
10654  # future, we'll try test this programmatically.
10655  libltdl_cv_sys_dlopen_deplibs=unknown
10656  case "$host_os" in
10657  aix3*|aix4.1.*|aix4.2.*)
10658    # Unknown whether this is true for these versions of AIX, but
10659    # we want this `case' here to explicitly catch those versions.
10660    libltdl_cv_sys_dlopen_deplibs=unknown
10661    ;;
10662  aix[45]*)
10663    libltdl_cv_sys_dlopen_deplibs=yes
10664    ;;
10665  darwin*)
10666    # Assuming the user has installed a libdl from somewhere, this is true
10667    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10668    libltdl_cv_sys_dlopen_deplibs=yes
10669    ;;
10670  gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10671    # GNU and its variants, using gnu ld.so (Glibc)
10672    libltdl_cv_sys_dlopen_deplibs=yes
10673    ;;
10674  hpux10*|hpux11*)
10675    libltdl_cv_sys_dlopen_deplibs=yes
10676    ;;
10677  interix*)
10678    libltdl_cv_sys_dlopen_deplibs=yes
10679    ;;
10680  irix[12345]*|irix6.[01]*)
10681    # Catch all versions of IRIX before 6.2, and indicate that we don't
10682    # know how it worked for any of those versions.
10683    libltdl_cv_sys_dlopen_deplibs=unknown
10684    ;;
10685  irix*)
10686    # The case above catches anything before 6.2, and it's known that
10687    # at 6.2 and later dlopen does load deplibs.
10688    libltdl_cv_sys_dlopen_deplibs=yes
10689    ;;
10690  netbsd*)
10691    libltdl_cv_sys_dlopen_deplibs=yes
10692    ;;
10693  openbsd*)
10694    libltdl_cv_sys_dlopen_deplibs=yes
10695    ;;
10696  osf[1234]*)
10697    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10698    # it did *not* use an RPATH in a shared library to find objects the
10699    # library depends on, so we explictly say `no'.
10700    libltdl_cv_sys_dlopen_deplibs=no
10701    ;;
10702  osf5.0|osf5.0a|osf5.1)
10703    # dlopen *does* load deplibs and with the right loader patch applied
10704    # it even uses RPATH in a shared library to search for shared objects
10705    # that the library depends on, but there's no easy way to know if that
10706    # patch is installed.  Since this is the case, all we can really
10707    # say is unknown -- it depends on the patch being installed.  If
10708    # it is, this changes to `yes'.  Without it, it would be `no'.
10709    libltdl_cv_sys_dlopen_deplibs=unknown
10710    ;;
10711  osf*)
10712    # the two cases above should catch all versions of osf <= 5.1.  Read
10713    # the comments above for what we know about them.
10714    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10715    # is used to find them so we can finally say `yes'.
10716    libltdl_cv_sys_dlopen_deplibs=yes
10717    ;;
10718  solaris*)
10719    libltdl_cv_sys_dlopen_deplibs=yes
10720    ;;
10721  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10722    libltdl_cv_sys_dlopen_deplibs=yes
10723    ;;
10724  esac
10725
10726fi
10727{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10728echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10729if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10730
10731cat >>confdefs.h <<\_ACEOF
10732#define LTDL_DLOPEN_DEPLIBS 1
10733_ACEOF
10734
10735fi
10736
10737
10738for ac_header in argz.h
10739do
10740as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10741if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10742  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10743echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10744if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10745  echo $ECHO_N "(cached) $ECHO_C" >&6
10746fi
10747ac_res=`eval echo '${'$as_ac_Header'}'`
10748	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10749echo "${ECHO_T}$ac_res" >&6; }
10750else
10751  # Is the header compilable?
10752{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10753echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10754cat >conftest.$ac_ext <<_ACEOF
10755/* confdefs.h.  */
10756_ACEOF
10757cat confdefs.h >>conftest.$ac_ext
10758cat >>conftest.$ac_ext <<_ACEOF
10759/* end confdefs.h.  */
10760$ac_includes_default
10761#include <$ac_header>
10762_ACEOF
10763rm -f conftest.$ac_objext
10764if { (ac_try="$ac_compile"
10765case "(($ac_try" in
10766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10767  *) ac_try_echo=$ac_try;;
10768esac
10769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10770  (eval "$ac_compile") 2>conftest.er1
10771  ac_status=$?
10772  grep -v '^ *+' conftest.er1 >conftest.err
10773  rm -f conftest.er1
10774  cat conftest.err >&5
10775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776  (exit $ac_status); } &&
10777	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10778  { (case "(($ac_try" in
10779  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10780  *) ac_try_echo=$ac_try;;
10781esac
10782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10783  (eval "$ac_try") 2>&5
10784  ac_status=$?
10785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786  (exit $ac_status); }; } &&
10787	 { ac_try='test -s conftest.$ac_objext'
10788  { (case "(($ac_try" in
10789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10790  *) ac_try_echo=$ac_try;;
10791esac
10792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10793  (eval "$ac_try") 2>&5
10794  ac_status=$?
10795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796  (exit $ac_status); }; }; then
10797  ac_header_compiler=yes
10798else
10799  echo "$as_me: failed program was:" >&5
10800sed 's/^/| /' conftest.$ac_ext >&5
10801
10802	ac_header_compiler=no
10803fi
10804
10805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10806{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10807echo "${ECHO_T}$ac_header_compiler" >&6; }
10808
10809# Is the header present?
10810{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10811echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10812cat >conftest.$ac_ext <<_ACEOF
10813/* confdefs.h.  */
10814_ACEOF
10815cat confdefs.h >>conftest.$ac_ext
10816cat >>conftest.$ac_ext <<_ACEOF
10817/* end confdefs.h.  */
10818#include <$ac_header>
10819_ACEOF
10820if { (ac_try="$ac_cpp conftest.$ac_ext"
10821case "(($ac_try" in
10822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10823  *) ac_try_echo=$ac_try;;
10824esac
10825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10826  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10827  ac_status=$?
10828  grep -v '^ *+' conftest.er1 >conftest.err
10829  rm -f conftest.er1
10830  cat conftest.err >&5
10831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832  (exit $ac_status); } >/dev/null; then
10833  if test -s conftest.err; then
10834    ac_cpp_err=$ac_c_preproc_warn_flag
10835    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10836  else
10837    ac_cpp_err=
10838  fi
10839else
10840  ac_cpp_err=yes
10841fi
10842if test -z "$ac_cpp_err"; then
10843  ac_header_preproc=yes
10844else
10845  echo "$as_me: failed program was:" >&5
10846sed 's/^/| /' conftest.$ac_ext >&5
10847
10848  ac_header_preproc=no
10849fi
10850
10851rm -f conftest.err conftest.$ac_ext
10852{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10853echo "${ECHO_T}$ac_header_preproc" >&6; }
10854
10855# So?  What about this header?
10856case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10857  yes:no: )
10858    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10859echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10860    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10861echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10862    ac_header_preproc=yes
10863    ;;
10864  no:yes:* )
10865    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10866echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10867    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10868echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10869    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10870echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10871    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10872echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10873    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10874echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10875    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10876echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10877    ( cat <<\_ASBOX
10878## ----------------------------------- ##
10879## Report this to llvmbugs@cs.uiuc.edu ##
10880## ----------------------------------- ##
10881_ASBOX
10882     ) | sed "s/^/$as_me: WARNING:     /" >&2
10883    ;;
10884esac
10885{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10886echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10887if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10888  echo $ECHO_N "(cached) $ECHO_C" >&6
10889else
10890  eval "$as_ac_Header=\$ac_header_preproc"
10891fi
10892ac_res=`eval echo '${'$as_ac_Header'}'`
10893	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10894echo "${ECHO_T}$ac_res" >&6; }
10895
10896fi
10897if test `eval echo '${'$as_ac_Header'}'` = yes; then
10898  cat >>confdefs.h <<_ACEOF
10899#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10900_ACEOF
10901
10902fi
10903
10904done
10905
10906
10907{ echo "$as_me:$LINENO: checking for error_t" >&5
10908echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10909if test "${ac_cv_type_error_t+set}" = set; then
10910  echo $ECHO_N "(cached) $ECHO_C" >&6
10911else
10912  cat >conftest.$ac_ext <<_ACEOF
10913/* confdefs.h.  */
10914_ACEOF
10915cat confdefs.h >>conftest.$ac_ext
10916cat >>conftest.$ac_ext <<_ACEOF
10917/* end confdefs.h.  */
10918#if HAVE_ARGZ_H
10919#  include <argz.h>
10920#endif
10921
10922typedef error_t ac__type_new_;
10923int
10924main ()
10925{
10926if ((ac__type_new_ *) 0)
10927  return 0;
10928if (sizeof (ac__type_new_))
10929  return 0;
10930  ;
10931  return 0;
10932}
10933_ACEOF
10934rm -f conftest.$ac_objext
10935if { (ac_try="$ac_compile"
10936case "(($ac_try" in
10937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10938  *) ac_try_echo=$ac_try;;
10939esac
10940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10941  (eval "$ac_compile") 2>conftest.er1
10942  ac_status=$?
10943  grep -v '^ *+' conftest.er1 >conftest.err
10944  rm -f conftest.er1
10945  cat conftest.err >&5
10946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947  (exit $ac_status); } &&
10948	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10949  { (case "(($ac_try" in
10950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10951  *) ac_try_echo=$ac_try;;
10952esac
10953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10954  (eval "$ac_try") 2>&5
10955  ac_status=$?
10956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957  (exit $ac_status); }; } &&
10958	 { ac_try='test -s conftest.$ac_objext'
10959  { (case "(($ac_try" in
10960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10961  *) ac_try_echo=$ac_try;;
10962esac
10963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10964  (eval "$ac_try") 2>&5
10965  ac_status=$?
10966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967  (exit $ac_status); }; }; then
10968  ac_cv_type_error_t=yes
10969else
10970  echo "$as_me: failed program was:" >&5
10971sed 's/^/| /' conftest.$ac_ext >&5
10972
10973	ac_cv_type_error_t=no
10974fi
10975
10976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10977fi
10978{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10979echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10980if test $ac_cv_type_error_t = yes; then
10981
10982cat >>confdefs.h <<_ACEOF
10983#define HAVE_ERROR_T 1
10984_ACEOF
10985
10986
10987else
10988
10989cat >>confdefs.h <<\_ACEOF
10990#define error_t int
10991_ACEOF
10992
10993fi
10994
10995
10996
10997
10998
10999
11000
11001for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11002do
11003as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11004{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11005echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11006if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11007  echo $ECHO_N "(cached) $ECHO_C" >&6
11008else
11009  cat >conftest.$ac_ext <<_ACEOF
11010/* confdefs.h.  */
11011_ACEOF
11012cat confdefs.h >>conftest.$ac_ext
11013cat >>conftest.$ac_ext <<_ACEOF
11014/* end confdefs.h.  */
11015/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11016   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11017#define $ac_func innocuous_$ac_func
11018
11019/* System header to define __stub macros and hopefully few prototypes,
11020    which can conflict with char $ac_func (); below.
11021    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11022    <limits.h> exists even on freestanding compilers.  */
11023
11024#ifdef __STDC__
11025# include <limits.h>
11026#else
11027# include <assert.h>
11028#endif
11029
11030#undef $ac_func
11031
11032/* Override any GCC internal prototype to avoid an error.
11033   Use char because int might match the return type of a GCC
11034   builtin and then its argument prototype would still apply.  */
11035#ifdef __cplusplus
11036extern "C"
11037#endif
11038char $ac_func ();
11039/* The GNU C library defines this for functions which it implements
11040    to always fail with ENOSYS.  Some functions are actually named
11041    something starting with __ and the normal name is an alias.  */
11042#if defined __stub_$ac_func || defined __stub___$ac_func
11043choke me
11044#endif
11045
11046int
11047main ()
11048{
11049return $ac_func ();
11050  ;
11051  return 0;
11052}
11053_ACEOF
11054rm -f conftest.$ac_objext conftest$ac_exeext
11055if { (ac_try="$ac_link"
11056case "(($ac_try" in
11057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11058  *) ac_try_echo=$ac_try;;
11059esac
11060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11061  (eval "$ac_link") 2>conftest.er1
11062  ac_status=$?
11063  grep -v '^ *+' conftest.er1 >conftest.err
11064  rm -f conftest.er1
11065  cat conftest.err >&5
11066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067  (exit $ac_status); } &&
11068	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11069  { (case "(($ac_try" in
11070  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11071  *) ac_try_echo=$ac_try;;
11072esac
11073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11074  (eval "$ac_try") 2>&5
11075  ac_status=$?
11076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077  (exit $ac_status); }; } &&
11078	 { ac_try='test -s conftest$ac_exeext'
11079  { (case "(($ac_try" in
11080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11081  *) ac_try_echo=$ac_try;;
11082esac
11083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11084  (eval "$ac_try") 2>&5
11085  ac_status=$?
11086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087  (exit $ac_status); }; }; then
11088  eval "$as_ac_var=yes"
11089else
11090  echo "$as_me: failed program was:" >&5
11091sed 's/^/| /' conftest.$ac_ext >&5
11092
11093	eval "$as_ac_var=no"
11094fi
11095
11096rm -f core conftest.err conftest.$ac_objext \
11097      conftest$ac_exeext conftest.$ac_ext
11098fi
11099ac_res=`eval echo '${'$as_ac_var'}'`
11100	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11101echo "${ECHO_T}$ac_res" >&6; }
11102if test `eval echo '${'$as_ac_var'}'` = yes; then
11103  cat >>confdefs.h <<_ACEOF
11104#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11105_ACEOF
11106
11107fi
11108done
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11138		  stdio.h unistd.h
11139do
11140as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11141if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11142  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11143echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11144if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11145  echo $ECHO_N "(cached) $ECHO_C" >&6
11146fi
11147ac_res=`eval echo '${'$as_ac_Header'}'`
11148	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11149echo "${ECHO_T}$ac_res" >&6; }
11150else
11151  # Is the header compilable?
11152{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11153echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11154cat >conftest.$ac_ext <<_ACEOF
11155/* confdefs.h.  */
11156_ACEOF
11157cat confdefs.h >>conftest.$ac_ext
11158cat >>conftest.$ac_ext <<_ACEOF
11159/* end confdefs.h.  */
11160$ac_includes_default
11161#include <$ac_header>
11162_ACEOF
11163rm -f conftest.$ac_objext
11164if { (ac_try="$ac_compile"
11165case "(($ac_try" in
11166  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11167  *) ac_try_echo=$ac_try;;
11168esac
11169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11170  (eval "$ac_compile") 2>conftest.er1
11171  ac_status=$?
11172  grep -v '^ *+' conftest.er1 >conftest.err
11173  rm -f conftest.er1
11174  cat conftest.err >&5
11175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176  (exit $ac_status); } &&
11177	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11178  { (case "(($ac_try" in
11179  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11180  *) ac_try_echo=$ac_try;;
11181esac
11182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11183  (eval "$ac_try") 2>&5
11184  ac_status=$?
11185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186  (exit $ac_status); }; } &&
11187	 { ac_try='test -s conftest.$ac_objext'
11188  { (case "(($ac_try" in
11189  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11190  *) ac_try_echo=$ac_try;;
11191esac
11192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11193  (eval "$ac_try") 2>&5
11194  ac_status=$?
11195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196  (exit $ac_status); }; }; then
11197  ac_header_compiler=yes
11198else
11199  echo "$as_me: failed program was:" >&5
11200sed 's/^/| /' conftest.$ac_ext >&5
11201
11202	ac_header_compiler=no
11203fi
11204
11205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11206{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11207echo "${ECHO_T}$ac_header_compiler" >&6; }
11208
11209# Is the header present?
11210{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11211echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11212cat >conftest.$ac_ext <<_ACEOF
11213/* confdefs.h.  */
11214_ACEOF
11215cat confdefs.h >>conftest.$ac_ext
11216cat >>conftest.$ac_ext <<_ACEOF
11217/* end confdefs.h.  */
11218#include <$ac_header>
11219_ACEOF
11220if { (ac_try="$ac_cpp conftest.$ac_ext"
11221case "(($ac_try" in
11222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11223  *) ac_try_echo=$ac_try;;
11224esac
11225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11226  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11227  ac_status=$?
11228  grep -v '^ *+' conftest.er1 >conftest.err
11229  rm -f conftest.er1
11230  cat conftest.err >&5
11231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232  (exit $ac_status); } >/dev/null; then
11233  if test -s conftest.err; then
11234    ac_cpp_err=$ac_c_preproc_warn_flag
11235    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11236  else
11237    ac_cpp_err=
11238  fi
11239else
11240  ac_cpp_err=yes
11241fi
11242if test -z "$ac_cpp_err"; then
11243  ac_header_preproc=yes
11244else
11245  echo "$as_me: failed program was:" >&5
11246sed 's/^/| /' conftest.$ac_ext >&5
11247
11248  ac_header_preproc=no
11249fi
11250
11251rm -f conftest.err conftest.$ac_ext
11252{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11253echo "${ECHO_T}$ac_header_preproc" >&6; }
11254
11255# So?  What about this header?
11256case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11257  yes:no: )
11258    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11259echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11260    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11261echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11262    ac_header_preproc=yes
11263    ;;
11264  no:yes:* )
11265    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11266echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11267    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11268echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11269    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11270echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11271    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11272echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11273    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11274echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11275    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11276echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11277    ( cat <<\_ASBOX
11278## ----------------------------------- ##
11279## Report this to llvmbugs@cs.uiuc.edu ##
11280## ----------------------------------- ##
11281_ASBOX
11282     ) | sed "s/^/$as_me: WARNING:     /" >&2
11283    ;;
11284esac
11285{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11286echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11287if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11288  echo $ECHO_N "(cached) $ECHO_C" >&6
11289else
11290  eval "$as_ac_Header=\$ac_header_preproc"
11291fi
11292ac_res=`eval echo '${'$as_ac_Header'}'`
11293	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11294echo "${ECHO_T}$ac_res" >&6; }
11295
11296fi
11297if test `eval echo '${'$as_ac_Header'}'` = yes; then
11298  cat >>confdefs.h <<_ACEOF
11299#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11300_ACEOF
11301
11302fi
11303
11304done
11305
11306
11307
11308
11309
11310for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11311do
11312as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11313if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11314  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11315echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11316if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11317  echo $ECHO_N "(cached) $ECHO_C" >&6
11318fi
11319ac_res=`eval echo '${'$as_ac_Header'}'`
11320	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11321echo "${ECHO_T}$ac_res" >&6; }
11322else
11323  # Is the header compilable?
11324{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11325echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11326cat >conftest.$ac_ext <<_ACEOF
11327/* confdefs.h.  */
11328_ACEOF
11329cat confdefs.h >>conftest.$ac_ext
11330cat >>conftest.$ac_ext <<_ACEOF
11331/* end confdefs.h.  */
11332$ac_includes_default
11333#include <$ac_header>
11334_ACEOF
11335rm -f conftest.$ac_objext
11336if { (ac_try="$ac_compile"
11337case "(($ac_try" in
11338  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11339  *) ac_try_echo=$ac_try;;
11340esac
11341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11342  (eval "$ac_compile") 2>conftest.er1
11343  ac_status=$?
11344  grep -v '^ *+' conftest.er1 >conftest.err
11345  rm -f conftest.er1
11346  cat conftest.err >&5
11347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348  (exit $ac_status); } &&
11349	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11350  { (case "(($ac_try" in
11351  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11352  *) ac_try_echo=$ac_try;;
11353esac
11354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11355  (eval "$ac_try") 2>&5
11356  ac_status=$?
11357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358  (exit $ac_status); }; } &&
11359	 { ac_try='test -s conftest.$ac_objext'
11360  { (case "(($ac_try" in
11361  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11362  *) ac_try_echo=$ac_try;;
11363esac
11364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11365  (eval "$ac_try") 2>&5
11366  ac_status=$?
11367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368  (exit $ac_status); }; }; then
11369  ac_header_compiler=yes
11370else
11371  echo "$as_me: failed program was:" >&5
11372sed 's/^/| /' conftest.$ac_ext >&5
11373
11374	ac_header_compiler=no
11375fi
11376
11377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11378{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11379echo "${ECHO_T}$ac_header_compiler" >&6; }
11380
11381# Is the header present?
11382{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11383echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11384cat >conftest.$ac_ext <<_ACEOF
11385/* confdefs.h.  */
11386_ACEOF
11387cat confdefs.h >>conftest.$ac_ext
11388cat >>conftest.$ac_ext <<_ACEOF
11389/* end confdefs.h.  */
11390#include <$ac_header>
11391_ACEOF
11392if { (ac_try="$ac_cpp conftest.$ac_ext"
11393case "(($ac_try" in
11394  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395  *) ac_try_echo=$ac_try;;
11396esac
11397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11399  ac_status=$?
11400  grep -v '^ *+' conftest.er1 >conftest.err
11401  rm -f conftest.er1
11402  cat conftest.err >&5
11403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404  (exit $ac_status); } >/dev/null; then
11405  if test -s conftest.err; then
11406    ac_cpp_err=$ac_c_preproc_warn_flag
11407    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11408  else
11409    ac_cpp_err=
11410  fi
11411else
11412  ac_cpp_err=yes
11413fi
11414if test -z "$ac_cpp_err"; then
11415  ac_header_preproc=yes
11416else
11417  echo "$as_me: failed program was:" >&5
11418sed 's/^/| /' conftest.$ac_ext >&5
11419
11420  ac_header_preproc=no
11421fi
11422
11423rm -f conftest.err conftest.$ac_ext
11424{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11425echo "${ECHO_T}$ac_header_preproc" >&6; }
11426
11427# So?  What about this header?
11428case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11429  yes:no: )
11430    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11431echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11432    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11433echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11434    ac_header_preproc=yes
11435    ;;
11436  no:yes:* )
11437    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11438echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11439    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11440echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11441    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11442echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11443    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11444echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11445    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11446echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11447    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11448echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11449    ( cat <<\_ASBOX
11450## ----------------------------------- ##
11451## Report this to llvmbugs@cs.uiuc.edu ##
11452## ----------------------------------- ##
11453_ASBOX
11454     ) | sed "s/^/$as_me: WARNING:     /" >&2
11455    ;;
11456esac
11457{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11458echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11459if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11460  echo $ECHO_N "(cached) $ECHO_C" >&6
11461else
11462  eval "$as_ac_Header=\$ac_header_preproc"
11463fi
11464ac_res=`eval echo '${'$as_ac_Header'}'`
11465	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11466echo "${ECHO_T}$ac_res" >&6; }
11467
11468fi
11469if test `eval echo '${'$as_ac_Header'}'` = yes; then
11470  cat >>confdefs.h <<_ACEOF
11471#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11472_ACEOF
11473
11474fi
11475
11476done
11477
11478
11479
11480for ac_header in string.h strings.h
11481do
11482as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11483if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11484  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11485echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11486if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11487  echo $ECHO_N "(cached) $ECHO_C" >&6
11488fi
11489ac_res=`eval echo '${'$as_ac_Header'}'`
11490	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11491echo "${ECHO_T}$ac_res" >&6; }
11492else
11493  # Is the header compilable?
11494{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11495echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11496cat >conftest.$ac_ext <<_ACEOF
11497/* confdefs.h.  */
11498_ACEOF
11499cat confdefs.h >>conftest.$ac_ext
11500cat >>conftest.$ac_ext <<_ACEOF
11501/* end confdefs.h.  */
11502$ac_includes_default
11503#include <$ac_header>
11504_ACEOF
11505rm -f conftest.$ac_objext
11506if { (ac_try="$ac_compile"
11507case "(($ac_try" in
11508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11509  *) ac_try_echo=$ac_try;;
11510esac
11511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11512  (eval "$ac_compile") 2>conftest.er1
11513  ac_status=$?
11514  grep -v '^ *+' conftest.er1 >conftest.err
11515  rm -f conftest.er1
11516  cat conftest.err >&5
11517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518  (exit $ac_status); } &&
11519	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11520  { (case "(($ac_try" in
11521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11522  *) ac_try_echo=$ac_try;;
11523esac
11524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11525  (eval "$ac_try") 2>&5
11526  ac_status=$?
11527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528  (exit $ac_status); }; } &&
11529	 { ac_try='test -s conftest.$ac_objext'
11530  { (case "(($ac_try" in
11531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11532  *) ac_try_echo=$ac_try;;
11533esac
11534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11535  (eval "$ac_try") 2>&5
11536  ac_status=$?
11537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538  (exit $ac_status); }; }; then
11539  ac_header_compiler=yes
11540else
11541  echo "$as_me: failed program was:" >&5
11542sed 's/^/| /' conftest.$ac_ext >&5
11543
11544	ac_header_compiler=no
11545fi
11546
11547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11548{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11549echo "${ECHO_T}$ac_header_compiler" >&6; }
11550
11551# Is the header present?
11552{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11553echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11554cat >conftest.$ac_ext <<_ACEOF
11555/* confdefs.h.  */
11556_ACEOF
11557cat confdefs.h >>conftest.$ac_ext
11558cat >>conftest.$ac_ext <<_ACEOF
11559/* end confdefs.h.  */
11560#include <$ac_header>
11561_ACEOF
11562if { (ac_try="$ac_cpp conftest.$ac_ext"
11563case "(($ac_try" in
11564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11565  *) ac_try_echo=$ac_try;;
11566esac
11567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11568  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11569  ac_status=$?
11570  grep -v '^ *+' conftest.er1 >conftest.err
11571  rm -f conftest.er1
11572  cat conftest.err >&5
11573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574  (exit $ac_status); } >/dev/null; then
11575  if test -s conftest.err; then
11576    ac_cpp_err=$ac_c_preproc_warn_flag
11577    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11578  else
11579    ac_cpp_err=
11580  fi
11581else
11582  ac_cpp_err=yes
11583fi
11584if test -z "$ac_cpp_err"; then
11585  ac_header_preproc=yes
11586else
11587  echo "$as_me: failed program was:" >&5
11588sed 's/^/| /' conftest.$ac_ext >&5
11589
11590  ac_header_preproc=no
11591fi
11592
11593rm -f conftest.err conftest.$ac_ext
11594{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11595echo "${ECHO_T}$ac_header_preproc" >&6; }
11596
11597# So?  What about this header?
11598case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11599  yes:no: )
11600    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11601echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11602    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11603echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11604    ac_header_preproc=yes
11605    ;;
11606  no:yes:* )
11607    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11608echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11609    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11610echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11611    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11612echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11613    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11614echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11615    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11616echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11617    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11618echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11619    ( cat <<\_ASBOX
11620## ----------------------------------- ##
11621## Report this to llvmbugs@cs.uiuc.edu ##
11622## ----------------------------------- ##
11623_ASBOX
11624     ) | sed "s/^/$as_me: WARNING:     /" >&2
11625    ;;
11626esac
11627{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11628echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11629if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11630  echo $ECHO_N "(cached) $ECHO_C" >&6
11631else
11632  eval "$as_ac_Header=\$ac_header_preproc"
11633fi
11634ac_res=`eval echo '${'$as_ac_Header'}'`
11635	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11636echo "${ECHO_T}$ac_res" >&6; }
11637
11638fi
11639if test `eval echo '${'$as_ac_Header'}'` = yes; then
11640  cat >>confdefs.h <<_ACEOF
11641#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11642_ACEOF
11643 break
11644fi
11645
11646done
11647
11648
11649
11650
11651for ac_func in strchr index
11652do
11653as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11654{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11655echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11656if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11657  echo $ECHO_N "(cached) $ECHO_C" >&6
11658else
11659  cat >conftest.$ac_ext <<_ACEOF
11660/* confdefs.h.  */
11661_ACEOF
11662cat confdefs.h >>conftest.$ac_ext
11663cat >>conftest.$ac_ext <<_ACEOF
11664/* end confdefs.h.  */
11665/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11666   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11667#define $ac_func innocuous_$ac_func
11668
11669/* System header to define __stub macros and hopefully few prototypes,
11670    which can conflict with char $ac_func (); below.
11671    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11672    <limits.h> exists even on freestanding compilers.  */
11673
11674#ifdef __STDC__
11675# include <limits.h>
11676#else
11677# include <assert.h>
11678#endif
11679
11680#undef $ac_func
11681
11682/* Override any GCC internal prototype to avoid an error.
11683   Use char because int might match the return type of a GCC
11684   builtin and then its argument prototype would still apply.  */
11685#ifdef __cplusplus
11686extern "C"
11687#endif
11688char $ac_func ();
11689/* The GNU C library defines this for functions which it implements
11690    to always fail with ENOSYS.  Some functions are actually named
11691    something starting with __ and the normal name is an alias.  */
11692#if defined __stub_$ac_func || defined __stub___$ac_func
11693choke me
11694#endif
11695
11696int
11697main ()
11698{
11699return $ac_func ();
11700  ;
11701  return 0;
11702}
11703_ACEOF
11704rm -f conftest.$ac_objext conftest$ac_exeext
11705if { (ac_try="$ac_link"
11706case "(($ac_try" in
11707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11708  *) ac_try_echo=$ac_try;;
11709esac
11710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11711  (eval "$ac_link") 2>conftest.er1
11712  ac_status=$?
11713  grep -v '^ *+' conftest.er1 >conftest.err
11714  rm -f conftest.er1
11715  cat conftest.err >&5
11716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717  (exit $ac_status); } &&
11718	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11719  { (case "(($ac_try" in
11720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11721  *) ac_try_echo=$ac_try;;
11722esac
11723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11724  (eval "$ac_try") 2>&5
11725  ac_status=$?
11726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727  (exit $ac_status); }; } &&
11728	 { ac_try='test -s conftest$ac_exeext'
11729  { (case "(($ac_try" in
11730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11731  *) ac_try_echo=$ac_try;;
11732esac
11733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11734  (eval "$ac_try") 2>&5
11735  ac_status=$?
11736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737  (exit $ac_status); }; }; then
11738  eval "$as_ac_var=yes"
11739else
11740  echo "$as_me: failed program was:" >&5
11741sed 's/^/| /' conftest.$ac_ext >&5
11742
11743	eval "$as_ac_var=no"
11744fi
11745
11746rm -f core conftest.err conftest.$ac_objext \
11747      conftest$ac_exeext conftest.$ac_ext
11748fi
11749ac_res=`eval echo '${'$as_ac_var'}'`
11750	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11751echo "${ECHO_T}$ac_res" >&6; }
11752if test `eval echo '${'$as_ac_var'}'` = yes; then
11753  cat >>confdefs.h <<_ACEOF
11754#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11755_ACEOF
11756 break
11757fi
11758done
11759
11760
11761
11762for ac_func in strrchr rindex
11763do
11764as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11765{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11766echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11767if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11768  echo $ECHO_N "(cached) $ECHO_C" >&6
11769else
11770  cat >conftest.$ac_ext <<_ACEOF
11771/* confdefs.h.  */
11772_ACEOF
11773cat confdefs.h >>conftest.$ac_ext
11774cat >>conftest.$ac_ext <<_ACEOF
11775/* end confdefs.h.  */
11776/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11777   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11778#define $ac_func innocuous_$ac_func
11779
11780/* System header to define __stub macros and hopefully few prototypes,
11781    which can conflict with char $ac_func (); below.
11782    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11783    <limits.h> exists even on freestanding compilers.  */
11784
11785#ifdef __STDC__
11786# include <limits.h>
11787#else
11788# include <assert.h>
11789#endif
11790
11791#undef $ac_func
11792
11793/* Override any GCC internal prototype to avoid an error.
11794   Use char because int might match the return type of a GCC
11795   builtin and then its argument prototype would still apply.  */
11796#ifdef __cplusplus
11797extern "C"
11798#endif
11799char $ac_func ();
11800/* The GNU C library defines this for functions which it implements
11801    to always fail with ENOSYS.  Some functions are actually named
11802    something starting with __ and the normal name is an alias.  */
11803#if defined __stub_$ac_func || defined __stub___$ac_func
11804choke me
11805#endif
11806
11807int
11808main ()
11809{
11810return $ac_func ();
11811  ;
11812  return 0;
11813}
11814_ACEOF
11815rm -f conftest.$ac_objext conftest$ac_exeext
11816if { (ac_try="$ac_link"
11817case "(($ac_try" in
11818  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11819  *) ac_try_echo=$ac_try;;
11820esac
11821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11822  (eval "$ac_link") 2>conftest.er1
11823  ac_status=$?
11824  grep -v '^ *+' conftest.er1 >conftest.err
11825  rm -f conftest.er1
11826  cat conftest.err >&5
11827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828  (exit $ac_status); } &&
11829	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11830  { (case "(($ac_try" in
11831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11832  *) ac_try_echo=$ac_try;;
11833esac
11834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11835  (eval "$ac_try") 2>&5
11836  ac_status=$?
11837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838  (exit $ac_status); }; } &&
11839	 { ac_try='test -s conftest$ac_exeext'
11840  { (case "(($ac_try" in
11841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11842  *) ac_try_echo=$ac_try;;
11843esac
11844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11845  (eval "$ac_try") 2>&5
11846  ac_status=$?
11847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848  (exit $ac_status); }; }; then
11849  eval "$as_ac_var=yes"
11850else
11851  echo "$as_me: failed program was:" >&5
11852sed 's/^/| /' conftest.$ac_ext >&5
11853
11854	eval "$as_ac_var=no"
11855fi
11856
11857rm -f core conftest.err conftest.$ac_objext \
11858      conftest$ac_exeext conftest.$ac_ext
11859fi
11860ac_res=`eval echo '${'$as_ac_var'}'`
11861	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11862echo "${ECHO_T}$ac_res" >&6; }
11863if test `eval echo '${'$as_ac_var'}'` = yes; then
11864  cat >>confdefs.h <<_ACEOF
11865#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11866_ACEOF
11867 break
11868fi
11869done
11870
11871
11872
11873for ac_func in memcpy bcopy
11874do
11875as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11876{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11877echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11878if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11879  echo $ECHO_N "(cached) $ECHO_C" >&6
11880else
11881  cat >conftest.$ac_ext <<_ACEOF
11882/* confdefs.h.  */
11883_ACEOF
11884cat confdefs.h >>conftest.$ac_ext
11885cat >>conftest.$ac_ext <<_ACEOF
11886/* end confdefs.h.  */
11887/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11888   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11889#define $ac_func innocuous_$ac_func
11890
11891/* System header to define __stub macros and hopefully few prototypes,
11892    which can conflict with char $ac_func (); below.
11893    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11894    <limits.h> exists even on freestanding compilers.  */
11895
11896#ifdef __STDC__
11897# include <limits.h>
11898#else
11899# include <assert.h>
11900#endif
11901
11902#undef $ac_func
11903
11904/* Override any GCC internal prototype to avoid an error.
11905   Use char because int might match the return type of a GCC
11906   builtin and then its argument prototype would still apply.  */
11907#ifdef __cplusplus
11908extern "C"
11909#endif
11910char $ac_func ();
11911/* The GNU C library defines this for functions which it implements
11912    to always fail with ENOSYS.  Some functions are actually named
11913    something starting with __ and the normal name is an alias.  */
11914#if defined __stub_$ac_func || defined __stub___$ac_func
11915choke me
11916#endif
11917
11918int
11919main ()
11920{
11921return $ac_func ();
11922  ;
11923  return 0;
11924}
11925_ACEOF
11926rm -f conftest.$ac_objext conftest$ac_exeext
11927if { (ac_try="$ac_link"
11928case "(($ac_try" in
11929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11930  *) ac_try_echo=$ac_try;;
11931esac
11932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11933  (eval "$ac_link") 2>conftest.er1
11934  ac_status=$?
11935  grep -v '^ *+' conftest.er1 >conftest.err
11936  rm -f conftest.er1
11937  cat conftest.err >&5
11938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939  (exit $ac_status); } &&
11940	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11941  { (case "(($ac_try" in
11942  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11943  *) ac_try_echo=$ac_try;;
11944esac
11945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11946  (eval "$ac_try") 2>&5
11947  ac_status=$?
11948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949  (exit $ac_status); }; } &&
11950	 { ac_try='test -s conftest$ac_exeext'
11951  { (case "(($ac_try" in
11952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11953  *) ac_try_echo=$ac_try;;
11954esac
11955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11956  (eval "$ac_try") 2>&5
11957  ac_status=$?
11958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959  (exit $ac_status); }; }; then
11960  eval "$as_ac_var=yes"
11961else
11962  echo "$as_me: failed program was:" >&5
11963sed 's/^/| /' conftest.$ac_ext >&5
11964
11965	eval "$as_ac_var=no"
11966fi
11967
11968rm -f core conftest.err conftest.$ac_objext \
11969      conftest$ac_exeext conftest.$ac_ext
11970fi
11971ac_res=`eval echo '${'$as_ac_var'}'`
11972	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11973echo "${ECHO_T}$ac_res" >&6; }
11974if test `eval echo '${'$as_ac_var'}'` = yes; then
11975  cat >>confdefs.h <<_ACEOF
11976#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11977_ACEOF
11978 break
11979fi
11980done
11981
11982
11983
11984for ac_func in memmove strcmp
11985do
11986as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11987{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11988echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11989if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11990  echo $ECHO_N "(cached) $ECHO_C" >&6
11991else
11992  cat >conftest.$ac_ext <<_ACEOF
11993/* confdefs.h.  */
11994_ACEOF
11995cat confdefs.h >>conftest.$ac_ext
11996cat >>conftest.$ac_ext <<_ACEOF
11997/* end confdefs.h.  */
11998/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11999   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12000#define $ac_func innocuous_$ac_func
12001
12002/* System header to define __stub macros and hopefully few prototypes,
12003    which can conflict with char $ac_func (); below.
12004    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12005    <limits.h> exists even on freestanding compilers.  */
12006
12007#ifdef __STDC__
12008# include <limits.h>
12009#else
12010# include <assert.h>
12011#endif
12012
12013#undef $ac_func
12014
12015/* Override any GCC internal prototype to avoid an error.
12016   Use char because int might match the return type of a GCC
12017   builtin and then its argument prototype would still apply.  */
12018#ifdef __cplusplus
12019extern "C"
12020#endif
12021char $ac_func ();
12022/* The GNU C library defines this for functions which it implements
12023    to always fail with ENOSYS.  Some functions are actually named
12024    something starting with __ and the normal name is an alias.  */
12025#if defined __stub_$ac_func || defined __stub___$ac_func
12026choke me
12027#endif
12028
12029int
12030main ()
12031{
12032return $ac_func ();
12033  ;
12034  return 0;
12035}
12036_ACEOF
12037rm -f conftest.$ac_objext conftest$ac_exeext
12038if { (ac_try="$ac_link"
12039case "(($ac_try" in
12040  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12041  *) ac_try_echo=$ac_try;;
12042esac
12043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12044  (eval "$ac_link") 2>conftest.er1
12045  ac_status=$?
12046  grep -v '^ *+' conftest.er1 >conftest.err
12047  rm -f conftest.er1
12048  cat conftest.err >&5
12049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050  (exit $ac_status); } &&
12051	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12052  { (case "(($ac_try" in
12053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12054  *) ac_try_echo=$ac_try;;
12055esac
12056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12057  (eval "$ac_try") 2>&5
12058  ac_status=$?
12059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060  (exit $ac_status); }; } &&
12061	 { ac_try='test -s conftest$ac_exeext'
12062  { (case "(($ac_try" in
12063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12064  *) ac_try_echo=$ac_try;;
12065esac
12066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12067  (eval "$ac_try") 2>&5
12068  ac_status=$?
12069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070  (exit $ac_status); }; }; then
12071  eval "$as_ac_var=yes"
12072else
12073  echo "$as_me: failed program was:" >&5
12074sed 's/^/| /' conftest.$ac_ext >&5
12075
12076	eval "$as_ac_var=no"
12077fi
12078
12079rm -f core conftest.err conftest.$ac_objext \
12080      conftest$ac_exeext conftest.$ac_ext
12081fi
12082ac_res=`eval echo '${'$as_ac_var'}'`
12083	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12084echo "${ECHO_T}$ac_res" >&6; }
12085if test `eval echo '${'$as_ac_var'}'` = yes; then
12086  cat >>confdefs.h <<_ACEOF
12087#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12088_ACEOF
12089
12090fi
12091done
12092
12093
12094
12095
12096for ac_func in closedir opendir readdir
12097do
12098as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12099{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12100echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12101if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12102  echo $ECHO_N "(cached) $ECHO_C" >&6
12103else
12104  cat >conftest.$ac_ext <<_ACEOF
12105/* confdefs.h.  */
12106_ACEOF
12107cat confdefs.h >>conftest.$ac_ext
12108cat >>conftest.$ac_ext <<_ACEOF
12109/* end confdefs.h.  */
12110/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12111   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12112#define $ac_func innocuous_$ac_func
12113
12114/* System header to define __stub macros and hopefully few prototypes,
12115    which can conflict with char $ac_func (); below.
12116    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12117    <limits.h> exists even on freestanding compilers.  */
12118
12119#ifdef __STDC__
12120# include <limits.h>
12121#else
12122# include <assert.h>
12123#endif
12124
12125#undef $ac_func
12126
12127/* Override any GCC internal prototype to avoid an error.
12128   Use char because int might match the return type of a GCC
12129   builtin and then its argument prototype would still apply.  */
12130#ifdef __cplusplus
12131extern "C"
12132#endif
12133char $ac_func ();
12134/* The GNU C library defines this for functions which it implements
12135    to always fail with ENOSYS.  Some functions are actually named
12136    something starting with __ and the normal name is an alias.  */
12137#if defined __stub_$ac_func || defined __stub___$ac_func
12138choke me
12139#endif
12140
12141int
12142main ()
12143{
12144return $ac_func ();
12145  ;
12146  return 0;
12147}
12148_ACEOF
12149rm -f conftest.$ac_objext conftest$ac_exeext
12150if { (ac_try="$ac_link"
12151case "(($ac_try" in
12152  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12153  *) ac_try_echo=$ac_try;;
12154esac
12155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12156  (eval "$ac_link") 2>conftest.er1
12157  ac_status=$?
12158  grep -v '^ *+' conftest.er1 >conftest.err
12159  rm -f conftest.er1
12160  cat conftest.err >&5
12161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162  (exit $ac_status); } &&
12163	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12164  { (case "(($ac_try" in
12165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12166  *) ac_try_echo=$ac_try;;
12167esac
12168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12169  (eval "$ac_try") 2>&5
12170  ac_status=$?
12171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172  (exit $ac_status); }; } &&
12173	 { ac_try='test -s conftest$ac_exeext'
12174  { (case "(($ac_try" in
12175  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176  *) ac_try_echo=$ac_try;;
12177esac
12178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179  (eval "$ac_try") 2>&5
12180  ac_status=$?
12181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182  (exit $ac_status); }; }; then
12183  eval "$as_ac_var=yes"
12184else
12185  echo "$as_me: failed program was:" >&5
12186sed 's/^/| /' conftest.$ac_ext >&5
12187
12188	eval "$as_ac_var=no"
12189fi
12190
12191rm -f core conftest.err conftest.$ac_objext \
12192      conftest$ac_exeext conftest.$ac_ext
12193fi
12194ac_res=`eval echo '${'$as_ac_var'}'`
12195	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12196echo "${ECHO_T}$ac_res" >&6; }
12197if test `eval echo '${'$as_ac_var'}'` = yes; then
12198  cat >>confdefs.h <<_ACEOF
12199#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12200_ACEOF
12201
12202fi
12203done
12204
12205
12206# Check whether --enable-shared was given.
12207if test "${enable_shared+set}" = set; then
12208  enableval=$enable_shared; p=${PACKAGE-default}
12209    case $enableval in
12210    yes) enable_shared=yes ;;
12211    no) enable_shared=no ;;
12212    *)
12213      enable_shared=no
12214      # Look at the argument we got.  We use all the common list separators.
12215      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12216      for pkg in $enableval; do
12217	IFS="$lt_save_ifs"
12218	if test "X$pkg" = "X$p"; then
12219	  enable_shared=yes
12220	fi
12221      done
12222      IFS="$lt_save_ifs"
12223      ;;
12224    esac
12225else
12226  enable_shared=yes
12227fi
12228
12229
12230# Check whether --enable-static was given.
12231if test "${enable_static+set}" = set; then
12232  enableval=$enable_static; p=${PACKAGE-default}
12233    case $enableval in
12234    yes) enable_static=yes ;;
12235    no) enable_static=no ;;
12236    *)
12237     enable_static=no
12238      # Look at the argument we got.  We use all the common list separators.
12239      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12240      for pkg in $enableval; do
12241	IFS="$lt_save_ifs"
12242	if test "X$pkg" = "X$p"; then
12243	  enable_static=yes
12244	fi
12245      done
12246      IFS="$lt_save_ifs"
12247      ;;
12248    esac
12249else
12250  enable_static=yes
12251fi
12252
12253
12254# Check whether --enable-fast-install was given.
12255if test "${enable_fast_install+set}" = set; then
12256  enableval=$enable_fast_install; p=${PACKAGE-default}
12257    case $enableval in
12258    yes) enable_fast_install=yes ;;
12259    no) enable_fast_install=no ;;
12260    *)
12261      enable_fast_install=no
12262      # Look at the argument we got.  We use all the common list separators.
12263      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12264      for pkg in $enableval; do
12265	IFS="$lt_save_ifs"
12266	if test "X$pkg" = "X$p"; then
12267	  enable_fast_install=yes
12268	fi
12269      done
12270      IFS="$lt_save_ifs"
12271      ;;
12272    esac
12273else
12274  enable_fast_install=yes
12275fi
12276
12277
12278{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12279echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12280if test "${lt_cv_path_SED+set}" = set; then
12281  echo $ECHO_N "(cached) $ECHO_C" >&6
12282else
12283  # Loop through the user's path and test for sed and gsed.
12284# Then use that list of sed's as ones to test for truncation.
12285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12286for as_dir in $PATH
12287do
12288  IFS=$as_save_IFS
12289  test -z "$as_dir" && as_dir=.
12290  for lt_ac_prog in sed gsed; do
12291    for ac_exec_ext in '' $ac_executable_extensions; do
12292      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12293        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12294      fi
12295    done
12296  done
12297done
12298lt_ac_max=0
12299lt_ac_count=0
12300# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12301# along with /bin/sed that truncates output.
12302for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12303  test ! -f $lt_ac_sed && continue
12304  cat /dev/null > conftest.in
12305  lt_ac_count=0
12306  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12307  # Check for GNU sed and select it if it is found.
12308  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12309    lt_cv_path_SED=$lt_ac_sed
12310    break
12311  fi
12312  while true; do
12313    cat conftest.in conftest.in >conftest.tmp
12314    mv conftest.tmp conftest.in
12315    cp conftest.in conftest.nl
12316    echo >>conftest.nl
12317    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12318    cmp -s conftest.out conftest.nl || break
12319    # 10000 chars as input seems more than enough
12320    test $lt_ac_count -gt 10 && break
12321    lt_ac_count=`expr $lt_ac_count + 1`
12322    if test $lt_ac_count -gt $lt_ac_max; then
12323      lt_ac_max=$lt_ac_count
12324      lt_cv_path_SED=$lt_ac_sed
12325    fi
12326  done
12327done
12328
12329fi
12330
12331SED=$lt_cv_path_SED
12332{ echo "$as_me:$LINENO: result: $SED" >&5
12333echo "${ECHO_T}$SED" >&6; }
12334
12335
12336# Check whether --with-gnu-ld was given.
12337if test "${with_gnu_ld+set}" = set; then
12338  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12339else
12340  with_gnu_ld=no
12341fi
12342
12343ac_prog=ld
12344if test "$GCC" = yes; then
12345  # Check if gcc -print-prog-name=ld gives a path.
12346  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12347echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12348  case $host in
12349  *-*-mingw*)
12350    # gcc leaves a trailing carriage return which upsets mingw
12351    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12352  *)
12353    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12354  esac
12355  case $ac_prog in
12356    # Accept absolute paths.
12357    [\\/]* | ?:[\\/]*)
12358      re_direlt='/[^/][^/]*/\.\./'
12359      # Canonicalize the pathname of ld
12360      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12361      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12362	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12363      done
12364      test -z "$LD" && LD="$ac_prog"
12365      ;;
12366  "")
12367    # If it fails, then pretend we aren't using GCC.
12368    ac_prog=ld
12369    ;;
12370  *)
12371    # If it is relative, then search for the first ld in PATH.
12372    with_gnu_ld=unknown
12373    ;;
12374  esac
12375elif test "$with_gnu_ld" = yes; then
12376  { echo "$as_me:$LINENO: checking for GNU ld" >&5
12377echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12378else
12379  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12380echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12381fi
12382if test "${lt_cv_path_LD+set}" = set; then
12383  echo $ECHO_N "(cached) $ECHO_C" >&6
12384else
12385  if test -z "$LD"; then
12386  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12387  for ac_dir in $PATH; do
12388    IFS="$lt_save_ifs"
12389    test -z "$ac_dir" && ac_dir=.
12390    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12391      lt_cv_path_LD="$ac_dir/$ac_prog"
12392      # Check to see if the program is GNU ld.  I'd rather use --version,
12393      # but apparently some variants of GNU ld only accept -v.
12394      # Break only if it was the GNU/non-GNU ld that we prefer.
12395      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12396      *GNU* | *'with BFD'*)
12397	test "$with_gnu_ld" != no && break
12398	;;
12399      *)
12400	test "$with_gnu_ld" != yes && break
12401	;;
12402      esac
12403    fi
12404  done
12405  IFS="$lt_save_ifs"
12406else
12407  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12408fi
12409fi
12410
12411LD="$lt_cv_path_LD"
12412if test -n "$LD"; then
12413  { echo "$as_me:$LINENO: result: $LD" >&5
12414echo "${ECHO_T}$LD" >&6; }
12415else
12416  { echo "$as_me:$LINENO: result: no" >&5
12417echo "${ECHO_T}no" >&6; }
12418fi
12419test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12420echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12421   { (exit 1); exit 1; }; }
12422{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12423echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12424if test "${lt_cv_prog_gnu_ld+set}" = set; then
12425  echo $ECHO_N "(cached) $ECHO_C" >&6
12426else
12427  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12428case `$LD -v 2>&1 </dev/null` in
12429*GNU* | *'with BFD'*)
12430  lt_cv_prog_gnu_ld=yes
12431  ;;
12432*)
12433  lt_cv_prog_gnu_ld=no
12434  ;;
12435esac
12436fi
12437{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12438echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12439with_gnu_ld=$lt_cv_prog_gnu_ld
12440
12441
12442{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12443echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12444if test "${lt_cv_ld_reload_flag+set}" = set; then
12445  echo $ECHO_N "(cached) $ECHO_C" >&6
12446else
12447  lt_cv_ld_reload_flag='-r'
12448fi
12449{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12450echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12451reload_flag=$lt_cv_ld_reload_flag
12452case $reload_flag in
12453"" | " "*) ;;
12454*) reload_flag=" $reload_flag" ;;
12455esac
12456reload_cmds='$LD$reload_flag -o $output$reload_objs'
12457case $host_os in
12458  darwin*)
12459    if test "$GCC" = yes; then
12460      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12461    else
12462      reload_cmds='$LD$reload_flag -o $output$reload_objs'
12463    fi
12464    ;;
12465esac
12466
12467{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12468echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12469if test "${lt_cv_deplibs_check_method+set}" = set; then
12470  echo $ECHO_N "(cached) $ECHO_C" >&6
12471else
12472  lt_cv_file_magic_cmd='$MAGIC_CMD'
12473lt_cv_file_magic_test_file=
12474lt_cv_deplibs_check_method='unknown'
12475# Need to set the preceding variable on all platforms that support
12476# interlibrary dependencies.
12477# 'none' -- dependencies not supported.
12478# `unknown' -- same as none, but documents that we really don't know.
12479# 'pass_all' -- all dependencies passed with no checks.
12480# 'test_compile' -- check by making test program.
12481# 'file_magic [[regex]]' -- check by looking for files in library path
12482# which responds to the $file_magic_cmd with a given extended regex.
12483# If you have `file' or equivalent on your system and you're not sure
12484# whether `pass_all' will *always* work, you probably want this one.
12485
12486case $host_os in
12487aix4* | aix5*)
12488  lt_cv_deplibs_check_method=pass_all
12489  ;;
12490
12491beos*)
12492  lt_cv_deplibs_check_method=pass_all
12493  ;;
12494
12495bsdi[45]*)
12496  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12497  lt_cv_file_magic_cmd='/usr/bin/file -L'
12498  lt_cv_file_magic_test_file=/shlib/libc.so
12499  ;;
12500
12501cygwin*)
12502  # func_win32_libid is a shell function defined in ltmain.sh
12503  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12504  lt_cv_file_magic_cmd='func_win32_libid'
12505  ;;
12506
12507mingw* | pw32*)
12508  # Base MSYS/MinGW do not provide the 'file' command needed by
12509  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12510  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12511  lt_cv_file_magic_cmd='$OBJDUMP -f'
12512  ;;
12513
12514darwin* | rhapsody*)
12515  lt_cv_deplibs_check_method=pass_all
12516  ;;
12517
12518freebsd* | kfreebsd*-gnu | dragonfly*)
12519  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12520    case $host_cpu in
12521    i*86 )
12522      # Not sure whether the presence of OpenBSD here was a mistake.
12523      # Let's accept both of them until this is cleared up.
12524      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12525      lt_cv_file_magic_cmd=/usr/bin/file
12526      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12527      ;;
12528    esac
12529  else
12530    lt_cv_deplibs_check_method=pass_all
12531  fi
12532  ;;
12533
12534gnu*)
12535  lt_cv_deplibs_check_method=pass_all
12536  ;;
12537
12538hpux10.20* | hpux11*)
12539  lt_cv_file_magic_cmd=/usr/bin/file
12540  case $host_cpu in
12541  ia64*)
12542    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12543    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12544    ;;
12545  hppa*64*)
12546    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]'
12547    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12548    ;;
12549  *)
12550    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12551    lt_cv_file_magic_test_file=/usr/lib/libc.sl
12552    ;;
12553  esac
12554  ;;
12555
12556interix3*)
12557  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12558  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12559  ;;
12560
12561irix5* | irix6* | nonstopux*)
12562  case $LD in
12563  *-32|*"-32 ") libmagic=32-bit;;
12564  *-n32|*"-n32 ") libmagic=N32;;
12565  *-64|*"-64 ") libmagic=64-bit;;
12566  *) libmagic=never-match;;
12567  esac
12568  lt_cv_deplibs_check_method=pass_all
12569  ;;
12570
12571# This must be Linux ELF.
12572linux*)
12573  lt_cv_deplibs_check_method=pass_all
12574  ;;
12575
12576netbsd*)
12577  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12578    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12579  else
12580    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12581  fi
12582  ;;
12583
12584newos6*)
12585  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12586  lt_cv_file_magic_cmd=/usr/bin/file
12587  lt_cv_file_magic_test_file=/usr/lib/libnls.so
12588  ;;
12589
12590nto-qnx*)
12591  lt_cv_deplibs_check_method=unknown
12592  ;;
12593
12594openbsd*)
12595  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12596    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12597  else
12598    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12599  fi
12600  ;;
12601
12602osf3* | osf4* | osf5*)
12603  lt_cv_deplibs_check_method=pass_all
12604  ;;
12605
12606solaris*)
12607  lt_cv_deplibs_check_method=pass_all
12608  ;;
12609
12610sysv4 | sysv4.3*)
12611  case $host_vendor in
12612  motorola)
12613    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]'
12614    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12615    ;;
12616  ncr)
12617    lt_cv_deplibs_check_method=pass_all
12618    ;;
12619  sequent)
12620    lt_cv_file_magic_cmd='/bin/file'
12621    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12622    ;;
12623  sni)
12624    lt_cv_file_magic_cmd='/bin/file'
12625    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12626    lt_cv_file_magic_test_file=/lib/libc.so
12627    ;;
12628  siemens)
12629    lt_cv_deplibs_check_method=pass_all
12630    ;;
12631  pc)
12632    lt_cv_deplibs_check_method=pass_all
12633    ;;
12634  esac
12635  ;;
12636
12637sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12638  lt_cv_deplibs_check_method=pass_all
12639  ;;
12640esac
12641
12642fi
12643{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12644echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12645file_magic_cmd=$lt_cv_file_magic_cmd
12646deplibs_check_method=$lt_cv_deplibs_check_method
12647test -z "$deplibs_check_method" && deplibs_check_method=unknown
12648
12649
12650
12651# If no C compiler was specified, use CC.
12652LTCC=${LTCC-"$CC"}
12653
12654# If no C compiler flags were specified, use CFLAGS.
12655LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12656
12657# Allow CC to be a program name with arguments.
12658compiler=$CC
12659
12660# Check whether --enable-libtool-lock was given.
12661if test "${enable_libtool_lock+set}" = set; then
12662  enableval=$enable_libtool_lock;
12663fi
12664
12665test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12666
12667# Some flags need to be propagated to the compiler or linker for good
12668# libtool support.
12669case $host in
12670ia64-*-hpux*)
12671  # Find out which ABI we are using.
12672  echo 'int i;' > conftest.$ac_ext
12673  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12674  (eval $ac_compile) 2>&5
12675  ac_status=$?
12676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677  (exit $ac_status); }; then
12678    case `/usr/bin/file conftest.$ac_objext` in
12679    *ELF-32*)
12680      HPUX_IA64_MODE="32"
12681      ;;
12682    *ELF-64*)
12683      HPUX_IA64_MODE="64"
12684      ;;
12685    esac
12686  fi
12687  rm -rf conftest*
12688  ;;
12689*-*-irix6*)
12690  # Find out which ABI we are using.
12691  echo '#line 12691 "configure"' > conftest.$ac_ext
12692  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12693  (eval $ac_compile) 2>&5
12694  ac_status=$?
12695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696  (exit $ac_status); }; then
12697   if test "$lt_cv_prog_gnu_ld" = yes; then
12698    case `/usr/bin/file conftest.$ac_objext` in
12699    *32-bit*)
12700      LD="${LD-ld} -melf32bsmip"
12701      ;;
12702    *N32*)
12703      LD="${LD-ld} -melf32bmipn32"
12704      ;;
12705    *64-bit*)
12706      LD="${LD-ld} -melf64bmip"
12707      ;;
12708    esac
12709   else
12710    case `/usr/bin/file conftest.$ac_objext` in
12711    *32-bit*)
12712      LD="${LD-ld} -32"
12713      ;;
12714    *N32*)
12715      LD="${LD-ld} -n32"
12716      ;;
12717    *64-bit*)
12718      LD="${LD-ld} -64"
12719      ;;
12720    esac
12721   fi
12722  fi
12723  rm -rf conftest*
12724  ;;
12725
12726x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12727  # Find out which ABI we are using.
12728  echo 'int i;' > conftest.$ac_ext
12729  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12730  (eval $ac_compile) 2>&5
12731  ac_status=$?
12732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733  (exit $ac_status); }; then
12734    case `/usr/bin/file conftest.o` in
12735    *32-bit*)
12736      case $host in
12737        x86_64-*linux*)
12738          LD="${LD-ld} -m elf_i386"
12739          ;;
12740        ppc64-*linux*|powerpc64-*linux*)
12741          LD="${LD-ld} -m elf32ppclinux"
12742          ;;
12743        s390x-*linux*)
12744          LD="${LD-ld} -m elf_s390"
12745          ;;
12746        sparc64-*linux*)
12747          LD="${LD-ld} -m elf32_sparc"
12748          ;;
12749      esac
12750      ;;
12751    *64-bit*)
12752      case $host in
12753        x86_64-*linux*)
12754          LD="${LD-ld} -m elf_x86_64"
12755          ;;
12756        ppc*-*linux*|powerpc*-*linux*)
12757          LD="${LD-ld} -m elf64ppc"
12758          ;;
12759        s390*-*linux*)
12760          LD="${LD-ld} -m elf64_s390"
12761          ;;
12762        sparc*-*linux*)
12763          LD="${LD-ld} -m elf64_sparc"
12764          ;;
12765      esac
12766      ;;
12767    esac
12768  fi
12769  rm -rf conftest*
12770  ;;
12771
12772*-*-sco3.2v5*)
12773  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12774  SAVE_CFLAGS="$CFLAGS"
12775  CFLAGS="$CFLAGS -belf"
12776  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12777echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12778if test "${lt_cv_cc_needs_belf+set}" = set; then
12779  echo $ECHO_N "(cached) $ECHO_C" >&6
12780else
12781  ac_ext=c
12782ac_cpp='$CPP $CPPFLAGS'
12783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12785ac_compiler_gnu=$ac_cv_c_compiler_gnu
12786
12787     cat >conftest.$ac_ext <<_ACEOF
12788/* confdefs.h.  */
12789_ACEOF
12790cat confdefs.h >>conftest.$ac_ext
12791cat >>conftest.$ac_ext <<_ACEOF
12792/* end confdefs.h.  */
12793
12794int
12795main ()
12796{
12797
12798  ;
12799  return 0;
12800}
12801_ACEOF
12802rm -f conftest.$ac_objext conftest$ac_exeext
12803if { (ac_try="$ac_link"
12804case "(($ac_try" in
12805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12806  *) ac_try_echo=$ac_try;;
12807esac
12808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12809  (eval "$ac_link") 2>conftest.er1
12810  ac_status=$?
12811  grep -v '^ *+' conftest.er1 >conftest.err
12812  rm -f conftest.er1
12813  cat conftest.err >&5
12814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815  (exit $ac_status); } &&
12816	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12817  { (case "(($ac_try" in
12818  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12819  *) ac_try_echo=$ac_try;;
12820esac
12821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12822  (eval "$ac_try") 2>&5
12823  ac_status=$?
12824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825  (exit $ac_status); }; } &&
12826	 { ac_try='test -s conftest$ac_exeext'
12827  { (case "(($ac_try" in
12828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12829  *) ac_try_echo=$ac_try;;
12830esac
12831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12832  (eval "$ac_try") 2>&5
12833  ac_status=$?
12834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835  (exit $ac_status); }; }; then
12836  lt_cv_cc_needs_belf=yes
12837else
12838  echo "$as_me: failed program was:" >&5
12839sed 's/^/| /' conftest.$ac_ext >&5
12840
12841	lt_cv_cc_needs_belf=no
12842fi
12843
12844rm -f core conftest.err conftest.$ac_objext \
12845      conftest$ac_exeext conftest.$ac_ext
12846     ac_ext=c
12847ac_cpp='$CPP $CPPFLAGS'
12848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12850ac_compiler_gnu=$ac_cv_c_compiler_gnu
12851
12852fi
12853{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12854echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12855  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12856    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12857    CFLAGS="$SAVE_CFLAGS"
12858  fi
12859  ;;
12860sparc*-*solaris*)
12861  # Find out which ABI we are using.
12862  echo 'int i;' > conftest.$ac_ext
12863  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12864  (eval $ac_compile) 2>&5
12865  ac_status=$?
12866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867  (exit $ac_status); }; then
12868    case `/usr/bin/file conftest.o` in
12869    *64-bit*)
12870      case $lt_cv_prog_gnu_ld in
12871      yes*) LD="${LD-ld} -m elf64_sparc" ;;
12872      *)    LD="${LD-ld} -64" ;;
12873      esac
12874      ;;
12875    esac
12876  fi
12877  rm -rf conftest*
12878  ;;
12879
12880
12881esac
12882
12883need_locks="$enable_libtool_lock"
12884
12885
12886
12887
12888if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12889    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12890    (test "X$CXX" != "Xg++"))) ; then
12891  ac_ext=cpp
12892ac_cpp='$CXXCPP $CPPFLAGS'
12893ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12894ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12895ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12896{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12897echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12898if test -z "$CXXCPP"; then
12899  if test "${ac_cv_prog_CXXCPP+set}" = set; then
12900  echo $ECHO_N "(cached) $ECHO_C" >&6
12901else
12902      # Double quotes because CXXCPP needs to be expanded
12903    for CXXCPP in "$CXX -E" "/lib/cpp"
12904    do
12905      ac_preproc_ok=false
12906for ac_cxx_preproc_warn_flag in '' yes
12907do
12908  # Use a header file that comes with gcc, so configuring glibc
12909  # with a fresh cross-compiler works.
12910  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12911  # <limits.h> exists even on freestanding compilers.
12912  # On the NeXT, cc -E runs the code through the compiler's parser,
12913  # not just through cpp. "Syntax error" is here to catch this case.
12914  cat >conftest.$ac_ext <<_ACEOF
12915/* confdefs.h.  */
12916_ACEOF
12917cat confdefs.h >>conftest.$ac_ext
12918cat >>conftest.$ac_ext <<_ACEOF
12919/* end confdefs.h.  */
12920#ifdef __STDC__
12921# include <limits.h>
12922#else
12923# include <assert.h>
12924#endif
12925		     Syntax error
12926_ACEOF
12927if { (ac_try="$ac_cpp conftest.$ac_ext"
12928case "(($ac_try" in
12929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12930  *) ac_try_echo=$ac_try;;
12931esac
12932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12933  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12934  ac_status=$?
12935  grep -v '^ *+' conftest.er1 >conftest.err
12936  rm -f conftest.er1
12937  cat conftest.err >&5
12938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939  (exit $ac_status); } >/dev/null; then
12940  if test -s conftest.err; then
12941    ac_cpp_err=$ac_cxx_preproc_warn_flag
12942    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12943  else
12944    ac_cpp_err=
12945  fi
12946else
12947  ac_cpp_err=yes
12948fi
12949if test -z "$ac_cpp_err"; then
12950  :
12951else
12952  echo "$as_me: failed program was:" >&5
12953sed 's/^/| /' conftest.$ac_ext >&5
12954
12955  # Broken: fails on valid input.
12956continue
12957fi
12958
12959rm -f conftest.err conftest.$ac_ext
12960
12961  # OK, works on sane cases.  Now check whether nonexistent headers
12962  # can be detected and how.
12963  cat >conftest.$ac_ext <<_ACEOF
12964/* confdefs.h.  */
12965_ACEOF
12966cat confdefs.h >>conftest.$ac_ext
12967cat >>conftest.$ac_ext <<_ACEOF
12968/* end confdefs.h.  */
12969#include <ac_nonexistent.h>
12970_ACEOF
12971if { (ac_try="$ac_cpp conftest.$ac_ext"
12972case "(($ac_try" in
12973  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12974  *) ac_try_echo=$ac_try;;
12975esac
12976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12977  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12978  ac_status=$?
12979  grep -v '^ *+' conftest.er1 >conftest.err
12980  rm -f conftest.er1
12981  cat conftest.err >&5
12982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983  (exit $ac_status); } >/dev/null; then
12984  if test -s conftest.err; then
12985    ac_cpp_err=$ac_cxx_preproc_warn_flag
12986    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12987  else
12988    ac_cpp_err=
12989  fi
12990else
12991  ac_cpp_err=yes
12992fi
12993if test -z "$ac_cpp_err"; then
12994  # Broken: success on invalid input.
12995continue
12996else
12997  echo "$as_me: failed program was:" >&5
12998sed 's/^/| /' conftest.$ac_ext >&5
12999
13000  # Passes both tests.
13001ac_preproc_ok=:
13002break
13003fi
13004
13005rm -f conftest.err conftest.$ac_ext
13006
13007done
13008# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13009rm -f conftest.err conftest.$ac_ext
13010if $ac_preproc_ok; then
13011  break
13012fi
13013
13014    done
13015    ac_cv_prog_CXXCPP=$CXXCPP
13016
13017fi
13018  CXXCPP=$ac_cv_prog_CXXCPP
13019else
13020  ac_cv_prog_CXXCPP=$CXXCPP
13021fi
13022{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13023echo "${ECHO_T}$CXXCPP" >&6; }
13024ac_preproc_ok=false
13025for ac_cxx_preproc_warn_flag in '' yes
13026do
13027  # Use a header file that comes with gcc, so configuring glibc
13028  # with a fresh cross-compiler works.
13029  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13030  # <limits.h> exists even on freestanding compilers.
13031  # On the NeXT, cc -E runs the code through the compiler's parser,
13032  # not just through cpp. "Syntax error" is here to catch this case.
13033  cat >conftest.$ac_ext <<_ACEOF
13034/* confdefs.h.  */
13035_ACEOF
13036cat confdefs.h >>conftest.$ac_ext
13037cat >>conftest.$ac_ext <<_ACEOF
13038/* end confdefs.h.  */
13039#ifdef __STDC__
13040# include <limits.h>
13041#else
13042# include <assert.h>
13043#endif
13044		     Syntax error
13045_ACEOF
13046if { (ac_try="$ac_cpp conftest.$ac_ext"
13047case "(($ac_try" in
13048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13049  *) ac_try_echo=$ac_try;;
13050esac
13051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13052  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13053  ac_status=$?
13054  grep -v '^ *+' conftest.er1 >conftest.err
13055  rm -f conftest.er1
13056  cat conftest.err >&5
13057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058  (exit $ac_status); } >/dev/null; then
13059  if test -s conftest.err; then
13060    ac_cpp_err=$ac_cxx_preproc_warn_flag
13061    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13062  else
13063    ac_cpp_err=
13064  fi
13065else
13066  ac_cpp_err=yes
13067fi
13068if test -z "$ac_cpp_err"; then
13069  :
13070else
13071  echo "$as_me: failed program was:" >&5
13072sed 's/^/| /' conftest.$ac_ext >&5
13073
13074  # Broken: fails on valid input.
13075continue
13076fi
13077
13078rm -f conftest.err conftest.$ac_ext
13079
13080  # OK, works on sane cases.  Now check whether nonexistent headers
13081  # can be detected and how.
13082  cat >conftest.$ac_ext <<_ACEOF
13083/* confdefs.h.  */
13084_ACEOF
13085cat confdefs.h >>conftest.$ac_ext
13086cat >>conftest.$ac_ext <<_ACEOF
13087/* end confdefs.h.  */
13088#include <ac_nonexistent.h>
13089_ACEOF
13090if { (ac_try="$ac_cpp conftest.$ac_ext"
13091case "(($ac_try" in
13092  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13093  *) ac_try_echo=$ac_try;;
13094esac
13095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13096  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13097  ac_status=$?
13098  grep -v '^ *+' conftest.er1 >conftest.err
13099  rm -f conftest.er1
13100  cat conftest.err >&5
13101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102  (exit $ac_status); } >/dev/null; then
13103  if test -s conftest.err; then
13104    ac_cpp_err=$ac_cxx_preproc_warn_flag
13105    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13106  else
13107    ac_cpp_err=
13108  fi
13109else
13110  ac_cpp_err=yes
13111fi
13112if test -z "$ac_cpp_err"; then
13113  # Broken: success on invalid input.
13114continue
13115else
13116  echo "$as_me: failed program was:" >&5
13117sed 's/^/| /' conftest.$ac_ext >&5
13118
13119  # Passes both tests.
13120ac_preproc_ok=:
13121break
13122fi
13123
13124rm -f conftest.err conftest.$ac_ext
13125
13126done
13127# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13128rm -f conftest.err conftest.$ac_ext
13129if $ac_preproc_ok; then
13130  :
13131else
13132  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13133See \`config.log' for more details." >&5
13134echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13135See \`config.log' for more details." >&2;}
13136   { (exit 1); exit 1; }; }
13137fi
13138
13139ac_ext=cpp
13140ac_cpp='$CXXCPP $CPPFLAGS'
13141ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13142ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13143ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13144
13145fi
13146
13147
13148ac_ext=f
13149ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13150ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13151ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13152if test -n "$ac_tool_prefix"; then
13153  for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
13154  do
13155    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13156set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13157{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13159if test "${ac_cv_prog_F77+set}" = set; then
13160  echo $ECHO_N "(cached) $ECHO_C" >&6
13161else
13162  if test -n "$F77"; then
13163  ac_cv_prog_F77="$F77" # Let the user override the test.
13164else
13165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13166for as_dir in $PATH
13167do
13168  IFS=$as_save_IFS
13169  test -z "$as_dir" && as_dir=.
13170  for ac_exec_ext in '' $ac_executable_extensions; do
13171  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13172    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13173    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13174    break 2
13175  fi
13176done
13177done
13178IFS=$as_save_IFS
13179
13180fi
13181fi
13182F77=$ac_cv_prog_F77
13183if test -n "$F77"; then
13184  { echo "$as_me:$LINENO: result: $F77" >&5
13185echo "${ECHO_T}$F77" >&6; }
13186else
13187  { echo "$as_me:$LINENO: result: no" >&5
13188echo "${ECHO_T}no" >&6; }
13189fi
13190
13191
13192    test -n "$F77" && break
13193  done
13194fi
13195if test -z "$F77"; then
13196  ac_ct_F77=$F77
13197  for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
13198do
13199  # Extract the first word of "$ac_prog", so it can be a program name with args.
13200set dummy $ac_prog; ac_word=$2
13201{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13203if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13204  echo $ECHO_N "(cached) $ECHO_C" >&6
13205else
13206  if test -n "$ac_ct_F77"; then
13207  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13208else
13209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13210for as_dir in $PATH
13211do
13212  IFS=$as_save_IFS
13213  test -z "$as_dir" && as_dir=.
13214  for ac_exec_ext in '' $ac_executable_extensions; do
13215  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13216    ac_cv_prog_ac_ct_F77="$ac_prog"
13217    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13218    break 2
13219  fi
13220done
13221done
13222IFS=$as_save_IFS
13223
13224fi
13225fi
13226ac_ct_F77=$ac_cv_prog_ac_ct_F77
13227if test -n "$ac_ct_F77"; then
13228  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13229echo "${ECHO_T}$ac_ct_F77" >&6; }
13230else
13231  { echo "$as_me:$LINENO: result: no" >&5
13232echo "${ECHO_T}no" >&6; }
13233fi
13234
13235
13236  test -n "$ac_ct_F77" && break
13237done
13238
13239  if test "x$ac_ct_F77" = x; then
13240    F77=""
13241  else
13242    case $cross_compiling:$ac_tool_warned in
13243yes:)
13244{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13245whose name does not start with the host triplet.  If you think this
13246configuration is useful to you, please write to autoconf@gnu.org." >&5
13247echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13248whose name does not start with the host triplet.  If you think this
13249configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13250ac_tool_warned=yes ;;
13251esac
13252    F77=$ac_ct_F77
13253  fi
13254fi
13255
13256
13257# Provide some information about the compiler.
13258echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13259ac_compiler=`set X $ac_compile; echo $2`
13260{ (ac_try="$ac_compiler --version >&5"
13261case "(($ac_try" in
13262  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13263  *) ac_try_echo=$ac_try;;
13264esac
13265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13266  (eval "$ac_compiler --version >&5") 2>&5
13267  ac_status=$?
13268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269  (exit $ac_status); }
13270{ (ac_try="$ac_compiler -v >&5"
13271case "(($ac_try" in
13272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13273  *) ac_try_echo=$ac_try;;
13274esac
13275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13276  (eval "$ac_compiler -v >&5") 2>&5
13277  ac_status=$?
13278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279  (exit $ac_status); }
13280{ (ac_try="$ac_compiler -V >&5"
13281case "(($ac_try" in
13282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13283  *) ac_try_echo=$ac_try;;
13284esac
13285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13286  (eval "$ac_compiler -V >&5") 2>&5
13287  ac_status=$?
13288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289  (exit $ac_status); }
13290rm -f a.out
13291
13292# If we don't use `.F' as extension, the preprocessor is not run on the
13293# input file.  (Note that this only needs to work for GNU compilers.)
13294ac_save_ext=$ac_ext
13295ac_ext=F
13296{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13297echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13298if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13299  echo $ECHO_N "(cached) $ECHO_C" >&6
13300else
13301  cat >conftest.$ac_ext <<_ACEOF
13302      program main
13303#ifndef __GNUC__
13304       choke me
13305#endif
13306
13307      end
13308_ACEOF
13309rm -f conftest.$ac_objext
13310if { (ac_try="$ac_compile"
13311case "(($ac_try" in
13312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13313  *) ac_try_echo=$ac_try;;
13314esac
13315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13316  (eval "$ac_compile") 2>conftest.er1
13317  ac_status=$?
13318  grep -v '^ *+' conftest.er1 >conftest.err
13319  rm -f conftest.er1
13320  cat conftest.err >&5
13321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322  (exit $ac_status); } &&
13323	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13324  { (case "(($ac_try" in
13325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13326  *) ac_try_echo=$ac_try;;
13327esac
13328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13329  (eval "$ac_try") 2>&5
13330  ac_status=$?
13331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332  (exit $ac_status); }; } &&
13333	 { ac_try='test -s conftest.$ac_objext'
13334  { (case "(($ac_try" in
13335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13336  *) ac_try_echo=$ac_try;;
13337esac
13338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13339  (eval "$ac_try") 2>&5
13340  ac_status=$?
13341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342  (exit $ac_status); }; }; then
13343  ac_compiler_gnu=yes
13344else
13345  echo "$as_me: failed program was:" >&5
13346sed 's/^/| /' conftest.$ac_ext >&5
13347
13348	ac_compiler_gnu=no
13349fi
13350
13351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13352ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13353
13354fi
13355{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13356echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13357ac_ext=$ac_save_ext
13358ac_test_FFLAGS=${FFLAGS+set}
13359ac_save_FFLAGS=$FFLAGS
13360FFLAGS=
13361{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13362echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13363if test "${ac_cv_prog_f77_g+set}" = set; then
13364  echo $ECHO_N "(cached) $ECHO_C" >&6
13365else
13366  FFLAGS=-g
13367cat >conftest.$ac_ext <<_ACEOF
13368      program main
13369
13370      end
13371_ACEOF
13372rm -f conftest.$ac_objext
13373if { (ac_try="$ac_compile"
13374case "(($ac_try" in
13375  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13376  *) ac_try_echo=$ac_try;;
13377esac
13378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13379  (eval "$ac_compile") 2>conftest.er1
13380  ac_status=$?
13381  grep -v '^ *+' conftest.er1 >conftest.err
13382  rm -f conftest.er1
13383  cat conftest.err >&5
13384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385  (exit $ac_status); } &&
13386	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13387  { (case "(($ac_try" in
13388  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13389  *) ac_try_echo=$ac_try;;
13390esac
13391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13392  (eval "$ac_try") 2>&5
13393  ac_status=$?
13394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395  (exit $ac_status); }; } &&
13396	 { ac_try='test -s conftest.$ac_objext'
13397  { (case "(($ac_try" in
13398  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13399  *) ac_try_echo=$ac_try;;
13400esac
13401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13402  (eval "$ac_try") 2>&5
13403  ac_status=$?
13404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405  (exit $ac_status); }; }; then
13406  ac_cv_prog_f77_g=yes
13407else
13408  echo "$as_me: failed program was:" >&5
13409sed 's/^/| /' conftest.$ac_ext >&5
13410
13411	ac_cv_prog_f77_g=no
13412fi
13413
13414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13415
13416fi
13417{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13418echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13419if test "$ac_test_FFLAGS" = set; then
13420  FFLAGS=$ac_save_FFLAGS
13421elif test $ac_cv_prog_f77_g = yes; then
13422  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13423    FFLAGS="-g -O2"
13424  else
13425    FFLAGS="-g"
13426  fi
13427else
13428  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13429    FFLAGS="-O2"
13430  else
13431    FFLAGS=
13432  fi
13433fi
13434
13435G77=`test $ac_compiler_gnu = yes && echo yes`
13436ac_ext=c
13437ac_cpp='$CPP $CPPFLAGS'
13438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13440ac_compiler_gnu=$ac_cv_c_compiler_gnu
13441
13442
13443
13444# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13445
13446# find the maximum length of command line arguments
13447{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13448echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13449if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13450  echo $ECHO_N "(cached) $ECHO_C" >&6
13451else
13452    i=0
13453  teststring="ABCD"
13454
13455  case $build_os in
13456  msdosdjgpp*)
13457    # On DJGPP, this test can blow up pretty badly due to problems in libc
13458    # (any single argument exceeding 2000 bytes causes a buffer overrun
13459    # during glob expansion).  Even if it were fixed, the result of this
13460    # check would be larger than it should be.
13461    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13462    ;;
13463
13464  gnu*)
13465    # Under GNU Hurd, this test is not required because there is
13466    # no limit to the length of command line arguments.
13467    # Libtool will interpret -1 as no limit whatsoever
13468    lt_cv_sys_max_cmd_len=-1;
13469    ;;
13470
13471  cygwin* | mingw*)
13472    # On Win9x/ME, this test blows up -- it succeeds, but takes
13473    # about 5 minutes as the teststring grows exponentially.
13474    # Worse, since 9x/ME are not pre-emptively multitasking,
13475    # you end up with a "frozen" computer, even though with patience
13476    # the test eventually succeeds (with a max line length of 256k).
13477    # Instead, let's just punt: use the minimum linelength reported by
13478    # all of the supported platforms: 8192 (on NT/2K/XP).
13479    lt_cv_sys_max_cmd_len=8192;
13480    ;;
13481
13482  amigaos*)
13483    # On AmigaOS with pdksh, this test takes hours, literally.
13484    # So we just punt and use a minimum line length of 8192.
13485    lt_cv_sys_max_cmd_len=8192;
13486    ;;
13487
13488  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13489    # This has been around since 386BSD, at least.  Likely further.
13490    if test -x /sbin/sysctl; then
13491      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13492    elif test -x /usr/sbin/sysctl; then
13493      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13494    else
13495      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
13496    fi
13497    # And add a safety zone
13498    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13499    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13500    ;;
13501
13502  interix*)
13503    # We know the value 262144 and hardcode it with a safety zone (like BSD)
13504    lt_cv_sys_max_cmd_len=196608
13505    ;;
13506
13507  osf*)
13508    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13509    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13510    # nice to cause kernel panics so lets avoid the loop below.
13511    # First set a reasonable default.
13512    lt_cv_sys_max_cmd_len=16384
13513    #
13514    if test -x /sbin/sysconfig; then
13515      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13516        *1*) lt_cv_sys_max_cmd_len=-1 ;;
13517      esac
13518    fi
13519    ;;
13520  sco3.2v5*)
13521    lt_cv_sys_max_cmd_len=102400
13522    ;;
13523  sysv5* | sco5v6* | sysv4.2uw2*)
13524    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13525    if test -n "$kargmax"; then
13526      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
13527    else
13528      lt_cv_sys_max_cmd_len=32768
13529    fi
13530    ;;
13531  *)
13532    # If test is not a shell built-in, we'll probably end up computing a
13533    # maximum length that is only half of the actual maximum length, but
13534    # we can't tell.
13535    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13536    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13537	       = "XX$teststring") >/dev/null 2>&1 &&
13538	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
13539	    lt_cv_sys_max_cmd_len=$new_result &&
13540	    test $i != 17 # 1/2 MB should be enough
13541    do
13542      i=`expr $i + 1`
13543      teststring=$teststring$teststring
13544    done
13545    teststring=
13546    # Add a significant safety factor because C++ compilers can tack on massive
13547    # amounts of additional arguments before passing them to the linker.
13548    # It appears as though 1/2 is a usable value.
13549    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13550    ;;
13551  esac
13552
13553fi
13554
13555if test -n $lt_cv_sys_max_cmd_len ; then
13556  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13557echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13558else
13559  { echo "$as_me:$LINENO: result: none" >&5
13560echo "${ECHO_T}none" >&6; }
13561fi
13562
13563
13564
13565
13566# Check for command to grab the raw symbol name followed by C symbol from nm.
13567{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13568echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13569if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13570  echo $ECHO_N "(cached) $ECHO_C" >&6
13571else
13572
13573# These are sane defaults that work on at least a few old systems.
13574# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13575
13576# Character class describing NM global symbol codes.
13577symcode='[BCDEGRST]'
13578
13579# Regexp to match symbols that can be accessed directly from C.
13580sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13581
13582# Transform an extracted symbol line into a proper C declaration
13583lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13584
13585# Transform an extracted symbol line into symbol name and symbol address
13586lt_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'"
13587
13588# Define system-specific variables.
13589case $host_os in
13590aix*)
13591  symcode='[BCDT]'
13592  ;;
13593cygwin* | mingw* | pw32*)
13594  symcode='[ABCDGISTW]'
13595  ;;
13596hpux*) # Its linker distinguishes data from code symbols
13597  if test "$host_cpu" = ia64; then
13598    symcode='[ABCDEGRST]'
13599  fi
13600  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13601  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'"
13602  ;;
13603linux*)
13604  if test "$host_cpu" = ia64; then
13605    symcode='[ABCDGIRSTW]'
13606    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13607    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'"
13608  fi
13609  ;;
13610irix* | nonstopux*)
13611  symcode='[BCDEGRST]'
13612  ;;
13613osf*)
13614  symcode='[BCDEGQRST]'
13615  ;;
13616solaris*)
13617  symcode='[BDRT]'
13618  ;;
13619sco3.2v5*)
13620  symcode='[DT]'
13621  ;;
13622sysv4.2uw2*)
13623  symcode='[DT]'
13624  ;;
13625sysv5* | sco5v6* | unixware* | OpenUNIX*)
13626  symcode='[ABDT]'
13627  ;;
13628sysv4)
13629  symcode='[DFNSTU]'
13630  ;;
13631esac
13632
13633# Handle CRLF in mingw tool chain
13634opt_cr=
13635case $build_os in
13636mingw*)
13637  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13638  ;;
13639esac
13640
13641# If we're using GNU nm, then use its standard symbol codes.
13642case `$NM -V 2>&1` in
13643*GNU* | *'with BFD'*)
13644  symcode='[ABCDGIRSTW]' ;;
13645esac
13646
13647# Try without a prefix undercore, then with it.
13648for ac_symprfx in "" "_"; do
13649
13650  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13651  symxfrm="\\1 $ac_symprfx\\2 \\2"
13652
13653  # Write the raw and C identifiers.
13654  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13655
13656  # Check to see that the pipe works correctly.
13657  pipe_works=no
13658
13659  rm -f conftest*
13660  cat > conftest.$ac_ext <<EOF
13661#ifdef __cplusplus
13662extern "C" {
13663#endif
13664char nm_test_var;
13665void nm_test_func(){}
13666#ifdef __cplusplus
13667}
13668#endif
13669int main(){nm_test_var='a';nm_test_func();return(0);}
13670EOF
13671
13672  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13673  (eval $ac_compile) 2>&5
13674  ac_status=$?
13675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676  (exit $ac_status); }; then
13677    # Now try to grab the symbols.
13678    nlist=conftest.nm
13679    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13680  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13681  ac_status=$?
13682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683  (exit $ac_status); } && test -s "$nlist"; then
13684      # Try sorting and uniquifying the output.
13685      if sort "$nlist" | uniq > "$nlist"T; then
13686	mv -f "$nlist"T "$nlist"
13687      else
13688	rm -f "$nlist"T
13689      fi
13690
13691      # Make sure that we snagged all the symbols we need.
13692      if grep ' nm_test_var$' "$nlist" >/dev/null; then
13693	if grep ' nm_test_func$' "$nlist" >/dev/null; then
13694	  cat <<EOF > conftest.$ac_ext
13695#ifdef __cplusplus
13696extern "C" {
13697#endif
13698
13699EOF
13700	  # Now generate the symbol file.
13701	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13702
13703	  cat <<EOF >> conftest.$ac_ext
13704#if defined (__STDC__) && __STDC__
13705# define lt_ptr_t void *
13706#else
13707# define lt_ptr_t char *
13708# define const
13709#endif
13710
13711/* The mapping between symbol names and symbols. */
13712const struct {
13713  const char *name;
13714  lt_ptr_t address;
13715}
13716lt_preloaded_symbols[] =
13717{
13718EOF
13719	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13720	  cat <<\EOF >> conftest.$ac_ext
13721  {0, (lt_ptr_t) 0}
13722};
13723
13724#ifdef __cplusplus
13725}
13726#endif
13727EOF
13728	  # Now try linking the two files.
13729	  mv conftest.$ac_objext conftstm.$ac_objext
13730	  lt_save_LIBS="$LIBS"
13731	  lt_save_CFLAGS="$CFLAGS"
13732	  LIBS="conftstm.$ac_objext"
13733	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13734	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13735  (eval $ac_link) 2>&5
13736  ac_status=$?
13737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738  (exit $ac_status); } && test -s conftest${ac_exeext}; then
13739	    pipe_works=yes
13740	  fi
13741	  LIBS="$lt_save_LIBS"
13742	  CFLAGS="$lt_save_CFLAGS"
13743	else
13744	  echo "cannot find nm_test_func in $nlist" >&5
13745	fi
13746      else
13747	echo "cannot find nm_test_var in $nlist" >&5
13748      fi
13749    else
13750      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13751    fi
13752  else
13753    echo "$progname: failed program was:" >&5
13754    cat conftest.$ac_ext >&5
13755  fi
13756  rm -f conftest* conftst*
13757
13758  # Do not use the global_symbol_pipe unless it works.
13759  if test "$pipe_works" = yes; then
13760    break
13761  else
13762    lt_cv_sys_global_symbol_pipe=
13763  fi
13764done
13765
13766fi
13767
13768if test -z "$lt_cv_sys_global_symbol_pipe"; then
13769  lt_cv_sys_global_symbol_to_cdecl=
13770fi
13771if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13772  { echo "$as_me:$LINENO: result: failed" >&5
13773echo "${ECHO_T}failed" >&6; }
13774else
13775  { echo "$as_me:$LINENO: result: ok" >&5
13776echo "${ECHO_T}ok" >&6; }
13777fi
13778
13779{ echo "$as_me:$LINENO: checking for objdir" >&5
13780echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13781if test "${lt_cv_objdir+set}" = set; then
13782  echo $ECHO_N "(cached) $ECHO_C" >&6
13783else
13784  rm -f .libs 2>/dev/null
13785mkdir .libs 2>/dev/null
13786if test -d .libs; then
13787  lt_cv_objdir=.libs
13788else
13789  # MS-DOS does not allow filenames that begin with a dot.
13790  lt_cv_objdir=_libs
13791fi
13792rmdir .libs 2>/dev/null
13793fi
13794{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13795echo "${ECHO_T}$lt_cv_objdir" >&6; }
13796objdir=$lt_cv_objdir
13797
13798
13799
13800
13801
13802case $host_os in
13803aix3*)
13804  # AIX sometimes has problems with the GCC collect2 program.  For some
13805  # reason, if we set the COLLECT_NAMES environment variable, the problems
13806  # vanish in a puff of smoke.
13807  if test "X${COLLECT_NAMES+set}" != Xset; then
13808    COLLECT_NAMES=
13809    export COLLECT_NAMES
13810  fi
13811  ;;
13812esac
13813
13814# Sed substitution that helps us do robust quoting.  It backslashifies
13815# metacharacters that are still active within double-quoted strings.
13816Xsed='sed -e 1s/^X//'
13817sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13818
13819# Same as above, but do not quote variable references.
13820double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13821
13822# Sed substitution to delay expansion of an escaped shell variable in a
13823# double_quote_subst'ed string.
13824delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13825
13826# Sed substitution to avoid accidental globbing in evaled expressions
13827no_glob_subst='s/\*/\\\*/g'
13828
13829# Constants:
13830rm="rm -f"
13831
13832# Global variables:
13833default_ofile=mklib
13834can_build_shared=yes
13835
13836# All known linkers require a `.a' archive for static linking (except MSVC,
13837# which needs '.lib').
13838libext=a
13839ltmain="$ac_aux_dir/ltmain.sh"
13840ofile="$default_ofile"
13841with_gnu_ld="$lt_cv_prog_gnu_ld"
13842
13843if test -n "$ac_tool_prefix"; then
13844  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13845set dummy ${ac_tool_prefix}ar; ac_word=$2
13846{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13848if test "${ac_cv_prog_AR+set}" = set; then
13849  echo $ECHO_N "(cached) $ECHO_C" >&6
13850else
13851  if test -n "$AR"; then
13852  ac_cv_prog_AR="$AR" # Let the user override the test.
13853else
13854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13855for as_dir in $PATH
13856do
13857  IFS=$as_save_IFS
13858  test -z "$as_dir" && as_dir=.
13859  for ac_exec_ext in '' $ac_executable_extensions; do
13860  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13861    ac_cv_prog_AR="${ac_tool_prefix}ar"
13862    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13863    break 2
13864  fi
13865done
13866done
13867IFS=$as_save_IFS
13868
13869fi
13870fi
13871AR=$ac_cv_prog_AR
13872if test -n "$AR"; then
13873  { echo "$as_me:$LINENO: result: $AR" >&5
13874echo "${ECHO_T}$AR" >&6; }
13875else
13876  { echo "$as_me:$LINENO: result: no" >&5
13877echo "${ECHO_T}no" >&6; }
13878fi
13879
13880
13881fi
13882if test -z "$ac_cv_prog_AR"; then
13883  ac_ct_AR=$AR
13884  # Extract the first word of "ar", so it can be a program name with args.
13885set dummy ar; ac_word=$2
13886{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13888if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13889  echo $ECHO_N "(cached) $ECHO_C" >&6
13890else
13891  if test -n "$ac_ct_AR"; then
13892  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13893else
13894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13895for as_dir in $PATH
13896do
13897  IFS=$as_save_IFS
13898  test -z "$as_dir" && as_dir=.
13899  for ac_exec_ext in '' $ac_executable_extensions; do
13900  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13901    ac_cv_prog_ac_ct_AR="ar"
13902    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13903    break 2
13904  fi
13905done
13906done
13907IFS=$as_save_IFS
13908
13909fi
13910fi
13911ac_ct_AR=$ac_cv_prog_ac_ct_AR
13912if test -n "$ac_ct_AR"; then
13913  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13914echo "${ECHO_T}$ac_ct_AR" >&6; }
13915else
13916  { echo "$as_me:$LINENO: result: no" >&5
13917echo "${ECHO_T}no" >&6; }
13918fi
13919
13920  if test "x$ac_ct_AR" = x; then
13921    AR="false"
13922  else
13923    case $cross_compiling:$ac_tool_warned in
13924yes:)
13925{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13926whose name does not start with the host triplet.  If you think this
13927configuration is useful to you, please write to autoconf@gnu.org." >&5
13928echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13929whose name does not start with the host triplet.  If you think this
13930configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13931ac_tool_warned=yes ;;
13932esac
13933    AR=$ac_ct_AR
13934  fi
13935else
13936  AR="$ac_cv_prog_AR"
13937fi
13938
13939if test -n "$ac_tool_prefix"; then
13940  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13941set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13942{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13944if test "${ac_cv_prog_RANLIB+set}" = set; then
13945  echo $ECHO_N "(cached) $ECHO_C" >&6
13946else
13947  if test -n "$RANLIB"; then
13948  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13949else
13950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13951for as_dir in $PATH
13952do
13953  IFS=$as_save_IFS
13954  test -z "$as_dir" && as_dir=.
13955  for ac_exec_ext in '' $ac_executable_extensions; do
13956  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13957    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13958    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13959    break 2
13960  fi
13961done
13962done
13963IFS=$as_save_IFS
13964
13965fi
13966fi
13967RANLIB=$ac_cv_prog_RANLIB
13968if test -n "$RANLIB"; then
13969  { echo "$as_me:$LINENO: result: $RANLIB" >&5
13970echo "${ECHO_T}$RANLIB" >&6; }
13971else
13972  { echo "$as_me:$LINENO: result: no" >&5
13973echo "${ECHO_T}no" >&6; }
13974fi
13975
13976
13977fi
13978if test -z "$ac_cv_prog_RANLIB"; then
13979  ac_ct_RANLIB=$RANLIB
13980  # Extract the first word of "ranlib", so it can be a program name with args.
13981set dummy ranlib; ac_word=$2
13982{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13984if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13985  echo $ECHO_N "(cached) $ECHO_C" >&6
13986else
13987  if test -n "$ac_ct_RANLIB"; then
13988  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13989else
13990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13991for as_dir in $PATH
13992do
13993  IFS=$as_save_IFS
13994  test -z "$as_dir" && as_dir=.
13995  for ac_exec_ext in '' $ac_executable_extensions; do
13996  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13997    ac_cv_prog_ac_ct_RANLIB="ranlib"
13998    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13999    break 2
14000  fi
14001done
14002done
14003IFS=$as_save_IFS
14004
14005fi
14006fi
14007ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14008if test -n "$ac_ct_RANLIB"; then
14009  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14010echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14011else
14012  { echo "$as_me:$LINENO: result: no" >&5
14013echo "${ECHO_T}no" >&6; }
14014fi
14015
14016  if test "x$ac_ct_RANLIB" = x; then
14017    RANLIB=":"
14018  else
14019    case $cross_compiling:$ac_tool_warned in
14020yes:)
14021{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14022whose name does not start with the host triplet.  If you think this
14023configuration is useful to you, please write to autoconf@gnu.org." >&5
14024echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14025whose name does not start with the host triplet.  If you think this
14026configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14027ac_tool_warned=yes ;;
14028esac
14029    RANLIB=$ac_ct_RANLIB
14030  fi
14031else
14032  RANLIB="$ac_cv_prog_RANLIB"
14033fi
14034
14035if test -n "$ac_tool_prefix"; then
14036  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14037set dummy ${ac_tool_prefix}strip; ac_word=$2
14038{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14040if test "${ac_cv_prog_STRIP+set}" = set; then
14041  echo $ECHO_N "(cached) $ECHO_C" >&6
14042else
14043  if test -n "$STRIP"; then
14044  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14045else
14046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14047for as_dir in $PATH
14048do
14049  IFS=$as_save_IFS
14050  test -z "$as_dir" && as_dir=.
14051  for ac_exec_ext in '' $ac_executable_extensions; do
14052  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14053    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14054    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14055    break 2
14056  fi
14057done
14058done
14059IFS=$as_save_IFS
14060
14061fi
14062fi
14063STRIP=$ac_cv_prog_STRIP
14064if test -n "$STRIP"; then
14065  { echo "$as_me:$LINENO: result: $STRIP" >&5
14066echo "${ECHO_T}$STRIP" >&6; }
14067else
14068  { echo "$as_me:$LINENO: result: no" >&5
14069echo "${ECHO_T}no" >&6; }
14070fi
14071
14072
14073fi
14074if test -z "$ac_cv_prog_STRIP"; then
14075  ac_ct_STRIP=$STRIP
14076  # Extract the first word of "strip", so it can be a program name with args.
14077set dummy strip; ac_word=$2
14078{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14080if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14081  echo $ECHO_N "(cached) $ECHO_C" >&6
14082else
14083  if test -n "$ac_ct_STRIP"; then
14084  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14085else
14086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14087for as_dir in $PATH
14088do
14089  IFS=$as_save_IFS
14090  test -z "$as_dir" && as_dir=.
14091  for ac_exec_ext in '' $ac_executable_extensions; do
14092  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14093    ac_cv_prog_ac_ct_STRIP="strip"
14094    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14095    break 2
14096  fi
14097done
14098done
14099IFS=$as_save_IFS
14100
14101fi
14102fi
14103ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14104if test -n "$ac_ct_STRIP"; then
14105  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14106echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14107else
14108  { echo "$as_me:$LINENO: result: no" >&5
14109echo "${ECHO_T}no" >&6; }
14110fi
14111
14112  if test "x$ac_ct_STRIP" = x; then
14113    STRIP=":"
14114  else
14115    case $cross_compiling:$ac_tool_warned in
14116yes:)
14117{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14118whose name does not start with the host triplet.  If you think this
14119configuration is useful to you, please write to autoconf@gnu.org." >&5
14120echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14121whose name does not start with the host triplet.  If you think this
14122configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14123ac_tool_warned=yes ;;
14124esac
14125    STRIP=$ac_ct_STRIP
14126  fi
14127else
14128  STRIP="$ac_cv_prog_STRIP"
14129fi
14130
14131
14132old_CC="$CC"
14133old_CFLAGS="$CFLAGS"
14134
14135# Set sane defaults for various variables
14136test -z "$AR" && AR=ar
14137test -z "$AR_FLAGS" && AR_FLAGS=cru
14138test -z "$AS" && AS=as
14139test -z "$CC" && CC=cc
14140test -z "$LTCC" && LTCC=$CC
14141test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14142test -z "$DLLTOOL" && DLLTOOL=dlltool
14143test -z "$LD" && LD=ld
14144test -z "$LN_S" && LN_S="ln -s"
14145test -z "$MAGIC_CMD" && MAGIC_CMD=file
14146test -z "$NM" && NM=nm
14147test -z "$SED" && SED=sed
14148test -z "$OBJDUMP" && OBJDUMP=objdump
14149test -z "$RANLIB" && RANLIB=:
14150test -z "$STRIP" && STRIP=:
14151test -z "$ac_objext" && ac_objext=o
14152
14153# Determine commands to create old-style static archives.
14154old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14155old_postinstall_cmds='chmod 644 $oldlib'
14156old_postuninstall_cmds=
14157
14158if test -n "$RANLIB"; then
14159  case $host_os in
14160  openbsd*)
14161    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14162    ;;
14163  *)
14164    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14165    ;;
14166  esac
14167  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14168fi
14169
14170for cc_temp in $compiler""; do
14171  case $cc_temp in
14172    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14173    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14174    \-*) ;;
14175    *) break;;
14176  esac
14177done
14178cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14179
14180
14181# Only perform the check for file, if the check method requires it
14182case $deplibs_check_method in
14183file_magic*)
14184  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14185    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14186echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14187if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14188  echo $ECHO_N "(cached) $ECHO_C" >&6
14189else
14190  case $MAGIC_CMD in
14191[\\/*] |  ?:[\\/]*)
14192  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14193  ;;
14194*)
14195  lt_save_MAGIC_CMD="$MAGIC_CMD"
14196  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14197  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14198  for ac_dir in $ac_dummy; do
14199    IFS="$lt_save_ifs"
14200    test -z "$ac_dir" && ac_dir=.
14201    if test -f $ac_dir/${ac_tool_prefix}file; then
14202      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14203      if test -n "$file_magic_test_file"; then
14204	case $deplibs_check_method in
14205	"file_magic "*)
14206	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14207	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14208	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14209	    $EGREP "$file_magic_regex" > /dev/null; then
14210	    :
14211	  else
14212	    cat <<EOF 1>&2
14213
14214*** Warning: the command libtool uses to detect shared libraries,
14215*** $file_magic_cmd, produces output that libtool cannot recognize.
14216*** The result is that libtool may fail to recognize shared libraries
14217*** as such.  This will affect the creation of libtool libraries that
14218*** depend on shared libraries, but programs linked with such libtool
14219*** libraries will work regardless of this problem.  Nevertheless, you
14220*** may want to report the problem to your system manager and/or to
14221*** bug-libtool@gnu.org
14222
14223EOF
14224	  fi ;;
14225	esac
14226      fi
14227      break
14228    fi
14229  done
14230  IFS="$lt_save_ifs"
14231  MAGIC_CMD="$lt_save_MAGIC_CMD"
14232  ;;
14233esac
14234fi
14235
14236MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14237if test -n "$MAGIC_CMD"; then
14238  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14239echo "${ECHO_T}$MAGIC_CMD" >&6; }
14240else
14241  { echo "$as_me:$LINENO: result: no" >&5
14242echo "${ECHO_T}no" >&6; }
14243fi
14244
14245if test -z "$lt_cv_path_MAGIC_CMD"; then
14246  if test -n "$ac_tool_prefix"; then
14247    { echo "$as_me:$LINENO: checking for file" >&5
14248echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14249if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14250  echo $ECHO_N "(cached) $ECHO_C" >&6
14251else
14252  case $MAGIC_CMD in
14253[\\/*] |  ?:[\\/]*)
14254  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14255  ;;
14256*)
14257  lt_save_MAGIC_CMD="$MAGIC_CMD"
14258  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14259  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14260  for ac_dir in $ac_dummy; do
14261    IFS="$lt_save_ifs"
14262    test -z "$ac_dir" && ac_dir=.
14263    if test -f $ac_dir/file; then
14264      lt_cv_path_MAGIC_CMD="$ac_dir/file"
14265      if test -n "$file_magic_test_file"; then
14266	case $deplibs_check_method in
14267	"file_magic "*)
14268	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14269	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14270	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14271	    $EGREP "$file_magic_regex" > /dev/null; then
14272	    :
14273	  else
14274	    cat <<EOF 1>&2
14275
14276*** Warning: the command libtool uses to detect shared libraries,
14277*** $file_magic_cmd, produces output that libtool cannot recognize.
14278*** The result is that libtool may fail to recognize shared libraries
14279*** as such.  This will affect the creation of libtool libraries that
14280*** depend on shared libraries, but programs linked with such libtool
14281*** libraries will work regardless of this problem.  Nevertheless, you
14282*** may want to report the problem to your system manager and/or to
14283*** bug-libtool@gnu.org
14284
14285EOF
14286	  fi ;;
14287	esac
14288      fi
14289      break
14290    fi
14291  done
14292  IFS="$lt_save_ifs"
14293  MAGIC_CMD="$lt_save_MAGIC_CMD"
14294  ;;
14295esac
14296fi
14297
14298MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14299if test -n "$MAGIC_CMD"; then
14300  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14301echo "${ECHO_T}$MAGIC_CMD" >&6; }
14302else
14303  { echo "$as_me:$LINENO: result: no" >&5
14304echo "${ECHO_T}no" >&6; }
14305fi
14306
14307  else
14308    MAGIC_CMD=:
14309  fi
14310fi
14311
14312  fi
14313  ;;
14314esac
14315
14316enable_dlopen=yes
14317enable_win32_dll=no
14318
14319# Check whether --enable-libtool-lock was given.
14320if test "${enable_libtool_lock+set}" = set; then
14321  enableval=$enable_libtool_lock;
14322fi
14323
14324test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14325
14326
14327# Check whether --with-pic was given.
14328if test "${with_pic+set}" = set; then
14329  withval=$with_pic; pic_mode="$withval"
14330else
14331  pic_mode=default
14332fi
14333
14334test -z "$pic_mode" && pic_mode=default
14335
14336# Use C for the default configuration in the libtool script
14337tagname=
14338lt_save_CC="$CC"
14339ac_ext=c
14340ac_cpp='$CPP $CPPFLAGS'
14341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14343ac_compiler_gnu=$ac_cv_c_compiler_gnu
14344
14345
14346# Source file extension for C test sources.
14347ac_ext=c
14348
14349# Object file extension for compiled C test sources.
14350objext=o
14351objext=$objext
14352
14353# Code to be used in simple compile tests
14354lt_simple_compile_test_code="int some_variable = 0;\n"
14355
14356# Code to be used in simple link tests
14357lt_simple_link_test_code='int main(){return(0);}\n'
14358
14359
14360# If no C compiler was specified, use CC.
14361LTCC=${LTCC-"$CC"}
14362
14363# If no C compiler flags were specified, use CFLAGS.
14364LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14365
14366# Allow CC to be a program name with arguments.
14367compiler=$CC
14368
14369
14370# save warnings/boilerplate of simple test code
14371ac_outfile=conftest.$ac_objext
14372printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14373eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14374_lt_compiler_boilerplate=`cat conftest.err`
14375$rm conftest*
14376
14377ac_outfile=conftest.$ac_objext
14378printf "$lt_simple_link_test_code" >conftest.$ac_ext
14379eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14380_lt_linker_boilerplate=`cat conftest.err`
14381$rm conftest*
14382
14383
14384
14385lt_prog_compiler_no_builtin_flag=
14386
14387if test "$GCC" = yes; then
14388  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14389
14390
14391{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14392echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14393if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14394  echo $ECHO_N "(cached) $ECHO_C" >&6
14395else
14396  lt_cv_prog_compiler_rtti_exceptions=no
14397  ac_outfile=conftest.$ac_objext
14398   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14399   lt_compiler_flag="-fno-rtti -fno-exceptions"
14400   # Insert the option either (1) after the last *FLAGS variable, or
14401   # (2) before a word containing "conftest.", or (3) at the end.
14402   # Note that $ac_compile itself does not contain backslashes and begins
14403   # with a dollar sign (not a hyphen), so the echo should work correctly.
14404   # The option is referenced via a variable to avoid confusing sed.
14405   lt_compile=`echo "$ac_compile" | $SED \
14406   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14407   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14408   -e 's:$: $lt_compiler_flag:'`
14409   (eval echo "\"\$as_me:14409: $lt_compile\"" >&5)
14410   (eval "$lt_compile" 2>conftest.err)
14411   ac_status=$?
14412   cat conftest.err >&5
14413   echo "$as_me:14413: \$? = $ac_status" >&5
14414   if (exit $ac_status) && test -s "$ac_outfile"; then
14415     # The compiler can only warn and ignore the option if not recognized
14416     # So say no if there are warnings other than the usual output.
14417     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14418     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14419     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14420       lt_cv_prog_compiler_rtti_exceptions=yes
14421     fi
14422   fi
14423   $rm conftest*
14424
14425fi
14426{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14427echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14428
14429if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14430    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14431else
14432    :
14433fi
14434
14435fi
14436
14437lt_prog_compiler_wl=
14438lt_prog_compiler_pic=
14439lt_prog_compiler_static=
14440
14441{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14442echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14443
14444  if test "$GCC" = yes; then
14445    lt_prog_compiler_wl='-Wl,'
14446    lt_prog_compiler_static='-static'
14447
14448    case $host_os in
14449      aix*)
14450      # All AIX code is PIC.
14451      if test "$host_cpu" = ia64; then
14452	# AIX 5 now supports IA64 processor
14453	lt_prog_compiler_static='-Bstatic'
14454      fi
14455      ;;
14456
14457    amigaos*)
14458      # FIXME: we need at least 68020 code to build shared libraries, but
14459      # adding the `-m68020' flag to GCC prevents building anything better,
14460      # like `-m68040'.
14461      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14462      ;;
14463
14464    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14465      # PIC is the default for these OSes.
14466      ;;
14467
14468    mingw* | pw32* | os2*)
14469      # This hack is so that the source file can tell whether it is being
14470      # built for inclusion in a dll (and should export symbols for example).
14471      lt_prog_compiler_pic='-DDLL_EXPORT'
14472      ;;
14473
14474    darwin* | rhapsody*)
14475      # PIC is the default on this platform
14476      # Common symbols not allowed in MH_DYLIB files
14477      lt_prog_compiler_pic='-fno-common'
14478      ;;
14479
14480    interix3*)
14481      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14482      # Instead, we relocate shared libraries at runtime.
14483      ;;
14484
14485    msdosdjgpp*)
14486      # Just because we use GCC doesn't mean we suddenly get shared libraries
14487      # on systems that don't support them.
14488      lt_prog_compiler_can_build_shared=no
14489      enable_shared=no
14490      ;;
14491
14492    sysv4*MP*)
14493      if test -d /usr/nec; then
14494	lt_prog_compiler_pic=-Kconform_pic
14495      fi
14496      ;;
14497
14498    hpux*)
14499      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14500      # not for PA HP-UX.
14501      case $host_cpu in
14502      hppa*64*|ia64*)
14503	# +Z the default
14504	;;
14505      *)
14506	lt_prog_compiler_pic='-fPIC'
14507	;;
14508      esac
14509      ;;
14510
14511    *)
14512      lt_prog_compiler_pic='-fPIC'
14513      ;;
14514    esac
14515  else
14516    # PORTME Check for flag to pass linker flags through the system compiler.
14517    case $host_os in
14518    aix*)
14519      lt_prog_compiler_wl='-Wl,'
14520      if test "$host_cpu" = ia64; then
14521	# AIX 5 now supports IA64 processor
14522	lt_prog_compiler_static='-Bstatic'
14523      else
14524	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14525      fi
14526      ;;
14527      darwin*)
14528        # PIC is the default on this platform
14529        # Common symbols not allowed in MH_DYLIB files
14530       case $cc_basename in
14531         xlc*)
14532         lt_prog_compiler_pic='-qnocommon'
14533         lt_prog_compiler_wl='-Wl,'
14534         ;;
14535       esac
14536       ;;
14537
14538    mingw* | pw32* | os2*)
14539      # This hack is so that the source file can tell whether it is being
14540      # built for inclusion in a dll (and should export symbols for example).
14541      lt_prog_compiler_pic='-DDLL_EXPORT'
14542      ;;
14543
14544    hpux9* | hpux10* | hpux11*)
14545      lt_prog_compiler_wl='-Wl,'
14546      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14547      # not for PA HP-UX.
14548      case $host_cpu in
14549      hppa*64*|ia64*)
14550	# +Z the default
14551	;;
14552      *)
14553	lt_prog_compiler_pic='+Z'
14554	;;
14555      esac
14556      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14557      lt_prog_compiler_static='${wl}-a ${wl}archive'
14558      ;;
14559
14560    irix5* | irix6* | nonstopux*)
14561      lt_prog_compiler_wl='-Wl,'
14562      # PIC (with -KPIC) is the default.
14563      lt_prog_compiler_static='-non_shared'
14564      ;;
14565
14566    newsos6)
14567      lt_prog_compiler_pic='-KPIC'
14568      lt_prog_compiler_static='-Bstatic'
14569      ;;
14570
14571    linux*)
14572      case $cc_basename in
14573      icc* | ecc*)
14574	lt_prog_compiler_wl='-Wl,'
14575	lt_prog_compiler_pic='-KPIC'
14576	lt_prog_compiler_static='-static'
14577        ;;
14578      pgcc* | pgf77* | pgf90* | pgf95*)
14579        # Portland Group compilers (*not* the Pentium gcc compiler,
14580	# which looks to be a dead project)
14581	lt_prog_compiler_wl='-Wl,'
14582	lt_prog_compiler_pic='-fpic'
14583	lt_prog_compiler_static='-Bstatic'
14584        ;;
14585      ccc*)
14586        lt_prog_compiler_wl='-Wl,'
14587        # All Alpha code is PIC.
14588        lt_prog_compiler_static='-non_shared'
14589        ;;
14590      esac
14591      ;;
14592
14593    osf3* | osf4* | osf5*)
14594      lt_prog_compiler_wl='-Wl,'
14595      # All OSF/1 code is PIC.
14596      lt_prog_compiler_static='-non_shared'
14597      ;;
14598
14599    solaris*)
14600      lt_prog_compiler_pic='-KPIC'
14601      lt_prog_compiler_static='-Bstatic'
14602      case $cc_basename in
14603      f77* | f90* | f95*)
14604	lt_prog_compiler_wl='-Qoption ld ';;
14605      *)
14606	lt_prog_compiler_wl='-Wl,';;
14607      esac
14608      ;;
14609
14610    sunos4*)
14611      lt_prog_compiler_wl='-Qoption ld '
14612      lt_prog_compiler_pic='-PIC'
14613      lt_prog_compiler_static='-Bstatic'
14614      ;;
14615
14616    sysv4 | sysv4.2uw2* | sysv4.3*)
14617      lt_prog_compiler_wl='-Wl,'
14618      lt_prog_compiler_pic='-KPIC'
14619      lt_prog_compiler_static='-Bstatic'
14620      ;;
14621
14622    sysv4*MP*)
14623      if test -d /usr/nec ;then
14624	lt_prog_compiler_pic='-Kconform_pic'
14625	lt_prog_compiler_static='-Bstatic'
14626      fi
14627      ;;
14628
14629    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14630      lt_prog_compiler_wl='-Wl,'
14631      lt_prog_compiler_pic='-KPIC'
14632      lt_prog_compiler_static='-Bstatic'
14633      ;;
14634
14635    unicos*)
14636      lt_prog_compiler_wl='-Wl,'
14637      lt_prog_compiler_can_build_shared=no
14638      ;;
14639
14640    uts4*)
14641      lt_prog_compiler_pic='-pic'
14642      lt_prog_compiler_static='-Bstatic'
14643      ;;
14644
14645    *)
14646      lt_prog_compiler_can_build_shared=no
14647      ;;
14648    esac
14649  fi
14650
14651{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14652echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14653
14654#
14655# Check to make sure the PIC flag actually works.
14656#
14657if test -n "$lt_prog_compiler_pic"; then
14658
14659{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14660echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14661if test "${lt_prog_compiler_pic_works+set}" = set; then
14662  echo $ECHO_N "(cached) $ECHO_C" >&6
14663else
14664  lt_prog_compiler_pic_works=no
14665  ac_outfile=conftest.$ac_objext
14666   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14667   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14668   # Insert the option either (1) after the last *FLAGS variable, or
14669   # (2) before a word containing "conftest.", or (3) at the end.
14670   # Note that $ac_compile itself does not contain backslashes and begins
14671   # with a dollar sign (not a hyphen), so the echo should work correctly.
14672   # The option is referenced via a variable to avoid confusing sed.
14673   lt_compile=`echo "$ac_compile" | $SED \
14674   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14675   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14676   -e 's:$: $lt_compiler_flag:'`
14677   (eval echo "\"\$as_me:14677: $lt_compile\"" >&5)
14678   (eval "$lt_compile" 2>conftest.err)
14679   ac_status=$?
14680   cat conftest.err >&5
14681   echo "$as_me:14681: \$? = $ac_status" >&5
14682   if (exit $ac_status) && test -s "$ac_outfile"; then
14683     # The compiler can only warn and ignore the option if not recognized
14684     # So say no if there are warnings other than the usual output.
14685     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14686     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14687     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14688       lt_prog_compiler_pic_works=yes
14689     fi
14690   fi
14691   $rm conftest*
14692
14693fi
14694{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14695echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14696
14697if test x"$lt_prog_compiler_pic_works" = xyes; then
14698    case $lt_prog_compiler_pic in
14699     "" | " "*) ;;
14700     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14701     esac
14702else
14703    lt_prog_compiler_pic=
14704     lt_prog_compiler_can_build_shared=no
14705fi
14706
14707fi
14708case $host_os in
14709  # For platforms which do not support PIC, -DPIC is meaningless:
14710  *djgpp*)
14711    lt_prog_compiler_pic=
14712    ;;
14713  *)
14714    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14715    ;;
14716esac
14717
14718#
14719# Check to make sure the static flag actually works.
14720#
14721wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14722{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14723echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14724if test "${lt_prog_compiler_static_works+set}" = set; then
14725  echo $ECHO_N "(cached) $ECHO_C" >&6
14726else
14727  lt_prog_compiler_static_works=no
14728   save_LDFLAGS="$LDFLAGS"
14729   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14730   printf "$lt_simple_link_test_code" > conftest.$ac_ext
14731   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14732     # The linker can only warn and ignore the option if not recognized
14733     # So say no if there are warnings
14734     if test -s conftest.err; then
14735       # Append any errors to the config.log.
14736       cat conftest.err 1>&5
14737       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14738       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14739       if diff conftest.exp conftest.er2 >/dev/null; then
14740         lt_prog_compiler_static_works=yes
14741       fi
14742     else
14743       lt_prog_compiler_static_works=yes
14744     fi
14745   fi
14746   $rm conftest*
14747   LDFLAGS="$save_LDFLAGS"
14748
14749fi
14750{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14751echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14752
14753if test x"$lt_prog_compiler_static_works" = xyes; then
14754    :
14755else
14756    lt_prog_compiler_static=
14757fi
14758
14759
14760{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14761echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14762if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14763  echo $ECHO_N "(cached) $ECHO_C" >&6
14764else
14765  lt_cv_prog_compiler_c_o=no
14766   $rm -r conftest 2>/dev/null
14767   mkdir conftest
14768   cd conftest
14769   mkdir out
14770   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14771
14772   lt_compiler_flag="-o out/conftest2.$ac_objext"
14773   # Insert the option either (1) after the last *FLAGS variable, or
14774   # (2) before a word containing "conftest.", or (3) at the end.
14775   # Note that $ac_compile itself does not contain backslashes and begins
14776   # with a dollar sign (not a hyphen), so the echo should work correctly.
14777   lt_compile=`echo "$ac_compile" | $SED \
14778   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14779   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14780   -e 's:$: $lt_compiler_flag:'`
14781   (eval echo "\"\$as_me:14781: $lt_compile\"" >&5)
14782   (eval "$lt_compile" 2>out/conftest.err)
14783   ac_status=$?
14784   cat out/conftest.err >&5
14785   echo "$as_me:14785: \$? = $ac_status" >&5
14786   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14787   then
14788     # The compiler can only warn and ignore the option if not recognized
14789     # So say no if there are warnings
14790     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14791     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14792     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14793       lt_cv_prog_compiler_c_o=yes
14794     fi
14795   fi
14796   chmod u+w . 2>&5
14797   $rm conftest*
14798   # SGI C++ compiler will create directory out/ii_files/ for
14799   # template instantiation
14800   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14801   $rm out/* && rmdir out
14802   cd ..
14803   rmdir conftest
14804   $rm conftest*
14805
14806fi
14807{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14808echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14809
14810
14811hard_links="nottested"
14812if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14813  # do not overwrite the value of need_locks provided by the user
14814  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14815echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14816  hard_links=yes
14817  $rm conftest*
14818  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14819  touch conftest.a
14820  ln conftest.a conftest.b 2>&5 || hard_links=no
14821  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14822  { echo "$as_me:$LINENO: result: $hard_links" >&5
14823echo "${ECHO_T}$hard_links" >&6; }
14824  if test "$hard_links" = no; then
14825    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14826echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14827    need_locks=warn
14828  fi
14829else
14830  need_locks=no
14831fi
14832
14833{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14834echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14835
14836  runpath_var=
14837  allow_undefined_flag=
14838  enable_shared_with_static_runtimes=no
14839  archive_cmds=
14840  archive_expsym_cmds=
14841  old_archive_From_new_cmds=
14842  old_archive_from_expsyms_cmds=
14843  export_dynamic_flag_spec=
14844  whole_archive_flag_spec=
14845  thread_safe_flag_spec=
14846  hardcode_libdir_flag_spec=
14847  hardcode_libdir_flag_spec_ld=
14848  hardcode_libdir_separator=
14849  hardcode_direct=no
14850  hardcode_minus_L=no
14851  hardcode_shlibpath_var=unsupported
14852  link_all_deplibs=unknown
14853  hardcode_automatic=no
14854  module_cmds=
14855  module_expsym_cmds=
14856  always_export_symbols=no
14857  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14858  # include_expsyms should be a list of space-separated symbols to be *always*
14859  # included in the symbol list
14860  include_expsyms=
14861  # exclude_expsyms can be an extended regexp of symbols to exclude
14862  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14863  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14864  # as well as any symbol that contains `d'.
14865  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14866  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14867  # platforms (ab)use it in PIC code, but their linkers get confused if
14868  # the symbol is explicitly referenced.  Since portable code cannot
14869  # rely on this symbol name, it's probably fine to never include it in
14870  # preloaded symbol tables.
14871  extract_expsyms_cmds=
14872  # Just being paranoid about ensuring that cc_basename is set.
14873  for cc_temp in $compiler""; do
14874  case $cc_temp in
14875    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14876    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14877    \-*) ;;
14878    *) break;;
14879  esac
14880done
14881cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14882
14883  case $host_os in
14884  cygwin* | mingw* | pw32*)
14885    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14886    # When not using gcc, we currently assume that we are using
14887    # Microsoft Visual C++.
14888    if test "$GCC" != yes; then
14889      with_gnu_ld=no
14890    fi
14891    ;;
14892  interix*)
14893    # we just hope/assume this is gcc and not c89 (= MSVC++)
14894    with_gnu_ld=yes
14895    ;;
14896  openbsd*)
14897    with_gnu_ld=no
14898    ;;
14899  esac
14900
14901  ld_shlibs=yes
14902  if test "$with_gnu_ld" = yes; then
14903    # If archive_cmds runs LD, not CC, wlarc should be empty
14904    wlarc='${wl}'
14905
14906    # Set some defaults for GNU ld with shared library support. These
14907    # are reset later if shared libraries are not supported. Putting them
14908    # here allows them to be overridden if necessary.
14909    runpath_var=LD_RUN_PATH
14910    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14911    export_dynamic_flag_spec='${wl}--export-dynamic'
14912    # ancient GNU ld didn't support --whole-archive et. al.
14913    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14914	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14915      else
14916  	whole_archive_flag_spec=
14917    fi
14918    supports_anon_versioning=no
14919    case `$LD -v 2>/dev/null` in
14920      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14921      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14922      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14923      *\ 2.11.*) ;; # other 2.11 versions
14924      *) supports_anon_versioning=yes ;;
14925    esac
14926
14927    # See if GNU ld supports shared libraries.
14928    case $host_os in
14929    aix3* | aix4* | aix5*)
14930      # On AIX/PPC, the GNU linker is very broken
14931      if test "$host_cpu" != ia64; then
14932	ld_shlibs=no
14933	cat <<EOF 1>&2
14934
14935*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14936*** to be unable to reliably create shared libraries on AIX.
14937*** Therefore, libtool is disabling shared libraries support.  If you
14938*** really care for shared libraries, you may want to modify your PATH
14939*** so that a non-GNU linker is found, and then restart.
14940
14941EOF
14942      fi
14943      ;;
14944
14945    amigaos*)
14946      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)'
14947      hardcode_libdir_flag_spec='-L$libdir'
14948      hardcode_minus_L=yes
14949
14950      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14951      # that the semantics of dynamic libraries on AmigaOS, at least up
14952      # to version 4, is to share data among multiple programs linked
14953      # with the same dynamic library.  Since this doesn't match the
14954      # behavior of shared libraries on other platforms, we can't use
14955      # them.
14956      ld_shlibs=no
14957      ;;
14958
14959    beos*)
14960      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14961	allow_undefined_flag=unsupported
14962	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14963	# support --undefined.  This deserves some investigation.  FIXME
14964	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14965      else
14966	ld_shlibs=no
14967      fi
14968      ;;
14969
14970    cygwin* | mingw* | pw32*)
14971      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14972      # as there is no search path for DLLs.
14973      hardcode_libdir_flag_spec='-L$libdir'
14974      allow_undefined_flag=unsupported
14975      always_export_symbols=no
14976      enable_shared_with_static_runtimes=yes
14977      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14978
14979      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14980        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14981	# If the export-symbols file already is a .def file (1st line
14982	# is EXPORTS), use it as is; otherwise, prepend...
14983	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14984	  cp $export_symbols $output_objdir/$soname.def;
14985	else
14986	  echo EXPORTS > $output_objdir/$soname.def;
14987	  cat $export_symbols >> $output_objdir/$soname.def;
14988	fi~
14989	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14990      else
14991	ld_shlibs=no
14992      fi
14993      ;;
14994
14995    interix3*)
14996      hardcode_direct=no
14997      hardcode_shlibpath_var=no
14998      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14999      export_dynamic_flag_spec='${wl}-E'
15000      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15001      # Instead, shared libraries are loaded at an image base (0x10000000 by
15002      # default) and relocated if they conflict, which is a slow very memory
15003      # consuming and fragmenting process.  To avoid this, we pick a random,
15004      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15005      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15006      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15007      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'
15008      ;;
15009
15010    linux*)
15011      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15012	tmp_addflag=
15013	case $cc_basename,$host_cpu in
15014	pgcc*)				# Portland Group C compiler
15015	  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'
15016	  tmp_addflag=' $pic_flag'
15017	  ;;
15018	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
15019	  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'
15020	  tmp_addflag=' $pic_flag -Mnomain' ;;
15021	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
15022	  tmp_addflag=' -i_dynamic' ;;
15023	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15024	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15025	ifc* | ifort*)			# Intel Fortran compiler
15026	  tmp_addflag=' -nofor_main' ;;
15027	esac
15028	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15029
15030	if test $supports_anon_versioning = yes; then
15031	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15032  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15033  $echo "local: *; };" >> $output_objdir/$libname.ver~
15034	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15035	fi
15036      else
15037	ld_shlibs=no
15038      fi
15039      ;;
15040
15041    netbsd*)
15042      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15043	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15044	wlarc=
15045      else
15046	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15047	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15048      fi
15049      ;;
15050
15051    solaris*)
15052      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15053	ld_shlibs=no
15054	cat <<EOF 1>&2
15055
15056*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15057*** create shared libraries on Solaris systems.  Therefore, libtool
15058*** is disabling shared libraries support.  We urge you to upgrade GNU
15059*** binutils to release 2.9.1 or newer.  Another option is to modify
15060*** your PATH or compiler configuration so that the native linker is
15061*** used, and then restart.
15062
15063EOF
15064      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15065	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15066	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15067      else
15068	ld_shlibs=no
15069      fi
15070      ;;
15071
15072    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15073      case `$LD -v 2>&1` in
15074        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15075	ld_shlibs=no
15076	cat <<_LT_EOF 1>&2
15077
15078*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15079*** reliably create shared libraries on SCO systems.  Therefore, libtool
15080*** is disabling shared libraries support.  We urge you to upgrade GNU
15081*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15082*** your PATH or compiler configuration so that the native linker is
15083*** used, and then restart.
15084
15085_LT_EOF
15086	;;
15087	*)
15088	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15089	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15090	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15091	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15092	  else
15093	    ld_shlibs=no
15094	  fi
15095	;;
15096      esac
15097      ;;
15098
15099    sunos4*)
15100      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15101      wlarc=
15102      hardcode_direct=yes
15103      hardcode_shlibpath_var=no
15104      ;;
15105
15106    *)
15107      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15108	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15109	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15110      else
15111	ld_shlibs=no
15112      fi
15113      ;;
15114    esac
15115
15116    if test "$ld_shlibs" = no; then
15117      runpath_var=
15118      hardcode_libdir_flag_spec=
15119      export_dynamic_flag_spec=
15120      whole_archive_flag_spec=
15121    fi
15122  else
15123    # PORTME fill in a description of your system's linker (not GNU ld)
15124    case $host_os in
15125    aix3*)
15126      allow_undefined_flag=unsupported
15127      always_export_symbols=yes
15128      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'
15129      # Note: this linker hardcodes the directories in LIBPATH if there
15130      # are no directories specified by -L.
15131      hardcode_minus_L=yes
15132      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15133	# Neither direct hardcoding nor static linking is supported with a
15134	# broken collect2.
15135	hardcode_direct=unsupported
15136      fi
15137      ;;
15138
15139    aix4* | aix5*)
15140      if test "$host_cpu" = ia64; then
15141	# On IA64, the linker does run time linking by default, so we don't
15142	# have to do anything special.
15143	aix_use_runtimelinking=no
15144	exp_sym_flag='-Bexport'
15145	no_entry_flag=""
15146      else
15147	# If we're using GNU nm, then we don't want the "-C" option.
15148	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15149	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15150	  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'
15151	else
15152	  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'
15153	fi
15154	aix_use_runtimelinking=no
15155
15156	# Test if we are trying to use run time linking or normal
15157	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15158	# need to do runtime linking.
15159	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15160	  for ld_flag in $LDFLAGS; do
15161  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15162  	    aix_use_runtimelinking=yes
15163  	    break
15164  	  fi
15165	  done
15166	  ;;
15167	esac
15168
15169	exp_sym_flag='-bexport'
15170	no_entry_flag='-bnoentry'
15171      fi
15172
15173      # When large executables or shared objects are built, AIX ld can
15174      # have problems creating the table of contents.  If linking a library
15175      # or program results in "error TOC overflow" add -mminimal-toc to
15176      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15177      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15178
15179      archive_cmds=''
15180      hardcode_direct=yes
15181      hardcode_libdir_separator=':'
15182      link_all_deplibs=yes
15183
15184      if test "$GCC" = yes; then
15185	case $host_os in aix4.[012]|aix4.[012].*)
15186	# We only want to do this on AIX 4.2 and lower, the check
15187	# below for broken collect2 doesn't work under 4.3+
15188	  collect2name=`${CC} -print-prog-name=collect2`
15189	  if test -f "$collect2name" && \
15190  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15191	  then
15192  	  # We have reworked collect2
15193  	  hardcode_direct=yes
15194	  else
15195  	  # We have old collect2
15196  	  hardcode_direct=unsupported
15197  	  # It fails to find uninstalled libraries when the uninstalled
15198  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15199  	  # to unsupported forces relinking
15200  	  hardcode_minus_L=yes
15201  	  hardcode_libdir_flag_spec='-L$libdir'
15202  	  hardcode_libdir_separator=
15203	  fi
15204	  ;;
15205	esac
15206	shared_flag='-shared'
15207	if test "$aix_use_runtimelinking" = yes; then
15208	  shared_flag="$shared_flag "'${wl}-G'
15209	fi
15210      else
15211	# not using gcc
15212	if test "$host_cpu" = ia64; then
15213  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15214  	# chokes on -Wl,-G. The following line is correct:
15215	  shared_flag='-G'
15216	else
15217	  if test "$aix_use_runtimelinking" = yes; then
15218	    shared_flag='${wl}-G'
15219	  else
15220	    shared_flag='${wl}-bM:SRE'
15221	  fi
15222	fi
15223      fi
15224
15225      # It seems that -bexpall does not export symbols beginning with
15226      # underscore (_), so it is better to generate a list of symbols to export.
15227      always_export_symbols=yes
15228      if test "$aix_use_runtimelinking" = yes; then
15229	# Warning - without using the other runtime loading flags (-brtl),
15230	# -berok will link without error, but may produce a broken library.
15231	allow_undefined_flag='-berok'
15232       # Determine the default libpath from the value encoded in an empty executable.
15233       cat >conftest.$ac_ext <<_ACEOF
15234/* confdefs.h.  */
15235_ACEOF
15236cat confdefs.h >>conftest.$ac_ext
15237cat >>conftest.$ac_ext <<_ACEOF
15238/* end confdefs.h.  */
15239
15240int
15241main ()
15242{
15243
15244  ;
15245  return 0;
15246}
15247_ACEOF
15248rm -f conftest.$ac_objext conftest$ac_exeext
15249if { (ac_try="$ac_link"
15250case "(($ac_try" in
15251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252  *) ac_try_echo=$ac_try;;
15253esac
15254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15255  (eval "$ac_link") 2>conftest.er1
15256  ac_status=$?
15257  grep -v '^ *+' conftest.er1 >conftest.err
15258  rm -f conftest.er1
15259  cat conftest.err >&5
15260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261  (exit $ac_status); } &&
15262	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15263  { (case "(($ac_try" in
15264  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15265  *) ac_try_echo=$ac_try;;
15266esac
15267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15268  (eval "$ac_try") 2>&5
15269  ac_status=$?
15270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271  (exit $ac_status); }; } &&
15272	 { ac_try='test -s conftest$ac_exeext'
15273  { (case "(($ac_try" in
15274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15275  *) ac_try_echo=$ac_try;;
15276esac
15277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15278  (eval "$ac_try") 2>&5
15279  ac_status=$?
15280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281  (exit $ac_status); }; }; then
15282
15283aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15284}'`
15285# Check for a 64-bit object if we didn't find anything.
15286if 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; }
15287}'`; fi
15288else
15289  echo "$as_me: failed program was:" >&5
15290sed 's/^/| /' conftest.$ac_ext >&5
15291
15292
15293fi
15294
15295rm -f core conftest.err conftest.$ac_objext \
15296      conftest$ac_exeext conftest.$ac_ext
15297if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15298
15299       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15300	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"
15301       else
15302	if test "$host_cpu" = ia64; then
15303	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15304	  allow_undefined_flag="-z nodefs"
15305	  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"
15306	else
15307	 # Determine the default libpath from the value encoded in an empty executable.
15308	 cat >conftest.$ac_ext <<_ACEOF
15309/* confdefs.h.  */
15310_ACEOF
15311cat confdefs.h >>conftest.$ac_ext
15312cat >>conftest.$ac_ext <<_ACEOF
15313/* end confdefs.h.  */
15314
15315int
15316main ()
15317{
15318
15319  ;
15320  return 0;
15321}
15322_ACEOF
15323rm -f conftest.$ac_objext conftest$ac_exeext
15324if { (ac_try="$ac_link"
15325case "(($ac_try" in
15326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15327  *) ac_try_echo=$ac_try;;
15328esac
15329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15330  (eval "$ac_link") 2>conftest.er1
15331  ac_status=$?
15332  grep -v '^ *+' conftest.er1 >conftest.err
15333  rm -f conftest.er1
15334  cat conftest.err >&5
15335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336  (exit $ac_status); } &&
15337	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15338  { (case "(($ac_try" in
15339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15340  *) ac_try_echo=$ac_try;;
15341esac
15342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15343  (eval "$ac_try") 2>&5
15344  ac_status=$?
15345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346  (exit $ac_status); }; } &&
15347	 { ac_try='test -s conftest$ac_exeext'
15348  { (case "(($ac_try" in
15349  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15350  *) ac_try_echo=$ac_try;;
15351esac
15352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15353  (eval "$ac_try") 2>&5
15354  ac_status=$?
15355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356  (exit $ac_status); }; }; then
15357
15358aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15359}'`
15360# Check for a 64-bit object if we didn't find anything.
15361if 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; }
15362}'`; fi
15363else
15364  echo "$as_me: failed program was:" >&5
15365sed 's/^/| /' conftest.$ac_ext >&5
15366
15367
15368fi
15369
15370rm -f core conftest.err conftest.$ac_objext \
15371      conftest$ac_exeext conftest.$ac_ext
15372if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15373
15374	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15375	  # Warning - without using the other run time loading flags,
15376	  # -berok will link without error, but may produce a broken library.
15377	  no_undefined_flag=' ${wl}-bernotok'
15378	  allow_undefined_flag=' ${wl}-berok'
15379	  # Exported symbols can be pulled into shared objects from archives
15380	  whole_archive_flag_spec='$convenience'
15381	  archive_cmds_need_lc=yes
15382	  # This is similar to how AIX traditionally builds its shared libraries.
15383	  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'
15384	fi
15385      fi
15386      ;;
15387
15388    amigaos*)
15389      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)'
15390      hardcode_libdir_flag_spec='-L$libdir'
15391      hardcode_minus_L=yes
15392      # see comment about different semantics on the GNU ld section
15393      ld_shlibs=no
15394      ;;
15395
15396    bsdi[45]*)
15397      export_dynamic_flag_spec=-rdynamic
15398      ;;
15399
15400    cygwin* | mingw* | pw32*)
15401      # When not using gcc, we currently assume that we are using
15402      # Microsoft Visual C++.
15403      # hardcode_libdir_flag_spec is actually meaningless, as there is
15404      # no search path for DLLs.
15405      hardcode_libdir_flag_spec=' '
15406      allow_undefined_flag=unsupported
15407      # Tell ltmain to make .lib files, not .a files.
15408      libext=lib
15409      # Tell ltmain to make .dll files, not .so files.
15410      shrext_cmds=".dll"
15411      # FIXME: Setting linknames here is a bad hack.
15412      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15413      # The linker will automatically build a .lib file if we build a DLL.
15414      old_archive_From_new_cmds='true'
15415      # FIXME: Should let the user specify the lib program.
15416      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15417      fix_srcfile_path='`cygpath -w "$srcfile"`'
15418      enable_shared_with_static_runtimes=yes
15419      ;;
15420
15421    darwin* | rhapsody*)
15422      case $host_os in
15423        rhapsody* | darwin1.[012])
15424         allow_undefined_flag='${wl}-undefined ${wl}suppress'
15425         ;;
15426       *) # Darwin 1.3 on
15427         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15428           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15429         else
15430           case ${MACOSX_DEPLOYMENT_TARGET} in
15431             10.[012])
15432               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15433               ;;
15434             10.*)
15435               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15436               ;;
15437           esac
15438         fi
15439         ;;
15440      esac
15441      archive_cmds_need_lc=no
15442      hardcode_direct=no
15443      hardcode_automatic=yes
15444      hardcode_shlibpath_var=unsupported
15445      whole_archive_flag_spec=''
15446      link_all_deplibs=yes
15447    if test "$GCC" = yes ; then
15448    	output_verbose_link_cmd='echo'
15449        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15450      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15451      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15452      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}'
15453      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}'
15454    else
15455      case $cc_basename in
15456        xlc*)
15457         output_verbose_link_cmd='echo'
15458         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15459         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15460          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15461         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}'
15462          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}'
15463          ;;
15464       *)
15465         ld_shlibs=no
15466          ;;
15467      esac
15468    fi
15469      ;;
15470
15471    dgux*)
15472      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15473      hardcode_libdir_flag_spec='-L$libdir'
15474      hardcode_shlibpath_var=no
15475      ;;
15476
15477    freebsd1*)
15478      ld_shlibs=no
15479      ;;
15480
15481    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15482    # support.  Future versions do this automatically, but an explicit c++rt0.o
15483    # does not break anything, and helps significantly (at the cost of a little
15484    # extra space).
15485    freebsd2.2*)
15486      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15487      hardcode_libdir_flag_spec='-R$libdir'
15488      hardcode_direct=yes
15489      hardcode_shlibpath_var=no
15490      ;;
15491
15492    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15493    freebsd2*)
15494      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15495      hardcode_direct=yes
15496      hardcode_minus_L=yes
15497      hardcode_shlibpath_var=no
15498      ;;
15499
15500    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15501    freebsd* | kfreebsd*-gnu | dragonfly*)
15502      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15503      hardcode_libdir_flag_spec='-R$libdir'
15504      hardcode_direct=yes
15505      hardcode_shlibpath_var=no
15506      ;;
15507
15508    hpux9*)
15509      if test "$GCC" = yes; then
15510	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'
15511      else
15512	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'
15513      fi
15514      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15515      hardcode_libdir_separator=:
15516      hardcode_direct=yes
15517
15518      # hardcode_minus_L: Not really in the search PATH,
15519      # but as the default location of the library.
15520      hardcode_minus_L=yes
15521      export_dynamic_flag_spec='${wl}-E'
15522      ;;
15523
15524    hpux10*)
15525      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15526	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15527      else
15528	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15529      fi
15530      if test "$with_gnu_ld" = no; then
15531	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15532	hardcode_libdir_separator=:
15533
15534	hardcode_direct=yes
15535	export_dynamic_flag_spec='${wl}-E'
15536
15537	# hardcode_minus_L: Not really in the search PATH,
15538	# but as the default location of the library.
15539	hardcode_minus_L=yes
15540      fi
15541      ;;
15542
15543    hpux11*)
15544      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15545	case $host_cpu in
15546	hppa*64*)
15547	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15548	  ;;
15549	ia64*)
15550	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15551	  ;;
15552	*)
15553	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15554	  ;;
15555	esac
15556      else
15557	case $host_cpu in
15558	hppa*64*)
15559	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15560	  ;;
15561	ia64*)
15562	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15563	  ;;
15564	*)
15565	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15566	  ;;
15567	esac
15568      fi
15569      if test "$with_gnu_ld" = no; then
15570	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15571	hardcode_libdir_separator=:
15572
15573	case $host_cpu in
15574	hppa*64*|ia64*)
15575	  hardcode_libdir_flag_spec_ld='+b $libdir'
15576	  hardcode_direct=no
15577	  hardcode_shlibpath_var=no
15578	  ;;
15579	*)
15580	  hardcode_direct=yes
15581	  export_dynamic_flag_spec='${wl}-E'
15582
15583	  # hardcode_minus_L: Not really in the search PATH,
15584	  # but as the default location of the library.
15585	  hardcode_minus_L=yes
15586	  ;;
15587	esac
15588      fi
15589      ;;
15590
15591    irix5* | irix6* | nonstopux*)
15592      if test "$GCC" = yes; then
15593	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'
15594      else
15595	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'
15596	hardcode_libdir_flag_spec_ld='-rpath $libdir'
15597      fi
15598      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15599      hardcode_libdir_separator=:
15600      link_all_deplibs=yes
15601      ;;
15602
15603    netbsd*)
15604      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15605	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15606      else
15607	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15608      fi
15609      hardcode_libdir_flag_spec='-R$libdir'
15610      hardcode_direct=yes
15611      hardcode_shlibpath_var=no
15612      ;;
15613
15614    newsos6)
15615      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15616      hardcode_direct=yes
15617      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15618      hardcode_libdir_separator=:
15619      hardcode_shlibpath_var=no
15620      ;;
15621
15622    openbsd*)
15623      hardcode_direct=yes
15624      hardcode_shlibpath_var=no
15625      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15626	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15627	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15628	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15629	export_dynamic_flag_spec='${wl}-E'
15630      else
15631       case $host_os in
15632	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15633	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15634	   hardcode_libdir_flag_spec='-R$libdir'
15635	   ;;
15636	 *)
15637	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15638	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15639	   ;;
15640       esac
15641      fi
15642      ;;
15643
15644    os2*)
15645      hardcode_libdir_flag_spec='-L$libdir'
15646      hardcode_minus_L=yes
15647      allow_undefined_flag=unsupported
15648      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'
15649      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15650      ;;
15651
15652    osf3*)
15653      if test "$GCC" = yes; then
15654	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15655	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'
15656      else
15657	allow_undefined_flag=' -expect_unresolved \*'
15658	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'
15659      fi
15660      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15661      hardcode_libdir_separator=:
15662      ;;
15663
15664    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15665      if test "$GCC" = yes; then
15666	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15667	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'
15668	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15669      else
15670	allow_undefined_flag=' -expect_unresolved \*'
15671	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'
15672	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15673	$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'
15674
15675	# Both c and cxx compiler support -rpath directly
15676	hardcode_libdir_flag_spec='-rpath $libdir'
15677      fi
15678      hardcode_libdir_separator=:
15679      ;;
15680
15681    solaris*)
15682      no_undefined_flag=' -z text'
15683      if test "$GCC" = yes; then
15684	wlarc='${wl}'
15685	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15686	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15687	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15688      else
15689	wlarc=''
15690	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15691	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15692  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15693      fi
15694      hardcode_libdir_flag_spec='-R$libdir'
15695      hardcode_shlibpath_var=no
15696      case $host_os in
15697      solaris2.[0-5] | solaris2.[0-5].*) ;;
15698      *)
15699 	# The compiler driver will combine linker options so we
15700 	# cannot just pass the convience library names through
15701 	# without $wl, iff we do not link with $LD.
15702 	# Luckily, gcc supports the same syntax we need for Sun Studio.
15703 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15704 	case $wlarc in
15705 	'')
15706 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15707 	*)
15708 	  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' ;;
15709 	esac ;;
15710      esac
15711      link_all_deplibs=yes
15712      ;;
15713
15714    sunos4*)
15715      if test "x$host_vendor" = xsequent; then
15716	# Use $CC to link under sequent, because it throws in some extra .o
15717	# files that make .init and .fini sections work.
15718	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15719      else
15720	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15721      fi
15722      hardcode_libdir_flag_spec='-L$libdir'
15723      hardcode_direct=yes
15724      hardcode_minus_L=yes
15725      hardcode_shlibpath_var=no
15726      ;;
15727
15728    sysv4)
15729      case $host_vendor in
15730	sni)
15731	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15732	  hardcode_direct=yes # is this really true???
15733	;;
15734	siemens)
15735	  ## LD is ld it makes a PLAMLIB
15736	  ## CC just makes a GrossModule.
15737	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15738	  reload_cmds='$CC -r -o $output$reload_objs'
15739	  hardcode_direct=no
15740        ;;
15741	motorola)
15742	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15743	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15744	;;
15745      esac
15746      runpath_var='LD_RUN_PATH'
15747      hardcode_shlibpath_var=no
15748      ;;
15749
15750    sysv4.3*)
15751      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15752      hardcode_shlibpath_var=no
15753      export_dynamic_flag_spec='-Bexport'
15754      ;;
15755
15756    sysv4*MP*)
15757      if test -d /usr/nec; then
15758	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15759	hardcode_shlibpath_var=no
15760	runpath_var=LD_RUN_PATH
15761	hardcode_runpath_var=yes
15762	ld_shlibs=yes
15763      fi
15764      ;;
15765
15766    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15767      no_undefined_flag='${wl}-z,text'
15768      archive_cmds_need_lc=no
15769      hardcode_shlibpath_var=no
15770      runpath_var='LD_RUN_PATH'
15771
15772      if test "$GCC" = yes; then
15773	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15774	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15775      else
15776	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15777	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15778      fi
15779      ;;
15780
15781    sysv5* | sco3.2v5* | sco5v6*)
15782      # Note: We can NOT use -z defs as we might desire, because we do not
15783      # link with -lc, and that would cause any symbols used from libc to
15784      # always be unresolved, which means just about no library would
15785      # ever link correctly.  If we're not using GNU ld we use -z text
15786      # though, which does catch some bad symbols but isn't as heavy-handed
15787      # as -z defs.
15788      no_undefined_flag='${wl}-z,text'
15789      allow_undefined_flag='${wl}-z,nodefs'
15790      archive_cmds_need_lc=no
15791      hardcode_shlibpath_var=no
15792      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15793      hardcode_libdir_separator=':'
15794      link_all_deplibs=yes
15795      export_dynamic_flag_spec='${wl}-Bexport'
15796      runpath_var='LD_RUN_PATH'
15797
15798      if test "$GCC" = yes; then
15799	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15800	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15801      else
15802	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15803	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15804      fi
15805      ;;
15806
15807    uts4*)
15808      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15809      hardcode_libdir_flag_spec='-L$libdir'
15810      hardcode_shlibpath_var=no
15811      ;;
15812
15813    *)
15814      ld_shlibs=no
15815      ;;
15816    esac
15817  fi
15818
15819{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15820echo "${ECHO_T}$ld_shlibs" >&6; }
15821test "$ld_shlibs" = no && can_build_shared=no
15822
15823#
15824# Do we need to explicitly link libc?
15825#
15826case "x$archive_cmds_need_lc" in
15827x|xyes)
15828  # Assume -lc should be added
15829  archive_cmds_need_lc=yes
15830
15831  if test "$enable_shared" = yes && test "$GCC" = yes; then
15832    case $archive_cmds in
15833    *'~'*)
15834      # FIXME: we may have to deal with multi-command sequences.
15835      ;;
15836    '$CC '*)
15837      # Test whether the compiler implicitly links with -lc since on some
15838      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15839      # to ld, don't add -lc before -lgcc.
15840      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15841echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15842      $rm conftest*
15843      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15844
15845      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15846  (eval $ac_compile) 2>&5
15847  ac_status=$?
15848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849  (exit $ac_status); } 2>conftest.err; then
15850        soname=conftest
15851        lib=conftest
15852        libobjs=conftest.$ac_objext
15853        deplibs=
15854        wl=$lt_prog_compiler_wl
15855	pic_flag=$lt_prog_compiler_pic
15856        compiler_flags=-v
15857        linker_flags=-v
15858        verstring=
15859        output_objdir=.
15860        libname=conftest
15861        lt_save_allow_undefined_flag=$allow_undefined_flag
15862        allow_undefined_flag=
15863        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15864  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15865  ac_status=$?
15866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867  (exit $ac_status); }
15868        then
15869	  archive_cmds_need_lc=no
15870        else
15871	  archive_cmds_need_lc=yes
15872        fi
15873        allow_undefined_flag=$lt_save_allow_undefined_flag
15874      else
15875        cat conftest.err 1>&5
15876      fi
15877      $rm conftest*
15878      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15879echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15880      ;;
15881    esac
15882  fi
15883  ;;
15884esac
15885
15886{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15887echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15888library_names_spec=
15889libname_spec='lib$name'
15890soname_spec=
15891shrext_cmds=".so"
15892postinstall_cmds=
15893postuninstall_cmds=
15894finish_cmds=
15895finish_eval=
15896shlibpath_var=
15897shlibpath_overrides_runpath=unknown
15898version_type=none
15899dynamic_linker="$host_os ld.so"
15900sys_lib_dlsearch_path_spec="/lib /usr/lib"
15901if test "$GCC" = yes; then
15902  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15903  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15904    # if the path contains ";" then we assume it to be the separator
15905    # otherwise default to the standard path separator (i.e. ":") - it is
15906    # assumed that no part of a normal pathname contains ";" but that should
15907    # okay in the real world where ";" in dirpaths is itself problematic.
15908    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15909  else
15910    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15911  fi
15912else
15913  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15914fi
15915need_lib_prefix=unknown
15916hardcode_into_libs=no
15917
15918# when you set need_version to no, make sure it does not cause -set_version
15919# flags to be left without arguments
15920need_version=unknown
15921
15922case $host_os in
15923aix3*)
15924  version_type=linux
15925  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15926  shlibpath_var=LIBPATH
15927
15928  # AIX 3 has no versioning support, so we append a major version to the name.
15929  soname_spec='${libname}${release}${shared_ext}$major'
15930  ;;
15931
15932aix4* | aix5*)
15933  version_type=linux
15934  need_lib_prefix=no
15935  need_version=no
15936  hardcode_into_libs=yes
15937  if test "$host_cpu" = ia64; then
15938    # AIX 5 supports IA64
15939    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15940    shlibpath_var=LD_LIBRARY_PATH
15941  else
15942    # With GCC up to 2.95.x, collect2 would create an import file
15943    # for dependence libraries.  The import file would start with
15944    # the line `#! .'.  This would cause the generated library to
15945    # depend on `.', always an invalid library.  This was fixed in
15946    # development snapshots of GCC prior to 3.0.
15947    case $host_os in
15948      aix4 | aix4.[01] | aix4.[01].*)
15949      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15950	   echo ' yes '
15951	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15952	:
15953      else
15954	can_build_shared=no
15955      fi
15956      ;;
15957    esac
15958    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15959    # soname into executable. Probably we can add versioning support to
15960    # collect2, so additional links can be useful in future.
15961    if test "$aix_use_runtimelinking" = yes; then
15962      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15963      # instead of lib<name>.a to let people know that these are not
15964      # typical AIX shared libraries.
15965      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15966    else
15967      # We preserve .a as extension for shared libraries through AIX4.2
15968      # and later when we are not doing run time linking.
15969      library_names_spec='${libname}${release}.a $libname.a'
15970      soname_spec='${libname}${release}${shared_ext}$major'
15971    fi
15972    shlibpath_var=LIBPATH
15973  fi
15974  ;;
15975
15976amigaos*)
15977  library_names_spec='$libname.ixlibrary $libname.a'
15978  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15979  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'
15980  ;;
15981
15982beos*)
15983  library_names_spec='${libname}${shared_ext}'
15984  dynamic_linker="$host_os ld.so"
15985  shlibpath_var=LIBRARY_PATH
15986  ;;
15987
15988bsdi[45]*)
15989  version_type=linux
15990  need_version=no
15991  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15992  soname_spec='${libname}${release}${shared_ext}$major'
15993  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15994  shlibpath_var=LD_LIBRARY_PATH
15995  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15996  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15997  # the default ld.so.conf also contains /usr/contrib/lib and
15998  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15999  # libtool to hard-code these into programs
16000  ;;
16001
16002cygwin* | mingw* | pw32*)
16003  version_type=windows
16004  shrext_cmds=".dll"
16005  need_version=no
16006  need_lib_prefix=no
16007
16008  case $GCC,$host_os in
16009  yes,cygwin* | yes,mingw* | yes,pw32*)
16010    library_names_spec='$libname.dll.a'
16011    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16012    postinstall_cmds='base_file=`basename \${file}`~
16013      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16014      dldir=$destdir/`dirname \$dlpath`~
16015      test -d \$dldir || mkdir -p \$dldir~
16016      $install_prog $dir/$dlname \$dldir/$dlname~
16017      chmod a+x \$dldir/$dlname'
16018    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16019      dlpath=$dir/\$dldll~
16020       $rm \$dlpath'
16021    shlibpath_overrides_runpath=yes
16022
16023    case $host_os in
16024    cygwin*)
16025      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16026      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16027      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16028      ;;
16029    mingw*)
16030      # MinGW DLLs use traditional 'lib' prefix
16031      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16032      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16033      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16034        # It is most probably a Windows format PATH printed by
16035        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16036        # path with ; separators, and with drive letters. We can handle the
16037        # drive letters (cygwin fileutils understands them), so leave them,
16038        # especially as we might pass files found there to a mingw objdump,
16039        # which wouldn't understand a cygwinified path. Ahh.
16040        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16041      else
16042        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16043      fi
16044      ;;
16045    pw32*)
16046      # pw32 DLLs use 'pw' prefix rather than 'lib'
16047      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16048      ;;
16049    esac
16050    ;;
16051
16052  *)
16053    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16054    ;;
16055  esac
16056  dynamic_linker='Win32 ld.exe'
16057  # FIXME: first we should search . and the directory the executable is in
16058  shlibpath_var=PATH
16059  ;;
16060
16061darwin* | rhapsody*)
16062  dynamic_linker="$host_os dyld"
16063  version_type=darwin
16064  need_lib_prefix=no
16065  need_version=no
16066  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16067  soname_spec='${libname}${release}${major}$shared_ext'
16068  shlibpath_overrides_runpath=yes
16069  shlibpath_var=DYLD_LIBRARY_PATH
16070  shrext_cmds='.dylib'
16071  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16072  if test "$GCC" = yes; then
16073    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"`
16074  else
16075    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16076  fi
16077  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16078  ;;
16079
16080dgux*)
16081  version_type=linux
16082  need_lib_prefix=no
16083  need_version=no
16084  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16085  soname_spec='${libname}${release}${shared_ext}$major'
16086  shlibpath_var=LD_LIBRARY_PATH
16087  ;;
16088
16089freebsd1*)
16090  dynamic_linker=no
16091  ;;
16092
16093kfreebsd*-gnu)
16094  version_type=linux
16095  need_lib_prefix=no
16096  need_version=no
16097  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16098  soname_spec='${libname}${release}${shared_ext}$major'
16099  shlibpath_var=LD_LIBRARY_PATH
16100  shlibpath_overrides_runpath=no
16101  hardcode_into_libs=yes
16102  dynamic_linker='GNU ld.so'
16103  ;;
16104
16105freebsd* | dragonfly*)
16106  # DragonFly does not have aout.  When/if they implement a new
16107  # versioning mechanism, adjust this.
16108  if test -x /usr/bin/objformat; then
16109    objformat=`/usr/bin/objformat`
16110  else
16111    case $host_os in
16112    freebsd[123]*) objformat=aout ;;
16113    *) objformat=elf ;;
16114    esac
16115  fi
16116  version_type=freebsd-$objformat
16117  case $version_type in
16118    freebsd-elf*)
16119      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16120      need_version=no
16121      need_lib_prefix=no
16122      ;;
16123    freebsd-*)
16124      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16125      need_version=yes
16126      ;;
16127  esac
16128  shlibpath_var=LD_LIBRARY_PATH
16129  case $host_os in
16130  freebsd2*)
16131    shlibpath_overrides_runpath=yes
16132    ;;
16133  freebsd3.[01]* | freebsdelf3.[01]*)
16134    shlibpath_overrides_runpath=yes
16135    hardcode_into_libs=yes
16136    ;;
16137  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16138  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16139    shlibpath_overrides_runpath=no
16140    hardcode_into_libs=yes
16141    ;;
16142  freebsd*) # from 4.6 on
16143    shlibpath_overrides_runpath=yes
16144    hardcode_into_libs=yes
16145    ;;
16146  esac
16147  ;;
16148
16149gnu*)
16150  version_type=linux
16151  need_lib_prefix=no
16152  need_version=no
16153  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16154  soname_spec='${libname}${release}${shared_ext}$major'
16155  shlibpath_var=LD_LIBRARY_PATH
16156  hardcode_into_libs=yes
16157  ;;
16158
16159hpux9* | hpux10* | hpux11*)
16160  # Give a soname corresponding to the major version so that dld.sl refuses to
16161  # link against other versions.
16162  version_type=sunos
16163  need_lib_prefix=no
16164  need_version=no
16165  case $host_cpu in
16166  ia64*)
16167    shrext_cmds='.so'
16168    hardcode_into_libs=yes
16169    dynamic_linker="$host_os dld.so"
16170    shlibpath_var=LD_LIBRARY_PATH
16171    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16172    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16173    soname_spec='${libname}${release}${shared_ext}$major'
16174    if test "X$HPUX_IA64_MODE" = X32; then
16175      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16176    else
16177      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16178    fi
16179    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16180    ;;
16181   hppa*64*)
16182     shrext_cmds='.sl'
16183     hardcode_into_libs=yes
16184     dynamic_linker="$host_os dld.sl"
16185     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16186     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16187     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16188     soname_spec='${libname}${release}${shared_ext}$major'
16189     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16190     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16191     ;;
16192   *)
16193    shrext_cmds='.sl'
16194    dynamic_linker="$host_os dld.sl"
16195    shlibpath_var=SHLIB_PATH
16196    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16197    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16198    soname_spec='${libname}${release}${shared_ext}$major'
16199    ;;
16200  esac
16201  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16202  postinstall_cmds='chmod 555 $lib'
16203  ;;
16204
16205interix3*)
16206  version_type=linux
16207  need_lib_prefix=no
16208  need_version=no
16209  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16210  soname_spec='${libname}${release}${shared_ext}$major'
16211  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16212  shlibpath_var=LD_LIBRARY_PATH
16213  shlibpath_overrides_runpath=no
16214  hardcode_into_libs=yes
16215  ;;
16216
16217irix5* | irix6* | nonstopux*)
16218  case $host_os in
16219    nonstopux*) version_type=nonstopux ;;
16220    *)
16221	if test "$lt_cv_prog_gnu_ld" = yes; then
16222		version_type=linux
16223	else
16224		version_type=irix
16225	fi ;;
16226  esac
16227  need_lib_prefix=no
16228  need_version=no
16229  soname_spec='${libname}${release}${shared_ext}$major'
16230  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16231  case $host_os in
16232  irix5* | nonstopux*)
16233    libsuff= shlibsuff=
16234    ;;
16235  *)
16236    case $LD in # libtool.m4 will add one of these switches to LD
16237    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16238      libsuff= shlibsuff= libmagic=32-bit;;
16239    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16240      libsuff=32 shlibsuff=N32 libmagic=N32;;
16241    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16242      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16243    *) libsuff= shlibsuff= libmagic=never-match;;
16244    esac
16245    ;;
16246  esac
16247  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16248  shlibpath_overrides_runpath=no
16249  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16250  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16251  hardcode_into_libs=yes
16252  ;;
16253
16254# No shared lib support for Linux oldld, aout, or coff.
16255linux*oldld* | linux*aout* | linux*coff*)
16256  dynamic_linker=no
16257  ;;
16258
16259# This must be Linux ELF.
16260linux*)
16261  version_type=linux
16262  need_lib_prefix=no
16263  need_version=no
16264  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16265  soname_spec='${libname}${release}${shared_ext}$major'
16266  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16267  shlibpath_var=LD_LIBRARY_PATH
16268  shlibpath_overrides_runpath=no
16269  # This implies no fast_install, which is unacceptable.
16270  # Some rework will be needed to allow for fast_install
16271  # before this can be enabled.
16272  hardcode_into_libs=yes
16273
16274  # Append ld.so.conf contents to the search path
16275  if test -f /etc/ld.so.conf; then
16276    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' ' '`
16277    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16278  fi
16279
16280  # We used to test for /lib/ld.so.1 and disable shared libraries on
16281  # powerpc, because MkLinux only supported shared libraries with the
16282  # GNU dynamic linker.  Since this was broken with cross compilers,
16283  # most powerpc-linux boxes support dynamic linking these days and
16284  # people can always --disable-shared, the test was removed, and we
16285  # assume the GNU/Linux dynamic linker is in use.
16286  dynamic_linker='GNU/Linux ld.so'
16287  ;;
16288
16289knetbsd*-gnu)
16290  version_type=linux
16291  need_lib_prefix=no
16292  need_version=no
16293  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16294  soname_spec='${libname}${release}${shared_ext}$major'
16295  shlibpath_var=LD_LIBRARY_PATH
16296  shlibpath_overrides_runpath=no
16297  hardcode_into_libs=yes
16298  dynamic_linker='GNU ld.so'
16299  ;;
16300
16301netbsd*)
16302  version_type=sunos
16303  need_lib_prefix=no
16304  need_version=no
16305  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16306    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16307    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16308    dynamic_linker='NetBSD (a.out) ld.so'
16309  else
16310    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16311    soname_spec='${libname}${release}${shared_ext}$major'
16312    dynamic_linker='NetBSD ld.elf_so'
16313  fi
16314  shlibpath_var=LD_LIBRARY_PATH
16315  shlibpath_overrides_runpath=yes
16316  hardcode_into_libs=yes
16317  ;;
16318
16319newsos6)
16320  version_type=linux
16321  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16322  shlibpath_var=LD_LIBRARY_PATH
16323  shlibpath_overrides_runpath=yes
16324  ;;
16325
16326nto-qnx*)
16327  version_type=linux
16328  need_lib_prefix=no
16329  need_version=no
16330  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16331  soname_spec='${libname}${release}${shared_ext}$major'
16332  shlibpath_var=LD_LIBRARY_PATH
16333  shlibpath_overrides_runpath=yes
16334  ;;
16335
16336openbsd*)
16337  version_type=sunos
16338  sys_lib_dlsearch_path_spec="/usr/lib"
16339  need_lib_prefix=no
16340  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16341  case $host_os in
16342    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16343    *)                         need_version=no  ;;
16344  esac
16345  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16346  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16347  shlibpath_var=LD_LIBRARY_PATH
16348  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16349    case $host_os in
16350      openbsd2.[89] | openbsd2.[89].*)
16351	shlibpath_overrides_runpath=no
16352	;;
16353      *)
16354	shlibpath_overrides_runpath=yes
16355	;;
16356      esac
16357  else
16358    shlibpath_overrides_runpath=yes
16359  fi
16360  ;;
16361
16362os2*)
16363  libname_spec='$name'
16364  shrext_cmds=".dll"
16365  need_lib_prefix=no
16366  library_names_spec='$libname${shared_ext} $libname.a'
16367  dynamic_linker='OS/2 ld.exe'
16368  shlibpath_var=LIBPATH
16369  ;;
16370
16371osf3* | osf4* | osf5*)
16372  version_type=osf
16373  need_lib_prefix=no
16374  need_version=no
16375  soname_spec='${libname}${release}${shared_ext}$major'
16376  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16377  shlibpath_var=LD_LIBRARY_PATH
16378  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16379  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16380  ;;
16381
16382solaris*)
16383  version_type=linux
16384  need_lib_prefix=no
16385  need_version=no
16386  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16387  soname_spec='${libname}${release}${shared_ext}$major'
16388  shlibpath_var=LD_LIBRARY_PATH
16389  shlibpath_overrides_runpath=yes
16390  hardcode_into_libs=yes
16391  # ldd complains unless libraries are executable
16392  postinstall_cmds='chmod +x $lib'
16393  ;;
16394
16395sunos4*)
16396  version_type=sunos
16397  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16398  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16399  shlibpath_var=LD_LIBRARY_PATH
16400  shlibpath_overrides_runpath=yes
16401  if test "$with_gnu_ld" = yes; then
16402    need_lib_prefix=no
16403  fi
16404  need_version=yes
16405  ;;
16406
16407sysv4 | sysv4.3*)
16408  version_type=linux
16409  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16410  soname_spec='${libname}${release}${shared_ext}$major'
16411  shlibpath_var=LD_LIBRARY_PATH
16412  case $host_vendor in
16413    sni)
16414      shlibpath_overrides_runpath=no
16415      need_lib_prefix=no
16416      export_dynamic_flag_spec='${wl}-Blargedynsym'
16417      runpath_var=LD_RUN_PATH
16418      ;;
16419    siemens)
16420      need_lib_prefix=no
16421      ;;
16422    motorola)
16423      need_lib_prefix=no
16424      need_version=no
16425      shlibpath_overrides_runpath=no
16426      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16427      ;;
16428  esac
16429  ;;
16430
16431sysv4*MP*)
16432  if test -d /usr/nec ;then
16433    version_type=linux
16434    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16435    soname_spec='$libname${shared_ext}.$major'
16436    shlibpath_var=LD_LIBRARY_PATH
16437  fi
16438  ;;
16439
16440sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16441  version_type=freebsd-elf
16442  need_lib_prefix=no
16443  need_version=no
16444  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16445  soname_spec='${libname}${release}${shared_ext}$major'
16446  shlibpath_var=LD_LIBRARY_PATH
16447  hardcode_into_libs=yes
16448  if test "$with_gnu_ld" = yes; then
16449    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16450    shlibpath_overrides_runpath=no
16451  else
16452    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16453    shlibpath_overrides_runpath=yes
16454    case $host_os in
16455      sco3.2v5*)
16456        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16457	;;
16458    esac
16459  fi
16460  sys_lib_dlsearch_path_spec='/usr/lib'
16461  ;;
16462
16463uts4*)
16464  version_type=linux
16465  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16466  soname_spec='${libname}${release}${shared_ext}$major'
16467  shlibpath_var=LD_LIBRARY_PATH
16468  ;;
16469
16470*)
16471  dynamic_linker=no
16472  ;;
16473esac
16474{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16475echo "${ECHO_T}$dynamic_linker" >&6; }
16476test "$dynamic_linker" = no && can_build_shared=no
16477
16478variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16479if test "$GCC" = yes; then
16480  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16481fi
16482
16483{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16484echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16485hardcode_action=
16486if test -n "$hardcode_libdir_flag_spec" || \
16487   test -n "$runpath_var" || \
16488   test "X$hardcode_automatic" = "Xyes" ; then
16489
16490  # We can hardcode non-existant directories.
16491  if test "$hardcode_direct" != no &&
16492     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16493     # have to relink, otherwise we might link with an installed library
16494     # when we should be linking with a yet-to-be-installed one
16495     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16496     test "$hardcode_minus_L" != no; then
16497    # Linking always hardcodes the temporary library directory.
16498    hardcode_action=relink
16499  else
16500    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16501    hardcode_action=immediate
16502  fi
16503else
16504  # We cannot hardcode anything, or else we can only hardcode existing
16505  # directories.
16506  hardcode_action=unsupported
16507fi
16508{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16509echo "${ECHO_T}$hardcode_action" >&6; }
16510
16511if test "$hardcode_action" = relink; then
16512  # Fast installation is not supported
16513  enable_fast_install=no
16514elif test "$shlibpath_overrides_runpath" = yes ||
16515     test "$enable_shared" = no; then
16516  # Fast installation is not necessary
16517  enable_fast_install=needless
16518fi
16519
16520striplib=
16521old_striplib=
16522{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16523echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16524if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16525  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16526  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16527  { echo "$as_me:$LINENO: result: yes" >&5
16528echo "${ECHO_T}yes" >&6; }
16529else
16530# FIXME - insert some real tests, host_os isn't really good enough
16531  case $host_os in
16532   darwin*)
16533       if test -n "$STRIP" ; then
16534         striplib="$STRIP -x"
16535         { echo "$as_me:$LINENO: result: yes" >&5
16536echo "${ECHO_T}yes" >&6; }
16537       else
16538  { echo "$as_me:$LINENO: result: no" >&5
16539echo "${ECHO_T}no" >&6; }
16540fi
16541       ;;
16542   *)
16543  { echo "$as_me:$LINENO: result: no" >&5
16544echo "${ECHO_T}no" >&6; }
16545    ;;
16546  esac
16547fi
16548
16549if test "x$enable_dlopen" != xyes; then
16550  enable_dlopen=unknown
16551  enable_dlopen_self=unknown
16552  enable_dlopen_self_static=unknown
16553else
16554  lt_cv_dlopen=no
16555  lt_cv_dlopen_libs=
16556
16557  case $host_os in
16558  beos*)
16559    lt_cv_dlopen="load_add_on"
16560    lt_cv_dlopen_libs=
16561    lt_cv_dlopen_self=yes
16562    ;;
16563
16564  mingw* | pw32*)
16565    lt_cv_dlopen="LoadLibrary"
16566    lt_cv_dlopen_libs=
16567   ;;
16568
16569  cygwin*)
16570    lt_cv_dlopen="dlopen"
16571    lt_cv_dlopen_libs=
16572   ;;
16573
16574  darwin*)
16575  # if libdl is installed we need to link against it
16576    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16577echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16578if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16579  echo $ECHO_N "(cached) $ECHO_C" >&6
16580else
16581  ac_check_lib_save_LIBS=$LIBS
16582LIBS="-ldl  $LIBS"
16583cat >conftest.$ac_ext <<_ACEOF
16584/* confdefs.h.  */
16585_ACEOF
16586cat confdefs.h >>conftest.$ac_ext
16587cat >>conftest.$ac_ext <<_ACEOF
16588/* end confdefs.h.  */
16589
16590/* Override any GCC internal prototype to avoid an error.
16591   Use char because int might match the return type of a GCC
16592   builtin and then its argument prototype would still apply.  */
16593#ifdef __cplusplus
16594extern "C"
16595#endif
16596char dlopen ();
16597int
16598main ()
16599{
16600return dlopen ();
16601  ;
16602  return 0;
16603}
16604_ACEOF
16605rm -f conftest.$ac_objext conftest$ac_exeext
16606if { (ac_try="$ac_link"
16607case "(($ac_try" in
16608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16609  *) ac_try_echo=$ac_try;;
16610esac
16611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16612  (eval "$ac_link") 2>conftest.er1
16613  ac_status=$?
16614  grep -v '^ *+' conftest.er1 >conftest.err
16615  rm -f conftest.er1
16616  cat conftest.err >&5
16617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618  (exit $ac_status); } &&
16619	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16620  { (case "(($ac_try" in
16621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16622  *) ac_try_echo=$ac_try;;
16623esac
16624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16625  (eval "$ac_try") 2>&5
16626  ac_status=$?
16627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628  (exit $ac_status); }; } &&
16629	 { ac_try='test -s conftest$ac_exeext'
16630  { (case "(($ac_try" in
16631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16632  *) ac_try_echo=$ac_try;;
16633esac
16634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16635  (eval "$ac_try") 2>&5
16636  ac_status=$?
16637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638  (exit $ac_status); }; }; then
16639  ac_cv_lib_dl_dlopen=yes
16640else
16641  echo "$as_me: failed program was:" >&5
16642sed 's/^/| /' conftest.$ac_ext >&5
16643
16644	ac_cv_lib_dl_dlopen=no
16645fi
16646
16647rm -f core conftest.err conftest.$ac_objext \
16648      conftest$ac_exeext conftest.$ac_ext
16649LIBS=$ac_check_lib_save_LIBS
16650fi
16651{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16652echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16653if test $ac_cv_lib_dl_dlopen = yes; then
16654  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16655else
16656
16657    lt_cv_dlopen="dyld"
16658    lt_cv_dlopen_libs=
16659    lt_cv_dlopen_self=yes
16660
16661fi
16662
16663   ;;
16664
16665  *)
16666    { echo "$as_me:$LINENO: checking for shl_load" >&5
16667echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16668if test "${ac_cv_func_shl_load+set}" = set; then
16669  echo $ECHO_N "(cached) $ECHO_C" >&6
16670else
16671  cat >conftest.$ac_ext <<_ACEOF
16672/* confdefs.h.  */
16673_ACEOF
16674cat confdefs.h >>conftest.$ac_ext
16675cat >>conftest.$ac_ext <<_ACEOF
16676/* end confdefs.h.  */
16677/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16678   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16679#define shl_load innocuous_shl_load
16680
16681/* System header to define __stub macros and hopefully few prototypes,
16682    which can conflict with char shl_load (); below.
16683    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16684    <limits.h> exists even on freestanding compilers.  */
16685
16686#ifdef __STDC__
16687# include <limits.h>
16688#else
16689# include <assert.h>
16690#endif
16691
16692#undef shl_load
16693
16694/* Override any GCC internal prototype to avoid an error.
16695   Use char because int might match the return type of a GCC
16696   builtin and then its argument prototype would still apply.  */
16697#ifdef __cplusplus
16698extern "C"
16699#endif
16700char shl_load ();
16701/* The GNU C library defines this for functions which it implements
16702    to always fail with ENOSYS.  Some functions are actually named
16703    something starting with __ and the normal name is an alias.  */
16704#if defined __stub_shl_load || defined __stub___shl_load
16705choke me
16706#endif
16707
16708int
16709main ()
16710{
16711return shl_load ();
16712  ;
16713  return 0;
16714}
16715_ACEOF
16716rm -f conftest.$ac_objext conftest$ac_exeext
16717if { (ac_try="$ac_link"
16718case "(($ac_try" in
16719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16720  *) ac_try_echo=$ac_try;;
16721esac
16722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16723  (eval "$ac_link") 2>conftest.er1
16724  ac_status=$?
16725  grep -v '^ *+' conftest.er1 >conftest.err
16726  rm -f conftest.er1
16727  cat conftest.err >&5
16728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729  (exit $ac_status); } &&
16730	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16731  { (case "(($ac_try" in
16732  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16733  *) ac_try_echo=$ac_try;;
16734esac
16735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16736  (eval "$ac_try") 2>&5
16737  ac_status=$?
16738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739  (exit $ac_status); }; } &&
16740	 { ac_try='test -s conftest$ac_exeext'
16741  { (case "(($ac_try" in
16742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16743  *) ac_try_echo=$ac_try;;
16744esac
16745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16746  (eval "$ac_try") 2>&5
16747  ac_status=$?
16748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749  (exit $ac_status); }; }; then
16750  ac_cv_func_shl_load=yes
16751else
16752  echo "$as_me: failed program was:" >&5
16753sed 's/^/| /' conftest.$ac_ext >&5
16754
16755	ac_cv_func_shl_load=no
16756fi
16757
16758rm -f core conftest.err conftest.$ac_objext \
16759      conftest$ac_exeext conftest.$ac_ext
16760fi
16761{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16762echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16763if test $ac_cv_func_shl_load = yes; then
16764  lt_cv_dlopen="shl_load"
16765else
16766  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16767echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16768if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16769  echo $ECHO_N "(cached) $ECHO_C" >&6
16770else
16771  ac_check_lib_save_LIBS=$LIBS
16772LIBS="-ldld  $LIBS"
16773cat >conftest.$ac_ext <<_ACEOF
16774/* confdefs.h.  */
16775_ACEOF
16776cat confdefs.h >>conftest.$ac_ext
16777cat >>conftest.$ac_ext <<_ACEOF
16778/* end confdefs.h.  */
16779
16780/* Override any GCC internal prototype to avoid an error.
16781   Use char because int might match the return type of a GCC
16782   builtin and then its argument prototype would still apply.  */
16783#ifdef __cplusplus
16784extern "C"
16785#endif
16786char shl_load ();
16787int
16788main ()
16789{
16790return shl_load ();
16791  ;
16792  return 0;
16793}
16794_ACEOF
16795rm -f conftest.$ac_objext conftest$ac_exeext
16796if { (ac_try="$ac_link"
16797case "(($ac_try" in
16798  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16799  *) ac_try_echo=$ac_try;;
16800esac
16801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16802  (eval "$ac_link") 2>conftest.er1
16803  ac_status=$?
16804  grep -v '^ *+' conftest.er1 >conftest.err
16805  rm -f conftest.er1
16806  cat conftest.err >&5
16807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808  (exit $ac_status); } &&
16809	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16810  { (case "(($ac_try" in
16811  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16812  *) ac_try_echo=$ac_try;;
16813esac
16814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16815  (eval "$ac_try") 2>&5
16816  ac_status=$?
16817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818  (exit $ac_status); }; } &&
16819	 { ac_try='test -s conftest$ac_exeext'
16820  { (case "(($ac_try" in
16821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16822  *) ac_try_echo=$ac_try;;
16823esac
16824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16825  (eval "$ac_try") 2>&5
16826  ac_status=$?
16827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828  (exit $ac_status); }; }; then
16829  ac_cv_lib_dld_shl_load=yes
16830else
16831  echo "$as_me: failed program was:" >&5
16832sed 's/^/| /' conftest.$ac_ext >&5
16833
16834	ac_cv_lib_dld_shl_load=no
16835fi
16836
16837rm -f core conftest.err conftest.$ac_objext \
16838      conftest$ac_exeext conftest.$ac_ext
16839LIBS=$ac_check_lib_save_LIBS
16840fi
16841{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16842echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16843if test $ac_cv_lib_dld_shl_load = yes; then
16844  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16845else
16846  { echo "$as_me:$LINENO: checking for dlopen" >&5
16847echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16848if test "${ac_cv_func_dlopen+set}" = set; then
16849  echo $ECHO_N "(cached) $ECHO_C" >&6
16850else
16851  cat >conftest.$ac_ext <<_ACEOF
16852/* confdefs.h.  */
16853_ACEOF
16854cat confdefs.h >>conftest.$ac_ext
16855cat >>conftest.$ac_ext <<_ACEOF
16856/* end confdefs.h.  */
16857/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16858   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16859#define dlopen innocuous_dlopen
16860
16861/* System header to define __stub macros and hopefully few prototypes,
16862    which can conflict with char dlopen (); below.
16863    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16864    <limits.h> exists even on freestanding compilers.  */
16865
16866#ifdef __STDC__
16867# include <limits.h>
16868#else
16869# include <assert.h>
16870#endif
16871
16872#undef dlopen
16873
16874/* Override any GCC internal prototype to avoid an error.
16875   Use char because int might match the return type of a GCC
16876   builtin and then its argument prototype would still apply.  */
16877#ifdef __cplusplus
16878extern "C"
16879#endif
16880char dlopen ();
16881/* The GNU C library defines this for functions which it implements
16882    to always fail with ENOSYS.  Some functions are actually named
16883    something starting with __ and the normal name is an alias.  */
16884#if defined __stub_dlopen || defined __stub___dlopen
16885choke me
16886#endif
16887
16888int
16889main ()
16890{
16891return dlopen ();
16892  ;
16893  return 0;
16894}
16895_ACEOF
16896rm -f conftest.$ac_objext conftest$ac_exeext
16897if { (ac_try="$ac_link"
16898case "(($ac_try" in
16899  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16900  *) ac_try_echo=$ac_try;;
16901esac
16902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16903  (eval "$ac_link") 2>conftest.er1
16904  ac_status=$?
16905  grep -v '^ *+' conftest.er1 >conftest.err
16906  rm -f conftest.er1
16907  cat conftest.err >&5
16908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909  (exit $ac_status); } &&
16910	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16911  { (case "(($ac_try" in
16912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16913  *) ac_try_echo=$ac_try;;
16914esac
16915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16916  (eval "$ac_try") 2>&5
16917  ac_status=$?
16918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919  (exit $ac_status); }; } &&
16920	 { ac_try='test -s conftest$ac_exeext'
16921  { (case "(($ac_try" in
16922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16923  *) ac_try_echo=$ac_try;;
16924esac
16925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16926  (eval "$ac_try") 2>&5
16927  ac_status=$?
16928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929  (exit $ac_status); }; }; then
16930  ac_cv_func_dlopen=yes
16931else
16932  echo "$as_me: failed program was:" >&5
16933sed 's/^/| /' conftest.$ac_ext >&5
16934
16935	ac_cv_func_dlopen=no
16936fi
16937
16938rm -f core conftest.err conftest.$ac_objext \
16939      conftest$ac_exeext conftest.$ac_ext
16940fi
16941{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16942echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16943if test $ac_cv_func_dlopen = yes; then
16944  lt_cv_dlopen="dlopen"
16945else
16946  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16947echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16948if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16949  echo $ECHO_N "(cached) $ECHO_C" >&6
16950else
16951  ac_check_lib_save_LIBS=$LIBS
16952LIBS="-ldl  $LIBS"
16953cat >conftest.$ac_ext <<_ACEOF
16954/* confdefs.h.  */
16955_ACEOF
16956cat confdefs.h >>conftest.$ac_ext
16957cat >>conftest.$ac_ext <<_ACEOF
16958/* end confdefs.h.  */
16959
16960/* Override any GCC internal prototype to avoid an error.
16961   Use char because int might match the return type of a GCC
16962   builtin and then its argument prototype would still apply.  */
16963#ifdef __cplusplus
16964extern "C"
16965#endif
16966char dlopen ();
16967int
16968main ()
16969{
16970return dlopen ();
16971  ;
16972  return 0;
16973}
16974_ACEOF
16975rm -f conftest.$ac_objext conftest$ac_exeext
16976if { (ac_try="$ac_link"
16977case "(($ac_try" in
16978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16979  *) ac_try_echo=$ac_try;;
16980esac
16981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16982  (eval "$ac_link") 2>conftest.er1
16983  ac_status=$?
16984  grep -v '^ *+' conftest.er1 >conftest.err
16985  rm -f conftest.er1
16986  cat conftest.err >&5
16987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988  (exit $ac_status); } &&
16989	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16990  { (case "(($ac_try" in
16991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16992  *) ac_try_echo=$ac_try;;
16993esac
16994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16995  (eval "$ac_try") 2>&5
16996  ac_status=$?
16997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998  (exit $ac_status); }; } &&
16999	 { ac_try='test -s conftest$ac_exeext'
17000  { (case "(($ac_try" in
17001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17002  *) ac_try_echo=$ac_try;;
17003esac
17004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17005  (eval "$ac_try") 2>&5
17006  ac_status=$?
17007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008  (exit $ac_status); }; }; then
17009  ac_cv_lib_dl_dlopen=yes
17010else
17011  echo "$as_me: failed program was:" >&5
17012sed 's/^/| /' conftest.$ac_ext >&5
17013
17014	ac_cv_lib_dl_dlopen=no
17015fi
17016
17017rm -f core conftest.err conftest.$ac_objext \
17018      conftest$ac_exeext conftest.$ac_ext
17019LIBS=$ac_check_lib_save_LIBS
17020fi
17021{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17022echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17023if test $ac_cv_lib_dl_dlopen = yes; then
17024  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17025else
17026  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17027echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17028if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17029  echo $ECHO_N "(cached) $ECHO_C" >&6
17030else
17031  ac_check_lib_save_LIBS=$LIBS
17032LIBS="-lsvld  $LIBS"
17033cat >conftest.$ac_ext <<_ACEOF
17034/* confdefs.h.  */
17035_ACEOF
17036cat confdefs.h >>conftest.$ac_ext
17037cat >>conftest.$ac_ext <<_ACEOF
17038/* end confdefs.h.  */
17039
17040/* Override any GCC internal prototype to avoid an error.
17041   Use char because int might match the return type of a GCC
17042   builtin and then its argument prototype would still apply.  */
17043#ifdef __cplusplus
17044extern "C"
17045#endif
17046char dlopen ();
17047int
17048main ()
17049{
17050return dlopen ();
17051  ;
17052  return 0;
17053}
17054_ACEOF
17055rm -f conftest.$ac_objext conftest$ac_exeext
17056if { (ac_try="$ac_link"
17057case "(($ac_try" in
17058  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17059  *) ac_try_echo=$ac_try;;
17060esac
17061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17062  (eval "$ac_link") 2>conftest.er1
17063  ac_status=$?
17064  grep -v '^ *+' conftest.er1 >conftest.err
17065  rm -f conftest.er1
17066  cat conftest.err >&5
17067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068  (exit $ac_status); } &&
17069	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17070  { (case "(($ac_try" in
17071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17072  *) ac_try_echo=$ac_try;;
17073esac
17074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17075  (eval "$ac_try") 2>&5
17076  ac_status=$?
17077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078  (exit $ac_status); }; } &&
17079	 { ac_try='test -s conftest$ac_exeext'
17080  { (case "(($ac_try" in
17081  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17082  *) ac_try_echo=$ac_try;;
17083esac
17084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17085  (eval "$ac_try") 2>&5
17086  ac_status=$?
17087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088  (exit $ac_status); }; }; then
17089  ac_cv_lib_svld_dlopen=yes
17090else
17091  echo "$as_me: failed program was:" >&5
17092sed 's/^/| /' conftest.$ac_ext >&5
17093
17094	ac_cv_lib_svld_dlopen=no
17095fi
17096
17097rm -f core conftest.err conftest.$ac_objext \
17098      conftest$ac_exeext conftest.$ac_ext
17099LIBS=$ac_check_lib_save_LIBS
17100fi
17101{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17102echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17103if test $ac_cv_lib_svld_dlopen = yes; then
17104  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17105else
17106  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17107echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17108if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17109  echo $ECHO_N "(cached) $ECHO_C" >&6
17110else
17111  ac_check_lib_save_LIBS=$LIBS
17112LIBS="-ldld  $LIBS"
17113cat >conftest.$ac_ext <<_ACEOF
17114/* confdefs.h.  */
17115_ACEOF
17116cat confdefs.h >>conftest.$ac_ext
17117cat >>conftest.$ac_ext <<_ACEOF
17118/* end confdefs.h.  */
17119
17120/* Override any GCC internal prototype to avoid an error.
17121   Use char because int might match the return type of a GCC
17122   builtin and then its argument prototype would still apply.  */
17123#ifdef __cplusplus
17124extern "C"
17125#endif
17126char dld_link ();
17127int
17128main ()
17129{
17130return dld_link ();
17131  ;
17132  return 0;
17133}
17134_ACEOF
17135rm -f conftest.$ac_objext conftest$ac_exeext
17136if { (ac_try="$ac_link"
17137case "(($ac_try" in
17138  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17139  *) ac_try_echo=$ac_try;;
17140esac
17141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17142  (eval "$ac_link") 2>conftest.er1
17143  ac_status=$?
17144  grep -v '^ *+' conftest.er1 >conftest.err
17145  rm -f conftest.er1
17146  cat conftest.err >&5
17147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148  (exit $ac_status); } &&
17149	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17150  { (case "(($ac_try" in
17151  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17152  *) ac_try_echo=$ac_try;;
17153esac
17154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17155  (eval "$ac_try") 2>&5
17156  ac_status=$?
17157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158  (exit $ac_status); }; } &&
17159	 { ac_try='test -s conftest$ac_exeext'
17160  { (case "(($ac_try" in
17161  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162  *) ac_try_echo=$ac_try;;
17163esac
17164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17165  (eval "$ac_try") 2>&5
17166  ac_status=$?
17167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168  (exit $ac_status); }; }; then
17169  ac_cv_lib_dld_dld_link=yes
17170else
17171  echo "$as_me: failed program was:" >&5
17172sed 's/^/| /' conftest.$ac_ext >&5
17173
17174	ac_cv_lib_dld_dld_link=no
17175fi
17176
17177rm -f core conftest.err conftest.$ac_objext \
17178      conftest$ac_exeext conftest.$ac_ext
17179LIBS=$ac_check_lib_save_LIBS
17180fi
17181{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17182echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17183if test $ac_cv_lib_dld_dld_link = yes; then
17184  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17185fi
17186
17187
17188fi
17189
17190
17191fi
17192
17193
17194fi
17195
17196
17197fi
17198
17199
17200fi
17201
17202    ;;
17203  esac
17204
17205  if test "x$lt_cv_dlopen" != xno; then
17206    enable_dlopen=yes
17207  else
17208    enable_dlopen=no
17209  fi
17210
17211  case $lt_cv_dlopen in
17212  dlopen)
17213    save_CPPFLAGS="$CPPFLAGS"
17214    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17215
17216    save_LDFLAGS="$LDFLAGS"
17217    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17218
17219    save_LIBS="$LIBS"
17220    LIBS="$lt_cv_dlopen_libs $LIBS"
17221
17222    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17223echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17224if test "${lt_cv_dlopen_self+set}" = set; then
17225  echo $ECHO_N "(cached) $ECHO_C" >&6
17226else
17227  	  if test "$cross_compiling" = yes; then :
17228  lt_cv_dlopen_self=cross
17229else
17230  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17231  lt_status=$lt_dlunknown
17232  cat > conftest.$ac_ext <<EOF
17233#line 17233 "configure"
17234#include "confdefs.h"
17235
17236#if HAVE_DLFCN_H
17237#include <dlfcn.h>
17238#endif
17239
17240#include <stdio.h>
17241
17242#ifdef RTLD_GLOBAL
17243#  define LT_DLGLOBAL		RTLD_GLOBAL
17244#else
17245#  ifdef DL_GLOBAL
17246#    define LT_DLGLOBAL		DL_GLOBAL
17247#  else
17248#    define LT_DLGLOBAL		0
17249#  endif
17250#endif
17251
17252/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17253   find out it does not work in some platform. */
17254#ifndef LT_DLLAZY_OR_NOW
17255#  ifdef RTLD_LAZY
17256#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17257#  else
17258#    ifdef DL_LAZY
17259#      define LT_DLLAZY_OR_NOW		DL_LAZY
17260#    else
17261#      ifdef RTLD_NOW
17262#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17263#      else
17264#        ifdef DL_NOW
17265#          define LT_DLLAZY_OR_NOW	DL_NOW
17266#        else
17267#          define LT_DLLAZY_OR_NOW	0
17268#        endif
17269#      endif
17270#    endif
17271#  endif
17272#endif
17273
17274#ifdef __cplusplus
17275extern "C" void exit (int);
17276#endif
17277
17278void fnord() { int i=42;}
17279int main ()
17280{
17281  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17282  int status = $lt_dlunknown;
17283
17284  if (self)
17285    {
17286      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17287      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17288      /* dlclose (self); */
17289    }
17290  else
17291    puts (dlerror ());
17292
17293    exit (status);
17294}
17295EOF
17296  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17297  (eval $ac_link) 2>&5
17298  ac_status=$?
17299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17301    (./conftest; exit; ) >&5 2>/dev/null
17302    lt_status=$?
17303    case x$lt_status in
17304      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17305      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17306      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17307    esac
17308  else :
17309    # compilation failed
17310    lt_cv_dlopen_self=no
17311  fi
17312fi
17313rm -fr conftest*
17314
17315
17316fi
17317{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17318echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17319
17320    if test "x$lt_cv_dlopen_self" = xyes; then
17321      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17322      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17323echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17324if test "${lt_cv_dlopen_self_static+set}" = set; then
17325  echo $ECHO_N "(cached) $ECHO_C" >&6
17326else
17327  	  if test "$cross_compiling" = yes; then :
17328  lt_cv_dlopen_self_static=cross
17329else
17330  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17331  lt_status=$lt_dlunknown
17332  cat > conftest.$ac_ext <<EOF
17333#line 17333 "configure"
17334#include "confdefs.h"
17335
17336#if HAVE_DLFCN_H
17337#include <dlfcn.h>
17338#endif
17339
17340#include <stdio.h>
17341
17342#ifdef RTLD_GLOBAL
17343#  define LT_DLGLOBAL		RTLD_GLOBAL
17344#else
17345#  ifdef DL_GLOBAL
17346#    define LT_DLGLOBAL		DL_GLOBAL
17347#  else
17348#    define LT_DLGLOBAL		0
17349#  endif
17350#endif
17351
17352/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17353   find out it does not work in some platform. */
17354#ifndef LT_DLLAZY_OR_NOW
17355#  ifdef RTLD_LAZY
17356#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17357#  else
17358#    ifdef DL_LAZY
17359#      define LT_DLLAZY_OR_NOW		DL_LAZY
17360#    else
17361#      ifdef RTLD_NOW
17362#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17363#      else
17364#        ifdef DL_NOW
17365#          define LT_DLLAZY_OR_NOW	DL_NOW
17366#        else
17367#          define LT_DLLAZY_OR_NOW	0
17368#        endif
17369#      endif
17370#    endif
17371#  endif
17372#endif
17373
17374#ifdef __cplusplus
17375extern "C" void exit (int);
17376#endif
17377
17378void fnord() { int i=42;}
17379int main ()
17380{
17381  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17382  int status = $lt_dlunknown;
17383
17384  if (self)
17385    {
17386      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17387      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17388      /* dlclose (self); */
17389    }
17390  else
17391    puts (dlerror ());
17392
17393    exit (status);
17394}
17395EOF
17396  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17397  (eval $ac_link) 2>&5
17398  ac_status=$?
17399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17401    (./conftest; exit; ) >&5 2>/dev/null
17402    lt_status=$?
17403    case x$lt_status in
17404      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17405      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17406      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17407    esac
17408  else :
17409    # compilation failed
17410    lt_cv_dlopen_self_static=no
17411  fi
17412fi
17413rm -fr conftest*
17414
17415
17416fi
17417{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17418echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17419    fi
17420
17421    CPPFLAGS="$save_CPPFLAGS"
17422    LDFLAGS="$save_LDFLAGS"
17423    LIBS="$save_LIBS"
17424    ;;
17425  esac
17426
17427  case $lt_cv_dlopen_self in
17428  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17429  *) enable_dlopen_self=unknown ;;
17430  esac
17431
17432  case $lt_cv_dlopen_self_static in
17433  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17434  *) enable_dlopen_self_static=unknown ;;
17435  esac
17436fi
17437
17438
17439# Report which library types will actually be built
17440{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17441echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17442{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17443echo "${ECHO_T}$can_build_shared" >&6; }
17444
17445{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17446echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17447test "$can_build_shared" = "no" && enable_shared=no
17448
17449# On AIX, shared libraries and static libraries use the same namespace, and
17450# are all built from PIC.
17451case $host_os in
17452aix3*)
17453  test "$enable_shared" = yes && enable_static=no
17454  if test -n "$RANLIB"; then
17455    archive_cmds="$archive_cmds~\$RANLIB \$lib"
17456    postinstall_cmds='$RANLIB $lib'
17457  fi
17458  ;;
17459
17460aix4* | aix5*)
17461  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17462    test "$enable_shared" = yes && enable_static=no
17463  fi
17464    ;;
17465esac
17466{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17467echo "${ECHO_T}$enable_shared" >&6; }
17468
17469{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17470echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17471# Make sure either enable_shared or enable_static is yes.
17472test "$enable_shared" = yes || enable_static=yes
17473{ echo "$as_me:$LINENO: result: $enable_static" >&5
17474echo "${ECHO_T}$enable_static" >&6; }
17475
17476# The else clause should only fire when bootstrapping the
17477# libtool distribution, otherwise you forgot to ship ltmain.sh
17478# with your package, and you will get complaints that there are
17479# no rules to generate ltmain.sh.
17480if test -f "$ltmain"; then
17481  # See if we are running on zsh, and set the options which allow our commands through
17482  # without removal of \ escapes.
17483  if test -n "${ZSH_VERSION+set}" ; then
17484    setopt NO_GLOB_SUBST
17485  fi
17486  # Now quote all the things that may contain metacharacters while being
17487  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17488  # variables and quote the copies for generation of the libtool script.
17489  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17490    SED SHELL STRIP \
17491    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17492    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17493    deplibs_check_method reload_flag reload_cmds need_locks \
17494    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17495    lt_cv_sys_global_symbol_to_c_name_address \
17496    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17497    old_postinstall_cmds old_postuninstall_cmds \
17498    compiler \
17499    CC \
17500    LD \
17501    lt_prog_compiler_wl \
17502    lt_prog_compiler_pic \
17503    lt_prog_compiler_static \
17504    lt_prog_compiler_no_builtin_flag \
17505    export_dynamic_flag_spec \
17506    thread_safe_flag_spec \
17507    whole_archive_flag_spec \
17508    enable_shared_with_static_runtimes \
17509    old_archive_cmds \
17510    old_archive_from_new_cmds \
17511    predep_objects \
17512    postdep_objects \
17513    predeps \
17514    postdeps \
17515    compiler_lib_search_path \
17516    archive_cmds \
17517    archive_expsym_cmds \
17518    postinstall_cmds \
17519    postuninstall_cmds \
17520    old_archive_from_expsyms_cmds \
17521    allow_undefined_flag \
17522    no_undefined_flag \
17523    export_symbols_cmds \
17524    hardcode_libdir_flag_spec \
17525    hardcode_libdir_flag_spec_ld \
17526    hardcode_libdir_separator \
17527    hardcode_automatic \
17528    module_cmds \
17529    module_expsym_cmds \
17530    lt_cv_prog_compiler_c_o \
17531    exclude_expsyms \
17532    include_expsyms; do
17533
17534    case $var in
17535    old_archive_cmds | \
17536    old_archive_from_new_cmds | \
17537    archive_cmds | \
17538    archive_expsym_cmds | \
17539    module_cmds | \
17540    module_expsym_cmds | \
17541    old_archive_from_expsyms_cmds | \
17542    export_symbols_cmds | \
17543    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17544    postinstall_cmds | postuninstall_cmds | \
17545    old_postinstall_cmds | old_postuninstall_cmds | \
17546    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17547      # Double-quote double-evaled strings.
17548      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17549      ;;
17550    *)
17551      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17552      ;;
17553    esac
17554  done
17555
17556  case $lt_echo in
17557  *'\$0 --fallback-echo"')
17558    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17559    ;;
17560  esac
17561
17562cfgfile="${ofile}T"
17563  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17564  $rm -f "$cfgfile"
17565  { echo "$as_me:$LINENO: creating $ofile" >&5
17566echo "$as_me: creating $ofile" >&6;}
17567
17568  cat <<__EOF__ >> "$cfgfile"
17569#! $SHELL
17570
17571# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17572# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17573# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17574#
17575# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17576# Free Software Foundation, Inc.
17577#
17578# This file is part of GNU Libtool:
17579# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17580#
17581# This program is free software; you can redistribute it and/or modify
17582# it under the terms of the GNU General Public License as published by
17583# the Free Software Foundation; either version 2 of the License, or
17584# (at your option) any later version.
17585#
17586# This program is distributed in the hope that it will be useful, but
17587# WITHOUT ANY WARRANTY; without even the implied warranty of
17588# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17589# General Public License for more details.
17590#
17591# You should have received a copy of the GNU General Public License
17592# along with this program; if not, write to the Free Software
17593# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17594#
17595# As a special exception to the GNU General Public License, if you
17596# distribute this file as part of a program that contains a
17597# configuration script generated by Autoconf, you may include it under
17598# the same distribution terms that you use for the rest of that program.
17599
17600# A sed program that does not truncate output.
17601SED=$lt_SED
17602
17603# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17604Xsed="$SED -e 1s/^X//"
17605
17606# The HP-UX ksh and POSIX shell print the target directory to stdout
17607# if CDPATH is set.
17608(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17609
17610# The names of the tagged configurations supported by this script.
17611available_tags=
17612
17613# ### BEGIN LIBTOOL CONFIG
17614
17615# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17616
17617# Shell to use when invoking shell scripts.
17618SHELL=$lt_SHELL
17619
17620# Whether or not to build shared libraries.
17621build_libtool_libs=$enable_shared
17622
17623# Whether or not to build static libraries.
17624build_old_libs=$enable_static
17625
17626# Whether or not to add -lc for building shared libraries.
17627build_libtool_need_lc=$archive_cmds_need_lc
17628
17629# Whether or not to disallow shared libs when runtime libs are static
17630allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17631
17632# Whether or not to optimize for fast installation.
17633fast_install=$enable_fast_install
17634
17635# The host system.
17636host_alias=$host_alias
17637host=$host
17638host_os=$host_os
17639
17640# The build system.
17641build_alias=$build_alias
17642build=$build
17643build_os=$build_os
17644
17645# An echo program that does not interpret backslashes.
17646echo=$lt_echo
17647
17648# The archiver.
17649AR=$lt_AR
17650AR_FLAGS=$lt_AR_FLAGS
17651
17652# A C compiler.
17653LTCC=$lt_LTCC
17654
17655# LTCC compiler flags.
17656LTCFLAGS=$lt_LTCFLAGS
17657
17658# A language-specific compiler.
17659CC=$lt_compiler
17660
17661# Is the compiler the GNU C compiler?
17662with_gcc=$GCC
17663
17664# An ERE matcher.
17665EGREP=$lt_EGREP
17666
17667# The linker used to build libraries.
17668LD=$lt_LD
17669
17670# Whether we need hard or soft links.
17671LN_S=$lt_LN_S
17672
17673# A BSD-compatible nm program.
17674NM=$lt_NM
17675
17676# A symbol stripping program
17677STRIP=$lt_STRIP
17678
17679# Used to examine libraries when file_magic_cmd begins "file"
17680MAGIC_CMD=$MAGIC_CMD
17681
17682# Used on cygwin: DLL creation program.
17683DLLTOOL="$DLLTOOL"
17684
17685# Used on cygwin: object dumper.
17686OBJDUMP="$OBJDUMP"
17687
17688# Used on cygwin: assembler.
17689AS="$AS"
17690
17691# The name of the directory that contains temporary libtool files.
17692objdir=$objdir
17693
17694# How to create reloadable object files.
17695reload_flag=$lt_reload_flag
17696reload_cmds=$lt_reload_cmds
17697
17698# How to pass a linker flag through the compiler.
17699wl=$lt_lt_prog_compiler_wl
17700
17701# Object file suffix (normally "o").
17702objext="$ac_objext"
17703
17704# Old archive suffix (normally "a").
17705libext="$libext"
17706
17707# Shared library suffix (normally ".so").
17708shrext_cmds='$shrext_cmds'
17709
17710# Executable file suffix (normally "").
17711exeext="$exeext"
17712
17713# Additional compiler flags for building library objects.
17714pic_flag=$lt_lt_prog_compiler_pic
17715pic_mode=$pic_mode
17716
17717# What is the maximum length of a command?
17718max_cmd_len=$lt_cv_sys_max_cmd_len
17719
17720# Does compiler simultaneously support -c and -o options?
17721compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17722
17723# Must we lock files when doing compilation?
17724need_locks=$lt_need_locks
17725
17726# Do we need the lib prefix for modules?
17727need_lib_prefix=$need_lib_prefix
17728
17729# Do we need a version for libraries?
17730need_version=$need_version
17731
17732# Whether dlopen is supported.
17733dlopen_support=$enable_dlopen
17734
17735# Whether dlopen of programs is supported.
17736dlopen_self=$enable_dlopen_self
17737
17738# Whether dlopen of statically linked programs is supported.
17739dlopen_self_static=$enable_dlopen_self_static
17740
17741# Compiler flag to prevent dynamic linking.
17742link_static_flag=$lt_lt_prog_compiler_static
17743
17744# Compiler flag to turn off builtin functions.
17745no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17746
17747# Compiler flag to allow reflexive dlopens.
17748export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17749
17750# Compiler flag to generate shared objects directly from archives.
17751whole_archive_flag_spec=$lt_whole_archive_flag_spec
17752
17753# Compiler flag to generate thread-safe objects.
17754thread_safe_flag_spec=$lt_thread_safe_flag_spec
17755
17756# Library versioning type.
17757version_type=$version_type
17758
17759# Format of library name prefix.
17760libname_spec=$lt_libname_spec
17761
17762# List of archive names.  First name is the real one, the rest are links.
17763# The last name is the one that the linker finds with -lNAME.
17764library_names_spec=$lt_library_names_spec
17765
17766# The coded name of the library, if different from the real name.
17767soname_spec=$lt_soname_spec
17768
17769# Commands used to build and install an old-style archive.
17770RANLIB=$lt_RANLIB
17771old_archive_cmds=$lt_old_archive_cmds
17772old_postinstall_cmds=$lt_old_postinstall_cmds
17773old_postuninstall_cmds=$lt_old_postuninstall_cmds
17774
17775# Create an old-style archive from a shared archive.
17776old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17777
17778# Create a temporary old-style archive to link instead of a shared archive.
17779old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17780
17781# Commands used to build and install a shared archive.
17782archive_cmds=$lt_archive_cmds
17783archive_expsym_cmds=$lt_archive_expsym_cmds
17784postinstall_cmds=$lt_postinstall_cmds
17785postuninstall_cmds=$lt_postuninstall_cmds
17786
17787# Commands used to build a loadable module (assumed same as above if empty)
17788module_cmds=$lt_module_cmds
17789module_expsym_cmds=$lt_module_expsym_cmds
17790
17791# Commands to strip libraries.
17792old_striplib=$lt_old_striplib
17793striplib=$lt_striplib
17794
17795# Dependencies to place before the objects being linked to create a
17796# shared library.
17797predep_objects=$lt_predep_objects
17798
17799# Dependencies to place after the objects being linked to create a
17800# shared library.
17801postdep_objects=$lt_postdep_objects
17802
17803# Dependencies to place before the objects being linked to create a
17804# shared library.
17805predeps=$lt_predeps
17806
17807# Dependencies to place after the objects being linked to create a
17808# shared library.
17809postdeps=$lt_postdeps
17810
17811# The library search path used internally by the compiler when linking
17812# a shared library.
17813compiler_lib_search_path=$lt_compiler_lib_search_path
17814
17815# Method to check whether dependent libraries are shared objects.
17816deplibs_check_method=$lt_deplibs_check_method
17817
17818# Command to use when deplibs_check_method == file_magic.
17819file_magic_cmd=$lt_file_magic_cmd
17820
17821# Flag that allows shared libraries with undefined symbols to be built.
17822allow_undefined_flag=$lt_allow_undefined_flag
17823
17824# Flag that forces no undefined symbols.
17825no_undefined_flag=$lt_no_undefined_flag
17826
17827# Commands used to finish a libtool library installation in a directory.
17828finish_cmds=$lt_finish_cmds
17829
17830# Same as above, but a single script fragment to be evaled but not shown.
17831finish_eval=$lt_finish_eval
17832
17833# Take the output of nm and produce a listing of raw symbols and C names.
17834global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17835
17836# Transform the output of nm in a proper C declaration
17837global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17838
17839# Transform the output of nm in a C name address pair
17840global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17841
17842# This is the shared library runtime path variable.
17843runpath_var=$runpath_var
17844
17845# This is the shared library path variable.
17846shlibpath_var=$shlibpath_var
17847
17848# Is shlibpath searched before the hard-coded library search path?
17849shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17850
17851# How to hardcode a shared library path into an executable.
17852hardcode_action=$hardcode_action
17853
17854# Whether we should hardcode library paths into libraries.
17855hardcode_into_libs=$hardcode_into_libs
17856
17857# Flag to hardcode \$libdir into a binary during linking.
17858# This must work even if \$libdir does not exist.
17859hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17860
17861# If ld is used when linking, flag to hardcode \$libdir into
17862# a binary during linking. This must work even if \$libdir does
17863# not exist.
17864hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17865
17866# Whether we need a single -rpath flag with a separated argument.
17867hardcode_libdir_separator=$lt_hardcode_libdir_separator
17868
17869# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17870# resulting binary.
17871hardcode_direct=$hardcode_direct
17872
17873# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17874# resulting binary.
17875hardcode_minus_L=$hardcode_minus_L
17876
17877# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17878# the resulting binary.
17879hardcode_shlibpath_var=$hardcode_shlibpath_var
17880
17881# Set to yes if building a shared library automatically hardcodes DIR into the library
17882# and all subsequent libraries and executables linked against it.
17883hardcode_automatic=$hardcode_automatic
17884
17885# Variables whose values should be saved in libtool wrapper scripts and
17886# restored at relink time.
17887variables_saved_for_relink="$variables_saved_for_relink"
17888
17889# Whether libtool must link a program against all its dependency libraries.
17890link_all_deplibs=$link_all_deplibs
17891
17892# Compile-time system search path for libraries
17893sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17894
17895# Run-time system search path for libraries
17896sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17897
17898# Fix the shell variable \$srcfile for the compiler.
17899fix_srcfile_path="$fix_srcfile_path"
17900
17901# Set to yes if exported symbols are required.
17902always_export_symbols=$always_export_symbols
17903
17904# The commands to list exported symbols.
17905export_symbols_cmds=$lt_export_symbols_cmds
17906
17907# The commands to extract the exported symbol list from a shared archive.
17908extract_expsyms_cmds=$lt_extract_expsyms_cmds
17909
17910# Symbols that should not be listed in the preloaded symbols.
17911exclude_expsyms=$lt_exclude_expsyms
17912
17913# Symbols that must always be exported.
17914include_expsyms=$lt_include_expsyms
17915
17916# ### END LIBTOOL CONFIG
17917
17918__EOF__
17919
17920
17921  case $host_os in
17922  aix3*)
17923    cat <<\EOF >> "$cfgfile"
17924
17925# AIX sometimes has problems with the GCC collect2 program.  For some
17926# reason, if we set the COLLECT_NAMES environment variable, the problems
17927# vanish in a puff of smoke.
17928if test "X${COLLECT_NAMES+set}" != Xset; then
17929  COLLECT_NAMES=
17930  export COLLECT_NAMES
17931fi
17932EOF
17933    ;;
17934  esac
17935
17936  # We use sed instead of cat because bash on DJGPP gets confused if
17937  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17938  # text mode, it properly converts lines to CR/LF.  This bash problem
17939  # is reportedly fixed, but why not run on old versions too?
17940  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17941
17942  mv -f "$cfgfile" "$ofile" || \
17943    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17944  chmod +x "$ofile"
17945
17946else
17947  # If there is no Makefile yet, we rely on a make rule to execute
17948  # `config.status --recheck' to rerun these tests and create the
17949  # libtool script then.
17950  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17951  if test -f "$ltmain_in"; then
17952    test -f Makefile && make "$ltmain"
17953  fi
17954fi
17955
17956
17957ac_ext=c
17958ac_cpp='$CPP $CPPFLAGS'
17959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17961ac_compiler_gnu=$ac_cv_c_compiler_gnu
17962
17963CC="$lt_save_CC"
17964
17965
17966# Check whether --with-tags was given.
17967if test "${with_tags+set}" = set; then
17968  withval=$with_tags; tagnames="$withval"
17969fi
17970
17971
17972if test -f "$ltmain" && test -n "$tagnames"; then
17973  if test ! -f "${ofile}"; then
17974    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17975echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17976  fi
17977
17978  if test -z "$LTCC"; then
17979    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17980    if test -z "$LTCC"; then
17981      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17982echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17983    else
17984      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17985echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17986    fi
17987  fi
17988  if test -z "$LTCFLAGS"; then
17989    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17990  fi
17991
17992  # Extract list of available tagged configurations in $ofile.
17993  # Note that this assumes the entire list is on one line.
17994  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17995
17996  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17997  for tagname in $tagnames; do
17998    IFS="$lt_save_ifs"
17999    # Check whether tagname contains only valid characters
18000    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18001    "") ;;
18002    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18003echo "$as_me: error: invalid tag name: $tagname" >&2;}
18004   { (exit 1); exit 1; }; }
18005	;;
18006    esac
18007
18008    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18009    then
18010      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18011echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18012   { (exit 1); exit 1; }; }
18013    fi
18014
18015    # Update the list of available tags.
18016    if test -n "$tagname"; then
18017      echo appending configuration tag \"$tagname\" to $ofile
18018
18019      case $tagname in
18020      CXX)
18021	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18022	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18023	    (test "X$CXX" != "Xg++"))) ; then
18024	  ac_ext=cpp
18025ac_cpp='$CXXCPP $CPPFLAGS'
18026ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18027ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18028ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18029
18030
18031
18032
18033archive_cmds_need_lc_CXX=no
18034allow_undefined_flag_CXX=
18035always_export_symbols_CXX=no
18036archive_expsym_cmds_CXX=
18037export_dynamic_flag_spec_CXX=
18038hardcode_direct_CXX=no
18039hardcode_libdir_flag_spec_CXX=
18040hardcode_libdir_flag_spec_ld_CXX=
18041hardcode_libdir_separator_CXX=
18042hardcode_minus_L_CXX=no
18043hardcode_shlibpath_var_CXX=unsupported
18044hardcode_automatic_CXX=no
18045module_cmds_CXX=
18046module_expsym_cmds_CXX=
18047link_all_deplibs_CXX=unknown
18048old_archive_cmds_CXX=$old_archive_cmds
18049no_undefined_flag_CXX=
18050whole_archive_flag_spec_CXX=
18051enable_shared_with_static_runtimes_CXX=no
18052
18053# Dependencies to place before and after the object being linked:
18054predep_objects_CXX=
18055postdep_objects_CXX=
18056predeps_CXX=
18057postdeps_CXX=
18058compiler_lib_search_path_CXX=
18059
18060# Source file extension for C++ test sources.
18061ac_ext=cpp
18062
18063# Object file extension for compiled C++ test sources.
18064objext=o
18065objext_CXX=$objext
18066
18067# Code to be used in simple compile tests
18068lt_simple_compile_test_code="int some_variable = 0;\n"
18069
18070# Code to be used in simple link tests
18071lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18072
18073# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18074
18075# If no C compiler was specified, use CC.
18076LTCC=${LTCC-"$CC"}
18077
18078# If no C compiler flags were specified, use CFLAGS.
18079LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18080
18081# Allow CC to be a program name with arguments.
18082compiler=$CC
18083
18084
18085# save warnings/boilerplate of simple test code
18086ac_outfile=conftest.$ac_objext
18087printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18088eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18089_lt_compiler_boilerplate=`cat conftest.err`
18090$rm conftest*
18091
18092ac_outfile=conftest.$ac_objext
18093printf "$lt_simple_link_test_code" >conftest.$ac_ext
18094eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18095_lt_linker_boilerplate=`cat conftest.err`
18096$rm conftest*
18097
18098
18099# Allow CC to be a program name with arguments.
18100lt_save_CC=$CC
18101lt_save_LD=$LD
18102lt_save_GCC=$GCC
18103GCC=$GXX
18104lt_save_with_gnu_ld=$with_gnu_ld
18105lt_save_path_LD=$lt_cv_path_LD
18106if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18107  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18108else
18109  $as_unset lt_cv_prog_gnu_ld
18110fi
18111if test -n "${lt_cv_path_LDCXX+set}"; then
18112  lt_cv_path_LD=$lt_cv_path_LDCXX
18113else
18114  $as_unset lt_cv_path_LD
18115fi
18116test -z "${LDCXX+set}" || LD=$LDCXX
18117CC=${CXX-"c++"}
18118compiler=$CC
18119compiler_CXX=$CC
18120for cc_temp in $compiler""; do
18121  case $cc_temp in
18122    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18123    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18124    \-*) ;;
18125    *) break;;
18126  esac
18127done
18128cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18129
18130
18131# We don't want -fno-exception wen compiling C++ code, so set the
18132# no_builtin_flag separately
18133if test "$GXX" = yes; then
18134  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18135else
18136  lt_prog_compiler_no_builtin_flag_CXX=
18137fi
18138
18139if test "$GXX" = yes; then
18140  # Set up default GNU C++ configuration
18141
18142
18143# Check whether --with-gnu-ld was given.
18144if test "${with_gnu_ld+set}" = set; then
18145  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18146else
18147  with_gnu_ld=no
18148fi
18149
18150ac_prog=ld
18151if test "$GCC" = yes; then
18152  # Check if gcc -print-prog-name=ld gives a path.
18153  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18154echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18155  case $host in
18156  *-*-mingw*)
18157    # gcc leaves a trailing carriage return which upsets mingw
18158    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18159  *)
18160    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18161  esac
18162  case $ac_prog in
18163    # Accept absolute paths.
18164    [\\/]* | ?:[\\/]*)
18165      re_direlt='/[^/][^/]*/\.\./'
18166      # Canonicalize the pathname of ld
18167      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18168      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18169	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18170      done
18171      test -z "$LD" && LD="$ac_prog"
18172      ;;
18173  "")
18174    # If it fails, then pretend we aren't using GCC.
18175    ac_prog=ld
18176    ;;
18177  *)
18178    # If it is relative, then search for the first ld in PATH.
18179    with_gnu_ld=unknown
18180    ;;
18181  esac
18182elif test "$with_gnu_ld" = yes; then
18183  { echo "$as_me:$LINENO: checking for GNU ld" >&5
18184echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18185else
18186  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18187echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18188fi
18189if test "${lt_cv_path_LD+set}" = set; then
18190  echo $ECHO_N "(cached) $ECHO_C" >&6
18191else
18192  if test -z "$LD"; then
18193  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18194  for ac_dir in $PATH; do
18195    IFS="$lt_save_ifs"
18196    test -z "$ac_dir" && ac_dir=.
18197    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18198      lt_cv_path_LD="$ac_dir/$ac_prog"
18199      # Check to see if the program is GNU ld.  I'd rather use --version,
18200      # but apparently some variants of GNU ld only accept -v.
18201      # Break only if it was the GNU/non-GNU ld that we prefer.
18202      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18203      *GNU* | *'with BFD'*)
18204	test "$with_gnu_ld" != no && break
18205	;;
18206      *)
18207	test "$with_gnu_ld" != yes && break
18208	;;
18209      esac
18210    fi
18211  done
18212  IFS="$lt_save_ifs"
18213else
18214  lt_cv_path_LD="$LD" # Let the user override the test with a path.
18215fi
18216fi
18217
18218LD="$lt_cv_path_LD"
18219if test -n "$LD"; then
18220  { echo "$as_me:$LINENO: result: $LD" >&5
18221echo "${ECHO_T}$LD" >&6; }
18222else
18223  { echo "$as_me:$LINENO: result: no" >&5
18224echo "${ECHO_T}no" >&6; }
18225fi
18226test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18227echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18228   { (exit 1); exit 1; }; }
18229{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18230echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18231if test "${lt_cv_prog_gnu_ld+set}" = set; then
18232  echo $ECHO_N "(cached) $ECHO_C" >&6
18233else
18234  # I'd rather use --version here, but apparently some GNU lds only accept -v.
18235case `$LD -v 2>&1 </dev/null` in
18236*GNU* | *'with BFD'*)
18237  lt_cv_prog_gnu_ld=yes
18238  ;;
18239*)
18240  lt_cv_prog_gnu_ld=no
18241  ;;
18242esac
18243fi
18244{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18245echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18246with_gnu_ld=$lt_cv_prog_gnu_ld
18247
18248
18249
18250  # Check if GNU C++ uses GNU ld as the underlying linker, since the
18251  # archiving commands below assume that GNU ld is being used.
18252  if test "$with_gnu_ld" = yes; then
18253    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18254    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'
18255
18256    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18257    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18258
18259    # If archive_cmds runs LD, not CC, wlarc should be empty
18260    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18261    #     investigate it a little bit more. (MM)
18262    wlarc='${wl}'
18263
18264    # ancient GNU ld didn't support --whole-archive et. al.
18265    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18266	grep 'no-whole-archive' > /dev/null; then
18267      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18268    else
18269      whole_archive_flag_spec_CXX=
18270    fi
18271  else
18272    with_gnu_ld=no
18273    wlarc=
18274
18275    # A generic and very simple default shared library creation
18276    # command for GNU C++ for the case where it uses the native
18277    # linker, instead of GNU ld.  If possible, this setting should
18278    # overridden to take advantage of the native linker features on
18279    # the platform it is being used on.
18280    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18281  fi
18282
18283  # Commands to make compiler produce verbose output that lists
18284  # what "hidden" libraries, object files and flags are used when
18285  # linking a shared library.
18286  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18287
18288else
18289  GXX=no
18290  with_gnu_ld=no
18291  wlarc=
18292fi
18293
18294# PORTME: fill in a description of your system's C++ link characteristics
18295{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18296echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18297ld_shlibs_CXX=yes
18298case $host_os in
18299  aix3*)
18300    # FIXME: insert proper C++ library support
18301    ld_shlibs_CXX=no
18302    ;;
18303  aix4* | aix5*)
18304    if test "$host_cpu" = ia64; then
18305      # On IA64, the linker does run time linking by default, so we don't
18306      # have to do anything special.
18307      aix_use_runtimelinking=no
18308      exp_sym_flag='-Bexport'
18309      no_entry_flag=""
18310    else
18311      aix_use_runtimelinking=no
18312
18313      # Test if we are trying to use run time linking or normal
18314      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18315      # need to do runtime linking.
18316      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18317	for ld_flag in $LDFLAGS; do
18318	  case $ld_flag in
18319	  *-brtl*)
18320	    aix_use_runtimelinking=yes
18321	    break
18322	    ;;
18323	  esac
18324	done
18325	;;
18326      esac
18327
18328      exp_sym_flag='-bexport'
18329      no_entry_flag='-bnoentry'
18330    fi
18331
18332    # When large executables or shared objects are built, AIX ld can
18333    # have problems creating the table of contents.  If linking a library
18334    # or program results in "error TOC overflow" add -mminimal-toc to
18335    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18336    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18337
18338    archive_cmds_CXX=''
18339    hardcode_direct_CXX=yes
18340    hardcode_libdir_separator_CXX=':'
18341    link_all_deplibs_CXX=yes
18342
18343    if test "$GXX" = yes; then
18344      case $host_os in aix4.[012]|aix4.[012].*)
18345      # We only want to do this on AIX 4.2 and lower, the check
18346      # below for broken collect2 doesn't work under 4.3+
18347	collect2name=`${CC} -print-prog-name=collect2`
18348	if test -f "$collect2name" && \
18349	   strings "$collect2name" | grep resolve_lib_name >/dev/null
18350	then
18351	  # We have reworked collect2
18352	  hardcode_direct_CXX=yes
18353	else
18354	  # We have old collect2
18355	  hardcode_direct_CXX=unsupported
18356	  # It fails to find uninstalled libraries when the uninstalled
18357	  # path is not listed in the libpath.  Setting hardcode_minus_L
18358	  # to unsupported forces relinking
18359	  hardcode_minus_L_CXX=yes
18360	  hardcode_libdir_flag_spec_CXX='-L$libdir'
18361	  hardcode_libdir_separator_CXX=
18362	fi
18363	;;
18364      esac
18365      shared_flag='-shared'
18366      if test "$aix_use_runtimelinking" = yes; then
18367	shared_flag="$shared_flag "'${wl}-G'
18368      fi
18369    else
18370      # not using gcc
18371      if test "$host_cpu" = ia64; then
18372	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18373	# chokes on -Wl,-G. The following line is correct:
18374	shared_flag='-G'
18375      else
18376	if test "$aix_use_runtimelinking" = yes; then
18377	  shared_flag='${wl}-G'
18378	else
18379	  shared_flag='${wl}-bM:SRE'
18380	fi
18381      fi
18382    fi
18383
18384    # It seems that -bexpall does not export symbols beginning with
18385    # underscore (_), so it is better to generate a list of symbols to export.
18386    always_export_symbols_CXX=yes
18387    if test "$aix_use_runtimelinking" = yes; then
18388      # Warning - without using the other runtime loading flags (-brtl),
18389      # -berok will link without error, but may produce a broken library.
18390      allow_undefined_flag_CXX='-berok'
18391      # Determine the default libpath from the value encoded in an empty executable.
18392      cat >conftest.$ac_ext <<_ACEOF
18393/* confdefs.h.  */
18394_ACEOF
18395cat confdefs.h >>conftest.$ac_ext
18396cat >>conftest.$ac_ext <<_ACEOF
18397/* end confdefs.h.  */
18398
18399int
18400main ()
18401{
18402
18403  ;
18404  return 0;
18405}
18406_ACEOF
18407rm -f conftest.$ac_objext conftest$ac_exeext
18408if { (ac_try="$ac_link"
18409case "(($ac_try" in
18410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18411  *) ac_try_echo=$ac_try;;
18412esac
18413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18414  (eval "$ac_link") 2>conftest.er1
18415  ac_status=$?
18416  grep -v '^ *+' conftest.er1 >conftest.err
18417  rm -f conftest.er1
18418  cat conftest.err >&5
18419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420  (exit $ac_status); } &&
18421	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18422  { (case "(($ac_try" in
18423  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18424  *) ac_try_echo=$ac_try;;
18425esac
18426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18427  (eval "$ac_try") 2>&5
18428  ac_status=$?
18429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430  (exit $ac_status); }; } &&
18431	 { ac_try='test -s conftest$ac_exeext'
18432  { (case "(($ac_try" in
18433  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18434  *) ac_try_echo=$ac_try;;
18435esac
18436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18437  (eval "$ac_try") 2>&5
18438  ac_status=$?
18439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440  (exit $ac_status); }; }; then
18441
18442aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18443}'`
18444# Check for a 64-bit object if we didn't find anything.
18445if 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; }
18446}'`; fi
18447else
18448  echo "$as_me: failed program was:" >&5
18449sed 's/^/| /' conftest.$ac_ext >&5
18450
18451
18452fi
18453
18454rm -f core conftest.err conftest.$ac_objext \
18455      conftest$ac_exeext conftest.$ac_ext
18456if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18457
18458      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18459
18460      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"
18461     else
18462      if test "$host_cpu" = ia64; then
18463	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18464	allow_undefined_flag_CXX="-z nodefs"
18465	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"
18466      else
18467	# Determine the default libpath from the value encoded in an empty executable.
18468	cat >conftest.$ac_ext <<_ACEOF
18469/* confdefs.h.  */
18470_ACEOF
18471cat confdefs.h >>conftest.$ac_ext
18472cat >>conftest.$ac_ext <<_ACEOF
18473/* end confdefs.h.  */
18474
18475int
18476main ()
18477{
18478
18479  ;
18480  return 0;
18481}
18482_ACEOF
18483rm -f conftest.$ac_objext conftest$ac_exeext
18484if { (ac_try="$ac_link"
18485case "(($ac_try" in
18486  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18487  *) ac_try_echo=$ac_try;;
18488esac
18489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18490  (eval "$ac_link") 2>conftest.er1
18491  ac_status=$?
18492  grep -v '^ *+' conftest.er1 >conftest.err
18493  rm -f conftest.er1
18494  cat conftest.err >&5
18495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496  (exit $ac_status); } &&
18497	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18498  { (case "(($ac_try" in
18499  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18500  *) ac_try_echo=$ac_try;;
18501esac
18502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18503  (eval "$ac_try") 2>&5
18504  ac_status=$?
18505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506  (exit $ac_status); }; } &&
18507	 { ac_try='test -s conftest$ac_exeext'
18508  { (case "(($ac_try" in
18509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18510  *) ac_try_echo=$ac_try;;
18511esac
18512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18513  (eval "$ac_try") 2>&5
18514  ac_status=$?
18515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516  (exit $ac_status); }; }; then
18517
18518aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18519}'`
18520# Check for a 64-bit object if we didn't find anything.
18521if 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; }
18522}'`; fi
18523else
18524  echo "$as_me: failed program was:" >&5
18525sed 's/^/| /' conftest.$ac_ext >&5
18526
18527
18528fi
18529
18530rm -f core conftest.err conftest.$ac_objext \
18531      conftest$ac_exeext conftest.$ac_ext
18532if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18533
18534	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18535	# Warning - without using the other run time loading flags,
18536	# -berok will link without error, but may produce a broken library.
18537	no_undefined_flag_CXX=' ${wl}-bernotok'
18538	allow_undefined_flag_CXX=' ${wl}-berok'
18539	# Exported symbols can be pulled into shared objects from archives
18540	whole_archive_flag_spec_CXX='$convenience'
18541	archive_cmds_need_lc_CXX=yes
18542	# This is similar to how AIX traditionally builds its shared libraries.
18543	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'
18544      fi
18545    fi
18546    ;;
18547
18548  beos*)
18549    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18550      allow_undefined_flag_CXX=unsupported
18551      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18552      # support --undefined.  This deserves some investigation.  FIXME
18553      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18554    else
18555      ld_shlibs_CXX=no
18556    fi
18557    ;;
18558
18559  chorus*)
18560    case $cc_basename in
18561      *)
18562	# FIXME: insert proper C++ library support
18563	ld_shlibs_CXX=no
18564	;;
18565    esac
18566    ;;
18567
18568  cygwin* | mingw* | pw32*)
18569    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18570    # as there is no search path for DLLs.
18571    hardcode_libdir_flag_spec_CXX='-L$libdir'
18572    allow_undefined_flag_CXX=unsupported
18573    always_export_symbols_CXX=no
18574    enable_shared_with_static_runtimes_CXX=yes
18575
18576    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18577      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'
18578      # If the export-symbols file already is a .def file (1st line
18579      # is EXPORTS), use it as is; otherwise, prepend...
18580      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18581	cp $export_symbols $output_objdir/$soname.def;
18582      else
18583	echo EXPORTS > $output_objdir/$soname.def;
18584	cat $export_symbols >> $output_objdir/$soname.def;
18585      fi~
18586      $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'
18587    else
18588      ld_shlibs_CXX=no
18589    fi
18590  ;;
18591      darwin* | rhapsody*)
18592        case $host_os in
18593        rhapsody* | darwin1.[012])
18594         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18595         ;;
18596       *) # Darwin 1.3 on
18597         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18598           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18599         else
18600           case ${MACOSX_DEPLOYMENT_TARGET} in
18601             10.[012])
18602               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18603               ;;
18604             10.*)
18605               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18606               ;;
18607           esac
18608         fi
18609         ;;
18610        esac
18611      archive_cmds_need_lc_CXX=no
18612      hardcode_direct_CXX=no
18613      hardcode_automatic_CXX=yes
18614      hardcode_shlibpath_var_CXX=unsupported
18615      whole_archive_flag_spec_CXX=''
18616      link_all_deplibs_CXX=yes
18617
18618    if test "$GXX" = yes ; then
18619      lt_int_apple_cc_single_mod=no
18620      output_verbose_link_cmd='echo'
18621      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18622       lt_int_apple_cc_single_mod=yes
18623      fi
18624      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18625       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18626      else
18627          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'
18628        fi
18629        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18630        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18631          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18632            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}'
18633          else
18634            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}'
18635          fi
18636            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}'
18637      else
18638      case $cc_basename in
18639        xlc*)
18640         output_verbose_link_cmd='echo'
18641          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'
18642          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18643          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18644          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}'
18645          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}'
18646          ;;
18647       *)
18648         ld_shlibs_CXX=no
18649          ;;
18650      esac
18651      fi
18652        ;;
18653
18654  dgux*)
18655    case $cc_basename in
18656      ec++*)
18657	# FIXME: insert proper C++ library support
18658	ld_shlibs_CXX=no
18659	;;
18660      ghcx*)
18661	# Green Hills C++ Compiler
18662	# FIXME: insert proper C++ library support
18663	ld_shlibs_CXX=no
18664	;;
18665      *)
18666	# FIXME: insert proper C++ library support
18667	ld_shlibs_CXX=no
18668	;;
18669    esac
18670    ;;
18671  freebsd[12]*)
18672    # C++ shared libraries reported to be fairly broken before switch to ELF
18673    ld_shlibs_CXX=no
18674    ;;
18675  freebsd-elf*)
18676    archive_cmds_need_lc_CXX=no
18677    ;;
18678  freebsd* | kfreebsd*-gnu | dragonfly*)
18679    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18680    # conventions
18681    ld_shlibs_CXX=yes
18682    ;;
18683  gnu*)
18684    ;;
18685  hpux9*)
18686    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18687    hardcode_libdir_separator_CXX=:
18688    export_dynamic_flag_spec_CXX='${wl}-E'
18689    hardcode_direct_CXX=yes
18690    hardcode_minus_L_CXX=yes # Not in the search PATH,
18691				# but as the default
18692				# location of the library.
18693
18694    case $cc_basename in
18695    CC*)
18696      # FIXME: insert proper C++ library support
18697      ld_shlibs_CXX=no
18698      ;;
18699    aCC*)
18700      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'
18701      # Commands to make compiler produce verbose output that lists
18702      # what "hidden" libraries, object files and flags are used when
18703      # linking a shared library.
18704      #
18705      # There doesn't appear to be a way to prevent this compiler from
18706      # explicitly linking system object files so we need to strip them
18707      # from the output so that they don't get included in the library
18708      # dependencies.
18709      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'
18710      ;;
18711    *)
18712      if test "$GXX" = yes; then
18713        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'
18714      else
18715        # FIXME: insert proper C++ library support
18716        ld_shlibs_CXX=no
18717      fi
18718      ;;
18719    esac
18720    ;;
18721  hpux10*|hpux11*)
18722    if test $with_gnu_ld = no; then
18723      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18724      hardcode_libdir_separator_CXX=:
18725
18726      case $host_cpu in
18727      hppa*64*|ia64*)
18728	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18729        ;;
18730      *)
18731	export_dynamic_flag_spec_CXX='${wl}-E'
18732        ;;
18733      esac
18734    fi
18735    case $host_cpu in
18736    hppa*64*|ia64*)
18737      hardcode_direct_CXX=no
18738      hardcode_shlibpath_var_CXX=no
18739      ;;
18740    *)
18741      hardcode_direct_CXX=yes
18742      hardcode_minus_L_CXX=yes # Not in the search PATH,
18743					      # but as the default
18744					      # location of the library.
18745      ;;
18746    esac
18747
18748    case $cc_basename in
18749      CC*)
18750	# FIXME: insert proper C++ library support
18751	ld_shlibs_CXX=no
18752	;;
18753      aCC*)
18754	case $host_cpu in
18755	hppa*64*)
18756	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18757	  ;;
18758	ia64*)
18759	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18760	  ;;
18761	*)
18762	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18763	  ;;
18764	esac
18765	# Commands to make compiler produce verbose output that lists
18766	# what "hidden" libraries, object files and flags are used when
18767	# linking a shared library.
18768	#
18769	# There doesn't appear to be a way to prevent this compiler from
18770	# explicitly linking system object files so we need to strip them
18771	# from the output so that they don't get included in the library
18772	# dependencies.
18773	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'
18774	;;
18775      *)
18776	if test "$GXX" = yes; then
18777	  if test $with_gnu_ld = no; then
18778	    case $host_cpu in
18779	    hppa*64*)
18780	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18781	      ;;
18782	    ia64*)
18783	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18784	      ;;
18785	    *)
18786	      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'
18787	      ;;
18788	    esac
18789	  fi
18790	else
18791	  # FIXME: insert proper C++ library support
18792	  ld_shlibs_CXX=no
18793	fi
18794	;;
18795    esac
18796    ;;
18797  interix3*)
18798    hardcode_direct_CXX=no
18799    hardcode_shlibpath_var_CXX=no
18800    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18801    export_dynamic_flag_spec_CXX='${wl}-E'
18802    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18803    # Instead, shared libraries are loaded at an image base (0x10000000 by
18804    # default) and relocated if they conflict, which is a slow very memory
18805    # consuming and fragmenting process.  To avoid this, we pick a random,
18806    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18807    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18808    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'
18809    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'
18810    ;;
18811  irix5* | irix6*)
18812    case $cc_basename in
18813      CC*)
18814	# SGI C++
18815	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'
18816
18817	# Archives containing C++ object files must be created using
18818	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18819	# necessary to make sure instantiated templates are included
18820	# in the archive.
18821	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18822	;;
18823      *)
18824	if test "$GXX" = yes; then
18825	  if test "$with_gnu_ld" = no; then
18826	    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'
18827	  else
18828	    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'
18829	  fi
18830	fi
18831	link_all_deplibs_CXX=yes
18832	;;
18833    esac
18834    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18835    hardcode_libdir_separator_CXX=:
18836    ;;
18837  linux*)
18838    case $cc_basename in
18839      KCC*)
18840	# Kuck and Associates, Inc. (KAI) C++ Compiler
18841
18842	# KCC will only create a shared library if the output file
18843	# ends with ".so" (or ".sl" for HP-UX), so rename the library
18844	# to its proper name (with version) after linking.
18845	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'
18846	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'
18847	# Commands to make compiler produce verbose output that lists
18848	# what "hidden" libraries, object files and flags are used when
18849	# linking a shared library.
18850	#
18851	# There doesn't appear to be a way to prevent this compiler from
18852	# explicitly linking system object files so we need to strip them
18853	# from the output so that they don't get included in the library
18854	# dependencies.
18855	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'
18856
18857	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18858	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18859
18860	# Archives containing C++ object files must be created using
18861	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
18862	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18863	;;
18864      icpc*)
18865	# Intel C++
18866	with_gnu_ld=yes
18867	# version 8.0 and above of icpc choke on multiply defined symbols
18868	# if we add $predep_objects and $postdep_objects, however 7.1 and
18869	# earlier do not add the objects themselves.
18870	case `$CC -V 2>&1` in
18871	*"Version 7."*)
18872  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18873  	  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'
18874	  ;;
18875	*)  # Version 8.0 or newer
18876	  tmp_idyn=
18877	  case $host_cpu in
18878	    ia64*) tmp_idyn=' -i_dynamic';;
18879	  esac
18880  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18881	  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'
18882	  ;;
18883	esac
18884	archive_cmds_need_lc_CXX=no
18885	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18886	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18887	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18888	;;
18889      pgCC*)
18890        # Portland Group C++ compiler
18891	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18892  	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'
18893
18894	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18895	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18896	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'
18897        ;;
18898      cxx*)
18899	# Compaq C++
18900	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18901	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'
18902
18903	runpath_var=LD_RUN_PATH
18904	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18905	hardcode_libdir_separator_CXX=:
18906
18907	# Commands to make compiler produce verbose output that lists
18908	# what "hidden" libraries, object files and flags are used when
18909	# linking a shared library.
18910	#
18911	# There doesn't appear to be a way to prevent this compiler from
18912	# explicitly linking system object files so we need to strip them
18913	# from the output so that they don't get included in the library
18914	# dependencies.
18915	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'
18916	;;
18917    esac
18918    ;;
18919  lynxos*)
18920    # FIXME: insert proper C++ library support
18921    ld_shlibs_CXX=no
18922    ;;
18923  m88k*)
18924    # FIXME: insert proper C++ library support
18925    ld_shlibs_CXX=no
18926    ;;
18927  mvs*)
18928    case $cc_basename in
18929      cxx*)
18930	# FIXME: insert proper C++ library support
18931	ld_shlibs_CXX=no
18932	;;
18933      *)
18934	# FIXME: insert proper C++ library support
18935	ld_shlibs_CXX=no
18936	;;
18937    esac
18938    ;;
18939  netbsd*)
18940    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18941      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18942      wlarc=
18943      hardcode_libdir_flag_spec_CXX='-R$libdir'
18944      hardcode_direct_CXX=yes
18945      hardcode_shlibpath_var_CXX=no
18946    fi
18947    # Workaround some broken pre-1.5 toolchains
18948    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18949    ;;
18950  openbsd2*)
18951    # C++ shared libraries are fairly broken
18952    ld_shlibs_CXX=no
18953    ;;
18954  openbsd*)
18955    hardcode_direct_CXX=yes
18956    hardcode_shlibpath_var_CXX=no
18957    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18958    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18959    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18960      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18961      export_dynamic_flag_spec_CXX='${wl}-E'
18962      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18963    fi
18964    output_verbose_link_cmd='echo'
18965    ;;
18966  osf3*)
18967    case $cc_basename in
18968      KCC*)
18969	# Kuck and Associates, Inc. (KAI) C++ Compiler
18970
18971	# KCC will only create a shared library if the output file
18972	# ends with ".so" (or ".sl" for HP-UX), so rename the library
18973	# to its proper name (with version) after linking.
18974	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'
18975
18976	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18977	hardcode_libdir_separator_CXX=:
18978
18979	# Archives containing C++ object files must be created using
18980	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
18981	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18982
18983	;;
18984      RCC*)
18985	# Rational C++ 2.4.1
18986	# FIXME: insert proper C++ library support
18987	ld_shlibs_CXX=no
18988	;;
18989      cxx*)
18990	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18991	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'
18992
18993	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18994	hardcode_libdir_separator_CXX=:
18995
18996	# Commands to make compiler produce verbose output that lists
18997	# what "hidden" libraries, object files and flags are used when
18998	# linking a shared library.
18999	#
19000	# There doesn't appear to be a way to prevent this compiler from
19001	# explicitly linking system object files so we need to strip them
19002	# from the output so that they don't get included in the library
19003	# dependencies.
19004	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'
19005	;;
19006      *)
19007	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19008	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19009	  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'
19010
19011	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19012	  hardcode_libdir_separator_CXX=:
19013
19014	  # Commands to make compiler produce verbose output that lists
19015	  # what "hidden" libraries, object files and flags are used when
19016	  # linking a shared library.
19017	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19018
19019	else
19020	  # FIXME: insert proper C++ library support
19021	  ld_shlibs_CXX=no
19022	fi
19023	;;
19024    esac
19025    ;;
19026  osf4* | osf5*)
19027    case $cc_basename in
19028      KCC*)
19029	# Kuck and Associates, Inc. (KAI) C++ Compiler
19030
19031	# KCC will only create a shared library if the output file
19032	# ends with ".so" (or ".sl" for HP-UX), so rename the library
19033	# to its proper name (with version) after linking.
19034	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'
19035
19036	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19037	hardcode_libdir_separator_CXX=:
19038
19039	# Archives containing C++ object files must be created using
19040	# the KAI C++ compiler.
19041	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19042	;;
19043      RCC*)
19044	# Rational C++ 2.4.1
19045	# FIXME: insert proper C++ library support
19046	ld_shlibs_CXX=no
19047	;;
19048      cxx*)
19049	allow_undefined_flag_CXX=' -expect_unresolved \*'
19050	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'
19051	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19052	  echo "-hidden">> $lib.exp~
19053	  $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~
19054	  $rm $lib.exp'
19055
19056	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19057	hardcode_libdir_separator_CXX=:
19058
19059	# Commands to make compiler produce verbose output that lists
19060	# what "hidden" libraries, object files and flags are used when
19061	# linking a shared library.
19062	#
19063	# There doesn't appear to be a way to prevent this compiler from
19064	# explicitly linking system object files so we need to strip them
19065	# from the output so that they don't get included in the library
19066	# dependencies.
19067	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'
19068	;;
19069      *)
19070	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19071	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19072	 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'
19073
19074	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19075	  hardcode_libdir_separator_CXX=:
19076
19077	  # Commands to make compiler produce verbose output that lists
19078	  # what "hidden" libraries, object files and flags are used when
19079	  # linking a shared library.
19080	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19081
19082	else
19083	  # FIXME: insert proper C++ library support
19084	  ld_shlibs_CXX=no
19085	fi
19086	;;
19087    esac
19088    ;;
19089  psos*)
19090    # FIXME: insert proper C++ library support
19091    ld_shlibs_CXX=no
19092    ;;
19093  sunos4*)
19094    case $cc_basename in
19095      CC*)
19096	# Sun C++ 4.x
19097	# FIXME: insert proper C++ library support
19098	ld_shlibs_CXX=no
19099	;;
19100      lcc*)
19101	# Lucid
19102	# FIXME: insert proper C++ library support
19103	ld_shlibs_CXX=no
19104	;;
19105      *)
19106	# FIXME: insert proper C++ library support
19107	ld_shlibs_CXX=no
19108	;;
19109    esac
19110    ;;
19111  solaris*)
19112    case $cc_basename in
19113      CC*)
19114	# Sun C++ 4.2, 5.x and Centerline C++
19115        archive_cmds_need_lc_CXX=yes
19116	no_undefined_flag_CXX=' -zdefs'
19117	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19118	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19119	$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'
19120
19121	hardcode_libdir_flag_spec_CXX='-R$libdir'
19122	hardcode_shlibpath_var_CXX=no
19123	case $host_os in
19124	  solaris2.[0-5] | solaris2.[0-5].*) ;;
19125	  *)
19126	    # The C++ compiler is used as linker so we must use $wl
19127	    # flag to pass the commands to the underlying system
19128	    # linker. We must also pass each convience library through
19129	    # to the system linker between allextract/defaultextract.
19130	    # The C++ compiler will combine linker options so we
19131	    # cannot just pass the convience library names through
19132	    # without $wl.
19133	    # Supported since Solaris 2.6 (maybe 2.5.1?)
19134	    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'
19135	    ;;
19136	esac
19137	link_all_deplibs_CXX=yes
19138
19139	output_verbose_link_cmd='echo'
19140
19141	# Archives containing C++ object files must be created using
19142	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
19143	# necessary to make sure instantiated templates are included
19144	# in the archive.
19145	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19146	;;
19147      gcx*)
19148	# Green Hills C++ Compiler
19149	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19150
19151	# The C++ compiler must be used to create the archive.
19152	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19153	;;
19154      *)
19155	# GNU C++ compiler with Solaris linker
19156	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19157	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19158	  if $CC --version | grep -v '^2\.7' > /dev/null; then
19159	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19160	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19161		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19162
19163	    # Commands to make compiler produce verbose output that lists
19164	    # what "hidden" libraries, object files and flags are used when
19165	    # linking a shared library.
19166	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19167	  else
19168	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
19169	    # platform.
19170	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19171	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19172		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19173
19174	    # Commands to make compiler produce verbose output that lists
19175	    # what "hidden" libraries, object files and flags are used when
19176	    # linking a shared library.
19177	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19178	  fi
19179
19180	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19181	fi
19182	;;
19183    esac
19184    ;;
19185  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19186    no_undefined_flag_CXX='${wl}-z,text'
19187    archive_cmds_need_lc_CXX=no
19188    hardcode_shlibpath_var_CXX=no
19189    runpath_var='LD_RUN_PATH'
19190
19191    case $cc_basename in
19192      CC*)
19193	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19194	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19195	;;
19196      *)
19197	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19198	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19199	;;
19200    esac
19201    ;;
19202  sysv5* | sco3.2v5* | sco5v6*)
19203    # Note: We can NOT use -z defs as we might desire, because we do not
19204    # link with -lc, and that would cause any symbols used from libc to
19205    # always be unresolved, which means just about no library would
19206    # ever link correctly.  If we're not using GNU ld we use -z text
19207    # though, which does catch some bad symbols but isn't as heavy-handed
19208    # as -z defs.
19209    # For security reasons, it is highly recommended that you always
19210    # use absolute paths for naming shared libraries, and exclude the
19211    # DT_RUNPATH tag from executables and libraries.  But doing so
19212    # requires that you compile everything twice, which is a pain.
19213    # So that behaviour is only enabled if SCOABSPATH is set to a
19214    # non-empty value in the environment.  Most likely only useful for
19215    # creating official distributions of packages.
19216    # This is a hack until libtool officially supports absolute path
19217    # names for shared libraries.
19218    no_undefined_flag_CXX='${wl}-z,text'
19219    allow_undefined_flag_CXX='${wl}-z,nodefs'
19220    archive_cmds_need_lc_CXX=no
19221    hardcode_shlibpath_var_CXX=no
19222    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19223    hardcode_libdir_separator_CXX=':'
19224    link_all_deplibs_CXX=yes
19225    export_dynamic_flag_spec_CXX='${wl}-Bexport'
19226    runpath_var='LD_RUN_PATH'
19227
19228    case $cc_basename in
19229      CC*)
19230	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19231	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19232	;;
19233      *)
19234	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19235	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19236	;;
19237    esac
19238    ;;
19239  tandem*)
19240    case $cc_basename in
19241      NCC*)
19242	# NonStop-UX NCC 3.20
19243	# FIXME: insert proper C++ library support
19244	ld_shlibs_CXX=no
19245	;;
19246      *)
19247	# FIXME: insert proper C++ library support
19248	ld_shlibs_CXX=no
19249	;;
19250    esac
19251    ;;
19252  vxworks*)
19253    # FIXME: insert proper C++ library support
19254    ld_shlibs_CXX=no
19255    ;;
19256  *)
19257    # FIXME: insert proper C++ library support
19258    ld_shlibs_CXX=no
19259    ;;
19260esac
19261{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19262echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19263test "$ld_shlibs_CXX" = no && can_build_shared=no
19264
19265GCC_CXX="$GXX"
19266LD_CXX="$LD"
19267
19268
19269cat > conftest.$ac_ext <<EOF
19270class Foo
19271{
19272public:
19273  Foo (void) { a = 0; }
19274private:
19275  int a;
19276};
19277EOF
19278
19279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19280  (eval $ac_compile) 2>&5
19281  ac_status=$?
19282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283  (exit $ac_status); }; then
19284  # Parse the compiler output and extract the necessary
19285  # objects, libraries and library flags.
19286
19287  # Sentinel used to keep track of whether or not we are before
19288  # the conftest object file.
19289  pre_test_object_deps_done=no
19290
19291  # The `*' in the case matches for architectures that use `case' in
19292  # $output_verbose_cmd can trigger glob expansion during the loop
19293  # eval without this substitution.
19294  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19295
19296  for p in `eval $output_verbose_link_cmd`; do
19297    case $p in
19298
19299    -L* | -R* | -l*)
19300       # Some compilers place space between "-{L,R}" and the path.
19301       # Remove the space.
19302       if test $p = "-L" \
19303	  || test $p = "-R"; then
19304	 prev=$p
19305	 continue
19306       else
19307	 prev=
19308       fi
19309
19310       if test "$pre_test_object_deps_done" = no; then
19311	 case $p in
19312	 -L* | -R*)
19313	   # Internal compiler library paths should come after those
19314	   # provided the user.  The postdeps already come after the
19315	   # user supplied libs so there is no need to process them.
19316	   if test -z "$compiler_lib_search_path_CXX"; then
19317	     compiler_lib_search_path_CXX="${prev}${p}"
19318	   else
19319	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19320	   fi
19321	   ;;
19322	 # The "-l" case would never come before the object being
19323	 # linked, so don't bother handling this case.
19324	 esac
19325       else
19326	 if test -z "$postdeps_CXX"; then
19327	   postdeps_CXX="${prev}${p}"
19328	 else
19329	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19330	 fi
19331       fi
19332       ;;
19333
19334    *.$objext)
19335       # This assumes that the test object file only shows up
19336       # once in the compiler output.
19337       if test "$p" = "conftest.$objext"; then
19338	 pre_test_object_deps_done=yes
19339	 continue
19340       fi
19341
19342       if test "$pre_test_object_deps_done" = no; then
19343	 if test -z "$predep_objects_CXX"; then
19344	   predep_objects_CXX="$p"
19345	 else
19346	   predep_objects_CXX="$predep_objects_CXX $p"
19347	 fi
19348       else
19349	 if test -z "$postdep_objects_CXX"; then
19350	   postdep_objects_CXX="$p"
19351	 else
19352	   postdep_objects_CXX="$postdep_objects_CXX $p"
19353	 fi
19354       fi
19355       ;;
19356
19357    *) ;; # Ignore the rest.
19358
19359    esac
19360  done
19361
19362  # Clean up.
19363  rm -f a.out a.exe
19364else
19365  echo "libtool.m4: error: problem compiling CXX test program"
19366fi
19367
19368$rm -f confest.$objext
19369
19370# PORTME: override above test on systems where it is broken
19371case $host_os in
19372interix3*)
19373  # Interix 3.5 installs completely hosed .la files for C++, so rather than
19374  # hack all around it, let's just trust "g++" to DTRT.
19375  predep_objects_CXX=
19376  postdep_objects_CXX=
19377  postdeps_CXX=
19378  ;;
19379
19380solaris*)
19381  case $cc_basename in
19382  CC*)
19383    # Adding this requires a known-good setup of shared libraries for
19384    # Sun compiler versions before 5.6, else PIC objects from an old
19385    # archive will be linked into the output, leading to subtle bugs.
19386    postdeps_CXX='-lCstd -lCrun'
19387    ;;
19388  esac
19389  ;;
19390esac
19391
19392
19393case " $postdeps_CXX " in
19394*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19395esac
19396
19397lt_prog_compiler_wl_CXX=
19398lt_prog_compiler_pic_CXX=
19399lt_prog_compiler_static_CXX=
19400
19401{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19402echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19403
19404  # C++ specific cases for pic, static, wl, etc.
19405  if test "$GXX" = yes; then
19406    lt_prog_compiler_wl_CXX='-Wl,'
19407    lt_prog_compiler_static_CXX='-static'
19408
19409    case $host_os in
19410    aix*)
19411      # All AIX code is PIC.
19412      if test "$host_cpu" = ia64; then
19413	# AIX 5 now supports IA64 processor
19414	lt_prog_compiler_static_CXX='-Bstatic'
19415      fi
19416      ;;
19417    amigaos*)
19418      # FIXME: we need at least 68020 code to build shared libraries, but
19419      # adding the `-m68020' flag to GCC prevents building anything better,
19420      # like `-m68040'.
19421      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19422      ;;
19423    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19424      # PIC is the default for these OSes.
19425      ;;
19426    mingw* | os2* | pw32*)
19427      # This hack is so that the source file can tell whether it is being
19428      # built for inclusion in a dll (and should export symbols for example).
19429      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19430      ;;
19431    darwin* | rhapsody*)
19432      # PIC is the default on this platform
19433      # Common symbols not allowed in MH_DYLIB files
19434      lt_prog_compiler_pic_CXX='-fno-common'
19435      ;;
19436    *djgpp*)
19437      # DJGPP does not support shared libraries at all
19438      lt_prog_compiler_pic_CXX=
19439      ;;
19440    interix3*)
19441      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19442      # Instead, we relocate shared libraries at runtime.
19443      ;;
19444    sysv4*MP*)
19445      if test -d /usr/nec; then
19446	lt_prog_compiler_pic_CXX=-Kconform_pic
19447      fi
19448      ;;
19449    hpux*)
19450      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19451      # not for PA HP-UX.
19452      case $host_cpu in
19453      hppa*64*|ia64*)
19454	;;
19455      *)
19456	lt_prog_compiler_pic_CXX='-fPIC'
19457	;;
19458      esac
19459      ;;
19460    *)
19461      lt_prog_compiler_pic_CXX='-fPIC'
19462      ;;
19463    esac
19464  else
19465    case $host_os in
19466      aix4* | aix5*)
19467	# All AIX code is PIC.
19468	if test "$host_cpu" = ia64; then
19469	  # AIX 5 now supports IA64 processor
19470	  lt_prog_compiler_static_CXX='-Bstatic'
19471	else
19472	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19473	fi
19474	;;
19475      chorus*)
19476	case $cc_basename in
19477	cxch68*)
19478	  # Green Hills C++ Compiler
19479	  # _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"
19480	  ;;
19481	esac
19482	;;
19483       darwin*)
19484         # PIC is the default on this platform
19485         # Common symbols not allowed in MH_DYLIB files
19486         case $cc_basename in
19487           xlc*)
19488           lt_prog_compiler_pic_CXX='-qnocommon'
19489           lt_prog_compiler_wl_CXX='-Wl,'
19490           ;;
19491         esac
19492       ;;
19493      dgux*)
19494	case $cc_basename in
19495	  ec++*)
19496	    lt_prog_compiler_pic_CXX='-KPIC'
19497	    ;;
19498	  ghcx*)
19499	    # Green Hills C++ Compiler
19500	    lt_prog_compiler_pic_CXX='-pic'
19501	    ;;
19502	  *)
19503	    ;;
19504	esac
19505	;;
19506      freebsd* | kfreebsd*-gnu | dragonfly*)
19507	# FreeBSD uses GNU C++
19508	;;
19509      hpux9* | hpux10* | hpux11*)
19510	case $cc_basename in
19511	  CC*)
19512	    lt_prog_compiler_wl_CXX='-Wl,'
19513	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19514	    if test "$host_cpu" != ia64; then
19515	      lt_prog_compiler_pic_CXX='+Z'
19516	    fi
19517	    ;;
19518	  aCC*)
19519	    lt_prog_compiler_wl_CXX='-Wl,'
19520	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19521	    case $host_cpu in
19522	    hppa*64*|ia64*)
19523	      # +Z the default
19524	      ;;
19525	    *)
19526	      lt_prog_compiler_pic_CXX='+Z'
19527	      ;;
19528	    esac
19529	    ;;
19530	  *)
19531	    ;;
19532	esac
19533	;;
19534      interix*)
19535	# This is c89, which is MS Visual C++ (no shared libs)
19536	# Anyone wants to do a port?
19537	;;
19538      irix5* | irix6* | nonstopux*)
19539	case $cc_basename in
19540	  CC*)
19541	    lt_prog_compiler_wl_CXX='-Wl,'
19542	    lt_prog_compiler_static_CXX='-non_shared'
19543	    # CC pic flag -KPIC is the default.
19544	    ;;
19545	  *)
19546	    ;;
19547	esac
19548	;;
19549      linux*)
19550	case $cc_basename in
19551	  KCC*)
19552	    # KAI C++ Compiler
19553	    lt_prog_compiler_wl_CXX='--backend -Wl,'
19554	    lt_prog_compiler_pic_CXX='-fPIC'
19555	    ;;
19556	  icpc* | ecpc*)
19557	    # Intel C++
19558	    lt_prog_compiler_wl_CXX='-Wl,'
19559	    lt_prog_compiler_pic_CXX='-KPIC'
19560	    lt_prog_compiler_static_CXX='-static'
19561	    ;;
19562	  pgCC*)
19563	    # Portland Group C++ compiler.
19564	    lt_prog_compiler_wl_CXX='-Wl,'
19565	    lt_prog_compiler_pic_CXX='-fpic'
19566	    lt_prog_compiler_static_CXX='-Bstatic'
19567	    ;;
19568	  cxx*)
19569	    # Compaq C++
19570	    # Make sure the PIC flag is empty.  It appears that all Alpha
19571	    # Linux and Compaq Tru64 Unix objects are PIC.
19572	    lt_prog_compiler_pic_CXX=
19573	    lt_prog_compiler_static_CXX='-non_shared'
19574	    ;;
19575	  *)
19576	    ;;
19577	esac
19578	;;
19579      lynxos*)
19580	;;
19581      m88k*)
19582	;;
19583      mvs*)
19584	case $cc_basename in
19585	  cxx*)
19586	    lt_prog_compiler_pic_CXX='-W c,exportall'
19587	    ;;
19588	  *)
19589	    ;;
19590	esac
19591	;;
19592      netbsd*)
19593	;;
19594      osf3* | osf4* | osf5*)
19595	case $cc_basename in
19596	  KCC*)
19597	    lt_prog_compiler_wl_CXX='--backend -Wl,'
19598	    ;;
19599	  RCC*)
19600	    # Rational C++ 2.4.1
19601	    lt_prog_compiler_pic_CXX='-pic'
19602	    ;;
19603	  cxx*)
19604	    # Digital/Compaq C++
19605	    lt_prog_compiler_wl_CXX='-Wl,'
19606	    # Make sure the PIC flag is empty.  It appears that all Alpha
19607	    # Linux and Compaq Tru64 Unix objects are PIC.
19608	    lt_prog_compiler_pic_CXX=
19609	    lt_prog_compiler_static_CXX='-non_shared'
19610	    ;;
19611	  *)
19612	    ;;
19613	esac
19614	;;
19615      psos*)
19616	;;
19617      solaris*)
19618	case $cc_basename in
19619	  CC*)
19620	    # Sun C++ 4.2, 5.x and Centerline C++
19621	    lt_prog_compiler_pic_CXX='-KPIC'
19622	    lt_prog_compiler_static_CXX='-Bstatic'
19623	    lt_prog_compiler_wl_CXX='-Qoption ld '
19624	    ;;
19625	  gcx*)
19626	    # Green Hills C++ Compiler
19627	    lt_prog_compiler_pic_CXX='-PIC'
19628	    ;;
19629	  *)
19630	    ;;
19631	esac
19632	;;
19633      sunos4*)
19634	case $cc_basename in
19635	  CC*)
19636	    # Sun C++ 4.x
19637	    lt_prog_compiler_pic_CXX='-pic'
19638	    lt_prog_compiler_static_CXX='-Bstatic'
19639	    ;;
19640	  lcc*)
19641	    # Lucid
19642	    lt_prog_compiler_pic_CXX='-pic'
19643	    ;;
19644	  *)
19645	    ;;
19646	esac
19647	;;
19648      tandem*)
19649	case $cc_basename in
19650	  NCC*)
19651	    # NonStop-UX NCC 3.20
19652	    lt_prog_compiler_pic_CXX='-KPIC'
19653	    ;;
19654	  *)
19655	    ;;
19656	esac
19657	;;
19658      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19659	case $cc_basename in
19660	  CC*)
19661	    lt_prog_compiler_wl_CXX='-Wl,'
19662	    lt_prog_compiler_pic_CXX='-KPIC'
19663	    lt_prog_compiler_static_CXX='-Bstatic'
19664	    ;;
19665	esac
19666	;;
19667      vxworks*)
19668	;;
19669      *)
19670	lt_prog_compiler_can_build_shared_CXX=no
19671	;;
19672    esac
19673  fi
19674
19675{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19676echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19677
19678#
19679# Check to make sure the PIC flag actually works.
19680#
19681if test -n "$lt_prog_compiler_pic_CXX"; then
19682
19683{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19684echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19685if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19686  echo $ECHO_N "(cached) $ECHO_C" >&6
19687else
19688  lt_prog_compiler_pic_works_CXX=no
19689  ac_outfile=conftest.$ac_objext
19690   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19691   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19692   # Insert the option either (1) after the last *FLAGS variable, or
19693   # (2) before a word containing "conftest.", or (3) at the end.
19694   # Note that $ac_compile itself does not contain backslashes and begins
19695   # with a dollar sign (not a hyphen), so the echo should work correctly.
19696   # The option is referenced via a variable to avoid confusing sed.
19697   lt_compile=`echo "$ac_compile" | $SED \
19698   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19699   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19700   -e 's:$: $lt_compiler_flag:'`
19701   (eval echo "\"\$as_me:19701: $lt_compile\"" >&5)
19702   (eval "$lt_compile" 2>conftest.err)
19703   ac_status=$?
19704   cat conftest.err >&5
19705   echo "$as_me:19705: \$? = $ac_status" >&5
19706   if (exit $ac_status) && test -s "$ac_outfile"; then
19707     # The compiler can only warn and ignore the option if not recognized
19708     # So say no if there are warnings other than the usual output.
19709     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19710     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19711     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19712       lt_prog_compiler_pic_works_CXX=yes
19713     fi
19714   fi
19715   $rm conftest*
19716
19717fi
19718{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19719echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19720
19721if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19722    case $lt_prog_compiler_pic_CXX in
19723     "" | " "*) ;;
19724     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19725     esac
19726else
19727    lt_prog_compiler_pic_CXX=
19728     lt_prog_compiler_can_build_shared_CXX=no
19729fi
19730
19731fi
19732case $host_os in
19733  # For platforms which do not support PIC, -DPIC is meaningless:
19734  *djgpp*)
19735    lt_prog_compiler_pic_CXX=
19736    ;;
19737  *)
19738    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19739    ;;
19740esac
19741
19742#
19743# Check to make sure the static flag actually works.
19744#
19745wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19746{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19747echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19748if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19749  echo $ECHO_N "(cached) $ECHO_C" >&6
19750else
19751  lt_prog_compiler_static_works_CXX=no
19752   save_LDFLAGS="$LDFLAGS"
19753   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19754   printf "$lt_simple_link_test_code" > conftest.$ac_ext
19755   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19756     # The linker can only warn and ignore the option if not recognized
19757     # So say no if there are warnings
19758     if test -s conftest.err; then
19759       # Append any errors to the config.log.
19760       cat conftest.err 1>&5
19761       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19762       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19763       if diff conftest.exp conftest.er2 >/dev/null; then
19764         lt_prog_compiler_static_works_CXX=yes
19765       fi
19766     else
19767       lt_prog_compiler_static_works_CXX=yes
19768     fi
19769   fi
19770   $rm conftest*
19771   LDFLAGS="$save_LDFLAGS"
19772
19773fi
19774{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19775echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19776
19777if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19778    :
19779else
19780    lt_prog_compiler_static_CXX=
19781fi
19782
19783
19784{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19785echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19786if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19787  echo $ECHO_N "(cached) $ECHO_C" >&6
19788else
19789  lt_cv_prog_compiler_c_o_CXX=no
19790   $rm -r conftest 2>/dev/null
19791   mkdir conftest
19792   cd conftest
19793   mkdir out
19794   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19795
19796   lt_compiler_flag="-o out/conftest2.$ac_objext"
19797   # Insert the option either (1) after the last *FLAGS variable, or
19798   # (2) before a word containing "conftest.", or (3) at the end.
19799   # Note that $ac_compile itself does not contain backslashes and begins
19800   # with a dollar sign (not a hyphen), so the echo should work correctly.
19801   lt_compile=`echo "$ac_compile" | $SED \
19802   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19803   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19804   -e 's:$: $lt_compiler_flag:'`
19805   (eval echo "\"\$as_me:19805: $lt_compile\"" >&5)
19806   (eval "$lt_compile" 2>out/conftest.err)
19807   ac_status=$?
19808   cat out/conftest.err >&5
19809   echo "$as_me:19809: \$? = $ac_status" >&5
19810   if (exit $ac_status) && test -s out/conftest2.$ac_objext
19811   then
19812     # The compiler can only warn and ignore the option if not recognized
19813     # So say no if there are warnings
19814     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19815     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19816     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19817       lt_cv_prog_compiler_c_o_CXX=yes
19818     fi
19819   fi
19820   chmod u+w . 2>&5
19821   $rm conftest*
19822   # SGI C++ compiler will create directory out/ii_files/ for
19823   # template instantiation
19824   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19825   $rm out/* && rmdir out
19826   cd ..
19827   rmdir conftest
19828   $rm conftest*
19829
19830fi
19831{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19832echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19833
19834
19835hard_links="nottested"
19836if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19837  # do not overwrite the value of need_locks provided by the user
19838  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19839echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19840  hard_links=yes
19841  $rm conftest*
19842  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19843  touch conftest.a
19844  ln conftest.a conftest.b 2>&5 || hard_links=no
19845  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19846  { echo "$as_me:$LINENO: result: $hard_links" >&5
19847echo "${ECHO_T}$hard_links" >&6; }
19848  if test "$hard_links" = no; then
19849    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19850echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19851    need_locks=warn
19852  fi
19853else
19854  need_locks=no
19855fi
19856
19857{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19858echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19859
19860  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19861  case $host_os in
19862  aix4* | aix5*)
19863    # If we're using GNU nm, then we don't want the "-C" option.
19864    # -C means demangle to AIX nm, but means don't demangle with GNU nm
19865    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19866      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'
19867    else
19868      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'
19869    fi
19870    ;;
19871  pw32*)
19872    export_symbols_cmds_CXX="$ltdll_cmds"
19873  ;;
19874  cygwin* | mingw*)
19875    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'
19876  ;;
19877  *)
19878    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19879  ;;
19880  esac
19881
19882{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19883echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19884test "$ld_shlibs_CXX" = no && can_build_shared=no
19885
19886#
19887# Do we need to explicitly link libc?
19888#
19889case "x$archive_cmds_need_lc_CXX" in
19890x|xyes)
19891  # Assume -lc should be added
19892  archive_cmds_need_lc_CXX=yes
19893
19894  if test "$enable_shared" = yes && test "$GCC" = yes; then
19895    case $archive_cmds_CXX in
19896    *'~'*)
19897      # FIXME: we may have to deal with multi-command sequences.
19898      ;;
19899    '$CC '*)
19900      # Test whether the compiler implicitly links with -lc since on some
19901      # systems, -lgcc has to come before -lc. If gcc already passes -lc
19902      # to ld, don't add -lc before -lgcc.
19903      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19904echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19905      $rm conftest*
19906      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19907
19908      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19909  (eval $ac_compile) 2>&5
19910  ac_status=$?
19911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912  (exit $ac_status); } 2>conftest.err; then
19913        soname=conftest
19914        lib=conftest
19915        libobjs=conftest.$ac_objext
19916        deplibs=
19917        wl=$lt_prog_compiler_wl_CXX
19918	pic_flag=$lt_prog_compiler_pic_CXX
19919        compiler_flags=-v
19920        linker_flags=-v
19921        verstring=
19922        output_objdir=.
19923        libname=conftest
19924        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19925        allow_undefined_flag_CXX=
19926        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19927  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19928  ac_status=$?
19929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930  (exit $ac_status); }
19931        then
19932	  archive_cmds_need_lc_CXX=no
19933        else
19934	  archive_cmds_need_lc_CXX=yes
19935        fi
19936        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19937      else
19938        cat conftest.err 1>&5
19939      fi
19940      $rm conftest*
19941      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19942echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19943      ;;
19944    esac
19945  fi
19946  ;;
19947esac
19948
19949{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19950echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19951library_names_spec=
19952libname_spec='lib$name'
19953soname_spec=
19954shrext_cmds=".so"
19955postinstall_cmds=
19956postuninstall_cmds=
19957finish_cmds=
19958finish_eval=
19959shlibpath_var=
19960shlibpath_overrides_runpath=unknown
19961version_type=none
19962dynamic_linker="$host_os ld.so"
19963sys_lib_dlsearch_path_spec="/lib /usr/lib"
19964if test "$GCC" = yes; then
19965  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19966  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19967    # if the path contains ";" then we assume it to be the separator
19968    # otherwise default to the standard path separator (i.e. ":") - it is
19969    # assumed that no part of a normal pathname contains ";" but that should
19970    # okay in the real world where ";" in dirpaths is itself problematic.
19971    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19972  else
19973    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19974  fi
19975else
19976  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19977fi
19978need_lib_prefix=unknown
19979hardcode_into_libs=no
19980
19981# when you set need_version to no, make sure it does not cause -set_version
19982# flags to be left without arguments
19983need_version=unknown
19984
19985case $host_os in
19986aix3*)
19987  version_type=linux
19988  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19989  shlibpath_var=LIBPATH
19990
19991  # AIX 3 has no versioning support, so we append a major version to the name.
19992  soname_spec='${libname}${release}${shared_ext}$major'
19993  ;;
19994
19995aix4* | aix5*)
19996  version_type=linux
19997  need_lib_prefix=no
19998  need_version=no
19999  hardcode_into_libs=yes
20000  if test "$host_cpu" = ia64; then
20001    # AIX 5 supports IA64
20002    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20003    shlibpath_var=LD_LIBRARY_PATH
20004  else
20005    # With GCC up to 2.95.x, collect2 would create an import file
20006    # for dependence libraries.  The import file would start with
20007    # the line `#! .'.  This would cause the generated library to
20008    # depend on `.', always an invalid library.  This was fixed in
20009    # development snapshots of GCC prior to 3.0.
20010    case $host_os in
20011      aix4 | aix4.[01] | aix4.[01].*)
20012      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20013	   echo ' yes '
20014	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20015	:
20016      else
20017	can_build_shared=no
20018      fi
20019      ;;
20020    esac
20021    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20022    # soname into executable. Probably we can add versioning support to
20023    # collect2, so additional links can be useful in future.
20024    if test "$aix_use_runtimelinking" = yes; then
20025      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20026      # instead of lib<name>.a to let people know that these are not
20027      # typical AIX shared libraries.
20028      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20029    else
20030      # We preserve .a as extension for shared libraries through AIX4.2
20031      # and later when we are not doing run time linking.
20032      library_names_spec='${libname}${release}.a $libname.a'
20033      soname_spec='${libname}${release}${shared_ext}$major'
20034    fi
20035    shlibpath_var=LIBPATH
20036  fi
20037  ;;
20038
20039amigaos*)
20040  library_names_spec='$libname.ixlibrary $libname.a'
20041  # Create ${libname}_ixlibrary.a entries in /sys/libs.
20042  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'
20043  ;;
20044
20045beos*)
20046  library_names_spec='${libname}${shared_ext}'
20047  dynamic_linker="$host_os ld.so"
20048  shlibpath_var=LIBRARY_PATH
20049  ;;
20050
20051bsdi[45]*)
20052  version_type=linux
20053  need_version=no
20054  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20055  soname_spec='${libname}${release}${shared_ext}$major'
20056  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20057  shlibpath_var=LD_LIBRARY_PATH
20058  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20059  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20060  # the default ld.so.conf also contains /usr/contrib/lib and
20061  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20062  # libtool to hard-code these into programs
20063  ;;
20064
20065cygwin* | mingw* | pw32*)
20066  version_type=windows
20067  shrext_cmds=".dll"
20068  need_version=no
20069  need_lib_prefix=no
20070
20071  case $GCC,$host_os in
20072  yes,cygwin* | yes,mingw* | yes,pw32*)
20073    library_names_spec='$libname.dll.a'
20074    # DLL is installed to $(libdir)/../bin by postinstall_cmds
20075    postinstall_cmds='base_file=`basename \${file}`~
20076      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20077      dldir=$destdir/`dirname \$dlpath`~
20078      test -d \$dldir || mkdir -p \$dldir~
20079      $install_prog $dir/$dlname \$dldir/$dlname~
20080      chmod a+x \$dldir/$dlname'
20081    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20082      dlpath=$dir/\$dldll~
20083       $rm \$dlpath'
20084    shlibpath_overrides_runpath=yes
20085
20086    case $host_os in
20087    cygwin*)
20088      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20089      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20090      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20091      ;;
20092    mingw*)
20093      # MinGW DLLs use traditional 'lib' prefix
20094      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20095      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20096      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20097        # It is most probably a Windows format PATH printed by
20098        # mingw gcc, but we are running on Cygwin. Gcc prints its search
20099        # path with ; separators, and with drive letters. We can handle the
20100        # drive letters (cygwin fileutils understands them), so leave them,
20101        # especially as we might pass files found there to a mingw objdump,
20102        # which wouldn't understand a cygwinified path. Ahh.
20103        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20104      else
20105        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20106      fi
20107      ;;
20108    pw32*)
20109      # pw32 DLLs use 'pw' prefix rather than 'lib'
20110      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20111      ;;
20112    esac
20113    ;;
20114
20115  *)
20116    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20117    ;;
20118  esac
20119  dynamic_linker='Win32 ld.exe'
20120  # FIXME: first we should search . and the directory the executable is in
20121  shlibpath_var=PATH
20122  ;;
20123
20124darwin* | rhapsody*)
20125  dynamic_linker="$host_os dyld"
20126  version_type=darwin
20127  need_lib_prefix=no
20128  need_version=no
20129  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20130  soname_spec='${libname}${release}${major}$shared_ext'
20131  shlibpath_overrides_runpath=yes
20132  shlibpath_var=DYLD_LIBRARY_PATH
20133  shrext_cmds='.dylib'
20134  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20135  if test "$GCC" = yes; then
20136    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"`
20137  else
20138    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20139  fi
20140  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20141  ;;
20142
20143dgux*)
20144  version_type=linux
20145  need_lib_prefix=no
20146  need_version=no
20147  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20148  soname_spec='${libname}${release}${shared_ext}$major'
20149  shlibpath_var=LD_LIBRARY_PATH
20150  ;;
20151
20152freebsd1*)
20153  dynamic_linker=no
20154  ;;
20155
20156kfreebsd*-gnu)
20157  version_type=linux
20158  need_lib_prefix=no
20159  need_version=no
20160  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20161  soname_spec='${libname}${release}${shared_ext}$major'
20162  shlibpath_var=LD_LIBRARY_PATH
20163  shlibpath_overrides_runpath=no
20164  hardcode_into_libs=yes
20165  dynamic_linker='GNU ld.so'
20166  ;;
20167
20168freebsd* | dragonfly*)
20169  # DragonFly does not have aout.  When/if they implement a new
20170  # versioning mechanism, adjust this.
20171  if test -x /usr/bin/objformat; then
20172    objformat=`/usr/bin/objformat`
20173  else
20174    case $host_os in
20175    freebsd[123]*) objformat=aout ;;
20176    *) objformat=elf ;;
20177    esac
20178  fi
20179  version_type=freebsd-$objformat
20180  case $version_type in
20181    freebsd-elf*)
20182      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20183      need_version=no
20184      need_lib_prefix=no
20185      ;;
20186    freebsd-*)
20187      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20188      need_version=yes
20189      ;;
20190  esac
20191  shlibpath_var=LD_LIBRARY_PATH
20192  case $host_os in
20193  freebsd2*)
20194    shlibpath_overrides_runpath=yes
20195    ;;
20196  freebsd3.[01]* | freebsdelf3.[01]*)
20197    shlibpath_overrides_runpath=yes
20198    hardcode_into_libs=yes
20199    ;;
20200  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20201  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20202    shlibpath_overrides_runpath=no
20203    hardcode_into_libs=yes
20204    ;;
20205  freebsd*) # from 4.6 on
20206    shlibpath_overrides_runpath=yes
20207    hardcode_into_libs=yes
20208    ;;
20209  esac
20210  ;;
20211
20212gnu*)
20213  version_type=linux
20214  need_lib_prefix=no
20215  need_version=no
20216  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20217  soname_spec='${libname}${release}${shared_ext}$major'
20218  shlibpath_var=LD_LIBRARY_PATH
20219  hardcode_into_libs=yes
20220  ;;
20221
20222hpux9* | hpux10* | hpux11*)
20223  # Give a soname corresponding to the major version so that dld.sl refuses to
20224  # link against other versions.
20225  version_type=sunos
20226  need_lib_prefix=no
20227  need_version=no
20228  case $host_cpu in
20229  ia64*)
20230    shrext_cmds='.so'
20231    hardcode_into_libs=yes
20232    dynamic_linker="$host_os dld.so"
20233    shlibpath_var=LD_LIBRARY_PATH
20234    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20235    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20236    soname_spec='${libname}${release}${shared_ext}$major'
20237    if test "X$HPUX_IA64_MODE" = X32; then
20238      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20239    else
20240      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20241    fi
20242    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20243    ;;
20244   hppa*64*)
20245     shrext_cmds='.sl'
20246     hardcode_into_libs=yes
20247     dynamic_linker="$host_os dld.sl"
20248     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20249     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20250     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20251     soname_spec='${libname}${release}${shared_ext}$major'
20252     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20253     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20254     ;;
20255   *)
20256    shrext_cmds='.sl'
20257    dynamic_linker="$host_os dld.sl"
20258    shlibpath_var=SHLIB_PATH
20259    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20260    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20261    soname_spec='${libname}${release}${shared_ext}$major'
20262    ;;
20263  esac
20264  # HP-UX runs *really* slowly unless shared libraries are mode 555.
20265  postinstall_cmds='chmod 555 $lib'
20266  ;;
20267
20268interix3*)
20269  version_type=linux
20270  need_lib_prefix=no
20271  need_version=no
20272  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20273  soname_spec='${libname}${release}${shared_ext}$major'
20274  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20275  shlibpath_var=LD_LIBRARY_PATH
20276  shlibpath_overrides_runpath=no
20277  hardcode_into_libs=yes
20278  ;;
20279
20280irix5* | irix6* | nonstopux*)
20281  case $host_os in
20282    nonstopux*) version_type=nonstopux ;;
20283    *)
20284	if test "$lt_cv_prog_gnu_ld" = yes; then
20285		version_type=linux
20286	else
20287		version_type=irix
20288	fi ;;
20289  esac
20290  need_lib_prefix=no
20291  need_version=no
20292  soname_spec='${libname}${release}${shared_ext}$major'
20293  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20294  case $host_os in
20295  irix5* | nonstopux*)
20296    libsuff= shlibsuff=
20297    ;;
20298  *)
20299    case $LD in # libtool.m4 will add one of these switches to LD
20300    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20301      libsuff= shlibsuff= libmagic=32-bit;;
20302    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20303      libsuff=32 shlibsuff=N32 libmagic=N32;;
20304    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20305      libsuff=64 shlibsuff=64 libmagic=64-bit;;
20306    *) libsuff= shlibsuff= libmagic=never-match;;
20307    esac
20308    ;;
20309  esac
20310  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20311  shlibpath_overrides_runpath=no
20312  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20313  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20314  hardcode_into_libs=yes
20315  ;;
20316
20317# No shared lib support for Linux oldld, aout, or coff.
20318linux*oldld* | linux*aout* | linux*coff*)
20319  dynamic_linker=no
20320  ;;
20321
20322# This must be Linux ELF.
20323linux*)
20324  version_type=linux
20325  need_lib_prefix=no
20326  need_version=no
20327  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20328  soname_spec='${libname}${release}${shared_ext}$major'
20329  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20330  shlibpath_var=LD_LIBRARY_PATH
20331  shlibpath_overrides_runpath=no
20332  # This implies no fast_install, which is unacceptable.
20333  # Some rework will be needed to allow for fast_install
20334  # before this can be enabled.
20335  hardcode_into_libs=yes
20336
20337  # Append ld.so.conf contents to the search path
20338  if test -f /etc/ld.so.conf; then
20339    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' ' '`
20340    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20341  fi
20342
20343  # We used to test for /lib/ld.so.1 and disable shared libraries on
20344  # powerpc, because MkLinux only supported shared libraries with the
20345  # GNU dynamic linker.  Since this was broken with cross compilers,
20346  # most powerpc-linux boxes support dynamic linking these days and
20347  # people can always --disable-shared, the test was removed, and we
20348  # assume the GNU/Linux dynamic linker is in use.
20349  dynamic_linker='GNU/Linux ld.so'
20350  ;;
20351
20352knetbsd*-gnu)
20353  version_type=linux
20354  need_lib_prefix=no
20355  need_version=no
20356  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20357  soname_spec='${libname}${release}${shared_ext}$major'
20358  shlibpath_var=LD_LIBRARY_PATH
20359  shlibpath_overrides_runpath=no
20360  hardcode_into_libs=yes
20361  dynamic_linker='GNU ld.so'
20362  ;;
20363
20364netbsd*)
20365  version_type=sunos
20366  need_lib_prefix=no
20367  need_version=no
20368  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20369    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20370    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20371    dynamic_linker='NetBSD (a.out) ld.so'
20372  else
20373    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20374    soname_spec='${libname}${release}${shared_ext}$major'
20375    dynamic_linker='NetBSD ld.elf_so'
20376  fi
20377  shlibpath_var=LD_LIBRARY_PATH
20378  shlibpath_overrides_runpath=yes
20379  hardcode_into_libs=yes
20380  ;;
20381
20382newsos6)
20383  version_type=linux
20384  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20385  shlibpath_var=LD_LIBRARY_PATH
20386  shlibpath_overrides_runpath=yes
20387  ;;
20388
20389nto-qnx*)
20390  version_type=linux
20391  need_lib_prefix=no
20392  need_version=no
20393  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20394  soname_spec='${libname}${release}${shared_ext}$major'
20395  shlibpath_var=LD_LIBRARY_PATH
20396  shlibpath_overrides_runpath=yes
20397  ;;
20398
20399openbsd*)
20400  version_type=sunos
20401  sys_lib_dlsearch_path_spec="/usr/lib"
20402  need_lib_prefix=no
20403  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20404  case $host_os in
20405    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20406    *)                         need_version=no  ;;
20407  esac
20408  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20409  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20410  shlibpath_var=LD_LIBRARY_PATH
20411  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20412    case $host_os in
20413      openbsd2.[89] | openbsd2.[89].*)
20414	shlibpath_overrides_runpath=no
20415	;;
20416      *)
20417	shlibpath_overrides_runpath=yes
20418	;;
20419      esac
20420  else
20421    shlibpath_overrides_runpath=yes
20422  fi
20423  ;;
20424
20425os2*)
20426  libname_spec='$name'
20427  shrext_cmds=".dll"
20428  need_lib_prefix=no
20429  library_names_spec='$libname${shared_ext} $libname.a'
20430  dynamic_linker='OS/2 ld.exe'
20431  shlibpath_var=LIBPATH
20432  ;;
20433
20434osf3* | osf4* | osf5*)
20435  version_type=osf
20436  need_lib_prefix=no
20437  need_version=no
20438  soname_spec='${libname}${release}${shared_ext}$major'
20439  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20440  shlibpath_var=LD_LIBRARY_PATH
20441  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20442  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20443  ;;
20444
20445solaris*)
20446  version_type=linux
20447  need_lib_prefix=no
20448  need_version=no
20449  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20450  soname_spec='${libname}${release}${shared_ext}$major'
20451  shlibpath_var=LD_LIBRARY_PATH
20452  shlibpath_overrides_runpath=yes
20453  hardcode_into_libs=yes
20454  # ldd complains unless libraries are executable
20455  postinstall_cmds='chmod +x $lib'
20456  ;;
20457
20458sunos4*)
20459  version_type=sunos
20460  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20461  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20462  shlibpath_var=LD_LIBRARY_PATH
20463  shlibpath_overrides_runpath=yes
20464  if test "$with_gnu_ld" = yes; then
20465    need_lib_prefix=no
20466  fi
20467  need_version=yes
20468  ;;
20469
20470sysv4 | sysv4.3*)
20471  version_type=linux
20472  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20473  soname_spec='${libname}${release}${shared_ext}$major'
20474  shlibpath_var=LD_LIBRARY_PATH
20475  case $host_vendor in
20476    sni)
20477      shlibpath_overrides_runpath=no
20478      need_lib_prefix=no
20479      export_dynamic_flag_spec='${wl}-Blargedynsym'
20480      runpath_var=LD_RUN_PATH
20481      ;;
20482    siemens)
20483      need_lib_prefix=no
20484      ;;
20485    motorola)
20486      need_lib_prefix=no
20487      need_version=no
20488      shlibpath_overrides_runpath=no
20489      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20490      ;;
20491  esac
20492  ;;
20493
20494sysv4*MP*)
20495  if test -d /usr/nec ;then
20496    version_type=linux
20497    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20498    soname_spec='$libname${shared_ext}.$major'
20499    shlibpath_var=LD_LIBRARY_PATH
20500  fi
20501  ;;
20502
20503sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20504  version_type=freebsd-elf
20505  need_lib_prefix=no
20506  need_version=no
20507  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20508  soname_spec='${libname}${release}${shared_ext}$major'
20509  shlibpath_var=LD_LIBRARY_PATH
20510  hardcode_into_libs=yes
20511  if test "$with_gnu_ld" = yes; then
20512    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20513    shlibpath_overrides_runpath=no
20514  else
20515    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20516    shlibpath_overrides_runpath=yes
20517    case $host_os in
20518      sco3.2v5*)
20519        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20520	;;
20521    esac
20522  fi
20523  sys_lib_dlsearch_path_spec='/usr/lib'
20524  ;;
20525
20526uts4*)
20527  version_type=linux
20528  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20529  soname_spec='${libname}${release}${shared_ext}$major'
20530  shlibpath_var=LD_LIBRARY_PATH
20531  ;;
20532
20533*)
20534  dynamic_linker=no
20535  ;;
20536esac
20537{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20538echo "${ECHO_T}$dynamic_linker" >&6; }
20539test "$dynamic_linker" = no && can_build_shared=no
20540
20541variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20542if test "$GCC" = yes; then
20543  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20544fi
20545
20546{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20547echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20548hardcode_action_CXX=
20549if test -n "$hardcode_libdir_flag_spec_CXX" || \
20550   test -n "$runpath_var_CXX" || \
20551   test "X$hardcode_automatic_CXX" = "Xyes" ; then
20552
20553  # We can hardcode non-existant directories.
20554  if test "$hardcode_direct_CXX" != no &&
20555     # If the only mechanism to avoid hardcoding is shlibpath_var, we
20556     # have to relink, otherwise we might link with an installed library
20557     # when we should be linking with a yet-to-be-installed one
20558     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20559     test "$hardcode_minus_L_CXX" != no; then
20560    # Linking always hardcodes the temporary library directory.
20561    hardcode_action_CXX=relink
20562  else
20563    # We can link without hardcoding, and we can hardcode nonexisting dirs.
20564    hardcode_action_CXX=immediate
20565  fi
20566else
20567  # We cannot hardcode anything, or else we can only hardcode existing
20568  # directories.
20569  hardcode_action_CXX=unsupported
20570fi
20571{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20572echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20573
20574if test "$hardcode_action_CXX" = relink; then
20575  # Fast installation is not supported
20576  enable_fast_install=no
20577elif test "$shlibpath_overrides_runpath" = yes ||
20578     test "$enable_shared" = no; then
20579  # Fast installation is not necessary
20580  enable_fast_install=needless
20581fi
20582
20583
20584# The else clause should only fire when bootstrapping the
20585# libtool distribution, otherwise you forgot to ship ltmain.sh
20586# with your package, and you will get complaints that there are
20587# no rules to generate ltmain.sh.
20588if test -f "$ltmain"; then
20589  # See if we are running on zsh, and set the options which allow our commands through
20590  # without removal of \ escapes.
20591  if test -n "${ZSH_VERSION+set}" ; then
20592    setopt NO_GLOB_SUBST
20593  fi
20594  # Now quote all the things that may contain metacharacters while being
20595  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20596  # variables and quote the copies for generation of the libtool script.
20597  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20598    SED SHELL STRIP \
20599    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20600    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20601    deplibs_check_method reload_flag reload_cmds need_locks \
20602    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20603    lt_cv_sys_global_symbol_to_c_name_address \
20604    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20605    old_postinstall_cmds old_postuninstall_cmds \
20606    compiler_CXX \
20607    CC_CXX \
20608    LD_CXX \
20609    lt_prog_compiler_wl_CXX \
20610    lt_prog_compiler_pic_CXX \
20611    lt_prog_compiler_static_CXX \
20612    lt_prog_compiler_no_builtin_flag_CXX \
20613    export_dynamic_flag_spec_CXX \
20614    thread_safe_flag_spec_CXX \
20615    whole_archive_flag_spec_CXX \
20616    enable_shared_with_static_runtimes_CXX \
20617    old_archive_cmds_CXX \
20618    old_archive_from_new_cmds_CXX \
20619    predep_objects_CXX \
20620    postdep_objects_CXX \
20621    predeps_CXX \
20622    postdeps_CXX \
20623    compiler_lib_search_path_CXX \
20624    archive_cmds_CXX \
20625    archive_expsym_cmds_CXX \
20626    postinstall_cmds_CXX \
20627    postuninstall_cmds_CXX \
20628    old_archive_from_expsyms_cmds_CXX \
20629    allow_undefined_flag_CXX \
20630    no_undefined_flag_CXX \
20631    export_symbols_cmds_CXX \
20632    hardcode_libdir_flag_spec_CXX \
20633    hardcode_libdir_flag_spec_ld_CXX \
20634    hardcode_libdir_separator_CXX \
20635    hardcode_automatic_CXX \
20636    module_cmds_CXX \
20637    module_expsym_cmds_CXX \
20638    lt_cv_prog_compiler_c_o_CXX \
20639    exclude_expsyms_CXX \
20640    include_expsyms_CXX; do
20641
20642    case $var in
20643    old_archive_cmds_CXX | \
20644    old_archive_from_new_cmds_CXX | \
20645    archive_cmds_CXX | \
20646    archive_expsym_cmds_CXX | \
20647    module_cmds_CXX | \
20648    module_expsym_cmds_CXX | \
20649    old_archive_from_expsyms_cmds_CXX | \
20650    export_symbols_cmds_CXX | \
20651    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20652    postinstall_cmds | postuninstall_cmds | \
20653    old_postinstall_cmds | old_postuninstall_cmds | \
20654    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20655      # Double-quote double-evaled strings.
20656      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20657      ;;
20658    *)
20659      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20660      ;;
20661    esac
20662  done
20663
20664  case $lt_echo in
20665  *'\$0 --fallback-echo"')
20666    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20667    ;;
20668  esac
20669
20670cfgfile="$ofile"
20671
20672  cat <<__EOF__ >> "$cfgfile"
20673# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20674
20675# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20676
20677# Shell to use when invoking shell scripts.
20678SHELL=$lt_SHELL
20679
20680# Whether or not to build shared libraries.
20681build_libtool_libs=$enable_shared
20682
20683# Whether or not to build static libraries.
20684build_old_libs=$enable_static
20685
20686# Whether or not to add -lc for building shared libraries.
20687build_libtool_need_lc=$archive_cmds_need_lc_CXX
20688
20689# Whether or not to disallow shared libs when runtime libs are static
20690allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20691
20692# Whether or not to optimize for fast installation.
20693fast_install=$enable_fast_install
20694
20695# The host system.
20696host_alias=$host_alias
20697host=$host
20698host_os=$host_os
20699
20700# The build system.
20701build_alias=$build_alias
20702build=$build
20703build_os=$build_os
20704
20705# An echo program that does not interpret backslashes.
20706echo=$lt_echo
20707
20708# The archiver.
20709AR=$lt_AR
20710AR_FLAGS=$lt_AR_FLAGS
20711
20712# A C compiler.
20713LTCC=$lt_LTCC
20714
20715# LTCC compiler flags.
20716LTCFLAGS=$lt_LTCFLAGS
20717
20718# A language-specific compiler.
20719CC=$lt_compiler_CXX
20720
20721# Is the compiler the GNU C compiler?
20722with_gcc=$GCC_CXX
20723
20724# An ERE matcher.
20725EGREP=$lt_EGREP
20726
20727# The linker used to build libraries.
20728LD=$lt_LD_CXX
20729
20730# Whether we need hard or soft links.
20731LN_S=$lt_LN_S
20732
20733# A BSD-compatible nm program.
20734NM=$lt_NM
20735
20736# A symbol stripping program
20737STRIP=$lt_STRIP
20738
20739# Used to examine libraries when file_magic_cmd begins "file"
20740MAGIC_CMD=$MAGIC_CMD
20741
20742# Used on cygwin: DLL creation program.
20743DLLTOOL="$DLLTOOL"
20744
20745# Used on cygwin: object dumper.
20746OBJDUMP="$OBJDUMP"
20747
20748# Used on cygwin: assembler.
20749AS="$AS"
20750
20751# The name of the directory that contains temporary libtool files.
20752objdir=$objdir
20753
20754# How to create reloadable object files.
20755reload_flag=$lt_reload_flag
20756reload_cmds=$lt_reload_cmds
20757
20758# How to pass a linker flag through the compiler.
20759wl=$lt_lt_prog_compiler_wl_CXX
20760
20761# Object file suffix (normally "o").
20762objext="$ac_objext"
20763
20764# Old archive suffix (normally "a").
20765libext="$libext"
20766
20767# Shared library suffix (normally ".so").
20768shrext_cmds='$shrext_cmds'
20769
20770# Executable file suffix (normally "").
20771exeext="$exeext"
20772
20773# Additional compiler flags for building library objects.
20774pic_flag=$lt_lt_prog_compiler_pic_CXX
20775pic_mode=$pic_mode
20776
20777# What is the maximum length of a command?
20778max_cmd_len=$lt_cv_sys_max_cmd_len
20779
20780# Does compiler simultaneously support -c and -o options?
20781compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20782
20783# Must we lock files when doing compilation?
20784need_locks=$lt_need_locks
20785
20786# Do we need the lib prefix for modules?
20787need_lib_prefix=$need_lib_prefix
20788
20789# Do we need a version for libraries?
20790need_version=$need_version
20791
20792# Whether dlopen is supported.
20793dlopen_support=$enable_dlopen
20794
20795# Whether dlopen of programs is supported.
20796dlopen_self=$enable_dlopen_self
20797
20798# Whether dlopen of statically linked programs is supported.
20799dlopen_self_static=$enable_dlopen_self_static
20800
20801# Compiler flag to prevent dynamic linking.
20802link_static_flag=$lt_lt_prog_compiler_static_CXX
20803
20804# Compiler flag to turn off builtin functions.
20805no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20806
20807# Compiler flag to allow reflexive dlopens.
20808export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20809
20810# Compiler flag to generate shared objects directly from archives.
20811whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20812
20813# Compiler flag to generate thread-safe objects.
20814thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20815
20816# Library versioning type.
20817version_type=$version_type
20818
20819# Format of library name prefix.
20820libname_spec=$lt_libname_spec
20821
20822# List of archive names.  First name is the real one, the rest are links.
20823# The last name is the one that the linker finds with -lNAME.
20824library_names_spec=$lt_library_names_spec
20825
20826# The coded name of the library, if different from the real name.
20827soname_spec=$lt_soname_spec
20828
20829# Commands used to build and install an old-style archive.
20830RANLIB=$lt_RANLIB
20831old_archive_cmds=$lt_old_archive_cmds_CXX
20832old_postinstall_cmds=$lt_old_postinstall_cmds
20833old_postuninstall_cmds=$lt_old_postuninstall_cmds
20834
20835# Create an old-style archive from a shared archive.
20836old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20837
20838# Create a temporary old-style archive to link instead of a shared archive.
20839old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20840
20841# Commands used to build and install a shared archive.
20842archive_cmds=$lt_archive_cmds_CXX
20843archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20844postinstall_cmds=$lt_postinstall_cmds
20845postuninstall_cmds=$lt_postuninstall_cmds
20846
20847# Commands used to build a loadable module (assumed same as above if empty)
20848module_cmds=$lt_module_cmds_CXX
20849module_expsym_cmds=$lt_module_expsym_cmds_CXX
20850
20851# Commands to strip libraries.
20852old_striplib=$lt_old_striplib
20853striplib=$lt_striplib
20854
20855# Dependencies to place before the objects being linked to create a
20856# shared library.
20857predep_objects=$lt_predep_objects_CXX
20858
20859# Dependencies to place after the objects being linked to create a
20860# shared library.
20861postdep_objects=$lt_postdep_objects_CXX
20862
20863# Dependencies to place before the objects being linked to create a
20864# shared library.
20865predeps=$lt_predeps_CXX
20866
20867# Dependencies to place after the objects being linked to create a
20868# shared library.
20869postdeps=$lt_postdeps_CXX
20870
20871# The library search path used internally by the compiler when linking
20872# a shared library.
20873compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20874
20875# Method to check whether dependent libraries are shared objects.
20876deplibs_check_method=$lt_deplibs_check_method
20877
20878# Command to use when deplibs_check_method == file_magic.
20879file_magic_cmd=$lt_file_magic_cmd
20880
20881# Flag that allows shared libraries with undefined symbols to be built.
20882allow_undefined_flag=$lt_allow_undefined_flag_CXX
20883
20884# Flag that forces no undefined symbols.
20885no_undefined_flag=$lt_no_undefined_flag_CXX
20886
20887# Commands used to finish a libtool library installation in a directory.
20888finish_cmds=$lt_finish_cmds
20889
20890# Same as above, but a single script fragment to be evaled but not shown.
20891finish_eval=$lt_finish_eval
20892
20893# Take the output of nm and produce a listing of raw symbols and C names.
20894global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20895
20896# Transform the output of nm in a proper C declaration
20897global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20898
20899# Transform the output of nm in a C name address pair
20900global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20901
20902# This is the shared library runtime path variable.
20903runpath_var=$runpath_var
20904
20905# This is the shared library path variable.
20906shlibpath_var=$shlibpath_var
20907
20908# Is shlibpath searched before the hard-coded library search path?
20909shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20910
20911# How to hardcode a shared library path into an executable.
20912hardcode_action=$hardcode_action_CXX
20913
20914# Whether we should hardcode library paths into libraries.
20915hardcode_into_libs=$hardcode_into_libs
20916
20917# Flag to hardcode \$libdir into a binary during linking.
20918# This must work even if \$libdir does not exist.
20919hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20920
20921# If ld is used when linking, flag to hardcode \$libdir into
20922# a binary during linking. This must work even if \$libdir does
20923# not exist.
20924hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20925
20926# Whether we need a single -rpath flag with a separated argument.
20927hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20928
20929# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20930# resulting binary.
20931hardcode_direct=$hardcode_direct_CXX
20932
20933# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20934# resulting binary.
20935hardcode_minus_L=$hardcode_minus_L_CXX
20936
20937# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20938# the resulting binary.
20939hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20940
20941# Set to yes if building a shared library automatically hardcodes DIR into the library
20942# and all subsequent libraries and executables linked against it.
20943hardcode_automatic=$hardcode_automatic_CXX
20944
20945# Variables whose values should be saved in libtool wrapper scripts and
20946# restored at relink time.
20947variables_saved_for_relink="$variables_saved_for_relink"
20948
20949# Whether libtool must link a program against all its dependency libraries.
20950link_all_deplibs=$link_all_deplibs_CXX
20951
20952# Compile-time system search path for libraries
20953sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20954
20955# Run-time system search path for libraries
20956sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20957
20958# Fix the shell variable \$srcfile for the compiler.
20959fix_srcfile_path="$fix_srcfile_path_CXX"
20960
20961# Set to yes if exported symbols are required.
20962always_export_symbols=$always_export_symbols_CXX
20963
20964# The commands to list exported symbols.
20965export_symbols_cmds=$lt_export_symbols_cmds_CXX
20966
20967# The commands to extract the exported symbol list from a shared archive.
20968extract_expsyms_cmds=$lt_extract_expsyms_cmds
20969
20970# Symbols that should not be listed in the preloaded symbols.
20971exclude_expsyms=$lt_exclude_expsyms_CXX
20972
20973# Symbols that must always be exported.
20974include_expsyms=$lt_include_expsyms_CXX
20975
20976# ### END LIBTOOL TAG CONFIG: $tagname
20977
20978__EOF__
20979
20980
20981else
20982  # If there is no Makefile yet, we rely on a make rule to execute
20983  # `config.status --recheck' to rerun these tests and create the
20984  # libtool script then.
20985  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20986  if test -f "$ltmain_in"; then
20987    test -f Makefile && make "$ltmain"
20988  fi
20989fi
20990
20991
20992ac_ext=c
20993ac_cpp='$CPP $CPPFLAGS'
20994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20996ac_compiler_gnu=$ac_cv_c_compiler_gnu
20997
20998CC=$lt_save_CC
20999LDCXX=$LD
21000LD=$lt_save_LD
21001GCC=$lt_save_GCC
21002with_gnu_ldcxx=$with_gnu_ld
21003with_gnu_ld=$lt_save_with_gnu_ld
21004lt_cv_path_LDCXX=$lt_cv_path_LD
21005lt_cv_path_LD=$lt_save_path_LD
21006lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21007lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21008
21009	else
21010	  tagname=""
21011	fi
21012	;;
21013
21014      F77)
21015	if test -n "$F77" && test "X$F77" != "Xno"; then
21016
21017ac_ext=f
21018ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21019ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21020ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21021
21022
21023archive_cmds_need_lc_F77=no
21024allow_undefined_flag_F77=
21025always_export_symbols_F77=no
21026archive_expsym_cmds_F77=
21027export_dynamic_flag_spec_F77=
21028hardcode_direct_F77=no
21029hardcode_libdir_flag_spec_F77=
21030hardcode_libdir_flag_spec_ld_F77=
21031hardcode_libdir_separator_F77=
21032hardcode_minus_L_F77=no
21033hardcode_automatic_F77=no
21034module_cmds_F77=
21035module_expsym_cmds_F77=
21036link_all_deplibs_F77=unknown
21037old_archive_cmds_F77=$old_archive_cmds
21038no_undefined_flag_F77=
21039whole_archive_flag_spec_F77=
21040enable_shared_with_static_runtimes_F77=no
21041
21042# Source file extension for f77 test sources.
21043ac_ext=f
21044
21045# Object file extension for compiled f77 test sources.
21046objext=o
21047objext_F77=$objext
21048
21049# Code to be used in simple compile tests
21050lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
21051
21052# Code to be used in simple link tests
21053lt_simple_link_test_code="      program t\n      end\n"
21054
21055# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21056
21057# If no C compiler was specified, use CC.
21058LTCC=${LTCC-"$CC"}
21059
21060# If no C compiler flags were specified, use CFLAGS.
21061LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21062
21063# Allow CC to be a program name with arguments.
21064compiler=$CC
21065
21066
21067# save warnings/boilerplate of simple test code
21068ac_outfile=conftest.$ac_objext
21069printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21070eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21071_lt_compiler_boilerplate=`cat conftest.err`
21072$rm conftest*
21073
21074ac_outfile=conftest.$ac_objext
21075printf "$lt_simple_link_test_code" >conftest.$ac_ext
21076eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21077_lt_linker_boilerplate=`cat conftest.err`
21078$rm conftest*
21079
21080
21081# Allow CC to be a program name with arguments.
21082lt_save_CC="$CC"
21083CC=${F77-"f77"}
21084compiler=$CC
21085compiler_F77=$CC
21086for cc_temp in $compiler""; do
21087  case $cc_temp in
21088    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21089    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21090    \-*) ;;
21091    *) break;;
21092  esac
21093done
21094cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21095
21096
21097{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21098echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21099{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21100echo "${ECHO_T}$can_build_shared" >&6; }
21101
21102{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21103echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21104test "$can_build_shared" = "no" && enable_shared=no
21105
21106# On AIX, shared libraries and static libraries use the same namespace, and
21107# are all built from PIC.
21108case $host_os in
21109aix3*)
21110  test "$enable_shared" = yes && enable_static=no
21111  if test -n "$RANLIB"; then
21112    archive_cmds="$archive_cmds~\$RANLIB \$lib"
21113    postinstall_cmds='$RANLIB $lib'
21114  fi
21115  ;;
21116aix4* | aix5*)
21117  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21118    test "$enable_shared" = yes && enable_static=no
21119  fi
21120  ;;
21121esac
21122{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21123echo "${ECHO_T}$enable_shared" >&6; }
21124
21125{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21126echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21127# Make sure either enable_shared or enable_static is yes.
21128test "$enable_shared" = yes || enable_static=yes
21129{ echo "$as_me:$LINENO: result: $enable_static" >&5
21130echo "${ECHO_T}$enable_static" >&6; }
21131
21132GCC_F77="$G77"
21133LD_F77="$LD"
21134
21135lt_prog_compiler_wl_F77=
21136lt_prog_compiler_pic_F77=
21137lt_prog_compiler_static_F77=
21138
21139{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21140echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21141
21142  if test "$GCC" = yes; then
21143    lt_prog_compiler_wl_F77='-Wl,'
21144    lt_prog_compiler_static_F77='-static'
21145
21146    case $host_os in
21147      aix*)
21148      # All AIX code is PIC.
21149      if test "$host_cpu" = ia64; then
21150	# AIX 5 now supports IA64 processor
21151	lt_prog_compiler_static_F77='-Bstatic'
21152      fi
21153      ;;
21154
21155    amigaos*)
21156      # FIXME: we need at least 68020 code to build shared libraries, but
21157      # adding the `-m68020' flag to GCC prevents building anything better,
21158      # like `-m68040'.
21159      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21160      ;;
21161
21162    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21163      # PIC is the default for these OSes.
21164      ;;
21165
21166    mingw* | pw32* | os2*)
21167      # This hack is so that the source file can tell whether it is being
21168      # built for inclusion in a dll (and should export symbols for example).
21169      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21170      ;;
21171
21172    darwin* | rhapsody*)
21173      # PIC is the default on this platform
21174      # Common symbols not allowed in MH_DYLIB files
21175      lt_prog_compiler_pic_F77='-fno-common'
21176      ;;
21177
21178    interix3*)
21179      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21180      # Instead, we relocate shared libraries at runtime.
21181      ;;
21182
21183    msdosdjgpp*)
21184      # Just because we use GCC doesn't mean we suddenly get shared libraries
21185      # on systems that don't support them.
21186      lt_prog_compiler_can_build_shared_F77=no
21187      enable_shared=no
21188      ;;
21189
21190    sysv4*MP*)
21191      if test -d /usr/nec; then
21192	lt_prog_compiler_pic_F77=-Kconform_pic
21193      fi
21194      ;;
21195
21196    hpux*)
21197      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21198      # not for PA HP-UX.
21199      case $host_cpu in
21200      hppa*64*|ia64*)
21201	# +Z the default
21202	;;
21203      *)
21204	lt_prog_compiler_pic_F77='-fPIC'
21205	;;
21206      esac
21207      ;;
21208
21209    *)
21210      lt_prog_compiler_pic_F77='-fPIC'
21211      ;;
21212    esac
21213  else
21214    # PORTME Check for flag to pass linker flags through the system compiler.
21215    case $host_os in
21216    aix*)
21217      lt_prog_compiler_wl_F77='-Wl,'
21218      if test "$host_cpu" = ia64; then
21219	# AIX 5 now supports IA64 processor
21220	lt_prog_compiler_static_F77='-Bstatic'
21221      else
21222	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21223      fi
21224      ;;
21225      darwin*)
21226        # PIC is the default on this platform
21227        # Common symbols not allowed in MH_DYLIB files
21228       case $cc_basename in
21229         xlc*)
21230         lt_prog_compiler_pic_F77='-qnocommon'
21231         lt_prog_compiler_wl_F77='-Wl,'
21232         ;;
21233       esac
21234       ;;
21235
21236    mingw* | pw32* | os2*)
21237      # This hack is so that the source file can tell whether it is being
21238      # built for inclusion in a dll (and should export symbols for example).
21239      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21240      ;;
21241
21242    hpux9* | hpux10* | hpux11*)
21243      lt_prog_compiler_wl_F77='-Wl,'
21244      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21245      # not for PA HP-UX.
21246      case $host_cpu in
21247      hppa*64*|ia64*)
21248	# +Z the default
21249	;;
21250      *)
21251	lt_prog_compiler_pic_F77='+Z'
21252	;;
21253      esac
21254      # Is there a better lt_prog_compiler_static that works with the bundled CC?
21255      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21256      ;;
21257
21258    irix5* | irix6* | nonstopux*)
21259      lt_prog_compiler_wl_F77='-Wl,'
21260      # PIC (with -KPIC) is the default.
21261      lt_prog_compiler_static_F77='-non_shared'
21262      ;;
21263
21264    newsos6)
21265      lt_prog_compiler_pic_F77='-KPIC'
21266      lt_prog_compiler_static_F77='-Bstatic'
21267      ;;
21268
21269    linux*)
21270      case $cc_basename in
21271      icc* | ecc*)
21272	lt_prog_compiler_wl_F77='-Wl,'
21273	lt_prog_compiler_pic_F77='-KPIC'
21274	lt_prog_compiler_static_F77='-static'
21275        ;;
21276      pgcc* | pgf77* | pgf90* | pgf95*)
21277        # Portland Group compilers (*not* the Pentium gcc compiler,
21278	# which looks to be a dead project)
21279	lt_prog_compiler_wl_F77='-Wl,'
21280	lt_prog_compiler_pic_F77='-fpic'
21281	lt_prog_compiler_static_F77='-Bstatic'
21282        ;;
21283      ccc*)
21284        lt_prog_compiler_wl_F77='-Wl,'
21285        # All Alpha code is PIC.
21286        lt_prog_compiler_static_F77='-non_shared'
21287        ;;
21288      esac
21289      ;;
21290
21291    osf3* | osf4* | osf5*)
21292      lt_prog_compiler_wl_F77='-Wl,'
21293      # All OSF/1 code is PIC.
21294      lt_prog_compiler_static_F77='-non_shared'
21295      ;;
21296
21297    solaris*)
21298      lt_prog_compiler_pic_F77='-KPIC'
21299      lt_prog_compiler_static_F77='-Bstatic'
21300      case $cc_basename in
21301      f77* | f90* | f95*)
21302	lt_prog_compiler_wl_F77='-Qoption ld ';;
21303      *)
21304	lt_prog_compiler_wl_F77='-Wl,';;
21305      esac
21306      ;;
21307
21308    sunos4*)
21309      lt_prog_compiler_wl_F77='-Qoption ld '
21310      lt_prog_compiler_pic_F77='-PIC'
21311      lt_prog_compiler_static_F77='-Bstatic'
21312      ;;
21313
21314    sysv4 | sysv4.2uw2* | sysv4.3*)
21315      lt_prog_compiler_wl_F77='-Wl,'
21316      lt_prog_compiler_pic_F77='-KPIC'
21317      lt_prog_compiler_static_F77='-Bstatic'
21318      ;;
21319
21320    sysv4*MP*)
21321      if test -d /usr/nec ;then
21322	lt_prog_compiler_pic_F77='-Kconform_pic'
21323	lt_prog_compiler_static_F77='-Bstatic'
21324      fi
21325      ;;
21326
21327    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21328      lt_prog_compiler_wl_F77='-Wl,'
21329      lt_prog_compiler_pic_F77='-KPIC'
21330      lt_prog_compiler_static_F77='-Bstatic'
21331      ;;
21332
21333    unicos*)
21334      lt_prog_compiler_wl_F77='-Wl,'
21335      lt_prog_compiler_can_build_shared_F77=no
21336      ;;
21337
21338    uts4*)
21339      lt_prog_compiler_pic_F77='-pic'
21340      lt_prog_compiler_static_F77='-Bstatic'
21341      ;;
21342
21343    *)
21344      lt_prog_compiler_can_build_shared_F77=no
21345      ;;
21346    esac
21347  fi
21348
21349{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21350echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21351
21352#
21353# Check to make sure the PIC flag actually works.
21354#
21355if test -n "$lt_prog_compiler_pic_F77"; then
21356
21357{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21358echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21359if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21360  echo $ECHO_N "(cached) $ECHO_C" >&6
21361else
21362  lt_prog_compiler_pic_works_F77=no
21363  ac_outfile=conftest.$ac_objext
21364   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21365   lt_compiler_flag="$lt_prog_compiler_pic_F77"
21366   # Insert the option either (1) after the last *FLAGS variable, or
21367   # (2) before a word containing "conftest.", or (3) at the end.
21368   # Note that $ac_compile itself does not contain backslashes and begins
21369   # with a dollar sign (not a hyphen), so the echo should work correctly.
21370   # The option is referenced via a variable to avoid confusing sed.
21371   lt_compile=`echo "$ac_compile" | $SED \
21372   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21373   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21374   -e 's:$: $lt_compiler_flag:'`
21375   (eval echo "\"\$as_me:21375: $lt_compile\"" >&5)
21376   (eval "$lt_compile" 2>conftest.err)
21377   ac_status=$?
21378   cat conftest.err >&5
21379   echo "$as_me:21379: \$? = $ac_status" >&5
21380   if (exit $ac_status) && test -s "$ac_outfile"; then
21381     # The compiler can only warn and ignore the option if not recognized
21382     # So say no if there are warnings other than the usual output.
21383     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21384     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21385     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21386       lt_prog_compiler_pic_works_F77=yes
21387     fi
21388   fi
21389   $rm conftest*
21390
21391fi
21392{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21393echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21394
21395if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21396    case $lt_prog_compiler_pic_F77 in
21397     "" | " "*) ;;
21398     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21399     esac
21400else
21401    lt_prog_compiler_pic_F77=
21402     lt_prog_compiler_can_build_shared_F77=no
21403fi
21404
21405fi
21406case $host_os in
21407  # For platforms which do not support PIC, -DPIC is meaningless:
21408  *djgpp*)
21409    lt_prog_compiler_pic_F77=
21410    ;;
21411  *)
21412    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21413    ;;
21414esac
21415
21416#
21417# Check to make sure the static flag actually works.
21418#
21419wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21420{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21421echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21422if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21423  echo $ECHO_N "(cached) $ECHO_C" >&6
21424else
21425  lt_prog_compiler_static_works_F77=no
21426   save_LDFLAGS="$LDFLAGS"
21427   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21428   printf "$lt_simple_link_test_code" > conftest.$ac_ext
21429   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21430     # The linker can only warn and ignore the option if not recognized
21431     # So say no if there are warnings
21432     if test -s conftest.err; then
21433       # Append any errors to the config.log.
21434       cat conftest.err 1>&5
21435       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21436       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21437       if diff conftest.exp conftest.er2 >/dev/null; then
21438         lt_prog_compiler_static_works_F77=yes
21439       fi
21440     else
21441       lt_prog_compiler_static_works_F77=yes
21442     fi
21443   fi
21444   $rm conftest*
21445   LDFLAGS="$save_LDFLAGS"
21446
21447fi
21448{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21449echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21450
21451if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21452    :
21453else
21454    lt_prog_compiler_static_F77=
21455fi
21456
21457
21458{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21459echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21460if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21461  echo $ECHO_N "(cached) $ECHO_C" >&6
21462else
21463  lt_cv_prog_compiler_c_o_F77=no
21464   $rm -r conftest 2>/dev/null
21465   mkdir conftest
21466   cd conftest
21467   mkdir out
21468   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21469
21470   lt_compiler_flag="-o out/conftest2.$ac_objext"
21471   # Insert the option either (1) after the last *FLAGS variable, or
21472   # (2) before a word containing "conftest.", or (3) at the end.
21473   # Note that $ac_compile itself does not contain backslashes and begins
21474   # with a dollar sign (not a hyphen), so the echo should work correctly.
21475   lt_compile=`echo "$ac_compile" | $SED \
21476   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21477   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21478   -e 's:$: $lt_compiler_flag:'`
21479   (eval echo "\"\$as_me:21479: $lt_compile\"" >&5)
21480   (eval "$lt_compile" 2>out/conftest.err)
21481   ac_status=$?
21482   cat out/conftest.err >&5
21483   echo "$as_me:21483: \$? = $ac_status" >&5
21484   if (exit $ac_status) && test -s out/conftest2.$ac_objext
21485   then
21486     # The compiler can only warn and ignore the option if not recognized
21487     # So say no if there are warnings
21488     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21489     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21490     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21491       lt_cv_prog_compiler_c_o_F77=yes
21492     fi
21493   fi
21494   chmod u+w . 2>&5
21495   $rm conftest*
21496   # SGI C++ compiler will create directory out/ii_files/ for
21497   # template instantiation
21498   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21499   $rm out/* && rmdir out
21500   cd ..
21501   rmdir conftest
21502   $rm conftest*
21503
21504fi
21505{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21506echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21507
21508
21509hard_links="nottested"
21510if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21511  # do not overwrite the value of need_locks provided by the user
21512  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21513echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21514  hard_links=yes
21515  $rm conftest*
21516  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21517  touch conftest.a
21518  ln conftest.a conftest.b 2>&5 || hard_links=no
21519  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21520  { echo "$as_me:$LINENO: result: $hard_links" >&5
21521echo "${ECHO_T}$hard_links" >&6; }
21522  if test "$hard_links" = no; then
21523    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21524echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21525    need_locks=warn
21526  fi
21527else
21528  need_locks=no
21529fi
21530
21531{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21532echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21533
21534  runpath_var=
21535  allow_undefined_flag_F77=
21536  enable_shared_with_static_runtimes_F77=no
21537  archive_cmds_F77=
21538  archive_expsym_cmds_F77=
21539  old_archive_From_new_cmds_F77=
21540  old_archive_from_expsyms_cmds_F77=
21541  export_dynamic_flag_spec_F77=
21542  whole_archive_flag_spec_F77=
21543  thread_safe_flag_spec_F77=
21544  hardcode_libdir_flag_spec_F77=
21545  hardcode_libdir_flag_spec_ld_F77=
21546  hardcode_libdir_separator_F77=
21547  hardcode_direct_F77=no
21548  hardcode_minus_L_F77=no
21549  hardcode_shlibpath_var_F77=unsupported
21550  link_all_deplibs_F77=unknown
21551  hardcode_automatic_F77=no
21552  module_cmds_F77=
21553  module_expsym_cmds_F77=
21554  always_export_symbols_F77=no
21555  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21556  # include_expsyms should be a list of space-separated symbols to be *always*
21557  # included in the symbol list
21558  include_expsyms_F77=
21559  # exclude_expsyms can be an extended regexp of symbols to exclude
21560  # it will be wrapped by ` (' and `)$', so one must not match beginning or
21561  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21562  # as well as any symbol that contains `d'.
21563  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21564  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21565  # platforms (ab)use it in PIC code, but their linkers get confused if
21566  # the symbol is explicitly referenced.  Since portable code cannot
21567  # rely on this symbol name, it's probably fine to never include it in
21568  # preloaded symbol tables.
21569  extract_expsyms_cmds=
21570  # Just being paranoid about ensuring that cc_basename is set.
21571  for cc_temp in $compiler""; do
21572  case $cc_temp in
21573    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21574    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21575    \-*) ;;
21576    *) break;;
21577  esac
21578done
21579cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21580
21581  case $host_os in
21582  cygwin* | mingw* | pw32*)
21583    # FIXME: the MSVC++ port hasn't been tested in a loooong time
21584    # When not using gcc, we currently assume that we are using
21585    # Microsoft Visual C++.
21586    if test "$GCC" != yes; then
21587      with_gnu_ld=no
21588    fi
21589    ;;
21590  interix*)
21591    # we just hope/assume this is gcc and not c89 (= MSVC++)
21592    with_gnu_ld=yes
21593    ;;
21594  openbsd*)
21595    with_gnu_ld=no
21596    ;;
21597  esac
21598
21599  ld_shlibs_F77=yes
21600  if test "$with_gnu_ld" = yes; then
21601    # If archive_cmds runs LD, not CC, wlarc should be empty
21602    wlarc='${wl}'
21603
21604    # Set some defaults for GNU ld with shared library support. These
21605    # are reset later if shared libraries are not supported. Putting them
21606    # here allows them to be overridden if necessary.
21607    runpath_var=LD_RUN_PATH
21608    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21609    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21610    # ancient GNU ld didn't support --whole-archive et. al.
21611    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21612	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21613      else
21614  	whole_archive_flag_spec_F77=
21615    fi
21616    supports_anon_versioning=no
21617    case `$LD -v 2>/dev/null` in
21618      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21619      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21620      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21621      *\ 2.11.*) ;; # other 2.11 versions
21622      *) supports_anon_versioning=yes ;;
21623    esac
21624
21625    # See if GNU ld supports shared libraries.
21626    case $host_os in
21627    aix3* | aix4* | aix5*)
21628      # On AIX/PPC, the GNU linker is very broken
21629      if test "$host_cpu" != ia64; then
21630	ld_shlibs_F77=no
21631	cat <<EOF 1>&2
21632
21633*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21634*** to be unable to reliably create shared libraries on AIX.
21635*** Therefore, libtool is disabling shared libraries support.  If you
21636*** really care for shared libraries, you may want to modify your PATH
21637*** so that a non-GNU linker is found, and then restart.
21638
21639EOF
21640      fi
21641      ;;
21642
21643    amigaos*)
21644      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)'
21645      hardcode_libdir_flag_spec_F77='-L$libdir'
21646      hardcode_minus_L_F77=yes
21647
21648      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21649      # that the semantics of dynamic libraries on AmigaOS, at least up
21650      # to version 4, is to share data among multiple programs linked
21651      # with the same dynamic library.  Since this doesn't match the
21652      # behavior of shared libraries on other platforms, we can't use
21653      # them.
21654      ld_shlibs_F77=no
21655      ;;
21656
21657    beos*)
21658      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21659	allow_undefined_flag_F77=unsupported
21660	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21661	# support --undefined.  This deserves some investigation.  FIXME
21662	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21663      else
21664	ld_shlibs_F77=no
21665      fi
21666      ;;
21667
21668    cygwin* | mingw* | pw32*)
21669      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21670      # as there is no search path for DLLs.
21671      hardcode_libdir_flag_spec_F77='-L$libdir'
21672      allow_undefined_flag_F77=unsupported
21673      always_export_symbols_F77=no
21674      enable_shared_with_static_runtimes_F77=yes
21675      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21676
21677      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21678        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21679	# If the export-symbols file already is a .def file (1st line
21680	# is EXPORTS), use it as is; otherwise, prepend...
21681	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21682	  cp $export_symbols $output_objdir/$soname.def;
21683	else
21684	  echo EXPORTS > $output_objdir/$soname.def;
21685	  cat $export_symbols >> $output_objdir/$soname.def;
21686	fi~
21687	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21688      else
21689	ld_shlibs_F77=no
21690      fi
21691      ;;
21692
21693    interix3*)
21694      hardcode_direct_F77=no
21695      hardcode_shlibpath_var_F77=no
21696      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21697      export_dynamic_flag_spec_F77='${wl}-E'
21698      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21699      # Instead, shared libraries are loaded at an image base (0x10000000 by
21700      # default) and relocated if they conflict, which is a slow very memory
21701      # consuming and fragmenting process.  To avoid this, we pick a random,
21702      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21703      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21704      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'
21705      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'
21706      ;;
21707
21708    linux*)
21709      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21710	tmp_addflag=
21711	case $cc_basename,$host_cpu in
21712	pgcc*)				# Portland Group C compiler
21713	  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'
21714	  tmp_addflag=' $pic_flag'
21715	  ;;
21716	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
21717	  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'
21718	  tmp_addflag=' $pic_flag -Mnomain' ;;
21719	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
21720	  tmp_addflag=' -i_dynamic' ;;
21721	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
21722	  tmp_addflag=' -i_dynamic -nofor_main' ;;
21723	ifc* | ifort*)			# Intel Fortran compiler
21724	  tmp_addflag=' -nofor_main' ;;
21725	esac
21726	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21727
21728	if test $supports_anon_versioning = yes; then
21729	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21730  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21731  $echo "local: *; };" >> $output_objdir/$libname.ver~
21732	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21733	fi
21734      else
21735	ld_shlibs_F77=no
21736      fi
21737      ;;
21738
21739    netbsd*)
21740      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21741	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21742	wlarc=
21743      else
21744	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21745	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21746      fi
21747      ;;
21748
21749    solaris*)
21750      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21751	ld_shlibs_F77=no
21752	cat <<EOF 1>&2
21753
21754*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21755*** create shared libraries on Solaris systems.  Therefore, libtool
21756*** is disabling shared libraries support.  We urge you to upgrade GNU
21757*** binutils to release 2.9.1 or newer.  Another option is to modify
21758*** your PATH or compiler configuration so that the native linker is
21759*** used, and then restart.
21760
21761EOF
21762      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21763	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21764	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21765      else
21766	ld_shlibs_F77=no
21767      fi
21768      ;;
21769
21770    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21771      case `$LD -v 2>&1` in
21772        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21773	ld_shlibs_F77=no
21774	cat <<_LT_EOF 1>&2
21775
21776*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21777*** reliably create shared libraries on SCO systems.  Therefore, libtool
21778*** is disabling shared libraries support.  We urge you to upgrade GNU
21779*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21780*** your PATH or compiler configuration so that the native linker is
21781*** used, and then restart.
21782
21783_LT_EOF
21784	;;
21785	*)
21786	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21787	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21788	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21789	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21790	  else
21791	    ld_shlibs_F77=no
21792	  fi
21793	;;
21794      esac
21795      ;;
21796
21797    sunos4*)
21798      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21799      wlarc=
21800      hardcode_direct_F77=yes
21801      hardcode_shlibpath_var_F77=no
21802      ;;
21803
21804    *)
21805      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21806	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21807	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21808      else
21809	ld_shlibs_F77=no
21810      fi
21811      ;;
21812    esac
21813
21814    if test "$ld_shlibs_F77" = no; then
21815      runpath_var=
21816      hardcode_libdir_flag_spec_F77=
21817      export_dynamic_flag_spec_F77=
21818      whole_archive_flag_spec_F77=
21819    fi
21820  else
21821    # PORTME fill in a description of your system's linker (not GNU ld)
21822    case $host_os in
21823    aix3*)
21824      allow_undefined_flag_F77=unsupported
21825      always_export_symbols_F77=yes
21826      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'
21827      # Note: this linker hardcodes the directories in LIBPATH if there
21828      # are no directories specified by -L.
21829      hardcode_minus_L_F77=yes
21830      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21831	# Neither direct hardcoding nor static linking is supported with a
21832	# broken collect2.
21833	hardcode_direct_F77=unsupported
21834      fi
21835      ;;
21836
21837    aix4* | aix5*)
21838      if test "$host_cpu" = ia64; then
21839	# On IA64, the linker does run time linking by default, so we don't
21840	# have to do anything special.
21841	aix_use_runtimelinking=no
21842	exp_sym_flag='-Bexport'
21843	no_entry_flag=""
21844      else
21845	# If we're using GNU nm, then we don't want the "-C" option.
21846	# -C means demangle to AIX nm, but means don't demangle with GNU nm
21847	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21848	  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'
21849	else
21850	  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'
21851	fi
21852	aix_use_runtimelinking=no
21853
21854	# Test if we are trying to use run time linking or normal
21855	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
21856	# need to do runtime linking.
21857	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21858	  for ld_flag in $LDFLAGS; do
21859  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21860  	    aix_use_runtimelinking=yes
21861  	    break
21862  	  fi
21863	  done
21864	  ;;
21865	esac
21866
21867	exp_sym_flag='-bexport'
21868	no_entry_flag='-bnoentry'
21869      fi
21870
21871      # When large executables or shared objects are built, AIX ld can
21872      # have problems creating the table of contents.  If linking a library
21873      # or program results in "error TOC overflow" add -mminimal-toc to
21874      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21875      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21876
21877      archive_cmds_F77=''
21878      hardcode_direct_F77=yes
21879      hardcode_libdir_separator_F77=':'
21880      link_all_deplibs_F77=yes
21881
21882      if test "$GCC" = yes; then
21883	case $host_os in aix4.[012]|aix4.[012].*)
21884	# We only want to do this on AIX 4.2 and lower, the check
21885	# below for broken collect2 doesn't work under 4.3+
21886	  collect2name=`${CC} -print-prog-name=collect2`
21887	  if test -f "$collect2name" && \
21888  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
21889	  then
21890  	  # We have reworked collect2
21891  	  hardcode_direct_F77=yes
21892	  else
21893  	  # We have old collect2
21894  	  hardcode_direct_F77=unsupported
21895  	  # It fails to find uninstalled libraries when the uninstalled
21896  	  # path is not listed in the libpath.  Setting hardcode_minus_L
21897  	  # to unsupported forces relinking
21898  	  hardcode_minus_L_F77=yes
21899  	  hardcode_libdir_flag_spec_F77='-L$libdir'
21900  	  hardcode_libdir_separator_F77=
21901	  fi
21902	  ;;
21903	esac
21904	shared_flag='-shared'
21905	if test "$aix_use_runtimelinking" = yes; then
21906	  shared_flag="$shared_flag "'${wl}-G'
21907	fi
21908      else
21909	# not using gcc
21910	if test "$host_cpu" = ia64; then
21911  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21912  	# chokes on -Wl,-G. The following line is correct:
21913	  shared_flag='-G'
21914	else
21915	  if test "$aix_use_runtimelinking" = yes; then
21916	    shared_flag='${wl}-G'
21917	  else
21918	    shared_flag='${wl}-bM:SRE'
21919	  fi
21920	fi
21921      fi
21922
21923      # It seems that -bexpall does not export symbols beginning with
21924      # underscore (_), so it is better to generate a list of symbols to export.
21925      always_export_symbols_F77=yes
21926      if test "$aix_use_runtimelinking" = yes; then
21927	# Warning - without using the other runtime loading flags (-brtl),
21928	# -berok will link without error, but may produce a broken library.
21929	allow_undefined_flag_F77='-berok'
21930       # Determine the default libpath from the value encoded in an empty executable.
21931       cat >conftest.$ac_ext <<_ACEOF
21932      program main
21933
21934      end
21935_ACEOF
21936rm -f conftest.$ac_objext conftest$ac_exeext
21937if { (ac_try="$ac_link"
21938case "(($ac_try" in
21939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21940  *) ac_try_echo=$ac_try;;
21941esac
21942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21943  (eval "$ac_link") 2>conftest.er1
21944  ac_status=$?
21945  grep -v '^ *+' conftest.er1 >conftest.err
21946  rm -f conftest.er1
21947  cat conftest.err >&5
21948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21949  (exit $ac_status); } &&
21950	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21951  { (case "(($ac_try" in
21952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21953  *) ac_try_echo=$ac_try;;
21954esac
21955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21956  (eval "$ac_try") 2>&5
21957  ac_status=$?
21958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959  (exit $ac_status); }; } &&
21960	 { ac_try='test -s conftest$ac_exeext'
21961  { (case "(($ac_try" in
21962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21963  *) ac_try_echo=$ac_try;;
21964esac
21965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21966  (eval "$ac_try") 2>&5
21967  ac_status=$?
21968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969  (exit $ac_status); }; }; then
21970
21971aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21972}'`
21973# Check for a 64-bit object if we didn't find anything.
21974if 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; }
21975}'`; fi
21976else
21977  echo "$as_me: failed program was:" >&5
21978sed 's/^/| /' conftest.$ac_ext >&5
21979
21980
21981fi
21982
21983rm -f core conftest.err conftest.$ac_objext \
21984      conftest$ac_exeext conftest.$ac_ext
21985if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21986
21987       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21988	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"
21989       else
21990	if test "$host_cpu" = ia64; then
21991	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21992	  allow_undefined_flag_F77="-z nodefs"
21993	  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"
21994	else
21995	 # Determine the default libpath from the value encoded in an empty executable.
21996	 cat >conftest.$ac_ext <<_ACEOF
21997      program main
21998
21999      end
22000_ACEOF
22001rm -f conftest.$ac_objext conftest$ac_exeext
22002if { (ac_try="$ac_link"
22003case "(($ac_try" in
22004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22005  *) ac_try_echo=$ac_try;;
22006esac
22007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22008  (eval "$ac_link") 2>conftest.er1
22009  ac_status=$?
22010  grep -v '^ *+' conftest.er1 >conftest.err
22011  rm -f conftest.er1
22012  cat conftest.err >&5
22013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014  (exit $ac_status); } &&
22015	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22016  { (case "(($ac_try" in
22017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22018  *) ac_try_echo=$ac_try;;
22019esac
22020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22021  (eval "$ac_try") 2>&5
22022  ac_status=$?
22023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22024  (exit $ac_status); }; } &&
22025	 { ac_try='test -s conftest$ac_exeext'
22026  { (case "(($ac_try" in
22027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22028  *) ac_try_echo=$ac_try;;
22029esac
22030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22031  (eval "$ac_try") 2>&5
22032  ac_status=$?
22033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034  (exit $ac_status); }; }; then
22035
22036aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22037}'`
22038# Check for a 64-bit object if we didn't find anything.
22039if 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; }
22040}'`; fi
22041else
22042  echo "$as_me: failed program was:" >&5
22043sed 's/^/| /' conftest.$ac_ext >&5
22044
22045
22046fi
22047
22048rm -f core conftest.err conftest.$ac_objext \
22049      conftest$ac_exeext conftest.$ac_ext
22050if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22051
22052	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22053	  # Warning - without using the other run time loading flags,
22054	  # -berok will link without error, but may produce a broken library.
22055	  no_undefined_flag_F77=' ${wl}-bernotok'
22056	  allow_undefined_flag_F77=' ${wl}-berok'
22057	  # Exported symbols can be pulled into shared objects from archives
22058	  whole_archive_flag_spec_F77='$convenience'
22059	  archive_cmds_need_lc_F77=yes
22060	  # This is similar to how AIX traditionally builds its shared libraries.
22061	  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'
22062	fi
22063      fi
22064      ;;
22065
22066    amigaos*)
22067      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)'
22068      hardcode_libdir_flag_spec_F77='-L$libdir'
22069      hardcode_minus_L_F77=yes
22070      # see comment about different semantics on the GNU ld section
22071      ld_shlibs_F77=no
22072      ;;
22073
22074    bsdi[45]*)
22075      export_dynamic_flag_spec_F77=-rdynamic
22076      ;;
22077
22078    cygwin* | mingw* | pw32*)
22079      # When not using gcc, we currently assume that we are using
22080      # Microsoft Visual C++.
22081      # hardcode_libdir_flag_spec is actually meaningless, as there is
22082      # no search path for DLLs.
22083      hardcode_libdir_flag_spec_F77=' '
22084      allow_undefined_flag_F77=unsupported
22085      # Tell ltmain to make .lib files, not .a files.
22086      libext=lib
22087      # Tell ltmain to make .dll files, not .so files.
22088      shrext_cmds=".dll"
22089      # FIXME: Setting linknames here is a bad hack.
22090      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22091      # The linker will automatically build a .lib file if we build a DLL.
22092      old_archive_From_new_cmds_F77='true'
22093      # FIXME: Should let the user specify the lib program.
22094      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22095      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22096      enable_shared_with_static_runtimes_F77=yes
22097      ;;
22098
22099    darwin* | rhapsody*)
22100      case $host_os in
22101        rhapsody* | darwin1.[012])
22102         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22103         ;;
22104       *) # Darwin 1.3 on
22105         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22106           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22107         else
22108           case ${MACOSX_DEPLOYMENT_TARGET} in
22109             10.[012])
22110               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22111               ;;
22112             10.*)
22113               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22114               ;;
22115           esac
22116         fi
22117         ;;
22118      esac
22119      archive_cmds_need_lc_F77=no
22120      hardcode_direct_F77=no
22121      hardcode_automatic_F77=yes
22122      hardcode_shlibpath_var_F77=unsupported
22123      whole_archive_flag_spec_F77=''
22124      link_all_deplibs_F77=yes
22125    if test "$GCC" = yes ; then
22126    	output_verbose_link_cmd='echo'
22127        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22128      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22129      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22130      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}'
22131      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}'
22132    else
22133      case $cc_basename in
22134        xlc*)
22135         output_verbose_link_cmd='echo'
22136         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22137         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22138          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22139         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}'
22140          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}'
22141          ;;
22142       *)
22143         ld_shlibs_F77=no
22144          ;;
22145      esac
22146    fi
22147      ;;
22148
22149    dgux*)
22150      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22151      hardcode_libdir_flag_spec_F77='-L$libdir'
22152      hardcode_shlibpath_var_F77=no
22153      ;;
22154
22155    freebsd1*)
22156      ld_shlibs_F77=no
22157      ;;
22158
22159    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22160    # support.  Future versions do this automatically, but an explicit c++rt0.o
22161    # does not break anything, and helps significantly (at the cost of a little
22162    # extra space).
22163    freebsd2.2*)
22164      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22165      hardcode_libdir_flag_spec_F77='-R$libdir'
22166      hardcode_direct_F77=yes
22167      hardcode_shlibpath_var_F77=no
22168      ;;
22169
22170    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22171    freebsd2*)
22172      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22173      hardcode_direct_F77=yes
22174      hardcode_minus_L_F77=yes
22175      hardcode_shlibpath_var_F77=no
22176      ;;
22177
22178    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22179    freebsd* | kfreebsd*-gnu | dragonfly*)
22180      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22181      hardcode_libdir_flag_spec_F77='-R$libdir'
22182      hardcode_direct_F77=yes
22183      hardcode_shlibpath_var_F77=no
22184      ;;
22185
22186    hpux9*)
22187      if test "$GCC" = yes; then
22188	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'
22189      else
22190	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'
22191      fi
22192      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22193      hardcode_libdir_separator_F77=:
22194      hardcode_direct_F77=yes
22195
22196      # hardcode_minus_L: Not really in the search PATH,
22197      # but as the default location of the library.
22198      hardcode_minus_L_F77=yes
22199      export_dynamic_flag_spec_F77='${wl}-E'
22200      ;;
22201
22202    hpux10*)
22203      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22204	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22205      else
22206	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22207      fi
22208      if test "$with_gnu_ld" = no; then
22209	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22210	hardcode_libdir_separator_F77=:
22211
22212	hardcode_direct_F77=yes
22213	export_dynamic_flag_spec_F77='${wl}-E'
22214
22215	# hardcode_minus_L: Not really in the search PATH,
22216	# but as the default location of the library.
22217	hardcode_minus_L_F77=yes
22218      fi
22219      ;;
22220
22221    hpux11*)
22222      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22223	case $host_cpu in
22224	hppa*64*)
22225	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22226	  ;;
22227	ia64*)
22228	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22229	  ;;
22230	*)
22231	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22232	  ;;
22233	esac
22234      else
22235	case $host_cpu in
22236	hppa*64*)
22237	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22238	  ;;
22239	ia64*)
22240	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22241	  ;;
22242	*)
22243	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22244	  ;;
22245	esac
22246      fi
22247      if test "$with_gnu_ld" = no; then
22248	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22249	hardcode_libdir_separator_F77=:
22250
22251	case $host_cpu in
22252	hppa*64*|ia64*)
22253	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22254	  hardcode_direct_F77=no
22255	  hardcode_shlibpath_var_F77=no
22256	  ;;
22257	*)
22258	  hardcode_direct_F77=yes
22259	  export_dynamic_flag_spec_F77='${wl}-E'
22260
22261	  # hardcode_minus_L: Not really in the search PATH,
22262	  # but as the default location of the library.
22263	  hardcode_minus_L_F77=yes
22264	  ;;
22265	esac
22266      fi
22267      ;;
22268
22269    irix5* | irix6* | nonstopux*)
22270      if test "$GCC" = yes; then
22271	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'
22272      else
22273	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'
22274	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22275      fi
22276      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22277      hardcode_libdir_separator_F77=:
22278      link_all_deplibs_F77=yes
22279      ;;
22280
22281    netbsd*)
22282      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22283	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22284      else
22285	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22286      fi
22287      hardcode_libdir_flag_spec_F77='-R$libdir'
22288      hardcode_direct_F77=yes
22289      hardcode_shlibpath_var_F77=no
22290      ;;
22291
22292    newsos6)
22293      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22294      hardcode_direct_F77=yes
22295      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22296      hardcode_libdir_separator_F77=:
22297      hardcode_shlibpath_var_F77=no
22298      ;;
22299
22300    openbsd*)
22301      hardcode_direct_F77=yes
22302      hardcode_shlibpath_var_F77=no
22303      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22304	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22305	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22306	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22307	export_dynamic_flag_spec_F77='${wl}-E'
22308      else
22309       case $host_os in
22310	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22311	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22312	   hardcode_libdir_flag_spec_F77='-R$libdir'
22313	   ;;
22314	 *)
22315	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22316	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22317	   ;;
22318       esac
22319      fi
22320      ;;
22321
22322    os2*)
22323      hardcode_libdir_flag_spec_F77='-L$libdir'
22324      hardcode_minus_L_F77=yes
22325      allow_undefined_flag_F77=unsupported
22326      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'
22327      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22328      ;;
22329
22330    osf3*)
22331      if test "$GCC" = yes; then
22332	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22333	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'
22334      else
22335	allow_undefined_flag_F77=' -expect_unresolved \*'
22336	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'
22337      fi
22338      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22339      hardcode_libdir_separator_F77=:
22340      ;;
22341
22342    osf4* | osf5*)	# as osf3* with the addition of -msym flag
22343      if test "$GCC" = yes; then
22344	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22345	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'
22346	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22347      else
22348	allow_undefined_flag_F77=' -expect_unresolved \*'
22349	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'
22350	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~
22351	$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'
22352
22353	# Both c and cxx compiler support -rpath directly
22354	hardcode_libdir_flag_spec_F77='-rpath $libdir'
22355      fi
22356      hardcode_libdir_separator_F77=:
22357      ;;
22358
22359    solaris*)
22360      no_undefined_flag_F77=' -z text'
22361      if test "$GCC" = yes; then
22362	wlarc='${wl}'
22363	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22364	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22365	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22366      else
22367	wlarc=''
22368	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22369	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22370  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22371      fi
22372      hardcode_libdir_flag_spec_F77='-R$libdir'
22373      hardcode_shlibpath_var_F77=no
22374      case $host_os in
22375      solaris2.[0-5] | solaris2.[0-5].*) ;;
22376      *)
22377 	# The compiler driver will combine linker options so we
22378 	# cannot just pass the convience library names through
22379 	# without $wl, iff we do not link with $LD.
22380 	# Luckily, gcc supports the same syntax we need for Sun Studio.
22381 	# Supported since Solaris 2.6 (maybe 2.5.1?)
22382 	case $wlarc in
22383 	'')
22384 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22385 	*)
22386 	  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' ;;
22387 	esac ;;
22388      esac
22389      link_all_deplibs_F77=yes
22390      ;;
22391
22392    sunos4*)
22393      if test "x$host_vendor" = xsequent; then
22394	# Use $CC to link under sequent, because it throws in some extra .o
22395	# files that make .init and .fini sections work.
22396	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22397      else
22398	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22399      fi
22400      hardcode_libdir_flag_spec_F77='-L$libdir'
22401      hardcode_direct_F77=yes
22402      hardcode_minus_L_F77=yes
22403      hardcode_shlibpath_var_F77=no
22404      ;;
22405
22406    sysv4)
22407      case $host_vendor in
22408	sni)
22409	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22410	  hardcode_direct_F77=yes # is this really true???
22411	;;
22412	siemens)
22413	  ## LD is ld it makes a PLAMLIB
22414	  ## CC just makes a GrossModule.
22415	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22416	  reload_cmds_F77='$CC -r -o $output$reload_objs'
22417	  hardcode_direct_F77=no
22418        ;;
22419	motorola)
22420	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22421	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22422	;;
22423      esac
22424      runpath_var='LD_RUN_PATH'
22425      hardcode_shlibpath_var_F77=no
22426      ;;
22427
22428    sysv4.3*)
22429      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22430      hardcode_shlibpath_var_F77=no
22431      export_dynamic_flag_spec_F77='-Bexport'
22432      ;;
22433
22434    sysv4*MP*)
22435      if test -d /usr/nec; then
22436	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22437	hardcode_shlibpath_var_F77=no
22438	runpath_var=LD_RUN_PATH
22439	hardcode_runpath_var=yes
22440	ld_shlibs_F77=yes
22441      fi
22442      ;;
22443
22444    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22445      no_undefined_flag_F77='${wl}-z,text'
22446      archive_cmds_need_lc_F77=no
22447      hardcode_shlibpath_var_F77=no
22448      runpath_var='LD_RUN_PATH'
22449
22450      if test "$GCC" = yes; then
22451	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22452	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22453      else
22454	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22455	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22456      fi
22457      ;;
22458
22459    sysv5* | sco3.2v5* | sco5v6*)
22460      # Note: We can NOT use -z defs as we might desire, because we do not
22461      # link with -lc, and that would cause any symbols used from libc to
22462      # always be unresolved, which means just about no library would
22463      # ever link correctly.  If we're not using GNU ld we use -z text
22464      # though, which does catch some bad symbols but isn't as heavy-handed
22465      # as -z defs.
22466      no_undefined_flag_F77='${wl}-z,text'
22467      allow_undefined_flag_F77='${wl}-z,nodefs'
22468      archive_cmds_need_lc_F77=no
22469      hardcode_shlibpath_var_F77=no
22470      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22471      hardcode_libdir_separator_F77=':'
22472      link_all_deplibs_F77=yes
22473      export_dynamic_flag_spec_F77='${wl}-Bexport'
22474      runpath_var='LD_RUN_PATH'
22475
22476      if test "$GCC" = yes; then
22477	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22478	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22479      else
22480	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22481	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22482      fi
22483      ;;
22484
22485    uts4*)
22486      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22487      hardcode_libdir_flag_spec_F77='-L$libdir'
22488      hardcode_shlibpath_var_F77=no
22489      ;;
22490
22491    *)
22492      ld_shlibs_F77=no
22493      ;;
22494    esac
22495  fi
22496
22497{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22498echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22499test "$ld_shlibs_F77" = no && can_build_shared=no
22500
22501#
22502# Do we need to explicitly link libc?
22503#
22504case "x$archive_cmds_need_lc_F77" in
22505x|xyes)
22506  # Assume -lc should be added
22507  archive_cmds_need_lc_F77=yes
22508
22509  if test "$enable_shared" = yes && test "$GCC" = yes; then
22510    case $archive_cmds_F77 in
22511    *'~'*)
22512      # FIXME: we may have to deal with multi-command sequences.
22513      ;;
22514    '$CC '*)
22515      # Test whether the compiler implicitly links with -lc since on some
22516      # systems, -lgcc has to come before -lc. If gcc already passes -lc
22517      # to ld, don't add -lc before -lgcc.
22518      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22519echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22520      $rm conftest*
22521      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22522
22523      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22524  (eval $ac_compile) 2>&5
22525  ac_status=$?
22526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527  (exit $ac_status); } 2>conftest.err; then
22528        soname=conftest
22529        lib=conftest
22530        libobjs=conftest.$ac_objext
22531        deplibs=
22532        wl=$lt_prog_compiler_wl_F77
22533	pic_flag=$lt_prog_compiler_pic_F77
22534        compiler_flags=-v
22535        linker_flags=-v
22536        verstring=
22537        output_objdir=.
22538        libname=conftest
22539        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22540        allow_undefined_flag_F77=
22541        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22542  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22543  ac_status=$?
22544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545  (exit $ac_status); }
22546        then
22547	  archive_cmds_need_lc_F77=no
22548        else
22549	  archive_cmds_need_lc_F77=yes
22550        fi
22551        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22552      else
22553        cat conftest.err 1>&5
22554      fi
22555      $rm conftest*
22556      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22557echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22558      ;;
22559    esac
22560  fi
22561  ;;
22562esac
22563
22564{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22565echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22566library_names_spec=
22567libname_spec='lib$name'
22568soname_spec=
22569shrext_cmds=".so"
22570postinstall_cmds=
22571postuninstall_cmds=
22572finish_cmds=
22573finish_eval=
22574shlibpath_var=
22575shlibpath_overrides_runpath=unknown
22576version_type=none
22577dynamic_linker="$host_os ld.so"
22578sys_lib_dlsearch_path_spec="/lib /usr/lib"
22579if test "$GCC" = yes; then
22580  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22581  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22582    # if the path contains ";" then we assume it to be the separator
22583    # otherwise default to the standard path separator (i.e. ":") - it is
22584    # assumed that no part of a normal pathname contains ";" but that should
22585    # okay in the real world where ";" in dirpaths is itself problematic.
22586    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22587  else
22588    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22589  fi
22590else
22591  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22592fi
22593need_lib_prefix=unknown
22594hardcode_into_libs=no
22595
22596# when you set need_version to no, make sure it does not cause -set_version
22597# flags to be left without arguments
22598need_version=unknown
22599
22600case $host_os in
22601aix3*)
22602  version_type=linux
22603  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22604  shlibpath_var=LIBPATH
22605
22606  # AIX 3 has no versioning support, so we append a major version to the name.
22607  soname_spec='${libname}${release}${shared_ext}$major'
22608  ;;
22609
22610aix4* | aix5*)
22611  version_type=linux
22612  need_lib_prefix=no
22613  need_version=no
22614  hardcode_into_libs=yes
22615  if test "$host_cpu" = ia64; then
22616    # AIX 5 supports IA64
22617    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22618    shlibpath_var=LD_LIBRARY_PATH
22619  else
22620    # With GCC up to 2.95.x, collect2 would create an import file
22621    # for dependence libraries.  The import file would start with
22622    # the line `#! .'.  This would cause the generated library to
22623    # depend on `.', always an invalid library.  This was fixed in
22624    # development snapshots of GCC prior to 3.0.
22625    case $host_os in
22626      aix4 | aix4.[01] | aix4.[01].*)
22627      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22628	   echo ' yes '
22629	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22630	:
22631      else
22632	can_build_shared=no
22633      fi
22634      ;;
22635    esac
22636    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22637    # soname into executable. Probably we can add versioning support to
22638    # collect2, so additional links can be useful in future.
22639    if test "$aix_use_runtimelinking" = yes; then
22640      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22641      # instead of lib<name>.a to let people know that these are not
22642      # typical AIX shared libraries.
22643      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22644    else
22645      # We preserve .a as extension for shared libraries through AIX4.2
22646      # and later when we are not doing run time linking.
22647      library_names_spec='${libname}${release}.a $libname.a'
22648      soname_spec='${libname}${release}${shared_ext}$major'
22649    fi
22650    shlibpath_var=LIBPATH
22651  fi
22652  ;;
22653
22654amigaos*)
22655  library_names_spec='$libname.ixlibrary $libname.a'
22656  # Create ${libname}_ixlibrary.a entries in /sys/libs.
22657  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'
22658  ;;
22659
22660beos*)
22661  library_names_spec='${libname}${shared_ext}'
22662  dynamic_linker="$host_os ld.so"
22663  shlibpath_var=LIBRARY_PATH
22664  ;;
22665
22666bsdi[45]*)
22667  version_type=linux
22668  need_version=no
22669  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22670  soname_spec='${libname}${release}${shared_ext}$major'
22671  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22672  shlibpath_var=LD_LIBRARY_PATH
22673  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22674  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22675  # the default ld.so.conf also contains /usr/contrib/lib and
22676  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22677  # libtool to hard-code these into programs
22678  ;;
22679
22680cygwin* | mingw* | pw32*)
22681  version_type=windows
22682  shrext_cmds=".dll"
22683  need_version=no
22684  need_lib_prefix=no
22685
22686  case $GCC,$host_os in
22687  yes,cygwin* | yes,mingw* | yes,pw32*)
22688    library_names_spec='$libname.dll.a'
22689    # DLL is installed to $(libdir)/../bin by postinstall_cmds
22690    postinstall_cmds='base_file=`basename \${file}`~
22691      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22692      dldir=$destdir/`dirname \$dlpath`~
22693      test -d \$dldir || mkdir -p \$dldir~
22694      $install_prog $dir/$dlname \$dldir/$dlname~
22695      chmod a+x \$dldir/$dlname'
22696    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22697      dlpath=$dir/\$dldll~
22698       $rm \$dlpath'
22699    shlibpath_overrides_runpath=yes
22700
22701    case $host_os in
22702    cygwin*)
22703      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22704      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22705      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22706      ;;
22707    mingw*)
22708      # MinGW DLLs use traditional 'lib' prefix
22709      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22710      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22711      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22712        # It is most probably a Windows format PATH printed by
22713        # mingw gcc, but we are running on Cygwin. Gcc prints its search
22714        # path with ; separators, and with drive letters. We can handle the
22715        # drive letters (cygwin fileutils understands them), so leave them,
22716        # especially as we might pass files found there to a mingw objdump,
22717        # which wouldn't understand a cygwinified path. Ahh.
22718        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22719      else
22720        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22721      fi
22722      ;;
22723    pw32*)
22724      # pw32 DLLs use 'pw' prefix rather than 'lib'
22725      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22726      ;;
22727    esac
22728    ;;
22729
22730  *)
22731    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22732    ;;
22733  esac
22734  dynamic_linker='Win32 ld.exe'
22735  # FIXME: first we should search . and the directory the executable is in
22736  shlibpath_var=PATH
22737  ;;
22738
22739darwin* | rhapsody*)
22740  dynamic_linker="$host_os dyld"
22741  version_type=darwin
22742  need_lib_prefix=no
22743  need_version=no
22744  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22745  soname_spec='${libname}${release}${major}$shared_ext'
22746  shlibpath_overrides_runpath=yes
22747  shlibpath_var=DYLD_LIBRARY_PATH
22748  shrext_cmds='.dylib'
22749  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22750  if test "$GCC" = yes; then
22751    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"`
22752  else
22753    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22754  fi
22755  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22756  ;;
22757
22758dgux*)
22759  version_type=linux
22760  need_lib_prefix=no
22761  need_version=no
22762  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22763  soname_spec='${libname}${release}${shared_ext}$major'
22764  shlibpath_var=LD_LIBRARY_PATH
22765  ;;
22766
22767freebsd1*)
22768  dynamic_linker=no
22769  ;;
22770
22771kfreebsd*-gnu)
22772  version_type=linux
22773  need_lib_prefix=no
22774  need_version=no
22775  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22776  soname_spec='${libname}${release}${shared_ext}$major'
22777  shlibpath_var=LD_LIBRARY_PATH
22778  shlibpath_overrides_runpath=no
22779  hardcode_into_libs=yes
22780  dynamic_linker='GNU ld.so'
22781  ;;
22782
22783freebsd* | dragonfly*)
22784  # DragonFly does not have aout.  When/if they implement a new
22785  # versioning mechanism, adjust this.
22786  if test -x /usr/bin/objformat; then
22787    objformat=`/usr/bin/objformat`
22788  else
22789    case $host_os in
22790    freebsd[123]*) objformat=aout ;;
22791    *) objformat=elf ;;
22792    esac
22793  fi
22794  version_type=freebsd-$objformat
22795  case $version_type in
22796    freebsd-elf*)
22797      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22798      need_version=no
22799      need_lib_prefix=no
22800      ;;
22801    freebsd-*)
22802      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22803      need_version=yes
22804      ;;
22805  esac
22806  shlibpath_var=LD_LIBRARY_PATH
22807  case $host_os in
22808  freebsd2*)
22809    shlibpath_overrides_runpath=yes
22810    ;;
22811  freebsd3.[01]* | freebsdelf3.[01]*)
22812    shlibpath_overrides_runpath=yes
22813    hardcode_into_libs=yes
22814    ;;
22815  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22816  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22817    shlibpath_overrides_runpath=no
22818    hardcode_into_libs=yes
22819    ;;
22820  freebsd*) # from 4.6 on
22821    shlibpath_overrides_runpath=yes
22822    hardcode_into_libs=yes
22823    ;;
22824  esac
22825  ;;
22826
22827gnu*)
22828  version_type=linux
22829  need_lib_prefix=no
22830  need_version=no
22831  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22832  soname_spec='${libname}${release}${shared_ext}$major'
22833  shlibpath_var=LD_LIBRARY_PATH
22834  hardcode_into_libs=yes
22835  ;;
22836
22837hpux9* | hpux10* | hpux11*)
22838  # Give a soname corresponding to the major version so that dld.sl refuses to
22839  # link against other versions.
22840  version_type=sunos
22841  need_lib_prefix=no
22842  need_version=no
22843  case $host_cpu in
22844  ia64*)
22845    shrext_cmds='.so'
22846    hardcode_into_libs=yes
22847    dynamic_linker="$host_os dld.so"
22848    shlibpath_var=LD_LIBRARY_PATH
22849    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22850    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22851    soname_spec='${libname}${release}${shared_ext}$major'
22852    if test "X$HPUX_IA64_MODE" = X32; then
22853      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22854    else
22855      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22856    fi
22857    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22858    ;;
22859   hppa*64*)
22860     shrext_cmds='.sl'
22861     hardcode_into_libs=yes
22862     dynamic_linker="$host_os dld.sl"
22863     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22864     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22865     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22866     soname_spec='${libname}${release}${shared_ext}$major'
22867     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22868     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22869     ;;
22870   *)
22871    shrext_cmds='.sl'
22872    dynamic_linker="$host_os dld.sl"
22873    shlibpath_var=SHLIB_PATH
22874    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22875    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22876    soname_spec='${libname}${release}${shared_ext}$major'
22877    ;;
22878  esac
22879  # HP-UX runs *really* slowly unless shared libraries are mode 555.
22880  postinstall_cmds='chmod 555 $lib'
22881  ;;
22882
22883interix3*)
22884  version_type=linux
22885  need_lib_prefix=no
22886  need_version=no
22887  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22888  soname_spec='${libname}${release}${shared_ext}$major'
22889  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22890  shlibpath_var=LD_LIBRARY_PATH
22891  shlibpath_overrides_runpath=no
22892  hardcode_into_libs=yes
22893  ;;
22894
22895irix5* | irix6* | nonstopux*)
22896  case $host_os in
22897    nonstopux*) version_type=nonstopux ;;
22898    *)
22899	if test "$lt_cv_prog_gnu_ld" = yes; then
22900		version_type=linux
22901	else
22902		version_type=irix
22903	fi ;;
22904  esac
22905  need_lib_prefix=no
22906  need_version=no
22907  soname_spec='${libname}${release}${shared_ext}$major'
22908  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22909  case $host_os in
22910  irix5* | nonstopux*)
22911    libsuff= shlibsuff=
22912    ;;
22913  *)
22914    case $LD in # libtool.m4 will add one of these switches to LD
22915    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22916      libsuff= shlibsuff= libmagic=32-bit;;
22917    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22918      libsuff=32 shlibsuff=N32 libmagic=N32;;
22919    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22920      libsuff=64 shlibsuff=64 libmagic=64-bit;;
22921    *) libsuff= shlibsuff= libmagic=never-match;;
22922    esac
22923    ;;
22924  esac
22925  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22926  shlibpath_overrides_runpath=no
22927  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22928  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22929  hardcode_into_libs=yes
22930  ;;
22931
22932# No shared lib support for Linux oldld, aout, or coff.
22933linux*oldld* | linux*aout* | linux*coff*)
22934  dynamic_linker=no
22935  ;;
22936
22937# This must be Linux ELF.
22938linux*)
22939  version_type=linux
22940  need_lib_prefix=no
22941  need_version=no
22942  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22943  soname_spec='${libname}${release}${shared_ext}$major'
22944  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22945  shlibpath_var=LD_LIBRARY_PATH
22946  shlibpath_overrides_runpath=no
22947  # This implies no fast_install, which is unacceptable.
22948  # Some rework will be needed to allow for fast_install
22949  # before this can be enabled.
22950  hardcode_into_libs=yes
22951
22952  # Append ld.so.conf contents to the search path
22953  if test -f /etc/ld.so.conf; then
22954    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' ' '`
22955    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22956  fi
22957
22958  # We used to test for /lib/ld.so.1 and disable shared libraries on
22959  # powerpc, because MkLinux only supported shared libraries with the
22960  # GNU dynamic linker.  Since this was broken with cross compilers,
22961  # most powerpc-linux boxes support dynamic linking these days and
22962  # people can always --disable-shared, the test was removed, and we
22963  # assume the GNU/Linux dynamic linker is in use.
22964  dynamic_linker='GNU/Linux ld.so'
22965  ;;
22966
22967knetbsd*-gnu)
22968  version_type=linux
22969  need_lib_prefix=no
22970  need_version=no
22971  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22972  soname_spec='${libname}${release}${shared_ext}$major'
22973  shlibpath_var=LD_LIBRARY_PATH
22974  shlibpath_overrides_runpath=no
22975  hardcode_into_libs=yes
22976  dynamic_linker='GNU ld.so'
22977  ;;
22978
22979netbsd*)
22980  version_type=sunos
22981  need_lib_prefix=no
22982  need_version=no
22983  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22984    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22985    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22986    dynamic_linker='NetBSD (a.out) ld.so'
22987  else
22988    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22989    soname_spec='${libname}${release}${shared_ext}$major'
22990    dynamic_linker='NetBSD ld.elf_so'
22991  fi
22992  shlibpath_var=LD_LIBRARY_PATH
22993  shlibpath_overrides_runpath=yes
22994  hardcode_into_libs=yes
22995  ;;
22996
22997newsos6)
22998  version_type=linux
22999  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23000  shlibpath_var=LD_LIBRARY_PATH
23001  shlibpath_overrides_runpath=yes
23002  ;;
23003
23004nto-qnx*)
23005  version_type=linux
23006  need_lib_prefix=no
23007  need_version=no
23008  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23009  soname_spec='${libname}${release}${shared_ext}$major'
23010  shlibpath_var=LD_LIBRARY_PATH
23011  shlibpath_overrides_runpath=yes
23012  ;;
23013
23014openbsd*)
23015  version_type=sunos
23016  sys_lib_dlsearch_path_spec="/usr/lib"
23017  need_lib_prefix=no
23018  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23019  case $host_os in
23020    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23021    *)                         need_version=no  ;;
23022  esac
23023  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23024  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23025  shlibpath_var=LD_LIBRARY_PATH
23026  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23027    case $host_os in
23028      openbsd2.[89] | openbsd2.[89].*)
23029	shlibpath_overrides_runpath=no
23030	;;
23031      *)
23032	shlibpath_overrides_runpath=yes
23033	;;
23034      esac
23035  else
23036    shlibpath_overrides_runpath=yes
23037  fi
23038  ;;
23039
23040os2*)
23041  libname_spec='$name'
23042  shrext_cmds=".dll"
23043  need_lib_prefix=no
23044  library_names_spec='$libname${shared_ext} $libname.a'
23045  dynamic_linker='OS/2 ld.exe'
23046  shlibpath_var=LIBPATH
23047  ;;
23048
23049osf3* | osf4* | osf5*)
23050  version_type=osf
23051  need_lib_prefix=no
23052  need_version=no
23053  soname_spec='${libname}${release}${shared_ext}$major'
23054  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23055  shlibpath_var=LD_LIBRARY_PATH
23056  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23057  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23058  ;;
23059
23060solaris*)
23061  version_type=linux
23062  need_lib_prefix=no
23063  need_version=no
23064  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23065  soname_spec='${libname}${release}${shared_ext}$major'
23066  shlibpath_var=LD_LIBRARY_PATH
23067  shlibpath_overrides_runpath=yes
23068  hardcode_into_libs=yes
23069  # ldd complains unless libraries are executable
23070  postinstall_cmds='chmod +x $lib'
23071  ;;
23072
23073sunos4*)
23074  version_type=sunos
23075  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23076  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23077  shlibpath_var=LD_LIBRARY_PATH
23078  shlibpath_overrides_runpath=yes
23079  if test "$with_gnu_ld" = yes; then
23080    need_lib_prefix=no
23081  fi
23082  need_version=yes
23083  ;;
23084
23085sysv4 | sysv4.3*)
23086  version_type=linux
23087  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23088  soname_spec='${libname}${release}${shared_ext}$major'
23089  shlibpath_var=LD_LIBRARY_PATH
23090  case $host_vendor in
23091    sni)
23092      shlibpath_overrides_runpath=no
23093      need_lib_prefix=no
23094      export_dynamic_flag_spec='${wl}-Blargedynsym'
23095      runpath_var=LD_RUN_PATH
23096      ;;
23097    siemens)
23098      need_lib_prefix=no
23099      ;;
23100    motorola)
23101      need_lib_prefix=no
23102      need_version=no
23103      shlibpath_overrides_runpath=no
23104      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23105      ;;
23106  esac
23107  ;;
23108
23109sysv4*MP*)
23110  if test -d /usr/nec ;then
23111    version_type=linux
23112    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23113    soname_spec='$libname${shared_ext}.$major'
23114    shlibpath_var=LD_LIBRARY_PATH
23115  fi
23116  ;;
23117
23118sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23119  version_type=freebsd-elf
23120  need_lib_prefix=no
23121  need_version=no
23122  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23123  soname_spec='${libname}${release}${shared_ext}$major'
23124  shlibpath_var=LD_LIBRARY_PATH
23125  hardcode_into_libs=yes
23126  if test "$with_gnu_ld" = yes; then
23127    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23128    shlibpath_overrides_runpath=no
23129  else
23130    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23131    shlibpath_overrides_runpath=yes
23132    case $host_os in
23133      sco3.2v5*)
23134        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23135	;;
23136    esac
23137  fi
23138  sys_lib_dlsearch_path_spec='/usr/lib'
23139  ;;
23140
23141uts4*)
23142  version_type=linux
23143  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23144  soname_spec='${libname}${release}${shared_ext}$major'
23145  shlibpath_var=LD_LIBRARY_PATH
23146  ;;
23147
23148*)
23149  dynamic_linker=no
23150  ;;
23151esac
23152{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23153echo "${ECHO_T}$dynamic_linker" >&6; }
23154test "$dynamic_linker" = no && can_build_shared=no
23155
23156variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23157if test "$GCC" = yes; then
23158  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23159fi
23160
23161{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23162echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23163hardcode_action_F77=
23164if test -n "$hardcode_libdir_flag_spec_F77" || \
23165   test -n "$runpath_var_F77" || \
23166   test "X$hardcode_automatic_F77" = "Xyes" ; then
23167
23168  # We can hardcode non-existant directories.
23169  if test "$hardcode_direct_F77" != no &&
23170     # If the only mechanism to avoid hardcoding is shlibpath_var, we
23171     # have to relink, otherwise we might link with an installed library
23172     # when we should be linking with a yet-to-be-installed one
23173     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23174     test "$hardcode_minus_L_F77" != no; then
23175    # Linking always hardcodes the temporary library directory.
23176    hardcode_action_F77=relink
23177  else
23178    # We can link without hardcoding, and we can hardcode nonexisting dirs.
23179    hardcode_action_F77=immediate
23180  fi
23181else
23182  # We cannot hardcode anything, or else we can only hardcode existing
23183  # directories.
23184  hardcode_action_F77=unsupported
23185fi
23186{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23187echo "${ECHO_T}$hardcode_action_F77" >&6; }
23188
23189if test "$hardcode_action_F77" = relink; then
23190  # Fast installation is not supported
23191  enable_fast_install=no
23192elif test "$shlibpath_overrides_runpath" = yes ||
23193     test "$enable_shared" = no; then
23194  # Fast installation is not necessary
23195  enable_fast_install=needless
23196fi
23197
23198
23199# The else clause should only fire when bootstrapping the
23200# libtool distribution, otherwise you forgot to ship ltmain.sh
23201# with your package, and you will get complaints that there are
23202# no rules to generate ltmain.sh.
23203if test -f "$ltmain"; then
23204  # See if we are running on zsh, and set the options which allow our commands through
23205  # without removal of \ escapes.
23206  if test -n "${ZSH_VERSION+set}" ; then
23207    setopt NO_GLOB_SUBST
23208  fi
23209  # Now quote all the things that may contain metacharacters while being
23210  # careful not to overquote the AC_SUBSTed values.  We take copies of the
23211  # variables and quote the copies for generation of the libtool script.
23212  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23213    SED SHELL STRIP \
23214    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23215    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23216    deplibs_check_method reload_flag reload_cmds need_locks \
23217    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23218    lt_cv_sys_global_symbol_to_c_name_address \
23219    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23220    old_postinstall_cmds old_postuninstall_cmds \
23221    compiler_F77 \
23222    CC_F77 \
23223    LD_F77 \
23224    lt_prog_compiler_wl_F77 \
23225    lt_prog_compiler_pic_F77 \
23226    lt_prog_compiler_static_F77 \
23227    lt_prog_compiler_no_builtin_flag_F77 \
23228    export_dynamic_flag_spec_F77 \
23229    thread_safe_flag_spec_F77 \
23230    whole_archive_flag_spec_F77 \
23231    enable_shared_with_static_runtimes_F77 \
23232    old_archive_cmds_F77 \
23233    old_archive_from_new_cmds_F77 \
23234    predep_objects_F77 \
23235    postdep_objects_F77 \
23236    predeps_F77 \
23237    postdeps_F77 \
23238    compiler_lib_search_path_F77 \
23239    archive_cmds_F77 \
23240    archive_expsym_cmds_F77 \
23241    postinstall_cmds_F77 \
23242    postuninstall_cmds_F77 \
23243    old_archive_from_expsyms_cmds_F77 \
23244    allow_undefined_flag_F77 \
23245    no_undefined_flag_F77 \
23246    export_symbols_cmds_F77 \
23247    hardcode_libdir_flag_spec_F77 \
23248    hardcode_libdir_flag_spec_ld_F77 \
23249    hardcode_libdir_separator_F77 \
23250    hardcode_automatic_F77 \
23251    module_cmds_F77 \
23252    module_expsym_cmds_F77 \
23253    lt_cv_prog_compiler_c_o_F77 \
23254    exclude_expsyms_F77 \
23255    include_expsyms_F77; do
23256
23257    case $var in
23258    old_archive_cmds_F77 | \
23259    old_archive_from_new_cmds_F77 | \
23260    archive_cmds_F77 | \
23261    archive_expsym_cmds_F77 | \
23262    module_cmds_F77 | \
23263    module_expsym_cmds_F77 | \
23264    old_archive_from_expsyms_cmds_F77 | \
23265    export_symbols_cmds_F77 | \
23266    extract_expsyms_cmds | reload_cmds | finish_cmds | \
23267    postinstall_cmds | postuninstall_cmds | \
23268    old_postinstall_cmds | old_postuninstall_cmds | \
23269    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23270      # Double-quote double-evaled strings.
23271      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23272      ;;
23273    *)
23274      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23275      ;;
23276    esac
23277  done
23278
23279  case $lt_echo in
23280  *'\$0 --fallback-echo"')
23281    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23282    ;;
23283  esac
23284
23285cfgfile="$ofile"
23286
23287  cat <<__EOF__ >> "$cfgfile"
23288# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23289
23290# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23291
23292# Shell to use when invoking shell scripts.
23293SHELL=$lt_SHELL
23294
23295# Whether or not to build shared libraries.
23296build_libtool_libs=$enable_shared
23297
23298# Whether or not to build static libraries.
23299build_old_libs=$enable_static
23300
23301# Whether or not to add -lc for building shared libraries.
23302build_libtool_need_lc=$archive_cmds_need_lc_F77
23303
23304# Whether or not to disallow shared libs when runtime libs are static
23305allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23306
23307# Whether or not to optimize for fast installation.
23308fast_install=$enable_fast_install
23309
23310# The host system.
23311host_alias=$host_alias
23312host=$host
23313host_os=$host_os
23314
23315# The build system.
23316build_alias=$build_alias
23317build=$build
23318build_os=$build_os
23319
23320# An echo program that does not interpret backslashes.
23321echo=$lt_echo
23322
23323# The archiver.
23324AR=$lt_AR
23325AR_FLAGS=$lt_AR_FLAGS
23326
23327# A C compiler.
23328LTCC=$lt_LTCC
23329
23330# LTCC compiler flags.
23331LTCFLAGS=$lt_LTCFLAGS
23332
23333# A language-specific compiler.
23334CC=$lt_compiler_F77
23335
23336# Is the compiler the GNU C compiler?
23337with_gcc=$GCC_F77
23338
23339# An ERE matcher.
23340EGREP=$lt_EGREP
23341
23342# The linker used to build libraries.
23343LD=$lt_LD_F77
23344
23345# Whether we need hard or soft links.
23346LN_S=$lt_LN_S
23347
23348# A BSD-compatible nm program.
23349NM=$lt_NM
23350
23351# A symbol stripping program
23352STRIP=$lt_STRIP
23353
23354# Used to examine libraries when file_magic_cmd begins "file"
23355MAGIC_CMD=$MAGIC_CMD
23356
23357# Used on cygwin: DLL creation program.
23358DLLTOOL="$DLLTOOL"
23359
23360# Used on cygwin: object dumper.
23361OBJDUMP="$OBJDUMP"
23362
23363# Used on cygwin: assembler.
23364AS="$AS"
23365
23366# The name of the directory that contains temporary libtool files.
23367objdir=$objdir
23368
23369# How to create reloadable object files.
23370reload_flag=$lt_reload_flag
23371reload_cmds=$lt_reload_cmds
23372
23373# How to pass a linker flag through the compiler.
23374wl=$lt_lt_prog_compiler_wl_F77
23375
23376# Object file suffix (normally "o").
23377objext="$ac_objext"
23378
23379# Old archive suffix (normally "a").
23380libext="$libext"
23381
23382# Shared library suffix (normally ".so").
23383shrext_cmds='$shrext_cmds'
23384
23385# Executable file suffix (normally "").
23386exeext="$exeext"
23387
23388# Additional compiler flags for building library objects.
23389pic_flag=$lt_lt_prog_compiler_pic_F77
23390pic_mode=$pic_mode
23391
23392# What is the maximum length of a command?
23393max_cmd_len=$lt_cv_sys_max_cmd_len
23394
23395# Does compiler simultaneously support -c and -o options?
23396compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23397
23398# Must we lock files when doing compilation?
23399need_locks=$lt_need_locks
23400
23401# Do we need the lib prefix for modules?
23402need_lib_prefix=$need_lib_prefix
23403
23404# Do we need a version for libraries?
23405need_version=$need_version
23406
23407# Whether dlopen is supported.
23408dlopen_support=$enable_dlopen
23409
23410# Whether dlopen of programs is supported.
23411dlopen_self=$enable_dlopen_self
23412
23413# Whether dlopen of statically linked programs is supported.
23414dlopen_self_static=$enable_dlopen_self_static
23415
23416# Compiler flag to prevent dynamic linking.
23417link_static_flag=$lt_lt_prog_compiler_static_F77
23418
23419# Compiler flag to turn off builtin functions.
23420no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23421
23422# Compiler flag to allow reflexive dlopens.
23423export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23424
23425# Compiler flag to generate shared objects directly from archives.
23426whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23427
23428# Compiler flag to generate thread-safe objects.
23429thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23430
23431# Library versioning type.
23432version_type=$version_type
23433
23434# Format of library name prefix.
23435libname_spec=$lt_libname_spec
23436
23437# List of archive names.  First name is the real one, the rest are links.
23438# The last name is the one that the linker finds with -lNAME.
23439library_names_spec=$lt_library_names_spec
23440
23441# The coded name of the library, if different from the real name.
23442soname_spec=$lt_soname_spec
23443
23444# Commands used to build and install an old-style archive.
23445RANLIB=$lt_RANLIB
23446old_archive_cmds=$lt_old_archive_cmds_F77
23447old_postinstall_cmds=$lt_old_postinstall_cmds
23448old_postuninstall_cmds=$lt_old_postuninstall_cmds
23449
23450# Create an old-style archive from a shared archive.
23451old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23452
23453# Create a temporary old-style archive to link instead of a shared archive.
23454old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23455
23456# Commands used to build and install a shared archive.
23457archive_cmds=$lt_archive_cmds_F77
23458archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23459postinstall_cmds=$lt_postinstall_cmds
23460postuninstall_cmds=$lt_postuninstall_cmds
23461
23462# Commands used to build a loadable module (assumed same as above if empty)
23463module_cmds=$lt_module_cmds_F77
23464module_expsym_cmds=$lt_module_expsym_cmds_F77
23465
23466# Commands to strip libraries.
23467old_striplib=$lt_old_striplib
23468striplib=$lt_striplib
23469
23470# Dependencies to place before the objects being linked to create a
23471# shared library.
23472predep_objects=$lt_predep_objects_F77
23473
23474# Dependencies to place after the objects being linked to create a
23475# shared library.
23476postdep_objects=$lt_postdep_objects_F77
23477
23478# Dependencies to place before the objects being linked to create a
23479# shared library.
23480predeps=$lt_predeps_F77
23481
23482# Dependencies to place after the objects being linked to create a
23483# shared library.
23484postdeps=$lt_postdeps_F77
23485
23486# The library search path used internally by the compiler when linking
23487# a shared library.
23488compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23489
23490# Method to check whether dependent libraries are shared objects.
23491deplibs_check_method=$lt_deplibs_check_method
23492
23493# Command to use when deplibs_check_method == file_magic.
23494file_magic_cmd=$lt_file_magic_cmd
23495
23496# Flag that allows shared libraries with undefined symbols to be built.
23497allow_undefined_flag=$lt_allow_undefined_flag_F77
23498
23499# Flag that forces no undefined symbols.
23500no_undefined_flag=$lt_no_undefined_flag_F77
23501
23502# Commands used to finish a libtool library installation in a directory.
23503finish_cmds=$lt_finish_cmds
23504
23505# Same as above, but a single script fragment to be evaled but not shown.
23506finish_eval=$lt_finish_eval
23507
23508# Take the output of nm and produce a listing of raw symbols and C names.
23509global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23510
23511# Transform the output of nm in a proper C declaration
23512global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23513
23514# Transform the output of nm in a C name address pair
23515global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23516
23517# This is the shared library runtime path variable.
23518runpath_var=$runpath_var
23519
23520# This is the shared library path variable.
23521shlibpath_var=$shlibpath_var
23522
23523# Is shlibpath searched before the hard-coded library search path?
23524shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23525
23526# How to hardcode a shared library path into an executable.
23527hardcode_action=$hardcode_action_F77
23528
23529# Whether we should hardcode library paths into libraries.
23530hardcode_into_libs=$hardcode_into_libs
23531
23532# Flag to hardcode \$libdir into a binary during linking.
23533# This must work even if \$libdir does not exist.
23534hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23535
23536# If ld is used when linking, flag to hardcode \$libdir into
23537# a binary during linking. This must work even if \$libdir does
23538# not exist.
23539hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23540
23541# Whether we need a single -rpath flag with a separated argument.
23542hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23543
23544# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23545# resulting binary.
23546hardcode_direct=$hardcode_direct_F77
23547
23548# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23549# resulting binary.
23550hardcode_minus_L=$hardcode_minus_L_F77
23551
23552# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23553# the resulting binary.
23554hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23555
23556# Set to yes if building a shared library automatically hardcodes DIR into the library
23557# and all subsequent libraries and executables linked against it.
23558hardcode_automatic=$hardcode_automatic_F77
23559
23560# Variables whose values should be saved in libtool wrapper scripts and
23561# restored at relink time.
23562variables_saved_for_relink="$variables_saved_for_relink"
23563
23564# Whether libtool must link a program against all its dependency libraries.
23565link_all_deplibs=$link_all_deplibs_F77
23566
23567# Compile-time system search path for libraries
23568sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23569
23570# Run-time system search path for libraries
23571sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23572
23573# Fix the shell variable \$srcfile for the compiler.
23574fix_srcfile_path="$fix_srcfile_path_F77"
23575
23576# Set to yes if exported symbols are required.
23577always_export_symbols=$always_export_symbols_F77
23578
23579# The commands to list exported symbols.
23580export_symbols_cmds=$lt_export_symbols_cmds_F77
23581
23582# The commands to extract the exported symbol list from a shared archive.
23583extract_expsyms_cmds=$lt_extract_expsyms_cmds
23584
23585# Symbols that should not be listed in the preloaded symbols.
23586exclude_expsyms=$lt_exclude_expsyms_F77
23587
23588# Symbols that must always be exported.
23589include_expsyms=$lt_include_expsyms_F77
23590
23591# ### END LIBTOOL TAG CONFIG: $tagname
23592
23593__EOF__
23594
23595
23596else
23597  # If there is no Makefile yet, we rely on a make rule to execute
23598  # `config.status --recheck' to rerun these tests and create the
23599  # libtool script then.
23600  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23601  if test -f "$ltmain_in"; then
23602    test -f Makefile && make "$ltmain"
23603  fi
23604fi
23605
23606
23607ac_ext=c
23608ac_cpp='$CPP $CPPFLAGS'
23609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23611ac_compiler_gnu=$ac_cv_c_compiler_gnu
23612
23613CC="$lt_save_CC"
23614
23615	else
23616	  tagname=""
23617	fi
23618	;;
23619
23620      GCJ)
23621	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23622	  ac_ext=c
23623ac_cpp='$CPP $CPPFLAGS'
23624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23626ac_compiler_gnu=$ac_cv_c_compiler_gnu
23627
23628
23629# Source file extension for Java test sources.
23630ac_ext=java
23631
23632# Object file extension for compiled Java test sources.
23633objext=o
23634objext_GCJ=$objext
23635
23636# Code to be used in simple compile tests
23637lt_simple_compile_test_code="class foo {}\n"
23638
23639# Code to be used in simple link tests
23640lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23641
23642# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23643
23644# If no C compiler was specified, use CC.
23645LTCC=${LTCC-"$CC"}
23646
23647# If no C compiler flags were specified, use CFLAGS.
23648LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23649
23650# Allow CC to be a program name with arguments.
23651compiler=$CC
23652
23653
23654# save warnings/boilerplate of simple test code
23655ac_outfile=conftest.$ac_objext
23656printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23657eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23658_lt_compiler_boilerplate=`cat conftest.err`
23659$rm conftest*
23660
23661ac_outfile=conftest.$ac_objext
23662printf "$lt_simple_link_test_code" >conftest.$ac_ext
23663eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23664_lt_linker_boilerplate=`cat conftest.err`
23665$rm conftest*
23666
23667
23668# Allow CC to be a program name with arguments.
23669lt_save_CC="$CC"
23670CC=${GCJ-"gcj"}
23671compiler=$CC
23672compiler_GCJ=$CC
23673for cc_temp in $compiler""; do
23674  case $cc_temp in
23675    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23676    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23677    \-*) ;;
23678    *) break;;
23679  esac
23680done
23681cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23682
23683
23684# GCJ did not exist at the time GCC didn't implicitly link libc in.
23685archive_cmds_need_lc_GCJ=no
23686
23687old_archive_cmds_GCJ=$old_archive_cmds
23688
23689
23690lt_prog_compiler_no_builtin_flag_GCJ=
23691
23692if test "$GCC" = yes; then
23693  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23694
23695
23696{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23697echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23698if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23699  echo $ECHO_N "(cached) $ECHO_C" >&6
23700else
23701  lt_cv_prog_compiler_rtti_exceptions=no
23702  ac_outfile=conftest.$ac_objext
23703   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23704   lt_compiler_flag="-fno-rtti -fno-exceptions"
23705   # Insert the option either (1) after the last *FLAGS variable, or
23706   # (2) before a word containing "conftest.", or (3) at the end.
23707   # Note that $ac_compile itself does not contain backslashes and begins
23708   # with a dollar sign (not a hyphen), so the echo should work correctly.
23709   # The option is referenced via a variable to avoid confusing sed.
23710   lt_compile=`echo "$ac_compile" | $SED \
23711   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23712   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23713   -e 's:$: $lt_compiler_flag:'`
23714   (eval echo "\"\$as_me:23714: $lt_compile\"" >&5)
23715   (eval "$lt_compile" 2>conftest.err)
23716   ac_status=$?
23717   cat conftest.err >&5
23718   echo "$as_me:23718: \$? = $ac_status" >&5
23719   if (exit $ac_status) && test -s "$ac_outfile"; then
23720     # The compiler can only warn and ignore the option if not recognized
23721     # So say no if there are warnings other than the usual output.
23722     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23723     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23724     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23725       lt_cv_prog_compiler_rtti_exceptions=yes
23726     fi
23727   fi
23728   $rm conftest*
23729
23730fi
23731{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23732echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23733
23734if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23735    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23736else
23737    :
23738fi
23739
23740fi
23741
23742lt_prog_compiler_wl_GCJ=
23743lt_prog_compiler_pic_GCJ=
23744lt_prog_compiler_static_GCJ=
23745
23746{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23747echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23748
23749  if test "$GCC" = yes; then
23750    lt_prog_compiler_wl_GCJ='-Wl,'
23751    lt_prog_compiler_static_GCJ='-static'
23752
23753    case $host_os in
23754      aix*)
23755      # All AIX code is PIC.
23756      if test "$host_cpu" = ia64; then
23757	# AIX 5 now supports IA64 processor
23758	lt_prog_compiler_static_GCJ='-Bstatic'
23759      fi
23760      ;;
23761
23762    amigaos*)
23763      # FIXME: we need at least 68020 code to build shared libraries, but
23764      # adding the `-m68020' flag to GCC prevents building anything better,
23765      # like `-m68040'.
23766      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23767      ;;
23768
23769    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23770      # PIC is the default for these OSes.
23771      ;;
23772
23773    mingw* | pw32* | os2*)
23774      # This hack is so that the source file can tell whether it is being
23775      # built for inclusion in a dll (and should export symbols for example).
23776      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23777      ;;
23778
23779    darwin* | rhapsody*)
23780      # PIC is the default on this platform
23781      # Common symbols not allowed in MH_DYLIB files
23782      lt_prog_compiler_pic_GCJ='-fno-common'
23783      ;;
23784
23785    interix3*)
23786      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23787      # Instead, we relocate shared libraries at runtime.
23788      ;;
23789
23790    msdosdjgpp*)
23791      # Just because we use GCC doesn't mean we suddenly get shared libraries
23792      # on systems that don't support them.
23793      lt_prog_compiler_can_build_shared_GCJ=no
23794      enable_shared=no
23795      ;;
23796
23797    sysv4*MP*)
23798      if test -d /usr/nec; then
23799	lt_prog_compiler_pic_GCJ=-Kconform_pic
23800      fi
23801      ;;
23802
23803    hpux*)
23804      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23805      # not for PA HP-UX.
23806      case $host_cpu in
23807      hppa*64*|ia64*)
23808	# +Z the default
23809	;;
23810      *)
23811	lt_prog_compiler_pic_GCJ='-fPIC'
23812	;;
23813      esac
23814      ;;
23815
23816    *)
23817      lt_prog_compiler_pic_GCJ='-fPIC'
23818      ;;
23819    esac
23820  else
23821    # PORTME Check for flag to pass linker flags through the system compiler.
23822    case $host_os in
23823    aix*)
23824      lt_prog_compiler_wl_GCJ='-Wl,'
23825      if test "$host_cpu" = ia64; then
23826	# AIX 5 now supports IA64 processor
23827	lt_prog_compiler_static_GCJ='-Bstatic'
23828      else
23829	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23830      fi
23831      ;;
23832      darwin*)
23833        # PIC is the default on this platform
23834        # Common symbols not allowed in MH_DYLIB files
23835       case $cc_basename in
23836         xlc*)
23837         lt_prog_compiler_pic_GCJ='-qnocommon'
23838         lt_prog_compiler_wl_GCJ='-Wl,'
23839         ;;
23840       esac
23841       ;;
23842
23843    mingw* | pw32* | os2*)
23844      # This hack is so that the source file can tell whether it is being
23845      # built for inclusion in a dll (and should export symbols for example).
23846      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23847      ;;
23848
23849    hpux9* | hpux10* | hpux11*)
23850      lt_prog_compiler_wl_GCJ='-Wl,'
23851      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23852      # not for PA HP-UX.
23853      case $host_cpu in
23854      hppa*64*|ia64*)
23855	# +Z the default
23856	;;
23857      *)
23858	lt_prog_compiler_pic_GCJ='+Z'
23859	;;
23860      esac
23861      # Is there a better lt_prog_compiler_static that works with the bundled CC?
23862      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23863      ;;
23864
23865    irix5* | irix6* | nonstopux*)
23866      lt_prog_compiler_wl_GCJ='-Wl,'
23867      # PIC (with -KPIC) is the default.
23868      lt_prog_compiler_static_GCJ='-non_shared'
23869      ;;
23870
23871    newsos6)
23872      lt_prog_compiler_pic_GCJ='-KPIC'
23873      lt_prog_compiler_static_GCJ='-Bstatic'
23874      ;;
23875
23876    linux*)
23877      case $cc_basename in
23878      icc* | ecc*)
23879	lt_prog_compiler_wl_GCJ='-Wl,'
23880	lt_prog_compiler_pic_GCJ='-KPIC'
23881	lt_prog_compiler_static_GCJ='-static'
23882        ;;
23883      pgcc* | pgf77* | pgf90* | pgf95*)
23884        # Portland Group compilers (*not* the Pentium gcc compiler,
23885	# which looks to be a dead project)
23886	lt_prog_compiler_wl_GCJ='-Wl,'
23887	lt_prog_compiler_pic_GCJ='-fpic'
23888	lt_prog_compiler_static_GCJ='-Bstatic'
23889        ;;
23890      ccc*)
23891        lt_prog_compiler_wl_GCJ='-Wl,'
23892        # All Alpha code is PIC.
23893        lt_prog_compiler_static_GCJ='-non_shared'
23894        ;;
23895      esac
23896      ;;
23897
23898    osf3* | osf4* | osf5*)
23899      lt_prog_compiler_wl_GCJ='-Wl,'
23900      # All OSF/1 code is PIC.
23901      lt_prog_compiler_static_GCJ='-non_shared'
23902      ;;
23903
23904    solaris*)
23905      lt_prog_compiler_pic_GCJ='-KPIC'
23906      lt_prog_compiler_static_GCJ='-Bstatic'
23907      case $cc_basename in
23908      f77* | f90* | f95*)
23909	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23910      *)
23911	lt_prog_compiler_wl_GCJ='-Wl,';;
23912      esac
23913      ;;
23914
23915    sunos4*)
23916      lt_prog_compiler_wl_GCJ='-Qoption ld '
23917      lt_prog_compiler_pic_GCJ='-PIC'
23918      lt_prog_compiler_static_GCJ='-Bstatic'
23919      ;;
23920
23921    sysv4 | sysv4.2uw2* | sysv4.3*)
23922      lt_prog_compiler_wl_GCJ='-Wl,'
23923      lt_prog_compiler_pic_GCJ='-KPIC'
23924      lt_prog_compiler_static_GCJ='-Bstatic'
23925      ;;
23926
23927    sysv4*MP*)
23928      if test -d /usr/nec ;then
23929	lt_prog_compiler_pic_GCJ='-Kconform_pic'
23930	lt_prog_compiler_static_GCJ='-Bstatic'
23931      fi
23932      ;;
23933
23934    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23935      lt_prog_compiler_wl_GCJ='-Wl,'
23936      lt_prog_compiler_pic_GCJ='-KPIC'
23937      lt_prog_compiler_static_GCJ='-Bstatic'
23938      ;;
23939
23940    unicos*)
23941      lt_prog_compiler_wl_GCJ='-Wl,'
23942      lt_prog_compiler_can_build_shared_GCJ=no
23943      ;;
23944
23945    uts4*)
23946      lt_prog_compiler_pic_GCJ='-pic'
23947      lt_prog_compiler_static_GCJ='-Bstatic'
23948      ;;
23949
23950    *)
23951      lt_prog_compiler_can_build_shared_GCJ=no
23952      ;;
23953    esac
23954  fi
23955
23956{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23957echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23958
23959#
23960# Check to make sure the PIC flag actually works.
23961#
23962if test -n "$lt_prog_compiler_pic_GCJ"; then
23963
23964{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23965echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23966if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23967  echo $ECHO_N "(cached) $ECHO_C" >&6
23968else
23969  lt_prog_compiler_pic_works_GCJ=no
23970  ac_outfile=conftest.$ac_objext
23971   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23972   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23973   # Insert the option either (1) after the last *FLAGS variable, or
23974   # (2) before a word containing "conftest.", or (3) at the end.
23975   # Note that $ac_compile itself does not contain backslashes and begins
23976   # with a dollar sign (not a hyphen), so the echo should work correctly.
23977   # The option is referenced via a variable to avoid confusing sed.
23978   lt_compile=`echo "$ac_compile" | $SED \
23979   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23980   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23981   -e 's:$: $lt_compiler_flag:'`
23982   (eval echo "\"\$as_me:23982: $lt_compile\"" >&5)
23983   (eval "$lt_compile" 2>conftest.err)
23984   ac_status=$?
23985   cat conftest.err >&5
23986   echo "$as_me:23986: \$? = $ac_status" >&5
23987   if (exit $ac_status) && test -s "$ac_outfile"; then
23988     # The compiler can only warn and ignore the option if not recognized
23989     # So say no if there are warnings other than the usual output.
23990     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23991     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23992     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23993       lt_prog_compiler_pic_works_GCJ=yes
23994     fi
23995   fi
23996   $rm conftest*
23997
23998fi
23999{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24000echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24001
24002if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24003    case $lt_prog_compiler_pic_GCJ in
24004     "" | " "*) ;;
24005     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24006     esac
24007else
24008    lt_prog_compiler_pic_GCJ=
24009     lt_prog_compiler_can_build_shared_GCJ=no
24010fi
24011
24012fi
24013case $host_os in
24014  # For platforms which do not support PIC, -DPIC is meaningless:
24015  *djgpp*)
24016    lt_prog_compiler_pic_GCJ=
24017    ;;
24018  *)
24019    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24020    ;;
24021esac
24022
24023#
24024# Check to make sure the static flag actually works.
24025#
24026wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24027{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24028echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24029if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24030  echo $ECHO_N "(cached) $ECHO_C" >&6
24031else
24032  lt_prog_compiler_static_works_GCJ=no
24033   save_LDFLAGS="$LDFLAGS"
24034   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24035   printf "$lt_simple_link_test_code" > conftest.$ac_ext
24036   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24037     # The linker can only warn and ignore the option if not recognized
24038     # So say no if there are warnings
24039     if test -s conftest.err; then
24040       # Append any errors to the config.log.
24041       cat conftest.err 1>&5
24042       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24043       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24044       if diff conftest.exp conftest.er2 >/dev/null; then
24045         lt_prog_compiler_static_works_GCJ=yes
24046       fi
24047     else
24048       lt_prog_compiler_static_works_GCJ=yes
24049     fi
24050   fi
24051   $rm conftest*
24052   LDFLAGS="$save_LDFLAGS"
24053
24054fi
24055{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24056echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24057
24058if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24059    :
24060else
24061    lt_prog_compiler_static_GCJ=
24062fi
24063
24064
24065{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24066echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24067if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24068  echo $ECHO_N "(cached) $ECHO_C" >&6
24069else
24070  lt_cv_prog_compiler_c_o_GCJ=no
24071   $rm -r conftest 2>/dev/null
24072   mkdir conftest
24073   cd conftest
24074   mkdir out
24075   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24076
24077   lt_compiler_flag="-o out/conftest2.$ac_objext"
24078   # Insert the option either (1) after the last *FLAGS variable, or
24079   # (2) before a word containing "conftest.", or (3) at the end.
24080   # Note that $ac_compile itself does not contain backslashes and begins
24081   # with a dollar sign (not a hyphen), so the echo should work correctly.
24082   lt_compile=`echo "$ac_compile" | $SED \
24083   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24084   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24085   -e 's:$: $lt_compiler_flag:'`
24086   (eval echo "\"\$as_me:24086: $lt_compile\"" >&5)
24087   (eval "$lt_compile" 2>out/conftest.err)
24088   ac_status=$?
24089   cat out/conftest.err >&5
24090   echo "$as_me:24090: \$? = $ac_status" >&5
24091   if (exit $ac_status) && test -s out/conftest2.$ac_objext
24092   then
24093     # The compiler can only warn and ignore the option if not recognized
24094     # So say no if there are warnings
24095     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24096     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24097     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24098       lt_cv_prog_compiler_c_o_GCJ=yes
24099     fi
24100   fi
24101   chmod u+w . 2>&5
24102   $rm conftest*
24103   # SGI C++ compiler will create directory out/ii_files/ for
24104   # template instantiation
24105   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24106   $rm out/* && rmdir out
24107   cd ..
24108   rmdir conftest
24109   $rm conftest*
24110
24111fi
24112{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24113echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24114
24115
24116hard_links="nottested"
24117if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24118  # do not overwrite the value of need_locks provided by the user
24119  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24120echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24121  hard_links=yes
24122  $rm conftest*
24123  ln conftest.a conftest.b 2>/dev/null && hard_links=no
24124  touch conftest.a
24125  ln conftest.a conftest.b 2>&5 || hard_links=no
24126  ln conftest.a conftest.b 2>/dev/null && hard_links=no
24127  { echo "$as_me:$LINENO: result: $hard_links" >&5
24128echo "${ECHO_T}$hard_links" >&6; }
24129  if test "$hard_links" = no; then
24130    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24131echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24132    need_locks=warn
24133  fi
24134else
24135  need_locks=no
24136fi
24137
24138{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24139echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24140
24141  runpath_var=
24142  allow_undefined_flag_GCJ=
24143  enable_shared_with_static_runtimes_GCJ=no
24144  archive_cmds_GCJ=
24145  archive_expsym_cmds_GCJ=
24146  old_archive_From_new_cmds_GCJ=
24147  old_archive_from_expsyms_cmds_GCJ=
24148  export_dynamic_flag_spec_GCJ=
24149  whole_archive_flag_spec_GCJ=
24150  thread_safe_flag_spec_GCJ=
24151  hardcode_libdir_flag_spec_GCJ=
24152  hardcode_libdir_flag_spec_ld_GCJ=
24153  hardcode_libdir_separator_GCJ=
24154  hardcode_direct_GCJ=no
24155  hardcode_minus_L_GCJ=no
24156  hardcode_shlibpath_var_GCJ=unsupported
24157  link_all_deplibs_GCJ=unknown
24158  hardcode_automatic_GCJ=no
24159  module_cmds_GCJ=
24160  module_expsym_cmds_GCJ=
24161  always_export_symbols_GCJ=no
24162  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24163  # include_expsyms should be a list of space-separated symbols to be *always*
24164  # included in the symbol list
24165  include_expsyms_GCJ=
24166  # exclude_expsyms can be an extended regexp of symbols to exclude
24167  # it will be wrapped by ` (' and `)$', so one must not match beginning or
24168  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24169  # as well as any symbol that contains `d'.
24170  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24171  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24172  # platforms (ab)use it in PIC code, but their linkers get confused if
24173  # the symbol is explicitly referenced.  Since portable code cannot
24174  # rely on this symbol name, it's probably fine to never include it in
24175  # preloaded symbol tables.
24176  extract_expsyms_cmds=
24177  # Just being paranoid about ensuring that cc_basename is set.
24178  for cc_temp in $compiler""; do
24179  case $cc_temp in
24180    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24181    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24182    \-*) ;;
24183    *) break;;
24184  esac
24185done
24186cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24187
24188  case $host_os in
24189  cygwin* | mingw* | pw32*)
24190    # FIXME: the MSVC++ port hasn't been tested in a loooong time
24191    # When not using gcc, we currently assume that we are using
24192    # Microsoft Visual C++.
24193    if test "$GCC" != yes; then
24194      with_gnu_ld=no
24195    fi
24196    ;;
24197  interix*)
24198    # we just hope/assume this is gcc and not c89 (= MSVC++)
24199    with_gnu_ld=yes
24200    ;;
24201  openbsd*)
24202    with_gnu_ld=no
24203    ;;
24204  esac
24205
24206  ld_shlibs_GCJ=yes
24207  if test "$with_gnu_ld" = yes; then
24208    # If archive_cmds runs LD, not CC, wlarc should be empty
24209    wlarc='${wl}'
24210
24211    # Set some defaults for GNU ld with shared library support. These
24212    # are reset later if shared libraries are not supported. Putting them
24213    # here allows them to be overridden if necessary.
24214    runpath_var=LD_RUN_PATH
24215    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24216    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24217    # ancient GNU ld didn't support --whole-archive et. al.
24218    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24219	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24220      else
24221  	whole_archive_flag_spec_GCJ=
24222    fi
24223    supports_anon_versioning=no
24224    case `$LD -v 2>/dev/null` in
24225      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24226      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24227      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24228      *\ 2.11.*) ;; # other 2.11 versions
24229      *) supports_anon_versioning=yes ;;
24230    esac
24231
24232    # See if GNU ld supports shared libraries.
24233    case $host_os in
24234    aix3* | aix4* | aix5*)
24235      # On AIX/PPC, the GNU linker is very broken
24236      if test "$host_cpu" != ia64; then
24237	ld_shlibs_GCJ=no
24238	cat <<EOF 1>&2
24239
24240*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24241*** to be unable to reliably create shared libraries on AIX.
24242*** Therefore, libtool is disabling shared libraries support.  If you
24243*** really care for shared libraries, you may want to modify your PATH
24244*** so that a non-GNU linker is found, and then restart.
24245
24246EOF
24247      fi
24248      ;;
24249
24250    amigaos*)
24251      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)'
24252      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24253      hardcode_minus_L_GCJ=yes
24254
24255      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24256      # that the semantics of dynamic libraries on AmigaOS, at least up
24257      # to version 4, is to share data among multiple programs linked
24258      # with the same dynamic library.  Since this doesn't match the
24259      # behavior of shared libraries on other platforms, we can't use
24260      # them.
24261      ld_shlibs_GCJ=no
24262      ;;
24263
24264    beos*)
24265      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24266	allow_undefined_flag_GCJ=unsupported
24267	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24268	# support --undefined.  This deserves some investigation.  FIXME
24269	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24270      else
24271	ld_shlibs_GCJ=no
24272      fi
24273      ;;
24274
24275    cygwin* | mingw* | pw32*)
24276      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24277      # as there is no search path for DLLs.
24278      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24279      allow_undefined_flag_GCJ=unsupported
24280      always_export_symbols_GCJ=no
24281      enable_shared_with_static_runtimes_GCJ=yes
24282      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24283
24284      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24285        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24286	# If the export-symbols file already is a .def file (1st line
24287	# is EXPORTS), use it as is; otherwise, prepend...
24288	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24289	  cp $export_symbols $output_objdir/$soname.def;
24290	else
24291	  echo EXPORTS > $output_objdir/$soname.def;
24292	  cat $export_symbols >> $output_objdir/$soname.def;
24293	fi~
24294	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24295      else
24296	ld_shlibs_GCJ=no
24297      fi
24298      ;;
24299
24300    interix3*)
24301      hardcode_direct_GCJ=no
24302      hardcode_shlibpath_var_GCJ=no
24303      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24304      export_dynamic_flag_spec_GCJ='${wl}-E'
24305      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24306      # Instead, shared libraries are loaded at an image base (0x10000000 by
24307      # default) and relocated if they conflict, which is a slow very memory
24308      # consuming and fragmenting process.  To avoid this, we pick a random,
24309      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24310      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24311      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'
24312      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'
24313      ;;
24314
24315    linux*)
24316      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24317	tmp_addflag=
24318	case $cc_basename,$host_cpu in
24319	pgcc*)				# Portland Group C compiler
24320	  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'
24321	  tmp_addflag=' $pic_flag'
24322	  ;;
24323	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
24324	  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'
24325	  tmp_addflag=' $pic_flag -Mnomain' ;;
24326	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
24327	  tmp_addflag=' -i_dynamic' ;;
24328	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
24329	  tmp_addflag=' -i_dynamic -nofor_main' ;;
24330	ifc* | ifort*)			# Intel Fortran compiler
24331	  tmp_addflag=' -nofor_main' ;;
24332	esac
24333	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24334
24335	if test $supports_anon_versioning = yes; then
24336	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24337  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24338  $echo "local: *; };" >> $output_objdir/$libname.ver~
24339	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24340	fi
24341      else
24342	ld_shlibs_GCJ=no
24343      fi
24344      ;;
24345
24346    netbsd*)
24347      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24348	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24349	wlarc=
24350      else
24351	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24352	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24353      fi
24354      ;;
24355
24356    solaris*)
24357      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24358	ld_shlibs_GCJ=no
24359	cat <<EOF 1>&2
24360
24361*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24362*** create shared libraries on Solaris systems.  Therefore, libtool
24363*** is disabling shared libraries support.  We urge you to upgrade GNU
24364*** binutils to release 2.9.1 or newer.  Another option is to modify
24365*** your PATH or compiler configuration so that the native linker is
24366*** used, and then restart.
24367
24368EOF
24369      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24370	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24371	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24372      else
24373	ld_shlibs_GCJ=no
24374      fi
24375      ;;
24376
24377    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24378      case `$LD -v 2>&1` in
24379        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24380	ld_shlibs_GCJ=no
24381	cat <<_LT_EOF 1>&2
24382
24383*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24384*** reliably create shared libraries on SCO systems.  Therefore, libtool
24385*** is disabling shared libraries support.  We urge you to upgrade GNU
24386*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24387*** your PATH or compiler configuration so that the native linker is
24388*** used, and then restart.
24389
24390_LT_EOF
24391	;;
24392	*)
24393	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24394	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24395	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24396	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24397	  else
24398	    ld_shlibs_GCJ=no
24399	  fi
24400	;;
24401      esac
24402      ;;
24403
24404    sunos4*)
24405      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24406      wlarc=
24407      hardcode_direct_GCJ=yes
24408      hardcode_shlibpath_var_GCJ=no
24409      ;;
24410
24411    *)
24412      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24413	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24414	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24415      else
24416	ld_shlibs_GCJ=no
24417      fi
24418      ;;
24419    esac
24420
24421    if test "$ld_shlibs_GCJ" = no; then
24422      runpath_var=
24423      hardcode_libdir_flag_spec_GCJ=
24424      export_dynamic_flag_spec_GCJ=
24425      whole_archive_flag_spec_GCJ=
24426    fi
24427  else
24428    # PORTME fill in a description of your system's linker (not GNU ld)
24429    case $host_os in
24430    aix3*)
24431      allow_undefined_flag_GCJ=unsupported
24432      always_export_symbols_GCJ=yes
24433      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'
24434      # Note: this linker hardcodes the directories in LIBPATH if there
24435      # are no directories specified by -L.
24436      hardcode_minus_L_GCJ=yes
24437      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24438	# Neither direct hardcoding nor static linking is supported with a
24439	# broken collect2.
24440	hardcode_direct_GCJ=unsupported
24441      fi
24442      ;;
24443
24444    aix4* | aix5*)
24445      if test "$host_cpu" = ia64; then
24446	# On IA64, the linker does run time linking by default, so we don't
24447	# have to do anything special.
24448	aix_use_runtimelinking=no
24449	exp_sym_flag='-Bexport'
24450	no_entry_flag=""
24451      else
24452	# If we're using GNU nm, then we don't want the "-C" option.
24453	# -C means demangle to AIX nm, but means don't demangle with GNU nm
24454	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24455	  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'
24456	else
24457	  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'
24458	fi
24459	aix_use_runtimelinking=no
24460
24461	# Test if we are trying to use run time linking or normal
24462	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
24463	# need to do runtime linking.
24464	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24465	  for ld_flag in $LDFLAGS; do
24466  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24467  	    aix_use_runtimelinking=yes
24468  	    break
24469  	  fi
24470	  done
24471	  ;;
24472	esac
24473
24474	exp_sym_flag='-bexport'
24475	no_entry_flag='-bnoentry'
24476      fi
24477
24478      # When large executables or shared objects are built, AIX ld can
24479      # have problems creating the table of contents.  If linking a library
24480      # or program results in "error TOC overflow" add -mminimal-toc to
24481      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24482      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24483
24484      archive_cmds_GCJ=''
24485      hardcode_direct_GCJ=yes
24486      hardcode_libdir_separator_GCJ=':'
24487      link_all_deplibs_GCJ=yes
24488
24489      if test "$GCC" = yes; then
24490	case $host_os in aix4.[012]|aix4.[012].*)
24491	# We only want to do this on AIX 4.2 and lower, the check
24492	# below for broken collect2 doesn't work under 4.3+
24493	  collect2name=`${CC} -print-prog-name=collect2`
24494	  if test -f "$collect2name" && \
24495  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
24496	  then
24497  	  # We have reworked collect2
24498  	  hardcode_direct_GCJ=yes
24499	  else
24500  	  # We have old collect2
24501  	  hardcode_direct_GCJ=unsupported
24502  	  # It fails to find uninstalled libraries when the uninstalled
24503  	  # path is not listed in the libpath.  Setting hardcode_minus_L
24504  	  # to unsupported forces relinking
24505  	  hardcode_minus_L_GCJ=yes
24506  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
24507  	  hardcode_libdir_separator_GCJ=
24508	  fi
24509	  ;;
24510	esac
24511	shared_flag='-shared'
24512	if test "$aix_use_runtimelinking" = yes; then
24513	  shared_flag="$shared_flag "'${wl}-G'
24514	fi
24515      else
24516	# not using gcc
24517	if test "$host_cpu" = ia64; then
24518  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24519  	# chokes on -Wl,-G. The following line is correct:
24520	  shared_flag='-G'
24521	else
24522	  if test "$aix_use_runtimelinking" = yes; then
24523	    shared_flag='${wl}-G'
24524	  else
24525	    shared_flag='${wl}-bM:SRE'
24526	  fi
24527	fi
24528      fi
24529
24530      # It seems that -bexpall does not export symbols beginning with
24531      # underscore (_), so it is better to generate a list of symbols to export.
24532      always_export_symbols_GCJ=yes
24533      if test "$aix_use_runtimelinking" = yes; then
24534	# Warning - without using the other runtime loading flags (-brtl),
24535	# -berok will link without error, but may produce a broken library.
24536	allow_undefined_flag_GCJ='-berok'
24537       # Determine the default libpath from the value encoded in an empty executable.
24538       cat >conftest.$ac_ext <<_ACEOF
24539/* confdefs.h.  */
24540_ACEOF
24541cat confdefs.h >>conftest.$ac_ext
24542cat >>conftest.$ac_ext <<_ACEOF
24543/* end confdefs.h.  */
24544
24545int
24546main ()
24547{
24548
24549  ;
24550  return 0;
24551}
24552_ACEOF
24553rm -f conftest.$ac_objext conftest$ac_exeext
24554if { (ac_try="$ac_link"
24555case "(($ac_try" in
24556  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24557  *) ac_try_echo=$ac_try;;
24558esac
24559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24560  (eval "$ac_link") 2>conftest.er1
24561  ac_status=$?
24562  grep -v '^ *+' conftest.er1 >conftest.err
24563  rm -f conftest.er1
24564  cat conftest.err >&5
24565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24566  (exit $ac_status); } &&
24567	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24568  { (case "(($ac_try" in
24569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24570  *) ac_try_echo=$ac_try;;
24571esac
24572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24573  (eval "$ac_try") 2>&5
24574  ac_status=$?
24575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24576  (exit $ac_status); }; } &&
24577	 { ac_try='test -s conftest$ac_exeext'
24578  { (case "(($ac_try" in
24579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24580  *) ac_try_echo=$ac_try;;
24581esac
24582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24583  (eval "$ac_try") 2>&5
24584  ac_status=$?
24585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24586  (exit $ac_status); }; }; then
24587
24588aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24589}'`
24590# Check for a 64-bit object if we didn't find anything.
24591if 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; }
24592}'`; fi
24593else
24594  echo "$as_me: failed program was:" >&5
24595sed 's/^/| /' conftest.$ac_ext >&5
24596
24597
24598fi
24599
24600rm -f core conftest.err conftest.$ac_objext \
24601      conftest$ac_exeext conftest.$ac_ext
24602if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24603
24604       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24605	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"
24606       else
24607	if test "$host_cpu" = ia64; then
24608	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24609	  allow_undefined_flag_GCJ="-z nodefs"
24610	  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"
24611	else
24612	 # Determine the default libpath from the value encoded in an empty executable.
24613	 cat >conftest.$ac_ext <<_ACEOF
24614/* confdefs.h.  */
24615_ACEOF
24616cat confdefs.h >>conftest.$ac_ext
24617cat >>conftest.$ac_ext <<_ACEOF
24618/* end confdefs.h.  */
24619
24620int
24621main ()
24622{
24623
24624  ;
24625  return 0;
24626}
24627_ACEOF
24628rm -f conftest.$ac_objext conftest$ac_exeext
24629if { (ac_try="$ac_link"
24630case "(($ac_try" in
24631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24632  *) ac_try_echo=$ac_try;;
24633esac
24634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24635  (eval "$ac_link") 2>conftest.er1
24636  ac_status=$?
24637  grep -v '^ *+' conftest.er1 >conftest.err
24638  rm -f conftest.er1
24639  cat conftest.err >&5
24640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24641  (exit $ac_status); } &&
24642	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24643  { (case "(($ac_try" in
24644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24645  *) ac_try_echo=$ac_try;;
24646esac
24647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24648  (eval "$ac_try") 2>&5
24649  ac_status=$?
24650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651  (exit $ac_status); }; } &&
24652	 { ac_try='test -s conftest$ac_exeext'
24653  { (case "(($ac_try" in
24654  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24655  *) ac_try_echo=$ac_try;;
24656esac
24657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24658  (eval "$ac_try") 2>&5
24659  ac_status=$?
24660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661  (exit $ac_status); }; }; then
24662
24663aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24664}'`
24665# Check for a 64-bit object if we didn't find anything.
24666if 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; }
24667}'`; fi
24668else
24669  echo "$as_me: failed program was:" >&5
24670sed 's/^/| /' conftest.$ac_ext >&5
24671
24672
24673fi
24674
24675rm -f core conftest.err conftest.$ac_objext \
24676      conftest$ac_exeext conftest.$ac_ext
24677if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24678
24679	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24680	  # Warning - without using the other run time loading flags,
24681	  # -berok will link without error, but may produce a broken library.
24682	  no_undefined_flag_GCJ=' ${wl}-bernotok'
24683	  allow_undefined_flag_GCJ=' ${wl}-berok'
24684	  # Exported symbols can be pulled into shared objects from archives
24685	  whole_archive_flag_spec_GCJ='$convenience'
24686	  archive_cmds_need_lc_GCJ=yes
24687	  # This is similar to how AIX traditionally builds its shared libraries.
24688	  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'
24689	fi
24690      fi
24691      ;;
24692
24693    amigaos*)
24694      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)'
24695      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24696      hardcode_minus_L_GCJ=yes
24697      # see comment about different semantics on the GNU ld section
24698      ld_shlibs_GCJ=no
24699      ;;
24700
24701    bsdi[45]*)
24702      export_dynamic_flag_spec_GCJ=-rdynamic
24703      ;;
24704
24705    cygwin* | mingw* | pw32*)
24706      # When not using gcc, we currently assume that we are using
24707      # Microsoft Visual C++.
24708      # hardcode_libdir_flag_spec is actually meaningless, as there is
24709      # no search path for DLLs.
24710      hardcode_libdir_flag_spec_GCJ=' '
24711      allow_undefined_flag_GCJ=unsupported
24712      # Tell ltmain to make .lib files, not .a files.
24713      libext=lib
24714      # Tell ltmain to make .dll files, not .so files.
24715      shrext_cmds=".dll"
24716      # FIXME: Setting linknames here is a bad hack.
24717      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24718      # The linker will automatically build a .lib file if we build a DLL.
24719      old_archive_From_new_cmds_GCJ='true'
24720      # FIXME: Should let the user specify the lib program.
24721      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24722      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24723      enable_shared_with_static_runtimes_GCJ=yes
24724      ;;
24725
24726    darwin* | rhapsody*)
24727      case $host_os in
24728        rhapsody* | darwin1.[012])
24729         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24730         ;;
24731       *) # Darwin 1.3 on
24732         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24733           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24734         else
24735           case ${MACOSX_DEPLOYMENT_TARGET} in
24736             10.[012])
24737               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24738               ;;
24739             10.*)
24740               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24741               ;;
24742           esac
24743         fi
24744         ;;
24745      esac
24746      archive_cmds_need_lc_GCJ=no
24747      hardcode_direct_GCJ=no
24748      hardcode_automatic_GCJ=yes
24749      hardcode_shlibpath_var_GCJ=unsupported
24750      whole_archive_flag_spec_GCJ=''
24751      link_all_deplibs_GCJ=yes
24752    if test "$GCC" = yes ; then
24753    	output_verbose_link_cmd='echo'
24754        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24755      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24756      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24757      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}'
24758      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}'
24759    else
24760      case $cc_basename in
24761        xlc*)
24762         output_verbose_link_cmd='echo'
24763         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24764         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24765          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24766         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}'
24767          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}'
24768          ;;
24769       *)
24770         ld_shlibs_GCJ=no
24771          ;;
24772      esac
24773    fi
24774      ;;
24775
24776    dgux*)
24777      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24778      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24779      hardcode_shlibpath_var_GCJ=no
24780      ;;
24781
24782    freebsd1*)
24783      ld_shlibs_GCJ=no
24784      ;;
24785
24786    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24787    # support.  Future versions do this automatically, but an explicit c++rt0.o
24788    # does not break anything, and helps significantly (at the cost of a little
24789    # extra space).
24790    freebsd2.2*)
24791      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24792      hardcode_libdir_flag_spec_GCJ='-R$libdir'
24793      hardcode_direct_GCJ=yes
24794      hardcode_shlibpath_var_GCJ=no
24795      ;;
24796
24797    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24798    freebsd2*)
24799      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24800      hardcode_direct_GCJ=yes
24801      hardcode_minus_L_GCJ=yes
24802      hardcode_shlibpath_var_GCJ=no
24803      ;;
24804
24805    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24806    freebsd* | kfreebsd*-gnu | dragonfly*)
24807      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24808      hardcode_libdir_flag_spec_GCJ='-R$libdir'
24809      hardcode_direct_GCJ=yes
24810      hardcode_shlibpath_var_GCJ=no
24811      ;;
24812
24813    hpux9*)
24814      if test "$GCC" = yes; then
24815	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'
24816      else
24817	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'
24818      fi
24819      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24820      hardcode_libdir_separator_GCJ=:
24821      hardcode_direct_GCJ=yes
24822
24823      # hardcode_minus_L: Not really in the search PATH,
24824      # but as the default location of the library.
24825      hardcode_minus_L_GCJ=yes
24826      export_dynamic_flag_spec_GCJ='${wl}-E'
24827      ;;
24828
24829    hpux10*)
24830      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24831	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24832      else
24833	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24834      fi
24835      if test "$with_gnu_ld" = no; then
24836	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24837	hardcode_libdir_separator_GCJ=:
24838
24839	hardcode_direct_GCJ=yes
24840	export_dynamic_flag_spec_GCJ='${wl}-E'
24841
24842	# hardcode_minus_L: Not really in the search PATH,
24843	# but as the default location of the library.
24844	hardcode_minus_L_GCJ=yes
24845      fi
24846      ;;
24847
24848    hpux11*)
24849      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24850	case $host_cpu in
24851	hppa*64*)
24852	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24853	  ;;
24854	ia64*)
24855	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24856	  ;;
24857	*)
24858	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24859	  ;;
24860	esac
24861      else
24862	case $host_cpu in
24863	hppa*64*)
24864	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24865	  ;;
24866	ia64*)
24867	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24868	  ;;
24869	*)
24870	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24871	  ;;
24872	esac
24873      fi
24874      if test "$with_gnu_ld" = no; then
24875	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24876	hardcode_libdir_separator_GCJ=:
24877
24878	case $host_cpu in
24879	hppa*64*|ia64*)
24880	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24881	  hardcode_direct_GCJ=no
24882	  hardcode_shlibpath_var_GCJ=no
24883	  ;;
24884	*)
24885	  hardcode_direct_GCJ=yes
24886	  export_dynamic_flag_spec_GCJ='${wl}-E'
24887
24888	  # hardcode_minus_L: Not really in the search PATH,
24889	  # but as the default location of the library.
24890	  hardcode_minus_L_GCJ=yes
24891	  ;;
24892	esac
24893      fi
24894      ;;
24895
24896    irix5* | irix6* | nonstopux*)
24897      if test "$GCC" = yes; then
24898	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'
24899      else
24900	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'
24901	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24902      fi
24903      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24904      hardcode_libdir_separator_GCJ=:
24905      link_all_deplibs_GCJ=yes
24906      ;;
24907
24908    netbsd*)
24909      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24910	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24911      else
24912	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
24913      fi
24914      hardcode_libdir_flag_spec_GCJ='-R$libdir'
24915      hardcode_direct_GCJ=yes
24916      hardcode_shlibpath_var_GCJ=no
24917      ;;
24918
24919    newsos6)
24920      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24921      hardcode_direct_GCJ=yes
24922      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24923      hardcode_libdir_separator_GCJ=:
24924      hardcode_shlibpath_var_GCJ=no
24925      ;;
24926
24927    openbsd*)
24928      hardcode_direct_GCJ=yes
24929      hardcode_shlibpath_var_GCJ=no
24930      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24931	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24932	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24933	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24934	export_dynamic_flag_spec_GCJ='${wl}-E'
24935      else
24936       case $host_os in
24937	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24938	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24939	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
24940	   ;;
24941	 *)
24942	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24943	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24944	   ;;
24945       esac
24946      fi
24947      ;;
24948
24949    os2*)
24950      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24951      hardcode_minus_L_GCJ=yes
24952      allow_undefined_flag_GCJ=unsupported
24953      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'
24954      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24955      ;;
24956
24957    osf3*)
24958      if test "$GCC" = yes; then
24959	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24960	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'
24961      else
24962	allow_undefined_flag_GCJ=' -expect_unresolved \*'
24963	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'
24964      fi
24965      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24966      hardcode_libdir_separator_GCJ=:
24967      ;;
24968
24969    osf4* | osf5*)	# as osf3* with the addition of -msym flag
24970      if test "$GCC" = yes; then
24971	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24972	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'
24973	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24974      else
24975	allow_undefined_flag_GCJ=' -expect_unresolved \*'
24976	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'
24977	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~
24978	$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'
24979
24980	# Both c and cxx compiler support -rpath directly
24981	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24982      fi
24983      hardcode_libdir_separator_GCJ=:
24984      ;;
24985
24986    solaris*)
24987      no_undefined_flag_GCJ=' -z text'
24988      if test "$GCC" = yes; then
24989	wlarc='${wl}'
24990	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24991	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24992	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24993      else
24994	wlarc=''
24995	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24996	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24997  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24998      fi
24999      hardcode_libdir_flag_spec_GCJ='-R$libdir'
25000      hardcode_shlibpath_var_GCJ=no
25001      case $host_os in
25002      solaris2.[0-5] | solaris2.[0-5].*) ;;
25003      *)
25004 	# The compiler driver will combine linker options so we
25005 	# cannot just pass the convience library names through
25006 	# without $wl, iff we do not link with $LD.
25007 	# Luckily, gcc supports the same syntax we need for Sun Studio.
25008 	# Supported since Solaris 2.6 (maybe 2.5.1?)
25009 	case $wlarc in
25010 	'')
25011 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25012 	*)
25013 	  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' ;;
25014 	esac ;;
25015      esac
25016      link_all_deplibs_GCJ=yes
25017      ;;
25018
25019    sunos4*)
25020      if test "x$host_vendor" = xsequent; then
25021	# Use $CC to link under sequent, because it throws in some extra .o
25022	# files that make .init and .fini sections work.
25023	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25024      else
25025	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25026      fi
25027      hardcode_libdir_flag_spec_GCJ='-L$libdir'
25028      hardcode_direct_GCJ=yes
25029      hardcode_minus_L_GCJ=yes
25030      hardcode_shlibpath_var_GCJ=no
25031      ;;
25032
25033    sysv4)
25034      case $host_vendor in
25035	sni)
25036	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25037	  hardcode_direct_GCJ=yes # is this really true???
25038	;;
25039	siemens)
25040	  ## LD is ld it makes a PLAMLIB
25041	  ## CC just makes a GrossModule.
25042	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25043	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25044	  hardcode_direct_GCJ=no
25045        ;;
25046	motorola)
25047	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25048	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25049	;;
25050      esac
25051      runpath_var='LD_RUN_PATH'
25052      hardcode_shlibpath_var_GCJ=no
25053      ;;
25054
25055    sysv4.3*)
25056      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25057      hardcode_shlibpath_var_GCJ=no
25058      export_dynamic_flag_spec_GCJ='-Bexport'
25059      ;;
25060
25061    sysv4*MP*)
25062      if test -d /usr/nec; then
25063	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25064	hardcode_shlibpath_var_GCJ=no
25065	runpath_var=LD_RUN_PATH
25066	hardcode_runpath_var=yes
25067	ld_shlibs_GCJ=yes
25068      fi
25069      ;;
25070
25071    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25072      no_undefined_flag_GCJ='${wl}-z,text'
25073      archive_cmds_need_lc_GCJ=no
25074      hardcode_shlibpath_var_GCJ=no
25075      runpath_var='LD_RUN_PATH'
25076
25077      if test "$GCC" = yes; then
25078	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25079	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25080      else
25081	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25082	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25083      fi
25084      ;;
25085
25086    sysv5* | sco3.2v5* | sco5v6*)
25087      # Note: We can NOT use -z defs as we might desire, because we do not
25088      # link with -lc, and that would cause any symbols used from libc to
25089      # always be unresolved, which means just about no library would
25090      # ever link correctly.  If we're not using GNU ld we use -z text
25091      # though, which does catch some bad symbols but isn't as heavy-handed
25092      # as -z defs.
25093      no_undefined_flag_GCJ='${wl}-z,text'
25094      allow_undefined_flag_GCJ='${wl}-z,nodefs'
25095      archive_cmds_need_lc_GCJ=no
25096      hardcode_shlibpath_var_GCJ=no
25097      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25098      hardcode_libdir_separator_GCJ=':'
25099      link_all_deplibs_GCJ=yes
25100      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25101      runpath_var='LD_RUN_PATH'
25102
25103      if test "$GCC" = yes; then
25104	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25105	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25106      else
25107	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25108	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25109      fi
25110      ;;
25111
25112    uts4*)
25113      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25114      hardcode_libdir_flag_spec_GCJ='-L$libdir'
25115      hardcode_shlibpath_var_GCJ=no
25116      ;;
25117
25118    *)
25119      ld_shlibs_GCJ=no
25120      ;;
25121    esac
25122  fi
25123
25124{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25125echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25126test "$ld_shlibs_GCJ" = no && can_build_shared=no
25127
25128#
25129# Do we need to explicitly link libc?
25130#
25131case "x$archive_cmds_need_lc_GCJ" in
25132x|xyes)
25133  # Assume -lc should be added
25134  archive_cmds_need_lc_GCJ=yes
25135
25136  if test "$enable_shared" = yes && test "$GCC" = yes; then
25137    case $archive_cmds_GCJ in
25138    *'~'*)
25139      # FIXME: we may have to deal with multi-command sequences.
25140      ;;
25141    '$CC '*)
25142      # Test whether the compiler implicitly links with -lc since on some
25143      # systems, -lgcc has to come before -lc. If gcc already passes -lc
25144      # to ld, don't add -lc before -lgcc.
25145      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25146echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25147      $rm conftest*
25148      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25149
25150      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25151  (eval $ac_compile) 2>&5
25152  ac_status=$?
25153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25154  (exit $ac_status); } 2>conftest.err; then
25155        soname=conftest
25156        lib=conftest
25157        libobjs=conftest.$ac_objext
25158        deplibs=
25159        wl=$lt_prog_compiler_wl_GCJ
25160	pic_flag=$lt_prog_compiler_pic_GCJ
25161        compiler_flags=-v
25162        linker_flags=-v
25163        verstring=
25164        output_objdir=.
25165        libname=conftest
25166        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25167        allow_undefined_flag_GCJ=
25168        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25169  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25170  ac_status=$?
25171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25172  (exit $ac_status); }
25173        then
25174	  archive_cmds_need_lc_GCJ=no
25175        else
25176	  archive_cmds_need_lc_GCJ=yes
25177        fi
25178        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25179      else
25180        cat conftest.err 1>&5
25181      fi
25182      $rm conftest*
25183      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25184echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25185      ;;
25186    esac
25187  fi
25188  ;;
25189esac
25190
25191{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25192echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25193library_names_spec=
25194libname_spec='lib$name'
25195soname_spec=
25196shrext_cmds=".so"
25197postinstall_cmds=
25198postuninstall_cmds=
25199finish_cmds=
25200finish_eval=
25201shlibpath_var=
25202shlibpath_overrides_runpath=unknown
25203version_type=none
25204dynamic_linker="$host_os ld.so"
25205sys_lib_dlsearch_path_spec="/lib /usr/lib"
25206if test "$GCC" = yes; then
25207  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25208  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25209    # if the path contains ";" then we assume it to be the separator
25210    # otherwise default to the standard path separator (i.e. ":") - it is
25211    # assumed that no part of a normal pathname contains ";" but that should
25212    # okay in the real world where ";" in dirpaths is itself problematic.
25213    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25214  else
25215    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25216  fi
25217else
25218  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25219fi
25220need_lib_prefix=unknown
25221hardcode_into_libs=no
25222
25223# when you set need_version to no, make sure it does not cause -set_version
25224# flags to be left without arguments
25225need_version=unknown
25226
25227case $host_os in
25228aix3*)
25229  version_type=linux
25230  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25231  shlibpath_var=LIBPATH
25232
25233  # AIX 3 has no versioning support, so we append a major version to the name.
25234  soname_spec='${libname}${release}${shared_ext}$major'
25235  ;;
25236
25237aix4* | aix5*)
25238  version_type=linux
25239  need_lib_prefix=no
25240  need_version=no
25241  hardcode_into_libs=yes
25242  if test "$host_cpu" = ia64; then
25243    # AIX 5 supports IA64
25244    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25245    shlibpath_var=LD_LIBRARY_PATH
25246  else
25247    # With GCC up to 2.95.x, collect2 would create an import file
25248    # for dependence libraries.  The import file would start with
25249    # the line `#! .'.  This would cause the generated library to
25250    # depend on `.', always an invalid library.  This was fixed in
25251    # development snapshots of GCC prior to 3.0.
25252    case $host_os in
25253      aix4 | aix4.[01] | aix4.[01].*)
25254      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25255	   echo ' yes '
25256	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25257	:
25258      else
25259	can_build_shared=no
25260      fi
25261      ;;
25262    esac
25263    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25264    # soname into executable. Probably we can add versioning support to
25265    # collect2, so additional links can be useful in future.
25266    if test "$aix_use_runtimelinking" = yes; then
25267      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25268      # instead of lib<name>.a to let people know that these are not
25269      # typical AIX shared libraries.
25270      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25271    else
25272      # We preserve .a as extension for shared libraries through AIX4.2
25273      # and later when we are not doing run time linking.
25274      library_names_spec='${libname}${release}.a $libname.a'
25275      soname_spec='${libname}${release}${shared_ext}$major'
25276    fi
25277    shlibpath_var=LIBPATH
25278  fi
25279  ;;
25280
25281amigaos*)
25282  library_names_spec='$libname.ixlibrary $libname.a'
25283  # Create ${libname}_ixlibrary.a entries in /sys/libs.
25284  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'
25285  ;;
25286
25287beos*)
25288  library_names_spec='${libname}${shared_ext}'
25289  dynamic_linker="$host_os ld.so"
25290  shlibpath_var=LIBRARY_PATH
25291  ;;
25292
25293bsdi[45]*)
25294  version_type=linux
25295  need_version=no
25296  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25297  soname_spec='${libname}${release}${shared_ext}$major'
25298  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25299  shlibpath_var=LD_LIBRARY_PATH
25300  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25301  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25302  # the default ld.so.conf also contains /usr/contrib/lib and
25303  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25304  # libtool to hard-code these into programs
25305  ;;
25306
25307cygwin* | mingw* | pw32*)
25308  version_type=windows
25309  shrext_cmds=".dll"
25310  need_version=no
25311  need_lib_prefix=no
25312
25313  case $GCC,$host_os in
25314  yes,cygwin* | yes,mingw* | yes,pw32*)
25315    library_names_spec='$libname.dll.a'
25316    # DLL is installed to $(libdir)/../bin by postinstall_cmds
25317    postinstall_cmds='base_file=`basename \${file}`~
25318      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25319      dldir=$destdir/`dirname \$dlpath`~
25320      test -d \$dldir || mkdir -p \$dldir~
25321      $install_prog $dir/$dlname \$dldir/$dlname~
25322      chmod a+x \$dldir/$dlname'
25323    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25324      dlpath=$dir/\$dldll~
25325       $rm \$dlpath'
25326    shlibpath_overrides_runpath=yes
25327
25328    case $host_os in
25329    cygwin*)
25330      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25331      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25332      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25333      ;;
25334    mingw*)
25335      # MinGW DLLs use traditional 'lib' prefix
25336      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25337      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25338      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25339        # It is most probably a Windows format PATH printed by
25340        # mingw gcc, but we are running on Cygwin. Gcc prints its search
25341        # path with ; separators, and with drive letters. We can handle the
25342        # drive letters (cygwin fileutils understands them), so leave them,
25343        # especially as we might pass files found there to a mingw objdump,
25344        # which wouldn't understand a cygwinified path. Ahh.
25345        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25346      else
25347        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25348      fi
25349      ;;
25350    pw32*)
25351      # pw32 DLLs use 'pw' prefix rather than 'lib'
25352      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25353      ;;
25354    esac
25355    ;;
25356
25357  *)
25358    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25359    ;;
25360  esac
25361  dynamic_linker='Win32 ld.exe'
25362  # FIXME: first we should search . and the directory the executable is in
25363  shlibpath_var=PATH
25364  ;;
25365
25366darwin* | rhapsody*)
25367  dynamic_linker="$host_os dyld"
25368  version_type=darwin
25369  need_lib_prefix=no
25370  need_version=no
25371  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25372  soname_spec='${libname}${release}${major}$shared_ext'
25373  shlibpath_overrides_runpath=yes
25374  shlibpath_var=DYLD_LIBRARY_PATH
25375  shrext_cmds='.dylib'
25376  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25377  if test "$GCC" = yes; then
25378    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"`
25379  else
25380    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25381  fi
25382  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25383  ;;
25384
25385dgux*)
25386  version_type=linux
25387  need_lib_prefix=no
25388  need_version=no
25389  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25390  soname_spec='${libname}${release}${shared_ext}$major'
25391  shlibpath_var=LD_LIBRARY_PATH
25392  ;;
25393
25394freebsd1*)
25395  dynamic_linker=no
25396  ;;
25397
25398kfreebsd*-gnu)
25399  version_type=linux
25400  need_lib_prefix=no
25401  need_version=no
25402  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25403  soname_spec='${libname}${release}${shared_ext}$major'
25404  shlibpath_var=LD_LIBRARY_PATH
25405  shlibpath_overrides_runpath=no
25406  hardcode_into_libs=yes
25407  dynamic_linker='GNU ld.so'
25408  ;;
25409
25410freebsd* | dragonfly*)
25411  # DragonFly does not have aout.  When/if they implement a new
25412  # versioning mechanism, adjust this.
25413  if test -x /usr/bin/objformat; then
25414    objformat=`/usr/bin/objformat`
25415  else
25416    case $host_os in
25417    freebsd[123]*) objformat=aout ;;
25418    *) objformat=elf ;;
25419    esac
25420  fi
25421  version_type=freebsd-$objformat
25422  case $version_type in
25423    freebsd-elf*)
25424      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25425      need_version=no
25426      need_lib_prefix=no
25427      ;;
25428    freebsd-*)
25429      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25430      need_version=yes
25431      ;;
25432  esac
25433  shlibpath_var=LD_LIBRARY_PATH
25434  case $host_os in
25435  freebsd2*)
25436    shlibpath_overrides_runpath=yes
25437    ;;
25438  freebsd3.[01]* | freebsdelf3.[01]*)
25439    shlibpath_overrides_runpath=yes
25440    hardcode_into_libs=yes
25441    ;;
25442  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25443  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25444    shlibpath_overrides_runpath=no
25445    hardcode_into_libs=yes
25446    ;;
25447  freebsd*) # from 4.6 on
25448    shlibpath_overrides_runpath=yes
25449    hardcode_into_libs=yes
25450    ;;
25451  esac
25452  ;;
25453
25454gnu*)
25455  version_type=linux
25456  need_lib_prefix=no
25457  need_version=no
25458  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25459  soname_spec='${libname}${release}${shared_ext}$major'
25460  shlibpath_var=LD_LIBRARY_PATH
25461  hardcode_into_libs=yes
25462  ;;
25463
25464hpux9* | hpux10* | hpux11*)
25465  # Give a soname corresponding to the major version so that dld.sl refuses to
25466  # link against other versions.
25467  version_type=sunos
25468  need_lib_prefix=no
25469  need_version=no
25470  case $host_cpu in
25471  ia64*)
25472    shrext_cmds='.so'
25473    hardcode_into_libs=yes
25474    dynamic_linker="$host_os dld.so"
25475    shlibpath_var=LD_LIBRARY_PATH
25476    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25477    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25478    soname_spec='${libname}${release}${shared_ext}$major'
25479    if test "X$HPUX_IA64_MODE" = X32; then
25480      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25481    else
25482      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25483    fi
25484    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25485    ;;
25486   hppa*64*)
25487     shrext_cmds='.sl'
25488     hardcode_into_libs=yes
25489     dynamic_linker="$host_os dld.sl"
25490     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25491     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25492     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25493     soname_spec='${libname}${release}${shared_ext}$major'
25494     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25495     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25496     ;;
25497   *)
25498    shrext_cmds='.sl'
25499    dynamic_linker="$host_os dld.sl"
25500    shlibpath_var=SHLIB_PATH
25501    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25502    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25503    soname_spec='${libname}${release}${shared_ext}$major'
25504    ;;
25505  esac
25506  # HP-UX runs *really* slowly unless shared libraries are mode 555.
25507  postinstall_cmds='chmod 555 $lib'
25508  ;;
25509
25510interix3*)
25511  version_type=linux
25512  need_lib_prefix=no
25513  need_version=no
25514  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25515  soname_spec='${libname}${release}${shared_ext}$major'
25516  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25517  shlibpath_var=LD_LIBRARY_PATH
25518  shlibpath_overrides_runpath=no
25519  hardcode_into_libs=yes
25520  ;;
25521
25522irix5* | irix6* | nonstopux*)
25523  case $host_os in
25524    nonstopux*) version_type=nonstopux ;;
25525    *)
25526	if test "$lt_cv_prog_gnu_ld" = yes; then
25527		version_type=linux
25528	else
25529		version_type=irix
25530	fi ;;
25531  esac
25532  need_lib_prefix=no
25533  need_version=no
25534  soname_spec='${libname}${release}${shared_ext}$major'
25535  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25536  case $host_os in
25537  irix5* | nonstopux*)
25538    libsuff= shlibsuff=
25539    ;;
25540  *)
25541    case $LD in # libtool.m4 will add one of these switches to LD
25542    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25543      libsuff= shlibsuff= libmagic=32-bit;;
25544    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25545      libsuff=32 shlibsuff=N32 libmagic=N32;;
25546    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25547      libsuff=64 shlibsuff=64 libmagic=64-bit;;
25548    *) libsuff= shlibsuff= libmagic=never-match;;
25549    esac
25550    ;;
25551  esac
25552  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25553  shlibpath_overrides_runpath=no
25554  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25555  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25556  hardcode_into_libs=yes
25557  ;;
25558
25559# No shared lib support for Linux oldld, aout, or coff.
25560linux*oldld* | linux*aout* | linux*coff*)
25561  dynamic_linker=no
25562  ;;
25563
25564# This must be Linux ELF.
25565linux*)
25566  version_type=linux
25567  need_lib_prefix=no
25568  need_version=no
25569  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25570  soname_spec='${libname}${release}${shared_ext}$major'
25571  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25572  shlibpath_var=LD_LIBRARY_PATH
25573  shlibpath_overrides_runpath=no
25574  # This implies no fast_install, which is unacceptable.
25575  # Some rework will be needed to allow for fast_install
25576  # before this can be enabled.
25577  hardcode_into_libs=yes
25578
25579  # Append ld.so.conf contents to the search path
25580  if test -f /etc/ld.so.conf; then
25581    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' ' '`
25582    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25583  fi
25584
25585  # We used to test for /lib/ld.so.1 and disable shared libraries on
25586  # powerpc, because MkLinux only supported shared libraries with the
25587  # GNU dynamic linker.  Since this was broken with cross compilers,
25588  # most powerpc-linux boxes support dynamic linking these days and
25589  # people can always --disable-shared, the test was removed, and we
25590  # assume the GNU/Linux dynamic linker is in use.
25591  dynamic_linker='GNU/Linux ld.so'
25592  ;;
25593
25594knetbsd*-gnu)
25595  version_type=linux
25596  need_lib_prefix=no
25597  need_version=no
25598  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25599  soname_spec='${libname}${release}${shared_ext}$major'
25600  shlibpath_var=LD_LIBRARY_PATH
25601  shlibpath_overrides_runpath=no
25602  hardcode_into_libs=yes
25603  dynamic_linker='GNU ld.so'
25604  ;;
25605
25606netbsd*)
25607  version_type=sunos
25608  need_lib_prefix=no
25609  need_version=no
25610  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25611    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25612    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25613    dynamic_linker='NetBSD (a.out) ld.so'
25614  else
25615    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25616    soname_spec='${libname}${release}${shared_ext}$major'
25617    dynamic_linker='NetBSD ld.elf_so'
25618  fi
25619  shlibpath_var=LD_LIBRARY_PATH
25620  shlibpath_overrides_runpath=yes
25621  hardcode_into_libs=yes
25622  ;;
25623
25624newsos6)
25625  version_type=linux
25626  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25627  shlibpath_var=LD_LIBRARY_PATH
25628  shlibpath_overrides_runpath=yes
25629  ;;
25630
25631nto-qnx*)
25632  version_type=linux
25633  need_lib_prefix=no
25634  need_version=no
25635  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25636  soname_spec='${libname}${release}${shared_ext}$major'
25637  shlibpath_var=LD_LIBRARY_PATH
25638  shlibpath_overrides_runpath=yes
25639  ;;
25640
25641openbsd*)
25642  version_type=sunos
25643  sys_lib_dlsearch_path_spec="/usr/lib"
25644  need_lib_prefix=no
25645  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25646  case $host_os in
25647    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25648    *)                         need_version=no  ;;
25649  esac
25650  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25651  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25652  shlibpath_var=LD_LIBRARY_PATH
25653  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25654    case $host_os in
25655      openbsd2.[89] | openbsd2.[89].*)
25656	shlibpath_overrides_runpath=no
25657	;;
25658      *)
25659	shlibpath_overrides_runpath=yes
25660	;;
25661      esac
25662  else
25663    shlibpath_overrides_runpath=yes
25664  fi
25665  ;;
25666
25667os2*)
25668  libname_spec='$name'
25669  shrext_cmds=".dll"
25670  need_lib_prefix=no
25671  library_names_spec='$libname${shared_ext} $libname.a'
25672  dynamic_linker='OS/2 ld.exe'
25673  shlibpath_var=LIBPATH
25674  ;;
25675
25676osf3* | osf4* | osf5*)
25677  version_type=osf
25678  need_lib_prefix=no
25679  need_version=no
25680  soname_spec='${libname}${release}${shared_ext}$major'
25681  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25682  shlibpath_var=LD_LIBRARY_PATH
25683  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25684  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25685  ;;
25686
25687solaris*)
25688  version_type=linux
25689  need_lib_prefix=no
25690  need_version=no
25691  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25692  soname_spec='${libname}${release}${shared_ext}$major'
25693  shlibpath_var=LD_LIBRARY_PATH
25694  shlibpath_overrides_runpath=yes
25695  hardcode_into_libs=yes
25696  # ldd complains unless libraries are executable
25697  postinstall_cmds='chmod +x $lib'
25698  ;;
25699
25700sunos4*)
25701  version_type=sunos
25702  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25703  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25704  shlibpath_var=LD_LIBRARY_PATH
25705  shlibpath_overrides_runpath=yes
25706  if test "$with_gnu_ld" = yes; then
25707    need_lib_prefix=no
25708  fi
25709  need_version=yes
25710  ;;
25711
25712sysv4 | sysv4.3*)
25713  version_type=linux
25714  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25715  soname_spec='${libname}${release}${shared_ext}$major'
25716  shlibpath_var=LD_LIBRARY_PATH
25717  case $host_vendor in
25718    sni)
25719      shlibpath_overrides_runpath=no
25720      need_lib_prefix=no
25721      export_dynamic_flag_spec='${wl}-Blargedynsym'
25722      runpath_var=LD_RUN_PATH
25723      ;;
25724    siemens)
25725      need_lib_prefix=no
25726      ;;
25727    motorola)
25728      need_lib_prefix=no
25729      need_version=no
25730      shlibpath_overrides_runpath=no
25731      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25732      ;;
25733  esac
25734  ;;
25735
25736sysv4*MP*)
25737  if test -d /usr/nec ;then
25738    version_type=linux
25739    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25740    soname_spec='$libname${shared_ext}.$major'
25741    shlibpath_var=LD_LIBRARY_PATH
25742  fi
25743  ;;
25744
25745sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25746  version_type=freebsd-elf
25747  need_lib_prefix=no
25748  need_version=no
25749  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25750  soname_spec='${libname}${release}${shared_ext}$major'
25751  shlibpath_var=LD_LIBRARY_PATH
25752  hardcode_into_libs=yes
25753  if test "$with_gnu_ld" = yes; then
25754    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25755    shlibpath_overrides_runpath=no
25756  else
25757    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25758    shlibpath_overrides_runpath=yes
25759    case $host_os in
25760      sco3.2v5*)
25761        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25762	;;
25763    esac
25764  fi
25765  sys_lib_dlsearch_path_spec='/usr/lib'
25766  ;;
25767
25768uts4*)
25769  version_type=linux
25770  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25771  soname_spec='${libname}${release}${shared_ext}$major'
25772  shlibpath_var=LD_LIBRARY_PATH
25773  ;;
25774
25775*)
25776  dynamic_linker=no
25777  ;;
25778esac
25779{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25780echo "${ECHO_T}$dynamic_linker" >&6; }
25781test "$dynamic_linker" = no && can_build_shared=no
25782
25783variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25784if test "$GCC" = yes; then
25785  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25786fi
25787
25788{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25789echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25790hardcode_action_GCJ=
25791if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25792   test -n "$runpath_var_GCJ" || \
25793   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25794
25795  # We can hardcode non-existant directories.
25796  if test "$hardcode_direct_GCJ" != no &&
25797     # If the only mechanism to avoid hardcoding is shlibpath_var, we
25798     # have to relink, otherwise we might link with an installed library
25799     # when we should be linking with a yet-to-be-installed one
25800     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25801     test "$hardcode_minus_L_GCJ" != no; then
25802    # Linking always hardcodes the temporary library directory.
25803    hardcode_action_GCJ=relink
25804  else
25805    # We can link without hardcoding, and we can hardcode nonexisting dirs.
25806    hardcode_action_GCJ=immediate
25807  fi
25808else
25809  # We cannot hardcode anything, or else we can only hardcode existing
25810  # directories.
25811  hardcode_action_GCJ=unsupported
25812fi
25813{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25814echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25815
25816if test "$hardcode_action_GCJ" = relink; then
25817  # Fast installation is not supported
25818  enable_fast_install=no
25819elif test "$shlibpath_overrides_runpath" = yes ||
25820     test "$enable_shared" = no; then
25821  # Fast installation is not necessary
25822  enable_fast_install=needless
25823fi
25824
25825
25826# The else clause should only fire when bootstrapping the
25827# libtool distribution, otherwise you forgot to ship ltmain.sh
25828# with your package, and you will get complaints that there are
25829# no rules to generate ltmain.sh.
25830if test -f "$ltmain"; then
25831  # See if we are running on zsh, and set the options which allow our commands through
25832  # without removal of \ escapes.
25833  if test -n "${ZSH_VERSION+set}" ; then
25834    setopt NO_GLOB_SUBST
25835  fi
25836  # Now quote all the things that may contain metacharacters while being
25837  # careful not to overquote the AC_SUBSTed values.  We take copies of the
25838  # variables and quote the copies for generation of the libtool script.
25839  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25840    SED SHELL STRIP \
25841    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25842    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25843    deplibs_check_method reload_flag reload_cmds need_locks \
25844    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25845    lt_cv_sys_global_symbol_to_c_name_address \
25846    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25847    old_postinstall_cmds old_postuninstall_cmds \
25848    compiler_GCJ \
25849    CC_GCJ \
25850    LD_GCJ \
25851    lt_prog_compiler_wl_GCJ \
25852    lt_prog_compiler_pic_GCJ \
25853    lt_prog_compiler_static_GCJ \
25854    lt_prog_compiler_no_builtin_flag_GCJ \
25855    export_dynamic_flag_spec_GCJ \
25856    thread_safe_flag_spec_GCJ \
25857    whole_archive_flag_spec_GCJ \
25858    enable_shared_with_static_runtimes_GCJ \
25859    old_archive_cmds_GCJ \
25860    old_archive_from_new_cmds_GCJ \
25861    predep_objects_GCJ \
25862    postdep_objects_GCJ \
25863    predeps_GCJ \
25864    postdeps_GCJ \
25865    compiler_lib_search_path_GCJ \
25866    archive_cmds_GCJ \
25867    archive_expsym_cmds_GCJ \
25868    postinstall_cmds_GCJ \
25869    postuninstall_cmds_GCJ \
25870    old_archive_from_expsyms_cmds_GCJ \
25871    allow_undefined_flag_GCJ \
25872    no_undefined_flag_GCJ \
25873    export_symbols_cmds_GCJ \
25874    hardcode_libdir_flag_spec_GCJ \
25875    hardcode_libdir_flag_spec_ld_GCJ \
25876    hardcode_libdir_separator_GCJ \
25877    hardcode_automatic_GCJ \
25878    module_cmds_GCJ \
25879    module_expsym_cmds_GCJ \
25880    lt_cv_prog_compiler_c_o_GCJ \
25881    exclude_expsyms_GCJ \
25882    include_expsyms_GCJ; do
25883
25884    case $var in
25885    old_archive_cmds_GCJ | \
25886    old_archive_from_new_cmds_GCJ | \
25887    archive_cmds_GCJ | \
25888    archive_expsym_cmds_GCJ | \
25889    module_cmds_GCJ | \
25890    module_expsym_cmds_GCJ | \
25891    old_archive_from_expsyms_cmds_GCJ | \
25892    export_symbols_cmds_GCJ | \
25893    extract_expsyms_cmds | reload_cmds | finish_cmds | \
25894    postinstall_cmds | postuninstall_cmds | \
25895    old_postinstall_cmds | old_postuninstall_cmds | \
25896    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25897      # Double-quote double-evaled strings.
25898      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25899      ;;
25900    *)
25901      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25902      ;;
25903    esac
25904  done
25905
25906  case $lt_echo in
25907  *'\$0 --fallback-echo"')
25908    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25909    ;;
25910  esac
25911
25912cfgfile="$ofile"
25913
25914  cat <<__EOF__ >> "$cfgfile"
25915# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25916
25917# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25918
25919# Shell to use when invoking shell scripts.
25920SHELL=$lt_SHELL
25921
25922# Whether or not to build shared libraries.
25923build_libtool_libs=$enable_shared
25924
25925# Whether or not to build static libraries.
25926build_old_libs=$enable_static
25927
25928# Whether or not to add -lc for building shared libraries.
25929build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25930
25931# Whether or not to disallow shared libs when runtime libs are static
25932allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25933
25934# Whether or not to optimize for fast installation.
25935fast_install=$enable_fast_install
25936
25937# The host system.
25938host_alias=$host_alias
25939host=$host
25940host_os=$host_os
25941
25942# The build system.
25943build_alias=$build_alias
25944build=$build
25945build_os=$build_os
25946
25947# An echo program that does not interpret backslashes.
25948echo=$lt_echo
25949
25950# The archiver.
25951AR=$lt_AR
25952AR_FLAGS=$lt_AR_FLAGS
25953
25954# A C compiler.
25955LTCC=$lt_LTCC
25956
25957# LTCC compiler flags.
25958LTCFLAGS=$lt_LTCFLAGS
25959
25960# A language-specific compiler.
25961CC=$lt_compiler_GCJ
25962
25963# Is the compiler the GNU C compiler?
25964with_gcc=$GCC_GCJ
25965
25966# An ERE matcher.
25967EGREP=$lt_EGREP
25968
25969# The linker used to build libraries.
25970LD=$lt_LD_GCJ
25971
25972# Whether we need hard or soft links.
25973LN_S=$lt_LN_S
25974
25975# A BSD-compatible nm program.
25976NM=$lt_NM
25977
25978# A symbol stripping program
25979STRIP=$lt_STRIP
25980
25981# Used to examine libraries when file_magic_cmd begins "file"
25982MAGIC_CMD=$MAGIC_CMD
25983
25984# Used on cygwin: DLL creation program.
25985DLLTOOL="$DLLTOOL"
25986
25987# Used on cygwin: object dumper.
25988OBJDUMP="$OBJDUMP"
25989
25990# Used on cygwin: assembler.
25991AS="$AS"
25992
25993# The name of the directory that contains temporary libtool files.
25994objdir=$objdir
25995
25996# How to create reloadable object files.
25997reload_flag=$lt_reload_flag
25998reload_cmds=$lt_reload_cmds
25999
26000# How to pass a linker flag through the compiler.
26001wl=$lt_lt_prog_compiler_wl_GCJ
26002
26003# Object file suffix (normally "o").
26004objext="$ac_objext"
26005
26006# Old archive suffix (normally "a").
26007libext="$libext"
26008
26009# Shared library suffix (normally ".so").
26010shrext_cmds='$shrext_cmds'
26011
26012# Executable file suffix (normally "").
26013exeext="$exeext"
26014
26015# Additional compiler flags for building library objects.
26016pic_flag=$lt_lt_prog_compiler_pic_GCJ
26017pic_mode=$pic_mode
26018
26019# What is the maximum length of a command?
26020max_cmd_len=$lt_cv_sys_max_cmd_len
26021
26022# Does compiler simultaneously support -c and -o options?
26023compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26024
26025# Must we lock files when doing compilation?
26026need_locks=$lt_need_locks
26027
26028# Do we need the lib prefix for modules?
26029need_lib_prefix=$need_lib_prefix
26030
26031# Do we need a version for libraries?
26032need_version=$need_version
26033
26034# Whether dlopen is supported.
26035dlopen_support=$enable_dlopen
26036
26037# Whether dlopen of programs is supported.
26038dlopen_self=$enable_dlopen_self
26039
26040# Whether dlopen of statically linked programs is supported.
26041dlopen_self_static=$enable_dlopen_self_static
26042
26043# Compiler flag to prevent dynamic linking.
26044link_static_flag=$lt_lt_prog_compiler_static_GCJ
26045
26046# Compiler flag to turn off builtin functions.
26047no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26048
26049# Compiler flag to allow reflexive dlopens.
26050export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26051
26052# Compiler flag to generate shared objects directly from archives.
26053whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26054
26055# Compiler flag to generate thread-safe objects.
26056thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26057
26058# Library versioning type.
26059version_type=$version_type
26060
26061# Format of library name prefix.
26062libname_spec=$lt_libname_spec
26063
26064# List of archive names.  First name is the real one, the rest are links.
26065# The last name is the one that the linker finds with -lNAME.
26066library_names_spec=$lt_library_names_spec
26067
26068# The coded name of the library, if different from the real name.
26069soname_spec=$lt_soname_spec
26070
26071# Commands used to build and install an old-style archive.
26072RANLIB=$lt_RANLIB
26073old_archive_cmds=$lt_old_archive_cmds_GCJ
26074old_postinstall_cmds=$lt_old_postinstall_cmds
26075old_postuninstall_cmds=$lt_old_postuninstall_cmds
26076
26077# Create an old-style archive from a shared archive.
26078old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26079
26080# Create a temporary old-style archive to link instead of a shared archive.
26081old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26082
26083# Commands used to build and install a shared archive.
26084archive_cmds=$lt_archive_cmds_GCJ
26085archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26086postinstall_cmds=$lt_postinstall_cmds
26087postuninstall_cmds=$lt_postuninstall_cmds
26088
26089# Commands used to build a loadable module (assumed same as above if empty)
26090module_cmds=$lt_module_cmds_GCJ
26091module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26092
26093# Commands to strip libraries.
26094old_striplib=$lt_old_striplib
26095striplib=$lt_striplib
26096
26097# Dependencies to place before the objects being linked to create a
26098# shared library.
26099predep_objects=$lt_predep_objects_GCJ
26100
26101# Dependencies to place after the objects being linked to create a
26102# shared library.
26103postdep_objects=$lt_postdep_objects_GCJ
26104
26105# Dependencies to place before the objects being linked to create a
26106# shared library.
26107predeps=$lt_predeps_GCJ
26108
26109# Dependencies to place after the objects being linked to create a
26110# shared library.
26111postdeps=$lt_postdeps_GCJ
26112
26113# The library search path used internally by the compiler when linking
26114# a shared library.
26115compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26116
26117# Method to check whether dependent libraries are shared objects.
26118deplibs_check_method=$lt_deplibs_check_method
26119
26120# Command to use when deplibs_check_method == file_magic.
26121file_magic_cmd=$lt_file_magic_cmd
26122
26123# Flag that allows shared libraries with undefined symbols to be built.
26124allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26125
26126# Flag that forces no undefined symbols.
26127no_undefined_flag=$lt_no_undefined_flag_GCJ
26128
26129# Commands used to finish a libtool library installation in a directory.
26130finish_cmds=$lt_finish_cmds
26131
26132# Same as above, but a single script fragment to be evaled but not shown.
26133finish_eval=$lt_finish_eval
26134
26135# Take the output of nm and produce a listing of raw symbols and C names.
26136global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26137
26138# Transform the output of nm in a proper C declaration
26139global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26140
26141# Transform the output of nm in a C name address pair
26142global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26143
26144# This is the shared library runtime path variable.
26145runpath_var=$runpath_var
26146
26147# This is the shared library path variable.
26148shlibpath_var=$shlibpath_var
26149
26150# Is shlibpath searched before the hard-coded library search path?
26151shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26152
26153# How to hardcode a shared library path into an executable.
26154hardcode_action=$hardcode_action_GCJ
26155
26156# Whether we should hardcode library paths into libraries.
26157hardcode_into_libs=$hardcode_into_libs
26158
26159# Flag to hardcode \$libdir into a binary during linking.
26160# This must work even if \$libdir does not exist.
26161hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26162
26163# If ld is used when linking, flag to hardcode \$libdir into
26164# a binary during linking. This must work even if \$libdir does
26165# not exist.
26166hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26167
26168# Whether we need a single -rpath flag with a separated argument.
26169hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26170
26171# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26172# resulting binary.
26173hardcode_direct=$hardcode_direct_GCJ
26174
26175# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26176# resulting binary.
26177hardcode_minus_L=$hardcode_minus_L_GCJ
26178
26179# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26180# the resulting binary.
26181hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26182
26183# Set to yes if building a shared library automatically hardcodes DIR into the library
26184# and all subsequent libraries and executables linked against it.
26185hardcode_automatic=$hardcode_automatic_GCJ
26186
26187# Variables whose values should be saved in libtool wrapper scripts and
26188# restored at relink time.
26189variables_saved_for_relink="$variables_saved_for_relink"
26190
26191# Whether libtool must link a program against all its dependency libraries.
26192link_all_deplibs=$link_all_deplibs_GCJ
26193
26194# Compile-time system search path for libraries
26195sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26196
26197# Run-time system search path for libraries
26198sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26199
26200# Fix the shell variable \$srcfile for the compiler.
26201fix_srcfile_path="$fix_srcfile_path_GCJ"
26202
26203# Set to yes if exported symbols are required.
26204always_export_symbols=$always_export_symbols_GCJ
26205
26206# The commands to list exported symbols.
26207export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26208
26209# The commands to extract the exported symbol list from a shared archive.
26210extract_expsyms_cmds=$lt_extract_expsyms_cmds
26211
26212# Symbols that should not be listed in the preloaded symbols.
26213exclude_expsyms=$lt_exclude_expsyms_GCJ
26214
26215# Symbols that must always be exported.
26216include_expsyms=$lt_include_expsyms_GCJ
26217
26218# ### END LIBTOOL TAG CONFIG: $tagname
26219
26220__EOF__
26221
26222
26223else
26224  # If there is no Makefile yet, we rely on a make rule to execute
26225  # `config.status --recheck' to rerun these tests and create the
26226  # libtool script then.
26227  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26228  if test -f "$ltmain_in"; then
26229    test -f Makefile && make "$ltmain"
26230  fi
26231fi
26232
26233
26234ac_ext=c
26235ac_cpp='$CPP $CPPFLAGS'
26236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26238ac_compiler_gnu=$ac_cv_c_compiler_gnu
26239
26240CC="$lt_save_CC"
26241
26242	else
26243	  tagname=""
26244	fi
26245	;;
26246
26247      RC)
26248	ac_ext=c
26249ac_cpp='$CPP $CPPFLAGS'
26250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26252ac_compiler_gnu=$ac_cv_c_compiler_gnu
26253
26254
26255# Source file extension for RC test sources.
26256ac_ext=rc
26257
26258# Object file extension for compiled RC test sources.
26259objext=o
26260objext_RC=$objext
26261
26262# Code to be used in simple compile tests
26263lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26264
26265# Code to be used in simple link tests
26266lt_simple_link_test_code="$lt_simple_compile_test_code"
26267
26268# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26269
26270# If no C compiler was specified, use CC.
26271LTCC=${LTCC-"$CC"}
26272
26273# If no C compiler flags were specified, use CFLAGS.
26274LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26275
26276# Allow CC to be a program name with arguments.
26277compiler=$CC
26278
26279
26280# save warnings/boilerplate of simple test code
26281ac_outfile=conftest.$ac_objext
26282printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26283eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26284_lt_compiler_boilerplate=`cat conftest.err`
26285$rm conftest*
26286
26287ac_outfile=conftest.$ac_objext
26288printf "$lt_simple_link_test_code" >conftest.$ac_ext
26289eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26290_lt_linker_boilerplate=`cat conftest.err`
26291$rm conftest*
26292
26293
26294# Allow CC to be a program name with arguments.
26295lt_save_CC="$CC"
26296CC=${RC-"windres"}
26297compiler=$CC
26298compiler_RC=$CC
26299for cc_temp in $compiler""; do
26300  case $cc_temp in
26301    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26302    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26303    \-*) ;;
26304    *) break;;
26305  esac
26306done
26307cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26308
26309lt_cv_prog_compiler_c_o_RC=yes
26310
26311# The else clause should only fire when bootstrapping the
26312# libtool distribution, otherwise you forgot to ship ltmain.sh
26313# with your package, and you will get complaints that there are
26314# no rules to generate ltmain.sh.
26315if test -f "$ltmain"; then
26316  # See if we are running on zsh, and set the options which allow our commands through
26317  # without removal of \ escapes.
26318  if test -n "${ZSH_VERSION+set}" ; then
26319    setopt NO_GLOB_SUBST
26320  fi
26321  # Now quote all the things that may contain metacharacters while being
26322  # careful not to overquote the AC_SUBSTed values.  We take copies of the
26323  # variables and quote the copies for generation of the libtool script.
26324  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26325    SED SHELL STRIP \
26326    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26327    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26328    deplibs_check_method reload_flag reload_cmds need_locks \
26329    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26330    lt_cv_sys_global_symbol_to_c_name_address \
26331    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26332    old_postinstall_cmds old_postuninstall_cmds \
26333    compiler_RC \
26334    CC_RC \
26335    LD_RC \
26336    lt_prog_compiler_wl_RC \
26337    lt_prog_compiler_pic_RC \
26338    lt_prog_compiler_static_RC \
26339    lt_prog_compiler_no_builtin_flag_RC \
26340    export_dynamic_flag_spec_RC \
26341    thread_safe_flag_spec_RC \
26342    whole_archive_flag_spec_RC \
26343    enable_shared_with_static_runtimes_RC \
26344    old_archive_cmds_RC \
26345    old_archive_from_new_cmds_RC \
26346    predep_objects_RC \
26347    postdep_objects_RC \
26348    predeps_RC \
26349    postdeps_RC \
26350    compiler_lib_search_path_RC \
26351    archive_cmds_RC \
26352    archive_expsym_cmds_RC \
26353    postinstall_cmds_RC \
26354    postuninstall_cmds_RC \
26355    old_archive_from_expsyms_cmds_RC \
26356    allow_undefined_flag_RC \
26357    no_undefined_flag_RC \
26358    export_symbols_cmds_RC \
26359    hardcode_libdir_flag_spec_RC \
26360    hardcode_libdir_flag_spec_ld_RC \
26361    hardcode_libdir_separator_RC \
26362    hardcode_automatic_RC \
26363    module_cmds_RC \
26364    module_expsym_cmds_RC \
26365    lt_cv_prog_compiler_c_o_RC \
26366    exclude_expsyms_RC \
26367    include_expsyms_RC; do
26368
26369    case $var in
26370    old_archive_cmds_RC | \
26371    old_archive_from_new_cmds_RC | \
26372    archive_cmds_RC | \
26373    archive_expsym_cmds_RC | \
26374    module_cmds_RC | \
26375    module_expsym_cmds_RC | \
26376    old_archive_from_expsyms_cmds_RC | \
26377    export_symbols_cmds_RC | \
26378    extract_expsyms_cmds | reload_cmds | finish_cmds | \
26379    postinstall_cmds | postuninstall_cmds | \
26380    old_postinstall_cmds | old_postuninstall_cmds | \
26381    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26382      # Double-quote double-evaled strings.
26383      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26384      ;;
26385    *)
26386      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26387      ;;
26388    esac
26389  done
26390
26391  case $lt_echo in
26392  *'\$0 --fallback-echo"')
26393    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26394    ;;
26395  esac
26396
26397cfgfile="$ofile"
26398
26399  cat <<__EOF__ >> "$cfgfile"
26400# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26401
26402# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26403
26404# Shell to use when invoking shell scripts.
26405SHELL=$lt_SHELL
26406
26407# Whether or not to build shared libraries.
26408build_libtool_libs=$enable_shared
26409
26410# Whether or not to build static libraries.
26411build_old_libs=$enable_static
26412
26413# Whether or not to add -lc for building shared libraries.
26414build_libtool_need_lc=$archive_cmds_need_lc_RC
26415
26416# Whether or not to disallow shared libs when runtime libs are static
26417allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26418
26419# Whether or not to optimize for fast installation.
26420fast_install=$enable_fast_install
26421
26422# The host system.
26423host_alias=$host_alias
26424host=$host
26425host_os=$host_os
26426
26427# The build system.
26428build_alias=$build_alias
26429build=$build
26430build_os=$build_os
26431
26432# An echo program that does not interpret backslashes.
26433echo=$lt_echo
26434
26435# The archiver.
26436AR=$lt_AR
26437AR_FLAGS=$lt_AR_FLAGS
26438
26439# A C compiler.
26440LTCC=$lt_LTCC
26441
26442# LTCC compiler flags.
26443LTCFLAGS=$lt_LTCFLAGS
26444
26445# A language-specific compiler.
26446CC=$lt_compiler_RC
26447
26448# Is the compiler the GNU C compiler?
26449with_gcc=$GCC_RC
26450
26451# An ERE matcher.
26452EGREP=$lt_EGREP
26453
26454# The linker used to build libraries.
26455LD=$lt_LD_RC
26456
26457# Whether we need hard or soft links.
26458LN_S=$lt_LN_S
26459
26460# A BSD-compatible nm program.
26461NM=$lt_NM
26462
26463# A symbol stripping program
26464STRIP=$lt_STRIP
26465
26466# Used to examine libraries when file_magic_cmd begins "file"
26467MAGIC_CMD=$MAGIC_CMD
26468
26469# Used on cygwin: DLL creation program.
26470DLLTOOL="$DLLTOOL"
26471
26472# Used on cygwin: object dumper.
26473OBJDUMP="$OBJDUMP"
26474
26475# Used on cygwin: assembler.
26476AS="$AS"
26477
26478# The name of the directory that contains temporary libtool files.
26479objdir=$objdir
26480
26481# How to create reloadable object files.
26482reload_flag=$lt_reload_flag
26483reload_cmds=$lt_reload_cmds
26484
26485# How to pass a linker flag through the compiler.
26486wl=$lt_lt_prog_compiler_wl_RC
26487
26488# Object file suffix (normally "o").
26489objext="$ac_objext"
26490
26491# Old archive suffix (normally "a").
26492libext="$libext"
26493
26494# Shared library suffix (normally ".so").
26495shrext_cmds='$shrext_cmds'
26496
26497# Executable file suffix (normally "").
26498exeext="$exeext"
26499
26500# Additional compiler flags for building library objects.
26501pic_flag=$lt_lt_prog_compiler_pic_RC
26502pic_mode=$pic_mode
26503
26504# What is the maximum length of a command?
26505max_cmd_len=$lt_cv_sys_max_cmd_len
26506
26507# Does compiler simultaneously support -c and -o options?
26508compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26509
26510# Must we lock files when doing compilation?
26511need_locks=$lt_need_locks
26512
26513# Do we need the lib prefix for modules?
26514need_lib_prefix=$need_lib_prefix
26515
26516# Do we need a version for libraries?
26517need_version=$need_version
26518
26519# Whether dlopen is supported.
26520dlopen_support=$enable_dlopen
26521
26522# Whether dlopen of programs is supported.
26523dlopen_self=$enable_dlopen_self
26524
26525# Whether dlopen of statically linked programs is supported.
26526dlopen_self_static=$enable_dlopen_self_static
26527
26528# Compiler flag to prevent dynamic linking.
26529link_static_flag=$lt_lt_prog_compiler_static_RC
26530
26531# Compiler flag to turn off builtin functions.
26532no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26533
26534# Compiler flag to allow reflexive dlopens.
26535export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26536
26537# Compiler flag to generate shared objects directly from archives.
26538whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26539
26540# Compiler flag to generate thread-safe objects.
26541thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26542
26543# Library versioning type.
26544version_type=$version_type
26545
26546# Format of library name prefix.
26547libname_spec=$lt_libname_spec
26548
26549# List of archive names.  First name is the real one, the rest are links.
26550# The last name is the one that the linker finds with -lNAME.
26551library_names_spec=$lt_library_names_spec
26552
26553# The coded name of the library, if different from the real name.
26554soname_spec=$lt_soname_spec
26555
26556# Commands used to build and install an old-style archive.
26557RANLIB=$lt_RANLIB
26558old_archive_cmds=$lt_old_archive_cmds_RC
26559old_postinstall_cmds=$lt_old_postinstall_cmds
26560old_postuninstall_cmds=$lt_old_postuninstall_cmds
26561
26562# Create an old-style archive from a shared archive.
26563old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26564
26565# Create a temporary old-style archive to link instead of a shared archive.
26566old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26567
26568# Commands used to build and install a shared archive.
26569archive_cmds=$lt_archive_cmds_RC
26570archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26571postinstall_cmds=$lt_postinstall_cmds
26572postuninstall_cmds=$lt_postuninstall_cmds
26573
26574# Commands used to build a loadable module (assumed same as above if empty)
26575module_cmds=$lt_module_cmds_RC
26576module_expsym_cmds=$lt_module_expsym_cmds_RC
26577
26578# Commands to strip libraries.
26579old_striplib=$lt_old_striplib
26580striplib=$lt_striplib
26581
26582# Dependencies to place before the objects being linked to create a
26583# shared library.
26584predep_objects=$lt_predep_objects_RC
26585
26586# Dependencies to place after the objects being linked to create a
26587# shared library.
26588postdep_objects=$lt_postdep_objects_RC
26589
26590# Dependencies to place before the objects being linked to create a
26591# shared library.
26592predeps=$lt_predeps_RC
26593
26594# Dependencies to place after the objects being linked to create a
26595# shared library.
26596postdeps=$lt_postdeps_RC
26597
26598# The library search path used internally by the compiler when linking
26599# a shared library.
26600compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26601
26602# Method to check whether dependent libraries are shared objects.
26603deplibs_check_method=$lt_deplibs_check_method
26604
26605# Command to use when deplibs_check_method == file_magic.
26606file_magic_cmd=$lt_file_magic_cmd
26607
26608# Flag that allows shared libraries with undefined symbols to be built.
26609allow_undefined_flag=$lt_allow_undefined_flag_RC
26610
26611# Flag that forces no undefined symbols.
26612no_undefined_flag=$lt_no_undefined_flag_RC
26613
26614# Commands used to finish a libtool library installation in a directory.
26615finish_cmds=$lt_finish_cmds
26616
26617# Same as above, but a single script fragment to be evaled but not shown.
26618finish_eval=$lt_finish_eval
26619
26620# Take the output of nm and produce a listing of raw symbols and C names.
26621global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26622
26623# Transform the output of nm in a proper C declaration
26624global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26625
26626# Transform the output of nm in a C name address pair
26627global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26628
26629# This is the shared library runtime path variable.
26630runpath_var=$runpath_var
26631
26632# This is the shared library path variable.
26633shlibpath_var=$shlibpath_var
26634
26635# Is shlibpath searched before the hard-coded library search path?
26636shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26637
26638# How to hardcode a shared library path into an executable.
26639hardcode_action=$hardcode_action_RC
26640
26641# Whether we should hardcode library paths into libraries.
26642hardcode_into_libs=$hardcode_into_libs
26643
26644# Flag to hardcode \$libdir into a binary during linking.
26645# This must work even if \$libdir does not exist.
26646hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26647
26648# If ld is used when linking, flag to hardcode \$libdir into
26649# a binary during linking. This must work even if \$libdir does
26650# not exist.
26651hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26652
26653# Whether we need a single -rpath flag with a separated argument.
26654hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26655
26656# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26657# resulting binary.
26658hardcode_direct=$hardcode_direct_RC
26659
26660# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26661# resulting binary.
26662hardcode_minus_L=$hardcode_minus_L_RC
26663
26664# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26665# the resulting binary.
26666hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26667
26668# Set to yes if building a shared library automatically hardcodes DIR into the library
26669# and all subsequent libraries and executables linked against it.
26670hardcode_automatic=$hardcode_automatic_RC
26671
26672# Variables whose values should be saved in libtool wrapper scripts and
26673# restored at relink time.
26674variables_saved_for_relink="$variables_saved_for_relink"
26675
26676# Whether libtool must link a program against all its dependency libraries.
26677link_all_deplibs=$link_all_deplibs_RC
26678
26679# Compile-time system search path for libraries
26680sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26681
26682# Run-time system search path for libraries
26683sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26684
26685# Fix the shell variable \$srcfile for the compiler.
26686fix_srcfile_path="$fix_srcfile_path_RC"
26687
26688# Set to yes if exported symbols are required.
26689always_export_symbols=$always_export_symbols_RC
26690
26691# The commands to list exported symbols.
26692export_symbols_cmds=$lt_export_symbols_cmds_RC
26693
26694# The commands to extract the exported symbol list from a shared archive.
26695extract_expsyms_cmds=$lt_extract_expsyms_cmds
26696
26697# Symbols that should not be listed in the preloaded symbols.
26698exclude_expsyms=$lt_exclude_expsyms_RC
26699
26700# Symbols that must always be exported.
26701include_expsyms=$lt_include_expsyms_RC
26702
26703# ### END LIBTOOL TAG CONFIG: $tagname
26704
26705__EOF__
26706
26707
26708else
26709  # If there is no Makefile yet, we rely on a make rule to execute
26710  # `config.status --recheck' to rerun these tests and create the
26711  # libtool script then.
26712  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26713  if test -f "$ltmain_in"; then
26714    test -f Makefile && make "$ltmain"
26715  fi
26716fi
26717
26718
26719ac_ext=c
26720ac_cpp='$CPP $CPPFLAGS'
26721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26723ac_compiler_gnu=$ac_cv_c_compiler_gnu
26724
26725CC="$lt_save_CC"
26726
26727	;;
26728
26729      *)
26730	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26731echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26732   { (exit 1); exit 1; }; }
26733	;;
26734      esac
26735
26736      # Append the new tag name to the list of available tags.
26737      if test -n "$tagname" ; then
26738      available_tags="$available_tags $tagname"
26739    fi
26740    fi
26741  done
26742  IFS="$lt_save_ifs"
26743
26744  # Now substitute the updated list of available tags.
26745  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26746    mv "${ofile}T" "$ofile"
26747    chmod +x "$ofile"
26748  else
26749    rm -f "${ofile}T"
26750    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26751echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26752   { (exit 1); exit 1; }; }
26753  fi
26754fi
26755
26756
26757
26758# This can be used to rebuild libtool when needed
26759LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26760
26761# Always use our own libtool.
26762LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26763
26764# Prevent multiple expansion
26765
26766
26767
26768
26769
26770
26771
26772
26773
26774
26775
26776
26777
26778
26779
26780
26781
26782
26783
26784
26785
26786if test "$lt_cv_dlopen_self" = "yes" ; then
26787
26788cat >>confdefs.h <<\_ACEOF
26789#define CAN_DLOPEN_SELF 1
26790_ACEOF
26791
26792fi
26793
26794if test "$WITH_LLVMGCCDIR" = "default" ; then
26795  LLVMGCC="llvm-gcc${EXEEXT}"
26796  LLVMGXX="llvm-g++${EXEEXT}"
26797  # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26798set dummy $LLVMGCC; ac_word=$2
26799{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26801if test "${ac_cv_path_LLVMGCC+set}" = set; then
26802  echo $ECHO_N "(cached) $ECHO_C" >&6
26803else
26804  case $LLVMGCC in
26805  [\\/]* | ?:[\\/]*)
26806  ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26807  ;;
26808  *)
26809  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26810for as_dir in $PATH
26811do
26812  IFS=$as_save_IFS
26813  test -z "$as_dir" && as_dir=.
26814  for ac_exec_ext in '' $ac_executable_extensions; do
26815  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26816    ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26817    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26818    break 2
26819  fi
26820done
26821done
26822IFS=$as_save_IFS
26823
26824  ;;
26825esac
26826fi
26827LLVMGCC=$ac_cv_path_LLVMGCC
26828if test -n "$LLVMGCC"; then
26829  { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26830echo "${ECHO_T}$LLVMGCC" >&6; }
26831else
26832  { echo "$as_me:$LINENO: result: no" >&5
26833echo "${ECHO_T}no" >&6; }
26834fi
26835
26836
26837  # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26838set dummy $LLVMGXX; ac_word=$2
26839{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26841if test "${ac_cv_path_LLVMGXX+set}" = set; then
26842  echo $ECHO_N "(cached) $ECHO_C" >&6
26843else
26844  case $LLVMGXX in
26845  [\\/]* | ?:[\\/]*)
26846  ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26847  ;;
26848  *)
26849  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26850for as_dir in $PATH
26851do
26852  IFS=$as_save_IFS
26853  test -z "$as_dir" && as_dir=.
26854  for ac_exec_ext in '' $ac_executable_extensions; do
26855  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26856    ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26857    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26858    break 2
26859  fi
26860done
26861done
26862IFS=$as_save_IFS
26863
26864  ;;
26865esac
26866fi
26867LLVMGXX=$ac_cv_path_LLVMGXX
26868if test -n "$LLVMGXX"; then
26869  { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26870echo "${ECHO_T}$LLVMGXX" >&6; }
26871else
26872  { echo "$as_me:$LINENO: result: no" >&5
26873echo "${ECHO_T}no" >&6; }
26874fi
26875
26876
26877else
26878  if test -z "$LLVMGCC"; then
26879    LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26880  fi
26881  if test -z "$LLVMGXX"; then
26882    LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26883  fi
26884  LLVMGCC=$LLVMGCC
26885
26886  LLVMGXX=$LLVMGXX
26887
26888fi
26889
26890{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26891echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26892
26893ICC=no
26894IXX=no
26895case $CC in
26896  icc*|icpc*)
26897    ICC=yes
26898    IXX=yes
26899    ;;
26900   *)
26901    ;;
26902esac
26903
26904if test "$GCC" != "yes" && test "$ICC" != "yes"
26905then
26906  { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26907echo "$as_me: error: gcc|icc required but not found" >&2;}
26908   { (exit 1); exit 1; }; }
26909fi
26910
26911if test "$GXX" != "yes" && test "$IXX" != "yes"
26912then
26913  { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26914echo "$as_me: error: g++|icc required but not found" >&2;}
26915   { (exit 1); exit 1; }; }
26916fi
26917
26918if test "$GCC" = "yes"
26919then
26920  cat >conftest.$ac_ext <<_ACEOF
26921#if !defined(__GNUC__) || __GNUC__ < 3
26922#error Unsupported GCC version
26923#endif
26924
26925_ACEOF
26926rm -f conftest.$ac_objext
26927if { (ac_try="$ac_compile"
26928case "(($ac_try" in
26929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26930  *) ac_try_echo=$ac_try;;
26931esac
26932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26933  (eval "$ac_compile") 2>conftest.er1
26934  ac_status=$?
26935  grep -v '^ *+' conftest.er1 >conftest.err
26936  rm -f conftest.er1
26937  cat conftest.err >&5
26938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26939  (exit $ac_status); } &&
26940	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26941  { (case "(($ac_try" in
26942  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26943  *) ac_try_echo=$ac_try;;
26944esac
26945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26946  (eval "$ac_try") 2>&5
26947  ac_status=$?
26948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26949  (exit $ac_status); }; } &&
26950	 { ac_try='test -s conftest.$ac_objext'
26951  { (case "(($ac_try" in
26952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26953  *) ac_try_echo=$ac_try;;
26954esac
26955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26956  (eval "$ac_try") 2>&5
26957  ac_status=$?
26958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26959  (exit $ac_status); }; }; then
26960  :
26961else
26962  echo "$as_me: failed program was:" >&5
26963sed 's/^/| /' conftest.$ac_ext >&5
26964
26965	{ { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26966echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26967   { (exit 1); exit 1; }; }
26968fi
26969
26970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26971fi
26972
26973if test -z "$llvm_cv_gnu_make_command"
26974then
26975  { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26976echo "$as_me: error: GNU Make required but not found" >&2;}
26977   { (exit 1); exit 1; }; }
26978fi
26979
26980{ echo "$as_me:$LINENO: result: ok" >&5
26981echo "${ECHO_T}ok" >&6; }
26982
26983
26984
26985{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26986echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26987if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26988  echo $ECHO_N "(cached) $ECHO_C" >&6
26989else
26990  ac_check_lib_save_LIBS=$LIBS
26991LIBS="-lelf  $LIBS"
26992cat >conftest.$ac_ext <<_ACEOF
26993/* confdefs.h.  */
26994_ACEOF
26995cat confdefs.h >>conftest.$ac_ext
26996cat >>conftest.$ac_ext <<_ACEOF
26997/* end confdefs.h.  */
26998
26999/* Override any GCC internal prototype to avoid an error.
27000   Use char because int might match the return type of a GCC
27001   builtin and then its argument prototype would still apply.  */
27002#ifdef __cplusplus
27003extern "C"
27004#endif
27005char elf_begin ();
27006int
27007main ()
27008{
27009return elf_begin ();
27010  ;
27011  return 0;
27012}
27013_ACEOF
27014rm -f conftest.$ac_objext conftest$ac_exeext
27015if { (ac_try="$ac_link"
27016case "(($ac_try" in
27017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27018  *) ac_try_echo=$ac_try;;
27019esac
27020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27021  (eval "$ac_link") 2>conftest.er1
27022  ac_status=$?
27023  grep -v '^ *+' conftest.er1 >conftest.err
27024  rm -f conftest.er1
27025  cat conftest.err >&5
27026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27027  (exit $ac_status); } &&
27028	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27029  { (case "(($ac_try" in
27030  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27031  *) ac_try_echo=$ac_try;;
27032esac
27033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27034  (eval "$ac_try") 2>&5
27035  ac_status=$?
27036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27037  (exit $ac_status); }; } &&
27038	 { ac_try='test -s conftest$ac_exeext'
27039  { (case "(($ac_try" in
27040  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27041  *) ac_try_echo=$ac_try;;
27042esac
27043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27044  (eval "$ac_try") 2>&5
27045  ac_status=$?
27046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27047  (exit $ac_status); }; }; then
27048  ac_cv_lib_elf_elf_begin=yes
27049else
27050  echo "$as_me: failed program was:" >&5
27051sed 's/^/| /' conftest.$ac_ext >&5
27052
27053	ac_cv_lib_elf_elf_begin=no
27054fi
27055
27056rm -f core conftest.err conftest.$ac_objext \
27057      conftest$ac_exeext conftest.$ac_ext
27058LIBS=$ac_check_lib_save_LIBS
27059fi
27060{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27061echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27062if test $ac_cv_lib_elf_elf_begin = yes; then
27063  cat >>confdefs.h <<_ACEOF
27064#define HAVE_LIBELF 1
27065_ACEOF
27066
27067  LIBS="-lelf $LIBS"
27068
27069fi
27070
27071
27072{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27073echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27074if test "${ac_cv_lib_m_sin+set}" = set; then
27075  echo $ECHO_N "(cached) $ECHO_C" >&6
27076else
27077  ac_check_lib_save_LIBS=$LIBS
27078LIBS="-lm  $LIBS"
27079cat >conftest.$ac_ext <<_ACEOF
27080/* confdefs.h.  */
27081_ACEOF
27082cat confdefs.h >>conftest.$ac_ext
27083cat >>conftest.$ac_ext <<_ACEOF
27084/* end confdefs.h.  */
27085
27086/* Override any GCC internal prototype to avoid an error.
27087   Use char because int might match the return type of a GCC
27088   builtin and then its argument prototype would still apply.  */
27089#ifdef __cplusplus
27090extern "C"
27091#endif
27092char sin ();
27093int
27094main ()
27095{
27096return sin ();
27097  ;
27098  return 0;
27099}
27100_ACEOF
27101rm -f conftest.$ac_objext conftest$ac_exeext
27102if { (ac_try="$ac_link"
27103case "(($ac_try" in
27104  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27105  *) ac_try_echo=$ac_try;;
27106esac
27107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27108  (eval "$ac_link") 2>conftest.er1
27109  ac_status=$?
27110  grep -v '^ *+' conftest.er1 >conftest.err
27111  rm -f conftest.er1
27112  cat conftest.err >&5
27113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27114  (exit $ac_status); } &&
27115	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27116  { (case "(($ac_try" in
27117  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27118  *) ac_try_echo=$ac_try;;
27119esac
27120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27121  (eval "$ac_try") 2>&5
27122  ac_status=$?
27123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27124  (exit $ac_status); }; } &&
27125	 { ac_try='test -s conftest$ac_exeext'
27126  { (case "(($ac_try" in
27127  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27128  *) ac_try_echo=$ac_try;;
27129esac
27130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27131  (eval "$ac_try") 2>&5
27132  ac_status=$?
27133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27134  (exit $ac_status); }; }; then
27135  ac_cv_lib_m_sin=yes
27136else
27137  echo "$as_me: failed program was:" >&5
27138sed 's/^/| /' conftest.$ac_ext >&5
27139
27140	ac_cv_lib_m_sin=no
27141fi
27142
27143rm -f core conftest.err conftest.$ac_objext \
27144      conftest$ac_exeext conftest.$ac_ext
27145LIBS=$ac_check_lib_save_LIBS
27146fi
27147{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27148echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27149if test $ac_cv_lib_m_sin = yes; then
27150  cat >>confdefs.h <<_ACEOF
27151#define HAVE_LIBM 1
27152_ACEOF
27153
27154  LIBS="-lm $LIBS"
27155
27156fi
27157
27158if test "$llvm_cv_os_type" = "MingW" ; then
27159
27160{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27161echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27162if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27163  echo $ECHO_N "(cached) $ECHO_C" >&6
27164else
27165  ac_check_lib_save_LIBS=$LIBS
27166LIBS="-limagehlp  $LIBS"
27167cat >conftest.$ac_ext <<_ACEOF
27168/* confdefs.h.  */
27169_ACEOF
27170cat confdefs.h >>conftest.$ac_ext
27171cat >>conftest.$ac_ext <<_ACEOF
27172/* end confdefs.h.  */
27173
27174
27175int
27176main ()
27177{
27178return main ();
27179  ;
27180  return 0;
27181}
27182_ACEOF
27183rm -f conftest.$ac_objext conftest$ac_exeext
27184if { (ac_try="$ac_link"
27185case "(($ac_try" in
27186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27187  *) ac_try_echo=$ac_try;;
27188esac
27189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27190  (eval "$ac_link") 2>conftest.er1
27191  ac_status=$?
27192  grep -v '^ *+' conftest.er1 >conftest.err
27193  rm -f conftest.er1
27194  cat conftest.err >&5
27195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27196  (exit $ac_status); } &&
27197	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27198  { (case "(($ac_try" in
27199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27200  *) ac_try_echo=$ac_try;;
27201esac
27202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27203  (eval "$ac_try") 2>&5
27204  ac_status=$?
27205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27206  (exit $ac_status); }; } &&
27207	 { ac_try='test -s conftest$ac_exeext'
27208  { (case "(($ac_try" in
27209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27210  *) ac_try_echo=$ac_try;;
27211esac
27212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27213  (eval "$ac_try") 2>&5
27214  ac_status=$?
27215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27216  (exit $ac_status); }; }; then
27217  ac_cv_lib_imagehlp_main=yes
27218else
27219  echo "$as_me: failed program was:" >&5
27220sed 's/^/| /' conftest.$ac_ext >&5
27221
27222	ac_cv_lib_imagehlp_main=no
27223fi
27224
27225rm -f core conftest.err conftest.$ac_objext \
27226      conftest$ac_exeext conftest.$ac_ext
27227LIBS=$ac_check_lib_save_LIBS
27228fi
27229{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27230echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27231if test $ac_cv_lib_imagehlp_main = yes; then
27232  cat >>confdefs.h <<_ACEOF
27233#define HAVE_LIBIMAGEHLP 1
27234_ACEOF
27235
27236  LIBS="-limagehlp $LIBS"
27237
27238fi
27239
27240
27241{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27242echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27243if test "${ac_cv_lib_psapi_main+set}" = set; then
27244  echo $ECHO_N "(cached) $ECHO_C" >&6
27245else
27246  ac_check_lib_save_LIBS=$LIBS
27247LIBS="-lpsapi  $LIBS"
27248cat >conftest.$ac_ext <<_ACEOF
27249/* confdefs.h.  */
27250_ACEOF
27251cat confdefs.h >>conftest.$ac_ext
27252cat >>conftest.$ac_ext <<_ACEOF
27253/* end confdefs.h.  */
27254
27255
27256int
27257main ()
27258{
27259return main ();
27260  ;
27261  return 0;
27262}
27263_ACEOF
27264rm -f conftest.$ac_objext conftest$ac_exeext
27265if { (ac_try="$ac_link"
27266case "(($ac_try" in
27267  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27268  *) ac_try_echo=$ac_try;;
27269esac
27270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27271  (eval "$ac_link") 2>conftest.er1
27272  ac_status=$?
27273  grep -v '^ *+' conftest.er1 >conftest.err
27274  rm -f conftest.er1
27275  cat conftest.err >&5
27276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27277  (exit $ac_status); } &&
27278	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27279  { (case "(($ac_try" in
27280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27281  *) ac_try_echo=$ac_try;;
27282esac
27283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27284  (eval "$ac_try") 2>&5
27285  ac_status=$?
27286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27287  (exit $ac_status); }; } &&
27288	 { ac_try='test -s conftest$ac_exeext'
27289  { (case "(($ac_try" in
27290  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27291  *) ac_try_echo=$ac_try;;
27292esac
27293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27294  (eval "$ac_try") 2>&5
27295  ac_status=$?
27296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27297  (exit $ac_status); }; }; then
27298  ac_cv_lib_psapi_main=yes
27299else
27300  echo "$as_me: failed program was:" >&5
27301sed 's/^/| /' conftest.$ac_ext >&5
27302
27303	ac_cv_lib_psapi_main=no
27304fi
27305
27306rm -f core conftest.err conftest.$ac_objext \
27307      conftest$ac_exeext conftest.$ac_ext
27308LIBS=$ac_check_lib_save_LIBS
27309fi
27310{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27311echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27312if test $ac_cv_lib_psapi_main = yes; then
27313  cat >>confdefs.h <<_ACEOF
27314#define HAVE_LIBPSAPI 1
27315_ACEOF
27316
27317  LIBS="-lpsapi $LIBS"
27318
27319fi
27320
27321fi
27322
27323{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27324echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27325if test "${ac_cv_search_dlopen+set}" = set; then
27326  echo $ECHO_N "(cached) $ECHO_C" >&6
27327else
27328  ac_func_search_save_LIBS=$LIBS
27329cat >conftest.$ac_ext <<_ACEOF
27330/* confdefs.h.  */
27331_ACEOF
27332cat confdefs.h >>conftest.$ac_ext
27333cat >>conftest.$ac_ext <<_ACEOF
27334/* end confdefs.h.  */
27335
27336/* Override any GCC internal prototype to avoid an error.
27337   Use char because int might match the return type of a GCC
27338   builtin and then its argument prototype would still apply.  */
27339#ifdef __cplusplus
27340extern "C"
27341#endif
27342char dlopen ();
27343int
27344main ()
27345{
27346return dlopen ();
27347  ;
27348  return 0;
27349}
27350_ACEOF
27351for ac_lib in '' dl; do
27352  if test -z "$ac_lib"; then
27353    ac_res="none required"
27354  else
27355    ac_res=-l$ac_lib
27356    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27357  fi
27358  rm -f conftest.$ac_objext conftest$ac_exeext
27359if { (ac_try="$ac_link"
27360case "(($ac_try" in
27361  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27362  *) ac_try_echo=$ac_try;;
27363esac
27364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27365  (eval "$ac_link") 2>conftest.er1
27366  ac_status=$?
27367  grep -v '^ *+' conftest.er1 >conftest.err
27368  rm -f conftest.er1
27369  cat conftest.err >&5
27370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27371  (exit $ac_status); } &&
27372	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27373  { (case "(($ac_try" in
27374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27375  *) ac_try_echo=$ac_try;;
27376esac
27377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27378  (eval "$ac_try") 2>&5
27379  ac_status=$?
27380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27381  (exit $ac_status); }; } &&
27382	 { ac_try='test -s conftest$ac_exeext'
27383  { (case "(($ac_try" in
27384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27385  *) ac_try_echo=$ac_try;;
27386esac
27387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27388  (eval "$ac_try") 2>&5
27389  ac_status=$?
27390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27391  (exit $ac_status); }; }; then
27392  ac_cv_search_dlopen=$ac_res
27393else
27394  echo "$as_me: failed program was:" >&5
27395sed 's/^/| /' conftest.$ac_ext >&5
27396
27397
27398fi
27399
27400rm -f core conftest.err conftest.$ac_objext \
27401      conftest$ac_exeext
27402  if test "${ac_cv_search_dlopen+set}" = set; then
27403  break
27404fi
27405done
27406if test "${ac_cv_search_dlopen+set}" = set; then
27407  :
27408else
27409  ac_cv_search_dlopen=no
27410fi
27411rm conftest.$ac_ext
27412LIBS=$ac_func_search_save_LIBS
27413fi
27414{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27415echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27416ac_res=$ac_cv_search_dlopen
27417if test "$ac_res" != no; then
27418  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27419
27420cat >>confdefs.h <<\_ACEOF
27421#define HAVE_DLOPEN 1
27422_ACEOF
27423
27424else
27425  { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27426echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27427fi
27428
27429
27430{ echo "$as_me:$LINENO: checking for ffi_call in -lffi" >&5
27431echo $ECHO_N "checking for ffi_call in -lffi... $ECHO_C" >&6; }
27432if test "${ac_cv_lib_ffi_ffi_call+set}" = set; then
27433  echo $ECHO_N "(cached) $ECHO_C" >&6
27434else
27435  ac_check_lib_save_LIBS=$LIBS
27436LIBS="-lffi  $LIBS"
27437cat >conftest.$ac_ext <<_ACEOF
27438/* confdefs.h.  */
27439_ACEOF
27440cat confdefs.h >>conftest.$ac_ext
27441cat >>conftest.$ac_ext <<_ACEOF
27442/* end confdefs.h.  */
27443
27444/* Override any GCC internal prototype to avoid an error.
27445   Use char because int might match the return type of a GCC
27446   builtin and then its argument prototype would still apply.  */
27447#ifdef __cplusplus
27448extern "C"
27449#endif
27450char ffi_call ();
27451int
27452main ()
27453{
27454return ffi_call ();
27455  ;
27456  return 0;
27457}
27458_ACEOF
27459rm -f conftest.$ac_objext conftest$ac_exeext
27460if { (ac_try="$ac_link"
27461case "(($ac_try" in
27462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27463  *) ac_try_echo=$ac_try;;
27464esac
27465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27466  (eval "$ac_link") 2>conftest.er1
27467  ac_status=$?
27468  grep -v '^ *+' conftest.er1 >conftest.err
27469  rm -f conftest.er1
27470  cat conftest.err >&5
27471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27472  (exit $ac_status); } &&
27473	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27474  { (case "(($ac_try" in
27475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27476  *) ac_try_echo=$ac_try;;
27477esac
27478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27479  (eval "$ac_try") 2>&5
27480  ac_status=$?
27481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27482  (exit $ac_status); }; } &&
27483	 { ac_try='test -s conftest$ac_exeext'
27484  { (case "(($ac_try" in
27485  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27486  *) ac_try_echo=$ac_try;;
27487esac
27488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27489  (eval "$ac_try") 2>&5
27490  ac_status=$?
27491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27492  (exit $ac_status); }; }; then
27493  ac_cv_lib_ffi_ffi_call=yes
27494else
27495  echo "$as_me: failed program was:" >&5
27496sed 's/^/| /' conftest.$ac_ext >&5
27497
27498	ac_cv_lib_ffi_ffi_call=no
27499fi
27500
27501rm -f core conftest.err conftest.$ac_objext \
27502      conftest$ac_exeext conftest.$ac_ext
27503LIBS=$ac_check_lib_save_LIBS
27504fi
27505{ echo "$as_me:$LINENO: result: $ac_cv_lib_ffi_ffi_call" >&5
27506echo "${ECHO_T}$ac_cv_lib_ffi_ffi_call" >&6; }
27507if test $ac_cv_lib_ffi_ffi_call = yes; then
27508  have_libffi=1
27509else
27510  { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27511echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27512fi
27513
27514
27515{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27516echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27517if test "${ac_cv_search_mallinfo+set}" = set; then
27518  echo $ECHO_N "(cached) $ECHO_C" >&6
27519else
27520  ac_func_search_save_LIBS=$LIBS
27521cat >conftest.$ac_ext <<_ACEOF
27522/* confdefs.h.  */
27523_ACEOF
27524cat confdefs.h >>conftest.$ac_ext
27525cat >>conftest.$ac_ext <<_ACEOF
27526/* end confdefs.h.  */
27527
27528/* Override any GCC internal prototype to avoid an error.
27529   Use char because int might match the return type of a GCC
27530   builtin and then its argument prototype would still apply.  */
27531#ifdef __cplusplus
27532extern "C"
27533#endif
27534char mallinfo ();
27535int
27536main ()
27537{
27538return mallinfo ();
27539  ;
27540  return 0;
27541}
27542_ACEOF
27543for ac_lib in '' malloc; do
27544  if test -z "$ac_lib"; then
27545    ac_res="none required"
27546  else
27547    ac_res=-l$ac_lib
27548    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27549  fi
27550  rm -f conftest.$ac_objext conftest$ac_exeext
27551if { (ac_try="$ac_link"
27552case "(($ac_try" in
27553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27554  *) ac_try_echo=$ac_try;;
27555esac
27556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27557  (eval "$ac_link") 2>conftest.er1
27558  ac_status=$?
27559  grep -v '^ *+' conftest.er1 >conftest.err
27560  rm -f conftest.er1
27561  cat conftest.err >&5
27562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27563  (exit $ac_status); } &&
27564	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27565  { (case "(($ac_try" in
27566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27567  *) ac_try_echo=$ac_try;;
27568esac
27569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27570  (eval "$ac_try") 2>&5
27571  ac_status=$?
27572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27573  (exit $ac_status); }; } &&
27574	 { ac_try='test -s conftest$ac_exeext'
27575  { (case "(($ac_try" in
27576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27577  *) ac_try_echo=$ac_try;;
27578esac
27579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27580  (eval "$ac_try") 2>&5
27581  ac_status=$?
27582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27583  (exit $ac_status); }; }; then
27584  ac_cv_search_mallinfo=$ac_res
27585else
27586  echo "$as_me: failed program was:" >&5
27587sed 's/^/| /' conftest.$ac_ext >&5
27588
27589
27590fi
27591
27592rm -f core conftest.err conftest.$ac_objext \
27593      conftest$ac_exeext
27594  if test "${ac_cv_search_mallinfo+set}" = set; then
27595  break
27596fi
27597done
27598if test "${ac_cv_search_mallinfo+set}" = set; then
27599  :
27600else
27601  ac_cv_search_mallinfo=no
27602fi
27603rm conftest.$ac_ext
27604LIBS=$ac_func_search_save_LIBS
27605fi
27606{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27607echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27608ac_res=$ac_cv_search_mallinfo
27609if test "$ac_res" != no; then
27610  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27611
27612cat >>confdefs.h <<\_ACEOF
27613#define HAVE_MALLINFO 1
27614_ACEOF
27615
27616fi
27617
27618
27619if test "$ENABLE_THREADS" -eq 1 ; then
27620
27621{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27622echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27623if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27624  echo $ECHO_N "(cached) $ECHO_C" >&6
27625else
27626  ac_check_lib_save_LIBS=$LIBS
27627LIBS="-lpthread  $LIBS"
27628cat >conftest.$ac_ext <<_ACEOF
27629/* confdefs.h.  */
27630_ACEOF
27631cat confdefs.h >>conftest.$ac_ext
27632cat >>conftest.$ac_ext <<_ACEOF
27633/* end confdefs.h.  */
27634
27635/* Override any GCC internal prototype to avoid an error.
27636   Use char because int might match the return type of a GCC
27637   builtin and then its argument prototype would still apply.  */
27638#ifdef __cplusplus
27639extern "C"
27640#endif
27641char pthread_mutex_init ();
27642int
27643main ()
27644{
27645return pthread_mutex_init ();
27646  ;
27647  return 0;
27648}
27649_ACEOF
27650rm -f conftest.$ac_objext conftest$ac_exeext
27651if { (ac_try="$ac_link"
27652case "(($ac_try" in
27653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27654  *) ac_try_echo=$ac_try;;
27655esac
27656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27657  (eval "$ac_link") 2>conftest.er1
27658  ac_status=$?
27659  grep -v '^ *+' conftest.er1 >conftest.err
27660  rm -f conftest.er1
27661  cat conftest.err >&5
27662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27663  (exit $ac_status); } &&
27664	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27665  { (case "(($ac_try" in
27666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27667  *) ac_try_echo=$ac_try;;
27668esac
27669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27670  (eval "$ac_try") 2>&5
27671  ac_status=$?
27672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27673  (exit $ac_status); }; } &&
27674	 { ac_try='test -s conftest$ac_exeext'
27675  { (case "(($ac_try" in
27676  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27677  *) ac_try_echo=$ac_try;;
27678esac
27679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27680  (eval "$ac_try") 2>&5
27681  ac_status=$?
27682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27683  (exit $ac_status); }; }; then
27684  ac_cv_lib_pthread_pthread_mutex_init=yes
27685else
27686  echo "$as_me: failed program was:" >&5
27687sed 's/^/| /' conftest.$ac_ext >&5
27688
27689	ac_cv_lib_pthread_pthread_mutex_init=no
27690fi
27691
27692rm -f core conftest.err conftest.$ac_objext \
27693      conftest$ac_exeext conftest.$ac_ext
27694LIBS=$ac_check_lib_save_LIBS
27695fi
27696{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27697echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27698if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27699  cat >>confdefs.h <<_ACEOF
27700#define HAVE_LIBPTHREAD 1
27701_ACEOF
27702
27703  LIBS="-lpthread $LIBS"
27704
27705fi
27706
27707  { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27708echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27709if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27710  echo $ECHO_N "(cached) $ECHO_C" >&6
27711else
27712  ac_func_search_save_LIBS=$LIBS
27713cat >conftest.$ac_ext <<_ACEOF
27714/* confdefs.h.  */
27715_ACEOF
27716cat confdefs.h >>conftest.$ac_ext
27717cat >>conftest.$ac_ext <<_ACEOF
27718/* end confdefs.h.  */
27719
27720/* Override any GCC internal prototype to avoid an error.
27721   Use char because int might match the return type of a GCC
27722   builtin and then its argument prototype would still apply.  */
27723#ifdef __cplusplus
27724extern "C"
27725#endif
27726char pthread_mutex_lock ();
27727int
27728main ()
27729{
27730return pthread_mutex_lock ();
27731  ;
27732  return 0;
27733}
27734_ACEOF
27735for ac_lib in '' pthread; do
27736  if test -z "$ac_lib"; then
27737    ac_res="none required"
27738  else
27739    ac_res=-l$ac_lib
27740    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27741  fi
27742  rm -f conftest.$ac_objext conftest$ac_exeext
27743if { (ac_try="$ac_link"
27744case "(($ac_try" in
27745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27746  *) ac_try_echo=$ac_try;;
27747esac
27748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27749  (eval "$ac_link") 2>conftest.er1
27750  ac_status=$?
27751  grep -v '^ *+' conftest.er1 >conftest.err
27752  rm -f conftest.er1
27753  cat conftest.err >&5
27754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27755  (exit $ac_status); } &&
27756	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27757  { (case "(($ac_try" in
27758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27759  *) ac_try_echo=$ac_try;;
27760esac
27761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27762  (eval "$ac_try") 2>&5
27763  ac_status=$?
27764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27765  (exit $ac_status); }; } &&
27766	 { ac_try='test -s conftest$ac_exeext'
27767  { (case "(($ac_try" in
27768  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27769  *) ac_try_echo=$ac_try;;
27770esac
27771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27772  (eval "$ac_try") 2>&5
27773  ac_status=$?
27774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27775  (exit $ac_status); }; }; then
27776  ac_cv_search_pthread_mutex_lock=$ac_res
27777else
27778  echo "$as_me: failed program was:" >&5
27779sed 's/^/| /' conftest.$ac_ext >&5
27780
27781
27782fi
27783
27784rm -f core conftest.err conftest.$ac_objext \
27785      conftest$ac_exeext
27786  if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27787  break
27788fi
27789done
27790if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27791  :
27792else
27793  ac_cv_search_pthread_mutex_lock=no
27794fi
27795rm conftest.$ac_ext
27796LIBS=$ac_func_search_save_LIBS
27797fi
27798{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27799echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27800ac_res=$ac_cv_search_pthread_mutex_lock
27801if test "$ac_res" != no; then
27802  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27803
27804cat >>confdefs.h <<\_ACEOF
27805#define HAVE_PTHREAD_MUTEX_LOCK 1
27806_ACEOF
27807
27808fi
27809
27810fi
27811
27812
27813# Check whether --with-udis86 was given.
27814if test "${with_udis86+set}" = set; then
27815  withval=$with_udis86;
27816      USE_UDIS86=1
27817
27818      case "$withval" in
27819        /usr/lib|yes) ;;
27820        *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27821      esac
27822
27823{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27824echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27825if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27826  echo $ECHO_N "(cached) $ECHO_C" >&6
27827else
27828  ac_check_lib_save_LIBS=$LIBS
27829LIBS="-ludis86  $LIBS"
27830cat >conftest.$ac_ext <<_ACEOF
27831/* confdefs.h.  */
27832_ACEOF
27833cat confdefs.h >>conftest.$ac_ext
27834cat >>conftest.$ac_ext <<_ACEOF
27835/* end confdefs.h.  */
27836
27837/* Override any GCC internal prototype to avoid an error.
27838   Use char because int might match the return type of a GCC
27839   builtin and then its argument prototype would still apply.  */
27840#ifdef __cplusplus
27841extern "C"
27842#endif
27843char ud_init ();
27844int
27845main ()
27846{
27847return ud_init ();
27848  ;
27849  return 0;
27850}
27851_ACEOF
27852rm -f conftest.$ac_objext conftest$ac_exeext
27853if { (ac_try="$ac_link"
27854case "(($ac_try" in
27855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27856  *) ac_try_echo=$ac_try;;
27857esac
27858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27859  (eval "$ac_link") 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	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27867  { (case "(($ac_try" in
27868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27869  *) ac_try_echo=$ac_try;;
27870esac
27871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27872  (eval "$ac_try") 2>&5
27873  ac_status=$?
27874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27875  (exit $ac_status); }; } &&
27876	 { ac_try='test -s conftest$ac_exeext'
27877  { (case "(($ac_try" in
27878  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27879  *) ac_try_echo=$ac_try;;
27880esac
27881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27882  (eval "$ac_try") 2>&5
27883  ac_status=$?
27884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27885  (exit $ac_status); }; }; then
27886  ac_cv_lib_udis86_ud_init=yes
27887else
27888  echo "$as_me: failed program was:" >&5
27889sed 's/^/| /' conftest.$ac_ext >&5
27890
27891	ac_cv_lib_udis86_ud_init=no
27892fi
27893
27894rm -f core conftest.err conftest.$ac_objext \
27895      conftest$ac_exeext conftest.$ac_ext
27896LIBS=$ac_check_lib_save_LIBS
27897fi
27898{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27899echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27900if test $ac_cv_lib_udis86_ud_init = yes; then
27901  cat >>confdefs.h <<_ACEOF
27902#define HAVE_LIBUDIS86 1
27903_ACEOF
27904
27905  LIBS="-ludis86 $LIBS"
27906
27907else
27908
27909        echo "Error! You need to have libudis86 around."
27910        exit -1
27911
27912fi
27913
27914
27915else
27916  USE_UDIS86=0
27917
27918fi
27919
27920
27921cat >>confdefs.h <<_ACEOF
27922#define USE_UDIS86 $USE_UDIS86
27923_ACEOF
27924
27925
27926
27927
27928
27929
27930
27931
27932ac_header_dirent=no
27933for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27934  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27935{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27936echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27937if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27938  echo $ECHO_N "(cached) $ECHO_C" >&6
27939else
27940  cat >conftest.$ac_ext <<_ACEOF
27941/* confdefs.h.  */
27942_ACEOF
27943cat confdefs.h >>conftest.$ac_ext
27944cat >>conftest.$ac_ext <<_ACEOF
27945/* end confdefs.h.  */
27946#include <sys/types.h>
27947#include <$ac_hdr>
27948
27949int
27950main ()
27951{
27952if ((DIR *) 0)
27953return 0;
27954  ;
27955  return 0;
27956}
27957_ACEOF
27958rm -f conftest.$ac_objext
27959if { (ac_try="$ac_compile"
27960case "(($ac_try" in
27961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27962  *) ac_try_echo=$ac_try;;
27963esac
27964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27965  (eval "$ac_compile") 2>conftest.er1
27966  ac_status=$?
27967  grep -v '^ *+' conftest.er1 >conftest.err
27968  rm -f conftest.er1
27969  cat conftest.err >&5
27970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27971  (exit $ac_status); } &&
27972	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27973  { (case "(($ac_try" in
27974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27975  *) ac_try_echo=$ac_try;;
27976esac
27977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27978  (eval "$ac_try") 2>&5
27979  ac_status=$?
27980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27981  (exit $ac_status); }; } &&
27982	 { ac_try='test -s conftest.$ac_objext'
27983  { (case "(($ac_try" in
27984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27985  *) ac_try_echo=$ac_try;;
27986esac
27987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27988  (eval "$ac_try") 2>&5
27989  ac_status=$?
27990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991  (exit $ac_status); }; }; then
27992  eval "$as_ac_Header=yes"
27993else
27994  echo "$as_me: failed program was:" >&5
27995sed 's/^/| /' conftest.$ac_ext >&5
27996
27997	eval "$as_ac_Header=no"
27998fi
27999
28000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28001fi
28002ac_res=`eval echo '${'$as_ac_Header'}'`
28003	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28004echo "${ECHO_T}$ac_res" >&6; }
28005if test `eval echo '${'$as_ac_Header'}'` = yes; then
28006  cat >>confdefs.h <<_ACEOF
28007#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28008_ACEOF
28009
28010ac_header_dirent=$ac_hdr; break
28011fi
28012
28013done
28014# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28015if test $ac_header_dirent = dirent.h; then
28016  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28017echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28018if test "${ac_cv_search_opendir+set}" = set; then
28019  echo $ECHO_N "(cached) $ECHO_C" >&6
28020else
28021  ac_func_search_save_LIBS=$LIBS
28022cat >conftest.$ac_ext <<_ACEOF
28023/* confdefs.h.  */
28024_ACEOF
28025cat confdefs.h >>conftest.$ac_ext
28026cat >>conftest.$ac_ext <<_ACEOF
28027/* end confdefs.h.  */
28028
28029/* Override any GCC internal prototype to avoid an error.
28030   Use char because int might match the return type of a GCC
28031   builtin and then its argument prototype would still apply.  */
28032#ifdef __cplusplus
28033extern "C"
28034#endif
28035char opendir ();
28036int
28037main ()
28038{
28039return opendir ();
28040  ;
28041  return 0;
28042}
28043_ACEOF
28044for ac_lib in '' dir; do
28045  if test -z "$ac_lib"; then
28046    ac_res="none required"
28047  else
28048    ac_res=-l$ac_lib
28049    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28050  fi
28051  rm -f conftest.$ac_objext conftest$ac_exeext
28052if { (ac_try="$ac_link"
28053case "(($ac_try" in
28054  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28055  *) ac_try_echo=$ac_try;;
28056esac
28057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28058  (eval "$ac_link") 2>conftest.er1
28059  ac_status=$?
28060  grep -v '^ *+' conftest.er1 >conftest.err
28061  rm -f conftest.er1
28062  cat conftest.err >&5
28063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28064  (exit $ac_status); } &&
28065	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28066  { (case "(($ac_try" in
28067  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28068  *) ac_try_echo=$ac_try;;
28069esac
28070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28071  (eval "$ac_try") 2>&5
28072  ac_status=$?
28073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28074  (exit $ac_status); }; } &&
28075	 { ac_try='test -s conftest$ac_exeext'
28076  { (case "(($ac_try" in
28077  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28078  *) ac_try_echo=$ac_try;;
28079esac
28080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28081  (eval "$ac_try") 2>&5
28082  ac_status=$?
28083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28084  (exit $ac_status); }; }; then
28085  ac_cv_search_opendir=$ac_res
28086else
28087  echo "$as_me: failed program was:" >&5
28088sed 's/^/| /' conftest.$ac_ext >&5
28089
28090
28091fi
28092
28093rm -f core conftest.err conftest.$ac_objext \
28094      conftest$ac_exeext
28095  if test "${ac_cv_search_opendir+set}" = set; then
28096  break
28097fi
28098done
28099if test "${ac_cv_search_opendir+set}" = set; then
28100  :
28101else
28102  ac_cv_search_opendir=no
28103fi
28104rm conftest.$ac_ext
28105LIBS=$ac_func_search_save_LIBS
28106fi
28107{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28108echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28109ac_res=$ac_cv_search_opendir
28110if test "$ac_res" != no; then
28111  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28112
28113fi
28114
28115else
28116  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28117echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28118if test "${ac_cv_search_opendir+set}" = set; then
28119  echo $ECHO_N "(cached) $ECHO_C" >&6
28120else
28121  ac_func_search_save_LIBS=$LIBS
28122cat >conftest.$ac_ext <<_ACEOF
28123/* confdefs.h.  */
28124_ACEOF
28125cat confdefs.h >>conftest.$ac_ext
28126cat >>conftest.$ac_ext <<_ACEOF
28127/* end confdefs.h.  */
28128
28129/* Override any GCC internal prototype to avoid an error.
28130   Use char because int might match the return type of a GCC
28131   builtin and then its argument prototype would still apply.  */
28132#ifdef __cplusplus
28133extern "C"
28134#endif
28135char opendir ();
28136int
28137main ()
28138{
28139return opendir ();
28140  ;
28141  return 0;
28142}
28143_ACEOF
28144for ac_lib in '' x; do
28145  if test -z "$ac_lib"; then
28146    ac_res="none required"
28147  else
28148    ac_res=-l$ac_lib
28149    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28150  fi
28151  rm -f conftest.$ac_objext conftest$ac_exeext
28152if { (ac_try="$ac_link"
28153case "(($ac_try" in
28154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28155  *) ac_try_echo=$ac_try;;
28156esac
28157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28158  (eval "$ac_link") 2>conftest.er1
28159  ac_status=$?
28160  grep -v '^ *+' conftest.er1 >conftest.err
28161  rm -f conftest.er1
28162  cat conftest.err >&5
28163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28164  (exit $ac_status); } &&
28165	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28166  { (case "(($ac_try" in
28167  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28168  *) ac_try_echo=$ac_try;;
28169esac
28170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28171  (eval "$ac_try") 2>&5
28172  ac_status=$?
28173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28174  (exit $ac_status); }; } &&
28175	 { ac_try='test -s conftest$ac_exeext'
28176  { (case "(($ac_try" in
28177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28178  *) ac_try_echo=$ac_try;;
28179esac
28180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28181  (eval "$ac_try") 2>&5
28182  ac_status=$?
28183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28184  (exit $ac_status); }; }; then
28185  ac_cv_search_opendir=$ac_res
28186else
28187  echo "$as_me: failed program was:" >&5
28188sed 's/^/| /' conftest.$ac_ext >&5
28189
28190
28191fi
28192
28193rm -f core conftest.err conftest.$ac_objext \
28194      conftest$ac_exeext
28195  if test "${ac_cv_search_opendir+set}" = set; then
28196  break
28197fi
28198done
28199if test "${ac_cv_search_opendir+set}" = set; then
28200  :
28201else
28202  ac_cv_search_opendir=no
28203fi
28204rm conftest.$ac_ext
28205LIBS=$ac_func_search_save_LIBS
28206fi
28207{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28208echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28209ac_res=$ac_cv_search_opendir
28210if test "$ac_res" != no; then
28211  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28212
28213fi
28214
28215fi
28216
28217{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28218echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28219if test "${ac_cv_header_mmap_anon+set}" = set; then
28220  echo $ECHO_N "(cached) $ECHO_C" >&6
28221else
28222   ac_ext=c
28223ac_cpp='$CPP $CPPFLAGS'
28224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28226ac_compiler_gnu=$ac_cv_c_compiler_gnu
28227
28228  cat >conftest.$ac_ext <<_ACEOF
28229/* confdefs.h.  */
28230_ACEOF
28231cat confdefs.h >>conftest.$ac_ext
28232cat >>conftest.$ac_ext <<_ACEOF
28233/* end confdefs.h.  */
28234#include <sys/mman.h>
28235#include <unistd.h>
28236#include <fcntl.h>
28237int
28238main ()
28239{
28240mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28241  ;
28242  return 0;
28243}
28244_ACEOF
28245rm -f conftest.$ac_objext
28246if { (ac_try="$ac_compile"
28247case "(($ac_try" in
28248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28249  *) ac_try_echo=$ac_try;;
28250esac
28251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28252  (eval "$ac_compile") 2>conftest.er1
28253  ac_status=$?
28254  grep -v '^ *+' conftest.er1 >conftest.err
28255  rm -f conftest.er1
28256  cat conftest.err >&5
28257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28258  (exit $ac_status); } &&
28259	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28260  { (case "(($ac_try" in
28261  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28262  *) ac_try_echo=$ac_try;;
28263esac
28264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28265  (eval "$ac_try") 2>&5
28266  ac_status=$?
28267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28268  (exit $ac_status); }; } &&
28269	 { ac_try='test -s conftest.$ac_objext'
28270  { (case "(($ac_try" in
28271  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28272  *) ac_try_echo=$ac_try;;
28273esac
28274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28275  (eval "$ac_try") 2>&5
28276  ac_status=$?
28277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28278  (exit $ac_status); }; }; then
28279  ac_cv_header_mmap_anon=yes
28280else
28281  echo "$as_me: failed program was:" >&5
28282sed 's/^/| /' conftest.$ac_ext >&5
28283
28284	ac_cv_header_mmap_anon=no
28285fi
28286
28287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28288  ac_ext=c
28289ac_cpp='$CPP $CPPFLAGS'
28290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28292ac_compiler_gnu=$ac_cv_c_compiler_gnu
28293
28294
28295fi
28296{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28297echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28298if test "$ac_cv_header_mmap_anon" = yes; then
28299
28300cat >>confdefs.h <<\_ACEOF
28301#define HAVE_MMAP_ANONYMOUS 1
28302_ACEOF
28303
28304fi
28305
28306{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28307echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28308if test "${ac_cv_header_stat_broken+set}" = set; then
28309  echo $ECHO_N "(cached) $ECHO_C" >&6
28310else
28311  cat >conftest.$ac_ext <<_ACEOF
28312/* confdefs.h.  */
28313_ACEOF
28314cat confdefs.h >>conftest.$ac_ext
28315cat >>conftest.$ac_ext <<_ACEOF
28316/* end confdefs.h.  */
28317#include <sys/types.h>
28318#include <sys/stat.h>
28319
28320#if defined S_ISBLK && defined S_IFDIR
28321# if S_ISBLK (S_IFDIR)
28322You lose.
28323# endif
28324#endif
28325
28326#if defined S_ISBLK && defined S_IFCHR
28327# if S_ISBLK (S_IFCHR)
28328You lose.
28329# endif
28330#endif
28331
28332#if defined S_ISLNK && defined S_IFREG
28333# if S_ISLNK (S_IFREG)
28334You lose.
28335# endif
28336#endif
28337
28338#if defined S_ISSOCK && defined S_IFREG
28339# if S_ISSOCK (S_IFREG)
28340You lose.
28341# endif
28342#endif
28343
28344_ACEOF
28345if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28346  $EGREP "You lose" >/dev/null 2>&1; then
28347  ac_cv_header_stat_broken=yes
28348else
28349  ac_cv_header_stat_broken=no
28350fi
28351rm -f conftest*
28352
28353fi
28354{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28355echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28356if test $ac_cv_header_stat_broken = yes; then
28357
28358cat >>confdefs.h <<\_ACEOF
28359#define STAT_MACROS_BROKEN 1
28360_ACEOF
28361
28362fi
28363
28364{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28365echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28366if test "${ac_cv_header_stdc+set}" = set; then
28367  echo $ECHO_N "(cached) $ECHO_C" >&6
28368else
28369  cat >conftest.$ac_ext <<_ACEOF
28370/* confdefs.h.  */
28371_ACEOF
28372cat confdefs.h >>conftest.$ac_ext
28373cat >>conftest.$ac_ext <<_ACEOF
28374/* end confdefs.h.  */
28375#include <stdlib.h>
28376#include <stdarg.h>
28377#include <string.h>
28378#include <float.h>
28379
28380int
28381main ()
28382{
28383
28384  ;
28385  return 0;
28386}
28387_ACEOF
28388rm -f conftest.$ac_objext
28389if { (ac_try="$ac_compile"
28390case "(($ac_try" in
28391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28392  *) ac_try_echo=$ac_try;;
28393esac
28394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28395  (eval "$ac_compile") 2>conftest.er1
28396  ac_status=$?
28397  grep -v '^ *+' conftest.er1 >conftest.err
28398  rm -f conftest.er1
28399  cat conftest.err >&5
28400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28401  (exit $ac_status); } &&
28402	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28403  { (case "(($ac_try" in
28404  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28405  *) ac_try_echo=$ac_try;;
28406esac
28407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28408  (eval "$ac_try") 2>&5
28409  ac_status=$?
28410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28411  (exit $ac_status); }; } &&
28412	 { ac_try='test -s conftest.$ac_objext'
28413  { (case "(($ac_try" in
28414  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28415  *) ac_try_echo=$ac_try;;
28416esac
28417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28418  (eval "$ac_try") 2>&5
28419  ac_status=$?
28420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28421  (exit $ac_status); }; }; then
28422  ac_cv_header_stdc=yes
28423else
28424  echo "$as_me: failed program was:" >&5
28425sed 's/^/| /' conftest.$ac_ext >&5
28426
28427	ac_cv_header_stdc=no
28428fi
28429
28430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28431
28432if test $ac_cv_header_stdc = yes; then
28433  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28434  cat >conftest.$ac_ext <<_ACEOF
28435/* confdefs.h.  */
28436_ACEOF
28437cat confdefs.h >>conftest.$ac_ext
28438cat >>conftest.$ac_ext <<_ACEOF
28439/* end confdefs.h.  */
28440#include <string.h>
28441
28442_ACEOF
28443if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28444  $EGREP "memchr" >/dev/null 2>&1; then
28445  :
28446else
28447  ac_cv_header_stdc=no
28448fi
28449rm -f conftest*
28450
28451fi
28452
28453if test $ac_cv_header_stdc = yes; then
28454  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28455  cat >conftest.$ac_ext <<_ACEOF
28456/* confdefs.h.  */
28457_ACEOF
28458cat confdefs.h >>conftest.$ac_ext
28459cat >>conftest.$ac_ext <<_ACEOF
28460/* end confdefs.h.  */
28461#include <stdlib.h>
28462
28463_ACEOF
28464if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28465  $EGREP "free" >/dev/null 2>&1; then
28466  :
28467else
28468  ac_cv_header_stdc=no
28469fi
28470rm -f conftest*
28471
28472fi
28473
28474if test $ac_cv_header_stdc = yes; then
28475  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28476  if test "$cross_compiling" = yes; then
28477  :
28478else
28479  cat >conftest.$ac_ext <<_ACEOF
28480/* confdefs.h.  */
28481_ACEOF
28482cat confdefs.h >>conftest.$ac_ext
28483cat >>conftest.$ac_ext <<_ACEOF
28484/* end confdefs.h.  */
28485#include <ctype.h>
28486#include <stdlib.h>
28487#if ((' ' & 0x0FF) == 0x020)
28488# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28489# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28490#else
28491# define ISLOWER(c) \
28492		   (('a' <= (c) && (c) <= 'i') \
28493		     || ('j' <= (c) && (c) <= 'r') \
28494		     || ('s' <= (c) && (c) <= 'z'))
28495# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28496#endif
28497
28498#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28499int
28500main ()
28501{
28502  int i;
28503  for (i = 0; i < 256; i++)
28504    if (XOR (islower (i), ISLOWER (i))
28505	|| toupper (i) != TOUPPER (i))
28506      return 2;
28507  return 0;
28508}
28509_ACEOF
28510rm -f conftest$ac_exeext
28511if { (ac_try="$ac_link"
28512case "(($ac_try" in
28513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28514  *) ac_try_echo=$ac_try;;
28515esac
28516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28517  (eval "$ac_link") 2>&5
28518  ac_status=$?
28519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28520  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28521  { (case "(($ac_try" in
28522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28523  *) ac_try_echo=$ac_try;;
28524esac
28525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28526  (eval "$ac_try") 2>&5
28527  ac_status=$?
28528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28529  (exit $ac_status); }; }; then
28530  :
28531else
28532  echo "$as_me: program exited with status $ac_status" >&5
28533echo "$as_me: failed program was:" >&5
28534sed 's/^/| /' conftest.$ac_ext >&5
28535
28536( exit $ac_status )
28537ac_cv_header_stdc=no
28538fi
28539rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28540fi
28541
28542
28543fi
28544fi
28545{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28546echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28547if test $ac_cv_header_stdc = yes; then
28548
28549cat >>confdefs.h <<\_ACEOF
28550#define STDC_HEADERS 1
28551_ACEOF
28552
28553fi
28554
28555{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28556echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28557if test "${ac_cv_header_sys_wait_h+set}" = set; then
28558  echo $ECHO_N "(cached) $ECHO_C" >&6
28559else
28560  cat >conftest.$ac_ext <<_ACEOF
28561/* confdefs.h.  */
28562_ACEOF
28563cat confdefs.h >>conftest.$ac_ext
28564cat >>conftest.$ac_ext <<_ACEOF
28565/* end confdefs.h.  */
28566#include <sys/types.h>
28567#include <sys/wait.h>
28568#ifndef WEXITSTATUS
28569# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28570#endif
28571#ifndef WIFEXITED
28572# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28573#endif
28574
28575int
28576main ()
28577{
28578  int s;
28579  wait (&s);
28580  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28581  ;
28582  return 0;
28583}
28584_ACEOF
28585rm -f conftest.$ac_objext
28586if { (ac_try="$ac_compile"
28587case "(($ac_try" in
28588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28589  *) ac_try_echo=$ac_try;;
28590esac
28591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28592  (eval "$ac_compile") 2>conftest.er1
28593  ac_status=$?
28594  grep -v '^ *+' conftest.er1 >conftest.err
28595  rm -f conftest.er1
28596  cat conftest.err >&5
28597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28598  (exit $ac_status); } &&
28599	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28600  { (case "(($ac_try" in
28601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28602  *) ac_try_echo=$ac_try;;
28603esac
28604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28605  (eval "$ac_try") 2>&5
28606  ac_status=$?
28607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608  (exit $ac_status); }; } &&
28609	 { ac_try='test -s conftest.$ac_objext'
28610  { (case "(($ac_try" in
28611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28612  *) ac_try_echo=$ac_try;;
28613esac
28614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28615  (eval "$ac_try") 2>&5
28616  ac_status=$?
28617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618  (exit $ac_status); }; }; then
28619  ac_cv_header_sys_wait_h=yes
28620else
28621  echo "$as_me: failed program was:" >&5
28622sed 's/^/| /' conftest.$ac_ext >&5
28623
28624	ac_cv_header_sys_wait_h=no
28625fi
28626
28627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28628fi
28629{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28630echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28631if test $ac_cv_header_sys_wait_h = yes; then
28632
28633cat >>confdefs.h <<\_ACEOF
28634#define HAVE_SYS_WAIT_H 1
28635_ACEOF
28636
28637fi
28638
28639{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28640echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28641if test "${ac_cv_header_time+set}" = set; then
28642  echo $ECHO_N "(cached) $ECHO_C" >&6
28643else
28644  cat >conftest.$ac_ext <<_ACEOF
28645/* confdefs.h.  */
28646_ACEOF
28647cat confdefs.h >>conftest.$ac_ext
28648cat >>conftest.$ac_ext <<_ACEOF
28649/* end confdefs.h.  */
28650#include <sys/types.h>
28651#include <sys/time.h>
28652#include <time.h>
28653
28654int
28655main ()
28656{
28657if ((struct tm *) 0)
28658return 0;
28659  ;
28660  return 0;
28661}
28662_ACEOF
28663rm -f conftest.$ac_objext
28664if { (ac_try="$ac_compile"
28665case "(($ac_try" in
28666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28667  *) ac_try_echo=$ac_try;;
28668esac
28669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28670  (eval "$ac_compile") 2>conftest.er1
28671  ac_status=$?
28672  grep -v '^ *+' conftest.er1 >conftest.err
28673  rm -f conftest.er1
28674  cat conftest.err >&5
28675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28676  (exit $ac_status); } &&
28677	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28678  { (case "(($ac_try" in
28679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28680  *) ac_try_echo=$ac_try;;
28681esac
28682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28683  (eval "$ac_try") 2>&5
28684  ac_status=$?
28685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28686  (exit $ac_status); }; } &&
28687	 { ac_try='test -s conftest.$ac_objext'
28688  { (case "(($ac_try" in
28689  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28690  *) ac_try_echo=$ac_try;;
28691esac
28692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28693  (eval "$ac_try") 2>&5
28694  ac_status=$?
28695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28696  (exit $ac_status); }; }; then
28697  ac_cv_header_time=yes
28698else
28699  echo "$as_me: failed program was:" >&5
28700sed 's/^/| /' conftest.$ac_ext >&5
28701
28702	ac_cv_header_time=no
28703fi
28704
28705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28706fi
28707{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28708echo "${ECHO_T}$ac_cv_header_time" >&6; }
28709if test $ac_cv_header_time = yes; then
28710
28711cat >>confdefs.h <<\_ACEOF
28712#define TIME_WITH_SYS_TIME 1
28713_ACEOF
28714
28715fi
28716
28717
28718
28719
28720
28721
28722
28723
28724for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28725do
28726as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28727if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28728  { echo "$as_me:$LINENO: checking for $ac_header" >&5
28729echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28730if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28731  echo $ECHO_N "(cached) $ECHO_C" >&6
28732fi
28733ac_res=`eval echo '${'$as_ac_Header'}'`
28734	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28735echo "${ECHO_T}$ac_res" >&6; }
28736else
28737  # Is the header compilable?
28738{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28739echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28740cat >conftest.$ac_ext <<_ACEOF
28741/* confdefs.h.  */
28742_ACEOF
28743cat confdefs.h >>conftest.$ac_ext
28744cat >>conftest.$ac_ext <<_ACEOF
28745/* end confdefs.h.  */
28746$ac_includes_default
28747#include <$ac_header>
28748_ACEOF
28749rm -f conftest.$ac_objext
28750if { (ac_try="$ac_compile"
28751case "(($ac_try" in
28752  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28753  *) ac_try_echo=$ac_try;;
28754esac
28755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28756  (eval "$ac_compile") 2>conftest.er1
28757  ac_status=$?
28758  grep -v '^ *+' conftest.er1 >conftest.err
28759  rm -f conftest.er1
28760  cat conftest.err >&5
28761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28762  (exit $ac_status); } &&
28763	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28764  { (case "(($ac_try" in
28765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28766  *) ac_try_echo=$ac_try;;
28767esac
28768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28769  (eval "$ac_try") 2>&5
28770  ac_status=$?
28771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28772  (exit $ac_status); }; } &&
28773	 { ac_try='test -s conftest.$ac_objext'
28774  { (case "(($ac_try" in
28775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28776  *) ac_try_echo=$ac_try;;
28777esac
28778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28779  (eval "$ac_try") 2>&5
28780  ac_status=$?
28781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28782  (exit $ac_status); }; }; then
28783  ac_header_compiler=yes
28784else
28785  echo "$as_me: failed program was:" >&5
28786sed 's/^/| /' conftest.$ac_ext >&5
28787
28788	ac_header_compiler=no
28789fi
28790
28791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28792{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28793echo "${ECHO_T}$ac_header_compiler" >&6; }
28794
28795# Is the header present?
28796{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28797echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28798cat >conftest.$ac_ext <<_ACEOF
28799/* confdefs.h.  */
28800_ACEOF
28801cat confdefs.h >>conftest.$ac_ext
28802cat >>conftest.$ac_ext <<_ACEOF
28803/* end confdefs.h.  */
28804#include <$ac_header>
28805_ACEOF
28806if { (ac_try="$ac_cpp conftest.$ac_ext"
28807case "(($ac_try" in
28808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28809  *) ac_try_echo=$ac_try;;
28810esac
28811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28812  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28813  ac_status=$?
28814  grep -v '^ *+' conftest.er1 >conftest.err
28815  rm -f conftest.er1
28816  cat conftest.err >&5
28817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28818  (exit $ac_status); } >/dev/null; then
28819  if test -s conftest.err; then
28820    ac_cpp_err=$ac_c_preproc_warn_flag
28821    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28822  else
28823    ac_cpp_err=
28824  fi
28825else
28826  ac_cpp_err=yes
28827fi
28828if test -z "$ac_cpp_err"; then
28829  ac_header_preproc=yes
28830else
28831  echo "$as_me: failed program was:" >&5
28832sed 's/^/| /' conftest.$ac_ext >&5
28833
28834  ac_header_preproc=no
28835fi
28836
28837rm -f conftest.err conftest.$ac_ext
28838{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28839echo "${ECHO_T}$ac_header_preproc" >&6; }
28840
28841# So?  What about this header?
28842case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28843  yes:no: )
28844    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28845echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28846    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28847echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28848    ac_header_preproc=yes
28849    ;;
28850  no:yes:* )
28851    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28852echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28853    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28854echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28855    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28856echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28857    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28858echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28859    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28860echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28861    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28862echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28863    ( cat <<\_ASBOX
28864## ----------------------------------- ##
28865## Report this to llvmbugs@cs.uiuc.edu ##
28866## ----------------------------------- ##
28867_ASBOX
28868     ) | sed "s/^/$as_me: WARNING:     /" >&2
28869    ;;
28870esac
28871{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28872echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28873if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28874  echo $ECHO_N "(cached) $ECHO_C" >&6
28875else
28876  eval "$as_ac_Header=\$ac_header_preproc"
28877fi
28878ac_res=`eval echo '${'$as_ac_Header'}'`
28879	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28880echo "${ECHO_T}$ac_res" >&6; }
28881
28882fi
28883if test `eval echo '${'$as_ac_Header'}'` = yes; then
28884  cat >>confdefs.h <<_ACEOF
28885#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28886_ACEOF
28887
28888fi
28889
28890done
28891
28892
28893
28894
28895
28896
28897
28898for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28899do
28900as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28901if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28902  { echo "$as_me:$LINENO: checking for $ac_header" >&5
28903echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28904if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28905  echo $ECHO_N "(cached) $ECHO_C" >&6
28906fi
28907ac_res=`eval echo '${'$as_ac_Header'}'`
28908	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28909echo "${ECHO_T}$ac_res" >&6; }
28910else
28911  # Is the header compilable?
28912{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28913echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28914cat >conftest.$ac_ext <<_ACEOF
28915/* confdefs.h.  */
28916_ACEOF
28917cat confdefs.h >>conftest.$ac_ext
28918cat >>conftest.$ac_ext <<_ACEOF
28919/* end confdefs.h.  */
28920$ac_includes_default
28921#include <$ac_header>
28922_ACEOF
28923rm -f conftest.$ac_objext
28924if { (ac_try="$ac_compile"
28925case "(($ac_try" in
28926  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28927  *) ac_try_echo=$ac_try;;
28928esac
28929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28930  (eval "$ac_compile") 2>conftest.er1
28931  ac_status=$?
28932  grep -v '^ *+' conftest.er1 >conftest.err
28933  rm -f conftest.er1
28934  cat conftest.err >&5
28935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28936  (exit $ac_status); } &&
28937	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28938  { (case "(($ac_try" in
28939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28940  *) ac_try_echo=$ac_try;;
28941esac
28942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28943  (eval "$ac_try") 2>&5
28944  ac_status=$?
28945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28946  (exit $ac_status); }; } &&
28947	 { ac_try='test -s conftest.$ac_objext'
28948  { (case "(($ac_try" in
28949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28950  *) ac_try_echo=$ac_try;;
28951esac
28952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28953  (eval "$ac_try") 2>&5
28954  ac_status=$?
28955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28956  (exit $ac_status); }; }; then
28957  ac_header_compiler=yes
28958else
28959  echo "$as_me: failed program was:" >&5
28960sed 's/^/| /' conftest.$ac_ext >&5
28961
28962	ac_header_compiler=no
28963fi
28964
28965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28966{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28967echo "${ECHO_T}$ac_header_compiler" >&6; }
28968
28969# Is the header present?
28970{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28971echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28972cat >conftest.$ac_ext <<_ACEOF
28973/* confdefs.h.  */
28974_ACEOF
28975cat confdefs.h >>conftest.$ac_ext
28976cat >>conftest.$ac_ext <<_ACEOF
28977/* end confdefs.h.  */
28978#include <$ac_header>
28979_ACEOF
28980if { (ac_try="$ac_cpp conftest.$ac_ext"
28981case "(($ac_try" in
28982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28983  *) ac_try_echo=$ac_try;;
28984esac
28985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28986  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28987  ac_status=$?
28988  grep -v '^ *+' conftest.er1 >conftest.err
28989  rm -f conftest.er1
28990  cat conftest.err >&5
28991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28992  (exit $ac_status); } >/dev/null; then
28993  if test -s conftest.err; then
28994    ac_cpp_err=$ac_c_preproc_warn_flag
28995    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28996  else
28997    ac_cpp_err=
28998  fi
28999else
29000  ac_cpp_err=yes
29001fi
29002if test -z "$ac_cpp_err"; then
29003  ac_header_preproc=yes
29004else
29005  echo "$as_me: failed program was:" >&5
29006sed 's/^/| /' conftest.$ac_ext >&5
29007
29008  ac_header_preproc=no
29009fi
29010
29011rm -f conftest.err conftest.$ac_ext
29012{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29013echo "${ECHO_T}$ac_header_preproc" >&6; }
29014
29015# So?  What about this header?
29016case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29017  yes:no: )
29018    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29019echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29020    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29021echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29022    ac_header_preproc=yes
29023    ;;
29024  no:yes:* )
29025    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29026echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29027    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29028echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29029    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29030echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29031    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29032echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29033    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29034echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29035    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29036echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29037    ( cat <<\_ASBOX
29038## ----------------------------------- ##
29039## Report this to llvmbugs@cs.uiuc.edu ##
29040## ----------------------------------- ##
29041_ASBOX
29042     ) | sed "s/^/$as_me: WARNING:     /" >&2
29043    ;;
29044esac
29045{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29046echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29047if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29048  echo $ECHO_N "(cached) $ECHO_C" >&6
29049else
29050  eval "$as_ac_Header=\$ac_header_preproc"
29051fi
29052ac_res=`eval echo '${'$as_ac_Header'}'`
29053	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29054echo "${ECHO_T}$ac_res" >&6; }
29055
29056fi
29057if test `eval echo '${'$as_ac_Header'}'` = yes; then
29058  cat >>confdefs.h <<_ACEOF
29059#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29060_ACEOF
29061
29062fi
29063
29064done
29065
29066
29067for ac_header in windows.h
29068do
29069as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29070if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29071  { echo "$as_me:$LINENO: checking for $ac_header" >&5
29072echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29073if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29074  echo $ECHO_N "(cached) $ECHO_C" >&6
29075fi
29076ac_res=`eval echo '${'$as_ac_Header'}'`
29077	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29078echo "${ECHO_T}$ac_res" >&6; }
29079else
29080  # Is the header compilable?
29081{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29082echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29083cat >conftest.$ac_ext <<_ACEOF
29084/* confdefs.h.  */
29085_ACEOF
29086cat confdefs.h >>conftest.$ac_ext
29087cat >>conftest.$ac_ext <<_ACEOF
29088/* end confdefs.h.  */
29089$ac_includes_default
29090#include <$ac_header>
29091_ACEOF
29092rm -f conftest.$ac_objext
29093if { (ac_try="$ac_compile"
29094case "(($ac_try" in
29095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29096  *) ac_try_echo=$ac_try;;
29097esac
29098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29099  (eval "$ac_compile") 2>conftest.er1
29100  ac_status=$?
29101  grep -v '^ *+' conftest.er1 >conftest.err
29102  rm -f conftest.er1
29103  cat conftest.err >&5
29104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29105  (exit $ac_status); } &&
29106	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29107  { (case "(($ac_try" in
29108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29109  *) ac_try_echo=$ac_try;;
29110esac
29111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29112  (eval "$ac_try") 2>&5
29113  ac_status=$?
29114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29115  (exit $ac_status); }; } &&
29116	 { ac_try='test -s conftest.$ac_objext'
29117  { (case "(($ac_try" in
29118  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29119  *) ac_try_echo=$ac_try;;
29120esac
29121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29122  (eval "$ac_try") 2>&5
29123  ac_status=$?
29124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29125  (exit $ac_status); }; }; then
29126  ac_header_compiler=yes
29127else
29128  echo "$as_me: failed program was:" >&5
29129sed 's/^/| /' conftest.$ac_ext >&5
29130
29131	ac_header_compiler=no
29132fi
29133
29134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29135{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29136echo "${ECHO_T}$ac_header_compiler" >&6; }
29137
29138# Is the header present?
29139{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29140echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29141cat >conftest.$ac_ext <<_ACEOF
29142/* confdefs.h.  */
29143_ACEOF
29144cat confdefs.h >>conftest.$ac_ext
29145cat >>conftest.$ac_ext <<_ACEOF
29146/* end confdefs.h.  */
29147#include <$ac_header>
29148_ACEOF
29149if { (ac_try="$ac_cpp conftest.$ac_ext"
29150case "(($ac_try" in
29151  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29152  *) ac_try_echo=$ac_try;;
29153esac
29154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29155  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29156  ac_status=$?
29157  grep -v '^ *+' conftest.er1 >conftest.err
29158  rm -f conftest.er1
29159  cat conftest.err >&5
29160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29161  (exit $ac_status); } >/dev/null; then
29162  if test -s conftest.err; then
29163    ac_cpp_err=$ac_c_preproc_warn_flag
29164    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29165  else
29166    ac_cpp_err=
29167  fi
29168else
29169  ac_cpp_err=yes
29170fi
29171if test -z "$ac_cpp_err"; then
29172  ac_header_preproc=yes
29173else
29174  echo "$as_me: failed program was:" >&5
29175sed 's/^/| /' conftest.$ac_ext >&5
29176
29177  ac_header_preproc=no
29178fi
29179
29180rm -f conftest.err conftest.$ac_ext
29181{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29182echo "${ECHO_T}$ac_header_preproc" >&6; }
29183
29184# So?  What about this header?
29185case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29186  yes:no: )
29187    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29188echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29189    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29190echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29191    ac_header_preproc=yes
29192    ;;
29193  no:yes:* )
29194    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29195echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29196    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29197echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29198    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29199echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29200    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29201echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29202    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29203echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29204    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29205echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29206    ( cat <<\_ASBOX
29207## ----------------------------------- ##
29208## Report this to llvmbugs@cs.uiuc.edu ##
29209## ----------------------------------- ##
29210_ASBOX
29211     ) | sed "s/^/$as_me: WARNING:     /" >&2
29212    ;;
29213esac
29214{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29215echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29216if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29217  echo $ECHO_N "(cached) $ECHO_C" >&6
29218else
29219  eval "$as_ac_Header=\$ac_header_preproc"
29220fi
29221ac_res=`eval echo '${'$as_ac_Header'}'`
29222	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29223echo "${ECHO_T}$ac_res" >&6; }
29224
29225fi
29226if test `eval echo '${'$as_ac_Header'}'` = yes; then
29227  cat >>confdefs.h <<_ACEOF
29228#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29229_ACEOF
29230
29231fi
29232
29233done
29234
29235
29236
29237
29238
29239for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29240do
29241as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29242if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29243  { echo "$as_me:$LINENO: checking for $ac_header" >&5
29244echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29245if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29246  echo $ECHO_N "(cached) $ECHO_C" >&6
29247fi
29248ac_res=`eval echo '${'$as_ac_Header'}'`
29249	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29250echo "${ECHO_T}$ac_res" >&6; }
29251else
29252  # Is the header compilable?
29253{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29254echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29255cat >conftest.$ac_ext <<_ACEOF
29256/* confdefs.h.  */
29257_ACEOF
29258cat confdefs.h >>conftest.$ac_ext
29259cat >>conftest.$ac_ext <<_ACEOF
29260/* end confdefs.h.  */
29261$ac_includes_default
29262#include <$ac_header>
29263_ACEOF
29264rm -f conftest.$ac_objext
29265if { (ac_try="$ac_compile"
29266case "(($ac_try" in
29267  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29268  *) ac_try_echo=$ac_try;;
29269esac
29270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29271  (eval "$ac_compile") 2>conftest.er1
29272  ac_status=$?
29273  grep -v '^ *+' conftest.er1 >conftest.err
29274  rm -f conftest.er1
29275  cat conftest.err >&5
29276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29277  (exit $ac_status); } &&
29278	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29279  { (case "(($ac_try" in
29280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29281  *) ac_try_echo=$ac_try;;
29282esac
29283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29284  (eval "$ac_try") 2>&5
29285  ac_status=$?
29286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29287  (exit $ac_status); }; } &&
29288	 { ac_try='test -s conftest.$ac_objext'
29289  { (case "(($ac_try" in
29290  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29291  *) ac_try_echo=$ac_try;;
29292esac
29293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29294  (eval "$ac_try") 2>&5
29295  ac_status=$?
29296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29297  (exit $ac_status); }; }; then
29298  ac_header_compiler=yes
29299else
29300  echo "$as_me: failed program was:" >&5
29301sed 's/^/| /' conftest.$ac_ext >&5
29302
29303	ac_header_compiler=no
29304fi
29305
29306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29307{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29308echo "${ECHO_T}$ac_header_compiler" >&6; }
29309
29310# Is the header present?
29311{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29312echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29313cat >conftest.$ac_ext <<_ACEOF
29314/* confdefs.h.  */
29315_ACEOF
29316cat confdefs.h >>conftest.$ac_ext
29317cat >>conftest.$ac_ext <<_ACEOF
29318/* end confdefs.h.  */
29319#include <$ac_header>
29320_ACEOF
29321if { (ac_try="$ac_cpp conftest.$ac_ext"
29322case "(($ac_try" in
29323  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29324  *) ac_try_echo=$ac_try;;
29325esac
29326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29327  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29328  ac_status=$?
29329  grep -v '^ *+' conftest.er1 >conftest.err
29330  rm -f conftest.er1
29331  cat conftest.err >&5
29332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29333  (exit $ac_status); } >/dev/null; then
29334  if test -s conftest.err; then
29335    ac_cpp_err=$ac_c_preproc_warn_flag
29336    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29337  else
29338    ac_cpp_err=
29339  fi
29340else
29341  ac_cpp_err=yes
29342fi
29343if test -z "$ac_cpp_err"; then
29344  ac_header_preproc=yes
29345else
29346  echo "$as_me: failed program was:" >&5
29347sed 's/^/| /' conftest.$ac_ext >&5
29348
29349  ac_header_preproc=no
29350fi
29351
29352rm -f conftest.err conftest.$ac_ext
29353{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29354echo "${ECHO_T}$ac_header_preproc" >&6; }
29355
29356# So?  What about this header?
29357case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29358  yes:no: )
29359    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29360echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29361    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29362echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29363    ac_header_preproc=yes
29364    ;;
29365  no:yes:* )
29366    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29367echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29368    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29369echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29370    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29371echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29372    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29373echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29374    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29375echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29376    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29377echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29378    ( cat <<\_ASBOX
29379## ----------------------------------- ##
29380## Report this to llvmbugs@cs.uiuc.edu ##
29381## ----------------------------------- ##
29382_ASBOX
29383     ) | sed "s/^/$as_me: WARNING:     /" >&2
29384    ;;
29385esac
29386{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29387echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29388if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29389  echo $ECHO_N "(cached) $ECHO_C" >&6
29390else
29391  eval "$as_ac_Header=\$ac_header_preproc"
29392fi
29393ac_res=`eval echo '${'$as_ac_Header'}'`
29394	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29395echo "${ECHO_T}$ac_res" >&6; }
29396
29397fi
29398if test `eval echo '${'$as_ac_Header'}'` = yes; then
29399  cat >>confdefs.h <<_ACEOF
29400#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29401_ACEOF
29402
29403fi
29404
29405done
29406
29407
29408
29409
29410for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29411do
29412as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29413if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29414  { echo "$as_me:$LINENO: checking for $ac_header" >&5
29415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29416if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29417  echo $ECHO_N "(cached) $ECHO_C" >&6
29418fi
29419ac_res=`eval echo '${'$as_ac_Header'}'`
29420	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29421echo "${ECHO_T}$ac_res" >&6; }
29422else
29423  # Is the header compilable?
29424{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29425echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29426cat >conftest.$ac_ext <<_ACEOF
29427/* confdefs.h.  */
29428_ACEOF
29429cat confdefs.h >>conftest.$ac_ext
29430cat >>conftest.$ac_ext <<_ACEOF
29431/* end confdefs.h.  */
29432$ac_includes_default
29433#include <$ac_header>
29434_ACEOF
29435rm -f conftest.$ac_objext
29436if { (ac_try="$ac_compile"
29437case "(($ac_try" in
29438  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29439  *) ac_try_echo=$ac_try;;
29440esac
29441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29442  (eval "$ac_compile") 2>conftest.er1
29443  ac_status=$?
29444  grep -v '^ *+' conftest.er1 >conftest.err
29445  rm -f conftest.er1
29446  cat conftest.err >&5
29447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29448  (exit $ac_status); } &&
29449	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29450  { (case "(($ac_try" in
29451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29452  *) ac_try_echo=$ac_try;;
29453esac
29454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29455  (eval "$ac_try") 2>&5
29456  ac_status=$?
29457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29458  (exit $ac_status); }; } &&
29459	 { ac_try='test -s conftest.$ac_objext'
29460  { (case "(($ac_try" in
29461  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29462  *) ac_try_echo=$ac_try;;
29463esac
29464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29465  (eval "$ac_try") 2>&5
29466  ac_status=$?
29467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29468  (exit $ac_status); }; }; then
29469  ac_header_compiler=yes
29470else
29471  echo "$as_me: failed program was:" >&5
29472sed 's/^/| /' conftest.$ac_ext >&5
29473
29474	ac_header_compiler=no
29475fi
29476
29477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29478{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29479echo "${ECHO_T}$ac_header_compiler" >&6; }
29480
29481# Is the header present?
29482{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29483echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29484cat >conftest.$ac_ext <<_ACEOF
29485/* confdefs.h.  */
29486_ACEOF
29487cat confdefs.h >>conftest.$ac_ext
29488cat >>conftest.$ac_ext <<_ACEOF
29489/* end confdefs.h.  */
29490#include <$ac_header>
29491_ACEOF
29492if { (ac_try="$ac_cpp conftest.$ac_ext"
29493case "(($ac_try" in
29494  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29495  *) ac_try_echo=$ac_try;;
29496esac
29497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29498  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29499  ac_status=$?
29500  grep -v '^ *+' conftest.er1 >conftest.err
29501  rm -f conftest.er1
29502  cat conftest.err >&5
29503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29504  (exit $ac_status); } >/dev/null; then
29505  if test -s conftest.err; then
29506    ac_cpp_err=$ac_c_preproc_warn_flag
29507    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29508  else
29509    ac_cpp_err=
29510  fi
29511else
29512  ac_cpp_err=yes
29513fi
29514if test -z "$ac_cpp_err"; then
29515  ac_header_preproc=yes
29516else
29517  echo "$as_me: failed program was:" >&5
29518sed 's/^/| /' conftest.$ac_ext >&5
29519
29520  ac_header_preproc=no
29521fi
29522
29523rm -f conftest.err conftest.$ac_ext
29524{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29525echo "${ECHO_T}$ac_header_preproc" >&6; }
29526
29527# So?  What about this header?
29528case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29529  yes:no: )
29530    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29531echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29532    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29533echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29534    ac_header_preproc=yes
29535    ;;
29536  no:yes:* )
29537    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29538echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29539    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29540echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29541    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29542echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29543    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29544echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29545    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29546echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29547    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29548echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29549    ( cat <<\_ASBOX
29550## ----------------------------------- ##
29551## Report this to llvmbugs@cs.uiuc.edu ##
29552## ----------------------------------- ##
29553_ASBOX
29554     ) | sed "s/^/$as_me: WARNING:     /" >&2
29555    ;;
29556esac
29557{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29558echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29559if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29560  echo $ECHO_N "(cached) $ECHO_C" >&6
29561else
29562  eval "$as_ac_Header=\$ac_header_preproc"
29563fi
29564ac_res=`eval echo '${'$as_ac_Header'}'`
29565	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29566echo "${ECHO_T}$ac_res" >&6; }
29567
29568fi
29569if test `eval echo '${'$as_ac_Header'}'` = yes; then
29570  cat >>confdefs.h <<_ACEOF
29571#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29572_ACEOF
29573
29574fi
29575
29576done
29577
29578if test "$ENABLE_THREADS" -eq 1 ; then
29579
29580for ac_header in pthread.h
29581do
29582as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29583if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29584  { echo "$as_me:$LINENO: checking for $ac_header" >&5
29585echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29586if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29587  echo $ECHO_N "(cached) $ECHO_C" >&6
29588fi
29589ac_res=`eval echo '${'$as_ac_Header'}'`
29590	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29591echo "${ECHO_T}$ac_res" >&6; }
29592else
29593  # Is the header compilable?
29594{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29595echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29596cat >conftest.$ac_ext <<_ACEOF
29597/* confdefs.h.  */
29598_ACEOF
29599cat confdefs.h >>conftest.$ac_ext
29600cat >>conftest.$ac_ext <<_ACEOF
29601/* end confdefs.h.  */
29602$ac_includes_default
29603#include <$ac_header>
29604_ACEOF
29605rm -f conftest.$ac_objext
29606if { (ac_try="$ac_compile"
29607case "(($ac_try" in
29608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29609  *) ac_try_echo=$ac_try;;
29610esac
29611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29612  (eval "$ac_compile") 2>conftest.er1
29613  ac_status=$?
29614  grep -v '^ *+' conftest.er1 >conftest.err
29615  rm -f conftest.er1
29616  cat conftest.err >&5
29617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29618  (exit $ac_status); } &&
29619	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29620  { (case "(($ac_try" in
29621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29622  *) ac_try_echo=$ac_try;;
29623esac
29624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29625  (eval "$ac_try") 2>&5
29626  ac_status=$?
29627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29628  (exit $ac_status); }; } &&
29629	 { ac_try='test -s conftest.$ac_objext'
29630  { (case "(($ac_try" in
29631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29632  *) ac_try_echo=$ac_try;;
29633esac
29634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29635  (eval "$ac_try") 2>&5
29636  ac_status=$?
29637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29638  (exit $ac_status); }; }; then
29639  ac_header_compiler=yes
29640else
29641  echo "$as_me: failed program was:" >&5
29642sed 's/^/| /' conftest.$ac_ext >&5
29643
29644	ac_header_compiler=no
29645fi
29646
29647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29648{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29649echo "${ECHO_T}$ac_header_compiler" >&6; }
29650
29651# Is the header present?
29652{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29653echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29654cat >conftest.$ac_ext <<_ACEOF
29655/* confdefs.h.  */
29656_ACEOF
29657cat confdefs.h >>conftest.$ac_ext
29658cat >>conftest.$ac_ext <<_ACEOF
29659/* end confdefs.h.  */
29660#include <$ac_header>
29661_ACEOF
29662if { (ac_try="$ac_cpp conftest.$ac_ext"
29663case "(($ac_try" in
29664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29665  *) ac_try_echo=$ac_try;;
29666esac
29667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29668  (eval "$ac_cpp conftest.$ac_ext") 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); } >/dev/null; then
29675  if test -s conftest.err; then
29676    ac_cpp_err=$ac_c_preproc_warn_flag
29677    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29678  else
29679    ac_cpp_err=
29680  fi
29681else
29682  ac_cpp_err=yes
29683fi
29684if test -z "$ac_cpp_err"; then
29685  ac_header_preproc=yes
29686else
29687  echo "$as_me: failed program was:" >&5
29688sed 's/^/| /' conftest.$ac_ext >&5
29689
29690  ac_header_preproc=no
29691fi
29692
29693rm -f conftest.err conftest.$ac_ext
29694{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29695echo "${ECHO_T}$ac_header_preproc" >&6; }
29696
29697# So?  What about this header?
29698case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29699  yes:no: )
29700    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29701echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29702    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29703echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29704    ac_header_preproc=yes
29705    ;;
29706  no:yes:* )
29707    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29708echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29709    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29710echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29711    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29712echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29713    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29714echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29715    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29716echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29717    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29718echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29719    ( cat <<\_ASBOX
29720## ----------------------------------- ##
29721## Report this to llvmbugs@cs.uiuc.edu ##
29722## ----------------------------------- ##
29723_ASBOX
29724     ) | sed "s/^/$as_me: WARNING:     /" >&2
29725    ;;
29726esac
29727{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29728echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29729if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29730  echo $ECHO_N "(cached) $ECHO_C" >&6
29731else
29732  eval "$as_ac_Header=\$ac_header_preproc"
29733fi
29734ac_res=`eval echo '${'$as_ac_Header'}'`
29735	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29736echo "${ECHO_T}$ac_res" >&6; }
29737
29738fi
29739if test `eval echo '${'$as_ac_Header'}'` = yes; then
29740  cat >>confdefs.h <<_ACEOF
29741#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29742_ACEOF
29743 HAVE_PTHREAD=1
29744
29745else
29746  HAVE_PTHREAD=0
29747
29748fi
29749
29750done
29751
29752else
29753  HAVE_PTHREAD=0
29754
29755fi
29756
29757if test -n "$have_libffi" ; then
29758
29759
29760for ac_header in ffi.h ffi/ffi.h
29761do
29762as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29763if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29764  { echo "$as_me:$LINENO: checking for $ac_header" >&5
29765echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29766if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29767  echo $ECHO_N "(cached) $ECHO_C" >&6
29768fi
29769ac_res=`eval echo '${'$as_ac_Header'}'`
29770	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29771echo "${ECHO_T}$ac_res" >&6; }
29772else
29773  # Is the header compilable?
29774{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29775echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29776cat >conftest.$ac_ext <<_ACEOF
29777/* confdefs.h.  */
29778_ACEOF
29779cat confdefs.h >>conftest.$ac_ext
29780cat >>conftest.$ac_ext <<_ACEOF
29781/* end confdefs.h.  */
29782$ac_includes_default
29783#include <$ac_header>
29784_ACEOF
29785rm -f conftest.$ac_objext
29786if { (ac_try="$ac_compile"
29787case "(($ac_try" in
29788  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29789  *) ac_try_echo=$ac_try;;
29790esac
29791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29792  (eval "$ac_compile") 2>conftest.er1
29793  ac_status=$?
29794  grep -v '^ *+' conftest.er1 >conftest.err
29795  rm -f conftest.er1
29796  cat conftest.err >&5
29797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29798  (exit $ac_status); } &&
29799	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29800  { (case "(($ac_try" in
29801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29802  *) ac_try_echo=$ac_try;;
29803esac
29804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29805  (eval "$ac_try") 2>&5
29806  ac_status=$?
29807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29808  (exit $ac_status); }; } &&
29809	 { ac_try='test -s conftest.$ac_objext'
29810  { (case "(($ac_try" in
29811  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29812  *) ac_try_echo=$ac_try;;
29813esac
29814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29815  (eval "$ac_try") 2>&5
29816  ac_status=$?
29817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29818  (exit $ac_status); }; }; then
29819  ac_header_compiler=yes
29820else
29821  echo "$as_me: failed program was:" >&5
29822sed 's/^/| /' conftest.$ac_ext >&5
29823
29824	ac_header_compiler=no
29825fi
29826
29827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29828{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29829echo "${ECHO_T}$ac_header_compiler" >&6; }
29830
29831# Is the header present?
29832{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29833echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29834cat >conftest.$ac_ext <<_ACEOF
29835/* confdefs.h.  */
29836_ACEOF
29837cat confdefs.h >>conftest.$ac_ext
29838cat >>conftest.$ac_ext <<_ACEOF
29839/* end confdefs.h.  */
29840#include <$ac_header>
29841_ACEOF
29842if { (ac_try="$ac_cpp conftest.$ac_ext"
29843case "(($ac_try" in
29844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29845  *) ac_try_echo=$ac_try;;
29846esac
29847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29848  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29849  ac_status=$?
29850  grep -v '^ *+' conftest.er1 >conftest.err
29851  rm -f conftest.er1
29852  cat conftest.err >&5
29853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29854  (exit $ac_status); } >/dev/null; then
29855  if test -s conftest.err; then
29856    ac_cpp_err=$ac_c_preproc_warn_flag
29857    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29858  else
29859    ac_cpp_err=
29860  fi
29861else
29862  ac_cpp_err=yes
29863fi
29864if test -z "$ac_cpp_err"; then
29865  ac_header_preproc=yes
29866else
29867  echo "$as_me: failed program was:" >&5
29868sed 's/^/| /' conftest.$ac_ext >&5
29869
29870  ac_header_preproc=no
29871fi
29872
29873rm -f conftest.err conftest.$ac_ext
29874{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29875echo "${ECHO_T}$ac_header_preproc" >&6; }
29876
29877# So?  What about this header?
29878case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29879  yes:no: )
29880    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29881echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29882    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29883echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29884    ac_header_preproc=yes
29885    ;;
29886  no:yes:* )
29887    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29888echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29889    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29890echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29891    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29892echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29893    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29894echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29895    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29896echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29897    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29898echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29899    ( cat <<\_ASBOX
29900## ----------------------------------- ##
29901## Report this to llvmbugs@cs.uiuc.edu ##
29902## ----------------------------------- ##
29903_ASBOX
29904     ) | sed "s/^/$as_me: WARNING:     /" >&2
29905    ;;
29906esac
29907{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29908echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29909if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29910  echo $ECHO_N "(cached) $ECHO_C" >&6
29911else
29912  eval "$as_ac_Header=\$ac_header_preproc"
29913fi
29914ac_res=`eval echo '${'$as_ac_Header'}'`
29915	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29916echo "${ECHO_T}$ac_res" >&6; }
29917
29918fi
29919if test `eval echo '${'$as_ac_Header'}'` = yes; then
29920  cat >>confdefs.h <<_ACEOF
29921#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29922_ACEOF
29923 HAVE_FFI=1
29924
29925fi
29926
29927done
29928
29929fi
29930
29931
29932
29933  { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29934echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29935if test "${ac_cv_huge_val_sanity+set}" = set; then
29936  echo $ECHO_N "(cached) $ECHO_C" >&6
29937else
29938
29939    ac_ext=cpp
29940ac_cpp='$CXXCPP $CPPFLAGS'
29941ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29942ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29943ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29944
29945    CXXFLAGS=-pedantic
29946    if test "$cross_compiling" = yes; then
29947  ac_cv_huge_val_sanity=yes
29948else
29949  cat >conftest.$ac_ext <<_ACEOF
29950/* confdefs.h.  */
29951_ACEOF
29952cat confdefs.h >>conftest.$ac_ext
29953cat >>conftest.$ac_ext <<_ACEOF
29954/* end confdefs.h.  */
29955#include <math.h>
29956int
29957main ()
29958{
29959double x = HUGE_VAL; return x != x;
29960  ;
29961  return 0;
29962}
29963_ACEOF
29964rm -f conftest$ac_exeext
29965if { (ac_try="$ac_link"
29966case "(($ac_try" in
29967  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29968  *) ac_try_echo=$ac_try;;
29969esac
29970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29971  (eval "$ac_link") 2>&5
29972  ac_status=$?
29973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29974  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29975  { (case "(($ac_try" in
29976  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29977  *) ac_try_echo=$ac_try;;
29978esac
29979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29980  (eval "$ac_try") 2>&5
29981  ac_status=$?
29982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29983  (exit $ac_status); }; }; then
29984  ac_cv_huge_val_sanity=yes
29985else
29986  echo "$as_me: program exited with status $ac_status" >&5
29987echo "$as_me: failed program was:" >&5
29988sed 's/^/| /' conftest.$ac_ext >&5
29989
29990( exit $ac_status )
29991ac_cv_huge_val_sanity=no
29992fi
29993rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29994fi
29995
29996
29997    ac_ext=c
29998ac_cpp='$CPP $CPPFLAGS'
29999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30001ac_compiler_gnu=$ac_cv_c_compiler_gnu
30002
30003
30004fi
30005{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30006echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30007  HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30008
30009
30010{ echo "$as_me:$LINENO: checking for pid_t" >&5
30011echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
30012if test "${ac_cv_type_pid_t+set}" = set; then
30013  echo $ECHO_N "(cached) $ECHO_C" >&6
30014else
30015  cat >conftest.$ac_ext <<_ACEOF
30016/* confdefs.h.  */
30017_ACEOF
30018cat confdefs.h >>conftest.$ac_ext
30019cat >>conftest.$ac_ext <<_ACEOF
30020/* end confdefs.h.  */
30021$ac_includes_default
30022typedef pid_t ac__type_new_;
30023int
30024main ()
30025{
30026if ((ac__type_new_ *) 0)
30027  return 0;
30028if (sizeof (ac__type_new_))
30029  return 0;
30030  ;
30031  return 0;
30032}
30033_ACEOF
30034rm -f conftest.$ac_objext
30035if { (ac_try="$ac_compile"
30036case "(($ac_try" in
30037  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30038  *) ac_try_echo=$ac_try;;
30039esac
30040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30041  (eval "$ac_compile") 2>conftest.er1
30042  ac_status=$?
30043  grep -v '^ *+' conftest.er1 >conftest.err
30044  rm -f conftest.er1
30045  cat conftest.err >&5
30046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30047  (exit $ac_status); } &&
30048	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30049  { (case "(($ac_try" in
30050  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30051  *) ac_try_echo=$ac_try;;
30052esac
30053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30054  (eval "$ac_try") 2>&5
30055  ac_status=$?
30056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30057  (exit $ac_status); }; } &&
30058	 { ac_try='test -s conftest.$ac_objext'
30059  { (case "(($ac_try" in
30060  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30061  *) ac_try_echo=$ac_try;;
30062esac
30063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30064  (eval "$ac_try") 2>&5
30065  ac_status=$?
30066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30067  (exit $ac_status); }; }; then
30068  ac_cv_type_pid_t=yes
30069else
30070  echo "$as_me: failed program was:" >&5
30071sed 's/^/| /' conftest.$ac_ext >&5
30072
30073	ac_cv_type_pid_t=no
30074fi
30075
30076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30077fi
30078{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30079echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
30080if test $ac_cv_type_pid_t = yes; then
30081  :
30082else
30083
30084cat >>confdefs.h <<_ACEOF
30085#define pid_t int
30086_ACEOF
30087
30088fi
30089
30090{ echo "$as_me:$LINENO: checking for size_t" >&5
30091echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
30092if test "${ac_cv_type_size_t+set}" = set; then
30093  echo $ECHO_N "(cached) $ECHO_C" >&6
30094else
30095  cat >conftest.$ac_ext <<_ACEOF
30096/* confdefs.h.  */
30097_ACEOF
30098cat confdefs.h >>conftest.$ac_ext
30099cat >>conftest.$ac_ext <<_ACEOF
30100/* end confdefs.h.  */
30101$ac_includes_default
30102typedef size_t ac__type_new_;
30103int
30104main ()
30105{
30106if ((ac__type_new_ *) 0)
30107  return 0;
30108if (sizeof (ac__type_new_))
30109  return 0;
30110  ;
30111  return 0;
30112}
30113_ACEOF
30114rm -f conftest.$ac_objext
30115if { (ac_try="$ac_compile"
30116case "(($ac_try" in
30117  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30118  *) ac_try_echo=$ac_try;;
30119esac
30120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30121  (eval "$ac_compile") 2>conftest.er1
30122  ac_status=$?
30123  grep -v '^ *+' conftest.er1 >conftest.err
30124  rm -f conftest.er1
30125  cat conftest.err >&5
30126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30127  (exit $ac_status); } &&
30128	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30129  { (case "(($ac_try" in
30130  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30131  *) ac_try_echo=$ac_try;;
30132esac
30133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30134  (eval "$ac_try") 2>&5
30135  ac_status=$?
30136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30137  (exit $ac_status); }; } &&
30138	 { ac_try='test -s conftest.$ac_objext'
30139  { (case "(($ac_try" in
30140  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30141  *) ac_try_echo=$ac_try;;
30142esac
30143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30144  (eval "$ac_try") 2>&5
30145  ac_status=$?
30146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30147  (exit $ac_status); }; }; then
30148  ac_cv_type_size_t=yes
30149else
30150  echo "$as_me: failed program was:" >&5
30151sed 's/^/| /' conftest.$ac_ext >&5
30152
30153	ac_cv_type_size_t=no
30154fi
30155
30156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30157fi
30158{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30159echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30160if test $ac_cv_type_size_t = yes; then
30161  :
30162else
30163
30164cat >>confdefs.h <<_ACEOF
30165#define size_t unsigned int
30166_ACEOF
30167
30168fi
30169
30170{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30171echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30172if test "${ac_cv_type_signal+set}" = set; then
30173  echo $ECHO_N "(cached) $ECHO_C" >&6
30174else
30175  cat >conftest.$ac_ext <<_ACEOF
30176/* confdefs.h.  */
30177_ACEOF
30178cat confdefs.h >>conftest.$ac_ext
30179cat >>conftest.$ac_ext <<_ACEOF
30180/* end confdefs.h.  */
30181#include <sys/types.h>
30182#include <signal.h>
30183
30184int
30185main ()
30186{
30187return *(signal (0, 0)) (0) == 1;
30188  ;
30189  return 0;
30190}
30191_ACEOF
30192rm -f conftest.$ac_objext
30193if { (ac_try="$ac_compile"
30194case "(($ac_try" in
30195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30196  *) ac_try_echo=$ac_try;;
30197esac
30198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30199  (eval "$ac_compile") 2>conftest.er1
30200  ac_status=$?
30201  grep -v '^ *+' conftest.er1 >conftest.err
30202  rm -f conftest.er1
30203  cat conftest.err >&5
30204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30205  (exit $ac_status); } &&
30206	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30207  { (case "(($ac_try" in
30208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30209  *) ac_try_echo=$ac_try;;
30210esac
30211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30212  (eval "$ac_try") 2>&5
30213  ac_status=$?
30214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30215  (exit $ac_status); }; } &&
30216	 { ac_try='test -s conftest.$ac_objext'
30217  { (case "(($ac_try" in
30218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30219  *) ac_try_echo=$ac_try;;
30220esac
30221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30222  (eval "$ac_try") 2>&5
30223  ac_status=$?
30224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30225  (exit $ac_status); }; }; then
30226  ac_cv_type_signal=int
30227else
30228  echo "$as_me: failed program was:" >&5
30229sed 's/^/| /' conftest.$ac_ext >&5
30230
30231	ac_cv_type_signal=void
30232fi
30233
30234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30235fi
30236{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30237echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30238
30239cat >>confdefs.h <<_ACEOF
30240#define RETSIGTYPE $ac_cv_type_signal
30241_ACEOF
30242
30243
30244{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30245echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30246if test "${ac_cv_struct_tm+set}" = set; then
30247  echo $ECHO_N "(cached) $ECHO_C" >&6
30248else
30249  cat >conftest.$ac_ext <<_ACEOF
30250/* confdefs.h.  */
30251_ACEOF
30252cat confdefs.h >>conftest.$ac_ext
30253cat >>conftest.$ac_ext <<_ACEOF
30254/* end confdefs.h.  */
30255#include <sys/types.h>
30256#include <time.h>
30257
30258int
30259main ()
30260{
30261struct tm *tp; tp->tm_sec;
30262  ;
30263  return 0;
30264}
30265_ACEOF
30266rm -f conftest.$ac_objext
30267if { (ac_try="$ac_compile"
30268case "(($ac_try" in
30269  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30270  *) ac_try_echo=$ac_try;;
30271esac
30272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30273  (eval "$ac_compile") 2>conftest.er1
30274  ac_status=$?
30275  grep -v '^ *+' conftest.er1 >conftest.err
30276  rm -f conftest.er1
30277  cat conftest.err >&5
30278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30279  (exit $ac_status); } &&
30280	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30281  { (case "(($ac_try" in
30282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30283  *) ac_try_echo=$ac_try;;
30284esac
30285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30286  (eval "$ac_try") 2>&5
30287  ac_status=$?
30288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30289  (exit $ac_status); }; } &&
30290	 { ac_try='test -s conftest.$ac_objext'
30291  { (case "(($ac_try" in
30292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30293  *) ac_try_echo=$ac_try;;
30294esac
30295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30296  (eval "$ac_try") 2>&5
30297  ac_status=$?
30298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30299  (exit $ac_status); }; }; then
30300  ac_cv_struct_tm=time.h
30301else
30302  echo "$as_me: failed program was:" >&5
30303sed 's/^/| /' conftest.$ac_ext >&5
30304
30305	ac_cv_struct_tm=sys/time.h
30306fi
30307
30308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30309fi
30310{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30311echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30312if test $ac_cv_struct_tm = sys/time.h; then
30313
30314cat >>confdefs.h <<\_ACEOF
30315#define TM_IN_SYS_TIME 1
30316_ACEOF
30317
30318fi
30319
30320{ echo "$as_me:$LINENO: checking for int64_t" >&5
30321echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30322if test "${ac_cv_type_int64_t+set}" = set; then
30323  echo $ECHO_N "(cached) $ECHO_C" >&6
30324else
30325  cat >conftest.$ac_ext <<_ACEOF
30326/* confdefs.h.  */
30327_ACEOF
30328cat confdefs.h >>conftest.$ac_ext
30329cat >>conftest.$ac_ext <<_ACEOF
30330/* end confdefs.h.  */
30331$ac_includes_default
30332typedef int64_t ac__type_new_;
30333int
30334main ()
30335{
30336if ((ac__type_new_ *) 0)
30337  return 0;
30338if (sizeof (ac__type_new_))
30339  return 0;
30340  ;
30341  return 0;
30342}
30343_ACEOF
30344rm -f conftest.$ac_objext
30345if { (ac_try="$ac_compile"
30346case "(($ac_try" in
30347  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30348  *) ac_try_echo=$ac_try;;
30349esac
30350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30351  (eval "$ac_compile") 2>conftest.er1
30352  ac_status=$?
30353  grep -v '^ *+' conftest.er1 >conftest.err
30354  rm -f conftest.er1
30355  cat conftest.err >&5
30356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30357  (exit $ac_status); } &&
30358	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30359  { (case "(($ac_try" in
30360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30361  *) ac_try_echo=$ac_try;;
30362esac
30363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30364  (eval "$ac_try") 2>&5
30365  ac_status=$?
30366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30367  (exit $ac_status); }; } &&
30368	 { ac_try='test -s conftest.$ac_objext'
30369  { (case "(($ac_try" in
30370  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30371  *) ac_try_echo=$ac_try;;
30372esac
30373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30374  (eval "$ac_try") 2>&5
30375  ac_status=$?
30376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30377  (exit $ac_status); }; }; then
30378  ac_cv_type_int64_t=yes
30379else
30380  echo "$as_me: failed program was:" >&5
30381sed 's/^/| /' conftest.$ac_ext >&5
30382
30383	ac_cv_type_int64_t=no
30384fi
30385
30386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30387fi
30388{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30389echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30390if test $ac_cv_type_int64_t = yes; then
30391
30392cat >>confdefs.h <<_ACEOF
30393#define HAVE_INT64_T 1
30394_ACEOF
30395
30396
30397else
30398  { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30399echo "$as_me: error: Type int64_t required but not found" >&2;}
30400   { (exit 1); exit 1; }; }
30401fi
30402
30403{ echo "$as_me:$LINENO: checking for uint64_t" >&5
30404echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30405if test "${ac_cv_type_uint64_t+set}" = set; then
30406  echo $ECHO_N "(cached) $ECHO_C" >&6
30407else
30408  cat >conftest.$ac_ext <<_ACEOF
30409/* confdefs.h.  */
30410_ACEOF
30411cat confdefs.h >>conftest.$ac_ext
30412cat >>conftest.$ac_ext <<_ACEOF
30413/* end confdefs.h.  */
30414$ac_includes_default
30415typedef uint64_t ac__type_new_;
30416int
30417main ()
30418{
30419if ((ac__type_new_ *) 0)
30420  return 0;
30421if (sizeof (ac__type_new_))
30422  return 0;
30423  ;
30424  return 0;
30425}
30426_ACEOF
30427rm -f conftest.$ac_objext
30428if { (ac_try="$ac_compile"
30429case "(($ac_try" in
30430  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30431  *) ac_try_echo=$ac_try;;
30432esac
30433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30434  (eval "$ac_compile") 2>conftest.er1
30435  ac_status=$?
30436  grep -v '^ *+' conftest.er1 >conftest.err
30437  rm -f conftest.er1
30438  cat conftest.err >&5
30439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30440  (exit $ac_status); } &&
30441	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30442  { (case "(($ac_try" in
30443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30444  *) ac_try_echo=$ac_try;;
30445esac
30446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30447  (eval "$ac_try") 2>&5
30448  ac_status=$?
30449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30450  (exit $ac_status); }; } &&
30451	 { ac_try='test -s conftest.$ac_objext'
30452  { (case "(($ac_try" in
30453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30454  *) ac_try_echo=$ac_try;;
30455esac
30456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30457  (eval "$ac_try") 2>&5
30458  ac_status=$?
30459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30460  (exit $ac_status); }; }; then
30461  ac_cv_type_uint64_t=yes
30462else
30463  echo "$as_me: failed program was:" >&5
30464sed 's/^/| /' conftest.$ac_ext >&5
30465
30466	ac_cv_type_uint64_t=no
30467fi
30468
30469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30470fi
30471{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30472echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30473if test $ac_cv_type_uint64_t = yes; then
30474
30475cat >>confdefs.h <<_ACEOF
30476#define HAVE_UINT64_T 1
30477_ACEOF
30478
30479
30480else
30481  { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30482echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30483if test "${ac_cv_type_u_int64_t+set}" = set; then
30484  echo $ECHO_N "(cached) $ECHO_C" >&6
30485else
30486  cat >conftest.$ac_ext <<_ACEOF
30487/* confdefs.h.  */
30488_ACEOF
30489cat confdefs.h >>conftest.$ac_ext
30490cat >>conftest.$ac_ext <<_ACEOF
30491/* end confdefs.h.  */
30492$ac_includes_default
30493typedef u_int64_t ac__type_new_;
30494int
30495main ()
30496{
30497if ((ac__type_new_ *) 0)
30498  return 0;
30499if (sizeof (ac__type_new_))
30500  return 0;
30501  ;
30502  return 0;
30503}
30504_ACEOF
30505rm -f conftest.$ac_objext
30506if { (ac_try="$ac_compile"
30507case "(($ac_try" in
30508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30509  *) ac_try_echo=$ac_try;;
30510esac
30511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30512  (eval "$ac_compile") 2>conftest.er1
30513  ac_status=$?
30514  grep -v '^ *+' conftest.er1 >conftest.err
30515  rm -f conftest.er1
30516  cat conftest.err >&5
30517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30518  (exit $ac_status); } &&
30519	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30520  { (case "(($ac_try" in
30521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30522  *) ac_try_echo=$ac_try;;
30523esac
30524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30525  (eval "$ac_try") 2>&5
30526  ac_status=$?
30527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30528  (exit $ac_status); }; } &&
30529	 { ac_try='test -s conftest.$ac_objext'
30530  { (case "(($ac_try" in
30531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30532  *) ac_try_echo=$ac_try;;
30533esac
30534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30535  (eval "$ac_try") 2>&5
30536  ac_status=$?
30537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30538  (exit $ac_status); }; }; then
30539  ac_cv_type_u_int64_t=yes
30540else
30541  echo "$as_me: failed program was:" >&5
30542sed 's/^/| /' conftest.$ac_ext >&5
30543
30544	ac_cv_type_u_int64_t=no
30545fi
30546
30547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30548fi
30549{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30550echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30551if test $ac_cv_type_u_int64_t = yes; then
30552
30553cat >>confdefs.h <<_ACEOF
30554#define HAVE_U_INT64_T 1
30555_ACEOF
30556
30557
30558else
30559  { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30560echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30561   { (exit 1); exit 1; }; }
30562fi
30563
30564fi
30565
30566
30567
30568
30569
30570
30571
30572
30573
30574
30575for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30576do
30577as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30578{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30579echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30580if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30581  echo $ECHO_N "(cached) $ECHO_C" >&6
30582else
30583  cat >conftest.$ac_ext <<_ACEOF
30584/* confdefs.h.  */
30585_ACEOF
30586cat confdefs.h >>conftest.$ac_ext
30587cat >>conftest.$ac_ext <<_ACEOF
30588/* end confdefs.h.  */
30589/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30590   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30591#define $ac_func innocuous_$ac_func
30592
30593/* System header to define __stub macros and hopefully few prototypes,
30594    which can conflict with char $ac_func (); below.
30595    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30596    <limits.h> exists even on freestanding compilers.  */
30597
30598#ifdef __STDC__
30599# include <limits.h>
30600#else
30601# include <assert.h>
30602#endif
30603
30604#undef $ac_func
30605
30606/* Override any GCC internal prototype to avoid an error.
30607   Use char because int might match the return type of a GCC
30608   builtin and then its argument prototype would still apply.  */
30609#ifdef __cplusplus
30610extern "C"
30611#endif
30612char $ac_func ();
30613/* The GNU C library defines this for functions which it implements
30614    to always fail with ENOSYS.  Some functions are actually named
30615    something starting with __ and the normal name is an alias.  */
30616#if defined __stub_$ac_func || defined __stub___$ac_func
30617choke me
30618#endif
30619
30620int
30621main ()
30622{
30623return $ac_func ();
30624  ;
30625  return 0;
30626}
30627_ACEOF
30628rm -f conftest.$ac_objext conftest$ac_exeext
30629if { (ac_try="$ac_link"
30630case "(($ac_try" in
30631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30632  *) ac_try_echo=$ac_try;;
30633esac
30634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30635  (eval "$ac_link") 2>conftest.er1
30636  ac_status=$?
30637  grep -v '^ *+' conftest.er1 >conftest.err
30638  rm -f conftest.er1
30639  cat conftest.err >&5
30640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30641  (exit $ac_status); } &&
30642	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30643  { (case "(($ac_try" in
30644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30645  *) ac_try_echo=$ac_try;;
30646esac
30647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30648  (eval "$ac_try") 2>&5
30649  ac_status=$?
30650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30651  (exit $ac_status); }; } &&
30652	 { ac_try='test -s conftest$ac_exeext'
30653  { (case "(($ac_try" in
30654  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30655  *) ac_try_echo=$ac_try;;
30656esac
30657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30658  (eval "$ac_try") 2>&5
30659  ac_status=$?
30660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30661  (exit $ac_status); }; }; then
30662  eval "$as_ac_var=yes"
30663else
30664  echo "$as_me: failed program was:" >&5
30665sed 's/^/| /' conftest.$ac_ext >&5
30666
30667	eval "$as_ac_var=no"
30668fi
30669
30670rm -f core conftest.err conftest.$ac_objext \
30671      conftest$ac_exeext conftest.$ac_ext
30672fi
30673ac_res=`eval echo '${'$as_ac_var'}'`
30674	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30675echo "${ECHO_T}$ac_res" >&6; }
30676if test `eval echo '${'$as_ac_var'}'` = yes; then
30677  cat >>confdefs.h <<_ACEOF
30678#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30679_ACEOF
30680
30681fi
30682done
30683
30684
30685
30686
30687
30688for ac_func in powf fmodf strtof round
30689do
30690as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30691{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30692echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30693if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30694  echo $ECHO_N "(cached) $ECHO_C" >&6
30695else
30696  cat >conftest.$ac_ext <<_ACEOF
30697/* confdefs.h.  */
30698_ACEOF
30699cat confdefs.h >>conftest.$ac_ext
30700cat >>conftest.$ac_ext <<_ACEOF
30701/* end confdefs.h.  */
30702/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30703   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30704#define $ac_func innocuous_$ac_func
30705
30706/* System header to define __stub macros and hopefully few prototypes,
30707    which can conflict with char $ac_func (); below.
30708    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30709    <limits.h> exists even on freestanding compilers.  */
30710
30711#ifdef __STDC__
30712# include <limits.h>
30713#else
30714# include <assert.h>
30715#endif
30716
30717#undef $ac_func
30718
30719/* Override any GCC internal prototype to avoid an error.
30720   Use char because int might match the return type of a GCC
30721   builtin and then its argument prototype would still apply.  */
30722#ifdef __cplusplus
30723extern "C"
30724#endif
30725char $ac_func ();
30726/* The GNU C library defines this for functions which it implements
30727    to always fail with ENOSYS.  Some functions are actually named
30728    something starting with __ and the normal name is an alias.  */
30729#if defined __stub_$ac_func || defined __stub___$ac_func
30730choke me
30731#endif
30732
30733int
30734main ()
30735{
30736return $ac_func ();
30737  ;
30738  return 0;
30739}
30740_ACEOF
30741rm -f conftest.$ac_objext conftest$ac_exeext
30742if { (ac_try="$ac_link"
30743case "(($ac_try" in
30744  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30745  *) ac_try_echo=$ac_try;;
30746esac
30747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30748  (eval "$ac_link") 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	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30756  { (case "(($ac_try" in
30757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30758  *) ac_try_echo=$ac_try;;
30759esac
30760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30761  (eval "$ac_try") 2>&5
30762  ac_status=$?
30763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30764  (exit $ac_status); }; } &&
30765	 { ac_try='test -s conftest$ac_exeext'
30766  { (case "(($ac_try" in
30767  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30768  *) ac_try_echo=$ac_try;;
30769esac
30770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30771  (eval "$ac_try") 2>&5
30772  ac_status=$?
30773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30774  (exit $ac_status); }; }; then
30775  eval "$as_ac_var=yes"
30776else
30777  echo "$as_me: failed program was:" >&5
30778sed 's/^/| /' conftest.$ac_ext >&5
30779
30780	eval "$as_ac_var=no"
30781fi
30782
30783rm -f core conftest.err conftest.$ac_objext \
30784      conftest$ac_exeext conftest.$ac_ext
30785fi
30786ac_res=`eval echo '${'$as_ac_var'}'`
30787	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30788echo "${ECHO_T}$ac_res" >&6; }
30789if test `eval echo '${'$as_ac_var'}'` = yes; then
30790  cat >>confdefs.h <<_ACEOF
30791#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30792_ACEOF
30793
30794fi
30795done
30796
30797
30798
30799
30800
30801
30802for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30803do
30804as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30805{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30806echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30807if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30808  echo $ECHO_N "(cached) $ECHO_C" >&6
30809else
30810  cat >conftest.$ac_ext <<_ACEOF
30811/* confdefs.h.  */
30812_ACEOF
30813cat confdefs.h >>conftest.$ac_ext
30814cat >>conftest.$ac_ext <<_ACEOF
30815/* end confdefs.h.  */
30816/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30817   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30818#define $ac_func innocuous_$ac_func
30819
30820/* System header to define __stub macros and hopefully few prototypes,
30821    which can conflict with char $ac_func (); below.
30822    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30823    <limits.h> exists even on freestanding compilers.  */
30824
30825#ifdef __STDC__
30826# include <limits.h>
30827#else
30828# include <assert.h>
30829#endif
30830
30831#undef $ac_func
30832
30833/* Override any GCC internal prototype to avoid an error.
30834   Use char because int might match the return type of a GCC
30835   builtin and then its argument prototype would still apply.  */
30836#ifdef __cplusplus
30837extern "C"
30838#endif
30839char $ac_func ();
30840/* The GNU C library defines this for functions which it implements
30841    to always fail with ENOSYS.  Some functions are actually named
30842    something starting with __ and the normal name is an alias.  */
30843#if defined __stub_$ac_func || defined __stub___$ac_func
30844choke me
30845#endif
30846
30847int
30848main ()
30849{
30850return $ac_func ();
30851  ;
30852  return 0;
30853}
30854_ACEOF
30855rm -f conftest.$ac_objext conftest$ac_exeext
30856if { (ac_try="$ac_link"
30857case "(($ac_try" in
30858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30859  *) ac_try_echo=$ac_try;;
30860esac
30861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30862  (eval "$ac_link") 2>conftest.er1
30863  ac_status=$?
30864  grep -v '^ *+' conftest.er1 >conftest.err
30865  rm -f conftest.er1
30866  cat conftest.err >&5
30867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30868  (exit $ac_status); } &&
30869	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30870  { (case "(($ac_try" in
30871  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30872  *) ac_try_echo=$ac_try;;
30873esac
30874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30875  (eval "$ac_try") 2>&5
30876  ac_status=$?
30877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30878  (exit $ac_status); }; } &&
30879	 { ac_try='test -s conftest$ac_exeext'
30880  { (case "(($ac_try" in
30881  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30882  *) ac_try_echo=$ac_try;;
30883esac
30884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30885  (eval "$ac_try") 2>&5
30886  ac_status=$?
30887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30888  (exit $ac_status); }; }; then
30889  eval "$as_ac_var=yes"
30890else
30891  echo "$as_me: failed program was:" >&5
30892sed 's/^/| /' conftest.$ac_ext >&5
30893
30894	eval "$as_ac_var=no"
30895fi
30896
30897rm -f core conftest.err conftest.$ac_objext \
30898      conftest$ac_exeext conftest.$ac_ext
30899fi
30900ac_res=`eval echo '${'$as_ac_var'}'`
30901	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30902echo "${ECHO_T}$ac_res" >&6; }
30903if test `eval echo '${'$as_ac_var'}'` = yes; then
30904  cat >>confdefs.h <<_ACEOF
30905#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30906_ACEOF
30907
30908fi
30909done
30910
30911
30912
30913
30914for ac_func in isatty mkdtemp mkstemp
30915do
30916as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30917{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30918echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30919if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30920  echo $ECHO_N "(cached) $ECHO_C" >&6
30921else
30922  cat >conftest.$ac_ext <<_ACEOF
30923/* confdefs.h.  */
30924_ACEOF
30925cat confdefs.h >>conftest.$ac_ext
30926cat >>conftest.$ac_ext <<_ACEOF
30927/* end confdefs.h.  */
30928/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30929   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30930#define $ac_func innocuous_$ac_func
30931
30932/* System header to define __stub macros and hopefully few prototypes,
30933    which can conflict with char $ac_func (); below.
30934    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30935    <limits.h> exists even on freestanding compilers.  */
30936
30937#ifdef __STDC__
30938# include <limits.h>
30939#else
30940# include <assert.h>
30941#endif
30942
30943#undef $ac_func
30944
30945/* Override any GCC internal prototype to avoid an error.
30946   Use char because int might match the return type of a GCC
30947   builtin and then its argument prototype would still apply.  */
30948#ifdef __cplusplus
30949extern "C"
30950#endif
30951char $ac_func ();
30952/* The GNU C library defines this for functions which it implements
30953    to always fail with ENOSYS.  Some functions are actually named
30954    something starting with __ and the normal name is an alias.  */
30955#if defined __stub_$ac_func || defined __stub___$ac_func
30956choke me
30957#endif
30958
30959int
30960main ()
30961{
30962return $ac_func ();
30963  ;
30964  return 0;
30965}
30966_ACEOF
30967rm -f conftest.$ac_objext conftest$ac_exeext
30968if { (ac_try="$ac_link"
30969case "(($ac_try" in
30970  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30971  *) ac_try_echo=$ac_try;;
30972esac
30973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30974  (eval "$ac_link") 2>conftest.er1
30975  ac_status=$?
30976  grep -v '^ *+' conftest.er1 >conftest.err
30977  rm -f conftest.er1
30978  cat conftest.err >&5
30979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30980  (exit $ac_status); } &&
30981	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30982  { (case "(($ac_try" in
30983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30984  *) ac_try_echo=$ac_try;;
30985esac
30986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30987  (eval "$ac_try") 2>&5
30988  ac_status=$?
30989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30990  (exit $ac_status); }; } &&
30991	 { ac_try='test -s conftest$ac_exeext'
30992  { (case "(($ac_try" in
30993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30994  *) ac_try_echo=$ac_try;;
30995esac
30996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30997  (eval "$ac_try") 2>&5
30998  ac_status=$?
30999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31000  (exit $ac_status); }; }; then
31001  eval "$as_ac_var=yes"
31002else
31003  echo "$as_me: failed program was:" >&5
31004sed 's/^/| /' conftest.$ac_ext >&5
31005
31006	eval "$as_ac_var=no"
31007fi
31008
31009rm -f core conftest.err conftest.$ac_objext \
31010      conftest$ac_exeext conftest.$ac_ext
31011fi
31012ac_res=`eval echo '${'$as_ac_var'}'`
31013	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31014echo "${ECHO_T}$ac_res" >&6; }
31015if test `eval echo '${'$as_ac_var'}'` = yes; then
31016  cat >>confdefs.h <<_ACEOF
31017#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31018_ACEOF
31019
31020fi
31021done
31022
31023
31024
31025
31026
31027
31028
31029
31030for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
31031do
31032as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31033{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31034echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31035if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31036  echo $ECHO_N "(cached) $ECHO_C" >&6
31037else
31038  cat >conftest.$ac_ext <<_ACEOF
31039/* confdefs.h.  */
31040_ACEOF
31041cat confdefs.h >>conftest.$ac_ext
31042cat >>conftest.$ac_ext <<_ACEOF
31043/* end confdefs.h.  */
31044/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31045   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31046#define $ac_func innocuous_$ac_func
31047
31048/* System header to define __stub macros and hopefully few prototypes,
31049    which can conflict with char $ac_func (); below.
31050    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31051    <limits.h> exists even on freestanding compilers.  */
31052
31053#ifdef __STDC__
31054# include <limits.h>
31055#else
31056# include <assert.h>
31057#endif
31058
31059#undef $ac_func
31060
31061/* Override any GCC internal prototype to avoid an error.
31062   Use char because int might match the return type of a GCC
31063   builtin and then its argument prototype would still apply.  */
31064#ifdef __cplusplus
31065extern "C"
31066#endif
31067char $ac_func ();
31068/* The GNU C library defines this for functions which it implements
31069    to always fail with ENOSYS.  Some functions are actually named
31070    something starting with __ and the normal name is an alias.  */
31071#if defined __stub_$ac_func || defined __stub___$ac_func
31072choke me
31073#endif
31074
31075int
31076main ()
31077{
31078return $ac_func ();
31079  ;
31080  return 0;
31081}
31082_ACEOF
31083rm -f conftest.$ac_objext conftest$ac_exeext
31084if { (ac_try="$ac_link"
31085case "(($ac_try" in
31086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31087  *) ac_try_echo=$ac_try;;
31088esac
31089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31090  (eval "$ac_link") 2>conftest.er1
31091  ac_status=$?
31092  grep -v '^ *+' conftest.er1 >conftest.err
31093  rm -f conftest.er1
31094  cat conftest.err >&5
31095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31096  (exit $ac_status); } &&
31097	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31098  { (case "(($ac_try" in
31099  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31100  *) ac_try_echo=$ac_try;;
31101esac
31102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31103  (eval "$ac_try") 2>&5
31104  ac_status=$?
31105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31106  (exit $ac_status); }; } &&
31107	 { ac_try='test -s conftest$ac_exeext'
31108  { (case "(($ac_try" in
31109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31110  *) ac_try_echo=$ac_try;;
31111esac
31112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31113  (eval "$ac_try") 2>&5
31114  ac_status=$?
31115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31116  (exit $ac_status); }; }; then
31117  eval "$as_ac_var=yes"
31118else
31119  echo "$as_me: failed program was:" >&5
31120sed 's/^/| /' conftest.$ac_ext >&5
31121
31122	eval "$as_ac_var=no"
31123fi
31124
31125rm -f core conftest.err conftest.$ac_objext \
31126      conftest$ac_exeext conftest.$ac_ext
31127fi
31128ac_res=`eval echo '${'$as_ac_var'}'`
31129	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31130echo "${ECHO_T}$ac_res" >&6; }
31131if test `eval echo '${'$as_ac_var'}'` = yes; then
31132  cat >>confdefs.h <<_ACEOF
31133#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31134_ACEOF
31135
31136fi
31137done
31138
31139
31140
31141
31142
31143for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31144do
31145as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31146{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31147echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31148if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31149  echo $ECHO_N "(cached) $ECHO_C" >&6
31150else
31151  cat >conftest.$ac_ext <<_ACEOF
31152/* confdefs.h.  */
31153_ACEOF
31154cat confdefs.h >>conftest.$ac_ext
31155cat >>conftest.$ac_ext <<_ACEOF
31156/* end confdefs.h.  */
31157/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31158   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31159#define $ac_func innocuous_$ac_func
31160
31161/* System header to define __stub macros and hopefully few prototypes,
31162    which can conflict with char $ac_func (); below.
31163    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31164    <limits.h> exists even on freestanding compilers.  */
31165
31166#ifdef __STDC__
31167# include <limits.h>
31168#else
31169# include <assert.h>
31170#endif
31171
31172#undef $ac_func
31173
31174/* Override any GCC internal prototype to avoid an error.
31175   Use char because int might match the return type of a GCC
31176   builtin and then its argument prototype would still apply.  */
31177#ifdef __cplusplus
31178extern "C"
31179#endif
31180char $ac_func ();
31181/* The GNU C library defines this for functions which it implements
31182    to always fail with ENOSYS.  Some functions are actually named
31183    something starting with __ and the normal name is an alias.  */
31184#if defined __stub_$ac_func || defined __stub___$ac_func
31185choke me
31186#endif
31187
31188int
31189main ()
31190{
31191return $ac_func ();
31192  ;
31193  return 0;
31194}
31195_ACEOF
31196rm -f conftest.$ac_objext conftest$ac_exeext
31197if { (ac_try="$ac_link"
31198case "(($ac_try" in
31199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31200  *) ac_try_echo=$ac_try;;
31201esac
31202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31203  (eval "$ac_link") 2>conftest.er1
31204  ac_status=$?
31205  grep -v '^ *+' conftest.er1 >conftest.err
31206  rm -f conftest.er1
31207  cat conftest.err >&5
31208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31209  (exit $ac_status); } &&
31210	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31211  { (case "(($ac_try" in
31212  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31213  *) ac_try_echo=$ac_try;;
31214esac
31215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31216  (eval "$ac_try") 2>&5
31217  ac_status=$?
31218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31219  (exit $ac_status); }; } &&
31220	 { ac_try='test -s conftest$ac_exeext'
31221  { (case "(($ac_try" in
31222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31223  *) ac_try_echo=$ac_try;;
31224esac
31225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31226  (eval "$ac_try") 2>&5
31227  ac_status=$?
31228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31229  (exit $ac_status); }; }; then
31230  eval "$as_ac_var=yes"
31231else
31232  echo "$as_me: failed program was:" >&5
31233sed 's/^/| /' conftest.$ac_ext >&5
31234
31235	eval "$as_ac_var=no"
31236fi
31237
31238rm -f core conftest.err conftest.$ac_objext \
31239      conftest$ac_exeext conftest.$ac_ext
31240fi
31241ac_res=`eval echo '${'$as_ac_var'}'`
31242	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31243echo "${ECHO_T}$ac_res" >&6; }
31244if test `eval echo '${'$as_ac_var'}'` = yes; then
31245  cat >>confdefs.h <<_ACEOF
31246#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31247_ACEOF
31248
31249fi
31250done
31251
31252
31253
31254
31255
31256for ac_func in setjmp longjmp sigsetjmp siglongjmp
31257do
31258as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31259{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31260echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31261if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31262  echo $ECHO_N "(cached) $ECHO_C" >&6
31263else
31264  cat >conftest.$ac_ext <<_ACEOF
31265/* confdefs.h.  */
31266_ACEOF
31267cat confdefs.h >>conftest.$ac_ext
31268cat >>conftest.$ac_ext <<_ACEOF
31269/* end confdefs.h.  */
31270/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31271   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31272#define $ac_func innocuous_$ac_func
31273
31274/* System header to define __stub macros and hopefully few prototypes,
31275    which can conflict with char $ac_func (); below.
31276    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31277    <limits.h> exists even on freestanding compilers.  */
31278
31279#ifdef __STDC__
31280# include <limits.h>
31281#else
31282# include <assert.h>
31283#endif
31284
31285#undef $ac_func
31286
31287/* Override any GCC internal prototype to avoid an error.
31288   Use char because int might match the return type of a GCC
31289   builtin and then its argument prototype would still apply.  */
31290#ifdef __cplusplus
31291extern "C"
31292#endif
31293char $ac_func ();
31294/* The GNU C library defines this for functions which it implements
31295    to always fail with ENOSYS.  Some functions are actually named
31296    something starting with __ and the normal name is an alias.  */
31297#if defined __stub_$ac_func || defined __stub___$ac_func
31298choke me
31299#endif
31300
31301int
31302main ()
31303{
31304return $ac_func ();
31305  ;
31306  return 0;
31307}
31308_ACEOF
31309rm -f conftest.$ac_objext conftest$ac_exeext
31310if { (ac_try="$ac_link"
31311case "(($ac_try" in
31312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31313  *) ac_try_echo=$ac_try;;
31314esac
31315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31316  (eval "$ac_link") 2>conftest.er1
31317  ac_status=$?
31318  grep -v '^ *+' conftest.er1 >conftest.err
31319  rm -f conftest.er1
31320  cat conftest.err >&5
31321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31322  (exit $ac_status); } &&
31323	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31324  { (case "(($ac_try" in
31325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31326  *) ac_try_echo=$ac_try;;
31327esac
31328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31329  (eval "$ac_try") 2>&5
31330  ac_status=$?
31331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31332  (exit $ac_status); }; } &&
31333	 { ac_try='test -s conftest$ac_exeext'
31334  { (case "(($ac_try" in
31335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31336  *) ac_try_echo=$ac_try;;
31337esac
31338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31339  (eval "$ac_try") 2>&5
31340  ac_status=$?
31341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31342  (exit $ac_status); }; }; then
31343  eval "$as_ac_var=yes"
31344else
31345  echo "$as_me: failed program was:" >&5
31346sed 's/^/| /' conftest.$ac_ext >&5
31347
31348	eval "$as_ac_var=no"
31349fi
31350
31351rm -f core conftest.err conftest.$ac_objext \
31352      conftest$ac_exeext conftest.$ac_ext
31353fi
31354ac_res=`eval echo '${'$as_ac_var'}'`
31355	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31356echo "${ECHO_T}$ac_res" >&6; }
31357if test `eval echo '${'$as_ac_var'}'` = yes; then
31358  cat >>confdefs.h <<_ACEOF
31359#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31360_ACEOF
31361
31362fi
31363done
31364
31365{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31366echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31367if test "${llvm_cv_c_printf_a+set}" = set; then
31368  echo $ECHO_N "(cached) $ECHO_C" >&6
31369else
31370  ac_ext=c
31371ac_cpp='$CPP $CPPFLAGS'
31372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31374ac_compiler_gnu=$ac_cv_c_compiler_gnu
31375
31376 if test "$cross_compiling" = yes; then
31377  llvmac_cv_c_printf_a=no
31378else
31379  cat >conftest.$ac_ext <<_ACEOF
31380
31381  /* confdefs.h.  */
31382_ACEOF
31383cat confdefs.h >>conftest.$ac_ext
31384cat >>conftest.$ac_ext <<_ACEOF
31385/* end confdefs.h.  */
31386
31387#include <stdio.h>
31388#include <stdlib.h>
31389
31390int
31391main ()
31392{
31393
31394volatile double A, B;
31395char Buffer[100];
31396A = 1;
31397A /= 10.0;
31398sprintf(Buffer, "%a", A);
31399B = atof(Buffer);
31400if (A != B)
31401  return (1);
31402if (A != 0x1.999999999999ap-4)
31403  return (1);
31404return (0);
31405  ;
31406  return 0;
31407}
31408_ACEOF
31409rm -f conftest$ac_exeext
31410if { (ac_try="$ac_link"
31411case "(($ac_try" in
31412  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31413  *) ac_try_echo=$ac_try;;
31414esac
31415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31416  (eval "$ac_link") 2>&5
31417  ac_status=$?
31418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31419  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31420  { (case "(($ac_try" in
31421  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31422  *) ac_try_echo=$ac_try;;
31423esac
31424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31425  (eval "$ac_try") 2>&5
31426  ac_status=$?
31427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31428  (exit $ac_status); }; }; then
31429  llvm_cv_c_printf_a=yes
31430else
31431  echo "$as_me: program exited with status $ac_status" >&5
31432echo "$as_me: failed program was:" >&5
31433sed 's/^/| /' conftest.$ac_ext >&5
31434
31435( exit $ac_status )
31436llvmac_cv_c_printf_a=no
31437fi
31438rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31439fi
31440
31441
31442 ac_ext=c
31443ac_cpp='$CPP $CPPFLAGS'
31444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31446ac_compiler_gnu=$ac_cv_c_compiler_gnu
31447
31448fi
31449{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31450echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31451 if test "$llvm_cv_c_printf_a" = "yes"; then
31452
31453cat >>confdefs.h <<\_ACEOF
31454#define HAVE_PRINTF_A 1
31455_ACEOF
31456
31457 fi
31458
31459# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31460# for constant arguments.  Useless!
31461{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
31462echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31463if test "${ac_cv_working_alloca_h+set}" = set; then
31464  echo $ECHO_N "(cached) $ECHO_C" >&6
31465else
31466  cat >conftest.$ac_ext <<_ACEOF
31467/* confdefs.h.  */
31468_ACEOF
31469cat confdefs.h >>conftest.$ac_ext
31470cat >>conftest.$ac_ext <<_ACEOF
31471/* end confdefs.h.  */
31472#include <alloca.h>
31473int
31474main ()
31475{
31476char *p = (char *) alloca (2 * sizeof (int));
31477			  if (p) return 0;
31478  ;
31479  return 0;
31480}
31481_ACEOF
31482rm -f conftest.$ac_objext conftest$ac_exeext
31483if { (ac_try="$ac_link"
31484case "(($ac_try" in
31485  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31486  *) ac_try_echo=$ac_try;;
31487esac
31488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31489  (eval "$ac_link") 2>conftest.er1
31490  ac_status=$?
31491  grep -v '^ *+' conftest.er1 >conftest.err
31492  rm -f conftest.er1
31493  cat conftest.err >&5
31494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31495  (exit $ac_status); } &&
31496	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31497  { (case "(($ac_try" in
31498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31499  *) ac_try_echo=$ac_try;;
31500esac
31501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31502  (eval "$ac_try") 2>&5
31503  ac_status=$?
31504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31505  (exit $ac_status); }; } &&
31506	 { ac_try='test -s conftest$ac_exeext'
31507  { (case "(($ac_try" in
31508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31509  *) ac_try_echo=$ac_try;;
31510esac
31511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31512  (eval "$ac_try") 2>&5
31513  ac_status=$?
31514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31515  (exit $ac_status); }; }; then
31516  ac_cv_working_alloca_h=yes
31517else
31518  echo "$as_me: failed program was:" >&5
31519sed 's/^/| /' conftest.$ac_ext >&5
31520
31521	ac_cv_working_alloca_h=no
31522fi
31523
31524rm -f core conftest.err conftest.$ac_objext \
31525      conftest$ac_exeext conftest.$ac_ext
31526fi
31527{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31528echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31529if test $ac_cv_working_alloca_h = yes; then
31530
31531cat >>confdefs.h <<\_ACEOF
31532#define HAVE_ALLOCA_H 1
31533_ACEOF
31534
31535fi
31536
31537{ echo "$as_me:$LINENO: checking for alloca" >&5
31538echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31539if test "${ac_cv_func_alloca_works+set}" = set; then
31540  echo $ECHO_N "(cached) $ECHO_C" >&6
31541else
31542  cat >conftest.$ac_ext <<_ACEOF
31543/* confdefs.h.  */
31544_ACEOF
31545cat confdefs.h >>conftest.$ac_ext
31546cat >>conftest.$ac_ext <<_ACEOF
31547/* end confdefs.h.  */
31548#ifdef __GNUC__
31549# define alloca __builtin_alloca
31550#else
31551# ifdef _MSC_VER
31552#  include <malloc.h>
31553#  define alloca _alloca
31554# else
31555#  if HAVE_ALLOCA_H
31556#   include <alloca.h>
31557#  else
31558#   ifdef _AIX
31559 #pragma alloca
31560#   else
31561#    ifndef alloca /* predefined by HP cc +Olibcalls */
31562char *alloca ();
31563#    endif
31564#   endif
31565#  endif
31566# endif
31567#endif
31568
31569int
31570main ()
31571{
31572char *p = (char *) alloca (1);
31573				    if (p) return 0;
31574  ;
31575  return 0;
31576}
31577_ACEOF
31578rm -f conftest.$ac_objext conftest$ac_exeext
31579if { (ac_try="$ac_link"
31580case "(($ac_try" in
31581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31582  *) ac_try_echo=$ac_try;;
31583esac
31584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31585  (eval "$ac_link") 2>conftest.er1
31586  ac_status=$?
31587  grep -v '^ *+' conftest.er1 >conftest.err
31588  rm -f conftest.er1
31589  cat conftest.err >&5
31590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31591  (exit $ac_status); } &&
31592	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31593  { (case "(($ac_try" in
31594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31595  *) ac_try_echo=$ac_try;;
31596esac
31597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31598  (eval "$ac_try") 2>&5
31599  ac_status=$?
31600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31601  (exit $ac_status); }; } &&
31602	 { ac_try='test -s conftest$ac_exeext'
31603  { (case "(($ac_try" in
31604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31605  *) ac_try_echo=$ac_try;;
31606esac
31607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31608  (eval "$ac_try") 2>&5
31609  ac_status=$?
31610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31611  (exit $ac_status); }; }; then
31612  ac_cv_func_alloca_works=yes
31613else
31614  echo "$as_me: failed program was:" >&5
31615sed 's/^/| /' conftest.$ac_ext >&5
31616
31617	ac_cv_func_alloca_works=no
31618fi
31619
31620rm -f core conftest.err conftest.$ac_objext \
31621      conftest$ac_exeext conftest.$ac_ext
31622fi
31623{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31624echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31625
31626if test $ac_cv_func_alloca_works = yes; then
31627
31628cat >>confdefs.h <<\_ACEOF
31629#define HAVE_ALLOCA 1
31630_ACEOF
31631
31632else
31633  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31634# that cause trouble.  Some versions do not even contain alloca or
31635# contain a buggy version.  If you still want to use their alloca,
31636# use ar to extract alloca.o from them instead of compiling alloca.c.
31637
31638ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31639
31640cat >>confdefs.h <<\_ACEOF
31641#define C_ALLOCA 1
31642_ACEOF
31643
31644
31645{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31646echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31647if test "${ac_cv_os_cray+set}" = set; then
31648  echo $ECHO_N "(cached) $ECHO_C" >&6
31649else
31650  cat >conftest.$ac_ext <<_ACEOF
31651/* confdefs.h.  */
31652_ACEOF
31653cat confdefs.h >>conftest.$ac_ext
31654cat >>conftest.$ac_ext <<_ACEOF
31655/* end confdefs.h.  */
31656#if defined CRAY && ! defined CRAY2
31657webecray
31658#else
31659wenotbecray
31660#endif
31661
31662_ACEOF
31663if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31664  $EGREP "webecray" >/dev/null 2>&1; then
31665  ac_cv_os_cray=yes
31666else
31667  ac_cv_os_cray=no
31668fi
31669rm -f conftest*
31670
31671fi
31672{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31673echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31674if test $ac_cv_os_cray = yes; then
31675  for ac_func in _getb67 GETB67 getb67; do
31676    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31677{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31678echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31679if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31680  echo $ECHO_N "(cached) $ECHO_C" >&6
31681else
31682  cat >conftest.$ac_ext <<_ACEOF
31683/* confdefs.h.  */
31684_ACEOF
31685cat confdefs.h >>conftest.$ac_ext
31686cat >>conftest.$ac_ext <<_ACEOF
31687/* end confdefs.h.  */
31688/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31689   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31690#define $ac_func innocuous_$ac_func
31691
31692/* System header to define __stub macros and hopefully few prototypes,
31693    which can conflict with char $ac_func (); below.
31694    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31695    <limits.h> exists even on freestanding compilers.  */
31696
31697#ifdef __STDC__
31698# include <limits.h>
31699#else
31700# include <assert.h>
31701#endif
31702
31703#undef $ac_func
31704
31705/* Override any GCC internal prototype to avoid an error.
31706   Use char because int might match the return type of a GCC
31707   builtin and then its argument prototype would still apply.  */
31708#ifdef __cplusplus
31709extern "C"
31710#endif
31711char $ac_func ();
31712/* The GNU C library defines this for functions which it implements
31713    to always fail with ENOSYS.  Some functions are actually named
31714    something starting with __ and the normal name is an alias.  */
31715#if defined __stub_$ac_func || defined __stub___$ac_func
31716choke me
31717#endif
31718
31719int
31720main ()
31721{
31722return $ac_func ();
31723  ;
31724  return 0;
31725}
31726_ACEOF
31727rm -f conftest.$ac_objext conftest$ac_exeext
31728if { (ac_try="$ac_link"
31729case "(($ac_try" in
31730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31731  *) ac_try_echo=$ac_try;;
31732esac
31733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31734  (eval "$ac_link") 2>conftest.er1
31735  ac_status=$?
31736  grep -v '^ *+' conftest.er1 >conftest.err
31737  rm -f conftest.er1
31738  cat conftest.err >&5
31739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31740  (exit $ac_status); } &&
31741	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31742  { (case "(($ac_try" in
31743  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31744  *) ac_try_echo=$ac_try;;
31745esac
31746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31747  (eval "$ac_try") 2>&5
31748  ac_status=$?
31749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31750  (exit $ac_status); }; } &&
31751	 { ac_try='test -s conftest$ac_exeext'
31752  { (case "(($ac_try" in
31753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31754  *) ac_try_echo=$ac_try;;
31755esac
31756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31757  (eval "$ac_try") 2>&5
31758  ac_status=$?
31759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31760  (exit $ac_status); }; }; then
31761  eval "$as_ac_var=yes"
31762else
31763  echo "$as_me: failed program was:" >&5
31764sed 's/^/| /' conftest.$ac_ext >&5
31765
31766	eval "$as_ac_var=no"
31767fi
31768
31769rm -f core conftest.err conftest.$ac_objext \
31770      conftest$ac_exeext conftest.$ac_ext
31771fi
31772ac_res=`eval echo '${'$as_ac_var'}'`
31773	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31774echo "${ECHO_T}$ac_res" >&6; }
31775if test `eval echo '${'$as_ac_var'}'` = yes; then
31776
31777cat >>confdefs.h <<_ACEOF
31778#define CRAY_STACKSEG_END $ac_func
31779_ACEOF
31780
31781    break
31782fi
31783
31784  done
31785fi
31786
31787{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31788echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31789if test "${ac_cv_c_stack_direction+set}" = set; then
31790  echo $ECHO_N "(cached) $ECHO_C" >&6
31791else
31792  if test "$cross_compiling" = yes; then
31793  ac_cv_c_stack_direction=0
31794else
31795  cat >conftest.$ac_ext <<_ACEOF
31796/* confdefs.h.  */
31797_ACEOF
31798cat confdefs.h >>conftest.$ac_ext
31799cat >>conftest.$ac_ext <<_ACEOF
31800/* end confdefs.h.  */
31801$ac_includes_default
31802int
31803find_stack_direction ()
31804{
31805  static char *addr = 0;
31806  auto char dummy;
31807  if (addr == 0)
31808    {
31809      addr = &dummy;
31810      return find_stack_direction ();
31811    }
31812  else
31813    return (&dummy > addr) ? 1 : -1;
31814}
31815
31816int
31817main ()
31818{
31819  return find_stack_direction () < 0;
31820}
31821_ACEOF
31822rm -f conftest$ac_exeext
31823if { (ac_try="$ac_link"
31824case "(($ac_try" in
31825  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31826  *) ac_try_echo=$ac_try;;
31827esac
31828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31829  (eval "$ac_link") 2>&5
31830  ac_status=$?
31831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31832  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31833  { (case "(($ac_try" in
31834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31835  *) ac_try_echo=$ac_try;;
31836esac
31837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31838  (eval "$ac_try") 2>&5
31839  ac_status=$?
31840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31841  (exit $ac_status); }; }; then
31842  ac_cv_c_stack_direction=1
31843else
31844  echo "$as_me: program exited with status $ac_status" >&5
31845echo "$as_me: failed program was:" >&5
31846sed 's/^/| /' conftest.$ac_ext >&5
31847
31848( exit $ac_status )
31849ac_cv_c_stack_direction=-1
31850fi
31851rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31852fi
31853
31854
31855fi
31856{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31857echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31858
31859cat >>confdefs.h <<_ACEOF
31860#define STACK_DIRECTION $ac_cv_c_stack_direction
31861_ACEOF
31862
31863
31864fi
31865
31866
31867{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31868echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31869if test "${ac_cv_func_rand48+set}" = set; then
31870  echo $ECHO_N "(cached) $ECHO_C" >&6
31871else
31872  ac_ext=cpp
31873ac_cpp='$CXXCPP $CPPFLAGS'
31874ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31875ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31876ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31877
31878   cat >conftest.$ac_ext <<_ACEOF
31879/* confdefs.h.  */
31880_ACEOF
31881cat confdefs.h >>conftest.$ac_ext
31882cat >>conftest.$ac_ext <<_ACEOF
31883/* end confdefs.h.  */
31884#include <stdlib.h>
31885int
31886main ()
31887{
31888srand48(0);lrand48();drand48();
31889  ;
31890  return 0;
31891}
31892_ACEOF
31893rm -f conftest.$ac_objext
31894if { (ac_try="$ac_compile"
31895case "(($ac_try" in
31896  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31897  *) ac_try_echo=$ac_try;;
31898esac
31899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31900  (eval "$ac_compile") 2>conftest.er1
31901  ac_status=$?
31902  grep -v '^ *+' conftest.er1 >conftest.err
31903  rm -f conftest.er1
31904  cat conftest.err >&5
31905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31906  (exit $ac_status); } &&
31907	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31908  { (case "(($ac_try" in
31909  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31910  *) ac_try_echo=$ac_try;;
31911esac
31912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31913  (eval "$ac_try") 2>&5
31914  ac_status=$?
31915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31916  (exit $ac_status); }; } &&
31917	 { ac_try='test -s conftest.$ac_objext'
31918  { (case "(($ac_try" in
31919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31920  *) ac_try_echo=$ac_try;;
31921esac
31922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31923  (eval "$ac_try") 2>&5
31924  ac_status=$?
31925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31926  (exit $ac_status); }; }; then
31927  ac_cv_func_rand48=yes
31928else
31929  echo "$as_me: failed program was:" >&5
31930sed 's/^/| /' conftest.$ac_ext >&5
31931
31932	ac_cv_func_rand48=no
31933fi
31934
31935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31936  ac_ext=c
31937ac_cpp='$CPP $CPPFLAGS'
31938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31940ac_compiler_gnu=$ac_cv_c_compiler_gnu
31941
31942fi
31943{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31944echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31945
31946if test "$ac_cv_func_rand48" = "yes" ; then
31947
31948cat >>confdefs.h <<\_ACEOF
31949#define HAVE_RAND48 1
31950_ACEOF
31951
31952fi
31953
31954
31955{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31956echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31957if test "${ac_cv_cxx_namespaces+set}" = set; then
31958  echo $ECHO_N "(cached) $ECHO_C" >&6
31959else
31960  ac_ext=cpp
31961ac_cpp='$CXXCPP $CPPFLAGS'
31962ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31963ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31964ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31965
31966 cat >conftest.$ac_ext <<_ACEOF
31967/* confdefs.h.  */
31968_ACEOF
31969cat confdefs.h >>conftest.$ac_ext
31970cat >>conftest.$ac_ext <<_ACEOF
31971/* end confdefs.h.  */
31972namespace Outer { namespace Inner { int i = 0; }}
31973int
31974main ()
31975{
31976using namespace Outer::Inner; return i;
31977  ;
31978  return 0;
31979}
31980_ACEOF
31981rm -f conftest.$ac_objext
31982if { (ac_try="$ac_compile"
31983case "(($ac_try" in
31984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31985  *) ac_try_echo=$ac_try;;
31986esac
31987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31988  (eval "$ac_compile") 2>conftest.er1
31989  ac_status=$?
31990  grep -v '^ *+' conftest.er1 >conftest.err
31991  rm -f conftest.er1
31992  cat conftest.err >&5
31993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31994  (exit $ac_status); } &&
31995	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31996  { (case "(($ac_try" in
31997  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31998  *) ac_try_echo=$ac_try;;
31999esac
32000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32001  (eval "$ac_try") 2>&5
32002  ac_status=$?
32003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32004  (exit $ac_status); }; } &&
32005	 { ac_try='test -s conftest.$ac_objext'
32006  { (case "(($ac_try" in
32007  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32008  *) ac_try_echo=$ac_try;;
32009esac
32010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32011  (eval "$ac_try") 2>&5
32012  ac_status=$?
32013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32014  (exit $ac_status); }; }; then
32015  ac_cv_cxx_namespaces=yes
32016else
32017  echo "$as_me: failed program was:" >&5
32018sed 's/^/| /' conftest.$ac_ext >&5
32019
32020	ac_cv_cxx_namespaces=no
32021fi
32022
32023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32024 ac_ext=c
32025ac_cpp='$CPP $CPPFLAGS'
32026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32028ac_compiler_gnu=$ac_cv_c_compiler_gnu
32029
32030
32031fi
32032{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32033echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
32034if test "$ac_cv_cxx_namespaces" = yes; then
32035
32036cat >>confdefs.h <<\_ACEOF
32037#define HAVE_NAMESPACES
32038_ACEOF
32039
32040fi
32041
32042{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32043echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32044if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32045  echo $ECHO_N "(cached) $ECHO_C" >&6
32046else
32047
32048  ac_ext=cpp
32049ac_cpp='$CXXCPP $CPPFLAGS'
32050ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32051ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32052ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32053
32054  cat >conftest.$ac_ext <<_ACEOF
32055/* confdefs.h.  */
32056_ACEOF
32057cat confdefs.h >>conftest.$ac_ext
32058cat >>conftest.$ac_ext <<_ACEOF
32059/* end confdefs.h.  */
32060#include <iterator>
32061#ifdef HAVE_NAMESPACES
32062using namespace std;
32063#endif
32064int
32065main ()
32066{
32067iterator<int,int,int> t; return 0;
32068  ;
32069  return 0;
32070}
32071_ACEOF
32072rm -f conftest.$ac_objext
32073if { (ac_try="$ac_compile"
32074case "(($ac_try" in
32075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32076  *) ac_try_echo=$ac_try;;
32077esac
32078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32079  (eval "$ac_compile") 2>conftest.er1
32080  ac_status=$?
32081  grep -v '^ *+' conftest.er1 >conftest.err
32082  rm -f conftest.er1
32083  cat conftest.err >&5
32084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32085  (exit $ac_status); } &&
32086	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32087  { (case "(($ac_try" in
32088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32089  *) ac_try_echo=$ac_try;;
32090esac
32091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32092  (eval "$ac_try") 2>&5
32093  ac_status=$?
32094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32095  (exit $ac_status); }; } &&
32096	 { ac_try='test -s conftest.$ac_objext'
32097  { (case "(($ac_try" in
32098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32099  *) ac_try_echo=$ac_try;;
32100esac
32101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32102  (eval "$ac_try") 2>&5
32103  ac_status=$?
32104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32105  (exit $ac_status); }; }; then
32106  ac_cv_cxx_have_std_iterator=yes
32107else
32108  echo "$as_me: failed program was:" >&5
32109sed 's/^/| /' conftest.$ac_ext >&5
32110
32111	ac_cv_cxx_have_std_iterator=no
32112fi
32113
32114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32115  ac_ext=c
32116ac_cpp='$CPP $CPPFLAGS'
32117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32119ac_compiler_gnu=$ac_cv_c_compiler_gnu
32120
32121
32122fi
32123{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32124echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32125if test "$ac_cv_cxx_have_std_iterator" = yes
32126then
32127
32128cat >>confdefs.h <<\_ACEOF
32129#define HAVE_STD_ITERATOR 1
32130_ACEOF
32131
32132else
32133
32134cat >>confdefs.h <<\_ACEOF
32135#define HAVE_STD_ITERATOR 0
32136_ACEOF
32137
32138fi
32139
32140{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32141echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32142if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32143  echo $ECHO_N "(cached) $ECHO_C" >&6
32144else
32145
32146  ac_ext=cpp
32147ac_cpp='$CXXCPP $CPPFLAGS'
32148ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32149ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32150ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32151
32152  cat >conftest.$ac_ext <<_ACEOF
32153/* confdefs.h.  */
32154_ACEOF
32155cat confdefs.h >>conftest.$ac_ext
32156cat >>conftest.$ac_ext <<_ACEOF
32157/* end confdefs.h.  */
32158#include <iterator>
32159#ifdef HAVE_NAMESPACES
32160using namespace std;
32161#endif
32162int
32163main ()
32164{
32165bidirectional_iterator<int,int> t; return 0;
32166  ;
32167  return 0;
32168}
32169_ACEOF
32170rm -f conftest.$ac_objext
32171if { (ac_try="$ac_compile"
32172case "(($ac_try" in
32173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32174  *) ac_try_echo=$ac_try;;
32175esac
32176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32177  (eval "$ac_compile") 2>conftest.er1
32178  ac_status=$?
32179  grep -v '^ *+' conftest.er1 >conftest.err
32180  rm -f conftest.er1
32181  cat conftest.err >&5
32182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32183  (exit $ac_status); } &&
32184	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32185  { (case "(($ac_try" in
32186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32187  *) ac_try_echo=$ac_try;;
32188esac
32189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32190  (eval "$ac_try") 2>&5
32191  ac_status=$?
32192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32193  (exit $ac_status); }; } &&
32194	 { ac_try='test -s conftest.$ac_objext'
32195  { (case "(($ac_try" in
32196  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32197  *) ac_try_echo=$ac_try;;
32198esac
32199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32200  (eval "$ac_try") 2>&5
32201  ac_status=$?
32202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32203  (exit $ac_status); }; }; then
32204  ac_cv_cxx_have_bi_iterator=yes
32205else
32206  echo "$as_me: failed program was:" >&5
32207sed 's/^/| /' conftest.$ac_ext >&5
32208
32209	ac_cv_cxx_have_bi_iterator=no
32210fi
32211
32212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32213  ac_ext=c
32214ac_cpp='$CPP $CPPFLAGS'
32215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32217ac_compiler_gnu=$ac_cv_c_compiler_gnu
32218
32219
32220fi
32221{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32222echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32223if test "$ac_cv_cxx_have_bi_iterator" = yes
32224then
32225
32226cat >>confdefs.h <<\_ACEOF
32227#define HAVE_BI_ITERATOR 1
32228_ACEOF
32229
32230else
32231
32232cat >>confdefs.h <<\_ACEOF
32233#define HAVE_BI_ITERATOR 0
32234_ACEOF
32235
32236fi
32237
32238{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32239echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32240if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32241  echo $ECHO_N "(cached) $ECHO_C" >&6
32242else
32243
32244  ac_ext=cpp
32245ac_cpp='$CXXCPP $CPPFLAGS'
32246ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32247ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32248ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32249
32250  cat >conftest.$ac_ext <<_ACEOF
32251/* confdefs.h.  */
32252_ACEOF
32253cat confdefs.h >>conftest.$ac_ext
32254cat >>conftest.$ac_ext <<_ACEOF
32255/* end confdefs.h.  */
32256#include <iterator>
32257#ifdef HAVE_NAMESPACES
32258using namespace std;
32259#endif
32260int
32261main ()
32262{
32263forward_iterator<int,int> t; return 0;
32264  ;
32265  return 0;
32266}
32267_ACEOF
32268rm -f conftest.$ac_objext
32269if { (ac_try="$ac_compile"
32270case "(($ac_try" in
32271  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32272  *) ac_try_echo=$ac_try;;
32273esac
32274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32275  (eval "$ac_compile") 2>conftest.er1
32276  ac_status=$?
32277  grep -v '^ *+' conftest.er1 >conftest.err
32278  rm -f conftest.er1
32279  cat conftest.err >&5
32280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32281  (exit $ac_status); } &&
32282	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32283  { (case "(($ac_try" in
32284  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32285  *) ac_try_echo=$ac_try;;
32286esac
32287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32288  (eval "$ac_try") 2>&5
32289  ac_status=$?
32290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32291  (exit $ac_status); }; } &&
32292	 { ac_try='test -s conftest.$ac_objext'
32293  { (case "(($ac_try" in
32294  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32295  *) ac_try_echo=$ac_try;;
32296esac
32297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32298  (eval "$ac_try") 2>&5
32299  ac_status=$?
32300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32301  (exit $ac_status); }; }; then
32302  ac_cv_cxx_have_fwd_iterator=yes
32303else
32304  echo "$as_me: failed program was:" >&5
32305sed 's/^/| /' conftest.$ac_ext >&5
32306
32307	ac_cv_cxx_have_fwd_iterator=no
32308fi
32309
32310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32311  ac_ext=c
32312ac_cpp='$CPP $CPPFLAGS'
32313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32315ac_compiler_gnu=$ac_cv_c_compiler_gnu
32316
32317
32318fi
32319{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32320echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32321if test "$ac_cv_cxx_have_fwd_iterator" = yes
32322then
32323
32324cat >>confdefs.h <<\_ACEOF
32325#define HAVE_FWD_ITERATOR 1
32326_ACEOF
32327
32328else
32329
32330cat >>confdefs.h <<\_ACEOF
32331#define HAVE_FWD_ITERATOR 0
32332_ACEOF
32333
32334fi
32335
32336
32337{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32338echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32339if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32340  echo $ECHO_N "(cached) $ECHO_C" >&6
32341else
32342  ac_ext=cpp
32343ac_cpp='$CXXCPP $CPPFLAGS'
32344ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32345ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32346ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32347
32348   cat >conftest.$ac_ext <<_ACEOF
32349/* confdefs.h.  */
32350_ACEOF
32351cat confdefs.h >>conftest.$ac_ext
32352cat >>conftest.$ac_ext <<_ACEOF
32353/* end confdefs.h.  */
32354#include <math.h>
32355int
32356main ()
32357{
32358float f; isnan(f);
32359  ;
32360  return 0;
32361}
32362_ACEOF
32363rm -f conftest.$ac_objext
32364if { (ac_try="$ac_compile"
32365case "(($ac_try" in
32366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32367  *) ac_try_echo=$ac_try;;
32368esac
32369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32370  (eval "$ac_compile") 2>conftest.er1
32371  ac_status=$?
32372  grep -v '^ *+' conftest.er1 >conftest.err
32373  rm -f conftest.er1
32374  cat conftest.err >&5
32375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32376  (exit $ac_status); } &&
32377	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32378  { (case "(($ac_try" in
32379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32380  *) ac_try_echo=$ac_try;;
32381esac
32382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32383  (eval "$ac_try") 2>&5
32384  ac_status=$?
32385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32386  (exit $ac_status); }; } &&
32387	 { ac_try='test -s conftest.$ac_objext'
32388  { (case "(($ac_try" in
32389  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32390  *) ac_try_echo=$ac_try;;
32391esac
32392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32393  (eval "$ac_try") 2>&5
32394  ac_status=$?
32395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32396  (exit $ac_status); }; }; then
32397  ac_cv_func_isnan_in_math_h=yes
32398else
32399  echo "$as_me: failed program was:" >&5
32400sed 's/^/| /' conftest.$ac_ext >&5
32401
32402	ac_cv_func_isnan_in_math_h=no
32403fi
32404
32405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32406  ac_ext=c
32407ac_cpp='$CPP $CPPFLAGS'
32408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32410ac_compiler_gnu=$ac_cv_c_compiler_gnu
32411
32412fi
32413{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32414echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32415
32416
32417if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32418
32419cat >>confdefs.h <<\_ACEOF
32420#define HAVE_ISNAN_IN_MATH_H 1
32421_ACEOF
32422
32423fi
32424
32425{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32426echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32427if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32428  echo $ECHO_N "(cached) $ECHO_C" >&6
32429else
32430  ac_ext=cpp
32431ac_cpp='$CXXCPP $CPPFLAGS'
32432ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32433ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32434ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32435
32436   cat >conftest.$ac_ext <<_ACEOF
32437/* confdefs.h.  */
32438_ACEOF
32439cat confdefs.h >>conftest.$ac_ext
32440cat >>conftest.$ac_ext <<_ACEOF
32441/* end confdefs.h.  */
32442#include <cmath>
32443int
32444main ()
32445{
32446float f; isnan(f);
32447  ;
32448  return 0;
32449}
32450_ACEOF
32451rm -f conftest.$ac_objext
32452if { (ac_try="$ac_compile"
32453case "(($ac_try" in
32454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32455  *) ac_try_echo=$ac_try;;
32456esac
32457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32458  (eval "$ac_compile") 2>conftest.er1
32459  ac_status=$?
32460  grep -v '^ *+' conftest.er1 >conftest.err
32461  rm -f conftest.er1
32462  cat conftest.err >&5
32463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32464  (exit $ac_status); } &&
32465	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32466  { (case "(($ac_try" in
32467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32468  *) ac_try_echo=$ac_try;;
32469esac
32470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32471  (eval "$ac_try") 2>&5
32472  ac_status=$?
32473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32474  (exit $ac_status); }; } &&
32475	 { ac_try='test -s conftest.$ac_objext'
32476  { (case "(($ac_try" in
32477  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32478  *) ac_try_echo=$ac_try;;
32479esac
32480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32481  (eval "$ac_try") 2>&5
32482  ac_status=$?
32483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32484  (exit $ac_status); }; }; then
32485  ac_cv_func_isnan_in_cmath=yes
32486else
32487  echo "$as_me: failed program was:" >&5
32488sed 's/^/| /' conftest.$ac_ext >&5
32489
32490	ac_cv_func_isnan_in_cmath=no
32491fi
32492
32493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32494  ac_ext=c
32495ac_cpp='$CPP $CPPFLAGS'
32496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32498ac_compiler_gnu=$ac_cv_c_compiler_gnu
32499
32500fi
32501{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32502echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32503
32504if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32505
32506cat >>confdefs.h <<\_ACEOF
32507#define HAVE_ISNAN_IN_CMATH 1
32508_ACEOF
32509
32510fi
32511
32512{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32513echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32514if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32515  echo $ECHO_N "(cached) $ECHO_C" >&6
32516else
32517  ac_ext=cpp
32518ac_cpp='$CXXCPP $CPPFLAGS'
32519ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32520ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32521ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32522
32523   cat >conftest.$ac_ext <<_ACEOF
32524/* confdefs.h.  */
32525_ACEOF
32526cat confdefs.h >>conftest.$ac_ext
32527cat >>conftest.$ac_ext <<_ACEOF
32528/* end confdefs.h.  */
32529#include <cmath>
32530int
32531main ()
32532{
32533float f; std::isnan(f);
32534  ;
32535  return 0;
32536}
32537_ACEOF
32538rm -f conftest.$ac_objext
32539if { (ac_try="$ac_compile"
32540case "(($ac_try" in
32541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32542  *) ac_try_echo=$ac_try;;
32543esac
32544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32545  (eval "$ac_compile") 2>conftest.er1
32546  ac_status=$?
32547  grep -v '^ *+' conftest.er1 >conftest.err
32548  rm -f conftest.er1
32549  cat conftest.err >&5
32550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32551  (exit $ac_status); } &&
32552	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32553  { (case "(($ac_try" in
32554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32555  *) ac_try_echo=$ac_try;;
32556esac
32557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32558  (eval "$ac_try") 2>&5
32559  ac_status=$?
32560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32561  (exit $ac_status); }; } &&
32562	 { ac_try='test -s conftest.$ac_objext'
32563  { (case "(($ac_try" in
32564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32565  *) ac_try_echo=$ac_try;;
32566esac
32567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32568  (eval "$ac_try") 2>&5
32569  ac_status=$?
32570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32571  (exit $ac_status); }; }; then
32572  ac_cv_func_std_isnan_in_cmath=yes
32573else
32574  echo "$as_me: failed program was:" >&5
32575sed 's/^/| /' conftest.$ac_ext >&5
32576
32577	ac_cv_func_std_isnan_in_cmath=no
32578fi
32579
32580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32581  ac_ext=c
32582ac_cpp='$CPP $CPPFLAGS'
32583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32585ac_compiler_gnu=$ac_cv_c_compiler_gnu
32586
32587fi
32588{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32589echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32590
32591if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32592
32593cat >>confdefs.h <<\_ACEOF
32594#define HAVE_STD_ISNAN_IN_CMATH 1
32595_ACEOF
32596
32597fi
32598
32599
32600{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32601echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32602if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32603  echo $ECHO_N "(cached) $ECHO_C" >&6
32604else
32605  ac_ext=cpp
32606ac_cpp='$CXXCPP $CPPFLAGS'
32607ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32608ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32609ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32610
32611   cat >conftest.$ac_ext <<_ACEOF
32612/* confdefs.h.  */
32613_ACEOF
32614cat confdefs.h >>conftest.$ac_ext
32615cat >>conftest.$ac_ext <<_ACEOF
32616/* end confdefs.h.  */
32617#include <math.h>
32618int
32619main ()
32620{
32621float f; isinf(f);
32622  ;
32623  return 0;
32624}
32625_ACEOF
32626rm -f conftest.$ac_objext
32627if { (ac_try="$ac_compile"
32628case "(($ac_try" in
32629  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32630  *) ac_try_echo=$ac_try;;
32631esac
32632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32633  (eval "$ac_compile") 2>conftest.er1
32634  ac_status=$?
32635  grep -v '^ *+' conftest.er1 >conftest.err
32636  rm -f conftest.er1
32637  cat conftest.err >&5
32638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32639  (exit $ac_status); } &&
32640	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32641  { (case "(($ac_try" in
32642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32643  *) ac_try_echo=$ac_try;;
32644esac
32645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32646  (eval "$ac_try") 2>&5
32647  ac_status=$?
32648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32649  (exit $ac_status); }; } &&
32650	 { ac_try='test -s conftest.$ac_objext'
32651  { (case "(($ac_try" in
32652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32653  *) ac_try_echo=$ac_try;;
32654esac
32655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32656  (eval "$ac_try") 2>&5
32657  ac_status=$?
32658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32659  (exit $ac_status); }; }; then
32660  ac_cv_func_isinf_in_math_h=yes
32661else
32662  echo "$as_me: failed program was:" >&5
32663sed 's/^/| /' conftest.$ac_ext >&5
32664
32665	ac_cv_func_isinf_in_math_h=no
32666fi
32667
32668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32669  ac_ext=c
32670ac_cpp='$CPP $CPPFLAGS'
32671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32673ac_compiler_gnu=$ac_cv_c_compiler_gnu
32674
32675fi
32676{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32677echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32678
32679if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32680
32681cat >>confdefs.h <<\_ACEOF
32682#define HAVE_ISINF_IN_MATH_H 1
32683_ACEOF
32684
32685fi
32686
32687{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32688echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32689if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32690  echo $ECHO_N "(cached) $ECHO_C" >&6
32691else
32692  ac_ext=cpp
32693ac_cpp='$CXXCPP $CPPFLAGS'
32694ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32695ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32696ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32697
32698   cat >conftest.$ac_ext <<_ACEOF
32699/* confdefs.h.  */
32700_ACEOF
32701cat confdefs.h >>conftest.$ac_ext
32702cat >>conftest.$ac_ext <<_ACEOF
32703/* end confdefs.h.  */
32704#include <cmath>
32705int
32706main ()
32707{
32708float f; isinf(f);
32709  ;
32710  return 0;
32711}
32712_ACEOF
32713rm -f conftest.$ac_objext
32714if { (ac_try="$ac_compile"
32715case "(($ac_try" in
32716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32717  *) ac_try_echo=$ac_try;;
32718esac
32719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32720  (eval "$ac_compile") 2>conftest.er1
32721  ac_status=$?
32722  grep -v '^ *+' conftest.er1 >conftest.err
32723  rm -f conftest.er1
32724  cat conftest.err >&5
32725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32726  (exit $ac_status); } &&
32727	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32728  { (case "(($ac_try" in
32729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32730  *) ac_try_echo=$ac_try;;
32731esac
32732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32733  (eval "$ac_try") 2>&5
32734  ac_status=$?
32735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32736  (exit $ac_status); }; } &&
32737	 { ac_try='test -s conftest.$ac_objext'
32738  { (case "(($ac_try" in
32739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32740  *) ac_try_echo=$ac_try;;
32741esac
32742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32743  (eval "$ac_try") 2>&5
32744  ac_status=$?
32745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32746  (exit $ac_status); }; }; then
32747  ac_cv_func_isinf_in_cmath=yes
32748else
32749  echo "$as_me: failed program was:" >&5
32750sed 's/^/| /' conftest.$ac_ext >&5
32751
32752	ac_cv_func_isinf_in_cmath=no
32753fi
32754
32755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32756  ac_ext=c
32757ac_cpp='$CPP $CPPFLAGS'
32758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32760ac_compiler_gnu=$ac_cv_c_compiler_gnu
32761
32762fi
32763{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32764echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32765
32766if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32767
32768cat >>confdefs.h <<\_ACEOF
32769#define HAVE_ISINF_IN_CMATH 1
32770_ACEOF
32771
32772fi
32773
32774{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32775echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32776if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32777  echo $ECHO_N "(cached) $ECHO_C" >&6
32778else
32779  ac_ext=cpp
32780ac_cpp='$CXXCPP $CPPFLAGS'
32781ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32782ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32783ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32784
32785   cat >conftest.$ac_ext <<_ACEOF
32786/* confdefs.h.  */
32787_ACEOF
32788cat confdefs.h >>conftest.$ac_ext
32789cat >>conftest.$ac_ext <<_ACEOF
32790/* end confdefs.h.  */
32791#include <cmath>
32792int
32793main ()
32794{
32795float f; std::isinf(f)}
32796  ;
32797  return 0;
32798}
32799_ACEOF
32800rm -f conftest.$ac_objext
32801if { (ac_try="$ac_compile"
32802case "(($ac_try" in
32803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32804  *) ac_try_echo=$ac_try;;
32805esac
32806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32807  (eval "$ac_compile") 2>conftest.er1
32808  ac_status=$?
32809  grep -v '^ *+' conftest.er1 >conftest.err
32810  rm -f conftest.er1
32811  cat conftest.err >&5
32812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32813  (exit $ac_status); } &&
32814	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32815  { (case "(($ac_try" in
32816  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32817  *) ac_try_echo=$ac_try;;
32818esac
32819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32820  (eval "$ac_try") 2>&5
32821  ac_status=$?
32822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32823  (exit $ac_status); }; } &&
32824	 { ac_try='test -s conftest.$ac_objext'
32825  { (case "(($ac_try" in
32826  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32827  *) ac_try_echo=$ac_try;;
32828esac
32829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32830  (eval "$ac_try") 2>&5
32831  ac_status=$?
32832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32833  (exit $ac_status); }; }; then
32834  ac_cv_func_std_isinf_in_cmath=yes
32835else
32836  echo "$as_me: failed program was:" >&5
32837sed 's/^/| /' conftest.$ac_ext >&5
32838
32839	ac_cv_func_std_isinf_in_cmath=no
32840fi
32841
32842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32843  ac_ext=c
32844ac_cpp='$CPP $CPPFLAGS'
32845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32847ac_compiler_gnu=$ac_cv_c_compiler_gnu
32848
32849fi
32850{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32851echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
32852
32853if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
32854
32855cat >>confdefs.h <<\_ACEOF
32856#define HAVE_STD_ISINF_IN_CMATH 1
32857_ACEOF
32858
32859fi
32860
32861{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32862echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
32863if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32864  echo $ECHO_N "(cached) $ECHO_C" >&6
32865else
32866  ac_ext=cpp
32867ac_cpp='$CXXCPP $CPPFLAGS'
32868ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32869ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32870ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32871
32872   cat >conftest.$ac_ext <<_ACEOF
32873/* confdefs.h.  */
32874_ACEOF
32875cat confdefs.h >>conftest.$ac_ext
32876cat >>conftest.$ac_ext <<_ACEOF
32877/* end confdefs.h.  */
32878#include <ieeefp.h>
32879int
32880main ()
32881{
32882float f; finite(f);
32883  ;
32884  return 0;
32885}
32886_ACEOF
32887rm -f conftest.$ac_objext
32888if { (ac_try="$ac_compile"
32889case "(($ac_try" in
32890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32891  *) ac_try_echo=$ac_try;;
32892esac
32893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32894  (eval "$ac_compile") 2>conftest.er1
32895  ac_status=$?
32896  grep -v '^ *+' conftest.er1 >conftest.err
32897  rm -f conftest.er1
32898  cat conftest.err >&5
32899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32900  (exit $ac_status); } &&
32901	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32902  { (case "(($ac_try" in
32903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32904  *) ac_try_echo=$ac_try;;
32905esac
32906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32907  (eval "$ac_try") 2>&5
32908  ac_status=$?
32909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32910  (exit $ac_status); }; } &&
32911	 { ac_try='test -s conftest.$ac_objext'
32912  { (case "(($ac_try" in
32913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32914  *) ac_try_echo=$ac_try;;
32915esac
32916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32917  (eval "$ac_try") 2>&5
32918  ac_status=$?
32919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32920  (exit $ac_status); }; }; then
32921  ac_cv_func_finite_in_ieeefp_h=yes
32922else
32923  echo "$as_me: failed program was:" >&5
32924sed 's/^/| /' conftest.$ac_ext >&5
32925
32926	ac_cv_func_finite_in_ieeefp_h=no
32927fi
32928
32929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32930  ac_ext=c
32931ac_cpp='$CPP $CPPFLAGS'
32932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32934ac_compiler_gnu=$ac_cv_c_compiler_gnu
32935
32936fi
32937{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32938echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
32939
32940if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
32941
32942cat >>confdefs.h <<\_ACEOF
32943#define HAVE_FINITE_IN_IEEEFP_H 1
32944_ACEOF
32945
32946fi
32947
32948
32949
32950if test "$llvm_cv_platform_type" = "Unix" ; then
32951
32952
32953for ac_header in stdlib.h unistd.h
32954do
32955as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32956if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32957  { echo "$as_me:$LINENO: checking for $ac_header" >&5
32958echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32959if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32960  echo $ECHO_N "(cached) $ECHO_C" >&6
32961fi
32962ac_res=`eval echo '${'$as_ac_Header'}'`
32963	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32964echo "${ECHO_T}$ac_res" >&6; }
32965else
32966  # Is the header compilable?
32967{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
32968echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32969cat >conftest.$ac_ext <<_ACEOF
32970/* confdefs.h.  */
32971_ACEOF
32972cat confdefs.h >>conftest.$ac_ext
32973cat >>conftest.$ac_ext <<_ACEOF
32974/* end confdefs.h.  */
32975$ac_includes_default
32976#include <$ac_header>
32977_ACEOF
32978rm -f conftest.$ac_objext
32979if { (ac_try="$ac_compile"
32980case "(($ac_try" in
32981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32982  *) ac_try_echo=$ac_try;;
32983esac
32984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32985  (eval "$ac_compile") 2>conftest.er1
32986  ac_status=$?
32987  grep -v '^ *+' conftest.er1 >conftest.err
32988  rm -f conftest.er1
32989  cat conftest.err >&5
32990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32991  (exit $ac_status); } &&
32992	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32993  { (case "(($ac_try" in
32994  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32995  *) ac_try_echo=$ac_try;;
32996esac
32997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32998  (eval "$ac_try") 2>&5
32999  ac_status=$?
33000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33001  (exit $ac_status); }; } &&
33002	 { ac_try='test -s conftest.$ac_objext'
33003  { (case "(($ac_try" in
33004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33005  *) ac_try_echo=$ac_try;;
33006esac
33007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33008  (eval "$ac_try") 2>&5
33009  ac_status=$?
33010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33011  (exit $ac_status); }; }; then
33012  ac_header_compiler=yes
33013else
33014  echo "$as_me: failed program was:" >&5
33015sed 's/^/| /' conftest.$ac_ext >&5
33016
33017	ac_header_compiler=no
33018fi
33019
33020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33021{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33022echo "${ECHO_T}$ac_header_compiler" >&6; }
33023
33024# Is the header present?
33025{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33026echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33027cat >conftest.$ac_ext <<_ACEOF
33028/* confdefs.h.  */
33029_ACEOF
33030cat confdefs.h >>conftest.$ac_ext
33031cat >>conftest.$ac_ext <<_ACEOF
33032/* end confdefs.h.  */
33033#include <$ac_header>
33034_ACEOF
33035if { (ac_try="$ac_cpp conftest.$ac_ext"
33036case "(($ac_try" in
33037  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33038  *) ac_try_echo=$ac_try;;
33039esac
33040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33041  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33042  ac_status=$?
33043  grep -v '^ *+' conftest.er1 >conftest.err
33044  rm -f conftest.er1
33045  cat conftest.err >&5
33046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33047  (exit $ac_status); } >/dev/null; then
33048  if test -s conftest.err; then
33049    ac_cpp_err=$ac_c_preproc_warn_flag
33050    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33051  else
33052    ac_cpp_err=
33053  fi
33054else
33055  ac_cpp_err=yes
33056fi
33057if test -z "$ac_cpp_err"; then
33058  ac_header_preproc=yes
33059else
33060  echo "$as_me: failed program was:" >&5
33061sed 's/^/| /' conftest.$ac_ext >&5
33062
33063  ac_header_preproc=no
33064fi
33065
33066rm -f conftest.err conftest.$ac_ext
33067{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33068echo "${ECHO_T}$ac_header_preproc" >&6; }
33069
33070# So?  What about this header?
33071case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33072  yes:no: )
33073    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33074echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33075    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33076echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33077    ac_header_preproc=yes
33078    ;;
33079  no:yes:* )
33080    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33081echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33082    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33083echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33084    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33085echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33086    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33087echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33088    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33089echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33090    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33091echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33092    ( cat <<\_ASBOX
33093## ----------------------------------- ##
33094## Report this to llvmbugs@cs.uiuc.edu ##
33095## ----------------------------------- ##
33096_ASBOX
33097     ) | sed "s/^/$as_me: WARNING:     /" >&2
33098    ;;
33099esac
33100{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33101echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33102if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33103  echo $ECHO_N "(cached) $ECHO_C" >&6
33104else
33105  eval "$as_ac_Header=\$ac_header_preproc"
33106fi
33107ac_res=`eval echo '${'$as_ac_Header'}'`
33108	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33109echo "${ECHO_T}$ac_res" >&6; }
33110
33111fi
33112if test `eval echo '${'$as_ac_Header'}'` = yes; then
33113  cat >>confdefs.h <<_ACEOF
33114#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33115_ACEOF
33116
33117fi
33118
33119done
33120
33121
33122for ac_func in getpagesize
33123do
33124as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33125{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33126echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33127if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33128  echo $ECHO_N "(cached) $ECHO_C" >&6
33129else
33130  cat >conftest.$ac_ext <<_ACEOF
33131/* confdefs.h.  */
33132_ACEOF
33133cat confdefs.h >>conftest.$ac_ext
33134cat >>conftest.$ac_ext <<_ACEOF
33135/* end confdefs.h.  */
33136/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33137   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33138#define $ac_func innocuous_$ac_func
33139
33140/* System header to define __stub macros and hopefully few prototypes,
33141    which can conflict with char $ac_func (); below.
33142    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33143    <limits.h> exists even on freestanding compilers.  */
33144
33145#ifdef __STDC__
33146# include <limits.h>
33147#else
33148# include <assert.h>
33149#endif
33150
33151#undef $ac_func
33152
33153/* Override any GCC internal prototype to avoid an error.
33154   Use char because int might match the return type of a GCC
33155   builtin and then its argument prototype would still apply.  */
33156#ifdef __cplusplus
33157extern "C"
33158#endif
33159char $ac_func ();
33160/* The GNU C library defines this for functions which it implements
33161    to always fail with ENOSYS.  Some functions are actually named
33162    something starting with __ and the normal name is an alias.  */
33163#if defined __stub_$ac_func || defined __stub___$ac_func
33164choke me
33165#endif
33166
33167int
33168main ()
33169{
33170return $ac_func ();
33171  ;
33172  return 0;
33173}
33174_ACEOF
33175rm -f conftest.$ac_objext conftest$ac_exeext
33176if { (ac_try="$ac_link"
33177case "(($ac_try" in
33178  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33179  *) ac_try_echo=$ac_try;;
33180esac
33181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33182  (eval "$ac_link") 2>conftest.er1
33183  ac_status=$?
33184  grep -v '^ *+' conftest.er1 >conftest.err
33185  rm -f conftest.er1
33186  cat conftest.err >&5
33187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33188  (exit $ac_status); } &&
33189	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33190  { (case "(($ac_try" in
33191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33192  *) ac_try_echo=$ac_try;;
33193esac
33194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33195  (eval "$ac_try") 2>&5
33196  ac_status=$?
33197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33198  (exit $ac_status); }; } &&
33199	 { ac_try='test -s conftest$ac_exeext'
33200  { (case "(($ac_try" in
33201  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33202  *) ac_try_echo=$ac_try;;
33203esac
33204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33205  (eval "$ac_try") 2>&5
33206  ac_status=$?
33207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33208  (exit $ac_status); }; }; then
33209  eval "$as_ac_var=yes"
33210else
33211  echo "$as_me: failed program was:" >&5
33212sed 's/^/| /' conftest.$ac_ext >&5
33213
33214	eval "$as_ac_var=no"
33215fi
33216
33217rm -f core conftest.err conftest.$ac_objext \
33218      conftest$ac_exeext conftest.$ac_ext
33219fi
33220ac_res=`eval echo '${'$as_ac_var'}'`
33221	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33222echo "${ECHO_T}$ac_res" >&6; }
33223if test `eval echo '${'$as_ac_var'}'` = yes; then
33224  cat >>confdefs.h <<_ACEOF
33225#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33226_ACEOF
33227
33228fi
33229done
33230
33231{ echo "$as_me:$LINENO: checking for working mmap" >&5
33232echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33233if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33234  echo $ECHO_N "(cached) $ECHO_C" >&6
33235else
33236  if test "$cross_compiling" = yes; then
33237  ac_cv_func_mmap_fixed_mapped=no
33238else
33239  cat >conftest.$ac_ext <<_ACEOF
33240/* confdefs.h.  */
33241_ACEOF
33242cat confdefs.h >>conftest.$ac_ext
33243cat >>conftest.$ac_ext <<_ACEOF
33244/* end confdefs.h.  */
33245$ac_includes_default
33246/* malloc might have been renamed as rpl_malloc. */
33247#undef malloc
33248
33249/* Thanks to Mike Haertel and Jim Avera for this test.
33250   Here is a matrix of mmap possibilities:
33251	mmap private not fixed
33252	mmap private fixed at somewhere currently unmapped
33253	mmap private fixed at somewhere already mapped
33254	mmap shared not fixed
33255	mmap shared fixed at somewhere currently unmapped
33256	mmap shared fixed at somewhere already mapped
33257   For private mappings, we should verify that changes cannot be read()
33258   back from the file, nor mmap's back from the file at a different
33259   address.  (There have been systems where private was not correctly
33260   implemented like the infamous i386 svr4.0, and systems where the
33261   VM page cache was not coherent with the file system buffer cache
33262   like early versions of FreeBSD and possibly contemporary NetBSD.)
33263   For shared mappings, we should conversely verify that changes get
33264   propagated back to all the places they're supposed to be.
33265
33266   Grep wants private fixed already mapped.
33267   The main things grep needs to know about mmap are:
33268   * does it exist and is it safe to write into the mmap'd area
33269   * how to use it (BSD variants)  */
33270
33271#include <fcntl.h>
33272#include <sys/mman.h>
33273
33274#if !STDC_HEADERS && !HAVE_STDLIB_H
33275char *malloc ();
33276#endif
33277
33278/* This mess was copied from the GNU getpagesize.h.  */
33279#if !HAVE_GETPAGESIZE
33280/* Assume that all systems that can run configure have sys/param.h.  */
33281# if !HAVE_SYS_PARAM_H
33282#  define HAVE_SYS_PARAM_H 1
33283# endif
33284
33285# ifdef _SC_PAGESIZE
33286#  define getpagesize() sysconf(_SC_PAGESIZE)
33287# else /* no _SC_PAGESIZE */
33288#  if HAVE_SYS_PARAM_H
33289#   include <sys/param.h>
33290#   ifdef EXEC_PAGESIZE
33291#    define getpagesize() EXEC_PAGESIZE
33292#   else /* no EXEC_PAGESIZE */
33293#    ifdef NBPG
33294#     define getpagesize() NBPG * CLSIZE
33295#     ifndef CLSIZE
33296#      define CLSIZE 1
33297#     endif /* no CLSIZE */
33298#    else /* no NBPG */
33299#     ifdef NBPC
33300#      define getpagesize() NBPC
33301#     else /* no NBPC */
33302#      ifdef PAGESIZE
33303#       define getpagesize() PAGESIZE
33304#      endif /* PAGESIZE */
33305#     endif /* no NBPC */
33306#    endif /* no NBPG */
33307#   endif /* no EXEC_PAGESIZE */
33308#  else /* no HAVE_SYS_PARAM_H */
33309#   define getpagesize() 8192	/* punt totally */
33310#  endif /* no HAVE_SYS_PARAM_H */
33311# endif /* no _SC_PAGESIZE */
33312
33313#endif /* no HAVE_GETPAGESIZE */
33314
33315int
33316main ()
33317{
33318  char *data, *data2, *data3;
33319  int i, pagesize;
33320  int fd;
33321
33322  pagesize = getpagesize ();
33323
33324  /* First, make a file with some known garbage in it. */
33325  data = (char *) malloc (pagesize);
33326  if (!data)
33327    return 1;
33328  for (i = 0; i < pagesize; ++i)
33329    *(data + i) = rand ();
33330  umask (0);
33331  fd = creat ("conftest.mmap", 0600);
33332  if (fd < 0)
33333    return 1;
33334  if (write (fd, data, pagesize) != pagesize)
33335    return 1;
33336  close (fd);
33337
33338  /* Next, try to mmap the file at a fixed address which already has
33339     something else allocated at it.  If we can, also make sure that
33340     we see the same garbage.  */
33341  fd = open ("conftest.mmap", O_RDWR);
33342  if (fd < 0)
33343    return 1;
33344  data2 = (char *) malloc (2 * pagesize);
33345  if (!data2)
33346    return 1;
33347  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33348  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33349		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
33350    return 1;
33351  for (i = 0; i < pagesize; ++i)
33352    if (*(data + i) != *(data2 + i))
33353      return 1;
33354
33355  /* Finally, make sure that changes to the mapped area do not
33356     percolate back to the file as seen by read().  (This is a bug on
33357     some variants of i386 svr4.0.)  */
33358  for (i = 0; i < pagesize; ++i)
33359    *(data2 + i) = *(data2 + i) + 1;
33360  data3 = (char *) malloc (pagesize);
33361  if (!data3)
33362    return 1;
33363  if (read (fd, data3, pagesize) != pagesize)
33364    return 1;
33365  for (i = 0; i < pagesize; ++i)
33366    if (*(data + i) != *(data3 + i))
33367      return 1;
33368  close (fd);
33369  return 0;
33370}
33371_ACEOF
33372rm -f conftest$ac_exeext
33373if { (ac_try="$ac_link"
33374case "(($ac_try" in
33375  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33376  *) ac_try_echo=$ac_try;;
33377esac
33378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33379  (eval "$ac_link") 2>&5
33380  ac_status=$?
33381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33382  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33383  { (case "(($ac_try" in
33384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33385  *) ac_try_echo=$ac_try;;
33386esac
33387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33388  (eval "$ac_try") 2>&5
33389  ac_status=$?
33390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33391  (exit $ac_status); }; }; then
33392  ac_cv_func_mmap_fixed_mapped=yes
33393else
33394  echo "$as_me: program exited with status $ac_status" >&5
33395echo "$as_me: failed program was:" >&5
33396sed 's/^/| /' conftest.$ac_ext >&5
33397
33398( exit $ac_status )
33399ac_cv_func_mmap_fixed_mapped=no
33400fi
33401rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33402fi
33403
33404
33405fi
33406{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33407echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33408if test $ac_cv_func_mmap_fixed_mapped = yes; then
33409
33410cat >>confdefs.h <<\_ACEOF
33411#define HAVE_MMAP 1
33412_ACEOF
33413
33414fi
33415rm -f conftest.mmap
33416
33417  { echo "$as_me:$LINENO: checking for mmap of files" >&5
33418echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33419if test "${ac_cv_func_mmap_file+set}" = set; then
33420  echo $ECHO_N "(cached) $ECHO_C" >&6
33421else
33422   ac_ext=c
33423ac_cpp='$CPP $CPPFLAGS'
33424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33426ac_compiler_gnu=$ac_cv_c_compiler_gnu
33427
33428  if test "$cross_compiling" = yes; then
33429  ac_cv_func_mmap_file=no
33430else
33431  cat >conftest.$ac_ext <<_ACEOF
33432
33433    /* confdefs.h.  */
33434_ACEOF
33435cat confdefs.h >>conftest.$ac_ext
33436cat >>conftest.$ac_ext <<_ACEOF
33437/* end confdefs.h.  */
33438
33439#include <sys/types.h>
33440#include <sys/mman.h>
33441#include <fcntl.h>
33442
33443int
33444main ()
33445{
33446
33447  int fd;
33448  fd = creat ("foo",0777);
33449  fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33450  unlink ("foo");
33451  return (fd != (int) MAP_FAILED);
33452  ;
33453  return 0;
33454}
33455_ACEOF
33456rm -f conftest$ac_exeext
33457if { (ac_try="$ac_link"
33458case "(($ac_try" in
33459  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33460  *) ac_try_echo=$ac_try;;
33461esac
33462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33463  (eval "$ac_link") 2>&5
33464  ac_status=$?
33465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33466  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33467  { (case "(($ac_try" in
33468  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33469  *) ac_try_echo=$ac_try;;
33470esac
33471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33472  (eval "$ac_try") 2>&5
33473  ac_status=$?
33474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33475  (exit $ac_status); }; }; then
33476  ac_cv_func_mmap_file=yes
33477else
33478  echo "$as_me: program exited with status $ac_status" >&5
33479echo "$as_me: failed program was:" >&5
33480sed 's/^/| /' conftest.$ac_ext >&5
33481
33482( exit $ac_status )
33483ac_cv_func_mmap_file=no
33484fi
33485rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33486fi
33487
33488
33489  ac_ext=c
33490ac_cpp='$CPP $CPPFLAGS'
33491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33493ac_compiler_gnu=$ac_cv_c_compiler_gnu
33494
33495
33496fi
33497{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33498echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33499if test "$ac_cv_func_mmap_file" = yes; then
33500
33501cat >>confdefs.h <<\_ACEOF
33502#define HAVE_MMAP_FILE
33503_ACEOF
33504
33505   MMAP_FILE=yes
33506
33507fi
33508
33509  { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33510echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33511if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33512  echo $ECHO_N "(cached) $ECHO_C" >&6
33513else
33514  if test "$llvm_cv_os_type" = "Interix" ; then
33515   ac_cv_need_dev_zero_for_mmap=yes
33516 else
33517   ac_cv_need_dev_zero_for_mmap=no
33518 fi
33519
33520fi
33521{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33522echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33523if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33524
33525cat >>confdefs.h <<\_ACEOF
33526#define NEED_DEV_ZERO_FOR_MMAP 1
33527_ACEOF
33528
33529fi
33530
33531  if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33532  then
33533    { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33534echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33535  fi
33536  if test "$ac_cv_func_mmap_file" = "no"
33537  then
33538    { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33539echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33540  fi
33541fi
33542
33543
33544
33545for ac_func in __dso_handle
33546do
33547as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33548{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33549echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33550if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33551  echo $ECHO_N "(cached) $ECHO_C" >&6
33552else
33553  cat >conftest.$ac_ext <<_ACEOF
33554/* confdefs.h.  */
33555_ACEOF
33556cat confdefs.h >>conftest.$ac_ext
33557cat >>conftest.$ac_ext <<_ACEOF
33558/* end confdefs.h.  */
33559/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33560   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33561#define $ac_func innocuous_$ac_func
33562
33563/* System header to define __stub macros and hopefully few prototypes,
33564    which can conflict with char $ac_func (); below.
33565    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33566    <limits.h> exists even on freestanding compilers.  */
33567
33568#ifdef __STDC__
33569# include <limits.h>
33570#else
33571# include <assert.h>
33572#endif
33573
33574#undef $ac_func
33575
33576/* Override any GCC internal prototype to avoid an error.
33577   Use char because int might match the return type of a GCC
33578   builtin and then its argument prototype would still apply.  */
33579#ifdef __cplusplus
33580extern "C"
33581#endif
33582char $ac_func ();
33583/* The GNU C library defines this for functions which it implements
33584    to always fail with ENOSYS.  Some functions are actually named
33585    something starting with __ and the normal name is an alias.  */
33586#if defined __stub_$ac_func || defined __stub___$ac_func
33587choke me
33588#endif
33589
33590int
33591main ()
33592{
33593return $ac_func ();
33594  ;
33595  return 0;
33596}
33597_ACEOF
33598rm -f conftest.$ac_objext conftest$ac_exeext
33599if { (ac_try="$ac_link"
33600case "(($ac_try" in
33601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33602  *) ac_try_echo=$ac_try;;
33603esac
33604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33605  (eval "$ac_link") 2>conftest.er1
33606  ac_status=$?
33607  grep -v '^ *+' conftest.er1 >conftest.err
33608  rm -f conftest.er1
33609  cat conftest.err >&5
33610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33611  (exit $ac_status); } &&
33612	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33613  { (case "(($ac_try" in
33614  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33615  *) ac_try_echo=$ac_try;;
33616esac
33617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33618  (eval "$ac_try") 2>&5
33619  ac_status=$?
33620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33621  (exit $ac_status); }; } &&
33622	 { ac_try='test -s conftest$ac_exeext'
33623  { (case "(($ac_try" in
33624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33625  *) ac_try_echo=$ac_try;;
33626esac
33627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33628  (eval "$ac_try") 2>&5
33629  ac_status=$?
33630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33631  (exit $ac_status); }; }; then
33632  eval "$as_ac_var=yes"
33633else
33634  echo "$as_me: failed program was:" >&5
33635sed 's/^/| /' conftest.$ac_ext >&5
33636
33637	eval "$as_ac_var=no"
33638fi
33639
33640rm -f core conftest.err conftest.$ac_objext \
33641      conftest$ac_exeext conftest.$ac_ext
33642fi
33643ac_res=`eval echo '${'$as_ac_var'}'`
33644	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33645echo "${ECHO_T}$ac_res" >&6; }
33646if test `eval echo '${'$as_ac_var'}'` = yes; then
33647  cat >>confdefs.h <<_ACEOF
33648#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33649_ACEOF
33650
33651fi
33652done
33653
33654
33655{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33656echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33657if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33658  echo $ECHO_N "(cached) $ECHO_C" >&6
33659else
33660  llvm_cv_llvmgcc_sanity="no"
33661if test -x "$LLVMGCC" ; then
33662  cp /dev/null conftest.c
33663  "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33664      grep 'target datalayout =' > /dev/null 2>&1
33665  if test $? -eq 0 ; then
33666    llvm_cv_llvmgcc_sanity="yes"
33667  fi
33668  rm conftest.c
33669fi
33670fi
33671{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33672echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33673
33674if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33675  { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33676echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
33677  llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33678  LLVMCC1=$llvmcc1path
33679
33680  llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33681  LLVMCC1PLUS=$llvmcc1pluspath
33682
33683  llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33684  LLVMGCCDIR=$llvmgccdir
33685
33686  llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33687  LLVMGCCLIBEXEC=$llvmgcclibexec
33688
33689  llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33690  llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33691  LLVMGCC_VERSION=$llvmgccversion
33692
33693  LLVMGCC_MAJVERS=$llvmgccmajvers
33694
33695  llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
33696  LLVMGCC_LANGS=$llvmgcclangs
33697
33698  { echo "$as_me:$LINENO: result: ok" >&5
33699echo "${ECHO_T}ok" >&6; }
33700fi
33701
33702SHLIBEXT=$libltdl_cv_shlibext
33703
33704
33705# Translate the various configuration directories and other basic
33706# information into substitutions that will end up in Makefile.config.in
33707# that these configured values can be used by the makefiles
33708if test "${prefix}" = "NONE" ; then
33709  prefix="/usr/local"
33710fi
33711eval LLVM_PREFIX="${prefix}";
33712eval LLVM_BINDIR="${prefix}/bin";
33713eval LLVM_LIBDIR="${prefix}/lib";
33714eval LLVM_DATADIR="${prefix}/share/llvm";
33715eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33716eval LLVM_ETCDIR="${prefix}/etc/llvm";
33717eval LLVM_INCLUDEDIR="${prefix}/include";
33718eval LLVM_INFODIR="${prefix}/info";
33719eval LLVM_MANDIR="${prefix}/man";
33720LLVM_CONFIGTIME=`date`
33721
33722
33723
33724
33725
33726
33727
33728
33729
33730
33731
33732# Place the various directores into the config.h file as #defines so that we
33733# can know about the installation paths within LLVM.
33734
33735cat >>confdefs.h <<_ACEOF
33736#define LLVM_PREFIX "$LLVM_PREFIX"
33737_ACEOF
33738
33739
33740cat >>confdefs.h <<_ACEOF
33741#define LLVM_BINDIR "$LLVM_BINDIR"
33742_ACEOF
33743
33744
33745cat >>confdefs.h <<_ACEOF
33746#define LLVM_LIBDIR "$LLVM_LIBDIR"
33747_ACEOF
33748
33749
33750cat >>confdefs.h <<_ACEOF
33751#define LLVM_DATADIR "$LLVM_DATADIR"
33752_ACEOF
33753
33754
33755cat >>confdefs.h <<_ACEOF
33756#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
33757_ACEOF
33758
33759
33760cat >>confdefs.h <<_ACEOF
33761#define LLVM_ETCDIR "$LLVM_ETCDIR"
33762_ACEOF
33763
33764
33765cat >>confdefs.h <<_ACEOF
33766#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33767_ACEOF
33768
33769
33770cat >>confdefs.h <<_ACEOF
33771#define LLVM_INFODIR "$LLVM_INFODIR"
33772_ACEOF
33773
33774
33775cat >>confdefs.h <<_ACEOF
33776#define LLVM_MANDIR "$LLVM_MANDIR"
33777_ACEOF
33778
33779
33780cat >>confdefs.h <<_ACEOF
33781#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33782_ACEOF
33783
33784
33785cat >>confdefs.h <<_ACEOF
33786#define LLVM_HOSTTRIPLE "$host"
33787_ACEOF
33788
33789
33790# Determine which bindings to build.
33791if test "$BINDINGS_TO_BUILD" = auto ; then
33792  BINDINGS_TO_BUILD=""
33793  if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
33794    BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
33795  fi
33796fi
33797BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
33798
33799
33800# This isn't really configurey, but it avoids having to repeat the list in
33801# other files.
33802ALL_BINDINGS=ocaml
33803
33804
33805# Do any work necessary to ensure that bindings have what they need.
33806binding_prereqs_failed=0
33807for a_binding in $BINDINGS_TO_BUILD ; do
33808  case "$a_binding" in
33809  ocaml)
33810    if test "x$OCAMLC" = x ; then
33811      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
33812echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
33813      binding_prereqs_failed=1
33814    fi
33815    if test "x$OCAMLDEP" = x ; then
33816      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
33817echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
33818      binding_prereqs_failed=1
33819    fi
33820    if test "x$OCAMLOPT" = x ; then
33821      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
33822echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
33823          fi
33824    if test "x$with_ocaml_libdir" != xauto ; then
33825      OCAML_LIBDIR=$with_ocaml_libdir
33826
33827    else
33828      ocaml_stdlib="`"$OCAMLC" -where`"
33829      if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
33830      then
33831        # ocaml stdlib is beneath our prefix; use stdlib
33832        OCAML_LIBDIR=$ocaml_stdlib
33833
33834      else
33835        # ocaml stdlib is outside our prefix; use libdir/ocaml
33836        OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
33837
33838      fi
33839    fi
33840    ;;
33841  esac
33842done
33843if test "$binding_prereqs_failed" = 1 ; then
33844  { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
33845echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
33846   { (exit 1); exit 1; }; }
33847fi
33848
33849{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
33850echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
33851if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
33852  echo $ECHO_N "(cached) $ECHO_C" >&6
33853else
33854   ac_ext=cpp
33855ac_cpp='$CXXCPP $CPPFLAGS'
33856ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33857ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33858ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33859
33860  oldcxxflags="$CXXFLAGS"
33861  CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
33862  cat >conftest.$ac_ext <<_ACEOF
33863/* confdefs.h.  */
33864_ACEOF
33865cat confdefs.h >>conftest.$ac_ext
33866cat >>conftest.$ac_ext <<_ACEOF
33867/* end confdefs.h.  */
33868
33869int
33870main ()
33871{
33872
33873  ;
33874  return 0;
33875}
33876_ACEOF
33877rm -f conftest.$ac_objext
33878if { (ac_try="$ac_compile"
33879case "(($ac_try" in
33880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33881  *) ac_try_echo=$ac_try;;
33882esac
33883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33884  (eval "$ac_compile") 2>conftest.er1
33885  ac_status=$?
33886  grep -v '^ *+' conftest.er1 >conftest.err
33887  rm -f conftest.er1
33888  cat conftest.err >&5
33889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33890  (exit $ac_status); } &&
33891	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33892  { (case "(($ac_try" in
33893  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33894  *) ac_try_echo=$ac_try;;
33895esac
33896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33897  (eval "$ac_try") 2>&5
33898  ac_status=$?
33899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33900  (exit $ac_status); }; } &&
33901	 { ac_try='test -s conftest.$ac_objext'
33902  { (case "(($ac_try" in
33903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33904  *) ac_try_echo=$ac_try;;
33905esac
33906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33907  (eval "$ac_try") 2>&5
33908  ac_status=$?
33909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33910  (exit $ac_status); }; }; then
33911  llvm_cv_cxx_visibility_inlines_hidden=yes
33912else
33913  echo "$as_me: failed program was:" >&5
33914sed 's/^/| /' conftest.$ac_ext >&5
33915
33916	llvm_cv_cxx_visibility_inlines_hidden=no
33917fi
33918
33919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33920  CXXFLAGS="$oldcxxflags"
33921  ac_ext=c
33922ac_cpp='$CPP $CPPFLAGS'
33923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33925ac_compiler_gnu=$ac_cv_c_compiler_gnu
33926
33927
33928fi
33929{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
33930echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
33931if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
33932  ENABLE_VISIBILITY_INLINES_HIDDEN=1
33933
33934else
33935  ENABLE_VISIBILITY_INLINES_HIDDEN=0
33936
33937fi
33938
33939
33940if test "$llvm_cv_link_use_r" = "yes" ; then
33941  RPATH="-Wl,-R"
33942else
33943  RPATH="-Wl,-rpath"
33944fi
33945
33946
33947if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
33948  RDYNAMIC="-Wl,-export-dynamic"
33949else
33950  RDYNAMIC=""
33951fi
33952
33953
33954
33955ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
33956
33957ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
33958
33959ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
33960
33961
33962ac_config_files="$ac_config_files Makefile.config"
33963
33964
33965ac_config_files="$ac_config_files llvm.spec"
33966
33967
33968ac_config_files="$ac_config_files docs/doxygen.cfg"
33969
33970
33971ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
33972
33973
33974ac_config_commands="$ac_config_commands setup"
33975
33976ac_config_commands="$ac_config_commands Makefile"
33977
33978
33979ac_config_commands="$ac_config_commands Makefile.common"
33980
33981
33982ac_config_commands="$ac_config_commands examples/Makefile"
33983
33984
33985ac_config_commands="$ac_config_commands lib/Makefile"
33986
33987
33988ac_config_commands="$ac_config_commands runtime/Makefile"
33989
33990
33991ac_config_commands="$ac_config_commands test/Makefile"
33992
33993
33994ac_config_commands="$ac_config_commands test/Makefile.tests"
33995
33996
33997ac_config_commands="$ac_config_commands unittests/Makefile"
33998
33999
34000ac_config_commands="$ac_config_commands tools/Makefile"
34001
34002
34003ac_config_commands="$ac_config_commands utils/Makefile"
34004
34005
34006ac_config_commands="$ac_config_commands projects/Makefile"
34007
34008
34009ac_config_commands="$ac_config_commands bindings/Makefile"
34010
34011
34012ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34013
34014
34015
34016cat >confcache <<\_ACEOF
34017# This file is a shell script that caches the results of configure
34018# tests run on this system so they can be shared between configure
34019# scripts and configure runs, see configure's option --config-cache.
34020# It is not useful on other systems.  If it contains results you don't
34021# want to keep, you may remove or edit it.
34022#
34023# config.status only pays attention to the cache file if you give it
34024# the --recheck option to rerun configure.
34025#
34026# `ac_cv_env_foo' variables (set or unset) will be overridden when
34027# loading this file, other *unset* `ac_cv_foo' will be assigned the
34028# following values.
34029
34030_ACEOF
34031
34032# The following way of writing the cache mishandles newlines in values,
34033# but we know of no workaround that is simple, portable, and efficient.
34034# So, we kill variables containing newlines.
34035# Ultrix sh set writes to stderr and can't be redirected directly,
34036# and sets the high bit in the cache file unless we assign to the vars.
34037(
34038  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34039    eval ac_val=\$$ac_var
34040    case $ac_val in #(
34041    *${as_nl}*)
34042      case $ac_var in #(
34043      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34044echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34045      esac
34046      case $ac_var in #(
34047      _ | IFS | as_nl) ;; #(
34048      *) $as_unset $ac_var ;;
34049      esac ;;
34050    esac
34051  done
34052
34053  (set) 2>&1 |
34054    case $as_nl`(ac_space=' '; set) 2>&1` in #(
34055    *${as_nl}ac_space=\ *)
34056      # `set' does not quote correctly, so add quotes (double-quote
34057      # substitution turns \\\\ into \\, and sed turns \\ into \).
34058      sed -n \
34059	"s/'/'\\\\''/g;
34060	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34061      ;; #(
34062    *)
34063      # `set' quotes correctly as required by POSIX, so do not add quotes.
34064      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34065      ;;
34066    esac |
34067    sort
34068) |
34069  sed '
34070     /^ac_cv_env_/b end
34071     t clear
34072     :clear
34073     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34074     t end
34075     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34076     :end' >>confcache
34077if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34078  if test -w "$cache_file"; then
34079    test "x$cache_file" != "x/dev/null" &&
34080      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34081echo "$as_me: updating cache $cache_file" >&6;}
34082    cat confcache >$cache_file
34083  else
34084    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34085echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34086  fi
34087fi
34088rm -f confcache
34089
34090test "x$prefix" = xNONE && prefix=$ac_default_prefix
34091# Let make expand exec_prefix.
34092test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34093
34094DEFS=-DHAVE_CONFIG_H
34095
34096ac_libobjs=
34097ac_ltlibobjs=
34098for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34099  # 1. Remove the extension, and $U if already installed.
34100  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34101  ac_i=`echo "$ac_i" | sed "$ac_script"`
34102  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34103  #    will be set to the directory where LIBOBJS objects are built.
34104  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34105  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34106done
34107LIBOBJS=$ac_libobjs
34108
34109LTLIBOBJS=$ac_ltlibobjs
34110
34111
34112if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34113  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34114Usually this means the macro was only invoked conditionally." >&5
34115echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34116Usually this means the macro was only invoked conditionally." >&2;}
34117   { (exit 1); exit 1; }; }
34118fi
34119if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34120  { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34121Usually this means the macro was only invoked conditionally." >&5
34122echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34123Usually this means the macro was only invoked conditionally." >&2;}
34124   { (exit 1); exit 1; }; }
34125fi
34126
34127: ${CONFIG_STATUS=./config.status}
34128ac_clean_files_save=$ac_clean_files
34129ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34130{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34131echo "$as_me: creating $CONFIG_STATUS" >&6;}
34132cat >$CONFIG_STATUS <<_ACEOF
34133#! $SHELL
34134# Generated by $as_me.
34135# Run this file to recreate the current configuration.
34136# Compiler output produced by configure, useful for debugging
34137# configure, is in config.log if it exists.
34138
34139debug=false
34140ac_cs_recheck=false
34141ac_cs_silent=false
34142SHELL=\${CONFIG_SHELL-$SHELL}
34143_ACEOF
34144
34145cat >>$CONFIG_STATUS <<\_ACEOF
34146## --------------------- ##
34147## M4sh Initialization.  ##
34148## --------------------- ##
34149
34150# Be Bourne compatible
34151if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34152  emulate sh
34153  NULLCMD=:
34154  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34155  # is contrary to our usage.  Disable this feature.
34156  alias -g '${1+"$@"}'='"$@"'
34157  setopt NO_GLOB_SUBST
34158else
34159  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34160fi
34161BIN_SH=xpg4; export BIN_SH # for Tru64
34162DUALCASE=1; export DUALCASE # for MKS sh
34163
34164
34165# PATH needs CR
34166# Avoid depending upon Character Ranges.
34167as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34168as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34169as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34170as_cr_digits='0123456789'
34171as_cr_alnum=$as_cr_Letters$as_cr_digits
34172
34173# The user is always right.
34174if test "${PATH_SEPARATOR+set}" != set; then
34175  echo "#! /bin/sh" >conf$$.sh
34176  echo  "exit 0"   >>conf$$.sh
34177  chmod +x conf$$.sh
34178  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34179    PATH_SEPARATOR=';'
34180  else
34181    PATH_SEPARATOR=:
34182  fi
34183  rm -f conf$$.sh
34184fi
34185
34186# Support unset when possible.
34187if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34188  as_unset=unset
34189else
34190  as_unset=false
34191fi
34192
34193
34194# IFS
34195# We need space, tab and new line, in precisely that order.  Quoting is
34196# there to prevent editors from complaining about space-tab.
34197# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34198# splitting by setting IFS to empty value.)
34199as_nl='
34200'
34201IFS=" ""	$as_nl"
34202
34203# Find who we are.  Look in the path if we contain no directory separator.
34204case $0 in
34205  *[\\/]* ) as_myself=$0 ;;
34206  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34207for as_dir in $PATH
34208do
34209  IFS=$as_save_IFS
34210  test -z "$as_dir" && as_dir=.
34211  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34212done
34213IFS=$as_save_IFS
34214
34215     ;;
34216esac
34217# We did not find ourselves, most probably we were run as `sh COMMAND'
34218# in which case we are not to be found in the path.
34219if test "x$as_myself" = x; then
34220  as_myself=$0
34221fi
34222if test ! -f "$as_myself"; then
34223  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34224  { (exit 1); exit 1; }
34225fi
34226
34227# Work around bugs in pre-3.0 UWIN ksh.
34228for as_var in ENV MAIL MAILPATH
34229do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34230done
34231PS1='$ '
34232PS2='> '
34233PS4='+ '
34234
34235# NLS nuisances.
34236for as_var in \
34237  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34238  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34239  LC_TELEPHONE LC_TIME
34240do
34241  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34242    eval $as_var=C; export $as_var
34243  else
34244    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34245  fi
34246done
34247
34248# Required to use basename.
34249if expr a : '\(a\)' >/dev/null 2>&1 &&
34250   test "X`expr 00001 : '.*\(...\)'`" = X001; then
34251  as_expr=expr
34252else
34253  as_expr=false
34254fi
34255
34256if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34257  as_basename=basename
34258else
34259  as_basename=false
34260fi
34261
34262
34263# Name of the executable.
34264as_me=`$as_basename -- "$0" ||
34265$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34266	 X"$0" : 'X\(//\)$' \| \
34267	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34268echo X/"$0" |
34269    sed '/^.*\/\([^/][^/]*\)\/*$/{
34270	    s//\1/
34271	    q
34272	  }
34273	  /^X\/\(\/\/\)$/{
34274	    s//\1/
34275	    q
34276	  }
34277	  /^X\/\(\/\).*/{
34278	    s//\1/
34279	    q
34280	  }
34281	  s/.*/./; q'`
34282
34283# CDPATH.
34284$as_unset CDPATH
34285
34286
34287
34288  as_lineno_1=$LINENO
34289  as_lineno_2=$LINENO
34290  test "x$as_lineno_1" != "x$as_lineno_2" &&
34291  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34292
34293  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34294  # uniformly replaced by the line number.  The first 'sed' inserts a
34295  # line-number line after each line using $LINENO; the second 'sed'
34296  # does the real work.  The second script uses 'N' to pair each
34297  # line-number line with the line containing $LINENO, and appends
34298  # trailing '-' during substitution so that $LINENO is not a special
34299  # case at line end.
34300  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34301  # scripts with optimization help from Paolo Bonzini.  Blame Lee
34302  # E. McMahon (1931-1989) for sed's syntax.  :-)
34303  sed -n '
34304    p
34305    /[$]LINENO/=
34306  ' <$as_myself |
34307    sed '
34308      s/[$]LINENO.*/&-/
34309      t lineno
34310      b
34311      :lineno
34312      N
34313      :loop
34314      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34315      t loop
34316      s/-\n.*//
34317    ' >$as_me.lineno &&
34318  chmod +x "$as_me.lineno" ||
34319    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34320   { (exit 1); exit 1; }; }
34321
34322  # Don't try to exec as it changes $[0], causing all sort of problems
34323  # (the dirname of $[0] is not the place where we might find the
34324  # original and so on.  Autoconf is especially sensitive to this).
34325  . "./$as_me.lineno"
34326  # Exit status is that of the last command.
34327  exit
34328}
34329
34330
34331if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34332  as_dirname=dirname
34333else
34334  as_dirname=false
34335fi
34336
34337ECHO_C= ECHO_N= ECHO_T=
34338case `echo -n x` in
34339-n*)
34340  case `echo 'x\c'` in
34341  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
34342  *)   ECHO_C='\c';;
34343  esac;;
34344*)
34345  ECHO_N='-n';;
34346esac
34347
34348if expr a : '\(a\)' >/dev/null 2>&1 &&
34349   test "X`expr 00001 : '.*\(...\)'`" = X001; then
34350  as_expr=expr
34351else
34352  as_expr=false
34353fi
34354
34355rm -f conf$$ conf$$.exe conf$$.file
34356if test -d conf$$.dir; then
34357  rm -f conf$$.dir/conf$$.file
34358else
34359  rm -f conf$$.dir
34360  mkdir conf$$.dir
34361fi
34362echo >conf$$.file
34363if ln -s conf$$.file conf$$ 2>/dev/null; then
34364  as_ln_s='ln -s'
34365  # ... but there are two gotchas:
34366  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34367  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34368  # In both cases, we have to default to `cp -p'.
34369  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34370    as_ln_s='cp -p'
34371elif ln conf$$.file conf$$ 2>/dev/null; then
34372  as_ln_s=ln
34373else
34374  as_ln_s='cp -p'
34375fi
34376rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34377rmdir conf$$.dir 2>/dev/null
34378
34379if mkdir -p . 2>/dev/null; then
34380  as_mkdir_p=:
34381else
34382  test -d ./-p && rmdir ./-p
34383  as_mkdir_p=false
34384fi
34385
34386# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
34387# systems may use methods other than mode bits to determine executability.
34388cat >conf$$.file <<_ASEOF
34389#! /bin/sh
34390exit 0
34391_ASEOF
34392chmod +x conf$$.file
34393if test -x conf$$.file >/dev/null 2>&1; then
34394  as_executable_p="test -x"
34395else
34396  as_executable_p=:
34397fi
34398rm -f conf$$.file
34399
34400# Sed expression to map a string onto a valid CPP name.
34401as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34402
34403# Sed expression to map a string onto a valid variable name.
34404as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34405
34406
34407exec 6>&1
34408
34409# Save the log message, to keep $[0] and so on meaningful, and to
34410# report actual input values of CONFIG_FILES etc. instead of their
34411# values after options handling.
34412ac_log="
34413This file was extended by llvm $as_me 2.6svn, which was
34414generated by GNU Autoconf 2.60.  Invocation command line was
34415
34416  CONFIG_FILES    = $CONFIG_FILES
34417  CONFIG_HEADERS  = $CONFIG_HEADERS
34418  CONFIG_LINKS    = $CONFIG_LINKS
34419  CONFIG_COMMANDS = $CONFIG_COMMANDS
34420  $ $0 $@
34421
34422on `(hostname || uname -n) 2>/dev/null | sed 1q`
34423"
34424
34425_ACEOF
34426
34427cat >>$CONFIG_STATUS <<_ACEOF
34428# Files that config.status was made for.
34429config_files="$ac_config_files"
34430config_headers="$ac_config_headers"
34431config_commands="$ac_config_commands"
34432
34433_ACEOF
34434
34435cat >>$CONFIG_STATUS <<\_ACEOF
34436ac_cs_usage="\
34437\`$as_me' instantiates files from templates according to the
34438current configuration.
34439
34440Usage: $0 [OPTIONS] [FILE]...
34441
34442  -h, --help       print this help, then exit
34443  -V, --version    print version number, then exit
34444  -q, --quiet      do not print progress messages
34445  -d, --debug      don't remove temporary files
34446      --recheck    update $as_me by reconfiguring in the same conditions
34447  --file=FILE[:TEMPLATE]
34448		   instantiate the configuration file FILE
34449  --header=FILE[:TEMPLATE]
34450		   instantiate the configuration header FILE
34451
34452Configuration files:
34453$config_files
34454
34455Configuration headers:
34456$config_headers
34457
34458Configuration commands:
34459$config_commands
34460
34461Report bugs to <bug-autoconf@gnu.org>."
34462
34463_ACEOF
34464cat >>$CONFIG_STATUS <<_ACEOF
34465ac_cs_version="\\
34466llvm config.status 2.6svn
34467configured by $0, generated by GNU Autoconf 2.60,
34468  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34469
34470Copyright (C) 2006 Free Software Foundation, Inc.
34471This config.status script is free software; the Free Software Foundation
34472gives unlimited permission to copy, distribute and modify it."
34473
34474ac_pwd='$ac_pwd'
34475srcdir='$srcdir'
34476INSTALL='$INSTALL'
34477_ACEOF
34478
34479cat >>$CONFIG_STATUS <<\_ACEOF
34480# If no file are specified by the user, then we need to provide default
34481# value.  By we need to know if files were specified by the user.
34482ac_need_defaults=:
34483while test $# != 0
34484do
34485  case $1 in
34486  --*=*)
34487    ac_option=`expr "X$1" : 'X\([^=]*\)='`
34488    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34489    ac_shift=:
34490    ;;
34491  *)
34492    ac_option=$1
34493    ac_optarg=$2
34494    ac_shift=shift
34495    ;;
34496  esac
34497
34498  case $ac_option in
34499  # Handling of the options.
34500  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34501    ac_cs_recheck=: ;;
34502  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34503    echo "$ac_cs_version"; exit ;;
34504  --debug | --debu | --deb | --de | --d | -d )
34505    debug=: ;;
34506  --file | --fil | --fi | --f )
34507    $ac_shift
34508    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34509    ac_need_defaults=false;;
34510  --header | --heade | --head | --hea )
34511    $ac_shift
34512    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34513    ac_need_defaults=false;;
34514  --he | --h)
34515    # Conflict between --help and --header
34516    { echo "$as_me: error: ambiguous option: $1
34517Try \`$0 --help' for more information." >&2
34518   { (exit 1); exit 1; }; };;
34519  --help | --hel | -h )
34520    echo "$ac_cs_usage"; exit ;;
34521  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34522  | -silent | --silent | --silen | --sile | --sil | --si | --s)
34523    ac_cs_silent=: ;;
34524
34525  # This is an error.
34526  -*) { echo "$as_me: error: unrecognized option: $1
34527Try \`$0 --help' for more information." >&2
34528   { (exit 1); exit 1; }; } ;;
34529
34530  *) ac_config_targets="$ac_config_targets $1"
34531     ac_need_defaults=false ;;
34532
34533  esac
34534  shift
34535done
34536
34537ac_configure_extra_args=
34538
34539if $ac_cs_silent; then
34540  exec 6>/dev/null
34541  ac_configure_extra_args="$ac_configure_extra_args --silent"
34542fi
34543
34544_ACEOF
34545cat >>$CONFIG_STATUS <<_ACEOF
34546if \$ac_cs_recheck; then
34547  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34548  CONFIG_SHELL=$SHELL
34549  export CONFIG_SHELL
34550  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34551fi
34552
34553_ACEOF
34554cat >>$CONFIG_STATUS <<\_ACEOF
34555exec 5>>config.log
34556{
34557  echo
34558  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34559## Running $as_me. ##
34560_ASBOX
34561  echo "$ac_log"
34562} >&5
34563
34564_ACEOF
34565cat >>$CONFIG_STATUS <<_ACEOF
34566#
34567# INIT-COMMANDS
34568#
34569llvm_src="${srcdir}"
34570
34571_ACEOF
34572
34573cat >>$CONFIG_STATUS <<\_ACEOF
34574
34575# Handling of arguments.
34576for ac_config_target in $ac_config_targets
34577do
34578  case $ac_config_target in
34579    "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34580    "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34581    "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
34582    "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34583    "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34584    "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34585    "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34586    "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34587    "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34588    "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34589    "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34590    "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34591    "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34592    "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34593    "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34594    "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
34595    "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34596    "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34597    "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34598    "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34599    "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
34600
34601  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34602echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34603   { (exit 1); exit 1; }; };;
34604  esac
34605done
34606
34607
34608# If the user did not use the arguments to specify the items to instantiate,
34609# then the envvar interface is used.  Set only those that are not.
34610# We use the long form for the default assignment because of an extremely
34611# bizarre bug on SunOS 4.1.3.
34612if $ac_need_defaults; then
34613  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34614  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34615  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34616fi
34617
34618# Have a temporary directory for convenience.  Make it in the build tree
34619# simply because there is no reason against having it here, and in addition,
34620# creating and moving files from /tmp can sometimes cause problems.
34621# Hook for its removal unless debugging.
34622# Note that there is a small window in which the directory will not be cleaned:
34623# after its creation but before its name has been assigned to `$tmp'.
34624$debug ||
34625{
34626  tmp=
34627  trap 'exit_status=$?
34628  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34629' 0
34630  trap '{ (exit 1); exit 1; }' 1 2 13 15
34631}
34632# Create a (secure) tmp directory for tmp files.
34633
34634{
34635  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34636  test -n "$tmp" && test -d "$tmp"
34637}  ||
34638{
34639  tmp=./conf$$-$RANDOM
34640  (umask 077 && mkdir "$tmp")
34641} ||
34642{
34643   echo "$me: cannot create a temporary directory in ." >&2
34644   { (exit 1); exit 1; }
34645}
34646
34647#
34648# Set up the sed scripts for CONFIG_FILES section.
34649#
34650
34651# No need to generate the scripts if there are no CONFIG_FILES.
34652# This happens for instance when ./config.status config.h
34653if test -n "$CONFIG_FILES"; then
34654
34655_ACEOF
34656
34657
34658
34659ac_delim='%!_!# '
34660for ac_last_try in false false false false false :; do
34661  cat >conf$$subs.sed <<_ACEOF
34662SHELL!$SHELL$ac_delim
34663PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34664PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34665PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34666PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34667PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34668PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34669exec_prefix!$exec_prefix$ac_delim
34670prefix!$prefix$ac_delim
34671program_transform_name!$program_transform_name$ac_delim
34672bindir!$bindir$ac_delim
34673sbindir!$sbindir$ac_delim
34674libexecdir!$libexecdir$ac_delim
34675datarootdir!$datarootdir$ac_delim
34676datadir!$datadir$ac_delim
34677sysconfdir!$sysconfdir$ac_delim
34678sharedstatedir!$sharedstatedir$ac_delim
34679localstatedir!$localstatedir$ac_delim
34680includedir!$includedir$ac_delim
34681oldincludedir!$oldincludedir$ac_delim
34682docdir!$docdir$ac_delim
34683infodir!$infodir$ac_delim
34684htmldir!$htmldir$ac_delim
34685dvidir!$dvidir$ac_delim
34686pdfdir!$pdfdir$ac_delim
34687psdir!$psdir$ac_delim
34688libdir!$libdir$ac_delim
34689localedir!$localedir$ac_delim
34690mandir!$mandir$ac_delim
34691DEFS!$DEFS$ac_delim
34692ECHO_C!$ECHO_C$ac_delim
34693ECHO_N!$ECHO_N$ac_delim
34694ECHO_T!$ECHO_T$ac_delim
34695LIBS!$LIBS$ac_delim
34696build_alias!$build_alias$ac_delim
34697host_alias!$host_alias$ac_delim
34698target_alias!$target_alias$ac_delim
34699LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34700subdirs!$subdirs$ac_delim
34701build!$build$ac_delim
34702build_cpu!$build_cpu$ac_delim
34703build_vendor!$build_vendor$ac_delim
34704build_os!$build_os$ac_delim
34705host!$host$ac_delim
34706host_cpu!$host_cpu$ac_delim
34707host_vendor!$host_vendor$ac_delim
34708host_os!$host_os$ac_delim
34709target!$target$ac_delim
34710target_cpu!$target_cpu$ac_delim
34711target_vendor!$target_vendor$ac_delim
34712target_os!$target_os$ac_delim
34713OS!$OS$ac_delim
34714LINKALL!$LINKALL$ac_delim
34715NOLINKALL!$NOLINKALL$ac_delim
34716LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34717LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34718ARCH!$ARCH$ac_delim
34719ENDIAN!$ENDIAN$ac_delim
34720CC!$CC$ac_delim
34721CFLAGS!$CFLAGS$ac_delim
34722LDFLAGS!$LDFLAGS$ac_delim
34723CPPFLAGS!$CPPFLAGS$ac_delim
34724ac_ct_CC!$ac_ct_CC$ac_delim
34725EXEEXT!$EXEEXT$ac_delim
34726OBJEXT!$OBJEXT$ac_delim
34727CPP!$CPP$ac_delim
34728GREP!$GREP$ac_delim
34729EGREP!$EGREP$ac_delim
34730LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34731BUILD_CC!$BUILD_CC$ac_delim
34732BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34733BUILD_CXX!$BUILD_CXX$ac_delim
34734CVSBUILD!$CVSBUILD$ac_delim
34735ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34736DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34737ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34738EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
34739DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34740JIT!$JIT$ac_delim
34741TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34742ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34743ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34744ENABLE_PIC!$ENABLE_PIC$ac_delim
34745TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34746ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34747EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34748BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
34749CXX!$CXX$ac_delim
34750CXXFLAGS!$CXXFLAGS$ac_delim
34751ac_ct_CXX!$ac_ct_CXX$ac_delim
34752NM!$NM$ac_delim
34753ifGNUmake!$ifGNUmake$ac_delim
34754LN_S!$LN_S$ac_delim
34755CMP!$CMP$ac_delim
34756CP!$CP$ac_delim
34757DATE!$DATE$ac_delim
34758FIND!$FIND$ac_delim
34759_ACEOF
34760
34761  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34762    break
34763  elif $ac_last_try; then
34764    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34765echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34766   { (exit 1); exit 1; }; }
34767  else
34768    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34769  fi
34770done
34771
34772ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34773if test -n "$ac_eof"; then
34774  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34775  ac_eof=`expr $ac_eof + 1`
34776fi
34777
34778cat >>$CONFIG_STATUS <<_ACEOF
34779cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34780/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34781_ACEOF
34782sed '
34783s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34784s/^/s,@/; s/!/@,|#_!!_#|/
34785:n
34786t n
34787s/'"$ac_delim"'$/,g/; t
34788s/$/\\/; p
34789N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34790' >>$CONFIG_STATUS <conf$$subs.sed
34791rm -f conf$$subs.sed
34792cat >>$CONFIG_STATUS <<_ACEOF
34793CEOF$ac_eof
34794_ACEOF
34795
34796
34797ac_delim='%!_!# '
34798for ac_last_try in false false false false false :; do
34799  cat >conf$$subs.sed <<_ACEOF
34800MKDIR!$MKDIR$ac_delim
34801MV!$MV$ac_delim
34802RANLIB!$RANLIB$ac_delim
34803RM!$RM$ac_delim
34804SED!$SED$ac_delim
34805TAR!$TAR$ac_delim
34806BINPWD!$BINPWD$ac_delim
34807GRAPHVIZ!$GRAPHVIZ$ac_delim
34808DOT!$DOT$ac_delim
34809GV!$GV$ac_delim
34810DOTTY!$DOTTY$ac_delim
34811PERL!$PERL$ac_delim
34812HAVE_PERL!$HAVE_PERL$ac_delim
34813INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34814INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34815INSTALL_DATA!$INSTALL_DATA$ac_delim
34816BZIP2!$BZIP2$ac_delim
34817DOXYGEN!$DOXYGEN$ac_delim
34818GROFF!$GROFF$ac_delim
34819GZIP!$GZIP$ac_delim
34820POD2HTML!$POD2HTML$ac_delim
34821POD2MAN!$POD2MAN$ac_delim
34822RUNTEST!$RUNTEST$ac_delim
34823TCLSH!$TCLSH$ac_delim
34824ZIP!$ZIP$ac_delim
34825OCAMLC!$OCAMLC$ac_delim
34826OCAMLOPT!$OCAMLOPT$ac_delim
34827OCAMLDEP!$OCAMLDEP$ac_delim
34828OCAMLDOC!$OCAMLDOC$ac_delim
34829GAS!$GAS$ac_delim
34830INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34831INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34832CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34833CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34834LIBADD_DL!$LIBADD_DL$ac_delim
34835ECHO!$ECHO$ac_delim
34836AR!$AR$ac_delim
34837STRIP!$STRIP$ac_delim
34838CXXCPP!$CXXCPP$ac_delim
34839F77!$F77$ac_delim
34840FFLAGS!$FFLAGS$ac_delim
34841ac_ct_F77!$ac_ct_F77$ac_delim
34842LIBTOOL!$LIBTOOL$ac_delim
34843LLVMGCC!$LLVMGCC$ac_delim
34844LLVMGXX!$LLVMGXX$ac_delim
34845USE_UDIS86!$USE_UDIS86$ac_delim
34846HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
34847HAVE_FFI!$HAVE_FFI$ac_delim
34848HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
34849ALLOCA!$ALLOCA$ac_delim
34850MMAP_FILE!$MMAP_FILE$ac_delim
34851LLVMCC1!$LLVMCC1$ac_delim
34852LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34853LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34854LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
34855LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34856LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34857LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
34858SHLIBEXT!$SHLIBEXT$ac_delim
34859LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34860LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34861LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34862LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34863LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34864LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34865LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34866LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34867LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34868LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34869BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
34870ALL_BINDINGS!$ALL_BINDINGS$ac_delim
34871OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
34872ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
34873RPATH!$RPATH$ac_delim
34874RDYNAMIC!$RDYNAMIC$ac_delim
34875LIBOBJS!$LIBOBJS$ac_delim
34876LTLIBOBJS!$LTLIBOBJS$ac_delim
34877_ACEOF
34878
34879  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
34880    break
34881  elif $ac_last_try; then
34882    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34883echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34884   { (exit 1); exit 1; }; }
34885  else
34886    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34887  fi
34888done
34889
34890ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34891if test -n "$ac_eof"; then
34892  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34893  ac_eof=`expr $ac_eof + 1`
34894fi
34895
34896cat >>$CONFIG_STATUS <<_ACEOF
34897cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34898/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34899_ACEOF
34900sed '
34901s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34902s/^/s,@/; s/!/@,|#_!!_#|/
34903:n
34904t n
34905s/'"$ac_delim"'$/,g/; t
34906s/$/\\/; p
34907N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34908' >>$CONFIG_STATUS <conf$$subs.sed
34909rm -f conf$$subs.sed
34910cat >>$CONFIG_STATUS <<_ACEOF
34911:end
34912s/|#_!!_#|//g
34913CEOF$ac_eof
34914_ACEOF
34915
34916
34917# VPATH may cause trouble with some makes, so we remove $(srcdir),
34918# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34919# trailing colons and then remove the whole line if VPATH becomes empty
34920# (actually we leave an empty line to preserve line numbers).
34921if test "x$srcdir" = x.; then
34922  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
34923s/:*\$(srcdir):*/:/
34924s/:*\${srcdir}:*/:/
34925s/:*@srcdir@:*/:/
34926s/^\([^=]*=[	 ]*\):*/\1/
34927s/:*$//
34928s/^[^=]*=[	 ]*$//
34929}'
34930fi
34931
34932cat >>$CONFIG_STATUS <<\_ACEOF
34933fi # test -n "$CONFIG_FILES"
34934
34935
34936for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
34937do
34938  case $ac_tag in
34939  :[FHLC]) ac_mode=$ac_tag; continue;;
34940  esac
34941  case $ac_mode$ac_tag in
34942  :[FHL]*:*);;
34943  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34944echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34945   { (exit 1); exit 1; }; };;
34946  :[FH]-) ac_tag=-:-;;
34947  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34948  esac
34949  ac_save_IFS=$IFS
34950  IFS=:
34951  set x $ac_tag
34952  IFS=$ac_save_IFS
34953  shift
34954  ac_file=$1
34955  shift
34956
34957  case $ac_mode in
34958  :L) ac_source=$1;;
34959  :[FH])
34960    ac_file_inputs=
34961    for ac_f
34962    do
34963      case $ac_f in
34964      -) ac_f="$tmp/stdin";;
34965      *) # Look for the file first in the build tree, then in the source tree
34966	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
34967	 # because $ac_f cannot contain `:'.
34968	 test -f "$ac_f" ||
34969	   case $ac_f in
34970	   [\\/$]*) false;;
34971	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34972	   esac ||
34973	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34974echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34975   { (exit 1); exit 1; }; };;
34976      esac
34977      ac_file_inputs="$ac_file_inputs $ac_f"
34978    done
34979
34980    # Let's still pretend it is `configure' which instantiates (i.e., don't
34981    # use $as_me), people would be surprised to read:
34982    #    /* config.h.  Generated by config.status.  */
34983    configure_input="Generated from "`IFS=:
34984	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34985    if test x"$ac_file" != x-; then
34986      configure_input="$ac_file.  $configure_input"
34987      { echo "$as_me:$LINENO: creating $ac_file" >&5
34988echo "$as_me: creating $ac_file" >&6;}
34989    fi
34990
34991    case $ac_tag in
34992    *:-:* | *:-) cat >"$tmp/stdin";;
34993    esac
34994    ;;
34995  esac
34996
34997  ac_dir=`$as_dirname -- "$ac_file" ||
34998$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34999	 X"$ac_file" : 'X\(//\)[^/]' \| \
35000	 X"$ac_file" : 'X\(//\)$' \| \
35001	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35002echo X"$ac_file" |
35003    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35004	    s//\1/
35005	    q
35006	  }
35007	  /^X\(\/\/\)[^/].*/{
35008	    s//\1/
35009	    q
35010	  }
35011	  /^X\(\/\/\)$/{
35012	    s//\1/
35013	    q
35014	  }
35015	  /^X\(\/\).*/{
35016	    s//\1/
35017	    q
35018	  }
35019	  s/.*/./; q'`
35020  { as_dir="$ac_dir"
35021  case $as_dir in #(
35022  -*) as_dir=./$as_dir;;
35023  esac
35024  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35025    as_dirs=
35026    while :; do
35027      case $as_dir in #(
35028      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35029      *) as_qdir=$as_dir;;
35030      esac
35031      as_dirs="'$as_qdir' $as_dirs"
35032      as_dir=`$as_dirname -- "$as_dir" ||
35033$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35034	 X"$as_dir" : 'X\(//\)[^/]' \| \
35035	 X"$as_dir" : 'X\(//\)$' \| \
35036	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35037echo X"$as_dir" |
35038    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35039	    s//\1/
35040	    q
35041	  }
35042	  /^X\(\/\/\)[^/].*/{
35043	    s//\1/
35044	    q
35045	  }
35046	  /^X\(\/\/\)$/{
35047	    s//\1/
35048	    q
35049	  }
35050	  /^X\(\/\).*/{
35051	    s//\1/
35052	    q
35053	  }
35054	  s/.*/./; q'`
35055      test -d "$as_dir" && break
35056    done
35057    test -z "$as_dirs" || eval "mkdir $as_dirs"
35058  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35059echo "$as_me: error: cannot create directory $as_dir" >&2;}
35060   { (exit 1); exit 1; }; }; }
35061  ac_builddir=.
35062
35063case "$ac_dir" in
35064.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35065*)
35066  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35067  # A ".." for each directory in $ac_dir_suffix.
35068  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35069  case $ac_top_builddir_sub in
35070  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35071  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35072  esac ;;
35073esac
35074ac_abs_top_builddir=$ac_pwd
35075ac_abs_builddir=$ac_pwd$ac_dir_suffix
35076# for backward compatibility:
35077ac_top_builddir=$ac_top_build_prefix
35078
35079case $srcdir in
35080  .)  # We are building in place.
35081    ac_srcdir=.
35082    ac_top_srcdir=$ac_top_builddir_sub
35083    ac_abs_top_srcdir=$ac_pwd ;;
35084  [\\/]* | ?:[\\/]* )  # Absolute name.
35085    ac_srcdir=$srcdir$ac_dir_suffix;
35086    ac_top_srcdir=$srcdir
35087    ac_abs_top_srcdir=$srcdir ;;
35088  *) # Relative name.
35089    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35090    ac_top_srcdir=$ac_top_build_prefix$srcdir
35091    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35092esac
35093ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35094
35095
35096  case $ac_mode in
35097  :F)
35098  #
35099  # CONFIG_FILE
35100  #
35101
35102  case $INSTALL in
35103  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35104  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35105  esac
35106_ACEOF
35107
35108cat >>$CONFIG_STATUS <<\_ACEOF
35109# If the template does not know about datarootdir, expand it.
35110# FIXME: This hack should be removed a few years after 2.60.
35111ac_datarootdir_hack=; ac_datarootdir_seen=
35112
35113case `sed -n '/datarootdir/ {
35114  p
35115  q
35116}
35117/@datadir@/p
35118/@docdir@/p
35119/@infodir@/p
35120/@localedir@/p
35121/@mandir@/p
35122' $ac_file_inputs` in
35123*datarootdir*) ac_datarootdir_seen=yes;;
35124*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35125  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35126echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35127_ACEOF
35128cat >>$CONFIG_STATUS <<_ACEOF
35129  ac_datarootdir_hack='
35130  s&@datadir@&$datadir&g
35131  s&@docdir@&$docdir&g
35132  s&@infodir@&$infodir&g
35133  s&@localedir@&$localedir&g
35134  s&@mandir@&$mandir&g
35135    s&\\\${datarootdir}&$datarootdir&g' ;;
35136esac
35137_ACEOF
35138
35139# Neutralize VPATH when `$srcdir' = `.'.
35140# Shell code in configure.ac might set extrasub.
35141# FIXME: do we really want to maintain this feature?
35142cat >>$CONFIG_STATUS <<_ACEOF
35143  sed "$ac_vpsub
35144$extrasub
35145_ACEOF
35146cat >>$CONFIG_STATUS <<\_ACEOF
35147:t
35148/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35149s&@configure_input@&$configure_input&;t t
35150s&@top_builddir@&$ac_top_builddir_sub&;t t
35151s&@srcdir@&$ac_srcdir&;t t
35152s&@abs_srcdir@&$ac_abs_srcdir&;t t
35153s&@top_srcdir@&$ac_top_srcdir&;t t
35154s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35155s&@builddir@&$ac_builddir&;t t
35156s&@abs_builddir@&$ac_abs_builddir&;t t
35157s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35158s&@INSTALL@&$ac_INSTALL&;t t
35159$ac_datarootdir_hack
35160" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35161
35162test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35163  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35164  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35165  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35166which seems to be undefined.  Please make sure it is defined." >&5
35167echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35168which seems to be undefined.  Please make sure it is defined." >&2;}
35169
35170  rm -f "$tmp/stdin"
35171  case $ac_file in
35172  -) cat "$tmp/out"; rm -f "$tmp/out";;
35173  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35174  esac
35175 ;;
35176  :H)
35177  #
35178  # CONFIG_HEADER
35179  #
35180_ACEOF
35181
35182# Transform confdefs.h into a sed script `conftest.defines', that
35183# substitutes the proper values into config.h.in to produce config.h.
35184rm -f conftest.defines conftest.tail
35185# First, append a space to every undef/define line, to ease matching.
35186echo 's/$/ /' >conftest.defines
35187# Then, protect against being on the right side of a sed subst, or in
35188# an unquoted here document, in config.status.  If some macros were
35189# called several times there might be several #defines for the same
35190# symbol, which is useless.  But do not sort them, since the last
35191# AC_DEFINE must be honored.
35192ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35193# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35194# NAME is the cpp macro being defined, VALUE is the value it is being given.
35195# PARAMS is the parameter list in the macro definition--in most cases, it's
35196# just an empty string.
35197ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
35198ac_dB='\\)[	 (].*,\\1define\\2'
35199ac_dC=' '
35200ac_dD=' ,'
35201
35202uniq confdefs.h |
35203  sed -n '
35204	t rset
35205	:rset
35206	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
35207	t ok
35208	d
35209	:ok
35210	s/[\\&,]/\\&/g
35211	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35212	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35213  ' >>conftest.defines
35214
35215# Remove the space that was appended to ease matching.
35216# Then replace #undef with comments.  This is necessary, for
35217# example, in the case of _POSIX_SOURCE, which is predefined and required
35218# on some systems where configure will not decide to define it.
35219# (The regexp can be short, since the line contains either #define or #undef.)
35220echo 's/ $//
35221s,^[	 #]*u.*,/* & */,' >>conftest.defines
35222
35223# Break up conftest.defines:
35224ac_max_sed_lines=50
35225
35226# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35227# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35228# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35229# et cetera.
35230ac_in='$ac_file_inputs'
35231ac_out='"$tmp/out1"'
35232ac_nxt='"$tmp/out2"'
35233
35234while :
35235do
35236  # Write a here document:
35237    cat >>$CONFIG_STATUS <<_ACEOF
35238    # First, check the format of the line:
35239    cat >"\$tmp/defines.sed" <<\\CEOF
35240/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
35241/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
35242b
35243:def
35244_ACEOF
35245  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35246  echo 'CEOF
35247    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35248  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35249  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35250  grep . conftest.tail >/dev/null || break
35251  rm -f conftest.defines
35252  mv conftest.tail conftest.defines
35253done
35254rm -f conftest.defines conftest.tail
35255
35256echo "ac_result=$ac_in" >>$CONFIG_STATUS
35257cat >>$CONFIG_STATUS <<\_ACEOF
35258  if test x"$ac_file" != x-; then
35259    echo "/* $configure_input  */" >"$tmp/config.h"
35260    cat "$ac_result" >>"$tmp/config.h"
35261    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35262      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35263echo "$as_me: $ac_file is unchanged" >&6;}
35264    else
35265      rm -f $ac_file
35266      mv "$tmp/config.h" $ac_file
35267    fi
35268  else
35269    echo "/* $configure_input  */"
35270    cat "$ac_result"
35271  fi
35272  rm -f "$tmp/out12"
35273 ;;
35274
35275  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35276echo "$as_me: executing $ac_file commands" >&6;}
35277 ;;
35278  esac
35279
35280
35281  case $ac_file$ac_mode in
35282    "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35283   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35284    "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35285   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35286    "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35287   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35288    "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35289   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35290    "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35291   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35292    "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35293   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35294    "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35295   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35296    "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35297   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
35298    "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35299   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35300    "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35301   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35302    "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35303   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35304    "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35305   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35306    "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35307   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35308
35309  esac
35310done # for ac_tag
35311
35312
35313{ (exit 0); exit 0; }
35314_ACEOF
35315chmod +x $CONFIG_STATUS
35316ac_clean_files=$ac_clean_files_save
35317
35318
35319# configure is writing to config.log, and then calls config.status.
35320# config.status does its own redirection, appending to config.log.
35321# Unfortunately, on DOS this fails, as config.log is still kept open
35322# by configure, so config.status won't be able to write to it; its
35323# output is simply discarded.  So we exec the FD to /dev/null,
35324# effectively closing config.log, so it can be properly (re)opened and
35325# appended to by config.status.  When coming back to configure, we
35326# need to make the FD available again.
35327if test "$no_create" != yes; then
35328  ac_cs_success=:
35329  ac_config_status_args=
35330  test "$silent" = yes &&
35331    ac_config_status_args="$ac_config_status_args --quiet"
35332  exec 5>/dev/null
35333  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35334  exec 5>>config.log
35335  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35336  # would make configure fail if this is the last instruction.
35337  $ac_cs_success || { (exit 1); exit 1; }
35338fi
35339
35340#
35341# CONFIG_SUBDIRS section.
35342#
35343if test "$no_recursion" != yes; then
35344
35345  # Remove --cache-file and --srcdir arguments so they do not pile up.
35346  ac_sub_configure_args=
35347  ac_prev=
35348  eval "set x $ac_configure_args"
35349  shift
35350  for ac_arg
35351  do
35352    if test -n "$ac_prev"; then
35353      ac_prev=
35354      continue
35355    fi
35356    case $ac_arg in
35357    -cache-file | --cache-file | --cache-fil | --cache-fi \
35358    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35359      ac_prev=cache_file ;;
35360    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35361    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35362    | --c=*)
35363      ;;
35364    --config-cache | -C)
35365      ;;
35366    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35367      ac_prev=srcdir ;;
35368    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35369      ;;
35370    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35371      ac_prev=prefix ;;
35372    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35373      ;;
35374    *)
35375      case $ac_arg in
35376      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35377      esac
35378      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35379    esac
35380  done
35381
35382  # Always prepend --prefix to ensure using the same prefix
35383  # in subdir configurations.
35384  ac_arg="--prefix=$prefix"
35385  case $ac_arg in
35386  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35387  esac
35388  ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35389
35390  ac_popdir=`pwd`
35391  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35392
35393    # Do not complain, so a configure script can configure whichever
35394    # parts of a large source tree are present.
35395    test -d "$srcdir/$ac_dir" || continue
35396
35397    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35398    echo "$as_me:$LINENO: $ac_msg" >&5
35399    echo "$ac_msg" >&6
35400    { as_dir="$ac_dir"
35401  case $as_dir in #(
35402  -*) as_dir=./$as_dir;;
35403  esac
35404  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35405    as_dirs=
35406    while :; do
35407      case $as_dir in #(
35408      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35409      *) as_qdir=$as_dir;;
35410      esac
35411      as_dirs="'$as_qdir' $as_dirs"
35412      as_dir=`$as_dirname -- "$as_dir" ||
35413$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35414	 X"$as_dir" : 'X\(//\)[^/]' \| \
35415	 X"$as_dir" : 'X\(//\)$' \| \
35416	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35417echo X"$as_dir" |
35418    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35419	    s//\1/
35420	    q
35421	  }
35422	  /^X\(\/\/\)[^/].*/{
35423	    s//\1/
35424	    q
35425	  }
35426	  /^X\(\/\/\)$/{
35427	    s//\1/
35428	    q
35429	  }
35430	  /^X\(\/\).*/{
35431	    s//\1/
35432	    q
35433	  }
35434	  s/.*/./; q'`
35435      test -d "$as_dir" && break
35436    done
35437    test -z "$as_dirs" || eval "mkdir $as_dirs"
35438  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35439echo "$as_me: error: cannot create directory $as_dir" >&2;}
35440   { (exit 1); exit 1; }; }; }
35441    ac_builddir=.
35442
35443case "$ac_dir" in
35444.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35445*)
35446  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35447  # A ".." for each directory in $ac_dir_suffix.
35448  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35449  case $ac_top_builddir_sub in
35450  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35451  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35452  esac ;;
35453esac
35454ac_abs_top_builddir=$ac_pwd
35455ac_abs_builddir=$ac_pwd$ac_dir_suffix
35456# for backward compatibility:
35457ac_top_builddir=$ac_top_build_prefix
35458
35459case $srcdir in
35460  .)  # We are building in place.
35461    ac_srcdir=.
35462    ac_top_srcdir=$ac_top_builddir_sub
35463    ac_abs_top_srcdir=$ac_pwd ;;
35464  [\\/]* | ?:[\\/]* )  # Absolute name.
35465    ac_srcdir=$srcdir$ac_dir_suffix;
35466    ac_top_srcdir=$srcdir
35467    ac_abs_top_srcdir=$srcdir ;;
35468  *) # Relative name.
35469    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35470    ac_top_srcdir=$ac_top_build_prefix$srcdir
35471    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35472esac
35473ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35474
35475
35476    cd "$ac_dir"
35477
35478    # Check for guested configure; otherwise get Cygnus style configure.
35479    if test -f "$ac_srcdir/configure.gnu"; then
35480      ac_sub_configure=$ac_srcdir/configure.gnu
35481    elif test -f "$ac_srcdir/configure"; then
35482      ac_sub_configure=$ac_srcdir/configure
35483    elif test -f "$ac_srcdir/configure.in"; then
35484      # This should be Cygnus configure.
35485      ac_sub_configure=$ac_aux_dir/configure
35486    else
35487      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35488echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35489      ac_sub_configure=
35490    fi
35491
35492    # The recursion is here.
35493    if test -n "$ac_sub_configure"; then
35494      # Make the cache file name correct relative to the subdirectory.
35495      case $cache_file in
35496      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35497      *) # Relative name.
35498	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35499      esac
35500
35501      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35502echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35503      # The eval makes quoting arguments work.
35504      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35505	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35506	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35507echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35508   { (exit 1); exit 1; }; }
35509    fi
35510
35511    cd "$ac_popdir"
35512  done
35513fi
35514
35515