configure revision 6493798d831e3255faafc81de4ec598c06e4cdca
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.60 for llvm 2.7svn.
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-2009 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.7svn'
719PACKAGE_STRING='llvm 2.7svn'
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
811HOST_OS
812TARGET_OS
813LINKALL
814NOLINKALL
815LLVM_ON_UNIX
816LLVM_ON_WIN32
817ARCH
818ENDIAN
819CC
820CFLAGS
821LDFLAGS
822CPPFLAGS
823ac_ct_CC
824EXEEXT
825OBJEXT
826CPP
827GREP
828EGREP
829LLVM_CROSS_COMPILING
830BUILD_CC
831BUILD_EXEEXT
832BUILD_CXX
833CVSBUILD
834ENABLE_OPTIMIZED
835ENABLE_PROFILING
836DISABLE_ASSERTIONS
837ENABLE_EXPENSIVE_CHECKS
838EXPENSIVE_CHECKS
839DEBUG_RUNTIME
840JIT
841TARGET_HAS_JIT
842ENABLE_DOXYGEN
843ENABLE_THREADS
844ENABLE_PIC
845TARGETS_TO_BUILD
846LLVM_ENUM_TARGETS
847LLVM_ENUM_ASM_PRINTERS
848LLVM_ENUM_ASM_PARSERS
849ENABLE_CBE_PRINTF_A
850EXTRA_OPTIONS
851BINUTILS_INCDIR
852ENABLE_LLVMC_DYNAMIC
853ENABLE_LLVMC_DYNAMIC_PLUGINS
854CXX
855CXXFLAGS
856ac_ct_CXX
857NM
858ifGNUmake
859LN_S
860CMP
861CP
862DATE
863FIND
864MKDIR
865MV
866RANLIB
867RM
868SED
869TAR
870BINPWD
871GRAPHVIZ
872DOT
873FDP
874NEATO
875TWOPI
876CIRCO
877GV
878DOTTY
879PERL
880HAVE_PERL
881INSTALL_PROGRAM
882INSTALL_SCRIPT
883INSTALL_DATA
884BZIP2
885DOXYGEN
886GROFF
887GZIP
888POD2HTML
889POD2MAN
890RUNTEST
891TCLSH
892ZIP
893OCAMLC
894OCAMLOPT
895OCAMLDEP
896OCAMLDOC
897GAS
898INSTALL_LTDL_TRUE
899INSTALL_LTDL_FALSE
900CONVENIENCE_LTDL_TRUE
901CONVENIENCE_LTDL_FALSE
902LIBADD_DL
903ECHO
904AR
905STRIP
906CXXCPP
907F77
908FFLAGS
909ac_ct_F77
910LIBTOOL
911LLVMGCCCOMMAND
912LLVMGXXCOMMAND
913LLVMGCC
914LLVMGXX
915USE_UDIS86
916USE_OPROFILE
917HAVE_PTHREAD
918HUGE_VAL_SANITY
919ALLOCA
920MMAP_FILE
921LLVMCC1
922LLVMCC1PLUS
923LLVMGCCDIR
924LLVMGCCLIBEXEC
925LLVMGCC_VERSION
926LLVMGCC_MAJVERS
927LLVMGCC_LANGS
928SHLIBEXT
929LLVM_PREFIX
930LLVM_BINDIR
931LLVM_LIBDIR
932LLVM_DATADIR
933LLVM_DOCSDIR
934LLVM_ETCDIR
935LLVM_INCLUDEDIR
936LLVM_INFODIR
937LLVM_MANDIR
938LLVM_CONFIGTIME
939BINDINGS_TO_BUILD
940ALL_BINDINGS
941OCAML_LIBDIR
942ENABLE_VISIBILITY_INLINES_HIDDEN
943RPATH
944RDYNAMIC
945LIBOBJS
946LTLIBOBJS'
947ac_subst_files=''
948      ac_precious_vars='build_alias
949host_alias
950target_alias
951CC
952CFLAGS
953LDFLAGS
954CPPFLAGS
955CPP
956CXX
957CXXFLAGS
958CCC
959CXXCPP
960F77
961FFLAGS'
962ac_subdirs_all='projects/sample
963projects/privbracket
964projects/llvm-stacker
965projects/llvm-test
966projects/test-suite
967projects/llvm-reopt
968projects/llvm-gcc
969projects/llvm-java
970projects/llvm-tv
971projects/llvm-poolalloc
972projects/poolalloc
973projects/llvm-kernel'
974
975# Initialize some variables set by options.
976ac_init_help=
977ac_init_version=false
978# The variables have the same names as the options, with
979# dashes changed to underlines.
980cache_file=/dev/null
981exec_prefix=NONE
982no_create=
983no_recursion=
984prefix=NONE
985program_prefix=NONE
986program_suffix=NONE
987program_transform_name=s,x,x,
988silent=
989site=
990srcdir=
991verbose=
992x_includes=NONE
993x_libraries=NONE
994
995# Installation directory options.
996# These are left unexpanded so users can "make install exec_prefix=/foo"
997# and all the variables that are supposed to be based on exec_prefix
998# by default will actually change.
999# Use braces instead of parens because sh, perl, etc. also accept them.
1000# (The list follows the same order as the GNU Coding Standards.)
1001bindir='${exec_prefix}/bin'
1002sbindir='${exec_prefix}/sbin'
1003libexecdir='${exec_prefix}/libexec'
1004datarootdir='${prefix}/share'
1005datadir='${datarootdir}'
1006sysconfdir='${prefix}/etc'
1007sharedstatedir='${prefix}/com'
1008localstatedir='${prefix}/var'
1009includedir='${prefix}/include'
1010oldincludedir='/usr/include'
1011docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1012infodir='${datarootdir}/info'
1013htmldir='${docdir}'
1014dvidir='${docdir}'
1015pdfdir='${docdir}'
1016psdir='${docdir}'
1017libdir='${exec_prefix}/lib'
1018localedir='${datarootdir}/locale'
1019mandir='${datarootdir}/man'
1020
1021ac_prev=
1022ac_dashdash=
1023for ac_option
1024do
1025  # If the previous option needs an argument, assign it.
1026  if test -n "$ac_prev"; then
1027    eval $ac_prev=\$ac_option
1028    ac_prev=
1029    continue
1030  fi
1031
1032  case $ac_option in
1033  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1034  *)	ac_optarg=yes ;;
1035  esac
1036
1037  # Accept the important Cygnus configure options, so we can diagnose typos.
1038
1039  case $ac_dashdash$ac_option in
1040  --)
1041    ac_dashdash=yes ;;
1042
1043  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1044    ac_prev=bindir ;;
1045  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1046    bindir=$ac_optarg ;;
1047
1048  -build | --build | --buil | --bui | --bu)
1049    ac_prev=build_alias ;;
1050  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1051    build_alias=$ac_optarg ;;
1052
1053  -cache-file | --cache-file | --cache-fil | --cache-fi \
1054  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1055    ac_prev=cache_file ;;
1056  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1057  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1058    cache_file=$ac_optarg ;;
1059
1060  --config-cache | -C)
1061    cache_file=config.cache ;;
1062
1063  -datadir | --datadir | --datadi | --datad)
1064    ac_prev=datadir ;;
1065  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1066    datadir=$ac_optarg ;;
1067
1068  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1069  | --dataroo | --dataro | --datar)
1070    ac_prev=datarootdir ;;
1071  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1072  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1073    datarootdir=$ac_optarg ;;
1074
1075  -disable-* | --disable-*)
1076    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1077    # Reject names that are not valid shell variable names.
1078    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1079      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1080   { (exit 1); exit 1; }; }
1081    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1082    eval enable_$ac_feature=no ;;
1083
1084  -docdir | --docdir | --docdi | --doc | --do)
1085    ac_prev=docdir ;;
1086  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1087    docdir=$ac_optarg ;;
1088
1089  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1090    ac_prev=dvidir ;;
1091  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1092    dvidir=$ac_optarg ;;
1093
1094  -enable-* | --enable-*)
1095    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1096    # Reject names that are not valid shell variable names.
1097    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1098      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1099   { (exit 1); exit 1; }; }
1100    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1101    eval enable_$ac_feature=\$ac_optarg ;;
1102
1103  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1104  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1105  | --exec | --exe | --ex)
1106    ac_prev=exec_prefix ;;
1107  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1108  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1109  | --exec=* | --exe=* | --ex=*)
1110    exec_prefix=$ac_optarg ;;
1111
1112  -gas | --gas | --ga | --g)
1113    # Obsolete; use --with-gas.
1114    with_gas=yes ;;
1115
1116  -help | --help | --hel | --he | -h)
1117    ac_init_help=long ;;
1118  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1119    ac_init_help=recursive ;;
1120  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1121    ac_init_help=short ;;
1122
1123  -host | --host | --hos | --ho)
1124    ac_prev=host_alias ;;
1125  -host=* | --host=* | --hos=* | --ho=*)
1126    host_alias=$ac_optarg ;;
1127
1128  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1129    ac_prev=htmldir ;;
1130  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1131  | --ht=*)
1132    htmldir=$ac_optarg ;;
1133
1134  -includedir | --includedir | --includedi | --included | --include \
1135  | --includ | --inclu | --incl | --inc)
1136    ac_prev=includedir ;;
1137  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1138  | --includ=* | --inclu=* | --incl=* | --inc=*)
1139    includedir=$ac_optarg ;;
1140
1141  -infodir | --infodir | --infodi | --infod | --info | --inf)
1142    ac_prev=infodir ;;
1143  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1144    infodir=$ac_optarg ;;
1145
1146  -libdir | --libdir | --libdi | --libd)
1147    ac_prev=libdir ;;
1148  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1149    libdir=$ac_optarg ;;
1150
1151  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1152  | --libexe | --libex | --libe)
1153    ac_prev=libexecdir ;;
1154  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1155  | --libexe=* | --libex=* | --libe=*)
1156    libexecdir=$ac_optarg ;;
1157
1158  -localedir | --localedir | --localedi | --localed | --locale)
1159    ac_prev=localedir ;;
1160  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1161    localedir=$ac_optarg ;;
1162
1163  -localstatedir | --localstatedir | --localstatedi | --localstated \
1164  | --localstate | --localstat | --localsta | --localst | --locals)
1165    ac_prev=localstatedir ;;
1166  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1167  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1168    localstatedir=$ac_optarg ;;
1169
1170  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1171    ac_prev=mandir ;;
1172  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1173    mandir=$ac_optarg ;;
1174
1175  -nfp | --nfp | --nf)
1176    # Obsolete; use --without-fp.
1177    with_fp=no ;;
1178
1179  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1180  | --no-cr | --no-c | -n)
1181    no_create=yes ;;
1182
1183  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1184  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1185    no_recursion=yes ;;
1186
1187  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1188  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1189  | --oldin | --oldi | --old | --ol | --o)
1190    ac_prev=oldincludedir ;;
1191  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1192  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1193  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1194    oldincludedir=$ac_optarg ;;
1195
1196  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1197    ac_prev=prefix ;;
1198  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1199    prefix=$ac_optarg ;;
1200
1201  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1202  | --program-pre | --program-pr | --program-p)
1203    ac_prev=program_prefix ;;
1204  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1205  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1206    program_prefix=$ac_optarg ;;
1207
1208  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1209  | --program-suf | --program-su | --program-s)
1210    ac_prev=program_suffix ;;
1211  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1212  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1213    program_suffix=$ac_optarg ;;
1214
1215  -program-transform-name | --program-transform-name \
1216  | --program-transform-nam | --program-transform-na \
1217  | --program-transform-n | --program-transform- \
1218  | --program-transform | --program-transfor \
1219  | --program-transfo | --program-transf \
1220  | --program-trans | --program-tran \
1221  | --progr-tra | --program-tr | --program-t)
1222    ac_prev=program_transform_name ;;
1223  -program-transform-name=* | --program-transform-name=* \
1224  | --program-transform-nam=* | --program-transform-na=* \
1225  | --program-transform-n=* | --program-transform-=* \
1226  | --program-transform=* | --program-transfor=* \
1227  | --program-transfo=* | --program-transf=* \
1228  | --program-trans=* | --program-tran=* \
1229  | --progr-tra=* | --program-tr=* | --program-t=*)
1230    program_transform_name=$ac_optarg ;;
1231
1232  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1233    ac_prev=pdfdir ;;
1234  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1235    pdfdir=$ac_optarg ;;
1236
1237  -psdir | --psdir | --psdi | --psd | --ps)
1238    ac_prev=psdir ;;
1239  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1240    psdir=$ac_optarg ;;
1241
1242  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1243  | -silent | --silent | --silen | --sile | --sil)
1244    silent=yes ;;
1245
1246  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1247    ac_prev=sbindir ;;
1248  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1249  | --sbi=* | --sb=*)
1250    sbindir=$ac_optarg ;;
1251
1252  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1253  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1254  | --sharedst | --shareds | --shared | --share | --shar \
1255  | --sha | --sh)
1256    ac_prev=sharedstatedir ;;
1257  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1258  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1259  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1260  | --sha=* | --sh=*)
1261    sharedstatedir=$ac_optarg ;;
1262
1263  -site | --site | --sit)
1264    ac_prev=site ;;
1265  -site=* | --site=* | --sit=*)
1266    site=$ac_optarg ;;
1267
1268  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1269    ac_prev=srcdir ;;
1270  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1271    srcdir=$ac_optarg ;;
1272
1273  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1274  | --syscon | --sysco | --sysc | --sys | --sy)
1275    ac_prev=sysconfdir ;;
1276  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1277  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1278    sysconfdir=$ac_optarg ;;
1279
1280  -target | --target | --targe | --targ | --tar | --ta | --t)
1281    ac_prev=target_alias ;;
1282  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1283    target_alias=$ac_optarg ;;
1284
1285  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1286    verbose=yes ;;
1287
1288  -version | --version | --versio | --versi | --vers | -V)
1289    ac_init_version=: ;;
1290
1291  -with-* | --with-*)
1292    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1293    # Reject names that are not valid shell variable names.
1294    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1295      { echo "$as_me: error: invalid package name: $ac_package" >&2
1296   { (exit 1); exit 1; }; }
1297    ac_package=`echo $ac_package| sed 's/-/_/g'`
1298    eval with_$ac_package=\$ac_optarg ;;
1299
1300  -without-* | --without-*)
1301    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1302    # Reject names that are not valid shell variable names.
1303    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1304      { echo "$as_me: error: invalid package name: $ac_package" >&2
1305   { (exit 1); exit 1; }; }
1306    ac_package=`echo $ac_package | sed 's/-/_/g'`
1307    eval with_$ac_package=no ;;
1308
1309  --x)
1310    # Obsolete; use --with-x.
1311    with_x=yes ;;
1312
1313  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1314  | --x-incl | --x-inc | --x-in | --x-i)
1315    ac_prev=x_includes ;;
1316  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1317  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1318    x_includes=$ac_optarg ;;
1319
1320  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1321  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1322    ac_prev=x_libraries ;;
1323  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1324  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1325    x_libraries=$ac_optarg ;;
1326
1327  -*) { echo "$as_me: error: unrecognized option: $ac_option
1328Try \`$0 --help' for more information." >&2
1329   { (exit 1); exit 1; }; }
1330    ;;
1331
1332  *=*)
1333    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1334    # Reject names that are not valid shell variable names.
1335    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1336      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1337   { (exit 1); exit 1; }; }
1338    eval $ac_envvar=\$ac_optarg
1339    export $ac_envvar ;;
1340
1341  *)
1342    # FIXME: should be removed in autoconf 3.0.
1343    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1344    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1345      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1346    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1347    ;;
1348
1349  esac
1350done
1351
1352if test -n "$ac_prev"; then
1353  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1354  { echo "$as_me: error: missing argument to $ac_option" >&2
1355   { (exit 1); exit 1; }; }
1356fi
1357
1358# Be sure to have absolute directory names.
1359for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1360		datadir sysconfdir sharedstatedir localstatedir includedir \
1361		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1362		libdir localedir mandir
1363do
1364  eval ac_val=\$$ac_var
1365  case $ac_val in
1366    [\\/$]* | ?:[\\/]* )  continue;;
1367    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1368  esac
1369  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1370   { (exit 1); exit 1; }; }
1371done
1372
1373# There might be people who depend on the old broken behavior: `$host'
1374# used to hold the argument of --host etc.
1375# FIXME: To remove some day.
1376build=$build_alias
1377host=$host_alias
1378target=$target_alias
1379
1380# FIXME: To remove some day.
1381if test "x$host_alias" != x; then
1382  if test "x$build_alias" = x; then
1383    cross_compiling=maybe
1384    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1385    If a cross compiler is detected then cross compile mode will be used." >&2
1386  elif test "x$build_alias" != "x$host_alias"; then
1387    cross_compiling=yes
1388  fi
1389fi
1390
1391ac_tool_prefix=
1392test -n "$host_alias" && ac_tool_prefix=$host_alias-
1393
1394test "$silent" = yes && exec 6>/dev/null
1395
1396
1397ac_pwd=`pwd` && test -n "$ac_pwd" &&
1398ac_ls_di=`ls -di .` &&
1399ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1400  { echo "$as_me: error: Working directory cannot be determined" >&2
1401   { (exit 1); exit 1; }; }
1402test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1403  { echo "$as_me: error: pwd does not report name of working directory" >&2
1404   { (exit 1); exit 1; }; }
1405
1406
1407# Find the source files, if location was not specified.
1408if test -z "$srcdir"; then
1409  ac_srcdir_defaulted=yes
1410  # Try the directory containing this script, then the parent directory.
1411  ac_confdir=`$as_dirname -- "$0" ||
1412$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1413	 X"$0" : 'X\(//\)[^/]' \| \
1414	 X"$0" : 'X\(//\)$' \| \
1415	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1416echo X"$0" |
1417    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1418	    s//\1/
1419	    q
1420	  }
1421	  /^X\(\/\/\)[^/].*/{
1422	    s//\1/
1423	    q
1424	  }
1425	  /^X\(\/\/\)$/{
1426	    s//\1/
1427	    q
1428	  }
1429	  /^X\(\/\).*/{
1430	    s//\1/
1431	    q
1432	  }
1433	  s/.*/./; q'`
1434  srcdir=$ac_confdir
1435  if test ! -r "$srcdir/$ac_unique_file"; then
1436    srcdir=..
1437  fi
1438else
1439  ac_srcdir_defaulted=no
1440fi
1441if test ! -r "$srcdir/$ac_unique_file"; then
1442  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1443  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1444   { (exit 1); exit 1; }; }
1445fi
1446ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1447ac_abs_confdir=`(
1448	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1449   { (exit 1); exit 1; }; }
1450	pwd)`
1451# When building in place, set srcdir=.
1452if test "$ac_abs_confdir" = "$ac_pwd"; then
1453  srcdir=.
1454fi
1455# Remove unnecessary trailing slashes from srcdir.
1456# Double slashes in file names in object file debugging info
1457# mess up M-x gdb in Emacs.
1458case $srcdir in
1459*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1460esac
1461for ac_var in $ac_precious_vars; do
1462  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1463  eval ac_env_${ac_var}_value=\$${ac_var}
1464  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1465  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1466done
1467
1468#
1469# Report the --help message.
1470#
1471if test "$ac_init_help" = "long"; then
1472  # Omit some internal or obsolete options to make the list less imposing.
1473  # This message is too long to be a string in the A/UX 3.1 sh.
1474  cat <<_ACEOF
1475\`configure' configures llvm 2.7svn to adapt to many kinds of systems.
1476
1477Usage: $0 [OPTION]... [VAR=VALUE]...
1478
1479To assign environment variables (e.g., CC, CFLAGS...), specify them as
1480VAR=VALUE.  See below for descriptions of some of the useful variables.
1481
1482Defaults for the options are specified in brackets.
1483
1484Configuration:
1485  -h, --help              display this help and exit
1486      --help=short        display options specific to this package
1487      --help=recursive    display the short help of all the included packages
1488  -V, --version           display version information and exit
1489  -q, --quiet, --silent   do not print \`checking...' messages
1490      --cache-file=FILE   cache test results in FILE [disabled]
1491  -C, --config-cache      alias for \`--cache-file=config.cache'
1492  -n, --no-create         do not create output files
1493      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1494
1495Installation directories:
1496  --prefix=PREFIX         install architecture-independent files in PREFIX
1497			  [$ac_default_prefix]
1498  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1499			  [PREFIX]
1500
1501By default, \`make install' will install all the files in
1502\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1503an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1504for instance \`--prefix=\$HOME'.
1505
1506For better control, use the options below.
1507
1508Fine tuning of the installation directories:
1509  --bindir=DIR           user executables [EPREFIX/bin]
1510  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1511  --libexecdir=DIR       program executables [EPREFIX/libexec]
1512  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1513  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1514  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1515  --libdir=DIR           object code libraries [EPREFIX/lib]
1516  --includedir=DIR       C header files [PREFIX/include]
1517  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1518  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1519  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1520  --infodir=DIR          info documentation [DATAROOTDIR/info]
1521  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1522  --mandir=DIR           man documentation [DATAROOTDIR/man]
1523  --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1524  --htmldir=DIR          html documentation [DOCDIR]
1525  --dvidir=DIR           dvi documentation [DOCDIR]
1526  --pdfdir=DIR           pdf documentation [DOCDIR]
1527  --psdir=DIR            ps documentation [DOCDIR]
1528_ACEOF
1529
1530  cat <<\_ACEOF
1531
1532System types:
1533  --build=BUILD     configure for building on BUILD [guessed]
1534  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1535  --target=TARGET   configure for building compilers for TARGET [HOST]
1536_ACEOF
1537fi
1538
1539if test -n "$ac_init_help"; then
1540  case $ac_init_help in
1541     short | recursive ) echo "Configuration of llvm 2.7svn:";;
1542   esac
1543  cat <<\_ACEOF
1544
1545Optional Features:
1546  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1547  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1548  --enable-optimized      Compile with optimizations enabled (default is NO)
1549  --enable-profiling      Compile with profiling enabled (default is NO)
1550  --enable-assertions     Compile with assertion checks enabled (default is
1551                          YES)
1552  --enable-expensive-checks
1553                          Compile with expensive debug checks enabled (default
1554                          is NO)
1555  --enable-debug-runtime  Build runtime libs with debug symbols (default is
1556                          NO)
1557  --enable-jit            Enable Just In Time Compiling (default is YES)
1558  --enable-doxygen        Build doxygen documentation (default is NO)
1559  --enable-threads        Use threads if available (default is YES)
1560  --enable-pic            Build LLVM with Position Independent Code (default
1561                          is YES)
1562  --enable-targets        Build specific host targets:
1563                          all,host-only,{target-name} (default=all)
1564  --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1565                          %a (default is YES)
1566  --enable-bindings       Build specific language bindings:
1567                          all,auto,none,{binding-name} (default=auto)
1568  --enable-libffi         Check for the presence of libffi (default is YES)
1569  --enable-llvmc-dynamic  Link LLVMC dynamically (default is NO, unless on
1570                          Win32)
1571  --enable-llvmc-dynamic-plugins
1572                          Enable dynamic LLVMC plugins (default is YES)
1573  --enable-ltdl-install   install libltdl
1574  --enable-shared[=PKGS]  build shared libraries
1575                          [default=yes]
1576  --enable-static[=PKGS]  build static libraries
1577                          [default=yes]
1578  --enable-fast-install[=PKGS]
1579                          optimize for fast installation
1580                          [default=yes]
1581  --disable-libtool-lock  avoid locking (might break parallel builds)
1582
1583Optional Packages:
1584  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1585  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1586  --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1587                          searches PATH)
1588  --with-llvmgcc          Specify location of llvm-gcc driver (default
1589                          searches PATH)
1590  --with-llvmgxx          Specify location of llvm-g++ driver (default
1591                          searches PATH)
1592  --with-extra-options    Specify additional options to compile LLVM with
1593  --with-ocaml-libdir     Specify install location for ocaml bindings (default
1594                          is stdlib)
1595  --with-binutils-include Specify path to binutils/include/ containing
1596                          plugin-api.h file for gold plugin.
1597  --with-tclinclude       directory where tcl headers are
1598  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1599  --with-pic              try to use only PIC/non-PIC objects [default=use
1600                          both]
1601  --with-tags[=TAGS]      include additional configurations [automatic]
1602  --with-udis86=<path>    Use udis86 external x86 disassembler library
1603  --with-oprofile=<prefix>
1604                          Tell OProfile >= 0.9.4 how to symbolize JIT output
1605
1606Some influential environment variables:
1607  CC          C compiler command
1608  CFLAGS      C compiler flags
1609  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1610              nonstandard directory <lib dir>
1611  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1612              you have headers in a nonstandard directory <include dir>
1613  CPP         C preprocessor
1614  CXX         C++ compiler command
1615  CXXFLAGS    C++ compiler flags
1616  CXXCPP      C++ preprocessor
1617  F77         Fortran 77 compiler command
1618  FFLAGS      Fortran 77 compiler flags
1619
1620Use these variables to override the choices made by `configure' or to help
1621it to find libraries and programs with nonstandard names/locations.
1622
1623Report bugs to <llvmbugs@cs.uiuc.edu>.
1624_ACEOF
1625ac_status=$?
1626fi
1627
1628if test "$ac_init_help" = "recursive"; then
1629  # If there are subdirs, report their specific --help.
1630  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1631    test -d "$ac_dir" || continue
1632    ac_builddir=.
1633
1634case "$ac_dir" in
1635.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1636*)
1637  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1638  # A ".." for each directory in $ac_dir_suffix.
1639  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1640  case $ac_top_builddir_sub in
1641  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1642  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1643  esac ;;
1644esac
1645ac_abs_top_builddir=$ac_pwd
1646ac_abs_builddir=$ac_pwd$ac_dir_suffix
1647# for backward compatibility:
1648ac_top_builddir=$ac_top_build_prefix
1649
1650case $srcdir in
1651  .)  # We are building in place.
1652    ac_srcdir=.
1653    ac_top_srcdir=$ac_top_builddir_sub
1654    ac_abs_top_srcdir=$ac_pwd ;;
1655  [\\/]* | ?:[\\/]* )  # Absolute name.
1656    ac_srcdir=$srcdir$ac_dir_suffix;
1657    ac_top_srcdir=$srcdir
1658    ac_abs_top_srcdir=$srcdir ;;
1659  *) # Relative name.
1660    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1661    ac_top_srcdir=$ac_top_build_prefix$srcdir
1662    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1663esac
1664ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1665
1666    cd "$ac_dir" || { ac_status=$?; continue; }
1667    # Check for guested configure.
1668    if test -f "$ac_srcdir/configure.gnu"; then
1669      echo &&
1670      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1671    elif test -f "$ac_srcdir/configure"; then
1672      echo &&
1673      $SHELL "$ac_srcdir/configure" --help=recursive
1674    else
1675      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1676    fi || ac_status=$?
1677    cd "$ac_pwd" || { ac_status=$?; break; }
1678  done
1679fi
1680
1681test -n "$ac_init_help" && exit $ac_status
1682if $ac_init_version; then
1683  cat <<\_ACEOF
1684llvm configure 2.7svn
1685generated by GNU Autoconf 2.60
1686
1687Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16882002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1689This configure script is free software; the Free Software Foundation
1690gives unlimited permission to copy, distribute and modify it.
1691
1692Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
1693_ACEOF
1694  exit
1695fi
1696cat >config.log <<_ACEOF
1697This file contains any messages produced by compilers while
1698running configure, to aid debugging if configure makes a mistake.
1699
1700It was created by llvm $as_me 2.7svn, which was
1701generated by GNU Autoconf 2.60.  Invocation command line was
1702
1703  $ $0 $@
1704
1705_ACEOF
1706exec 5>>config.log
1707{
1708cat <<_ASUNAME
1709## --------- ##
1710## Platform. ##
1711## --------- ##
1712
1713hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1714uname -m = `(uname -m) 2>/dev/null || echo unknown`
1715uname -r = `(uname -r) 2>/dev/null || echo unknown`
1716uname -s = `(uname -s) 2>/dev/null || echo unknown`
1717uname -v = `(uname -v) 2>/dev/null || echo unknown`
1718
1719/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1720/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1721
1722/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1723/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1724/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1725/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1726/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1727/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1728/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1729
1730_ASUNAME
1731
1732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1733for as_dir in $PATH
1734do
1735  IFS=$as_save_IFS
1736  test -z "$as_dir" && as_dir=.
1737  echo "PATH: $as_dir"
1738done
1739IFS=$as_save_IFS
1740
1741} >&5
1742
1743cat >&5 <<_ACEOF
1744
1745
1746## ----------- ##
1747## Core tests. ##
1748## ----------- ##
1749
1750_ACEOF
1751
1752
1753# Keep a trace of the command line.
1754# Strip out --no-create and --no-recursion so they do not pile up.
1755# Strip out --silent because we don't want to record it for future runs.
1756# Also quote any args containing shell meta-characters.
1757# Make two passes to allow for proper duplicate-argument suppression.
1758ac_configure_args=
1759ac_configure_args0=
1760ac_configure_args1=
1761ac_must_keep_next=false
1762for ac_pass in 1 2
1763do
1764  for ac_arg
1765  do
1766    case $ac_arg in
1767    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1768    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1769    | -silent | --silent | --silen | --sile | --sil)
1770      continue ;;
1771    *\'*)
1772      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1773    esac
1774    case $ac_pass in
1775    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1776    2)
1777      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1778      if test $ac_must_keep_next = true; then
1779	ac_must_keep_next=false # Got value, back to normal.
1780      else
1781	case $ac_arg in
1782	  *=* | --config-cache | -C | -disable-* | --disable-* \
1783	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1784	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1785	  | -with-* | --with-* | -without-* | --without-* | --x)
1786	    case "$ac_configure_args0 " in
1787	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1788	    esac
1789	    ;;
1790	  -* ) ac_must_keep_next=true ;;
1791	esac
1792      fi
1793      ac_configure_args="$ac_configure_args '$ac_arg'"
1794      ;;
1795    esac
1796  done
1797done
1798$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1799$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1800
1801# When interrupted or exit'd, cleanup temporary files, and complete
1802# config.log.  We remove comments because anyway the quotes in there
1803# would cause problems or look ugly.
1804# WARNING: Use '\'' to represent an apostrophe within the trap.
1805# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1806trap 'exit_status=$?
1807  # Save into config.log some information that might help in debugging.
1808  {
1809    echo
1810
1811    cat <<\_ASBOX
1812## ---------------- ##
1813## Cache variables. ##
1814## ---------------- ##
1815_ASBOX
1816    echo
1817    # The following way of writing the cache mishandles newlines in values,
1818(
1819  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1820    eval ac_val=\$$ac_var
1821    case $ac_val in #(
1822    *${as_nl}*)
1823      case $ac_var in #(
1824      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1825echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1826      esac
1827      case $ac_var in #(
1828      _ | IFS | as_nl) ;; #(
1829      *) $as_unset $ac_var ;;
1830      esac ;;
1831    esac
1832  done
1833  (set) 2>&1 |
1834    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1835    *${as_nl}ac_space=\ *)
1836      sed -n \
1837	"s/'\''/'\''\\\\'\'''\''/g;
1838	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1839      ;; #(
1840    *)
1841      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1842      ;;
1843    esac |
1844    sort
1845)
1846    echo
1847
1848    cat <<\_ASBOX
1849## ----------------- ##
1850## Output variables. ##
1851## ----------------- ##
1852_ASBOX
1853    echo
1854    for ac_var in $ac_subst_vars
1855    do
1856      eval ac_val=\$$ac_var
1857      case $ac_val in
1858      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1859      esac
1860      echo "$ac_var='\''$ac_val'\''"
1861    done | sort
1862    echo
1863
1864    if test -n "$ac_subst_files"; then
1865      cat <<\_ASBOX
1866## ------------------- ##
1867## File substitutions. ##
1868## ------------------- ##
1869_ASBOX
1870      echo
1871      for ac_var in $ac_subst_files
1872      do
1873	eval ac_val=\$$ac_var
1874	case $ac_val in
1875	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1876	esac
1877	echo "$ac_var='\''$ac_val'\''"
1878      done | sort
1879      echo
1880    fi
1881
1882    if test -s confdefs.h; then
1883      cat <<\_ASBOX
1884## ----------- ##
1885## confdefs.h. ##
1886## ----------- ##
1887_ASBOX
1888      echo
1889      cat confdefs.h
1890      echo
1891    fi
1892    test "$ac_signal" != 0 &&
1893      echo "$as_me: caught signal $ac_signal"
1894    echo "$as_me: exit $exit_status"
1895  } >&5
1896  rm -f core *.core core.conftest.* &&
1897    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1898    exit $exit_status
1899' 0
1900for ac_signal in 1 2 13 15; do
1901  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1902done
1903ac_signal=0
1904
1905# confdefs.h avoids OS command line length limits that DEFS can exceed.
1906rm -f -r conftest* confdefs.h
1907
1908# Predefined preprocessor variables.
1909
1910cat >>confdefs.h <<_ACEOF
1911#define PACKAGE_NAME "$PACKAGE_NAME"
1912_ACEOF
1913
1914
1915cat >>confdefs.h <<_ACEOF
1916#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1917_ACEOF
1918
1919
1920cat >>confdefs.h <<_ACEOF
1921#define PACKAGE_VERSION "$PACKAGE_VERSION"
1922_ACEOF
1923
1924
1925cat >>confdefs.h <<_ACEOF
1926#define PACKAGE_STRING "$PACKAGE_STRING"
1927_ACEOF
1928
1929
1930cat >>confdefs.h <<_ACEOF
1931#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1932_ACEOF
1933
1934
1935# Let the site file select an alternate cache file if it wants to.
1936# Prefer explicitly selected file to automatically selected ones.
1937if test -n "$CONFIG_SITE"; then
1938  set x "$CONFIG_SITE"
1939elif test "x$prefix" != xNONE; then
1940  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1941else
1942  set x "$ac_default_prefix/share/config.site" \
1943	"$ac_default_prefix/etc/config.site"
1944fi
1945shift
1946for ac_site_file
1947do
1948  if test -r "$ac_site_file"; then
1949    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1950echo "$as_me: loading site script $ac_site_file" >&6;}
1951    sed 's/^/| /' "$ac_site_file" >&5
1952    . "$ac_site_file"
1953  fi
1954done
1955
1956if test -r "$cache_file"; then
1957  # Some versions of bash will fail to source /dev/null (special
1958  # files actually), so we avoid doing that.
1959  if test -f "$cache_file"; then
1960    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1961echo "$as_me: loading cache $cache_file" >&6;}
1962    case $cache_file in
1963      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1964      *)                      . "./$cache_file";;
1965    esac
1966  fi
1967else
1968  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1969echo "$as_me: creating cache $cache_file" >&6;}
1970  >$cache_file
1971fi
1972
1973# Check that the precious variables saved in the cache have kept the same
1974# value.
1975ac_cache_corrupted=false
1976for ac_var in $ac_precious_vars; do
1977  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1978  eval ac_new_set=\$ac_env_${ac_var}_set
1979  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1980  eval ac_new_val=\$ac_env_${ac_var}_value
1981  case $ac_old_set,$ac_new_set in
1982    set,)
1983      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1984echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1985      ac_cache_corrupted=: ;;
1986    ,set)
1987      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1988echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1989      ac_cache_corrupted=: ;;
1990    ,);;
1991    *)
1992      if test "x$ac_old_val" != "x$ac_new_val"; then
1993	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1994echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1995	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1996echo "$as_me:   former value:  $ac_old_val" >&2;}
1997	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1998echo "$as_me:   current value: $ac_new_val" >&2;}
1999	ac_cache_corrupted=:
2000      fi;;
2001  esac
2002  # Pass precious variables to config.status.
2003  if test "$ac_new_set" = set; then
2004    case $ac_new_val in
2005    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2006    *) ac_arg=$ac_var=$ac_new_val ;;
2007    esac
2008    case " $ac_configure_args " in
2009      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2010      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2011    esac
2012  fi
2013done
2014if $ac_cache_corrupted; then
2015  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2016echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2017  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2018echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2019   { (exit 1); exit 1; }; }
2020fi
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046ac_ext=c
2047ac_cpp='$CPP $CPPFLAGS'
2048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2050ac_compiler_gnu=$ac_cv_c_compiler_gnu
2051
2052
2053
2054LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
2055
2056
2057
2058
2059
2060
2061
2062ac_aux_dir=
2063for ac_dir in autoconf "$srcdir"/autoconf; do
2064  if test -f "$ac_dir/install-sh"; then
2065    ac_aux_dir=$ac_dir
2066    ac_install_sh="$ac_aux_dir/install-sh -c"
2067    break
2068  elif test -f "$ac_dir/install.sh"; then
2069    ac_aux_dir=$ac_dir
2070    ac_install_sh="$ac_aux_dir/install.sh -c"
2071    break
2072  elif test -f "$ac_dir/shtool"; then
2073    ac_aux_dir=$ac_dir
2074    ac_install_sh="$ac_aux_dir/shtool install -c"
2075    break
2076  fi
2077done
2078if test -z "$ac_aux_dir"; then
2079  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2080echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2081   { (exit 1); exit 1; }; }
2082fi
2083
2084# These three variables are undocumented and unsupported,
2085# and are intended to be withdrawn in a future Autoconf release.
2086# They can cause serious problems if a builder's source tree is in a directory
2087# whose full name contains unusual characters.
2088ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2089ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2090ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2091
2092
2093
2094if test ${srcdir} != "." ; then
2095  if test -f ${srcdir}/include/llvm/Config/config.h ; then
2096    { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2097echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2098   { (exit 1); exit 1; }; }
2099  fi
2100fi
2101
2102for i in `ls ${srcdir}/projects`
2103do
2104  if test -d ${srcdir}/projects/${i} ; then
2105    case ${i} in
2106      CVS) ;;
2107      sample)       subdirs="$subdirs projects/sample"
2108    ;;
2109      privbracket)  subdirs="$subdirs projects/privbracket"
2110 ;;
2111      llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2112 ;;
2113      # llvm-test is the old name of the test-suite, kept here for backwards
2114      # compatibility
2115      llvm-test)    subdirs="$subdirs projects/llvm-test"
2116 ;;
2117      test-suite)   subdirs="$subdirs projects/test-suite"
2118 ;;
2119      llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2120;;
2121      llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2122  ;;
2123      llvm-java)    subdirs="$subdirs projects/llvm-java"
2124 ;;
2125      llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2126   ;;
2127      llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2128 ;;
2129      poolalloc)    subdirs="$subdirs projects/poolalloc"
2130 ;;
2131      llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2132 ;;
2133      *)
2134        { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2135echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2136        ;;
2137    esac
2138  fi
2139done
2140
2141
2142# Make sure we can run config.sub.
2143$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2144  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2145echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2146   { (exit 1); exit 1; }; }
2147
2148{ echo "$as_me:$LINENO: checking build system type" >&5
2149echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2150if test "${ac_cv_build+set}" = set; then
2151  echo $ECHO_N "(cached) $ECHO_C" >&6
2152else
2153  ac_build_alias=$build_alias
2154test "x$ac_build_alias" = x &&
2155  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2156test "x$ac_build_alias" = x &&
2157  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2158echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2159   { (exit 1); exit 1; }; }
2160ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2161  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2162echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2163   { (exit 1); exit 1; }; }
2164
2165fi
2166{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2167echo "${ECHO_T}$ac_cv_build" >&6; }
2168case $ac_cv_build in
2169*-*-*) ;;
2170*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2171echo "$as_me: error: invalid value of canonical build" >&2;}
2172   { (exit 1); exit 1; }; };;
2173esac
2174build=$ac_cv_build
2175ac_save_IFS=$IFS; IFS='-'
2176set x $ac_cv_build
2177shift
2178build_cpu=$1
2179build_vendor=$2
2180shift; shift
2181# Remember, the first character of IFS is used to create $*,
2182# except with old shells:
2183build_os=$*
2184IFS=$ac_save_IFS
2185case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2186
2187
2188{ echo "$as_me:$LINENO: checking host system type" >&5
2189echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2190if test "${ac_cv_host+set}" = set; then
2191  echo $ECHO_N "(cached) $ECHO_C" >&6
2192else
2193  if test "x$host_alias" = x; then
2194  ac_cv_host=$ac_cv_build
2195else
2196  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2197    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2198echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2199   { (exit 1); exit 1; }; }
2200fi
2201
2202fi
2203{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2204echo "${ECHO_T}$ac_cv_host" >&6; }
2205case $ac_cv_host in
2206*-*-*) ;;
2207*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2208echo "$as_me: error: invalid value of canonical host" >&2;}
2209   { (exit 1); exit 1; }; };;
2210esac
2211host=$ac_cv_host
2212ac_save_IFS=$IFS; IFS='-'
2213set x $ac_cv_host
2214shift
2215host_cpu=$1
2216host_vendor=$2
2217shift; shift
2218# Remember, the first character of IFS is used to create $*,
2219# except with old shells:
2220host_os=$*
2221IFS=$ac_save_IFS
2222case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2223
2224
2225{ echo "$as_me:$LINENO: checking target system type" >&5
2226echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2227if test "${ac_cv_target+set}" = set; then
2228  echo $ECHO_N "(cached) $ECHO_C" >&6
2229else
2230  if test "x$target_alias" = x; then
2231  ac_cv_target=$ac_cv_host
2232else
2233  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2234    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2235echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2236   { (exit 1); exit 1; }; }
2237fi
2238
2239fi
2240{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2241echo "${ECHO_T}$ac_cv_target" >&6; }
2242case $ac_cv_target in
2243*-*-*) ;;
2244*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2245echo "$as_me: error: invalid value of canonical target" >&2;}
2246   { (exit 1); exit 1; }; };;
2247esac
2248target=$ac_cv_target
2249ac_save_IFS=$IFS; IFS='-'
2250set x $ac_cv_target
2251shift
2252target_cpu=$1
2253target_vendor=$2
2254shift; shift
2255# Remember, the first character of IFS is used to create $*,
2256# except with old shells:
2257target_os=$*
2258IFS=$ac_save_IFS
2259case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2260
2261
2262# The aliases save the names the user supplied, while $host etc.
2263# will get canonicalized.
2264test -n "$target_alias" &&
2265  test "$program_prefix$program_suffix$program_transform_name" = \
2266    NONENONEs,x,x, &&
2267  program_prefix=${target_alias}-
2268
2269{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2270echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2271if test "${llvm_cv_os_type+set}" = set; then
2272  echo $ECHO_N "(cached) $ECHO_C" >&6
2273else
2274  case $host in
2275  *-*-aix*)
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="AIX"
2279    llvm_cv_platform_type="Unix" ;;
2280  *-*-irix*)
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="IRIX"
2284    llvm_cv_platform_type="Unix" ;;
2285  *-*-cygwin*)
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="Cygwin"
2289    llvm_cv_platform_type="Unix" ;;
2290  *-*-darwin*)
2291    llvm_cv_link_all_option="-Wl,-all_load"
2292    llvm_cv_no_link_all_option="-Wl,-noall_load"
2293    llvm_cv_os_type="Darwin"
2294    llvm_cv_platform_type="Unix" ;;
2295  *-*-freebsd*)
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="FreeBSD"
2299    llvm_cv_platform_type="Unix" ;;
2300  *-*-openbsd*)
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="OpenBSD"
2304    llvm_cv_platform_type="Unix" ;;
2305  *-*-netbsd*)
2306    llvm_cv_link_all_option="-Wl,--whole-archive"
2307    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2308    llvm_cv_os_type="NetBSD"
2309    llvm_cv_platform_type="Unix" ;;
2310  *-*-dragonfly*)
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="DragonFly"
2314    llvm_cv_platform_type="Unix" ;;
2315  *-*-hpux*)
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="HP-UX"
2319    llvm_cv_platform_type="Unix" ;;
2320  *-*-interix*)
2321    llvm_cv_link_all_option="-Wl,--whole-archive"
2322    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2323    llvm_cv_os_type="Interix"
2324    llvm_cv_platform_type="Unix" ;;
2325  *-*-linux*)
2326    llvm_cv_link_all_option="-Wl,--whole-archive"
2327    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2328    llvm_cv_os_type="Linux"
2329    llvm_cv_platform_type="Unix" ;;
2330  *-*-solaris*)
2331    llvm_cv_link_all_option="-Wl,-z,allextract"
2332    llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2333    llvm_cv_os_type="SunOS"
2334    llvm_cv_platform_type="Unix" ;;
2335  *-*-win32*)
2336    llvm_cv_link_all_option="-Wl,--whole-archive"
2337    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2338    llvm_cv_os_type="Win32"
2339    llvm_cv_platform_type="Win32" ;;
2340  *-*-mingw*)
2341    llvm_cv_link_all_option="-Wl,--whole-archive"
2342    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2343    llvm_cv_os_type="MingW"
2344    llvm_cv_platform_type="Win32" ;;
2345  *-unknown-eabi*)
2346    llvm_cv_link_all_option="-Wl,--whole-archive"
2347    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2348    llvm_cv_os_type="Freestanding"
2349    llvm_cv_platform_type="Unix" ;;
2350  *-unknown-elf*)
2351    llvm_cv_link_all_option="-Wl,--whole-archive"
2352    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2353    llvm_cv_os_type="Freestanding"
2354    llvm_cv_platform_type="Unix" ;;
2355  *)
2356    llvm_cv_link_all_option=""
2357    llvm_cv_no_link_all_option=""
2358    llvm_cv_os_type="Unknown"
2359    llvm_cv_platform_type="Unknown" ;;
2360esac
2361fi
2362{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2363echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2364
2365{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2366echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2367if test "${llvm_cv_target_os_type+set}" = set; then
2368  echo $ECHO_N "(cached) $ECHO_C" >&6
2369else
2370  case $target in
2371  *-*-aix*)
2372    llvm_cv_target_os_type="AIX" ;;
2373  *-*-irix*)
2374    llvm_cv_target_os_type="IRIX" ;;
2375  *-*-cygwin*)
2376    llvm_cv_target_os_type="Cygwin" ;;
2377  *-*-darwin*)
2378    llvm_cv_target_os_type="Darwin" ;;
2379  *-*-freebsd*)
2380    llvm_cv_target_os_type="FreeBSD" ;;
2381  *-*-openbsd*)
2382    llvm_cv_target_os_type="OpenBSD" ;;
2383  *-*-netbsd*)
2384    llvm_cv_target_os_type="NetBSD" ;;
2385  *-*-dragonfly*)
2386    llvm_cv_target_os_type="DragonFly" ;;
2387  *-*-hpux*)
2388    llvm_cv_target_os_type="HP-UX" ;;
2389  *-*-interix*)
2390    llvm_cv_target_os_type="Interix" ;;
2391  *-*-linux*)
2392    llvm_cv_target_os_type="Linux" ;;
2393  *-*-solaris*)
2394    llvm_cv_target_os_type="SunOS" ;;
2395  *-*-win32*)
2396    llvm_cv_target_os_type="Win32" ;;
2397  *-*-mingw*)
2398    llvm_cv_target_os_type="MingW" ;;
2399  *-unknown-eabi*)
2400    llvm_cv_target_os_type="Freestanding" ;;
2401  *)
2402    llvm_cv_target_os_type="Unknown" ;;
2403esac
2404fi
2405{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2406echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2407
2408if test "$llvm_cv_os_type" = "Unknown" ; then
2409  { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2410echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2411   { (exit 1); exit 1; }; }
2412fi
2413
2414OS=$llvm_cv_os_type
2415
2416HOST_OS=$llvm_cv_os_type
2417
2418TARGET_OS=$llvm_cv_target_os_type
2419
2420
2421LINKALL=$llvm_cv_link_all_option
2422
2423NOLINKALL=$llvm_cv_no_link_all_option
2424
2425
2426case $llvm_cv_platform_type in
2427  Unix)
2428
2429cat >>confdefs.h <<\_ACEOF
2430#define LLVM_ON_UNIX 1
2431_ACEOF
2432
2433    LLVM_ON_UNIX=1
2434
2435    LLVM_ON_WIN32=0
2436
2437    ;;
2438  Win32)
2439
2440cat >>confdefs.h <<\_ACEOF
2441#define LLVM_ON_WIN32 1
2442_ACEOF
2443
2444    LLVM_ON_UNIX=0
2445
2446    LLVM_ON_WIN32=1
2447
2448    ;;
2449esac
2450
2451{ echo "$as_me:$LINENO: checking target architecture" >&5
2452echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2453if test "${llvm_cv_target_arch+set}" = set; then
2454  echo $ECHO_N "(cached) $ECHO_C" >&6
2455else
2456  case $target in
2457  i?86-*)                 llvm_cv_target_arch="x86" ;;
2458  amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2459  sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2460  powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2461  alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2462  arm*-*)                 llvm_cv_target_arch="ARM" ;;
2463  mips-*)                 llvm_cv_target_arch="Mips" ;;
2464  pic16-*)                llvm_cv_target_arch="PIC16" ;;
2465  xcore-*)                llvm_cv_target_arch="XCore" ;;
2466  msp430-*)               llvm_cv_target_arch="MSP430" ;;
2467  s390x-*)                llvm_cv_target_arch="SystemZ" ;;
2468  bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
2469  *)                      llvm_cv_target_arch="Unknown" ;;
2470esac
2471fi
2472{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2473echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2474
2475if test "$llvm_cv_target_arch" = "Unknown" ; then
2476  { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2477echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2478fi
2479
2480# Determine the LLVM native architecture for the target
2481case "$llvm_cv_target_arch" in
2482    x86)     LLVM_NATIVE_ARCH="X86" ;;
2483    x86_64)  LLVM_NATIVE_ARCH="X86" ;;
2484    *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2485esac
2486
2487ARCH=$llvm_cv_target_arch
2488
2489
2490ac_ext=c
2491ac_cpp='$CPP $CPPFLAGS'
2492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2494ac_compiler_gnu=$ac_cv_c_compiler_gnu
2495if test -n "$ac_tool_prefix"; then
2496  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2497set dummy ${ac_tool_prefix}gcc; ac_word=$2
2498{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2500if test "${ac_cv_prog_CC+set}" = set; then
2501  echo $ECHO_N "(cached) $ECHO_C" >&6
2502else
2503  if test -n "$CC"; then
2504  ac_cv_prog_CC="$CC" # Let the user override the test.
2505else
2506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507for as_dir in $PATH
2508do
2509  IFS=$as_save_IFS
2510  test -z "$as_dir" && as_dir=.
2511  for ac_exec_ext in '' $ac_executable_extensions; do
2512  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2513    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2514    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2515    break 2
2516  fi
2517done
2518done
2519IFS=$as_save_IFS
2520
2521fi
2522fi
2523CC=$ac_cv_prog_CC
2524if test -n "$CC"; then
2525  { echo "$as_me:$LINENO: result: $CC" >&5
2526echo "${ECHO_T}$CC" >&6; }
2527else
2528  { echo "$as_me:$LINENO: result: no" >&5
2529echo "${ECHO_T}no" >&6; }
2530fi
2531
2532
2533fi
2534if test -z "$ac_cv_prog_CC"; then
2535  ac_ct_CC=$CC
2536  # Extract the first word of "gcc", so it can be a program name with args.
2537set dummy gcc; ac_word=$2
2538{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2540if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2541  echo $ECHO_N "(cached) $ECHO_C" >&6
2542else
2543  if test -n "$ac_ct_CC"; then
2544  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2545else
2546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547for as_dir in $PATH
2548do
2549  IFS=$as_save_IFS
2550  test -z "$as_dir" && as_dir=.
2551  for ac_exec_ext in '' $ac_executable_extensions; do
2552  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2553    ac_cv_prog_ac_ct_CC="gcc"
2554    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2555    break 2
2556  fi
2557done
2558done
2559IFS=$as_save_IFS
2560
2561fi
2562fi
2563ac_ct_CC=$ac_cv_prog_ac_ct_CC
2564if test -n "$ac_ct_CC"; then
2565  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2566echo "${ECHO_T}$ac_ct_CC" >&6; }
2567else
2568  { echo "$as_me:$LINENO: result: no" >&5
2569echo "${ECHO_T}no" >&6; }
2570fi
2571
2572  if test "x$ac_ct_CC" = x; then
2573    CC=""
2574  else
2575    case $cross_compiling:$ac_tool_warned in
2576yes:)
2577{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2578whose name does not start with the host triplet.  If you think this
2579configuration is useful to you, please write to autoconf@gnu.org." >&5
2580echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2581whose name does not start with the host triplet.  If you think this
2582configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2583ac_tool_warned=yes ;;
2584esac
2585    CC=$ac_ct_CC
2586  fi
2587else
2588  CC="$ac_cv_prog_CC"
2589fi
2590
2591if test -z "$CC"; then
2592          if test -n "$ac_tool_prefix"; then
2593    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2594set dummy ${ac_tool_prefix}cc; ac_word=$2
2595{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2597if test "${ac_cv_prog_CC+set}" = set; then
2598  echo $ECHO_N "(cached) $ECHO_C" >&6
2599else
2600  if test -n "$CC"; then
2601  ac_cv_prog_CC="$CC" # Let the user override the test.
2602else
2603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604for as_dir in $PATH
2605do
2606  IFS=$as_save_IFS
2607  test -z "$as_dir" && as_dir=.
2608  for ac_exec_ext in '' $ac_executable_extensions; do
2609  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2610    ac_cv_prog_CC="${ac_tool_prefix}cc"
2611    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2612    break 2
2613  fi
2614done
2615done
2616IFS=$as_save_IFS
2617
2618fi
2619fi
2620CC=$ac_cv_prog_CC
2621if test -n "$CC"; then
2622  { echo "$as_me:$LINENO: result: $CC" >&5
2623echo "${ECHO_T}$CC" >&6; }
2624else
2625  { echo "$as_me:$LINENO: result: no" >&5
2626echo "${ECHO_T}no" >&6; }
2627fi
2628
2629
2630  fi
2631fi
2632if test -z "$CC"; then
2633  # Extract the first word of "cc", so it can be a program name with args.
2634set dummy cc; ac_word=$2
2635{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2637if test "${ac_cv_prog_CC+set}" = set; then
2638  echo $ECHO_N "(cached) $ECHO_C" >&6
2639else
2640  if test -n "$CC"; then
2641  ac_cv_prog_CC="$CC" # Let the user override the test.
2642else
2643  ac_prog_rejected=no
2644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645for as_dir in $PATH
2646do
2647  IFS=$as_save_IFS
2648  test -z "$as_dir" && as_dir=.
2649  for ac_exec_ext in '' $ac_executable_extensions; do
2650  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2651    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2652       ac_prog_rejected=yes
2653       continue
2654     fi
2655    ac_cv_prog_CC="cc"
2656    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2657    break 2
2658  fi
2659done
2660done
2661IFS=$as_save_IFS
2662
2663if test $ac_prog_rejected = yes; then
2664  # We found a bogon in the path, so make sure we never use it.
2665  set dummy $ac_cv_prog_CC
2666  shift
2667  if test $# != 0; then
2668    # We chose a different compiler from the bogus one.
2669    # However, it has the same basename, so the bogon will be chosen
2670    # first if we set CC to just the basename; use the full file name.
2671    shift
2672    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2673  fi
2674fi
2675fi
2676fi
2677CC=$ac_cv_prog_CC
2678if test -n "$CC"; then
2679  { echo "$as_me:$LINENO: result: $CC" >&5
2680echo "${ECHO_T}$CC" >&6; }
2681else
2682  { echo "$as_me:$LINENO: result: no" >&5
2683echo "${ECHO_T}no" >&6; }
2684fi
2685
2686
2687fi
2688if test -z "$CC"; then
2689  if test -n "$ac_tool_prefix"; then
2690  for ac_prog in cl.exe
2691  do
2692    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2693set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2694{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2696if test "${ac_cv_prog_CC+set}" = set; then
2697  echo $ECHO_N "(cached) $ECHO_C" >&6
2698else
2699  if test -n "$CC"; then
2700  ac_cv_prog_CC="$CC" # Let the user override the test.
2701else
2702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703for as_dir in $PATH
2704do
2705  IFS=$as_save_IFS
2706  test -z "$as_dir" && as_dir=.
2707  for ac_exec_ext in '' $ac_executable_extensions; do
2708  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2709    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2710    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2711    break 2
2712  fi
2713done
2714done
2715IFS=$as_save_IFS
2716
2717fi
2718fi
2719CC=$ac_cv_prog_CC
2720if test -n "$CC"; then
2721  { echo "$as_me:$LINENO: result: $CC" >&5
2722echo "${ECHO_T}$CC" >&6; }
2723else
2724  { echo "$as_me:$LINENO: result: no" >&5
2725echo "${ECHO_T}no" >&6; }
2726fi
2727
2728
2729    test -n "$CC" && break
2730  done
2731fi
2732if test -z "$CC"; then
2733  ac_ct_CC=$CC
2734  for ac_prog in cl.exe
2735do
2736  # Extract the first word of "$ac_prog", so it can be a program name with args.
2737set dummy $ac_prog; ac_word=$2
2738{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2740if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2741  echo $ECHO_N "(cached) $ECHO_C" >&6
2742else
2743  if test -n "$ac_ct_CC"; then
2744  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2745else
2746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747for as_dir in $PATH
2748do
2749  IFS=$as_save_IFS
2750  test -z "$as_dir" && as_dir=.
2751  for ac_exec_ext in '' $ac_executable_extensions; do
2752  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2753    ac_cv_prog_ac_ct_CC="$ac_prog"
2754    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2755    break 2
2756  fi
2757done
2758done
2759IFS=$as_save_IFS
2760
2761fi
2762fi
2763ac_ct_CC=$ac_cv_prog_ac_ct_CC
2764if test -n "$ac_ct_CC"; then
2765  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2766echo "${ECHO_T}$ac_ct_CC" >&6; }
2767else
2768  { echo "$as_me:$LINENO: result: no" >&5
2769echo "${ECHO_T}no" >&6; }
2770fi
2771
2772
2773  test -n "$ac_ct_CC" && break
2774done
2775
2776  if test "x$ac_ct_CC" = x; then
2777    CC=""
2778  else
2779    case $cross_compiling:$ac_tool_warned in
2780yes:)
2781{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2782whose name does not start with the host triplet.  If you think this
2783configuration is useful to you, please write to autoconf@gnu.org." >&5
2784echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2785whose name does not start with the host triplet.  If you think this
2786configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2787ac_tool_warned=yes ;;
2788esac
2789    CC=$ac_ct_CC
2790  fi
2791fi
2792
2793fi
2794
2795
2796test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2797See \`config.log' for more details." >&5
2798echo "$as_me: error: no acceptable C compiler found in \$PATH
2799See \`config.log' for more details." >&2;}
2800   { (exit 1); exit 1; }; }
2801
2802# Provide some information about the compiler.
2803echo "$as_me:$LINENO: checking for C compiler version" >&5
2804ac_compiler=`set X $ac_compile; echo $2`
2805{ (ac_try="$ac_compiler --version >&5"
2806case "(($ac_try" in
2807  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808  *) ac_try_echo=$ac_try;;
2809esac
2810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2811  (eval "$ac_compiler --version >&5") 2>&5
2812  ac_status=$?
2813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814  (exit $ac_status); }
2815{ (ac_try="$ac_compiler -v >&5"
2816case "(($ac_try" in
2817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818  *) ac_try_echo=$ac_try;;
2819esac
2820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2821  (eval "$ac_compiler -v >&5") 2>&5
2822  ac_status=$?
2823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824  (exit $ac_status); }
2825{ (ac_try="$ac_compiler -V >&5"
2826case "(($ac_try" in
2827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2828  *) ac_try_echo=$ac_try;;
2829esac
2830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2831  (eval "$ac_compiler -V >&5") 2>&5
2832  ac_status=$?
2833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834  (exit $ac_status); }
2835
2836cat >conftest.$ac_ext <<_ACEOF
2837/* confdefs.h.  */
2838_ACEOF
2839cat confdefs.h >>conftest.$ac_ext
2840cat >>conftest.$ac_ext <<_ACEOF
2841/* end confdefs.h.  */
2842
2843int
2844main ()
2845{
2846
2847  ;
2848  return 0;
2849}
2850_ACEOF
2851ac_clean_files_save=$ac_clean_files
2852ac_clean_files="$ac_clean_files a.out a.exe b.out"
2853# Try to create an executable without -o first, disregard a.out.
2854# It will help us diagnose broken compilers, and finding out an intuition
2855# of exeext.
2856{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2857echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2858ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2859#
2860# List of possible output files, starting from the most likely.
2861# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2862# only as a last resort.  b.out is created by i960 compilers.
2863ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2864#
2865# The IRIX 6 linker writes into existing files which may not be
2866# executable, retaining their permissions.  Remove them first so a
2867# subsequent execution test works.
2868ac_rmfiles=
2869for ac_file in $ac_files
2870do
2871  case $ac_file in
2872    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2873    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2874  esac
2875done
2876rm -f $ac_rmfiles
2877
2878if { (ac_try="$ac_link_default"
2879case "(($ac_try" in
2880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881  *) ac_try_echo=$ac_try;;
2882esac
2883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2884  (eval "$ac_link_default") 2>&5
2885  ac_status=$?
2886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887  (exit $ac_status); }; then
2888  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2889# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2890# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2891# so that the user can short-circuit this test for compilers unknown to
2892# Autoconf.
2893for ac_file in $ac_files
2894do
2895  test -f "$ac_file" || continue
2896  case $ac_file in
2897    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2898	;;
2899    [ab].out )
2900	# We found the default executable, but exeext='' is most
2901	# certainly right.
2902	break;;
2903    *.* )
2904        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2905	then :; else
2906	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2907	fi
2908	# We set ac_cv_exeext here because the later test for it is not
2909	# safe: cross compilers may not add the suffix if given an `-o'
2910	# argument, so we may need to know it at that point already.
2911	# Even if this section looks crufty: it has the advantage of
2912	# actually working.
2913	break;;
2914    * )
2915	break;;
2916  esac
2917done
2918test "$ac_cv_exeext" = no && ac_cv_exeext=
2919
2920else
2921  echo "$as_me: failed program was:" >&5
2922sed 's/^/| /' conftest.$ac_ext >&5
2923
2924{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2925See \`config.log' for more details." >&5
2926echo "$as_me: error: C compiler cannot create executables
2927See \`config.log' for more details." >&2;}
2928   { (exit 77); exit 77; }; }
2929fi
2930
2931ac_exeext=$ac_cv_exeext
2932{ echo "$as_me:$LINENO: result: $ac_file" >&5
2933echo "${ECHO_T}$ac_file" >&6; }
2934
2935# Check that the compiler produces executables we can run.  If not, either
2936# the compiler is broken, or we cross compile.
2937{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2938echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2939# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2940# If not cross compiling, check that we can run a simple program.
2941if test "$cross_compiling" != yes; then
2942  if { ac_try='./$ac_file'
2943  { (case "(($ac_try" in
2944  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945  *) ac_try_echo=$ac_try;;
2946esac
2947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2948  (eval "$ac_try") 2>&5
2949  ac_status=$?
2950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951  (exit $ac_status); }; }; then
2952    cross_compiling=no
2953  else
2954    if test "$cross_compiling" = maybe; then
2955	cross_compiling=yes
2956    else
2957	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2958If you meant to cross compile, use \`--host'.
2959See \`config.log' for more details." >&5
2960echo "$as_me: error: cannot run C compiled programs.
2961If you meant to cross compile, use \`--host'.
2962See \`config.log' for more details." >&2;}
2963   { (exit 1); exit 1; }; }
2964    fi
2965  fi
2966fi
2967{ echo "$as_me:$LINENO: result: yes" >&5
2968echo "${ECHO_T}yes" >&6; }
2969
2970rm -f a.out a.exe conftest$ac_cv_exeext b.out
2971ac_clean_files=$ac_clean_files_save
2972# Check that the compiler produces executables we can run.  If not, either
2973# the compiler is broken, or we cross compile.
2974{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2975echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2976{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2977echo "${ECHO_T}$cross_compiling" >&6; }
2978
2979{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2980echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2981if { (ac_try="$ac_link"
2982case "(($ac_try" in
2983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984  *) ac_try_echo=$ac_try;;
2985esac
2986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987  (eval "$ac_link") 2>&5
2988  ac_status=$?
2989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990  (exit $ac_status); }; then
2991  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2992# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2993# work properly (i.e., refer to `conftest.exe'), while it won't with
2994# `rm'.
2995for ac_file in conftest.exe conftest conftest.*; do
2996  test -f "$ac_file" || continue
2997  case $ac_file in
2998    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2999    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3000	  break;;
3001    * ) break;;
3002  esac
3003done
3004else
3005  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3006See \`config.log' for more details." >&5
3007echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3008See \`config.log' for more details." >&2;}
3009   { (exit 1); exit 1; }; }
3010fi
3011
3012rm -f conftest$ac_cv_exeext
3013{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3014echo "${ECHO_T}$ac_cv_exeext" >&6; }
3015
3016rm -f conftest.$ac_ext
3017EXEEXT=$ac_cv_exeext
3018ac_exeext=$EXEEXT
3019{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3020echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3021if test "${ac_cv_objext+set}" = set; then
3022  echo $ECHO_N "(cached) $ECHO_C" >&6
3023else
3024  cat >conftest.$ac_ext <<_ACEOF
3025/* confdefs.h.  */
3026_ACEOF
3027cat confdefs.h >>conftest.$ac_ext
3028cat >>conftest.$ac_ext <<_ACEOF
3029/* end confdefs.h.  */
3030
3031int
3032main ()
3033{
3034
3035  ;
3036  return 0;
3037}
3038_ACEOF
3039rm -f conftest.o conftest.obj
3040if { (ac_try="$ac_compile"
3041case "(($ac_try" in
3042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043  *) ac_try_echo=$ac_try;;
3044esac
3045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046  (eval "$ac_compile") 2>&5
3047  ac_status=$?
3048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049  (exit $ac_status); }; then
3050  for ac_file in conftest.o conftest.obj conftest.*; do
3051  test -f "$ac_file" || continue;
3052  case $ac_file in
3053    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3054    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3055       break;;
3056  esac
3057done
3058else
3059  echo "$as_me: failed program was:" >&5
3060sed 's/^/| /' conftest.$ac_ext >&5
3061
3062{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3063See \`config.log' for more details." >&5
3064echo "$as_me: error: cannot compute suffix of object files: cannot compile
3065See \`config.log' for more details." >&2;}
3066   { (exit 1); exit 1; }; }
3067fi
3068
3069rm -f conftest.$ac_cv_objext conftest.$ac_ext
3070fi
3071{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3072echo "${ECHO_T}$ac_cv_objext" >&6; }
3073OBJEXT=$ac_cv_objext
3074ac_objext=$OBJEXT
3075{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3076echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3077if test "${ac_cv_c_compiler_gnu+set}" = set; then
3078  echo $ECHO_N "(cached) $ECHO_C" >&6
3079else
3080  cat >conftest.$ac_ext <<_ACEOF
3081/* confdefs.h.  */
3082_ACEOF
3083cat confdefs.h >>conftest.$ac_ext
3084cat >>conftest.$ac_ext <<_ACEOF
3085/* end confdefs.h.  */
3086
3087int
3088main ()
3089{
3090#ifndef __GNUC__
3091       choke me
3092#endif
3093
3094  ;
3095  return 0;
3096}
3097_ACEOF
3098rm -f conftest.$ac_objext
3099if { (ac_try="$ac_compile"
3100case "(($ac_try" in
3101  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102  *) ac_try_echo=$ac_try;;
3103esac
3104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105  (eval "$ac_compile") 2>conftest.er1
3106  ac_status=$?
3107  grep -v '^ *+' conftest.er1 >conftest.err
3108  rm -f conftest.er1
3109  cat conftest.err >&5
3110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111  (exit $ac_status); } &&
3112	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3113  { (case "(($ac_try" in
3114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115  *) ac_try_echo=$ac_try;;
3116esac
3117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3118  (eval "$ac_try") 2>&5
3119  ac_status=$?
3120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121  (exit $ac_status); }; } &&
3122	 { ac_try='test -s conftest.$ac_objext'
3123  { (case "(($ac_try" in
3124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125  *) ac_try_echo=$ac_try;;
3126esac
3127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128  (eval "$ac_try") 2>&5
3129  ac_status=$?
3130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131  (exit $ac_status); }; }; then
3132  ac_compiler_gnu=yes
3133else
3134  echo "$as_me: failed program was:" >&5
3135sed 's/^/| /' conftest.$ac_ext >&5
3136
3137	ac_compiler_gnu=no
3138fi
3139
3140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3141ac_cv_c_compiler_gnu=$ac_compiler_gnu
3142
3143fi
3144{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3145echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3146GCC=`test $ac_compiler_gnu = yes && echo yes`
3147ac_test_CFLAGS=${CFLAGS+set}
3148ac_save_CFLAGS=$CFLAGS
3149{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3150echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3151if test "${ac_cv_prog_cc_g+set}" = set; then
3152  echo $ECHO_N "(cached) $ECHO_C" >&6
3153else
3154  ac_save_c_werror_flag=$ac_c_werror_flag
3155   ac_c_werror_flag=yes
3156   ac_cv_prog_cc_g=no
3157   CFLAGS="-g"
3158   cat >conftest.$ac_ext <<_ACEOF
3159/* confdefs.h.  */
3160_ACEOF
3161cat confdefs.h >>conftest.$ac_ext
3162cat >>conftest.$ac_ext <<_ACEOF
3163/* end confdefs.h.  */
3164
3165int
3166main ()
3167{
3168
3169  ;
3170  return 0;
3171}
3172_ACEOF
3173rm -f conftest.$ac_objext
3174if { (ac_try="$ac_compile"
3175case "(($ac_try" in
3176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177  *) ac_try_echo=$ac_try;;
3178esac
3179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3180  (eval "$ac_compile") 2>conftest.er1
3181  ac_status=$?
3182  grep -v '^ *+' conftest.er1 >conftest.err
3183  rm -f conftest.er1
3184  cat conftest.err >&5
3185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186  (exit $ac_status); } &&
3187	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3188  { (case "(($ac_try" in
3189  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190  *) ac_try_echo=$ac_try;;
3191esac
3192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193  (eval "$ac_try") 2>&5
3194  ac_status=$?
3195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196  (exit $ac_status); }; } &&
3197	 { ac_try='test -s conftest.$ac_objext'
3198  { (case "(($ac_try" in
3199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200  *) ac_try_echo=$ac_try;;
3201esac
3202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3203  (eval "$ac_try") 2>&5
3204  ac_status=$?
3205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206  (exit $ac_status); }; }; then
3207  ac_cv_prog_cc_g=yes
3208else
3209  echo "$as_me: failed program was:" >&5
3210sed 's/^/| /' conftest.$ac_ext >&5
3211
3212	CFLAGS=""
3213      cat >conftest.$ac_ext <<_ACEOF
3214/* confdefs.h.  */
3215_ACEOF
3216cat confdefs.h >>conftest.$ac_ext
3217cat >>conftest.$ac_ext <<_ACEOF
3218/* end confdefs.h.  */
3219
3220int
3221main ()
3222{
3223
3224  ;
3225  return 0;
3226}
3227_ACEOF
3228rm -f conftest.$ac_objext
3229if { (ac_try="$ac_compile"
3230case "(($ac_try" in
3231  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232  *) ac_try_echo=$ac_try;;
3233esac
3234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235  (eval "$ac_compile") 2>conftest.er1
3236  ac_status=$?
3237  grep -v '^ *+' conftest.er1 >conftest.err
3238  rm -f conftest.er1
3239  cat conftest.err >&5
3240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241  (exit $ac_status); } &&
3242	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3243  { (case "(($ac_try" in
3244  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245  *) ac_try_echo=$ac_try;;
3246esac
3247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3248  (eval "$ac_try") 2>&5
3249  ac_status=$?
3250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251  (exit $ac_status); }; } &&
3252	 { ac_try='test -s conftest.$ac_objext'
3253  { (case "(($ac_try" in
3254  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255  *) ac_try_echo=$ac_try;;
3256esac
3257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3258  (eval "$ac_try") 2>&5
3259  ac_status=$?
3260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261  (exit $ac_status); }; }; then
3262  :
3263else
3264  echo "$as_me: failed program was:" >&5
3265sed 's/^/| /' conftest.$ac_ext >&5
3266
3267	ac_c_werror_flag=$ac_save_c_werror_flag
3268	 CFLAGS="-g"
3269	 cat >conftest.$ac_ext <<_ACEOF
3270/* confdefs.h.  */
3271_ACEOF
3272cat confdefs.h >>conftest.$ac_ext
3273cat >>conftest.$ac_ext <<_ACEOF
3274/* end confdefs.h.  */
3275
3276int
3277main ()
3278{
3279
3280  ;
3281  return 0;
3282}
3283_ACEOF
3284rm -f conftest.$ac_objext
3285if { (ac_try="$ac_compile"
3286case "(($ac_try" in
3287  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288  *) ac_try_echo=$ac_try;;
3289esac
3290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291  (eval "$ac_compile") 2>conftest.er1
3292  ac_status=$?
3293  grep -v '^ *+' conftest.er1 >conftest.err
3294  rm -f conftest.er1
3295  cat conftest.err >&5
3296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297  (exit $ac_status); } &&
3298	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3299  { (case "(($ac_try" in
3300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301  *) ac_try_echo=$ac_try;;
3302esac
3303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3304  (eval "$ac_try") 2>&5
3305  ac_status=$?
3306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307  (exit $ac_status); }; } &&
3308	 { ac_try='test -s conftest.$ac_objext'
3309  { (case "(($ac_try" in
3310  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311  *) ac_try_echo=$ac_try;;
3312esac
3313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3314  (eval "$ac_try") 2>&5
3315  ac_status=$?
3316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317  (exit $ac_status); }; }; then
3318  ac_cv_prog_cc_g=yes
3319else
3320  echo "$as_me: failed program was:" >&5
3321sed 's/^/| /' conftest.$ac_ext >&5
3322
3323
3324fi
3325
3326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3327fi
3328
3329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3330fi
3331
3332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333   ac_c_werror_flag=$ac_save_c_werror_flag
3334fi
3335{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3336echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3337if test "$ac_test_CFLAGS" = set; then
3338  CFLAGS=$ac_save_CFLAGS
3339elif test $ac_cv_prog_cc_g = yes; then
3340  if test "$GCC" = yes; then
3341    CFLAGS="-g -O2"
3342  else
3343    CFLAGS="-g"
3344  fi
3345else
3346  if test "$GCC" = yes; then
3347    CFLAGS="-O2"
3348  else
3349    CFLAGS=
3350  fi
3351fi
3352{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3353echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3354if test "${ac_cv_prog_cc_c89+set}" = set; then
3355  echo $ECHO_N "(cached) $ECHO_C" >&6
3356else
3357  ac_cv_prog_cc_c89=no
3358ac_save_CC=$CC
3359cat >conftest.$ac_ext <<_ACEOF
3360/* confdefs.h.  */
3361_ACEOF
3362cat confdefs.h >>conftest.$ac_ext
3363cat >>conftest.$ac_ext <<_ACEOF
3364/* end confdefs.h.  */
3365#include <stdarg.h>
3366#include <stdio.h>
3367#include <sys/types.h>
3368#include <sys/stat.h>
3369/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3370struct buf { int x; };
3371FILE * (*rcsopen) (struct buf *, struct stat *, int);
3372static char *e (p, i)
3373     char **p;
3374     int i;
3375{
3376  return p[i];
3377}
3378static char *f (char * (*g) (char **, int), char **p, ...)
3379{
3380  char *s;
3381  va_list v;
3382  va_start (v,p);
3383  s = g (p, va_arg (v,int));
3384  va_end (v);
3385  return s;
3386}
3387
3388/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3389   function prototypes and stuff, but not '\xHH' hex character constants.
3390   These don't provoke an error unfortunately, instead are silently treated
3391   as 'x'.  The following induces an error, until -std is added to get
3392   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3393   array size at least.  It's necessary to write '\x00'==0 to get something
3394   that's true only with -std.  */
3395int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3396
3397/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3398   inside strings and character constants.  */
3399#define FOO(x) 'x'
3400int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3401
3402int test (int i, double x);
3403struct s1 {int (*f) (int a);};
3404struct s2 {int (*f) (double a);};
3405int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3406int argc;
3407char **argv;
3408int
3409main ()
3410{
3411return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3412  ;
3413  return 0;
3414}
3415_ACEOF
3416for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3417	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3418do
3419  CC="$ac_save_CC $ac_arg"
3420  rm -f conftest.$ac_objext
3421if { (ac_try="$ac_compile"
3422case "(($ac_try" in
3423  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424  *) ac_try_echo=$ac_try;;
3425esac
3426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3427  (eval "$ac_compile") 2>conftest.er1
3428  ac_status=$?
3429  grep -v '^ *+' conftest.er1 >conftest.err
3430  rm -f conftest.er1
3431  cat conftest.err >&5
3432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433  (exit $ac_status); } &&
3434	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3435  { (case "(($ac_try" in
3436  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437  *) ac_try_echo=$ac_try;;
3438esac
3439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3440  (eval "$ac_try") 2>&5
3441  ac_status=$?
3442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443  (exit $ac_status); }; } &&
3444	 { ac_try='test -s conftest.$ac_objext'
3445  { (case "(($ac_try" in
3446  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447  *) ac_try_echo=$ac_try;;
3448esac
3449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450  (eval "$ac_try") 2>&5
3451  ac_status=$?
3452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453  (exit $ac_status); }; }; then
3454  ac_cv_prog_cc_c89=$ac_arg
3455else
3456  echo "$as_me: failed program was:" >&5
3457sed 's/^/| /' conftest.$ac_ext >&5
3458
3459
3460fi
3461
3462rm -f core conftest.err conftest.$ac_objext
3463  test "x$ac_cv_prog_cc_c89" != "xno" && break
3464done
3465rm -f conftest.$ac_ext
3466CC=$ac_save_CC
3467
3468fi
3469# AC_CACHE_VAL
3470case "x$ac_cv_prog_cc_c89" in
3471  x)
3472    { echo "$as_me:$LINENO: result: none needed" >&5
3473echo "${ECHO_T}none needed" >&6; } ;;
3474  xno)
3475    { echo "$as_me:$LINENO: result: unsupported" >&5
3476echo "${ECHO_T}unsupported" >&6; } ;;
3477  *)
3478    CC="$CC $ac_cv_prog_cc_c89"
3479    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3480echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3481esac
3482
3483
3484ac_ext=c
3485ac_cpp='$CPP $CPPFLAGS'
3486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3488ac_compiler_gnu=$ac_cv_c_compiler_gnu
3489
3490
3491ac_ext=c
3492ac_cpp='$CPP $CPPFLAGS'
3493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495ac_compiler_gnu=$ac_cv_c_compiler_gnu
3496{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3497echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3498# On Suns, sometimes $CPP names a directory.
3499if test -n "$CPP" && test -d "$CPP"; then
3500  CPP=
3501fi
3502if test -z "$CPP"; then
3503  if test "${ac_cv_prog_CPP+set}" = set; then
3504  echo $ECHO_N "(cached) $ECHO_C" >&6
3505else
3506      # Double quotes because CPP needs to be expanded
3507    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3508    do
3509      ac_preproc_ok=false
3510for ac_c_preproc_warn_flag in '' yes
3511do
3512  # Use a header file that comes with gcc, so configuring glibc
3513  # with a fresh cross-compiler works.
3514  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3515  # <limits.h> exists even on freestanding compilers.
3516  # On the NeXT, cc -E runs the code through the compiler's parser,
3517  # not just through cpp. "Syntax error" is here to catch this case.
3518  cat >conftest.$ac_ext <<_ACEOF
3519/* confdefs.h.  */
3520_ACEOF
3521cat confdefs.h >>conftest.$ac_ext
3522cat >>conftest.$ac_ext <<_ACEOF
3523/* end confdefs.h.  */
3524#ifdef __STDC__
3525# include <limits.h>
3526#else
3527# include <assert.h>
3528#endif
3529		     Syntax error
3530_ACEOF
3531if { (ac_try="$ac_cpp conftest.$ac_ext"
3532case "(($ac_try" in
3533  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534  *) ac_try_echo=$ac_try;;
3535esac
3536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3537  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3538  ac_status=$?
3539  grep -v '^ *+' conftest.er1 >conftest.err
3540  rm -f conftest.er1
3541  cat conftest.err >&5
3542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543  (exit $ac_status); } >/dev/null; then
3544  if test -s conftest.err; then
3545    ac_cpp_err=$ac_c_preproc_warn_flag
3546    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3547  else
3548    ac_cpp_err=
3549  fi
3550else
3551  ac_cpp_err=yes
3552fi
3553if test -z "$ac_cpp_err"; then
3554  :
3555else
3556  echo "$as_me: failed program was:" >&5
3557sed 's/^/| /' conftest.$ac_ext >&5
3558
3559  # Broken: fails on valid input.
3560continue
3561fi
3562
3563rm -f conftest.err conftest.$ac_ext
3564
3565  # OK, works on sane cases.  Now check whether nonexistent headers
3566  # can be detected and how.
3567  cat >conftest.$ac_ext <<_ACEOF
3568/* confdefs.h.  */
3569_ACEOF
3570cat confdefs.h >>conftest.$ac_ext
3571cat >>conftest.$ac_ext <<_ACEOF
3572/* end confdefs.h.  */
3573#include <ac_nonexistent.h>
3574_ACEOF
3575if { (ac_try="$ac_cpp conftest.$ac_ext"
3576case "(($ac_try" in
3577  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578  *) ac_try_echo=$ac_try;;
3579esac
3580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3581  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3582  ac_status=$?
3583  grep -v '^ *+' conftest.er1 >conftest.err
3584  rm -f conftest.er1
3585  cat conftest.err >&5
3586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587  (exit $ac_status); } >/dev/null; then
3588  if test -s conftest.err; then
3589    ac_cpp_err=$ac_c_preproc_warn_flag
3590    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3591  else
3592    ac_cpp_err=
3593  fi
3594else
3595  ac_cpp_err=yes
3596fi
3597if test -z "$ac_cpp_err"; then
3598  # Broken: success on invalid input.
3599continue
3600else
3601  echo "$as_me: failed program was:" >&5
3602sed 's/^/| /' conftest.$ac_ext >&5
3603
3604  # Passes both tests.
3605ac_preproc_ok=:
3606break
3607fi
3608
3609rm -f conftest.err conftest.$ac_ext
3610
3611done
3612# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3613rm -f conftest.err conftest.$ac_ext
3614if $ac_preproc_ok; then
3615  break
3616fi
3617
3618    done
3619    ac_cv_prog_CPP=$CPP
3620
3621fi
3622  CPP=$ac_cv_prog_CPP
3623else
3624  ac_cv_prog_CPP=$CPP
3625fi
3626{ echo "$as_me:$LINENO: result: $CPP" >&5
3627echo "${ECHO_T}$CPP" >&6; }
3628ac_preproc_ok=false
3629for ac_c_preproc_warn_flag in '' yes
3630do
3631  # Use a header file that comes with gcc, so configuring glibc
3632  # with a fresh cross-compiler works.
3633  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3634  # <limits.h> exists even on freestanding compilers.
3635  # On the NeXT, cc -E runs the code through the compiler's parser,
3636  # not just through cpp. "Syntax error" is here to catch this case.
3637  cat >conftest.$ac_ext <<_ACEOF
3638/* confdefs.h.  */
3639_ACEOF
3640cat confdefs.h >>conftest.$ac_ext
3641cat >>conftest.$ac_ext <<_ACEOF
3642/* end confdefs.h.  */
3643#ifdef __STDC__
3644# include <limits.h>
3645#else
3646# include <assert.h>
3647#endif
3648		     Syntax error
3649_ACEOF
3650if { (ac_try="$ac_cpp conftest.$ac_ext"
3651case "(($ac_try" in
3652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653  *) ac_try_echo=$ac_try;;
3654esac
3655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3656  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3657  ac_status=$?
3658  grep -v '^ *+' conftest.er1 >conftest.err
3659  rm -f conftest.er1
3660  cat conftest.err >&5
3661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662  (exit $ac_status); } >/dev/null; then
3663  if test -s conftest.err; then
3664    ac_cpp_err=$ac_c_preproc_warn_flag
3665    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3666  else
3667    ac_cpp_err=
3668  fi
3669else
3670  ac_cpp_err=yes
3671fi
3672if test -z "$ac_cpp_err"; then
3673  :
3674else
3675  echo "$as_me: failed program was:" >&5
3676sed 's/^/| /' conftest.$ac_ext >&5
3677
3678  # Broken: fails on valid input.
3679continue
3680fi
3681
3682rm -f conftest.err conftest.$ac_ext
3683
3684  # OK, works on sane cases.  Now check whether nonexistent headers
3685  # can be detected and how.
3686  cat >conftest.$ac_ext <<_ACEOF
3687/* confdefs.h.  */
3688_ACEOF
3689cat confdefs.h >>conftest.$ac_ext
3690cat >>conftest.$ac_ext <<_ACEOF
3691/* end confdefs.h.  */
3692#include <ac_nonexistent.h>
3693_ACEOF
3694if { (ac_try="$ac_cpp conftest.$ac_ext"
3695case "(($ac_try" in
3696  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697  *) ac_try_echo=$ac_try;;
3698esac
3699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3700  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3701  ac_status=$?
3702  grep -v '^ *+' conftest.er1 >conftest.err
3703  rm -f conftest.er1
3704  cat conftest.err >&5
3705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706  (exit $ac_status); } >/dev/null; then
3707  if test -s conftest.err; then
3708    ac_cpp_err=$ac_c_preproc_warn_flag
3709    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3710  else
3711    ac_cpp_err=
3712  fi
3713else
3714  ac_cpp_err=yes
3715fi
3716if test -z "$ac_cpp_err"; then
3717  # Broken: success on invalid input.
3718continue
3719else
3720  echo "$as_me: failed program was:" >&5
3721sed 's/^/| /' conftest.$ac_ext >&5
3722
3723  # Passes both tests.
3724ac_preproc_ok=:
3725break
3726fi
3727
3728rm -f conftest.err conftest.$ac_ext
3729
3730done
3731# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3732rm -f conftest.err conftest.$ac_ext
3733if $ac_preproc_ok; then
3734  :
3735else
3736  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3737See \`config.log' for more details." >&5
3738echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3739See \`config.log' for more details." >&2;}
3740   { (exit 1); exit 1; }; }
3741fi
3742
3743ac_ext=c
3744ac_cpp='$CPP $CPPFLAGS'
3745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748
3749
3750{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3751echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3752if test "${ac_cv_path_GREP+set}" = set; then
3753  echo $ECHO_N "(cached) $ECHO_C" >&6
3754else
3755  # Extract the first word of "grep ggrep" to use in msg output
3756if test -z "$GREP"; then
3757set dummy grep ggrep; ac_prog_name=$2
3758if test "${ac_cv_path_GREP+set}" = set; then
3759  echo $ECHO_N "(cached) $ECHO_C" >&6
3760else
3761  ac_path_GREP_found=false
3762# Loop through the user's path and test for each of PROGNAME-LIST
3763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3765do
3766  IFS=$as_save_IFS
3767  test -z "$as_dir" && as_dir=.
3768  for ac_prog in grep ggrep; do
3769  for ac_exec_ext in '' $ac_executable_extensions; do
3770    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3771    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3772    # Check for GNU ac_path_GREP and select it if it is found.
3773  # Check for GNU $ac_path_GREP
3774case `"$ac_path_GREP" --version 2>&1` in
3775*GNU*)
3776  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3777*)
3778  ac_count=0
3779  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3780  while :
3781  do
3782    cat "conftest.in" "conftest.in" >"conftest.tmp"
3783    mv "conftest.tmp" "conftest.in"
3784    cp "conftest.in" "conftest.nl"
3785    echo 'GREP' >> "conftest.nl"
3786    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3787    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3788    ac_count=`expr $ac_count + 1`
3789    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3790      # Best one so far, save it but keep looking for a better one
3791      ac_cv_path_GREP="$ac_path_GREP"
3792      ac_path_GREP_max=$ac_count
3793    fi
3794    # 10*(2^10) chars as input seems more than enough
3795    test $ac_count -gt 10 && break
3796  done
3797  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3798esac
3799
3800
3801    $ac_path_GREP_found && break 3
3802  done
3803done
3804
3805done
3806IFS=$as_save_IFS
3807
3808
3809fi
3810
3811GREP="$ac_cv_path_GREP"
3812if test -z "$GREP"; then
3813  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3814echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3815   { (exit 1); exit 1; }; }
3816fi
3817
3818else
3819  ac_cv_path_GREP=$GREP
3820fi
3821
3822
3823fi
3824{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3825echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3826 GREP="$ac_cv_path_GREP"
3827
3828
3829{ echo "$as_me:$LINENO: checking for egrep" >&5
3830echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3831if test "${ac_cv_path_EGREP+set}" = set; then
3832  echo $ECHO_N "(cached) $ECHO_C" >&6
3833else
3834  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3835   then ac_cv_path_EGREP="$GREP -E"
3836   else
3837     # Extract the first word of "egrep" to use in msg output
3838if test -z "$EGREP"; then
3839set dummy egrep; ac_prog_name=$2
3840if test "${ac_cv_path_EGREP+set}" = set; then
3841  echo $ECHO_N "(cached) $ECHO_C" >&6
3842else
3843  ac_path_EGREP_found=false
3844# Loop through the user's path and test for each of PROGNAME-LIST
3845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3847do
3848  IFS=$as_save_IFS
3849  test -z "$as_dir" && as_dir=.
3850  for ac_prog in egrep; do
3851  for ac_exec_ext in '' $ac_executable_extensions; do
3852    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3853    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3854    # Check for GNU ac_path_EGREP and select it if it is found.
3855  # Check for GNU $ac_path_EGREP
3856case `"$ac_path_EGREP" --version 2>&1` in
3857*GNU*)
3858  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3859*)
3860  ac_count=0
3861  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3862  while :
3863  do
3864    cat "conftest.in" "conftest.in" >"conftest.tmp"
3865    mv "conftest.tmp" "conftest.in"
3866    cp "conftest.in" "conftest.nl"
3867    echo 'EGREP' >> "conftest.nl"
3868    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3869    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3870    ac_count=`expr $ac_count + 1`
3871    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3872      # Best one so far, save it but keep looking for a better one
3873      ac_cv_path_EGREP="$ac_path_EGREP"
3874      ac_path_EGREP_max=$ac_count
3875    fi
3876    # 10*(2^10) chars as input seems more than enough
3877    test $ac_count -gt 10 && break
3878  done
3879  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3880esac
3881
3882
3883    $ac_path_EGREP_found && break 3
3884  done
3885done
3886
3887done
3888IFS=$as_save_IFS
3889
3890
3891fi
3892
3893EGREP="$ac_cv_path_EGREP"
3894if test -z "$EGREP"; then
3895  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3896echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3897   { (exit 1); exit 1; }; }
3898fi
3899
3900else
3901  ac_cv_path_EGREP=$EGREP
3902fi
3903
3904
3905   fi
3906fi
3907{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3908echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3909 EGREP="$ac_cv_path_EGREP"
3910
3911
3912{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3913echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3914if test "${ac_cv_header_stdc+set}" = set; then
3915  echo $ECHO_N "(cached) $ECHO_C" >&6
3916else
3917  cat >conftest.$ac_ext <<_ACEOF
3918/* confdefs.h.  */
3919_ACEOF
3920cat confdefs.h >>conftest.$ac_ext
3921cat >>conftest.$ac_ext <<_ACEOF
3922/* end confdefs.h.  */
3923#include <stdlib.h>
3924#include <stdarg.h>
3925#include <string.h>
3926#include <float.h>
3927
3928int
3929main ()
3930{
3931
3932  ;
3933  return 0;
3934}
3935_ACEOF
3936rm -f conftest.$ac_objext
3937if { (ac_try="$ac_compile"
3938case "(($ac_try" in
3939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3940  *) ac_try_echo=$ac_try;;
3941esac
3942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3943  (eval "$ac_compile") 2>conftest.er1
3944  ac_status=$?
3945  grep -v '^ *+' conftest.er1 >conftest.err
3946  rm -f conftest.er1
3947  cat conftest.err >&5
3948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949  (exit $ac_status); } &&
3950	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3951  { (case "(($ac_try" in
3952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3953  *) ac_try_echo=$ac_try;;
3954esac
3955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3956  (eval "$ac_try") 2>&5
3957  ac_status=$?
3958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959  (exit $ac_status); }; } &&
3960	 { ac_try='test -s conftest.$ac_objext'
3961  { (case "(($ac_try" in
3962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963  *) ac_try_echo=$ac_try;;
3964esac
3965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3966  (eval "$ac_try") 2>&5
3967  ac_status=$?
3968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969  (exit $ac_status); }; }; then
3970  ac_cv_header_stdc=yes
3971else
3972  echo "$as_me: failed program was:" >&5
3973sed 's/^/| /' conftest.$ac_ext >&5
3974
3975	ac_cv_header_stdc=no
3976fi
3977
3978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3979
3980if test $ac_cv_header_stdc = yes; then
3981  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3982  cat >conftest.$ac_ext <<_ACEOF
3983/* confdefs.h.  */
3984_ACEOF
3985cat confdefs.h >>conftest.$ac_ext
3986cat >>conftest.$ac_ext <<_ACEOF
3987/* end confdefs.h.  */
3988#include <string.h>
3989
3990_ACEOF
3991if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3992  $EGREP "memchr" >/dev/null 2>&1; then
3993  :
3994else
3995  ac_cv_header_stdc=no
3996fi
3997rm -f conftest*
3998
3999fi
4000
4001if test $ac_cv_header_stdc = yes; then
4002  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4003  cat >conftest.$ac_ext <<_ACEOF
4004/* confdefs.h.  */
4005_ACEOF
4006cat confdefs.h >>conftest.$ac_ext
4007cat >>conftest.$ac_ext <<_ACEOF
4008/* end confdefs.h.  */
4009#include <stdlib.h>
4010
4011_ACEOF
4012if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4013  $EGREP "free" >/dev/null 2>&1; then
4014  :
4015else
4016  ac_cv_header_stdc=no
4017fi
4018rm -f conftest*
4019
4020fi
4021
4022if test $ac_cv_header_stdc = yes; then
4023  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4024  if test "$cross_compiling" = yes; then
4025  :
4026else
4027  cat >conftest.$ac_ext <<_ACEOF
4028/* confdefs.h.  */
4029_ACEOF
4030cat confdefs.h >>conftest.$ac_ext
4031cat >>conftest.$ac_ext <<_ACEOF
4032/* end confdefs.h.  */
4033#include <ctype.h>
4034#include <stdlib.h>
4035#if ((' ' & 0x0FF) == 0x020)
4036# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4037# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4038#else
4039# define ISLOWER(c) \
4040		   (('a' <= (c) && (c) <= 'i') \
4041		     || ('j' <= (c) && (c) <= 'r') \
4042		     || ('s' <= (c) && (c) <= 'z'))
4043# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4044#endif
4045
4046#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4047int
4048main ()
4049{
4050  int i;
4051  for (i = 0; i < 256; i++)
4052    if (XOR (islower (i), ISLOWER (i))
4053	|| toupper (i) != TOUPPER (i))
4054      return 2;
4055  return 0;
4056}
4057_ACEOF
4058rm -f conftest$ac_exeext
4059if { (ac_try="$ac_link"
4060case "(($ac_try" in
4061  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062  *) ac_try_echo=$ac_try;;
4063esac
4064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4065  (eval "$ac_link") 2>&5
4066  ac_status=$?
4067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4069  { (case "(($ac_try" in
4070  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071  *) ac_try_echo=$ac_try;;
4072esac
4073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4074  (eval "$ac_try") 2>&5
4075  ac_status=$?
4076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077  (exit $ac_status); }; }; then
4078  :
4079else
4080  echo "$as_me: program exited with status $ac_status" >&5
4081echo "$as_me: failed program was:" >&5
4082sed 's/^/| /' conftest.$ac_ext >&5
4083
4084( exit $ac_status )
4085ac_cv_header_stdc=no
4086fi
4087rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4088fi
4089
4090
4091fi
4092fi
4093{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4094echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4095if test $ac_cv_header_stdc = yes; then
4096
4097cat >>confdefs.h <<\_ACEOF
4098#define STDC_HEADERS 1
4099_ACEOF
4100
4101fi
4102
4103# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4114		  inttypes.h stdint.h unistd.h
4115do
4116as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4117{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4118echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4119if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4120  echo $ECHO_N "(cached) $ECHO_C" >&6
4121else
4122  cat >conftest.$ac_ext <<_ACEOF
4123/* confdefs.h.  */
4124_ACEOF
4125cat confdefs.h >>conftest.$ac_ext
4126cat >>conftest.$ac_ext <<_ACEOF
4127/* end confdefs.h.  */
4128$ac_includes_default
4129
4130#include <$ac_header>
4131_ACEOF
4132rm -f conftest.$ac_objext
4133if { (ac_try="$ac_compile"
4134case "(($ac_try" in
4135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136  *) ac_try_echo=$ac_try;;
4137esac
4138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139  (eval "$ac_compile") 2>conftest.er1
4140  ac_status=$?
4141  grep -v '^ *+' conftest.er1 >conftest.err
4142  rm -f conftest.er1
4143  cat conftest.err >&5
4144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145  (exit $ac_status); } &&
4146	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4147  { (case "(($ac_try" in
4148  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149  *) ac_try_echo=$ac_try;;
4150esac
4151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4152  (eval "$ac_try") 2>&5
4153  ac_status=$?
4154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155  (exit $ac_status); }; } &&
4156	 { ac_try='test -s conftest.$ac_objext'
4157  { (case "(($ac_try" in
4158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4159  *) ac_try_echo=$ac_try;;
4160esac
4161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4162  (eval "$ac_try") 2>&5
4163  ac_status=$?
4164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165  (exit $ac_status); }; }; then
4166  eval "$as_ac_Header=yes"
4167else
4168  echo "$as_me: failed program was:" >&5
4169sed 's/^/| /' conftest.$ac_ext >&5
4170
4171	eval "$as_ac_Header=no"
4172fi
4173
4174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4175fi
4176ac_res=`eval echo '${'$as_ac_Header'}'`
4177	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4178echo "${ECHO_T}$ac_res" >&6; }
4179if test `eval echo '${'$as_ac_Header'}'` = yes; then
4180  cat >>confdefs.h <<_ACEOF
4181#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4182_ACEOF
4183
4184fi
4185
4186done
4187
4188
4189{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4190echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4191if test "${ac_cv_c_bigendian+set}" = set; then
4192  echo $ECHO_N "(cached) $ECHO_C" >&6
4193else
4194  # See if sys/param.h defines the BYTE_ORDER macro.
4195cat >conftest.$ac_ext <<_ACEOF
4196/* confdefs.h.  */
4197_ACEOF
4198cat confdefs.h >>conftest.$ac_ext
4199cat >>conftest.$ac_ext <<_ACEOF
4200/* end confdefs.h.  */
4201#include <sys/types.h>
4202#include <sys/param.h>
4203
4204int
4205main ()
4206{
4207#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4208 bogus endian macros
4209#endif
4210
4211  ;
4212  return 0;
4213}
4214_ACEOF
4215rm -f conftest.$ac_objext
4216if { (ac_try="$ac_compile"
4217case "(($ac_try" in
4218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219  *) ac_try_echo=$ac_try;;
4220esac
4221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4222  (eval "$ac_compile") 2>conftest.er1
4223  ac_status=$?
4224  grep -v '^ *+' conftest.er1 >conftest.err
4225  rm -f conftest.er1
4226  cat conftest.err >&5
4227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228  (exit $ac_status); } &&
4229	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4230  { (case "(($ac_try" in
4231  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232  *) ac_try_echo=$ac_try;;
4233esac
4234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4235  (eval "$ac_try") 2>&5
4236  ac_status=$?
4237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238  (exit $ac_status); }; } &&
4239	 { ac_try='test -s conftest.$ac_objext'
4240  { (case "(($ac_try" in
4241  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242  *) ac_try_echo=$ac_try;;
4243esac
4244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4245  (eval "$ac_try") 2>&5
4246  ac_status=$?
4247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248  (exit $ac_status); }; }; then
4249  # It does; now see whether it defined to BIG_ENDIAN or not.
4250cat >conftest.$ac_ext <<_ACEOF
4251/* confdefs.h.  */
4252_ACEOF
4253cat confdefs.h >>conftest.$ac_ext
4254cat >>conftest.$ac_ext <<_ACEOF
4255/* end confdefs.h.  */
4256#include <sys/types.h>
4257#include <sys/param.h>
4258
4259int
4260main ()
4261{
4262#if BYTE_ORDER != BIG_ENDIAN
4263 not big endian
4264#endif
4265
4266  ;
4267  return 0;
4268}
4269_ACEOF
4270rm -f conftest.$ac_objext
4271if { (ac_try="$ac_compile"
4272case "(($ac_try" in
4273  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274  *) ac_try_echo=$ac_try;;
4275esac
4276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4277  (eval "$ac_compile") 2>conftest.er1
4278  ac_status=$?
4279  grep -v '^ *+' conftest.er1 >conftest.err
4280  rm -f conftest.er1
4281  cat conftest.err >&5
4282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283  (exit $ac_status); } &&
4284	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4285  { (case "(($ac_try" in
4286  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287  *) ac_try_echo=$ac_try;;
4288esac
4289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4290  (eval "$ac_try") 2>&5
4291  ac_status=$?
4292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293  (exit $ac_status); }; } &&
4294	 { ac_try='test -s conftest.$ac_objext'
4295  { (case "(($ac_try" in
4296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297  *) ac_try_echo=$ac_try;;
4298esac
4299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4300  (eval "$ac_try") 2>&5
4301  ac_status=$?
4302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303  (exit $ac_status); }; }; then
4304  ac_cv_c_bigendian=yes
4305else
4306  echo "$as_me: failed program was:" >&5
4307sed 's/^/| /' conftest.$ac_ext >&5
4308
4309	ac_cv_c_bigendian=no
4310fi
4311
4312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4313else
4314  echo "$as_me: failed program was:" >&5
4315sed 's/^/| /' conftest.$ac_ext >&5
4316
4317	# It does not; compile a test program.
4318if test "$cross_compiling" = yes; then
4319  # try to guess the endianness by grepping values into an object file
4320  ac_cv_c_bigendian=unknown
4321  cat >conftest.$ac_ext <<_ACEOF
4322/* confdefs.h.  */
4323_ACEOF
4324cat confdefs.h >>conftest.$ac_ext
4325cat >>conftest.$ac_ext <<_ACEOF
4326/* end confdefs.h.  */
4327short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4328short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4329void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4330short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4331short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4332void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4333int
4334main ()
4335{
4336 _ascii (); _ebcdic ();
4337  ;
4338  return 0;
4339}
4340_ACEOF
4341rm -f conftest.$ac_objext
4342if { (ac_try="$ac_compile"
4343case "(($ac_try" in
4344  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345  *) ac_try_echo=$ac_try;;
4346esac
4347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4348  (eval "$ac_compile") 2>conftest.er1
4349  ac_status=$?
4350  grep -v '^ *+' conftest.er1 >conftest.err
4351  rm -f conftest.er1
4352  cat conftest.err >&5
4353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354  (exit $ac_status); } &&
4355	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4356  { (case "(($ac_try" in
4357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358  *) ac_try_echo=$ac_try;;
4359esac
4360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361  (eval "$ac_try") 2>&5
4362  ac_status=$?
4363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364  (exit $ac_status); }; } &&
4365	 { ac_try='test -s conftest.$ac_objext'
4366  { (case "(($ac_try" in
4367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368  *) ac_try_echo=$ac_try;;
4369esac
4370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4371  (eval "$ac_try") 2>&5
4372  ac_status=$?
4373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374  (exit $ac_status); }; }; then
4375  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4376  ac_cv_c_bigendian=yes
4377fi
4378if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4379  if test "$ac_cv_c_bigendian" = unknown; then
4380    ac_cv_c_bigendian=no
4381  else
4382    # finding both strings is unlikely to happen, but who knows?
4383    ac_cv_c_bigendian=unknown
4384  fi
4385fi
4386else
4387  echo "$as_me: failed program was:" >&5
4388sed 's/^/| /' conftest.$ac_ext >&5
4389
4390
4391fi
4392
4393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4394else
4395  cat >conftest.$ac_ext <<_ACEOF
4396/* confdefs.h.  */
4397_ACEOF
4398cat confdefs.h >>conftest.$ac_ext
4399cat >>conftest.$ac_ext <<_ACEOF
4400/* end confdefs.h.  */
4401$ac_includes_default
4402int
4403main ()
4404{
4405
4406  /* Are we little or big endian?  From Harbison&Steele.  */
4407  union
4408  {
4409    long int l;
4410    char c[sizeof (long int)];
4411  } u;
4412  u.l = 1;
4413  return u.c[sizeof (long int) - 1] == 1;
4414
4415  ;
4416  return 0;
4417}
4418_ACEOF
4419rm -f conftest$ac_exeext
4420if { (ac_try="$ac_link"
4421case "(($ac_try" in
4422  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4423  *) ac_try_echo=$ac_try;;
4424esac
4425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4426  (eval "$ac_link") 2>&5
4427  ac_status=$?
4428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4430  { (case "(($ac_try" in
4431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432  *) ac_try_echo=$ac_try;;
4433esac
4434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4435  (eval "$ac_try") 2>&5
4436  ac_status=$?
4437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438  (exit $ac_status); }; }; then
4439  ac_cv_c_bigendian=no
4440else
4441  echo "$as_me: program exited with status $ac_status" >&5
4442echo "$as_me: failed program was:" >&5
4443sed 's/^/| /' conftest.$ac_ext >&5
4444
4445( exit $ac_status )
4446ac_cv_c_bigendian=yes
4447fi
4448rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4449fi
4450
4451
4452fi
4453
4454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4455fi
4456{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4457echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4458case $ac_cv_c_bigendian in
4459  yes)
4460    ENDIAN=big
4461 ;;
4462  no)
4463    ENDIAN=little
4464 ;;
4465  *)
4466    { { echo "$as_me:$LINENO: error: unknown endianness
4467presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4468echo "$as_me: error: unknown endianness
4469presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4470   { (exit 1); exit 1; }; } ;;
4471esac
4472
4473
4474if test "$cross_compiling" = yes; then
4475  LLVM_CROSS_COMPILING=1
4476
4477
4478{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4479echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4480if test "${ac_cv_build_exeext+set}" = set; then
4481  echo $ECHO_N "(cached) $ECHO_C" >&6
4482else
4483  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4484  ac_cv_build_exeext=.exe
4485else
4486  ac_build_prefix=${build_alias}-
4487
4488  # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4489set dummy ${ac_build_prefix}gcc; ac_word=$2
4490{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4492if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4493  echo $ECHO_N "(cached) $ECHO_C" >&6
4494else
4495  if test -n "$BUILD_CC"; then
4496  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4497else
4498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499for as_dir in $PATH
4500do
4501  IFS=$as_save_IFS
4502  test -z "$as_dir" && as_dir=.
4503  for ac_exec_ext in '' $ac_executable_extensions; do
4504  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4505    ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4506    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4507    break 2
4508  fi
4509done
4510done
4511IFS=$as_save_IFS
4512
4513fi
4514fi
4515BUILD_CC=$ac_cv_prog_BUILD_CC
4516if test -n "$BUILD_CC"; then
4517  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4518echo "${ECHO_T}$BUILD_CC" >&6; }
4519else
4520  { echo "$as_me:$LINENO: result: no" >&5
4521echo "${ECHO_T}no" >&6; }
4522fi
4523
4524
4525  if test -z "$BUILD_CC"; then
4526     # Extract the first word of "gcc", so it can be a program name with args.
4527set dummy gcc; ac_word=$2
4528{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4530if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4531  echo $ECHO_N "(cached) $ECHO_C" >&6
4532else
4533  if test -n "$BUILD_CC"; then
4534  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4535else
4536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537for as_dir in $PATH
4538do
4539  IFS=$as_save_IFS
4540  test -z "$as_dir" && as_dir=.
4541  for ac_exec_ext in '' $ac_executable_extensions; do
4542  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4543    ac_cv_prog_BUILD_CC="gcc"
4544    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4545    break 2
4546  fi
4547done
4548done
4549IFS=$as_save_IFS
4550
4551fi
4552fi
4553BUILD_CC=$ac_cv_prog_BUILD_CC
4554if test -n "$BUILD_CC"; then
4555  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4556echo "${ECHO_T}$BUILD_CC" >&6; }
4557else
4558  { echo "$as_me:$LINENO: result: no" >&5
4559echo "${ECHO_T}no" >&6; }
4560fi
4561
4562
4563     if test -z "$BUILD_CC"; then
4564       # Extract the first word of "cc", so it can be a program name with args.
4565set dummy cc; 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_CC+set}" = set; then
4569  echo $ECHO_N "(cached) $ECHO_C" >&6
4570else
4571  if test -n "$BUILD_CC"; then
4572  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4573else
4574  ac_prog_rejected=no
4575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576for as_dir in $PATH
4577do
4578  IFS=$as_save_IFS
4579  test -z "$as_dir" && as_dir=.
4580  for ac_exec_ext in '' $ac_executable_extensions; do
4581  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4582    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4583       ac_prog_rejected=yes
4584       continue
4585     fi
4586    ac_cv_prog_BUILD_CC="cc"
4587    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4588    break 2
4589  fi
4590done
4591done
4592IFS=$as_save_IFS
4593
4594if test $ac_prog_rejected = yes; then
4595  # We found a bogon in the path, so make sure we never use it.
4596  set dummy $ac_cv_prog_BUILD_CC
4597  shift
4598  if test $# != 0; then
4599    # We chose a different compiler from the bogus one.
4600    # However, it has the same basename, so the bogon will be chosen
4601    # first if we set BUILD_CC to just the basename; use the full file name.
4602    shift
4603    ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4604  fi
4605fi
4606fi
4607fi
4608BUILD_CC=$ac_cv_prog_BUILD_CC
4609if test -n "$BUILD_CC"; then
4610  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4611echo "${ECHO_T}$BUILD_CC" >&6; }
4612else
4613  { echo "$as_me:$LINENO: result: no" >&5
4614echo "${ECHO_T}no" >&6; }
4615fi
4616
4617
4618     fi
4619  fi
4620  test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4621echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4622   { (exit 1); exit 1; }; }
4623  ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4624  rm -f conftest*
4625  echo 'int main () { return 0; }' > conftest.$ac_ext
4626  ac_cv_build_exeext=
4627  if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4628  (eval $ac_build_link) 2>&5
4629  ac_status=$?
4630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631  (exit $ac_status); }; then
4632    for file in conftest.*; do
4633      case $file in
4634      *.c | *.o | *.obj | *.dSYM) ;;
4635      *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4636      esac
4637    done
4638  else
4639    { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4640echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4641   { (exit 1); exit 1; }; }
4642  fi
4643  rm -f conftest*
4644  test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4645fi
4646fi
4647
4648BUILD_EXEEXT=""
4649test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4650{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4651echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4652ac_build_exeext=$BUILD_EXEEXT
4653
4654  ac_build_prefix=${build_alias}-
4655  # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4656set dummy ${ac_build_prefix}g++; ac_word=$2
4657{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4659if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4660  echo $ECHO_N "(cached) $ECHO_C" >&6
4661else
4662  if test -n "$BUILD_CXX"; then
4663  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4664else
4665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666for as_dir in $PATH
4667do
4668  IFS=$as_save_IFS
4669  test -z "$as_dir" && as_dir=.
4670  for ac_exec_ext in '' $ac_executable_extensions; do
4671  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4672    ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4673    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4674    break 2
4675  fi
4676done
4677done
4678IFS=$as_save_IFS
4679
4680fi
4681fi
4682BUILD_CXX=$ac_cv_prog_BUILD_CXX
4683if test -n "$BUILD_CXX"; then
4684  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4685echo "${ECHO_T}$BUILD_CXX" >&6; }
4686else
4687  { echo "$as_me:$LINENO: result: no" >&5
4688echo "${ECHO_T}no" >&6; }
4689fi
4690
4691
4692  if test -z "$BUILD_CXX"; then
4693     # Extract the first word of "g++", so it can be a program name with args.
4694set dummy g++; ac_word=$2
4695{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4697if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4698  echo $ECHO_N "(cached) $ECHO_C" >&6
4699else
4700  if test -n "$BUILD_CXX"; then
4701  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4702else
4703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704for as_dir in $PATH
4705do
4706  IFS=$as_save_IFS
4707  test -z "$as_dir" && as_dir=.
4708  for ac_exec_ext in '' $ac_executable_extensions; do
4709  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4710    ac_cv_prog_BUILD_CXX="g++"
4711    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4712    break 2
4713  fi
4714done
4715done
4716IFS=$as_save_IFS
4717
4718fi
4719fi
4720BUILD_CXX=$ac_cv_prog_BUILD_CXX
4721if test -n "$BUILD_CXX"; then
4722  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4723echo "${ECHO_T}$BUILD_CXX" >&6; }
4724else
4725  { echo "$as_me:$LINENO: result: no" >&5
4726echo "${ECHO_T}no" >&6; }
4727fi
4728
4729
4730     if test -z "$BUILD_CXX"; then
4731       # Extract the first word of "c++", so it can be a program name with args.
4732set dummy c++; ac_word=$2
4733{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4735if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4736  echo $ECHO_N "(cached) $ECHO_C" >&6
4737else
4738  if test -n "$BUILD_CXX"; then
4739  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4740else
4741  ac_prog_rejected=no
4742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743for as_dir in $PATH
4744do
4745  IFS=$as_save_IFS
4746  test -z "$as_dir" && as_dir=.
4747  for ac_exec_ext in '' $ac_executable_extensions; do
4748  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4749    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4750       ac_prog_rejected=yes
4751       continue
4752     fi
4753    ac_cv_prog_BUILD_CXX="c++"
4754    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4755    break 2
4756  fi
4757done
4758done
4759IFS=$as_save_IFS
4760
4761if test $ac_prog_rejected = yes; then
4762  # We found a bogon in the path, so make sure we never use it.
4763  set dummy $ac_cv_prog_BUILD_CXX
4764  shift
4765  if test $# != 0; then
4766    # We chose a different compiler from the bogus one.
4767    # However, it has the same basename, so the bogon will be chosen
4768    # first if we set BUILD_CXX to just the basename; use the full file name.
4769    shift
4770    ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4771  fi
4772fi
4773fi
4774fi
4775BUILD_CXX=$ac_cv_prog_BUILD_CXX
4776if test -n "$BUILD_CXX"; then
4777  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4778echo "${ECHO_T}$BUILD_CXX" >&6; }
4779else
4780  { echo "$as_me:$LINENO: result: no" >&5
4781echo "${ECHO_T}no" >&6; }
4782fi
4783
4784
4785     fi
4786  fi
4787else
4788  LLVM_CROSS_COMPILING=0
4789
4790fi
4791
4792if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4793  cvsbuild="yes"
4794  optimize="no"
4795  CVSBUILD=CVSBUILD=1
4796
4797else
4798  cvsbuild="no"
4799  optimize="yes"
4800fi
4801
4802
4803# Check whether --enable-optimized was given.
4804if test "${enable_optimized+set}" = set; then
4805  enableval=$enable_optimized;
4806else
4807  enableval=$optimize
4808fi
4809
4810if test ${enableval} = "no" ; then
4811  ENABLE_OPTIMIZED=
4812
4813else
4814  ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4815
4816fi
4817
4818# Check whether --enable-profiling was given.
4819if test "${enable_profiling+set}" = set; then
4820  enableval=$enable_profiling;
4821else
4822  enableval="no"
4823fi
4824
4825if test ${enableval} = "no" ; then
4826  ENABLE_PROFILING=
4827
4828else
4829  ENABLE_PROFILING=ENABLE_PROFILING=1
4830
4831fi
4832
4833# Check whether --enable-assertions was given.
4834if test "${enable_assertions+set}" = set; then
4835  enableval=$enable_assertions;
4836else
4837  enableval="yes"
4838fi
4839
4840if test ${enableval} = "yes" ; then
4841  DISABLE_ASSERTIONS=
4842
4843else
4844  DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4845
4846fi
4847
4848# Check whether --enable-expensive-checks was given.
4849if test "${enable_expensive_checks+set}" = set; then
4850  enableval=$enable_expensive_checks;
4851else
4852  enableval="no"
4853fi
4854
4855if test ${enableval} = "yes" ; then
4856  ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4857
4858  EXPENSIVE_CHECKS=yes
4859
4860else
4861  ENABLE_EXPENSIVE_CHECKS=
4862
4863  EXPENSIVE_CHECKS=no
4864
4865fi
4866
4867# Check whether --enable-debug-runtime was given.
4868if test "${enable_debug_runtime+set}" = set; then
4869  enableval=$enable_debug_runtime;
4870else
4871  enableval=no
4872fi
4873
4874if test ${enableval} = "no" ; then
4875  DEBUG_RUNTIME=
4876
4877else
4878  DEBUG_RUNTIME=DEBUG_RUNTIME=1
4879
4880fi
4881
4882# Check whether --enable-jit was given.
4883if test "${enable_jit+set}" = set; then
4884  enableval=$enable_jit;
4885else
4886  enableval=default
4887fi
4888
4889if test ${enableval} = "no"
4890then
4891  JIT=
4892
4893else
4894  case "$llvm_cv_target_arch" in
4895    x86)         TARGET_HAS_JIT=1
4896 ;;
4897    Sparc)       TARGET_HAS_JIT=0
4898 ;;
4899    PowerPC)     TARGET_HAS_JIT=1
4900 ;;
4901    x86_64)      TARGET_HAS_JIT=1
4902 ;;
4903    Alpha)       TARGET_HAS_JIT=1
4904 ;;
4905    ARM)         TARGET_HAS_JIT=0
4906 ;;
4907    Mips)        TARGET_HAS_JIT=0
4908 ;;
4909    PIC16)       TARGET_HAS_JIT=0
4910 ;;
4911    XCore)       TARGET_HAS_JIT=0
4912 ;;
4913    MSP430)      TARGET_HAS_JIT=0
4914 ;;
4915    SystemZ)     TARGET_HAS_JIT=0
4916 ;;
4917    Blackfin)    TARGET_HAS_JIT=0
4918 ;;
4919    *)           TARGET_HAS_JIT=0
4920 ;;
4921  esac
4922fi
4923
4924# Check whether --enable-doxygen was given.
4925if test "${enable_doxygen+set}" = set; then
4926  enableval=$enable_doxygen;
4927else
4928  enableval=default
4929fi
4930
4931case "$enableval" in
4932  yes) ENABLE_DOXYGEN=1
4933 ;;
4934  no)  ENABLE_DOXYGEN=0
4935 ;;
4936  default) ENABLE_DOXYGEN=0
4937 ;;
4938  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4939echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4940   { (exit 1); exit 1; }; } ;;
4941esac
4942
4943# Check whether --enable-threads was given.
4944if test "${enable_threads+set}" = set; then
4945  enableval=$enable_threads;
4946else
4947  enableval=default
4948fi
4949
4950case "$enableval" in
4951  yes) ENABLE_THREADS=1
4952 ;;
4953  no)  ENABLE_THREADS=0
4954 ;;
4955  default) ENABLE_THREADS=1
4956 ;;
4957  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4958echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4959   { (exit 1); exit 1; }; } ;;
4960esac
4961
4962cat >>confdefs.h <<_ACEOF
4963#define ENABLE_THREADS $ENABLE_THREADS
4964_ACEOF
4965
4966
4967# Check whether --enable-pic was given.
4968if test "${enable_pic+set}" = set; then
4969  enableval=$enable_pic;
4970else
4971  enableval=default
4972fi
4973
4974case "$enableval" in
4975  yes) ENABLE_PIC=1
4976 ;;
4977  no)  ENABLE_PIC=0
4978 ;;
4979  default) ENABLE_PIC=1
4980 ;;
4981  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4982echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4983   { (exit 1); exit 1; }; } ;;
4984esac
4985
4986cat >>confdefs.h <<_ACEOF
4987#define ENABLE_PIC $ENABLE_PIC
4988_ACEOF
4989
4990
4991TARGETS_TO_BUILD=""
4992# Check whether --enable-targets was given.
4993if test "${enable_targets+set}" = set; then
4994  enableval=$enable_targets;
4995else
4996  enableval=all
4997fi
4998
4999case "$enableval" in
5000  all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
5001  host-only)
5002    case "$llvm_cv_target_arch" in
5003      x86)         TARGETS_TO_BUILD="X86" ;;
5004      x86_64)      TARGETS_TO_BUILD="X86" ;;
5005      Sparc)       TARGETS_TO_BUILD="Sparc" ;;
5006      PowerPC)     TARGETS_TO_BUILD="PowerPC" ;;
5007      Alpha)       TARGETS_TO_BUILD="Alpha" ;;
5008      ARM)         TARGETS_TO_BUILD="ARM" ;;
5009      Mips)        TARGETS_TO_BUILD="Mips" ;;
5010      CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
5011      PIC16)       TARGETS_TO_BUILD="PIC16" ;;
5012      XCore)       TARGETS_TO_BUILD="XCore" ;;
5013      MSP430)      TARGETS_TO_BUILD="MSP430" ;;
5014      SystemZ)     TARGETS_TO_BUILD="SystemZ" ;;
5015      Blackfin)    TARGETS_TO_BUILD="Blackfin" ;;
5016      *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5017echo "$as_me: error: Can not set target to build" >&2;}
5018   { (exit 1); exit 1; }; } ;;
5019    esac
5020    ;;
5021  *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5022      case "$a_target" in
5023        x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5024        x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5025        sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5026        powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5027        alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5028        arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5029        mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5030        spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5031        pic16)    TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5032        xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5033        msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5034        systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5035        blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5036        cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5037        msil)     TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
5038        cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5039        *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5040echo "$as_me: error: Unrecognized target $a_target" >&2;}
5041   { (exit 1); exit 1; }; } ;;
5042      esac
5043  done
5044  ;;
5045esac
5046TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5047
5048
5049# Determine whether we are building LLVM support for the native architecture.
5050# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5051for a_target in $TARGETS_TO_BUILD; do
5052  if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5053    LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
5054
5055cat >>confdefs.h <<_ACEOF
5056#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
5057_ACEOF
5058
5059  fi
5060done
5061
5062# Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
5063# Targets.def, AsmPrinters.def, and AsmParsers.def.
5064LLVM_ENUM_TARGETS=""
5065LLVM_ENUM_ASM_PRINTERS=""
5066LLVM_ENUM_ASM_PARSERS=""
5067for target_to_build in $TARGETS_TO_BUILD; do
5068  LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5069  if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5070    LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5071  fi
5072  if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5073    LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5074  fi
5075done
5076
5077
5078
5079
5080# Check whether --enable-cbe-printf-a was given.
5081if test "${enable_cbe_printf_a+set}" = set; then
5082  enableval=$enable_cbe_printf_a;
5083else
5084  enableval=default
5085fi
5086
5087case "$enableval" in
5088  yes) ENABLE_CBE_PRINTF_A=1
5089 ;;
5090  no)  ENABLE_CBE_PRINTF_A=0
5091 ;;
5092  default)  ENABLE_CBE_PRINTF_A=1
5093 ;;
5094  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5095echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5096   { (exit 1); exit 1; }; } ;;
5097esac
5098
5099cat >>confdefs.h <<_ACEOF
5100#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5101_ACEOF
5102
5103
5104
5105# Check whether --with-llvmgccdir was given.
5106if test "${with_llvmgccdir+set}" = set; then
5107  withval=$with_llvmgccdir;
5108else
5109  withval=default
5110fi
5111
5112case "$withval" in
5113  default) WITH_LLVMGCCDIR=default ;;
5114  /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5115  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5116echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5117   { (exit 1); exit 1; }; } ;;
5118esac
5119
5120
5121# Check whether --with-llvmgcc was given.
5122if test "${with_llvmgcc+set}" = set; then
5123  withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5124      WITH_LLVMGCCDIR=""
5125fi
5126
5127
5128
5129# Check whether --with-llvmgxx was given.
5130if test "${with_llvmgxx+set}" = set; then
5131  withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5132    WITH_LLVMGCCDIR=""
5133fi
5134
5135
5136if test -n "$LLVMGCC"; then
5137   LLVMGCCCOMMAND="$LLVMGCC"
5138fi
5139
5140if test -n "$LLVMGXX"; then
5141   LLVMGXXCOMMAND="$LLVMGXX"
5142fi
5143
5144if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5145   { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5146echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5147   { (exit 1); exit 1; }; };
5148fi
5149
5150if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5151   { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5152echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5153   { (exit 1); exit 1; }; };
5154fi
5155
5156
5157# Check whether --with-extra-options was given.
5158if test "${with_extra_options+set}" = set; then
5159  withval=$with_extra_options;
5160else
5161  withval=default
5162fi
5163
5164case "$withval" in
5165  default) EXTRA_OPTIONS= ;;
5166  *) EXTRA_OPTIONS=$withval ;;
5167esac
5168EXTRA_OPTIONS=$EXTRA_OPTIONS
5169
5170
5171# Check whether --enable-bindings was given.
5172if test "${enable_bindings+set}" = set; then
5173  enableval=$enable_bindings;
5174else
5175  enableval=default
5176fi
5177
5178BINDINGS_TO_BUILD=""
5179case "$enableval" in
5180  yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5181  all ) BINDINGS_TO_BUILD="ocaml" ;;
5182  none | no) BINDINGS_TO_BUILD="" ;;
5183  *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5184      case "$a_binding" in
5185        ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5186        *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5187echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5188   { (exit 1); exit 1; }; } ;;
5189      esac
5190  done
5191  ;;
5192esac
5193
5194
5195# Check whether --with-ocaml-libdir was given.
5196if test "${with_ocaml_libdir+set}" = set; then
5197  withval=$with_ocaml_libdir;
5198else
5199  withval=auto
5200fi
5201
5202case "$withval" in
5203  auto) with_ocaml_libdir="$withval" ;;
5204  /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5205  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5206echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5207   { (exit 1); exit 1; }; } ;;
5208esac
5209
5210
5211# Check whether --with-binutils-include was given.
5212if test "${with_binutils_include+set}" = set; then
5213  withval=$with_binutils_include;
5214else
5215  withval=default
5216fi
5217
5218case "$withval" in
5219  default) WITH_BINUTILS_INCDIR=default ;;
5220  /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5221  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5222echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5223   { (exit 1); exit 1; }; } ;;
5224esac
5225if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5226  BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5227
5228  if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5229     echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5230     { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5231echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5232   { (exit 1); exit 1; }; };
5233  fi
5234fi
5235
5236# Check whether --enable-libffi was given.
5237if test "${enable_libffi+set}" = set; then
5238  enableval=$enable_libffi;
5239else
5240  enableval=yes
5241fi
5242
5243case "$enableval" in
5244  yes) llvm_cv_enable_libffi="yes" ;;
5245  no)  llvm_cv_enable_libffi="no"  ;;
5246  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5247echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5248   { (exit 1); exit 1; }; } ;;
5249esac
5250
5251if test "$llvm_cv_os_type" = "Win32" ; then
5252   llvmc_dynamic="yes"
5253else
5254   llvmc_dynamic="no"
5255fi
5256
5257# Check whether --enable-llvmc-dynamic was given.
5258if test "${enable_llvmc_dynamic+set}" = set; then
5259  enableval=$enable_llvmc_dynamic;
5260else
5261  enableval=$llvmc_dynamic
5262fi
5263
5264if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5265   ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5266
5267else
5268   ENABLE_LLVMC_DYNAMIC=
5269
5270fi
5271
5272# Check whether --enable-llvmc-dynamic-plugins was given.
5273if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5274  enableval=$enable_llvmc_dynamic_plugins;
5275else
5276  enableval=yes
5277fi
5278
5279if test ${enableval} = "yes" ; then
5280   ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5281
5282else
5283   ENABLE_LLVMC_DYNAMIC_PLUGINS=
5284
5285fi
5286
5287
5288ac_ext=c
5289ac_cpp='$CPP $CPPFLAGS'
5290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5292ac_compiler_gnu=$ac_cv_c_compiler_gnu
5293{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5294echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5295# On Suns, sometimes $CPP names a directory.
5296if test -n "$CPP" && test -d "$CPP"; then
5297  CPP=
5298fi
5299if test -z "$CPP"; then
5300  if test "${ac_cv_prog_CPP+set}" = set; then
5301  echo $ECHO_N "(cached) $ECHO_C" >&6
5302else
5303      # Double quotes because CPP needs to be expanded
5304    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5305    do
5306      ac_preproc_ok=false
5307for ac_c_preproc_warn_flag in '' yes
5308do
5309  # Use a header file that comes with gcc, so configuring glibc
5310  # with a fresh cross-compiler works.
5311  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5312  # <limits.h> exists even on freestanding compilers.
5313  # On the NeXT, cc -E runs the code through the compiler's parser,
5314  # not just through cpp. "Syntax error" is here to catch this case.
5315  cat >conftest.$ac_ext <<_ACEOF
5316/* confdefs.h.  */
5317_ACEOF
5318cat confdefs.h >>conftest.$ac_ext
5319cat >>conftest.$ac_ext <<_ACEOF
5320/* end confdefs.h.  */
5321#ifdef __STDC__
5322# include <limits.h>
5323#else
5324# include <assert.h>
5325#endif
5326		     Syntax error
5327_ACEOF
5328if { (ac_try="$ac_cpp conftest.$ac_ext"
5329case "(($ac_try" in
5330  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5331  *) ac_try_echo=$ac_try;;
5332esac
5333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5334  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5335  ac_status=$?
5336  grep -v '^ *+' conftest.er1 >conftest.err
5337  rm -f conftest.er1
5338  cat conftest.err >&5
5339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340  (exit $ac_status); } >/dev/null; then
5341  if test -s conftest.err; then
5342    ac_cpp_err=$ac_c_preproc_warn_flag
5343    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5344  else
5345    ac_cpp_err=
5346  fi
5347else
5348  ac_cpp_err=yes
5349fi
5350if test -z "$ac_cpp_err"; then
5351  :
5352else
5353  echo "$as_me: failed program was:" >&5
5354sed 's/^/| /' conftest.$ac_ext >&5
5355
5356  # Broken: fails on valid input.
5357continue
5358fi
5359
5360rm -f conftest.err conftest.$ac_ext
5361
5362  # OK, works on sane cases.  Now check whether nonexistent headers
5363  # can be detected and how.
5364  cat >conftest.$ac_ext <<_ACEOF
5365/* confdefs.h.  */
5366_ACEOF
5367cat confdefs.h >>conftest.$ac_ext
5368cat >>conftest.$ac_ext <<_ACEOF
5369/* end confdefs.h.  */
5370#include <ac_nonexistent.h>
5371_ACEOF
5372if { (ac_try="$ac_cpp conftest.$ac_ext"
5373case "(($ac_try" in
5374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375  *) ac_try_echo=$ac_try;;
5376esac
5377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5378  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5379  ac_status=$?
5380  grep -v '^ *+' conftest.er1 >conftest.err
5381  rm -f conftest.er1
5382  cat conftest.err >&5
5383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384  (exit $ac_status); } >/dev/null; then
5385  if test -s conftest.err; then
5386    ac_cpp_err=$ac_c_preproc_warn_flag
5387    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5388  else
5389    ac_cpp_err=
5390  fi
5391else
5392  ac_cpp_err=yes
5393fi
5394if test -z "$ac_cpp_err"; then
5395  # Broken: success on invalid input.
5396continue
5397else
5398  echo "$as_me: failed program was:" >&5
5399sed 's/^/| /' conftest.$ac_ext >&5
5400
5401  # Passes both tests.
5402ac_preproc_ok=:
5403break
5404fi
5405
5406rm -f conftest.err conftest.$ac_ext
5407
5408done
5409# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5410rm -f conftest.err conftest.$ac_ext
5411if $ac_preproc_ok; then
5412  break
5413fi
5414
5415    done
5416    ac_cv_prog_CPP=$CPP
5417
5418fi
5419  CPP=$ac_cv_prog_CPP
5420else
5421  ac_cv_prog_CPP=$CPP
5422fi
5423{ echo "$as_me:$LINENO: result: $CPP" >&5
5424echo "${ECHO_T}$CPP" >&6; }
5425ac_preproc_ok=false
5426for ac_c_preproc_warn_flag in '' yes
5427do
5428  # Use a header file that comes with gcc, so configuring glibc
5429  # with a fresh cross-compiler works.
5430  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5431  # <limits.h> exists even on freestanding compilers.
5432  # On the NeXT, cc -E runs the code through the compiler's parser,
5433  # not just through cpp. "Syntax error" is here to catch this case.
5434  cat >conftest.$ac_ext <<_ACEOF
5435/* confdefs.h.  */
5436_ACEOF
5437cat confdefs.h >>conftest.$ac_ext
5438cat >>conftest.$ac_ext <<_ACEOF
5439/* end confdefs.h.  */
5440#ifdef __STDC__
5441# include <limits.h>
5442#else
5443# include <assert.h>
5444#endif
5445		     Syntax error
5446_ACEOF
5447if { (ac_try="$ac_cpp conftest.$ac_ext"
5448case "(($ac_try" in
5449  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5450  *) ac_try_echo=$ac_try;;
5451esac
5452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5453  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5454  ac_status=$?
5455  grep -v '^ *+' conftest.er1 >conftest.err
5456  rm -f conftest.er1
5457  cat conftest.err >&5
5458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459  (exit $ac_status); } >/dev/null; then
5460  if test -s conftest.err; then
5461    ac_cpp_err=$ac_c_preproc_warn_flag
5462    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5463  else
5464    ac_cpp_err=
5465  fi
5466else
5467  ac_cpp_err=yes
5468fi
5469if test -z "$ac_cpp_err"; then
5470  :
5471else
5472  echo "$as_me: failed program was:" >&5
5473sed 's/^/| /' conftest.$ac_ext >&5
5474
5475  # Broken: fails on valid input.
5476continue
5477fi
5478
5479rm -f conftest.err conftest.$ac_ext
5480
5481  # OK, works on sane cases.  Now check whether nonexistent headers
5482  # can be detected and how.
5483  cat >conftest.$ac_ext <<_ACEOF
5484/* confdefs.h.  */
5485_ACEOF
5486cat confdefs.h >>conftest.$ac_ext
5487cat >>conftest.$ac_ext <<_ACEOF
5488/* end confdefs.h.  */
5489#include <ac_nonexistent.h>
5490_ACEOF
5491if { (ac_try="$ac_cpp conftest.$ac_ext"
5492case "(($ac_try" in
5493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5494  *) ac_try_echo=$ac_try;;
5495esac
5496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5497  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5498  ac_status=$?
5499  grep -v '^ *+' conftest.er1 >conftest.err
5500  rm -f conftest.er1
5501  cat conftest.err >&5
5502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503  (exit $ac_status); } >/dev/null; then
5504  if test -s conftest.err; then
5505    ac_cpp_err=$ac_c_preproc_warn_flag
5506    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5507  else
5508    ac_cpp_err=
5509  fi
5510else
5511  ac_cpp_err=yes
5512fi
5513if test -z "$ac_cpp_err"; then
5514  # Broken: success on invalid input.
5515continue
5516else
5517  echo "$as_me: failed program was:" >&5
5518sed 's/^/| /' conftest.$ac_ext >&5
5519
5520  # Passes both tests.
5521ac_preproc_ok=:
5522break
5523fi
5524
5525rm -f conftest.err conftest.$ac_ext
5526
5527done
5528# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5529rm -f conftest.err conftest.$ac_ext
5530if $ac_preproc_ok; then
5531  :
5532else
5533  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5534See \`config.log' for more details." >&5
5535echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5536See \`config.log' for more details." >&2;}
5537   { (exit 1); exit 1; }; }
5538fi
5539
5540ac_ext=c
5541ac_cpp='$CPP $CPPFLAGS'
5542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5544ac_compiler_gnu=$ac_cv_c_compiler_gnu
5545
5546ac_ext=c
5547ac_cpp='$CPP $CPPFLAGS'
5548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5550ac_compiler_gnu=$ac_cv_c_compiler_gnu
5551if test -n "$ac_tool_prefix"; then
5552  for ac_prog in gcc
5553  do
5554    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5555set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5556{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5558if test "${ac_cv_prog_CC+set}" = set; then
5559  echo $ECHO_N "(cached) $ECHO_C" >&6
5560else
5561  if test -n "$CC"; then
5562  ac_cv_prog_CC="$CC" # Let the user override the test.
5563else
5564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565for as_dir in $PATH
5566do
5567  IFS=$as_save_IFS
5568  test -z "$as_dir" && as_dir=.
5569  for ac_exec_ext in '' $ac_executable_extensions; do
5570  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5571    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5572    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5573    break 2
5574  fi
5575done
5576done
5577IFS=$as_save_IFS
5578
5579fi
5580fi
5581CC=$ac_cv_prog_CC
5582if test -n "$CC"; then
5583  { echo "$as_me:$LINENO: result: $CC" >&5
5584echo "${ECHO_T}$CC" >&6; }
5585else
5586  { echo "$as_me:$LINENO: result: no" >&5
5587echo "${ECHO_T}no" >&6; }
5588fi
5589
5590
5591    test -n "$CC" && break
5592  done
5593fi
5594if test -z "$CC"; then
5595  ac_ct_CC=$CC
5596  for ac_prog in gcc
5597do
5598  # Extract the first word of "$ac_prog", so it can be a program name with args.
5599set dummy $ac_prog; ac_word=$2
5600{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5602if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5603  echo $ECHO_N "(cached) $ECHO_C" >&6
5604else
5605  if test -n "$ac_ct_CC"; then
5606  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5607else
5608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609for as_dir in $PATH
5610do
5611  IFS=$as_save_IFS
5612  test -z "$as_dir" && as_dir=.
5613  for ac_exec_ext in '' $ac_executable_extensions; do
5614  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5615    ac_cv_prog_ac_ct_CC="$ac_prog"
5616    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5617    break 2
5618  fi
5619done
5620done
5621IFS=$as_save_IFS
5622
5623fi
5624fi
5625ac_ct_CC=$ac_cv_prog_ac_ct_CC
5626if test -n "$ac_ct_CC"; then
5627  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5628echo "${ECHO_T}$ac_ct_CC" >&6; }
5629else
5630  { echo "$as_me:$LINENO: result: no" >&5
5631echo "${ECHO_T}no" >&6; }
5632fi
5633
5634
5635  test -n "$ac_ct_CC" && break
5636done
5637
5638  if test "x$ac_ct_CC" = x; then
5639    CC=""
5640  else
5641    case $cross_compiling:$ac_tool_warned in
5642yes:)
5643{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5644whose name does not start with the host triplet.  If you think this
5645configuration is useful to you, please write to autoconf@gnu.org." >&5
5646echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5647whose name does not start with the host triplet.  If you think this
5648configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5649ac_tool_warned=yes ;;
5650esac
5651    CC=$ac_ct_CC
5652  fi
5653fi
5654
5655
5656test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5657See \`config.log' for more details." >&5
5658echo "$as_me: error: no acceptable C compiler found in \$PATH
5659See \`config.log' for more details." >&2;}
5660   { (exit 1); exit 1; }; }
5661
5662# Provide some information about the compiler.
5663echo "$as_me:$LINENO: checking for C compiler version" >&5
5664ac_compiler=`set X $ac_compile; echo $2`
5665{ (ac_try="$ac_compiler --version >&5"
5666case "(($ac_try" in
5667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5668  *) ac_try_echo=$ac_try;;
5669esac
5670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5671  (eval "$ac_compiler --version >&5") 2>&5
5672  ac_status=$?
5673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674  (exit $ac_status); }
5675{ (ac_try="$ac_compiler -v >&5"
5676case "(($ac_try" in
5677  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5678  *) ac_try_echo=$ac_try;;
5679esac
5680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5681  (eval "$ac_compiler -v >&5") 2>&5
5682  ac_status=$?
5683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684  (exit $ac_status); }
5685{ (ac_try="$ac_compiler -V >&5"
5686case "(($ac_try" in
5687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5688  *) ac_try_echo=$ac_try;;
5689esac
5690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5691  (eval "$ac_compiler -V >&5") 2>&5
5692  ac_status=$?
5693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694  (exit $ac_status); }
5695
5696{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5697echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5698if test "${ac_cv_c_compiler_gnu+set}" = set; then
5699  echo $ECHO_N "(cached) $ECHO_C" >&6
5700else
5701  cat >conftest.$ac_ext <<_ACEOF
5702/* confdefs.h.  */
5703_ACEOF
5704cat confdefs.h >>conftest.$ac_ext
5705cat >>conftest.$ac_ext <<_ACEOF
5706/* end confdefs.h.  */
5707
5708int
5709main ()
5710{
5711#ifndef __GNUC__
5712       choke me
5713#endif
5714
5715  ;
5716  return 0;
5717}
5718_ACEOF
5719rm -f conftest.$ac_objext
5720if { (ac_try="$ac_compile"
5721case "(($ac_try" in
5722  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5723  *) ac_try_echo=$ac_try;;
5724esac
5725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5726  (eval "$ac_compile") 2>conftest.er1
5727  ac_status=$?
5728  grep -v '^ *+' conftest.er1 >conftest.err
5729  rm -f conftest.er1
5730  cat conftest.err >&5
5731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732  (exit $ac_status); } &&
5733	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5734  { (case "(($ac_try" in
5735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5736  *) ac_try_echo=$ac_try;;
5737esac
5738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5739  (eval "$ac_try") 2>&5
5740  ac_status=$?
5741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742  (exit $ac_status); }; } &&
5743	 { ac_try='test -s conftest.$ac_objext'
5744  { (case "(($ac_try" in
5745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5746  *) ac_try_echo=$ac_try;;
5747esac
5748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5749  (eval "$ac_try") 2>&5
5750  ac_status=$?
5751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752  (exit $ac_status); }; }; then
5753  ac_compiler_gnu=yes
5754else
5755  echo "$as_me: failed program was:" >&5
5756sed 's/^/| /' conftest.$ac_ext >&5
5757
5758	ac_compiler_gnu=no
5759fi
5760
5761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5762ac_cv_c_compiler_gnu=$ac_compiler_gnu
5763
5764fi
5765{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5766echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5767GCC=`test $ac_compiler_gnu = yes && echo yes`
5768ac_test_CFLAGS=${CFLAGS+set}
5769ac_save_CFLAGS=$CFLAGS
5770{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5771echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5772if test "${ac_cv_prog_cc_g+set}" = set; then
5773  echo $ECHO_N "(cached) $ECHO_C" >&6
5774else
5775  ac_save_c_werror_flag=$ac_c_werror_flag
5776   ac_c_werror_flag=yes
5777   ac_cv_prog_cc_g=no
5778   CFLAGS="-g"
5779   cat >conftest.$ac_ext <<_ACEOF
5780/* confdefs.h.  */
5781_ACEOF
5782cat confdefs.h >>conftest.$ac_ext
5783cat >>conftest.$ac_ext <<_ACEOF
5784/* end confdefs.h.  */
5785
5786int
5787main ()
5788{
5789
5790  ;
5791  return 0;
5792}
5793_ACEOF
5794rm -f conftest.$ac_objext
5795if { (ac_try="$ac_compile"
5796case "(($ac_try" in
5797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5798  *) ac_try_echo=$ac_try;;
5799esac
5800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5801  (eval "$ac_compile") 2>conftest.er1
5802  ac_status=$?
5803  grep -v '^ *+' conftest.er1 >conftest.err
5804  rm -f conftest.er1
5805  cat conftest.err >&5
5806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807  (exit $ac_status); } &&
5808	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5809  { (case "(($ac_try" in
5810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5811  *) ac_try_echo=$ac_try;;
5812esac
5813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5814  (eval "$ac_try") 2>&5
5815  ac_status=$?
5816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817  (exit $ac_status); }; } &&
5818	 { ac_try='test -s conftest.$ac_objext'
5819  { (case "(($ac_try" in
5820  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5821  *) ac_try_echo=$ac_try;;
5822esac
5823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5824  (eval "$ac_try") 2>&5
5825  ac_status=$?
5826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827  (exit $ac_status); }; }; then
5828  ac_cv_prog_cc_g=yes
5829else
5830  echo "$as_me: failed program was:" >&5
5831sed 's/^/| /' conftest.$ac_ext >&5
5832
5833	CFLAGS=""
5834      cat >conftest.$ac_ext <<_ACEOF
5835/* confdefs.h.  */
5836_ACEOF
5837cat confdefs.h >>conftest.$ac_ext
5838cat >>conftest.$ac_ext <<_ACEOF
5839/* end confdefs.h.  */
5840
5841int
5842main ()
5843{
5844
5845  ;
5846  return 0;
5847}
5848_ACEOF
5849rm -f conftest.$ac_objext
5850if { (ac_try="$ac_compile"
5851case "(($ac_try" in
5852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853  *) ac_try_echo=$ac_try;;
5854esac
5855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856  (eval "$ac_compile") 2>conftest.er1
5857  ac_status=$?
5858  grep -v '^ *+' conftest.er1 >conftest.err
5859  rm -f conftest.er1
5860  cat conftest.err >&5
5861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862  (exit $ac_status); } &&
5863	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5864  { (case "(($ac_try" in
5865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5866  *) ac_try_echo=$ac_try;;
5867esac
5868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5869  (eval "$ac_try") 2>&5
5870  ac_status=$?
5871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872  (exit $ac_status); }; } &&
5873	 { ac_try='test -s conftest.$ac_objext'
5874  { (case "(($ac_try" in
5875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5876  *) ac_try_echo=$ac_try;;
5877esac
5878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5879  (eval "$ac_try") 2>&5
5880  ac_status=$?
5881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882  (exit $ac_status); }; }; then
5883  :
5884else
5885  echo "$as_me: failed program was:" >&5
5886sed 's/^/| /' conftest.$ac_ext >&5
5887
5888	ac_c_werror_flag=$ac_save_c_werror_flag
5889	 CFLAGS="-g"
5890	 cat >conftest.$ac_ext <<_ACEOF
5891/* confdefs.h.  */
5892_ACEOF
5893cat confdefs.h >>conftest.$ac_ext
5894cat >>conftest.$ac_ext <<_ACEOF
5895/* end confdefs.h.  */
5896
5897int
5898main ()
5899{
5900
5901  ;
5902  return 0;
5903}
5904_ACEOF
5905rm -f conftest.$ac_objext
5906if { (ac_try="$ac_compile"
5907case "(($ac_try" in
5908  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5909  *) ac_try_echo=$ac_try;;
5910esac
5911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5912  (eval "$ac_compile") 2>conftest.er1
5913  ac_status=$?
5914  grep -v '^ *+' conftest.er1 >conftest.err
5915  rm -f conftest.er1
5916  cat conftest.err >&5
5917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918  (exit $ac_status); } &&
5919	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5920  { (case "(($ac_try" in
5921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922  *) ac_try_echo=$ac_try;;
5923esac
5924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5925  (eval "$ac_try") 2>&5
5926  ac_status=$?
5927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928  (exit $ac_status); }; } &&
5929	 { ac_try='test -s conftest.$ac_objext'
5930  { (case "(($ac_try" in
5931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5932  *) ac_try_echo=$ac_try;;
5933esac
5934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5935  (eval "$ac_try") 2>&5
5936  ac_status=$?
5937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938  (exit $ac_status); }; }; then
5939  ac_cv_prog_cc_g=yes
5940else
5941  echo "$as_me: failed program was:" >&5
5942sed 's/^/| /' conftest.$ac_ext >&5
5943
5944
5945fi
5946
5947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5948fi
5949
5950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5951fi
5952
5953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5954   ac_c_werror_flag=$ac_save_c_werror_flag
5955fi
5956{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5957echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5958if test "$ac_test_CFLAGS" = set; then
5959  CFLAGS=$ac_save_CFLAGS
5960elif test $ac_cv_prog_cc_g = yes; then
5961  if test "$GCC" = yes; then
5962    CFLAGS="-g -O2"
5963  else
5964    CFLAGS="-g"
5965  fi
5966else
5967  if test "$GCC" = yes; then
5968    CFLAGS="-O2"
5969  else
5970    CFLAGS=
5971  fi
5972fi
5973{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5974echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5975if test "${ac_cv_prog_cc_c89+set}" = set; then
5976  echo $ECHO_N "(cached) $ECHO_C" >&6
5977else
5978  ac_cv_prog_cc_c89=no
5979ac_save_CC=$CC
5980cat >conftest.$ac_ext <<_ACEOF
5981/* confdefs.h.  */
5982_ACEOF
5983cat confdefs.h >>conftest.$ac_ext
5984cat >>conftest.$ac_ext <<_ACEOF
5985/* end confdefs.h.  */
5986#include <stdarg.h>
5987#include <stdio.h>
5988#include <sys/types.h>
5989#include <sys/stat.h>
5990/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5991struct buf { int x; };
5992FILE * (*rcsopen) (struct buf *, struct stat *, int);
5993static char *e (p, i)
5994     char **p;
5995     int i;
5996{
5997  return p[i];
5998}
5999static char *f (char * (*g) (char **, int), char **p, ...)
6000{
6001  char *s;
6002  va_list v;
6003  va_start (v,p);
6004  s = g (p, va_arg (v,int));
6005  va_end (v);
6006  return s;
6007}
6008
6009/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6010   function prototypes and stuff, but not '\xHH' hex character constants.
6011   These don't provoke an error unfortunately, instead are silently treated
6012   as 'x'.  The following induces an error, until -std is added to get
6013   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6014   array size at least.  It's necessary to write '\x00'==0 to get something
6015   that's true only with -std.  */
6016int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6017
6018/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6019   inside strings and character constants.  */
6020#define FOO(x) 'x'
6021int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6022
6023int test (int i, double x);
6024struct s1 {int (*f) (int a);};
6025struct s2 {int (*f) (double a);};
6026int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6027int argc;
6028char **argv;
6029int
6030main ()
6031{
6032return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6033  ;
6034  return 0;
6035}
6036_ACEOF
6037for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6038	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6039do
6040  CC="$ac_save_CC $ac_arg"
6041  rm -f conftest.$ac_objext
6042if { (ac_try="$ac_compile"
6043case "(($ac_try" in
6044  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6045  *) ac_try_echo=$ac_try;;
6046esac
6047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6048  (eval "$ac_compile") 2>conftest.er1
6049  ac_status=$?
6050  grep -v '^ *+' conftest.er1 >conftest.err
6051  rm -f conftest.er1
6052  cat conftest.err >&5
6053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054  (exit $ac_status); } &&
6055	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6056  { (case "(($ac_try" in
6057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058  *) ac_try_echo=$ac_try;;
6059esac
6060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6061  (eval "$ac_try") 2>&5
6062  ac_status=$?
6063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064  (exit $ac_status); }; } &&
6065	 { ac_try='test -s conftest.$ac_objext'
6066  { (case "(($ac_try" in
6067  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6068  *) ac_try_echo=$ac_try;;
6069esac
6070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6071  (eval "$ac_try") 2>&5
6072  ac_status=$?
6073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074  (exit $ac_status); }; }; then
6075  ac_cv_prog_cc_c89=$ac_arg
6076else
6077  echo "$as_me: failed program was:" >&5
6078sed 's/^/| /' conftest.$ac_ext >&5
6079
6080
6081fi
6082
6083rm -f core conftest.err conftest.$ac_objext
6084  test "x$ac_cv_prog_cc_c89" != "xno" && break
6085done
6086rm -f conftest.$ac_ext
6087CC=$ac_save_CC
6088
6089fi
6090# AC_CACHE_VAL
6091case "x$ac_cv_prog_cc_c89" in
6092  x)
6093    { echo "$as_me:$LINENO: result: none needed" >&5
6094echo "${ECHO_T}none needed" >&6; } ;;
6095  xno)
6096    { echo "$as_me:$LINENO: result: unsupported" >&5
6097echo "${ECHO_T}unsupported" >&6; } ;;
6098  *)
6099    CC="$CC $ac_cv_prog_cc_c89"
6100    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6101echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6102esac
6103
6104
6105ac_ext=c
6106ac_cpp='$CPP $CPPFLAGS'
6107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6109ac_compiler_gnu=$ac_cv_c_compiler_gnu
6110
6111ac_ext=cpp
6112ac_cpp='$CXXCPP $CPPFLAGS'
6113ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6114ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6115ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6116if test -z "$CXX"; then
6117  if test -n "$CCC"; then
6118    CXX=$CCC
6119  else
6120    if test -n "$ac_tool_prefix"; then
6121  for ac_prog in g++
6122  do
6123    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6124set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6125{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6127if test "${ac_cv_prog_CXX+set}" = set; then
6128  echo $ECHO_N "(cached) $ECHO_C" >&6
6129else
6130  if test -n "$CXX"; then
6131  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6132else
6133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6134for as_dir in $PATH
6135do
6136  IFS=$as_save_IFS
6137  test -z "$as_dir" && as_dir=.
6138  for ac_exec_ext in '' $ac_executable_extensions; do
6139  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6140    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6141    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6142    break 2
6143  fi
6144done
6145done
6146IFS=$as_save_IFS
6147
6148fi
6149fi
6150CXX=$ac_cv_prog_CXX
6151if test -n "$CXX"; then
6152  { echo "$as_me:$LINENO: result: $CXX" >&5
6153echo "${ECHO_T}$CXX" >&6; }
6154else
6155  { echo "$as_me:$LINENO: result: no" >&5
6156echo "${ECHO_T}no" >&6; }
6157fi
6158
6159
6160    test -n "$CXX" && break
6161  done
6162fi
6163if test -z "$CXX"; then
6164  ac_ct_CXX=$CXX
6165  for ac_prog in g++
6166do
6167  # Extract the first word of "$ac_prog", so it can be a program name with args.
6168set dummy $ac_prog; ac_word=$2
6169{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6171if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6172  echo $ECHO_N "(cached) $ECHO_C" >&6
6173else
6174  if test -n "$ac_ct_CXX"; then
6175  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6176else
6177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178for as_dir in $PATH
6179do
6180  IFS=$as_save_IFS
6181  test -z "$as_dir" && as_dir=.
6182  for ac_exec_ext in '' $ac_executable_extensions; do
6183  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6184    ac_cv_prog_ac_ct_CXX="$ac_prog"
6185    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6186    break 2
6187  fi
6188done
6189done
6190IFS=$as_save_IFS
6191
6192fi
6193fi
6194ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6195if test -n "$ac_ct_CXX"; then
6196  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6197echo "${ECHO_T}$ac_ct_CXX" >&6; }
6198else
6199  { echo "$as_me:$LINENO: result: no" >&5
6200echo "${ECHO_T}no" >&6; }
6201fi
6202
6203
6204  test -n "$ac_ct_CXX" && break
6205done
6206
6207  if test "x$ac_ct_CXX" = x; then
6208    CXX="g++"
6209  else
6210    case $cross_compiling:$ac_tool_warned in
6211yes:)
6212{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6213whose name does not start with the host triplet.  If you think this
6214configuration is useful to you, please write to autoconf@gnu.org." >&5
6215echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6216whose name does not start with the host triplet.  If you think this
6217configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6218ac_tool_warned=yes ;;
6219esac
6220    CXX=$ac_ct_CXX
6221  fi
6222fi
6223
6224  fi
6225fi
6226# Provide some information about the compiler.
6227echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6228ac_compiler=`set X $ac_compile; echo $2`
6229{ (ac_try="$ac_compiler --version >&5"
6230case "(($ac_try" in
6231  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6232  *) ac_try_echo=$ac_try;;
6233esac
6234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6235  (eval "$ac_compiler --version >&5") 2>&5
6236  ac_status=$?
6237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238  (exit $ac_status); }
6239{ (ac_try="$ac_compiler -v >&5"
6240case "(($ac_try" in
6241  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6242  *) ac_try_echo=$ac_try;;
6243esac
6244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6245  (eval "$ac_compiler -v >&5") 2>&5
6246  ac_status=$?
6247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248  (exit $ac_status); }
6249{ (ac_try="$ac_compiler -V >&5"
6250case "(($ac_try" in
6251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6252  *) ac_try_echo=$ac_try;;
6253esac
6254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6255  (eval "$ac_compiler -V >&5") 2>&5
6256  ac_status=$?
6257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258  (exit $ac_status); }
6259
6260{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6261echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6262if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6263  echo $ECHO_N "(cached) $ECHO_C" >&6
6264else
6265  cat >conftest.$ac_ext <<_ACEOF
6266/* confdefs.h.  */
6267_ACEOF
6268cat confdefs.h >>conftest.$ac_ext
6269cat >>conftest.$ac_ext <<_ACEOF
6270/* end confdefs.h.  */
6271
6272int
6273main ()
6274{
6275#ifndef __GNUC__
6276       choke me
6277#endif
6278
6279  ;
6280  return 0;
6281}
6282_ACEOF
6283rm -f conftest.$ac_objext
6284if { (ac_try="$ac_compile"
6285case "(($ac_try" in
6286  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6287  *) ac_try_echo=$ac_try;;
6288esac
6289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6290  (eval "$ac_compile") 2>conftest.er1
6291  ac_status=$?
6292  grep -v '^ *+' conftest.er1 >conftest.err
6293  rm -f conftest.er1
6294  cat conftest.err >&5
6295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296  (exit $ac_status); } &&
6297	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6298  { (case "(($ac_try" in
6299  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6300  *) ac_try_echo=$ac_try;;
6301esac
6302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6303  (eval "$ac_try") 2>&5
6304  ac_status=$?
6305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306  (exit $ac_status); }; } &&
6307	 { ac_try='test -s conftest.$ac_objext'
6308  { (case "(($ac_try" in
6309  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6310  *) ac_try_echo=$ac_try;;
6311esac
6312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6313  (eval "$ac_try") 2>&5
6314  ac_status=$?
6315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316  (exit $ac_status); }; }; then
6317  ac_compiler_gnu=yes
6318else
6319  echo "$as_me: failed program was:" >&5
6320sed 's/^/| /' conftest.$ac_ext >&5
6321
6322	ac_compiler_gnu=no
6323fi
6324
6325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6327
6328fi
6329{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6330echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6331GXX=`test $ac_compiler_gnu = yes && echo yes`
6332ac_test_CXXFLAGS=${CXXFLAGS+set}
6333ac_save_CXXFLAGS=$CXXFLAGS
6334{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6335echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6336if test "${ac_cv_prog_cxx_g+set}" = set; then
6337  echo $ECHO_N "(cached) $ECHO_C" >&6
6338else
6339  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6340   ac_cxx_werror_flag=yes
6341   ac_cv_prog_cxx_g=no
6342   CXXFLAGS="-g"
6343   cat >conftest.$ac_ext <<_ACEOF
6344/* confdefs.h.  */
6345_ACEOF
6346cat confdefs.h >>conftest.$ac_ext
6347cat >>conftest.$ac_ext <<_ACEOF
6348/* end confdefs.h.  */
6349
6350int
6351main ()
6352{
6353
6354  ;
6355  return 0;
6356}
6357_ACEOF
6358rm -f conftest.$ac_objext
6359if { (ac_try="$ac_compile"
6360case "(($ac_try" in
6361  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6362  *) ac_try_echo=$ac_try;;
6363esac
6364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6365  (eval "$ac_compile") 2>conftest.er1
6366  ac_status=$?
6367  grep -v '^ *+' conftest.er1 >conftest.err
6368  rm -f conftest.er1
6369  cat conftest.err >&5
6370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371  (exit $ac_status); } &&
6372	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6373  { (case "(($ac_try" in
6374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6375  *) ac_try_echo=$ac_try;;
6376esac
6377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6378  (eval "$ac_try") 2>&5
6379  ac_status=$?
6380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381  (exit $ac_status); }; } &&
6382	 { ac_try='test -s conftest.$ac_objext'
6383  { (case "(($ac_try" in
6384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6385  *) ac_try_echo=$ac_try;;
6386esac
6387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6388  (eval "$ac_try") 2>&5
6389  ac_status=$?
6390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391  (exit $ac_status); }; }; then
6392  ac_cv_prog_cxx_g=yes
6393else
6394  echo "$as_me: failed program was:" >&5
6395sed 's/^/| /' conftest.$ac_ext >&5
6396
6397	CXXFLAGS=""
6398      cat >conftest.$ac_ext <<_ACEOF
6399/* confdefs.h.  */
6400_ACEOF
6401cat confdefs.h >>conftest.$ac_ext
6402cat >>conftest.$ac_ext <<_ACEOF
6403/* end confdefs.h.  */
6404
6405int
6406main ()
6407{
6408
6409  ;
6410  return 0;
6411}
6412_ACEOF
6413rm -f conftest.$ac_objext
6414if { (ac_try="$ac_compile"
6415case "(($ac_try" in
6416  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6417  *) ac_try_echo=$ac_try;;
6418esac
6419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6420  (eval "$ac_compile") 2>conftest.er1
6421  ac_status=$?
6422  grep -v '^ *+' conftest.er1 >conftest.err
6423  rm -f conftest.er1
6424  cat conftest.err >&5
6425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426  (exit $ac_status); } &&
6427	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6428  { (case "(($ac_try" in
6429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6430  *) ac_try_echo=$ac_try;;
6431esac
6432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6433  (eval "$ac_try") 2>&5
6434  ac_status=$?
6435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436  (exit $ac_status); }; } &&
6437	 { ac_try='test -s conftest.$ac_objext'
6438  { (case "(($ac_try" in
6439  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6440  *) ac_try_echo=$ac_try;;
6441esac
6442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6443  (eval "$ac_try") 2>&5
6444  ac_status=$?
6445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446  (exit $ac_status); }; }; then
6447  :
6448else
6449  echo "$as_me: failed program was:" >&5
6450sed 's/^/| /' conftest.$ac_ext >&5
6451
6452	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6453	 CXXFLAGS="-g"
6454	 cat >conftest.$ac_ext <<_ACEOF
6455/* confdefs.h.  */
6456_ACEOF
6457cat confdefs.h >>conftest.$ac_ext
6458cat >>conftest.$ac_ext <<_ACEOF
6459/* end confdefs.h.  */
6460
6461int
6462main ()
6463{
6464
6465  ;
6466  return 0;
6467}
6468_ACEOF
6469rm -f conftest.$ac_objext
6470if { (ac_try="$ac_compile"
6471case "(($ac_try" in
6472  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6473  *) ac_try_echo=$ac_try;;
6474esac
6475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6476  (eval "$ac_compile") 2>conftest.er1
6477  ac_status=$?
6478  grep -v '^ *+' conftest.er1 >conftest.err
6479  rm -f conftest.er1
6480  cat conftest.err >&5
6481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482  (exit $ac_status); } &&
6483	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6484  { (case "(($ac_try" in
6485  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6486  *) ac_try_echo=$ac_try;;
6487esac
6488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6489  (eval "$ac_try") 2>&5
6490  ac_status=$?
6491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492  (exit $ac_status); }; } &&
6493	 { ac_try='test -s conftest.$ac_objext'
6494  { (case "(($ac_try" in
6495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6496  *) ac_try_echo=$ac_try;;
6497esac
6498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6499  (eval "$ac_try") 2>&5
6500  ac_status=$?
6501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502  (exit $ac_status); }; }; then
6503  ac_cv_prog_cxx_g=yes
6504else
6505  echo "$as_me: failed program was:" >&5
6506sed 's/^/| /' conftest.$ac_ext >&5
6507
6508
6509fi
6510
6511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6512fi
6513
6514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6515fi
6516
6517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6518   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6519fi
6520{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6521echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6522if test "$ac_test_CXXFLAGS" = set; then
6523  CXXFLAGS=$ac_save_CXXFLAGS
6524elif test $ac_cv_prog_cxx_g = yes; then
6525  if test "$GXX" = yes; then
6526    CXXFLAGS="-g -O2"
6527  else
6528    CXXFLAGS="-g"
6529  fi
6530else
6531  if test "$GXX" = yes; then
6532    CXXFLAGS="-O2"
6533  else
6534    CXXFLAGS=
6535  fi
6536fi
6537ac_ext=c
6538ac_cpp='$CPP $CPPFLAGS'
6539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6541ac_compiler_gnu=$ac_cv_c_compiler_gnu
6542
6543
6544{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6545echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6546if test "${lt_cv_path_NM+set}" = set; then
6547  echo $ECHO_N "(cached) $ECHO_C" >&6
6548else
6549  if test -n "$NM"; then
6550  # Let the user override the test.
6551  lt_cv_path_NM="$NM"
6552else
6553  lt_nm_to_check="${ac_tool_prefix}nm"
6554  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6555    lt_nm_to_check="$lt_nm_to_check nm"
6556  fi
6557  for lt_tmp_nm in $lt_nm_to_check; do
6558    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6559    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6560      IFS="$lt_save_ifs"
6561      test -z "$ac_dir" && ac_dir=.
6562      tmp_nm="$ac_dir/$lt_tmp_nm"
6563      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6564	# Check to see if the nm accepts a BSD-compat flag.
6565	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6566	#   nm: unknown option "B" ignored
6567	# Tru64's nm complains that /dev/null is an invalid object file
6568	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6569	*/dev/null* | *'Invalid file or object type'*)
6570	  lt_cv_path_NM="$tmp_nm -B"
6571	  break
6572	  ;;
6573	*)
6574	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6575	  */dev/null*)
6576	    lt_cv_path_NM="$tmp_nm -p"
6577	    break
6578	    ;;
6579	  *)
6580	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6581	    continue # so that we can try to find one that supports BSD flags
6582	    ;;
6583	  esac
6584	  ;;
6585	esac
6586      fi
6587    done
6588    IFS="$lt_save_ifs"
6589  done
6590  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6591fi
6592fi
6593{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6594echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6595NM="$lt_cv_path_NM"
6596
6597
6598
6599{ echo "$as_me:$LINENO: checking for GNU make" >&5
6600echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6601if test "${llvm_cv_gnu_make_command+set}" = set; then
6602  echo $ECHO_N "(cached) $ECHO_C" >&6
6603else
6604  llvm_cv_gnu_make_command=''
6605 for a in "$MAKE" make gmake gnumake ; do
6606  if test -z "$a" ; then continue ; fi ;
6607  if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6608  then
6609   llvm_cv_gnu_make_command=$a ;
6610   break;
6611  fi
6612 done
6613fi
6614{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6615echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6616 if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6617   ifGNUmake='' ;
6618 else
6619   ifGNUmake='#' ;
6620   { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6621echo "${ECHO_T}\"Not found\"" >&6; };
6622 fi
6623
6624
6625{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6626echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6627LN_S=$as_ln_s
6628if test "$LN_S" = "ln -s"; then
6629  { echo "$as_me:$LINENO: result: yes" >&5
6630echo "${ECHO_T}yes" >&6; }
6631else
6632  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6633echo "${ECHO_T}no, using $LN_S" >&6; }
6634fi
6635
6636# Extract the first word of "cmp", so it can be a program name with args.
6637set dummy cmp; ac_word=$2
6638{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6640if test "${ac_cv_path_CMP+set}" = set; then
6641  echo $ECHO_N "(cached) $ECHO_C" >&6
6642else
6643  case $CMP in
6644  [\\/]* | ?:[\\/]*)
6645  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6646  ;;
6647  *)
6648  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649for as_dir in $PATH
6650do
6651  IFS=$as_save_IFS
6652  test -z "$as_dir" && as_dir=.
6653  for ac_exec_ext in '' $ac_executable_extensions; do
6654  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6655    ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6656    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6657    break 2
6658  fi
6659done
6660done
6661IFS=$as_save_IFS
6662
6663  test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6664  ;;
6665esac
6666fi
6667CMP=$ac_cv_path_CMP
6668if test -n "$CMP"; then
6669  { echo "$as_me:$LINENO: result: $CMP" >&5
6670echo "${ECHO_T}$CMP" >&6; }
6671else
6672  { echo "$as_me:$LINENO: result: no" >&5
6673echo "${ECHO_T}no" >&6; }
6674fi
6675
6676
6677# Extract the first word of "cp", so it can be a program name with args.
6678set dummy cp; ac_word=$2
6679{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6681if test "${ac_cv_path_CP+set}" = set; then
6682  echo $ECHO_N "(cached) $ECHO_C" >&6
6683else
6684  case $CP in
6685  [\\/]* | ?:[\\/]*)
6686  ac_cv_path_CP="$CP" # Let the user override the test with a path.
6687  ;;
6688  *)
6689  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690for as_dir in $PATH
6691do
6692  IFS=$as_save_IFS
6693  test -z "$as_dir" && as_dir=.
6694  for ac_exec_ext in '' $ac_executable_extensions; do
6695  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6696    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6697    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6698    break 2
6699  fi
6700done
6701done
6702IFS=$as_save_IFS
6703
6704  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6705  ;;
6706esac
6707fi
6708CP=$ac_cv_path_CP
6709if test -n "$CP"; then
6710  { echo "$as_me:$LINENO: result: $CP" >&5
6711echo "${ECHO_T}$CP" >&6; }
6712else
6713  { echo "$as_me:$LINENO: result: no" >&5
6714echo "${ECHO_T}no" >&6; }
6715fi
6716
6717
6718# Extract the first word of "date", so it can be a program name with args.
6719set dummy date; ac_word=$2
6720{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6721echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6722if test "${ac_cv_path_DATE+set}" = set; then
6723  echo $ECHO_N "(cached) $ECHO_C" >&6
6724else
6725  case $DATE in
6726  [\\/]* | ?:[\\/]*)
6727  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6728  ;;
6729  *)
6730  as_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_path_DATE="$as_dir/$ac_word$ac_exec_ext"
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
6745  test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6746  ;;
6747esac
6748fi
6749DATE=$ac_cv_path_DATE
6750if test -n "$DATE"; then
6751  { echo "$as_me:$LINENO: result: $DATE" >&5
6752echo "${ECHO_T}$DATE" >&6; }
6753else
6754  { echo "$as_me:$LINENO: result: no" >&5
6755echo "${ECHO_T}no" >&6; }
6756fi
6757
6758
6759# Extract the first word of "find", so it can be a program name with args.
6760set dummy find; ac_word=$2
6761{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6763if test "${ac_cv_path_FIND+set}" = set; then
6764  echo $ECHO_N "(cached) $ECHO_C" >&6
6765else
6766  case $FIND in
6767  [\\/]* | ?:[\\/]*)
6768  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6769  ;;
6770  *)
6771  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772for as_dir in $PATH
6773do
6774  IFS=$as_save_IFS
6775  test -z "$as_dir" && as_dir=.
6776  for ac_exec_ext in '' $ac_executable_extensions; do
6777  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6778    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6779    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6780    break 2
6781  fi
6782done
6783done
6784IFS=$as_save_IFS
6785
6786  test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6787  ;;
6788esac
6789fi
6790FIND=$ac_cv_path_FIND
6791if test -n "$FIND"; then
6792  { echo "$as_me:$LINENO: result: $FIND" >&5
6793echo "${ECHO_T}$FIND" >&6; }
6794else
6795  { echo "$as_me:$LINENO: result: no" >&5
6796echo "${ECHO_T}no" >&6; }
6797fi
6798
6799
6800# Extract the first word of "grep", so it can be a program name with args.
6801set dummy grep; ac_word=$2
6802{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6804if test "${ac_cv_path_GREP+set}" = set; then
6805  echo $ECHO_N "(cached) $ECHO_C" >&6
6806else
6807  case $GREP in
6808  [\\/]* | ?:[\\/]*)
6809  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6810  ;;
6811  *)
6812  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813for as_dir in $PATH
6814do
6815  IFS=$as_save_IFS
6816  test -z "$as_dir" && as_dir=.
6817  for ac_exec_ext in '' $ac_executable_extensions; do
6818  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6819    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6820    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6821    break 2
6822  fi
6823done
6824done
6825IFS=$as_save_IFS
6826
6827  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6828  ;;
6829esac
6830fi
6831GREP=$ac_cv_path_GREP
6832if test -n "$GREP"; then
6833  { echo "$as_me:$LINENO: result: $GREP" >&5
6834echo "${ECHO_T}$GREP" >&6; }
6835else
6836  { echo "$as_me:$LINENO: result: no" >&5
6837echo "${ECHO_T}no" >&6; }
6838fi
6839
6840
6841# Extract the first word of "mkdir", so it can be a program name with args.
6842set dummy mkdir; ac_word=$2
6843{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6845if test "${ac_cv_path_MKDIR+set}" = set; then
6846  echo $ECHO_N "(cached) $ECHO_C" >&6
6847else
6848  case $MKDIR in
6849  [\\/]* | ?:[\\/]*)
6850  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6851  ;;
6852  *)
6853  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854for as_dir in $PATH
6855do
6856  IFS=$as_save_IFS
6857  test -z "$as_dir" && as_dir=.
6858  for ac_exec_ext in '' $ac_executable_extensions; do
6859  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6860    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6861    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6862    break 2
6863  fi
6864done
6865done
6866IFS=$as_save_IFS
6867
6868  test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6869  ;;
6870esac
6871fi
6872MKDIR=$ac_cv_path_MKDIR
6873if test -n "$MKDIR"; then
6874  { echo "$as_me:$LINENO: result: $MKDIR" >&5
6875echo "${ECHO_T}$MKDIR" >&6; }
6876else
6877  { echo "$as_me:$LINENO: result: no" >&5
6878echo "${ECHO_T}no" >&6; }
6879fi
6880
6881
6882# Extract the first word of "mv", so it can be a program name with args.
6883set dummy mv; ac_word=$2
6884{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6886if test "${ac_cv_path_MV+set}" = set; then
6887  echo $ECHO_N "(cached) $ECHO_C" >&6
6888else
6889  case $MV in
6890  [\\/]* | ?:[\\/]*)
6891  ac_cv_path_MV="$MV" # Let the user override the test with a path.
6892  ;;
6893  *)
6894  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895for as_dir in $PATH
6896do
6897  IFS=$as_save_IFS
6898  test -z "$as_dir" && as_dir=.
6899  for ac_exec_ext in '' $ac_executable_extensions; do
6900  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6901    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6902    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6903    break 2
6904  fi
6905done
6906done
6907IFS=$as_save_IFS
6908
6909  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6910  ;;
6911esac
6912fi
6913MV=$ac_cv_path_MV
6914if test -n "$MV"; then
6915  { echo "$as_me:$LINENO: result: $MV" >&5
6916echo "${ECHO_T}$MV" >&6; }
6917else
6918  { echo "$as_me:$LINENO: result: no" >&5
6919echo "${ECHO_T}no" >&6; }
6920fi
6921
6922
6923if test -n "$ac_tool_prefix"; then
6924  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6925set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6926{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6928if test "${ac_cv_prog_RANLIB+set}" = set; then
6929  echo $ECHO_N "(cached) $ECHO_C" >&6
6930else
6931  if test -n "$RANLIB"; then
6932  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6933else
6934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935for as_dir in $PATH
6936do
6937  IFS=$as_save_IFS
6938  test -z "$as_dir" && as_dir=.
6939  for ac_exec_ext in '' $ac_executable_extensions; do
6940  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6941    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6942    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6943    break 2
6944  fi
6945done
6946done
6947IFS=$as_save_IFS
6948
6949fi
6950fi
6951RANLIB=$ac_cv_prog_RANLIB
6952if test -n "$RANLIB"; then
6953  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6954echo "${ECHO_T}$RANLIB" >&6; }
6955else
6956  { echo "$as_me:$LINENO: result: no" >&5
6957echo "${ECHO_T}no" >&6; }
6958fi
6959
6960
6961fi
6962if test -z "$ac_cv_prog_RANLIB"; then
6963  ac_ct_RANLIB=$RANLIB
6964  # Extract the first word of "ranlib", so it can be a program name with args.
6965set dummy ranlib; ac_word=$2
6966{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6968if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6969  echo $ECHO_N "(cached) $ECHO_C" >&6
6970else
6971  if test -n "$ac_ct_RANLIB"; then
6972  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6973else
6974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975for as_dir in $PATH
6976do
6977  IFS=$as_save_IFS
6978  test -z "$as_dir" && as_dir=.
6979  for ac_exec_ext in '' $ac_executable_extensions; do
6980  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6981    ac_cv_prog_ac_ct_RANLIB="ranlib"
6982    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6983    break 2
6984  fi
6985done
6986done
6987IFS=$as_save_IFS
6988
6989fi
6990fi
6991ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6992if test -n "$ac_ct_RANLIB"; then
6993  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6994echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6995else
6996  { echo "$as_me:$LINENO: result: no" >&5
6997echo "${ECHO_T}no" >&6; }
6998fi
6999
7000  if test "x$ac_ct_RANLIB" = x; then
7001    RANLIB=":"
7002  else
7003    case $cross_compiling:$ac_tool_warned in
7004yes:)
7005{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7006whose name does not start with the host triplet.  If you think this
7007configuration is useful to you, please write to autoconf@gnu.org." >&5
7008echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7009whose name does not start with the host triplet.  If you think this
7010configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7011ac_tool_warned=yes ;;
7012esac
7013    RANLIB=$ac_ct_RANLIB
7014  fi
7015else
7016  RANLIB="$ac_cv_prog_RANLIB"
7017fi
7018
7019# Extract the first word of "rm", so it can be a program name with args.
7020set dummy rm; ac_word=$2
7021{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7023if test "${ac_cv_path_RM+set}" = set; then
7024  echo $ECHO_N "(cached) $ECHO_C" >&6
7025else
7026  case $RM in
7027  [\\/]* | ?:[\\/]*)
7028  ac_cv_path_RM="$RM" # Let the user override the test with a path.
7029  ;;
7030  *)
7031  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032for as_dir in $PATH
7033do
7034  IFS=$as_save_IFS
7035  test -z "$as_dir" && as_dir=.
7036  for ac_exec_ext in '' $ac_executable_extensions; do
7037  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7038    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7039    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7040    break 2
7041  fi
7042done
7043done
7044IFS=$as_save_IFS
7045
7046  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7047  ;;
7048esac
7049fi
7050RM=$ac_cv_path_RM
7051if test -n "$RM"; then
7052  { echo "$as_me:$LINENO: result: $RM" >&5
7053echo "${ECHO_T}$RM" >&6; }
7054else
7055  { echo "$as_me:$LINENO: result: no" >&5
7056echo "${ECHO_T}no" >&6; }
7057fi
7058
7059
7060# Extract the first word of "sed", so it can be a program name with args.
7061set dummy sed; ac_word=$2
7062{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7064if test "${ac_cv_path_SED+set}" = set; then
7065  echo $ECHO_N "(cached) $ECHO_C" >&6
7066else
7067  case $SED in
7068  [\\/]* | ?:[\\/]*)
7069  ac_cv_path_SED="$SED" # Let the user override the test with a path.
7070  ;;
7071  *)
7072  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073for as_dir in $PATH
7074do
7075  IFS=$as_save_IFS
7076  test -z "$as_dir" && as_dir=.
7077  for ac_exec_ext in '' $ac_executable_extensions; do
7078  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7079    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7080    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7081    break 2
7082  fi
7083done
7084done
7085IFS=$as_save_IFS
7086
7087  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7088  ;;
7089esac
7090fi
7091SED=$ac_cv_path_SED
7092if test -n "$SED"; then
7093  { echo "$as_me:$LINENO: result: $SED" >&5
7094echo "${ECHO_T}$SED" >&6; }
7095else
7096  { echo "$as_me:$LINENO: result: no" >&5
7097echo "${ECHO_T}no" >&6; }
7098fi
7099
7100
7101# Extract the first word of "tar", so it can be a program name with args.
7102set dummy tar; ac_word=$2
7103{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7105if test "${ac_cv_path_TAR+set}" = set; then
7106  echo $ECHO_N "(cached) $ECHO_C" >&6
7107else
7108  case $TAR in
7109  [\\/]* | ?:[\\/]*)
7110  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7111  ;;
7112  *)
7113  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114for as_dir in $PATH
7115do
7116  IFS=$as_save_IFS
7117  test -z "$as_dir" && as_dir=.
7118  for ac_exec_ext in '' $ac_executable_extensions; do
7119  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7120    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7121    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122    break 2
7123  fi
7124done
7125done
7126IFS=$as_save_IFS
7127
7128  test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7129  ;;
7130esac
7131fi
7132TAR=$ac_cv_path_TAR
7133if test -n "$TAR"; then
7134  { echo "$as_me:$LINENO: result: $TAR" >&5
7135echo "${ECHO_T}$TAR" >&6; }
7136else
7137  { echo "$as_me:$LINENO: result: no" >&5
7138echo "${ECHO_T}no" >&6; }
7139fi
7140
7141
7142# Extract the first word of "pwd", so it can be a program name with args.
7143set dummy pwd; ac_word=$2
7144{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7146if test "${ac_cv_path_BINPWD+set}" = set; then
7147  echo $ECHO_N "(cached) $ECHO_C" >&6
7148else
7149  case $BINPWD in
7150  [\\/]* | ?:[\\/]*)
7151  ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7152  ;;
7153  *)
7154  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155for as_dir in $PATH
7156do
7157  IFS=$as_save_IFS
7158  test -z "$as_dir" && as_dir=.
7159  for ac_exec_ext in '' $ac_executable_extensions; do
7160  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7161    ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7162    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7163    break 2
7164  fi
7165done
7166done
7167IFS=$as_save_IFS
7168
7169  test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7170  ;;
7171esac
7172fi
7173BINPWD=$ac_cv_path_BINPWD
7174if test -n "$BINPWD"; then
7175  { echo "$as_me:$LINENO: result: $BINPWD" >&5
7176echo "${ECHO_T}$BINPWD" >&6; }
7177else
7178  { echo "$as_me:$LINENO: result: no" >&5
7179echo "${ECHO_T}no" >&6; }
7180fi
7181
7182
7183
7184# Extract the first word of "Graphviz", so it can be a program name with args.
7185set dummy Graphviz; ac_word=$2
7186{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7188if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7189  echo $ECHO_N "(cached) $ECHO_C" >&6
7190else
7191  case $GRAPHVIZ in
7192  [\\/]* | ?:[\\/]*)
7193  ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7194  ;;
7195  *)
7196  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197for as_dir in $PATH
7198do
7199  IFS=$as_save_IFS
7200  test -z "$as_dir" && as_dir=.
7201  for ac_exec_ext in '' $ac_executable_extensions; do
7202  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7203    ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7204    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7205    break 2
7206  fi
7207done
7208done
7209IFS=$as_save_IFS
7210
7211  test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7212  ;;
7213esac
7214fi
7215GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7216if test -n "$GRAPHVIZ"; then
7217  { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7218echo "${ECHO_T}$GRAPHVIZ" >&6; }
7219else
7220  { echo "$as_me:$LINENO: result: no" >&5
7221echo "${ECHO_T}no" >&6; }
7222fi
7223
7224
7225if test "$GRAPHVIZ" != "echo Graphviz" ; then
7226
7227cat >>confdefs.h <<\_ACEOF
7228#define HAVE_GRAPHVIZ 1
7229_ACEOF
7230
7231    if test "$llvm_cv_os_type" = "MingW" ; then
7232    GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7233  fi
7234
7235cat >>confdefs.h <<_ACEOF
7236#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7237_ACEOF
7238
7239fi
7240# Extract the first word of "dot", so it can be a program name with args.
7241set dummy dot; ac_word=$2
7242{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7244if test "${ac_cv_path_DOT+set}" = set; then
7245  echo $ECHO_N "(cached) $ECHO_C" >&6
7246else
7247  case $DOT in
7248  [\\/]* | ?:[\\/]*)
7249  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7250  ;;
7251  *)
7252  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253for as_dir in $PATH
7254do
7255  IFS=$as_save_IFS
7256  test -z "$as_dir" && as_dir=.
7257  for ac_exec_ext in '' $ac_executable_extensions; do
7258  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7259    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7260    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7261    break 2
7262  fi
7263done
7264done
7265IFS=$as_save_IFS
7266
7267  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7268  ;;
7269esac
7270fi
7271DOT=$ac_cv_path_DOT
7272if test -n "$DOT"; then
7273  { echo "$as_me:$LINENO: result: $DOT" >&5
7274echo "${ECHO_T}$DOT" >&6; }
7275else
7276  { echo "$as_me:$LINENO: result: no" >&5
7277echo "${ECHO_T}no" >&6; }
7278fi
7279
7280
7281if test "$DOT" != "echo dot" ; then
7282
7283cat >>confdefs.h <<\_ACEOF
7284#define HAVE_DOT 1
7285_ACEOF
7286
7287    if test "$llvm_cv_os_type" = "MingW" ; then
7288    DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7289  fi
7290
7291cat >>confdefs.h <<_ACEOF
7292#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7293_ACEOF
7294
7295fi
7296# Extract the first word of "fdp", so it can be a program name with args.
7297set dummy fdp; ac_word=$2
7298{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7300if test "${ac_cv_path_FDP+set}" = set; then
7301  echo $ECHO_N "(cached) $ECHO_C" >&6
7302else
7303  case $FDP in
7304  [\\/]* | ?:[\\/]*)
7305  ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7306  ;;
7307  *)
7308  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309for as_dir in $PATH
7310do
7311  IFS=$as_save_IFS
7312  test -z "$as_dir" && as_dir=.
7313  for ac_exec_ext in '' $ac_executable_extensions; do
7314  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7315    ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7316    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7317    break 2
7318  fi
7319done
7320done
7321IFS=$as_save_IFS
7322
7323  test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7324  ;;
7325esac
7326fi
7327FDP=$ac_cv_path_FDP
7328if test -n "$FDP"; then
7329  { echo "$as_me:$LINENO: result: $FDP" >&5
7330echo "${ECHO_T}$FDP" >&6; }
7331else
7332  { echo "$as_me:$LINENO: result: no" >&5
7333echo "${ECHO_T}no" >&6; }
7334fi
7335
7336
7337if test "$FDP" != "echo fdp" ; then
7338
7339cat >>confdefs.h <<\_ACEOF
7340#define HAVE_FDP 1
7341_ACEOF
7342
7343    if test "$llvm_cv_os_type" = "MingW" ; then
7344    FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7345  fi
7346
7347cat >>confdefs.h <<_ACEOF
7348#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7349_ACEOF
7350
7351fi
7352# Extract the first word of "neato", so it can be a program name with args.
7353set dummy neato; ac_word=$2
7354{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7356if test "${ac_cv_path_NEATO+set}" = set; then
7357  echo $ECHO_N "(cached) $ECHO_C" >&6
7358else
7359  case $NEATO in
7360  [\\/]* | ?:[\\/]*)
7361  ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7362  ;;
7363  *)
7364  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365for as_dir in $PATH
7366do
7367  IFS=$as_save_IFS
7368  test -z "$as_dir" && as_dir=.
7369  for ac_exec_ext in '' $ac_executable_extensions; do
7370  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7371    ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7372    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7373    break 2
7374  fi
7375done
7376done
7377IFS=$as_save_IFS
7378
7379  test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7380  ;;
7381esac
7382fi
7383NEATO=$ac_cv_path_NEATO
7384if test -n "$NEATO"; then
7385  { echo "$as_me:$LINENO: result: $NEATO" >&5
7386echo "${ECHO_T}$NEATO" >&6; }
7387else
7388  { echo "$as_me:$LINENO: result: no" >&5
7389echo "${ECHO_T}no" >&6; }
7390fi
7391
7392
7393if test "$NEATO" != "echo neato" ; then
7394
7395cat >>confdefs.h <<\_ACEOF
7396#define HAVE_NEATO 1
7397_ACEOF
7398
7399    if test "$llvm_cv_os_type" = "MingW" ; then
7400    NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7401  fi
7402
7403cat >>confdefs.h <<_ACEOF
7404#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7405_ACEOF
7406
7407fi
7408# Extract the first word of "twopi", so it can be a program name with args.
7409set dummy twopi; ac_word=$2
7410{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7411echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7412if test "${ac_cv_path_TWOPI+set}" = set; then
7413  echo $ECHO_N "(cached) $ECHO_C" >&6
7414else
7415  case $TWOPI in
7416  [\\/]* | ?:[\\/]*)
7417  ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7418  ;;
7419  *)
7420  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421for as_dir in $PATH
7422do
7423  IFS=$as_save_IFS
7424  test -z "$as_dir" && as_dir=.
7425  for ac_exec_ext in '' $ac_executable_extensions; do
7426  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7427    ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7428    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7429    break 2
7430  fi
7431done
7432done
7433IFS=$as_save_IFS
7434
7435  test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7436  ;;
7437esac
7438fi
7439TWOPI=$ac_cv_path_TWOPI
7440if test -n "$TWOPI"; then
7441  { echo "$as_me:$LINENO: result: $TWOPI" >&5
7442echo "${ECHO_T}$TWOPI" >&6; }
7443else
7444  { echo "$as_me:$LINENO: result: no" >&5
7445echo "${ECHO_T}no" >&6; }
7446fi
7447
7448
7449if test "$TWOPI" != "echo twopi" ; then
7450
7451cat >>confdefs.h <<\_ACEOF
7452#define HAVE_TWOPI 1
7453_ACEOF
7454
7455    if test "$llvm_cv_os_type" = "MingW" ; then
7456    TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7457  fi
7458
7459cat >>confdefs.h <<_ACEOF
7460#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7461_ACEOF
7462
7463fi
7464# Extract the first word of "circo", so it can be a program name with args.
7465set dummy circo; ac_word=$2
7466{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7468if test "${ac_cv_path_CIRCO+set}" = set; then
7469  echo $ECHO_N "(cached) $ECHO_C" >&6
7470else
7471  case $CIRCO in
7472  [\\/]* | ?:[\\/]*)
7473  ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7474  ;;
7475  *)
7476  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7477for as_dir in $PATH
7478do
7479  IFS=$as_save_IFS
7480  test -z "$as_dir" && as_dir=.
7481  for ac_exec_ext in '' $ac_executable_extensions; do
7482  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7483    ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7484    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7485    break 2
7486  fi
7487done
7488done
7489IFS=$as_save_IFS
7490
7491  test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7492  ;;
7493esac
7494fi
7495CIRCO=$ac_cv_path_CIRCO
7496if test -n "$CIRCO"; then
7497  { echo "$as_me:$LINENO: result: $CIRCO" >&5
7498echo "${ECHO_T}$CIRCO" >&6; }
7499else
7500  { echo "$as_me:$LINENO: result: no" >&5
7501echo "${ECHO_T}no" >&6; }
7502fi
7503
7504
7505if test "$CIRCO" != "echo circo" ; then
7506
7507cat >>confdefs.h <<\_ACEOF
7508#define HAVE_CIRCO 1
7509_ACEOF
7510
7511    if test "$llvm_cv_os_type" = "MingW" ; then
7512    CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7513  fi
7514
7515cat >>confdefs.h <<_ACEOF
7516#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7517_ACEOF
7518
7519fi
7520for ac_prog in gv gsview32
7521do
7522  # Extract the first word of "$ac_prog", so it can be a program name with args.
7523set dummy $ac_prog; ac_word=$2
7524{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7526if test "${ac_cv_path_GV+set}" = set; then
7527  echo $ECHO_N "(cached) $ECHO_C" >&6
7528else
7529  case $GV in
7530  [\\/]* | ?:[\\/]*)
7531  ac_cv_path_GV="$GV" # Let the user override the test with a path.
7532  ;;
7533  *)
7534  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535for as_dir in $PATH
7536do
7537  IFS=$as_save_IFS
7538  test -z "$as_dir" && as_dir=.
7539  for ac_exec_ext in '' $ac_executable_extensions; do
7540  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7541    ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7542    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7543    break 2
7544  fi
7545done
7546done
7547IFS=$as_save_IFS
7548
7549  ;;
7550esac
7551fi
7552GV=$ac_cv_path_GV
7553if test -n "$GV"; then
7554  { echo "$as_me:$LINENO: result: $GV" >&5
7555echo "${ECHO_T}$GV" >&6; }
7556else
7557  { echo "$as_me:$LINENO: result: no" >&5
7558echo "${ECHO_T}no" >&6; }
7559fi
7560
7561
7562  test -n "$GV" && break
7563done
7564test -n "$GV" || GV="echo gv"
7565
7566if test "$GV" != "echo gv" ; then
7567
7568cat >>confdefs.h <<\_ACEOF
7569#define HAVE_GV 1
7570_ACEOF
7571
7572    if test "$llvm_cv_os_type" = "MingW" ; then
7573    GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7574  fi
7575
7576cat >>confdefs.h <<_ACEOF
7577#define LLVM_PATH_GV "$GV${EXEEXT}"
7578_ACEOF
7579
7580fi
7581# Extract the first word of "dotty", so it can be a program name with args.
7582set dummy dotty; ac_word=$2
7583{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7585if test "${ac_cv_path_DOTTY+set}" = set; then
7586  echo $ECHO_N "(cached) $ECHO_C" >&6
7587else
7588  case $DOTTY in
7589  [\\/]* | ?:[\\/]*)
7590  ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7591  ;;
7592  *)
7593  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594for as_dir in $PATH
7595do
7596  IFS=$as_save_IFS
7597  test -z "$as_dir" && as_dir=.
7598  for ac_exec_ext in '' $ac_executable_extensions; do
7599  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7600    ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7601    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7602    break 2
7603  fi
7604done
7605done
7606IFS=$as_save_IFS
7607
7608  test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7609  ;;
7610esac
7611fi
7612DOTTY=$ac_cv_path_DOTTY
7613if test -n "$DOTTY"; then
7614  { echo "$as_me:$LINENO: result: $DOTTY" >&5
7615echo "${ECHO_T}$DOTTY" >&6; }
7616else
7617  { echo "$as_me:$LINENO: result: no" >&5
7618echo "${ECHO_T}no" >&6; }
7619fi
7620
7621
7622if test "$DOTTY" != "echo dotty" ; then
7623
7624cat >>confdefs.h <<\_ACEOF
7625#define HAVE_DOTTY 1
7626_ACEOF
7627
7628    if test "$llvm_cv_os_type" = "MingW" ; then
7629    DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7630  fi
7631
7632cat >>confdefs.h <<_ACEOF
7633#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7634_ACEOF
7635
7636fi
7637
7638
7639# Extract the first word of "perl", so it can be a program name with args.
7640set dummy perl; ac_word=$2
7641{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7643if test "${ac_cv_path_PERL+set}" = set; then
7644  echo $ECHO_N "(cached) $ECHO_C" >&6
7645else
7646  case $PERL in
7647  [\\/]* | ?:[\\/]*)
7648  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7649  ;;
7650  *)
7651  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7652for as_dir in $PATH
7653do
7654  IFS=$as_save_IFS
7655  test -z "$as_dir" && as_dir=.
7656  for ac_exec_ext in '' $ac_executable_extensions; do
7657  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7658    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7659    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7660    break 2
7661  fi
7662done
7663done
7664IFS=$as_save_IFS
7665
7666  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7667  ;;
7668esac
7669fi
7670PERL=$ac_cv_path_PERL
7671if test -n "$PERL"; then
7672  { echo "$as_me:$LINENO: result: $PERL" >&5
7673echo "${ECHO_T}$PERL" >&6; }
7674else
7675  { echo "$as_me:$LINENO: result: no" >&5
7676echo "${ECHO_T}no" >&6; }
7677fi
7678
7679
7680if test "$PERL" != "none"; then
7681  { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7682echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7683  if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7684    { echo "$as_me:$LINENO: result: yes" >&5
7685echo "${ECHO_T}yes" >&6; }
7686  else
7687    PERL=none
7688    { echo "$as_me:$LINENO: result: not found" >&5
7689echo "${ECHO_T}not found" >&6; }
7690  fi
7691fi
7692
7693
7694if test x"$PERL" = xnone; then
7695   HAVE_PERL=0
7696
7697   { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7698echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7699   { (exit 1); exit 1; }; }
7700else
7701   HAVE_PERL=1
7702
7703fi
7704
7705# Find a good install program.  We prefer a C program (faster),
7706# so one script is as good as another.  But avoid the broken or
7707# incompatible versions:
7708# SysV /etc/install, /usr/sbin/install
7709# SunOS /usr/etc/install
7710# IRIX /sbin/install
7711# AIX /bin/install
7712# AmigaOS /C/install, which installs bootblocks on floppy discs
7713# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7714# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7715# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7716# OS/2's system install, which has a completely different semantic
7717# ./install, which can be erroneously created by make from ./install.sh.
7718{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7719echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7720if test -z "$INSTALL"; then
7721if test "${ac_cv_path_install+set}" = set; then
7722  echo $ECHO_N "(cached) $ECHO_C" >&6
7723else
7724  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725for as_dir in $PATH
7726do
7727  IFS=$as_save_IFS
7728  test -z "$as_dir" && as_dir=.
7729  # Account for people who put trailing slashes in PATH elements.
7730case $as_dir/ in
7731  ./ | .// | /cC/* | \
7732  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7733  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7734  /usr/ucb/* ) ;;
7735  *)
7736    # OSF1 and SCO ODT 3.0 have their own names for install.
7737    # Don't use installbsd from OSF since it installs stuff as root
7738    # by default.
7739    for ac_prog in ginstall scoinst install; do
7740      for ac_exec_ext in '' $ac_executable_extensions; do
7741	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7742	  if test $ac_prog = install &&
7743	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7744	    # AIX install.  It has an incompatible calling convention.
7745	    :
7746	  elif test $ac_prog = install &&
7747	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7748	    # program-specific install script used by HP pwplus--don't use.
7749	    :
7750	  else
7751	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7752	    break 3
7753	  fi
7754	fi
7755      done
7756    done
7757    ;;
7758esac
7759done
7760IFS=$as_save_IFS
7761
7762
7763fi
7764  if test "${ac_cv_path_install+set}" = set; then
7765    INSTALL=$ac_cv_path_install
7766  else
7767    # As a last resort, use the slow shell script.  Don't cache a
7768    # value for INSTALL within a source directory, because that will
7769    # break other packages using the cache if that directory is
7770    # removed, or if the value is a relative name.
7771    INSTALL=$ac_install_sh
7772  fi
7773fi
7774{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7775echo "${ECHO_T}$INSTALL" >&6; }
7776
7777# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7778# It thinks the first close brace ends the variable substitution.
7779test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7780
7781test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7782
7783test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7784
7785
7786# Extract the first word of "bzip2", so it can be a program name with args.
7787set dummy bzip2; ac_word=$2
7788{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7790if test "${ac_cv_path_BZIP2+set}" = set; then
7791  echo $ECHO_N "(cached) $ECHO_C" >&6
7792else
7793  case $BZIP2 in
7794  [\\/]* | ?:[\\/]*)
7795  ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7796  ;;
7797  *)
7798  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7799for as_dir in $PATH
7800do
7801  IFS=$as_save_IFS
7802  test -z "$as_dir" && as_dir=.
7803  for ac_exec_ext in '' $ac_executable_extensions; do
7804  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7805    ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7806    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7807    break 2
7808  fi
7809done
7810done
7811IFS=$as_save_IFS
7812
7813  ;;
7814esac
7815fi
7816BZIP2=$ac_cv_path_BZIP2
7817if test -n "$BZIP2"; then
7818  { echo "$as_me:$LINENO: result: $BZIP2" >&5
7819echo "${ECHO_T}$BZIP2" >&6; }
7820else
7821  { echo "$as_me:$LINENO: result: no" >&5
7822echo "${ECHO_T}no" >&6; }
7823fi
7824
7825
7826# Extract the first word of "doxygen", so it can be a program name with args.
7827set dummy doxygen; ac_word=$2
7828{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7830if test "${ac_cv_path_DOXYGEN+set}" = set; then
7831  echo $ECHO_N "(cached) $ECHO_C" >&6
7832else
7833  case $DOXYGEN in
7834  [\\/]* | ?:[\\/]*)
7835  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7836  ;;
7837  *)
7838  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839for as_dir in $PATH
7840do
7841  IFS=$as_save_IFS
7842  test -z "$as_dir" && as_dir=.
7843  for ac_exec_ext in '' $ac_executable_extensions; do
7844  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7845    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7846    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7847    break 2
7848  fi
7849done
7850done
7851IFS=$as_save_IFS
7852
7853  ;;
7854esac
7855fi
7856DOXYGEN=$ac_cv_path_DOXYGEN
7857if test -n "$DOXYGEN"; then
7858  { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7859echo "${ECHO_T}$DOXYGEN" >&6; }
7860else
7861  { echo "$as_me:$LINENO: result: no" >&5
7862echo "${ECHO_T}no" >&6; }
7863fi
7864
7865
7866# Extract the first word of "groff", so it can be a program name with args.
7867set dummy groff; ac_word=$2
7868{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7870if test "${ac_cv_path_GROFF+set}" = set; then
7871  echo $ECHO_N "(cached) $ECHO_C" >&6
7872else
7873  case $GROFF in
7874  [\\/]* | ?:[\\/]*)
7875  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7876  ;;
7877  *)
7878  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7879for as_dir in $PATH
7880do
7881  IFS=$as_save_IFS
7882  test -z "$as_dir" && as_dir=.
7883  for ac_exec_ext in '' $ac_executable_extensions; do
7884  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7885    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7886    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7887    break 2
7888  fi
7889done
7890done
7891IFS=$as_save_IFS
7892
7893  ;;
7894esac
7895fi
7896GROFF=$ac_cv_path_GROFF
7897if test -n "$GROFF"; then
7898  { echo "$as_me:$LINENO: result: $GROFF" >&5
7899echo "${ECHO_T}$GROFF" >&6; }
7900else
7901  { echo "$as_me:$LINENO: result: no" >&5
7902echo "${ECHO_T}no" >&6; }
7903fi
7904
7905
7906# Extract the first word of "gzip", so it can be a program name with args.
7907set dummy gzip; ac_word=$2
7908{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7910if test "${ac_cv_path_GZIP+set}" = set; then
7911  echo $ECHO_N "(cached) $ECHO_C" >&6
7912else
7913  case $GZIP in
7914  [\\/]* | ?:[\\/]*)
7915  ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7916  ;;
7917  *)
7918  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7919for as_dir in $PATH
7920do
7921  IFS=$as_save_IFS
7922  test -z "$as_dir" && as_dir=.
7923  for ac_exec_ext in '' $ac_executable_extensions; do
7924  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7925    ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7926    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7927    break 2
7928  fi
7929done
7930done
7931IFS=$as_save_IFS
7932
7933  ;;
7934esac
7935fi
7936GZIP=$ac_cv_path_GZIP
7937if test -n "$GZIP"; then
7938  { echo "$as_me:$LINENO: result: $GZIP" >&5
7939echo "${ECHO_T}$GZIP" >&6; }
7940else
7941  { echo "$as_me:$LINENO: result: no" >&5
7942echo "${ECHO_T}no" >&6; }
7943fi
7944
7945
7946# Extract the first word of "pod2html", so it can be a program name with args.
7947set dummy pod2html; ac_word=$2
7948{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7950if test "${ac_cv_path_POD2HTML+set}" = set; then
7951  echo $ECHO_N "(cached) $ECHO_C" >&6
7952else
7953  case $POD2HTML in
7954  [\\/]* | ?:[\\/]*)
7955  ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7956  ;;
7957  *)
7958  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959for as_dir in $PATH
7960do
7961  IFS=$as_save_IFS
7962  test -z "$as_dir" && as_dir=.
7963  for ac_exec_ext in '' $ac_executable_extensions; do
7964  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7965    ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7966    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7967    break 2
7968  fi
7969done
7970done
7971IFS=$as_save_IFS
7972
7973  ;;
7974esac
7975fi
7976POD2HTML=$ac_cv_path_POD2HTML
7977if test -n "$POD2HTML"; then
7978  { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7979echo "${ECHO_T}$POD2HTML" >&6; }
7980else
7981  { echo "$as_me:$LINENO: result: no" >&5
7982echo "${ECHO_T}no" >&6; }
7983fi
7984
7985
7986# Extract the first word of "pod2man", so it can be a program name with args.
7987set dummy pod2man; ac_word=$2
7988{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7990if test "${ac_cv_path_POD2MAN+set}" = set; then
7991  echo $ECHO_N "(cached) $ECHO_C" >&6
7992else
7993  case $POD2MAN in
7994  [\\/]* | ?:[\\/]*)
7995  ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7996  ;;
7997  *)
7998  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999for as_dir in $PATH
8000do
8001  IFS=$as_save_IFS
8002  test -z "$as_dir" && as_dir=.
8003  for ac_exec_ext in '' $ac_executable_extensions; do
8004  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8005    ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8006    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8007    break 2
8008  fi
8009done
8010done
8011IFS=$as_save_IFS
8012
8013  ;;
8014esac
8015fi
8016POD2MAN=$ac_cv_path_POD2MAN
8017if test -n "$POD2MAN"; then
8018  { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8019echo "${ECHO_T}$POD2MAN" >&6; }
8020else
8021  { echo "$as_me:$LINENO: result: no" >&5
8022echo "${ECHO_T}no" >&6; }
8023fi
8024
8025
8026# Extract the first word of "runtest", so it can be a program name with args.
8027set dummy runtest; ac_word=$2
8028{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8030if test "${ac_cv_path_RUNTEST+set}" = set; then
8031  echo $ECHO_N "(cached) $ECHO_C" >&6
8032else
8033  case $RUNTEST in
8034  [\\/]* | ?:[\\/]*)
8035  ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8036  ;;
8037  *)
8038  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039for as_dir in $PATH
8040do
8041  IFS=$as_save_IFS
8042  test -z "$as_dir" && as_dir=.
8043  for ac_exec_ext in '' $ac_executable_extensions; do
8044  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8045    ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8046    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8047    break 2
8048  fi
8049done
8050done
8051IFS=$as_save_IFS
8052
8053  ;;
8054esac
8055fi
8056RUNTEST=$ac_cv_path_RUNTEST
8057if test -n "$RUNTEST"; then
8058  { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8059echo "${ECHO_T}$RUNTEST" >&6; }
8060else
8061  { echo "$as_me:$LINENO: result: no" >&5
8062echo "${ECHO_T}no" >&6; }
8063fi
8064
8065
8066
8067no_itcl=true
8068{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8069echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8070
8071# Check whether --with-tclinclude was given.
8072if test "${with_tclinclude+set}" = set; then
8073  withval=$with_tclinclude; with_tclinclude=${withval}
8074else
8075  with_tclinclude=''
8076fi
8077
8078if test "${ac_cv_path_tclsh+set}" = set; then
8079  echo $ECHO_N "(cached) $ECHO_C" >&6
8080else
8081
8082if test x"${with_tclinclude}" != x ; then
8083  if test -f ${with_tclinclude}/tclsh ; then
8084    ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8085  elif test -f ${with_tclinclude}/src/tclsh ; then
8086    ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8087  else
8088    { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8089echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8090   { (exit 1); exit 1; }; }
8091  fi
8092fi
8093
8094if test x"${ac_cv_path_tclsh}" = x ; then
8095  { echo "$as_me:$LINENO: result: none" >&5
8096echo "${ECHO_T}none" >&6; }
8097  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
8098do
8099  # Extract the first word of "$ac_prog", so it can be a program name with args.
8100set dummy $ac_prog; ac_word=$2
8101{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8103if test "${ac_cv_path_TCLSH+set}" = set; then
8104  echo $ECHO_N "(cached) $ECHO_C" >&6
8105else
8106  case $TCLSH in
8107  [\\/]* | ?:[\\/]*)
8108  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8109  ;;
8110  *)
8111  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8112for as_dir in $PATH
8113do
8114  IFS=$as_save_IFS
8115  test -z "$as_dir" && as_dir=.
8116  for ac_exec_ext in '' $ac_executable_extensions; do
8117  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8118    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8119    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8120    break 2
8121  fi
8122done
8123done
8124IFS=$as_save_IFS
8125
8126  ;;
8127esac
8128fi
8129TCLSH=$ac_cv_path_TCLSH
8130if test -n "$TCLSH"; then
8131  { echo "$as_me:$LINENO: result: $TCLSH" >&5
8132echo "${ECHO_T}$TCLSH" >&6; }
8133else
8134  { echo "$as_me:$LINENO: result: no" >&5
8135echo "${ECHO_T}no" >&6; }
8136fi
8137
8138
8139  test -n "$TCLSH" && break
8140done
8141
8142  if test x"${TCLSH}" = x ; then
8143    ac_cv_path_tclsh='';
8144  else
8145    ac_cv_path_tclsh="${TCLSH}";
8146  fi
8147else
8148  { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8149echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8150  TCLSH="${ac_cv_path_tclsh}"
8151
8152fi
8153
8154fi
8155
8156# Extract the first word of "zip", so it can be a program name with args.
8157set dummy zip; ac_word=$2
8158{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8160if test "${ac_cv_path_ZIP+set}" = set; then
8161  echo $ECHO_N "(cached) $ECHO_C" >&6
8162else
8163  case $ZIP in
8164  [\\/]* | ?:[\\/]*)
8165  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8166  ;;
8167  *)
8168  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8169for as_dir in $PATH
8170do
8171  IFS=$as_save_IFS
8172  test -z "$as_dir" && as_dir=.
8173  for ac_exec_ext in '' $ac_executable_extensions; do
8174  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8175    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8176    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8177    break 2
8178  fi
8179done
8180done
8181IFS=$as_save_IFS
8182
8183  ;;
8184esac
8185fi
8186ZIP=$ac_cv_path_ZIP
8187if test -n "$ZIP"; then
8188  { echo "$as_me:$LINENO: result: $ZIP" >&5
8189echo "${ECHO_T}$ZIP" >&6; }
8190else
8191  { echo "$as_me:$LINENO: result: no" >&5
8192echo "${ECHO_T}no" >&6; }
8193fi
8194
8195
8196for ac_prog in ocamlc
8197do
8198  # Extract the first word of "$ac_prog", so it can be a program name with args.
8199set dummy $ac_prog; ac_word=$2
8200{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8202if test "${ac_cv_path_OCAMLC+set}" = set; then
8203  echo $ECHO_N "(cached) $ECHO_C" >&6
8204else
8205  case $OCAMLC in
8206  [\\/]* | ?:[\\/]*)
8207  ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8208  ;;
8209  *)
8210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8211for as_dir in $PATH
8212do
8213  IFS=$as_save_IFS
8214  test -z "$as_dir" && as_dir=.
8215  for ac_exec_ext in '' $ac_executable_extensions; do
8216  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8217    ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8218    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8219    break 2
8220  fi
8221done
8222done
8223IFS=$as_save_IFS
8224
8225  ;;
8226esac
8227fi
8228OCAMLC=$ac_cv_path_OCAMLC
8229if test -n "$OCAMLC"; then
8230  { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8231echo "${ECHO_T}$OCAMLC" >&6; }
8232else
8233  { echo "$as_me:$LINENO: result: no" >&5
8234echo "${ECHO_T}no" >&6; }
8235fi
8236
8237
8238  test -n "$OCAMLC" && break
8239done
8240
8241for ac_prog in ocamlopt
8242do
8243  # Extract the first word of "$ac_prog", so it can be a program name with args.
8244set dummy $ac_prog; ac_word=$2
8245{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8247if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8248  echo $ECHO_N "(cached) $ECHO_C" >&6
8249else
8250  case $OCAMLOPT in
8251  [\\/]* | ?:[\\/]*)
8252  ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8253  ;;
8254  *)
8255  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8256for as_dir in $PATH
8257do
8258  IFS=$as_save_IFS
8259  test -z "$as_dir" && as_dir=.
8260  for ac_exec_ext in '' $ac_executable_extensions; do
8261  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8262    ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8263    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8264    break 2
8265  fi
8266done
8267done
8268IFS=$as_save_IFS
8269
8270  ;;
8271esac
8272fi
8273OCAMLOPT=$ac_cv_path_OCAMLOPT
8274if test -n "$OCAMLOPT"; then
8275  { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8276echo "${ECHO_T}$OCAMLOPT" >&6; }
8277else
8278  { echo "$as_me:$LINENO: result: no" >&5
8279echo "${ECHO_T}no" >&6; }
8280fi
8281
8282
8283  test -n "$OCAMLOPT" && break
8284done
8285
8286for ac_prog in ocamldep
8287do
8288  # Extract the first word of "$ac_prog", so it can be a program name with args.
8289set dummy $ac_prog; ac_word=$2
8290{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8292if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8293  echo $ECHO_N "(cached) $ECHO_C" >&6
8294else
8295  case $OCAMLDEP in
8296  [\\/]* | ?:[\\/]*)
8297  ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8298  ;;
8299  *)
8300  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8301for as_dir in $PATH
8302do
8303  IFS=$as_save_IFS
8304  test -z "$as_dir" && as_dir=.
8305  for ac_exec_ext in '' $ac_executable_extensions; do
8306  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8307    ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8308    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8309    break 2
8310  fi
8311done
8312done
8313IFS=$as_save_IFS
8314
8315  ;;
8316esac
8317fi
8318OCAMLDEP=$ac_cv_path_OCAMLDEP
8319if test -n "$OCAMLDEP"; then
8320  { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8321echo "${ECHO_T}$OCAMLDEP" >&6; }
8322else
8323  { echo "$as_me:$LINENO: result: no" >&5
8324echo "${ECHO_T}no" >&6; }
8325fi
8326
8327
8328  test -n "$OCAMLDEP" && break
8329done
8330
8331for ac_prog in ocamldoc
8332do
8333  # Extract the first word of "$ac_prog", so it can be a program name with args.
8334set dummy $ac_prog; ac_word=$2
8335{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8337if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8338  echo $ECHO_N "(cached) $ECHO_C" >&6
8339else
8340  case $OCAMLDOC in
8341  [\\/]* | ?:[\\/]*)
8342  ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8343  ;;
8344  *)
8345  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8346for as_dir in $PATH
8347do
8348  IFS=$as_save_IFS
8349  test -z "$as_dir" && as_dir=.
8350  for ac_exec_ext in '' $ac_executable_extensions; do
8351  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8352    ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8353    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8354    break 2
8355  fi
8356done
8357done
8358IFS=$as_save_IFS
8359
8360  ;;
8361esac
8362fi
8363OCAMLDOC=$ac_cv_path_OCAMLDOC
8364if test -n "$OCAMLDOC"; then
8365  { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8366echo "${ECHO_T}$OCAMLDOC" >&6; }
8367else
8368  { echo "$as_me:$LINENO: result: no" >&5
8369echo "${ECHO_T}no" >&6; }
8370fi
8371
8372
8373  test -n "$OCAMLDOC" && break
8374done
8375
8376for ac_prog in gas as
8377do
8378  # Extract the first word of "$ac_prog", so it can be a program name with args.
8379set dummy $ac_prog; ac_word=$2
8380{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8382if test "${ac_cv_path_GAS+set}" = set; then
8383  echo $ECHO_N "(cached) $ECHO_C" >&6
8384else
8385  case $GAS in
8386  [\\/]* | ?:[\\/]*)
8387  ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8388  ;;
8389  *)
8390  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8391for as_dir in $PATH
8392do
8393  IFS=$as_save_IFS
8394  test -z "$as_dir" && as_dir=.
8395  for ac_exec_ext in '' $ac_executable_extensions; do
8396  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8397    ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8398    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8399    break 2
8400  fi
8401done
8402done
8403IFS=$as_save_IFS
8404
8405  ;;
8406esac
8407fi
8408GAS=$ac_cv_path_GAS
8409if test -n "$GAS"; then
8410  { echo "$as_me:$LINENO: result: $GAS" >&5
8411echo "${ECHO_T}$GAS" >&6; }
8412else
8413  { echo "$as_me:$LINENO: result: no" >&5
8414echo "${ECHO_T}no" >&6; }
8415fi
8416
8417
8418  test -n "$GAS" && break
8419done
8420
8421
8422{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8423echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8424if test "${llvm_cv_link_use_r+set}" = set; then
8425  echo $ECHO_N "(cached) $ECHO_C" >&6
8426else
8427   ac_ext=c
8428ac_cpp='$CPP $CPPFLAGS'
8429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8431ac_compiler_gnu=$ac_cv_c_compiler_gnu
8432
8433  oldcflags="$CFLAGS"
8434  CFLAGS="$CFLAGS -Wl,-R."
8435  cat >conftest.$ac_ext <<_ACEOF
8436/* confdefs.h.  */
8437_ACEOF
8438cat confdefs.h >>conftest.$ac_ext
8439cat >>conftest.$ac_ext <<_ACEOF
8440/* end confdefs.h.  */
8441
8442int
8443main ()
8444{
8445int main() { return 0; }
8446  ;
8447  return 0;
8448}
8449_ACEOF
8450rm -f conftest.$ac_objext conftest$ac_exeext
8451if { (ac_try="$ac_link"
8452case "(($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_link") 2>conftest.er1
8458  ac_status=$?
8459  grep -v '^ *+' conftest.er1 >conftest.err
8460  rm -f conftest.er1
8461  cat conftest.err >&5
8462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463  (exit $ac_status); } &&
8464	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8465  { (case "(($ac_try" in
8466  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8467  *) ac_try_echo=$ac_try;;
8468esac
8469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8470  (eval "$ac_try") 2>&5
8471  ac_status=$?
8472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473  (exit $ac_status); }; } &&
8474	 { ac_try='test -s conftest$ac_exeext'
8475  { (case "(($ac_try" in
8476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8477  *) ac_try_echo=$ac_try;;
8478esac
8479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8480  (eval "$ac_try") 2>&5
8481  ac_status=$?
8482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483  (exit $ac_status); }; }; then
8484  llvm_cv_link_use_r=yes
8485else
8486  echo "$as_me: failed program was:" >&5
8487sed 's/^/| /' conftest.$ac_ext >&5
8488
8489	llvm_cv_link_use_r=no
8490fi
8491
8492rm -f core conftest.err conftest.$ac_objext \
8493      conftest$ac_exeext conftest.$ac_ext
8494  CFLAGS="$oldcflags"
8495  ac_ext=c
8496ac_cpp='$CPP $CPPFLAGS'
8497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8499ac_compiler_gnu=$ac_cv_c_compiler_gnu
8500
8501
8502fi
8503{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8504echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8505if test "$llvm_cv_link_use_r" = yes ; then
8506
8507cat >>confdefs.h <<\_ACEOF
8508#define HAVE_LINK_R 1
8509_ACEOF
8510
8511  fi
8512
8513
8514{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8515echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8516if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8517  echo $ECHO_N "(cached) $ECHO_C" >&6
8518else
8519   ac_ext=c
8520ac_cpp='$CPP $CPPFLAGS'
8521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8523ac_compiler_gnu=$ac_cv_c_compiler_gnu
8524
8525  oldcflags="$CFLAGS"
8526  CFLAGS="$CFLAGS -Wl,-export-dynamic"
8527  cat >conftest.$ac_ext <<_ACEOF
8528/* confdefs.h.  */
8529_ACEOF
8530cat confdefs.h >>conftest.$ac_ext
8531cat >>conftest.$ac_ext <<_ACEOF
8532/* end confdefs.h.  */
8533
8534int
8535main ()
8536{
8537int main() { return 0; }
8538  ;
8539  return 0;
8540}
8541_ACEOF
8542rm -f conftest.$ac_objext conftest$ac_exeext
8543if { (ac_try="$ac_link"
8544case "(($ac_try" in
8545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8546  *) ac_try_echo=$ac_try;;
8547esac
8548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8549  (eval "$ac_link") 2>conftest.er1
8550  ac_status=$?
8551  grep -v '^ *+' conftest.er1 >conftest.err
8552  rm -f conftest.er1
8553  cat conftest.err >&5
8554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555  (exit $ac_status); } &&
8556	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8557  { (case "(($ac_try" in
8558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8559  *) ac_try_echo=$ac_try;;
8560esac
8561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8562  (eval "$ac_try") 2>&5
8563  ac_status=$?
8564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565  (exit $ac_status); }; } &&
8566	 { ac_try='test -s conftest$ac_exeext'
8567  { (case "(($ac_try" in
8568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8569  *) ac_try_echo=$ac_try;;
8570esac
8571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8572  (eval "$ac_try") 2>&5
8573  ac_status=$?
8574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575  (exit $ac_status); }; }; then
8576  llvm_cv_link_use_export_dynamic=yes
8577else
8578  echo "$as_me: failed program was:" >&5
8579sed 's/^/| /' conftest.$ac_ext >&5
8580
8581	llvm_cv_link_use_export_dynamic=no
8582fi
8583
8584rm -f core conftest.err conftest.$ac_objext \
8585      conftest$ac_exeext conftest.$ac_ext
8586  CFLAGS="$oldcflags"
8587  ac_ext=c
8588ac_cpp='$CPP $CPPFLAGS'
8589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8591ac_compiler_gnu=$ac_cv_c_compiler_gnu
8592
8593
8594fi
8595{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8596echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8597if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8598
8599cat >>confdefs.h <<\_ACEOF
8600#define HAVE_LINK_EXPORT_DYNAMIC 1
8601_ACEOF
8602
8603  fi
8604
8605
8606
8607
8608{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8609echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8610if test "${ac_cv_c_const+set}" = set; then
8611  echo $ECHO_N "(cached) $ECHO_C" >&6
8612else
8613  cat >conftest.$ac_ext <<_ACEOF
8614/* confdefs.h.  */
8615_ACEOF
8616cat confdefs.h >>conftest.$ac_ext
8617cat >>conftest.$ac_ext <<_ACEOF
8618/* end confdefs.h.  */
8619
8620int
8621main ()
8622{
8623/* FIXME: Include the comments suggested by Paul. */
8624#ifndef __cplusplus
8625  /* Ultrix mips cc rejects this.  */
8626  typedef int charset[2];
8627  const charset x;
8628  /* SunOS 4.1.1 cc rejects this.  */
8629  char const *const *ccp;
8630  char **p;
8631  /* NEC SVR4.0.2 mips cc rejects this.  */
8632  struct point {int x, y;};
8633  static struct point const zero = {0,0};
8634  /* AIX XL C 1.02.0.0 rejects this.
8635     It does not let you subtract one const X* pointer from another in
8636     an arm of an if-expression whose if-part is not a constant
8637     expression */
8638  const char *g = "string";
8639  ccp = &g + (g ? g-g : 0);
8640  /* HPUX 7.0 cc rejects these. */
8641  ++ccp;
8642  p = (char**) ccp;
8643  ccp = (char const *const *) p;
8644  { /* SCO 3.2v4 cc rejects this.  */
8645    char *t;
8646    char const *s = 0 ? (char *) 0 : (char const *) 0;
8647
8648    *t++ = 0;
8649    if (s) return 0;
8650  }
8651  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8652    int x[] = {25, 17};
8653    const int *foo = &x[0];
8654    ++foo;
8655  }
8656  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8657    typedef const int *iptr;
8658    iptr p = 0;
8659    ++p;
8660  }
8661  { /* AIX XL C 1.02.0.0 rejects this saying
8662       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8663    struct s { int j; const int *ap[3]; };
8664    struct s *b; b->j = 5;
8665  }
8666  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8667    const int foo = 10;
8668    if (!foo) return 0;
8669  }
8670  return !x[0] && !zero.x;
8671#endif
8672
8673  ;
8674  return 0;
8675}
8676_ACEOF
8677rm -f conftest.$ac_objext
8678if { (ac_try="$ac_compile"
8679case "(($ac_try" in
8680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8681  *) ac_try_echo=$ac_try;;
8682esac
8683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8684  (eval "$ac_compile") 2>conftest.er1
8685  ac_status=$?
8686  grep -v '^ *+' conftest.er1 >conftest.err
8687  rm -f conftest.er1
8688  cat conftest.err >&5
8689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690  (exit $ac_status); } &&
8691	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8692  { (case "(($ac_try" in
8693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8694  *) ac_try_echo=$ac_try;;
8695esac
8696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8697  (eval "$ac_try") 2>&5
8698  ac_status=$?
8699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700  (exit $ac_status); }; } &&
8701	 { ac_try='test -s conftest.$ac_objext'
8702  { (case "(($ac_try" in
8703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8704  *) ac_try_echo=$ac_try;;
8705esac
8706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8707  (eval "$ac_try") 2>&5
8708  ac_status=$?
8709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710  (exit $ac_status); }; }; then
8711  ac_cv_c_const=yes
8712else
8713  echo "$as_me: failed program was:" >&5
8714sed 's/^/| /' conftest.$ac_ext >&5
8715
8716	ac_cv_c_const=no
8717fi
8718
8719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8720fi
8721{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8722echo "${ECHO_T}$ac_cv_c_const" >&6; }
8723if test $ac_cv_c_const = no; then
8724
8725cat >>confdefs.h <<\_ACEOF
8726#define const
8727_ACEOF
8728
8729fi
8730
8731
8732
8733
8734
8735
8736ac_header_dirent=no
8737for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8738  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8739{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8740echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8741if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8742  echo $ECHO_N "(cached) $ECHO_C" >&6
8743else
8744  cat >conftest.$ac_ext <<_ACEOF
8745/* confdefs.h.  */
8746_ACEOF
8747cat confdefs.h >>conftest.$ac_ext
8748cat >>conftest.$ac_ext <<_ACEOF
8749/* end confdefs.h.  */
8750#include <sys/types.h>
8751#include <$ac_hdr>
8752
8753int
8754main ()
8755{
8756if ((DIR *) 0)
8757return 0;
8758  ;
8759  return 0;
8760}
8761_ACEOF
8762rm -f conftest.$ac_objext
8763if { (ac_try="$ac_compile"
8764case "(($ac_try" in
8765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8766  *) ac_try_echo=$ac_try;;
8767esac
8768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8769  (eval "$ac_compile") 2>conftest.er1
8770  ac_status=$?
8771  grep -v '^ *+' conftest.er1 >conftest.err
8772  rm -f conftest.er1
8773  cat conftest.err >&5
8774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775  (exit $ac_status); } &&
8776	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8777  { (case "(($ac_try" in
8778  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8779  *) ac_try_echo=$ac_try;;
8780esac
8781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8782  (eval "$ac_try") 2>&5
8783  ac_status=$?
8784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785  (exit $ac_status); }; } &&
8786	 { ac_try='test -s conftest.$ac_objext'
8787  { (case "(($ac_try" in
8788  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8789  *) ac_try_echo=$ac_try;;
8790esac
8791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8792  (eval "$ac_try") 2>&5
8793  ac_status=$?
8794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795  (exit $ac_status); }; }; then
8796  eval "$as_ac_Header=yes"
8797else
8798  echo "$as_me: failed program was:" >&5
8799sed 's/^/| /' conftest.$ac_ext >&5
8800
8801	eval "$as_ac_Header=no"
8802fi
8803
8804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8805fi
8806ac_res=`eval echo '${'$as_ac_Header'}'`
8807	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8808echo "${ECHO_T}$ac_res" >&6; }
8809if test `eval echo '${'$as_ac_Header'}'` = yes; then
8810  cat >>confdefs.h <<_ACEOF
8811#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8812_ACEOF
8813
8814ac_header_dirent=$ac_hdr; break
8815fi
8816
8817done
8818# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8819if test $ac_header_dirent = dirent.h; then
8820  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8821echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8822if test "${ac_cv_search_opendir+set}" = set; then
8823  echo $ECHO_N "(cached) $ECHO_C" >&6
8824else
8825  ac_func_search_save_LIBS=$LIBS
8826cat >conftest.$ac_ext <<_ACEOF
8827/* confdefs.h.  */
8828_ACEOF
8829cat confdefs.h >>conftest.$ac_ext
8830cat >>conftest.$ac_ext <<_ACEOF
8831/* end confdefs.h.  */
8832
8833/* Override any GCC internal prototype to avoid an error.
8834   Use char because int might match the return type of a GCC
8835   builtin and then its argument prototype would still apply.  */
8836#ifdef __cplusplus
8837extern "C"
8838#endif
8839char opendir ();
8840int
8841main ()
8842{
8843return opendir ();
8844  ;
8845  return 0;
8846}
8847_ACEOF
8848for ac_lib in '' dir; do
8849  if test -z "$ac_lib"; then
8850    ac_res="none required"
8851  else
8852    ac_res=-l$ac_lib
8853    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8854  fi
8855  rm -f conftest.$ac_objext conftest$ac_exeext
8856if { (ac_try="$ac_link"
8857case "(($ac_try" in
8858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8859  *) ac_try_echo=$ac_try;;
8860esac
8861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8862  (eval "$ac_link") 2>conftest.er1
8863  ac_status=$?
8864  grep -v '^ *+' conftest.er1 >conftest.err
8865  rm -f conftest.er1
8866  cat conftest.err >&5
8867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868  (exit $ac_status); } &&
8869	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8870  { (case "(($ac_try" in
8871  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8872  *) ac_try_echo=$ac_try;;
8873esac
8874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8875  (eval "$ac_try") 2>&5
8876  ac_status=$?
8877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878  (exit $ac_status); }; } &&
8879	 { ac_try='test -s conftest$ac_exeext'
8880  { (case "(($ac_try" in
8881  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8882  *) ac_try_echo=$ac_try;;
8883esac
8884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8885  (eval "$ac_try") 2>&5
8886  ac_status=$?
8887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888  (exit $ac_status); }; }; then
8889  ac_cv_search_opendir=$ac_res
8890else
8891  echo "$as_me: failed program was:" >&5
8892sed 's/^/| /' conftest.$ac_ext >&5
8893
8894
8895fi
8896
8897rm -f core conftest.err conftest.$ac_objext \
8898      conftest$ac_exeext
8899  if test "${ac_cv_search_opendir+set}" = set; then
8900  break
8901fi
8902done
8903if test "${ac_cv_search_opendir+set}" = set; then
8904  :
8905else
8906  ac_cv_search_opendir=no
8907fi
8908rm conftest.$ac_ext
8909LIBS=$ac_func_search_save_LIBS
8910fi
8911{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8912echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8913ac_res=$ac_cv_search_opendir
8914if test "$ac_res" != no; then
8915  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8916
8917fi
8918
8919else
8920  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8921echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8922if test "${ac_cv_search_opendir+set}" = set; then
8923  echo $ECHO_N "(cached) $ECHO_C" >&6
8924else
8925  ac_func_search_save_LIBS=$LIBS
8926cat >conftest.$ac_ext <<_ACEOF
8927/* confdefs.h.  */
8928_ACEOF
8929cat confdefs.h >>conftest.$ac_ext
8930cat >>conftest.$ac_ext <<_ACEOF
8931/* end confdefs.h.  */
8932
8933/* Override any GCC internal prototype to avoid an error.
8934   Use char because int might match the return type of a GCC
8935   builtin and then its argument prototype would still apply.  */
8936#ifdef __cplusplus
8937extern "C"
8938#endif
8939char opendir ();
8940int
8941main ()
8942{
8943return opendir ();
8944  ;
8945  return 0;
8946}
8947_ACEOF
8948for ac_lib in '' x; do
8949  if test -z "$ac_lib"; then
8950    ac_res="none required"
8951  else
8952    ac_res=-l$ac_lib
8953    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8954  fi
8955  rm -f conftest.$ac_objext conftest$ac_exeext
8956if { (ac_try="$ac_link"
8957case "(($ac_try" in
8958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8959  *) ac_try_echo=$ac_try;;
8960esac
8961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8962  (eval "$ac_link") 2>conftest.er1
8963  ac_status=$?
8964  grep -v '^ *+' conftest.er1 >conftest.err
8965  rm -f conftest.er1
8966  cat conftest.err >&5
8967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968  (exit $ac_status); } &&
8969	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8970  { (case "(($ac_try" in
8971  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8972  *) ac_try_echo=$ac_try;;
8973esac
8974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8975  (eval "$ac_try") 2>&5
8976  ac_status=$?
8977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978  (exit $ac_status); }; } &&
8979	 { ac_try='test -s conftest$ac_exeext'
8980  { (case "(($ac_try" in
8981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8982  *) ac_try_echo=$ac_try;;
8983esac
8984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8985  (eval "$ac_try") 2>&5
8986  ac_status=$?
8987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988  (exit $ac_status); }; }; then
8989  ac_cv_search_opendir=$ac_res
8990else
8991  echo "$as_me: failed program was:" >&5
8992sed 's/^/| /' conftest.$ac_ext >&5
8993
8994
8995fi
8996
8997rm -f core conftest.err conftest.$ac_objext \
8998      conftest$ac_exeext
8999  if test "${ac_cv_search_opendir+set}" = set; then
9000  break
9001fi
9002done
9003if test "${ac_cv_search_opendir+set}" = set; then
9004  :
9005else
9006  ac_cv_search_opendir=no
9007fi
9008rm conftest.$ac_ext
9009LIBS=$ac_func_search_save_LIBS
9010fi
9011{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9012echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9013ac_res=$ac_cv_search_opendir
9014if test "$ac_res" != no; then
9015  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9016
9017fi
9018
9019fi
9020
9021
9022for ac_header in dlfcn.h
9023do
9024as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9025if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9026  { echo "$as_me:$LINENO: checking for $ac_header" >&5
9027echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9028if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9029  echo $ECHO_N "(cached) $ECHO_C" >&6
9030fi
9031ac_res=`eval echo '${'$as_ac_Header'}'`
9032	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9033echo "${ECHO_T}$ac_res" >&6; }
9034else
9035  # Is the header compilable?
9036{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9037echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9038cat >conftest.$ac_ext <<_ACEOF
9039/* confdefs.h.  */
9040_ACEOF
9041cat confdefs.h >>conftest.$ac_ext
9042cat >>conftest.$ac_ext <<_ACEOF
9043/* end confdefs.h.  */
9044$ac_includes_default
9045#include <$ac_header>
9046_ACEOF
9047rm -f conftest.$ac_objext
9048if { (ac_try="$ac_compile"
9049case "(($ac_try" in
9050  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9051  *) ac_try_echo=$ac_try;;
9052esac
9053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9054  (eval "$ac_compile") 2>conftest.er1
9055  ac_status=$?
9056  grep -v '^ *+' conftest.er1 >conftest.err
9057  rm -f conftest.er1
9058  cat conftest.err >&5
9059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060  (exit $ac_status); } &&
9061	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9062  { (case "(($ac_try" in
9063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9064  *) ac_try_echo=$ac_try;;
9065esac
9066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9067  (eval "$ac_try") 2>&5
9068  ac_status=$?
9069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070  (exit $ac_status); }; } &&
9071	 { ac_try='test -s conftest.$ac_objext'
9072  { (case "(($ac_try" in
9073  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9074  *) ac_try_echo=$ac_try;;
9075esac
9076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9077  (eval "$ac_try") 2>&5
9078  ac_status=$?
9079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080  (exit $ac_status); }; }; then
9081  ac_header_compiler=yes
9082else
9083  echo "$as_me: failed program was:" >&5
9084sed 's/^/| /' conftest.$ac_ext >&5
9085
9086	ac_header_compiler=no
9087fi
9088
9089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9090{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9091echo "${ECHO_T}$ac_header_compiler" >&6; }
9092
9093# Is the header present?
9094{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9095echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9096cat >conftest.$ac_ext <<_ACEOF
9097/* confdefs.h.  */
9098_ACEOF
9099cat confdefs.h >>conftest.$ac_ext
9100cat >>conftest.$ac_ext <<_ACEOF
9101/* end confdefs.h.  */
9102#include <$ac_header>
9103_ACEOF
9104if { (ac_try="$ac_cpp conftest.$ac_ext"
9105case "(($ac_try" in
9106  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9107  *) ac_try_echo=$ac_try;;
9108esac
9109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9110  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9111  ac_status=$?
9112  grep -v '^ *+' conftest.er1 >conftest.err
9113  rm -f conftest.er1
9114  cat conftest.err >&5
9115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116  (exit $ac_status); } >/dev/null; then
9117  if test -s conftest.err; then
9118    ac_cpp_err=$ac_c_preproc_warn_flag
9119    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9120  else
9121    ac_cpp_err=
9122  fi
9123else
9124  ac_cpp_err=yes
9125fi
9126if test -z "$ac_cpp_err"; then
9127  ac_header_preproc=yes
9128else
9129  echo "$as_me: failed program was:" >&5
9130sed 's/^/| /' conftest.$ac_ext >&5
9131
9132  ac_header_preproc=no
9133fi
9134
9135rm -f conftest.err conftest.$ac_ext
9136{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9137echo "${ECHO_T}$ac_header_preproc" >&6; }
9138
9139# So?  What about this header?
9140case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9141  yes:no: )
9142    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9143echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9144    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9145echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9146    ac_header_preproc=yes
9147    ;;
9148  no:yes:* )
9149    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9150echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9151    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9152echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9153    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9154echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9155    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9156echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9157    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9158echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9159    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9160echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9161    ( cat <<\_ASBOX
9162## ----------------------------------- ##
9163## Report this to llvmbugs@cs.uiuc.edu ##
9164## ----------------------------------- ##
9165_ASBOX
9166     ) | sed "s/^/$as_me: WARNING:     /" >&2
9167    ;;
9168esac
9169{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9170echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9171if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9172  echo $ECHO_N "(cached) $ECHO_C" >&6
9173else
9174  eval "$as_ac_Header=\$ac_header_preproc"
9175fi
9176ac_res=`eval echo '${'$as_ac_Header'}'`
9177	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9178echo "${ECHO_T}$ac_res" >&6; }
9179
9180fi
9181if test `eval echo '${'$as_ac_Header'}'` = yes; then
9182  cat >>confdefs.h <<_ACEOF
9183#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9184_ACEOF
9185
9186fi
9187
9188done
9189
9190# Check whether --enable-ltdl-install was given.
9191if test "${enable_ltdl_install+set}" = set; then
9192  enableval=$enable_ltdl_install;
9193fi
9194
9195
9196
9197
9198if test x"${enable_ltdl_install-no}" != xno; then
9199  INSTALL_LTDL_TRUE=
9200  INSTALL_LTDL_FALSE='#'
9201else
9202  INSTALL_LTDL_TRUE='#'
9203  INSTALL_LTDL_FALSE=
9204fi
9205
9206
9207
9208if test x"${enable_ltdl_convenience-no}" != xno; then
9209  CONVENIENCE_LTDL_TRUE=
9210  CONVENIENCE_LTDL_FALSE='#'
9211else
9212  CONVENIENCE_LTDL_TRUE='#'
9213  CONVENIENCE_LTDL_FALSE=
9214fi
9215
9216
9217{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9218echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9219library_names_spec=
9220libname_spec='lib$name'
9221soname_spec=
9222shrext_cmds=".so"
9223postinstall_cmds=
9224postuninstall_cmds=
9225finish_cmds=
9226finish_eval=
9227shlibpath_var=
9228shlibpath_overrides_runpath=unknown
9229version_type=none
9230dynamic_linker="$host_os ld.so"
9231sys_lib_dlsearch_path_spec="/lib /usr/lib"
9232if test "$GCC" = yes; then
9233  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9234  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9235    # if the path contains ";" then we assume it to be the separator
9236    # otherwise default to the standard path separator (i.e. ":") - it is
9237    # assumed that no part of a normal pathname contains ";" but that should
9238    # okay in the real world where ";" in dirpaths is itself problematic.
9239    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9240  else
9241    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9242  fi
9243else
9244  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9245fi
9246need_lib_prefix=unknown
9247hardcode_into_libs=no
9248
9249# when you set need_version to no, make sure it does not cause -set_version
9250# flags to be left without arguments
9251need_version=unknown
9252
9253case $host_os in
9254aix3*)
9255  version_type=linux
9256  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9257  shlibpath_var=LIBPATH
9258
9259  # AIX 3 has no versioning support, so we append a major version to the name.
9260  soname_spec='${libname}${release}${shared_ext}$major'
9261  ;;
9262
9263aix4* | aix5*)
9264  version_type=linux
9265  need_lib_prefix=no
9266  need_version=no
9267  hardcode_into_libs=yes
9268  if test "$host_cpu" = ia64; then
9269    # AIX 5 supports IA64
9270    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9271    shlibpath_var=LD_LIBRARY_PATH
9272  else
9273    # With GCC up to 2.95.x, collect2 would create an import file
9274    # for dependence libraries.  The import file would start with
9275    # the line `#! .'.  This would cause the generated library to
9276    # depend on `.', always an invalid library.  This was fixed in
9277    # development snapshots of GCC prior to 3.0.
9278    case $host_os in
9279      aix4 | aix4.[01] | aix4.[01].*)
9280      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9281	   echo ' yes '
9282	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9283	:
9284      else
9285	can_build_shared=no
9286      fi
9287      ;;
9288    esac
9289    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9290    # soname into executable. Probably we can add versioning support to
9291    # collect2, so additional links can be useful in future.
9292    if test "$aix_use_runtimelinking" = yes; then
9293      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9294      # instead of lib<name>.a to let people know that these are not
9295      # typical AIX shared libraries.
9296      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9297    else
9298      # We preserve .a as extension for shared libraries through AIX4.2
9299      # and later when we are not doing run time linking.
9300      library_names_spec='${libname}${release}.a $libname.a'
9301      soname_spec='${libname}${release}${shared_ext}$major'
9302    fi
9303    shlibpath_var=LIBPATH
9304  fi
9305  ;;
9306
9307amigaos*)
9308  library_names_spec='$libname.ixlibrary $libname.a'
9309  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9310  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'
9311  ;;
9312
9313beos*)
9314  library_names_spec='${libname}${shared_ext}'
9315  dynamic_linker="$host_os ld.so"
9316  shlibpath_var=LIBRARY_PATH
9317  ;;
9318
9319bsdi[45]*)
9320  version_type=linux
9321  need_version=no
9322  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9323  soname_spec='${libname}${release}${shared_ext}$major'
9324  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9325  shlibpath_var=LD_LIBRARY_PATH
9326  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9327  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9328  # the default ld.so.conf also contains /usr/contrib/lib and
9329  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9330  # libtool to hard-code these into programs
9331  ;;
9332
9333cygwin* | mingw* | pw32*)
9334  version_type=windows
9335  shrext_cmds=".dll"
9336  need_version=no
9337  need_lib_prefix=no
9338
9339  case $GCC,$host_os in
9340  yes,cygwin* | yes,mingw* | yes,pw32*)
9341    library_names_spec='$libname.dll.a'
9342    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9343    postinstall_cmds='base_file=`basename \${file}`~
9344      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9345      dldir=$destdir/`dirname \$dlpath`~
9346      test -d \$dldir || mkdir -p \$dldir~
9347      $install_prog $dir/$dlname \$dldir/$dlname~
9348      chmod a+x \$dldir/$dlname'
9349    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9350      dlpath=$dir/\$dldll~
9351       $rm \$dlpath'
9352    shlibpath_overrides_runpath=yes
9353
9354    case $host_os in
9355    cygwin*)
9356      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9357      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9358      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9359      ;;
9360    mingw*)
9361      # MinGW DLLs use traditional 'lib' prefix
9362      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9363      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9364      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9365        # It is most probably a Windows format PATH printed by
9366        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9367        # path with ; separators, and with drive letters. We can handle the
9368        # drive letters (cygwin fileutils understands them), so leave them,
9369        # especially as we might pass files found there to a mingw objdump,
9370        # which wouldn't understand a cygwinified path. Ahh.
9371        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9372      else
9373        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9374      fi
9375      ;;
9376    pw32*)
9377      # pw32 DLLs use 'pw' prefix rather than 'lib'
9378      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9379      ;;
9380    esac
9381    ;;
9382
9383  *)
9384    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9385    ;;
9386  esac
9387  dynamic_linker='Win32 ld.exe'
9388  # FIXME: first we should search . and the directory the executable is in
9389  shlibpath_var=PATH
9390  ;;
9391
9392darwin* | rhapsody*)
9393  dynamic_linker="$host_os dyld"
9394  version_type=darwin
9395  need_lib_prefix=no
9396  need_version=no
9397  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9398  soname_spec='${libname}${release}${major}$shared_ext'
9399  shlibpath_overrides_runpath=yes
9400  shlibpath_var=DYLD_LIBRARY_PATH
9401  shrext_cmds='.dylib'
9402  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9403  if test "$GCC" = yes; then
9404    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"`
9405  else
9406    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9407  fi
9408  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9409  ;;
9410
9411dgux*)
9412  version_type=linux
9413  need_lib_prefix=no
9414  need_version=no
9415  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9416  soname_spec='${libname}${release}${shared_ext}$major'
9417  shlibpath_var=LD_LIBRARY_PATH
9418  ;;
9419
9420freebsd1*)
9421  dynamic_linker=no
9422  ;;
9423
9424kfreebsd*-gnu)
9425  version_type=linux
9426  need_lib_prefix=no
9427  need_version=no
9428  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9429  soname_spec='${libname}${release}${shared_ext}$major'
9430  shlibpath_var=LD_LIBRARY_PATH
9431  shlibpath_overrides_runpath=no
9432  hardcode_into_libs=yes
9433  dynamic_linker='GNU ld.so'
9434  ;;
9435
9436freebsd* | dragonfly*)
9437  # DragonFly does not have aout.  When/if they implement a new
9438  # versioning mechanism, adjust this.
9439  if test -x /usr/bin/objformat; then
9440    objformat=`/usr/bin/objformat`
9441  else
9442    case $host_os in
9443    freebsd[123]*) objformat=aout ;;
9444    *) objformat=elf ;;
9445    esac
9446  fi
9447  version_type=freebsd-$objformat
9448  case $version_type in
9449    freebsd-elf*)
9450      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9451      need_version=no
9452      need_lib_prefix=no
9453      ;;
9454    freebsd-*)
9455      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9456      need_version=yes
9457      ;;
9458  esac
9459  shlibpath_var=LD_LIBRARY_PATH
9460  case $host_os in
9461  freebsd2*)
9462    shlibpath_overrides_runpath=yes
9463    ;;
9464  freebsd3.[01]* | freebsdelf3.[01]*)
9465    shlibpath_overrides_runpath=yes
9466    hardcode_into_libs=yes
9467    ;;
9468  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9469  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9470    shlibpath_overrides_runpath=no
9471    hardcode_into_libs=yes
9472    ;;
9473  freebsd*) # from 4.6 on
9474    shlibpath_overrides_runpath=yes
9475    hardcode_into_libs=yes
9476    ;;
9477  esac
9478  ;;
9479
9480gnu*)
9481  version_type=linux
9482  need_lib_prefix=no
9483  need_version=no
9484  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9485  soname_spec='${libname}${release}${shared_ext}$major'
9486  shlibpath_var=LD_LIBRARY_PATH
9487  hardcode_into_libs=yes
9488  ;;
9489
9490hpux9* | hpux10* | hpux11*)
9491  # Give a soname corresponding to the major version so that dld.sl refuses to
9492  # link against other versions.
9493  version_type=sunos
9494  need_lib_prefix=no
9495  need_version=no
9496  case $host_cpu in
9497  ia64*)
9498    shrext_cmds='.so'
9499    hardcode_into_libs=yes
9500    dynamic_linker="$host_os dld.so"
9501    shlibpath_var=LD_LIBRARY_PATH
9502    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9503    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9504    soname_spec='${libname}${release}${shared_ext}$major'
9505    if test "X$HPUX_IA64_MODE" = X32; then
9506      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9507    else
9508      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9509    fi
9510    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9511    ;;
9512   hppa*64*)
9513     shrext_cmds='.sl'
9514     hardcode_into_libs=yes
9515     dynamic_linker="$host_os dld.sl"
9516     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9517     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9518     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9519     soname_spec='${libname}${release}${shared_ext}$major'
9520     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9521     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9522     ;;
9523   *)
9524    shrext_cmds='.sl'
9525    dynamic_linker="$host_os dld.sl"
9526    shlibpath_var=SHLIB_PATH
9527    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9528    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9529    soname_spec='${libname}${release}${shared_ext}$major'
9530    ;;
9531  esac
9532  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9533  postinstall_cmds='chmod 555 $lib'
9534  ;;
9535
9536interix3*)
9537  version_type=linux
9538  need_lib_prefix=no
9539  need_version=no
9540  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9541  soname_spec='${libname}${release}${shared_ext}$major'
9542  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9543  shlibpath_var=LD_LIBRARY_PATH
9544  shlibpath_overrides_runpath=no
9545  hardcode_into_libs=yes
9546  ;;
9547
9548irix5* | irix6* | nonstopux*)
9549  case $host_os in
9550    nonstopux*) version_type=nonstopux ;;
9551    *)
9552	if test "$lt_cv_prog_gnu_ld" = yes; then
9553		version_type=linux
9554	else
9555		version_type=irix
9556	fi ;;
9557  esac
9558  need_lib_prefix=no
9559  need_version=no
9560  soname_spec='${libname}${release}${shared_ext}$major'
9561  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9562  case $host_os in
9563  irix5* | nonstopux*)
9564    libsuff= shlibsuff=
9565    ;;
9566  *)
9567    case $LD in # libtool.m4 will add one of these switches to LD
9568    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9569      libsuff= shlibsuff= libmagic=32-bit;;
9570    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9571      libsuff=32 shlibsuff=N32 libmagic=N32;;
9572    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9573      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9574    *) libsuff= shlibsuff= libmagic=never-match;;
9575    esac
9576    ;;
9577  esac
9578  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9579  shlibpath_overrides_runpath=no
9580  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9581  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9582  hardcode_into_libs=yes
9583  ;;
9584
9585# No shared lib support for Linux oldld, aout, or coff.
9586linux*oldld* | linux*aout* | linux*coff*)
9587  dynamic_linker=no
9588  ;;
9589
9590# This must be Linux ELF.
9591linux*)
9592  version_type=linux
9593  need_lib_prefix=no
9594  need_version=no
9595  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9596  soname_spec='${libname}${release}${shared_ext}$major'
9597  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9598  shlibpath_var=LD_LIBRARY_PATH
9599  shlibpath_overrides_runpath=no
9600  # This implies no fast_install, which is unacceptable.
9601  # Some rework will be needed to allow for fast_install
9602  # before this can be enabled.
9603  hardcode_into_libs=yes
9604
9605  # Append ld.so.conf contents to the search path
9606  if test -f /etc/ld.so.conf; then
9607    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' ' '`
9608    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9609  fi
9610
9611  # We used to test for /lib/ld.so.1 and disable shared libraries on
9612  # powerpc, because MkLinux only supported shared libraries with the
9613  # GNU dynamic linker.  Since this was broken with cross compilers,
9614  # most powerpc-linux boxes support dynamic linking these days and
9615  # people can always --disable-shared, the test was removed, and we
9616  # assume the GNU/Linux dynamic linker is in use.
9617  dynamic_linker='GNU/Linux ld.so'
9618  ;;
9619
9620knetbsd*-gnu)
9621  version_type=linux
9622  need_lib_prefix=no
9623  need_version=no
9624  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9625  soname_spec='${libname}${release}${shared_ext}$major'
9626  shlibpath_var=LD_LIBRARY_PATH
9627  shlibpath_overrides_runpath=no
9628  hardcode_into_libs=yes
9629  dynamic_linker='GNU ld.so'
9630  ;;
9631
9632netbsd*)
9633  version_type=sunos
9634  need_lib_prefix=no
9635  need_version=no
9636  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9637    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9638    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9639    dynamic_linker='NetBSD (a.out) ld.so'
9640  else
9641    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9642    soname_spec='${libname}${release}${shared_ext}$major'
9643    dynamic_linker='NetBSD ld.elf_so'
9644  fi
9645  shlibpath_var=LD_LIBRARY_PATH
9646  shlibpath_overrides_runpath=yes
9647  hardcode_into_libs=yes
9648  ;;
9649
9650newsos6)
9651  version_type=linux
9652  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9653  shlibpath_var=LD_LIBRARY_PATH
9654  shlibpath_overrides_runpath=yes
9655  ;;
9656
9657nto-qnx*)
9658  version_type=linux
9659  need_lib_prefix=no
9660  need_version=no
9661  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9662  soname_spec='${libname}${release}${shared_ext}$major'
9663  shlibpath_var=LD_LIBRARY_PATH
9664  shlibpath_overrides_runpath=yes
9665  ;;
9666
9667openbsd*)
9668  version_type=sunos
9669  sys_lib_dlsearch_path_spec="/usr/lib"
9670  need_lib_prefix=no
9671  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9672  case $host_os in
9673    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9674    *)                         need_version=no  ;;
9675  esac
9676  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9677  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9678  shlibpath_var=LD_LIBRARY_PATH
9679  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9680    case $host_os in
9681      openbsd2.[89] | openbsd2.[89].*)
9682	shlibpath_overrides_runpath=no
9683	;;
9684      *)
9685	shlibpath_overrides_runpath=yes
9686	;;
9687      esac
9688  else
9689    shlibpath_overrides_runpath=yes
9690  fi
9691  ;;
9692
9693os2*)
9694  libname_spec='$name'
9695  shrext_cmds=".dll"
9696  need_lib_prefix=no
9697  library_names_spec='$libname${shared_ext} $libname.a'
9698  dynamic_linker='OS/2 ld.exe'
9699  shlibpath_var=LIBPATH
9700  ;;
9701
9702osf3* | osf4* | osf5*)
9703  version_type=osf
9704  need_lib_prefix=no
9705  need_version=no
9706  soname_spec='${libname}${release}${shared_ext}$major'
9707  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9708  shlibpath_var=LD_LIBRARY_PATH
9709  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9710  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9711  ;;
9712
9713solaris*)
9714  version_type=linux
9715  need_lib_prefix=no
9716  need_version=no
9717  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9718  soname_spec='${libname}${release}${shared_ext}$major'
9719  shlibpath_var=LD_LIBRARY_PATH
9720  shlibpath_overrides_runpath=yes
9721  hardcode_into_libs=yes
9722  # ldd complains unless libraries are executable
9723  postinstall_cmds='chmod +x $lib'
9724  ;;
9725
9726sunos4*)
9727  version_type=sunos
9728  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9729  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9730  shlibpath_var=LD_LIBRARY_PATH
9731  shlibpath_overrides_runpath=yes
9732  if test "$with_gnu_ld" = yes; then
9733    need_lib_prefix=no
9734  fi
9735  need_version=yes
9736  ;;
9737
9738sysv4 | sysv4.3*)
9739  version_type=linux
9740  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9741  soname_spec='${libname}${release}${shared_ext}$major'
9742  shlibpath_var=LD_LIBRARY_PATH
9743  case $host_vendor in
9744    sni)
9745      shlibpath_overrides_runpath=no
9746      need_lib_prefix=no
9747      export_dynamic_flag_spec='${wl}-Blargedynsym'
9748      runpath_var=LD_RUN_PATH
9749      ;;
9750    siemens)
9751      need_lib_prefix=no
9752      ;;
9753    motorola)
9754      need_lib_prefix=no
9755      need_version=no
9756      shlibpath_overrides_runpath=no
9757      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9758      ;;
9759  esac
9760  ;;
9761
9762sysv4*MP*)
9763  if test -d /usr/nec ;then
9764    version_type=linux
9765    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9766    soname_spec='$libname${shared_ext}.$major'
9767    shlibpath_var=LD_LIBRARY_PATH
9768  fi
9769  ;;
9770
9771sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9772  version_type=freebsd-elf
9773  need_lib_prefix=no
9774  need_version=no
9775  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9776  soname_spec='${libname}${release}${shared_ext}$major'
9777  shlibpath_var=LD_LIBRARY_PATH
9778  hardcode_into_libs=yes
9779  if test "$with_gnu_ld" = yes; then
9780    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9781    shlibpath_overrides_runpath=no
9782  else
9783    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9784    shlibpath_overrides_runpath=yes
9785    case $host_os in
9786      sco3.2v5*)
9787        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9788	;;
9789    esac
9790  fi
9791  sys_lib_dlsearch_path_spec='/usr/lib'
9792  ;;
9793
9794uts4*)
9795  version_type=linux
9796  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9797  soname_spec='${libname}${release}${shared_ext}$major'
9798  shlibpath_var=LD_LIBRARY_PATH
9799  ;;
9800
9801*)
9802  dynamic_linker=no
9803  ;;
9804esac
9805{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9806echo "${ECHO_T}$dynamic_linker" >&6; }
9807test "$dynamic_linker" = no && can_build_shared=no
9808
9809variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9810if test "$GCC" = yes; then
9811  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9812fi
9813
9814
9815{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9816echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9817if test "${libltdl_cv_shlibext+set}" = set; then
9818  echo $ECHO_N "(cached) $ECHO_C" >&6
9819else
9820
9821module=yes
9822eval libltdl_cv_shlibext=$shrext_cmds
9823
9824fi
9825{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9826echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9827if test -n "$libltdl_cv_shlibext"; then
9828
9829cat >>confdefs.h <<_ACEOF
9830#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9831_ACEOF
9832
9833fi
9834
9835
9836{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9837echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9838if test "${libltdl_cv_shlibpath_var+set}" = set; then
9839  echo $ECHO_N "(cached) $ECHO_C" >&6
9840else
9841  libltdl_cv_shlibpath_var="$shlibpath_var"
9842fi
9843{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9844echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9845if test -n "$libltdl_cv_shlibpath_var"; then
9846
9847cat >>confdefs.h <<_ACEOF
9848#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9849_ACEOF
9850
9851fi
9852
9853
9854{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9855echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9856if test "${libltdl_cv_sys_search_path+set}" = set; then
9857  echo $ECHO_N "(cached) $ECHO_C" >&6
9858else
9859  libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9860fi
9861{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9862echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9863if test -n "$libltdl_cv_sys_search_path"; then
9864  sys_search_path=
9865  for dir in $libltdl_cv_sys_search_path; do
9866    if test -z "$sys_search_path"; then
9867      sys_search_path="$dir"
9868    else
9869      sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9870    fi
9871  done
9872
9873cat >>confdefs.h <<_ACEOF
9874#define LTDL_SYSSEARCHPATH "$sys_search_path"
9875_ACEOF
9876
9877fi
9878
9879{ echo "$as_me:$LINENO: checking for objdir" >&5
9880echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9881if test "${libltdl_cv_objdir+set}" = set; then
9882  echo $ECHO_N "(cached) $ECHO_C" >&6
9883else
9884  libltdl_cv_objdir="$objdir"
9885  if test -n "$objdir"; then
9886    :
9887  else
9888    rm -f .libs 2>/dev/null
9889    mkdir .libs 2>/dev/null
9890    if test -d .libs; then
9891      libltdl_cv_objdir=.libs
9892    else
9893      # MS-DOS does not allow filenames that begin with a dot.
9894      libltdl_cv_objdir=_libs
9895    fi
9896  rmdir .libs 2>/dev/null
9897  fi
9898
9899fi
9900{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9901echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9902
9903cat >>confdefs.h <<_ACEOF
9904#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9905_ACEOF
9906
9907
9908
9909
9910
9911
9912# Check for command to grab the raw symbol name followed by C symbol from nm.
9913{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9914echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9915if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9916  echo $ECHO_N "(cached) $ECHO_C" >&6
9917else
9918
9919# These are sane defaults that work on at least a few old systems.
9920# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9921
9922# Character class describing NM global symbol codes.
9923symcode='[BCDEGRST]'
9924
9925# Regexp to match symbols that can be accessed directly from C.
9926sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9927
9928# Transform an extracted symbol line into a proper C declaration
9929lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9930
9931# Transform an extracted symbol line into symbol name and symbol address
9932lt_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'"
9933
9934# Define system-specific variables.
9935case $host_os in
9936aix*)
9937  symcode='[BCDT]'
9938  ;;
9939cygwin* | mingw* | pw32*)
9940  symcode='[ABCDGISTW]'
9941  ;;
9942hpux*) # Its linker distinguishes data from code symbols
9943  if test "$host_cpu" = ia64; then
9944    symcode='[ABCDEGRST]'
9945  fi
9946  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9947  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'"
9948  ;;
9949linux*)
9950  if test "$host_cpu" = ia64; then
9951    symcode='[ABCDGIRSTW]'
9952    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9953    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'"
9954  fi
9955  ;;
9956irix* | nonstopux*)
9957  symcode='[BCDEGRST]'
9958  ;;
9959osf*)
9960  symcode='[BCDEGQRST]'
9961  ;;
9962solaris*)
9963  symcode='[BDRT]'
9964  ;;
9965sco3.2v5*)
9966  symcode='[DT]'
9967  ;;
9968sysv4.2uw2*)
9969  symcode='[DT]'
9970  ;;
9971sysv5* | sco5v6* | unixware* | OpenUNIX*)
9972  symcode='[ABDT]'
9973  ;;
9974sysv4)
9975  symcode='[DFNSTU]'
9976  ;;
9977esac
9978
9979# Handle CRLF in mingw tool chain
9980opt_cr=
9981case $build_os in
9982mingw*)
9983  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9984  ;;
9985esac
9986
9987# If we're using GNU nm, then use its standard symbol codes.
9988case `$NM -V 2>&1` in
9989*GNU* | *'with BFD'*)
9990  symcode='[ABCDGIRSTW]' ;;
9991esac
9992
9993# Try without a prefix undercore, then with it.
9994for ac_symprfx in "" "_"; do
9995
9996  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9997  symxfrm="\\1 $ac_symprfx\\2 \\2"
9998
9999  # Write the raw and C identifiers.
10000  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10001
10002  # Check to see that the pipe works correctly.
10003  pipe_works=no
10004
10005  rm -f conftest*
10006  cat > conftest.$ac_ext <<EOF
10007#ifdef __cplusplus
10008extern "C" {
10009#endif
10010char nm_test_var;
10011void nm_test_func(){}
10012#ifdef __cplusplus
10013}
10014#endif
10015int main(){nm_test_var='a';nm_test_func();return(0);}
10016EOF
10017
10018  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10019  (eval $ac_compile) 2>&5
10020  ac_status=$?
10021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022  (exit $ac_status); }; then
10023    # Now try to grab the symbols.
10024    nlist=conftest.nm
10025    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10026  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10027  ac_status=$?
10028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029  (exit $ac_status); } && test -s "$nlist"; then
10030      # Try sorting and uniquifying the output.
10031      if sort "$nlist" | uniq > "$nlist"T; then
10032	mv -f "$nlist"T "$nlist"
10033      else
10034	rm -f "$nlist"T
10035      fi
10036
10037      # Make sure that we snagged all the symbols we need.
10038      if grep ' nm_test_var$' "$nlist" >/dev/null; then
10039	if grep ' nm_test_func$' "$nlist" >/dev/null; then
10040	  cat <<EOF > conftest.$ac_ext
10041#ifdef __cplusplus
10042extern "C" {
10043#endif
10044
10045EOF
10046	  # Now generate the symbol file.
10047	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10048
10049	  cat <<EOF >> conftest.$ac_ext
10050#if defined (__STDC__) && __STDC__
10051# define lt_ptr_t void *
10052#else
10053# define lt_ptr_t char *
10054# define const
10055#endif
10056
10057/* The mapping between symbol names and symbols. */
10058const struct {
10059  const char *name;
10060  lt_ptr_t address;
10061}
10062lt_preloaded_symbols[] =
10063{
10064EOF
10065	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10066	  cat <<\EOF >> conftest.$ac_ext
10067  {0, (lt_ptr_t) 0}
10068};
10069
10070#ifdef __cplusplus
10071}
10072#endif
10073EOF
10074	  # Now try linking the two files.
10075	  mv conftest.$ac_objext conftstm.$ac_objext
10076	  lt_save_LIBS="$LIBS"
10077	  lt_save_CFLAGS="$CFLAGS"
10078	  LIBS="conftstm.$ac_objext"
10079	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10080	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10081  (eval $ac_link) 2>&5
10082  ac_status=$?
10083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084  (exit $ac_status); } && test -s conftest${ac_exeext}; then
10085	    pipe_works=yes
10086	  fi
10087	  LIBS="$lt_save_LIBS"
10088	  CFLAGS="$lt_save_CFLAGS"
10089	else
10090	  echo "cannot find nm_test_func in $nlist" >&5
10091	fi
10092      else
10093	echo "cannot find nm_test_var in $nlist" >&5
10094      fi
10095    else
10096      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10097    fi
10098  else
10099    echo "$progname: failed program was:" >&5
10100    cat conftest.$ac_ext >&5
10101  fi
10102  rm -f conftest* conftst*
10103
10104  # Do not use the global_symbol_pipe unless it works.
10105  if test "$pipe_works" = yes; then
10106    break
10107  else
10108    lt_cv_sys_global_symbol_pipe=
10109  fi
10110done
10111
10112fi
10113
10114if test -z "$lt_cv_sys_global_symbol_pipe"; then
10115  lt_cv_sys_global_symbol_to_cdecl=
10116fi
10117if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10118  { echo "$as_me:$LINENO: result: failed" >&5
10119echo "${ECHO_T}failed" >&6; }
10120else
10121  { echo "$as_me:$LINENO: result: ok" >&5
10122echo "${ECHO_T}ok" >&6; }
10123fi
10124
10125
10126{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10127echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10128if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10129  echo $ECHO_N "(cached) $ECHO_C" >&6
10130else
10131  if test -n "$lt_cv_sys_global_symbol_pipe"; then
10132    libltdl_cv_preloaded_symbols=yes
10133  else
10134    libltdl_cv_preloaded_symbols=no
10135  fi
10136
10137fi
10138{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10139echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10140if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10141
10142cat >>confdefs.h <<\_ACEOF
10143#define HAVE_PRELOADED_SYMBOLS 1
10144_ACEOF
10145
10146fi
10147
10148LIBADD_DL=
10149
10150ac_ext=c
10151ac_cpp='$CPP $CPPFLAGS'
10152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10154ac_compiler_gnu=$ac_cv_c_compiler_gnu
10155
10156
10157{ echo "$as_me:$LINENO: checking for shl_load" >&5
10158echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10159if test "${ac_cv_func_shl_load+set}" = set; then
10160  echo $ECHO_N "(cached) $ECHO_C" >&6
10161else
10162  cat >conftest.$ac_ext <<_ACEOF
10163/* confdefs.h.  */
10164_ACEOF
10165cat confdefs.h >>conftest.$ac_ext
10166cat >>conftest.$ac_ext <<_ACEOF
10167/* end confdefs.h.  */
10168/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10169   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10170#define shl_load innocuous_shl_load
10171
10172/* System header to define __stub macros and hopefully few prototypes,
10173    which can conflict with char shl_load (); below.
10174    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10175    <limits.h> exists even on freestanding compilers.  */
10176
10177#ifdef __STDC__
10178# include <limits.h>
10179#else
10180# include <assert.h>
10181#endif
10182
10183#undef shl_load
10184
10185/* Override any GCC internal prototype to avoid an error.
10186   Use char because int might match the return type of a GCC
10187   builtin and then its argument prototype would still apply.  */
10188#ifdef __cplusplus
10189extern "C"
10190#endif
10191char shl_load ();
10192/* The GNU C library defines this for functions which it implements
10193    to always fail with ENOSYS.  Some functions are actually named
10194    something starting with __ and the normal name is an alias.  */
10195#if defined __stub_shl_load || defined __stub___shl_load
10196choke me
10197#endif
10198
10199int
10200main ()
10201{
10202return shl_load ();
10203  ;
10204  return 0;
10205}
10206_ACEOF
10207rm -f conftest.$ac_objext conftest$ac_exeext
10208if { (ac_try="$ac_link"
10209case "(($ac_try" in
10210  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10211  *) ac_try_echo=$ac_try;;
10212esac
10213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10214  (eval "$ac_link") 2>conftest.er1
10215  ac_status=$?
10216  grep -v '^ *+' conftest.er1 >conftest.err
10217  rm -f conftest.er1
10218  cat conftest.err >&5
10219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220  (exit $ac_status); } &&
10221	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10222  { (case "(($ac_try" in
10223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10224  *) ac_try_echo=$ac_try;;
10225esac
10226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10227  (eval "$ac_try") 2>&5
10228  ac_status=$?
10229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230  (exit $ac_status); }; } &&
10231	 { ac_try='test -s conftest$ac_exeext'
10232  { (case "(($ac_try" in
10233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10234  *) ac_try_echo=$ac_try;;
10235esac
10236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10237  (eval "$ac_try") 2>&5
10238  ac_status=$?
10239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240  (exit $ac_status); }; }; then
10241  ac_cv_func_shl_load=yes
10242else
10243  echo "$as_me: failed program was:" >&5
10244sed 's/^/| /' conftest.$ac_ext >&5
10245
10246	ac_cv_func_shl_load=no
10247fi
10248
10249rm -f core conftest.err conftest.$ac_objext \
10250      conftest$ac_exeext conftest.$ac_ext
10251fi
10252{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10253echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10254if test $ac_cv_func_shl_load = yes; then
10255
10256cat >>confdefs.h <<\_ACEOF
10257#define HAVE_SHL_LOAD 1
10258_ACEOF
10259
10260else
10261  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10262echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10263if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10264  echo $ECHO_N "(cached) $ECHO_C" >&6
10265else
10266  ac_check_lib_save_LIBS=$LIBS
10267LIBS="-ldld  $LIBS"
10268cat >conftest.$ac_ext <<_ACEOF
10269/* confdefs.h.  */
10270_ACEOF
10271cat confdefs.h >>conftest.$ac_ext
10272cat >>conftest.$ac_ext <<_ACEOF
10273/* end confdefs.h.  */
10274
10275/* Override any GCC internal prototype to avoid an error.
10276   Use char because int might match the return type of a GCC
10277   builtin and then its argument prototype would still apply.  */
10278#ifdef __cplusplus
10279extern "C"
10280#endif
10281char shl_load ();
10282int
10283main ()
10284{
10285return shl_load ();
10286  ;
10287  return 0;
10288}
10289_ACEOF
10290rm -f conftest.$ac_objext conftest$ac_exeext
10291if { (ac_try="$ac_link"
10292case "(($ac_try" in
10293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10294  *) ac_try_echo=$ac_try;;
10295esac
10296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10297  (eval "$ac_link") 2>conftest.er1
10298  ac_status=$?
10299  grep -v '^ *+' conftest.er1 >conftest.err
10300  rm -f conftest.er1
10301  cat conftest.err >&5
10302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303  (exit $ac_status); } &&
10304	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10305  { (case "(($ac_try" in
10306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10307  *) ac_try_echo=$ac_try;;
10308esac
10309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10310  (eval "$ac_try") 2>&5
10311  ac_status=$?
10312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313  (exit $ac_status); }; } &&
10314	 { ac_try='test -s conftest$ac_exeext'
10315  { (case "(($ac_try" in
10316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10317  *) ac_try_echo=$ac_try;;
10318esac
10319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10320  (eval "$ac_try") 2>&5
10321  ac_status=$?
10322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323  (exit $ac_status); }; }; then
10324  ac_cv_lib_dld_shl_load=yes
10325else
10326  echo "$as_me: failed program was:" >&5
10327sed 's/^/| /' conftest.$ac_ext >&5
10328
10329	ac_cv_lib_dld_shl_load=no
10330fi
10331
10332rm -f core conftest.err conftest.$ac_objext \
10333      conftest$ac_exeext conftest.$ac_ext
10334LIBS=$ac_check_lib_save_LIBS
10335fi
10336{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10337echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10338if test $ac_cv_lib_dld_shl_load = yes; then
10339
10340cat >>confdefs.h <<\_ACEOF
10341#define HAVE_SHL_LOAD 1
10342_ACEOF
10343
10344	LIBADD_DL="$LIBADD_DL -ldld"
10345else
10346  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10347echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10348if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10349  echo $ECHO_N "(cached) $ECHO_C" >&6
10350else
10351  ac_check_lib_save_LIBS=$LIBS
10352LIBS="-ldl  $LIBS"
10353cat >conftest.$ac_ext <<_ACEOF
10354/* confdefs.h.  */
10355_ACEOF
10356cat confdefs.h >>conftest.$ac_ext
10357cat >>conftest.$ac_ext <<_ACEOF
10358/* end confdefs.h.  */
10359
10360/* Override any GCC internal prototype to avoid an error.
10361   Use char because int might match the return type of a GCC
10362   builtin and then its argument prototype would still apply.  */
10363#ifdef __cplusplus
10364extern "C"
10365#endif
10366char dlopen ();
10367int
10368main ()
10369{
10370return dlopen ();
10371  ;
10372  return 0;
10373}
10374_ACEOF
10375rm -f conftest.$ac_objext conftest$ac_exeext
10376if { (ac_try="$ac_link"
10377case "(($ac_try" in
10378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10379  *) ac_try_echo=$ac_try;;
10380esac
10381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10382  (eval "$ac_link") 2>conftest.er1
10383  ac_status=$?
10384  grep -v '^ *+' conftest.er1 >conftest.err
10385  rm -f conftest.er1
10386  cat conftest.err >&5
10387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388  (exit $ac_status); } &&
10389	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10390  { (case "(($ac_try" in
10391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10392  *) ac_try_echo=$ac_try;;
10393esac
10394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10395  (eval "$ac_try") 2>&5
10396  ac_status=$?
10397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398  (exit $ac_status); }; } &&
10399	 { ac_try='test -s conftest$ac_exeext'
10400  { (case "(($ac_try" in
10401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10402  *) ac_try_echo=$ac_try;;
10403esac
10404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10405  (eval "$ac_try") 2>&5
10406  ac_status=$?
10407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408  (exit $ac_status); }; }; then
10409  ac_cv_lib_dl_dlopen=yes
10410else
10411  echo "$as_me: failed program was:" >&5
10412sed 's/^/| /' conftest.$ac_ext >&5
10413
10414	ac_cv_lib_dl_dlopen=no
10415fi
10416
10417rm -f core conftest.err conftest.$ac_objext \
10418      conftest$ac_exeext conftest.$ac_ext
10419LIBS=$ac_check_lib_save_LIBS
10420fi
10421{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10422echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10423if test $ac_cv_lib_dl_dlopen = yes; then
10424
10425cat >>confdefs.h <<\_ACEOF
10426#define HAVE_LIBDL 1
10427_ACEOF
10428
10429	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10430else
10431  cat >conftest.$ac_ext <<_ACEOF
10432/* confdefs.h.  */
10433_ACEOF
10434cat confdefs.h >>conftest.$ac_ext
10435cat >>conftest.$ac_ext <<_ACEOF
10436/* end confdefs.h.  */
10437#if HAVE_DLFCN_H
10438#  include <dlfcn.h>
10439#endif
10440
10441int
10442main ()
10443{
10444dlopen(0, 0);
10445  ;
10446  return 0;
10447}
10448_ACEOF
10449rm -f conftest.$ac_objext conftest$ac_exeext
10450if { (ac_try="$ac_link"
10451case "(($ac_try" in
10452  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10453  *) ac_try_echo=$ac_try;;
10454esac
10455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10456  (eval "$ac_link") 2>conftest.er1
10457  ac_status=$?
10458  grep -v '^ *+' conftest.er1 >conftest.err
10459  rm -f conftest.er1
10460  cat conftest.err >&5
10461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462  (exit $ac_status); } &&
10463	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10464  { (case "(($ac_try" in
10465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10466  *) ac_try_echo=$ac_try;;
10467esac
10468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10469  (eval "$ac_try") 2>&5
10470  ac_status=$?
10471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472  (exit $ac_status); }; } &&
10473	 { ac_try='test -s conftest$ac_exeext'
10474  { (case "(($ac_try" in
10475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10476  *) ac_try_echo=$ac_try;;
10477esac
10478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10479  (eval "$ac_try") 2>&5
10480  ac_status=$?
10481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482  (exit $ac_status); }; }; then
10483
10484cat >>confdefs.h <<\_ACEOF
10485#define HAVE_LIBDL 1
10486_ACEOF
10487 libltdl_cv_func_dlopen="yes"
10488else
10489  echo "$as_me: failed program was:" >&5
10490sed 's/^/| /' conftest.$ac_ext >&5
10491
10492	{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10493echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10494if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10495  echo $ECHO_N "(cached) $ECHO_C" >&6
10496else
10497  ac_check_lib_save_LIBS=$LIBS
10498LIBS="-lsvld  $LIBS"
10499cat >conftest.$ac_ext <<_ACEOF
10500/* confdefs.h.  */
10501_ACEOF
10502cat confdefs.h >>conftest.$ac_ext
10503cat >>conftest.$ac_ext <<_ACEOF
10504/* end confdefs.h.  */
10505
10506/* Override any GCC internal prototype to avoid an error.
10507   Use char because int might match the return type of a GCC
10508   builtin and then its argument prototype would still apply.  */
10509#ifdef __cplusplus
10510extern "C"
10511#endif
10512char dlopen ();
10513int
10514main ()
10515{
10516return dlopen ();
10517  ;
10518  return 0;
10519}
10520_ACEOF
10521rm -f conftest.$ac_objext conftest$ac_exeext
10522if { (ac_try="$ac_link"
10523case "(($ac_try" in
10524  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10525  *) ac_try_echo=$ac_try;;
10526esac
10527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10528  (eval "$ac_link") 2>conftest.er1
10529  ac_status=$?
10530  grep -v '^ *+' conftest.er1 >conftest.err
10531  rm -f conftest.er1
10532  cat conftest.err >&5
10533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534  (exit $ac_status); } &&
10535	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10536  { (case "(($ac_try" in
10537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10538  *) ac_try_echo=$ac_try;;
10539esac
10540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10541  (eval "$ac_try") 2>&5
10542  ac_status=$?
10543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544  (exit $ac_status); }; } &&
10545	 { ac_try='test -s conftest$ac_exeext'
10546  { (case "(($ac_try" in
10547  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10548  *) ac_try_echo=$ac_try;;
10549esac
10550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10551  (eval "$ac_try") 2>&5
10552  ac_status=$?
10553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554  (exit $ac_status); }; }; then
10555  ac_cv_lib_svld_dlopen=yes
10556else
10557  echo "$as_me: failed program was:" >&5
10558sed 's/^/| /' conftest.$ac_ext >&5
10559
10560	ac_cv_lib_svld_dlopen=no
10561fi
10562
10563rm -f core conftest.err conftest.$ac_objext \
10564      conftest$ac_exeext conftest.$ac_ext
10565LIBS=$ac_check_lib_save_LIBS
10566fi
10567{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10568echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10569if test $ac_cv_lib_svld_dlopen = yes; then
10570
10571cat >>confdefs.h <<\_ACEOF
10572#define HAVE_LIBDL 1
10573_ACEOF
10574
10575	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10576else
10577  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10578echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10579if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10580  echo $ECHO_N "(cached) $ECHO_C" >&6
10581else
10582  ac_check_lib_save_LIBS=$LIBS
10583LIBS="-ldld  $LIBS"
10584cat >conftest.$ac_ext <<_ACEOF
10585/* confdefs.h.  */
10586_ACEOF
10587cat confdefs.h >>conftest.$ac_ext
10588cat >>conftest.$ac_ext <<_ACEOF
10589/* end confdefs.h.  */
10590
10591/* Override any GCC internal prototype to avoid an error.
10592   Use char because int might match the return type of a GCC
10593   builtin and then its argument prototype would still apply.  */
10594#ifdef __cplusplus
10595extern "C"
10596#endif
10597char dld_link ();
10598int
10599main ()
10600{
10601return dld_link ();
10602  ;
10603  return 0;
10604}
10605_ACEOF
10606rm -f conftest.$ac_objext conftest$ac_exeext
10607if { (ac_try="$ac_link"
10608case "(($ac_try" in
10609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10610  *) ac_try_echo=$ac_try;;
10611esac
10612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10613  (eval "$ac_link") 2>conftest.er1
10614  ac_status=$?
10615  grep -v '^ *+' conftest.er1 >conftest.err
10616  rm -f conftest.er1
10617  cat conftest.err >&5
10618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619  (exit $ac_status); } &&
10620	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10621  { (case "(($ac_try" in
10622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10623  *) ac_try_echo=$ac_try;;
10624esac
10625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10626  (eval "$ac_try") 2>&5
10627  ac_status=$?
10628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629  (exit $ac_status); }; } &&
10630	 { ac_try='test -s conftest$ac_exeext'
10631  { (case "(($ac_try" in
10632  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10633  *) ac_try_echo=$ac_try;;
10634esac
10635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10636  (eval "$ac_try") 2>&5
10637  ac_status=$?
10638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639  (exit $ac_status); }; }; then
10640  ac_cv_lib_dld_dld_link=yes
10641else
10642  echo "$as_me: failed program was:" >&5
10643sed 's/^/| /' conftest.$ac_ext >&5
10644
10645	ac_cv_lib_dld_dld_link=no
10646fi
10647
10648rm -f core conftest.err conftest.$ac_objext \
10649      conftest$ac_exeext conftest.$ac_ext
10650LIBS=$ac_check_lib_save_LIBS
10651fi
10652{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10653echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10654if test $ac_cv_lib_dld_dld_link = yes; then
10655
10656cat >>confdefs.h <<\_ACEOF
10657#define HAVE_DLD 1
10658_ACEOF
10659
10660	 	LIBADD_DL="$LIBADD_DL -ldld"
10661else
10662  { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10663echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10664if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10665  echo $ECHO_N "(cached) $ECHO_C" >&6
10666else
10667  cat >conftest.$ac_ext <<_ACEOF
10668/* confdefs.h.  */
10669_ACEOF
10670cat confdefs.h >>conftest.$ac_ext
10671cat >>conftest.$ac_ext <<_ACEOF
10672/* end confdefs.h.  */
10673/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10674   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10675#define _dyld_func_lookup innocuous__dyld_func_lookup
10676
10677/* System header to define __stub macros and hopefully few prototypes,
10678    which can conflict with char _dyld_func_lookup (); below.
10679    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10680    <limits.h> exists even on freestanding compilers.  */
10681
10682#ifdef __STDC__
10683# include <limits.h>
10684#else
10685# include <assert.h>
10686#endif
10687
10688#undef _dyld_func_lookup
10689
10690/* Override any GCC internal prototype to avoid an error.
10691   Use char because int might match the return type of a GCC
10692   builtin and then its argument prototype would still apply.  */
10693#ifdef __cplusplus
10694extern "C"
10695#endif
10696char _dyld_func_lookup ();
10697/* The GNU C library defines this for functions which it implements
10698    to always fail with ENOSYS.  Some functions are actually named
10699    something starting with __ and the normal name is an alias.  */
10700#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10701choke me
10702#endif
10703
10704int
10705main ()
10706{
10707return _dyld_func_lookup ();
10708  ;
10709  return 0;
10710}
10711_ACEOF
10712rm -f conftest.$ac_objext conftest$ac_exeext
10713if { (ac_try="$ac_link"
10714case "(($ac_try" in
10715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10716  *) ac_try_echo=$ac_try;;
10717esac
10718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10719  (eval "$ac_link") 2>conftest.er1
10720  ac_status=$?
10721  grep -v '^ *+' conftest.er1 >conftest.err
10722  rm -f conftest.er1
10723  cat conftest.err >&5
10724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725  (exit $ac_status); } &&
10726	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10727  { (case "(($ac_try" in
10728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10729  *) ac_try_echo=$ac_try;;
10730esac
10731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10732  (eval "$ac_try") 2>&5
10733  ac_status=$?
10734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735  (exit $ac_status); }; } &&
10736	 { ac_try='test -s conftest$ac_exeext'
10737  { (case "(($ac_try" in
10738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10739  *) ac_try_echo=$ac_try;;
10740esac
10741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10742  (eval "$ac_try") 2>&5
10743  ac_status=$?
10744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745  (exit $ac_status); }; }; then
10746  ac_cv_func__dyld_func_lookup=yes
10747else
10748  echo "$as_me: failed program was:" >&5
10749sed 's/^/| /' conftest.$ac_ext >&5
10750
10751	ac_cv_func__dyld_func_lookup=no
10752fi
10753
10754rm -f core conftest.err conftest.$ac_objext \
10755      conftest$ac_exeext conftest.$ac_ext
10756fi
10757{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10758echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10759if test $ac_cv_func__dyld_func_lookup = yes; then
10760
10761cat >>confdefs.h <<\_ACEOF
10762#define HAVE_DYLD 1
10763_ACEOF
10764
10765fi
10766
10767
10768fi
10769
10770
10771fi
10772
10773
10774fi
10775
10776rm -f core conftest.err conftest.$ac_objext \
10777      conftest$ac_exeext conftest.$ac_ext
10778
10779fi
10780
10781
10782fi
10783
10784
10785fi
10786
10787
10788if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10789then
10790  lt_save_LIBS="$LIBS"
10791  LIBS="$LIBS $LIBADD_DL"
10792
10793for ac_func in dlerror
10794do
10795as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10796{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10797echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10798if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10799  echo $ECHO_N "(cached) $ECHO_C" >&6
10800else
10801  cat >conftest.$ac_ext <<_ACEOF
10802/* confdefs.h.  */
10803_ACEOF
10804cat confdefs.h >>conftest.$ac_ext
10805cat >>conftest.$ac_ext <<_ACEOF
10806/* end confdefs.h.  */
10807/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10808   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10809#define $ac_func innocuous_$ac_func
10810
10811/* System header to define __stub macros and hopefully few prototypes,
10812    which can conflict with char $ac_func (); below.
10813    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10814    <limits.h> exists even on freestanding compilers.  */
10815
10816#ifdef __STDC__
10817# include <limits.h>
10818#else
10819# include <assert.h>
10820#endif
10821
10822#undef $ac_func
10823
10824/* Override any GCC internal prototype to avoid an error.
10825   Use char because int might match the return type of a GCC
10826   builtin and then its argument prototype would still apply.  */
10827#ifdef __cplusplus
10828extern "C"
10829#endif
10830char $ac_func ();
10831/* The GNU C library defines this for functions which it implements
10832    to always fail with ENOSYS.  Some functions are actually named
10833    something starting with __ and the normal name is an alias.  */
10834#if defined __stub_$ac_func || defined __stub___$ac_func
10835choke me
10836#endif
10837
10838int
10839main ()
10840{
10841return $ac_func ();
10842  ;
10843  return 0;
10844}
10845_ACEOF
10846rm -f conftest.$ac_objext conftest$ac_exeext
10847if { (ac_try="$ac_link"
10848case "(($ac_try" in
10849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10850  *) ac_try_echo=$ac_try;;
10851esac
10852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10853  (eval "$ac_link") 2>conftest.er1
10854  ac_status=$?
10855  grep -v '^ *+' conftest.er1 >conftest.err
10856  rm -f conftest.er1
10857  cat conftest.err >&5
10858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859  (exit $ac_status); } &&
10860	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10861  { (case "(($ac_try" in
10862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10863  *) ac_try_echo=$ac_try;;
10864esac
10865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10866  (eval "$ac_try") 2>&5
10867  ac_status=$?
10868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869  (exit $ac_status); }; } &&
10870	 { ac_try='test -s conftest$ac_exeext'
10871  { (case "(($ac_try" in
10872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10873  *) ac_try_echo=$ac_try;;
10874esac
10875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10876  (eval "$ac_try") 2>&5
10877  ac_status=$?
10878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879  (exit $ac_status); }; }; then
10880  eval "$as_ac_var=yes"
10881else
10882  echo "$as_me: failed program was:" >&5
10883sed 's/^/| /' conftest.$ac_ext >&5
10884
10885	eval "$as_ac_var=no"
10886fi
10887
10888rm -f core conftest.err conftest.$ac_objext \
10889      conftest$ac_exeext conftest.$ac_ext
10890fi
10891ac_res=`eval echo '${'$as_ac_var'}'`
10892	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10893echo "${ECHO_T}$ac_res" >&6; }
10894if test `eval echo '${'$as_ac_var'}'` = yes; then
10895  cat >>confdefs.h <<_ACEOF
10896#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10897_ACEOF
10898
10899fi
10900done
10901
10902  LIBS="$lt_save_LIBS"
10903fi
10904ac_ext=c
10905ac_cpp='$CPP $CPPFLAGS'
10906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10908ac_compiler_gnu=$ac_cv_c_compiler_gnu
10909
10910
10911
10912{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10913echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10914if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10915  echo $ECHO_N "(cached) $ECHO_C" >&6
10916else
10917  ac_cv_sys_symbol_underscore=no
10918  cat > conftest.$ac_ext <<EOF
10919void nm_test_func(){}
10920int main(){nm_test_func;return 0;}
10921EOF
10922  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10923  (eval $ac_compile) 2>&5
10924  ac_status=$?
10925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926  (exit $ac_status); }; then
10927    # Now try to grab the symbols.
10928    ac_nlist=conftest.nm
10929    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10930  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10931  ac_status=$?
10932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933  (exit $ac_status); } && test -s "$ac_nlist"; then
10934      # See whether the symbols have a leading underscore.
10935      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10936        ac_cv_sys_symbol_underscore=yes
10937      else
10938        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10939	  :
10940        else
10941	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10942        fi
10943      fi
10944    else
10945      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10946    fi
10947  else
10948    echo "configure: failed program was:" >&5
10949    cat conftest.c >&5
10950  fi
10951  rm -rf conftest*
10952
10953fi
10954{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10955echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10956
10957
10958if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10959  if test x"$libltdl_cv_func_dlopen" = xyes ||
10960     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10961	{ echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10962echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10963if test "${libltdl_cv_need_uscore+set}" = set; then
10964  echo $ECHO_N "(cached) $ECHO_C" >&6
10965else
10966  libltdl_cv_need_uscore=unknown
10967          save_LIBS="$LIBS"
10968          LIBS="$LIBS $LIBADD_DL"
10969	  if test "$cross_compiling" = yes; then :
10970  libltdl_cv_need_uscore=cross
10971else
10972  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10973  lt_status=$lt_dlunknown
10974  cat > conftest.$ac_ext <<EOF
10975#line 10975 "configure"
10976#include "confdefs.h"
10977
10978#if HAVE_DLFCN_H
10979#include <dlfcn.h>
10980#endif
10981
10982#include <stdio.h>
10983
10984#ifdef RTLD_GLOBAL
10985#  define LT_DLGLOBAL		RTLD_GLOBAL
10986#else
10987#  ifdef DL_GLOBAL
10988#    define LT_DLGLOBAL		DL_GLOBAL
10989#  else
10990#    define LT_DLGLOBAL		0
10991#  endif
10992#endif
10993
10994/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10995   find out it does not work in some platform. */
10996#ifndef LT_DLLAZY_OR_NOW
10997#  ifdef RTLD_LAZY
10998#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10999#  else
11000#    ifdef DL_LAZY
11001#      define LT_DLLAZY_OR_NOW		DL_LAZY
11002#    else
11003#      ifdef RTLD_NOW
11004#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11005#      else
11006#        ifdef DL_NOW
11007#          define LT_DLLAZY_OR_NOW	DL_NOW
11008#        else
11009#          define LT_DLLAZY_OR_NOW	0
11010#        endif
11011#      endif
11012#    endif
11013#  endif
11014#endif
11015
11016#ifdef __cplusplus
11017extern "C" void exit (int);
11018#endif
11019
11020void fnord() { int i=42;}
11021int main ()
11022{
11023  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11024  int status = $lt_dlunknown;
11025
11026  if (self)
11027    {
11028      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11029      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11030      /* dlclose (self); */
11031    }
11032  else
11033    puts (dlerror ());
11034
11035    exit (status);
11036}
11037EOF
11038  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11039  (eval $ac_link) 2>&5
11040  ac_status=$?
11041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11043    (./conftest; exit; ) >&5 2>/dev/null
11044    lt_status=$?
11045    case x$lt_status in
11046      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11047      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11048      x$lt_dlunknown|x*)  ;;
11049    esac
11050  else :
11051    # compilation failed
11052
11053  fi
11054fi
11055rm -fr conftest*
11056
11057	  LIBS="$save_LIBS"
11058
11059fi
11060{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11061echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11062  fi
11063fi
11064
11065if test x"$libltdl_cv_need_uscore" = xyes; then
11066
11067cat >>confdefs.h <<\_ACEOF
11068#define NEED_USCORE 1
11069_ACEOF
11070
11071fi
11072
11073
11074{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11075echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11076if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11077  echo $ECHO_N "(cached) $ECHO_C" >&6
11078else
11079  # PORTME does your system automatically load deplibs for dlopen?
11080  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11081  # For now, we just catch OSes we know something about -- in the
11082  # future, we'll try test this programmatically.
11083  libltdl_cv_sys_dlopen_deplibs=unknown
11084  case "$host_os" in
11085  aix3*|aix4.1.*|aix4.2.*)
11086    # Unknown whether this is true for these versions of AIX, but
11087    # we want this `case' here to explicitly catch those versions.
11088    libltdl_cv_sys_dlopen_deplibs=unknown
11089    ;;
11090  aix[45]*)
11091    libltdl_cv_sys_dlopen_deplibs=yes
11092    ;;
11093  darwin*)
11094    # Assuming the user has installed a libdl from somewhere, this is true
11095    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11096    libltdl_cv_sys_dlopen_deplibs=yes
11097    ;;
11098  gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11099    # GNU and its variants, using gnu ld.so (Glibc)
11100    libltdl_cv_sys_dlopen_deplibs=yes
11101    ;;
11102  hpux10*|hpux11*)
11103    libltdl_cv_sys_dlopen_deplibs=yes
11104    ;;
11105  interix*)
11106    libltdl_cv_sys_dlopen_deplibs=yes
11107    ;;
11108  irix[12345]*|irix6.[01]*)
11109    # Catch all versions of IRIX before 6.2, and indicate that we don't
11110    # know how it worked for any of those versions.
11111    libltdl_cv_sys_dlopen_deplibs=unknown
11112    ;;
11113  irix*)
11114    # The case above catches anything before 6.2, and it's known that
11115    # at 6.2 and later dlopen does load deplibs.
11116    libltdl_cv_sys_dlopen_deplibs=yes
11117    ;;
11118  netbsd*)
11119    libltdl_cv_sys_dlopen_deplibs=yes
11120    ;;
11121  openbsd*)
11122    libltdl_cv_sys_dlopen_deplibs=yes
11123    ;;
11124  osf[1234]*)
11125    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11126    # it did *not* use an RPATH in a shared library to find objects the
11127    # library depends on, so we explictly say `no'.
11128    libltdl_cv_sys_dlopen_deplibs=no
11129    ;;
11130  osf5.0|osf5.0a|osf5.1)
11131    # dlopen *does* load deplibs and with the right loader patch applied
11132    # it even uses RPATH in a shared library to search for shared objects
11133    # that the library depends on, but there's no easy way to know if that
11134    # patch is installed.  Since this is the case, all we can really
11135    # say is unknown -- it depends on the patch being installed.  If
11136    # it is, this changes to `yes'.  Without it, it would be `no'.
11137    libltdl_cv_sys_dlopen_deplibs=unknown
11138    ;;
11139  osf*)
11140    # the two cases above should catch all versions of osf <= 5.1.  Read
11141    # the comments above for what we know about them.
11142    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11143    # is used to find them so we can finally say `yes'.
11144    libltdl_cv_sys_dlopen_deplibs=yes
11145    ;;
11146  solaris*)
11147    libltdl_cv_sys_dlopen_deplibs=yes
11148    ;;
11149  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11150    libltdl_cv_sys_dlopen_deplibs=yes
11151    ;;
11152  esac
11153
11154fi
11155{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11156echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11157if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11158
11159cat >>confdefs.h <<\_ACEOF
11160#define LTDL_DLOPEN_DEPLIBS 1
11161_ACEOF
11162
11163fi
11164
11165
11166for ac_header in argz.h
11167do
11168as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11169if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11170  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11171echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11172if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11173  echo $ECHO_N "(cached) $ECHO_C" >&6
11174fi
11175ac_res=`eval echo '${'$as_ac_Header'}'`
11176	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11177echo "${ECHO_T}$ac_res" >&6; }
11178else
11179  # Is the header compilable?
11180{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11181echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11182cat >conftest.$ac_ext <<_ACEOF
11183/* confdefs.h.  */
11184_ACEOF
11185cat confdefs.h >>conftest.$ac_ext
11186cat >>conftest.$ac_ext <<_ACEOF
11187/* end confdefs.h.  */
11188$ac_includes_default
11189#include <$ac_header>
11190_ACEOF
11191rm -f conftest.$ac_objext
11192if { (ac_try="$ac_compile"
11193case "(($ac_try" in
11194  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11195  *) ac_try_echo=$ac_try;;
11196esac
11197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11198  (eval "$ac_compile") 2>conftest.er1
11199  ac_status=$?
11200  grep -v '^ *+' conftest.er1 >conftest.err
11201  rm -f conftest.er1
11202  cat conftest.err >&5
11203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204  (exit $ac_status); } &&
11205	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11206  { (case "(($ac_try" in
11207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11208  *) ac_try_echo=$ac_try;;
11209esac
11210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11211  (eval "$ac_try") 2>&5
11212  ac_status=$?
11213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214  (exit $ac_status); }; } &&
11215	 { ac_try='test -s conftest.$ac_objext'
11216  { (case "(($ac_try" in
11217  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11218  *) ac_try_echo=$ac_try;;
11219esac
11220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11221  (eval "$ac_try") 2>&5
11222  ac_status=$?
11223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224  (exit $ac_status); }; }; then
11225  ac_header_compiler=yes
11226else
11227  echo "$as_me: failed program was:" >&5
11228sed 's/^/| /' conftest.$ac_ext >&5
11229
11230	ac_header_compiler=no
11231fi
11232
11233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11234{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11235echo "${ECHO_T}$ac_header_compiler" >&6; }
11236
11237# Is the header present?
11238{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11239echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11240cat >conftest.$ac_ext <<_ACEOF
11241/* confdefs.h.  */
11242_ACEOF
11243cat confdefs.h >>conftest.$ac_ext
11244cat >>conftest.$ac_ext <<_ACEOF
11245/* end confdefs.h.  */
11246#include <$ac_header>
11247_ACEOF
11248if { (ac_try="$ac_cpp conftest.$ac_ext"
11249case "(($ac_try" in
11250  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11251  *) ac_try_echo=$ac_try;;
11252esac
11253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11254  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11255  ac_status=$?
11256  grep -v '^ *+' conftest.er1 >conftest.err
11257  rm -f conftest.er1
11258  cat conftest.err >&5
11259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260  (exit $ac_status); } >/dev/null; then
11261  if test -s conftest.err; then
11262    ac_cpp_err=$ac_c_preproc_warn_flag
11263    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11264  else
11265    ac_cpp_err=
11266  fi
11267else
11268  ac_cpp_err=yes
11269fi
11270if test -z "$ac_cpp_err"; then
11271  ac_header_preproc=yes
11272else
11273  echo "$as_me: failed program was:" >&5
11274sed 's/^/| /' conftest.$ac_ext >&5
11275
11276  ac_header_preproc=no
11277fi
11278
11279rm -f conftest.err conftest.$ac_ext
11280{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11281echo "${ECHO_T}$ac_header_preproc" >&6; }
11282
11283# So?  What about this header?
11284case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11285  yes:no: )
11286    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11287echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11288    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11289echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11290    ac_header_preproc=yes
11291    ;;
11292  no:yes:* )
11293    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11294echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11295    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11296echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11297    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11298echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11299    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11300echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11301    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11302echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11303    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11304echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11305    ( cat <<\_ASBOX
11306## ----------------------------------- ##
11307## Report this to llvmbugs@cs.uiuc.edu ##
11308## ----------------------------------- ##
11309_ASBOX
11310     ) | sed "s/^/$as_me: WARNING:     /" >&2
11311    ;;
11312esac
11313{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11314echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11315if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11316  echo $ECHO_N "(cached) $ECHO_C" >&6
11317else
11318  eval "$as_ac_Header=\$ac_header_preproc"
11319fi
11320ac_res=`eval echo '${'$as_ac_Header'}'`
11321	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11322echo "${ECHO_T}$ac_res" >&6; }
11323
11324fi
11325if test `eval echo '${'$as_ac_Header'}'` = yes; then
11326  cat >>confdefs.h <<_ACEOF
11327#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11328_ACEOF
11329
11330fi
11331
11332done
11333
11334
11335{ echo "$as_me:$LINENO: checking for error_t" >&5
11336echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11337if test "${ac_cv_type_error_t+set}" = set; then
11338  echo $ECHO_N "(cached) $ECHO_C" >&6
11339else
11340  cat >conftest.$ac_ext <<_ACEOF
11341/* confdefs.h.  */
11342_ACEOF
11343cat confdefs.h >>conftest.$ac_ext
11344cat >>conftest.$ac_ext <<_ACEOF
11345/* end confdefs.h.  */
11346#if HAVE_ARGZ_H
11347#  include <argz.h>
11348#endif
11349
11350typedef error_t ac__type_new_;
11351int
11352main ()
11353{
11354if ((ac__type_new_ *) 0)
11355  return 0;
11356if (sizeof (ac__type_new_))
11357  return 0;
11358  ;
11359  return 0;
11360}
11361_ACEOF
11362rm -f conftest.$ac_objext
11363if { (ac_try="$ac_compile"
11364case "(($ac_try" in
11365  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11366  *) ac_try_echo=$ac_try;;
11367esac
11368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11369  (eval "$ac_compile") 2>conftest.er1
11370  ac_status=$?
11371  grep -v '^ *+' conftest.er1 >conftest.err
11372  rm -f conftest.er1
11373  cat conftest.err >&5
11374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375  (exit $ac_status); } &&
11376	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11377  { (case "(($ac_try" in
11378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379  *) ac_try_echo=$ac_try;;
11380esac
11381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11382  (eval "$ac_try") 2>&5
11383  ac_status=$?
11384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385  (exit $ac_status); }; } &&
11386	 { ac_try='test -s conftest.$ac_objext'
11387  { (case "(($ac_try" in
11388  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11389  *) ac_try_echo=$ac_try;;
11390esac
11391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11392  (eval "$ac_try") 2>&5
11393  ac_status=$?
11394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395  (exit $ac_status); }; }; then
11396  ac_cv_type_error_t=yes
11397else
11398  echo "$as_me: failed program was:" >&5
11399sed 's/^/| /' conftest.$ac_ext >&5
11400
11401	ac_cv_type_error_t=no
11402fi
11403
11404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11405fi
11406{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11407echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11408if test $ac_cv_type_error_t = yes; then
11409
11410cat >>confdefs.h <<_ACEOF
11411#define HAVE_ERROR_T 1
11412_ACEOF
11413
11414
11415else
11416
11417cat >>confdefs.h <<\_ACEOF
11418#define error_t int
11419_ACEOF
11420
11421fi
11422
11423
11424
11425
11426
11427
11428
11429for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11430do
11431as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11432{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11433echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11434if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11435  echo $ECHO_N "(cached) $ECHO_C" >&6
11436else
11437  cat >conftest.$ac_ext <<_ACEOF
11438/* confdefs.h.  */
11439_ACEOF
11440cat confdefs.h >>conftest.$ac_ext
11441cat >>conftest.$ac_ext <<_ACEOF
11442/* end confdefs.h.  */
11443/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11444   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11445#define $ac_func innocuous_$ac_func
11446
11447/* System header to define __stub macros and hopefully few prototypes,
11448    which can conflict with char $ac_func (); below.
11449    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11450    <limits.h> exists even on freestanding compilers.  */
11451
11452#ifdef __STDC__
11453# include <limits.h>
11454#else
11455# include <assert.h>
11456#endif
11457
11458#undef $ac_func
11459
11460/* Override any GCC internal prototype to avoid an error.
11461   Use char because int might match the return type of a GCC
11462   builtin and then its argument prototype would still apply.  */
11463#ifdef __cplusplus
11464extern "C"
11465#endif
11466char $ac_func ();
11467/* The GNU C library defines this for functions which it implements
11468    to always fail with ENOSYS.  Some functions are actually named
11469    something starting with __ and the normal name is an alias.  */
11470#if defined __stub_$ac_func || defined __stub___$ac_func
11471choke me
11472#endif
11473
11474int
11475main ()
11476{
11477return $ac_func ();
11478  ;
11479  return 0;
11480}
11481_ACEOF
11482rm -f conftest.$ac_objext conftest$ac_exeext
11483if { (ac_try="$ac_link"
11484case "(($ac_try" in
11485  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11486  *) ac_try_echo=$ac_try;;
11487esac
11488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11489  (eval "$ac_link") 2>conftest.er1
11490  ac_status=$?
11491  grep -v '^ *+' conftest.er1 >conftest.err
11492  rm -f conftest.er1
11493  cat conftest.err >&5
11494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495  (exit $ac_status); } &&
11496	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11497  { (case "(($ac_try" in
11498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11499  *) ac_try_echo=$ac_try;;
11500esac
11501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11502  (eval "$ac_try") 2>&5
11503  ac_status=$?
11504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505  (exit $ac_status); }; } &&
11506	 { ac_try='test -s conftest$ac_exeext'
11507  { (case "(($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_try") 2>&5
11513  ac_status=$?
11514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515  (exit $ac_status); }; }; then
11516  eval "$as_ac_var=yes"
11517else
11518  echo "$as_me: failed program was:" >&5
11519sed 's/^/| /' conftest.$ac_ext >&5
11520
11521	eval "$as_ac_var=no"
11522fi
11523
11524rm -f core conftest.err conftest.$ac_objext \
11525      conftest$ac_exeext conftest.$ac_ext
11526fi
11527ac_res=`eval echo '${'$as_ac_var'}'`
11528	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11529echo "${ECHO_T}$ac_res" >&6; }
11530if test `eval echo '${'$as_ac_var'}'` = yes; then
11531  cat >>confdefs.h <<_ACEOF
11532#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11533_ACEOF
11534
11535fi
11536done
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11566		  stdio.h unistd.h
11567do
11568as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11569if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11570  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11571echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11572if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11573  echo $ECHO_N "(cached) $ECHO_C" >&6
11574fi
11575ac_res=`eval echo '${'$as_ac_Header'}'`
11576	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11577echo "${ECHO_T}$ac_res" >&6; }
11578else
11579  # Is the header compilable?
11580{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11581echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11582cat >conftest.$ac_ext <<_ACEOF
11583/* confdefs.h.  */
11584_ACEOF
11585cat confdefs.h >>conftest.$ac_ext
11586cat >>conftest.$ac_ext <<_ACEOF
11587/* end confdefs.h.  */
11588$ac_includes_default
11589#include <$ac_header>
11590_ACEOF
11591rm -f conftest.$ac_objext
11592if { (ac_try="$ac_compile"
11593case "(($ac_try" in
11594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11595  *) ac_try_echo=$ac_try;;
11596esac
11597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11598  (eval "$ac_compile") 2>conftest.er1
11599  ac_status=$?
11600  grep -v '^ *+' conftest.er1 >conftest.err
11601  rm -f conftest.er1
11602  cat conftest.err >&5
11603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604  (exit $ac_status); } &&
11605	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11606  { (case "(($ac_try" in
11607  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11608  *) ac_try_echo=$ac_try;;
11609esac
11610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11611  (eval "$ac_try") 2>&5
11612  ac_status=$?
11613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614  (exit $ac_status); }; } &&
11615	 { ac_try='test -s conftest.$ac_objext'
11616  { (case "(($ac_try" in
11617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11618  *) ac_try_echo=$ac_try;;
11619esac
11620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11621  (eval "$ac_try") 2>&5
11622  ac_status=$?
11623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624  (exit $ac_status); }; }; then
11625  ac_header_compiler=yes
11626else
11627  echo "$as_me: failed program was:" >&5
11628sed 's/^/| /' conftest.$ac_ext >&5
11629
11630	ac_header_compiler=no
11631fi
11632
11633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11634{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11635echo "${ECHO_T}$ac_header_compiler" >&6; }
11636
11637# Is the header present?
11638{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11639echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11640cat >conftest.$ac_ext <<_ACEOF
11641/* confdefs.h.  */
11642_ACEOF
11643cat confdefs.h >>conftest.$ac_ext
11644cat >>conftest.$ac_ext <<_ACEOF
11645/* end confdefs.h.  */
11646#include <$ac_header>
11647_ACEOF
11648if { (ac_try="$ac_cpp conftest.$ac_ext"
11649case "(($ac_try" in
11650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11651  *) ac_try_echo=$ac_try;;
11652esac
11653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11654  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11655  ac_status=$?
11656  grep -v '^ *+' conftest.er1 >conftest.err
11657  rm -f conftest.er1
11658  cat conftest.err >&5
11659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660  (exit $ac_status); } >/dev/null; then
11661  if test -s conftest.err; then
11662    ac_cpp_err=$ac_c_preproc_warn_flag
11663    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11664  else
11665    ac_cpp_err=
11666  fi
11667else
11668  ac_cpp_err=yes
11669fi
11670if test -z "$ac_cpp_err"; then
11671  ac_header_preproc=yes
11672else
11673  echo "$as_me: failed program was:" >&5
11674sed 's/^/| /' conftest.$ac_ext >&5
11675
11676  ac_header_preproc=no
11677fi
11678
11679rm -f conftest.err conftest.$ac_ext
11680{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11681echo "${ECHO_T}$ac_header_preproc" >&6; }
11682
11683# So?  What about this header?
11684case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11685  yes:no: )
11686    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11687echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11688    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11689echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11690    ac_header_preproc=yes
11691    ;;
11692  no:yes:* )
11693    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11694echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11695    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11696echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11697    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11698echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11699    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11700echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11701    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11702echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11703    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11704echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11705    ( cat <<\_ASBOX
11706## ----------------------------------- ##
11707## Report this to llvmbugs@cs.uiuc.edu ##
11708## ----------------------------------- ##
11709_ASBOX
11710     ) | sed "s/^/$as_me: WARNING:     /" >&2
11711    ;;
11712esac
11713{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11714echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11715if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11716  echo $ECHO_N "(cached) $ECHO_C" >&6
11717else
11718  eval "$as_ac_Header=\$ac_header_preproc"
11719fi
11720ac_res=`eval echo '${'$as_ac_Header'}'`
11721	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11722echo "${ECHO_T}$ac_res" >&6; }
11723
11724fi
11725if test `eval echo '${'$as_ac_Header'}'` = yes; then
11726  cat >>confdefs.h <<_ACEOF
11727#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11728_ACEOF
11729
11730fi
11731
11732done
11733
11734
11735
11736
11737
11738for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11739do
11740as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11741if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11742  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11743echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11744if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11745  echo $ECHO_N "(cached) $ECHO_C" >&6
11746fi
11747ac_res=`eval echo '${'$as_ac_Header'}'`
11748	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11749echo "${ECHO_T}$ac_res" >&6; }
11750else
11751  # Is the header compilable?
11752{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11753echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11754cat >conftest.$ac_ext <<_ACEOF
11755/* confdefs.h.  */
11756_ACEOF
11757cat confdefs.h >>conftest.$ac_ext
11758cat >>conftest.$ac_ext <<_ACEOF
11759/* end confdefs.h.  */
11760$ac_includes_default
11761#include <$ac_header>
11762_ACEOF
11763rm -f conftest.$ac_objext
11764if { (ac_try="$ac_compile"
11765case "(($ac_try" in
11766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11767  *) ac_try_echo=$ac_try;;
11768esac
11769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11770  (eval "$ac_compile") 2>conftest.er1
11771  ac_status=$?
11772  grep -v '^ *+' conftest.er1 >conftest.err
11773  rm -f conftest.er1
11774  cat conftest.err >&5
11775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776  (exit $ac_status); } &&
11777	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11778  { (case "(($ac_try" in
11779  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11780  *) ac_try_echo=$ac_try;;
11781esac
11782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11783  (eval "$ac_try") 2>&5
11784  ac_status=$?
11785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786  (exit $ac_status); }; } &&
11787	 { ac_try='test -s conftest.$ac_objext'
11788  { (case "(($ac_try" in
11789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11790  *) ac_try_echo=$ac_try;;
11791esac
11792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11793  (eval "$ac_try") 2>&5
11794  ac_status=$?
11795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796  (exit $ac_status); }; }; then
11797  ac_header_compiler=yes
11798else
11799  echo "$as_me: failed program was:" >&5
11800sed 's/^/| /' conftest.$ac_ext >&5
11801
11802	ac_header_compiler=no
11803fi
11804
11805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11806{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11807echo "${ECHO_T}$ac_header_compiler" >&6; }
11808
11809# Is the header present?
11810{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11811echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11812cat >conftest.$ac_ext <<_ACEOF
11813/* confdefs.h.  */
11814_ACEOF
11815cat confdefs.h >>conftest.$ac_ext
11816cat >>conftest.$ac_ext <<_ACEOF
11817/* end confdefs.h.  */
11818#include <$ac_header>
11819_ACEOF
11820if { (ac_try="$ac_cpp conftest.$ac_ext"
11821case "(($ac_try" in
11822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11823  *) ac_try_echo=$ac_try;;
11824esac
11825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11826  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11827  ac_status=$?
11828  grep -v '^ *+' conftest.er1 >conftest.err
11829  rm -f conftest.er1
11830  cat conftest.err >&5
11831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832  (exit $ac_status); } >/dev/null; then
11833  if test -s conftest.err; then
11834    ac_cpp_err=$ac_c_preproc_warn_flag
11835    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11836  else
11837    ac_cpp_err=
11838  fi
11839else
11840  ac_cpp_err=yes
11841fi
11842if test -z "$ac_cpp_err"; then
11843  ac_header_preproc=yes
11844else
11845  echo "$as_me: failed program was:" >&5
11846sed 's/^/| /' conftest.$ac_ext >&5
11847
11848  ac_header_preproc=no
11849fi
11850
11851rm -f conftest.err conftest.$ac_ext
11852{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11853echo "${ECHO_T}$ac_header_preproc" >&6; }
11854
11855# So?  What about this header?
11856case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11857  yes:no: )
11858    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11859echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11860    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11861echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11862    ac_header_preproc=yes
11863    ;;
11864  no:yes:* )
11865    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11866echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11867    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11868echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11869    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11870echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11871    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11872echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11873    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11874echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11875    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11876echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11877    ( cat <<\_ASBOX
11878## ----------------------------------- ##
11879## Report this to llvmbugs@cs.uiuc.edu ##
11880## ----------------------------------- ##
11881_ASBOX
11882     ) | sed "s/^/$as_me: WARNING:     /" >&2
11883    ;;
11884esac
11885{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11886echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11887if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11888  echo $ECHO_N "(cached) $ECHO_C" >&6
11889else
11890  eval "$as_ac_Header=\$ac_header_preproc"
11891fi
11892ac_res=`eval echo '${'$as_ac_Header'}'`
11893	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11894echo "${ECHO_T}$ac_res" >&6; }
11895
11896fi
11897if test `eval echo '${'$as_ac_Header'}'` = yes; then
11898  cat >>confdefs.h <<_ACEOF
11899#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11900_ACEOF
11901
11902fi
11903
11904done
11905
11906
11907
11908for ac_header in string.h strings.h
11909do
11910as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11911if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11912  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11913echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11914if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11915  echo $ECHO_N "(cached) $ECHO_C" >&6
11916fi
11917ac_res=`eval echo '${'$as_ac_Header'}'`
11918	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11919echo "${ECHO_T}$ac_res" >&6; }
11920else
11921  # Is the header compilable?
11922{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11923echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11924cat >conftest.$ac_ext <<_ACEOF
11925/* confdefs.h.  */
11926_ACEOF
11927cat confdefs.h >>conftest.$ac_ext
11928cat >>conftest.$ac_ext <<_ACEOF
11929/* end confdefs.h.  */
11930$ac_includes_default
11931#include <$ac_header>
11932_ACEOF
11933rm -f conftest.$ac_objext
11934if { (ac_try="$ac_compile"
11935case "(($ac_try" in
11936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11937  *) ac_try_echo=$ac_try;;
11938esac
11939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11940  (eval "$ac_compile") 2>conftest.er1
11941  ac_status=$?
11942  grep -v '^ *+' conftest.er1 >conftest.err
11943  rm -f conftest.er1
11944  cat conftest.err >&5
11945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946  (exit $ac_status); } &&
11947	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11948  { (case "(($ac_try" in
11949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11950  *) ac_try_echo=$ac_try;;
11951esac
11952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11953  (eval "$ac_try") 2>&5
11954  ac_status=$?
11955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956  (exit $ac_status); }; } &&
11957	 { ac_try='test -s conftest.$ac_objext'
11958  { (case "(($ac_try" in
11959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11960  *) ac_try_echo=$ac_try;;
11961esac
11962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11963  (eval "$ac_try") 2>&5
11964  ac_status=$?
11965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966  (exit $ac_status); }; }; then
11967  ac_header_compiler=yes
11968else
11969  echo "$as_me: failed program was:" >&5
11970sed 's/^/| /' conftest.$ac_ext >&5
11971
11972	ac_header_compiler=no
11973fi
11974
11975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11976{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11977echo "${ECHO_T}$ac_header_compiler" >&6; }
11978
11979# Is the header present?
11980{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11981echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11982cat >conftest.$ac_ext <<_ACEOF
11983/* confdefs.h.  */
11984_ACEOF
11985cat confdefs.h >>conftest.$ac_ext
11986cat >>conftest.$ac_ext <<_ACEOF
11987/* end confdefs.h.  */
11988#include <$ac_header>
11989_ACEOF
11990if { (ac_try="$ac_cpp conftest.$ac_ext"
11991case "(($ac_try" in
11992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11993  *) ac_try_echo=$ac_try;;
11994esac
11995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11996  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11997  ac_status=$?
11998  grep -v '^ *+' conftest.er1 >conftest.err
11999  rm -f conftest.er1
12000  cat conftest.err >&5
12001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002  (exit $ac_status); } >/dev/null; then
12003  if test -s conftest.err; then
12004    ac_cpp_err=$ac_c_preproc_warn_flag
12005    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12006  else
12007    ac_cpp_err=
12008  fi
12009else
12010  ac_cpp_err=yes
12011fi
12012if test -z "$ac_cpp_err"; then
12013  ac_header_preproc=yes
12014else
12015  echo "$as_me: failed program was:" >&5
12016sed 's/^/| /' conftest.$ac_ext >&5
12017
12018  ac_header_preproc=no
12019fi
12020
12021rm -f conftest.err conftest.$ac_ext
12022{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12023echo "${ECHO_T}$ac_header_preproc" >&6; }
12024
12025# So?  What about this header?
12026case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12027  yes:no: )
12028    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12029echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12030    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12031echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12032    ac_header_preproc=yes
12033    ;;
12034  no:yes:* )
12035    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12036echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12037    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12038echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12039    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12040echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12041    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12042echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12043    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12044echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12045    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12046echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12047    ( cat <<\_ASBOX
12048## ----------------------------------- ##
12049## Report this to llvmbugs@cs.uiuc.edu ##
12050## ----------------------------------- ##
12051_ASBOX
12052     ) | sed "s/^/$as_me: WARNING:     /" >&2
12053    ;;
12054esac
12055{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12056echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12057if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12058  echo $ECHO_N "(cached) $ECHO_C" >&6
12059else
12060  eval "$as_ac_Header=\$ac_header_preproc"
12061fi
12062ac_res=`eval echo '${'$as_ac_Header'}'`
12063	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12064echo "${ECHO_T}$ac_res" >&6; }
12065
12066fi
12067if test `eval echo '${'$as_ac_Header'}'` = yes; then
12068  cat >>confdefs.h <<_ACEOF
12069#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12070_ACEOF
12071 break
12072fi
12073
12074done
12075
12076
12077
12078
12079for ac_func in strchr index
12080do
12081as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12082{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12083echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12084if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12085  echo $ECHO_N "(cached) $ECHO_C" >&6
12086else
12087  cat >conftest.$ac_ext <<_ACEOF
12088/* confdefs.h.  */
12089_ACEOF
12090cat confdefs.h >>conftest.$ac_ext
12091cat >>conftest.$ac_ext <<_ACEOF
12092/* end confdefs.h.  */
12093/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12094   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12095#define $ac_func innocuous_$ac_func
12096
12097/* System header to define __stub macros and hopefully few prototypes,
12098    which can conflict with char $ac_func (); below.
12099    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12100    <limits.h> exists even on freestanding compilers.  */
12101
12102#ifdef __STDC__
12103# include <limits.h>
12104#else
12105# include <assert.h>
12106#endif
12107
12108#undef $ac_func
12109
12110/* Override any GCC internal prototype to avoid an error.
12111   Use char because int might match the return type of a GCC
12112   builtin and then its argument prototype would still apply.  */
12113#ifdef __cplusplus
12114extern "C"
12115#endif
12116char $ac_func ();
12117/* The GNU C library defines this for functions which it implements
12118    to always fail with ENOSYS.  Some functions are actually named
12119    something starting with __ and the normal name is an alias.  */
12120#if defined __stub_$ac_func || defined __stub___$ac_func
12121choke me
12122#endif
12123
12124int
12125main ()
12126{
12127return $ac_func ();
12128  ;
12129  return 0;
12130}
12131_ACEOF
12132rm -f conftest.$ac_objext conftest$ac_exeext
12133if { (ac_try="$ac_link"
12134case "(($ac_try" in
12135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12136  *) ac_try_echo=$ac_try;;
12137esac
12138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12139  (eval "$ac_link") 2>conftest.er1
12140  ac_status=$?
12141  grep -v '^ *+' conftest.er1 >conftest.err
12142  rm -f conftest.er1
12143  cat conftest.err >&5
12144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145  (exit $ac_status); } &&
12146	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12147  { (case "(($ac_try" in
12148  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12149  *) ac_try_echo=$ac_try;;
12150esac
12151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12152  (eval "$ac_try") 2>&5
12153  ac_status=$?
12154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155  (exit $ac_status); }; } &&
12156	 { ac_try='test -s conftest$ac_exeext'
12157  { (case "(($ac_try" in
12158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12159  *) ac_try_echo=$ac_try;;
12160esac
12161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12162  (eval "$ac_try") 2>&5
12163  ac_status=$?
12164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165  (exit $ac_status); }; }; then
12166  eval "$as_ac_var=yes"
12167else
12168  echo "$as_me: failed program was:" >&5
12169sed 's/^/| /' conftest.$ac_ext >&5
12170
12171	eval "$as_ac_var=no"
12172fi
12173
12174rm -f core conftest.err conftest.$ac_objext \
12175      conftest$ac_exeext conftest.$ac_ext
12176fi
12177ac_res=`eval echo '${'$as_ac_var'}'`
12178	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12179echo "${ECHO_T}$ac_res" >&6; }
12180if test `eval echo '${'$as_ac_var'}'` = yes; then
12181  cat >>confdefs.h <<_ACEOF
12182#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12183_ACEOF
12184 break
12185fi
12186done
12187
12188
12189
12190for ac_func in strrchr rindex
12191do
12192as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12193{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12194echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12195if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12196  echo $ECHO_N "(cached) $ECHO_C" >&6
12197else
12198  cat >conftest.$ac_ext <<_ACEOF
12199/* confdefs.h.  */
12200_ACEOF
12201cat confdefs.h >>conftest.$ac_ext
12202cat >>conftest.$ac_ext <<_ACEOF
12203/* end confdefs.h.  */
12204/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12205   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12206#define $ac_func innocuous_$ac_func
12207
12208/* System header to define __stub macros and hopefully few prototypes,
12209    which can conflict with char $ac_func (); below.
12210    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12211    <limits.h> exists even on freestanding compilers.  */
12212
12213#ifdef __STDC__
12214# include <limits.h>
12215#else
12216# include <assert.h>
12217#endif
12218
12219#undef $ac_func
12220
12221/* Override any GCC internal prototype to avoid an error.
12222   Use char because int might match the return type of a GCC
12223   builtin and then its argument prototype would still apply.  */
12224#ifdef __cplusplus
12225extern "C"
12226#endif
12227char $ac_func ();
12228/* The GNU C library defines this for functions which it implements
12229    to always fail with ENOSYS.  Some functions are actually named
12230    something starting with __ and the normal name is an alias.  */
12231#if defined __stub_$ac_func || defined __stub___$ac_func
12232choke me
12233#endif
12234
12235int
12236main ()
12237{
12238return $ac_func ();
12239  ;
12240  return 0;
12241}
12242_ACEOF
12243rm -f conftest.$ac_objext conftest$ac_exeext
12244if { (ac_try="$ac_link"
12245case "(($ac_try" in
12246  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12247  *) ac_try_echo=$ac_try;;
12248esac
12249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12250  (eval "$ac_link") 2>conftest.er1
12251  ac_status=$?
12252  grep -v '^ *+' conftest.er1 >conftest.err
12253  rm -f conftest.er1
12254  cat conftest.err >&5
12255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256  (exit $ac_status); } &&
12257	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12258  { (case "(($ac_try" in
12259  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260  *) ac_try_echo=$ac_try;;
12261esac
12262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12263  (eval "$ac_try") 2>&5
12264  ac_status=$?
12265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266  (exit $ac_status); }; } &&
12267	 { ac_try='test -s conftest$ac_exeext'
12268  { (case "(($ac_try" in
12269  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12270  *) ac_try_echo=$ac_try;;
12271esac
12272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12273  (eval "$ac_try") 2>&5
12274  ac_status=$?
12275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276  (exit $ac_status); }; }; then
12277  eval "$as_ac_var=yes"
12278else
12279  echo "$as_me: failed program was:" >&5
12280sed 's/^/| /' conftest.$ac_ext >&5
12281
12282	eval "$as_ac_var=no"
12283fi
12284
12285rm -f core conftest.err conftest.$ac_objext \
12286      conftest$ac_exeext conftest.$ac_ext
12287fi
12288ac_res=`eval echo '${'$as_ac_var'}'`
12289	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12290echo "${ECHO_T}$ac_res" >&6; }
12291if test `eval echo '${'$as_ac_var'}'` = yes; then
12292  cat >>confdefs.h <<_ACEOF
12293#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12294_ACEOF
12295 break
12296fi
12297done
12298
12299
12300
12301for ac_func in memcpy bcopy
12302do
12303as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12304{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12305echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12306if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12307  echo $ECHO_N "(cached) $ECHO_C" >&6
12308else
12309  cat >conftest.$ac_ext <<_ACEOF
12310/* confdefs.h.  */
12311_ACEOF
12312cat confdefs.h >>conftest.$ac_ext
12313cat >>conftest.$ac_ext <<_ACEOF
12314/* end confdefs.h.  */
12315/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12316   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12317#define $ac_func innocuous_$ac_func
12318
12319/* System header to define __stub macros and hopefully few prototypes,
12320    which can conflict with char $ac_func (); below.
12321    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12322    <limits.h> exists even on freestanding compilers.  */
12323
12324#ifdef __STDC__
12325# include <limits.h>
12326#else
12327# include <assert.h>
12328#endif
12329
12330#undef $ac_func
12331
12332/* Override any GCC internal prototype to avoid an error.
12333   Use char because int might match the return type of a GCC
12334   builtin and then its argument prototype would still apply.  */
12335#ifdef __cplusplus
12336extern "C"
12337#endif
12338char $ac_func ();
12339/* The GNU C library defines this for functions which it implements
12340    to always fail with ENOSYS.  Some functions are actually named
12341    something starting with __ and the normal name is an alias.  */
12342#if defined __stub_$ac_func || defined __stub___$ac_func
12343choke me
12344#endif
12345
12346int
12347main ()
12348{
12349return $ac_func ();
12350  ;
12351  return 0;
12352}
12353_ACEOF
12354rm -f conftest.$ac_objext conftest$ac_exeext
12355if { (ac_try="$ac_link"
12356case "(($ac_try" in
12357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12358  *) ac_try_echo=$ac_try;;
12359esac
12360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12361  (eval "$ac_link") 2>conftest.er1
12362  ac_status=$?
12363  grep -v '^ *+' conftest.er1 >conftest.err
12364  rm -f conftest.er1
12365  cat conftest.err >&5
12366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367  (exit $ac_status); } &&
12368	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12369  { (case "(($ac_try" in
12370  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371  *) ac_try_echo=$ac_try;;
12372esac
12373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12374  (eval "$ac_try") 2>&5
12375  ac_status=$?
12376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377  (exit $ac_status); }; } &&
12378	 { ac_try='test -s conftest$ac_exeext'
12379  { (case "(($ac_try" in
12380  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12381  *) ac_try_echo=$ac_try;;
12382esac
12383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12384  (eval "$ac_try") 2>&5
12385  ac_status=$?
12386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387  (exit $ac_status); }; }; then
12388  eval "$as_ac_var=yes"
12389else
12390  echo "$as_me: failed program was:" >&5
12391sed 's/^/| /' conftest.$ac_ext >&5
12392
12393	eval "$as_ac_var=no"
12394fi
12395
12396rm -f core conftest.err conftest.$ac_objext \
12397      conftest$ac_exeext conftest.$ac_ext
12398fi
12399ac_res=`eval echo '${'$as_ac_var'}'`
12400	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12401echo "${ECHO_T}$ac_res" >&6; }
12402if test `eval echo '${'$as_ac_var'}'` = yes; then
12403  cat >>confdefs.h <<_ACEOF
12404#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12405_ACEOF
12406 break
12407fi
12408done
12409
12410
12411
12412for ac_func in memmove strcmp
12413do
12414as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12415{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12416echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12417if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12418  echo $ECHO_N "(cached) $ECHO_C" >&6
12419else
12420  cat >conftest.$ac_ext <<_ACEOF
12421/* confdefs.h.  */
12422_ACEOF
12423cat confdefs.h >>conftest.$ac_ext
12424cat >>conftest.$ac_ext <<_ACEOF
12425/* end confdefs.h.  */
12426/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12427   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12428#define $ac_func innocuous_$ac_func
12429
12430/* System header to define __stub macros and hopefully few prototypes,
12431    which can conflict with char $ac_func (); below.
12432    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12433    <limits.h> exists even on freestanding compilers.  */
12434
12435#ifdef __STDC__
12436# include <limits.h>
12437#else
12438# include <assert.h>
12439#endif
12440
12441#undef $ac_func
12442
12443/* Override any GCC internal prototype to avoid an error.
12444   Use char because int might match the return type of a GCC
12445   builtin and then its argument prototype would still apply.  */
12446#ifdef __cplusplus
12447extern "C"
12448#endif
12449char $ac_func ();
12450/* The GNU C library defines this for functions which it implements
12451    to always fail with ENOSYS.  Some functions are actually named
12452    something starting with __ and the normal name is an alias.  */
12453#if defined __stub_$ac_func || defined __stub___$ac_func
12454choke me
12455#endif
12456
12457int
12458main ()
12459{
12460return $ac_func ();
12461  ;
12462  return 0;
12463}
12464_ACEOF
12465rm -f conftest.$ac_objext conftest$ac_exeext
12466if { (ac_try="$ac_link"
12467case "(($ac_try" in
12468  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12469  *) ac_try_echo=$ac_try;;
12470esac
12471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12472  (eval "$ac_link") 2>conftest.er1
12473  ac_status=$?
12474  grep -v '^ *+' conftest.er1 >conftest.err
12475  rm -f conftest.er1
12476  cat conftest.err >&5
12477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478  (exit $ac_status); } &&
12479	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12480  { (case "(($ac_try" in
12481  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12482  *) ac_try_echo=$ac_try;;
12483esac
12484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12485  (eval "$ac_try") 2>&5
12486  ac_status=$?
12487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488  (exit $ac_status); }; } &&
12489	 { ac_try='test -s conftest$ac_exeext'
12490  { (case "(($ac_try" in
12491  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12492  *) ac_try_echo=$ac_try;;
12493esac
12494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12495  (eval "$ac_try") 2>&5
12496  ac_status=$?
12497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498  (exit $ac_status); }; }; then
12499  eval "$as_ac_var=yes"
12500else
12501  echo "$as_me: failed program was:" >&5
12502sed 's/^/| /' conftest.$ac_ext >&5
12503
12504	eval "$as_ac_var=no"
12505fi
12506
12507rm -f core conftest.err conftest.$ac_objext \
12508      conftest$ac_exeext conftest.$ac_ext
12509fi
12510ac_res=`eval echo '${'$as_ac_var'}'`
12511	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12512echo "${ECHO_T}$ac_res" >&6; }
12513if test `eval echo '${'$as_ac_var'}'` = yes; then
12514  cat >>confdefs.h <<_ACEOF
12515#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12516_ACEOF
12517
12518fi
12519done
12520
12521
12522
12523
12524for ac_func in closedir opendir readdir
12525do
12526as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12527{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12528echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12529if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12530  echo $ECHO_N "(cached) $ECHO_C" >&6
12531else
12532  cat >conftest.$ac_ext <<_ACEOF
12533/* confdefs.h.  */
12534_ACEOF
12535cat confdefs.h >>conftest.$ac_ext
12536cat >>conftest.$ac_ext <<_ACEOF
12537/* end confdefs.h.  */
12538/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12539   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12540#define $ac_func innocuous_$ac_func
12541
12542/* System header to define __stub macros and hopefully few prototypes,
12543    which can conflict with char $ac_func (); below.
12544    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12545    <limits.h> exists even on freestanding compilers.  */
12546
12547#ifdef __STDC__
12548# include <limits.h>
12549#else
12550# include <assert.h>
12551#endif
12552
12553#undef $ac_func
12554
12555/* Override any GCC internal prototype to avoid an error.
12556   Use char because int might match the return type of a GCC
12557   builtin and then its argument prototype would still apply.  */
12558#ifdef __cplusplus
12559extern "C"
12560#endif
12561char $ac_func ();
12562/* The GNU C library defines this for functions which it implements
12563    to always fail with ENOSYS.  Some functions are actually named
12564    something starting with __ and the normal name is an alias.  */
12565#if defined __stub_$ac_func || defined __stub___$ac_func
12566choke me
12567#endif
12568
12569int
12570main ()
12571{
12572return $ac_func ();
12573  ;
12574  return 0;
12575}
12576_ACEOF
12577rm -f conftest.$ac_objext conftest$ac_exeext
12578if { (ac_try="$ac_link"
12579case "(($ac_try" in
12580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12581  *) ac_try_echo=$ac_try;;
12582esac
12583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12584  (eval "$ac_link") 2>conftest.er1
12585  ac_status=$?
12586  grep -v '^ *+' conftest.er1 >conftest.err
12587  rm -f conftest.er1
12588  cat conftest.err >&5
12589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590  (exit $ac_status); } &&
12591	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12592  { (case "(($ac_try" in
12593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12594  *) ac_try_echo=$ac_try;;
12595esac
12596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12597  (eval "$ac_try") 2>&5
12598  ac_status=$?
12599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600  (exit $ac_status); }; } &&
12601	 { ac_try='test -s conftest$ac_exeext'
12602  { (case "(($ac_try" in
12603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12604  *) ac_try_echo=$ac_try;;
12605esac
12606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12607  (eval "$ac_try") 2>&5
12608  ac_status=$?
12609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610  (exit $ac_status); }; }; then
12611  eval "$as_ac_var=yes"
12612else
12613  echo "$as_me: failed program was:" >&5
12614sed 's/^/| /' conftest.$ac_ext >&5
12615
12616	eval "$as_ac_var=no"
12617fi
12618
12619rm -f core conftest.err conftest.$ac_objext \
12620      conftest$ac_exeext conftest.$ac_ext
12621fi
12622ac_res=`eval echo '${'$as_ac_var'}'`
12623	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12624echo "${ECHO_T}$ac_res" >&6; }
12625if test `eval echo '${'$as_ac_var'}'` = yes; then
12626  cat >>confdefs.h <<_ACEOF
12627#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12628_ACEOF
12629
12630fi
12631done
12632
12633
12634# Check whether --enable-shared was given.
12635if test "${enable_shared+set}" = set; then
12636  enableval=$enable_shared; p=${PACKAGE-default}
12637    case $enableval in
12638    yes) enable_shared=yes ;;
12639    no) enable_shared=no ;;
12640    *)
12641      enable_shared=no
12642      # Look at the argument we got.  We use all the common list separators.
12643      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12644      for pkg in $enableval; do
12645	IFS="$lt_save_ifs"
12646	if test "X$pkg" = "X$p"; then
12647	  enable_shared=yes
12648	fi
12649      done
12650      IFS="$lt_save_ifs"
12651      ;;
12652    esac
12653else
12654  enable_shared=yes
12655fi
12656
12657
12658# Check whether --enable-static was given.
12659if test "${enable_static+set}" = set; then
12660  enableval=$enable_static; p=${PACKAGE-default}
12661    case $enableval in
12662    yes) enable_static=yes ;;
12663    no) enable_static=no ;;
12664    *)
12665     enable_static=no
12666      # Look at the argument we got.  We use all the common list separators.
12667      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12668      for pkg in $enableval; do
12669	IFS="$lt_save_ifs"
12670	if test "X$pkg" = "X$p"; then
12671	  enable_static=yes
12672	fi
12673      done
12674      IFS="$lt_save_ifs"
12675      ;;
12676    esac
12677else
12678  enable_static=yes
12679fi
12680
12681
12682# Check whether --enable-fast-install was given.
12683if test "${enable_fast_install+set}" = set; then
12684  enableval=$enable_fast_install; p=${PACKAGE-default}
12685    case $enableval in
12686    yes) enable_fast_install=yes ;;
12687    no) enable_fast_install=no ;;
12688    *)
12689      enable_fast_install=no
12690      # Look at the argument we got.  We use all the common list separators.
12691      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12692      for pkg in $enableval; do
12693	IFS="$lt_save_ifs"
12694	if test "X$pkg" = "X$p"; then
12695	  enable_fast_install=yes
12696	fi
12697      done
12698      IFS="$lt_save_ifs"
12699      ;;
12700    esac
12701else
12702  enable_fast_install=yes
12703fi
12704
12705
12706{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12707echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12708if test "${lt_cv_path_SED+set}" = set; then
12709  echo $ECHO_N "(cached) $ECHO_C" >&6
12710else
12711  # Loop through the user's path and test for sed and gsed.
12712# Then use that list of sed's as ones to test for truncation.
12713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12714for as_dir in $PATH
12715do
12716  IFS=$as_save_IFS
12717  test -z "$as_dir" && as_dir=.
12718  for lt_ac_prog in sed gsed; do
12719    for ac_exec_ext in '' $ac_executable_extensions; do
12720      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12721        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12722      fi
12723    done
12724  done
12725done
12726lt_ac_max=0
12727lt_ac_count=0
12728# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12729# along with /bin/sed that truncates output.
12730for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12731  test ! -f $lt_ac_sed && continue
12732  cat /dev/null > conftest.in
12733  lt_ac_count=0
12734  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12735  # Check for GNU sed and select it if it is found.
12736  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12737    lt_cv_path_SED=$lt_ac_sed
12738    break
12739  fi
12740  while true; do
12741    cat conftest.in conftest.in >conftest.tmp
12742    mv conftest.tmp conftest.in
12743    cp conftest.in conftest.nl
12744    echo >>conftest.nl
12745    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12746    cmp -s conftest.out conftest.nl || break
12747    # 10000 chars as input seems more than enough
12748    test $lt_ac_count -gt 10 && break
12749    lt_ac_count=`expr $lt_ac_count + 1`
12750    if test $lt_ac_count -gt $lt_ac_max; then
12751      lt_ac_max=$lt_ac_count
12752      lt_cv_path_SED=$lt_ac_sed
12753    fi
12754  done
12755done
12756
12757fi
12758
12759SED=$lt_cv_path_SED
12760{ echo "$as_me:$LINENO: result: $SED" >&5
12761echo "${ECHO_T}$SED" >&6; }
12762
12763
12764# Check whether --with-gnu-ld was given.
12765if test "${with_gnu_ld+set}" = set; then
12766  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12767else
12768  with_gnu_ld=no
12769fi
12770
12771ac_prog=ld
12772if test "$GCC" = yes; then
12773  # Check if gcc -print-prog-name=ld gives a path.
12774  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12775echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12776  case $host in
12777  *-*-mingw*)
12778    # gcc leaves a trailing carriage return which upsets mingw
12779    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12780  *)
12781    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12782  esac
12783  case $ac_prog in
12784    # Accept absolute paths.
12785    [\\/]* | ?:[\\/]*)
12786      re_direlt='/[^/][^/]*/\.\./'
12787      # Canonicalize the pathname of ld
12788      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12789      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12790	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12791      done
12792      test -z "$LD" && LD="$ac_prog"
12793      ;;
12794  "")
12795    # If it fails, then pretend we aren't using GCC.
12796    ac_prog=ld
12797    ;;
12798  *)
12799    # If it is relative, then search for the first ld in PATH.
12800    with_gnu_ld=unknown
12801    ;;
12802  esac
12803elif test "$with_gnu_ld" = yes; then
12804  { echo "$as_me:$LINENO: checking for GNU ld" >&5
12805echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12806else
12807  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12808echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12809fi
12810if test "${lt_cv_path_LD+set}" = set; then
12811  echo $ECHO_N "(cached) $ECHO_C" >&6
12812else
12813  if test -z "$LD"; then
12814  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12815  for ac_dir in $PATH; do
12816    IFS="$lt_save_ifs"
12817    test -z "$ac_dir" && ac_dir=.
12818    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12819      lt_cv_path_LD="$ac_dir/$ac_prog"
12820      # Check to see if the program is GNU ld.  I'd rather use --version,
12821      # but apparently some variants of GNU ld only accept -v.
12822      # Break only if it was the GNU/non-GNU ld that we prefer.
12823      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12824      *GNU* | *'with BFD'*)
12825	test "$with_gnu_ld" != no && break
12826	;;
12827      *)
12828	test "$with_gnu_ld" != yes && break
12829	;;
12830      esac
12831    fi
12832  done
12833  IFS="$lt_save_ifs"
12834else
12835  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12836fi
12837fi
12838
12839LD="$lt_cv_path_LD"
12840if test -n "$LD"; then
12841  { echo "$as_me:$LINENO: result: $LD" >&5
12842echo "${ECHO_T}$LD" >&6; }
12843else
12844  { echo "$as_me:$LINENO: result: no" >&5
12845echo "${ECHO_T}no" >&6; }
12846fi
12847test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12848echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12849   { (exit 1); exit 1; }; }
12850{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12851echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12852if test "${lt_cv_prog_gnu_ld+set}" = set; then
12853  echo $ECHO_N "(cached) $ECHO_C" >&6
12854else
12855  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12856case `$LD -v 2>&1 </dev/null` in
12857*GNU* | *'with BFD'*)
12858  lt_cv_prog_gnu_ld=yes
12859  ;;
12860*)
12861  lt_cv_prog_gnu_ld=no
12862  ;;
12863esac
12864fi
12865{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12866echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12867with_gnu_ld=$lt_cv_prog_gnu_ld
12868
12869
12870{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12871echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12872if test "${lt_cv_ld_reload_flag+set}" = set; then
12873  echo $ECHO_N "(cached) $ECHO_C" >&6
12874else
12875  lt_cv_ld_reload_flag='-r'
12876fi
12877{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12878echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12879reload_flag=$lt_cv_ld_reload_flag
12880case $reload_flag in
12881"" | " "*) ;;
12882*) reload_flag=" $reload_flag" ;;
12883esac
12884reload_cmds='$LD$reload_flag -o $output$reload_objs'
12885case $host_os in
12886  darwin*)
12887    if test "$GCC" = yes; then
12888      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12889    else
12890      reload_cmds='$LD$reload_flag -o $output$reload_objs'
12891    fi
12892    ;;
12893esac
12894
12895{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12896echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12897if test "${lt_cv_deplibs_check_method+set}" = set; then
12898  echo $ECHO_N "(cached) $ECHO_C" >&6
12899else
12900  lt_cv_file_magic_cmd='$MAGIC_CMD'
12901lt_cv_file_magic_test_file=
12902lt_cv_deplibs_check_method='unknown'
12903# Need to set the preceding variable on all platforms that support
12904# interlibrary dependencies.
12905# 'none' -- dependencies not supported.
12906# `unknown' -- same as none, but documents that we really don't know.
12907# 'pass_all' -- all dependencies passed with no checks.
12908# 'test_compile' -- check by making test program.
12909# 'file_magic [[regex]]' -- check by looking for files in library path
12910# which responds to the $file_magic_cmd with a given extended regex.
12911# If you have `file' or equivalent on your system and you're not sure
12912# whether `pass_all' will *always* work, you probably want this one.
12913
12914case $host_os in
12915aix4* | aix5*)
12916  lt_cv_deplibs_check_method=pass_all
12917  ;;
12918
12919beos*)
12920  lt_cv_deplibs_check_method=pass_all
12921  ;;
12922
12923bsdi[45]*)
12924  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12925  lt_cv_file_magic_cmd='/usr/bin/file -L'
12926  lt_cv_file_magic_test_file=/shlib/libc.so
12927  ;;
12928
12929cygwin*)
12930  # func_win32_libid is a shell function defined in ltmain.sh
12931  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12932  lt_cv_file_magic_cmd='func_win32_libid'
12933  ;;
12934
12935mingw* | pw32*)
12936  # Base MSYS/MinGW do not provide the 'file' command needed by
12937  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12938  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12939  lt_cv_file_magic_cmd='$OBJDUMP -f'
12940  ;;
12941
12942darwin* | rhapsody*)
12943  lt_cv_deplibs_check_method=pass_all
12944  ;;
12945
12946freebsd* | kfreebsd*-gnu | dragonfly*)
12947  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12948    case $host_cpu in
12949    i*86 )
12950      # Not sure whether the presence of OpenBSD here was a mistake.
12951      # Let's accept both of them until this is cleared up.
12952      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12953      lt_cv_file_magic_cmd=/usr/bin/file
12954      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12955      ;;
12956    esac
12957  else
12958    lt_cv_deplibs_check_method=pass_all
12959  fi
12960  ;;
12961
12962gnu*)
12963  lt_cv_deplibs_check_method=pass_all
12964  ;;
12965
12966hpux10.20* | hpux11*)
12967  lt_cv_file_magic_cmd=/usr/bin/file
12968  case $host_cpu in
12969  ia64*)
12970    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12971    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12972    ;;
12973  hppa*64*)
12974    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]'
12975    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12976    ;;
12977  *)
12978    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12979    lt_cv_file_magic_test_file=/usr/lib/libc.sl
12980    ;;
12981  esac
12982  ;;
12983
12984interix3*)
12985  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12986  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12987  ;;
12988
12989irix5* | irix6* | nonstopux*)
12990  case $LD in
12991  *-32|*"-32 ") libmagic=32-bit;;
12992  *-n32|*"-n32 ") libmagic=N32;;
12993  *-64|*"-64 ") libmagic=64-bit;;
12994  *) libmagic=never-match;;
12995  esac
12996  lt_cv_deplibs_check_method=pass_all
12997  ;;
12998
12999# This must be Linux ELF.
13000linux*)
13001  lt_cv_deplibs_check_method=pass_all
13002  ;;
13003
13004netbsd*)
13005  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13006    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13007  else
13008    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13009  fi
13010  ;;
13011
13012newos6*)
13013  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13014  lt_cv_file_magic_cmd=/usr/bin/file
13015  lt_cv_file_magic_test_file=/usr/lib/libnls.so
13016  ;;
13017
13018nto-qnx*)
13019  lt_cv_deplibs_check_method=unknown
13020  ;;
13021
13022openbsd*)
13023  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13024    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13025  else
13026    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13027  fi
13028  ;;
13029
13030osf3* | osf4* | osf5*)
13031  lt_cv_deplibs_check_method=pass_all
13032  ;;
13033
13034solaris*)
13035  lt_cv_deplibs_check_method=pass_all
13036  ;;
13037
13038sysv4 | sysv4.3*)
13039  case $host_vendor in
13040  motorola)
13041    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]'
13042    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13043    ;;
13044  ncr)
13045    lt_cv_deplibs_check_method=pass_all
13046    ;;
13047  sequent)
13048    lt_cv_file_magic_cmd='/bin/file'
13049    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13050    ;;
13051  sni)
13052    lt_cv_file_magic_cmd='/bin/file'
13053    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13054    lt_cv_file_magic_test_file=/lib/libc.so
13055    ;;
13056  siemens)
13057    lt_cv_deplibs_check_method=pass_all
13058    ;;
13059  pc)
13060    lt_cv_deplibs_check_method=pass_all
13061    ;;
13062  esac
13063  ;;
13064
13065sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13066  lt_cv_deplibs_check_method=pass_all
13067  ;;
13068esac
13069
13070fi
13071{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13072echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
13073file_magic_cmd=$lt_cv_file_magic_cmd
13074deplibs_check_method=$lt_cv_deplibs_check_method
13075test -z "$deplibs_check_method" && deplibs_check_method=unknown
13076
13077
13078
13079# If no C compiler was specified, use CC.
13080LTCC=${LTCC-"$CC"}
13081
13082# If no C compiler flags were specified, use CFLAGS.
13083LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13084
13085# Allow CC to be a program name with arguments.
13086compiler=$CC
13087
13088# Check whether --enable-libtool-lock was given.
13089if test "${enable_libtool_lock+set}" = set; then
13090  enableval=$enable_libtool_lock;
13091fi
13092
13093test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13094
13095# Some flags need to be propagated to the compiler or linker for good
13096# libtool support.
13097case $host in
13098ia64-*-hpux*)
13099  # Find out which ABI we are using.
13100  echo 'int i;' > conftest.$ac_ext
13101  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13102  (eval $ac_compile) 2>&5
13103  ac_status=$?
13104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105  (exit $ac_status); }; then
13106    case `/usr/bin/file conftest.$ac_objext` in
13107    *ELF-32*)
13108      HPUX_IA64_MODE="32"
13109      ;;
13110    *ELF-64*)
13111      HPUX_IA64_MODE="64"
13112      ;;
13113    esac
13114  fi
13115  rm -rf conftest*
13116  ;;
13117*-*-irix6*)
13118  # Find out which ABI we are using.
13119  echo '#line 13119 "configure"' > conftest.$ac_ext
13120  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13121  (eval $ac_compile) 2>&5
13122  ac_status=$?
13123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124  (exit $ac_status); }; then
13125   if test "$lt_cv_prog_gnu_ld" = yes; then
13126    case `/usr/bin/file conftest.$ac_objext` in
13127    *32-bit*)
13128      LD="${LD-ld} -melf32bsmip"
13129      ;;
13130    *N32*)
13131      LD="${LD-ld} -melf32bmipn32"
13132      ;;
13133    *64-bit*)
13134      LD="${LD-ld} -melf64bmip"
13135      ;;
13136    esac
13137   else
13138    case `/usr/bin/file conftest.$ac_objext` in
13139    *32-bit*)
13140      LD="${LD-ld} -32"
13141      ;;
13142    *N32*)
13143      LD="${LD-ld} -n32"
13144      ;;
13145    *64-bit*)
13146      LD="${LD-ld} -64"
13147      ;;
13148    esac
13149   fi
13150  fi
13151  rm -rf conftest*
13152  ;;
13153
13154x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13155  # Find out which ABI we are using.
13156  echo 'int i;' > conftest.$ac_ext
13157  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13158  (eval $ac_compile) 2>&5
13159  ac_status=$?
13160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161  (exit $ac_status); }; then
13162    case `/usr/bin/file conftest.o` in
13163    *32-bit*)
13164      case $host in
13165        x86_64-*linux*)
13166          LD="${LD-ld} -m elf_i386"
13167          ;;
13168        ppc64-*linux*|powerpc64-*linux*)
13169          LD="${LD-ld} -m elf32ppclinux"
13170          ;;
13171        s390x-*linux*)
13172          LD="${LD-ld} -m elf_s390"
13173          ;;
13174        sparc64-*linux*)
13175          LD="${LD-ld} -m elf32_sparc"
13176          ;;
13177      esac
13178      ;;
13179    *64-bit*)
13180      case $host in
13181        x86_64-*linux*)
13182          LD="${LD-ld} -m elf_x86_64"
13183          ;;
13184        ppc*-*linux*|powerpc*-*linux*)
13185          LD="${LD-ld} -m elf64ppc"
13186          ;;
13187        s390*-*linux*)
13188          LD="${LD-ld} -m elf64_s390"
13189          ;;
13190        sparc*-*linux*)
13191          LD="${LD-ld} -m elf64_sparc"
13192          ;;
13193      esac
13194      ;;
13195    esac
13196  fi
13197  rm -rf conftest*
13198  ;;
13199
13200*-*-sco3.2v5*)
13201  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13202  SAVE_CFLAGS="$CFLAGS"
13203  CFLAGS="$CFLAGS -belf"
13204  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13205echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13206if test "${lt_cv_cc_needs_belf+set}" = set; then
13207  echo $ECHO_N "(cached) $ECHO_C" >&6
13208else
13209  ac_ext=c
13210ac_cpp='$CPP $CPPFLAGS'
13211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13213ac_compiler_gnu=$ac_cv_c_compiler_gnu
13214
13215     cat >conftest.$ac_ext <<_ACEOF
13216/* confdefs.h.  */
13217_ACEOF
13218cat confdefs.h >>conftest.$ac_ext
13219cat >>conftest.$ac_ext <<_ACEOF
13220/* end confdefs.h.  */
13221
13222int
13223main ()
13224{
13225
13226  ;
13227  return 0;
13228}
13229_ACEOF
13230rm -f conftest.$ac_objext conftest$ac_exeext
13231if { (ac_try="$ac_link"
13232case "(($ac_try" in
13233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13234  *) ac_try_echo=$ac_try;;
13235esac
13236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13237  (eval "$ac_link") 2>conftest.er1
13238  ac_status=$?
13239  grep -v '^ *+' conftest.er1 >conftest.err
13240  rm -f conftest.er1
13241  cat conftest.err >&5
13242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243  (exit $ac_status); } &&
13244	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13245  { (case "(($ac_try" in
13246  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13247  *) ac_try_echo=$ac_try;;
13248esac
13249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13250  (eval "$ac_try") 2>&5
13251  ac_status=$?
13252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253  (exit $ac_status); }; } &&
13254	 { ac_try='test -s conftest$ac_exeext'
13255  { (case "(($ac_try" in
13256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13257  *) ac_try_echo=$ac_try;;
13258esac
13259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13260  (eval "$ac_try") 2>&5
13261  ac_status=$?
13262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263  (exit $ac_status); }; }; then
13264  lt_cv_cc_needs_belf=yes
13265else
13266  echo "$as_me: failed program was:" >&5
13267sed 's/^/| /' conftest.$ac_ext >&5
13268
13269	lt_cv_cc_needs_belf=no
13270fi
13271
13272rm -f core conftest.err conftest.$ac_objext \
13273      conftest$ac_exeext conftest.$ac_ext
13274     ac_ext=c
13275ac_cpp='$CPP $CPPFLAGS'
13276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13278ac_compiler_gnu=$ac_cv_c_compiler_gnu
13279
13280fi
13281{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13282echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13283  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13284    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13285    CFLAGS="$SAVE_CFLAGS"
13286  fi
13287  ;;
13288sparc*-*solaris*)
13289  # Find out which ABI we are using.
13290  echo 'int i;' > conftest.$ac_ext
13291  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13292  (eval $ac_compile) 2>&5
13293  ac_status=$?
13294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295  (exit $ac_status); }; then
13296    case `/usr/bin/file conftest.o` in
13297    *64-bit*)
13298      case $lt_cv_prog_gnu_ld in
13299      yes*) LD="${LD-ld} -m elf64_sparc" ;;
13300      *)    LD="${LD-ld} -64" ;;
13301      esac
13302      ;;
13303    esac
13304  fi
13305  rm -rf conftest*
13306  ;;
13307
13308
13309esac
13310
13311need_locks="$enable_libtool_lock"
13312
13313
13314
13315
13316if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13317    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13318    (test "X$CXX" != "Xg++"))) ; then
13319  ac_ext=cpp
13320ac_cpp='$CXXCPP $CPPFLAGS'
13321ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13322ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13323ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13324{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13325echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13326if test -z "$CXXCPP"; then
13327  if test "${ac_cv_prog_CXXCPP+set}" = set; then
13328  echo $ECHO_N "(cached) $ECHO_C" >&6
13329else
13330      # Double quotes because CXXCPP needs to be expanded
13331    for CXXCPP in "$CXX -E" "/lib/cpp"
13332    do
13333      ac_preproc_ok=false
13334for ac_cxx_preproc_warn_flag in '' yes
13335do
13336  # Use a header file that comes with gcc, so configuring glibc
13337  # with a fresh cross-compiler works.
13338  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13339  # <limits.h> exists even on freestanding compilers.
13340  # On the NeXT, cc -E runs the code through the compiler's parser,
13341  # not just through cpp. "Syntax error" is here to catch this case.
13342  cat >conftest.$ac_ext <<_ACEOF
13343/* confdefs.h.  */
13344_ACEOF
13345cat confdefs.h >>conftest.$ac_ext
13346cat >>conftest.$ac_ext <<_ACEOF
13347/* end confdefs.h.  */
13348#ifdef __STDC__
13349# include <limits.h>
13350#else
13351# include <assert.h>
13352#endif
13353		     Syntax error
13354_ACEOF
13355if { (ac_try="$ac_cpp conftest.$ac_ext"
13356case "(($ac_try" in
13357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13358  *) ac_try_echo=$ac_try;;
13359esac
13360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13361  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13362  ac_status=$?
13363  grep -v '^ *+' conftest.er1 >conftest.err
13364  rm -f conftest.er1
13365  cat conftest.err >&5
13366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367  (exit $ac_status); } >/dev/null; then
13368  if test -s conftest.err; then
13369    ac_cpp_err=$ac_cxx_preproc_warn_flag
13370    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13371  else
13372    ac_cpp_err=
13373  fi
13374else
13375  ac_cpp_err=yes
13376fi
13377if test -z "$ac_cpp_err"; then
13378  :
13379else
13380  echo "$as_me: failed program was:" >&5
13381sed 's/^/| /' conftest.$ac_ext >&5
13382
13383  # Broken: fails on valid input.
13384continue
13385fi
13386
13387rm -f conftest.err conftest.$ac_ext
13388
13389  # OK, works on sane cases.  Now check whether nonexistent headers
13390  # can be detected and how.
13391  cat >conftest.$ac_ext <<_ACEOF
13392/* confdefs.h.  */
13393_ACEOF
13394cat confdefs.h >>conftest.$ac_ext
13395cat >>conftest.$ac_ext <<_ACEOF
13396/* end confdefs.h.  */
13397#include <ac_nonexistent.h>
13398_ACEOF
13399if { (ac_try="$ac_cpp conftest.$ac_ext"
13400case "(($ac_try" in
13401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13402  *) ac_try_echo=$ac_try;;
13403esac
13404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13405  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13406  ac_status=$?
13407  grep -v '^ *+' conftest.er1 >conftest.err
13408  rm -f conftest.er1
13409  cat conftest.err >&5
13410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411  (exit $ac_status); } >/dev/null; then
13412  if test -s conftest.err; then
13413    ac_cpp_err=$ac_cxx_preproc_warn_flag
13414    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13415  else
13416    ac_cpp_err=
13417  fi
13418else
13419  ac_cpp_err=yes
13420fi
13421if test -z "$ac_cpp_err"; then
13422  # Broken: success on invalid input.
13423continue
13424else
13425  echo "$as_me: failed program was:" >&5
13426sed 's/^/| /' conftest.$ac_ext >&5
13427
13428  # Passes both tests.
13429ac_preproc_ok=:
13430break
13431fi
13432
13433rm -f conftest.err conftest.$ac_ext
13434
13435done
13436# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13437rm -f conftest.err conftest.$ac_ext
13438if $ac_preproc_ok; then
13439  break
13440fi
13441
13442    done
13443    ac_cv_prog_CXXCPP=$CXXCPP
13444
13445fi
13446  CXXCPP=$ac_cv_prog_CXXCPP
13447else
13448  ac_cv_prog_CXXCPP=$CXXCPP
13449fi
13450{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13451echo "${ECHO_T}$CXXCPP" >&6; }
13452ac_preproc_ok=false
13453for ac_cxx_preproc_warn_flag in '' yes
13454do
13455  # Use a header file that comes with gcc, so configuring glibc
13456  # with a fresh cross-compiler works.
13457  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13458  # <limits.h> exists even on freestanding compilers.
13459  # On the NeXT, cc -E runs the code through the compiler's parser,
13460  # not just through cpp. "Syntax error" is here to catch this case.
13461  cat >conftest.$ac_ext <<_ACEOF
13462/* confdefs.h.  */
13463_ACEOF
13464cat confdefs.h >>conftest.$ac_ext
13465cat >>conftest.$ac_ext <<_ACEOF
13466/* end confdefs.h.  */
13467#ifdef __STDC__
13468# include <limits.h>
13469#else
13470# include <assert.h>
13471#endif
13472		     Syntax error
13473_ACEOF
13474if { (ac_try="$ac_cpp conftest.$ac_ext"
13475case "(($ac_try" in
13476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13477  *) ac_try_echo=$ac_try;;
13478esac
13479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13480  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13481  ac_status=$?
13482  grep -v '^ *+' conftest.er1 >conftest.err
13483  rm -f conftest.er1
13484  cat conftest.err >&5
13485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486  (exit $ac_status); } >/dev/null; then
13487  if test -s conftest.err; then
13488    ac_cpp_err=$ac_cxx_preproc_warn_flag
13489    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13490  else
13491    ac_cpp_err=
13492  fi
13493else
13494  ac_cpp_err=yes
13495fi
13496if test -z "$ac_cpp_err"; then
13497  :
13498else
13499  echo "$as_me: failed program was:" >&5
13500sed 's/^/| /' conftest.$ac_ext >&5
13501
13502  # Broken: fails on valid input.
13503continue
13504fi
13505
13506rm -f conftest.err conftest.$ac_ext
13507
13508  # OK, works on sane cases.  Now check whether nonexistent headers
13509  # can be detected and how.
13510  cat >conftest.$ac_ext <<_ACEOF
13511/* confdefs.h.  */
13512_ACEOF
13513cat confdefs.h >>conftest.$ac_ext
13514cat >>conftest.$ac_ext <<_ACEOF
13515/* end confdefs.h.  */
13516#include <ac_nonexistent.h>
13517_ACEOF
13518if { (ac_try="$ac_cpp conftest.$ac_ext"
13519case "(($ac_try" in
13520  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13521  *) ac_try_echo=$ac_try;;
13522esac
13523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13524  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13525  ac_status=$?
13526  grep -v '^ *+' conftest.er1 >conftest.err
13527  rm -f conftest.er1
13528  cat conftest.err >&5
13529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530  (exit $ac_status); } >/dev/null; then
13531  if test -s conftest.err; then
13532    ac_cpp_err=$ac_cxx_preproc_warn_flag
13533    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13534  else
13535    ac_cpp_err=
13536  fi
13537else
13538  ac_cpp_err=yes
13539fi
13540if test -z "$ac_cpp_err"; then
13541  # Broken: success on invalid input.
13542continue
13543else
13544  echo "$as_me: failed program was:" >&5
13545sed 's/^/| /' conftest.$ac_ext >&5
13546
13547  # Passes both tests.
13548ac_preproc_ok=:
13549break
13550fi
13551
13552rm -f conftest.err conftest.$ac_ext
13553
13554done
13555# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13556rm -f conftest.err conftest.$ac_ext
13557if $ac_preproc_ok; then
13558  :
13559else
13560  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13561See \`config.log' for more details." >&5
13562echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13563See \`config.log' for more details." >&2;}
13564   { (exit 1); exit 1; }; }
13565fi
13566
13567ac_ext=cpp
13568ac_cpp='$CXXCPP $CPPFLAGS'
13569ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13570ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13571ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13572
13573fi
13574
13575
13576ac_ext=f
13577ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13578ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13579ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13580if test -n "$ac_tool_prefix"; then
13581  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
13582  do
13583    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13584set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13585{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13587if test "${ac_cv_prog_F77+set}" = set; then
13588  echo $ECHO_N "(cached) $ECHO_C" >&6
13589else
13590  if test -n "$F77"; then
13591  ac_cv_prog_F77="$F77" # Let the user override the test.
13592else
13593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13594for as_dir in $PATH
13595do
13596  IFS=$as_save_IFS
13597  test -z "$as_dir" && as_dir=.
13598  for ac_exec_ext in '' $ac_executable_extensions; do
13599  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13600    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13601    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13602    break 2
13603  fi
13604done
13605done
13606IFS=$as_save_IFS
13607
13608fi
13609fi
13610F77=$ac_cv_prog_F77
13611if test -n "$F77"; then
13612  { echo "$as_me:$LINENO: result: $F77" >&5
13613echo "${ECHO_T}$F77" >&6; }
13614else
13615  { echo "$as_me:$LINENO: result: no" >&5
13616echo "${ECHO_T}no" >&6; }
13617fi
13618
13619
13620    test -n "$F77" && break
13621  done
13622fi
13623if test -z "$F77"; then
13624  ac_ct_F77=$F77
13625  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
13626do
13627  # Extract the first word of "$ac_prog", so it can be a program name with args.
13628set dummy $ac_prog; ac_word=$2
13629{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13631if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13632  echo $ECHO_N "(cached) $ECHO_C" >&6
13633else
13634  if test -n "$ac_ct_F77"; then
13635  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13636else
13637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13638for as_dir in $PATH
13639do
13640  IFS=$as_save_IFS
13641  test -z "$as_dir" && as_dir=.
13642  for ac_exec_ext in '' $ac_executable_extensions; do
13643  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13644    ac_cv_prog_ac_ct_F77="$ac_prog"
13645    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13646    break 2
13647  fi
13648done
13649done
13650IFS=$as_save_IFS
13651
13652fi
13653fi
13654ac_ct_F77=$ac_cv_prog_ac_ct_F77
13655if test -n "$ac_ct_F77"; then
13656  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13657echo "${ECHO_T}$ac_ct_F77" >&6; }
13658else
13659  { echo "$as_me:$LINENO: result: no" >&5
13660echo "${ECHO_T}no" >&6; }
13661fi
13662
13663
13664  test -n "$ac_ct_F77" && break
13665done
13666
13667  if test "x$ac_ct_F77" = x; then
13668    F77=""
13669  else
13670    case $cross_compiling:$ac_tool_warned in
13671yes:)
13672{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13673whose name does not start with the host triplet.  If you think this
13674configuration is useful to you, please write to autoconf@gnu.org." >&5
13675echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13676whose name does not start with the host triplet.  If you think this
13677configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13678ac_tool_warned=yes ;;
13679esac
13680    F77=$ac_ct_F77
13681  fi
13682fi
13683
13684
13685# Provide some information about the compiler.
13686echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13687ac_compiler=`set X $ac_compile; echo $2`
13688{ (ac_try="$ac_compiler --version >&5"
13689case "(($ac_try" in
13690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13691  *) ac_try_echo=$ac_try;;
13692esac
13693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13694  (eval "$ac_compiler --version >&5") 2>&5
13695  ac_status=$?
13696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697  (exit $ac_status); }
13698{ (ac_try="$ac_compiler -v >&5"
13699case "(($ac_try" in
13700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13701  *) ac_try_echo=$ac_try;;
13702esac
13703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13704  (eval "$ac_compiler -v >&5") 2>&5
13705  ac_status=$?
13706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707  (exit $ac_status); }
13708{ (ac_try="$ac_compiler -V >&5"
13709case "(($ac_try" in
13710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13711  *) ac_try_echo=$ac_try;;
13712esac
13713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13714  (eval "$ac_compiler -V >&5") 2>&5
13715  ac_status=$?
13716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717  (exit $ac_status); }
13718rm -f a.out
13719
13720# If we don't use `.F' as extension, the preprocessor is not run on the
13721# input file.  (Note that this only needs to work for GNU compilers.)
13722ac_save_ext=$ac_ext
13723ac_ext=F
13724{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13725echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13726if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13727  echo $ECHO_N "(cached) $ECHO_C" >&6
13728else
13729  cat >conftest.$ac_ext <<_ACEOF
13730      program main
13731#ifndef __GNUC__
13732       choke me
13733#endif
13734
13735      end
13736_ACEOF
13737rm -f conftest.$ac_objext
13738if { (ac_try="$ac_compile"
13739case "(($ac_try" in
13740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13741  *) ac_try_echo=$ac_try;;
13742esac
13743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13744  (eval "$ac_compile") 2>conftest.er1
13745  ac_status=$?
13746  grep -v '^ *+' conftest.er1 >conftest.err
13747  rm -f conftest.er1
13748  cat conftest.err >&5
13749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750  (exit $ac_status); } &&
13751	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13752  { (case "(($ac_try" in
13753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13754  *) ac_try_echo=$ac_try;;
13755esac
13756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13757  (eval "$ac_try") 2>&5
13758  ac_status=$?
13759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760  (exit $ac_status); }; } &&
13761	 { ac_try='test -s conftest.$ac_objext'
13762  { (case "(($ac_try" in
13763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13764  *) ac_try_echo=$ac_try;;
13765esac
13766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13767  (eval "$ac_try") 2>&5
13768  ac_status=$?
13769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770  (exit $ac_status); }; }; then
13771  ac_compiler_gnu=yes
13772else
13773  echo "$as_me: failed program was:" >&5
13774sed 's/^/| /' conftest.$ac_ext >&5
13775
13776	ac_compiler_gnu=no
13777fi
13778
13779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13780ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13781
13782fi
13783{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13784echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13785ac_ext=$ac_save_ext
13786ac_test_FFLAGS=${FFLAGS+set}
13787ac_save_FFLAGS=$FFLAGS
13788FFLAGS=
13789{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13790echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13791if test "${ac_cv_prog_f77_g+set}" = set; then
13792  echo $ECHO_N "(cached) $ECHO_C" >&6
13793else
13794  FFLAGS=-g
13795cat >conftest.$ac_ext <<_ACEOF
13796      program main
13797
13798      end
13799_ACEOF
13800rm -f conftest.$ac_objext
13801if { (ac_try="$ac_compile"
13802case "(($ac_try" in
13803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13804  *) ac_try_echo=$ac_try;;
13805esac
13806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13807  (eval "$ac_compile") 2>conftest.er1
13808  ac_status=$?
13809  grep -v '^ *+' conftest.er1 >conftest.err
13810  rm -f conftest.er1
13811  cat conftest.err >&5
13812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813  (exit $ac_status); } &&
13814	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13815  { (case "(($ac_try" in
13816  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13817  *) ac_try_echo=$ac_try;;
13818esac
13819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13820  (eval "$ac_try") 2>&5
13821  ac_status=$?
13822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823  (exit $ac_status); }; } &&
13824	 { ac_try='test -s conftest.$ac_objext'
13825  { (case "(($ac_try" in
13826  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13827  *) ac_try_echo=$ac_try;;
13828esac
13829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13830  (eval "$ac_try") 2>&5
13831  ac_status=$?
13832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833  (exit $ac_status); }; }; then
13834  ac_cv_prog_f77_g=yes
13835else
13836  echo "$as_me: failed program was:" >&5
13837sed 's/^/| /' conftest.$ac_ext >&5
13838
13839	ac_cv_prog_f77_g=no
13840fi
13841
13842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13843
13844fi
13845{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13846echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13847if test "$ac_test_FFLAGS" = set; then
13848  FFLAGS=$ac_save_FFLAGS
13849elif test $ac_cv_prog_f77_g = yes; then
13850  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13851    FFLAGS="-g -O2"
13852  else
13853    FFLAGS="-g"
13854  fi
13855else
13856  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13857    FFLAGS="-O2"
13858  else
13859    FFLAGS=
13860  fi
13861fi
13862
13863G77=`test $ac_compiler_gnu = yes && echo yes`
13864ac_ext=c
13865ac_cpp='$CPP $CPPFLAGS'
13866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13868ac_compiler_gnu=$ac_cv_c_compiler_gnu
13869
13870
13871
13872# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13873
13874# find the maximum length of command line arguments
13875{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13876echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13877if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13878  echo $ECHO_N "(cached) $ECHO_C" >&6
13879else
13880    i=0
13881  teststring="ABCD"
13882
13883  case $build_os in
13884  msdosdjgpp*)
13885    # On DJGPP, this test can blow up pretty badly due to problems in libc
13886    # (any single argument exceeding 2000 bytes causes a buffer overrun
13887    # during glob expansion).  Even if it were fixed, the result of this
13888    # check would be larger than it should be.
13889    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13890    ;;
13891
13892  gnu*)
13893    # Under GNU Hurd, this test is not required because there is
13894    # no limit to the length of command line arguments.
13895    # Libtool will interpret -1 as no limit whatsoever
13896    lt_cv_sys_max_cmd_len=-1;
13897    ;;
13898
13899  cygwin* | mingw*)
13900    # On Win9x/ME, this test blows up -- it succeeds, but takes
13901    # about 5 minutes as the teststring grows exponentially.
13902    # Worse, since 9x/ME are not pre-emptively multitasking,
13903    # you end up with a "frozen" computer, even though with patience
13904    # the test eventually succeeds (with a max line length of 256k).
13905    # Instead, let's just punt: use the minimum linelength reported by
13906    # all of the supported platforms: 8192 (on NT/2K/XP).
13907    lt_cv_sys_max_cmd_len=8192;
13908    ;;
13909
13910  amigaos*)
13911    # On AmigaOS with pdksh, this test takes hours, literally.
13912    # So we just punt and use a minimum line length of 8192.
13913    lt_cv_sys_max_cmd_len=8192;
13914    ;;
13915
13916  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13917    # This has been around since 386BSD, at least.  Likely further.
13918    if test -x /sbin/sysctl; then
13919      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13920    elif test -x /usr/sbin/sysctl; then
13921      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13922    else
13923      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
13924    fi
13925    # And add a safety zone
13926    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13927    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13928    ;;
13929
13930  interix*)
13931    # We know the value 262144 and hardcode it with a safety zone (like BSD)
13932    lt_cv_sys_max_cmd_len=196608
13933    ;;
13934
13935  osf*)
13936    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13937    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13938    # nice to cause kernel panics so lets avoid the loop below.
13939    # First set a reasonable default.
13940    lt_cv_sys_max_cmd_len=16384
13941    #
13942    if test -x /sbin/sysconfig; then
13943      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13944        *1*) lt_cv_sys_max_cmd_len=-1 ;;
13945      esac
13946    fi
13947    ;;
13948  sco3.2v5*)
13949    lt_cv_sys_max_cmd_len=102400
13950    ;;
13951  sysv5* | sco5v6* | sysv4.2uw2*)
13952    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13953    if test -n "$kargmax"; then
13954      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
13955    else
13956      lt_cv_sys_max_cmd_len=32768
13957    fi
13958    ;;
13959  *)
13960    # If test is not a shell built-in, we'll probably end up computing a
13961    # maximum length that is only half of the actual maximum length, but
13962    # we can't tell.
13963    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13964    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13965	       = "XX$teststring") >/dev/null 2>&1 &&
13966	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
13967	    lt_cv_sys_max_cmd_len=$new_result &&
13968	    test $i != 17 # 1/2 MB should be enough
13969    do
13970      i=`expr $i + 1`
13971      teststring=$teststring$teststring
13972    done
13973    teststring=
13974    # Add a significant safety factor because C++ compilers can tack on massive
13975    # amounts of additional arguments before passing them to the linker.
13976    # It appears as though 1/2 is a usable value.
13977    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13978    ;;
13979  esac
13980
13981fi
13982
13983if test -n $lt_cv_sys_max_cmd_len ; then
13984  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13985echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13986else
13987  { echo "$as_me:$LINENO: result: none" >&5
13988echo "${ECHO_T}none" >&6; }
13989fi
13990
13991
13992
13993
13994# Check for command to grab the raw symbol name followed by C symbol from nm.
13995{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13996echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13997if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13998  echo $ECHO_N "(cached) $ECHO_C" >&6
13999else
14000
14001# These are sane defaults that work on at least a few old systems.
14002# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
14003
14004# Character class describing NM global symbol codes.
14005symcode='[BCDEGRST]'
14006
14007# Regexp to match symbols that can be accessed directly from C.
14008sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14009
14010# Transform an extracted symbol line into a proper C declaration
14011lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14012
14013# Transform an extracted symbol line into symbol name and symbol address
14014lt_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'"
14015
14016# Define system-specific variables.
14017case $host_os in
14018aix*)
14019  symcode='[BCDT]'
14020  ;;
14021cygwin* | mingw* | pw32*)
14022  symcode='[ABCDGISTW]'
14023  ;;
14024hpux*) # Its linker distinguishes data from code symbols
14025  if test "$host_cpu" = ia64; then
14026    symcode='[ABCDEGRST]'
14027  fi
14028  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14029  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'"
14030  ;;
14031linux*)
14032  if test "$host_cpu" = ia64; then
14033    symcode='[ABCDGIRSTW]'
14034    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14035    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'"
14036  fi
14037  ;;
14038irix* | nonstopux*)
14039  symcode='[BCDEGRST]'
14040  ;;
14041osf*)
14042  symcode='[BCDEGQRST]'
14043  ;;
14044solaris*)
14045  symcode='[BDRT]'
14046  ;;
14047sco3.2v5*)
14048  symcode='[DT]'
14049  ;;
14050sysv4.2uw2*)
14051  symcode='[DT]'
14052  ;;
14053sysv5* | sco5v6* | unixware* | OpenUNIX*)
14054  symcode='[ABDT]'
14055  ;;
14056sysv4)
14057  symcode='[DFNSTU]'
14058  ;;
14059esac
14060
14061# Handle CRLF in mingw tool chain
14062opt_cr=
14063case $build_os in
14064mingw*)
14065  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14066  ;;
14067esac
14068
14069# If we're using GNU nm, then use its standard symbol codes.
14070case `$NM -V 2>&1` in
14071*GNU* | *'with BFD'*)
14072  symcode='[ABCDGIRSTW]' ;;
14073esac
14074
14075# Try without a prefix undercore, then with it.
14076for ac_symprfx in "" "_"; do
14077
14078  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14079  symxfrm="\\1 $ac_symprfx\\2 \\2"
14080
14081  # Write the raw and C identifiers.
14082  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14083
14084  # Check to see that the pipe works correctly.
14085  pipe_works=no
14086
14087  rm -f conftest*
14088  cat > conftest.$ac_ext <<EOF
14089#ifdef __cplusplus
14090extern "C" {
14091#endif
14092char nm_test_var;
14093void nm_test_func(){}
14094#ifdef __cplusplus
14095}
14096#endif
14097int main(){nm_test_var='a';nm_test_func();return(0);}
14098EOF
14099
14100  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14101  (eval $ac_compile) 2>&5
14102  ac_status=$?
14103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104  (exit $ac_status); }; then
14105    # Now try to grab the symbols.
14106    nlist=conftest.nm
14107    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14108  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14109  ac_status=$?
14110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111  (exit $ac_status); } && test -s "$nlist"; then
14112      # Try sorting and uniquifying the output.
14113      if sort "$nlist" | uniq > "$nlist"T; then
14114	mv -f "$nlist"T "$nlist"
14115      else
14116	rm -f "$nlist"T
14117      fi
14118
14119      # Make sure that we snagged all the symbols we need.
14120      if grep ' nm_test_var$' "$nlist" >/dev/null; then
14121	if grep ' nm_test_func$' "$nlist" >/dev/null; then
14122	  cat <<EOF > conftest.$ac_ext
14123#ifdef __cplusplus
14124extern "C" {
14125#endif
14126
14127EOF
14128	  # Now generate the symbol file.
14129	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14130
14131	  cat <<EOF >> conftest.$ac_ext
14132#if defined (__STDC__) && __STDC__
14133# define lt_ptr_t void *
14134#else
14135# define lt_ptr_t char *
14136# define const
14137#endif
14138
14139/* The mapping between symbol names and symbols. */
14140const struct {
14141  const char *name;
14142  lt_ptr_t address;
14143}
14144lt_preloaded_symbols[] =
14145{
14146EOF
14147	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14148	  cat <<\EOF >> conftest.$ac_ext
14149  {0, (lt_ptr_t) 0}
14150};
14151
14152#ifdef __cplusplus
14153}
14154#endif
14155EOF
14156	  # Now try linking the two files.
14157	  mv conftest.$ac_objext conftstm.$ac_objext
14158	  lt_save_LIBS="$LIBS"
14159	  lt_save_CFLAGS="$CFLAGS"
14160	  LIBS="conftstm.$ac_objext"
14161	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14162	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14163  (eval $ac_link) 2>&5
14164  ac_status=$?
14165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166  (exit $ac_status); } && test -s conftest${ac_exeext}; then
14167	    pipe_works=yes
14168	  fi
14169	  LIBS="$lt_save_LIBS"
14170	  CFLAGS="$lt_save_CFLAGS"
14171	else
14172	  echo "cannot find nm_test_func in $nlist" >&5
14173	fi
14174      else
14175	echo "cannot find nm_test_var in $nlist" >&5
14176      fi
14177    else
14178      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14179    fi
14180  else
14181    echo "$progname: failed program was:" >&5
14182    cat conftest.$ac_ext >&5
14183  fi
14184  rm -f conftest* conftst*
14185
14186  # Do not use the global_symbol_pipe unless it works.
14187  if test "$pipe_works" = yes; then
14188    break
14189  else
14190    lt_cv_sys_global_symbol_pipe=
14191  fi
14192done
14193
14194fi
14195
14196if test -z "$lt_cv_sys_global_symbol_pipe"; then
14197  lt_cv_sys_global_symbol_to_cdecl=
14198fi
14199if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14200  { echo "$as_me:$LINENO: result: failed" >&5
14201echo "${ECHO_T}failed" >&6; }
14202else
14203  { echo "$as_me:$LINENO: result: ok" >&5
14204echo "${ECHO_T}ok" >&6; }
14205fi
14206
14207{ echo "$as_me:$LINENO: checking for objdir" >&5
14208echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14209if test "${lt_cv_objdir+set}" = set; then
14210  echo $ECHO_N "(cached) $ECHO_C" >&6
14211else
14212  rm -f .libs 2>/dev/null
14213mkdir .libs 2>/dev/null
14214if test -d .libs; then
14215  lt_cv_objdir=.libs
14216else
14217  # MS-DOS does not allow filenames that begin with a dot.
14218  lt_cv_objdir=_libs
14219fi
14220rmdir .libs 2>/dev/null
14221fi
14222{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14223echo "${ECHO_T}$lt_cv_objdir" >&6; }
14224objdir=$lt_cv_objdir
14225
14226
14227
14228
14229
14230case $host_os in
14231aix3*)
14232  # AIX sometimes has problems with the GCC collect2 program.  For some
14233  # reason, if we set the COLLECT_NAMES environment variable, the problems
14234  # vanish in a puff of smoke.
14235  if test "X${COLLECT_NAMES+set}" != Xset; then
14236    COLLECT_NAMES=
14237    export COLLECT_NAMES
14238  fi
14239  ;;
14240esac
14241
14242# Sed substitution that helps us do robust quoting.  It backslashifies
14243# metacharacters that are still active within double-quoted strings.
14244Xsed='sed -e 1s/^X//'
14245sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14246
14247# Same as above, but do not quote variable references.
14248double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14249
14250# Sed substitution to delay expansion of an escaped shell variable in a
14251# double_quote_subst'ed string.
14252delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14253
14254# Sed substitution to avoid accidental globbing in evaled expressions
14255no_glob_subst='s/\*/\\\*/g'
14256
14257# Constants:
14258rm="rm -f"
14259
14260# Global variables:
14261default_ofile=mklib
14262can_build_shared=yes
14263
14264# All known linkers require a `.a' archive for static linking (except MSVC,
14265# which needs '.lib').
14266libext=a
14267ltmain="$ac_aux_dir/ltmain.sh"
14268ofile="$default_ofile"
14269with_gnu_ld="$lt_cv_prog_gnu_ld"
14270
14271if test -n "$ac_tool_prefix"; then
14272  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14273set dummy ${ac_tool_prefix}ar; ac_word=$2
14274{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14276if test "${ac_cv_prog_AR+set}" = set; then
14277  echo $ECHO_N "(cached) $ECHO_C" >&6
14278else
14279  if test -n "$AR"; then
14280  ac_cv_prog_AR="$AR" # Let the user override the test.
14281else
14282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14283for as_dir in $PATH
14284do
14285  IFS=$as_save_IFS
14286  test -z "$as_dir" && as_dir=.
14287  for ac_exec_ext in '' $ac_executable_extensions; do
14288  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14289    ac_cv_prog_AR="${ac_tool_prefix}ar"
14290    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14291    break 2
14292  fi
14293done
14294done
14295IFS=$as_save_IFS
14296
14297fi
14298fi
14299AR=$ac_cv_prog_AR
14300if test -n "$AR"; then
14301  { echo "$as_me:$LINENO: result: $AR" >&5
14302echo "${ECHO_T}$AR" >&6; }
14303else
14304  { echo "$as_me:$LINENO: result: no" >&5
14305echo "${ECHO_T}no" >&6; }
14306fi
14307
14308
14309fi
14310if test -z "$ac_cv_prog_AR"; then
14311  ac_ct_AR=$AR
14312  # Extract the first word of "ar", so it can be a program name with args.
14313set dummy ar; ac_word=$2
14314{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14316if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14317  echo $ECHO_N "(cached) $ECHO_C" >&6
14318else
14319  if test -n "$ac_ct_AR"; then
14320  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14321else
14322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14323for as_dir in $PATH
14324do
14325  IFS=$as_save_IFS
14326  test -z "$as_dir" && as_dir=.
14327  for ac_exec_ext in '' $ac_executable_extensions; do
14328  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14329    ac_cv_prog_ac_ct_AR="ar"
14330    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14331    break 2
14332  fi
14333done
14334done
14335IFS=$as_save_IFS
14336
14337fi
14338fi
14339ac_ct_AR=$ac_cv_prog_ac_ct_AR
14340if test -n "$ac_ct_AR"; then
14341  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14342echo "${ECHO_T}$ac_ct_AR" >&6; }
14343else
14344  { echo "$as_me:$LINENO: result: no" >&5
14345echo "${ECHO_T}no" >&6; }
14346fi
14347
14348  if test "x$ac_ct_AR" = x; then
14349    AR="false"
14350  else
14351    case $cross_compiling:$ac_tool_warned in
14352yes:)
14353{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14354whose name does not start with the host triplet.  If you think this
14355configuration is useful to you, please write to autoconf@gnu.org." >&5
14356echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14357whose name does not start with the host triplet.  If you think this
14358configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14359ac_tool_warned=yes ;;
14360esac
14361    AR=$ac_ct_AR
14362  fi
14363else
14364  AR="$ac_cv_prog_AR"
14365fi
14366
14367if test -n "$ac_tool_prefix"; then
14368  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14369set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14370{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14372if test "${ac_cv_prog_RANLIB+set}" = set; then
14373  echo $ECHO_N "(cached) $ECHO_C" >&6
14374else
14375  if test -n "$RANLIB"; then
14376  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14377else
14378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14379for as_dir in $PATH
14380do
14381  IFS=$as_save_IFS
14382  test -z "$as_dir" && as_dir=.
14383  for ac_exec_ext in '' $ac_executable_extensions; do
14384  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14385    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14386    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14387    break 2
14388  fi
14389done
14390done
14391IFS=$as_save_IFS
14392
14393fi
14394fi
14395RANLIB=$ac_cv_prog_RANLIB
14396if test -n "$RANLIB"; then
14397  { echo "$as_me:$LINENO: result: $RANLIB" >&5
14398echo "${ECHO_T}$RANLIB" >&6; }
14399else
14400  { echo "$as_me:$LINENO: result: no" >&5
14401echo "${ECHO_T}no" >&6; }
14402fi
14403
14404
14405fi
14406if test -z "$ac_cv_prog_RANLIB"; then
14407  ac_ct_RANLIB=$RANLIB
14408  # Extract the first word of "ranlib", so it can be a program name with args.
14409set dummy ranlib; ac_word=$2
14410{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14411echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14412if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14413  echo $ECHO_N "(cached) $ECHO_C" >&6
14414else
14415  if test -n "$ac_ct_RANLIB"; then
14416  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14417else
14418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14419for as_dir in $PATH
14420do
14421  IFS=$as_save_IFS
14422  test -z "$as_dir" && as_dir=.
14423  for ac_exec_ext in '' $ac_executable_extensions; do
14424  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14425    ac_cv_prog_ac_ct_RANLIB="ranlib"
14426    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14427    break 2
14428  fi
14429done
14430done
14431IFS=$as_save_IFS
14432
14433fi
14434fi
14435ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14436if test -n "$ac_ct_RANLIB"; then
14437  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14438echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14439else
14440  { echo "$as_me:$LINENO: result: no" >&5
14441echo "${ECHO_T}no" >&6; }
14442fi
14443
14444  if test "x$ac_ct_RANLIB" = x; then
14445    RANLIB=":"
14446  else
14447    case $cross_compiling:$ac_tool_warned in
14448yes:)
14449{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14450whose name does not start with the host triplet.  If you think this
14451configuration is useful to you, please write to autoconf@gnu.org." >&5
14452echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14453whose name does not start with the host triplet.  If you think this
14454configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14455ac_tool_warned=yes ;;
14456esac
14457    RANLIB=$ac_ct_RANLIB
14458  fi
14459else
14460  RANLIB="$ac_cv_prog_RANLIB"
14461fi
14462
14463if test -n "$ac_tool_prefix"; then
14464  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14465set dummy ${ac_tool_prefix}strip; ac_word=$2
14466{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14468if test "${ac_cv_prog_STRIP+set}" = set; then
14469  echo $ECHO_N "(cached) $ECHO_C" >&6
14470else
14471  if test -n "$STRIP"; then
14472  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14473else
14474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14475for as_dir in $PATH
14476do
14477  IFS=$as_save_IFS
14478  test -z "$as_dir" && as_dir=.
14479  for ac_exec_ext in '' $ac_executable_extensions; do
14480  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14481    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14482    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14483    break 2
14484  fi
14485done
14486done
14487IFS=$as_save_IFS
14488
14489fi
14490fi
14491STRIP=$ac_cv_prog_STRIP
14492if test -n "$STRIP"; then
14493  { echo "$as_me:$LINENO: result: $STRIP" >&5
14494echo "${ECHO_T}$STRIP" >&6; }
14495else
14496  { echo "$as_me:$LINENO: result: no" >&5
14497echo "${ECHO_T}no" >&6; }
14498fi
14499
14500
14501fi
14502if test -z "$ac_cv_prog_STRIP"; then
14503  ac_ct_STRIP=$STRIP
14504  # Extract the first word of "strip", so it can be a program name with args.
14505set dummy strip; ac_word=$2
14506{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14508if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14509  echo $ECHO_N "(cached) $ECHO_C" >&6
14510else
14511  if test -n "$ac_ct_STRIP"; then
14512  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14513else
14514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14515for as_dir in $PATH
14516do
14517  IFS=$as_save_IFS
14518  test -z "$as_dir" && as_dir=.
14519  for ac_exec_ext in '' $ac_executable_extensions; do
14520  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14521    ac_cv_prog_ac_ct_STRIP="strip"
14522    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14523    break 2
14524  fi
14525done
14526done
14527IFS=$as_save_IFS
14528
14529fi
14530fi
14531ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14532if test -n "$ac_ct_STRIP"; then
14533  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14534echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14535else
14536  { echo "$as_me:$LINENO: result: no" >&5
14537echo "${ECHO_T}no" >&6; }
14538fi
14539
14540  if test "x$ac_ct_STRIP" = x; then
14541    STRIP=":"
14542  else
14543    case $cross_compiling:$ac_tool_warned in
14544yes:)
14545{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14546whose name does not start with the host triplet.  If you think this
14547configuration is useful to you, please write to autoconf@gnu.org." >&5
14548echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14549whose name does not start with the host triplet.  If you think this
14550configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14551ac_tool_warned=yes ;;
14552esac
14553    STRIP=$ac_ct_STRIP
14554  fi
14555else
14556  STRIP="$ac_cv_prog_STRIP"
14557fi
14558
14559
14560old_CC="$CC"
14561old_CFLAGS="$CFLAGS"
14562
14563# Set sane defaults for various variables
14564test -z "$AR" && AR=ar
14565test -z "$AR_FLAGS" && AR_FLAGS=cru
14566test -z "$AS" && AS=as
14567test -z "$CC" && CC=cc
14568test -z "$LTCC" && LTCC=$CC
14569test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14570test -z "$DLLTOOL" && DLLTOOL=dlltool
14571test -z "$LD" && LD=ld
14572test -z "$LN_S" && LN_S="ln -s"
14573test -z "$MAGIC_CMD" && MAGIC_CMD=file
14574test -z "$NM" && NM=nm
14575test -z "$SED" && SED=sed
14576test -z "$OBJDUMP" && OBJDUMP=objdump
14577test -z "$RANLIB" && RANLIB=:
14578test -z "$STRIP" && STRIP=:
14579test -z "$ac_objext" && ac_objext=o
14580
14581# Determine commands to create old-style static archives.
14582old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14583old_postinstall_cmds='chmod 644 $oldlib'
14584old_postuninstall_cmds=
14585
14586if test -n "$RANLIB"; then
14587  case $host_os in
14588  openbsd*)
14589    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14590    ;;
14591  *)
14592    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14593    ;;
14594  esac
14595  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14596fi
14597
14598for cc_temp in $compiler""; do
14599  case $cc_temp in
14600    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14601    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14602    \-*) ;;
14603    *) break;;
14604  esac
14605done
14606cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14607
14608
14609# Only perform the check for file, if the check method requires it
14610case $deplibs_check_method in
14611file_magic*)
14612  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14613    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14614echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14615if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14616  echo $ECHO_N "(cached) $ECHO_C" >&6
14617else
14618  case $MAGIC_CMD in
14619[\\/*] |  ?:[\\/]*)
14620  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14621  ;;
14622*)
14623  lt_save_MAGIC_CMD="$MAGIC_CMD"
14624  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14625  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14626  for ac_dir in $ac_dummy; do
14627    IFS="$lt_save_ifs"
14628    test -z "$ac_dir" && ac_dir=.
14629    if test -f $ac_dir/${ac_tool_prefix}file; then
14630      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14631      if test -n "$file_magic_test_file"; then
14632	case $deplibs_check_method in
14633	"file_magic "*)
14634	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14635	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14636	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14637	    $EGREP "$file_magic_regex" > /dev/null; then
14638	    :
14639	  else
14640	    cat <<EOF 1>&2
14641
14642*** Warning: the command libtool uses to detect shared libraries,
14643*** $file_magic_cmd, produces output that libtool cannot recognize.
14644*** The result is that libtool may fail to recognize shared libraries
14645*** as such.  This will affect the creation of libtool libraries that
14646*** depend on shared libraries, but programs linked with such libtool
14647*** libraries will work regardless of this problem.  Nevertheless, you
14648*** may want to report the problem to your system manager and/or to
14649*** bug-libtool@gnu.org
14650
14651EOF
14652	  fi ;;
14653	esac
14654      fi
14655      break
14656    fi
14657  done
14658  IFS="$lt_save_ifs"
14659  MAGIC_CMD="$lt_save_MAGIC_CMD"
14660  ;;
14661esac
14662fi
14663
14664MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14665if test -n "$MAGIC_CMD"; then
14666  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14667echo "${ECHO_T}$MAGIC_CMD" >&6; }
14668else
14669  { echo "$as_me:$LINENO: result: no" >&5
14670echo "${ECHO_T}no" >&6; }
14671fi
14672
14673if test -z "$lt_cv_path_MAGIC_CMD"; then
14674  if test -n "$ac_tool_prefix"; then
14675    { echo "$as_me:$LINENO: checking for file" >&5
14676echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14677if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14678  echo $ECHO_N "(cached) $ECHO_C" >&6
14679else
14680  case $MAGIC_CMD in
14681[\\/*] |  ?:[\\/]*)
14682  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14683  ;;
14684*)
14685  lt_save_MAGIC_CMD="$MAGIC_CMD"
14686  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14687  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14688  for ac_dir in $ac_dummy; do
14689    IFS="$lt_save_ifs"
14690    test -z "$ac_dir" && ac_dir=.
14691    if test -f $ac_dir/file; then
14692      lt_cv_path_MAGIC_CMD="$ac_dir/file"
14693      if test -n "$file_magic_test_file"; then
14694	case $deplibs_check_method in
14695	"file_magic "*)
14696	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14697	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14698	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14699	    $EGREP "$file_magic_regex" > /dev/null; then
14700	    :
14701	  else
14702	    cat <<EOF 1>&2
14703
14704*** Warning: the command libtool uses to detect shared libraries,
14705*** $file_magic_cmd, produces output that libtool cannot recognize.
14706*** The result is that libtool may fail to recognize shared libraries
14707*** as such.  This will affect the creation of libtool libraries that
14708*** depend on shared libraries, but programs linked with such libtool
14709*** libraries will work regardless of this problem.  Nevertheless, you
14710*** may want to report the problem to your system manager and/or to
14711*** bug-libtool@gnu.org
14712
14713EOF
14714	  fi ;;
14715	esac
14716      fi
14717      break
14718    fi
14719  done
14720  IFS="$lt_save_ifs"
14721  MAGIC_CMD="$lt_save_MAGIC_CMD"
14722  ;;
14723esac
14724fi
14725
14726MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14727if test -n "$MAGIC_CMD"; then
14728  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14729echo "${ECHO_T}$MAGIC_CMD" >&6; }
14730else
14731  { echo "$as_me:$LINENO: result: no" >&5
14732echo "${ECHO_T}no" >&6; }
14733fi
14734
14735  else
14736    MAGIC_CMD=:
14737  fi
14738fi
14739
14740  fi
14741  ;;
14742esac
14743
14744enable_dlopen=yes
14745enable_win32_dll=no
14746
14747# Check whether --enable-libtool-lock was given.
14748if test "${enable_libtool_lock+set}" = set; then
14749  enableval=$enable_libtool_lock;
14750fi
14751
14752test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14753
14754
14755# Check whether --with-pic was given.
14756if test "${with_pic+set}" = set; then
14757  withval=$with_pic; pic_mode="$withval"
14758else
14759  pic_mode=default
14760fi
14761
14762test -z "$pic_mode" && pic_mode=default
14763
14764# Use C for the default configuration in the libtool script
14765tagname=
14766lt_save_CC="$CC"
14767ac_ext=c
14768ac_cpp='$CPP $CPPFLAGS'
14769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14771ac_compiler_gnu=$ac_cv_c_compiler_gnu
14772
14773
14774# Source file extension for C test sources.
14775ac_ext=c
14776
14777# Object file extension for compiled C test sources.
14778objext=o
14779objext=$objext
14780
14781# Code to be used in simple compile tests
14782lt_simple_compile_test_code="int some_variable = 0;\n"
14783
14784# Code to be used in simple link tests
14785lt_simple_link_test_code='int main(){return(0);}\n'
14786
14787
14788# If no C compiler was specified, use CC.
14789LTCC=${LTCC-"$CC"}
14790
14791# If no C compiler flags were specified, use CFLAGS.
14792LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14793
14794# Allow CC to be a program name with arguments.
14795compiler=$CC
14796
14797
14798# save warnings/boilerplate of simple test code
14799ac_outfile=conftest.$ac_objext
14800printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14801eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14802_lt_compiler_boilerplate=`cat conftest.err`
14803$rm conftest*
14804
14805ac_outfile=conftest.$ac_objext
14806printf "$lt_simple_link_test_code" >conftest.$ac_ext
14807eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14808_lt_linker_boilerplate=`cat conftest.err`
14809$rm conftest*
14810
14811
14812
14813lt_prog_compiler_no_builtin_flag=
14814
14815if test "$GCC" = yes; then
14816  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14817
14818
14819{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14820echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14821if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14822  echo $ECHO_N "(cached) $ECHO_C" >&6
14823else
14824  lt_cv_prog_compiler_rtti_exceptions=no
14825  ac_outfile=conftest.$ac_objext
14826   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14827   lt_compiler_flag="-fno-rtti -fno-exceptions"
14828   # Insert the option either (1) after the last *FLAGS variable, or
14829   # (2) before a word containing "conftest.", or (3) at the end.
14830   # Note that $ac_compile itself does not contain backslashes and begins
14831   # with a dollar sign (not a hyphen), so the echo should work correctly.
14832   # The option is referenced via a variable to avoid confusing sed.
14833   lt_compile=`echo "$ac_compile" | $SED \
14834   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14835   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14836   -e 's:$: $lt_compiler_flag:'`
14837   (eval echo "\"\$as_me:14837: $lt_compile\"" >&5)
14838   (eval "$lt_compile" 2>conftest.err)
14839   ac_status=$?
14840   cat conftest.err >&5
14841   echo "$as_me:14841: \$? = $ac_status" >&5
14842   if (exit $ac_status) && test -s "$ac_outfile"; then
14843     # The compiler can only warn and ignore the option if not recognized
14844     # So say no if there are warnings other than the usual output.
14845     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14846     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14847     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14848       lt_cv_prog_compiler_rtti_exceptions=yes
14849     fi
14850   fi
14851   $rm conftest*
14852
14853fi
14854{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14855echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14856
14857if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14858    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14859else
14860    :
14861fi
14862
14863fi
14864
14865lt_prog_compiler_wl=
14866lt_prog_compiler_pic=
14867lt_prog_compiler_static=
14868
14869{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14870echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14871
14872  if test "$GCC" = yes; then
14873    lt_prog_compiler_wl='-Wl,'
14874    lt_prog_compiler_static='-static'
14875
14876    case $host_os in
14877      aix*)
14878      # All AIX code is PIC.
14879      if test "$host_cpu" = ia64; then
14880	# AIX 5 now supports IA64 processor
14881	lt_prog_compiler_static='-Bstatic'
14882      fi
14883      ;;
14884
14885    amigaos*)
14886      # FIXME: we need at least 68020 code to build shared libraries, but
14887      # adding the `-m68020' flag to GCC prevents building anything better,
14888      # like `-m68040'.
14889      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14890      ;;
14891
14892    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14893      # PIC is the default for these OSes.
14894      ;;
14895
14896    mingw* | pw32* | os2*)
14897      # This hack is so that the source file can tell whether it is being
14898      # built for inclusion in a dll (and should export symbols for example).
14899      lt_prog_compiler_pic='-DDLL_EXPORT'
14900      ;;
14901
14902    darwin* | rhapsody*)
14903      # PIC is the default on this platform
14904      # Common symbols not allowed in MH_DYLIB files
14905      lt_prog_compiler_pic='-fno-common'
14906      ;;
14907
14908    interix3*)
14909      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14910      # Instead, we relocate shared libraries at runtime.
14911      ;;
14912
14913    msdosdjgpp*)
14914      # Just because we use GCC doesn't mean we suddenly get shared libraries
14915      # on systems that don't support them.
14916      lt_prog_compiler_can_build_shared=no
14917      enable_shared=no
14918      ;;
14919
14920    sysv4*MP*)
14921      if test -d /usr/nec; then
14922	lt_prog_compiler_pic=-Kconform_pic
14923      fi
14924      ;;
14925
14926    hpux*)
14927      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14928      # not for PA HP-UX.
14929      case $host_cpu in
14930      hppa*64*|ia64*)
14931	# +Z the default
14932	;;
14933      *)
14934	lt_prog_compiler_pic='-fPIC'
14935	;;
14936      esac
14937      ;;
14938
14939    *)
14940      lt_prog_compiler_pic='-fPIC'
14941      ;;
14942    esac
14943  else
14944    # PORTME Check for flag to pass linker flags through the system compiler.
14945    case $host_os in
14946    aix*)
14947      lt_prog_compiler_wl='-Wl,'
14948      if test "$host_cpu" = ia64; then
14949	# AIX 5 now supports IA64 processor
14950	lt_prog_compiler_static='-Bstatic'
14951      else
14952	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14953      fi
14954      ;;
14955      darwin*)
14956        # PIC is the default on this platform
14957        # Common symbols not allowed in MH_DYLIB files
14958       case $cc_basename in
14959         xlc*)
14960         lt_prog_compiler_pic='-qnocommon'
14961         lt_prog_compiler_wl='-Wl,'
14962         ;;
14963       esac
14964       ;;
14965
14966    mingw* | pw32* | os2*)
14967      # This hack is so that the source file can tell whether it is being
14968      # built for inclusion in a dll (and should export symbols for example).
14969      lt_prog_compiler_pic='-DDLL_EXPORT'
14970      ;;
14971
14972    hpux9* | hpux10* | hpux11*)
14973      lt_prog_compiler_wl='-Wl,'
14974      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14975      # not for PA HP-UX.
14976      case $host_cpu in
14977      hppa*64*|ia64*)
14978	# +Z the default
14979	;;
14980      *)
14981	lt_prog_compiler_pic='+Z'
14982	;;
14983      esac
14984      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14985      lt_prog_compiler_static='${wl}-a ${wl}archive'
14986      ;;
14987
14988    irix5* | irix6* | nonstopux*)
14989      lt_prog_compiler_wl='-Wl,'
14990      # PIC (with -KPIC) is the default.
14991      lt_prog_compiler_static='-non_shared'
14992      ;;
14993
14994    newsos6)
14995      lt_prog_compiler_pic='-KPIC'
14996      lt_prog_compiler_static='-Bstatic'
14997      ;;
14998
14999    linux*)
15000      case $cc_basename in
15001      icc* | ecc*)
15002	lt_prog_compiler_wl='-Wl,'
15003	lt_prog_compiler_pic='-KPIC'
15004	lt_prog_compiler_static='-static'
15005        ;;
15006      pgcc* | pgf77* | pgf90* | pgf95*)
15007        # Portland Group compilers (*not* the Pentium gcc compiler,
15008	# which looks to be a dead project)
15009	lt_prog_compiler_wl='-Wl,'
15010	lt_prog_compiler_pic='-fpic'
15011	lt_prog_compiler_static='-Bstatic'
15012        ;;
15013      ccc*)
15014        lt_prog_compiler_wl='-Wl,'
15015        # All Alpha code is PIC.
15016        lt_prog_compiler_static='-non_shared'
15017        ;;
15018      esac
15019      ;;
15020
15021    osf3* | osf4* | osf5*)
15022      lt_prog_compiler_wl='-Wl,'
15023      # All OSF/1 code is PIC.
15024      lt_prog_compiler_static='-non_shared'
15025      ;;
15026
15027    solaris*)
15028      lt_prog_compiler_pic='-KPIC'
15029      lt_prog_compiler_static='-Bstatic'
15030      case $cc_basename in
15031      f77* | f90* | f95*)
15032	lt_prog_compiler_wl='-Qoption ld ';;
15033      *)
15034	lt_prog_compiler_wl='-Wl,';;
15035      esac
15036      ;;
15037
15038    sunos4*)
15039      lt_prog_compiler_wl='-Qoption ld '
15040      lt_prog_compiler_pic='-PIC'
15041      lt_prog_compiler_static='-Bstatic'
15042      ;;
15043
15044    sysv4 | sysv4.2uw2* | sysv4.3*)
15045      lt_prog_compiler_wl='-Wl,'
15046      lt_prog_compiler_pic='-KPIC'
15047      lt_prog_compiler_static='-Bstatic'
15048      ;;
15049
15050    sysv4*MP*)
15051      if test -d /usr/nec ;then
15052	lt_prog_compiler_pic='-Kconform_pic'
15053	lt_prog_compiler_static='-Bstatic'
15054      fi
15055      ;;
15056
15057    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15058      lt_prog_compiler_wl='-Wl,'
15059      lt_prog_compiler_pic='-KPIC'
15060      lt_prog_compiler_static='-Bstatic'
15061      ;;
15062
15063    unicos*)
15064      lt_prog_compiler_wl='-Wl,'
15065      lt_prog_compiler_can_build_shared=no
15066      ;;
15067
15068    uts4*)
15069      lt_prog_compiler_pic='-pic'
15070      lt_prog_compiler_static='-Bstatic'
15071      ;;
15072
15073    *)
15074      lt_prog_compiler_can_build_shared=no
15075      ;;
15076    esac
15077  fi
15078
15079{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15080echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15081
15082#
15083# Check to make sure the PIC flag actually works.
15084#
15085if test -n "$lt_prog_compiler_pic"; then
15086
15087{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15088echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
15089if test "${lt_prog_compiler_pic_works+set}" = set; then
15090  echo $ECHO_N "(cached) $ECHO_C" >&6
15091else
15092  lt_prog_compiler_pic_works=no
15093  ac_outfile=conftest.$ac_objext
15094   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15095   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15096   # Insert the option either (1) after the last *FLAGS variable, or
15097   # (2) before a word containing "conftest.", or (3) at the end.
15098   # Note that $ac_compile itself does not contain backslashes and begins
15099   # with a dollar sign (not a hyphen), so the echo should work correctly.
15100   # The option is referenced via a variable to avoid confusing sed.
15101   lt_compile=`echo "$ac_compile" | $SED \
15102   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15103   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15104   -e 's:$: $lt_compiler_flag:'`
15105   (eval echo "\"\$as_me:15105: $lt_compile\"" >&5)
15106   (eval "$lt_compile" 2>conftest.err)
15107   ac_status=$?
15108   cat conftest.err >&5
15109   echo "$as_me:15109: \$? = $ac_status" >&5
15110   if (exit $ac_status) && test -s "$ac_outfile"; then
15111     # The compiler can only warn and ignore the option if not recognized
15112     # So say no if there are warnings other than the usual output.
15113     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15114     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15115     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15116       lt_prog_compiler_pic_works=yes
15117     fi
15118   fi
15119   $rm conftest*
15120
15121fi
15122{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15123echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15124
15125if test x"$lt_prog_compiler_pic_works" = xyes; then
15126    case $lt_prog_compiler_pic in
15127     "" | " "*) ;;
15128     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15129     esac
15130else
15131    lt_prog_compiler_pic=
15132     lt_prog_compiler_can_build_shared=no
15133fi
15134
15135fi
15136case $host_os in
15137  # For platforms which do not support PIC, -DPIC is meaningless:
15138  *djgpp*)
15139    lt_prog_compiler_pic=
15140    ;;
15141  *)
15142    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15143    ;;
15144esac
15145
15146#
15147# Check to make sure the static flag actually works.
15148#
15149wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15150{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15151echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15152if test "${lt_prog_compiler_static_works+set}" = set; then
15153  echo $ECHO_N "(cached) $ECHO_C" >&6
15154else
15155  lt_prog_compiler_static_works=no
15156   save_LDFLAGS="$LDFLAGS"
15157   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15158   printf "$lt_simple_link_test_code" > conftest.$ac_ext
15159   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15160     # The linker can only warn and ignore the option if not recognized
15161     # So say no if there are warnings
15162     if test -s conftest.err; then
15163       # Append any errors to the config.log.
15164       cat conftest.err 1>&5
15165       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15166       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15167       if diff conftest.exp conftest.er2 >/dev/null; then
15168         lt_prog_compiler_static_works=yes
15169       fi
15170     else
15171       lt_prog_compiler_static_works=yes
15172     fi
15173   fi
15174   $rm conftest*
15175   LDFLAGS="$save_LDFLAGS"
15176
15177fi
15178{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15179echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15180
15181if test x"$lt_prog_compiler_static_works" = xyes; then
15182    :
15183else
15184    lt_prog_compiler_static=
15185fi
15186
15187
15188{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15189echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15190if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15191  echo $ECHO_N "(cached) $ECHO_C" >&6
15192else
15193  lt_cv_prog_compiler_c_o=no
15194   $rm -r conftest 2>/dev/null
15195   mkdir conftest
15196   cd conftest
15197   mkdir out
15198   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15199
15200   lt_compiler_flag="-o out/conftest2.$ac_objext"
15201   # Insert the option either (1) after the last *FLAGS variable, or
15202   # (2) before a word containing "conftest.", or (3) at the end.
15203   # Note that $ac_compile itself does not contain backslashes and begins
15204   # with a dollar sign (not a hyphen), so the echo should work correctly.
15205   lt_compile=`echo "$ac_compile" | $SED \
15206   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15207   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15208   -e 's:$: $lt_compiler_flag:'`
15209   (eval echo "\"\$as_me:15209: $lt_compile\"" >&5)
15210   (eval "$lt_compile" 2>out/conftest.err)
15211   ac_status=$?
15212   cat out/conftest.err >&5
15213   echo "$as_me:15213: \$? = $ac_status" >&5
15214   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15215   then
15216     # The compiler can only warn and ignore the option if not recognized
15217     # So say no if there are warnings
15218     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15219     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15220     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15221       lt_cv_prog_compiler_c_o=yes
15222     fi
15223   fi
15224   chmod u+w . 2>&5
15225   $rm conftest*
15226   # SGI C++ compiler will create directory out/ii_files/ for
15227   # template instantiation
15228   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15229   $rm out/* && rmdir out
15230   cd ..
15231   rmdir conftest
15232   $rm conftest*
15233
15234fi
15235{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15236echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15237
15238
15239hard_links="nottested"
15240if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15241  # do not overwrite the value of need_locks provided by the user
15242  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15243echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15244  hard_links=yes
15245  $rm conftest*
15246  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15247  touch conftest.a
15248  ln conftest.a conftest.b 2>&5 || hard_links=no
15249  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15250  { echo "$as_me:$LINENO: result: $hard_links" >&5
15251echo "${ECHO_T}$hard_links" >&6; }
15252  if test "$hard_links" = no; then
15253    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15254echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15255    need_locks=warn
15256  fi
15257else
15258  need_locks=no
15259fi
15260
15261{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15262echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15263
15264  runpath_var=
15265  allow_undefined_flag=
15266  enable_shared_with_static_runtimes=no
15267  archive_cmds=
15268  archive_expsym_cmds=
15269  old_archive_From_new_cmds=
15270  old_archive_from_expsyms_cmds=
15271  export_dynamic_flag_spec=
15272  whole_archive_flag_spec=
15273  thread_safe_flag_spec=
15274  hardcode_libdir_flag_spec=
15275  hardcode_libdir_flag_spec_ld=
15276  hardcode_libdir_separator=
15277  hardcode_direct=no
15278  hardcode_minus_L=no
15279  hardcode_shlibpath_var=unsupported
15280  link_all_deplibs=unknown
15281  hardcode_automatic=no
15282  module_cmds=
15283  module_expsym_cmds=
15284  always_export_symbols=no
15285  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15286  # include_expsyms should be a list of space-separated symbols to be *always*
15287  # included in the symbol list
15288  include_expsyms=
15289  # exclude_expsyms can be an extended regexp of symbols to exclude
15290  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15291  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15292  # as well as any symbol that contains `d'.
15293  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15294  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15295  # platforms (ab)use it in PIC code, but their linkers get confused if
15296  # the symbol is explicitly referenced.  Since portable code cannot
15297  # rely on this symbol name, it's probably fine to never include it in
15298  # preloaded symbol tables.
15299  extract_expsyms_cmds=
15300  # Just being paranoid about ensuring that cc_basename is set.
15301  for cc_temp in $compiler""; do
15302  case $cc_temp in
15303    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15304    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15305    \-*) ;;
15306    *) break;;
15307  esac
15308done
15309cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15310
15311  case $host_os in
15312  cygwin* | mingw* | pw32*)
15313    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15314    # When not using gcc, we currently assume that we are using
15315    # Microsoft Visual C++.
15316    if test "$GCC" != yes; then
15317      with_gnu_ld=no
15318    fi
15319    ;;
15320  interix*)
15321    # we just hope/assume this is gcc and not c89 (= MSVC++)
15322    with_gnu_ld=yes
15323    ;;
15324  openbsd*)
15325    with_gnu_ld=no
15326    ;;
15327  esac
15328
15329  ld_shlibs=yes
15330  if test "$with_gnu_ld" = yes; then
15331    # If archive_cmds runs LD, not CC, wlarc should be empty
15332    wlarc='${wl}'
15333
15334    # Set some defaults for GNU ld with shared library support. These
15335    # are reset later if shared libraries are not supported. Putting them
15336    # here allows them to be overridden if necessary.
15337    runpath_var=LD_RUN_PATH
15338    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15339    export_dynamic_flag_spec='${wl}--export-dynamic'
15340    # ancient GNU ld didn't support --whole-archive et. al.
15341    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15342	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15343      else
15344  	whole_archive_flag_spec=
15345    fi
15346    supports_anon_versioning=no
15347    case `$LD -v 2>/dev/null` in
15348      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15349      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15350      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15351      *\ 2.11.*) ;; # other 2.11 versions
15352      *) supports_anon_versioning=yes ;;
15353    esac
15354
15355    # See if GNU ld supports shared libraries.
15356    case $host_os in
15357    aix3* | aix4* | aix5*)
15358      # On AIX/PPC, the GNU linker is very broken
15359      if test "$host_cpu" != ia64; then
15360	ld_shlibs=no
15361	cat <<EOF 1>&2
15362
15363*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15364*** to be unable to reliably create shared libraries on AIX.
15365*** Therefore, libtool is disabling shared libraries support.  If you
15366*** really care for shared libraries, you may want to modify your PATH
15367*** so that a non-GNU linker is found, and then restart.
15368
15369EOF
15370      fi
15371      ;;
15372
15373    amigaos*)
15374      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)'
15375      hardcode_libdir_flag_spec='-L$libdir'
15376      hardcode_minus_L=yes
15377
15378      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15379      # that the semantics of dynamic libraries on AmigaOS, at least up
15380      # to version 4, is to share data among multiple programs linked
15381      # with the same dynamic library.  Since this doesn't match the
15382      # behavior of shared libraries on other platforms, we can't use
15383      # them.
15384      ld_shlibs=no
15385      ;;
15386
15387    beos*)
15388      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15389	allow_undefined_flag=unsupported
15390	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15391	# support --undefined.  This deserves some investigation.  FIXME
15392	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15393      else
15394	ld_shlibs=no
15395      fi
15396      ;;
15397
15398    cygwin* | mingw* | pw32*)
15399      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15400      # as there is no search path for DLLs.
15401      hardcode_libdir_flag_spec='-L$libdir'
15402      allow_undefined_flag=unsupported
15403      always_export_symbols=no
15404      enable_shared_with_static_runtimes=yes
15405      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15406
15407      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15408        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15409	# If the export-symbols file already is a .def file (1st line
15410	# is EXPORTS), use it as is; otherwise, prepend...
15411	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15412	  cp $export_symbols $output_objdir/$soname.def;
15413	else
15414	  echo EXPORTS > $output_objdir/$soname.def;
15415	  cat $export_symbols >> $output_objdir/$soname.def;
15416	fi~
15417	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15418      else
15419	ld_shlibs=no
15420      fi
15421      ;;
15422
15423    interix3*)
15424      hardcode_direct=no
15425      hardcode_shlibpath_var=no
15426      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15427      export_dynamic_flag_spec='${wl}-E'
15428      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15429      # Instead, shared libraries are loaded at an image base (0x10000000 by
15430      # default) and relocated if they conflict, which is a slow very memory
15431      # consuming and fragmenting process.  To avoid this, we pick a random,
15432      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15433      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15434      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15435      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'
15436      ;;
15437
15438    linux*)
15439      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15440	tmp_addflag=
15441	case $cc_basename,$host_cpu in
15442	pgcc*)				# Portland Group C compiler
15443	  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'
15444	  tmp_addflag=' $pic_flag'
15445	  ;;
15446	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
15447	  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'
15448	  tmp_addflag=' $pic_flag -Mnomain' ;;
15449	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
15450	  tmp_addflag=' -i_dynamic' ;;
15451	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15452	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15453	ifc* | ifort*)			# Intel Fortran compiler
15454	  tmp_addflag=' -nofor_main' ;;
15455	esac
15456	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15457
15458	if test $supports_anon_versioning = yes; then
15459	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15460  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15461  $echo "local: *; };" >> $output_objdir/$libname.ver~
15462	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15463	fi
15464      else
15465	ld_shlibs=no
15466      fi
15467      ;;
15468
15469    netbsd*)
15470      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15471	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15472	wlarc=
15473      else
15474	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15475	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15476      fi
15477      ;;
15478
15479    solaris*)
15480      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15481	ld_shlibs=no
15482	cat <<EOF 1>&2
15483
15484*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15485*** create shared libraries on Solaris systems.  Therefore, libtool
15486*** is disabling shared libraries support.  We urge you to upgrade GNU
15487*** binutils to release 2.9.1 or newer.  Another option is to modify
15488*** your PATH or compiler configuration so that the native linker is
15489*** used, and then restart.
15490
15491EOF
15492      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15493	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15494	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15495      else
15496	ld_shlibs=no
15497      fi
15498      ;;
15499
15500    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15501      case `$LD -v 2>&1` in
15502        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15503	ld_shlibs=no
15504	cat <<_LT_EOF 1>&2
15505
15506*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15507*** reliably create shared libraries on SCO systems.  Therefore, libtool
15508*** is disabling shared libraries support.  We urge you to upgrade GNU
15509*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15510*** your PATH or compiler configuration so that the native linker is
15511*** used, and then restart.
15512
15513_LT_EOF
15514	;;
15515	*)
15516	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15517	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15518	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15519	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15520	  else
15521	    ld_shlibs=no
15522	  fi
15523	;;
15524      esac
15525      ;;
15526
15527    sunos4*)
15528      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15529      wlarc=
15530      hardcode_direct=yes
15531      hardcode_shlibpath_var=no
15532      ;;
15533
15534    *)
15535      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15536	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15537	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15538      else
15539	ld_shlibs=no
15540      fi
15541      ;;
15542    esac
15543
15544    if test "$ld_shlibs" = no; then
15545      runpath_var=
15546      hardcode_libdir_flag_spec=
15547      export_dynamic_flag_spec=
15548      whole_archive_flag_spec=
15549    fi
15550  else
15551    # PORTME fill in a description of your system's linker (not GNU ld)
15552    case $host_os in
15553    aix3*)
15554      allow_undefined_flag=unsupported
15555      always_export_symbols=yes
15556      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'
15557      # Note: this linker hardcodes the directories in LIBPATH if there
15558      # are no directories specified by -L.
15559      hardcode_minus_L=yes
15560      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15561	# Neither direct hardcoding nor static linking is supported with a
15562	# broken collect2.
15563	hardcode_direct=unsupported
15564      fi
15565      ;;
15566
15567    aix4* | aix5*)
15568      if test "$host_cpu" = ia64; then
15569	# On IA64, the linker does run time linking by default, so we don't
15570	# have to do anything special.
15571	aix_use_runtimelinking=no
15572	exp_sym_flag='-Bexport'
15573	no_entry_flag=""
15574      else
15575	# If we're using GNU nm, then we don't want the "-C" option.
15576	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15577	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15578	  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'
15579	else
15580	  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'
15581	fi
15582	aix_use_runtimelinking=no
15583
15584	# Test if we are trying to use run time linking or normal
15585	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15586	# need to do runtime linking.
15587	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15588	  for ld_flag in $LDFLAGS; do
15589  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15590  	    aix_use_runtimelinking=yes
15591  	    break
15592  	  fi
15593	  done
15594	  ;;
15595	esac
15596
15597	exp_sym_flag='-bexport'
15598	no_entry_flag='-bnoentry'
15599      fi
15600
15601      # When large executables or shared objects are built, AIX ld can
15602      # have problems creating the table of contents.  If linking a library
15603      # or program results in "error TOC overflow" add -mminimal-toc to
15604      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15605      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15606
15607      archive_cmds=''
15608      hardcode_direct=yes
15609      hardcode_libdir_separator=':'
15610      link_all_deplibs=yes
15611
15612      if test "$GCC" = yes; then
15613	case $host_os in aix4.[012]|aix4.[012].*)
15614	# We only want to do this on AIX 4.2 and lower, the check
15615	# below for broken collect2 doesn't work under 4.3+
15616	  collect2name=`${CC} -print-prog-name=collect2`
15617	  if test -f "$collect2name" && \
15618  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15619	  then
15620  	  # We have reworked collect2
15621  	  hardcode_direct=yes
15622	  else
15623  	  # We have old collect2
15624  	  hardcode_direct=unsupported
15625  	  # It fails to find uninstalled libraries when the uninstalled
15626  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15627  	  # to unsupported forces relinking
15628  	  hardcode_minus_L=yes
15629  	  hardcode_libdir_flag_spec='-L$libdir'
15630  	  hardcode_libdir_separator=
15631	  fi
15632	  ;;
15633	esac
15634	shared_flag='-shared'
15635	if test "$aix_use_runtimelinking" = yes; then
15636	  shared_flag="$shared_flag "'${wl}-G'
15637	fi
15638      else
15639	# not using gcc
15640	if test "$host_cpu" = ia64; then
15641  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15642  	# chokes on -Wl,-G. The following line is correct:
15643	  shared_flag='-G'
15644	else
15645	  if test "$aix_use_runtimelinking" = yes; then
15646	    shared_flag='${wl}-G'
15647	  else
15648	    shared_flag='${wl}-bM:SRE'
15649	  fi
15650	fi
15651      fi
15652
15653      # It seems that -bexpall does not export symbols beginning with
15654      # underscore (_), so it is better to generate a list of symbols to export.
15655      always_export_symbols=yes
15656      if test "$aix_use_runtimelinking" = yes; then
15657	# Warning - without using the other runtime loading flags (-brtl),
15658	# -berok will link without error, but may produce a broken library.
15659	allow_undefined_flag='-berok'
15660       # Determine the default libpath from the value encoded in an empty executable.
15661       cat >conftest.$ac_ext <<_ACEOF
15662/* confdefs.h.  */
15663_ACEOF
15664cat confdefs.h >>conftest.$ac_ext
15665cat >>conftest.$ac_ext <<_ACEOF
15666/* end confdefs.h.  */
15667
15668int
15669main ()
15670{
15671
15672  ;
15673  return 0;
15674}
15675_ACEOF
15676rm -f conftest.$ac_objext conftest$ac_exeext
15677if { (ac_try="$ac_link"
15678case "(($ac_try" in
15679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15680  *) ac_try_echo=$ac_try;;
15681esac
15682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15683  (eval "$ac_link") 2>conftest.er1
15684  ac_status=$?
15685  grep -v '^ *+' conftest.er1 >conftest.err
15686  rm -f conftest.er1
15687  cat conftest.err >&5
15688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689  (exit $ac_status); } &&
15690	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15691  { (case "(($ac_try" in
15692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15693  *) ac_try_echo=$ac_try;;
15694esac
15695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15696  (eval "$ac_try") 2>&5
15697  ac_status=$?
15698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699  (exit $ac_status); }; } &&
15700	 { ac_try='test -s conftest$ac_exeext'
15701  { (case "(($ac_try" in
15702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703  *) ac_try_echo=$ac_try;;
15704esac
15705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15706  (eval "$ac_try") 2>&5
15707  ac_status=$?
15708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709  (exit $ac_status); }; }; then
15710
15711aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15712}'`
15713# Check for a 64-bit object if we didn't find anything.
15714if 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; }
15715}'`; fi
15716else
15717  echo "$as_me: failed program was:" >&5
15718sed 's/^/| /' conftest.$ac_ext >&5
15719
15720
15721fi
15722
15723rm -f core conftest.err conftest.$ac_objext \
15724      conftest$ac_exeext conftest.$ac_ext
15725if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15726
15727       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15728	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"
15729       else
15730	if test "$host_cpu" = ia64; then
15731	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15732	  allow_undefined_flag="-z nodefs"
15733	  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"
15734	else
15735	 # Determine the default libpath from the value encoded in an empty executable.
15736	 cat >conftest.$ac_ext <<_ACEOF
15737/* confdefs.h.  */
15738_ACEOF
15739cat confdefs.h >>conftest.$ac_ext
15740cat >>conftest.$ac_ext <<_ACEOF
15741/* end confdefs.h.  */
15742
15743int
15744main ()
15745{
15746
15747  ;
15748  return 0;
15749}
15750_ACEOF
15751rm -f conftest.$ac_objext conftest$ac_exeext
15752if { (ac_try="$ac_link"
15753case "(($ac_try" in
15754  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15755  *) ac_try_echo=$ac_try;;
15756esac
15757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15758  (eval "$ac_link") 2>conftest.er1
15759  ac_status=$?
15760  grep -v '^ *+' conftest.er1 >conftest.err
15761  rm -f conftest.er1
15762  cat conftest.err >&5
15763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764  (exit $ac_status); } &&
15765	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15766  { (case "(($ac_try" in
15767  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15768  *) ac_try_echo=$ac_try;;
15769esac
15770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15771  (eval "$ac_try") 2>&5
15772  ac_status=$?
15773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774  (exit $ac_status); }; } &&
15775	 { ac_try='test -s conftest$ac_exeext'
15776  { (case "(($ac_try" in
15777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15778  *) ac_try_echo=$ac_try;;
15779esac
15780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15781  (eval "$ac_try") 2>&5
15782  ac_status=$?
15783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784  (exit $ac_status); }; }; then
15785
15786aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15787}'`
15788# Check for a 64-bit object if we didn't find anything.
15789if 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; }
15790}'`; fi
15791else
15792  echo "$as_me: failed program was:" >&5
15793sed 's/^/| /' conftest.$ac_ext >&5
15794
15795
15796fi
15797
15798rm -f core conftest.err conftest.$ac_objext \
15799      conftest$ac_exeext conftest.$ac_ext
15800if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15801
15802	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15803	  # Warning - without using the other run time loading flags,
15804	  # -berok will link without error, but may produce a broken library.
15805	  no_undefined_flag=' ${wl}-bernotok'
15806	  allow_undefined_flag=' ${wl}-berok'
15807	  # Exported symbols can be pulled into shared objects from archives
15808	  whole_archive_flag_spec='$convenience'
15809	  archive_cmds_need_lc=yes
15810	  # This is similar to how AIX traditionally builds its shared libraries.
15811	  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'
15812	fi
15813      fi
15814      ;;
15815
15816    amigaos*)
15817      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)'
15818      hardcode_libdir_flag_spec='-L$libdir'
15819      hardcode_minus_L=yes
15820      # see comment about different semantics on the GNU ld section
15821      ld_shlibs=no
15822      ;;
15823
15824    bsdi[45]*)
15825      export_dynamic_flag_spec=-rdynamic
15826      ;;
15827
15828    cygwin* | mingw* | pw32*)
15829      # When not using gcc, we currently assume that we are using
15830      # Microsoft Visual C++.
15831      # hardcode_libdir_flag_spec is actually meaningless, as there is
15832      # no search path for DLLs.
15833      hardcode_libdir_flag_spec=' '
15834      allow_undefined_flag=unsupported
15835      # Tell ltmain to make .lib files, not .a files.
15836      libext=lib
15837      # Tell ltmain to make .dll files, not .so files.
15838      shrext_cmds=".dll"
15839      # FIXME: Setting linknames here is a bad hack.
15840      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15841      # The linker will automatically build a .lib file if we build a DLL.
15842      old_archive_From_new_cmds='true'
15843      # FIXME: Should let the user specify the lib program.
15844      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15845      fix_srcfile_path='`cygpath -w "$srcfile"`'
15846      enable_shared_with_static_runtimes=yes
15847      ;;
15848
15849    darwin* | rhapsody*)
15850      case $host_os in
15851        rhapsody* | darwin1.[012])
15852         allow_undefined_flag='${wl}-undefined ${wl}suppress'
15853         ;;
15854       *) # Darwin 1.3 on
15855         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15856           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15857         else
15858           case ${MACOSX_DEPLOYMENT_TARGET} in
15859             10.[012])
15860               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15861               ;;
15862             10.*)
15863               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15864               ;;
15865           esac
15866         fi
15867         ;;
15868      esac
15869      archive_cmds_need_lc=no
15870      hardcode_direct=no
15871      hardcode_automatic=yes
15872      hardcode_shlibpath_var=unsupported
15873      whole_archive_flag_spec=''
15874      link_all_deplibs=yes
15875    if test "$GCC" = yes ; then
15876    	output_verbose_link_cmd='echo'
15877        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15878      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15879      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15880      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}'
15881      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}'
15882    else
15883      case $cc_basename in
15884        xlc*)
15885         output_verbose_link_cmd='echo'
15886         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15887         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15888          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15889         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}'
15890          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}'
15891          ;;
15892       *)
15893         ld_shlibs=no
15894          ;;
15895      esac
15896    fi
15897      ;;
15898
15899    dgux*)
15900      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15901      hardcode_libdir_flag_spec='-L$libdir'
15902      hardcode_shlibpath_var=no
15903      ;;
15904
15905    freebsd1*)
15906      ld_shlibs=no
15907      ;;
15908
15909    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15910    # support.  Future versions do this automatically, but an explicit c++rt0.o
15911    # does not break anything, and helps significantly (at the cost of a little
15912    # extra space).
15913    freebsd2.2*)
15914      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15915      hardcode_libdir_flag_spec='-R$libdir'
15916      hardcode_direct=yes
15917      hardcode_shlibpath_var=no
15918      ;;
15919
15920    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15921    freebsd2*)
15922      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15923      hardcode_direct=yes
15924      hardcode_minus_L=yes
15925      hardcode_shlibpath_var=no
15926      ;;
15927
15928    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15929    freebsd* | kfreebsd*-gnu | dragonfly*)
15930      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15931      hardcode_libdir_flag_spec='-R$libdir'
15932      hardcode_direct=yes
15933      hardcode_shlibpath_var=no
15934      ;;
15935
15936    hpux9*)
15937      if test "$GCC" = yes; then
15938	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'
15939      else
15940	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'
15941      fi
15942      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15943      hardcode_libdir_separator=:
15944      hardcode_direct=yes
15945
15946      # hardcode_minus_L: Not really in the search PATH,
15947      # but as the default location of the library.
15948      hardcode_minus_L=yes
15949      export_dynamic_flag_spec='${wl}-E'
15950      ;;
15951
15952    hpux10*)
15953      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15954	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15955      else
15956	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15957      fi
15958      if test "$with_gnu_ld" = no; then
15959	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15960	hardcode_libdir_separator=:
15961
15962	hardcode_direct=yes
15963	export_dynamic_flag_spec='${wl}-E'
15964
15965	# hardcode_minus_L: Not really in the search PATH,
15966	# but as the default location of the library.
15967	hardcode_minus_L=yes
15968      fi
15969      ;;
15970
15971    hpux11*)
15972      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15973	case $host_cpu in
15974	hppa*64*)
15975	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15976	  ;;
15977	ia64*)
15978	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15979	  ;;
15980	*)
15981	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15982	  ;;
15983	esac
15984      else
15985	case $host_cpu in
15986	hppa*64*)
15987	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15988	  ;;
15989	ia64*)
15990	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15991	  ;;
15992	*)
15993	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15994	  ;;
15995	esac
15996      fi
15997      if test "$with_gnu_ld" = no; then
15998	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15999	hardcode_libdir_separator=:
16000
16001	case $host_cpu in
16002	hppa*64*|ia64*)
16003	  hardcode_libdir_flag_spec_ld='+b $libdir'
16004	  hardcode_direct=no
16005	  hardcode_shlibpath_var=no
16006	  ;;
16007	*)
16008	  hardcode_direct=yes
16009	  export_dynamic_flag_spec='${wl}-E'
16010
16011	  # hardcode_minus_L: Not really in the search PATH,
16012	  # but as the default location of the library.
16013	  hardcode_minus_L=yes
16014	  ;;
16015	esac
16016      fi
16017      ;;
16018
16019    irix5* | irix6* | nonstopux*)
16020      if test "$GCC" = yes; then
16021	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'
16022      else
16023	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'
16024	hardcode_libdir_flag_spec_ld='-rpath $libdir'
16025      fi
16026      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16027      hardcode_libdir_separator=:
16028      link_all_deplibs=yes
16029      ;;
16030
16031    netbsd*)
16032      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16033	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16034      else
16035	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16036      fi
16037      hardcode_libdir_flag_spec='-R$libdir'
16038      hardcode_direct=yes
16039      hardcode_shlibpath_var=no
16040      ;;
16041
16042    newsos6)
16043      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16044      hardcode_direct=yes
16045      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16046      hardcode_libdir_separator=:
16047      hardcode_shlibpath_var=no
16048      ;;
16049
16050    openbsd*)
16051      hardcode_direct=yes
16052      hardcode_shlibpath_var=no
16053      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16054	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16055	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16056	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16057	export_dynamic_flag_spec='${wl}-E'
16058      else
16059       case $host_os in
16060	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16061	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16062	   hardcode_libdir_flag_spec='-R$libdir'
16063	   ;;
16064	 *)
16065	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16066	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16067	   ;;
16068       esac
16069      fi
16070      ;;
16071
16072    os2*)
16073      hardcode_libdir_flag_spec='-L$libdir'
16074      hardcode_minus_L=yes
16075      allow_undefined_flag=unsupported
16076      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'
16077      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16078      ;;
16079
16080    osf3*)
16081      if test "$GCC" = yes; then
16082	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16083	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'
16084      else
16085	allow_undefined_flag=' -expect_unresolved \*'
16086	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'
16087      fi
16088      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16089      hardcode_libdir_separator=:
16090      ;;
16091
16092    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16093      if test "$GCC" = yes; then
16094	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16095	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'
16096	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16097      else
16098	allow_undefined_flag=' -expect_unresolved \*'
16099	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'
16100	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16101	$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'
16102
16103	# Both c and cxx compiler support -rpath directly
16104	hardcode_libdir_flag_spec='-rpath $libdir'
16105      fi
16106      hardcode_libdir_separator=:
16107      ;;
16108
16109    solaris*)
16110      no_undefined_flag=' -z text'
16111      if test "$GCC" = yes; then
16112	wlarc='${wl}'
16113	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16114	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16115	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16116      else
16117	wlarc=''
16118	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16119	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16120  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16121      fi
16122      hardcode_libdir_flag_spec='-R$libdir'
16123      hardcode_shlibpath_var=no
16124      case $host_os in
16125      solaris2.[0-5] | solaris2.[0-5].*) ;;
16126      *)
16127 	# The compiler driver will combine linker options so we
16128 	# cannot just pass the convience library names through
16129 	# without $wl, iff we do not link with $LD.
16130 	# Luckily, gcc supports the same syntax we need for Sun Studio.
16131 	# Supported since Solaris 2.6 (maybe 2.5.1?)
16132 	case $wlarc in
16133 	'')
16134 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16135 	*)
16136 	  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' ;;
16137 	esac ;;
16138      esac
16139      link_all_deplibs=yes
16140      ;;
16141
16142    sunos4*)
16143      if test "x$host_vendor" = xsequent; then
16144	# Use $CC to link under sequent, because it throws in some extra .o
16145	# files that make .init and .fini sections work.
16146	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16147      else
16148	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16149      fi
16150      hardcode_libdir_flag_spec='-L$libdir'
16151      hardcode_direct=yes
16152      hardcode_minus_L=yes
16153      hardcode_shlibpath_var=no
16154      ;;
16155
16156    sysv4)
16157      case $host_vendor in
16158	sni)
16159	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16160	  hardcode_direct=yes # is this really true???
16161	;;
16162	siemens)
16163	  ## LD is ld it makes a PLAMLIB
16164	  ## CC just makes a GrossModule.
16165	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16166	  reload_cmds='$CC -r -o $output$reload_objs'
16167	  hardcode_direct=no
16168        ;;
16169	motorola)
16170	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16171	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16172	;;
16173      esac
16174      runpath_var='LD_RUN_PATH'
16175      hardcode_shlibpath_var=no
16176      ;;
16177
16178    sysv4.3*)
16179      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16180      hardcode_shlibpath_var=no
16181      export_dynamic_flag_spec='-Bexport'
16182      ;;
16183
16184    sysv4*MP*)
16185      if test -d /usr/nec; then
16186	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16187	hardcode_shlibpath_var=no
16188	runpath_var=LD_RUN_PATH
16189	hardcode_runpath_var=yes
16190	ld_shlibs=yes
16191      fi
16192      ;;
16193
16194    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16195      no_undefined_flag='${wl}-z,text'
16196      archive_cmds_need_lc=no
16197      hardcode_shlibpath_var=no
16198      runpath_var='LD_RUN_PATH'
16199
16200      if test "$GCC" = yes; then
16201	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16202	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16203      else
16204	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16205	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16206      fi
16207      ;;
16208
16209    sysv5* | sco3.2v5* | sco5v6*)
16210      # Note: We can NOT use -z defs as we might desire, because we do not
16211      # link with -lc, and that would cause any symbols used from libc to
16212      # always be unresolved, which means just about no library would
16213      # ever link correctly.  If we're not using GNU ld we use -z text
16214      # though, which does catch some bad symbols but isn't as heavy-handed
16215      # as -z defs.
16216      no_undefined_flag='${wl}-z,text'
16217      allow_undefined_flag='${wl}-z,nodefs'
16218      archive_cmds_need_lc=no
16219      hardcode_shlibpath_var=no
16220      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16221      hardcode_libdir_separator=':'
16222      link_all_deplibs=yes
16223      export_dynamic_flag_spec='${wl}-Bexport'
16224      runpath_var='LD_RUN_PATH'
16225
16226      if test "$GCC" = yes; then
16227	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16228	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16229      else
16230	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16231	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16232      fi
16233      ;;
16234
16235    uts4*)
16236      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16237      hardcode_libdir_flag_spec='-L$libdir'
16238      hardcode_shlibpath_var=no
16239      ;;
16240
16241    *)
16242      ld_shlibs=no
16243      ;;
16244    esac
16245  fi
16246
16247{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16248echo "${ECHO_T}$ld_shlibs" >&6; }
16249test "$ld_shlibs" = no && can_build_shared=no
16250
16251#
16252# Do we need to explicitly link libc?
16253#
16254case "x$archive_cmds_need_lc" in
16255x|xyes)
16256  # Assume -lc should be added
16257  archive_cmds_need_lc=yes
16258
16259  if test "$enable_shared" = yes && test "$GCC" = yes; then
16260    case $archive_cmds in
16261    *'~'*)
16262      # FIXME: we may have to deal with multi-command sequences.
16263      ;;
16264    '$CC '*)
16265      # Test whether the compiler implicitly links with -lc since on some
16266      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16267      # to ld, don't add -lc before -lgcc.
16268      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16269echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16270      $rm conftest*
16271      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16272
16273      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16274  (eval $ac_compile) 2>&5
16275  ac_status=$?
16276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277  (exit $ac_status); } 2>conftest.err; then
16278        soname=conftest
16279        lib=conftest
16280        libobjs=conftest.$ac_objext
16281        deplibs=
16282        wl=$lt_prog_compiler_wl
16283	pic_flag=$lt_prog_compiler_pic
16284        compiler_flags=-v
16285        linker_flags=-v
16286        verstring=
16287        output_objdir=.
16288        libname=conftest
16289        lt_save_allow_undefined_flag=$allow_undefined_flag
16290        allow_undefined_flag=
16291        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16292  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16293  ac_status=$?
16294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295  (exit $ac_status); }
16296        then
16297	  archive_cmds_need_lc=no
16298        else
16299	  archive_cmds_need_lc=yes
16300        fi
16301        allow_undefined_flag=$lt_save_allow_undefined_flag
16302      else
16303        cat conftest.err 1>&5
16304      fi
16305      $rm conftest*
16306      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16307echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16308      ;;
16309    esac
16310  fi
16311  ;;
16312esac
16313
16314{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16315echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16316library_names_spec=
16317libname_spec='lib$name'
16318soname_spec=
16319shrext_cmds=".so"
16320postinstall_cmds=
16321postuninstall_cmds=
16322finish_cmds=
16323finish_eval=
16324shlibpath_var=
16325shlibpath_overrides_runpath=unknown
16326version_type=none
16327dynamic_linker="$host_os ld.so"
16328sys_lib_dlsearch_path_spec="/lib /usr/lib"
16329if test "$GCC" = yes; then
16330  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16331  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16332    # if the path contains ";" then we assume it to be the separator
16333    # otherwise default to the standard path separator (i.e. ":") - it is
16334    # assumed that no part of a normal pathname contains ";" but that should
16335    # okay in the real world where ";" in dirpaths is itself problematic.
16336    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16337  else
16338    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16339  fi
16340else
16341  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16342fi
16343need_lib_prefix=unknown
16344hardcode_into_libs=no
16345
16346# when you set need_version to no, make sure it does not cause -set_version
16347# flags to be left without arguments
16348need_version=unknown
16349
16350case $host_os in
16351aix3*)
16352  version_type=linux
16353  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16354  shlibpath_var=LIBPATH
16355
16356  # AIX 3 has no versioning support, so we append a major version to the name.
16357  soname_spec='${libname}${release}${shared_ext}$major'
16358  ;;
16359
16360aix4* | aix5*)
16361  version_type=linux
16362  need_lib_prefix=no
16363  need_version=no
16364  hardcode_into_libs=yes
16365  if test "$host_cpu" = ia64; then
16366    # AIX 5 supports IA64
16367    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16368    shlibpath_var=LD_LIBRARY_PATH
16369  else
16370    # With GCC up to 2.95.x, collect2 would create an import file
16371    # for dependence libraries.  The import file would start with
16372    # the line `#! .'.  This would cause the generated library to
16373    # depend on `.', always an invalid library.  This was fixed in
16374    # development snapshots of GCC prior to 3.0.
16375    case $host_os in
16376      aix4 | aix4.[01] | aix4.[01].*)
16377      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16378	   echo ' yes '
16379	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16380	:
16381      else
16382	can_build_shared=no
16383      fi
16384      ;;
16385    esac
16386    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16387    # soname into executable. Probably we can add versioning support to
16388    # collect2, so additional links can be useful in future.
16389    if test "$aix_use_runtimelinking" = yes; then
16390      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16391      # instead of lib<name>.a to let people know that these are not
16392      # typical AIX shared libraries.
16393      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16394    else
16395      # We preserve .a as extension for shared libraries through AIX4.2
16396      # and later when we are not doing run time linking.
16397      library_names_spec='${libname}${release}.a $libname.a'
16398      soname_spec='${libname}${release}${shared_ext}$major'
16399    fi
16400    shlibpath_var=LIBPATH
16401  fi
16402  ;;
16403
16404amigaos*)
16405  library_names_spec='$libname.ixlibrary $libname.a'
16406  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16407  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'
16408  ;;
16409
16410beos*)
16411  library_names_spec='${libname}${shared_ext}'
16412  dynamic_linker="$host_os ld.so"
16413  shlibpath_var=LIBRARY_PATH
16414  ;;
16415
16416bsdi[45]*)
16417  version_type=linux
16418  need_version=no
16419  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16420  soname_spec='${libname}${release}${shared_ext}$major'
16421  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16422  shlibpath_var=LD_LIBRARY_PATH
16423  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16424  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16425  # the default ld.so.conf also contains /usr/contrib/lib and
16426  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16427  # libtool to hard-code these into programs
16428  ;;
16429
16430cygwin* | mingw* | pw32*)
16431  version_type=windows
16432  shrext_cmds=".dll"
16433  need_version=no
16434  need_lib_prefix=no
16435
16436  case $GCC,$host_os in
16437  yes,cygwin* | yes,mingw* | yes,pw32*)
16438    library_names_spec='$libname.dll.a'
16439    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16440    postinstall_cmds='base_file=`basename \${file}`~
16441      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16442      dldir=$destdir/`dirname \$dlpath`~
16443      test -d \$dldir || mkdir -p \$dldir~
16444      $install_prog $dir/$dlname \$dldir/$dlname~
16445      chmod a+x \$dldir/$dlname'
16446    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16447      dlpath=$dir/\$dldll~
16448       $rm \$dlpath'
16449    shlibpath_overrides_runpath=yes
16450
16451    case $host_os in
16452    cygwin*)
16453      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16454      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16455      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16456      ;;
16457    mingw*)
16458      # MinGW DLLs use traditional 'lib' prefix
16459      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16460      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16461      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16462        # It is most probably a Windows format PATH printed by
16463        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16464        # path with ; separators, and with drive letters. We can handle the
16465        # drive letters (cygwin fileutils understands them), so leave them,
16466        # especially as we might pass files found there to a mingw objdump,
16467        # which wouldn't understand a cygwinified path. Ahh.
16468        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16469      else
16470        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16471      fi
16472      ;;
16473    pw32*)
16474      # pw32 DLLs use 'pw' prefix rather than 'lib'
16475      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16476      ;;
16477    esac
16478    ;;
16479
16480  *)
16481    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16482    ;;
16483  esac
16484  dynamic_linker='Win32 ld.exe'
16485  # FIXME: first we should search . and the directory the executable is in
16486  shlibpath_var=PATH
16487  ;;
16488
16489darwin* | rhapsody*)
16490  dynamic_linker="$host_os dyld"
16491  version_type=darwin
16492  need_lib_prefix=no
16493  need_version=no
16494  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16495  soname_spec='${libname}${release}${major}$shared_ext'
16496  shlibpath_overrides_runpath=yes
16497  shlibpath_var=DYLD_LIBRARY_PATH
16498  shrext_cmds='.dylib'
16499  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16500  if test "$GCC" = yes; then
16501    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"`
16502  else
16503    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16504  fi
16505  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16506  ;;
16507
16508dgux*)
16509  version_type=linux
16510  need_lib_prefix=no
16511  need_version=no
16512  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16513  soname_spec='${libname}${release}${shared_ext}$major'
16514  shlibpath_var=LD_LIBRARY_PATH
16515  ;;
16516
16517freebsd1*)
16518  dynamic_linker=no
16519  ;;
16520
16521kfreebsd*-gnu)
16522  version_type=linux
16523  need_lib_prefix=no
16524  need_version=no
16525  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16526  soname_spec='${libname}${release}${shared_ext}$major'
16527  shlibpath_var=LD_LIBRARY_PATH
16528  shlibpath_overrides_runpath=no
16529  hardcode_into_libs=yes
16530  dynamic_linker='GNU ld.so'
16531  ;;
16532
16533freebsd* | dragonfly*)
16534  # DragonFly does not have aout.  When/if they implement a new
16535  # versioning mechanism, adjust this.
16536  if test -x /usr/bin/objformat; then
16537    objformat=`/usr/bin/objformat`
16538  else
16539    case $host_os in
16540    freebsd[123]*) objformat=aout ;;
16541    *) objformat=elf ;;
16542    esac
16543  fi
16544  version_type=freebsd-$objformat
16545  case $version_type in
16546    freebsd-elf*)
16547      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16548      need_version=no
16549      need_lib_prefix=no
16550      ;;
16551    freebsd-*)
16552      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16553      need_version=yes
16554      ;;
16555  esac
16556  shlibpath_var=LD_LIBRARY_PATH
16557  case $host_os in
16558  freebsd2*)
16559    shlibpath_overrides_runpath=yes
16560    ;;
16561  freebsd3.[01]* | freebsdelf3.[01]*)
16562    shlibpath_overrides_runpath=yes
16563    hardcode_into_libs=yes
16564    ;;
16565  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16566  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16567    shlibpath_overrides_runpath=no
16568    hardcode_into_libs=yes
16569    ;;
16570  freebsd*) # from 4.6 on
16571    shlibpath_overrides_runpath=yes
16572    hardcode_into_libs=yes
16573    ;;
16574  esac
16575  ;;
16576
16577gnu*)
16578  version_type=linux
16579  need_lib_prefix=no
16580  need_version=no
16581  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16582  soname_spec='${libname}${release}${shared_ext}$major'
16583  shlibpath_var=LD_LIBRARY_PATH
16584  hardcode_into_libs=yes
16585  ;;
16586
16587hpux9* | hpux10* | hpux11*)
16588  # Give a soname corresponding to the major version so that dld.sl refuses to
16589  # link against other versions.
16590  version_type=sunos
16591  need_lib_prefix=no
16592  need_version=no
16593  case $host_cpu in
16594  ia64*)
16595    shrext_cmds='.so'
16596    hardcode_into_libs=yes
16597    dynamic_linker="$host_os dld.so"
16598    shlibpath_var=LD_LIBRARY_PATH
16599    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16600    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16601    soname_spec='${libname}${release}${shared_ext}$major'
16602    if test "X$HPUX_IA64_MODE" = X32; then
16603      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16604    else
16605      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16606    fi
16607    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16608    ;;
16609   hppa*64*)
16610     shrext_cmds='.sl'
16611     hardcode_into_libs=yes
16612     dynamic_linker="$host_os dld.sl"
16613     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16614     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16615     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16616     soname_spec='${libname}${release}${shared_ext}$major'
16617     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16618     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16619     ;;
16620   *)
16621    shrext_cmds='.sl'
16622    dynamic_linker="$host_os dld.sl"
16623    shlibpath_var=SHLIB_PATH
16624    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16625    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16626    soname_spec='${libname}${release}${shared_ext}$major'
16627    ;;
16628  esac
16629  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16630  postinstall_cmds='chmod 555 $lib'
16631  ;;
16632
16633interix3*)
16634  version_type=linux
16635  need_lib_prefix=no
16636  need_version=no
16637  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16638  soname_spec='${libname}${release}${shared_ext}$major'
16639  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16640  shlibpath_var=LD_LIBRARY_PATH
16641  shlibpath_overrides_runpath=no
16642  hardcode_into_libs=yes
16643  ;;
16644
16645irix5* | irix6* | nonstopux*)
16646  case $host_os in
16647    nonstopux*) version_type=nonstopux ;;
16648    *)
16649	if test "$lt_cv_prog_gnu_ld" = yes; then
16650		version_type=linux
16651	else
16652		version_type=irix
16653	fi ;;
16654  esac
16655  need_lib_prefix=no
16656  need_version=no
16657  soname_spec='${libname}${release}${shared_ext}$major'
16658  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16659  case $host_os in
16660  irix5* | nonstopux*)
16661    libsuff= shlibsuff=
16662    ;;
16663  *)
16664    case $LD in # libtool.m4 will add one of these switches to LD
16665    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16666      libsuff= shlibsuff= libmagic=32-bit;;
16667    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16668      libsuff=32 shlibsuff=N32 libmagic=N32;;
16669    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16670      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16671    *) libsuff= shlibsuff= libmagic=never-match;;
16672    esac
16673    ;;
16674  esac
16675  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16676  shlibpath_overrides_runpath=no
16677  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16678  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16679  hardcode_into_libs=yes
16680  ;;
16681
16682# No shared lib support for Linux oldld, aout, or coff.
16683linux*oldld* | linux*aout* | linux*coff*)
16684  dynamic_linker=no
16685  ;;
16686
16687# This must be Linux ELF.
16688linux*)
16689  version_type=linux
16690  need_lib_prefix=no
16691  need_version=no
16692  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16693  soname_spec='${libname}${release}${shared_ext}$major'
16694  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16695  shlibpath_var=LD_LIBRARY_PATH
16696  shlibpath_overrides_runpath=no
16697  # This implies no fast_install, which is unacceptable.
16698  # Some rework will be needed to allow for fast_install
16699  # before this can be enabled.
16700  hardcode_into_libs=yes
16701
16702  # Append ld.so.conf contents to the search path
16703  if test -f /etc/ld.so.conf; then
16704    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' ' '`
16705    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16706  fi
16707
16708  # We used to test for /lib/ld.so.1 and disable shared libraries on
16709  # powerpc, because MkLinux only supported shared libraries with the
16710  # GNU dynamic linker.  Since this was broken with cross compilers,
16711  # most powerpc-linux boxes support dynamic linking these days and
16712  # people can always --disable-shared, the test was removed, and we
16713  # assume the GNU/Linux dynamic linker is in use.
16714  dynamic_linker='GNU/Linux ld.so'
16715  ;;
16716
16717knetbsd*-gnu)
16718  version_type=linux
16719  need_lib_prefix=no
16720  need_version=no
16721  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16722  soname_spec='${libname}${release}${shared_ext}$major'
16723  shlibpath_var=LD_LIBRARY_PATH
16724  shlibpath_overrides_runpath=no
16725  hardcode_into_libs=yes
16726  dynamic_linker='GNU ld.so'
16727  ;;
16728
16729netbsd*)
16730  version_type=sunos
16731  need_lib_prefix=no
16732  need_version=no
16733  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16734    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16735    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16736    dynamic_linker='NetBSD (a.out) ld.so'
16737  else
16738    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16739    soname_spec='${libname}${release}${shared_ext}$major'
16740    dynamic_linker='NetBSD ld.elf_so'
16741  fi
16742  shlibpath_var=LD_LIBRARY_PATH
16743  shlibpath_overrides_runpath=yes
16744  hardcode_into_libs=yes
16745  ;;
16746
16747newsos6)
16748  version_type=linux
16749  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16750  shlibpath_var=LD_LIBRARY_PATH
16751  shlibpath_overrides_runpath=yes
16752  ;;
16753
16754nto-qnx*)
16755  version_type=linux
16756  need_lib_prefix=no
16757  need_version=no
16758  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16759  soname_spec='${libname}${release}${shared_ext}$major'
16760  shlibpath_var=LD_LIBRARY_PATH
16761  shlibpath_overrides_runpath=yes
16762  ;;
16763
16764openbsd*)
16765  version_type=sunos
16766  sys_lib_dlsearch_path_spec="/usr/lib"
16767  need_lib_prefix=no
16768  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16769  case $host_os in
16770    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16771    *)                         need_version=no  ;;
16772  esac
16773  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16774  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16775  shlibpath_var=LD_LIBRARY_PATH
16776  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16777    case $host_os in
16778      openbsd2.[89] | openbsd2.[89].*)
16779	shlibpath_overrides_runpath=no
16780	;;
16781      *)
16782	shlibpath_overrides_runpath=yes
16783	;;
16784      esac
16785  else
16786    shlibpath_overrides_runpath=yes
16787  fi
16788  ;;
16789
16790os2*)
16791  libname_spec='$name'
16792  shrext_cmds=".dll"
16793  need_lib_prefix=no
16794  library_names_spec='$libname${shared_ext} $libname.a'
16795  dynamic_linker='OS/2 ld.exe'
16796  shlibpath_var=LIBPATH
16797  ;;
16798
16799osf3* | osf4* | osf5*)
16800  version_type=osf
16801  need_lib_prefix=no
16802  need_version=no
16803  soname_spec='${libname}${release}${shared_ext}$major'
16804  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16805  shlibpath_var=LD_LIBRARY_PATH
16806  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16807  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16808  ;;
16809
16810solaris*)
16811  version_type=linux
16812  need_lib_prefix=no
16813  need_version=no
16814  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16815  soname_spec='${libname}${release}${shared_ext}$major'
16816  shlibpath_var=LD_LIBRARY_PATH
16817  shlibpath_overrides_runpath=yes
16818  hardcode_into_libs=yes
16819  # ldd complains unless libraries are executable
16820  postinstall_cmds='chmod +x $lib'
16821  ;;
16822
16823sunos4*)
16824  version_type=sunos
16825  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16826  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16827  shlibpath_var=LD_LIBRARY_PATH
16828  shlibpath_overrides_runpath=yes
16829  if test "$with_gnu_ld" = yes; then
16830    need_lib_prefix=no
16831  fi
16832  need_version=yes
16833  ;;
16834
16835sysv4 | sysv4.3*)
16836  version_type=linux
16837  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16838  soname_spec='${libname}${release}${shared_ext}$major'
16839  shlibpath_var=LD_LIBRARY_PATH
16840  case $host_vendor in
16841    sni)
16842      shlibpath_overrides_runpath=no
16843      need_lib_prefix=no
16844      export_dynamic_flag_spec='${wl}-Blargedynsym'
16845      runpath_var=LD_RUN_PATH
16846      ;;
16847    siemens)
16848      need_lib_prefix=no
16849      ;;
16850    motorola)
16851      need_lib_prefix=no
16852      need_version=no
16853      shlibpath_overrides_runpath=no
16854      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16855      ;;
16856  esac
16857  ;;
16858
16859sysv4*MP*)
16860  if test -d /usr/nec ;then
16861    version_type=linux
16862    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16863    soname_spec='$libname${shared_ext}.$major'
16864    shlibpath_var=LD_LIBRARY_PATH
16865  fi
16866  ;;
16867
16868sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16869  version_type=freebsd-elf
16870  need_lib_prefix=no
16871  need_version=no
16872  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16873  soname_spec='${libname}${release}${shared_ext}$major'
16874  shlibpath_var=LD_LIBRARY_PATH
16875  hardcode_into_libs=yes
16876  if test "$with_gnu_ld" = yes; then
16877    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16878    shlibpath_overrides_runpath=no
16879  else
16880    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16881    shlibpath_overrides_runpath=yes
16882    case $host_os in
16883      sco3.2v5*)
16884        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16885	;;
16886    esac
16887  fi
16888  sys_lib_dlsearch_path_spec='/usr/lib'
16889  ;;
16890
16891uts4*)
16892  version_type=linux
16893  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16894  soname_spec='${libname}${release}${shared_ext}$major'
16895  shlibpath_var=LD_LIBRARY_PATH
16896  ;;
16897
16898*)
16899  dynamic_linker=no
16900  ;;
16901esac
16902{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16903echo "${ECHO_T}$dynamic_linker" >&6; }
16904test "$dynamic_linker" = no && can_build_shared=no
16905
16906variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16907if test "$GCC" = yes; then
16908  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16909fi
16910
16911{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16912echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16913hardcode_action=
16914if test -n "$hardcode_libdir_flag_spec" || \
16915   test -n "$runpath_var" || \
16916   test "X$hardcode_automatic" = "Xyes" ; then
16917
16918  # We can hardcode non-existant directories.
16919  if test "$hardcode_direct" != no &&
16920     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16921     # have to relink, otherwise we might link with an installed library
16922     # when we should be linking with a yet-to-be-installed one
16923     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16924     test "$hardcode_minus_L" != no; then
16925    # Linking always hardcodes the temporary library directory.
16926    hardcode_action=relink
16927  else
16928    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16929    hardcode_action=immediate
16930  fi
16931else
16932  # We cannot hardcode anything, or else we can only hardcode existing
16933  # directories.
16934  hardcode_action=unsupported
16935fi
16936{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16937echo "${ECHO_T}$hardcode_action" >&6; }
16938
16939if test "$hardcode_action" = relink; then
16940  # Fast installation is not supported
16941  enable_fast_install=no
16942elif test "$shlibpath_overrides_runpath" = yes ||
16943     test "$enable_shared" = no; then
16944  # Fast installation is not necessary
16945  enable_fast_install=needless
16946fi
16947
16948striplib=
16949old_striplib=
16950{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16951echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16952if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16953  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16954  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16955  { echo "$as_me:$LINENO: result: yes" >&5
16956echo "${ECHO_T}yes" >&6; }
16957else
16958# FIXME - insert some real tests, host_os isn't really good enough
16959  case $host_os in
16960   darwin*)
16961       if test -n "$STRIP" ; then
16962         striplib="$STRIP -x"
16963         { echo "$as_me:$LINENO: result: yes" >&5
16964echo "${ECHO_T}yes" >&6; }
16965       else
16966  { echo "$as_me:$LINENO: result: no" >&5
16967echo "${ECHO_T}no" >&6; }
16968fi
16969       ;;
16970   *)
16971  { echo "$as_me:$LINENO: result: no" >&5
16972echo "${ECHO_T}no" >&6; }
16973    ;;
16974  esac
16975fi
16976
16977if test "x$enable_dlopen" != xyes; then
16978  enable_dlopen=unknown
16979  enable_dlopen_self=unknown
16980  enable_dlopen_self_static=unknown
16981else
16982  lt_cv_dlopen=no
16983  lt_cv_dlopen_libs=
16984
16985  case $host_os in
16986  beos*)
16987    lt_cv_dlopen="load_add_on"
16988    lt_cv_dlopen_libs=
16989    lt_cv_dlopen_self=yes
16990    ;;
16991
16992  mingw* | pw32*)
16993    lt_cv_dlopen="LoadLibrary"
16994    lt_cv_dlopen_libs=
16995   ;;
16996
16997  cygwin*)
16998    lt_cv_dlopen="dlopen"
16999    lt_cv_dlopen_libs=
17000   ;;
17001
17002  darwin*)
17003  # if libdl is installed we need to link against it
17004    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17005echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17006if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17007  echo $ECHO_N "(cached) $ECHO_C" >&6
17008else
17009  ac_check_lib_save_LIBS=$LIBS
17010LIBS="-ldl  $LIBS"
17011cat >conftest.$ac_ext <<_ACEOF
17012/* confdefs.h.  */
17013_ACEOF
17014cat confdefs.h >>conftest.$ac_ext
17015cat >>conftest.$ac_ext <<_ACEOF
17016/* end confdefs.h.  */
17017
17018/* Override any GCC internal prototype to avoid an error.
17019   Use char because int might match the return type of a GCC
17020   builtin and then its argument prototype would still apply.  */
17021#ifdef __cplusplus
17022extern "C"
17023#endif
17024char dlopen ();
17025int
17026main ()
17027{
17028return dlopen ();
17029  ;
17030  return 0;
17031}
17032_ACEOF
17033rm -f conftest.$ac_objext conftest$ac_exeext
17034if { (ac_try="$ac_link"
17035case "(($ac_try" in
17036  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17037  *) ac_try_echo=$ac_try;;
17038esac
17039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17040  (eval "$ac_link") 2>conftest.er1
17041  ac_status=$?
17042  grep -v '^ *+' conftest.er1 >conftest.err
17043  rm -f conftest.er1
17044  cat conftest.err >&5
17045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046  (exit $ac_status); } &&
17047	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17048  { (case "(($ac_try" in
17049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17050  *) ac_try_echo=$ac_try;;
17051esac
17052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17053  (eval "$ac_try") 2>&5
17054  ac_status=$?
17055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056  (exit $ac_status); }; } &&
17057	 { ac_try='test -s conftest$ac_exeext'
17058  { (case "(($ac_try" in
17059  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17060  *) ac_try_echo=$ac_try;;
17061esac
17062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17063  (eval "$ac_try") 2>&5
17064  ac_status=$?
17065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066  (exit $ac_status); }; }; then
17067  ac_cv_lib_dl_dlopen=yes
17068else
17069  echo "$as_me: failed program was:" >&5
17070sed 's/^/| /' conftest.$ac_ext >&5
17071
17072	ac_cv_lib_dl_dlopen=no
17073fi
17074
17075rm -f core conftest.err conftest.$ac_objext \
17076      conftest$ac_exeext conftest.$ac_ext
17077LIBS=$ac_check_lib_save_LIBS
17078fi
17079{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17080echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17081if test $ac_cv_lib_dl_dlopen = yes; then
17082  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17083else
17084
17085    lt_cv_dlopen="dyld"
17086    lt_cv_dlopen_libs=
17087    lt_cv_dlopen_self=yes
17088
17089fi
17090
17091   ;;
17092
17093  *)
17094    { echo "$as_me:$LINENO: checking for shl_load" >&5
17095echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17096if test "${ac_cv_func_shl_load+set}" = set; then
17097  echo $ECHO_N "(cached) $ECHO_C" >&6
17098else
17099  cat >conftest.$ac_ext <<_ACEOF
17100/* confdefs.h.  */
17101_ACEOF
17102cat confdefs.h >>conftest.$ac_ext
17103cat >>conftest.$ac_ext <<_ACEOF
17104/* end confdefs.h.  */
17105/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17106   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17107#define shl_load innocuous_shl_load
17108
17109/* System header to define __stub macros and hopefully few prototypes,
17110    which can conflict with char shl_load (); below.
17111    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17112    <limits.h> exists even on freestanding compilers.  */
17113
17114#ifdef __STDC__
17115# include <limits.h>
17116#else
17117# include <assert.h>
17118#endif
17119
17120#undef shl_load
17121
17122/* Override any GCC internal prototype to avoid an error.
17123   Use char because int might match the return type of a GCC
17124   builtin and then its argument prototype would still apply.  */
17125#ifdef __cplusplus
17126extern "C"
17127#endif
17128char shl_load ();
17129/* The GNU C library defines this for functions which it implements
17130    to always fail with ENOSYS.  Some functions are actually named
17131    something starting with __ and the normal name is an alias.  */
17132#if defined __stub_shl_load || defined __stub___shl_load
17133choke me
17134#endif
17135
17136int
17137main ()
17138{
17139return shl_load ();
17140  ;
17141  return 0;
17142}
17143_ACEOF
17144rm -f conftest.$ac_objext conftest$ac_exeext
17145if { (ac_try="$ac_link"
17146case "(($ac_try" in
17147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17148  *) ac_try_echo=$ac_try;;
17149esac
17150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17151  (eval "$ac_link") 2>conftest.er1
17152  ac_status=$?
17153  grep -v '^ *+' conftest.er1 >conftest.err
17154  rm -f conftest.er1
17155  cat conftest.err >&5
17156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157  (exit $ac_status); } &&
17158	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17159  { (case "(($ac_try" in
17160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17161  *) ac_try_echo=$ac_try;;
17162esac
17163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17164  (eval "$ac_try") 2>&5
17165  ac_status=$?
17166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167  (exit $ac_status); }; } &&
17168	 { ac_try='test -s conftest$ac_exeext'
17169  { (case "(($ac_try" in
17170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17171  *) ac_try_echo=$ac_try;;
17172esac
17173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17174  (eval "$ac_try") 2>&5
17175  ac_status=$?
17176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177  (exit $ac_status); }; }; then
17178  ac_cv_func_shl_load=yes
17179else
17180  echo "$as_me: failed program was:" >&5
17181sed 's/^/| /' conftest.$ac_ext >&5
17182
17183	ac_cv_func_shl_load=no
17184fi
17185
17186rm -f core conftest.err conftest.$ac_objext \
17187      conftest$ac_exeext conftest.$ac_ext
17188fi
17189{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17190echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17191if test $ac_cv_func_shl_load = yes; then
17192  lt_cv_dlopen="shl_load"
17193else
17194  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17195echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17196if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17197  echo $ECHO_N "(cached) $ECHO_C" >&6
17198else
17199  ac_check_lib_save_LIBS=$LIBS
17200LIBS="-ldld  $LIBS"
17201cat >conftest.$ac_ext <<_ACEOF
17202/* confdefs.h.  */
17203_ACEOF
17204cat confdefs.h >>conftest.$ac_ext
17205cat >>conftest.$ac_ext <<_ACEOF
17206/* end confdefs.h.  */
17207
17208/* Override any GCC internal prototype to avoid an error.
17209   Use char because int might match the return type of a GCC
17210   builtin and then its argument prototype would still apply.  */
17211#ifdef __cplusplus
17212extern "C"
17213#endif
17214char shl_load ();
17215int
17216main ()
17217{
17218return shl_load ();
17219  ;
17220  return 0;
17221}
17222_ACEOF
17223rm -f conftest.$ac_objext conftest$ac_exeext
17224if { (ac_try="$ac_link"
17225case "(($ac_try" in
17226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17227  *) ac_try_echo=$ac_try;;
17228esac
17229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17230  (eval "$ac_link") 2>conftest.er1
17231  ac_status=$?
17232  grep -v '^ *+' conftest.er1 >conftest.err
17233  rm -f conftest.er1
17234  cat conftest.err >&5
17235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236  (exit $ac_status); } &&
17237	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17238  { (case "(($ac_try" in
17239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17240  *) ac_try_echo=$ac_try;;
17241esac
17242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17243  (eval "$ac_try") 2>&5
17244  ac_status=$?
17245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246  (exit $ac_status); }; } &&
17247	 { ac_try='test -s conftest$ac_exeext'
17248  { (case "(($ac_try" in
17249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17250  *) ac_try_echo=$ac_try;;
17251esac
17252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17253  (eval "$ac_try") 2>&5
17254  ac_status=$?
17255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256  (exit $ac_status); }; }; then
17257  ac_cv_lib_dld_shl_load=yes
17258else
17259  echo "$as_me: failed program was:" >&5
17260sed 's/^/| /' conftest.$ac_ext >&5
17261
17262	ac_cv_lib_dld_shl_load=no
17263fi
17264
17265rm -f core conftest.err conftest.$ac_objext \
17266      conftest$ac_exeext conftest.$ac_ext
17267LIBS=$ac_check_lib_save_LIBS
17268fi
17269{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17270echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17271if test $ac_cv_lib_dld_shl_load = yes; then
17272  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17273else
17274  { echo "$as_me:$LINENO: checking for dlopen" >&5
17275echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17276if test "${ac_cv_func_dlopen+set}" = set; then
17277  echo $ECHO_N "(cached) $ECHO_C" >&6
17278else
17279  cat >conftest.$ac_ext <<_ACEOF
17280/* confdefs.h.  */
17281_ACEOF
17282cat confdefs.h >>conftest.$ac_ext
17283cat >>conftest.$ac_ext <<_ACEOF
17284/* end confdefs.h.  */
17285/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17286   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17287#define dlopen innocuous_dlopen
17288
17289/* System header to define __stub macros and hopefully few prototypes,
17290    which can conflict with char dlopen (); below.
17291    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17292    <limits.h> exists even on freestanding compilers.  */
17293
17294#ifdef __STDC__
17295# include <limits.h>
17296#else
17297# include <assert.h>
17298#endif
17299
17300#undef dlopen
17301
17302/* Override any GCC internal prototype to avoid an error.
17303   Use char because int might match the return type of a GCC
17304   builtin and then its argument prototype would still apply.  */
17305#ifdef __cplusplus
17306extern "C"
17307#endif
17308char dlopen ();
17309/* The GNU C library defines this for functions which it implements
17310    to always fail with ENOSYS.  Some functions are actually named
17311    something starting with __ and the normal name is an alias.  */
17312#if defined __stub_dlopen || defined __stub___dlopen
17313choke me
17314#endif
17315
17316int
17317main ()
17318{
17319return dlopen ();
17320  ;
17321  return 0;
17322}
17323_ACEOF
17324rm -f conftest.$ac_objext conftest$ac_exeext
17325if { (ac_try="$ac_link"
17326case "(($ac_try" in
17327  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17328  *) ac_try_echo=$ac_try;;
17329esac
17330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17331  (eval "$ac_link") 2>conftest.er1
17332  ac_status=$?
17333  grep -v '^ *+' conftest.er1 >conftest.err
17334  rm -f conftest.er1
17335  cat conftest.err >&5
17336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337  (exit $ac_status); } &&
17338	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17339  { (case "(($ac_try" in
17340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17341  *) ac_try_echo=$ac_try;;
17342esac
17343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17344  (eval "$ac_try") 2>&5
17345  ac_status=$?
17346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347  (exit $ac_status); }; } &&
17348	 { ac_try='test -s conftest$ac_exeext'
17349  { (case "(($ac_try" in
17350  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17351  *) ac_try_echo=$ac_try;;
17352esac
17353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17354  (eval "$ac_try") 2>&5
17355  ac_status=$?
17356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357  (exit $ac_status); }; }; then
17358  ac_cv_func_dlopen=yes
17359else
17360  echo "$as_me: failed program was:" >&5
17361sed 's/^/| /' conftest.$ac_ext >&5
17362
17363	ac_cv_func_dlopen=no
17364fi
17365
17366rm -f core conftest.err conftest.$ac_objext \
17367      conftest$ac_exeext conftest.$ac_ext
17368fi
17369{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17370echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17371if test $ac_cv_func_dlopen = yes; then
17372  lt_cv_dlopen="dlopen"
17373else
17374  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17375echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17376if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17377  echo $ECHO_N "(cached) $ECHO_C" >&6
17378else
17379  ac_check_lib_save_LIBS=$LIBS
17380LIBS="-ldl  $LIBS"
17381cat >conftest.$ac_ext <<_ACEOF
17382/* confdefs.h.  */
17383_ACEOF
17384cat confdefs.h >>conftest.$ac_ext
17385cat >>conftest.$ac_ext <<_ACEOF
17386/* end confdefs.h.  */
17387
17388/* Override any GCC internal prototype to avoid an error.
17389   Use char because int might match the return type of a GCC
17390   builtin and then its argument prototype would still apply.  */
17391#ifdef __cplusplus
17392extern "C"
17393#endif
17394char dlopen ();
17395int
17396main ()
17397{
17398return dlopen ();
17399  ;
17400  return 0;
17401}
17402_ACEOF
17403rm -f conftest.$ac_objext conftest$ac_exeext
17404if { (ac_try="$ac_link"
17405case "(($ac_try" in
17406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17407  *) ac_try_echo=$ac_try;;
17408esac
17409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17410  (eval "$ac_link") 2>conftest.er1
17411  ac_status=$?
17412  grep -v '^ *+' conftest.er1 >conftest.err
17413  rm -f conftest.er1
17414  cat conftest.err >&5
17415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416  (exit $ac_status); } &&
17417	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17418  { (case "(($ac_try" in
17419  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420  *) ac_try_echo=$ac_try;;
17421esac
17422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17423  (eval "$ac_try") 2>&5
17424  ac_status=$?
17425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426  (exit $ac_status); }; } &&
17427	 { ac_try='test -s conftest$ac_exeext'
17428  { (case "(($ac_try" in
17429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17430  *) ac_try_echo=$ac_try;;
17431esac
17432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17433  (eval "$ac_try") 2>&5
17434  ac_status=$?
17435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436  (exit $ac_status); }; }; then
17437  ac_cv_lib_dl_dlopen=yes
17438else
17439  echo "$as_me: failed program was:" >&5
17440sed 's/^/| /' conftest.$ac_ext >&5
17441
17442	ac_cv_lib_dl_dlopen=no
17443fi
17444
17445rm -f core conftest.err conftest.$ac_objext \
17446      conftest$ac_exeext conftest.$ac_ext
17447LIBS=$ac_check_lib_save_LIBS
17448fi
17449{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17450echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17451if test $ac_cv_lib_dl_dlopen = yes; then
17452  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17453else
17454  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17455echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17456if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17457  echo $ECHO_N "(cached) $ECHO_C" >&6
17458else
17459  ac_check_lib_save_LIBS=$LIBS
17460LIBS="-lsvld  $LIBS"
17461cat >conftest.$ac_ext <<_ACEOF
17462/* confdefs.h.  */
17463_ACEOF
17464cat confdefs.h >>conftest.$ac_ext
17465cat >>conftest.$ac_ext <<_ACEOF
17466/* end confdefs.h.  */
17467
17468/* Override any GCC internal prototype to avoid an error.
17469   Use char because int might match the return type of a GCC
17470   builtin and then its argument prototype would still apply.  */
17471#ifdef __cplusplus
17472extern "C"
17473#endif
17474char dlopen ();
17475int
17476main ()
17477{
17478return dlopen ();
17479  ;
17480  return 0;
17481}
17482_ACEOF
17483rm -f conftest.$ac_objext conftest$ac_exeext
17484if { (ac_try="$ac_link"
17485case "(($ac_try" in
17486  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17487  *) ac_try_echo=$ac_try;;
17488esac
17489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17490  (eval "$ac_link") 2>conftest.er1
17491  ac_status=$?
17492  grep -v '^ *+' conftest.er1 >conftest.err
17493  rm -f conftest.er1
17494  cat conftest.err >&5
17495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496  (exit $ac_status); } &&
17497	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17498  { (case "(($ac_try" in
17499  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17500  *) ac_try_echo=$ac_try;;
17501esac
17502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17503  (eval "$ac_try") 2>&5
17504  ac_status=$?
17505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506  (exit $ac_status); }; } &&
17507	 { ac_try='test -s conftest$ac_exeext'
17508  { (case "(($ac_try" in
17509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17510  *) ac_try_echo=$ac_try;;
17511esac
17512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17513  (eval "$ac_try") 2>&5
17514  ac_status=$?
17515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516  (exit $ac_status); }; }; then
17517  ac_cv_lib_svld_dlopen=yes
17518else
17519  echo "$as_me: failed program was:" >&5
17520sed 's/^/| /' conftest.$ac_ext >&5
17521
17522	ac_cv_lib_svld_dlopen=no
17523fi
17524
17525rm -f core conftest.err conftest.$ac_objext \
17526      conftest$ac_exeext conftest.$ac_ext
17527LIBS=$ac_check_lib_save_LIBS
17528fi
17529{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17530echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17531if test $ac_cv_lib_svld_dlopen = yes; then
17532  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17533else
17534  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17535echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17536if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17537  echo $ECHO_N "(cached) $ECHO_C" >&6
17538else
17539  ac_check_lib_save_LIBS=$LIBS
17540LIBS="-ldld  $LIBS"
17541cat >conftest.$ac_ext <<_ACEOF
17542/* confdefs.h.  */
17543_ACEOF
17544cat confdefs.h >>conftest.$ac_ext
17545cat >>conftest.$ac_ext <<_ACEOF
17546/* end confdefs.h.  */
17547
17548/* Override any GCC internal prototype to avoid an error.
17549   Use char because int might match the return type of a GCC
17550   builtin and then its argument prototype would still apply.  */
17551#ifdef __cplusplus
17552extern "C"
17553#endif
17554char dld_link ();
17555int
17556main ()
17557{
17558return dld_link ();
17559  ;
17560  return 0;
17561}
17562_ACEOF
17563rm -f conftest.$ac_objext conftest$ac_exeext
17564if { (ac_try="$ac_link"
17565case "(($ac_try" in
17566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17567  *) ac_try_echo=$ac_try;;
17568esac
17569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17570  (eval "$ac_link") 2>conftest.er1
17571  ac_status=$?
17572  grep -v '^ *+' conftest.er1 >conftest.err
17573  rm -f conftest.er1
17574  cat conftest.err >&5
17575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576  (exit $ac_status); } &&
17577	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17578  { (case "(($ac_try" in
17579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17580  *) ac_try_echo=$ac_try;;
17581esac
17582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17583  (eval "$ac_try") 2>&5
17584  ac_status=$?
17585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586  (exit $ac_status); }; } &&
17587	 { ac_try='test -s conftest$ac_exeext'
17588  { (case "(($ac_try" in
17589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17590  *) ac_try_echo=$ac_try;;
17591esac
17592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17593  (eval "$ac_try") 2>&5
17594  ac_status=$?
17595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596  (exit $ac_status); }; }; then
17597  ac_cv_lib_dld_dld_link=yes
17598else
17599  echo "$as_me: failed program was:" >&5
17600sed 's/^/| /' conftest.$ac_ext >&5
17601
17602	ac_cv_lib_dld_dld_link=no
17603fi
17604
17605rm -f core conftest.err conftest.$ac_objext \
17606      conftest$ac_exeext conftest.$ac_ext
17607LIBS=$ac_check_lib_save_LIBS
17608fi
17609{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17610echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17611if test $ac_cv_lib_dld_dld_link = yes; then
17612  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17613fi
17614
17615
17616fi
17617
17618
17619fi
17620
17621
17622fi
17623
17624
17625fi
17626
17627
17628fi
17629
17630    ;;
17631  esac
17632
17633  if test "x$lt_cv_dlopen" != xno; then
17634    enable_dlopen=yes
17635  else
17636    enable_dlopen=no
17637  fi
17638
17639  case $lt_cv_dlopen in
17640  dlopen)
17641    save_CPPFLAGS="$CPPFLAGS"
17642    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17643
17644    save_LDFLAGS="$LDFLAGS"
17645    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17646
17647    save_LIBS="$LIBS"
17648    LIBS="$lt_cv_dlopen_libs $LIBS"
17649
17650    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17651echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17652if test "${lt_cv_dlopen_self+set}" = set; then
17653  echo $ECHO_N "(cached) $ECHO_C" >&6
17654else
17655  	  if test "$cross_compiling" = yes; then :
17656  lt_cv_dlopen_self=cross
17657else
17658  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17659  lt_status=$lt_dlunknown
17660  cat > conftest.$ac_ext <<EOF
17661#line 17661 "configure"
17662#include "confdefs.h"
17663
17664#if HAVE_DLFCN_H
17665#include <dlfcn.h>
17666#endif
17667
17668#include <stdio.h>
17669
17670#ifdef RTLD_GLOBAL
17671#  define LT_DLGLOBAL		RTLD_GLOBAL
17672#else
17673#  ifdef DL_GLOBAL
17674#    define LT_DLGLOBAL		DL_GLOBAL
17675#  else
17676#    define LT_DLGLOBAL		0
17677#  endif
17678#endif
17679
17680/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17681   find out it does not work in some platform. */
17682#ifndef LT_DLLAZY_OR_NOW
17683#  ifdef RTLD_LAZY
17684#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17685#  else
17686#    ifdef DL_LAZY
17687#      define LT_DLLAZY_OR_NOW		DL_LAZY
17688#    else
17689#      ifdef RTLD_NOW
17690#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17691#      else
17692#        ifdef DL_NOW
17693#          define LT_DLLAZY_OR_NOW	DL_NOW
17694#        else
17695#          define LT_DLLAZY_OR_NOW	0
17696#        endif
17697#      endif
17698#    endif
17699#  endif
17700#endif
17701
17702#ifdef __cplusplus
17703extern "C" void exit (int);
17704#endif
17705
17706void fnord() { int i=42;}
17707int main ()
17708{
17709  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17710  int status = $lt_dlunknown;
17711
17712  if (self)
17713    {
17714      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17715      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17716      /* dlclose (self); */
17717    }
17718  else
17719    puts (dlerror ());
17720
17721    exit (status);
17722}
17723EOF
17724  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17725  (eval $ac_link) 2>&5
17726  ac_status=$?
17727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17729    (./conftest; exit; ) >&5 2>/dev/null
17730    lt_status=$?
17731    case x$lt_status in
17732      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17733      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17734      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17735    esac
17736  else :
17737    # compilation failed
17738    lt_cv_dlopen_self=no
17739  fi
17740fi
17741rm -fr conftest*
17742
17743
17744fi
17745{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17746echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17747
17748    if test "x$lt_cv_dlopen_self" = xyes; then
17749      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17750      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17751echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17752if test "${lt_cv_dlopen_self_static+set}" = set; then
17753  echo $ECHO_N "(cached) $ECHO_C" >&6
17754else
17755  	  if test "$cross_compiling" = yes; then :
17756  lt_cv_dlopen_self_static=cross
17757else
17758  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17759  lt_status=$lt_dlunknown
17760  cat > conftest.$ac_ext <<EOF
17761#line 17761 "configure"
17762#include "confdefs.h"
17763
17764#if HAVE_DLFCN_H
17765#include <dlfcn.h>
17766#endif
17767
17768#include <stdio.h>
17769
17770#ifdef RTLD_GLOBAL
17771#  define LT_DLGLOBAL		RTLD_GLOBAL
17772#else
17773#  ifdef DL_GLOBAL
17774#    define LT_DLGLOBAL		DL_GLOBAL
17775#  else
17776#    define LT_DLGLOBAL		0
17777#  endif
17778#endif
17779
17780/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17781   find out it does not work in some platform. */
17782#ifndef LT_DLLAZY_OR_NOW
17783#  ifdef RTLD_LAZY
17784#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17785#  else
17786#    ifdef DL_LAZY
17787#      define LT_DLLAZY_OR_NOW		DL_LAZY
17788#    else
17789#      ifdef RTLD_NOW
17790#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17791#      else
17792#        ifdef DL_NOW
17793#          define LT_DLLAZY_OR_NOW	DL_NOW
17794#        else
17795#          define LT_DLLAZY_OR_NOW	0
17796#        endif
17797#      endif
17798#    endif
17799#  endif
17800#endif
17801
17802#ifdef __cplusplus
17803extern "C" void exit (int);
17804#endif
17805
17806void fnord() { int i=42;}
17807int main ()
17808{
17809  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17810  int status = $lt_dlunknown;
17811
17812  if (self)
17813    {
17814      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17815      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17816      /* dlclose (self); */
17817    }
17818  else
17819    puts (dlerror ());
17820
17821    exit (status);
17822}
17823EOF
17824  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17825  (eval $ac_link) 2>&5
17826  ac_status=$?
17827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17829    (./conftest; exit; ) >&5 2>/dev/null
17830    lt_status=$?
17831    case x$lt_status in
17832      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17833      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17834      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17835    esac
17836  else :
17837    # compilation failed
17838    lt_cv_dlopen_self_static=no
17839  fi
17840fi
17841rm -fr conftest*
17842
17843
17844fi
17845{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17846echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17847    fi
17848
17849    CPPFLAGS="$save_CPPFLAGS"
17850    LDFLAGS="$save_LDFLAGS"
17851    LIBS="$save_LIBS"
17852    ;;
17853  esac
17854
17855  case $lt_cv_dlopen_self in
17856  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17857  *) enable_dlopen_self=unknown ;;
17858  esac
17859
17860  case $lt_cv_dlopen_self_static in
17861  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17862  *) enable_dlopen_self_static=unknown ;;
17863  esac
17864fi
17865
17866
17867# Report which library types will actually be built
17868{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17869echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17870{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17871echo "${ECHO_T}$can_build_shared" >&6; }
17872
17873{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17874echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17875test "$can_build_shared" = "no" && enable_shared=no
17876
17877# On AIX, shared libraries and static libraries use the same namespace, and
17878# are all built from PIC.
17879case $host_os in
17880aix3*)
17881  test "$enable_shared" = yes && enable_static=no
17882  if test -n "$RANLIB"; then
17883    archive_cmds="$archive_cmds~\$RANLIB \$lib"
17884    postinstall_cmds='$RANLIB $lib'
17885  fi
17886  ;;
17887
17888aix4* | aix5*)
17889  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17890    test "$enable_shared" = yes && enable_static=no
17891  fi
17892    ;;
17893esac
17894{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17895echo "${ECHO_T}$enable_shared" >&6; }
17896
17897{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17898echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17899# Make sure either enable_shared or enable_static is yes.
17900test "$enable_shared" = yes || enable_static=yes
17901{ echo "$as_me:$LINENO: result: $enable_static" >&5
17902echo "${ECHO_T}$enable_static" >&6; }
17903
17904# The else clause should only fire when bootstrapping the
17905# libtool distribution, otherwise you forgot to ship ltmain.sh
17906# with your package, and you will get complaints that there are
17907# no rules to generate ltmain.sh.
17908if test -f "$ltmain"; then
17909  # See if we are running on zsh, and set the options which allow our commands through
17910  # without removal of \ escapes.
17911  if test -n "${ZSH_VERSION+set}" ; then
17912    setopt NO_GLOB_SUBST
17913  fi
17914  # Now quote all the things that may contain metacharacters while being
17915  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17916  # variables and quote the copies for generation of the libtool script.
17917  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17918    SED SHELL STRIP \
17919    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17920    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17921    deplibs_check_method reload_flag reload_cmds need_locks \
17922    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17923    lt_cv_sys_global_symbol_to_c_name_address \
17924    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17925    old_postinstall_cmds old_postuninstall_cmds \
17926    compiler \
17927    CC \
17928    LD \
17929    lt_prog_compiler_wl \
17930    lt_prog_compiler_pic \
17931    lt_prog_compiler_static \
17932    lt_prog_compiler_no_builtin_flag \
17933    export_dynamic_flag_spec \
17934    thread_safe_flag_spec \
17935    whole_archive_flag_spec \
17936    enable_shared_with_static_runtimes \
17937    old_archive_cmds \
17938    old_archive_from_new_cmds \
17939    predep_objects \
17940    postdep_objects \
17941    predeps \
17942    postdeps \
17943    compiler_lib_search_path \
17944    archive_cmds \
17945    archive_expsym_cmds \
17946    postinstall_cmds \
17947    postuninstall_cmds \
17948    old_archive_from_expsyms_cmds \
17949    allow_undefined_flag \
17950    no_undefined_flag \
17951    export_symbols_cmds \
17952    hardcode_libdir_flag_spec \
17953    hardcode_libdir_flag_spec_ld \
17954    hardcode_libdir_separator \
17955    hardcode_automatic \
17956    module_cmds \
17957    module_expsym_cmds \
17958    lt_cv_prog_compiler_c_o \
17959    exclude_expsyms \
17960    include_expsyms; do
17961
17962    case $var in
17963    old_archive_cmds | \
17964    old_archive_from_new_cmds | \
17965    archive_cmds | \
17966    archive_expsym_cmds | \
17967    module_cmds | \
17968    module_expsym_cmds | \
17969    old_archive_from_expsyms_cmds | \
17970    export_symbols_cmds | \
17971    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17972    postinstall_cmds | postuninstall_cmds | \
17973    old_postinstall_cmds | old_postuninstall_cmds | \
17974    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17975      # Double-quote double-evaled strings.
17976      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17977      ;;
17978    *)
17979      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17980      ;;
17981    esac
17982  done
17983
17984  case $lt_echo in
17985  *'\$0 --fallback-echo"')
17986    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17987    ;;
17988  esac
17989
17990cfgfile="${ofile}T"
17991  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17992  $rm -f "$cfgfile"
17993  { echo "$as_me:$LINENO: creating $ofile" >&5
17994echo "$as_me: creating $ofile" >&6;}
17995
17996  cat <<__EOF__ >> "$cfgfile"
17997#! $SHELL
17998
17999# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18000# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18001# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18002#
18003# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
18004# Free Software Foundation, Inc.
18005#
18006# This file is part of GNU Libtool:
18007# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18008#
18009# This program is free software; you can redistribute it and/or modify
18010# it under the terms of the GNU General Public License as published by
18011# the Free Software Foundation; either version 2 of the License, or
18012# (at your option) any later version.
18013#
18014# This program is distributed in the hope that it will be useful, but
18015# WITHOUT ANY WARRANTY; without even the implied warranty of
18016# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18017# General Public License for more details.
18018#
18019# You should have received a copy of the GNU General Public License
18020# along with this program; if not, write to the Free Software
18021# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18022#
18023# As a special exception to the GNU General Public License, if you
18024# distribute this file as part of a program that contains a
18025# configuration script generated by Autoconf, you may include it under
18026# the same distribution terms that you use for the rest of that program.
18027
18028# A sed program that does not truncate output.
18029SED=$lt_SED
18030
18031# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18032Xsed="$SED -e 1s/^X//"
18033
18034# The HP-UX ksh and POSIX shell print the target directory to stdout
18035# if CDPATH is set.
18036(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18037
18038# The names of the tagged configurations supported by this script.
18039available_tags=
18040
18041# ### BEGIN LIBTOOL CONFIG
18042
18043# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18044
18045# Shell to use when invoking shell scripts.
18046SHELL=$lt_SHELL
18047
18048# Whether or not to build shared libraries.
18049build_libtool_libs=$enable_shared
18050
18051# Whether or not to build static libraries.
18052build_old_libs=$enable_static
18053
18054# Whether or not to add -lc for building shared libraries.
18055build_libtool_need_lc=$archive_cmds_need_lc
18056
18057# Whether or not to disallow shared libs when runtime libs are static
18058allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18059
18060# Whether or not to optimize for fast installation.
18061fast_install=$enable_fast_install
18062
18063# The host system.
18064host_alias=$host_alias
18065host=$host
18066host_os=$host_os
18067
18068# The build system.
18069build_alias=$build_alias
18070build=$build
18071build_os=$build_os
18072
18073# An echo program that does not interpret backslashes.
18074echo=$lt_echo
18075
18076# The archiver.
18077AR=$lt_AR
18078AR_FLAGS=$lt_AR_FLAGS
18079
18080# A C compiler.
18081LTCC=$lt_LTCC
18082
18083# LTCC compiler flags.
18084LTCFLAGS=$lt_LTCFLAGS
18085
18086# A language-specific compiler.
18087CC=$lt_compiler
18088
18089# Is the compiler the GNU C compiler?
18090with_gcc=$GCC
18091
18092# An ERE matcher.
18093EGREP=$lt_EGREP
18094
18095# The linker used to build libraries.
18096LD=$lt_LD
18097
18098# Whether we need hard or soft links.
18099LN_S=$lt_LN_S
18100
18101# A BSD-compatible nm program.
18102NM=$lt_NM
18103
18104# A symbol stripping program
18105STRIP=$lt_STRIP
18106
18107# Used to examine libraries when file_magic_cmd begins "file"
18108MAGIC_CMD=$MAGIC_CMD
18109
18110# Used on cygwin: DLL creation program.
18111DLLTOOL="$DLLTOOL"
18112
18113# Used on cygwin: object dumper.
18114OBJDUMP="$OBJDUMP"
18115
18116# Used on cygwin: assembler.
18117AS="$AS"
18118
18119# The name of the directory that contains temporary libtool files.
18120objdir=$objdir
18121
18122# How to create reloadable object files.
18123reload_flag=$lt_reload_flag
18124reload_cmds=$lt_reload_cmds
18125
18126# How to pass a linker flag through the compiler.
18127wl=$lt_lt_prog_compiler_wl
18128
18129# Object file suffix (normally "o").
18130objext="$ac_objext"
18131
18132# Old archive suffix (normally "a").
18133libext="$libext"
18134
18135# Shared library suffix (normally ".so").
18136shrext_cmds='$shrext_cmds'
18137
18138# Executable file suffix (normally "").
18139exeext="$exeext"
18140
18141# Additional compiler flags for building library objects.
18142pic_flag=$lt_lt_prog_compiler_pic
18143pic_mode=$pic_mode
18144
18145# What is the maximum length of a command?
18146max_cmd_len=$lt_cv_sys_max_cmd_len
18147
18148# Does compiler simultaneously support -c and -o options?
18149compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18150
18151# Must we lock files when doing compilation?
18152need_locks=$lt_need_locks
18153
18154# Do we need the lib prefix for modules?
18155need_lib_prefix=$need_lib_prefix
18156
18157# Do we need a version for libraries?
18158need_version=$need_version
18159
18160# Whether dlopen is supported.
18161dlopen_support=$enable_dlopen
18162
18163# Whether dlopen of programs is supported.
18164dlopen_self=$enable_dlopen_self
18165
18166# Whether dlopen of statically linked programs is supported.
18167dlopen_self_static=$enable_dlopen_self_static
18168
18169# Compiler flag to prevent dynamic linking.
18170link_static_flag=$lt_lt_prog_compiler_static
18171
18172# Compiler flag to turn off builtin functions.
18173no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18174
18175# Compiler flag to allow reflexive dlopens.
18176export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18177
18178# Compiler flag to generate shared objects directly from archives.
18179whole_archive_flag_spec=$lt_whole_archive_flag_spec
18180
18181# Compiler flag to generate thread-safe objects.
18182thread_safe_flag_spec=$lt_thread_safe_flag_spec
18183
18184# Library versioning type.
18185version_type=$version_type
18186
18187# Format of library name prefix.
18188libname_spec=$lt_libname_spec
18189
18190# List of archive names.  First name is the real one, the rest are links.
18191# The last name is the one that the linker finds with -lNAME.
18192library_names_spec=$lt_library_names_spec
18193
18194# The coded name of the library, if different from the real name.
18195soname_spec=$lt_soname_spec
18196
18197# Commands used to build and install an old-style archive.
18198RANLIB=$lt_RANLIB
18199old_archive_cmds=$lt_old_archive_cmds
18200old_postinstall_cmds=$lt_old_postinstall_cmds
18201old_postuninstall_cmds=$lt_old_postuninstall_cmds
18202
18203# Create an old-style archive from a shared archive.
18204old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18205
18206# Create a temporary old-style archive to link instead of a shared archive.
18207old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18208
18209# Commands used to build and install a shared archive.
18210archive_cmds=$lt_archive_cmds
18211archive_expsym_cmds=$lt_archive_expsym_cmds
18212postinstall_cmds=$lt_postinstall_cmds
18213postuninstall_cmds=$lt_postuninstall_cmds
18214
18215# Commands used to build a loadable module (assumed same as above if empty)
18216module_cmds=$lt_module_cmds
18217module_expsym_cmds=$lt_module_expsym_cmds
18218
18219# Commands to strip libraries.
18220old_striplib=$lt_old_striplib
18221striplib=$lt_striplib
18222
18223# Dependencies to place before the objects being linked to create a
18224# shared library.
18225predep_objects=$lt_predep_objects
18226
18227# Dependencies to place after the objects being linked to create a
18228# shared library.
18229postdep_objects=$lt_postdep_objects
18230
18231# Dependencies to place before the objects being linked to create a
18232# shared library.
18233predeps=$lt_predeps
18234
18235# Dependencies to place after the objects being linked to create a
18236# shared library.
18237postdeps=$lt_postdeps
18238
18239# The library search path used internally by the compiler when linking
18240# a shared library.
18241compiler_lib_search_path=$lt_compiler_lib_search_path
18242
18243# Method to check whether dependent libraries are shared objects.
18244deplibs_check_method=$lt_deplibs_check_method
18245
18246# Command to use when deplibs_check_method == file_magic.
18247file_magic_cmd=$lt_file_magic_cmd
18248
18249# Flag that allows shared libraries with undefined symbols to be built.
18250allow_undefined_flag=$lt_allow_undefined_flag
18251
18252# Flag that forces no undefined symbols.
18253no_undefined_flag=$lt_no_undefined_flag
18254
18255# Commands used to finish a libtool library installation in a directory.
18256finish_cmds=$lt_finish_cmds
18257
18258# Same as above, but a single script fragment to be evaled but not shown.
18259finish_eval=$lt_finish_eval
18260
18261# Take the output of nm and produce a listing of raw symbols and C names.
18262global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18263
18264# Transform the output of nm in a proper C declaration
18265global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18266
18267# Transform the output of nm in a C name address pair
18268global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18269
18270# This is the shared library runtime path variable.
18271runpath_var=$runpath_var
18272
18273# This is the shared library path variable.
18274shlibpath_var=$shlibpath_var
18275
18276# Is shlibpath searched before the hard-coded library search path?
18277shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18278
18279# How to hardcode a shared library path into an executable.
18280hardcode_action=$hardcode_action
18281
18282# Whether we should hardcode library paths into libraries.
18283hardcode_into_libs=$hardcode_into_libs
18284
18285# Flag to hardcode \$libdir into a binary during linking.
18286# This must work even if \$libdir does not exist.
18287hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18288
18289# If ld is used when linking, flag to hardcode \$libdir into
18290# a binary during linking. This must work even if \$libdir does
18291# not exist.
18292hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18293
18294# Whether we need a single -rpath flag with a separated argument.
18295hardcode_libdir_separator=$lt_hardcode_libdir_separator
18296
18297# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18298# resulting binary.
18299hardcode_direct=$hardcode_direct
18300
18301# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18302# resulting binary.
18303hardcode_minus_L=$hardcode_minus_L
18304
18305# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18306# the resulting binary.
18307hardcode_shlibpath_var=$hardcode_shlibpath_var
18308
18309# Set to yes if building a shared library automatically hardcodes DIR into the library
18310# and all subsequent libraries and executables linked against it.
18311hardcode_automatic=$hardcode_automatic
18312
18313# Variables whose values should be saved in libtool wrapper scripts and
18314# restored at relink time.
18315variables_saved_for_relink="$variables_saved_for_relink"
18316
18317# Whether libtool must link a program against all its dependency libraries.
18318link_all_deplibs=$link_all_deplibs
18319
18320# Compile-time system search path for libraries
18321sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18322
18323# Run-time system search path for libraries
18324sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18325
18326# Fix the shell variable \$srcfile for the compiler.
18327fix_srcfile_path="$fix_srcfile_path"
18328
18329# Set to yes if exported symbols are required.
18330always_export_symbols=$always_export_symbols
18331
18332# The commands to list exported symbols.
18333export_symbols_cmds=$lt_export_symbols_cmds
18334
18335# The commands to extract the exported symbol list from a shared archive.
18336extract_expsyms_cmds=$lt_extract_expsyms_cmds
18337
18338# Symbols that should not be listed in the preloaded symbols.
18339exclude_expsyms=$lt_exclude_expsyms
18340
18341# Symbols that must always be exported.
18342include_expsyms=$lt_include_expsyms
18343
18344# ### END LIBTOOL CONFIG
18345
18346__EOF__
18347
18348
18349  case $host_os in
18350  aix3*)
18351    cat <<\EOF >> "$cfgfile"
18352
18353# AIX sometimes has problems with the GCC collect2 program.  For some
18354# reason, if we set the COLLECT_NAMES environment variable, the problems
18355# vanish in a puff of smoke.
18356if test "X${COLLECT_NAMES+set}" != Xset; then
18357  COLLECT_NAMES=
18358  export COLLECT_NAMES
18359fi
18360EOF
18361    ;;
18362  esac
18363
18364  # We use sed instead of cat because bash on DJGPP gets confused if
18365  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18366  # text mode, it properly converts lines to CR/LF.  This bash problem
18367  # is reportedly fixed, but why not run on old versions too?
18368  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18369
18370  mv -f "$cfgfile" "$ofile" || \
18371    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18372  chmod +x "$ofile"
18373
18374else
18375  # If there is no Makefile yet, we rely on a make rule to execute
18376  # `config.status --recheck' to rerun these tests and create the
18377  # libtool script then.
18378  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18379  if test -f "$ltmain_in"; then
18380    test -f Makefile && make "$ltmain"
18381  fi
18382fi
18383
18384
18385ac_ext=c
18386ac_cpp='$CPP $CPPFLAGS'
18387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18389ac_compiler_gnu=$ac_cv_c_compiler_gnu
18390
18391CC="$lt_save_CC"
18392
18393
18394# Check whether --with-tags was given.
18395if test "${with_tags+set}" = set; then
18396  withval=$with_tags; tagnames="$withval"
18397fi
18398
18399
18400if test -f "$ltmain" && test -n "$tagnames"; then
18401  if test ! -f "${ofile}"; then
18402    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18403echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18404  fi
18405
18406  if test -z "$LTCC"; then
18407    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18408    if test -z "$LTCC"; then
18409      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18410echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18411    else
18412      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18413echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18414    fi
18415  fi
18416  if test -z "$LTCFLAGS"; then
18417    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18418  fi
18419
18420  # Extract list of available tagged configurations in $ofile.
18421  # Note that this assumes the entire list is on one line.
18422  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18423
18424  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18425  for tagname in $tagnames; do
18426    IFS="$lt_save_ifs"
18427    # Check whether tagname contains only valid characters
18428    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18429    "") ;;
18430    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18431echo "$as_me: error: invalid tag name: $tagname" >&2;}
18432   { (exit 1); exit 1; }; }
18433	;;
18434    esac
18435
18436    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18437    then
18438      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18439echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18440   { (exit 1); exit 1; }; }
18441    fi
18442
18443    # Update the list of available tags.
18444    if test -n "$tagname"; then
18445      echo appending configuration tag \"$tagname\" to $ofile
18446
18447      case $tagname in
18448      CXX)
18449	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18450	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18451	    (test "X$CXX" != "Xg++"))) ; then
18452	  ac_ext=cpp
18453ac_cpp='$CXXCPP $CPPFLAGS'
18454ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18455ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18456ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18457
18458
18459
18460
18461archive_cmds_need_lc_CXX=no
18462allow_undefined_flag_CXX=
18463always_export_symbols_CXX=no
18464archive_expsym_cmds_CXX=
18465export_dynamic_flag_spec_CXX=
18466hardcode_direct_CXX=no
18467hardcode_libdir_flag_spec_CXX=
18468hardcode_libdir_flag_spec_ld_CXX=
18469hardcode_libdir_separator_CXX=
18470hardcode_minus_L_CXX=no
18471hardcode_shlibpath_var_CXX=unsupported
18472hardcode_automatic_CXX=no
18473module_cmds_CXX=
18474module_expsym_cmds_CXX=
18475link_all_deplibs_CXX=unknown
18476old_archive_cmds_CXX=$old_archive_cmds
18477no_undefined_flag_CXX=
18478whole_archive_flag_spec_CXX=
18479enable_shared_with_static_runtimes_CXX=no
18480
18481# Dependencies to place before and after the object being linked:
18482predep_objects_CXX=
18483postdep_objects_CXX=
18484predeps_CXX=
18485postdeps_CXX=
18486compiler_lib_search_path_CXX=
18487
18488# Source file extension for C++ test sources.
18489ac_ext=cpp
18490
18491# Object file extension for compiled C++ test sources.
18492objext=o
18493objext_CXX=$objext
18494
18495# Code to be used in simple compile tests
18496lt_simple_compile_test_code="int some_variable = 0;\n"
18497
18498# Code to be used in simple link tests
18499lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18500
18501# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18502
18503# If no C compiler was specified, use CC.
18504LTCC=${LTCC-"$CC"}
18505
18506# If no C compiler flags were specified, use CFLAGS.
18507LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18508
18509# Allow CC to be a program name with arguments.
18510compiler=$CC
18511
18512
18513# save warnings/boilerplate of simple test code
18514ac_outfile=conftest.$ac_objext
18515printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18516eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18517_lt_compiler_boilerplate=`cat conftest.err`
18518$rm conftest*
18519
18520ac_outfile=conftest.$ac_objext
18521printf "$lt_simple_link_test_code" >conftest.$ac_ext
18522eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18523_lt_linker_boilerplate=`cat conftest.err`
18524$rm conftest*
18525
18526
18527# Allow CC to be a program name with arguments.
18528lt_save_CC=$CC
18529lt_save_LD=$LD
18530lt_save_GCC=$GCC
18531GCC=$GXX
18532lt_save_with_gnu_ld=$with_gnu_ld
18533lt_save_path_LD=$lt_cv_path_LD
18534if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18535  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18536else
18537  $as_unset lt_cv_prog_gnu_ld
18538fi
18539if test -n "${lt_cv_path_LDCXX+set}"; then
18540  lt_cv_path_LD=$lt_cv_path_LDCXX
18541else
18542  $as_unset lt_cv_path_LD
18543fi
18544test -z "${LDCXX+set}" || LD=$LDCXX
18545CC=${CXX-"c++"}
18546compiler=$CC
18547compiler_CXX=$CC
18548for cc_temp in $compiler""; do
18549  case $cc_temp in
18550    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18551    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18552    \-*) ;;
18553    *) break;;
18554  esac
18555done
18556cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18557
18558
18559# We don't want -fno-exception wen compiling C++ code, so set the
18560# no_builtin_flag separately
18561if test "$GXX" = yes; then
18562  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18563else
18564  lt_prog_compiler_no_builtin_flag_CXX=
18565fi
18566
18567if test "$GXX" = yes; then
18568  # Set up default GNU C++ configuration
18569
18570
18571# Check whether --with-gnu-ld was given.
18572if test "${with_gnu_ld+set}" = set; then
18573  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18574else
18575  with_gnu_ld=no
18576fi
18577
18578ac_prog=ld
18579if test "$GCC" = yes; then
18580  # Check if gcc -print-prog-name=ld gives a path.
18581  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18582echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18583  case $host in
18584  *-*-mingw*)
18585    # gcc leaves a trailing carriage return which upsets mingw
18586    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18587  *)
18588    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18589  esac
18590  case $ac_prog in
18591    # Accept absolute paths.
18592    [\\/]* | ?:[\\/]*)
18593      re_direlt='/[^/][^/]*/\.\./'
18594      # Canonicalize the pathname of ld
18595      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18596      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18597	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18598      done
18599      test -z "$LD" && LD="$ac_prog"
18600      ;;
18601  "")
18602    # If it fails, then pretend we aren't using GCC.
18603    ac_prog=ld
18604    ;;
18605  *)
18606    # If it is relative, then search for the first ld in PATH.
18607    with_gnu_ld=unknown
18608    ;;
18609  esac
18610elif test "$with_gnu_ld" = yes; then
18611  { echo "$as_me:$LINENO: checking for GNU ld" >&5
18612echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18613else
18614  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18615echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18616fi
18617if test "${lt_cv_path_LD+set}" = set; then
18618  echo $ECHO_N "(cached) $ECHO_C" >&6
18619else
18620  if test -z "$LD"; then
18621  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18622  for ac_dir in $PATH; do
18623    IFS="$lt_save_ifs"
18624    test -z "$ac_dir" && ac_dir=.
18625    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18626      lt_cv_path_LD="$ac_dir/$ac_prog"
18627      # Check to see if the program is GNU ld.  I'd rather use --version,
18628      # but apparently some variants of GNU ld only accept -v.
18629      # Break only if it was the GNU/non-GNU ld that we prefer.
18630      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18631      *GNU* | *'with BFD'*)
18632	test "$with_gnu_ld" != no && break
18633	;;
18634      *)
18635	test "$with_gnu_ld" != yes && break
18636	;;
18637      esac
18638    fi
18639  done
18640  IFS="$lt_save_ifs"
18641else
18642  lt_cv_path_LD="$LD" # Let the user override the test with a path.
18643fi
18644fi
18645
18646LD="$lt_cv_path_LD"
18647if test -n "$LD"; then
18648  { echo "$as_me:$LINENO: result: $LD" >&5
18649echo "${ECHO_T}$LD" >&6; }
18650else
18651  { echo "$as_me:$LINENO: result: no" >&5
18652echo "${ECHO_T}no" >&6; }
18653fi
18654test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18655echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18656   { (exit 1); exit 1; }; }
18657{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18658echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18659if test "${lt_cv_prog_gnu_ld+set}" = set; then
18660  echo $ECHO_N "(cached) $ECHO_C" >&6
18661else
18662  # I'd rather use --version here, but apparently some GNU lds only accept -v.
18663case `$LD -v 2>&1 </dev/null` in
18664*GNU* | *'with BFD'*)
18665  lt_cv_prog_gnu_ld=yes
18666  ;;
18667*)
18668  lt_cv_prog_gnu_ld=no
18669  ;;
18670esac
18671fi
18672{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18673echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18674with_gnu_ld=$lt_cv_prog_gnu_ld
18675
18676
18677
18678  # Check if GNU C++ uses GNU ld as the underlying linker, since the
18679  # archiving commands below assume that GNU ld is being used.
18680  if test "$with_gnu_ld" = yes; then
18681    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18682    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'
18683
18684    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18685    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18686
18687    # If archive_cmds runs LD, not CC, wlarc should be empty
18688    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18689    #     investigate it a little bit more. (MM)
18690    wlarc='${wl}'
18691
18692    # ancient GNU ld didn't support --whole-archive et. al.
18693    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18694	grep 'no-whole-archive' > /dev/null; then
18695      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18696    else
18697      whole_archive_flag_spec_CXX=
18698    fi
18699  else
18700    with_gnu_ld=no
18701    wlarc=
18702
18703    # A generic and very simple default shared library creation
18704    # command for GNU C++ for the case where it uses the native
18705    # linker, instead of GNU ld.  If possible, this setting should
18706    # overridden to take advantage of the native linker features on
18707    # the platform it is being used on.
18708    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18709  fi
18710
18711  # Commands to make compiler produce verbose output that lists
18712  # what "hidden" libraries, object files and flags are used when
18713  # linking a shared library.
18714  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18715
18716else
18717  GXX=no
18718  with_gnu_ld=no
18719  wlarc=
18720fi
18721
18722# PORTME: fill in a description of your system's C++ link characteristics
18723{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18724echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18725ld_shlibs_CXX=yes
18726case $host_os in
18727  aix3*)
18728    # FIXME: insert proper C++ library support
18729    ld_shlibs_CXX=no
18730    ;;
18731  aix4* | aix5*)
18732    if test "$host_cpu" = ia64; then
18733      # On IA64, the linker does run time linking by default, so we don't
18734      # have to do anything special.
18735      aix_use_runtimelinking=no
18736      exp_sym_flag='-Bexport'
18737      no_entry_flag=""
18738    else
18739      aix_use_runtimelinking=no
18740
18741      # Test if we are trying to use run time linking or normal
18742      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18743      # need to do runtime linking.
18744      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18745	for ld_flag in $LDFLAGS; do
18746	  case $ld_flag in
18747	  *-brtl*)
18748	    aix_use_runtimelinking=yes
18749	    break
18750	    ;;
18751	  esac
18752	done
18753	;;
18754      esac
18755
18756      exp_sym_flag='-bexport'
18757      no_entry_flag='-bnoentry'
18758    fi
18759
18760    # When large executables or shared objects are built, AIX ld can
18761    # have problems creating the table of contents.  If linking a library
18762    # or program results in "error TOC overflow" add -mminimal-toc to
18763    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18764    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18765
18766    archive_cmds_CXX=''
18767    hardcode_direct_CXX=yes
18768    hardcode_libdir_separator_CXX=':'
18769    link_all_deplibs_CXX=yes
18770
18771    if test "$GXX" = yes; then
18772      case $host_os in aix4.[012]|aix4.[012].*)
18773      # We only want to do this on AIX 4.2 and lower, the check
18774      # below for broken collect2 doesn't work under 4.3+
18775	collect2name=`${CC} -print-prog-name=collect2`
18776	if test -f "$collect2name" && \
18777	   strings "$collect2name" | grep resolve_lib_name >/dev/null
18778	then
18779	  # We have reworked collect2
18780	  hardcode_direct_CXX=yes
18781	else
18782	  # We have old collect2
18783	  hardcode_direct_CXX=unsupported
18784	  # It fails to find uninstalled libraries when the uninstalled
18785	  # path is not listed in the libpath.  Setting hardcode_minus_L
18786	  # to unsupported forces relinking
18787	  hardcode_minus_L_CXX=yes
18788	  hardcode_libdir_flag_spec_CXX='-L$libdir'
18789	  hardcode_libdir_separator_CXX=
18790	fi
18791	;;
18792      esac
18793      shared_flag='-shared'
18794      if test "$aix_use_runtimelinking" = yes; then
18795	shared_flag="$shared_flag "'${wl}-G'
18796      fi
18797    else
18798      # not using gcc
18799      if test "$host_cpu" = ia64; then
18800	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18801	# chokes on -Wl,-G. The following line is correct:
18802	shared_flag='-G'
18803      else
18804	if test "$aix_use_runtimelinking" = yes; then
18805	  shared_flag='${wl}-G'
18806	else
18807	  shared_flag='${wl}-bM:SRE'
18808	fi
18809      fi
18810    fi
18811
18812    # It seems that -bexpall does not export symbols beginning with
18813    # underscore (_), so it is better to generate a list of symbols to export.
18814    always_export_symbols_CXX=yes
18815    if test "$aix_use_runtimelinking" = yes; then
18816      # Warning - without using the other runtime loading flags (-brtl),
18817      # -berok will link without error, but may produce a broken library.
18818      allow_undefined_flag_CXX='-berok'
18819      # Determine the default libpath from the value encoded in an empty executable.
18820      cat >conftest.$ac_ext <<_ACEOF
18821/* confdefs.h.  */
18822_ACEOF
18823cat confdefs.h >>conftest.$ac_ext
18824cat >>conftest.$ac_ext <<_ACEOF
18825/* end confdefs.h.  */
18826
18827int
18828main ()
18829{
18830
18831  ;
18832  return 0;
18833}
18834_ACEOF
18835rm -f conftest.$ac_objext conftest$ac_exeext
18836if { (ac_try="$ac_link"
18837case "(($ac_try" in
18838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18839  *) ac_try_echo=$ac_try;;
18840esac
18841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18842  (eval "$ac_link") 2>conftest.er1
18843  ac_status=$?
18844  grep -v '^ *+' conftest.er1 >conftest.err
18845  rm -f conftest.er1
18846  cat conftest.err >&5
18847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848  (exit $ac_status); } &&
18849	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18850  { (case "(($ac_try" in
18851  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18852  *) ac_try_echo=$ac_try;;
18853esac
18854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18855  (eval "$ac_try") 2>&5
18856  ac_status=$?
18857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858  (exit $ac_status); }; } &&
18859	 { ac_try='test -s conftest$ac_exeext'
18860  { (case "(($ac_try" in
18861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18862  *) ac_try_echo=$ac_try;;
18863esac
18864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18865  (eval "$ac_try") 2>&5
18866  ac_status=$?
18867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868  (exit $ac_status); }; }; then
18869
18870aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18871}'`
18872# Check for a 64-bit object if we didn't find anything.
18873if 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; }
18874}'`; fi
18875else
18876  echo "$as_me: failed program was:" >&5
18877sed 's/^/| /' conftest.$ac_ext >&5
18878
18879
18880fi
18881
18882rm -f core conftest.err conftest.$ac_objext \
18883      conftest$ac_exeext conftest.$ac_ext
18884if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18885
18886      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18887
18888      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"
18889     else
18890      if test "$host_cpu" = ia64; then
18891	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18892	allow_undefined_flag_CXX="-z nodefs"
18893	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"
18894      else
18895	# Determine the default libpath from the value encoded in an empty executable.
18896	cat >conftest.$ac_ext <<_ACEOF
18897/* confdefs.h.  */
18898_ACEOF
18899cat confdefs.h >>conftest.$ac_ext
18900cat >>conftest.$ac_ext <<_ACEOF
18901/* end confdefs.h.  */
18902
18903int
18904main ()
18905{
18906
18907  ;
18908  return 0;
18909}
18910_ACEOF
18911rm -f conftest.$ac_objext conftest$ac_exeext
18912if { (ac_try="$ac_link"
18913case "(($ac_try" in
18914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18915  *) ac_try_echo=$ac_try;;
18916esac
18917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18918  (eval "$ac_link") 2>conftest.er1
18919  ac_status=$?
18920  grep -v '^ *+' conftest.er1 >conftest.err
18921  rm -f conftest.er1
18922  cat conftest.err >&5
18923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924  (exit $ac_status); } &&
18925	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18926  { (case "(($ac_try" in
18927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18928  *) ac_try_echo=$ac_try;;
18929esac
18930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18931  (eval "$ac_try") 2>&5
18932  ac_status=$?
18933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934  (exit $ac_status); }; } &&
18935	 { ac_try='test -s conftest$ac_exeext'
18936  { (case "(($ac_try" in
18937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18938  *) ac_try_echo=$ac_try;;
18939esac
18940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18941  (eval "$ac_try") 2>&5
18942  ac_status=$?
18943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944  (exit $ac_status); }; }; then
18945
18946aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18947}'`
18948# Check for a 64-bit object if we didn't find anything.
18949if 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; }
18950}'`; fi
18951else
18952  echo "$as_me: failed program was:" >&5
18953sed 's/^/| /' conftest.$ac_ext >&5
18954
18955
18956fi
18957
18958rm -f core conftest.err conftest.$ac_objext \
18959      conftest$ac_exeext conftest.$ac_ext
18960if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18961
18962	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18963	# Warning - without using the other run time loading flags,
18964	# -berok will link without error, but may produce a broken library.
18965	no_undefined_flag_CXX=' ${wl}-bernotok'
18966	allow_undefined_flag_CXX=' ${wl}-berok'
18967	# Exported symbols can be pulled into shared objects from archives
18968	whole_archive_flag_spec_CXX='$convenience'
18969	archive_cmds_need_lc_CXX=yes
18970	# This is similar to how AIX traditionally builds its shared libraries.
18971	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'
18972      fi
18973    fi
18974    ;;
18975
18976  beos*)
18977    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18978      allow_undefined_flag_CXX=unsupported
18979      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18980      # support --undefined.  This deserves some investigation.  FIXME
18981      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18982    else
18983      ld_shlibs_CXX=no
18984    fi
18985    ;;
18986
18987  chorus*)
18988    case $cc_basename in
18989      *)
18990	# FIXME: insert proper C++ library support
18991	ld_shlibs_CXX=no
18992	;;
18993    esac
18994    ;;
18995
18996  cygwin* | mingw* | pw32*)
18997    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18998    # as there is no search path for DLLs.
18999    hardcode_libdir_flag_spec_CXX='-L$libdir'
19000    allow_undefined_flag_CXX=unsupported
19001    always_export_symbols_CXX=no
19002    enable_shared_with_static_runtimes_CXX=yes
19003
19004    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19005      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'
19006      # If the export-symbols file already is a .def file (1st line
19007      # is EXPORTS), use it as is; otherwise, prepend...
19008      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19009	cp $export_symbols $output_objdir/$soname.def;
19010      else
19011	echo EXPORTS > $output_objdir/$soname.def;
19012	cat $export_symbols >> $output_objdir/$soname.def;
19013      fi~
19014      $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'
19015    else
19016      ld_shlibs_CXX=no
19017    fi
19018  ;;
19019      darwin* | rhapsody*)
19020        case $host_os in
19021        rhapsody* | darwin1.[012])
19022         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
19023         ;;
19024       *) # Darwin 1.3 on
19025         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19026           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19027         else
19028           case ${MACOSX_DEPLOYMENT_TARGET} in
19029             10.[012])
19030               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19031               ;;
19032             10.*)
19033               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
19034               ;;
19035           esac
19036         fi
19037         ;;
19038        esac
19039      archive_cmds_need_lc_CXX=no
19040      hardcode_direct_CXX=no
19041      hardcode_automatic_CXX=yes
19042      hardcode_shlibpath_var_CXX=unsupported
19043      whole_archive_flag_spec_CXX=''
19044      link_all_deplibs_CXX=yes
19045
19046    if test "$GXX" = yes ; then
19047      lt_int_apple_cc_single_mod=no
19048      output_verbose_link_cmd='echo'
19049      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19050       lt_int_apple_cc_single_mod=yes
19051      fi
19052      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19053       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19054      else
19055          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'
19056        fi
19057        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19058        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19059          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19060            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}'
19061          else
19062            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}'
19063          fi
19064            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}'
19065      else
19066      case $cc_basename in
19067        xlc*)
19068         output_verbose_link_cmd='echo'
19069          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'
19070          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19071          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19072          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}'
19073          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}'
19074          ;;
19075       *)
19076         ld_shlibs_CXX=no
19077          ;;
19078      esac
19079      fi
19080        ;;
19081
19082  dgux*)
19083    case $cc_basename in
19084      ec++*)
19085	# FIXME: insert proper C++ library support
19086	ld_shlibs_CXX=no
19087	;;
19088      ghcx*)
19089	# Green Hills C++ Compiler
19090	# FIXME: insert proper C++ library support
19091	ld_shlibs_CXX=no
19092	;;
19093      *)
19094	# FIXME: insert proper C++ library support
19095	ld_shlibs_CXX=no
19096	;;
19097    esac
19098    ;;
19099  freebsd[12]*)
19100    # C++ shared libraries reported to be fairly broken before switch to ELF
19101    ld_shlibs_CXX=no
19102    ;;
19103  freebsd-elf*)
19104    archive_cmds_need_lc_CXX=no
19105    ;;
19106  freebsd* | kfreebsd*-gnu | dragonfly*)
19107    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19108    # conventions
19109    ld_shlibs_CXX=yes
19110    ;;
19111  gnu*)
19112    ;;
19113  hpux9*)
19114    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19115    hardcode_libdir_separator_CXX=:
19116    export_dynamic_flag_spec_CXX='${wl}-E'
19117    hardcode_direct_CXX=yes
19118    hardcode_minus_L_CXX=yes # Not in the search PATH,
19119				# but as the default
19120				# location of the library.
19121
19122    case $cc_basename in
19123    CC*)
19124      # FIXME: insert proper C++ library support
19125      ld_shlibs_CXX=no
19126      ;;
19127    aCC*)
19128      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'
19129      # Commands to make compiler produce verbose output that lists
19130      # what "hidden" libraries, object files and flags are used when
19131      # linking a shared library.
19132      #
19133      # There doesn't appear to be a way to prevent this compiler from
19134      # explicitly linking system object files so we need to strip them
19135      # from the output so that they don't get included in the library
19136      # dependencies.
19137      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'
19138      ;;
19139    *)
19140      if test "$GXX" = yes; then
19141        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'
19142      else
19143        # FIXME: insert proper C++ library support
19144        ld_shlibs_CXX=no
19145      fi
19146      ;;
19147    esac
19148    ;;
19149  hpux10*|hpux11*)
19150    if test $with_gnu_ld = no; then
19151      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19152      hardcode_libdir_separator_CXX=:
19153
19154      case $host_cpu in
19155      hppa*64*|ia64*)
19156	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19157        ;;
19158      *)
19159	export_dynamic_flag_spec_CXX='${wl}-E'
19160        ;;
19161      esac
19162    fi
19163    case $host_cpu in
19164    hppa*64*|ia64*)
19165      hardcode_direct_CXX=no
19166      hardcode_shlibpath_var_CXX=no
19167      ;;
19168    *)
19169      hardcode_direct_CXX=yes
19170      hardcode_minus_L_CXX=yes # Not in the search PATH,
19171					      # but as the default
19172					      # location of the library.
19173      ;;
19174    esac
19175
19176    case $cc_basename in
19177      CC*)
19178	# FIXME: insert proper C++ library support
19179	ld_shlibs_CXX=no
19180	;;
19181      aCC*)
19182	case $host_cpu in
19183	hppa*64*)
19184	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19185	  ;;
19186	ia64*)
19187	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19188	  ;;
19189	*)
19190	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19191	  ;;
19192	esac
19193	# Commands to make compiler produce verbose output that lists
19194	# what "hidden" libraries, object files and flags are used when
19195	# linking a shared library.
19196	#
19197	# There doesn't appear to be a way to prevent this compiler from
19198	# explicitly linking system object files so we need to strip them
19199	# from the output so that they don't get included in the library
19200	# dependencies.
19201	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'
19202	;;
19203      *)
19204	if test "$GXX" = yes; then
19205	  if test $with_gnu_ld = no; then
19206	    case $host_cpu in
19207	    hppa*64*)
19208	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19209	      ;;
19210	    ia64*)
19211	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19212	      ;;
19213	    *)
19214	      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'
19215	      ;;
19216	    esac
19217	  fi
19218	else
19219	  # FIXME: insert proper C++ library support
19220	  ld_shlibs_CXX=no
19221	fi
19222	;;
19223    esac
19224    ;;
19225  interix3*)
19226    hardcode_direct_CXX=no
19227    hardcode_shlibpath_var_CXX=no
19228    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19229    export_dynamic_flag_spec_CXX='${wl}-E'
19230    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19231    # Instead, shared libraries are loaded at an image base (0x10000000 by
19232    # default) and relocated if they conflict, which is a slow very memory
19233    # consuming and fragmenting process.  To avoid this, we pick a random,
19234    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19235    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19236    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'
19237    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'
19238    ;;
19239  irix5* | irix6*)
19240    case $cc_basename in
19241      CC*)
19242	# SGI C++
19243	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'
19244
19245	# Archives containing C++ object files must be created using
19246	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19247	# necessary to make sure instantiated templates are included
19248	# in the archive.
19249	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19250	;;
19251      *)
19252	if test "$GXX" = yes; then
19253	  if test "$with_gnu_ld" = no; then
19254	    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'
19255	  else
19256	    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'
19257	  fi
19258	fi
19259	link_all_deplibs_CXX=yes
19260	;;
19261    esac
19262    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19263    hardcode_libdir_separator_CXX=:
19264    ;;
19265  linux*)
19266    case $cc_basename in
19267      KCC*)
19268	# Kuck and Associates, Inc. (KAI) C++ Compiler
19269
19270	# KCC will only create a shared library if the output file
19271	# ends with ".so" (or ".sl" for HP-UX), so rename the library
19272	# to its proper name (with version) after linking.
19273	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'
19274	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'
19275	# Commands to make compiler produce verbose output that lists
19276	# what "hidden" libraries, object files and flags are used when
19277	# linking a shared library.
19278	#
19279	# There doesn't appear to be a way to prevent this compiler from
19280	# explicitly linking system object files so we need to strip them
19281	# from the output so that they don't get included in the library
19282	# dependencies.
19283	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'
19284
19285	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19286	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19287
19288	# Archives containing C++ object files must be created using
19289	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
19290	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19291	;;
19292      icpc*)
19293	# Intel C++
19294	with_gnu_ld=yes
19295	# version 8.0 and above of icpc choke on multiply defined symbols
19296	# if we add $predep_objects and $postdep_objects, however 7.1 and
19297	# earlier do not add the objects themselves.
19298	case `$CC -V 2>&1` in
19299	*"Version 7."*)
19300  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19301  	  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'
19302	  ;;
19303	*)  # Version 8.0 or newer
19304	  tmp_idyn=
19305	  case $host_cpu in
19306	    ia64*) tmp_idyn=' -i_dynamic';;
19307	  esac
19308  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19309	  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'
19310	  ;;
19311	esac
19312	archive_cmds_need_lc_CXX=no
19313	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19314	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19315	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19316	;;
19317      pgCC*)
19318        # Portland Group C++ compiler
19319	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19320  	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'
19321
19322	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19323	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19324	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'
19325        ;;
19326      cxx*)
19327	# Compaq C++
19328	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19329	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'
19330
19331	runpath_var=LD_RUN_PATH
19332	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19333	hardcode_libdir_separator_CXX=:
19334
19335	# Commands to make compiler produce verbose output that lists
19336	# what "hidden" libraries, object files and flags are used when
19337	# linking a shared library.
19338	#
19339	# There doesn't appear to be a way to prevent this compiler from
19340	# explicitly linking system object files so we need to strip them
19341	# from the output so that they don't get included in the library
19342	# dependencies.
19343	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'
19344	;;
19345    esac
19346    ;;
19347  lynxos*)
19348    # FIXME: insert proper C++ library support
19349    ld_shlibs_CXX=no
19350    ;;
19351  m88k*)
19352    # FIXME: insert proper C++ library support
19353    ld_shlibs_CXX=no
19354    ;;
19355  mvs*)
19356    case $cc_basename in
19357      cxx*)
19358	# FIXME: insert proper C++ library support
19359	ld_shlibs_CXX=no
19360	;;
19361      *)
19362	# FIXME: insert proper C++ library support
19363	ld_shlibs_CXX=no
19364	;;
19365    esac
19366    ;;
19367  netbsd*)
19368    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19369      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19370      wlarc=
19371      hardcode_libdir_flag_spec_CXX='-R$libdir'
19372      hardcode_direct_CXX=yes
19373      hardcode_shlibpath_var_CXX=no
19374    fi
19375    # Workaround some broken pre-1.5 toolchains
19376    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19377    ;;
19378  openbsd2*)
19379    # C++ shared libraries are fairly broken
19380    ld_shlibs_CXX=no
19381    ;;
19382  openbsd*)
19383    hardcode_direct_CXX=yes
19384    hardcode_shlibpath_var_CXX=no
19385    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19386    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19387    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19388      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19389      export_dynamic_flag_spec_CXX='${wl}-E'
19390      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19391    fi
19392    output_verbose_link_cmd='echo'
19393    ;;
19394  osf3*)
19395    case $cc_basename in
19396      KCC*)
19397	# Kuck and Associates, Inc. (KAI) C++ Compiler
19398
19399	# KCC will only create a shared library if the output file
19400	# ends with ".so" (or ".sl" for HP-UX), so rename the library
19401	# to its proper name (with version) after linking.
19402	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'
19403
19404	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19405	hardcode_libdir_separator_CXX=:
19406
19407	# Archives containing C++ object files must be created using
19408	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
19409	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19410
19411	;;
19412      RCC*)
19413	# Rational C++ 2.4.1
19414	# FIXME: insert proper C++ library support
19415	ld_shlibs_CXX=no
19416	;;
19417      cxx*)
19418	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19419	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'
19420
19421	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19422	hardcode_libdir_separator_CXX=:
19423
19424	# Commands to make compiler produce verbose output that lists
19425	# what "hidden" libraries, object files and flags are used when
19426	# linking a shared library.
19427	#
19428	# There doesn't appear to be a way to prevent this compiler from
19429	# explicitly linking system object files so we need to strip them
19430	# from the output so that they don't get included in the library
19431	# dependencies.
19432	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'
19433	;;
19434      *)
19435	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19436	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19437	  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'
19438
19439	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19440	  hardcode_libdir_separator_CXX=:
19441
19442	  # Commands to make compiler produce verbose output that lists
19443	  # what "hidden" libraries, object files and flags are used when
19444	  # linking a shared library.
19445	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19446
19447	else
19448	  # FIXME: insert proper C++ library support
19449	  ld_shlibs_CXX=no
19450	fi
19451	;;
19452    esac
19453    ;;
19454  osf4* | osf5*)
19455    case $cc_basename in
19456      KCC*)
19457	# Kuck and Associates, Inc. (KAI) C++ Compiler
19458
19459	# KCC will only create a shared library if the output file
19460	# ends with ".so" (or ".sl" for HP-UX), so rename the library
19461	# to its proper name (with version) after linking.
19462	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'
19463
19464	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19465	hardcode_libdir_separator_CXX=:
19466
19467	# Archives containing C++ object files must be created using
19468	# the KAI C++ compiler.
19469	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19470	;;
19471      RCC*)
19472	# Rational C++ 2.4.1
19473	# FIXME: insert proper C++ library support
19474	ld_shlibs_CXX=no
19475	;;
19476      cxx*)
19477	allow_undefined_flag_CXX=' -expect_unresolved \*'
19478	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'
19479	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19480	  echo "-hidden">> $lib.exp~
19481	  $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~
19482	  $rm $lib.exp'
19483
19484	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19485	hardcode_libdir_separator_CXX=:
19486
19487	# Commands to make compiler produce verbose output that lists
19488	# what "hidden" libraries, object files and flags are used when
19489	# linking a shared library.
19490	#
19491	# There doesn't appear to be a way to prevent this compiler from
19492	# explicitly linking system object files so we need to strip them
19493	# from the output so that they don't get included in the library
19494	# dependencies.
19495	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'
19496	;;
19497      *)
19498	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19499	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19500	 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'
19501
19502	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19503	  hardcode_libdir_separator_CXX=:
19504
19505	  # Commands to make compiler produce verbose output that lists
19506	  # what "hidden" libraries, object files and flags are used when
19507	  # linking a shared library.
19508	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19509
19510	else
19511	  # FIXME: insert proper C++ library support
19512	  ld_shlibs_CXX=no
19513	fi
19514	;;
19515    esac
19516    ;;
19517  psos*)
19518    # FIXME: insert proper C++ library support
19519    ld_shlibs_CXX=no
19520    ;;
19521  sunos4*)
19522    case $cc_basename in
19523      CC*)
19524	# Sun C++ 4.x
19525	# FIXME: insert proper C++ library support
19526	ld_shlibs_CXX=no
19527	;;
19528      lcc*)
19529	# Lucid
19530	# FIXME: insert proper C++ library support
19531	ld_shlibs_CXX=no
19532	;;
19533      *)
19534	# FIXME: insert proper C++ library support
19535	ld_shlibs_CXX=no
19536	;;
19537    esac
19538    ;;
19539  solaris*)
19540    case $cc_basename in
19541      CC*)
19542	# Sun C++ 4.2, 5.x and Centerline C++
19543        archive_cmds_need_lc_CXX=yes
19544	no_undefined_flag_CXX=' -zdefs'
19545	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19546	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19547	$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'
19548
19549	hardcode_libdir_flag_spec_CXX='-R$libdir'
19550	hardcode_shlibpath_var_CXX=no
19551	case $host_os in
19552	  solaris2.[0-5] | solaris2.[0-5].*) ;;
19553	  *)
19554	    # The C++ compiler is used as linker so we must use $wl
19555	    # flag to pass the commands to the underlying system
19556	    # linker. We must also pass each convience library through
19557	    # to the system linker between allextract/defaultextract.
19558	    # The C++ compiler will combine linker options so we
19559	    # cannot just pass the convience library names through
19560	    # without $wl.
19561	    # Supported since Solaris 2.6 (maybe 2.5.1?)
19562	    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'
19563	    ;;
19564	esac
19565	link_all_deplibs_CXX=yes
19566
19567	output_verbose_link_cmd='echo'
19568
19569	# Archives containing C++ object files must be created using
19570	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
19571	# necessary to make sure instantiated templates are included
19572	# in the archive.
19573	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19574	;;
19575      gcx*)
19576	# Green Hills C++ Compiler
19577	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19578
19579	# The C++ compiler must be used to create the archive.
19580	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19581	;;
19582      *)
19583	# GNU C++ compiler with Solaris linker
19584	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19585	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19586	  if $CC --version | grep -v '^2\.7' > /dev/null; then
19587	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19588	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19589		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19590
19591	    # Commands to make compiler produce verbose output that lists
19592	    # what "hidden" libraries, object files and flags are used when
19593	    # linking a shared library.
19594	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19595	  else
19596	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
19597	    # platform.
19598	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19599	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19600		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19601
19602	    # Commands to make compiler produce verbose output that lists
19603	    # what "hidden" libraries, object files and flags are used when
19604	    # linking a shared library.
19605	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19606	  fi
19607
19608	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19609	fi
19610	;;
19611    esac
19612    ;;
19613  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19614    no_undefined_flag_CXX='${wl}-z,text'
19615    archive_cmds_need_lc_CXX=no
19616    hardcode_shlibpath_var_CXX=no
19617    runpath_var='LD_RUN_PATH'
19618
19619    case $cc_basename in
19620      CC*)
19621	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19622	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19623	;;
19624      *)
19625	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19626	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19627	;;
19628    esac
19629    ;;
19630  sysv5* | sco3.2v5* | sco5v6*)
19631    # Note: We can NOT use -z defs as we might desire, because we do not
19632    # link with -lc, and that would cause any symbols used from libc to
19633    # always be unresolved, which means just about no library would
19634    # ever link correctly.  If we're not using GNU ld we use -z text
19635    # though, which does catch some bad symbols but isn't as heavy-handed
19636    # as -z defs.
19637    # For security reasons, it is highly recommended that you always
19638    # use absolute paths for naming shared libraries, and exclude the
19639    # DT_RUNPATH tag from executables and libraries.  But doing so
19640    # requires that you compile everything twice, which is a pain.
19641    # So that behaviour is only enabled if SCOABSPATH is set to a
19642    # non-empty value in the environment.  Most likely only useful for
19643    # creating official distributions of packages.
19644    # This is a hack until libtool officially supports absolute path
19645    # names for shared libraries.
19646    no_undefined_flag_CXX='${wl}-z,text'
19647    allow_undefined_flag_CXX='${wl}-z,nodefs'
19648    archive_cmds_need_lc_CXX=no
19649    hardcode_shlibpath_var_CXX=no
19650    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19651    hardcode_libdir_separator_CXX=':'
19652    link_all_deplibs_CXX=yes
19653    export_dynamic_flag_spec_CXX='${wl}-Bexport'
19654    runpath_var='LD_RUN_PATH'
19655
19656    case $cc_basename in
19657      CC*)
19658	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19659	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19660	;;
19661      *)
19662	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19663	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19664	;;
19665    esac
19666    ;;
19667  tandem*)
19668    case $cc_basename in
19669      NCC*)
19670	# NonStop-UX NCC 3.20
19671	# FIXME: insert proper C++ library support
19672	ld_shlibs_CXX=no
19673	;;
19674      *)
19675	# FIXME: insert proper C++ library support
19676	ld_shlibs_CXX=no
19677	;;
19678    esac
19679    ;;
19680  vxworks*)
19681    # FIXME: insert proper C++ library support
19682    ld_shlibs_CXX=no
19683    ;;
19684  *)
19685    # FIXME: insert proper C++ library support
19686    ld_shlibs_CXX=no
19687    ;;
19688esac
19689{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19690echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19691test "$ld_shlibs_CXX" = no && can_build_shared=no
19692
19693GCC_CXX="$GXX"
19694LD_CXX="$LD"
19695
19696
19697cat > conftest.$ac_ext <<EOF
19698class Foo
19699{
19700public:
19701  Foo (void) { a = 0; }
19702private:
19703  int a;
19704};
19705EOF
19706
19707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19708  (eval $ac_compile) 2>&5
19709  ac_status=$?
19710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711  (exit $ac_status); }; then
19712  # Parse the compiler output and extract the necessary
19713  # objects, libraries and library flags.
19714
19715  # Sentinel used to keep track of whether or not we are before
19716  # the conftest object file.
19717  pre_test_object_deps_done=no
19718
19719  # The `*' in the case matches for architectures that use `case' in
19720  # $output_verbose_cmd can trigger glob expansion during the loop
19721  # eval without this substitution.
19722  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19723
19724  for p in `eval $output_verbose_link_cmd`; do
19725    case $p in
19726
19727    -L* | -R* | -l*)
19728       # Some compilers place space between "-{L,R}" and the path.
19729       # Remove the space.
19730       if test $p = "-L" \
19731	  || test $p = "-R"; then
19732	 prev=$p
19733	 continue
19734       else
19735	 prev=
19736       fi
19737
19738       if test "$pre_test_object_deps_done" = no; then
19739	 case $p in
19740	 -L* | -R*)
19741	   # Internal compiler library paths should come after those
19742	   # provided the user.  The postdeps already come after the
19743	   # user supplied libs so there is no need to process them.
19744	   if test -z "$compiler_lib_search_path_CXX"; then
19745	     compiler_lib_search_path_CXX="${prev}${p}"
19746	   else
19747	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19748	   fi
19749	   ;;
19750	 # The "-l" case would never come before the object being
19751	 # linked, so don't bother handling this case.
19752	 esac
19753       else
19754	 if test -z "$postdeps_CXX"; then
19755	   postdeps_CXX="${prev}${p}"
19756	 else
19757	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19758	 fi
19759       fi
19760       ;;
19761
19762    *.$objext)
19763       # This assumes that the test object file only shows up
19764       # once in the compiler output.
19765       if test "$p" = "conftest.$objext"; then
19766	 pre_test_object_deps_done=yes
19767	 continue
19768       fi
19769
19770       if test "$pre_test_object_deps_done" = no; then
19771	 if test -z "$predep_objects_CXX"; then
19772	   predep_objects_CXX="$p"
19773	 else
19774	   predep_objects_CXX="$predep_objects_CXX $p"
19775	 fi
19776       else
19777	 if test -z "$postdep_objects_CXX"; then
19778	   postdep_objects_CXX="$p"
19779	 else
19780	   postdep_objects_CXX="$postdep_objects_CXX $p"
19781	 fi
19782       fi
19783       ;;
19784
19785    *) ;; # Ignore the rest.
19786
19787    esac
19788  done
19789
19790  # Clean up.
19791  rm -f a.out a.exe
19792else
19793  echo "libtool.m4: error: problem compiling CXX test program"
19794fi
19795
19796$rm -f confest.$objext
19797
19798# PORTME: override above test on systems where it is broken
19799case $host_os in
19800interix3*)
19801  # Interix 3.5 installs completely hosed .la files for C++, so rather than
19802  # hack all around it, let's just trust "g++" to DTRT.
19803  predep_objects_CXX=
19804  postdep_objects_CXX=
19805  postdeps_CXX=
19806  ;;
19807
19808solaris*)
19809  case $cc_basename in
19810  CC*)
19811    # Adding this requires a known-good setup of shared libraries for
19812    # Sun compiler versions before 5.6, else PIC objects from an old
19813    # archive will be linked into the output, leading to subtle bugs.
19814    postdeps_CXX='-lCstd -lCrun'
19815    ;;
19816  esac
19817  ;;
19818esac
19819
19820
19821case " $postdeps_CXX " in
19822*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19823esac
19824
19825lt_prog_compiler_wl_CXX=
19826lt_prog_compiler_pic_CXX=
19827lt_prog_compiler_static_CXX=
19828
19829{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19830echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19831
19832  # C++ specific cases for pic, static, wl, etc.
19833  if test "$GXX" = yes; then
19834    lt_prog_compiler_wl_CXX='-Wl,'
19835    lt_prog_compiler_static_CXX='-static'
19836
19837    case $host_os in
19838    aix*)
19839      # All AIX code is PIC.
19840      if test "$host_cpu" = ia64; then
19841	# AIX 5 now supports IA64 processor
19842	lt_prog_compiler_static_CXX='-Bstatic'
19843      fi
19844      ;;
19845    amigaos*)
19846      # FIXME: we need at least 68020 code to build shared libraries, but
19847      # adding the `-m68020' flag to GCC prevents building anything better,
19848      # like `-m68040'.
19849      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19850      ;;
19851    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19852      # PIC is the default for these OSes.
19853      ;;
19854    mingw* | os2* | pw32*)
19855      # This hack is so that the source file can tell whether it is being
19856      # built for inclusion in a dll (and should export symbols for example).
19857      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19858      ;;
19859    darwin* | rhapsody*)
19860      # PIC is the default on this platform
19861      # Common symbols not allowed in MH_DYLIB files
19862      lt_prog_compiler_pic_CXX='-fno-common'
19863      ;;
19864    *djgpp*)
19865      # DJGPP does not support shared libraries at all
19866      lt_prog_compiler_pic_CXX=
19867      ;;
19868    interix3*)
19869      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19870      # Instead, we relocate shared libraries at runtime.
19871      ;;
19872    sysv4*MP*)
19873      if test -d /usr/nec; then
19874	lt_prog_compiler_pic_CXX=-Kconform_pic
19875      fi
19876      ;;
19877    hpux*)
19878      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19879      # not for PA HP-UX.
19880      case $host_cpu in
19881      hppa*64*|ia64*)
19882	;;
19883      *)
19884	lt_prog_compiler_pic_CXX='-fPIC'
19885	;;
19886      esac
19887      ;;
19888    *)
19889      lt_prog_compiler_pic_CXX='-fPIC'
19890      ;;
19891    esac
19892  else
19893    case $host_os in
19894      aix4* | aix5*)
19895	# All AIX code is PIC.
19896	if test "$host_cpu" = ia64; then
19897	  # AIX 5 now supports IA64 processor
19898	  lt_prog_compiler_static_CXX='-Bstatic'
19899	else
19900	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19901	fi
19902	;;
19903      chorus*)
19904	case $cc_basename in
19905	cxch68*)
19906	  # Green Hills C++ Compiler
19907	  # _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"
19908	  ;;
19909	esac
19910	;;
19911       darwin*)
19912         # PIC is the default on this platform
19913         # Common symbols not allowed in MH_DYLIB files
19914         case $cc_basename in
19915           xlc*)
19916           lt_prog_compiler_pic_CXX='-qnocommon'
19917           lt_prog_compiler_wl_CXX='-Wl,'
19918           ;;
19919         esac
19920       ;;
19921      dgux*)
19922	case $cc_basename in
19923	  ec++*)
19924	    lt_prog_compiler_pic_CXX='-KPIC'
19925	    ;;
19926	  ghcx*)
19927	    # Green Hills C++ Compiler
19928	    lt_prog_compiler_pic_CXX='-pic'
19929	    ;;
19930	  *)
19931	    ;;
19932	esac
19933	;;
19934      freebsd* | kfreebsd*-gnu | dragonfly*)
19935	# FreeBSD uses GNU C++
19936	;;
19937      hpux9* | hpux10* | hpux11*)
19938	case $cc_basename in
19939	  CC*)
19940	    lt_prog_compiler_wl_CXX='-Wl,'
19941	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19942	    if test "$host_cpu" != ia64; then
19943	      lt_prog_compiler_pic_CXX='+Z'
19944	    fi
19945	    ;;
19946	  aCC*)
19947	    lt_prog_compiler_wl_CXX='-Wl,'
19948	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19949	    case $host_cpu in
19950	    hppa*64*|ia64*)
19951	      # +Z the default
19952	      ;;
19953	    *)
19954	      lt_prog_compiler_pic_CXX='+Z'
19955	      ;;
19956	    esac
19957	    ;;
19958	  *)
19959	    ;;
19960	esac
19961	;;
19962      interix*)
19963	# This is c89, which is MS Visual C++ (no shared libs)
19964	# Anyone wants to do a port?
19965	;;
19966      irix5* | irix6* | nonstopux*)
19967	case $cc_basename in
19968	  CC*)
19969	    lt_prog_compiler_wl_CXX='-Wl,'
19970	    lt_prog_compiler_static_CXX='-non_shared'
19971	    # CC pic flag -KPIC is the default.
19972	    ;;
19973	  *)
19974	    ;;
19975	esac
19976	;;
19977      linux*)
19978	case $cc_basename in
19979	  KCC*)
19980	    # KAI C++ Compiler
19981	    lt_prog_compiler_wl_CXX='--backend -Wl,'
19982	    lt_prog_compiler_pic_CXX='-fPIC'
19983	    ;;
19984	  icpc* | ecpc*)
19985	    # Intel C++
19986	    lt_prog_compiler_wl_CXX='-Wl,'
19987	    lt_prog_compiler_pic_CXX='-KPIC'
19988	    lt_prog_compiler_static_CXX='-static'
19989	    ;;
19990	  pgCC*)
19991	    # Portland Group C++ compiler.
19992	    lt_prog_compiler_wl_CXX='-Wl,'
19993	    lt_prog_compiler_pic_CXX='-fpic'
19994	    lt_prog_compiler_static_CXX='-Bstatic'
19995	    ;;
19996	  cxx*)
19997	    # Compaq C++
19998	    # Make sure the PIC flag is empty.  It appears that all Alpha
19999	    # Linux and Compaq Tru64 Unix objects are PIC.
20000	    lt_prog_compiler_pic_CXX=
20001	    lt_prog_compiler_static_CXX='-non_shared'
20002	    ;;
20003	  *)
20004	    ;;
20005	esac
20006	;;
20007      lynxos*)
20008	;;
20009      m88k*)
20010	;;
20011      mvs*)
20012	case $cc_basename in
20013	  cxx*)
20014	    lt_prog_compiler_pic_CXX='-W c,exportall'
20015	    ;;
20016	  *)
20017	    ;;
20018	esac
20019	;;
20020      netbsd*)
20021	;;
20022      osf3* | osf4* | osf5*)
20023	case $cc_basename in
20024	  KCC*)
20025	    lt_prog_compiler_wl_CXX='--backend -Wl,'
20026	    ;;
20027	  RCC*)
20028	    # Rational C++ 2.4.1
20029	    lt_prog_compiler_pic_CXX='-pic'
20030	    ;;
20031	  cxx*)
20032	    # Digital/Compaq C++
20033	    lt_prog_compiler_wl_CXX='-Wl,'
20034	    # Make sure the PIC flag is empty.  It appears that all Alpha
20035	    # Linux and Compaq Tru64 Unix objects are PIC.
20036	    lt_prog_compiler_pic_CXX=
20037	    lt_prog_compiler_static_CXX='-non_shared'
20038	    ;;
20039	  *)
20040	    ;;
20041	esac
20042	;;
20043      psos*)
20044	;;
20045      solaris*)
20046	case $cc_basename in
20047	  CC*)
20048	    # Sun C++ 4.2, 5.x and Centerline C++
20049	    lt_prog_compiler_pic_CXX='-KPIC'
20050	    lt_prog_compiler_static_CXX='-Bstatic'
20051	    lt_prog_compiler_wl_CXX='-Qoption ld '
20052	    ;;
20053	  gcx*)
20054	    # Green Hills C++ Compiler
20055	    lt_prog_compiler_pic_CXX='-PIC'
20056	    ;;
20057	  *)
20058	    ;;
20059	esac
20060	;;
20061      sunos4*)
20062	case $cc_basename in
20063	  CC*)
20064	    # Sun C++ 4.x
20065	    lt_prog_compiler_pic_CXX='-pic'
20066	    lt_prog_compiler_static_CXX='-Bstatic'
20067	    ;;
20068	  lcc*)
20069	    # Lucid
20070	    lt_prog_compiler_pic_CXX='-pic'
20071	    ;;
20072	  *)
20073	    ;;
20074	esac
20075	;;
20076      tandem*)
20077	case $cc_basename in
20078	  NCC*)
20079	    # NonStop-UX NCC 3.20
20080	    lt_prog_compiler_pic_CXX='-KPIC'
20081	    ;;
20082	  *)
20083	    ;;
20084	esac
20085	;;
20086      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20087	case $cc_basename in
20088	  CC*)
20089	    lt_prog_compiler_wl_CXX='-Wl,'
20090	    lt_prog_compiler_pic_CXX='-KPIC'
20091	    lt_prog_compiler_static_CXX='-Bstatic'
20092	    ;;
20093	esac
20094	;;
20095      vxworks*)
20096	;;
20097      *)
20098	lt_prog_compiler_can_build_shared_CXX=no
20099	;;
20100    esac
20101  fi
20102
20103{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20104echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20105
20106#
20107# Check to make sure the PIC flag actually works.
20108#
20109if test -n "$lt_prog_compiler_pic_CXX"; then
20110
20111{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20112echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20113if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20114  echo $ECHO_N "(cached) $ECHO_C" >&6
20115else
20116  lt_prog_compiler_pic_works_CXX=no
20117  ac_outfile=conftest.$ac_objext
20118   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20119   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20120   # Insert the option either (1) after the last *FLAGS variable, or
20121   # (2) before a word containing "conftest.", or (3) at the end.
20122   # Note that $ac_compile itself does not contain backslashes and begins
20123   # with a dollar sign (not a hyphen), so the echo should work correctly.
20124   # The option is referenced via a variable to avoid confusing sed.
20125   lt_compile=`echo "$ac_compile" | $SED \
20126   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20127   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20128   -e 's:$: $lt_compiler_flag:'`
20129   (eval echo "\"\$as_me:20129: $lt_compile\"" >&5)
20130   (eval "$lt_compile" 2>conftest.err)
20131   ac_status=$?
20132   cat conftest.err >&5
20133   echo "$as_me:20133: \$? = $ac_status" >&5
20134   if (exit $ac_status) && test -s "$ac_outfile"; then
20135     # The compiler can only warn and ignore the option if not recognized
20136     # So say no if there are warnings other than the usual output.
20137     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20138     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20139     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20140       lt_prog_compiler_pic_works_CXX=yes
20141     fi
20142   fi
20143   $rm conftest*
20144
20145fi
20146{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20147echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20148
20149if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20150    case $lt_prog_compiler_pic_CXX in
20151     "" | " "*) ;;
20152     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20153     esac
20154else
20155    lt_prog_compiler_pic_CXX=
20156     lt_prog_compiler_can_build_shared_CXX=no
20157fi
20158
20159fi
20160case $host_os in
20161  # For platforms which do not support PIC, -DPIC is meaningless:
20162  *djgpp*)
20163    lt_prog_compiler_pic_CXX=
20164    ;;
20165  *)
20166    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20167    ;;
20168esac
20169
20170#
20171# Check to make sure the static flag actually works.
20172#
20173wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20174{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20175echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20176if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20177  echo $ECHO_N "(cached) $ECHO_C" >&6
20178else
20179  lt_prog_compiler_static_works_CXX=no
20180   save_LDFLAGS="$LDFLAGS"
20181   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20182   printf "$lt_simple_link_test_code" > conftest.$ac_ext
20183   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20184     # The linker can only warn and ignore the option if not recognized
20185     # So say no if there are warnings
20186     if test -s conftest.err; then
20187       # Append any errors to the config.log.
20188       cat conftest.err 1>&5
20189       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20190       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20191       if diff conftest.exp conftest.er2 >/dev/null; then
20192         lt_prog_compiler_static_works_CXX=yes
20193       fi
20194     else
20195       lt_prog_compiler_static_works_CXX=yes
20196     fi
20197   fi
20198   $rm conftest*
20199   LDFLAGS="$save_LDFLAGS"
20200
20201fi
20202{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20203echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20204
20205if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20206    :
20207else
20208    lt_prog_compiler_static_CXX=
20209fi
20210
20211
20212{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20213echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20214if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20215  echo $ECHO_N "(cached) $ECHO_C" >&6
20216else
20217  lt_cv_prog_compiler_c_o_CXX=no
20218   $rm -r conftest 2>/dev/null
20219   mkdir conftest
20220   cd conftest
20221   mkdir out
20222   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20223
20224   lt_compiler_flag="-o out/conftest2.$ac_objext"
20225   # Insert the option either (1) after the last *FLAGS variable, or
20226   # (2) before a word containing "conftest.", or (3) at the end.
20227   # Note that $ac_compile itself does not contain backslashes and begins
20228   # with a dollar sign (not a hyphen), so the echo should work correctly.
20229   lt_compile=`echo "$ac_compile" | $SED \
20230   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20231   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20232   -e 's:$: $lt_compiler_flag:'`
20233   (eval echo "\"\$as_me:20233: $lt_compile\"" >&5)
20234   (eval "$lt_compile" 2>out/conftest.err)
20235   ac_status=$?
20236   cat out/conftest.err >&5
20237   echo "$as_me:20237: \$? = $ac_status" >&5
20238   if (exit $ac_status) && test -s out/conftest2.$ac_objext
20239   then
20240     # The compiler can only warn and ignore the option if not recognized
20241     # So say no if there are warnings
20242     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20243     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20244     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20245       lt_cv_prog_compiler_c_o_CXX=yes
20246     fi
20247   fi
20248   chmod u+w . 2>&5
20249   $rm conftest*
20250   # SGI C++ compiler will create directory out/ii_files/ for
20251   # template instantiation
20252   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20253   $rm out/* && rmdir out
20254   cd ..
20255   rmdir conftest
20256   $rm conftest*
20257
20258fi
20259{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20260echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20261
20262
20263hard_links="nottested"
20264if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20265  # do not overwrite the value of need_locks provided by the user
20266  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20267echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20268  hard_links=yes
20269  $rm conftest*
20270  ln conftest.a conftest.b 2>/dev/null && hard_links=no
20271  touch conftest.a
20272  ln conftest.a conftest.b 2>&5 || hard_links=no
20273  ln conftest.a conftest.b 2>/dev/null && hard_links=no
20274  { echo "$as_me:$LINENO: result: $hard_links" >&5
20275echo "${ECHO_T}$hard_links" >&6; }
20276  if test "$hard_links" = no; then
20277    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20278echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20279    need_locks=warn
20280  fi
20281else
20282  need_locks=no
20283fi
20284
20285{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20286echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20287
20288  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20289  case $host_os in
20290  aix4* | aix5*)
20291    # If we're using GNU nm, then we don't want the "-C" option.
20292    # -C means demangle to AIX nm, but means don't demangle with GNU nm
20293    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20294      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'
20295    else
20296      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'
20297    fi
20298    ;;
20299  pw32*)
20300    export_symbols_cmds_CXX="$ltdll_cmds"
20301  ;;
20302  cygwin* | mingw*)
20303    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'
20304  ;;
20305  *)
20306    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20307  ;;
20308  esac
20309
20310{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20311echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20312test "$ld_shlibs_CXX" = no && can_build_shared=no
20313
20314#
20315# Do we need to explicitly link libc?
20316#
20317case "x$archive_cmds_need_lc_CXX" in
20318x|xyes)
20319  # Assume -lc should be added
20320  archive_cmds_need_lc_CXX=yes
20321
20322  if test "$enable_shared" = yes && test "$GCC" = yes; then
20323    case $archive_cmds_CXX in
20324    *'~'*)
20325      # FIXME: we may have to deal with multi-command sequences.
20326      ;;
20327    '$CC '*)
20328      # Test whether the compiler implicitly links with -lc since on some
20329      # systems, -lgcc has to come before -lc. If gcc already passes -lc
20330      # to ld, don't add -lc before -lgcc.
20331      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20332echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20333      $rm conftest*
20334      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20335
20336      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20337  (eval $ac_compile) 2>&5
20338  ac_status=$?
20339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340  (exit $ac_status); } 2>conftest.err; then
20341        soname=conftest
20342        lib=conftest
20343        libobjs=conftest.$ac_objext
20344        deplibs=
20345        wl=$lt_prog_compiler_wl_CXX
20346	pic_flag=$lt_prog_compiler_pic_CXX
20347        compiler_flags=-v
20348        linker_flags=-v
20349        verstring=
20350        output_objdir=.
20351        libname=conftest
20352        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20353        allow_undefined_flag_CXX=
20354        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20355  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20356  ac_status=$?
20357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358  (exit $ac_status); }
20359        then
20360	  archive_cmds_need_lc_CXX=no
20361        else
20362	  archive_cmds_need_lc_CXX=yes
20363        fi
20364        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20365      else
20366        cat conftest.err 1>&5
20367      fi
20368      $rm conftest*
20369      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20370echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20371      ;;
20372    esac
20373  fi
20374  ;;
20375esac
20376
20377{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20378echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20379library_names_spec=
20380libname_spec='lib$name'
20381soname_spec=
20382shrext_cmds=".so"
20383postinstall_cmds=
20384postuninstall_cmds=
20385finish_cmds=
20386finish_eval=
20387shlibpath_var=
20388shlibpath_overrides_runpath=unknown
20389version_type=none
20390dynamic_linker="$host_os ld.so"
20391sys_lib_dlsearch_path_spec="/lib /usr/lib"
20392if test "$GCC" = yes; then
20393  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20394  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20395    # if the path contains ";" then we assume it to be the separator
20396    # otherwise default to the standard path separator (i.e. ":") - it is
20397    # assumed that no part of a normal pathname contains ";" but that should
20398    # okay in the real world where ";" in dirpaths is itself problematic.
20399    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20400  else
20401    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20402  fi
20403else
20404  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20405fi
20406need_lib_prefix=unknown
20407hardcode_into_libs=no
20408
20409# when you set need_version to no, make sure it does not cause -set_version
20410# flags to be left without arguments
20411need_version=unknown
20412
20413case $host_os in
20414aix3*)
20415  version_type=linux
20416  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20417  shlibpath_var=LIBPATH
20418
20419  # AIX 3 has no versioning support, so we append a major version to the name.
20420  soname_spec='${libname}${release}${shared_ext}$major'
20421  ;;
20422
20423aix4* | aix5*)
20424  version_type=linux
20425  need_lib_prefix=no
20426  need_version=no
20427  hardcode_into_libs=yes
20428  if test "$host_cpu" = ia64; then
20429    # AIX 5 supports IA64
20430    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20431    shlibpath_var=LD_LIBRARY_PATH
20432  else
20433    # With GCC up to 2.95.x, collect2 would create an import file
20434    # for dependence libraries.  The import file would start with
20435    # the line `#! .'.  This would cause the generated library to
20436    # depend on `.', always an invalid library.  This was fixed in
20437    # development snapshots of GCC prior to 3.0.
20438    case $host_os in
20439      aix4 | aix4.[01] | aix4.[01].*)
20440      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20441	   echo ' yes '
20442	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20443	:
20444      else
20445	can_build_shared=no
20446      fi
20447      ;;
20448    esac
20449    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20450    # soname into executable. Probably we can add versioning support to
20451    # collect2, so additional links can be useful in future.
20452    if test "$aix_use_runtimelinking" = yes; then
20453      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20454      # instead of lib<name>.a to let people know that these are not
20455      # typical AIX shared libraries.
20456      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20457    else
20458      # We preserve .a as extension for shared libraries through AIX4.2
20459      # and later when we are not doing run time linking.
20460      library_names_spec='${libname}${release}.a $libname.a'
20461      soname_spec='${libname}${release}${shared_ext}$major'
20462    fi
20463    shlibpath_var=LIBPATH
20464  fi
20465  ;;
20466
20467amigaos*)
20468  library_names_spec='$libname.ixlibrary $libname.a'
20469  # Create ${libname}_ixlibrary.a entries in /sys/libs.
20470  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'
20471  ;;
20472
20473beos*)
20474  library_names_spec='${libname}${shared_ext}'
20475  dynamic_linker="$host_os ld.so"
20476  shlibpath_var=LIBRARY_PATH
20477  ;;
20478
20479bsdi[45]*)
20480  version_type=linux
20481  need_version=no
20482  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20483  soname_spec='${libname}${release}${shared_ext}$major'
20484  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20485  shlibpath_var=LD_LIBRARY_PATH
20486  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20487  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20488  # the default ld.so.conf also contains /usr/contrib/lib and
20489  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20490  # libtool to hard-code these into programs
20491  ;;
20492
20493cygwin* | mingw* | pw32*)
20494  version_type=windows
20495  shrext_cmds=".dll"
20496  need_version=no
20497  need_lib_prefix=no
20498
20499  case $GCC,$host_os in
20500  yes,cygwin* | yes,mingw* | yes,pw32*)
20501    library_names_spec='$libname.dll.a'
20502    # DLL is installed to $(libdir)/../bin by postinstall_cmds
20503    postinstall_cmds='base_file=`basename \${file}`~
20504      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20505      dldir=$destdir/`dirname \$dlpath`~
20506      test -d \$dldir || mkdir -p \$dldir~
20507      $install_prog $dir/$dlname \$dldir/$dlname~
20508      chmod a+x \$dldir/$dlname'
20509    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20510      dlpath=$dir/\$dldll~
20511       $rm \$dlpath'
20512    shlibpath_overrides_runpath=yes
20513
20514    case $host_os in
20515    cygwin*)
20516      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20517      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20518      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20519      ;;
20520    mingw*)
20521      # MinGW DLLs use traditional 'lib' prefix
20522      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20523      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20524      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20525        # It is most probably a Windows format PATH printed by
20526        # mingw gcc, but we are running on Cygwin. Gcc prints its search
20527        # path with ; separators, and with drive letters. We can handle the
20528        # drive letters (cygwin fileutils understands them), so leave them,
20529        # especially as we might pass files found there to a mingw objdump,
20530        # which wouldn't understand a cygwinified path. Ahh.
20531        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20532      else
20533        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20534      fi
20535      ;;
20536    pw32*)
20537      # pw32 DLLs use 'pw' prefix rather than 'lib'
20538      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20539      ;;
20540    esac
20541    ;;
20542
20543  *)
20544    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20545    ;;
20546  esac
20547  dynamic_linker='Win32 ld.exe'
20548  # FIXME: first we should search . and the directory the executable is in
20549  shlibpath_var=PATH
20550  ;;
20551
20552darwin* | rhapsody*)
20553  dynamic_linker="$host_os dyld"
20554  version_type=darwin
20555  need_lib_prefix=no
20556  need_version=no
20557  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20558  soname_spec='${libname}${release}${major}$shared_ext'
20559  shlibpath_overrides_runpath=yes
20560  shlibpath_var=DYLD_LIBRARY_PATH
20561  shrext_cmds='.dylib'
20562  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20563  if test "$GCC" = yes; then
20564    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"`
20565  else
20566    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20567  fi
20568  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20569  ;;
20570
20571dgux*)
20572  version_type=linux
20573  need_lib_prefix=no
20574  need_version=no
20575  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20576  soname_spec='${libname}${release}${shared_ext}$major'
20577  shlibpath_var=LD_LIBRARY_PATH
20578  ;;
20579
20580freebsd1*)
20581  dynamic_linker=no
20582  ;;
20583
20584kfreebsd*-gnu)
20585  version_type=linux
20586  need_lib_prefix=no
20587  need_version=no
20588  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20589  soname_spec='${libname}${release}${shared_ext}$major'
20590  shlibpath_var=LD_LIBRARY_PATH
20591  shlibpath_overrides_runpath=no
20592  hardcode_into_libs=yes
20593  dynamic_linker='GNU ld.so'
20594  ;;
20595
20596freebsd* | dragonfly*)
20597  # DragonFly does not have aout.  When/if they implement a new
20598  # versioning mechanism, adjust this.
20599  if test -x /usr/bin/objformat; then
20600    objformat=`/usr/bin/objformat`
20601  else
20602    case $host_os in
20603    freebsd[123]*) objformat=aout ;;
20604    *) objformat=elf ;;
20605    esac
20606  fi
20607  version_type=freebsd-$objformat
20608  case $version_type in
20609    freebsd-elf*)
20610      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20611      need_version=no
20612      need_lib_prefix=no
20613      ;;
20614    freebsd-*)
20615      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20616      need_version=yes
20617      ;;
20618  esac
20619  shlibpath_var=LD_LIBRARY_PATH
20620  case $host_os in
20621  freebsd2*)
20622    shlibpath_overrides_runpath=yes
20623    ;;
20624  freebsd3.[01]* | freebsdelf3.[01]*)
20625    shlibpath_overrides_runpath=yes
20626    hardcode_into_libs=yes
20627    ;;
20628  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20629  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20630    shlibpath_overrides_runpath=no
20631    hardcode_into_libs=yes
20632    ;;
20633  freebsd*) # from 4.6 on
20634    shlibpath_overrides_runpath=yes
20635    hardcode_into_libs=yes
20636    ;;
20637  esac
20638  ;;
20639
20640gnu*)
20641  version_type=linux
20642  need_lib_prefix=no
20643  need_version=no
20644  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20645  soname_spec='${libname}${release}${shared_ext}$major'
20646  shlibpath_var=LD_LIBRARY_PATH
20647  hardcode_into_libs=yes
20648  ;;
20649
20650hpux9* | hpux10* | hpux11*)
20651  # Give a soname corresponding to the major version so that dld.sl refuses to
20652  # link against other versions.
20653  version_type=sunos
20654  need_lib_prefix=no
20655  need_version=no
20656  case $host_cpu in
20657  ia64*)
20658    shrext_cmds='.so'
20659    hardcode_into_libs=yes
20660    dynamic_linker="$host_os dld.so"
20661    shlibpath_var=LD_LIBRARY_PATH
20662    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20663    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20664    soname_spec='${libname}${release}${shared_ext}$major'
20665    if test "X$HPUX_IA64_MODE" = X32; then
20666      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20667    else
20668      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20669    fi
20670    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20671    ;;
20672   hppa*64*)
20673     shrext_cmds='.sl'
20674     hardcode_into_libs=yes
20675     dynamic_linker="$host_os dld.sl"
20676     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20677     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20678     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20679     soname_spec='${libname}${release}${shared_ext}$major'
20680     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20681     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20682     ;;
20683   *)
20684    shrext_cmds='.sl'
20685    dynamic_linker="$host_os dld.sl"
20686    shlibpath_var=SHLIB_PATH
20687    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20688    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20689    soname_spec='${libname}${release}${shared_ext}$major'
20690    ;;
20691  esac
20692  # HP-UX runs *really* slowly unless shared libraries are mode 555.
20693  postinstall_cmds='chmod 555 $lib'
20694  ;;
20695
20696interix3*)
20697  version_type=linux
20698  need_lib_prefix=no
20699  need_version=no
20700  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20701  soname_spec='${libname}${release}${shared_ext}$major'
20702  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20703  shlibpath_var=LD_LIBRARY_PATH
20704  shlibpath_overrides_runpath=no
20705  hardcode_into_libs=yes
20706  ;;
20707
20708irix5* | irix6* | nonstopux*)
20709  case $host_os in
20710    nonstopux*) version_type=nonstopux ;;
20711    *)
20712	if test "$lt_cv_prog_gnu_ld" = yes; then
20713		version_type=linux
20714	else
20715		version_type=irix
20716	fi ;;
20717  esac
20718  need_lib_prefix=no
20719  need_version=no
20720  soname_spec='${libname}${release}${shared_ext}$major'
20721  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20722  case $host_os in
20723  irix5* | nonstopux*)
20724    libsuff= shlibsuff=
20725    ;;
20726  *)
20727    case $LD in # libtool.m4 will add one of these switches to LD
20728    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20729      libsuff= shlibsuff= libmagic=32-bit;;
20730    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20731      libsuff=32 shlibsuff=N32 libmagic=N32;;
20732    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20733      libsuff=64 shlibsuff=64 libmagic=64-bit;;
20734    *) libsuff= shlibsuff= libmagic=never-match;;
20735    esac
20736    ;;
20737  esac
20738  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20739  shlibpath_overrides_runpath=no
20740  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20741  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20742  hardcode_into_libs=yes
20743  ;;
20744
20745# No shared lib support for Linux oldld, aout, or coff.
20746linux*oldld* | linux*aout* | linux*coff*)
20747  dynamic_linker=no
20748  ;;
20749
20750# This must be Linux ELF.
20751linux*)
20752  version_type=linux
20753  need_lib_prefix=no
20754  need_version=no
20755  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20756  soname_spec='${libname}${release}${shared_ext}$major'
20757  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20758  shlibpath_var=LD_LIBRARY_PATH
20759  shlibpath_overrides_runpath=no
20760  # This implies no fast_install, which is unacceptable.
20761  # Some rework will be needed to allow for fast_install
20762  # before this can be enabled.
20763  hardcode_into_libs=yes
20764
20765  # Append ld.so.conf contents to the search path
20766  if test -f /etc/ld.so.conf; then
20767    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' ' '`
20768    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20769  fi
20770
20771  # We used to test for /lib/ld.so.1 and disable shared libraries on
20772  # powerpc, because MkLinux only supported shared libraries with the
20773  # GNU dynamic linker.  Since this was broken with cross compilers,
20774  # most powerpc-linux boxes support dynamic linking these days and
20775  # people can always --disable-shared, the test was removed, and we
20776  # assume the GNU/Linux dynamic linker is in use.
20777  dynamic_linker='GNU/Linux ld.so'
20778  ;;
20779
20780knetbsd*-gnu)
20781  version_type=linux
20782  need_lib_prefix=no
20783  need_version=no
20784  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20785  soname_spec='${libname}${release}${shared_ext}$major'
20786  shlibpath_var=LD_LIBRARY_PATH
20787  shlibpath_overrides_runpath=no
20788  hardcode_into_libs=yes
20789  dynamic_linker='GNU ld.so'
20790  ;;
20791
20792netbsd*)
20793  version_type=sunos
20794  need_lib_prefix=no
20795  need_version=no
20796  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20797    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20798    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20799    dynamic_linker='NetBSD (a.out) ld.so'
20800  else
20801    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20802    soname_spec='${libname}${release}${shared_ext}$major'
20803    dynamic_linker='NetBSD ld.elf_so'
20804  fi
20805  shlibpath_var=LD_LIBRARY_PATH
20806  shlibpath_overrides_runpath=yes
20807  hardcode_into_libs=yes
20808  ;;
20809
20810newsos6)
20811  version_type=linux
20812  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20813  shlibpath_var=LD_LIBRARY_PATH
20814  shlibpath_overrides_runpath=yes
20815  ;;
20816
20817nto-qnx*)
20818  version_type=linux
20819  need_lib_prefix=no
20820  need_version=no
20821  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20822  soname_spec='${libname}${release}${shared_ext}$major'
20823  shlibpath_var=LD_LIBRARY_PATH
20824  shlibpath_overrides_runpath=yes
20825  ;;
20826
20827openbsd*)
20828  version_type=sunos
20829  sys_lib_dlsearch_path_spec="/usr/lib"
20830  need_lib_prefix=no
20831  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20832  case $host_os in
20833    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20834    *)                         need_version=no  ;;
20835  esac
20836  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20837  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20838  shlibpath_var=LD_LIBRARY_PATH
20839  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20840    case $host_os in
20841      openbsd2.[89] | openbsd2.[89].*)
20842	shlibpath_overrides_runpath=no
20843	;;
20844      *)
20845	shlibpath_overrides_runpath=yes
20846	;;
20847      esac
20848  else
20849    shlibpath_overrides_runpath=yes
20850  fi
20851  ;;
20852
20853os2*)
20854  libname_spec='$name'
20855  shrext_cmds=".dll"
20856  need_lib_prefix=no
20857  library_names_spec='$libname${shared_ext} $libname.a'
20858  dynamic_linker='OS/2 ld.exe'
20859  shlibpath_var=LIBPATH
20860  ;;
20861
20862osf3* | osf4* | osf5*)
20863  version_type=osf
20864  need_lib_prefix=no
20865  need_version=no
20866  soname_spec='${libname}${release}${shared_ext}$major'
20867  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20868  shlibpath_var=LD_LIBRARY_PATH
20869  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20870  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20871  ;;
20872
20873solaris*)
20874  version_type=linux
20875  need_lib_prefix=no
20876  need_version=no
20877  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20878  soname_spec='${libname}${release}${shared_ext}$major'
20879  shlibpath_var=LD_LIBRARY_PATH
20880  shlibpath_overrides_runpath=yes
20881  hardcode_into_libs=yes
20882  # ldd complains unless libraries are executable
20883  postinstall_cmds='chmod +x $lib'
20884  ;;
20885
20886sunos4*)
20887  version_type=sunos
20888  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20889  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20890  shlibpath_var=LD_LIBRARY_PATH
20891  shlibpath_overrides_runpath=yes
20892  if test "$with_gnu_ld" = yes; then
20893    need_lib_prefix=no
20894  fi
20895  need_version=yes
20896  ;;
20897
20898sysv4 | sysv4.3*)
20899  version_type=linux
20900  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20901  soname_spec='${libname}${release}${shared_ext}$major'
20902  shlibpath_var=LD_LIBRARY_PATH
20903  case $host_vendor in
20904    sni)
20905      shlibpath_overrides_runpath=no
20906      need_lib_prefix=no
20907      export_dynamic_flag_spec='${wl}-Blargedynsym'
20908      runpath_var=LD_RUN_PATH
20909      ;;
20910    siemens)
20911      need_lib_prefix=no
20912      ;;
20913    motorola)
20914      need_lib_prefix=no
20915      need_version=no
20916      shlibpath_overrides_runpath=no
20917      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20918      ;;
20919  esac
20920  ;;
20921
20922sysv4*MP*)
20923  if test -d /usr/nec ;then
20924    version_type=linux
20925    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20926    soname_spec='$libname${shared_ext}.$major'
20927    shlibpath_var=LD_LIBRARY_PATH
20928  fi
20929  ;;
20930
20931sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20932  version_type=freebsd-elf
20933  need_lib_prefix=no
20934  need_version=no
20935  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20936  soname_spec='${libname}${release}${shared_ext}$major'
20937  shlibpath_var=LD_LIBRARY_PATH
20938  hardcode_into_libs=yes
20939  if test "$with_gnu_ld" = yes; then
20940    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20941    shlibpath_overrides_runpath=no
20942  else
20943    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20944    shlibpath_overrides_runpath=yes
20945    case $host_os in
20946      sco3.2v5*)
20947        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20948	;;
20949    esac
20950  fi
20951  sys_lib_dlsearch_path_spec='/usr/lib'
20952  ;;
20953
20954uts4*)
20955  version_type=linux
20956  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20957  soname_spec='${libname}${release}${shared_ext}$major'
20958  shlibpath_var=LD_LIBRARY_PATH
20959  ;;
20960
20961*)
20962  dynamic_linker=no
20963  ;;
20964esac
20965{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20966echo "${ECHO_T}$dynamic_linker" >&6; }
20967test "$dynamic_linker" = no && can_build_shared=no
20968
20969variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20970if test "$GCC" = yes; then
20971  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20972fi
20973
20974{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20975echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20976hardcode_action_CXX=
20977if test -n "$hardcode_libdir_flag_spec_CXX" || \
20978   test -n "$runpath_var_CXX" || \
20979   test "X$hardcode_automatic_CXX" = "Xyes" ; then
20980
20981  # We can hardcode non-existant directories.
20982  if test "$hardcode_direct_CXX" != no &&
20983     # If the only mechanism to avoid hardcoding is shlibpath_var, we
20984     # have to relink, otherwise we might link with an installed library
20985     # when we should be linking with a yet-to-be-installed one
20986     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20987     test "$hardcode_minus_L_CXX" != no; then
20988    # Linking always hardcodes the temporary library directory.
20989    hardcode_action_CXX=relink
20990  else
20991    # We can link without hardcoding, and we can hardcode nonexisting dirs.
20992    hardcode_action_CXX=immediate
20993  fi
20994else
20995  # We cannot hardcode anything, or else we can only hardcode existing
20996  # directories.
20997  hardcode_action_CXX=unsupported
20998fi
20999{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21000echo "${ECHO_T}$hardcode_action_CXX" >&6; }
21001
21002if test "$hardcode_action_CXX" = relink; then
21003  # Fast installation is not supported
21004  enable_fast_install=no
21005elif test "$shlibpath_overrides_runpath" = yes ||
21006     test "$enable_shared" = no; then
21007  # Fast installation is not necessary
21008  enable_fast_install=needless
21009fi
21010
21011
21012# The else clause should only fire when bootstrapping the
21013# libtool distribution, otherwise you forgot to ship ltmain.sh
21014# with your package, and you will get complaints that there are
21015# no rules to generate ltmain.sh.
21016if test -f "$ltmain"; then
21017  # See if we are running on zsh, and set the options which allow our commands through
21018  # without removal of \ escapes.
21019  if test -n "${ZSH_VERSION+set}" ; then
21020    setopt NO_GLOB_SUBST
21021  fi
21022  # Now quote all the things that may contain metacharacters while being
21023  # careful not to overquote the AC_SUBSTed values.  We take copies of the
21024  # variables and quote the copies for generation of the libtool script.
21025  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21026    SED SHELL STRIP \
21027    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21028    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21029    deplibs_check_method reload_flag reload_cmds need_locks \
21030    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21031    lt_cv_sys_global_symbol_to_c_name_address \
21032    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21033    old_postinstall_cmds old_postuninstall_cmds \
21034    compiler_CXX \
21035    CC_CXX \
21036    LD_CXX \
21037    lt_prog_compiler_wl_CXX \
21038    lt_prog_compiler_pic_CXX \
21039    lt_prog_compiler_static_CXX \
21040    lt_prog_compiler_no_builtin_flag_CXX \
21041    export_dynamic_flag_spec_CXX \
21042    thread_safe_flag_spec_CXX \
21043    whole_archive_flag_spec_CXX \
21044    enable_shared_with_static_runtimes_CXX \
21045    old_archive_cmds_CXX \
21046    old_archive_from_new_cmds_CXX \
21047    predep_objects_CXX \
21048    postdep_objects_CXX \
21049    predeps_CXX \
21050    postdeps_CXX \
21051    compiler_lib_search_path_CXX \
21052    archive_cmds_CXX \
21053    archive_expsym_cmds_CXX \
21054    postinstall_cmds_CXX \
21055    postuninstall_cmds_CXX \
21056    old_archive_from_expsyms_cmds_CXX \
21057    allow_undefined_flag_CXX \
21058    no_undefined_flag_CXX \
21059    export_symbols_cmds_CXX \
21060    hardcode_libdir_flag_spec_CXX \
21061    hardcode_libdir_flag_spec_ld_CXX \
21062    hardcode_libdir_separator_CXX \
21063    hardcode_automatic_CXX \
21064    module_cmds_CXX \
21065    module_expsym_cmds_CXX \
21066    lt_cv_prog_compiler_c_o_CXX \
21067    exclude_expsyms_CXX \
21068    include_expsyms_CXX; do
21069
21070    case $var in
21071    old_archive_cmds_CXX | \
21072    old_archive_from_new_cmds_CXX | \
21073    archive_cmds_CXX | \
21074    archive_expsym_cmds_CXX | \
21075    module_cmds_CXX | \
21076    module_expsym_cmds_CXX | \
21077    old_archive_from_expsyms_cmds_CXX | \
21078    export_symbols_cmds_CXX | \
21079    extract_expsyms_cmds | reload_cmds | finish_cmds | \
21080    postinstall_cmds | postuninstall_cmds | \
21081    old_postinstall_cmds | old_postuninstall_cmds | \
21082    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21083      # Double-quote double-evaled strings.
21084      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21085      ;;
21086    *)
21087      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21088      ;;
21089    esac
21090  done
21091
21092  case $lt_echo in
21093  *'\$0 --fallback-echo"')
21094    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21095    ;;
21096  esac
21097
21098cfgfile="$ofile"
21099
21100  cat <<__EOF__ >> "$cfgfile"
21101# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21102
21103# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21104
21105# Shell to use when invoking shell scripts.
21106SHELL=$lt_SHELL
21107
21108# Whether or not to build shared libraries.
21109build_libtool_libs=$enable_shared
21110
21111# Whether or not to build static libraries.
21112build_old_libs=$enable_static
21113
21114# Whether or not to add -lc for building shared libraries.
21115build_libtool_need_lc=$archive_cmds_need_lc_CXX
21116
21117# Whether or not to disallow shared libs when runtime libs are static
21118allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21119
21120# Whether or not to optimize for fast installation.
21121fast_install=$enable_fast_install
21122
21123# The host system.
21124host_alias=$host_alias
21125host=$host
21126host_os=$host_os
21127
21128# The build system.
21129build_alias=$build_alias
21130build=$build
21131build_os=$build_os
21132
21133# An echo program that does not interpret backslashes.
21134echo=$lt_echo
21135
21136# The archiver.
21137AR=$lt_AR
21138AR_FLAGS=$lt_AR_FLAGS
21139
21140# A C compiler.
21141LTCC=$lt_LTCC
21142
21143# LTCC compiler flags.
21144LTCFLAGS=$lt_LTCFLAGS
21145
21146# A language-specific compiler.
21147CC=$lt_compiler_CXX
21148
21149# Is the compiler the GNU C compiler?
21150with_gcc=$GCC_CXX
21151
21152# An ERE matcher.
21153EGREP=$lt_EGREP
21154
21155# The linker used to build libraries.
21156LD=$lt_LD_CXX
21157
21158# Whether we need hard or soft links.
21159LN_S=$lt_LN_S
21160
21161# A BSD-compatible nm program.
21162NM=$lt_NM
21163
21164# A symbol stripping program
21165STRIP=$lt_STRIP
21166
21167# Used to examine libraries when file_magic_cmd begins "file"
21168MAGIC_CMD=$MAGIC_CMD
21169
21170# Used on cygwin: DLL creation program.
21171DLLTOOL="$DLLTOOL"
21172
21173# Used on cygwin: object dumper.
21174OBJDUMP="$OBJDUMP"
21175
21176# Used on cygwin: assembler.
21177AS="$AS"
21178
21179# The name of the directory that contains temporary libtool files.
21180objdir=$objdir
21181
21182# How to create reloadable object files.
21183reload_flag=$lt_reload_flag
21184reload_cmds=$lt_reload_cmds
21185
21186# How to pass a linker flag through the compiler.
21187wl=$lt_lt_prog_compiler_wl_CXX
21188
21189# Object file suffix (normally "o").
21190objext="$ac_objext"
21191
21192# Old archive suffix (normally "a").
21193libext="$libext"
21194
21195# Shared library suffix (normally ".so").
21196shrext_cmds='$shrext_cmds'
21197
21198# Executable file suffix (normally "").
21199exeext="$exeext"
21200
21201# Additional compiler flags for building library objects.
21202pic_flag=$lt_lt_prog_compiler_pic_CXX
21203pic_mode=$pic_mode
21204
21205# What is the maximum length of a command?
21206max_cmd_len=$lt_cv_sys_max_cmd_len
21207
21208# Does compiler simultaneously support -c and -o options?
21209compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21210
21211# Must we lock files when doing compilation?
21212need_locks=$lt_need_locks
21213
21214# Do we need the lib prefix for modules?
21215need_lib_prefix=$need_lib_prefix
21216
21217# Do we need a version for libraries?
21218need_version=$need_version
21219
21220# Whether dlopen is supported.
21221dlopen_support=$enable_dlopen
21222
21223# Whether dlopen of programs is supported.
21224dlopen_self=$enable_dlopen_self
21225
21226# Whether dlopen of statically linked programs is supported.
21227dlopen_self_static=$enable_dlopen_self_static
21228
21229# Compiler flag to prevent dynamic linking.
21230link_static_flag=$lt_lt_prog_compiler_static_CXX
21231
21232# Compiler flag to turn off builtin functions.
21233no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21234
21235# Compiler flag to allow reflexive dlopens.
21236export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21237
21238# Compiler flag to generate shared objects directly from archives.
21239whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21240
21241# Compiler flag to generate thread-safe objects.
21242thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21243
21244# Library versioning type.
21245version_type=$version_type
21246
21247# Format of library name prefix.
21248libname_spec=$lt_libname_spec
21249
21250# List of archive names.  First name is the real one, the rest are links.
21251# The last name is the one that the linker finds with -lNAME.
21252library_names_spec=$lt_library_names_spec
21253
21254# The coded name of the library, if different from the real name.
21255soname_spec=$lt_soname_spec
21256
21257# Commands used to build and install an old-style archive.
21258RANLIB=$lt_RANLIB
21259old_archive_cmds=$lt_old_archive_cmds_CXX
21260old_postinstall_cmds=$lt_old_postinstall_cmds
21261old_postuninstall_cmds=$lt_old_postuninstall_cmds
21262
21263# Create an old-style archive from a shared archive.
21264old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21265
21266# Create a temporary old-style archive to link instead of a shared archive.
21267old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21268
21269# Commands used to build and install a shared archive.
21270archive_cmds=$lt_archive_cmds_CXX
21271archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21272postinstall_cmds=$lt_postinstall_cmds
21273postuninstall_cmds=$lt_postuninstall_cmds
21274
21275# Commands used to build a loadable module (assumed same as above if empty)
21276module_cmds=$lt_module_cmds_CXX
21277module_expsym_cmds=$lt_module_expsym_cmds_CXX
21278
21279# Commands to strip libraries.
21280old_striplib=$lt_old_striplib
21281striplib=$lt_striplib
21282
21283# Dependencies to place before the objects being linked to create a
21284# shared library.
21285predep_objects=$lt_predep_objects_CXX
21286
21287# Dependencies to place after the objects being linked to create a
21288# shared library.
21289postdep_objects=$lt_postdep_objects_CXX
21290
21291# Dependencies to place before the objects being linked to create a
21292# shared library.
21293predeps=$lt_predeps_CXX
21294
21295# Dependencies to place after the objects being linked to create a
21296# shared library.
21297postdeps=$lt_postdeps_CXX
21298
21299# The library search path used internally by the compiler when linking
21300# a shared library.
21301compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21302
21303# Method to check whether dependent libraries are shared objects.
21304deplibs_check_method=$lt_deplibs_check_method
21305
21306# Command to use when deplibs_check_method == file_magic.
21307file_magic_cmd=$lt_file_magic_cmd
21308
21309# Flag that allows shared libraries with undefined symbols to be built.
21310allow_undefined_flag=$lt_allow_undefined_flag_CXX
21311
21312# Flag that forces no undefined symbols.
21313no_undefined_flag=$lt_no_undefined_flag_CXX
21314
21315# Commands used to finish a libtool library installation in a directory.
21316finish_cmds=$lt_finish_cmds
21317
21318# Same as above, but a single script fragment to be evaled but not shown.
21319finish_eval=$lt_finish_eval
21320
21321# Take the output of nm and produce a listing of raw symbols and C names.
21322global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21323
21324# Transform the output of nm in a proper C declaration
21325global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21326
21327# Transform the output of nm in a C name address pair
21328global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21329
21330# This is the shared library runtime path variable.
21331runpath_var=$runpath_var
21332
21333# This is the shared library path variable.
21334shlibpath_var=$shlibpath_var
21335
21336# Is shlibpath searched before the hard-coded library search path?
21337shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21338
21339# How to hardcode a shared library path into an executable.
21340hardcode_action=$hardcode_action_CXX
21341
21342# Whether we should hardcode library paths into libraries.
21343hardcode_into_libs=$hardcode_into_libs
21344
21345# Flag to hardcode \$libdir into a binary during linking.
21346# This must work even if \$libdir does not exist.
21347hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21348
21349# If ld is used when linking, flag to hardcode \$libdir into
21350# a binary during linking. This must work even if \$libdir does
21351# not exist.
21352hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21353
21354# Whether we need a single -rpath flag with a separated argument.
21355hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21356
21357# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21358# resulting binary.
21359hardcode_direct=$hardcode_direct_CXX
21360
21361# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21362# resulting binary.
21363hardcode_minus_L=$hardcode_minus_L_CXX
21364
21365# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21366# the resulting binary.
21367hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21368
21369# Set to yes if building a shared library automatically hardcodes DIR into the library
21370# and all subsequent libraries and executables linked against it.
21371hardcode_automatic=$hardcode_automatic_CXX
21372
21373# Variables whose values should be saved in libtool wrapper scripts and
21374# restored at relink time.
21375variables_saved_for_relink="$variables_saved_for_relink"
21376
21377# Whether libtool must link a program against all its dependency libraries.
21378link_all_deplibs=$link_all_deplibs_CXX
21379
21380# Compile-time system search path for libraries
21381sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21382
21383# Run-time system search path for libraries
21384sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21385
21386# Fix the shell variable \$srcfile for the compiler.
21387fix_srcfile_path="$fix_srcfile_path_CXX"
21388
21389# Set to yes if exported symbols are required.
21390always_export_symbols=$always_export_symbols_CXX
21391
21392# The commands to list exported symbols.
21393export_symbols_cmds=$lt_export_symbols_cmds_CXX
21394
21395# The commands to extract the exported symbol list from a shared archive.
21396extract_expsyms_cmds=$lt_extract_expsyms_cmds
21397
21398# Symbols that should not be listed in the preloaded symbols.
21399exclude_expsyms=$lt_exclude_expsyms_CXX
21400
21401# Symbols that must always be exported.
21402include_expsyms=$lt_include_expsyms_CXX
21403
21404# ### END LIBTOOL TAG CONFIG: $tagname
21405
21406__EOF__
21407
21408
21409else
21410  # If there is no Makefile yet, we rely on a make rule to execute
21411  # `config.status --recheck' to rerun these tests and create the
21412  # libtool script then.
21413  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21414  if test -f "$ltmain_in"; then
21415    test -f Makefile && make "$ltmain"
21416  fi
21417fi
21418
21419
21420ac_ext=c
21421ac_cpp='$CPP $CPPFLAGS'
21422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21424ac_compiler_gnu=$ac_cv_c_compiler_gnu
21425
21426CC=$lt_save_CC
21427LDCXX=$LD
21428LD=$lt_save_LD
21429GCC=$lt_save_GCC
21430with_gnu_ldcxx=$with_gnu_ld
21431with_gnu_ld=$lt_save_with_gnu_ld
21432lt_cv_path_LDCXX=$lt_cv_path_LD
21433lt_cv_path_LD=$lt_save_path_LD
21434lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21435lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21436
21437	else
21438	  tagname=""
21439	fi
21440	;;
21441
21442      F77)
21443	if test -n "$F77" && test "X$F77" != "Xno"; then
21444
21445ac_ext=f
21446ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21447ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21448ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21449
21450
21451archive_cmds_need_lc_F77=no
21452allow_undefined_flag_F77=
21453always_export_symbols_F77=no
21454archive_expsym_cmds_F77=
21455export_dynamic_flag_spec_F77=
21456hardcode_direct_F77=no
21457hardcode_libdir_flag_spec_F77=
21458hardcode_libdir_flag_spec_ld_F77=
21459hardcode_libdir_separator_F77=
21460hardcode_minus_L_F77=no
21461hardcode_automatic_F77=no
21462module_cmds_F77=
21463module_expsym_cmds_F77=
21464link_all_deplibs_F77=unknown
21465old_archive_cmds_F77=$old_archive_cmds
21466no_undefined_flag_F77=
21467whole_archive_flag_spec_F77=
21468enable_shared_with_static_runtimes_F77=no
21469
21470# Source file extension for f77 test sources.
21471ac_ext=f
21472
21473# Object file extension for compiled f77 test sources.
21474objext=o
21475objext_F77=$objext
21476
21477# Code to be used in simple compile tests
21478lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
21479
21480# Code to be used in simple link tests
21481lt_simple_link_test_code="      program t\n      end\n"
21482
21483# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21484
21485# If no C compiler was specified, use CC.
21486LTCC=${LTCC-"$CC"}
21487
21488# If no C compiler flags were specified, use CFLAGS.
21489LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21490
21491# Allow CC to be a program name with arguments.
21492compiler=$CC
21493
21494
21495# save warnings/boilerplate of simple test code
21496ac_outfile=conftest.$ac_objext
21497printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21498eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21499_lt_compiler_boilerplate=`cat conftest.err`
21500$rm conftest*
21501
21502ac_outfile=conftest.$ac_objext
21503printf "$lt_simple_link_test_code" >conftest.$ac_ext
21504eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21505_lt_linker_boilerplate=`cat conftest.err`
21506$rm conftest*
21507
21508
21509# Allow CC to be a program name with arguments.
21510lt_save_CC="$CC"
21511CC=${F77-"f77"}
21512compiler=$CC
21513compiler_F77=$CC
21514for cc_temp in $compiler""; do
21515  case $cc_temp in
21516    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21517    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21518    \-*) ;;
21519    *) break;;
21520  esac
21521done
21522cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21523
21524
21525{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21526echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21527{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21528echo "${ECHO_T}$can_build_shared" >&6; }
21529
21530{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21531echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21532test "$can_build_shared" = "no" && enable_shared=no
21533
21534# On AIX, shared libraries and static libraries use the same namespace, and
21535# are all built from PIC.
21536case $host_os in
21537aix3*)
21538  test "$enable_shared" = yes && enable_static=no
21539  if test -n "$RANLIB"; then
21540    archive_cmds="$archive_cmds~\$RANLIB \$lib"
21541    postinstall_cmds='$RANLIB $lib'
21542  fi
21543  ;;
21544aix4* | aix5*)
21545  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21546    test "$enable_shared" = yes && enable_static=no
21547  fi
21548  ;;
21549esac
21550{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21551echo "${ECHO_T}$enable_shared" >&6; }
21552
21553{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21554echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21555# Make sure either enable_shared or enable_static is yes.
21556test "$enable_shared" = yes || enable_static=yes
21557{ echo "$as_me:$LINENO: result: $enable_static" >&5
21558echo "${ECHO_T}$enable_static" >&6; }
21559
21560GCC_F77="$G77"
21561LD_F77="$LD"
21562
21563lt_prog_compiler_wl_F77=
21564lt_prog_compiler_pic_F77=
21565lt_prog_compiler_static_F77=
21566
21567{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21568echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21569
21570  if test "$GCC" = yes; then
21571    lt_prog_compiler_wl_F77='-Wl,'
21572    lt_prog_compiler_static_F77='-static'
21573
21574    case $host_os in
21575      aix*)
21576      # All AIX code is PIC.
21577      if test "$host_cpu" = ia64; then
21578	# AIX 5 now supports IA64 processor
21579	lt_prog_compiler_static_F77='-Bstatic'
21580      fi
21581      ;;
21582
21583    amigaos*)
21584      # FIXME: we need at least 68020 code to build shared libraries, but
21585      # adding the `-m68020' flag to GCC prevents building anything better,
21586      # like `-m68040'.
21587      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21588      ;;
21589
21590    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21591      # PIC is the default for these OSes.
21592      ;;
21593
21594    mingw* | pw32* | os2*)
21595      # This hack is so that the source file can tell whether it is being
21596      # built for inclusion in a dll (and should export symbols for example).
21597      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21598      ;;
21599
21600    darwin* | rhapsody*)
21601      # PIC is the default on this platform
21602      # Common symbols not allowed in MH_DYLIB files
21603      lt_prog_compiler_pic_F77='-fno-common'
21604      ;;
21605
21606    interix3*)
21607      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21608      # Instead, we relocate shared libraries at runtime.
21609      ;;
21610
21611    msdosdjgpp*)
21612      # Just because we use GCC doesn't mean we suddenly get shared libraries
21613      # on systems that don't support them.
21614      lt_prog_compiler_can_build_shared_F77=no
21615      enable_shared=no
21616      ;;
21617
21618    sysv4*MP*)
21619      if test -d /usr/nec; then
21620	lt_prog_compiler_pic_F77=-Kconform_pic
21621      fi
21622      ;;
21623
21624    hpux*)
21625      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21626      # not for PA HP-UX.
21627      case $host_cpu in
21628      hppa*64*|ia64*)
21629	# +Z the default
21630	;;
21631      *)
21632	lt_prog_compiler_pic_F77='-fPIC'
21633	;;
21634      esac
21635      ;;
21636
21637    *)
21638      lt_prog_compiler_pic_F77='-fPIC'
21639      ;;
21640    esac
21641  else
21642    # PORTME Check for flag to pass linker flags through the system compiler.
21643    case $host_os in
21644    aix*)
21645      lt_prog_compiler_wl_F77='-Wl,'
21646      if test "$host_cpu" = ia64; then
21647	# AIX 5 now supports IA64 processor
21648	lt_prog_compiler_static_F77='-Bstatic'
21649      else
21650	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21651      fi
21652      ;;
21653      darwin*)
21654        # PIC is the default on this platform
21655        # Common symbols not allowed in MH_DYLIB files
21656       case $cc_basename in
21657         xlc*)
21658         lt_prog_compiler_pic_F77='-qnocommon'
21659         lt_prog_compiler_wl_F77='-Wl,'
21660         ;;
21661       esac
21662       ;;
21663
21664    mingw* | pw32* | os2*)
21665      # This hack is so that the source file can tell whether it is being
21666      # built for inclusion in a dll (and should export symbols for example).
21667      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21668      ;;
21669
21670    hpux9* | hpux10* | hpux11*)
21671      lt_prog_compiler_wl_F77='-Wl,'
21672      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21673      # not for PA HP-UX.
21674      case $host_cpu in
21675      hppa*64*|ia64*)
21676	# +Z the default
21677	;;
21678      *)
21679	lt_prog_compiler_pic_F77='+Z'
21680	;;
21681      esac
21682      # Is there a better lt_prog_compiler_static that works with the bundled CC?
21683      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21684      ;;
21685
21686    irix5* | irix6* | nonstopux*)
21687      lt_prog_compiler_wl_F77='-Wl,'
21688      # PIC (with -KPIC) is the default.
21689      lt_prog_compiler_static_F77='-non_shared'
21690      ;;
21691
21692    newsos6)
21693      lt_prog_compiler_pic_F77='-KPIC'
21694      lt_prog_compiler_static_F77='-Bstatic'
21695      ;;
21696
21697    linux*)
21698      case $cc_basename in
21699      icc* | ecc*)
21700	lt_prog_compiler_wl_F77='-Wl,'
21701	lt_prog_compiler_pic_F77='-KPIC'
21702	lt_prog_compiler_static_F77='-static'
21703        ;;
21704      pgcc* | pgf77* | pgf90* | pgf95*)
21705        # Portland Group compilers (*not* the Pentium gcc compiler,
21706	# which looks to be a dead project)
21707	lt_prog_compiler_wl_F77='-Wl,'
21708	lt_prog_compiler_pic_F77='-fpic'
21709	lt_prog_compiler_static_F77='-Bstatic'
21710        ;;
21711      ccc*)
21712        lt_prog_compiler_wl_F77='-Wl,'
21713        # All Alpha code is PIC.
21714        lt_prog_compiler_static_F77='-non_shared'
21715        ;;
21716      esac
21717      ;;
21718
21719    osf3* | osf4* | osf5*)
21720      lt_prog_compiler_wl_F77='-Wl,'
21721      # All OSF/1 code is PIC.
21722      lt_prog_compiler_static_F77='-non_shared'
21723      ;;
21724
21725    solaris*)
21726      lt_prog_compiler_pic_F77='-KPIC'
21727      lt_prog_compiler_static_F77='-Bstatic'
21728      case $cc_basename in
21729      f77* | f90* | f95*)
21730	lt_prog_compiler_wl_F77='-Qoption ld ';;
21731      *)
21732	lt_prog_compiler_wl_F77='-Wl,';;
21733      esac
21734      ;;
21735
21736    sunos4*)
21737      lt_prog_compiler_wl_F77='-Qoption ld '
21738      lt_prog_compiler_pic_F77='-PIC'
21739      lt_prog_compiler_static_F77='-Bstatic'
21740      ;;
21741
21742    sysv4 | sysv4.2uw2* | sysv4.3*)
21743      lt_prog_compiler_wl_F77='-Wl,'
21744      lt_prog_compiler_pic_F77='-KPIC'
21745      lt_prog_compiler_static_F77='-Bstatic'
21746      ;;
21747
21748    sysv4*MP*)
21749      if test -d /usr/nec ;then
21750	lt_prog_compiler_pic_F77='-Kconform_pic'
21751	lt_prog_compiler_static_F77='-Bstatic'
21752      fi
21753      ;;
21754
21755    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21756      lt_prog_compiler_wl_F77='-Wl,'
21757      lt_prog_compiler_pic_F77='-KPIC'
21758      lt_prog_compiler_static_F77='-Bstatic'
21759      ;;
21760
21761    unicos*)
21762      lt_prog_compiler_wl_F77='-Wl,'
21763      lt_prog_compiler_can_build_shared_F77=no
21764      ;;
21765
21766    uts4*)
21767      lt_prog_compiler_pic_F77='-pic'
21768      lt_prog_compiler_static_F77='-Bstatic'
21769      ;;
21770
21771    *)
21772      lt_prog_compiler_can_build_shared_F77=no
21773      ;;
21774    esac
21775  fi
21776
21777{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21778echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21779
21780#
21781# Check to make sure the PIC flag actually works.
21782#
21783if test -n "$lt_prog_compiler_pic_F77"; then
21784
21785{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21786echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21787if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21788  echo $ECHO_N "(cached) $ECHO_C" >&6
21789else
21790  lt_prog_compiler_pic_works_F77=no
21791  ac_outfile=conftest.$ac_objext
21792   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21793   lt_compiler_flag="$lt_prog_compiler_pic_F77"
21794   # Insert the option either (1) after the last *FLAGS variable, or
21795   # (2) before a word containing "conftest.", or (3) at the end.
21796   # Note that $ac_compile itself does not contain backslashes and begins
21797   # with a dollar sign (not a hyphen), so the echo should work correctly.
21798   # The option is referenced via a variable to avoid confusing sed.
21799   lt_compile=`echo "$ac_compile" | $SED \
21800   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21801   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21802   -e 's:$: $lt_compiler_flag:'`
21803   (eval echo "\"\$as_me:21803: $lt_compile\"" >&5)
21804   (eval "$lt_compile" 2>conftest.err)
21805   ac_status=$?
21806   cat conftest.err >&5
21807   echo "$as_me:21807: \$? = $ac_status" >&5
21808   if (exit $ac_status) && test -s "$ac_outfile"; then
21809     # The compiler can only warn and ignore the option if not recognized
21810     # So say no if there are warnings other than the usual output.
21811     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21812     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21813     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21814       lt_prog_compiler_pic_works_F77=yes
21815     fi
21816   fi
21817   $rm conftest*
21818
21819fi
21820{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21821echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21822
21823if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21824    case $lt_prog_compiler_pic_F77 in
21825     "" | " "*) ;;
21826     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21827     esac
21828else
21829    lt_prog_compiler_pic_F77=
21830     lt_prog_compiler_can_build_shared_F77=no
21831fi
21832
21833fi
21834case $host_os in
21835  # For platforms which do not support PIC, -DPIC is meaningless:
21836  *djgpp*)
21837    lt_prog_compiler_pic_F77=
21838    ;;
21839  *)
21840    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21841    ;;
21842esac
21843
21844#
21845# Check to make sure the static flag actually works.
21846#
21847wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21848{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21849echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21850if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21851  echo $ECHO_N "(cached) $ECHO_C" >&6
21852else
21853  lt_prog_compiler_static_works_F77=no
21854   save_LDFLAGS="$LDFLAGS"
21855   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21856   printf "$lt_simple_link_test_code" > conftest.$ac_ext
21857   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21858     # The linker can only warn and ignore the option if not recognized
21859     # So say no if there are warnings
21860     if test -s conftest.err; then
21861       # Append any errors to the config.log.
21862       cat conftest.err 1>&5
21863       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21864       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21865       if diff conftest.exp conftest.er2 >/dev/null; then
21866         lt_prog_compiler_static_works_F77=yes
21867       fi
21868     else
21869       lt_prog_compiler_static_works_F77=yes
21870     fi
21871   fi
21872   $rm conftest*
21873   LDFLAGS="$save_LDFLAGS"
21874
21875fi
21876{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21877echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21878
21879if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21880    :
21881else
21882    lt_prog_compiler_static_F77=
21883fi
21884
21885
21886{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21887echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21888if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21889  echo $ECHO_N "(cached) $ECHO_C" >&6
21890else
21891  lt_cv_prog_compiler_c_o_F77=no
21892   $rm -r conftest 2>/dev/null
21893   mkdir conftest
21894   cd conftest
21895   mkdir out
21896   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21897
21898   lt_compiler_flag="-o out/conftest2.$ac_objext"
21899   # Insert the option either (1) after the last *FLAGS variable, or
21900   # (2) before a word containing "conftest.", or (3) at the end.
21901   # Note that $ac_compile itself does not contain backslashes and begins
21902   # with a dollar sign (not a hyphen), so the echo should work correctly.
21903   lt_compile=`echo "$ac_compile" | $SED \
21904   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21905   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21906   -e 's:$: $lt_compiler_flag:'`
21907   (eval echo "\"\$as_me:21907: $lt_compile\"" >&5)
21908   (eval "$lt_compile" 2>out/conftest.err)
21909   ac_status=$?
21910   cat out/conftest.err >&5
21911   echo "$as_me:21911: \$? = $ac_status" >&5
21912   if (exit $ac_status) && test -s out/conftest2.$ac_objext
21913   then
21914     # The compiler can only warn and ignore the option if not recognized
21915     # So say no if there are warnings
21916     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21917     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21918     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21919       lt_cv_prog_compiler_c_o_F77=yes
21920     fi
21921   fi
21922   chmod u+w . 2>&5
21923   $rm conftest*
21924   # SGI C++ compiler will create directory out/ii_files/ for
21925   # template instantiation
21926   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21927   $rm out/* && rmdir out
21928   cd ..
21929   rmdir conftest
21930   $rm conftest*
21931
21932fi
21933{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21934echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21935
21936
21937hard_links="nottested"
21938if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21939  # do not overwrite the value of need_locks provided by the user
21940  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21941echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21942  hard_links=yes
21943  $rm conftest*
21944  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21945  touch conftest.a
21946  ln conftest.a conftest.b 2>&5 || hard_links=no
21947  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21948  { echo "$as_me:$LINENO: result: $hard_links" >&5
21949echo "${ECHO_T}$hard_links" >&6; }
21950  if test "$hard_links" = no; then
21951    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21952echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21953    need_locks=warn
21954  fi
21955else
21956  need_locks=no
21957fi
21958
21959{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21960echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21961
21962  runpath_var=
21963  allow_undefined_flag_F77=
21964  enable_shared_with_static_runtimes_F77=no
21965  archive_cmds_F77=
21966  archive_expsym_cmds_F77=
21967  old_archive_From_new_cmds_F77=
21968  old_archive_from_expsyms_cmds_F77=
21969  export_dynamic_flag_spec_F77=
21970  whole_archive_flag_spec_F77=
21971  thread_safe_flag_spec_F77=
21972  hardcode_libdir_flag_spec_F77=
21973  hardcode_libdir_flag_spec_ld_F77=
21974  hardcode_libdir_separator_F77=
21975  hardcode_direct_F77=no
21976  hardcode_minus_L_F77=no
21977  hardcode_shlibpath_var_F77=unsupported
21978  link_all_deplibs_F77=unknown
21979  hardcode_automatic_F77=no
21980  module_cmds_F77=
21981  module_expsym_cmds_F77=
21982  always_export_symbols_F77=no
21983  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21984  # include_expsyms should be a list of space-separated symbols to be *always*
21985  # included in the symbol list
21986  include_expsyms_F77=
21987  # exclude_expsyms can be an extended regexp of symbols to exclude
21988  # it will be wrapped by ` (' and `)$', so one must not match beginning or
21989  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21990  # as well as any symbol that contains `d'.
21991  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21992  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21993  # platforms (ab)use it in PIC code, but their linkers get confused if
21994  # the symbol is explicitly referenced.  Since portable code cannot
21995  # rely on this symbol name, it's probably fine to never include it in
21996  # preloaded symbol tables.
21997  extract_expsyms_cmds=
21998  # Just being paranoid about ensuring that cc_basename is set.
21999  for cc_temp in $compiler""; do
22000  case $cc_temp in
22001    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22002    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22003    \-*) ;;
22004    *) break;;
22005  esac
22006done
22007cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22008
22009  case $host_os in
22010  cygwin* | mingw* | pw32*)
22011    # FIXME: the MSVC++ port hasn't been tested in a loooong time
22012    # When not using gcc, we currently assume that we are using
22013    # Microsoft Visual C++.
22014    if test "$GCC" != yes; then
22015      with_gnu_ld=no
22016    fi
22017    ;;
22018  interix*)
22019    # we just hope/assume this is gcc and not c89 (= MSVC++)
22020    with_gnu_ld=yes
22021    ;;
22022  openbsd*)
22023    with_gnu_ld=no
22024    ;;
22025  esac
22026
22027  ld_shlibs_F77=yes
22028  if test "$with_gnu_ld" = yes; then
22029    # If archive_cmds runs LD, not CC, wlarc should be empty
22030    wlarc='${wl}'
22031
22032    # Set some defaults for GNU ld with shared library support. These
22033    # are reset later if shared libraries are not supported. Putting them
22034    # here allows them to be overridden if necessary.
22035    runpath_var=LD_RUN_PATH
22036    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
22037    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22038    # ancient GNU ld didn't support --whole-archive et. al.
22039    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22040	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22041      else
22042  	whole_archive_flag_spec_F77=
22043    fi
22044    supports_anon_versioning=no
22045    case `$LD -v 2>/dev/null` in
22046      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22047      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22048      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22049      *\ 2.11.*) ;; # other 2.11 versions
22050      *) supports_anon_versioning=yes ;;
22051    esac
22052
22053    # See if GNU ld supports shared libraries.
22054    case $host_os in
22055    aix3* | aix4* | aix5*)
22056      # On AIX/PPC, the GNU linker is very broken
22057      if test "$host_cpu" != ia64; then
22058	ld_shlibs_F77=no
22059	cat <<EOF 1>&2
22060
22061*** Warning: the GNU linker, at least up to release 2.9.1, is reported
22062*** to be unable to reliably create shared libraries on AIX.
22063*** Therefore, libtool is disabling shared libraries support.  If you
22064*** really care for shared libraries, you may want to modify your PATH
22065*** so that a non-GNU linker is found, and then restart.
22066
22067EOF
22068      fi
22069      ;;
22070
22071    amigaos*)
22072      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)'
22073      hardcode_libdir_flag_spec_F77='-L$libdir'
22074      hardcode_minus_L_F77=yes
22075
22076      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22077      # that the semantics of dynamic libraries on AmigaOS, at least up
22078      # to version 4, is to share data among multiple programs linked
22079      # with the same dynamic library.  Since this doesn't match the
22080      # behavior of shared libraries on other platforms, we can't use
22081      # them.
22082      ld_shlibs_F77=no
22083      ;;
22084
22085    beos*)
22086      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22087	allow_undefined_flag_F77=unsupported
22088	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22089	# support --undefined.  This deserves some investigation.  FIXME
22090	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22091      else
22092	ld_shlibs_F77=no
22093      fi
22094      ;;
22095
22096    cygwin* | mingw* | pw32*)
22097      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22098      # as there is no search path for DLLs.
22099      hardcode_libdir_flag_spec_F77='-L$libdir'
22100      allow_undefined_flag_F77=unsupported
22101      always_export_symbols_F77=no
22102      enable_shared_with_static_runtimes_F77=yes
22103      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22104
22105      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22106        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22107	# If the export-symbols file already is a .def file (1st line
22108	# is EXPORTS), use it as is; otherwise, prepend...
22109	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22110	  cp $export_symbols $output_objdir/$soname.def;
22111	else
22112	  echo EXPORTS > $output_objdir/$soname.def;
22113	  cat $export_symbols >> $output_objdir/$soname.def;
22114	fi~
22115	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22116      else
22117	ld_shlibs_F77=no
22118      fi
22119      ;;
22120
22121    interix3*)
22122      hardcode_direct_F77=no
22123      hardcode_shlibpath_var_F77=no
22124      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22125      export_dynamic_flag_spec_F77='${wl}-E'
22126      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22127      # Instead, shared libraries are loaded at an image base (0x10000000 by
22128      # default) and relocated if they conflict, which is a slow very memory
22129      # consuming and fragmenting process.  To avoid this, we pick a random,
22130      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22131      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
22132      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'
22133      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'
22134      ;;
22135
22136    linux*)
22137      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22138	tmp_addflag=
22139	case $cc_basename,$host_cpu in
22140	pgcc*)				# Portland Group C compiler
22141	  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'
22142	  tmp_addflag=' $pic_flag'
22143	  ;;
22144	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
22145	  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'
22146	  tmp_addflag=' $pic_flag -Mnomain' ;;
22147	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
22148	  tmp_addflag=' -i_dynamic' ;;
22149	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
22150	  tmp_addflag=' -i_dynamic -nofor_main' ;;
22151	ifc* | ifort*)			# Intel Fortran compiler
22152	  tmp_addflag=' -nofor_main' ;;
22153	esac
22154	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22155
22156	if test $supports_anon_versioning = yes; then
22157	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22158  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22159  $echo "local: *; };" >> $output_objdir/$libname.ver~
22160	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22161	fi
22162      else
22163	ld_shlibs_F77=no
22164      fi
22165      ;;
22166
22167    netbsd*)
22168      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22169	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22170	wlarc=
22171      else
22172	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22173	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22174      fi
22175      ;;
22176
22177    solaris*)
22178      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22179	ld_shlibs_F77=no
22180	cat <<EOF 1>&2
22181
22182*** Warning: The releases 2.8.* of the GNU linker cannot reliably
22183*** create shared libraries on Solaris systems.  Therefore, libtool
22184*** is disabling shared libraries support.  We urge you to upgrade GNU
22185*** binutils to release 2.9.1 or newer.  Another option is to modify
22186*** your PATH or compiler configuration so that the native linker is
22187*** used, and then restart.
22188
22189EOF
22190      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22191	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22192	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22193      else
22194	ld_shlibs_F77=no
22195      fi
22196      ;;
22197
22198    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22199      case `$LD -v 2>&1` in
22200        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22201	ld_shlibs_F77=no
22202	cat <<_LT_EOF 1>&2
22203
22204*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22205*** reliably create shared libraries on SCO systems.  Therefore, libtool
22206*** is disabling shared libraries support.  We urge you to upgrade GNU
22207*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
22208*** your PATH or compiler configuration so that the native linker is
22209*** used, and then restart.
22210
22211_LT_EOF
22212	;;
22213	*)
22214	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22215	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22216	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22217	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22218	  else
22219	    ld_shlibs_F77=no
22220	  fi
22221	;;
22222      esac
22223      ;;
22224
22225    sunos4*)
22226      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22227      wlarc=
22228      hardcode_direct_F77=yes
22229      hardcode_shlibpath_var_F77=no
22230      ;;
22231
22232    *)
22233      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22234	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22235	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22236      else
22237	ld_shlibs_F77=no
22238      fi
22239      ;;
22240    esac
22241
22242    if test "$ld_shlibs_F77" = no; then
22243      runpath_var=
22244      hardcode_libdir_flag_spec_F77=
22245      export_dynamic_flag_spec_F77=
22246      whole_archive_flag_spec_F77=
22247    fi
22248  else
22249    # PORTME fill in a description of your system's linker (not GNU ld)
22250    case $host_os in
22251    aix3*)
22252      allow_undefined_flag_F77=unsupported
22253      always_export_symbols_F77=yes
22254      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'
22255      # Note: this linker hardcodes the directories in LIBPATH if there
22256      # are no directories specified by -L.
22257      hardcode_minus_L_F77=yes
22258      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22259	# Neither direct hardcoding nor static linking is supported with a
22260	# broken collect2.
22261	hardcode_direct_F77=unsupported
22262      fi
22263      ;;
22264
22265    aix4* | aix5*)
22266      if test "$host_cpu" = ia64; then
22267	# On IA64, the linker does run time linking by default, so we don't
22268	# have to do anything special.
22269	aix_use_runtimelinking=no
22270	exp_sym_flag='-Bexport'
22271	no_entry_flag=""
22272      else
22273	# If we're using GNU nm, then we don't want the "-C" option.
22274	# -C means demangle to AIX nm, but means don't demangle with GNU nm
22275	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22276	  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'
22277	else
22278	  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'
22279	fi
22280	aix_use_runtimelinking=no
22281
22282	# Test if we are trying to use run time linking or normal
22283	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
22284	# need to do runtime linking.
22285	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22286	  for ld_flag in $LDFLAGS; do
22287  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22288  	    aix_use_runtimelinking=yes
22289  	    break
22290  	  fi
22291	  done
22292	  ;;
22293	esac
22294
22295	exp_sym_flag='-bexport'
22296	no_entry_flag='-bnoentry'
22297      fi
22298
22299      # When large executables or shared objects are built, AIX ld can
22300      # have problems creating the table of contents.  If linking a library
22301      # or program results in "error TOC overflow" add -mminimal-toc to
22302      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
22303      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22304
22305      archive_cmds_F77=''
22306      hardcode_direct_F77=yes
22307      hardcode_libdir_separator_F77=':'
22308      link_all_deplibs_F77=yes
22309
22310      if test "$GCC" = yes; then
22311	case $host_os in aix4.[012]|aix4.[012].*)
22312	# We only want to do this on AIX 4.2 and lower, the check
22313	# below for broken collect2 doesn't work under 4.3+
22314	  collect2name=`${CC} -print-prog-name=collect2`
22315	  if test -f "$collect2name" && \
22316  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
22317	  then
22318  	  # We have reworked collect2
22319  	  hardcode_direct_F77=yes
22320	  else
22321  	  # We have old collect2
22322  	  hardcode_direct_F77=unsupported
22323  	  # It fails to find uninstalled libraries when the uninstalled
22324  	  # path is not listed in the libpath.  Setting hardcode_minus_L
22325  	  # to unsupported forces relinking
22326  	  hardcode_minus_L_F77=yes
22327  	  hardcode_libdir_flag_spec_F77='-L$libdir'
22328  	  hardcode_libdir_separator_F77=
22329	  fi
22330	  ;;
22331	esac
22332	shared_flag='-shared'
22333	if test "$aix_use_runtimelinking" = yes; then
22334	  shared_flag="$shared_flag "'${wl}-G'
22335	fi
22336      else
22337	# not using gcc
22338	if test "$host_cpu" = ia64; then
22339  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22340  	# chokes on -Wl,-G. The following line is correct:
22341	  shared_flag='-G'
22342	else
22343	  if test "$aix_use_runtimelinking" = yes; then
22344	    shared_flag='${wl}-G'
22345	  else
22346	    shared_flag='${wl}-bM:SRE'
22347	  fi
22348	fi
22349      fi
22350
22351      # It seems that -bexpall does not export symbols beginning with
22352      # underscore (_), so it is better to generate a list of symbols to export.
22353      always_export_symbols_F77=yes
22354      if test "$aix_use_runtimelinking" = yes; then
22355	# Warning - without using the other runtime loading flags (-brtl),
22356	# -berok will link without error, but may produce a broken library.
22357	allow_undefined_flag_F77='-berok'
22358       # Determine the default libpath from the value encoded in an empty executable.
22359       cat >conftest.$ac_ext <<_ACEOF
22360      program main
22361
22362      end
22363_ACEOF
22364rm -f conftest.$ac_objext conftest$ac_exeext
22365if { (ac_try="$ac_link"
22366case "(($ac_try" in
22367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22368  *) ac_try_echo=$ac_try;;
22369esac
22370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22371  (eval "$ac_link") 2>conftest.er1
22372  ac_status=$?
22373  grep -v '^ *+' conftest.er1 >conftest.err
22374  rm -f conftest.er1
22375  cat conftest.err >&5
22376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377  (exit $ac_status); } &&
22378	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22379  { (case "(($ac_try" in
22380  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22381  *) ac_try_echo=$ac_try;;
22382esac
22383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22384  (eval "$ac_try") 2>&5
22385  ac_status=$?
22386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387  (exit $ac_status); }; } &&
22388	 { ac_try='test -s conftest$ac_exeext'
22389  { (case "(($ac_try" in
22390  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22391  *) ac_try_echo=$ac_try;;
22392esac
22393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22394  (eval "$ac_try") 2>&5
22395  ac_status=$?
22396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397  (exit $ac_status); }; }; then
22398
22399aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22400}'`
22401# Check for a 64-bit object if we didn't find anything.
22402if 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; }
22403}'`; fi
22404else
22405  echo "$as_me: failed program was:" >&5
22406sed 's/^/| /' conftest.$ac_ext >&5
22407
22408
22409fi
22410
22411rm -f core conftest.err conftest.$ac_objext \
22412      conftest$ac_exeext conftest.$ac_ext
22413if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22414
22415       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22416	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"
22417       else
22418	if test "$host_cpu" = ia64; then
22419	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22420	  allow_undefined_flag_F77="-z nodefs"
22421	  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"
22422	else
22423	 # Determine the default libpath from the value encoded in an empty executable.
22424	 cat >conftest.$ac_ext <<_ACEOF
22425      program main
22426
22427      end
22428_ACEOF
22429rm -f conftest.$ac_objext conftest$ac_exeext
22430if { (ac_try="$ac_link"
22431case "(($ac_try" in
22432  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22433  *) ac_try_echo=$ac_try;;
22434esac
22435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22436  (eval "$ac_link") 2>conftest.er1
22437  ac_status=$?
22438  grep -v '^ *+' conftest.er1 >conftest.err
22439  rm -f conftest.er1
22440  cat conftest.err >&5
22441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442  (exit $ac_status); } &&
22443	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22444  { (case "(($ac_try" in
22445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22446  *) ac_try_echo=$ac_try;;
22447esac
22448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22449  (eval "$ac_try") 2>&5
22450  ac_status=$?
22451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452  (exit $ac_status); }; } &&
22453	 { ac_try='test -s conftest$ac_exeext'
22454  { (case "(($ac_try" in
22455  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22456  *) ac_try_echo=$ac_try;;
22457esac
22458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22459  (eval "$ac_try") 2>&5
22460  ac_status=$?
22461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462  (exit $ac_status); }; }; then
22463
22464aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22465}'`
22466# Check for a 64-bit object if we didn't find anything.
22467if 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; }
22468}'`; fi
22469else
22470  echo "$as_me: failed program was:" >&5
22471sed 's/^/| /' conftest.$ac_ext >&5
22472
22473
22474fi
22475
22476rm -f core conftest.err conftest.$ac_objext \
22477      conftest$ac_exeext conftest.$ac_ext
22478if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22479
22480	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22481	  # Warning - without using the other run time loading flags,
22482	  # -berok will link without error, but may produce a broken library.
22483	  no_undefined_flag_F77=' ${wl}-bernotok'
22484	  allow_undefined_flag_F77=' ${wl}-berok'
22485	  # Exported symbols can be pulled into shared objects from archives
22486	  whole_archive_flag_spec_F77='$convenience'
22487	  archive_cmds_need_lc_F77=yes
22488	  # This is similar to how AIX traditionally builds its shared libraries.
22489	  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'
22490	fi
22491      fi
22492      ;;
22493
22494    amigaos*)
22495      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)'
22496      hardcode_libdir_flag_spec_F77='-L$libdir'
22497      hardcode_minus_L_F77=yes
22498      # see comment about different semantics on the GNU ld section
22499      ld_shlibs_F77=no
22500      ;;
22501
22502    bsdi[45]*)
22503      export_dynamic_flag_spec_F77=-rdynamic
22504      ;;
22505
22506    cygwin* | mingw* | pw32*)
22507      # When not using gcc, we currently assume that we are using
22508      # Microsoft Visual C++.
22509      # hardcode_libdir_flag_spec is actually meaningless, as there is
22510      # no search path for DLLs.
22511      hardcode_libdir_flag_spec_F77=' '
22512      allow_undefined_flag_F77=unsupported
22513      # Tell ltmain to make .lib files, not .a files.
22514      libext=lib
22515      # Tell ltmain to make .dll files, not .so files.
22516      shrext_cmds=".dll"
22517      # FIXME: Setting linknames here is a bad hack.
22518      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22519      # The linker will automatically build a .lib file if we build a DLL.
22520      old_archive_From_new_cmds_F77='true'
22521      # FIXME: Should let the user specify the lib program.
22522      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22523      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22524      enable_shared_with_static_runtimes_F77=yes
22525      ;;
22526
22527    darwin* | rhapsody*)
22528      case $host_os in
22529        rhapsody* | darwin1.[012])
22530         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22531         ;;
22532       *) # Darwin 1.3 on
22533         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22534           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22535         else
22536           case ${MACOSX_DEPLOYMENT_TARGET} in
22537             10.[012])
22538               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22539               ;;
22540             10.*)
22541               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22542               ;;
22543           esac
22544         fi
22545         ;;
22546      esac
22547      archive_cmds_need_lc_F77=no
22548      hardcode_direct_F77=no
22549      hardcode_automatic_F77=yes
22550      hardcode_shlibpath_var_F77=unsupported
22551      whole_archive_flag_spec_F77=''
22552      link_all_deplibs_F77=yes
22553    if test "$GCC" = yes ; then
22554    	output_verbose_link_cmd='echo'
22555        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22556      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22557      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22558      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}'
22559      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}'
22560    else
22561      case $cc_basename in
22562        xlc*)
22563         output_verbose_link_cmd='echo'
22564         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22565         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22566          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22567         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}'
22568          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}'
22569          ;;
22570       *)
22571         ld_shlibs_F77=no
22572          ;;
22573      esac
22574    fi
22575      ;;
22576
22577    dgux*)
22578      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22579      hardcode_libdir_flag_spec_F77='-L$libdir'
22580      hardcode_shlibpath_var_F77=no
22581      ;;
22582
22583    freebsd1*)
22584      ld_shlibs_F77=no
22585      ;;
22586
22587    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22588    # support.  Future versions do this automatically, but an explicit c++rt0.o
22589    # does not break anything, and helps significantly (at the cost of a little
22590    # extra space).
22591    freebsd2.2*)
22592      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22593      hardcode_libdir_flag_spec_F77='-R$libdir'
22594      hardcode_direct_F77=yes
22595      hardcode_shlibpath_var_F77=no
22596      ;;
22597
22598    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22599    freebsd2*)
22600      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22601      hardcode_direct_F77=yes
22602      hardcode_minus_L_F77=yes
22603      hardcode_shlibpath_var_F77=no
22604      ;;
22605
22606    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22607    freebsd* | kfreebsd*-gnu | dragonfly*)
22608      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22609      hardcode_libdir_flag_spec_F77='-R$libdir'
22610      hardcode_direct_F77=yes
22611      hardcode_shlibpath_var_F77=no
22612      ;;
22613
22614    hpux9*)
22615      if test "$GCC" = yes; then
22616	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'
22617      else
22618	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'
22619      fi
22620      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22621      hardcode_libdir_separator_F77=:
22622      hardcode_direct_F77=yes
22623
22624      # hardcode_minus_L: Not really in the search PATH,
22625      # but as the default location of the library.
22626      hardcode_minus_L_F77=yes
22627      export_dynamic_flag_spec_F77='${wl}-E'
22628      ;;
22629
22630    hpux10*)
22631      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22632	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22633      else
22634	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22635      fi
22636      if test "$with_gnu_ld" = no; then
22637	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22638	hardcode_libdir_separator_F77=:
22639
22640	hardcode_direct_F77=yes
22641	export_dynamic_flag_spec_F77='${wl}-E'
22642
22643	# hardcode_minus_L: Not really in the search PATH,
22644	# but as the default location of the library.
22645	hardcode_minus_L_F77=yes
22646      fi
22647      ;;
22648
22649    hpux11*)
22650      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22651	case $host_cpu in
22652	hppa*64*)
22653	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22654	  ;;
22655	ia64*)
22656	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22657	  ;;
22658	*)
22659	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22660	  ;;
22661	esac
22662      else
22663	case $host_cpu in
22664	hppa*64*)
22665	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22666	  ;;
22667	ia64*)
22668	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22669	  ;;
22670	*)
22671	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22672	  ;;
22673	esac
22674      fi
22675      if test "$with_gnu_ld" = no; then
22676	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22677	hardcode_libdir_separator_F77=:
22678
22679	case $host_cpu in
22680	hppa*64*|ia64*)
22681	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22682	  hardcode_direct_F77=no
22683	  hardcode_shlibpath_var_F77=no
22684	  ;;
22685	*)
22686	  hardcode_direct_F77=yes
22687	  export_dynamic_flag_spec_F77='${wl}-E'
22688
22689	  # hardcode_minus_L: Not really in the search PATH,
22690	  # but as the default location of the library.
22691	  hardcode_minus_L_F77=yes
22692	  ;;
22693	esac
22694      fi
22695      ;;
22696
22697    irix5* | irix6* | nonstopux*)
22698      if test "$GCC" = yes; then
22699	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'
22700      else
22701	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'
22702	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22703      fi
22704      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22705      hardcode_libdir_separator_F77=:
22706      link_all_deplibs_F77=yes
22707      ;;
22708
22709    netbsd*)
22710      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22711	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22712      else
22713	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22714      fi
22715      hardcode_libdir_flag_spec_F77='-R$libdir'
22716      hardcode_direct_F77=yes
22717      hardcode_shlibpath_var_F77=no
22718      ;;
22719
22720    newsos6)
22721      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22722      hardcode_direct_F77=yes
22723      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22724      hardcode_libdir_separator_F77=:
22725      hardcode_shlibpath_var_F77=no
22726      ;;
22727
22728    openbsd*)
22729      hardcode_direct_F77=yes
22730      hardcode_shlibpath_var_F77=no
22731      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22732	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22733	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22734	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22735	export_dynamic_flag_spec_F77='${wl}-E'
22736      else
22737       case $host_os in
22738	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22739	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22740	   hardcode_libdir_flag_spec_F77='-R$libdir'
22741	   ;;
22742	 *)
22743	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22744	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22745	   ;;
22746       esac
22747      fi
22748      ;;
22749
22750    os2*)
22751      hardcode_libdir_flag_spec_F77='-L$libdir'
22752      hardcode_minus_L_F77=yes
22753      allow_undefined_flag_F77=unsupported
22754      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'
22755      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22756      ;;
22757
22758    osf3*)
22759      if test "$GCC" = yes; then
22760	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22761	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'
22762      else
22763	allow_undefined_flag_F77=' -expect_unresolved \*'
22764	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'
22765      fi
22766      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22767      hardcode_libdir_separator_F77=:
22768      ;;
22769
22770    osf4* | osf5*)	# as osf3* with the addition of -msym flag
22771      if test "$GCC" = yes; then
22772	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22773	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'
22774	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22775      else
22776	allow_undefined_flag_F77=' -expect_unresolved \*'
22777	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'
22778	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~
22779	$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'
22780
22781	# Both c and cxx compiler support -rpath directly
22782	hardcode_libdir_flag_spec_F77='-rpath $libdir'
22783      fi
22784      hardcode_libdir_separator_F77=:
22785      ;;
22786
22787    solaris*)
22788      no_undefined_flag_F77=' -z text'
22789      if test "$GCC" = yes; then
22790	wlarc='${wl}'
22791	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22792	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22793	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22794      else
22795	wlarc=''
22796	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22797	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22798  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22799      fi
22800      hardcode_libdir_flag_spec_F77='-R$libdir'
22801      hardcode_shlibpath_var_F77=no
22802      case $host_os in
22803      solaris2.[0-5] | solaris2.[0-5].*) ;;
22804      *)
22805 	# The compiler driver will combine linker options so we
22806 	# cannot just pass the convience library names through
22807 	# without $wl, iff we do not link with $LD.
22808 	# Luckily, gcc supports the same syntax we need for Sun Studio.
22809 	# Supported since Solaris 2.6 (maybe 2.5.1?)
22810 	case $wlarc in
22811 	'')
22812 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22813 	*)
22814 	  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' ;;
22815 	esac ;;
22816      esac
22817      link_all_deplibs_F77=yes
22818      ;;
22819
22820    sunos4*)
22821      if test "x$host_vendor" = xsequent; then
22822	# Use $CC to link under sequent, because it throws in some extra .o
22823	# files that make .init and .fini sections work.
22824	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22825      else
22826	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22827      fi
22828      hardcode_libdir_flag_spec_F77='-L$libdir'
22829      hardcode_direct_F77=yes
22830      hardcode_minus_L_F77=yes
22831      hardcode_shlibpath_var_F77=no
22832      ;;
22833
22834    sysv4)
22835      case $host_vendor in
22836	sni)
22837	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22838	  hardcode_direct_F77=yes # is this really true???
22839	;;
22840	siemens)
22841	  ## LD is ld it makes a PLAMLIB
22842	  ## CC just makes a GrossModule.
22843	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22844	  reload_cmds_F77='$CC -r -o $output$reload_objs'
22845	  hardcode_direct_F77=no
22846        ;;
22847	motorola)
22848	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22849	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22850	;;
22851      esac
22852      runpath_var='LD_RUN_PATH'
22853      hardcode_shlibpath_var_F77=no
22854      ;;
22855
22856    sysv4.3*)
22857      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22858      hardcode_shlibpath_var_F77=no
22859      export_dynamic_flag_spec_F77='-Bexport'
22860      ;;
22861
22862    sysv4*MP*)
22863      if test -d /usr/nec; then
22864	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22865	hardcode_shlibpath_var_F77=no
22866	runpath_var=LD_RUN_PATH
22867	hardcode_runpath_var=yes
22868	ld_shlibs_F77=yes
22869      fi
22870      ;;
22871
22872    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22873      no_undefined_flag_F77='${wl}-z,text'
22874      archive_cmds_need_lc_F77=no
22875      hardcode_shlibpath_var_F77=no
22876      runpath_var='LD_RUN_PATH'
22877
22878      if test "$GCC" = yes; then
22879	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22880	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22881      else
22882	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22883	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22884      fi
22885      ;;
22886
22887    sysv5* | sco3.2v5* | sco5v6*)
22888      # Note: We can NOT use -z defs as we might desire, because we do not
22889      # link with -lc, and that would cause any symbols used from libc to
22890      # always be unresolved, which means just about no library would
22891      # ever link correctly.  If we're not using GNU ld we use -z text
22892      # though, which does catch some bad symbols but isn't as heavy-handed
22893      # as -z defs.
22894      no_undefined_flag_F77='${wl}-z,text'
22895      allow_undefined_flag_F77='${wl}-z,nodefs'
22896      archive_cmds_need_lc_F77=no
22897      hardcode_shlibpath_var_F77=no
22898      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22899      hardcode_libdir_separator_F77=':'
22900      link_all_deplibs_F77=yes
22901      export_dynamic_flag_spec_F77='${wl}-Bexport'
22902      runpath_var='LD_RUN_PATH'
22903
22904      if test "$GCC" = yes; then
22905	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22906	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22907      else
22908	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22909	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22910      fi
22911      ;;
22912
22913    uts4*)
22914      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22915      hardcode_libdir_flag_spec_F77='-L$libdir'
22916      hardcode_shlibpath_var_F77=no
22917      ;;
22918
22919    *)
22920      ld_shlibs_F77=no
22921      ;;
22922    esac
22923  fi
22924
22925{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22926echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22927test "$ld_shlibs_F77" = no && can_build_shared=no
22928
22929#
22930# Do we need to explicitly link libc?
22931#
22932case "x$archive_cmds_need_lc_F77" in
22933x|xyes)
22934  # Assume -lc should be added
22935  archive_cmds_need_lc_F77=yes
22936
22937  if test "$enable_shared" = yes && test "$GCC" = yes; then
22938    case $archive_cmds_F77 in
22939    *'~'*)
22940      # FIXME: we may have to deal with multi-command sequences.
22941      ;;
22942    '$CC '*)
22943      # Test whether the compiler implicitly links with -lc since on some
22944      # systems, -lgcc has to come before -lc. If gcc already passes -lc
22945      # to ld, don't add -lc before -lgcc.
22946      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22947echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22948      $rm conftest*
22949      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22950
22951      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22952  (eval $ac_compile) 2>&5
22953  ac_status=$?
22954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955  (exit $ac_status); } 2>conftest.err; then
22956        soname=conftest
22957        lib=conftest
22958        libobjs=conftest.$ac_objext
22959        deplibs=
22960        wl=$lt_prog_compiler_wl_F77
22961	pic_flag=$lt_prog_compiler_pic_F77
22962        compiler_flags=-v
22963        linker_flags=-v
22964        verstring=
22965        output_objdir=.
22966        libname=conftest
22967        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22968        allow_undefined_flag_F77=
22969        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22970  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22971  ac_status=$?
22972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22973  (exit $ac_status); }
22974        then
22975	  archive_cmds_need_lc_F77=no
22976        else
22977	  archive_cmds_need_lc_F77=yes
22978        fi
22979        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22980      else
22981        cat conftest.err 1>&5
22982      fi
22983      $rm conftest*
22984      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22985echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22986      ;;
22987    esac
22988  fi
22989  ;;
22990esac
22991
22992{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22993echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22994library_names_spec=
22995libname_spec='lib$name'
22996soname_spec=
22997shrext_cmds=".so"
22998postinstall_cmds=
22999postuninstall_cmds=
23000finish_cmds=
23001finish_eval=
23002shlibpath_var=
23003shlibpath_overrides_runpath=unknown
23004version_type=none
23005dynamic_linker="$host_os ld.so"
23006sys_lib_dlsearch_path_spec="/lib /usr/lib"
23007if test "$GCC" = yes; then
23008  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23009  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23010    # if the path contains ";" then we assume it to be the separator
23011    # otherwise default to the standard path separator (i.e. ":") - it is
23012    # assumed that no part of a normal pathname contains ";" but that should
23013    # okay in the real world where ";" in dirpaths is itself problematic.
23014    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23015  else
23016    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23017  fi
23018else
23019  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23020fi
23021need_lib_prefix=unknown
23022hardcode_into_libs=no
23023
23024# when you set need_version to no, make sure it does not cause -set_version
23025# flags to be left without arguments
23026need_version=unknown
23027
23028case $host_os in
23029aix3*)
23030  version_type=linux
23031  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23032  shlibpath_var=LIBPATH
23033
23034  # AIX 3 has no versioning support, so we append a major version to the name.
23035  soname_spec='${libname}${release}${shared_ext}$major'
23036  ;;
23037
23038aix4* | aix5*)
23039  version_type=linux
23040  need_lib_prefix=no
23041  need_version=no
23042  hardcode_into_libs=yes
23043  if test "$host_cpu" = ia64; then
23044    # AIX 5 supports IA64
23045    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23046    shlibpath_var=LD_LIBRARY_PATH
23047  else
23048    # With GCC up to 2.95.x, collect2 would create an import file
23049    # for dependence libraries.  The import file would start with
23050    # the line `#! .'.  This would cause the generated library to
23051    # depend on `.', always an invalid library.  This was fixed in
23052    # development snapshots of GCC prior to 3.0.
23053    case $host_os in
23054      aix4 | aix4.[01] | aix4.[01].*)
23055      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23056	   echo ' yes '
23057	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23058	:
23059      else
23060	can_build_shared=no
23061      fi
23062      ;;
23063    esac
23064    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23065    # soname into executable. Probably we can add versioning support to
23066    # collect2, so additional links can be useful in future.
23067    if test "$aix_use_runtimelinking" = yes; then
23068      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23069      # instead of lib<name>.a to let people know that these are not
23070      # typical AIX shared libraries.
23071      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23072    else
23073      # We preserve .a as extension for shared libraries through AIX4.2
23074      # and later when we are not doing run time linking.
23075      library_names_spec='${libname}${release}.a $libname.a'
23076      soname_spec='${libname}${release}${shared_ext}$major'
23077    fi
23078    shlibpath_var=LIBPATH
23079  fi
23080  ;;
23081
23082amigaos*)
23083  library_names_spec='$libname.ixlibrary $libname.a'
23084  # Create ${libname}_ixlibrary.a entries in /sys/libs.
23085  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'
23086  ;;
23087
23088beos*)
23089  library_names_spec='${libname}${shared_ext}'
23090  dynamic_linker="$host_os ld.so"
23091  shlibpath_var=LIBRARY_PATH
23092  ;;
23093
23094bsdi[45]*)
23095  version_type=linux
23096  need_version=no
23097  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23098  soname_spec='${libname}${release}${shared_ext}$major'
23099  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23100  shlibpath_var=LD_LIBRARY_PATH
23101  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23102  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23103  # the default ld.so.conf also contains /usr/contrib/lib and
23104  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23105  # libtool to hard-code these into programs
23106  ;;
23107
23108cygwin* | mingw* | pw32*)
23109  version_type=windows
23110  shrext_cmds=".dll"
23111  need_version=no
23112  need_lib_prefix=no
23113
23114  case $GCC,$host_os in
23115  yes,cygwin* | yes,mingw* | yes,pw32*)
23116    library_names_spec='$libname.dll.a'
23117    # DLL is installed to $(libdir)/../bin by postinstall_cmds
23118    postinstall_cmds='base_file=`basename \${file}`~
23119      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23120      dldir=$destdir/`dirname \$dlpath`~
23121      test -d \$dldir || mkdir -p \$dldir~
23122      $install_prog $dir/$dlname \$dldir/$dlname~
23123      chmod a+x \$dldir/$dlname'
23124    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23125      dlpath=$dir/\$dldll~
23126       $rm \$dlpath'
23127    shlibpath_overrides_runpath=yes
23128
23129    case $host_os in
23130    cygwin*)
23131      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23132      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23133      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23134      ;;
23135    mingw*)
23136      # MinGW DLLs use traditional 'lib' prefix
23137      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23138      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23139      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23140        # It is most probably a Windows format PATH printed by
23141        # mingw gcc, but we are running on Cygwin. Gcc prints its search
23142        # path with ; separators, and with drive letters. We can handle the
23143        # drive letters (cygwin fileutils understands them), so leave them,
23144        # especially as we might pass files found there to a mingw objdump,
23145        # which wouldn't understand a cygwinified path. Ahh.
23146        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23147      else
23148        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23149      fi
23150      ;;
23151    pw32*)
23152      # pw32 DLLs use 'pw' prefix rather than 'lib'
23153      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23154      ;;
23155    esac
23156    ;;
23157
23158  *)
23159    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23160    ;;
23161  esac
23162  dynamic_linker='Win32 ld.exe'
23163  # FIXME: first we should search . and the directory the executable is in
23164  shlibpath_var=PATH
23165  ;;
23166
23167darwin* | rhapsody*)
23168  dynamic_linker="$host_os dyld"
23169  version_type=darwin
23170  need_lib_prefix=no
23171  need_version=no
23172  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23173  soname_spec='${libname}${release}${major}$shared_ext'
23174  shlibpath_overrides_runpath=yes
23175  shlibpath_var=DYLD_LIBRARY_PATH
23176  shrext_cmds='.dylib'
23177  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23178  if test "$GCC" = yes; then
23179    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"`
23180  else
23181    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23182  fi
23183  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23184  ;;
23185
23186dgux*)
23187  version_type=linux
23188  need_lib_prefix=no
23189  need_version=no
23190  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23191  soname_spec='${libname}${release}${shared_ext}$major'
23192  shlibpath_var=LD_LIBRARY_PATH
23193  ;;
23194
23195freebsd1*)
23196  dynamic_linker=no
23197  ;;
23198
23199kfreebsd*-gnu)
23200  version_type=linux
23201  need_lib_prefix=no
23202  need_version=no
23203  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23204  soname_spec='${libname}${release}${shared_ext}$major'
23205  shlibpath_var=LD_LIBRARY_PATH
23206  shlibpath_overrides_runpath=no
23207  hardcode_into_libs=yes
23208  dynamic_linker='GNU ld.so'
23209  ;;
23210
23211freebsd* | dragonfly*)
23212  # DragonFly does not have aout.  When/if they implement a new
23213  # versioning mechanism, adjust this.
23214  if test -x /usr/bin/objformat; then
23215    objformat=`/usr/bin/objformat`
23216  else
23217    case $host_os in
23218    freebsd[123]*) objformat=aout ;;
23219    *) objformat=elf ;;
23220    esac
23221  fi
23222  version_type=freebsd-$objformat
23223  case $version_type in
23224    freebsd-elf*)
23225      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23226      need_version=no
23227      need_lib_prefix=no
23228      ;;
23229    freebsd-*)
23230      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23231      need_version=yes
23232      ;;
23233  esac
23234  shlibpath_var=LD_LIBRARY_PATH
23235  case $host_os in
23236  freebsd2*)
23237    shlibpath_overrides_runpath=yes
23238    ;;
23239  freebsd3.[01]* | freebsdelf3.[01]*)
23240    shlibpath_overrides_runpath=yes
23241    hardcode_into_libs=yes
23242    ;;
23243  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23244  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23245    shlibpath_overrides_runpath=no
23246    hardcode_into_libs=yes
23247    ;;
23248  freebsd*) # from 4.6 on
23249    shlibpath_overrides_runpath=yes
23250    hardcode_into_libs=yes
23251    ;;
23252  esac
23253  ;;
23254
23255gnu*)
23256  version_type=linux
23257  need_lib_prefix=no
23258  need_version=no
23259  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23260  soname_spec='${libname}${release}${shared_ext}$major'
23261  shlibpath_var=LD_LIBRARY_PATH
23262  hardcode_into_libs=yes
23263  ;;
23264
23265hpux9* | hpux10* | hpux11*)
23266  # Give a soname corresponding to the major version so that dld.sl refuses to
23267  # link against other versions.
23268  version_type=sunos
23269  need_lib_prefix=no
23270  need_version=no
23271  case $host_cpu in
23272  ia64*)
23273    shrext_cmds='.so'
23274    hardcode_into_libs=yes
23275    dynamic_linker="$host_os dld.so"
23276    shlibpath_var=LD_LIBRARY_PATH
23277    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23278    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23279    soname_spec='${libname}${release}${shared_ext}$major'
23280    if test "X$HPUX_IA64_MODE" = X32; then
23281      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23282    else
23283      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23284    fi
23285    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23286    ;;
23287   hppa*64*)
23288     shrext_cmds='.sl'
23289     hardcode_into_libs=yes
23290     dynamic_linker="$host_os dld.sl"
23291     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23292     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23293     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23294     soname_spec='${libname}${release}${shared_ext}$major'
23295     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23296     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23297     ;;
23298   *)
23299    shrext_cmds='.sl'
23300    dynamic_linker="$host_os dld.sl"
23301    shlibpath_var=SHLIB_PATH
23302    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23303    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23304    soname_spec='${libname}${release}${shared_ext}$major'
23305    ;;
23306  esac
23307  # HP-UX runs *really* slowly unless shared libraries are mode 555.
23308  postinstall_cmds='chmod 555 $lib'
23309  ;;
23310
23311interix3*)
23312  version_type=linux
23313  need_lib_prefix=no
23314  need_version=no
23315  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23316  soname_spec='${libname}${release}${shared_ext}$major'
23317  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23318  shlibpath_var=LD_LIBRARY_PATH
23319  shlibpath_overrides_runpath=no
23320  hardcode_into_libs=yes
23321  ;;
23322
23323irix5* | irix6* | nonstopux*)
23324  case $host_os in
23325    nonstopux*) version_type=nonstopux ;;
23326    *)
23327	if test "$lt_cv_prog_gnu_ld" = yes; then
23328		version_type=linux
23329	else
23330		version_type=irix
23331	fi ;;
23332  esac
23333  need_lib_prefix=no
23334  need_version=no
23335  soname_spec='${libname}${release}${shared_ext}$major'
23336  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23337  case $host_os in
23338  irix5* | nonstopux*)
23339    libsuff= shlibsuff=
23340    ;;
23341  *)
23342    case $LD in # libtool.m4 will add one of these switches to LD
23343    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23344      libsuff= shlibsuff= libmagic=32-bit;;
23345    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23346      libsuff=32 shlibsuff=N32 libmagic=N32;;
23347    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23348      libsuff=64 shlibsuff=64 libmagic=64-bit;;
23349    *) libsuff= shlibsuff= libmagic=never-match;;
23350    esac
23351    ;;
23352  esac
23353  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23354  shlibpath_overrides_runpath=no
23355  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23356  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23357  hardcode_into_libs=yes
23358  ;;
23359
23360# No shared lib support for Linux oldld, aout, or coff.
23361linux*oldld* | linux*aout* | linux*coff*)
23362  dynamic_linker=no
23363  ;;
23364
23365# This must be Linux ELF.
23366linux*)
23367  version_type=linux
23368  need_lib_prefix=no
23369  need_version=no
23370  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23371  soname_spec='${libname}${release}${shared_ext}$major'
23372  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23373  shlibpath_var=LD_LIBRARY_PATH
23374  shlibpath_overrides_runpath=no
23375  # This implies no fast_install, which is unacceptable.
23376  # Some rework will be needed to allow for fast_install
23377  # before this can be enabled.
23378  hardcode_into_libs=yes
23379
23380  # Append ld.so.conf contents to the search path
23381  if test -f /etc/ld.so.conf; then
23382    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' ' '`
23383    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23384  fi
23385
23386  # We used to test for /lib/ld.so.1 and disable shared libraries on
23387  # powerpc, because MkLinux only supported shared libraries with the
23388  # GNU dynamic linker.  Since this was broken with cross compilers,
23389  # most powerpc-linux boxes support dynamic linking these days and
23390  # people can always --disable-shared, the test was removed, and we
23391  # assume the GNU/Linux dynamic linker is in use.
23392  dynamic_linker='GNU/Linux ld.so'
23393  ;;
23394
23395knetbsd*-gnu)
23396  version_type=linux
23397  need_lib_prefix=no
23398  need_version=no
23399  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23400  soname_spec='${libname}${release}${shared_ext}$major'
23401  shlibpath_var=LD_LIBRARY_PATH
23402  shlibpath_overrides_runpath=no
23403  hardcode_into_libs=yes
23404  dynamic_linker='GNU ld.so'
23405  ;;
23406
23407netbsd*)
23408  version_type=sunos
23409  need_lib_prefix=no
23410  need_version=no
23411  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23412    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23413    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23414    dynamic_linker='NetBSD (a.out) ld.so'
23415  else
23416    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23417    soname_spec='${libname}${release}${shared_ext}$major'
23418    dynamic_linker='NetBSD ld.elf_so'
23419  fi
23420  shlibpath_var=LD_LIBRARY_PATH
23421  shlibpath_overrides_runpath=yes
23422  hardcode_into_libs=yes
23423  ;;
23424
23425newsos6)
23426  version_type=linux
23427  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23428  shlibpath_var=LD_LIBRARY_PATH
23429  shlibpath_overrides_runpath=yes
23430  ;;
23431
23432nto-qnx*)
23433  version_type=linux
23434  need_lib_prefix=no
23435  need_version=no
23436  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23437  soname_spec='${libname}${release}${shared_ext}$major'
23438  shlibpath_var=LD_LIBRARY_PATH
23439  shlibpath_overrides_runpath=yes
23440  ;;
23441
23442openbsd*)
23443  version_type=sunos
23444  sys_lib_dlsearch_path_spec="/usr/lib"
23445  need_lib_prefix=no
23446  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23447  case $host_os in
23448    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23449    *)                         need_version=no  ;;
23450  esac
23451  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23452  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23453  shlibpath_var=LD_LIBRARY_PATH
23454  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23455    case $host_os in
23456      openbsd2.[89] | openbsd2.[89].*)
23457	shlibpath_overrides_runpath=no
23458	;;
23459      *)
23460	shlibpath_overrides_runpath=yes
23461	;;
23462      esac
23463  else
23464    shlibpath_overrides_runpath=yes
23465  fi
23466  ;;
23467
23468os2*)
23469  libname_spec='$name'
23470  shrext_cmds=".dll"
23471  need_lib_prefix=no
23472  library_names_spec='$libname${shared_ext} $libname.a'
23473  dynamic_linker='OS/2 ld.exe'
23474  shlibpath_var=LIBPATH
23475  ;;
23476
23477osf3* | osf4* | osf5*)
23478  version_type=osf
23479  need_lib_prefix=no
23480  need_version=no
23481  soname_spec='${libname}${release}${shared_ext}$major'
23482  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23483  shlibpath_var=LD_LIBRARY_PATH
23484  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23485  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23486  ;;
23487
23488solaris*)
23489  version_type=linux
23490  need_lib_prefix=no
23491  need_version=no
23492  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23493  soname_spec='${libname}${release}${shared_ext}$major'
23494  shlibpath_var=LD_LIBRARY_PATH
23495  shlibpath_overrides_runpath=yes
23496  hardcode_into_libs=yes
23497  # ldd complains unless libraries are executable
23498  postinstall_cmds='chmod +x $lib'
23499  ;;
23500
23501sunos4*)
23502  version_type=sunos
23503  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23504  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23505  shlibpath_var=LD_LIBRARY_PATH
23506  shlibpath_overrides_runpath=yes
23507  if test "$with_gnu_ld" = yes; then
23508    need_lib_prefix=no
23509  fi
23510  need_version=yes
23511  ;;
23512
23513sysv4 | sysv4.3*)
23514  version_type=linux
23515  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23516  soname_spec='${libname}${release}${shared_ext}$major'
23517  shlibpath_var=LD_LIBRARY_PATH
23518  case $host_vendor in
23519    sni)
23520      shlibpath_overrides_runpath=no
23521      need_lib_prefix=no
23522      export_dynamic_flag_spec='${wl}-Blargedynsym'
23523      runpath_var=LD_RUN_PATH
23524      ;;
23525    siemens)
23526      need_lib_prefix=no
23527      ;;
23528    motorola)
23529      need_lib_prefix=no
23530      need_version=no
23531      shlibpath_overrides_runpath=no
23532      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23533      ;;
23534  esac
23535  ;;
23536
23537sysv4*MP*)
23538  if test -d /usr/nec ;then
23539    version_type=linux
23540    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23541    soname_spec='$libname${shared_ext}.$major'
23542    shlibpath_var=LD_LIBRARY_PATH
23543  fi
23544  ;;
23545
23546sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23547  version_type=freebsd-elf
23548  need_lib_prefix=no
23549  need_version=no
23550  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23551  soname_spec='${libname}${release}${shared_ext}$major'
23552  shlibpath_var=LD_LIBRARY_PATH
23553  hardcode_into_libs=yes
23554  if test "$with_gnu_ld" = yes; then
23555    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23556    shlibpath_overrides_runpath=no
23557  else
23558    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23559    shlibpath_overrides_runpath=yes
23560    case $host_os in
23561      sco3.2v5*)
23562        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23563	;;
23564    esac
23565  fi
23566  sys_lib_dlsearch_path_spec='/usr/lib'
23567  ;;
23568
23569uts4*)
23570  version_type=linux
23571  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23572  soname_spec='${libname}${release}${shared_ext}$major'
23573  shlibpath_var=LD_LIBRARY_PATH
23574  ;;
23575
23576*)
23577  dynamic_linker=no
23578  ;;
23579esac
23580{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23581echo "${ECHO_T}$dynamic_linker" >&6; }
23582test "$dynamic_linker" = no && can_build_shared=no
23583
23584variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23585if test "$GCC" = yes; then
23586  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23587fi
23588
23589{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23590echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23591hardcode_action_F77=
23592if test -n "$hardcode_libdir_flag_spec_F77" || \
23593   test -n "$runpath_var_F77" || \
23594   test "X$hardcode_automatic_F77" = "Xyes" ; then
23595
23596  # We can hardcode non-existant directories.
23597  if test "$hardcode_direct_F77" != no &&
23598     # If the only mechanism to avoid hardcoding is shlibpath_var, we
23599     # have to relink, otherwise we might link with an installed library
23600     # when we should be linking with a yet-to-be-installed one
23601     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23602     test "$hardcode_minus_L_F77" != no; then
23603    # Linking always hardcodes the temporary library directory.
23604    hardcode_action_F77=relink
23605  else
23606    # We can link without hardcoding, and we can hardcode nonexisting dirs.
23607    hardcode_action_F77=immediate
23608  fi
23609else
23610  # We cannot hardcode anything, or else we can only hardcode existing
23611  # directories.
23612  hardcode_action_F77=unsupported
23613fi
23614{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23615echo "${ECHO_T}$hardcode_action_F77" >&6; }
23616
23617if test "$hardcode_action_F77" = relink; then
23618  # Fast installation is not supported
23619  enable_fast_install=no
23620elif test "$shlibpath_overrides_runpath" = yes ||
23621     test "$enable_shared" = no; then
23622  # Fast installation is not necessary
23623  enable_fast_install=needless
23624fi
23625
23626
23627# The else clause should only fire when bootstrapping the
23628# libtool distribution, otherwise you forgot to ship ltmain.sh
23629# with your package, and you will get complaints that there are
23630# no rules to generate ltmain.sh.
23631if test -f "$ltmain"; then
23632  # See if we are running on zsh, and set the options which allow our commands through
23633  # without removal of \ escapes.
23634  if test -n "${ZSH_VERSION+set}" ; then
23635    setopt NO_GLOB_SUBST
23636  fi
23637  # Now quote all the things that may contain metacharacters while being
23638  # careful not to overquote the AC_SUBSTed values.  We take copies of the
23639  # variables and quote the copies for generation of the libtool script.
23640  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23641    SED SHELL STRIP \
23642    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23643    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23644    deplibs_check_method reload_flag reload_cmds need_locks \
23645    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23646    lt_cv_sys_global_symbol_to_c_name_address \
23647    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23648    old_postinstall_cmds old_postuninstall_cmds \
23649    compiler_F77 \
23650    CC_F77 \
23651    LD_F77 \
23652    lt_prog_compiler_wl_F77 \
23653    lt_prog_compiler_pic_F77 \
23654    lt_prog_compiler_static_F77 \
23655    lt_prog_compiler_no_builtin_flag_F77 \
23656    export_dynamic_flag_spec_F77 \
23657    thread_safe_flag_spec_F77 \
23658    whole_archive_flag_spec_F77 \
23659    enable_shared_with_static_runtimes_F77 \
23660    old_archive_cmds_F77 \
23661    old_archive_from_new_cmds_F77 \
23662    predep_objects_F77 \
23663    postdep_objects_F77 \
23664    predeps_F77 \
23665    postdeps_F77 \
23666    compiler_lib_search_path_F77 \
23667    archive_cmds_F77 \
23668    archive_expsym_cmds_F77 \
23669    postinstall_cmds_F77 \
23670    postuninstall_cmds_F77 \
23671    old_archive_from_expsyms_cmds_F77 \
23672    allow_undefined_flag_F77 \
23673    no_undefined_flag_F77 \
23674    export_symbols_cmds_F77 \
23675    hardcode_libdir_flag_spec_F77 \
23676    hardcode_libdir_flag_spec_ld_F77 \
23677    hardcode_libdir_separator_F77 \
23678    hardcode_automatic_F77 \
23679    module_cmds_F77 \
23680    module_expsym_cmds_F77 \
23681    lt_cv_prog_compiler_c_o_F77 \
23682    exclude_expsyms_F77 \
23683    include_expsyms_F77; do
23684
23685    case $var in
23686    old_archive_cmds_F77 | \
23687    old_archive_from_new_cmds_F77 | \
23688    archive_cmds_F77 | \
23689    archive_expsym_cmds_F77 | \
23690    module_cmds_F77 | \
23691    module_expsym_cmds_F77 | \
23692    old_archive_from_expsyms_cmds_F77 | \
23693    export_symbols_cmds_F77 | \
23694    extract_expsyms_cmds | reload_cmds | finish_cmds | \
23695    postinstall_cmds | postuninstall_cmds | \
23696    old_postinstall_cmds | old_postuninstall_cmds | \
23697    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23698      # Double-quote double-evaled strings.
23699      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23700      ;;
23701    *)
23702      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23703      ;;
23704    esac
23705  done
23706
23707  case $lt_echo in
23708  *'\$0 --fallback-echo"')
23709    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23710    ;;
23711  esac
23712
23713cfgfile="$ofile"
23714
23715  cat <<__EOF__ >> "$cfgfile"
23716# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23717
23718# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23719
23720# Shell to use when invoking shell scripts.
23721SHELL=$lt_SHELL
23722
23723# Whether or not to build shared libraries.
23724build_libtool_libs=$enable_shared
23725
23726# Whether or not to build static libraries.
23727build_old_libs=$enable_static
23728
23729# Whether or not to add -lc for building shared libraries.
23730build_libtool_need_lc=$archive_cmds_need_lc_F77
23731
23732# Whether or not to disallow shared libs when runtime libs are static
23733allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23734
23735# Whether or not to optimize for fast installation.
23736fast_install=$enable_fast_install
23737
23738# The host system.
23739host_alias=$host_alias
23740host=$host
23741host_os=$host_os
23742
23743# The build system.
23744build_alias=$build_alias
23745build=$build
23746build_os=$build_os
23747
23748# An echo program that does not interpret backslashes.
23749echo=$lt_echo
23750
23751# The archiver.
23752AR=$lt_AR
23753AR_FLAGS=$lt_AR_FLAGS
23754
23755# A C compiler.
23756LTCC=$lt_LTCC
23757
23758# LTCC compiler flags.
23759LTCFLAGS=$lt_LTCFLAGS
23760
23761# A language-specific compiler.
23762CC=$lt_compiler_F77
23763
23764# Is the compiler the GNU C compiler?
23765with_gcc=$GCC_F77
23766
23767# An ERE matcher.
23768EGREP=$lt_EGREP
23769
23770# The linker used to build libraries.
23771LD=$lt_LD_F77
23772
23773# Whether we need hard or soft links.
23774LN_S=$lt_LN_S
23775
23776# A BSD-compatible nm program.
23777NM=$lt_NM
23778
23779# A symbol stripping program
23780STRIP=$lt_STRIP
23781
23782# Used to examine libraries when file_magic_cmd begins "file"
23783MAGIC_CMD=$MAGIC_CMD
23784
23785# Used on cygwin: DLL creation program.
23786DLLTOOL="$DLLTOOL"
23787
23788# Used on cygwin: object dumper.
23789OBJDUMP="$OBJDUMP"
23790
23791# Used on cygwin: assembler.
23792AS="$AS"
23793
23794# The name of the directory that contains temporary libtool files.
23795objdir=$objdir
23796
23797# How to create reloadable object files.
23798reload_flag=$lt_reload_flag
23799reload_cmds=$lt_reload_cmds
23800
23801# How to pass a linker flag through the compiler.
23802wl=$lt_lt_prog_compiler_wl_F77
23803
23804# Object file suffix (normally "o").
23805objext="$ac_objext"
23806
23807# Old archive suffix (normally "a").
23808libext="$libext"
23809
23810# Shared library suffix (normally ".so").
23811shrext_cmds='$shrext_cmds'
23812
23813# Executable file suffix (normally "").
23814exeext="$exeext"
23815
23816# Additional compiler flags for building library objects.
23817pic_flag=$lt_lt_prog_compiler_pic_F77
23818pic_mode=$pic_mode
23819
23820# What is the maximum length of a command?
23821max_cmd_len=$lt_cv_sys_max_cmd_len
23822
23823# Does compiler simultaneously support -c and -o options?
23824compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23825
23826# Must we lock files when doing compilation?
23827need_locks=$lt_need_locks
23828
23829# Do we need the lib prefix for modules?
23830need_lib_prefix=$need_lib_prefix
23831
23832# Do we need a version for libraries?
23833need_version=$need_version
23834
23835# Whether dlopen is supported.
23836dlopen_support=$enable_dlopen
23837
23838# Whether dlopen of programs is supported.
23839dlopen_self=$enable_dlopen_self
23840
23841# Whether dlopen of statically linked programs is supported.
23842dlopen_self_static=$enable_dlopen_self_static
23843
23844# Compiler flag to prevent dynamic linking.
23845link_static_flag=$lt_lt_prog_compiler_static_F77
23846
23847# Compiler flag to turn off builtin functions.
23848no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23849
23850# Compiler flag to allow reflexive dlopens.
23851export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23852
23853# Compiler flag to generate shared objects directly from archives.
23854whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23855
23856# Compiler flag to generate thread-safe objects.
23857thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23858
23859# Library versioning type.
23860version_type=$version_type
23861
23862# Format of library name prefix.
23863libname_spec=$lt_libname_spec
23864
23865# List of archive names.  First name is the real one, the rest are links.
23866# The last name is the one that the linker finds with -lNAME.
23867library_names_spec=$lt_library_names_spec
23868
23869# The coded name of the library, if different from the real name.
23870soname_spec=$lt_soname_spec
23871
23872# Commands used to build and install an old-style archive.
23873RANLIB=$lt_RANLIB
23874old_archive_cmds=$lt_old_archive_cmds_F77
23875old_postinstall_cmds=$lt_old_postinstall_cmds
23876old_postuninstall_cmds=$lt_old_postuninstall_cmds
23877
23878# Create an old-style archive from a shared archive.
23879old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23880
23881# Create a temporary old-style archive to link instead of a shared archive.
23882old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23883
23884# Commands used to build and install a shared archive.
23885archive_cmds=$lt_archive_cmds_F77
23886archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23887postinstall_cmds=$lt_postinstall_cmds
23888postuninstall_cmds=$lt_postuninstall_cmds
23889
23890# Commands used to build a loadable module (assumed same as above if empty)
23891module_cmds=$lt_module_cmds_F77
23892module_expsym_cmds=$lt_module_expsym_cmds_F77
23893
23894# Commands to strip libraries.
23895old_striplib=$lt_old_striplib
23896striplib=$lt_striplib
23897
23898# Dependencies to place before the objects being linked to create a
23899# shared library.
23900predep_objects=$lt_predep_objects_F77
23901
23902# Dependencies to place after the objects being linked to create a
23903# shared library.
23904postdep_objects=$lt_postdep_objects_F77
23905
23906# Dependencies to place before the objects being linked to create a
23907# shared library.
23908predeps=$lt_predeps_F77
23909
23910# Dependencies to place after the objects being linked to create a
23911# shared library.
23912postdeps=$lt_postdeps_F77
23913
23914# The library search path used internally by the compiler when linking
23915# a shared library.
23916compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23917
23918# Method to check whether dependent libraries are shared objects.
23919deplibs_check_method=$lt_deplibs_check_method
23920
23921# Command to use when deplibs_check_method == file_magic.
23922file_magic_cmd=$lt_file_magic_cmd
23923
23924# Flag that allows shared libraries with undefined symbols to be built.
23925allow_undefined_flag=$lt_allow_undefined_flag_F77
23926
23927# Flag that forces no undefined symbols.
23928no_undefined_flag=$lt_no_undefined_flag_F77
23929
23930# Commands used to finish a libtool library installation in a directory.
23931finish_cmds=$lt_finish_cmds
23932
23933# Same as above, but a single script fragment to be evaled but not shown.
23934finish_eval=$lt_finish_eval
23935
23936# Take the output of nm and produce a listing of raw symbols and C names.
23937global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23938
23939# Transform the output of nm in a proper C declaration
23940global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23941
23942# Transform the output of nm in a C name address pair
23943global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23944
23945# This is the shared library runtime path variable.
23946runpath_var=$runpath_var
23947
23948# This is the shared library path variable.
23949shlibpath_var=$shlibpath_var
23950
23951# Is shlibpath searched before the hard-coded library search path?
23952shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23953
23954# How to hardcode a shared library path into an executable.
23955hardcode_action=$hardcode_action_F77
23956
23957# Whether we should hardcode library paths into libraries.
23958hardcode_into_libs=$hardcode_into_libs
23959
23960# Flag to hardcode \$libdir into a binary during linking.
23961# This must work even if \$libdir does not exist.
23962hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23963
23964# If ld is used when linking, flag to hardcode \$libdir into
23965# a binary during linking. This must work even if \$libdir does
23966# not exist.
23967hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23968
23969# Whether we need a single -rpath flag with a separated argument.
23970hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23971
23972# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23973# resulting binary.
23974hardcode_direct=$hardcode_direct_F77
23975
23976# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23977# resulting binary.
23978hardcode_minus_L=$hardcode_minus_L_F77
23979
23980# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23981# the resulting binary.
23982hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23983
23984# Set to yes if building a shared library automatically hardcodes DIR into the library
23985# and all subsequent libraries and executables linked against it.
23986hardcode_automatic=$hardcode_automatic_F77
23987
23988# Variables whose values should be saved in libtool wrapper scripts and
23989# restored at relink time.
23990variables_saved_for_relink="$variables_saved_for_relink"
23991
23992# Whether libtool must link a program against all its dependency libraries.
23993link_all_deplibs=$link_all_deplibs_F77
23994
23995# Compile-time system search path for libraries
23996sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23997
23998# Run-time system search path for libraries
23999sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24000
24001# Fix the shell variable \$srcfile for the compiler.
24002fix_srcfile_path="$fix_srcfile_path_F77"
24003
24004# Set to yes if exported symbols are required.
24005always_export_symbols=$always_export_symbols_F77
24006
24007# The commands to list exported symbols.
24008export_symbols_cmds=$lt_export_symbols_cmds_F77
24009
24010# The commands to extract the exported symbol list from a shared archive.
24011extract_expsyms_cmds=$lt_extract_expsyms_cmds
24012
24013# Symbols that should not be listed in the preloaded symbols.
24014exclude_expsyms=$lt_exclude_expsyms_F77
24015
24016# Symbols that must always be exported.
24017include_expsyms=$lt_include_expsyms_F77
24018
24019# ### END LIBTOOL TAG CONFIG: $tagname
24020
24021__EOF__
24022
24023
24024else
24025  # If there is no Makefile yet, we rely on a make rule to execute
24026  # `config.status --recheck' to rerun these tests and create the
24027  # libtool script then.
24028  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24029  if test -f "$ltmain_in"; then
24030    test -f Makefile && make "$ltmain"
24031  fi
24032fi
24033
24034
24035ac_ext=c
24036ac_cpp='$CPP $CPPFLAGS'
24037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24039ac_compiler_gnu=$ac_cv_c_compiler_gnu
24040
24041CC="$lt_save_CC"
24042
24043	else
24044	  tagname=""
24045	fi
24046	;;
24047
24048      GCJ)
24049	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
24050	  ac_ext=c
24051ac_cpp='$CPP $CPPFLAGS'
24052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24054ac_compiler_gnu=$ac_cv_c_compiler_gnu
24055
24056
24057# Source file extension for Java test sources.
24058ac_ext=java
24059
24060# Object file extension for compiled Java test sources.
24061objext=o
24062objext_GCJ=$objext
24063
24064# Code to be used in simple compile tests
24065lt_simple_compile_test_code="class foo {}\n"
24066
24067# Code to be used in simple link tests
24068lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
24069
24070# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24071
24072# If no C compiler was specified, use CC.
24073LTCC=${LTCC-"$CC"}
24074
24075# If no C compiler flags were specified, use CFLAGS.
24076LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24077
24078# Allow CC to be a program name with arguments.
24079compiler=$CC
24080
24081
24082# save warnings/boilerplate of simple test code
24083ac_outfile=conftest.$ac_objext
24084printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24085eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24086_lt_compiler_boilerplate=`cat conftest.err`
24087$rm conftest*
24088
24089ac_outfile=conftest.$ac_objext
24090printf "$lt_simple_link_test_code" >conftest.$ac_ext
24091eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24092_lt_linker_boilerplate=`cat conftest.err`
24093$rm conftest*
24094
24095
24096# Allow CC to be a program name with arguments.
24097lt_save_CC="$CC"
24098CC=${GCJ-"gcj"}
24099compiler=$CC
24100compiler_GCJ=$CC
24101for cc_temp in $compiler""; do
24102  case $cc_temp in
24103    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24104    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24105    \-*) ;;
24106    *) break;;
24107  esac
24108done
24109cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24110
24111
24112# GCJ did not exist at the time GCC didn't implicitly link libc in.
24113archive_cmds_need_lc_GCJ=no
24114
24115old_archive_cmds_GCJ=$old_archive_cmds
24116
24117
24118lt_prog_compiler_no_builtin_flag_GCJ=
24119
24120if test "$GCC" = yes; then
24121  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24122
24123
24124{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24125echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24126if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24127  echo $ECHO_N "(cached) $ECHO_C" >&6
24128else
24129  lt_cv_prog_compiler_rtti_exceptions=no
24130  ac_outfile=conftest.$ac_objext
24131   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24132   lt_compiler_flag="-fno-rtti -fno-exceptions"
24133   # Insert the option either (1) after the last *FLAGS variable, or
24134   # (2) before a word containing "conftest.", or (3) at the end.
24135   # Note that $ac_compile itself does not contain backslashes and begins
24136   # with a dollar sign (not a hyphen), so the echo should work correctly.
24137   # The option is referenced via a variable to avoid confusing sed.
24138   lt_compile=`echo "$ac_compile" | $SED \
24139   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24140   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24141   -e 's:$: $lt_compiler_flag:'`
24142   (eval echo "\"\$as_me:24142: $lt_compile\"" >&5)
24143   (eval "$lt_compile" 2>conftest.err)
24144   ac_status=$?
24145   cat conftest.err >&5
24146   echo "$as_me:24146: \$? = $ac_status" >&5
24147   if (exit $ac_status) && test -s "$ac_outfile"; then
24148     # The compiler can only warn and ignore the option if not recognized
24149     # So say no if there are warnings other than the usual output.
24150     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24151     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24152     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24153       lt_cv_prog_compiler_rtti_exceptions=yes
24154     fi
24155   fi
24156   $rm conftest*
24157
24158fi
24159{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24160echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24161
24162if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24163    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24164else
24165    :
24166fi
24167
24168fi
24169
24170lt_prog_compiler_wl_GCJ=
24171lt_prog_compiler_pic_GCJ=
24172lt_prog_compiler_static_GCJ=
24173
24174{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24175echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24176
24177  if test "$GCC" = yes; then
24178    lt_prog_compiler_wl_GCJ='-Wl,'
24179    lt_prog_compiler_static_GCJ='-static'
24180
24181    case $host_os in
24182      aix*)
24183      # All AIX code is PIC.
24184      if test "$host_cpu" = ia64; then
24185	# AIX 5 now supports IA64 processor
24186	lt_prog_compiler_static_GCJ='-Bstatic'
24187      fi
24188      ;;
24189
24190    amigaos*)
24191      # FIXME: we need at least 68020 code to build shared libraries, but
24192      # adding the `-m68020' flag to GCC prevents building anything better,
24193      # like `-m68040'.
24194      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24195      ;;
24196
24197    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24198      # PIC is the default for these OSes.
24199      ;;
24200
24201    mingw* | pw32* | os2*)
24202      # This hack is so that the source file can tell whether it is being
24203      # built for inclusion in a dll (and should export symbols for example).
24204      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24205      ;;
24206
24207    darwin* | rhapsody*)
24208      # PIC is the default on this platform
24209      # Common symbols not allowed in MH_DYLIB files
24210      lt_prog_compiler_pic_GCJ='-fno-common'
24211      ;;
24212
24213    interix3*)
24214      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24215      # Instead, we relocate shared libraries at runtime.
24216      ;;
24217
24218    msdosdjgpp*)
24219      # Just because we use GCC doesn't mean we suddenly get shared libraries
24220      # on systems that don't support them.
24221      lt_prog_compiler_can_build_shared_GCJ=no
24222      enable_shared=no
24223      ;;
24224
24225    sysv4*MP*)
24226      if test -d /usr/nec; then
24227	lt_prog_compiler_pic_GCJ=-Kconform_pic
24228      fi
24229      ;;
24230
24231    hpux*)
24232      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24233      # not for PA HP-UX.
24234      case $host_cpu in
24235      hppa*64*|ia64*)
24236	# +Z the default
24237	;;
24238      *)
24239	lt_prog_compiler_pic_GCJ='-fPIC'
24240	;;
24241      esac
24242      ;;
24243
24244    *)
24245      lt_prog_compiler_pic_GCJ='-fPIC'
24246      ;;
24247    esac
24248  else
24249    # PORTME Check for flag to pass linker flags through the system compiler.
24250    case $host_os in
24251    aix*)
24252      lt_prog_compiler_wl_GCJ='-Wl,'
24253      if test "$host_cpu" = ia64; then
24254	# AIX 5 now supports IA64 processor
24255	lt_prog_compiler_static_GCJ='-Bstatic'
24256      else
24257	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24258      fi
24259      ;;
24260      darwin*)
24261        # PIC is the default on this platform
24262        # Common symbols not allowed in MH_DYLIB files
24263       case $cc_basename in
24264         xlc*)
24265         lt_prog_compiler_pic_GCJ='-qnocommon'
24266         lt_prog_compiler_wl_GCJ='-Wl,'
24267         ;;
24268       esac
24269       ;;
24270
24271    mingw* | pw32* | os2*)
24272      # This hack is so that the source file can tell whether it is being
24273      # built for inclusion in a dll (and should export symbols for example).
24274      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24275      ;;
24276
24277    hpux9* | hpux10* | hpux11*)
24278      lt_prog_compiler_wl_GCJ='-Wl,'
24279      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24280      # not for PA HP-UX.
24281      case $host_cpu in
24282      hppa*64*|ia64*)
24283	# +Z the default
24284	;;
24285      *)
24286	lt_prog_compiler_pic_GCJ='+Z'
24287	;;
24288      esac
24289      # Is there a better lt_prog_compiler_static that works with the bundled CC?
24290      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24291      ;;
24292
24293    irix5* | irix6* | nonstopux*)
24294      lt_prog_compiler_wl_GCJ='-Wl,'
24295      # PIC (with -KPIC) is the default.
24296      lt_prog_compiler_static_GCJ='-non_shared'
24297      ;;
24298
24299    newsos6)
24300      lt_prog_compiler_pic_GCJ='-KPIC'
24301      lt_prog_compiler_static_GCJ='-Bstatic'
24302      ;;
24303
24304    linux*)
24305      case $cc_basename in
24306      icc* | ecc*)
24307	lt_prog_compiler_wl_GCJ='-Wl,'
24308	lt_prog_compiler_pic_GCJ='-KPIC'
24309	lt_prog_compiler_static_GCJ='-static'
24310        ;;
24311      pgcc* | pgf77* | pgf90* | pgf95*)
24312        # Portland Group compilers (*not* the Pentium gcc compiler,
24313	# which looks to be a dead project)
24314	lt_prog_compiler_wl_GCJ='-Wl,'
24315	lt_prog_compiler_pic_GCJ='-fpic'
24316	lt_prog_compiler_static_GCJ='-Bstatic'
24317        ;;
24318      ccc*)
24319        lt_prog_compiler_wl_GCJ='-Wl,'
24320        # All Alpha code is PIC.
24321        lt_prog_compiler_static_GCJ='-non_shared'
24322        ;;
24323      esac
24324      ;;
24325
24326    osf3* | osf4* | osf5*)
24327      lt_prog_compiler_wl_GCJ='-Wl,'
24328      # All OSF/1 code is PIC.
24329      lt_prog_compiler_static_GCJ='-non_shared'
24330      ;;
24331
24332    solaris*)
24333      lt_prog_compiler_pic_GCJ='-KPIC'
24334      lt_prog_compiler_static_GCJ='-Bstatic'
24335      case $cc_basename in
24336      f77* | f90* | f95*)
24337	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24338      *)
24339	lt_prog_compiler_wl_GCJ='-Wl,';;
24340      esac
24341      ;;
24342
24343    sunos4*)
24344      lt_prog_compiler_wl_GCJ='-Qoption ld '
24345      lt_prog_compiler_pic_GCJ='-PIC'
24346      lt_prog_compiler_static_GCJ='-Bstatic'
24347      ;;
24348
24349    sysv4 | sysv4.2uw2* | sysv4.3*)
24350      lt_prog_compiler_wl_GCJ='-Wl,'
24351      lt_prog_compiler_pic_GCJ='-KPIC'
24352      lt_prog_compiler_static_GCJ='-Bstatic'
24353      ;;
24354
24355    sysv4*MP*)
24356      if test -d /usr/nec ;then
24357	lt_prog_compiler_pic_GCJ='-Kconform_pic'
24358	lt_prog_compiler_static_GCJ='-Bstatic'
24359      fi
24360      ;;
24361
24362    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24363      lt_prog_compiler_wl_GCJ='-Wl,'
24364      lt_prog_compiler_pic_GCJ='-KPIC'
24365      lt_prog_compiler_static_GCJ='-Bstatic'
24366      ;;
24367
24368    unicos*)
24369      lt_prog_compiler_wl_GCJ='-Wl,'
24370      lt_prog_compiler_can_build_shared_GCJ=no
24371      ;;
24372
24373    uts4*)
24374      lt_prog_compiler_pic_GCJ='-pic'
24375      lt_prog_compiler_static_GCJ='-Bstatic'
24376      ;;
24377
24378    *)
24379      lt_prog_compiler_can_build_shared_GCJ=no
24380      ;;
24381    esac
24382  fi
24383
24384{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24385echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24386
24387#
24388# Check to make sure the PIC flag actually works.
24389#
24390if test -n "$lt_prog_compiler_pic_GCJ"; then
24391
24392{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24393echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24394if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24395  echo $ECHO_N "(cached) $ECHO_C" >&6
24396else
24397  lt_prog_compiler_pic_works_GCJ=no
24398  ac_outfile=conftest.$ac_objext
24399   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24400   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24401   # Insert the option either (1) after the last *FLAGS variable, or
24402   # (2) before a word containing "conftest.", or (3) at the end.
24403   # Note that $ac_compile itself does not contain backslashes and begins
24404   # with a dollar sign (not a hyphen), so the echo should work correctly.
24405   # The option is referenced via a variable to avoid confusing sed.
24406   lt_compile=`echo "$ac_compile" | $SED \
24407   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24408   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24409   -e 's:$: $lt_compiler_flag:'`
24410   (eval echo "\"\$as_me:24410: $lt_compile\"" >&5)
24411   (eval "$lt_compile" 2>conftest.err)
24412   ac_status=$?
24413   cat conftest.err >&5
24414   echo "$as_me:24414: \$? = $ac_status" >&5
24415   if (exit $ac_status) && test -s "$ac_outfile"; then
24416     # The compiler can only warn and ignore the option if not recognized
24417     # So say no if there are warnings other than the usual output.
24418     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24419     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24420     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24421       lt_prog_compiler_pic_works_GCJ=yes
24422     fi
24423   fi
24424   $rm conftest*
24425
24426fi
24427{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24428echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24429
24430if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24431    case $lt_prog_compiler_pic_GCJ in
24432     "" | " "*) ;;
24433     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24434     esac
24435else
24436    lt_prog_compiler_pic_GCJ=
24437     lt_prog_compiler_can_build_shared_GCJ=no
24438fi
24439
24440fi
24441case $host_os in
24442  # For platforms which do not support PIC, -DPIC is meaningless:
24443  *djgpp*)
24444    lt_prog_compiler_pic_GCJ=
24445    ;;
24446  *)
24447    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24448    ;;
24449esac
24450
24451#
24452# Check to make sure the static flag actually works.
24453#
24454wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24455{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24456echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24457if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24458  echo $ECHO_N "(cached) $ECHO_C" >&6
24459else
24460  lt_prog_compiler_static_works_GCJ=no
24461   save_LDFLAGS="$LDFLAGS"
24462   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24463   printf "$lt_simple_link_test_code" > conftest.$ac_ext
24464   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24465     # The linker can only warn and ignore the option if not recognized
24466     # So say no if there are warnings
24467     if test -s conftest.err; then
24468       # Append any errors to the config.log.
24469       cat conftest.err 1>&5
24470       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24471       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24472       if diff conftest.exp conftest.er2 >/dev/null; then
24473         lt_prog_compiler_static_works_GCJ=yes
24474       fi
24475     else
24476       lt_prog_compiler_static_works_GCJ=yes
24477     fi
24478   fi
24479   $rm conftest*
24480   LDFLAGS="$save_LDFLAGS"
24481
24482fi
24483{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24484echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24485
24486if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24487    :
24488else
24489    lt_prog_compiler_static_GCJ=
24490fi
24491
24492
24493{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24494echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24495if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24496  echo $ECHO_N "(cached) $ECHO_C" >&6
24497else
24498  lt_cv_prog_compiler_c_o_GCJ=no
24499   $rm -r conftest 2>/dev/null
24500   mkdir conftest
24501   cd conftest
24502   mkdir out
24503   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24504
24505   lt_compiler_flag="-o out/conftest2.$ac_objext"
24506   # Insert the option either (1) after the last *FLAGS variable, or
24507   # (2) before a word containing "conftest.", or (3) at the end.
24508   # Note that $ac_compile itself does not contain backslashes and begins
24509   # with a dollar sign (not a hyphen), so the echo should work correctly.
24510   lt_compile=`echo "$ac_compile" | $SED \
24511   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24512   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24513   -e 's:$: $lt_compiler_flag:'`
24514   (eval echo "\"\$as_me:24514: $lt_compile\"" >&5)
24515   (eval "$lt_compile" 2>out/conftest.err)
24516   ac_status=$?
24517   cat out/conftest.err >&5
24518   echo "$as_me:24518: \$? = $ac_status" >&5
24519   if (exit $ac_status) && test -s out/conftest2.$ac_objext
24520   then
24521     # The compiler can only warn and ignore the option if not recognized
24522     # So say no if there are warnings
24523     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24524     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24525     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24526       lt_cv_prog_compiler_c_o_GCJ=yes
24527     fi
24528   fi
24529   chmod u+w . 2>&5
24530   $rm conftest*
24531   # SGI C++ compiler will create directory out/ii_files/ for
24532   # template instantiation
24533   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24534   $rm out/* && rmdir out
24535   cd ..
24536   rmdir conftest
24537   $rm conftest*
24538
24539fi
24540{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24541echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24542
24543
24544hard_links="nottested"
24545if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24546  # do not overwrite the value of need_locks provided by the user
24547  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24548echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24549  hard_links=yes
24550  $rm conftest*
24551  ln conftest.a conftest.b 2>/dev/null && hard_links=no
24552  touch conftest.a
24553  ln conftest.a conftest.b 2>&5 || hard_links=no
24554  ln conftest.a conftest.b 2>/dev/null && hard_links=no
24555  { echo "$as_me:$LINENO: result: $hard_links" >&5
24556echo "${ECHO_T}$hard_links" >&6; }
24557  if test "$hard_links" = no; then
24558    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24559echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24560    need_locks=warn
24561  fi
24562else
24563  need_locks=no
24564fi
24565
24566{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24567echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24568
24569  runpath_var=
24570  allow_undefined_flag_GCJ=
24571  enable_shared_with_static_runtimes_GCJ=no
24572  archive_cmds_GCJ=
24573  archive_expsym_cmds_GCJ=
24574  old_archive_From_new_cmds_GCJ=
24575  old_archive_from_expsyms_cmds_GCJ=
24576  export_dynamic_flag_spec_GCJ=
24577  whole_archive_flag_spec_GCJ=
24578  thread_safe_flag_spec_GCJ=
24579  hardcode_libdir_flag_spec_GCJ=
24580  hardcode_libdir_flag_spec_ld_GCJ=
24581  hardcode_libdir_separator_GCJ=
24582  hardcode_direct_GCJ=no
24583  hardcode_minus_L_GCJ=no
24584  hardcode_shlibpath_var_GCJ=unsupported
24585  link_all_deplibs_GCJ=unknown
24586  hardcode_automatic_GCJ=no
24587  module_cmds_GCJ=
24588  module_expsym_cmds_GCJ=
24589  always_export_symbols_GCJ=no
24590  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24591  # include_expsyms should be a list of space-separated symbols to be *always*
24592  # included in the symbol list
24593  include_expsyms_GCJ=
24594  # exclude_expsyms can be an extended regexp of symbols to exclude
24595  # it will be wrapped by ` (' and `)$', so one must not match beginning or
24596  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24597  # as well as any symbol that contains `d'.
24598  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24599  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24600  # platforms (ab)use it in PIC code, but their linkers get confused if
24601  # the symbol is explicitly referenced.  Since portable code cannot
24602  # rely on this symbol name, it's probably fine to never include it in
24603  # preloaded symbol tables.
24604  extract_expsyms_cmds=
24605  # Just being paranoid about ensuring that cc_basename is set.
24606  for cc_temp in $compiler""; do
24607  case $cc_temp in
24608    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24609    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24610    \-*) ;;
24611    *) break;;
24612  esac
24613done
24614cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24615
24616  case $host_os in
24617  cygwin* | mingw* | pw32*)
24618    # FIXME: the MSVC++ port hasn't been tested in a loooong time
24619    # When not using gcc, we currently assume that we are using
24620    # Microsoft Visual C++.
24621    if test "$GCC" != yes; then
24622      with_gnu_ld=no
24623    fi
24624    ;;
24625  interix*)
24626    # we just hope/assume this is gcc and not c89 (= MSVC++)
24627    with_gnu_ld=yes
24628    ;;
24629  openbsd*)
24630    with_gnu_ld=no
24631    ;;
24632  esac
24633
24634  ld_shlibs_GCJ=yes
24635  if test "$with_gnu_ld" = yes; then
24636    # If archive_cmds runs LD, not CC, wlarc should be empty
24637    wlarc='${wl}'
24638
24639    # Set some defaults for GNU ld with shared library support. These
24640    # are reset later if shared libraries are not supported. Putting them
24641    # here allows them to be overridden if necessary.
24642    runpath_var=LD_RUN_PATH
24643    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24644    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24645    # ancient GNU ld didn't support --whole-archive et. al.
24646    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24647	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24648      else
24649  	whole_archive_flag_spec_GCJ=
24650    fi
24651    supports_anon_versioning=no
24652    case `$LD -v 2>/dev/null` in
24653      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24654      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24655      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24656      *\ 2.11.*) ;; # other 2.11 versions
24657      *) supports_anon_versioning=yes ;;
24658    esac
24659
24660    # See if GNU ld supports shared libraries.
24661    case $host_os in
24662    aix3* | aix4* | aix5*)
24663      # On AIX/PPC, the GNU linker is very broken
24664      if test "$host_cpu" != ia64; then
24665	ld_shlibs_GCJ=no
24666	cat <<EOF 1>&2
24667
24668*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24669*** to be unable to reliably create shared libraries on AIX.
24670*** Therefore, libtool is disabling shared libraries support.  If you
24671*** really care for shared libraries, you may want to modify your PATH
24672*** so that a non-GNU linker is found, and then restart.
24673
24674EOF
24675      fi
24676      ;;
24677
24678    amigaos*)
24679      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)'
24680      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24681      hardcode_minus_L_GCJ=yes
24682
24683      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24684      # that the semantics of dynamic libraries on AmigaOS, at least up
24685      # to version 4, is to share data among multiple programs linked
24686      # with the same dynamic library.  Since this doesn't match the
24687      # behavior of shared libraries on other platforms, we can't use
24688      # them.
24689      ld_shlibs_GCJ=no
24690      ;;
24691
24692    beos*)
24693      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24694	allow_undefined_flag_GCJ=unsupported
24695	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24696	# support --undefined.  This deserves some investigation.  FIXME
24697	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24698      else
24699	ld_shlibs_GCJ=no
24700      fi
24701      ;;
24702
24703    cygwin* | mingw* | pw32*)
24704      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24705      # as there is no search path for DLLs.
24706      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24707      allow_undefined_flag_GCJ=unsupported
24708      always_export_symbols_GCJ=no
24709      enable_shared_with_static_runtimes_GCJ=yes
24710      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24711
24712      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24713        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24714	# If the export-symbols file already is a .def file (1st line
24715	# is EXPORTS), use it as is; otherwise, prepend...
24716	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24717	  cp $export_symbols $output_objdir/$soname.def;
24718	else
24719	  echo EXPORTS > $output_objdir/$soname.def;
24720	  cat $export_symbols >> $output_objdir/$soname.def;
24721	fi~
24722	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24723      else
24724	ld_shlibs_GCJ=no
24725      fi
24726      ;;
24727
24728    interix3*)
24729      hardcode_direct_GCJ=no
24730      hardcode_shlibpath_var_GCJ=no
24731      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24732      export_dynamic_flag_spec_GCJ='${wl}-E'
24733      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24734      # Instead, shared libraries are loaded at an image base (0x10000000 by
24735      # default) and relocated if they conflict, which is a slow very memory
24736      # consuming and fragmenting process.  To avoid this, we pick a random,
24737      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24738      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24739      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'
24740      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'
24741      ;;
24742
24743    linux*)
24744      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24745	tmp_addflag=
24746	case $cc_basename,$host_cpu in
24747	pgcc*)				# Portland Group C compiler
24748	  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'
24749	  tmp_addflag=' $pic_flag'
24750	  ;;
24751	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
24752	  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'
24753	  tmp_addflag=' $pic_flag -Mnomain' ;;
24754	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
24755	  tmp_addflag=' -i_dynamic' ;;
24756	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
24757	  tmp_addflag=' -i_dynamic -nofor_main' ;;
24758	ifc* | ifort*)			# Intel Fortran compiler
24759	  tmp_addflag=' -nofor_main' ;;
24760	esac
24761	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24762
24763	if test $supports_anon_versioning = yes; then
24764	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24765  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24766  $echo "local: *; };" >> $output_objdir/$libname.ver~
24767	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24768	fi
24769      else
24770	ld_shlibs_GCJ=no
24771      fi
24772      ;;
24773
24774    netbsd*)
24775      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24776	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24777	wlarc=
24778      else
24779	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24780	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24781      fi
24782      ;;
24783
24784    solaris*)
24785      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24786	ld_shlibs_GCJ=no
24787	cat <<EOF 1>&2
24788
24789*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24790*** create shared libraries on Solaris systems.  Therefore, libtool
24791*** is disabling shared libraries support.  We urge you to upgrade GNU
24792*** binutils to release 2.9.1 or newer.  Another option is to modify
24793*** your PATH or compiler configuration so that the native linker is
24794*** used, and then restart.
24795
24796EOF
24797      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24798	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24799	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24800      else
24801	ld_shlibs_GCJ=no
24802      fi
24803      ;;
24804
24805    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24806      case `$LD -v 2>&1` in
24807        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24808	ld_shlibs_GCJ=no
24809	cat <<_LT_EOF 1>&2
24810
24811*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24812*** reliably create shared libraries on SCO systems.  Therefore, libtool
24813*** is disabling shared libraries support.  We urge you to upgrade GNU
24814*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24815*** your PATH or compiler configuration so that the native linker is
24816*** used, and then restart.
24817
24818_LT_EOF
24819	;;
24820	*)
24821	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24822	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24823	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24824	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24825	  else
24826	    ld_shlibs_GCJ=no
24827	  fi
24828	;;
24829      esac
24830      ;;
24831
24832    sunos4*)
24833      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24834      wlarc=
24835      hardcode_direct_GCJ=yes
24836      hardcode_shlibpath_var_GCJ=no
24837      ;;
24838
24839    *)
24840      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24841	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24842	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24843      else
24844	ld_shlibs_GCJ=no
24845      fi
24846      ;;
24847    esac
24848
24849    if test "$ld_shlibs_GCJ" = no; then
24850      runpath_var=
24851      hardcode_libdir_flag_spec_GCJ=
24852      export_dynamic_flag_spec_GCJ=
24853      whole_archive_flag_spec_GCJ=
24854    fi
24855  else
24856    # PORTME fill in a description of your system's linker (not GNU ld)
24857    case $host_os in
24858    aix3*)
24859      allow_undefined_flag_GCJ=unsupported
24860      always_export_symbols_GCJ=yes
24861      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'
24862      # Note: this linker hardcodes the directories in LIBPATH if there
24863      # are no directories specified by -L.
24864      hardcode_minus_L_GCJ=yes
24865      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24866	# Neither direct hardcoding nor static linking is supported with a
24867	# broken collect2.
24868	hardcode_direct_GCJ=unsupported
24869      fi
24870      ;;
24871
24872    aix4* | aix5*)
24873      if test "$host_cpu" = ia64; then
24874	# On IA64, the linker does run time linking by default, so we don't
24875	# have to do anything special.
24876	aix_use_runtimelinking=no
24877	exp_sym_flag='-Bexport'
24878	no_entry_flag=""
24879      else
24880	# If we're using GNU nm, then we don't want the "-C" option.
24881	# -C means demangle to AIX nm, but means don't demangle with GNU nm
24882	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24883	  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'
24884	else
24885	  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'
24886	fi
24887	aix_use_runtimelinking=no
24888
24889	# Test if we are trying to use run time linking or normal
24890	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
24891	# need to do runtime linking.
24892	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24893	  for ld_flag in $LDFLAGS; do
24894  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24895  	    aix_use_runtimelinking=yes
24896  	    break
24897  	  fi
24898	  done
24899	  ;;
24900	esac
24901
24902	exp_sym_flag='-bexport'
24903	no_entry_flag='-bnoentry'
24904      fi
24905
24906      # When large executables or shared objects are built, AIX ld can
24907      # have problems creating the table of contents.  If linking a library
24908      # or program results in "error TOC overflow" add -mminimal-toc to
24909      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24910      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24911
24912      archive_cmds_GCJ=''
24913      hardcode_direct_GCJ=yes
24914      hardcode_libdir_separator_GCJ=':'
24915      link_all_deplibs_GCJ=yes
24916
24917      if test "$GCC" = yes; then
24918	case $host_os in aix4.[012]|aix4.[012].*)
24919	# We only want to do this on AIX 4.2 and lower, the check
24920	# below for broken collect2 doesn't work under 4.3+
24921	  collect2name=`${CC} -print-prog-name=collect2`
24922	  if test -f "$collect2name" && \
24923  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
24924	  then
24925  	  # We have reworked collect2
24926  	  hardcode_direct_GCJ=yes
24927	  else
24928  	  # We have old collect2
24929  	  hardcode_direct_GCJ=unsupported
24930  	  # It fails to find uninstalled libraries when the uninstalled
24931  	  # path is not listed in the libpath.  Setting hardcode_minus_L
24932  	  # to unsupported forces relinking
24933  	  hardcode_minus_L_GCJ=yes
24934  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
24935  	  hardcode_libdir_separator_GCJ=
24936	  fi
24937	  ;;
24938	esac
24939	shared_flag='-shared'
24940	if test "$aix_use_runtimelinking" = yes; then
24941	  shared_flag="$shared_flag "'${wl}-G'
24942	fi
24943      else
24944	# not using gcc
24945	if test "$host_cpu" = ia64; then
24946  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24947  	# chokes on -Wl,-G. The following line is correct:
24948	  shared_flag='-G'
24949	else
24950	  if test "$aix_use_runtimelinking" = yes; then
24951	    shared_flag='${wl}-G'
24952	  else
24953	    shared_flag='${wl}-bM:SRE'
24954	  fi
24955	fi
24956      fi
24957
24958      # It seems that -bexpall does not export symbols beginning with
24959      # underscore (_), so it is better to generate a list of symbols to export.
24960      always_export_symbols_GCJ=yes
24961      if test "$aix_use_runtimelinking" = yes; then
24962	# Warning - without using the other runtime loading flags (-brtl),
24963	# -berok will link without error, but may produce a broken library.
24964	allow_undefined_flag_GCJ='-berok'
24965       # Determine the default libpath from the value encoded in an empty executable.
24966       cat >conftest.$ac_ext <<_ACEOF
24967/* confdefs.h.  */
24968_ACEOF
24969cat confdefs.h >>conftest.$ac_ext
24970cat >>conftest.$ac_ext <<_ACEOF
24971/* end confdefs.h.  */
24972
24973int
24974main ()
24975{
24976
24977  ;
24978  return 0;
24979}
24980_ACEOF
24981rm -f conftest.$ac_objext conftest$ac_exeext
24982if { (ac_try="$ac_link"
24983case "(($ac_try" in
24984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24985  *) ac_try_echo=$ac_try;;
24986esac
24987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24988  (eval "$ac_link") 2>conftest.er1
24989  ac_status=$?
24990  grep -v '^ *+' conftest.er1 >conftest.err
24991  rm -f conftest.er1
24992  cat conftest.err >&5
24993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994  (exit $ac_status); } &&
24995	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24996  { (case "(($ac_try" in
24997  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24998  *) ac_try_echo=$ac_try;;
24999esac
25000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25001  (eval "$ac_try") 2>&5
25002  ac_status=$?
25003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25004  (exit $ac_status); }; } &&
25005	 { ac_try='test -s conftest$ac_exeext'
25006  { (case "(($ac_try" in
25007  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25008  *) ac_try_echo=$ac_try;;
25009esac
25010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25011  (eval "$ac_try") 2>&5
25012  ac_status=$?
25013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25014  (exit $ac_status); }; }; then
25015
25016aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
25017}'`
25018# Check for a 64-bit object if we didn't find anything.
25019if 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; }
25020}'`; fi
25021else
25022  echo "$as_me: failed program was:" >&5
25023sed 's/^/| /' conftest.$ac_ext >&5
25024
25025
25026fi
25027
25028rm -f core conftest.err conftest.$ac_objext \
25029      conftest$ac_exeext conftest.$ac_ext
25030if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25031
25032       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25033	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"
25034       else
25035	if test "$host_cpu" = ia64; then
25036	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25037	  allow_undefined_flag_GCJ="-z nodefs"
25038	  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"
25039	else
25040	 # Determine the default libpath from the value encoded in an empty executable.
25041	 cat >conftest.$ac_ext <<_ACEOF
25042/* confdefs.h.  */
25043_ACEOF
25044cat confdefs.h >>conftest.$ac_ext
25045cat >>conftest.$ac_ext <<_ACEOF
25046/* end confdefs.h.  */
25047
25048int
25049main ()
25050{
25051
25052  ;
25053  return 0;
25054}
25055_ACEOF
25056rm -f conftest.$ac_objext conftest$ac_exeext
25057if { (ac_try="$ac_link"
25058case "(($ac_try" in
25059  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25060  *) ac_try_echo=$ac_try;;
25061esac
25062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25063  (eval "$ac_link") 2>conftest.er1
25064  ac_status=$?
25065  grep -v '^ *+' conftest.er1 >conftest.err
25066  rm -f conftest.er1
25067  cat conftest.err >&5
25068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25069  (exit $ac_status); } &&
25070	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25071  { (case "(($ac_try" in
25072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25073  *) ac_try_echo=$ac_try;;
25074esac
25075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25076  (eval "$ac_try") 2>&5
25077  ac_status=$?
25078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25079  (exit $ac_status); }; } &&
25080	 { ac_try='test -s conftest$ac_exeext'
25081  { (case "(($ac_try" in
25082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25083  *) ac_try_echo=$ac_try;;
25084esac
25085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25086  (eval "$ac_try") 2>&5
25087  ac_status=$?
25088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25089  (exit $ac_status); }; }; then
25090
25091aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
25092}'`
25093# Check for a 64-bit object if we didn't find anything.
25094if 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; }
25095}'`; fi
25096else
25097  echo "$as_me: failed program was:" >&5
25098sed 's/^/| /' conftest.$ac_ext >&5
25099
25100
25101fi
25102
25103rm -f core conftest.err conftest.$ac_objext \
25104      conftest$ac_exeext conftest.$ac_ext
25105if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25106
25107	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25108	  # Warning - without using the other run time loading flags,
25109	  # -berok will link without error, but may produce a broken library.
25110	  no_undefined_flag_GCJ=' ${wl}-bernotok'
25111	  allow_undefined_flag_GCJ=' ${wl}-berok'
25112	  # Exported symbols can be pulled into shared objects from archives
25113	  whole_archive_flag_spec_GCJ='$convenience'
25114	  archive_cmds_need_lc_GCJ=yes
25115	  # This is similar to how AIX traditionally builds its shared libraries.
25116	  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'
25117	fi
25118      fi
25119      ;;
25120
25121    amigaos*)
25122      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)'
25123      hardcode_libdir_flag_spec_GCJ='-L$libdir'
25124      hardcode_minus_L_GCJ=yes
25125      # see comment about different semantics on the GNU ld section
25126      ld_shlibs_GCJ=no
25127      ;;
25128
25129    bsdi[45]*)
25130      export_dynamic_flag_spec_GCJ=-rdynamic
25131      ;;
25132
25133    cygwin* | mingw* | pw32*)
25134      # When not using gcc, we currently assume that we are using
25135      # Microsoft Visual C++.
25136      # hardcode_libdir_flag_spec is actually meaningless, as there is
25137      # no search path for DLLs.
25138      hardcode_libdir_flag_spec_GCJ=' '
25139      allow_undefined_flag_GCJ=unsupported
25140      # Tell ltmain to make .lib files, not .a files.
25141      libext=lib
25142      # Tell ltmain to make .dll files, not .so files.
25143      shrext_cmds=".dll"
25144      # FIXME: Setting linknames here is a bad hack.
25145      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25146      # The linker will automatically build a .lib file if we build a DLL.
25147      old_archive_From_new_cmds_GCJ='true'
25148      # FIXME: Should let the user specify the lib program.
25149      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25150      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25151      enable_shared_with_static_runtimes_GCJ=yes
25152      ;;
25153
25154    darwin* | rhapsody*)
25155      case $host_os in
25156        rhapsody* | darwin1.[012])
25157         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25158         ;;
25159       *) # Darwin 1.3 on
25160         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25161           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25162         else
25163           case ${MACOSX_DEPLOYMENT_TARGET} in
25164             10.[012])
25165               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25166               ;;
25167             10.*)
25168               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25169               ;;
25170           esac
25171         fi
25172         ;;
25173      esac
25174      archive_cmds_need_lc_GCJ=no
25175      hardcode_direct_GCJ=no
25176      hardcode_automatic_GCJ=yes
25177      hardcode_shlibpath_var_GCJ=unsupported
25178      whole_archive_flag_spec_GCJ=''
25179      link_all_deplibs_GCJ=yes
25180    if test "$GCC" = yes ; then
25181    	output_verbose_link_cmd='echo'
25182        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25183      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25184      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25185      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}'
25186      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}'
25187    else
25188      case $cc_basename in
25189        xlc*)
25190         output_verbose_link_cmd='echo'
25191         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25192         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25193          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25194         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}'
25195          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}'
25196          ;;
25197       *)
25198         ld_shlibs_GCJ=no
25199          ;;
25200      esac
25201    fi
25202      ;;
25203
25204    dgux*)
25205      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25206      hardcode_libdir_flag_spec_GCJ='-L$libdir'
25207      hardcode_shlibpath_var_GCJ=no
25208      ;;
25209
25210    freebsd1*)
25211      ld_shlibs_GCJ=no
25212      ;;
25213
25214    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25215    # support.  Future versions do this automatically, but an explicit c++rt0.o
25216    # does not break anything, and helps significantly (at the cost of a little
25217    # extra space).
25218    freebsd2.2*)
25219      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25220      hardcode_libdir_flag_spec_GCJ='-R$libdir'
25221      hardcode_direct_GCJ=yes
25222      hardcode_shlibpath_var_GCJ=no
25223      ;;
25224
25225    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25226    freebsd2*)
25227      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25228      hardcode_direct_GCJ=yes
25229      hardcode_minus_L_GCJ=yes
25230      hardcode_shlibpath_var_GCJ=no
25231      ;;
25232
25233    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25234    freebsd* | kfreebsd*-gnu | dragonfly*)
25235      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25236      hardcode_libdir_flag_spec_GCJ='-R$libdir'
25237      hardcode_direct_GCJ=yes
25238      hardcode_shlibpath_var_GCJ=no
25239      ;;
25240
25241    hpux9*)
25242      if test "$GCC" = yes; then
25243	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'
25244      else
25245	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'
25246      fi
25247      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25248      hardcode_libdir_separator_GCJ=:
25249      hardcode_direct_GCJ=yes
25250
25251      # hardcode_minus_L: Not really in the search PATH,
25252      # but as the default location of the library.
25253      hardcode_minus_L_GCJ=yes
25254      export_dynamic_flag_spec_GCJ='${wl}-E'
25255      ;;
25256
25257    hpux10*)
25258      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25259	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25260      else
25261	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25262      fi
25263      if test "$with_gnu_ld" = no; then
25264	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25265	hardcode_libdir_separator_GCJ=:
25266
25267	hardcode_direct_GCJ=yes
25268	export_dynamic_flag_spec_GCJ='${wl}-E'
25269
25270	# hardcode_minus_L: Not really in the search PATH,
25271	# but as the default location of the library.
25272	hardcode_minus_L_GCJ=yes
25273      fi
25274      ;;
25275
25276    hpux11*)
25277      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25278	case $host_cpu in
25279	hppa*64*)
25280	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25281	  ;;
25282	ia64*)
25283	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25284	  ;;
25285	*)
25286	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25287	  ;;
25288	esac
25289      else
25290	case $host_cpu in
25291	hppa*64*)
25292	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25293	  ;;
25294	ia64*)
25295	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25296	  ;;
25297	*)
25298	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25299	  ;;
25300	esac
25301      fi
25302      if test "$with_gnu_ld" = no; then
25303	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25304	hardcode_libdir_separator_GCJ=:
25305
25306	case $host_cpu in
25307	hppa*64*|ia64*)
25308	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25309	  hardcode_direct_GCJ=no
25310	  hardcode_shlibpath_var_GCJ=no
25311	  ;;
25312	*)
25313	  hardcode_direct_GCJ=yes
25314	  export_dynamic_flag_spec_GCJ='${wl}-E'
25315
25316	  # hardcode_minus_L: Not really in the search PATH,
25317	  # but as the default location of the library.
25318	  hardcode_minus_L_GCJ=yes
25319	  ;;
25320	esac
25321      fi
25322      ;;
25323
25324    irix5* | irix6* | nonstopux*)
25325      if test "$GCC" = yes; then
25326	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'
25327      else
25328	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'
25329	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25330      fi
25331      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25332      hardcode_libdir_separator_GCJ=:
25333      link_all_deplibs_GCJ=yes
25334      ;;
25335
25336    netbsd*)
25337      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25338	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
25339      else
25340	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
25341      fi
25342      hardcode_libdir_flag_spec_GCJ='-R$libdir'
25343      hardcode_direct_GCJ=yes
25344      hardcode_shlibpath_var_GCJ=no
25345      ;;
25346
25347    newsos6)
25348      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25349      hardcode_direct_GCJ=yes
25350      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25351      hardcode_libdir_separator_GCJ=:
25352      hardcode_shlibpath_var_GCJ=no
25353      ;;
25354
25355    openbsd*)
25356      hardcode_direct_GCJ=yes
25357      hardcode_shlibpath_var_GCJ=no
25358      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25359	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25360	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25361	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25362	export_dynamic_flag_spec_GCJ='${wl}-E'
25363      else
25364       case $host_os in
25365	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25366	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25367	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
25368	   ;;
25369	 *)
25370	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25371	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25372	   ;;
25373       esac
25374      fi
25375      ;;
25376
25377    os2*)
25378      hardcode_libdir_flag_spec_GCJ='-L$libdir'
25379      hardcode_minus_L_GCJ=yes
25380      allow_undefined_flag_GCJ=unsupported
25381      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'
25382      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25383      ;;
25384
25385    osf3*)
25386      if test "$GCC" = yes; then
25387	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25388	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'
25389      else
25390	allow_undefined_flag_GCJ=' -expect_unresolved \*'
25391	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'
25392      fi
25393      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25394      hardcode_libdir_separator_GCJ=:
25395      ;;
25396
25397    osf4* | osf5*)	# as osf3* with the addition of -msym flag
25398      if test "$GCC" = yes; then
25399	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25400	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'
25401	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25402      else
25403	allow_undefined_flag_GCJ=' -expect_unresolved \*'
25404	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'
25405	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~
25406	$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'
25407
25408	# Both c and cxx compiler support -rpath directly
25409	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25410      fi
25411      hardcode_libdir_separator_GCJ=:
25412      ;;
25413
25414    solaris*)
25415      no_undefined_flag_GCJ=' -z text'
25416      if test "$GCC" = yes; then
25417	wlarc='${wl}'
25418	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25419	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25420	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25421      else
25422	wlarc=''
25423	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25424	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25425  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25426      fi
25427      hardcode_libdir_flag_spec_GCJ='-R$libdir'
25428      hardcode_shlibpath_var_GCJ=no
25429      case $host_os in
25430      solaris2.[0-5] | solaris2.[0-5].*) ;;
25431      *)
25432 	# The compiler driver will combine linker options so we
25433 	# cannot just pass the convience library names through
25434 	# without $wl, iff we do not link with $LD.
25435 	# Luckily, gcc supports the same syntax we need for Sun Studio.
25436 	# Supported since Solaris 2.6 (maybe 2.5.1?)
25437 	case $wlarc in
25438 	'')
25439 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25440 	*)
25441 	  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' ;;
25442 	esac ;;
25443      esac
25444      link_all_deplibs_GCJ=yes
25445      ;;
25446
25447    sunos4*)
25448      if test "x$host_vendor" = xsequent; then
25449	# Use $CC to link under sequent, because it throws in some extra .o
25450	# files that make .init and .fini sections work.
25451	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25452      else
25453	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25454      fi
25455      hardcode_libdir_flag_spec_GCJ='-L$libdir'
25456      hardcode_direct_GCJ=yes
25457      hardcode_minus_L_GCJ=yes
25458      hardcode_shlibpath_var_GCJ=no
25459      ;;
25460
25461    sysv4)
25462      case $host_vendor in
25463	sni)
25464	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25465	  hardcode_direct_GCJ=yes # is this really true???
25466	;;
25467	siemens)
25468	  ## LD is ld it makes a PLAMLIB
25469	  ## CC just makes a GrossModule.
25470	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25471	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25472	  hardcode_direct_GCJ=no
25473        ;;
25474	motorola)
25475	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25476	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25477	;;
25478      esac
25479      runpath_var='LD_RUN_PATH'
25480      hardcode_shlibpath_var_GCJ=no
25481      ;;
25482
25483    sysv4.3*)
25484      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25485      hardcode_shlibpath_var_GCJ=no
25486      export_dynamic_flag_spec_GCJ='-Bexport'
25487      ;;
25488
25489    sysv4*MP*)
25490      if test -d /usr/nec; then
25491	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25492	hardcode_shlibpath_var_GCJ=no
25493	runpath_var=LD_RUN_PATH
25494	hardcode_runpath_var=yes
25495	ld_shlibs_GCJ=yes
25496      fi
25497      ;;
25498
25499    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25500      no_undefined_flag_GCJ='${wl}-z,text'
25501      archive_cmds_need_lc_GCJ=no
25502      hardcode_shlibpath_var_GCJ=no
25503      runpath_var='LD_RUN_PATH'
25504
25505      if test "$GCC" = yes; then
25506	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25507	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25508      else
25509	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25510	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25511      fi
25512      ;;
25513
25514    sysv5* | sco3.2v5* | sco5v6*)
25515      # Note: We can NOT use -z defs as we might desire, because we do not
25516      # link with -lc, and that would cause any symbols used from libc to
25517      # always be unresolved, which means just about no library would
25518      # ever link correctly.  If we're not using GNU ld we use -z text
25519      # though, which does catch some bad symbols but isn't as heavy-handed
25520      # as -z defs.
25521      no_undefined_flag_GCJ='${wl}-z,text'
25522      allow_undefined_flag_GCJ='${wl}-z,nodefs'
25523      archive_cmds_need_lc_GCJ=no
25524      hardcode_shlibpath_var_GCJ=no
25525      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25526      hardcode_libdir_separator_GCJ=':'
25527      link_all_deplibs_GCJ=yes
25528      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25529      runpath_var='LD_RUN_PATH'
25530
25531      if test "$GCC" = yes; then
25532	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25533	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25534      else
25535	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25536	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25537      fi
25538      ;;
25539
25540    uts4*)
25541      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25542      hardcode_libdir_flag_spec_GCJ='-L$libdir'
25543      hardcode_shlibpath_var_GCJ=no
25544      ;;
25545
25546    *)
25547      ld_shlibs_GCJ=no
25548      ;;
25549    esac
25550  fi
25551
25552{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25553echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25554test "$ld_shlibs_GCJ" = no && can_build_shared=no
25555
25556#
25557# Do we need to explicitly link libc?
25558#
25559case "x$archive_cmds_need_lc_GCJ" in
25560x|xyes)
25561  # Assume -lc should be added
25562  archive_cmds_need_lc_GCJ=yes
25563
25564  if test "$enable_shared" = yes && test "$GCC" = yes; then
25565    case $archive_cmds_GCJ in
25566    *'~'*)
25567      # FIXME: we may have to deal with multi-command sequences.
25568      ;;
25569    '$CC '*)
25570      # Test whether the compiler implicitly links with -lc since on some
25571      # systems, -lgcc has to come before -lc. If gcc already passes -lc
25572      # to ld, don't add -lc before -lgcc.
25573      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25574echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25575      $rm conftest*
25576      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25577
25578      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25579  (eval $ac_compile) 2>&5
25580  ac_status=$?
25581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25582  (exit $ac_status); } 2>conftest.err; then
25583        soname=conftest
25584        lib=conftest
25585        libobjs=conftest.$ac_objext
25586        deplibs=
25587        wl=$lt_prog_compiler_wl_GCJ
25588	pic_flag=$lt_prog_compiler_pic_GCJ
25589        compiler_flags=-v
25590        linker_flags=-v
25591        verstring=
25592        output_objdir=.
25593        libname=conftest
25594        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25595        allow_undefined_flag_GCJ=
25596        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25597  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25598  ac_status=$?
25599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25600  (exit $ac_status); }
25601        then
25602	  archive_cmds_need_lc_GCJ=no
25603        else
25604	  archive_cmds_need_lc_GCJ=yes
25605        fi
25606        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25607      else
25608        cat conftest.err 1>&5
25609      fi
25610      $rm conftest*
25611      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25612echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25613      ;;
25614    esac
25615  fi
25616  ;;
25617esac
25618
25619{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25620echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25621library_names_spec=
25622libname_spec='lib$name'
25623soname_spec=
25624shrext_cmds=".so"
25625postinstall_cmds=
25626postuninstall_cmds=
25627finish_cmds=
25628finish_eval=
25629shlibpath_var=
25630shlibpath_overrides_runpath=unknown
25631version_type=none
25632dynamic_linker="$host_os ld.so"
25633sys_lib_dlsearch_path_spec="/lib /usr/lib"
25634if test "$GCC" = yes; then
25635  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25636  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25637    # if the path contains ";" then we assume it to be the separator
25638    # otherwise default to the standard path separator (i.e. ":") - it is
25639    # assumed that no part of a normal pathname contains ";" but that should
25640    # okay in the real world where ";" in dirpaths is itself problematic.
25641    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25642  else
25643    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25644  fi
25645else
25646  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25647fi
25648need_lib_prefix=unknown
25649hardcode_into_libs=no
25650
25651# when you set need_version to no, make sure it does not cause -set_version
25652# flags to be left without arguments
25653need_version=unknown
25654
25655case $host_os in
25656aix3*)
25657  version_type=linux
25658  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25659  shlibpath_var=LIBPATH
25660
25661  # AIX 3 has no versioning support, so we append a major version to the name.
25662  soname_spec='${libname}${release}${shared_ext}$major'
25663  ;;
25664
25665aix4* | aix5*)
25666  version_type=linux
25667  need_lib_prefix=no
25668  need_version=no
25669  hardcode_into_libs=yes
25670  if test "$host_cpu" = ia64; then
25671    # AIX 5 supports IA64
25672    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25673    shlibpath_var=LD_LIBRARY_PATH
25674  else
25675    # With GCC up to 2.95.x, collect2 would create an import file
25676    # for dependence libraries.  The import file would start with
25677    # the line `#! .'.  This would cause the generated library to
25678    # depend on `.', always an invalid library.  This was fixed in
25679    # development snapshots of GCC prior to 3.0.
25680    case $host_os in
25681      aix4 | aix4.[01] | aix4.[01].*)
25682      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25683	   echo ' yes '
25684	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25685	:
25686      else
25687	can_build_shared=no
25688      fi
25689      ;;
25690    esac
25691    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25692    # soname into executable. Probably we can add versioning support to
25693    # collect2, so additional links can be useful in future.
25694    if test "$aix_use_runtimelinking" = yes; then
25695      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25696      # instead of lib<name>.a to let people know that these are not
25697      # typical AIX shared libraries.
25698      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25699    else
25700      # We preserve .a as extension for shared libraries through AIX4.2
25701      # and later when we are not doing run time linking.
25702      library_names_spec='${libname}${release}.a $libname.a'
25703      soname_spec='${libname}${release}${shared_ext}$major'
25704    fi
25705    shlibpath_var=LIBPATH
25706  fi
25707  ;;
25708
25709amigaos*)
25710  library_names_spec='$libname.ixlibrary $libname.a'
25711  # Create ${libname}_ixlibrary.a entries in /sys/libs.
25712  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'
25713  ;;
25714
25715beos*)
25716  library_names_spec='${libname}${shared_ext}'
25717  dynamic_linker="$host_os ld.so"
25718  shlibpath_var=LIBRARY_PATH
25719  ;;
25720
25721bsdi[45]*)
25722  version_type=linux
25723  need_version=no
25724  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25725  soname_spec='${libname}${release}${shared_ext}$major'
25726  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25727  shlibpath_var=LD_LIBRARY_PATH
25728  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25729  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25730  # the default ld.so.conf also contains /usr/contrib/lib and
25731  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25732  # libtool to hard-code these into programs
25733  ;;
25734
25735cygwin* | mingw* | pw32*)
25736  version_type=windows
25737  shrext_cmds=".dll"
25738  need_version=no
25739  need_lib_prefix=no
25740
25741  case $GCC,$host_os in
25742  yes,cygwin* | yes,mingw* | yes,pw32*)
25743    library_names_spec='$libname.dll.a'
25744    # DLL is installed to $(libdir)/../bin by postinstall_cmds
25745    postinstall_cmds='base_file=`basename \${file}`~
25746      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25747      dldir=$destdir/`dirname \$dlpath`~
25748      test -d \$dldir || mkdir -p \$dldir~
25749      $install_prog $dir/$dlname \$dldir/$dlname~
25750      chmod a+x \$dldir/$dlname'
25751    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25752      dlpath=$dir/\$dldll~
25753       $rm \$dlpath'
25754    shlibpath_overrides_runpath=yes
25755
25756    case $host_os in
25757    cygwin*)
25758      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25759      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25760      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25761      ;;
25762    mingw*)
25763      # MinGW DLLs use traditional 'lib' prefix
25764      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25765      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25766      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25767        # It is most probably a Windows format PATH printed by
25768        # mingw gcc, but we are running on Cygwin. Gcc prints its search
25769        # path with ; separators, and with drive letters. We can handle the
25770        # drive letters (cygwin fileutils understands them), so leave them,
25771        # especially as we might pass files found there to a mingw objdump,
25772        # which wouldn't understand a cygwinified path. Ahh.
25773        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25774      else
25775        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25776      fi
25777      ;;
25778    pw32*)
25779      # pw32 DLLs use 'pw' prefix rather than 'lib'
25780      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25781      ;;
25782    esac
25783    ;;
25784
25785  *)
25786    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25787    ;;
25788  esac
25789  dynamic_linker='Win32 ld.exe'
25790  # FIXME: first we should search . and the directory the executable is in
25791  shlibpath_var=PATH
25792  ;;
25793
25794darwin* | rhapsody*)
25795  dynamic_linker="$host_os dyld"
25796  version_type=darwin
25797  need_lib_prefix=no
25798  need_version=no
25799  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25800  soname_spec='${libname}${release}${major}$shared_ext'
25801  shlibpath_overrides_runpath=yes
25802  shlibpath_var=DYLD_LIBRARY_PATH
25803  shrext_cmds='.dylib'
25804  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25805  if test "$GCC" = yes; then
25806    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"`
25807  else
25808    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25809  fi
25810  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25811  ;;
25812
25813dgux*)
25814  version_type=linux
25815  need_lib_prefix=no
25816  need_version=no
25817  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25818  soname_spec='${libname}${release}${shared_ext}$major'
25819  shlibpath_var=LD_LIBRARY_PATH
25820  ;;
25821
25822freebsd1*)
25823  dynamic_linker=no
25824  ;;
25825
25826kfreebsd*-gnu)
25827  version_type=linux
25828  need_lib_prefix=no
25829  need_version=no
25830  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25831  soname_spec='${libname}${release}${shared_ext}$major'
25832  shlibpath_var=LD_LIBRARY_PATH
25833  shlibpath_overrides_runpath=no
25834  hardcode_into_libs=yes
25835  dynamic_linker='GNU ld.so'
25836  ;;
25837
25838freebsd* | dragonfly*)
25839  # DragonFly does not have aout.  When/if they implement a new
25840  # versioning mechanism, adjust this.
25841  if test -x /usr/bin/objformat; then
25842    objformat=`/usr/bin/objformat`
25843  else
25844    case $host_os in
25845    freebsd[123]*) objformat=aout ;;
25846    *) objformat=elf ;;
25847    esac
25848  fi
25849  version_type=freebsd-$objformat
25850  case $version_type in
25851    freebsd-elf*)
25852      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25853      need_version=no
25854      need_lib_prefix=no
25855      ;;
25856    freebsd-*)
25857      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25858      need_version=yes
25859      ;;
25860  esac
25861  shlibpath_var=LD_LIBRARY_PATH
25862  case $host_os in
25863  freebsd2*)
25864    shlibpath_overrides_runpath=yes
25865    ;;
25866  freebsd3.[01]* | freebsdelf3.[01]*)
25867    shlibpath_overrides_runpath=yes
25868    hardcode_into_libs=yes
25869    ;;
25870  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25871  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25872    shlibpath_overrides_runpath=no
25873    hardcode_into_libs=yes
25874    ;;
25875  freebsd*) # from 4.6 on
25876    shlibpath_overrides_runpath=yes
25877    hardcode_into_libs=yes
25878    ;;
25879  esac
25880  ;;
25881
25882gnu*)
25883  version_type=linux
25884  need_lib_prefix=no
25885  need_version=no
25886  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25887  soname_spec='${libname}${release}${shared_ext}$major'
25888  shlibpath_var=LD_LIBRARY_PATH
25889  hardcode_into_libs=yes
25890  ;;
25891
25892hpux9* | hpux10* | hpux11*)
25893  # Give a soname corresponding to the major version so that dld.sl refuses to
25894  # link against other versions.
25895  version_type=sunos
25896  need_lib_prefix=no
25897  need_version=no
25898  case $host_cpu in
25899  ia64*)
25900    shrext_cmds='.so'
25901    hardcode_into_libs=yes
25902    dynamic_linker="$host_os dld.so"
25903    shlibpath_var=LD_LIBRARY_PATH
25904    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25905    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25906    soname_spec='${libname}${release}${shared_ext}$major'
25907    if test "X$HPUX_IA64_MODE" = X32; then
25908      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25909    else
25910      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25911    fi
25912    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25913    ;;
25914   hppa*64*)
25915     shrext_cmds='.sl'
25916     hardcode_into_libs=yes
25917     dynamic_linker="$host_os dld.sl"
25918     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25919     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25920     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25921     soname_spec='${libname}${release}${shared_ext}$major'
25922     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25923     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25924     ;;
25925   *)
25926    shrext_cmds='.sl'
25927    dynamic_linker="$host_os dld.sl"
25928    shlibpath_var=SHLIB_PATH
25929    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25930    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25931    soname_spec='${libname}${release}${shared_ext}$major'
25932    ;;
25933  esac
25934  # HP-UX runs *really* slowly unless shared libraries are mode 555.
25935  postinstall_cmds='chmod 555 $lib'
25936  ;;
25937
25938interix3*)
25939  version_type=linux
25940  need_lib_prefix=no
25941  need_version=no
25942  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25943  soname_spec='${libname}${release}${shared_ext}$major'
25944  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25945  shlibpath_var=LD_LIBRARY_PATH
25946  shlibpath_overrides_runpath=no
25947  hardcode_into_libs=yes
25948  ;;
25949
25950irix5* | irix6* | nonstopux*)
25951  case $host_os in
25952    nonstopux*) version_type=nonstopux ;;
25953    *)
25954	if test "$lt_cv_prog_gnu_ld" = yes; then
25955		version_type=linux
25956	else
25957		version_type=irix
25958	fi ;;
25959  esac
25960  need_lib_prefix=no
25961  need_version=no
25962  soname_spec='${libname}${release}${shared_ext}$major'
25963  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25964  case $host_os in
25965  irix5* | nonstopux*)
25966    libsuff= shlibsuff=
25967    ;;
25968  *)
25969    case $LD in # libtool.m4 will add one of these switches to LD
25970    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25971      libsuff= shlibsuff= libmagic=32-bit;;
25972    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25973      libsuff=32 shlibsuff=N32 libmagic=N32;;
25974    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25975      libsuff=64 shlibsuff=64 libmagic=64-bit;;
25976    *) libsuff= shlibsuff= libmagic=never-match;;
25977    esac
25978    ;;
25979  esac
25980  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25981  shlibpath_overrides_runpath=no
25982  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25983  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25984  hardcode_into_libs=yes
25985  ;;
25986
25987# No shared lib support for Linux oldld, aout, or coff.
25988linux*oldld* | linux*aout* | linux*coff*)
25989  dynamic_linker=no
25990  ;;
25991
25992# This must be Linux ELF.
25993linux*)
25994  version_type=linux
25995  need_lib_prefix=no
25996  need_version=no
25997  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25998  soname_spec='${libname}${release}${shared_ext}$major'
25999  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26000  shlibpath_var=LD_LIBRARY_PATH
26001  shlibpath_overrides_runpath=no
26002  # This implies no fast_install, which is unacceptable.
26003  # Some rework will be needed to allow for fast_install
26004  # before this can be enabled.
26005  hardcode_into_libs=yes
26006
26007  # Append ld.so.conf contents to the search path
26008  if test -f /etc/ld.so.conf; then
26009    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' ' '`
26010    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26011  fi
26012
26013  # We used to test for /lib/ld.so.1 and disable shared libraries on
26014  # powerpc, because MkLinux only supported shared libraries with the
26015  # GNU dynamic linker.  Since this was broken with cross compilers,
26016  # most powerpc-linux boxes support dynamic linking these days and
26017  # people can always --disable-shared, the test was removed, and we
26018  # assume the GNU/Linux dynamic linker is in use.
26019  dynamic_linker='GNU/Linux ld.so'
26020  ;;
26021
26022knetbsd*-gnu)
26023  version_type=linux
26024  need_lib_prefix=no
26025  need_version=no
26026  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26027  soname_spec='${libname}${release}${shared_ext}$major'
26028  shlibpath_var=LD_LIBRARY_PATH
26029  shlibpath_overrides_runpath=no
26030  hardcode_into_libs=yes
26031  dynamic_linker='GNU ld.so'
26032  ;;
26033
26034netbsd*)
26035  version_type=sunos
26036  need_lib_prefix=no
26037  need_version=no
26038  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26039    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26040    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26041    dynamic_linker='NetBSD (a.out) ld.so'
26042  else
26043    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26044    soname_spec='${libname}${release}${shared_ext}$major'
26045    dynamic_linker='NetBSD ld.elf_so'
26046  fi
26047  shlibpath_var=LD_LIBRARY_PATH
26048  shlibpath_overrides_runpath=yes
26049  hardcode_into_libs=yes
26050  ;;
26051
26052newsos6)
26053  version_type=linux
26054  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26055  shlibpath_var=LD_LIBRARY_PATH
26056  shlibpath_overrides_runpath=yes
26057  ;;
26058
26059nto-qnx*)
26060  version_type=linux
26061  need_lib_prefix=no
26062  need_version=no
26063  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26064  soname_spec='${libname}${release}${shared_ext}$major'
26065  shlibpath_var=LD_LIBRARY_PATH
26066  shlibpath_overrides_runpath=yes
26067  ;;
26068
26069openbsd*)
26070  version_type=sunos
26071  sys_lib_dlsearch_path_spec="/usr/lib"
26072  need_lib_prefix=no
26073  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26074  case $host_os in
26075    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26076    *)                         need_version=no  ;;
26077  esac
26078  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26079  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26080  shlibpath_var=LD_LIBRARY_PATH
26081  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26082    case $host_os in
26083      openbsd2.[89] | openbsd2.[89].*)
26084	shlibpath_overrides_runpath=no
26085	;;
26086      *)
26087	shlibpath_overrides_runpath=yes
26088	;;
26089      esac
26090  else
26091    shlibpath_overrides_runpath=yes
26092  fi
26093  ;;
26094
26095os2*)
26096  libname_spec='$name'
26097  shrext_cmds=".dll"
26098  need_lib_prefix=no
26099  library_names_spec='$libname${shared_ext} $libname.a'
26100  dynamic_linker='OS/2 ld.exe'
26101  shlibpath_var=LIBPATH
26102  ;;
26103
26104osf3* | osf4* | osf5*)
26105  version_type=osf
26106  need_lib_prefix=no
26107  need_version=no
26108  soname_spec='${libname}${release}${shared_ext}$major'
26109  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26110  shlibpath_var=LD_LIBRARY_PATH
26111  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26112  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26113  ;;
26114
26115solaris*)
26116  version_type=linux
26117  need_lib_prefix=no
26118  need_version=no
26119  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26120  soname_spec='${libname}${release}${shared_ext}$major'
26121  shlibpath_var=LD_LIBRARY_PATH
26122  shlibpath_overrides_runpath=yes
26123  hardcode_into_libs=yes
26124  # ldd complains unless libraries are executable
26125  postinstall_cmds='chmod +x $lib'
26126  ;;
26127
26128sunos4*)
26129  version_type=sunos
26130  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26131  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26132  shlibpath_var=LD_LIBRARY_PATH
26133  shlibpath_overrides_runpath=yes
26134  if test "$with_gnu_ld" = yes; then
26135    need_lib_prefix=no
26136  fi
26137  need_version=yes
26138  ;;
26139
26140sysv4 | sysv4.3*)
26141  version_type=linux
26142  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26143  soname_spec='${libname}${release}${shared_ext}$major'
26144  shlibpath_var=LD_LIBRARY_PATH
26145  case $host_vendor in
26146    sni)
26147      shlibpath_overrides_runpath=no
26148      need_lib_prefix=no
26149      export_dynamic_flag_spec='${wl}-Blargedynsym'
26150      runpath_var=LD_RUN_PATH
26151      ;;
26152    siemens)
26153      need_lib_prefix=no
26154      ;;
26155    motorola)
26156      need_lib_prefix=no
26157      need_version=no
26158      shlibpath_overrides_runpath=no
26159      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26160      ;;
26161  esac
26162  ;;
26163
26164sysv4*MP*)
26165  if test -d /usr/nec ;then
26166    version_type=linux
26167    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26168    soname_spec='$libname${shared_ext}.$major'
26169    shlibpath_var=LD_LIBRARY_PATH
26170  fi
26171  ;;
26172
26173sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26174  version_type=freebsd-elf
26175  need_lib_prefix=no
26176  need_version=no
26177  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26178  soname_spec='${libname}${release}${shared_ext}$major'
26179  shlibpath_var=LD_LIBRARY_PATH
26180  hardcode_into_libs=yes
26181  if test "$with_gnu_ld" = yes; then
26182    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26183    shlibpath_overrides_runpath=no
26184  else
26185    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26186    shlibpath_overrides_runpath=yes
26187    case $host_os in
26188      sco3.2v5*)
26189        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26190	;;
26191    esac
26192  fi
26193  sys_lib_dlsearch_path_spec='/usr/lib'
26194  ;;
26195
26196uts4*)
26197  version_type=linux
26198  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26199  soname_spec='${libname}${release}${shared_ext}$major'
26200  shlibpath_var=LD_LIBRARY_PATH
26201  ;;
26202
26203*)
26204  dynamic_linker=no
26205  ;;
26206esac
26207{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26208echo "${ECHO_T}$dynamic_linker" >&6; }
26209test "$dynamic_linker" = no && can_build_shared=no
26210
26211variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26212if test "$GCC" = yes; then
26213  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26214fi
26215
26216{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26217echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26218hardcode_action_GCJ=
26219if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26220   test -n "$runpath_var_GCJ" || \
26221   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26222
26223  # We can hardcode non-existant directories.
26224  if test "$hardcode_direct_GCJ" != no &&
26225     # If the only mechanism to avoid hardcoding is shlibpath_var, we
26226     # have to relink, otherwise we might link with an installed library
26227     # when we should be linking with a yet-to-be-installed one
26228     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26229     test "$hardcode_minus_L_GCJ" != no; then
26230    # Linking always hardcodes the temporary library directory.
26231    hardcode_action_GCJ=relink
26232  else
26233    # We can link without hardcoding, and we can hardcode nonexisting dirs.
26234    hardcode_action_GCJ=immediate
26235  fi
26236else
26237  # We cannot hardcode anything, or else we can only hardcode existing
26238  # directories.
26239  hardcode_action_GCJ=unsupported
26240fi
26241{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26242echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26243
26244if test "$hardcode_action_GCJ" = relink; then
26245  # Fast installation is not supported
26246  enable_fast_install=no
26247elif test "$shlibpath_overrides_runpath" = yes ||
26248     test "$enable_shared" = no; then
26249  # Fast installation is not necessary
26250  enable_fast_install=needless
26251fi
26252
26253
26254# The else clause should only fire when bootstrapping the
26255# libtool distribution, otherwise you forgot to ship ltmain.sh
26256# with your package, and you will get complaints that there are
26257# no rules to generate ltmain.sh.
26258if test -f "$ltmain"; then
26259  # See if we are running on zsh, and set the options which allow our commands through
26260  # without removal of \ escapes.
26261  if test -n "${ZSH_VERSION+set}" ; then
26262    setopt NO_GLOB_SUBST
26263  fi
26264  # Now quote all the things that may contain metacharacters while being
26265  # careful not to overquote the AC_SUBSTed values.  We take copies of the
26266  # variables and quote the copies for generation of the libtool script.
26267  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26268    SED SHELL STRIP \
26269    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26270    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26271    deplibs_check_method reload_flag reload_cmds need_locks \
26272    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26273    lt_cv_sys_global_symbol_to_c_name_address \
26274    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26275    old_postinstall_cmds old_postuninstall_cmds \
26276    compiler_GCJ \
26277    CC_GCJ \
26278    LD_GCJ \
26279    lt_prog_compiler_wl_GCJ \
26280    lt_prog_compiler_pic_GCJ \
26281    lt_prog_compiler_static_GCJ \
26282    lt_prog_compiler_no_builtin_flag_GCJ \
26283    export_dynamic_flag_spec_GCJ \
26284    thread_safe_flag_spec_GCJ \
26285    whole_archive_flag_spec_GCJ \
26286    enable_shared_with_static_runtimes_GCJ \
26287    old_archive_cmds_GCJ \
26288    old_archive_from_new_cmds_GCJ \
26289    predep_objects_GCJ \
26290    postdep_objects_GCJ \
26291    predeps_GCJ \
26292    postdeps_GCJ \
26293    compiler_lib_search_path_GCJ \
26294    archive_cmds_GCJ \
26295    archive_expsym_cmds_GCJ \
26296    postinstall_cmds_GCJ \
26297    postuninstall_cmds_GCJ \
26298    old_archive_from_expsyms_cmds_GCJ \
26299    allow_undefined_flag_GCJ \
26300    no_undefined_flag_GCJ \
26301    export_symbols_cmds_GCJ \
26302    hardcode_libdir_flag_spec_GCJ \
26303    hardcode_libdir_flag_spec_ld_GCJ \
26304    hardcode_libdir_separator_GCJ \
26305    hardcode_automatic_GCJ \
26306    module_cmds_GCJ \
26307    module_expsym_cmds_GCJ \
26308    lt_cv_prog_compiler_c_o_GCJ \
26309    exclude_expsyms_GCJ \
26310    include_expsyms_GCJ; do
26311
26312    case $var in
26313    old_archive_cmds_GCJ | \
26314    old_archive_from_new_cmds_GCJ | \
26315    archive_cmds_GCJ | \
26316    archive_expsym_cmds_GCJ | \
26317    module_cmds_GCJ | \
26318    module_expsym_cmds_GCJ | \
26319    old_archive_from_expsyms_cmds_GCJ | \
26320    export_symbols_cmds_GCJ | \
26321    extract_expsyms_cmds | reload_cmds | finish_cmds | \
26322    postinstall_cmds | postuninstall_cmds | \
26323    old_postinstall_cmds | old_postuninstall_cmds | \
26324    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26325      # Double-quote double-evaled strings.
26326      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26327      ;;
26328    *)
26329      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26330      ;;
26331    esac
26332  done
26333
26334  case $lt_echo in
26335  *'\$0 --fallback-echo"')
26336    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26337    ;;
26338  esac
26339
26340cfgfile="$ofile"
26341
26342  cat <<__EOF__ >> "$cfgfile"
26343# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26344
26345# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26346
26347# Shell to use when invoking shell scripts.
26348SHELL=$lt_SHELL
26349
26350# Whether or not to build shared libraries.
26351build_libtool_libs=$enable_shared
26352
26353# Whether or not to build static libraries.
26354build_old_libs=$enable_static
26355
26356# Whether or not to add -lc for building shared libraries.
26357build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26358
26359# Whether or not to disallow shared libs when runtime libs are static
26360allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26361
26362# Whether or not to optimize for fast installation.
26363fast_install=$enable_fast_install
26364
26365# The host system.
26366host_alias=$host_alias
26367host=$host
26368host_os=$host_os
26369
26370# The build system.
26371build_alias=$build_alias
26372build=$build
26373build_os=$build_os
26374
26375# An echo program that does not interpret backslashes.
26376echo=$lt_echo
26377
26378# The archiver.
26379AR=$lt_AR
26380AR_FLAGS=$lt_AR_FLAGS
26381
26382# A C compiler.
26383LTCC=$lt_LTCC
26384
26385# LTCC compiler flags.
26386LTCFLAGS=$lt_LTCFLAGS
26387
26388# A language-specific compiler.
26389CC=$lt_compiler_GCJ
26390
26391# Is the compiler the GNU C compiler?
26392with_gcc=$GCC_GCJ
26393
26394# An ERE matcher.
26395EGREP=$lt_EGREP
26396
26397# The linker used to build libraries.
26398LD=$lt_LD_GCJ
26399
26400# Whether we need hard or soft links.
26401LN_S=$lt_LN_S
26402
26403# A BSD-compatible nm program.
26404NM=$lt_NM
26405
26406# A symbol stripping program
26407STRIP=$lt_STRIP
26408
26409# Used to examine libraries when file_magic_cmd begins "file"
26410MAGIC_CMD=$MAGIC_CMD
26411
26412# Used on cygwin: DLL creation program.
26413DLLTOOL="$DLLTOOL"
26414
26415# Used on cygwin: object dumper.
26416OBJDUMP="$OBJDUMP"
26417
26418# Used on cygwin: assembler.
26419AS="$AS"
26420
26421# The name of the directory that contains temporary libtool files.
26422objdir=$objdir
26423
26424# How to create reloadable object files.
26425reload_flag=$lt_reload_flag
26426reload_cmds=$lt_reload_cmds
26427
26428# How to pass a linker flag through the compiler.
26429wl=$lt_lt_prog_compiler_wl_GCJ
26430
26431# Object file suffix (normally "o").
26432objext="$ac_objext"
26433
26434# Old archive suffix (normally "a").
26435libext="$libext"
26436
26437# Shared library suffix (normally ".so").
26438shrext_cmds='$shrext_cmds'
26439
26440# Executable file suffix (normally "").
26441exeext="$exeext"
26442
26443# Additional compiler flags for building library objects.
26444pic_flag=$lt_lt_prog_compiler_pic_GCJ
26445pic_mode=$pic_mode
26446
26447# What is the maximum length of a command?
26448max_cmd_len=$lt_cv_sys_max_cmd_len
26449
26450# Does compiler simultaneously support -c and -o options?
26451compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26452
26453# Must we lock files when doing compilation?
26454need_locks=$lt_need_locks
26455
26456# Do we need the lib prefix for modules?
26457need_lib_prefix=$need_lib_prefix
26458
26459# Do we need a version for libraries?
26460need_version=$need_version
26461
26462# Whether dlopen is supported.
26463dlopen_support=$enable_dlopen
26464
26465# Whether dlopen of programs is supported.
26466dlopen_self=$enable_dlopen_self
26467
26468# Whether dlopen of statically linked programs is supported.
26469dlopen_self_static=$enable_dlopen_self_static
26470
26471# Compiler flag to prevent dynamic linking.
26472link_static_flag=$lt_lt_prog_compiler_static_GCJ
26473
26474# Compiler flag to turn off builtin functions.
26475no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26476
26477# Compiler flag to allow reflexive dlopens.
26478export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26479
26480# Compiler flag to generate shared objects directly from archives.
26481whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26482
26483# Compiler flag to generate thread-safe objects.
26484thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26485
26486# Library versioning type.
26487version_type=$version_type
26488
26489# Format of library name prefix.
26490libname_spec=$lt_libname_spec
26491
26492# List of archive names.  First name is the real one, the rest are links.
26493# The last name is the one that the linker finds with -lNAME.
26494library_names_spec=$lt_library_names_spec
26495
26496# The coded name of the library, if different from the real name.
26497soname_spec=$lt_soname_spec
26498
26499# Commands used to build and install an old-style archive.
26500RANLIB=$lt_RANLIB
26501old_archive_cmds=$lt_old_archive_cmds_GCJ
26502old_postinstall_cmds=$lt_old_postinstall_cmds
26503old_postuninstall_cmds=$lt_old_postuninstall_cmds
26504
26505# Create an old-style archive from a shared archive.
26506old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26507
26508# Create a temporary old-style archive to link instead of a shared archive.
26509old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26510
26511# Commands used to build and install a shared archive.
26512archive_cmds=$lt_archive_cmds_GCJ
26513archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26514postinstall_cmds=$lt_postinstall_cmds
26515postuninstall_cmds=$lt_postuninstall_cmds
26516
26517# Commands used to build a loadable module (assumed same as above if empty)
26518module_cmds=$lt_module_cmds_GCJ
26519module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26520
26521# Commands to strip libraries.
26522old_striplib=$lt_old_striplib
26523striplib=$lt_striplib
26524
26525# Dependencies to place before the objects being linked to create a
26526# shared library.
26527predep_objects=$lt_predep_objects_GCJ
26528
26529# Dependencies to place after the objects being linked to create a
26530# shared library.
26531postdep_objects=$lt_postdep_objects_GCJ
26532
26533# Dependencies to place before the objects being linked to create a
26534# shared library.
26535predeps=$lt_predeps_GCJ
26536
26537# Dependencies to place after the objects being linked to create a
26538# shared library.
26539postdeps=$lt_postdeps_GCJ
26540
26541# The library search path used internally by the compiler when linking
26542# a shared library.
26543compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26544
26545# Method to check whether dependent libraries are shared objects.
26546deplibs_check_method=$lt_deplibs_check_method
26547
26548# Command to use when deplibs_check_method == file_magic.
26549file_magic_cmd=$lt_file_magic_cmd
26550
26551# Flag that allows shared libraries with undefined symbols to be built.
26552allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26553
26554# Flag that forces no undefined symbols.
26555no_undefined_flag=$lt_no_undefined_flag_GCJ
26556
26557# Commands used to finish a libtool library installation in a directory.
26558finish_cmds=$lt_finish_cmds
26559
26560# Same as above, but a single script fragment to be evaled but not shown.
26561finish_eval=$lt_finish_eval
26562
26563# Take the output of nm and produce a listing of raw symbols and C names.
26564global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26565
26566# Transform the output of nm in a proper C declaration
26567global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26568
26569# Transform the output of nm in a C name address pair
26570global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26571
26572# This is the shared library runtime path variable.
26573runpath_var=$runpath_var
26574
26575# This is the shared library path variable.
26576shlibpath_var=$shlibpath_var
26577
26578# Is shlibpath searched before the hard-coded library search path?
26579shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26580
26581# How to hardcode a shared library path into an executable.
26582hardcode_action=$hardcode_action_GCJ
26583
26584# Whether we should hardcode library paths into libraries.
26585hardcode_into_libs=$hardcode_into_libs
26586
26587# Flag to hardcode \$libdir into a binary during linking.
26588# This must work even if \$libdir does not exist.
26589hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26590
26591# If ld is used when linking, flag to hardcode \$libdir into
26592# a binary during linking. This must work even if \$libdir does
26593# not exist.
26594hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26595
26596# Whether we need a single -rpath flag with a separated argument.
26597hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26598
26599# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26600# resulting binary.
26601hardcode_direct=$hardcode_direct_GCJ
26602
26603# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26604# resulting binary.
26605hardcode_minus_L=$hardcode_minus_L_GCJ
26606
26607# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26608# the resulting binary.
26609hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26610
26611# Set to yes if building a shared library automatically hardcodes DIR into the library
26612# and all subsequent libraries and executables linked against it.
26613hardcode_automatic=$hardcode_automatic_GCJ
26614
26615# Variables whose values should be saved in libtool wrapper scripts and
26616# restored at relink time.
26617variables_saved_for_relink="$variables_saved_for_relink"
26618
26619# Whether libtool must link a program against all its dependency libraries.
26620link_all_deplibs=$link_all_deplibs_GCJ
26621
26622# Compile-time system search path for libraries
26623sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26624
26625# Run-time system search path for libraries
26626sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26627
26628# Fix the shell variable \$srcfile for the compiler.
26629fix_srcfile_path="$fix_srcfile_path_GCJ"
26630
26631# Set to yes if exported symbols are required.
26632always_export_symbols=$always_export_symbols_GCJ
26633
26634# The commands to list exported symbols.
26635export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26636
26637# The commands to extract the exported symbol list from a shared archive.
26638extract_expsyms_cmds=$lt_extract_expsyms_cmds
26639
26640# Symbols that should not be listed in the preloaded symbols.
26641exclude_expsyms=$lt_exclude_expsyms_GCJ
26642
26643# Symbols that must always be exported.
26644include_expsyms=$lt_include_expsyms_GCJ
26645
26646# ### END LIBTOOL TAG CONFIG: $tagname
26647
26648__EOF__
26649
26650
26651else
26652  # If there is no Makefile yet, we rely on a make rule to execute
26653  # `config.status --recheck' to rerun these tests and create the
26654  # libtool script then.
26655  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26656  if test -f "$ltmain_in"; then
26657    test -f Makefile && make "$ltmain"
26658  fi
26659fi
26660
26661
26662ac_ext=c
26663ac_cpp='$CPP $CPPFLAGS'
26664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26666ac_compiler_gnu=$ac_cv_c_compiler_gnu
26667
26668CC="$lt_save_CC"
26669
26670	else
26671	  tagname=""
26672	fi
26673	;;
26674
26675      RC)
26676	ac_ext=c
26677ac_cpp='$CPP $CPPFLAGS'
26678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26680ac_compiler_gnu=$ac_cv_c_compiler_gnu
26681
26682
26683# Source file extension for RC test sources.
26684ac_ext=rc
26685
26686# Object file extension for compiled RC test sources.
26687objext=o
26688objext_RC=$objext
26689
26690# Code to be used in simple compile tests
26691lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26692
26693# Code to be used in simple link tests
26694lt_simple_link_test_code="$lt_simple_compile_test_code"
26695
26696# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26697
26698# If no C compiler was specified, use CC.
26699LTCC=${LTCC-"$CC"}
26700
26701# If no C compiler flags were specified, use CFLAGS.
26702LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26703
26704# Allow CC to be a program name with arguments.
26705compiler=$CC
26706
26707
26708# save warnings/boilerplate of simple test code
26709ac_outfile=conftest.$ac_objext
26710printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26711eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26712_lt_compiler_boilerplate=`cat conftest.err`
26713$rm conftest*
26714
26715ac_outfile=conftest.$ac_objext
26716printf "$lt_simple_link_test_code" >conftest.$ac_ext
26717eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26718_lt_linker_boilerplate=`cat conftest.err`
26719$rm conftest*
26720
26721
26722# Allow CC to be a program name with arguments.
26723lt_save_CC="$CC"
26724CC=${RC-"windres"}
26725compiler=$CC
26726compiler_RC=$CC
26727for cc_temp in $compiler""; do
26728  case $cc_temp in
26729    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26730    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26731    \-*) ;;
26732    *) break;;
26733  esac
26734done
26735cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26736
26737lt_cv_prog_compiler_c_o_RC=yes
26738
26739# The else clause should only fire when bootstrapping the
26740# libtool distribution, otherwise you forgot to ship ltmain.sh
26741# with your package, and you will get complaints that there are
26742# no rules to generate ltmain.sh.
26743if test -f "$ltmain"; then
26744  # See if we are running on zsh, and set the options which allow our commands through
26745  # without removal of \ escapes.
26746  if test -n "${ZSH_VERSION+set}" ; then
26747    setopt NO_GLOB_SUBST
26748  fi
26749  # Now quote all the things that may contain metacharacters while being
26750  # careful not to overquote the AC_SUBSTed values.  We take copies of the
26751  # variables and quote the copies for generation of the libtool script.
26752  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26753    SED SHELL STRIP \
26754    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26755    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26756    deplibs_check_method reload_flag reload_cmds need_locks \
26757    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26758    lt_cv_sys_global_symbol_to_c_name_address \
26759    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26760    old_postinstall_cmds old_postuninstall_cmds \
26761    compiler_RC \
26762    CC_RC \
26763    LD_RC \
26764    lt_prog_compiler_wl_RC \
26765    lt_prog_compiler_pic_RC \
26766    lt_prog_compiler_static_RC \
26767    lt_prog_compiler_no_builtin_flag_RC \
26768    export_dynamic_flag_spec_RC \
26769    thread_safe_flag_spec_RC \
26770    whole_archive_flag_spec_RC \
26771    enable_shared_with_static_runtimes_RC \
26772    old_archive_cmds_RC \
26773    old_archive_from_new_cmds_RC \
26774    predep_objects_RC \
26775    postdep_objects_RC \
26776    predeps_RC \
26777    postdeps_RC \
26778    compiler_lib_search_path_RC \
26779    archive_cmds_RC \
26780    archive_expsym_cmds_RC \
26781    postinstall_cmds_RC \
26782    postuninstall_cmds_RC \
26783    old_archive_from_expsyms_cmds_RC \
26784    allow_undefined_flag_RC \
26785    no_undefined_flag_RC \
26786    export_symbols_cmds_RC \
26787    hardcode_libdir_flag_spec_RC \
26788    hardcode_libdir_flag_spec_ld_RC \
26789    hardcode_libdir_separator_RC \
26790    hardcode_automatic_RC \
26791    module_cmds_RC \
26792    module_expsym_cmds_RC \
26793    lt_cv_prog_compiler_c_o_RC \
26794    exclude_expsyms_RC \
26795    include_expsyms_RC; do
26796
26797    case $var in
26798    old_archive_cmds_RC | \
26799    old_archive_from_new_cmds_RC | \
26800    archive_cmds_RC | \
26801    archive_expsym_cmds_RC | \
26802    module_cmds_RC | \
26803    module_expsym_cmds_RC | \
26804    old_archive_from_expsyms_cmds_RC | \
26805    export_symbols_cmds_RC | \
26806    extract_expsyms_cmds | reload_cmds | finish_cmds | \
26807    postinstall_cmds | postuninstall_cmds | \
26808    old_postinstall_cmds | old_postuninstall_cmds | \
26809    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26810      # Double-quote double-evaled strings.
26811      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26812      ;;
26813    *)
26814      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26815      ;;
26816    esac
26817  done
26818
26819  case $lt_echo in
26820  *'\$0 --fallback-echo"')
26821    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26822    ;;
26823  esac
26824
26825cfgfile="$ofile"
26826
26827  cat <<__EOF__ >> "$cfgfile"
26828# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26829
26830# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26831
26832# Shell to use when invoking shell scripts.
26833SHELL=$lt_SHELL
26834
26835# Whether or not to build shared libraries.
26836build_libtool_libs=$enable_shared
26837
26838# Whether or not to build static libraries.
26839build_old_libs=$enable_static
26840
26841# Whether or not to add -lc for building shared libraries.
26842build_libtool_need_lc=$archive_cmds_need_lc_RC
26843
26844# Whether or not to disallow shared libs when runtime libs are static
26845allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26846
26847# Whether or not to optimize for fast installation.
26848fast_install=$enable_fast_install
26849
26850# The host system.
26851host_alias=$host_alias
26852host=$host
26853host_os=$host_os
26854
26855# The build system.
26856build_alias=$build_alias
26857build=$build
26858build_os=$build_os
26859
26860# An echo program that does not interpret backslashes.
26861echo=$lt_echo
26862
26863# The archiver.
26864AR=$lt_AR
26865AR_FLAGS=$lt_AR_FLAGS
26866
26867# A C compiler.
26868LTCC=$lt_LTCC
26869
26870# LTCC compiler flags.
26871LTCFLAGS=$lt_LTCFLAGS
26872
26873# A language-specific compiler.
26874CC=$lt_compiler_RC
26875
26876# Is the compiler the GNU C compiler?
26877with_gcc=$GCC_RC
26878
26879# An ERE matcher.
26880EGREP=$lt_EGREP
26881
26882# The linker used to build libraries.
26883LD=$lt_LD_RC
26884
26885# Whether we need hard or soft links.
26886LN_S=$lt_LN_S
26887
26888# A BSD-compatible nm program.
26889NM=$lt_NM
26890
26891# A symbol stripping program
26892STRIP=$lt_STRIP
26893
26894# Used to examine libraries when file_magic_cmd begins "file"
26895MAGIC_CMD=$MAGIC_CMD
26896
26897# Used on cygwin: DLL creation program.
26898DLLTOOL="$DLLTOOL"
26899
26900# Used on cygwin: object dumper.
26901OBJDUMP="$OBJDUMP"
26902
26903# Used on cygwin: assembler.
26904AS="$AS"
26905
26906# The name of the directory that contains temporary libtool files.
26907objdir=$objdir
26908
26909# How to create reloadable object files.
26910reload_flag=$lt_reload_flag
26911reload_cmds=$lt_reload_cmds
26912
26913# How to pass a linker flag through the compiler.
26914wl=$lt_lt_prog_compiler_wl_RC
26915
26916# Object file suffix (normally "o").
26917objext="$ac_objext"
26918
26919# Old archive suffix (normally "a").
26920libext="$libext"
26921
26922# Shared library suffix (normally ".so").
26923shrext_cmds='$shrext_cmds'
26924
26925# Executable file suffix (normally "").
26926exeext="$exeext"
26927
26928# Additional compiler flags for building library objects.
26929pic_flag=$lt_lt_prog_compiler_pic_RC
26930pic_mode=$pic_mode
26931
26932# What is the maximum length of a command?
26933max_cmd_len=$lt_cv_sys_max_cmd_len
26934
26935# Does compiler simultaneously support -c and -o options?
26936compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26937
26938# Must we lock files when doing compilation?
26939need_locks=$lt_need_locks
26940
26941# Do we need the lib prefix for modules?
26942need_lib_prefix=$need_lib_prefix
26943
26944# Do we need a version for libraries?
26945need_version=$need_version
26946
26947# Whether dlopen is supported.
26948dlopen_support=$enable_dlopen
26949
26950# Whether dlopen of programs is supported.
26951dlopen_self=$enable_dlopen_self
26952
26953# Whether dlopen of statically linked programs is supported.
26954dlopen_self_static=$enable_dlopen_self_static
26955
26956# Compiler flag to prevent dynamic linking.
26957link_static_flag=$lt_lt_prog_compiler_static_RC
26958
26959# Compiler flag to turn off builtin functions.
26960no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26961
26962# Compiler flag to allow reflexive dlopens.
26963export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26964
26965# Compiler flag to generate shared objects directly from archives.
26966whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26967
26968# Compiler flag to generate thread-safe objects.
26969thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26970
26971# Library versioning type.
26972version_type=$version_type
26973
26974# Format of library name prefix.
26975libname_spec=$lt_libname_spec
26976
26977# List of archive names.  First name is the real one, the rest are links.
26978# The last name is the one that the linker finds with -lNAME.
26979library_names_spec=$lt_library_names_spec
26980
26981# The coded name of the library, if different from the real name.
26982soname_spec=$lt_soname_spec
26983
26984# Commands used to build and install an old-style archive.
26985RANLIB=$lt_RANLIB
26986old_archive_cmds=$lt_old_archive_cmds_RC
26987old_postinstall_cmds=$lt_old_postinstall_cmds
26988old_postuninstall_cmds=$lt_old_postuninstall_cmds
26989
26990# Create an old-style archive from a shared archive.
26991old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26992
26993# Create a temporary old-style archive to link instead of a shared archive.
26994old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26995
26996# Commands used to build and install a shared archive.
26997archive_cmds=$lt_archive_cmds_RC
26998archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26999postinstall_cmds=$lt_postinstall_cmds
27000postuninstall_cmds=$lt_postuninstall_cmds
27001
27002# Commands used to build a loadable module (assumed same as above if empty)
27003module_cmds=$lt_module_cmds_RC
27004module_expsym_cmds=$lt_module_expsym_cmds_RC
27005
27006# Commands to strip libraries.
27007old_striplib=$lt_old_striplib
27008striplib=$lt_striplib
27009
27010# Dependencies to place before the objects being linked to create a
27011# shared library.
27012predep_objects=$lt_predep_objects_RC
27013
27014# Dependencies to place after the objects being linked to create a
27015# shared library.
27016postdep_objects=$lt_postdep_objects_RC
27017
27018# Dependencies to place before the objects being linked to create a
27019# shared library.
27020predeps=$lt_predeps_RC
27021
27022# Dependencies to place after the objects being linked to create a
27023# shared library.
27024postdeps=$lt_postdeps_RC
27025
27026# The library search path used internally by the compiler when linking
27027# a shared library.
27028compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27029
27030# Method to check whether dependent libraries are shared objects.
27031deplibs_check_method=$lt_deplibs_check_method
27032
27033# Command to use when deplibs_check_method == file_magic.
27034file_magic_cmd=$lt_file_magic_cmd
27035
27036# Flag that allows shared libraries with undefined symbols to be built.
27037allow_undefined_flag=$lt_allow_undefined_flag_RC
27038
27039# Flag that forces no undefined symbols.
27040no_undefined_flag=$lt_no_undefined_flag_RC
27041
27042# Commands used to finish a libtool library installation in a directory.
27043finish_cmds=$lt_finish_cmds
27044
27045# Same as above, but a single script fragment to be evaled but not shown.
27046finish_eval=$lt_finish_eval
27047
27048# Take the output of nm and produce a listing of raw symbols and C names.
27049global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27050
27051# Transform the output of nm in a proper C declaration
27052global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27053
27054# Transform the output of nm in a C name address pair
27055global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27056
27057# This is the shared library runtime path variable.
27058runpath_var=$runpath_var
27059
27060# This is the shared library path variable.
27061shlibpath_var=$shlibpath_var
27062
27063# Is shlibpath searched before the hard-coded library search path?
27064shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27065
27066# How to hardcode a shared library path into an executable.
27067hardcode_action=$hardcode_action_RC
27068
27069# Whether we should hardcode library paths into libraries.
27070hardcode_into_libs=$hardcode_into_libs
27071
27072# Flag to hardcode \$libdir into a binary during linking.
27073# This must work even if \$libdir does not exist.
27074hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27075
27076# If ld is used when linking, flag to hardcode \$libdir into
27077# a binary during linking. This must work even if \$libdir does
27078# not exist.
27079hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27080
27081# Whether we need a single -rpath flag with a separated argument.
27082hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27083
27084# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27085# resulting binary.
27086hardcode_direct=$hardcode_direct_RC
27087
27088# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27089# resulting binary.
27090hardcode_minus_L=$hardcode_minus_L_RC
27091
27092# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27093# the resulting binary.
27094hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27095
27096# Set to yes if building a shared library automatically hardcodes DIR into the library
27097# and all subsequent libraries and executables linked against it.
27098hardcode_automatic=$hardcode_automatic_RC
27099
27100# Variables whose values should be saved in libtool wrapper scripts and
27101# restored at relink time.
27102variables_saved_for_relink="$variables_saved_for_relink"
27103
27104# Whether libtool must link a program against all its dependency libraries.
27105link_all_deplibs=$link_all_deplibs_RC
27106
27107# Compile-time system search path for libraries
27108sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27109
27110# Run-time system search path for libraries
27111sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27112
27113# Fix the shell variable \$srcfile for the compiler.
27114fix_srcfile_path="$fix_srcfile_path_RC"
27115
27116# Set to yes if exported symbols are required.
27117always_export_symbols=$always_export_symbols_RC
27118
27119# The commands to list exported symbols.
27120export_symbols_cmds=$lt_export_symbols_cmds_RC
27121
27122# The commands to extract the exported symbol list from a shared archive.
27123extract_expsyms_cmds=$lt_extract_expsyms_cmds
27124
27125# Symbols that should not be listed in the preloaded symbols.
27126exclude_expsyms=$lt_exclude_expsyms_RC
27127
27128# Symbols that must always be exported.
27129include_expsyms=$lt_include_expsyms_RC
27130
27131# ### END LIBTOOL TAG CONFIG: $tagname
27132
27133__EOF__
27134
27135
27136else
27137  # If there is no Makefile yet, we rely on a make rule to execute
27138  # `config.status --recheck' to rerun these tests and create the
27139  # libtool script then.
27140  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27141  if test -f "$ltmain_in"; then
27142    test -f Makefile && make "$ltmain"
27143  fi
27144fi
27145
27146
27147ac_ext=c
27148ac_cpp='$CPP $CPPFLAGS'
27149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27151ac_compiler_gnu=$ac_cv_c_compiler_gnu
27152
27153CC="$lt_save_CC"
27154
27155	;;
27156
27157      *)
27158	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27159echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27160   { (exit 1); exit 1; }; }
27161	;;
27162      esac
27163
27164      # Append the new tag name to the list of available tags.
27165      if test -n "$tagname" ; then
27166      available_tags="$available_tags $tagname"
27167    fi
27168    fi
27169  done
27170  IFS="$lt_save_ifs"
27171
27172  # Now substitute the updated list of available tags.
27173  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27174    mv "${ofile}T" "$ofile"
27175    chmod +x "$ofile"
27176  else
27177    rm -f "${ofile}T"
27178    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27179echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27180   { (exit 1); exit 1; }; }
27181  fi
27182fi
27183
27184
27185
27186# This can be used to rebuild libtool when needed
27187LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27188
27189# Always use our own libtool.
27190LIBTOOL='$(SHELL) $(top_builddir)/mklib'
27191
27192# Prevent multiple expansion
27193
27194
27195
27196
27197
27198
27199
27200
27201
27202
27203
27204
27205
27206
27207
27208
27209
27210
27211
27212
27213
27214if test "$lt_cv_dlopen_self" = "yes" ; then
27215
27216cat >>confdefs.h <<\_ACEOF
27217#define CAN_DLOPEN_SELF 1
27218_ACEOF
27219
27220fi
27221
27222
27223if test "$WITH_LLVMGCCDIR" = "default" ; then
27224  LLVMGCC="llvm-gcc${EXEEXT}"
27225  LLVMGXX="llvm-g++${EXEEXT}"
27226  LLVMGCCCOMMAND="$LLVMGCC"
27227  LLVMGXXCOMMAND="$LLVMGXX"
27228  LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27229
27230  LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27231
27232  # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27233set dummy $LLVMGCC; ac_word=$2
27234{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27236if test "${ac_cv_path_LLVMGCC+set}" = set; then
27237  echo $ECHO_N "(cached) $ECHO_C" >&6
27238else
27239  case $LLVMGCC in
27240  [\\/]* | ?:[\\/]*)
27241  ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27242  ;;
27243  *)
27244  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27245for as_dir in $PATH
27246do
27247  IFS=$as_save_IFS
27248  test -z "$as_dir" && as_dir=.
27249  for ac_exec_ext in '' $ac_executable_extensions; do
27250  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27251    ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27252    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27253    break 2
27254  fi
27255done
27256done
27257IFS=$as_save_IFS
27258
27259  ;;
27260esac
27261fi
27262LLVMGCC=$ac_cv_path_LLVMGCC
27263if test -n "$LLVMGCC"; then
27264  { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27265echo "${ECHO_T}$LLVMGCC" >&6; }
27266else
27267  { echo "$as_me:$LINENO: result: no" >&5
27268echo "${ECHO_T}no" >&6; }
27269fi
27270
27271
27272  # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27273set dummy $LLVMGXX; ac_word=$2
27274{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27276if test "${ac_cv_path_LLVMGXX+set}" = set; then
27277  echo $ECHO_N "(cached) $ECHO_C" >&6
27278else
27279  case $LLVMGXX in
27280  [\\/]* | ?:[\\/]*)
27281  ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27282  ;;
27283  *)
27284  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27285for as_dir in $PATH
27286do
27287  IFS=$as_save_IFS
27288  test -z "$as_dir" && as_dir=.
27289  for ac_exec_ext in '' $ac_executable_extensions; do
27290  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27291    ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27292    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27293    break 2
27294  fi
27295done
27296done
27297IFS=$as_save_IFS
27298
27299  ;;
27300esac
27301fi
27302LLVMGXX=$ac_cv_path_LLVMGXX
27303if test -n "$LLVMGXX"; then
27304  { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27305echo "${ECHO_T}$LLVMGXX" >&6; }
27306else
27307  { echo "$as_me:$LINENO: result: no" >&5
27308echo "${ECHO_T}no" >&6; }
27309fi
27310
27311
27312else
27313  if test -z "$LLVMGCC"; then
27314    LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27315    LLVMGCCCOMMAND="$LLVMGCC"
27316  fi
27317  if test -z "$LLVMGXX"; then
27318    LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27319    LLVMGXXCOMMAND="$LLVMGXX"
27320  fi
27321
27322  LLVMGCC=$LLVMGCC
27323
27324  LLVMGXX=$LLVMGXX
27325
27326  LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27327
27328  LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27329
27330fi
27331
27332
27333{ echo "$as_me:$LINENO: checking tool compatibility" >&5
27334echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27335
27336ICC=no
27337IXX=no
27338case $CC in
27339  icc*|icpc*)
27340    ICC=yes
27341    IXX=yes
27342    ;;
27343   *)
27344    ;;
27345esac
27346
27347if test "$GCC" != "yes" && test "$ICC" != "yes"
27348then
27349  { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27350echo "$as_me: error: gcc|icc required but not found" >&2;}
27351   { (exit 1); exit 1; }; }
27352fi
27353
27354if test "$GXX" != "yes" && test "$IXX" != "yes"
27355then
27356  { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27357echo "$as_me: error: g++|icc required but not found" >&2;}
27358   { (exit 1); exit 1; }; }
27359fi
27360
27361if test "$GCC" = "yes"
27362then
27363  cat >conftest.$ac_ext <<_ACEOF
27364#if !defined(__GNUC__) || __GNUC__ < 3
27365#error Unsupported GCC version
27366#endif
27367
27368_ACEOF
27369rm -f conftest.$ac_objext
27370if { (ac_try="$ac_compile"
27371case "(($ac_try" in
27372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27373  *) ac_try_echo=$ac_try;;
27374esac
27375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27376  (eval "$ac_compile") 2>conftest.er1
27377  ac_status=$?
27378  grep -v '^ *+' conftest.er1 >conftest.err
27379  rm -f conftest.er1
27380  cat conftest.err >&5
27381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27382  (exit $ac_status); } &&
27383	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27384  { (case "(($ac_try" in
27385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27386  *) ac_try_echo=$ac_try;;
27387esac
27388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27389  (eval "$ac_try") 2>&5
27390  ac_status=$?
27391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27392  (exit $ac_status); }; } &&
27393	 { ac_try='test -s conftest.$ac_objext'
27394  { (case "(($ac_try" in
27395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27396  *) ac_try_echo=$ac_try;;
27397esac
27398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27399  (eval "$ac_try") 2>&5
27400  ac_status=$?
27401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402  (exit $ac_status); }; }; then
27403  :
27404else
27405  echo "$as_me: failed program was:" >&5
27406sed 's/^/| /' conftest.$ac_ext >&5
27407
27408	{ { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27409echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27410   { (exit 1); exit 1; }; }
27411fi
27412
27413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27414fi
27415
27416if test -z "$llvm_cv_gnu_make_command"
27417then
27418  { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27419echo "$as_me: error: GNU Make required but not found" >&2;}
27420   { (exit 1); exit 1; }; }
27421fi
27422
27423{ echo "$as_me:$LINENO: result: ok" >&5
27424echo "${ECHO_T}ok" >&6; }
27425
27426
27427
27428{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27429echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27430if test "${ac_cv_lib_m_sin+set}" = set; then
27431  echo $ECHO_N "(cached) $ECHO_C" >&6
27432else
27433  ac_check_lib_save_LIBS=$LIBS
27434LIBS="-lm  $LIBS"
27435cat >conftest.$ac_ext <<_ACEOF
27436/* confdefs.h.  */
27437_ACEOF
27438cat confdefs.h >>conftest.$ac_ext
27439cat >>conftest.$ac_ext <<_ACEOF
27440/* end confdefs.h.  */
27441
27442/* Override any GCC internal prototype to avoid an error.
27443   Use char because int might match the return type of a GCC
27444   builtin and then its argument prototype would still apply.  */
27445#ifdef __cplusplus
27446extern "C"
27447#endif
27448char sin ();
27449int
27450main ()
27451{
27452return sin ();
27453  ;
27454  return 0;
27455}
27456_ACEOF
27457rm -f conftest.$ac_objext conftest$ac_exeext
27458if { (ac_try="$ac_link"
27459case "(($ac_try" in
27460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27461  *) ac_try_echo=$ac_try;;
27462esac
27463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27464  (eval "$ac_link") 2>conftest.er1
27465  ac_status=$?
27466  grep -v '^ *+' conftest.er1 >conftest.err
27467  rm -f conftest.er1
27468  cat conftest.err >&5
27469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470  (exit $ac_status); } &&
27471	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27472  { (case "(($ac_try" in
27473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27474  *) ac_try_echo=$ac_try;;
27475esac
27476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27477  (eval "$ac_try") 2>&5
27478  ac_status=$?
27479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480  (exit $ac_status); }; } &&
27481	 { ac_try='test -s conftest$ac_exeext'
27482  { (case "(($ac_try" in
27483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27484  *) ac_try_echo=$ac_try;;
27485esac
27486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27487  (eval "$ac_try") 2>&5
27488  ac_status=$?
27489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27490  (exit $ac_status); }; }; then
27491  ac_cv_lib_m_sin=yes
27492else
27493  echo "$as_me: failed program was:" >&5
27494sed 's/^/| /' conftest.$ac_ext >&5
27495
27496	ac_cv_lib_m_sin=no
27497fi
27498
27499rm -f core conftest.err conftest.$ac_objext \
27500      conftest$ac_exeext conftest.$ac_ext
27501LIBS=$ac_check_lib_save_LIBS
27502fi
27503{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27504echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27505if test $ac_cv_lib_m_sin = yes; then
27506  cat >>confdefs.h <<_ACEOF
27507#define HAVE_LIBM 1
27508_ACEOF
27509
27510  LIBS="-lm $LIBS"
27511
27512fi
27513
27514if test "$llvm_cv_os_type" = "MingW" ; then
27515
27516{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27517echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27518if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27519  echo $ECHO_N "(cached) $ECHO_C" >&6
27520else
27521  ac_check_lib_save_LIBS=$LIBS
27522LIBS="-limagehlp  $LIBS"
27523cat >conftest.$ac_ext <<_ACEOF
27524/* confdefs.h.  */
27525_ACEOF
27526cat confdefs.h >>conftest.$ac_ext
27527cat >>conftest.$ac_ext <<_ACEOF
27528/* end confdefs.h.  */
27529
27530
27531int
27532main ()
27533{
27534return main ();
27535  ;
27536  return 0;
27537}
27538_ACEOF
27539rm -f conftest.$ac_objext conftest$ac_exeext
27540if { (ac_try="$ac_link"
27541case "(($ac_try" in
27542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27543  *) ac_try_echo=$ac_try;;
27544esac
27545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27546  (eval "$ac_link") 2>conftest.er1
27547  ac_status=$?
27548  grep -v '^ *+' conftest.er1 >conftest.err
27549  rm -f conftest.er1
27550  cat conftest.err >&5
27551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27552  (exit $ac_status); } &&
27553	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27554  { (case "(($ac_try" in
27555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27556  *) ac_try_echo=$ac_try;;
27557esac
27558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27559  (eval "$ac_try") 2>&5
27560  ac_status=$?
27561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27562  (exit $ac_status); }; } &&
27563	 { ac_try='test -s conftest$ac_exeext'
27564  { (case "(($ac_try" in
27565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27566  *) ac_try_echo=$ac_try;;
27567esac
27568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27569  (eval "$ac_try") 2>&5
27570  ac_status=$?
27571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27572  (exit $ac_status); }; }; then
27573  ac_cv_lib_imagehlp_main=yes
27574else
27575  echo "$as_me: failed program was:" >&5
27576sed 's/^/| /' conftest.$ac_ext >&5
27577
27578	ac_cv_lib_imagehlp_main=no
27579fi
27580
27581rm -f core conftest.err conftest.$ac_objext \
27582      conftest$ac_exeext conftest.$ac_ext
27583LIBS=$ac_check_lib_save_LIBS
27584fi
27585{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27586echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27587if test $ac_cv_lib_imagehlp_main = yes; then
27588  cat >>confdefs.h <<_ACEOF
27589#define HAVE_LIBIMAGEHLP 1
27590_ACEOF
27591
27592  LIBS="-limagehlp $LIBS"
27593
27594fi
27595
27596
27597{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27598echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27599if test "${ac_cv_lib_psapi_main+set}" = set; then
27600  echo $ECHO_N "(cached) $ECHO_C" >&6
27601else
27602  ac_check_lib_save_LIBS=$LIBS
27603LIBS="-lpsapi  $LIBS"
27604cat >conftest.$ac_ext <<_ACEOF
27605/* confdefs.h.  */
27606_ACEOF
27607cat confdefs.h >>conftest.$ac_ext
27608cat >>conftest.$ac_ext <<_ACEOF
27609/* end confdefs.h.  */
27610
27611
27612int
27613main ()
27614{
27615return main ();
27616  ;
27617  return 0;
27618}
27619_ACEOF
27620rm -f conftest.$ac_objext conftest$ac_exeext
27621if { (ac_try="$ac_link"
27622case "(($ac_try" in
27623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27624  *) ac_try_echo=$ac_try;;
27625esac
27626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27627  (eval "$ac_link") 2>conftest.er1
27628  ac_status=$?
27629  grep -v '^ *+' conftest.er1 >conftest.err
27630  rm -f conftest.er1
27631  cat conftest.err >&5
27632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27633  (exit $ac_status); } &&
27634	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27635  { (case "(($ac_try" in
27636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27637  *) ac_try_echo=$ac_try;;
27638esac
27639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27640  (eval "$ac_try") 2>&5
27641  ac_status=$?
27642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27643  (exit $ac_status); }; } &&
27644	 { ac_try='test -s conftest$ac_exeext'
27645  { (case "(($ac_try" in
27646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27647  *) ac_try_echo=$ac_try;;
27648esac
27649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27650  (eval "$ac_try") 2>&5
27651  ac_status=$?
27652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27653  (exit $ac_status); }; }; then
27654  ac_cv_lib_psapi_main=yes
27655else
27656  echo "$as_me: failed program was:" >&5
27657sed 's/^/| /' conftest.$ac_ext >&5
27658
27659	ac_cv_lib_psapi_main=no
27660fi
27661
27662rm -f core conftest.err conftest.$ac_objext \
27663      conftest$ac_exeext conftest.$ac_ext
27664LIBS=$ac_check_lib_save_LIBS
27665fi
27666{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27667echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27668if test $ac_cv_lib_psapi_main = yes; then
27669  cat >>confdefs.h <<_ACEOF
27670#define HAVE_LIBPSAPI 1
27671_ACEOF
27672
27673  LIBS="-lpsapi $LIBS"
27674
27675fi
27676
27677fi
27678
27679{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27680echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27681if test "${ac_cv_search_dlopen+set}" = set; then
27682  echo $ECHO_N "(cached) $ECHO_C" >&6
27683else
27684  ac_func_search_save_LIBS=$LIBS
27685cat >conftest.$ac_ext <<_ACEOF
27686/* confdefs.h.  */
27687_ACEOF
27688cat confdefs.h >>conftest.$ac_ext
27689cat >>conftest.$ac_ext <<_ACEOF
27690/* end confdefs.h.  */
27691
27692/* Override any GCC internal prototype to avoid an error.
27693   Use char because int might match the return type of a GCC
27694   builtin and then its argument prototype would still apply.  */
27695#ifdef __cplusplus
27696extern "C"
27697#endif
27698char dlopen ();
27699int
27700main ()
27701{
27702return dlopen ();
27703  ;
27704  return 0;
27705}
27706_ACEOF
27707for ac_lib in '' dl; do
27708  if test -z "$ac_lib"; then
27709    ac_res="none required"
27710  else
27711    ac_res=-l$ac_lib
27712    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27713  fi
27714  rm -f conftest.$ac_objext conftest$ac_exeext
27715if { (ac_try="$ac_link"
27716case "(($ac_try" in
27717  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27718  *) ac_try_echo=$ac_try;;
27719esac
27720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27721  (eval "$ac_link") 2>conftest.er1
27722  ac_status=$?
27723  grep -v '^ *+' conftest.er1 >conftest.err
27724  rm -f conftest.er1
27725  cat conftest.err >&5
27726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27727  (exit $ac_status); } &&
27728	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27729  { (case "(($ac_try" in
27730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27731  *) ac_try_echo=$ac_try;;
27732esac
27733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27734  (eval "$ac_try") 2>&5
27735  ac_status=$?
27736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27737  (exit $ac_status); }; } &&
27738	 { ac_try='test -s conftest$ac_exeext'
27739  { (case "(($ac_try" in
27740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27741  *) ac_try_echo=$ac_try;;
27742esac
27743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27744  (eval "$ac_try") 2>&5
27745  ac_status=$?
27746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27747  (exit $ac_status); }; }; then
27748  ac_cv_search_dlopen=$ac_res
27749else
27750  echo "$as_me: failed program was:" >&5
27751sed 's/^/| /' conftest.$ac_ext >&5
27752
27753
27754fi
27755
27756rm -f core conftest.err conftest.$ac_objext \
27757      conftest$ac_exeext
27758  if test "${ac_cv_search_dlopen+set}" = set; then
27759  break
27760fi
27761done
27762if test "${ac_cv_search_dlopen+set}" = set; then
27763  :
27764else
27765  ac_cv_search_dlopen=no
27766fi
27767rm conftest.$ac_ext
27768LIBS=$ac_func_search_save_LIBS
27769fi
27770{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27771echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27772ac_res=$ac_cv_search_dlopen
27773if test "$ac_res" != no; then
27774  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27775
27776cat >>confdefs.h <<\_ACEOF
27777#define HAVE_DLOPEN 1
27778_ACEOF
27779
27780else
27781  { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27782echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27783fi
27784
27785
27786if test "$llvm_cv_enable_libffi" = "yes" ; then
27787  { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27788echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27789if test "${ac_cv_search_ffi_call+set}" = set; then
27790  echo $ECHO_N "(cached) $ECHO_C" >&6
27791else
27792  ac_func_search_save_LIBS=$LIBS
27793cat >conftest.$ac_ext <<_ACEOF
27794/* confdefs.h.  */
27795_ACEOF
27796cat confdefs.h >>conftest.$ac_ext
27797cat >>conftest.$ac_ext <<_ACEOF
27798/* end confdefs.h.  */
27799
27800/* Override any GCC internal prototype to avoid an error.
27801   Use char because int might match the return type of a GCC
27802   builtin and then its argument prototype would still apply.  */
27803#ifdef __cplusplus
27804extern "C"
27805#endif
27806char ffi_call ();
27807int
27808main ()
27809{
27810return ffi_call ();
27811  ;
27812  return 0;
27813}
27814_ACEOF
27815for ac_lib in '' ffi; do
27816  if test -z "$ac_lib"; then
27817    ac_res="none required"
27818  else
27819    ac_res=-l$ac_lib
27820    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27821  fi
27822  rm -f conftest.$ac_objext conftest$ac_exeext
27823if { (ac_try="$ac_link"
27824case "(($ac_try" in
27825  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27826  *) ac_try_echo=$ac_try;;
27827esac
27828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27829  (eval "$ac_link") 2>conftest.er1
27830  ac_status=$?
27831  grep -v '^ *+' conftest.er1 >conftest.err
27832  rm -f conftest.er1
27833  cat conftest.err >&5
27834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27835  (exit $ac_status); } &&
27836	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27837  { (case "(($ac_try" in
27838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27839  *) ac_try_echo=$ac_try;;
27840esac
27841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27842  (eval "$ac_try") 2>&5
27843  ac_status=$?
27844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27845  (exit $ac_status); }; } &&
27846	 { ac_try='test -s conftest$ac_exeext'
27847  { (case "(($ac_try" in
27848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27849  *) ac_try_echo=$ac_try;;
27850esac
27851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27852  (eval "$ac_try") 2>&5
27853  ac_status=$?
27854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27855  (exit $ac_status); }; }; then
27856  ac_cv_search_ffi_call=$ac_res
27857else
27858  echo "$as_me: failed program was:" >&5
27859sed 's/^/| /' conftest.$ac_ext >&5
27860
27861
27862fi
27863
27864rm -f core conftest.err conftest.$ac_objext \
27865      conftest$ac_exeext
27866  if test "${ac_cv_search_ffi_call+set}" = set; then
27867  break
27868fi
27869done
27870if test "${ac_cv_search_ffi_call+set}" = set; then
27871  :
27872else
27873  ac_cv_search_ffi_call=no
27874fi
27875rm conftest.$ac_ext
27876LIBS=$ac_func_search_save_LIBS
27877fi
27878{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27879echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27880ac_res=$ac_cv_search_ffi_call
27881if test "$ac_res" != no; then
27882  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27883
27884cat >>confdefs.h <<\_ACEOF
27885#define HAVE_FFI_CALL 1
27886_ACEOF
27887
27888else
27889  { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27890echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27891fi
27892
27893fi
27894
27895{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27896echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27897if test "${ac_cv_search_mallinfo+set}" = set; then
27898  echo $ECHO_N "(cached) $ECHO_C" >&6
27899else
27900  ac_func_search_save_LIBS=$LIBS
27901cat >conftest.$ac_ext <<_ACEOF
27902/* confdefs.h.  */
27903_ACEOF
27904cat confdefs.h >>conftest.$ac_ext
27905cat >>conftest.$ac_ext <<_ACEOF
27906/* end confdefs.h.  */
27907
27908/* Override any GCC internal prototype to avoid an error.
27909   Use char because int might match the return type of a GCC
27910   builtin and then its argument prototype would still apply.  */
27911#ifdef __cplusplus
27912extern "C"
27913#endif
27914char mallinfo ();
27915int
27916main ()
27917{
27918return mallinfo ();
27919  ;
27920  return 0;
27921}
27922_ACEOF
27923for ac_lib in '' malloc; do
27924  if test -z "$ac_lib"; then
27925    ac_res="none required"
27926  else
27927    ac_res=-l$ac_lib
27928    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27929  fi
27930  rm -f conftest.$ac_objext conftest$ac_exeext
27931if { (ac_try="$ac_link"
27932case "(($ac_try" in
27933  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27934  *) ac_try_echo=$ac_try;;
27935esac
27936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27937  (eval "$ac_link") 2>conftest.er1
27938  ac_status=$?
27939  grep -v '^ *+' conftest.er1 >conftest.err
27940  rm -f conftest.er1
27941  cat conftest.err >&5
27942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27943  (exit $ac_status); } &&
27944	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27945  { (case "(($ac_try" in
27946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27947  *) ac_try_echo=$ac_try;;
27948esac
27949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27950  (eval "$ac_try") 2>&5
27951  ac_status=$?
27952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953  (exit $ac_status); }; } &&
27954	 { ac_try='test -s conftest$ac_exeext'
27955  { (case "(($ac_try" in
27956  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27957  *) ac_try_echo=$ac_try;;
27958esac
27959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27960  (eval "$ac_try") 2>&5
27961  ac_status=$?
27962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963  (exit $ac_status); }; }; then
27964  ac_cv_search_mallinfo=$ac_res
27965else
27966  echo "$as_me: failed program was:" >&5
27967sed 's/^/| /' conftest.$ac_ext >&5
27968
27969
27970fi
27971
27972rm -f core conftest.err conftest.$ac_objext \
27973      conftest$ac_exeext
27974  if test "${ac_cv_search_mallinfo+set}" = set; then
27975  break
27976fi
27977done
27978if test "${ac_cv_search_mallinfo+set}" = set; then
27979  :
27980else
27981  ac_cv_search_mallinfo=no
27982fi
27983rm conftest.$ac_ext
27984LIBS=$ac_func_search_save_LIBS
27985fi
27986{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27987echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27988ac_res=$ac_cv_search_mallinfo
27989if test "$ac_res" != no; then
27990  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27991
27992cat >>confdefs.h <<\_ACEOF
27993#define HAVE_MALLINFO 1
27994_ACEOF
27995
27996fi
27997
27998
27999if test "$ENABLE_THREADS" -eq 1 ; then
28000
28001{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
28002echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
28003if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
28004  echo $ECHO_N "(cached) $ECHO_C" >&6
28005else
28006  ac_check_lib_save_LIBS=$LIBS
28007LIBS="-lpthread  $LIBS"
28008cat >conftest.$ac_ext <<_ACEOF
28009/* confdefs.h.  */
28010_ACEOF
28011cat confdefs.h >>conftest.$ac_ext
28012cat >>conftest.$ac_ext <<_ACEOF
28013/* end confdefs.h.  */
28014
28015/* Override any GCC internal prototype to avoid an error.
28016   Use char because int might match the return type of a GCC
28017   builtin and then its argument prototype would still apply.  */
28018#ifdef __cplusplus
28019extern "C"
28020#endif
28021char pthread_mutex_init ();
28022int
28023main ()
28024{
28025return pthread_mutex_init ();
28026  ;
28027  return 0;
28028}
28029_ACEOF
28030rm -f conftest.$ac_objext conftest$ac_exeext
28031if { (ac_try="$ac_link"
28032case "(($ac_try" in
28033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28034  *) ac_try_echo=$ac_try;;
28035esac
28036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28037  (eval "$ac_link") 2>conftest.er1
28038  ac_status=$?
28039  grep -v '^ *+' conftest.er1 >conftest.err
28040  rm -f conftest.er1
28041  cat conftest.err >&5
28042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28043  (exit $ac_status); } &&
28044	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28045  { (case "(($ac_try" in
28046  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28047  *) ac_try_echo=$ac_try;;
28048esac
28049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28050  (eval "$ac_try") 2>&5
28051  ac_status=$?
28052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28053  (exit $ac_status); }; } &&
28054	 { ac_try='test -s conftest$ac_exeext'
28055  { (case "(($ac_try" in
28056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28057  *) ac_try_echo=$ac_try;;
28058esac
28059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28060  (eval "$ac_try") 2>&5
28061  ac_status=$?
28062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063  (exit $ac_status); }; }; then
28064  ac_cv_lib_pthread_pthread_mutex_init=yes
28065else
28066  echo "$as_me: failed program was:" >&5
28067sed 's/^/| /' conftest.$ac_ext >&5
28068
28069	ac_cv_lib_pthread_pthread_mutex_init=no
28070fi
28071
28072rm -f core conftest.err conftest.$ac_objext \
28073      conftest$ac_exeext conftest.$ac_ext
28074LIBS=$ac_check_lib_save_LIBS
28075fi
28076{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28077echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28078if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28079  cat >>confdefs.h <<_ACEOF
28080#define HAVE_LIBPTHREAD 1
28081_ACEOF
28082
28083  LIBS="-lpthread $LIBS"
28084
28085fi
28086
28087  { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28088echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
28089if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28090  echo $ECHO_N "(cached) $ECHO_C" >&6
28091else
28092  ac_func_search_save_LIBS=$LIBS
28093cat >conftest.$ac_ext <<_ACEOF
28094/* confdefs.h.  */
28095_ACEOF
28096cat confdefs.h >>conftest.$ac_ext
28097cat >>conftest.$ac_ext <<_ACEOF
28098/* end confdefs.h.  */
28099
28100/* Override any GCC internal prototype to avoid an error.
28101   Use char because int might match the return type of a GCC
28102   builtin and then its argument prototype would still apply.  */
28103#ifdef __cplusplus
28104extern "C"
28105#endif
28106char pthread_mutex_lock ();
28107int
28108main ()
28109{
28110return pthread_mutex_lock ();
28111  ;
28112  return 0;
28113}
28114_ACEOF
28115for ac_lib in '' pthread; do
28116  if test -z "$ac_lib"; then
28117    ac_res="none required"
28118  else
28119    ac_res=-l$ac_lib
28120    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28121  fi
28122  rm -f conftest.$ac_objext conftest$ac_exeext
28123if { (ac_try="$ac_link"
28124case "(($ac_try" in
28125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28126  *) ac_try_echo=$ac_try;;
28127esac
28128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28129  (eval "$ac_link") 2>conftest.er1
28130  ac_status=$?
28131  grep -v '^ *+' conftest.er1 >conftest.err
28132  rm -f conftest.er1
28133  cat conftest.err >&5
28134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28135  (exit $ac_status); } &&
28136	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28137  { (case "(($ac_try" in
28138  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28139  *) ac_try_echo=$ac_try;;
28140esac
28141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28142  (eval "$ac_try") 2>&5
28143  ac_status=$?
28144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28145  (exit $ac_status); }; } &&
28146	 { ac_try='test -s conftest$ac_exeext'
28147  { (case "(($ac_try" in
28148  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28149  *) ac_try_echo=$ac_try;;
28150esac
28151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28152  (eval "$ac_try") 2>&5
28153  ac_status=$?
28154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28155  (exit $ac_status); }; }; then
28156  ac_cv_search_pthread_mutex_lock=$ac_res
28157else
28158  echo "$as_me: failed program was:" >&5
28159sed 's/^/| /' conftest.$ac_ext >&5
28160
28161
28162fi
28163
28164rm -f core conftest.err conftest.$ac_objext \
28165      conftest$ac_exeext
28166  if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28167  break
28168fi
28169done
28170if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28171  :
28172else
28173  ac_cv_search_pthread_mutex_lock=no
28174fi
28175rm conftest.$ac_ext
28176LIBS=$ac_func_search_save_LIBS
28177fi
28178{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28179echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28180ac_res=$ac_cv_search_pthread_mutex_lock
28181if test "$ac_res" != no; then
28182  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28183
28184cat >>confdefs.h <<\_ACEOF
28185#define HAVE_PTHREAD_MUTEX_LOCK 1
28186_ACEOF
28187
28188fi
28189
28190  { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28191echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28192if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28193  echo $ECHO_N "(cached) $ECHO_C" >&6
28194else
28195  ac_func_search_save_LIBS=$LIBS
28196cat >conftest.$ac_ext <<_ACEOF
28197/* confdefs.h.  */
28198_ACEOF
28199cat confdefs.h >>conftest.$ac_ext
28200cat >>conftest.$ac_ext <<_ACEOF
28201/* end confdefs.h.  */
28202
28203/* Override any GCC internal prototype to avoid an error.
28204   Use char because int might match the return type of a GCC
28205   builtin and then its argument prototype would still apply.  */
28206#ifdef __cplusplus
28207extern "C"
28208#endif
28209char pthread_rwlock_init ();
28210int
28211main ()
28212{
28213return pthread_rwlock_init ();
28214  ;
28215  return 0;
28216}
28217_ACEOF
28218for ac_lib in '' pthread; do
28219  if test -z "$ac_lib"; then
28220    ac_res="none required"
28221  else
28222    ac_res=-l$ac_lib
28223    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28224  fi
28225  rm -f conftest.$ac_objext conftest$ac_exeext
28226if { (ac_try="$ac_link"
28227case "(($ac_try" in
28228  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28229  *) ac_try_echo=$ac_try;;
28230esac
28231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28232  (eval "$ac_link") 2>conftest.er1
28233  ac_status=$?
28234  grep -v '^ *+' conftest.er1 >conftest.err
28235  rm -f conftest.er1
28236  cat conftest.err >&5
28237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28238  (exit $ac_status); } &&
28239	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28240  { (case "(($ac_try" in
28241  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28242  *) ac_try_echo=$ac_try;;
28243esac
28244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28245  (eval "$ac_try") 2>&5
28246  ac_status=$?
28247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28248  (exit $ac_status); }; } &&
28249	 { ac_try='test -s conftest$ac_exeext'
28250  { (case "(($ac_try" in
28251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28252  *) ac_try_echo=$ac_try;;
28253esac
28254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28255  (eval "$ac_try") 2>&5
28256  ac_status=$?
28257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28258  (exit $ac_status); }; }; then
28259  ac_cv_search_pthread_rwlock_init=$ac_res
28260else
28261  echo "$as_me: failed program was:" >&5
28262sed 's/^/| /' conftest.$ac_ext >&5
28263
28264
28265fi
28266
28267rm -f core conftest.err conftest.$ac_objext \
28268      conftest$ac_exeext
28269  if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28270  break
28271fi
28272done
28273if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28274  :
28275else
28276  ac_cv_search_pthread_rwlock_init=no
28277fi
28278rm conftest.$ac_ext
28279LIBS=$ac_func_search_save_LIBS
28280fi
28281{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28282echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28283ac_res=$ac_cv_search_pthread_rwlock_init
28284if test "$ac_res" != no; then
28285  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28286
28287cat >>confdefs.h <<\_ACEOF
28288#define HAVE_PTHREAD_RWLOCK_INIT 1
28289_ACEOF
28290
28291fi
28292
28293  { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28294echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28295if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28296  echo $ECHO_N "(cached) $ECHO_C" >&6
28297else
28298  ac_func_search_save_LIBS=$LIBS
28299cat >conftest.$ac_ext <<_ACEOF
28300/* confdefs.h.  */
28301_ACEOF
28302cat confdefs.h >>conftest.$ac_ext
28303cat >>conftest.$ac_ext <<_ACEOF
28304/* end confdefs.h.  */
28305
28306/* Override any GCC internal prototype to avoid an error.
28307   Use char because int might match the return type of a GCC
28308   builtin and then its argument prototype would still apply.  */
28309#ifdef __cplusplus
28310extern "C"
28311#endif
28312char pthread_getspecific ();
28313int
28314main ()
28315{
28316return pthread_getspecific ();
28317  ;
28318  return 0;
28319}
28320_ACEOF
28321for ac_lib in '' pthread; do
28322  if test -z "$ac_lib"; then
28323    ac_res="none required"
28324  else
28325    ac_res=-l$ac_lib
28326    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28327  fi
28328  rm -f conftest.$ac_objext conftest$ac_exeext
28329if { (ac_try="$ac_link"
28330case "(($ac_try" in
28331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28332  *) ac_try_echo=$ac_try;;
28333esac
28334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28335  (eval "$ac_link") 2>conftest.er1
28336  ac_status=$?
28337  grep -v '^ *+' conftest.er1 >conftest.err
28338  rm -f conftest.er1
28339  cat conftest.err >&5
28340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28341  (exit $ac_status); } &&
28342	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28343  { (case "(($ac_try" in
28344  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28345  *) ac_try_echo=$ac_try;;
28346esac
28347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28348  (eval "$ac_try") 2>&5
28349  ac_status=$?
28350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28351  (exit $ac_status); }; } &&
28352	 { ac_try='test -s conftest$ac_exeext'
28353  { (case "(($ac_try" in
28354  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28355  *) ac_try_echo=$ac_try;;
28356esac
28357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28358  (eval "$ac_try") 2>&5
28359  ac_status=$?
28360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28361  (exit $ac_status); }; }; then
28362  ac_cv_search_pthread_getspecific=$ac_res
28363else
28364  echo "$as_me: failed program was:" >&5
28365sed 's/^/| /' conftest.$ac_ext >&5
28366
28367
28368fi
28369
28370rm -f core conftest.err conftest.$ac_objext \
28371      conftest$ac_exeext
28372  if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28373  break
28374fi
28375done
28376if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28377  :
28378else
28379  ac_cv_search_pthread_getspecific=no
28380fi
28381rm conftest.$ac_ext
28382LIBS=$ac_func_search_save_LIBS
28383fi
28384{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28385echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28386ac_res=$ac_cv_search_pthread_getspecific
28387if test "$ac_res" != no; then
28388  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28389
28390cat >>confdefs.h <<\_ACEOF
28391#define HAVE_PTHREAD_GETSPECIFIC 1
28392_ACEOF
28393
28394fi
28395
28396fi
28397
28398
28399# Check whether --with-udis86 was given.
28400if test "${with_udis86+set}" = set; then
28401  withval=$with_udis86;
28402      USE_UDIS86=1
28403
28404      case "$withval" in
28405        /usr/lib|yes) ;;
28406        *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28407      esac
28408
28409{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28410echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28411if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28412  echo $ECHO_N "(cached) $ECHO_C" >&6
28413else
28414  ac_check_lib_save_LIBS=$LIBS
28415LIBS="-ludis86  $LIBS"
28416cat >conftest.$ac_ext <<_ACEOF
28417/* confdefs.h.  */
28418_ACEOF
28419cat confdefs.h >>conftest.$ac_ext
28420cat >>conftest.$ac_ext <<_ACEOF
28421/* end confdefs.h.  */
28422
28423/* Override any GCC internal prototype to avoid an error.
28424   Use char because int might match the return type of a GCC
28425   builtin and then its argument prototype would still apply.  */
28426#ifdef __cplusplus
28427extern "C"
28428#endif
28429char ud_init ();
28430int
28431main ()
28432{
28433return ud_init ();
28434  ;
28435  return 0;
28436}
28437_ACEOF
28438rm -f conftest.$ac_objext conftest$ac_exeext
28439if { (ac_try="$ac_link"
28440case "(($ac_try" in
28441  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28442  *) ac_try_echo=$ac_try;;
28443esac
28444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28445  (eval "$ac_link") 2>conftest.er1
28446  ac_status=$?
28447  grep -v '^ *+' conftest.er1 >conftest.err
28448  rm -f conftest.er1
28449  cat conftest.err >&5
28450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28451  (exit $ac_status); } &&
28452	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28453  { (case "(($ac_try" in
28454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28455  *) ac_try_echo=$ac_try;;
28456esac
28457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28458  (eval "$ac_try") 2>&5
28459  ac_status=$?
28460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28461  (exit $ac_status); }; } &&
28462	 { ac_try='test -s conftest$ac_exeext'
28463  { (case "(($ac_try" in
28464  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28465  *) ac_try_echo=$ac_try;;
28466esac
28467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28468  (eval "$ac_try") 2>&5
28469  ac_status=$?
28470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28471  (exit $ac_status); }; }; then
28472  ac_cv_lib_udis86_ud_init=yes
28473else
28474  echo "$as_me: failed program was:" >&5
28475sed 's/^/| /' conftest.$ac_ext >&5
28476
28477	ac_cv_lib_udis86_ud_init=no
28478fi
28479
28480rm -f core conftest.err conftest.$ac_objext \
28481      conftest$ac_exeext conftest.$ac_ext
28482LIBS=$ac_check_lib_save_LIBS
28483fi
28484{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28485echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28486if test $ac_cv_lib_udis86_ud_init = yes; then
28487  cat >>confdefs.h <<_ACEOF
28488#define HAVE_LIBUDIS86 1
28489_ACEOF
28490
28491  LIBS="-ludis86 $LIBS"
28492
28493else
28494
28495        echo "Error! You need to have libudis86 around."
28496        exit -1
28497
28498fi
28499
28500
28501else
28502  USE_UDIS86=0
28503
28504fi
28505
28506
28507cat >>confdefs.h <<_ACEOF
28508#define USE_UDIS86 $USE_UDIS86
28509_ACEOF
28510
28511
28512
28513# Check whether --with-oprofile was given.
28514if test "${with_oprofile+set}" = set; then
28515  withval=$with_oprofile;
28516      USE_OPROFILE=1
28517
28518      case "$withval" in
28519        /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
28520        *) llvm_cv_oppath="${withval}/lib/oprofile"
28521           CPPFLAGS="-I${withval}/include";;
28522      esac
28523      LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28524      { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28525echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28526if test "${ac_cv_search_op_open_agent+set}" = set; then
28527  echo $ECHO_N "(cached) $ECHO_C" >&6
28528else
28529  ac_func_search_save_LIBS=$LIBS
28530cat >conftest.$ac_ext <<_ACEOF
28531/* confdefs.h.  */
28532_ACEOF
28533cat confdefs.h >>conftest.$ac_ext
28534cat >>conftest.$ac_ext <<_ACEOF
28535/* end confdefs.h.  */
28536
28537/* Override any GCC internal prototype to avoid an error.
28538   Use char because int might match the return type of a GCC
28539   builtin and then its argument prototype would still apply.  */
28540#ifdef __cplusplus
28541extern "C"
28542#endif
28543char op_open_agent ();
28544int
28545main ()
28546{
28547return op_open_agent ();
28548  ;
28549  return 0;
28550}
28551_ACEOF
28552for ac_lib in '' opagent; do
28553  if test -z "$ac_lib"; then
28554    ac_res="none required"
28555  else
28556    ac_res=-l$ac_lib
28557    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28558  fi
28559  rm -f conftest.$ac_objext conftest$ac_exeext
28560if { (ac_try="$ac_link"
28561case "(($ac_try" in
28562  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28563  *) ac_try_echo=$ac_try;;
28564esac
28565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28566  (eval "$ac_link") 2>conftest.er1
28567  ac_status=$?
28568  grep -v '^ *+' conftest.er1 >conftest.err
28569  rm -f conftest.er1
28570  cat conftest.err >&5
28571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572  (exit $ac_status); } &&
28573	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28574  { (case "(($ac_try" in
28575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28576  *) ac_try_echo=$ac_try;;
28577esac
28578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28579  (eval "$ac_try") 2>&5
28580  ac_status=$?
28581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28582  (exit $ac_status); }; } &&
28583	 { ac_try='test -s conftest$ac_exeext'
28584  { (case "(($ac_try" in
28585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28586  *) ac_try_echo=$ac_try;;
28587esac
28588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28589  (eval "$ac_try") 2>&5
28590  ac_status=$?
28591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28592  (exit $ac_status); }; }; then
28593  ac_cv_search_op_open_agent=$ac_res
28594else
28595  echo "$as_me: failed program was:" >&5
28596sed 's/^/| /' conftest.$ac_ext >&5
28597
28598
28599fi
28600
28601rm -f core conftest.err conftest.$ac_objext \
28602      conftest$ac_exeext
28603  if test "${ac_cv_search_op_open_agent+set}" = set; then
28604  break
28605fi
28606done
28607if test "${ac_cv_search_op_open_agent+set}" = set; then
28608  :
28609else
28610  ac_cv_search_op_open_agent=no
28611fi
28612rm conftest.$ac_ext
28613LIBS=$ac_func_search_save_LIBS
28614fi
28615{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28616echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28617ac_res=$ac_cv_search_op_open_agent
28618if test "$ac_res" != no; then
28619  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28620
28621else
28622
28623        echo "Error! You need to have libopagent around."
28624        exit -1
28625
28626fi
28627
28628      if test "${ac_cv_header_opagent_h+set}" = set; then
28629  { echo "$as_me:$LINENO: checking for opagent.h" >&5
28630echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28631if test "${ac_cv_header_opagent_h+set}" = set; then
28632  echo $ECHO_N "(cached) $ECHO_C" >&6
28633fi
28634{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28635echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28636else
28637  # Is the header compilable?
28638{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
28639echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28640cat >conftest.$ac_ext <<_ACEOF
28641/* confdefs.h.  */
28642_ACEOF
28643cat confdefs.h >>conftest.$ac_ext
28644cat >>conftest.$ac_ext <<_ACEOF
28645/* end confdefs.h.  */
28646$ac_includes_default
28647#include <opagent.h>
28648_ACEOF
28649rm -f conftest.$ac_objext
28650if { (ac_try="$ac_compile"
28651case "(($ac_try" in
28652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28653  *) ac_try_echo=$ac_try;;
28654esac
28655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28656  (eval "$ac_compile") 2>conftest.er1
28657  ac_status=$?
28658  grep -v '^ *+' conftest.er1 >conftest.err
28659  rm -f conftest.er1
28660  cat conftest.err >&5
28661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28662  (exit $ac_status); } &&
28663	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28664  { (case "(($ac_try" in
28665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28666  *) ac_try_echo=$ac_try;;
28667esac
28668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28669  (eval "$ac_try") 2>&5
28670  ac_status=$?
28671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28672  (exit $ac_status); }; } &&
28673	 { ac_try='test -s conftest.$ac_objext'
28674  { (case "(($ac_try" in
28675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28676  *) ac_try_echo=$ac_try;;
28677esac
28678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28679  (eval "$ac_try") 2>&5
28680  ac_status=$?
28681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28682  (exit $ac_status); }; }; then
28683  ac_header_compiler=yes
28684else
28685  echo "$as_me: failed program was:" >&5
28686sed 's/^/| /' conftest.$ac_ext >&5
28687
28688	ac_header_compiler=no
28689fi
28690
28691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28692{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28693echo "${ECHO_T}$ac_header_compiler" >&6; }
28694
28695# Is the header present?
28696{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
28697echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28698cat >conftest.$ac_ext <<_ACEOF
28699/* confdefs.h.  */
28700_ACEOF
28701cat confdefs.h >>conftest.$ac_ext
28702cat >>conftest.$ac_ext <<_ACEOF
28703/* end confdefs.h.  */
28704#include <opagent.h>
28705_ACEOF
28706if { (ac_try="$ac_cpp conftest.$ac_ext"
28707case "(($ac_try" in
28708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28709  *) ac_try_echo=$ac_try;;
28710esac
28711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28712  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28713  ac_status=$?
28714  grep -v '^ *+' conftest.er1 >conftest.err
28715  rm -f conftest.er1
28716  cat conftest.err >&5
28717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28718  (exit $ac_status); } >/dev/null; then
28719  if test -s conftest.err; then
28720    ac_cpp_err=$ac_c_preproc_warn_flag
28721    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28722  else
28723    ac_cpp_err=
28724  fi
28725else
28726  ac_cpp_err=yes
28727fi
28728if test -z "$ac_cpp_err"; then
28729  ac_header_preproc=yes
28730else
28731  echo "$as_me: failed program was:" >&5
28732sed 's/^/| /' conftest.$ac_ext >&5
28733
28734  ac_header_preproc=no
28735fi
28736
28737rm -f conftest.err conftest.$ac_ext
28738{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28739echo "${ECHO_T}$ac_header_preproc" >&6; }
28740
28741# So?  What about this header?
28742case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28743  yes:no: )
28744    { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28745echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28746    { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28747echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28748    ac_header_preproc=yes
28749    ;;
28750  no:yes:* )
28751    { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28752echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28753    { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
28754echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
28755    { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28756echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28757    { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
28758echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28759    { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28760echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28761    { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28762echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28763    ( cat <<\_ASBOX
28764## ----------------------------------- ##
28765## Report this to llvmbugs@cs.uiuc.edu ##
28766## ----------------------------------- ##
28767_ASBOX
28768     ) | sed "s/^/$as_me: WARNING:     /" >&2
28769    ;;
28770esac
28771{ echo "$as_me:$LINENO: checking for opagent.h" >&5
28772echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28773if test "${ac_cv_header_opagent_h+set}" = set; then
28774  echo $ECHO_N "(cached) $ECHO_C" >&6
28775else
28776  ac_cv_header_opagent_h=$ac_header_preproc
28777fi
28778{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28779echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28780
28781fi
28782if test $ac_cv_header_opagent_h = yes; then
28783  :
28784else
28785
28786        echo "Error! You need to have opagent.h around."
28787        exit -1
28788
28789fi
28790
28791
28792
28793else
28794
28795      llvm_cv_old_LIBS="$LIBS"
28796      LIBS="$LIBS -L/usr/lib/oprofile -Wl,-rpath,/usr/lib/oprofile"
28797            { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28798echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28799if test "${ac_cv_search_op_open_agent+set}" = set; then
28800  echo $ECHO_N "(cached) $ECHO_C" >&6
28801else
28802  ac_func_search_save_LIBS=$LIBS
28803cat >conftest.$ac_ext <<_ACEOF
28804/* confdefs.h.  */
28805_ACEOF
28806cat confdefs.h >>conftest.$ac_ext
28807cat >>conftest.$ac_ext <<_ACEOF
28808/* end confdefs.h.  */
28809
28810/* Override any GCC internal prototype to avoid an error.
28811   Use char because int might match the return type of a GCC
28812   builtin and then its argument prototype would still apply.  */
28813#ifdef __cplusplus
28814extern "C"
28815#endif
28816char op_open_agent ();
28817int
28818main ()
28819{
28820return op_open_agent ();
28821  ;
28822  return 0;
28823}
28824_ACEOF
28825for ac_lib in '' opagent; do
28826  if test -z "$ac_lib"; then
28827    ac_res="none required"
28828  else
28829    ac_res=-l$ac_lib
28830    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28831  fi
28832  rm -f conftest.$ac_objext conftest$ac_exeext
28833if { (ac_try="$ac_link"
28834case "(($ac_try" in
28835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28836  *) ac_try_echo=$ac_try;;
28837esac
28838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28839  (eval "$ac_link") 2>conftest.er1
28840  ac_status=$?
28841  grep -v '^ *+' conftest.er1 >conftest.err
28842  rm -f conftest.er1
28843  cat conftest.err >&5
28844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28845  (exit $ac_status); } &&
28846	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28847  { (case "(($ac_try" in
28848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28849  *) ac_try_echo=$ac_try;;
28850esac
28851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28852  (eval "$ac_try") 2>&5
28853  ac_status=$?
28854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28855  (exit $ac_status); }; } &&
28856	 { ac_try='test -s conftest$ac_exeext'
28857  { (case "(($ac_try" in
28858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28859  *) ac_try_echo=$ac_try;;
28860esac
28861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28862  (eval "$ac_try") 2>&5
28863  ac_status=$?
28864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28865  (exit $ac_status); }; }; then
28866  ac_cv_search_op_open_agent=$ac_res
28867else
28868  echo "$as_me: failed program was:" >&5
28869sed 's/^/| /' conftest.$ac_ext >&5
28870
28871
28872fi
28873
28874rm -f core conftest.err conftest.$ac_objext \
28875      conftest$ac_exeext
28876  if test "${ac_cv_search_op_open_agent+set}" = set; then
28877  break
28878fi
28879done
28880if test "${ac_cv_search_op_open_agent+set}" = set; then
28881  :
28882else
28883  ac_cv_search_op_open_agent=no
28884fi
28885rm conftest.$ac_ext
28886LIBS=$ac_func_search_save_LIBS
28887fi
28888{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28889echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28890ac_res=$ac_cv_search_op_open_agent
28891if test "$ac_res" != no; then
28892  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28893  USE_OPROFILE=1
28894
28895else
28896  LIBS="$llvm_cv_old_LIBS"
28897                      USE_OPROFILE=0
28898
28899fi
28900
28901      if test "${ac_cv_header_opagent_h+set}" = set; then
28902  { echo "$as_me:$LINENO: checking for opagent.h" >&5
28903echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28904if test "${ac_cv_header_opagent_h+set}" = set; then
28905  echo $ECHO_N "(cached) $ECHO_C" >&6
28906fi
28907{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28908echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28909else
28910  # Is the header compilable?
28911{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
28912echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28913cat >conftest.$ac_ext <<_ACEOF
28914/* confdefs.h.  */
28915_ACEOF
28916cat confdefs.h >>conftest.$ac_ext
28917cat >>conftest.$ac_ext <<_ACEOF
28918/* end confdefs.h.  */
28919$ac_includes_default
28920#include <opagent.h>
28921_ACEOF
28922rm -f conftest.$ac_objext
28923if { (ac_try="$ac_compile"
28924case "(($ac_try" in
28925  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28926  *) ac_try_echo=$ac_try;;
28927esac
28928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28929  (eval "$ac_compile") 2>conftest.er1
28930  ac_status=$?
28931  grep -v '^ *+' conftest.er1 >conftest.err
28932  rm -f conftest.er1
28933  cat conftest.err >&5
28934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28935  (exit $ac_status); } &&
28936	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28937  { (case "(($ac_try" in
28938  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28939  *) ac_try_echo=$ac_try;;
28940esac
28941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28942  (eval "$ac_try") 2>&5
28943  ac_status=$?
28944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28945  (exit $ac_status); }; } &&
28946	 { ac_try='test -s conftest.$ac_objext'
28947  { (case "(($ac_try" in
28948  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28949  *) ac_try_echo=$ac_try;;
28950esac
28951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28952  (eval "$ac_try") 2>&5
28953  ac_status=$?
28954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28955  (exit $ac_status); }; }; then
28956  ac_header_compiler=yes
28957else
28958  echo "$as_me: failed program was:" >&5
28959sed 's/^/| /' conftest.$ac_ext >&5
28960
28961	ac_header_compiler=no
28962fi
28963
28964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28965{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28966echo "${ECHO_T}$ac_header_compiler" >&6; }
28967
28968# Is the header present?
28969{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
28970echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28971cat >conftest.$ac_ext <<_ACEOF
28972/* confdefs.h.  */
28973_ACEOF
28974cat confdefs.h >>conftest.$ac_ext
28975cat >>conftest.$ac_ext <<_ACEOF
28976/* end confdefs.h.  */
28977#include <opagent.h>
28978_ACEOF
28979if { (ac_try="$ac_cpp conftest.$ac_ext"
28980case "(($ac_try" in
28981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28982  *) ac_try_echo=$ac_try;;
28983esac
28984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28985  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28986  ac_status=$?
28987  grep -v '^ *+' conftest.er1 >conftest.err
28988  rm -f conftest.er1
28989  cat conftest.err >&5
28990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28991  (exit $ac_status); } >/dev/null; then
28992  if test -s conftest.err; then
28993    ac_cpp_err=$ac_c_preproc_warn_flag
28994    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28995  else
28996    ac_cpp_err=
28997  fi
28998else
28999  ac_cpp_err=yes
29000fi
29001if test -z "$ac_cpp_err"; then
29002  ac_header_preproc=yes
29003else
29004  echo "$as_me: failed program was:" >&5
29005sed 's/^/| /' conftest.$ac_ext >&5
29006
29007  ac_header_preproc=no
29008fi
29009
29010rm -f conftest.err conftest.$ac_ext
29011{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29012echo "${ECHO_T}$ac_header_preproc" >&6; }
29013
29014# So?  What about this header?
29015case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29016  yes:no: )
29017    { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
29018echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29019    { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
29020echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
29021    ac_header_preproc=yes
29022    ;;
29023  no:yes:* )
29024    { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
29025echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
29026    { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
29027echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
29028    { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
29029echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
29030    { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
29031echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29032    { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
29033echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
29034    { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
29035echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
29036    ( cat <<\_ASBOX
29037## ----------------------------------- ##
29038## Report this to llvmbugs@cs.uiuc.edu ##
29039## ----------------------------------- ##
29040_ASBOX
29041     ) | sed "s/^/$as_me: WARNING:     /" >&2
29042    ;;
29043esac
29044{ echo "$as_me:$LINENO: checking for opagent.h" >&5
29045echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
29046if test "${ac_cv_header_opagent_h+set}" = set; then
29047  echo $ECHO_N "(cached) $ECHO_C" >&6
29048else
29049  ac_cv_header_opagent_h=$ac_header_preproc
29050fi
29051{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
29052echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
29053
29054fi
29055if test $ac_cv_header_opagent_h = yes; then
29056  :
29057else
29058
29059        LIBS="$llvm_cv_old_LIBS"
29060        USE_OPROFILE=0
29061
29062
29063fi
29064
29065
29066
29067fi
29068
29069
29070cat >>confdefs.h <<_ACEOF
29071#define USE_OPROFILE $USE_OPROFILE
29072_ACEOF
29073
29074
29075
29076
29077
29078
29079
29080
29081ac_header_dirent=no
29082for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
29083  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
29084{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
29085echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
29086if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29087  echo $ECHO_N "(cached) $ECHO_C" >&6
29088else
29089  cat >conftest.$ac_ext <<_ACEOF
29090/* confdefs.h.  */
29091_ACEOF
29092cat confdefs.h >>conftest.$ac_ext
29093cat >>conftest.$ac_ext <<_ACEOF
29094/* end confdefs.h.  */
29095#include <sys/types.h>
29096#include <$ac_hdr>
29097
29098int
29099main ()
29100{
29101if ((DIR *) 0)
29102return 0;
29103  ;
29104  return 0;
29105}
29106_ACEOF
29107rm -f conftest.$ac_objext
29108if { (ac_try="$ac_compile"
29109case "(($ac_try" in
29110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29111  *) ac_try_echo=$ac_try;;
29112esac
29113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29114  (eval "$ac_compile") 2>conftest.er1
29115  ac_status=$?
29116  grep -v '^ *+' conftest.er1 >conftest.err
29117  rm -f conftest.er1
29118  cat conftest.err >&5
29119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29120  (exit $ac_status); } &&
29121	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29122  { (case "(($ac_try" in
29123  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29124  *) ac_try_echo=$ac_try;;
29125esac
29126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29127  (eval "$ac_try") 2>&5
29128  ac_status=$?
29129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29130  (exit $ac_status); }; } &&
29131	 { ac_try='test -s conftest.$ac_objext'
29132  { (case "(($ac_try" in
29133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29134  *) ac_try_echo=$ac_try;;
29135esac
29136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29137  (eval "$ac_try") 2>&5
29138  ac_status=$?
29139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29140  (exit $ac_status); }; }; then
29141  eval "$as_ac_Header=yes"
29142else
29143  echo "$as_me: failed program was:" >&5
29144sed 's/^/| /' conftest.$ac_ext >&5
29145
29146	eval "$as_ac_Header=no"
29147fi
29148
29149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29150fi
29151ac_res=`eval echo '${'$as_ac_Header'}'`
29152	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29153echo "${ECHO_T}$ac_res" >&6; }
29154if test `eval echo '${'$as_ac_Header'}'` = yes; then
29155  cat >>confdefs.h <<_ACEOF
29156#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29157_ACEOF
29158
29159ac_header_dirent=$ac_hdr; break
29160fi
29161
29162done
29163# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29164if test $ac_header_dirent = dirent.h; then
29165  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29166echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29167if test "${ac_cv_search_opendir+set}" = set; then
29168  echo $ECHO_N "(cached) $ECHO_C" >&6
29169else
29170  ac_func_search_save_LIBS=$LIBS
29171cat >conftest.$ac_ext <<_ACEOF
29172/* confdefs.h.  */
29173_ACEOF
29174cat confdefs.h >>conftest.$ac_ext
29175cat >>conftest.$ac_ext <<_ACEOF
29176/* end confdefs.h.  */
29177
29178/* Override any GCC internal prototype to avoid an error.
29179   Use char because int might match the return type of a GCC
29180   builtin and then its argument prototype would still apply.  */
29181#ifdef __cplusplus
29182extern "C"
29183#endif
29184char opendir ();
29185int
29186main ()
29187{
29188return opendir ();
29189  ;
29190  return 0;
29191}
29192_ACEOF
29193for ac_lib in '' dir; do
29194  if test -z "$ac_lib"; then
29195    ac_res="none required"
29196  else
29197    ac_res=-l$ac_lib
29198    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29199  fi
29200  rm -f conftest.$ac_objext conftest$ac_exeext
29201if { (ac_try="$ac_link"
29202case "(($ac_try" in
29203  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29204  *) ac_try_echo=$ac_try;;
29205esac
29206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29207  (eval "$ac_link") 2>conftest.er1
29208  ac_status=$?
29209  grep -v '^ *+' conftest.er1 >conftest.err
29210  rm -f conftest.er1
29211  cat conftest.err >&5
29212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29213  (exit $ac_status); } &&
29214	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29215  { (case "(($ac_try" in
29216  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29217  *) ac_try_echo=$ac_try;;
29218esac
29219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29220  (eval "$ac_try") 2>&5
29221  ac_status=$?
29222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29223  (exit $ac_status); }; } &&
29224	 { ac_try='test -s conftest$ac_exeext'
29225  { (case "(($ac_try" in
29226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29227  *) ac_try_echo=$ac_try;;
29228esac
29229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29230  (eval "$ac_try") 2>&5
29231  ac_status=$?
29232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29233  (exit $ac_status); }; }; then
29234  ac_cv_search_opendir=$ac_res
29235else
29236  echo "$as_me: failed program was:" >&5
29237sed 's/^/| /' conftest.$ac_ext >&5
29238
29239
29240fi
29241
29242rm -f core conftest.err conftest.$ac_objext \
29243      conftest$ac_exeext
29244  if test "${ac_cv_search_opendir+set}" = set; then
29245  break
29246fi
29247done
29248if test "${ac_cv_search_opendir+set}" = set; then
29249  :
29250else
29251  ac_cv_search_opendir=no
29252fi
29253rm conftest.$ac_ext
29254LIBS=$ac_func_search_save_LIBS
29255fi
29256{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29257echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29258ac_res=$ac_cv_search_opendir
29259if test "$ac_res" != no; then
29260  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29261
29262fi
29263
29264else
29265  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29266echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29267if test "${ac_cv_search_opendir+set}" = set; then
29268  echo $ECHO_N "(cached) $ECHO_C" >&6
29269else
29270  ac_func_search_save_LIBS=$LIBS
29271cat >conftest.$ac_ext <<_ACEOF
29272/* confdefs.h.  */
29273_ACEOF
29274cat confdefs.h >>conftest.$ac_ext
29275cat >>conftest.$ac_ext <<_ACEOF
29276/* end confdefs.h.  */
29277
29278/* Override any GCC internal prototype to avoid an error.
29279   Use char because int might match the return type of a GCC
29280   builtin and then its argument prototype would still apply.  */
29281#ifdef __cplusplus
29282extern "C"
29283#endif
29284char opendir ();
29285int
29286main ()
29287{
29288return opendir ();
29289  ;
29290  return 0;
29291}
29292_ACEOF
29293for ac_lib in '' x; do
29294  if test -z "$ac_lib"; then
29295    ac_res="none required"
29296  else
29297    ac_res=-l$ac_lib
29298    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29299  fi
29300  rm -f conftest.$ac_objext conftest$ac_exeext
29301if { (ac_try="$ac_link"
29302case "(($ac_try" in
29303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29304  *) ac_try_echo=$ac_try;;
29305esac
29306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29307  (eval "$ac_link") 2>conftest.er1
29308  ac_status=$?
29309  grep -v '^ *+' conftest.er1 >conftest.err
29310  rm -f conftest.er1
29311  cat conftest.err >&5
29312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29313  (exit $ac_status); } &&
29314	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29315  { (case "(($ac_try" in
29316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29317  *) ac_try_echo=$ac_try;;
29318esac
29319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29320  (eval "$ac_try") 2>&5
29321  ac_status=$?
29322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323  (exit $ac_status); }; } &&
29324	 { ac_try='test -s conftest$ac_exeext'
29325  { (case "(($ac_try" in
29326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29327  *) ac_try_echo=$ac_try;;
29328esac
29329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29330  (eval "$ac_try") 2>&5
29331  ac_status=$?
29332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29333  (exit $ac_status); }; }; then
29334  ac_cv_search_opendir=$ac_res
29335else
29336  echo "$as_me: failed program was:" >&5
29337sed 's/^/| /' conftest.$ac_ext >&5
29338
29339
29340fi
29341
29342rm -f core conftest.err conftest.$ac_objext \
29343      conftest$ac_exeext
29344  if test "${ac_cv_search_opendir+set}" = set; then
29345  break
29346fi
29347done
29348if test "${ac_cv_search_opendir+set}" = set; then
29349  :
29350else
29351  ac_cv_search_opendir=no
29352fi
29353rm conftest.$ac_ext
29354LIBS=$ac_func_search_save_LIBS
29355fi
29356{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29357echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29358ac_res=$ac_cv_search_opendir
29359if test "$ac_res" != no; then
29360  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29361
29362fi
29363
29364fi
29365
29366{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29367echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
29368if test "${ac_cv_header_mmap_anon+set}" = set; then
29369  echo $ECHO_N "(cached) $ECHO_C" >&6
29370else
29371   ac_ext=c
29372ac_cpp='$CPP $CPPFLAGS'
29373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29375ac_compiler_gnu=$ac_cv_c_compiler_gnu
29376
29377  cat >conftest.$ac_ext <<_ACEOF
29378/* confdefs.h.  */
29379_ACEOF
29380cat confdefs.h >>conftest.$ac_ext
29381cat >>conftest.$ac_ext <<_ACEOF
29382/* end confdefs.h.  */
29383#include <sys/mman.h>
29384#include <unistd.h>
29385#include <fcntl.h>
29386int
29387main ()
29388{
29389mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29390  ;
29391  return 0;
29392}
29393_ACEOF
29394rm -f conftest.$ac_objext
29395if { (ac_try="$ac_compile"
29396case "(($ac_try" in
29397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29398  *) ac_try_echo=$ac_try;;
29399esac
29400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29401  (eval "$ac_compile") 2>conftest.er1
29402  ac_status=$?
29403  grep -v '^ *+' conftest.er1 >conftest.err
29404  rm -f conftest.er1
29405  cat conftest.err >&5
29406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29407  (exit $ac_status); } &&
29408	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29409  { (case "(($ac_try" in
29410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29411  *) ac_try_echo=$ac_try;;
29412esac
29413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29414  (eval "$ac_try") 2>&5
29415  ac_status=$?
29416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29417  (exit $ac_status); }; } &&
29418	 { ac_try='test -s conftest.$ac_objext'
29419  { (case "(($ac_try" in
29420  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29421  *) ac_try_echo=$ac_try;;
29422esac
29423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29424  (eval "$ac_try") 2>&5
29425  ac_status=$?
29426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29427  (exit $ac_status); }; }; then
29428  ac_cv_header_mmap_anon=yes
29429else
29430  echo "$as_me: failed program was:" >&5
29431sed 's/^/| /' conftest.$ac_ext >&5
29432
29433	ac_cv_header_mmap_anon=no
29434fi
29435
29436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29437  ac_ext=c
29438ac_cpp='$CPP $CPPFLAGS'
29439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29441ac_compiler_gnu=$ac_cv_c_compiler_gnu
29442
29443
29444fi
29445{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29446echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
29447if test "$ac_cv_header_mmap_anon" = yes; then
29448
29449cat >>confdefs.h <<\_ACEOF
29450#define HAVE_MMAP_ANONYMOUS 1
29451_ACEOF
29452
29453fi
29454
29455{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29456echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
29457if test "${ac_cv_header_stat_broken+set}" = set; then
29458  echo $ECHO_N "(cached) $ECHO_C" >&6
29459else
29460  cat >conftest.$ac_ext <<_ACEOF
29461/* confdefs.h.  */
29462_ACEOF
29463cat confdefs.h >>conftest.$ac_ext
29464cat >>conftest.$ac_ext <<_ACEOF
29465/* end confdefs.h.  */
29466#include <sys/types.h>
29467#include <sys/stat.h>
29468
29469#if defined S_ISBLK && defined S_IFDIR
29470# if S_ISBLK (S_IFDIR)
29471You lose.
29472# endif
29473#endif
29474
29475#if defined S_ISBLK && defined S_IFCHR
29476# if S_ISBLK (S_IFCHR)
29477You lose.
29478# endif
29479#endif
29480
29481#if defined S_ISLNK && defined S_IFREG
29482# if S_ISLNK (S_IFREG)
29483You lose.
29484# endif
29485#endif
29486
29487#if defined S_ISSOCK && defined S_IFREG
29488# if S_ISSOCK (S_IFREG)
29489You lose.
29490# endif
29491#endif
29492
29493_ACEOF
29494if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29495  $EGREP "You lose" >/dev/null 2>&1; then
29496  ac_cv_header_stat_broken=yes
29497else
29498  ac_cv_header_stat_broken=no
29499fi
29500rm -f conftest*
29501
29502fi
29503{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29504echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
29505if test $ac_cv_header_stat_broken = yes; then
29506
29507cat >>confdefs.h <<\_ACEOF
29508#define STAT_MACROS_BROKEN 1
29509_ACEOF
29510
29511fi
29512
29513{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29514echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
29515if test "${ac_cv_header_stdc+set}" = set; then
29516  echo $ECHO_N "(cached) $ECHO_C" >&6
29517else
29518  cat >conftest.$ac_ext <<_ACEOF
29519/* confdefs.h.  */
29520_ACEOF
29521cat confdefs.h >>conftest.$ac_ext
29522cat >>conftest.$ac_ext <<_ACEOF
29523/* end confdefs.h.  */
29524#include <stdlib.h>
29525#include <stdarg.h>
29526#include <string.h>
29527#include <float.h>
29528
29529int
29530main ()
29531{
29532
29533  ;
29534  return 0;
29535}
29536_ACEOF
29537rm -f conftest.$ac_objext
29538if { (ac_try="$ac_compile"
29539case "(($ac_try" in
29540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29541  *) ac_try_echo=$ac_try;;
29542esac
29543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29544  (eval "$ac_compile") 2>conftest.er1
29545  ac_status=$?
29546  grep -v '^ *+' conftest.er1 >conftest.err
29547  rm -f conftest.er1
29548  cat conftest.err >&5
29549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29550  (exit $ac_status); } &&
29551	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29552  { (case "(($ac_try" in
29553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29554  *) ac_try_echo=$ac_try;;
29555esac
29556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29557  (eval "$ac_try") 2>&5
29558  ac_status=$?
29559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29560  (exit $ac_status); }; } &&
29561	 { ac_try='test -s conftest.$ac_objext'
29562  { (case "(($ac_try" in
29563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29564  *) ac_try_echo=$ac_try;;
29565esac
29566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29567  (eval "$ac_try") 2>&5
29568  ac_status=$?
29569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29570  (exit $ac_status); }; }; then
29571  ac_cv_header_stdc=yes
29572else
29573  echo "$as_me: failed program was:" >&5
29574sed 's/^/| /' conftest.$ac_ext >&5
29575
29576	ac_cv_header_stdc=no
29577fi
29578
29579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29580
29581if test $ac_cv_header_stdc = yes; then
29582  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29583  cat >conftest.$ac_ext <<_ACEOF
29584/* confdefs.h.  */
29585_ACEOF
29586cat confdefs.h >>conftest.$ac_ext
29587cat >>conftest.$ac_ext <<_ACEOF
29588/* end confdefs.h.  */
29589#include <string.h>
29590
29591_ACEOF
29592if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29593  $EGREP "memchr" >/dev/null 2>&1; then
29594  :
29595else
29596  ac_cv_header_stdc=no
29597fi
29598rm -f conftest*
29599
29600fi
29601
29602if test $ac_cv_header_stdc = yes; then
29603  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29604  cat >conftest.$ac_ext <<_ACEOF
29605/* confdefs.h.  */
29606_ACEOF
29607cat confdefs.h >>conftest.$ac_ext
29608cat >>conftest.$ac_ext <<_ACEOF
29609/* end confdefs.h.  */
29610#include <stdlib.h>
29611
29612_ACEOF
29613if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29614  $EGREP "free" >/dev/null 2>&1; then
29615  :
29616else
29617  ac_cv_header_stdc=no
29618fi
29619rm -f conftest*
29620
29621fi
29622
29623if test $ac_cv_header_stdc = yes; then
29624  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29625  if test "$cross_compiling" = yes; then
29626  :
29627else
29628  cat >conftest.$ac_ext <<_ACEOF
29629/* confdefs.h.  */
29630_ACEOF
29631cat confdefs.h >>conftest.$ac_ext
29632cat >>conftest.$ac_ext <<_ACEOF
29633/* end confdefs.h.  */
29634#include <ctype.h>
29635#include <stdlib.h>
29636#if ((' ' & 0x0FF) == 0x020)
29637# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29638# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29639#else
29640# define ISLOWER(c) \
29641		   (('a' <= (c) && (c) <= 'i') \
29642		     || ('j' <= (c) && (c) <= 'r') \
29643		     || ('s' <= (c) && (c) <= 'z'))
29644# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29645#endif
29646
29647#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29648int
29649main ()
29650{
29651  int i;
29652  for (i = 0; i < 256; i++)
29653    if (XOR (islower (i), ISLOWER (i))
29654	|| toupper (i) != TOUPPER (i))
29655      return 2;
29656  return 0;
29657}
29658_ACEOF
29659rm -f conftest$ac_exeext
29660if { (ac_try="$ac_link"
29661case "(($ac_try" in
29662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29663  *) ac_try_echo=$ac_try;;
29664esac
29665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29666  (eval "$ac_link") 2>&5
29667  ac_status=$?
29668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29669  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29670  { (case "(($ac_try" in
29671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29672  *) ac_try_echo=$ac_try;;
29673esac
29674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29675  (eval "$ac_try") 2>&5
29676  ac_status=$?
29677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29678  (exit $ac_status); }; }; then
29679  :
29680else
29681  echo "$as_me: program exited with status $ac_status" >&5
29682echo "$as_me: failed program was:" >&5
29683sed 's/^/| /' conftest.$ac_ext >&5
29684
29685( exit $ac_status )
29686ac_cv_header_stdc=no
29687fi
29688rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29689fi
29690
29691
29692fi
29693fi
29694{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29695echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
29696if test $ac_cv_header_stdc = yes; then
29697
29698cat >>confdefs.h <<\_ACEOF
29699#define STDC_HEADERS 1
29700_ACEOF
29701
29702fi
29703
29704{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29705echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
29706if test "${ac_cv_header_sys_wait_h+set}" = set; then
29707  echo $ECHO_N "(cached) $ECHO_C" >&6
29708else
29709  cat >conftest.$ac_ext <<_ACEOF
29710/* confdefs.h.  */
29711_ACEOF
29712cat confdefs.h >>conftest.$ac_ext
29713cat >>conftest.$ac_ext <<_ACEOF
29714/* end confdefs.h.  */
29715#include <sys/types.h>
29716#include <sys/wait.h>
29717#ifndef WEXITSTATUS
29718# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
29719#endif
29720#ifndef WIFEXITED
29721# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29722#endif
29723
29724int
29725main ()
29726{
29727  int s;
29728  wait (&s);
29729  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29730  ;
29731  return 0;
29732}
29733_ACEOF
29734rm -f conftest.$ac_objext
29735if { (ac_try="$ac_compile"
29736case "(($ac_try" in
29737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29738  *) ac_try_echo=$ac_try;;
29739esac
29740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29741  (eval "$ac_compile") 2>conftest.er1
29742  ac_status=$?
29743  grep -v '^ *+' conftest.er1 >conftest.err
29744  rm -f conftest.er1
29745  cat conftest.err >&5
29746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29747  (exit $ac_status); } &&
29748	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29749  { (case "(($ac_try" in
29750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29751  *) ac_try_echo=$ac_try;;
29752esac
29753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29754  (eval "$ac_try") 2>&5
29755  ac_status=$?
29756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29757  (exit $ac_status); }; } &&
29758	 { ac_try='test -s conftest.$ac_objext'
29759  { (case "(($ac_try" in
29760  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29761  *) ac_try_echo=$ac_try;;
29762esac
29763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29764  (eval "$ac_try") 2>&5
29765  ac_status=$?
29766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29767  (exit $ac_status); }; }; then
29768  ac_cv_header_sys_wait_h=yes
29769else
29770  echo "$as_me: failed program was:" >&5
29771sed 's/^/| /' conftest.$ac_ext >&5
29772
29773	ac_cv_header_sys_wait_h=no
29774fi
29775
29776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29777fi
29778{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29779echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
29780if test $ac_cv_header_sys_wait_h = yes; then
29781
29782cat >>confdefs.h <<\_ACEOF
29783#define HAVE_SYS_WAIT_H 1
29784_ACEOF
29785
29786fi
29787
29788{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29789echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
29790if test "${ac_cv_header_time+set}" = set; then
29791  echo $ECHO_N "(cached) $ECHO_C" >&6
29792else
29793  cat >conftest.$ac_ext <<_ACEOF
29794/* confdefs.h.  */
29795_ACEOF
29796cat confdefs.h >>conftest.$ac_ext
29797cat >>conftest.$ac_ext <<_ACEOF
29798/* end confdefs.h.  */
29799#include <sys/types.h>
29800#include <sys/time.h>
29801#include <time.h>
29802
29803int
29804main ()
29805{
29806if ((struct tm *) 0)
29807return 0;
29808  ;
29809  return 0;
29810}
29811_ACEOF
29812rm -f conftest.$ac_objext
29813if { (ac_try="$ac_compile"
29814case "(($ac_try" in
29815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29816  *) ac_try_echo=$ac_try;;
29817esac
29818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29819  (eval "$ac_compile") 2>conftest.er1
29820  ac_status=$?
29821  grep -v '^ *+' conftest.er1 >conftest.err
29822  rm -f conftest.er1
29823  cat conftest.err >&5
29824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29825  (exit $ac_status); } &&
29826	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29827  { (case "(($ac_try" in
29828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29829  *) ac_try_echo=$ac_try;;
29830esac
29831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29832  (eval "$ac_try") 2>&5
29833  ac_status=$?
29834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835  (exit $ac_status); }; } &&
29836	 { ac_try='test -s conftest.$ac_objext'
29837  { (case "(($ac_try" in
29838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29839  *) ac_try_echo=$ac_try;;
29840esac
29841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29842  (eval "$ac_try") 2>&5
29843  ac_status=$?
29844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29845  (exit $ac_status); }; }; then
29846  ac_cv_header_time=yes
29847else
29848  echo "$as_me: failed program was:" >&5
29849sed 's/^/| /' conftest.$ac_ext >&5
29850
29851	ac_cv_header_time=no
29852fi
29853
29854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29855fi
29856{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29857echo "${ECHO_T}$ac_cv_header_time" >&6; }
29858if test $ac_cv_header_time = yes; then
29859
29860cat >>confdefs.h <<\_ACEOF
29861#define TIME_WITH_SYS_TIME 1
29862_ACEOF
29863
29864fi
29865
29866
29867
29868
29869
29870
29871
29872
29873for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29874do
29875as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29876if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29877  { echo "$as_me:$LINENO: checking for $ac_header" >&5
29878echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29879if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29880  echo $ECHO_N "(cached) $ECHO_C" >&6
29881fi
29882ac_res=`eval echo '${'$as_ac_Header'}'`
29883	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29884echo "${ECHO_T}$ac_res" >&6; }
29885else
29886  # Is the header compilable?
29887{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29888echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29889cat >conftest.$ac_ext <<_ACEOF
29890/* confdefs.h.  */
29891_ACEOF
29892cat confdefs.h >>conftest.$ac_ext
29893cat >>conftest.$ac_ext <<_ACEOF
29894/* end confdefs.h.  */
29895$ac_includes_default
29896#include <$ac_header>
29897_ACEOF
29898rm -f conftest.$ac_objext
29899if { (ac_try="$ac_compile"
29900case "(($ac_try" in
29901  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29902  *) ac_try_echo=$ac_try;;
29903esac
29904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29905  (eval "$ac_compile") 2>conftest.er1
29906  ac_status=$?
29907  grep -v '^ *+' conftest.er1 >conftest.err
29908  rm -f conftest.er1
29909  cat conftest.err >&5
29910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29911  (exit $ac_status); } &&
29912	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29913  { (case "(($ac_try" in
29914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29915  *) ac_try_echo=$ac_try;;
29916esac
29917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29918  (eval "$ac_try") 2>&5
29919  ac_status=$?
29920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29921  (exit $ac_status); }; } &&
29922	 { ac_try='test -s conftest.$ac_objext'
29923  { (case "(($ac_try" in
29924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29925  *) ac_try_echo=$ac_try;;
29926esac
29927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29928  (eval "$ac_try") 2>&5
29929  ac_status=$?
29930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29931  (exit $ac_status); }; }; then
29932  ac_header_compiler=yes
29933else
29934  echo "$as_me: failed program was:" >&5
29935sed 's/^/| /' conftest.$ac_ext >&5
29936
29937	ac_header_compiler=no
29938fi
29939
29940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29941{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29942echo "${ECHO_T}$ac_header_compiler" >&6; }
29943
29944# Is the header present?
29945{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29946echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29947cat >conftest.$ac_ext <<_ACEOF
29948/* confdefs.h.  */
29949_ACEOF
29950cat confdefs.h >>conftest.$ac_ext
29951cat >>conftest.$ac_ext <<_ACEOF
29952/* end confdefs.h.  */
29953#include <$ac_header>
29954_ACEOF
29955if { (ac_try="$ac_cpp conftest.$ac_ext"
29956case "(($ac_try" in
29957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29958  *) ac_try_echo=$ac_try;;
29959esac
29960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29961  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29962  ac_status=$?
29963  grep -v '^ *+' conftest.er1 >conftest.err
29964  rm -f conftest.er1
29965  cat conftest.err >&5
29966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29967  (exit $ac_status); } >/dev/null; then
29968  if test -s conftest.err; then
29969    ac_cpp_err=$ac_c_preproc_warn_flag
29970    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29971  else
29972    ac_cpp_err=
29973  fi
29974else
29975  ac_cpp_err=yes
29976fi
29977if test -z "$ac_cpp_err"; then
29978  ac_header_preproc=yes
29979else
29980  echo "$as_me: failed program was:" >&5
29981sed 's/^/| /' conftest.$ac_ext >&5
29982
29983  ac_header_preproc=no
29984fi
29985
29986rm -f conftest.err conftest.$ac_ext
29987{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29988echo "${ECHO_T}$ac_header_preproc" >&6; }
29989
29990# So?  What about this header?
29991case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29992  yes:no: )
29993    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29994echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29995    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29996echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29997    ac_header_preproc=yes
29998    ;;
29999  no:yes:* )
30000    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30001echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30002    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30003echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30004    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30005echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30006    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30007echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30008    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30009echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30010    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30011echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30012    ( cat <<\_ASBOX
30013## ----------------------------------- ##
30014## Report this to llvmbugs@cs.uiuc.edu ##
30015## ----------------------------------- ##
30016_ASBOX
30017     ) | sed "s/^/$as_me: WARNING:     /" >&2
30018    ;;
30019esac
30020{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30021echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30022if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30023  echo $ECHO_N "(cached) $ECHO_C" >&6
30024else
30025  eval "$as_ac_Header=\$ac_header_preproc"
30026fi
30027ac_res=`eval echo '${'$as_ac_Header'}'`
30028	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30029echo "${ECHO_T}$ac_res" >&6; }
30030
30031fi
30032if test `eval echo '${'$as_ac_Header'}'` = yes; then
30033  cat >>confdefs.h <<_ACEOF
30034#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30035_ACEOF
30036
30037fi
30038
30039done
30040
30041
30042
30043
30044
30045
30046
30047for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
30048do
30049as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30050if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30051  { echo "$as_me:$LINENO: checking for $ac_header" >&5
30052echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30053if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30054  echo $ECHO_N "(cached) $ECHO_C" >&6
30055fi
30056ac_res=`eval echo '${'$as_ac_Header'}'`
30057	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30058echo "${ECHO_T}$ac_res" >&6; }
30059else
30060  # Is the header compilable?
30061{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30062echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30063cat >conftest.$ac_ext <<_ACEOF
30064/* confdefs.h.  */
30065_ACEOF
30066cat confdefs.h >>conftest.$ac_ext
30067cat >>conftest.$ac_ext <<_ACEOF
30068/* end confdefs.h.  */
30069$ac_includes_default
30070#include <$ac_header>
30071_ACEOF
30072rm -f conftest.$ac_objext
30073if { (ac_try="$ac_compile"
30074case "(($ac_try" in
30075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30076  *) ac_try_echo=$ac_try;;
30077esac
30078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30079  (eval "$ac_compile") 2>conftest.er1
30080  ac_status=$?
30081  grep -v '^ *+' conftest.er1 >conftest.err
30082  rm -f conftest.er1
30083  cat conftest.err >&5
30084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30085  (exit $ac_status); } &&
30086	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30087  { (case "(($ac_try" in
30088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30089  *) ac_try_echo=$ac_try;;
30090esac
30091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30092  (eval "$ac_try") 2>&5
30093  ac_status=$?
30094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30095  (exit $ac_status); }; } &&
30096	 { ac_try='test -s conftest.$ac_objext'
30097  { (case "(($ac_try" in
30098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30099  *) ac_try_echo=$ac_try;;
30100esac
30101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30102  (eval "$ac_try") 2>&5
30103  ac_status=$?
30104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30105  (exit $ac_status); }; }; then
30106  ac_header_compiler=yes
30107else
30108  echo "$as_me: failed program was:" >&5
30109sed 's/^/| /' conftest.$ac_ext >&5
30110
30111	ac_header_compiler=no
30112fi
30113
30114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30115{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30116echo "${ECHO_T}$ac_header_compiler" >&6; }
30117
30118# Is the header present?
30119{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30120echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30121cat >conftest.$ac_ext <<_ACEOF
30122/* confdefs.h.  */
30123_ACEOF
30124cat confdefs.h >>conftest.$ac_ext
30125cat >>conftest.$ac_ext <<_ACEOF
30126/* end confdefs.h.  */
30127#include <$ac_header>
30128_ACEOF
30129if { (ac_try="$ac_cpp conftest.$ac_ext"
30130case "(($ac_try" in
30131  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30132  *) ac_try_echo=$ac_try;;
30133esac
30134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30135  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30136  ac_status=$?
30137  grep -v '^ *+' conftest.er1 >conftest.err
30138  rm -f conftest.er1
30139  cat conftest.err >&5
30140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30141  (exit $ac_status); } >/dev/null; then
30142  if test -s conftest.err; then
30143    ac_cpp_err=$ac_c_preproc_warn_flag
30144    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30145  else
30146    ac_cpp_err=
30147  fi
30148else
30149  ac_cpp_err=yes
30150fi
30151if test -z "$ac_cpp_err"; then
30152  ac_header_preproc=yes
30153else
30154  echo "$as_me: failed program was:" >&5
30155sed 's/^/| /' conftest.$ac_ext >&5
30156
30157  ac_header_preproc=no
30158fi
30159
30160rm -f conftest.err conftest.$ac_ext
30161{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30162echo "${ECHO_T}$ac_header_preproc" >&6; }
30163
30164# So?  What about this header?
30165case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30166  yes:no: )
30167    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30168echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30169    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30170echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30171    ac_header_preproc=yes
30172    ;;
30173  no:yes:* )
30174    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30175echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30176    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30177echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30178    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30179echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30180    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30181echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30182    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30183echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30184    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30185echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30186    ( cat <<\_ASBOX
30187## ----------------------------------- ##
30188## Report this to llvmbugs@cs.uiuc.edu ##
30189## ----------------------------------- ##
30190_ASBOX
30191     ) | sed "s/^/$as_me: WARNING:     /" >&2
30192    ;;
30193esac
30194{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30195echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30196if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30197  echo $ECHO_N "(cached) $ECHO_C" >&6
30198else
30199  eval "$as_ac_Header=\$ac_header_preproc"
30200fi
30201ac_res=`eval echo '${'$as_ac_Header'}'`
30202	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30203echo "${ECHO_T}$ac_res" >&6; }
30204
30205fi
30206if test `eval echo '${'$as_ac_Header'}'` = yes; then
30207  cat >>confdefs.h <<_ACEOF
30208#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30209_ACEOF
30210
30211fi
30212
30213done
30214
30215
30216
30217for ac_header in utime.h windows.h
30218do
30219as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30220if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30221  { echo "$as_me:$LINENO: checking for $ac_header" >&5
30222echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30223if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30224  echo $ECHO_N "(cached) $ECHO_C" >&6
30225fi
30226ac_res=`eval echo '${'$as_ac_Header'}'`
30227	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30228echo "${ECHO_T}$ac_res" >&6; }
30229else
30230  # Is the header compilable?
30231{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30232echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30233cat >conftest.$ac_ext <<_ACEOF
30234/* confdefs.h.  */
30235_ACEOF
30236cat confdefs.h >>conftest.$ac_ext
30237cat >>conftest.$ac_ext <<_ACEOF
30238/* end confdefs.h.  */
30239$ac_includes_default
30240#include <$ac_header>
30241_ACEOF
30242rm -f conftest.$ac_objext
30243if { (ac_try="$ac_compile"
30244case "(($ac_try" in
30245  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30246  *) ac_try_echo=$ac_try;;
30247esac
30248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30249  (eval "$ac_compile") 2>conftest.er1
30250  ac_status=$?
30251  grep -v '^ *+' conftest.er1 >conftest.err
30252  rm -f conftest.er1
30253  cat conftest.err >&5
30254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30255  (exit $ac_status); } &&
30256	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30257  { (case "(($ac_try" in
30258  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30259  *) ac_try_echo=$ac_try;;
30260esac
30261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30262  (eval "$ac_try") 2>&5
30263  ac_status=$?
30264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30265  (exit $ac_status); }; } &&
30266	 { ac_try='test -s conftest.$ac_objext'
30267  { (case "(($ac_try" in
30268  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30269  *) ac_try_echo=$ac_try;;
30270esac
30271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30272  (eval "$ac_try") 2>&5
30273  ac_status=$?
30274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30275  (exit $ac_status); }; }; then
30276  ac_header_compiler=yes
30277else
30278  echo "$as_me: failed program was:" >&5
30279sed 's/^/| /' conftest.$ac_ext >&5
30280
30281	ac_header_compiler=no
30282fi
30283
30284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30285{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30286echo "${ECHO_T}$ac_header_compiler" >&6; }
30287
30288# Is the header present?
30289{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30290echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30291cat >conftest.$ac_ext <<_ACEOF
30292/* confdefs.h.  */
30293_ACEOF
30294cat confdefs.h >>conftest.$ac_ext
30295cat >>conftest.$ac_ext <<_ACEOF
30296/* end confdefs.h.  */
30297#include <$ac_header>
30298_ACEOF
30299if { (ac_try="$ac_cpp conftest.$ac_ext"
30300case "(($ac_try" in
30301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30302  *) ac_try_echo=$ac_try;;
30303esac
30304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30305  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30306  ac_status=$?
30307  grep -v '^ *+' conftest.er1 >conftest.err
30308  rm -f conftest.er1
30309  cat conftest.err >&5
30310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30311  (exit $ac_status); } >/dev/null; then
30312  if test -s conftest.err; then
30313    ac_cpp_err=$ac_c_preproc_warn_flag
30314    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30315  else
30316    ac_cpp_err=
30317  fi
30318else
30319  ac_cpp_err=yes
30320fi
30321if test -z "$ac_cpp_err"; then
30322  ac_header_preproc=yes
30323else
30324  echo "$as_me: failed program was:" >&5
30325sed 's/^/| /' conftest.$ac_ext >&5
30326
30327  ac_header_preproc=no
30328fi
30329
30330rm -f conftest.err conftest.$ac_ext
30331{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30332echo "${ECHO_T}$ac_header_preproc" >&6; }
30333
30334# So?  What about this header?
30335case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30336  yes:no: )
30337    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30338echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30339    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30340echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30341    ac_header_preproc=yes
30342    ;;
30343  no:yes:* )
30344    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30345echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30346    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30347echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30348    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30349echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30350    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30351echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30352    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30353echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30354    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30355echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30356    ( cat <<\_ASBOX
30357## ----------------------------------- ##
30358## Report this to llvmbugs@cs.uiuc.edu ##
30359## ----------------------------------- ##
30360_ASBOX
30361     ) | sed "s/^/$as_me: WARNING:     /" >&2
30362    ;;
30363esac
30364{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30366if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30367  echo $ECHO_N "(cached) $ECHO_C" >&6
30368else
30369  eval "$as_ac_Header=\$ac_header_preproc"
30370fi
30371ac_res=`eval echo '${'$as_ac_Header'}'`
30372	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30373echo "${ECHO_T}$ac_res" >&6; }
30374
30375fi
30376if test `eval echo '${'$as_ac_Header'}'` = yes; then
30377  cat >>confdefs.h <<_ACEOF
30378#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30379_ACEOF
30380
30381fi
30382
30383done
30384
30385
30386
30387
30388
30389for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
30390do
30391as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30392if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30393  { echo "$as_me:$LINENO: checking for $ac_header" >&5
30394echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30395if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30396  echo $ECHO_N "(cached) $ECHO_C" >&6
30397fi
30398ac_res=`eval echo '${'$as_ac_Header'}'`
30399	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30400echo "${ECHO_T}$ac_res" >&6; }
30401else
30402  # Is the header compilable?
30403{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30404echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30405cat >conftest.$ac_ext <<_ACEOF
30406/* confdefs.h.  */
30407_ACEOF
30408cat confdefs.h >>conftest.$ac_ext
30409cat >>conftest.$ac_ext <<_ACEOF
30410/* end confdefs.h.  */
30411$ac_includes_default
30412#include <$ac_header>
30413_ACEOF
30414rm -f conftest.$ac_objext
30415if { (ac_try="$ac_compile"
30416case "(($ac_try" in
30417  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30418  *) ac_try_echo=$ac_try;;
30419esac
30420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30421  (eval "$ac_compile") 2>conftest.er1
30422  ac_status=$?
30423  grep -v '^ *+' conftest.er1 >conftest.err
30424  rm -f conftest.er1
30425  cat conftest.err >&5
30426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30427  (exit $ac_status); } &&
30428	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30429  { (case "(($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_try") 2>&5
30435  ac_status=$?
30436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30437  (exit $ac_status); }; } &&
30438	 { ac_try='test -s conftest.$ac_objext'
30439  { (case "(($ac_try" in
30440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30441  *) ac_try_echo=$ac_try;;
30442esac
30443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30444  (eval "$ac_try") 2>&5
30445  ac_status=$?
30446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30447  (exit $ac_status); }; }; then
30448  ac_header_compiler=yes
30449else
30450  echo "$as_me: failed program was:" >&5
30451sed 's/^/| /' conftest.$ac_ext >&5
30452
30453	ac_header_compiler=no
30454fi
30455
30456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30457{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30458echo "${ECHO_T}$ac_header_compiler" >&6; }
30459
30460# Is the header present?
30461{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30462echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30463cat >conftest.$ac_ext <<_ACEOF
30464/* confdefs.h.  */
30465_ACEOF
30466cat confdefs.h >>conftest.$ac_ext
30467cat >>conftest.$ac_ext <<_ACEOF
30468/* end confdefs.h.  */
30469#include <$ac_header>
30470_ACEOF
30471if { (ac_try="$ac_cpp conftest.$ac_ext"
30472case "(($ac_try" in
30473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30474  *) ac_try_echo=$ac_try;;
30475esac
30476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30477  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30478  ac_status=$?
30479  grep -v '^ *+' conftest.er1 >conftest.err
30480  rm -f conftest.er1
30481  cat conftest.err >&5
30482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30483  (exit $ac_status); } >/dev/null; then
30484  if test -s conftest.err; then
30485    ac_cpp_err=$ac_c_preproc_warn_flag
30486    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30487  else
30488    ac_cpp_err=
30489  fi
30490else
30491  ac_cpp_err=yes
30492fi
30493if test -z "$ac_cpp_err"; then
30494  ac_header_preproc=yes
30495else
30496  echo "$as_me: failed program was:" >&5
30497sed 's/^/| /' conftest.$ac_ext >&5
30498
30499  ac_header_preproc=no
30500fi
30501
30502rm -f conftest.err conftest.$ac_ext
30503{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30504echo "${ECHO_T}$ac_header_preproc" >&6; }
30505
30506# So?  What about this header?
30507case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30508  yes:no: )
30509    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30510echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30511    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30512echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30513    ac_header_preproc=yes
30514    ;;
30515  no:yes:* )
30516    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30517echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30518    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30519echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30520    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30521echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30522    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30523echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30524    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30525echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30526    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30527echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30528    ( cat <<\_ASBOX
30529## ----------------------------------- ##
30530## Report this to llvmbugs@cs.uiuc.edu ##
30531## ----------------------------------- ##
30532_ASBOX
30533     ) | sed "s/^/$as_me: WARNING:     /" >&2
30534    ;;
30535esac
30536{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30537echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30538if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30539  echo $ECHO_N "(cached) $ECHO_C" >&6
30540else
30541  eval "$as_ac_Header=\$ac_header_preproc"
30542fi
30543ac_res=`eval echo '${'$as_ac_Header'}'`
30544	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30545echo "${ECHO_T}$ac_res" >&6; }
30546
30547fi
30548if test `eval echo '${'$as_ac_Header'}'` = yes; then
30549  cat >>confdefs.h <<_ACEOF
30550#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30551_ACEOF
30552
30553fi
30554
30555done
30556
30557
30558
30559
30560
30561for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
30562do
30563as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30564if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30565  { echo "$as_me:$LINENO: checking for $ac_header" >&5
30566echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30567if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30568  echo $ECHO_N "(cached) $ECHO_C" >&6
30569fi
30570ac_res=`eval echo '${'$as_ac_Header'}'`
30571	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30572echo "${ECHO_T}$ac_res" >&6; }
30573else
30574  # Is the header compilable?
30575{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30576echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30577cat >conftest.$ac_ext <<_ACEOF
30578/* confdefs.h.  */
30579_ACEOF
30580cat confdefs.h >>conftest.$ac_ext
30581cat >>conftest.$ac_ext <<_ACEOF
30582/* end confdefs.h.  */
30583$ac_includes_default
30584#include <$ac_header>
30585_ACEOF
30586rm -f conftest.$ac_objext
30587if { (ac_try="$ac_compile"
30588case "(($ac_try" in
30589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30590  *) ac_try_echo=$ac_try;;
30591esac
30592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30593  (eval "$ac_compile") 2>conftest.er1
30594  ac_status=$?
30595  grep -v '^ *+' conftest.er1 >conftest.err
30596  rm -f conftest.er1
30597  cat conftest.err >&5
30598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30599  (exit $ac_status); } &&
30600	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30601  { (case "(($ac_try" in
30602  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30603  *) ac_try_echo=$ac_try;;
30604esac
30605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30606  (eval "$ac_try") 2>&5
30607  ac_status=$?
30608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30609  (exit $ac_status); }; } &&
30610	 { ac_try='test -s conftest.$ac_objext'
30611  { (case "(($ac_try" in
30612  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30613  *) ac_try_echo=$ac_try;;
30614esac
30615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30616  (eval "$ac_try") 2>&5
30617  ac_status=$?
30618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30619  (exit $ac_status); }; }; then
30620  ac_header_compiler=yes
30621else
30622  echo "$as_me: failed program was:" >&5
30623sed 's/^/| /' conftest.$ac_ext >&5
30624
30625	ac_header_compiler=no
30626fi
30627
30628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30629{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30630echo "${ECHO_T}$ac_header_compiler" >&6; }
30631
30632# Is the header present?
30633{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30634echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30635cat >conftest.$ac_ext <<_ACEOF
30636/* confdefs.h.  */
30637_ACEOF
30638cat confdefs.h >>conftest.$ac_ext
30639cat >>conftest.$ac_ext <<_ACEOF
30640/* end confdefs.h.  */
30641#include <$ac_header>
30642_ACEOF
30643if { (ac_try="$ac_cpp conftest.$ac_ext"
30644case "(($ac_try" in
30645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30646  *) ac_try_echo=$ac_try;;
30647esac
30648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30649  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30650  ac_status=$?
30651  grep -v '^ *+' conftest.er1 >conftest.err
30652  rm -f conftest.er1
30653  cat conftest.err >&5
30654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30655  (exit $ac_status); } >/dev/null; then
30656  if test -s conftest.err; then
30657    ac_cpp_err=$ac_c_preproc_warn_flag
30658    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30659  else
30660    ac_cpp_err=
30661  fi
30662else
30663  ac_cpp_err=yes
30664fi
30665if test -z "$ac_cpp_err"; then
30666  ac_header_preproc=yes
30667else
30668  echo "$as_me: failed program was:" >&5
30669sed 's/^/| /' conftest.$ac_ext >&5
30670
30671  ac_header_preproc=no
30672fi
30673
30674rm -f conftest.err conftest.$ac_ext
30675{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30676echo "${ECHO_T}$ac_header_preproc" >&6; }
30677
30678# So?  What about this header?
30679case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30680  yes:no: )
30681    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30682echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30683    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30684echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30685    ac_header_preproc=yes
30686    ;;
30687  no:yes:* )
30688    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30689echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30690    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30691echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30692    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30693echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30694    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30695echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30696    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30697echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30698    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30699echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30700    ( cat <<\_ASBOX
30701## ----------------------------------- ##
30702## Report this to llvmbugs@cs.uiuc.edu ##
30703## ----------------------------------- ##
30704_ASBOX
30705     ) | sed "s/^/$as_me: WARNING:     /" >&2
30706    ;;
30707esac
30708{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30709echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30710if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30711  echo $ECHO_N "(cached) $ECHO_C" >&6
30712else
30713  eval "$as_ac_Header=\$ac_header_preproc"
30714fi
30715ac_res=`eval echo '${'$as_ac_Header'}'`
30716	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30717echo "${ECHO_T}$ac_res" >&6; }
30718
30719fi
30720if test `eval echo '${'$as_ac_Header'}'` = yes; then
30721  cat >>confdefs.h <<_ACEOF
30722#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30723_ACEOF
30724
30725fi
30726
30727done
30728
30729if test "$ENABLE_THREADS" -eq 1 ; then
30730
30731for ac_header in pthread.h
30732do
30733as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30734if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30735  { echo "$as_me:$LINENO: checking for $ac_header" >&5
30736echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30737if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30738  echo $ECHO_N "(cached) $ECHO_C" >&6
30739fi
30740ac_res=`eval echo '${'$as_ac_Header'}'`
30741	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30742echo "${ECHO_T}$ac_res" >&6; }
30743else
30744  # Is the header compilable?
30745{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30746echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30747cat >conftest.$ac_ext <<_ACEOF
30748/* confdefs.h.  */
30749_ACEOF
30750cat confdefs.h >>conftest.$ac_ext
30751cat >>conftest.$ac_ext <<_ACEOF
30752/* end confdefs.h.  */
30753$ac_includes_default
30754#include <$ac_header>
30755_ACEOF
30756rm -f conftest.$ac_objext
30757if { (ac_try="$ac_compile"
30758case "(($ac_try" in
30759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30760  *) ac_try_echo=$ac_try;;
30761esac
30762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30763  (eval "$ac_compile") 2>conftest.er1
30764  ac_status=$?
30765  grep -v '^ *+' conftest.er1 >conftest.err
30766  rm -f conftest.er1
30767  cat conftest.err >&5
30768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30769  (exit $ac_status); } &&
30770	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30771  { (case "(($ac_try" in
30772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30773  *) ac_try_echo=$ac_try;;
30774esac
30775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30776  (eval "$ac_try") 2>&5
30777  ac_status=$?
30778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30779  (exit $ac_status); }; } &&
30780	 { ac_try='test -s conftest.$ac_objext'
30781  { (case "(($ac_try" in
30782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30783  *) ac_try_echo=$ac_try;;
30784esac
30785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30786  (eval "$ac_try") 2>&5
30787  ac_status=$?
30788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30789  (exit $ac_status); }; }; then
30790  ac_header_compiler=yes
30791else
30792  echo "$as_me: failed program was:" >&5
30793sed 's/^/| /' conftest.$ac_ext >&5
30794
30795	ac_header_compiler=no
30796fi
30797
30798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30799{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30800echo "${ECHO_T}$ac_header_compiler" >&6; }
30801
30802# Is the header present?
30803{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30804echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30805cat >conftest.$ac_ext <<_ACEOF
30806/* confdefs.h.  */
30807_ACEOF
30808cat confdefs.h >>conftest.$ac_ext
30809cat >>conftest.$ac_ext <<_ACEOF
30810/* end confdefs.h.  */
30811#include <$ac_header>
30812_ACEOF
30813if { (ac_try="$ac_cpp conftest.$ac_ext"
30814case "(($ac_try" in
30815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30816  *) ac_try_echo=$ac_try;;
30817esac
30818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30819  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30820  ac_status=$?
30821  grep -v '^ *+' conftest.er1 >conftest.err
30822  rm -f conftest.er1
30823  cat conftest.err >&5
30824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30825  (exit $ac_status); } >/dev/null; then
30826  if test -s conftest.err; then
30827    ac_cpp_err=$ac_c_preproc_warn_flag
30828    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30829  else
30830    ac_cpp_err=
30831  fi
30832else
30833  ac_cpp_err=yes
30834fi
30835if test -z "$ac_cpp_err"; then
30836  ac_header_preproc=yes
30837else
30838  echo "$as_me: failed program was:" >&5
30839sed 's/^/| /' conftest.$ac_ext >&5
30840
30841  ac_header_preproc=no
30842fi
30843
30844rm -f conftest.err conftest.$ac_ext
30845{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30846echo "${ECHO_T}$ac_header_preproc" >&6; }
30847
30848# So?  What about this header?
30849case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30850  yes:no: )
30851    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30852echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30853    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30854echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30855    ac_header_preproc=yes
30856    ;;
30857  no:yes:* )
30858    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30859echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30860    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30861echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30862    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30863echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30864    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30865echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30866    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30867echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30868    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30869echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30870    ( cat <<\_ASBOX
30871## ----------------------------------- ##
30872## Report this to llvmbugs@cs.uiuc.edu ##
30873## ----------------------------------- ##
30874_ASBOX
30875     ) | sed "s/^/$as_me: WARNING:     /" >&2
30876    ;;
30877esac
30878{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30879echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30880if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30881  echo $ECHO_N "(cached) $ECHO_C" >&6
30882else
30883  eval "$as_ac_Header=\$ac_header_preproc"
30884fi
30885ac_res=`eval echo '${'$as_ac_Header'}'`
30886	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30887echo "${ECHO_T}$ac_res" >&6; }
30888
30889fi
30890if test `eval echo '${'$as_ac_Header'}'` = yes; then
30891  cat >>confdefs.h <<_ACEOF
30892#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30893_ACEOF
30894 HAVE_PTHREAD=1
30895
30896else
30897  HAVE_PTHREAD=0
30898
30899fi
30900
30901done
30902
30903else
30904  HAVE_PTHREAD=0
30905
30906fi
30907
30908if test "$llvm_cv_enable_libffi" = "yes" ; then
30909
30910
30911for ac_header in ffi.h ffi/ffi.h
30912do
30913as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30914if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30915  { echo "$as_me:$LINENO: checking for $ac_header" >&5
30916echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30917if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30918  echo $ECHO_N "(cached) $ECHO_C" >&6
30919fi
30920ac_res=`eval echo '${'$as_ac_Header'}'`
30921	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30922echo "${ECHO_T}$ac_res" >&6; }
30923else
30924  # Is the header compilable?
30925{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30926echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30927cat >conftest.$ac_ext <<_ACEOF
30928/* confdefs.h.  */
30929_ACEOF
30930cat confdefs.h >>conftest.$ac_ext
30931cat >>conftest.$ac_ext <<_ACEOF
30932/* end confdefs.h.  */
30933$ac_includes_default
30934#include <$ac_header>
30935_ACEOF
30936rm -f conftest.$ac_objext
30937if { (ac_try="$ac_compile"
30938case "(($ac_try" in
30939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30940  *) ac_try_echo=$ac_try;;
30941esac
30942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30943  (eval "$ac_compile") 2>conftest.er1
30944  ac_status=$?
30945  grep -v '^ *+' conftest.er1 >conftest.err
30946  rm -f conftest.er1
30947  cat conftest.err >&5
30948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30949  (exit $ac_status); } &&
30950	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30951  { (case "(($ac_try" in
30952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30953  *) ac_try_echo=$ac_try;;
30954esac
30955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30956  (eval "$ac_try") 2>&5
30957  ac_status=$?
30958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30959  (exit $ac_status); }; } &&
30960	 { ac_try='test -s conftest.$ac_objext'
30961  { (case "(($ac_try" in
30962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30963  *) ac_try_echo=$ac_try;;
30964esac
30965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30966  (eval "$ac_try") 2>&5
30967  ac_status=$?
30968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30969  (exit $ac_status); }; }; then
30970  ac_header_compiler=yes
30971else
30972  echo "$as_me: failed program was:" >&5
30973sed 's/^/| /' conftest.$ac_ext >&5
30974
30975	ac_header_compiler=no
30976fi
30977
30978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30979{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30980echo "${ECHO_T}$ac_header_compiler" >&6; }
30981
30982# Is the header present?
30983{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30984echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30985cat >conftest.$ac_ext <<_ACEOF
30986/* confdefs.h.  */
30987_ACEOF
30988cat confdefs.h >>conftest.$ac_ext
30989cat >>conftest.$ac_ext <<_ACEOF
30990/* end confdefs.h.  */
30991#include <$ac_header>
30992_ACEOF
30993if { (ac_try="$ac_cpp conftest.$ac_ext"
30994case "(($ac_try" in
30995  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30996  *) ac_try_echo=$ac_try;;
30997esac
30998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30999  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31000  ac_status=$?
31001  grep -v '^ *+' conftest.er1 >conftest.err
31002  rm -f conftest.er1
31003  cat conftest.err >&5
31004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31005  (exit $ac_status); } >/dev/null; then
31006  if test -s conftest.err; then
31007    ac_cpp_err=$ac_c_preproc_warn_flag
31008    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31009  else
31010    ac_cpp_err=
31011  fi
31012else
31013  ac_cpp_err=yes
31014fi
31015if test -z "$ac_cpp_err"; then
31016  ac_header_preproc=yes
31017else
31018  echo "$as_me: failed program was:" >&5
31019sed 's/^/| /' conftest.$ac_ext >&5
31020
31021  ac_header_preproc=no
31022fi
31023
31024rm -f conftest.err conftest.$ac_ext
31025{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31026echo "${ECHO_T}$ac_header_preproc" >&6; }
31027
31028# So?  What about this header?
31029case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31030  yes:no: )
31031    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31032echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31033    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31034echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31035    ac_header_preproc=yes
31036    ;;
31037  no:yes:* )
31038    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31039echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31040    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31041echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31042    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31043echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31044    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31045echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31046    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31047echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31048    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31049echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31050    ( cat <<\_ASBOX
31051## ----------------------------------- ##
31052## Report this to llvmbugs@cs.uiuc.edu ##
31053## ----------------------------------- ##
31054_ASBOX
31055     ) | sed "s/^/$as_me: WARNING:     /" >&2
31056    ;;
31057esac
31058{ echo "$as_me:$LINENO: checking for $ac_header" >&5
31059echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31060if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31061  echo $ECHO_N "(cached) $ECHO_C" >&6
31062else
31063  eval "$as_ac_Header=\$ac_header_preproc"
31064fi
31065ac_res=`eval echo '${'$as_ac_Header'}'`
31066	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31067echo "${ECHO_T}$ac_res" >&6; }
31068
31069fi
31070if test `eval echo '${'$as_ac_Header'}'` = yes; then
31071  cat >>confdefs.h <<_ACEOF
31072#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31073_ACEOF
31074
31075fi
31076
31077done
31078
31079fi
31080
31081
31082
31083  { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
31084echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
31085if test "${ac_cv_huge_val_sanity+set}" = set; then
31086  echo $ECHO_N "(cached) $ECHO_C" >&6
31087else
31088
31089    ac_ext=cpp
31090ac_cpp='$CXXCPP $CPPFLAGS'
31091ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31092ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31093ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31094
31095    CXXFLAGS=-pedantic
31096    if test "$cross_compiling" = yes; then
31097  ac_cv_huge_val_sanity=yes
31098else
31099  cat >conftest.$ac_ext <<_ACEOF
31100/* confdefs.h.  */
31101_ACEOF
31102cat confdefs.h >>conftest.$ac_ext
31103cat >>conftest.$ac_ext <<_ACEOF
31104/* end confdefs.h.  */
31105#include <math.h>
31106int
31107main ()
31108{
31109double x = HUGE_VAL; return x != x;
31110  ;
31111  return 0;
31112}
31113_ACEOF
31114rm -f conftest$ac_exeext
31115if { (ac_try="$ac_link"
31116case "(($ac_try" in
31117  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31118  *) ac_try_echo=$ac_try;;
31119esac
31120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31121  (eval "$ac_link") 2>&5
31122  ac_status=$?
31123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31124  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31125  { (case "(($ac_try" in
31126  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31127  *) ac_try_echo=$ac_try;;
31128esac
31129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31130  (eval "$ac_try") 2>&5
31131  ac_status=$?
31132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31133  (exit $ac_status); }; }; then
31134  ac_cv_huge_val_sanity=yes
31135else
31136  echo "$as_me: program exited with status $ac_status" >&5
31137echo "$as_me: failed program was:" >&5
31138sed 's/^/| /' conftest.$ac_ext >&5
31139
31140( exit $ac_status )
31141ac_cv_huge_val_sanity=no
31142fi
31143rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31144fi
31145
31146
31147    ac_ext=c
31148ac_cpp='$CPP $CPPFLAGS'
31149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31151ac_compiler_gnu=$ac_cv_c_compiler_gnu
31152
31153
31154fi
31155{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31156echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31157  HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31158
31159
31160{ echo "$as_me:$LINENO: checking for pid_t" >&5
31161echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31162if test "${ac_cv_type_pid_t+set}" = set; then
31163  echo $ECHO_N "(cached) $ECHO_C" >&6
31164else
31165  cat >conftest.$ac_ext <<_ACEOF
31166/* confdefs.h.  */
31167_ACEOF
31168cat confdefs.h >>conftest.$ac_ext
31169cat >>conftest.$ac_ext <<_ACEOF
31170/* end confdefs.h.  */
31171$ac_includes_default
31172typedef pid_t ac__type_new_;
31173int
31174main ()
31175{
31176if ((ac__type_new_ *) 0)
31177  return 0;
31178if (sizeof (ac__type_new_))
31179  return 0;
31180  ;
31181  return 0;
31182}
31183_ACEOF
31184rm -f conftest.$ac_objext
31185if { (ac_try="$ac_compile"
31186case "(($ac_try" in
31187  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31188  *) ac_try_echo=$ac_try;;
31189esac
31190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31191  (eval "$ac_compile") 2>conftest.er1
31192  ac_status=$?
31193  grep -v '^ *+' conftest.er1 >conftest.err
31194  rm -f conftest.er1
31195  cat conftest.err >&5
31196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31197  (exit $ac_status); } &&
31198	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31199  { (case "(($ac_try" in
31200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31201  *) ac_try_echo=$ac_try;;
31202esac
31203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31204  (eval "$ac_try") 2>&5
31205  ac_status=$?
31206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31207  (exit $ac_status); }; } &&
31208	 { ac_try='test -s conftest.$ac_objext'
31209  { (case "(($ac_try" in
31210  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31211  *) ac_try_echo=$ac_try;;
31212esac
31213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31214  (eval "$ac_try") 2>&5
31215  ac_status=$?
31216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31217  (exit $ac_status); }; }; then
31218  ac_cv_type_pid_t=yes
31219else
31220  echo "$as_me: failed program was:" >&5
31221sed 's/^/| /' conftest.$ac_ext >&5
31222
31223	ac_cv_type_pid_t=no
31224fi
31225
31226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31227fi
31228{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31229echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31230if test $ac_cv_type_pid_t = yes; then
31231  :
31232else
31233
31234cat >>confdefs.h <<_ACEOF
31235#define pid_t int
31236_ACEOF
31237
31238fi
31239
31240{ echo "$as_me:$LINENO: checking for size_t" >&5
31241echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31242if test "${ac_cv_type_size_t+set}" = set; then
31243  echo $ECHO_N "(cached) $ECHO_C" >&6
31244else
31245  cat >conftest.$ac_ext <<_ACEOF
31246/* confdefs.h.  */
31247_ACEOF
31248cat confdefs.h >>conftest.$ac_ext
31249cat >>conftest.$ac_ext <<_ACEOF
31250/* end confdefs.h.  */
31251$ac_includes_default
31252typedef size_t ac__type_new_;
31253int
31254main ()
31255{
31256if ((ac__type_new_ *) 0)
31257  return 0;
31258if (sizeof (ac__type_new_))
31259  return 0;
31260  ;
31261  return 0;
31262}
31263_ACEOF
31264rm -f conftest.$ac_objext
31265if { (ac_try="$ac_compile"
31266case "(($ac_try" in
31267  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31268  *) ac_try_echo=$ac_try;;
31269esac
31270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31271  (eval "$ac_compile") 2>conftest.er1
31272  ac_status=$?
31273  grep -v '^ *+' conftest.er1 >conftest.err
31274  rm -f conftest.er1
31275  cat conftest.err >&5
31276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31277  (exit $ac_status); } &&
31278	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31279  { (case "(($ac_try" in
31280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31281  *) ac_try_echo=$ac_try;;
31282esac
31283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31284  (eval "$ac_try") 2>&5
31285  ac_status=$?
31286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31287  (exit $ac_status); }; } &&
31288	 { ac_try='test -s conftest.$ac_objext'
31289  { (case "(($ac_try" in
31290  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31291  *) ac_try_echo=$ac_try;;
31292esac
31293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31294  (eval "$ac_try") 2>&5
31295  ac_status=$?
31296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31297  (exit $ac_status); }; }; then
31298  ac_cv_type_size_t=yes
31299else
31300  echo "$as_me: failed program was:" >&5
31301sed 's/^/| /' conftest.$ac_ext >&5
31302
31303	ac_cv_type_size_t=no
31304fi
31305
31306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31307fi
31308{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31309echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31310if test $ac_cv_type_size_t = yes; then
31311  :
31312else
31313
31314cat >>confdefs.h <<_ACEOF
31315#define size_t unsigned int
31316_ACEOF
31317
31318fi
31319
31320{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31321echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
31322if test "${ac_cv_type_signal+set}" = set; then
31323  echo $ECHO_N "(cached) $ECHO_C" >&6
31324else
31325  cat >conftest.$ac_ext <<_ACEOF
31326/* confdefs.h.  */
31327_ACEOF
31328cat confdefs.h >>conftest.$ac_ext
31329cat >>conftest.$ac_ext <<_ACEOF
31330/* end confdefs.h.  */
31331#include <sys/types.h>
31332#include <signal.h>
31333
31334int
31335main ()
31336{
31337return *(signal (0, 0)) (0) == 1;
31338  ;
31339  return 0;
31340}
31341_ACEOF
31342rm -f conftest.$ac_objext
31343if { (ac_try="$ac_compile"
31344case "(($ac_try" in
31345  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31346  *) ac_try_echo=$ac_try;;
31347esac
31348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31349  (eval "$ac_compile") 2>conftest.er1
31350  ac_status=$?
31351  grep -v '^ *+' conftest.er1 >conftest.err
31352  rm -f conftest.er1
31353  cat conftest.err >&5
31354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31355  (exit $ac_status); } &&
31356	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31357  { (case "(($ac_try" in
31358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31359  *) ac_try_echo=$ac_try;;
31360esac
31361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31362  (eval "$ac_try") 2>&5
31363  ac_status=$?
31364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31365  (exit $ac_status); }; } &&
31366	 { ac_try='test -s conftest.$ac_objext'
31367  { (case "(($ac_try" in
31368  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31369  *) ac_try_echo=$ac_try;;
31370esac
31371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31372  (eval "$ac_try") 2>&5
31373  ac_status=$?
31374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31375  (exit $ac_status); }; }; then
31376  ac_cv_type_signal=int
31377else
31378  echo "$as_me: failed program was:" >&5
31379sed 's/^/| /' conftest.$ac_ext >&5
31380
31381	ac_cv_type_signal=void
31382fi
31383
31384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31385fi
31386{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31387echo "${ECHO_T}$ac_cv_type_signal" >&6; }
31388
31389cat >>confdefs.h <<_ACEOF
31390#define RETSIGTYPE $ac_cv_type_signal
31391_ACEOF
31392
31393
31394{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31395echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31396if test "${ac_cv_struct_tm+set}" = set; then
31397  echo $ECHO_N "(cached) $ECHO_C" >&6
31398else
31399  cat >conftest.$ac_ext <<_ACEOF
31400/* confdefs.h.  */
31401_ACEOF
31402cat confdefs.h >>conftest.$ac_ext
31403cat >>conftest.$ac_ext <<_ACEOF
31404/* end confdefs.h.  */
31405#include <sys/types.h>
31406#include <time.h>
31407
31408int
31409main ()
31410{
31411struct tm *tp; tp->tm_sec;
31412  ;
31413  return 0;
31414}
31415_ACEOF
31416rm -f conftest.$ac_objext
31417if { (ac_try="$ac_compile"
31418case "(($ac_try" in
31419  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31420  *) ac_try_echo=$ac_try;;
31421esac
31422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31423  (eval "$ac_compile") 2>conftest.er1
31424  ac_status=$?
31425  grep -v '^ *+' conftest.er1 >conftest.err
31426  rm -f conftest.er1
31427  cat conftest.err >&5
31428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31429  (exit $ac_status); } &&
31430	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31431  { (case "(($ac_try" in
31432  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31433  *) ac_try_echo=$ac_try;;
31434esac
31435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31436  (eval "$ac_try") 2>&5
31437  ac_status=$?
31438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31439  (exit $ac_status); }; } &&
31440	 { ac_try='test -s conftest.$ac_objext'
31441  { (case "(($ac_try" in
31442  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31443  *) ac_try_echo=$ac_try;;
31444esac
31445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31446  (eval "$ac_try") 2>&5
31447  ac_status=$?
31448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31449  (exit $ac_status); }; }; then
31450  ac_cv_struct_tm=time.h
31451else
31452  echo "$as_me: failed program was:" >&5
31453sed 's/^/| /' conftest.$ac_ext >&5
31454
31455	ac_cv_struct_tm=sys/time.h
31456fi
31457
31458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31459fi
31460{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31461echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31462if test $ac_cv_struct_tm = sys/time.h; then
31463
31464cat >>confdefs.h <<\_ACEOF
31465#define TM_IN_SYS_TIME 1
31466_ACEOF
31467
31468fi
31469
31470{ echo "$as_me:$LINENO: checking for int64_t" >&5
31471echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
31472if test "${ac_cv_type_int64_t+set}" = set; then
31473  echo $ECHO_N "(cached) $ECHO_C" >&6
31474else
31475  cat >conftest.$ac_ext <<_ACEOF
31476/* confdefs.h.  */
31477_ACEOF
31478cat confdefs.h >>conftest.$ac_ext
31479cat >>conftest.$ac_ext <<_ACEOF
31480/* end confdefs.h.  */
31481$ac_includes_default
31482typedef int64_t ac__type_new_;
31483int
31484main ()
31485{
31486if ((ac__type_new_ *) 0)
31487  return 0;
31488if (sizeof (ac__type_new_))
31489  return 0;
31490  ;
31491  return 0;
31492}
31493_ACEOF
31494rm -f conftest.$ac_objext
31495if { (ac_try="$ac_compile"
31496case "(($ac_try" in
31497  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31498  *) ac_try_echo=$ac_try;;
31499esac
31500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31501  (eval "$ac_compile") 2>conftest.er1
31502  ac_status=$?
31503  grep -v '^ *+' conftest.er1 >conftest.err
31504  rm -f conftest.er1
31505  cat conftest.err >&5
31506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31507  (exit $ac_status); } &&
31508	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31509  { (case "(($ac_try" in
31510  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31511  *) ac_try_echo=$ac_try;;
31512esac
31513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31514  (eval "$ac_try") 2>&5
31515  ac_status=$?
31516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31517  (exit $ac_status); }; } &&
31518	 { ac_try='test -s conftest.$ac_objext'
31519  { (case "(($ac_try" in
31520  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31521  *) ac_try_echo=$ac_try;;
31522esac
31523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31524  (eval "$ac_try") 2>&5
31525  ac_status=$?
31526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31527  (exit $ac_status); }; }; then
31528  ac_cv_type_int64_t=yes
31529else
31530  echo "$as_me: failed program was:" >&5
31531sed 's/^/| /' conftest.$ac_ext >&5
31532
31533	ac_cv_type_int64_t=no
31534fi
31535
31536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31537fi
31538{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31539echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
31540if test $ac_cv_type_int64_t = yes; then
31541
31542cat >>confdefs.h <<_ACEOF
31543#define HAVE_INT64_T 1
31544_ACEOF
31545
31546
31547else
31548  { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31549echo "$as_me: error: Type int64_t required but not found" >&2;}
31550   { (exit 1); exit 1; }; }
31551fi
31552
31553{ echo "$as_me:$LINENO: checking for uint64_t" >&5
31554echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
31555if test "${ac_cv_type_uint64_t+set}" = set; then
31556  echo $ECHO_N "(cached) $ECHO_C" >&6
31557else
31558  cat >conftest.$ac_ext <<_ACEOF
31559/* confdefs.h.  */
31560_ACEOF
31561cat confdefs.h >>conftest.$ac_ext
31562cat >>conftest.$ac_ext <<_ACEOF
31563/* end confdefs.h.  */
31564$ac_includes_default
31565typedef uint64_t ac__type_new_;
31566int
31567main ()
31568{
31569if ((ac__type_new_ *) 0)
31570  return 0;
31571if (sizeof (ac__type_new_))
31572  return 0;
31573  ;
31574  return 0;
31575}
31576_ACEOF
31577rm -f conftest.$ac_objext
31578if { (ac_try="$ac_compile"
31579case "(($ac_try" in
31580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31581  *) ac_try_echo=$ac_try;;
31582esac
31583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31584  (eval "$ac_compile") 2>conftest.er1
31585  ac_status=$?
31586  grep -v '^ *+' conftest.er1 >conftest.err
31587  rm -f conftest.er1
31588  cat conftest.err >&5
31589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31590  (exit $ac_status); } &&
31591	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31592  { (case "(($ac_try" in
31593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31594  *) ac_try_echo=$ac_try;;
31595esac
31596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31597  (eval "$ac_try") 2>&5
31598  ac_status=$?
31599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31600  (exit $ac_status); }; } &&
31601	 { ac_try='test -s conftest.$ac_objext'
31602  { (case "(($ac_try" in
31603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31604  *) ac_try_echo=$ac_try;;
31605esac
31606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31607  (eval "$ac_try") 2>&5
31608  ac_status=$?
31609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31610  (exit $ac_status); }; }; then
31611  ac_cv_type_uint64_t=yes
31612else
31613  echo "$as_me: failed program was:" >&5
31614sed 's/^/| /' conftest.$ac_ext >&5
31615
31616	ac_cv_type_uint64_t=no
31617fi
31618
31619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31620fi
31621{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31622echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
31623if test $ac_cv_type_uint64_t = yes; then
31624
31625cat >>confdefs.h <<_ACEOF
31626#define HAVE_UINT64_T 1
31627_ACEOF
31628
31629
31630else
31631  { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31632echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
31633if test "${ac_cv_type_u_int64_t+set}" = set; then
31634  echo $ECHO_N "(cached) $ECHO_C" >&6
31635else
31636  cat >conftest.$ac_ext <<_ACEOF
31637/* confdefs.h.  */
31638_ACEOF
31639cat confdefs.h >>conftest.$ac_ext
31640cat >>conftest.$ac_ext <<_ACEOF
31641/* end confdefs.h.  */
31642$ac_includes_default
31643typedef u_int64_t ac__type_new_;
31644int
31645main ()
31646{
31647if ((ac__type_new_ *) 0)
31648  return 0;
31649if (sizeof (ac__type_new_))
31650  return 0;
31651  ;
31652  return 0;
31653}
31654_ACEOF
31655rm -f conftest.$ac_objext
31656if { (ac_try="$ac_compile"
31657case "(($ac_try" in
31658  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31659  *) ac_try_echo=$ac_try;;
31660esac
31661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31662  (eval "$ac_compile") 2>conftest.er1
31663  ac_status=$?
31664  grep -v '^ *+' conftest.er1 >conftest.err
31665  rm -f conftest.er1
31666  cat conftest.err >&5
31667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31668  (exit $ac_status); } &&
31669	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31670  { (case "(($ac_try" in
31671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31672  *) ac_try_echo=$ac_try;;
31673esac
31674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31675  (eval "$ac_try") 2>&5
31676  ac_status=$?
31677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31678  (exit $ac_status); }; } &&
31679	 { ac_try='test -s conftest.$ac_objext'
31680  { (case "(($ac_try" in
31681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31682  *) ac_try_echo=$ac_try;;
31683esac
31684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31685  (eval "$ac_try") 2>&5
31686  ac_status=$?
31687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31688  (exit $ac_status); }; }; then
31689  ac_cv_type_u_int64_t=yes
31690else
31691  echo "$as_me: failed program was:" >&5
31692sed 's/^/| /' conftest.$ac_ext >&5
31693
31694	ac_cv_type_u_int64_t=no
31695fi
31696
31697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31698fi
31699{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31700echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
31701if test $ac_cv_type_u_int64_t = yes; then
31702
31703cat >>confdefs.h <<_ACEOF
31704#define HAVE_U_INT64_T 1
31705_ACEOF
31706
31707
31708else
31709  { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31710echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31711   { (exit 1); exit 1; }; }
31712fi
31713
31714fi
31715
31716
31717
31718
31719
31720
31721
31722
31723
31724
31725for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
31726do
31727as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31728{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31729echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31730if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31731  echo $ECHO_N "(cached) $ECHO_C" >&6
31732else
31733  cat >conftest.$ac_ext <<_ACEOF
31734/* confdefs.h.  */
31735_ACEOF
31736cat confdefs.h >>conftest.$ac_ext
31737cat >>conftest.$ac_ext <<_ACEOF
31738/* end confdefs.h.  */
31739/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31740   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31741#define $ac_func innocuous_$ac_func
31742
31743/* System header to define __stub macros and hopefully few prototypes,
31744    which can conflict with char $ac_func (); below.
31745    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31746    <limits.h> exists even on freestanding compilers.  */
31747
31748#ifdef __STDC__
31749# include <limits.h>
31750#else
31751# include <assert.h>
31752#endif
31753
31754#undef $ac_func
31755
31756/* Override any GCC internal prototype to avoid an error.
31757   Use char because int might match the return type of a GCC
31758   builtin and then its argument prototype would still apply.  */
31759#ifdef __cplusplus
31760extern "C"
31761#endif
31762char $ac_func ();
31763/* The GNU C library defines this for functions which it implements
31764    to always fail with ENOSYS.  Some functions are actually named
31765    something starting with __ and the normal name is an alias.  */
31766#if defined __stub_$ac_func || defined __stub___$ac_func
31767choke me
31768#endif
31769
31770int
31771main ()
31772{
31773return $ac_func ();
31774  ;
31775  return 0;
31776}
31777_ACEOF
31778rm -f conftest.$ac_objext conftest$ac_exeext
31779if { (ac_try="$ac_link"
31780case "(($ac_try" in
31781  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31782  *) ac_try_echo=$ac_try;;
31783esac
31784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31785  (eval "$ac_link") 2>conftest.er1
31786  ac_status=$?
31787  grep -v '^ *+' conftest.er1 >conftest.err
31788  rm -f conftest.er1
31789  cat conftest.err >&5
31790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31791  (exit $ac_status); } &&
31792	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31793  { (case "(($ac_try" in
31794  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31795  *) ac_try_echo=$ac_try;;
31796esac
31797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31798  (eval "$ac_try") 2>&5
31799  ac_status=$?
31800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31801  (exit $ac_status); }; } &&
31802	 { ac_try='test -s conftest$ac_exeext'
31803  { (case "(($ac_try" in
31804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31805  *) ac_try_echo=$ac_try;;
31806esac
31807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31808  (eval "$ac_try") 2>&5
31809  ac_status=$?
31810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31811  (exit $ac_status); }; }; then
31812  eval "$as_ac_var=yes"
31813else
31814  echo "$as_me: failed program was:" >&5
31815sed 's/^/| /' conftest.$ac_ext >&5
31816
31817	eval "$as_ac_var=no"
31818fi
31819
31820rm -f core conftest.err conftest.$ac_objext \
31821      conftest$ac_exeext conftest.$ac_ext
31822fi
31823ac_res=`eval echo '${'$as_ac_var'}'`
31824	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31825echo "${ECHO_T}$ac_res" >&6; }
31826if test `eval echo '${'$as_ac_var'}'` = yes; then
31827  cat >>confdefs.h <<_ACEOF
31828#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31829_ACEOF
31830
31831fi
31832done
31833
31834
31835
31836
31837
31838for ac_func in powf fmodf strtof round
31839do
31840as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31841{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31842echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31843if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31844  echo $ECHO_N "(cached) $ECHO_C" >&6
31845else
31846  cat >conftest.$ac_ext <<_ACEOF
31847/* confdefs.h.  */
31848_ACEOF
31849cat confdefs.h >>conftest.$ac_ext
31850cat >>conftest.$ac_ext <<_ACEOF
31851/* end confdefs.h.  */
31852/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31853   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31854#define $ac_func innocuous_$ac_func
31855
31856/* System header to define __stub macros and hopefully few prototypes,
31857    which can conflict with char $ac_func (); below.
31858    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31859    <limits.h> exists even on freestanding compilers.  */
31860
31861#ifdef __STDC__
31862# include <limits.h>
31863#else
31864# include <assert.h>
31865#endif
31866
31867#undef $ac_func
31868
31869/* Override any GCC internal prototype to avoid an error.
31870   Use char because int might match the return type of a GCC
31871   builtin and then its argument prototype would still apply.  */
31872#ifdef __cplusplus
31873extern "C"
31874#endif
31875char $ac_func ();
31876/* The GNU C library defines this for functions which it implements
31877    to always fail with ENOSYS.  Some functions are actually named
31878    something starting with __ and the normal name is an alias.  */
31879#if defined __stub_$ac_func || defined __stub___$ac_func
31880choke me
31881#endif
31882
31883int
31884main ()
31885{
31886return $ac_func ();
31887  ;
31888  return 0;
31889}
31890_ACEOF
31891rm -f conftest.$ac_objext conftest$ac_exeext
31892if { (ac_try="$ac_link"
31893case "(($ac_try" in
31894  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31895  *) ac_try_echo=$ac_try;;
31896esac
31897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31898  (eval "$ac_link") 2>conftest.er1
31899  ac_status=$?
31900  grep -v '^ *+' conftest.er1 >conftest.err
31901  rm -f conftest.er1
31902  cat conftest.err >&5
31903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31904  (exit $ac_status); } &&
31905	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31906  { (case "(($ac_try" in
31907  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31908  *) ac_try_echo=$ac_try;;
31909esac
31910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31911  (eval "$ac_try") 2>&5
31912  ac_status=$?
31913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31914  (exit $ac_status); }; } &&
31915	 { ac_try='test -s conftest$ac_exeext'
31916  { (case "(($ac_try" in
31917  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31918  *) ac_try_echo=$ac_try;;
31919esac
31920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31921  (eval "$ac_try") 2>&5
31922  ac_status=$?
31923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31924  (exit $ac_status); }; }; then
31925  eval "$as_ac_var=yes"
31926else
31927  echo "$as_me: failed program was:" >&5
31928sed 's/^/| /' conftest.$ac_ext >&5
31929
31930	eval "$as_ac_var=no"
31931fi
31932
31933rm -f core conftest.err conftest.$ac_objext \
31934      conftest$ac_exeext conftest.$ac_ext
31935fi
31936ac_res=`eval echo '${'$as_ac_var'}'`
31937	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31938echo "${ECHO_T}$ac_res" >&6; }
31939if test `eval echo '${'$as_ac_var'}'` = yes; then
31940  cat >>confdefs.h <<_ACEOF
31941#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31942_ACEOF
31943
31944fi
31945done
31946
31947
31948
31949
31950
31951
31952for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31953do
31954as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31955{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31956echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31957if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31958  echo $ECHO_N "(cached) $ECHO_C" >&6
31959else
31960  cat >conftest.$ac_ext <<_ACEOF
31961/* confdefs.h.  */
31962_ACEOF
31963cat confdefs.h >>conftest.$ac_ext
31964cat >>conftest.$ac_ext <<_ACEOF
31965/* end confdefs.h.  */
31966/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31967   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31968#define $ac_func innocuous_$ac_func
31969
31970/* System header to define __stub macros and hopefully few prototypes,
31971    which can conflict with char $ac_func (); below.
31972    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31973    <limits.h> exists even on freestanding compilers.  */
31974
31975#ifdef __STDC__
31976# include <limits.h>
31977#else
31978# include <assert.h>
31979#endif
31980
31981#undef $ac_func
31982
31983/* Override any GCC internal prototype to avoid an error.
31984   Use char because int might match the return type of a GCC
31985   builtin and then its argument prototype would still apply.  */
31986#ifdef __cplusplus
31987extern "C"
31988#endif
31989char $ac_func ();
31990/* The GNU C library defines this for functions which it implements
31991    to always fail with ENOSYS.  Some functions are actually named
31992    something starting with __ and the normal name is an alias.  */
31993#if defined __stub_$ac_func || defined __stub___$ac_func
31994choke me
31995#endif
31996
31997int
31998main ()
31999{
32000return $ac_func ();
32001  ;
32002  return 0;
32003}
32004_ACEOF
32005rm -f conftest.$ac_objext conftest$ac_exeext
32006if { (ac_try="$ac_link"
32007case "(($ac_try" in
32008  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32009  *) ac_try_echo=$ac_try;;
32010esac
32011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32012  (eval "$ac_link") 2>conftest.er1
32013  ac_status=$?
32014  grep -v '^ *+' conftest.er1 >conftest.err
32015  rm -f conftest.er1
32016  cat conftest.err >&5
32017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32018  (exit $ac_status); } &&
32019	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32020  { (case "(($ac_try" in
32021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32022  *) ac_try_echo=$ac_try;;
32023esac
32024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32025  (eval "$ac_try") 2>&5
32026  ac_status=$?
32027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32028  (exit $ac_status); }; } &&
32029	 { ac_try='test -s conftest$ac_exeext'
32030  { (case "(($ac_try" in
32031  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32032  *) ac_try_echo=$ac_try;;
32033esac
32034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32035  (eval "$ac_try") 2>&5
32036  ac_status=$?
32037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32038  (exit $ac_status); }; }; then
32039  eval "$as_ac_var=yes"
32040else
32041  echo "$as_me: failed program was:" >&5
32042sed 's/^/| /' conftest.$ac_ext >&5
32043
32044	eval "$as_ac_var=no"
32045fi
32046
32047rm -f core conftest.err conftest.$ac_objext \
32048      conftest$ac_exeext conftest.$ac_ext
32049fi
32050ac_res=`eval echo '${'$as_ac_var'}'`
32051	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32052echo "${ECHO_T}$ac_res" >&6; }
32053if test `eval echo '${'$as_ac_var'}'` = yes; then
32054  cat >>confdefs.h <<_ACEOF
32055#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32056_ACEOF
32057
32058fi
32059done
32060
32061
32062
32063
32064for ac_func in isatty mkdtemp mkstemp
32065do
32066as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32067{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32068echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32069if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32070  echo $ECHO_N "(cached) $ECHO_C" >&6
32071else
32072  cat >conftest.$ac_ext <<_ACEOF
32073/* confdefs.h.  */
32074_ACEOF
32075cat confdefs.h >>conftest.$ac_ext
32076cat >>conftest.$ac_ext <<_ACEOF
32077/* end confdefs.h.  */
32078/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32079   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32080#define $ac_func innocuous_$ac_func
32081
32082/* System header to define __stub macros and hopefully few prototypes,
32083    which can conflict with char $ac_func (); below.
32084    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32085    <limits.h> exists even on freestanding compilers.  */
32086
32087#ifdef __STDC__
32088# include <limits.h>
32089#else
32090# include <assert.h>
32091#endif
32092
32093#undef $ac_func
32094
32095/* Override any GCC internal prototype to avoid an error.
32096   Use char because int might match the return type of a GCC
32097   builtin and then its argument prototype would still apply.  */
32098#ifdef __cplusplus
32099extern "C"
32100#endif
32101char $ac_func ();
32102/* The GNU C library defines this for functions which it implements
32103    to always fail with ENOSYS.  Some functions are actually named
32104    something starting with __ and the normal name is an alias.  */
32105#if defined __stub_$ac_func || defined __stub___$ac_func
32106choke me
32107#endif
32108
32109int
32110main ()
32111{
32112return $ac_func ();
32113  ;
32114  return 0;
32115}
32116_ACEOF
32117rm -f conftest.$ac_objext conftest$ac_exeext
32118if { (ac_try="$ac_link"
32119case "(($ac_try" in
32120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32121  *) ac_try_echo=$ac_try;;
32122esac
32123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32124  (eval "$ac_link") 2>conftest.er1
32125  ac_status=$?
32126  grep -v '^ *+' conftest.er1 >conftest.err
32127  rm -f conftest.er1
32128  cat conftest.err >&5
32129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32130  (exit $ac_status); } &&
32131	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32132  { (case "(($ac_try" in
32133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32134  *) ac_try_echo=$ac_try;;
32135esac
32136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32137  (eval "$ac_try") 2>&5
32138  ac_status=$?
32139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32140  (exit $ac_status); }; } &&
32141	 { ac_try='test -s conftest$ac_exeext'
32142  { (case "(($ac_try" in
32143  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32144  *) ac_try_echo=$ac_try;;
32145esac
32146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32147  (eval "$ac_try") 2>&5
32148  ac_status=$?
32149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32150  (exit $ac_status); }; }; then
32151  eval "$as_ac_var=yes"
32152else
32153  echo "$as_me: failed program was:" >&5
32154sed 's/^/| /' conftest.$ac_ext >&5
32155
32156	eval "$as_ac_var=no"
32157fi
32158
32159rm -f core conftest.err conftest.$ac_objext \
32160      conftest$ac_exeext conftest.$ac_ext
32161fi
32162ac_res=`eval echo '${'$as_ac_var'}'`
32163	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32164echo "${ECHO_T}$ac_res" >&6; }
32165if test `eval echo '${'$as_ac_var'}'` = yes; then
32166  cat >>confdefs.h <<_ACEOF
32167#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32168_ACEOF
32169
32170fi
32171done
32172
32173
32174
32175
32176
32177
32178for ac_func in mktemp realpath sbrk setrlimit strdup
32179do
32180as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32181{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32182echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32183if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32184  echo $ECHO_N "(cached) $ECHO_C" >&6
32185else
32186  cat >conftest.$ac_ext <<_ACEOF
32187/* confdefs.h.  */
32188_ACEOF
32189cat confdefs.h >>conftest.$ac_ext
32190cat >>conftest.$ac_ext <<_ACEOF
32191/* end confdefs.h.  */
32192/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32193   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32194#define $ac_func innocuous_$ac_func
32195
32196/* System header to define __stub macros and hopefully few prototypes,
32197    which can conflict with char $ac_func (); below.
32198    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32199    <limits.h> exists even on freestanding compilers.  */
32200
32201#ifdef __STDC__
32202# include <limits.h>
32203#else
32204# include <assert.h>
32205#endif
32206
32207#undef $ac_func
32208
32209/* Override any GCC internal prototype to avoid an error.
32210   Use char because int might match the return type of a GCC
32211   builtin and then its argument prototype would still apply.  */
32212#ifdef __cplusplus
32213extern "C"
32214#endif
32215char $ac_func ();
32216/* The GNU C library defines this for functions which it implements
32217    to always fail with ENOSYS.  Some functions are actually named
32218    something starting with __ and the normal name is an alias.  */
32219#if defined __stub_$ac_func || defined __stub___$ac_func
32220choke me
32221#endif
32222
32223int
32224main ()
32225{
32226return $ac_func ();
32227  ;
32228  return 0;
32229}
32230_ACEOF
32231rm -f conftest.$ac_objext conftest$ac_exeext
32232if { (ac_try="$ac_link"
32233case "(($ac_try" in
32234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32235  *) ac_try_echo=$ac_try;;
32236esac
32237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32238  (eval "$ac_link") 2>conftest.er1
32239  ac_status=$?
32240  grep -v '^ *+' conftest.er1 >conftest.err
32241  rm -f conftest.er1
32242  cat conftest.err >&5
32243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32244  (exit $ac_status); } &&
32245	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32246  { (case "(($ac_try" in
32247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32248  *) ac_try_echo=$ac_try;;
32249esac
32250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32251  (eval "$ac_try") 2>&5
32252  ac_status=$?
32253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32254  (exit $ac_status); }; } &&
32255	 { ac_try='test -s conftest$ac_exeext'
32256  { (case "(($ac_try" in
32257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32258  *) ac_try_echo=$ac_try;;
32259esac
32260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32261  (eval "$ac_try") 2>&5
32262  ac_status=$?
32263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32264  (exit $ac_status); }; }; then
32265  eval "$as_ac_var=yes"
32266else
32267  echo "$as_me: failed program was:" >&5
32268sed 's/^/| /' conftest.$ac_ext >&5
32269
32270	eval "$as_ac_var=no"
32271fi
32272
32273rm -f core conftest.err conftest.$ac_objext \
32274      conftest$ac_exeext conftest.$ac_ext
32275fi
32276ac_res=`eval echo '${'$as_ac_var'}'`
32277	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32278echo "${ECHO_T}$ac_res" >&6; }
32279if test `eval echo '${'$as_ac_var'}'` = yes; then
32280  cat >>confdefs.h <<_ACEOF
32281#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32282_ACEOF
32283
32284fi
32285done
32286
32287
32288
32289
32290for ac_func in strerror strerror_r strerror_s
32291do
32292as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32293{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32294echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32295if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32296  echo $ECHO_N "(cached) $ECHO_C" >&6
32297else
32298  cat >conftest.$ac_ext <<_ACEOF
32299/* confdefs.h.  */
32300_ACEOF
32301cat confdefs.h >>conftest.$ac_ext
32302cat >>conftest.$ac_ext <<_ACEOF
32303/* end confdefs.h.  */
32304/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32305   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32306#define $ac_func innocuous_$ac_func
32307
32308/* System header to define __stub macros and hopefully few prototypes,
32309    which can conflict with char $ac_func (); below.
32310    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32311    <limits.h> exists even on freestanding compilers.  */
32312
32313#ifdef __STDC__
32314# include <limits.h>
32315#else
32316# include <assert.h>
32317#endif
32318
32319#undef $ac_func
32320
32321/* Override any GCC internal prototype to avoid an error.
32322   Use char because int might match the return type of a GCC
32323   builtin and then its argument prototype would still apply.  */
32324#ifdef __cplusplus
32325extern "C"
32326#endif
32327char $ac_func ();
32328/* The GNU C library defines this for functions which it implements
32329    to always fail with ENOSYS.  Some functions are actually named
32330    something starting with __ and the normal name is an alias.  */
32331#if defined __stub_$ac_func || defined __stub___$ac_func
32332choke me
32333#endif
32334
32335int
32336main ()
32337{
32338return $ac_func ();
32339  ;
32340  return 0;
32341}
32342_ACEOF
32343rm -f conftest.$ac_objext conftest$ac_exeext
32344if { (ac_try="$ac_link"
32345case "(($ac_try" in
32346  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32347  *) ac_try_echo=$ac_try;;
32348esac
32349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32350  (eval "$ac_link") 2>conftest.er1
32351  ac_status=$?
32352  grep -v '^ *+' conftest.er1 >conftest.err
32353  rm -f conftest.er1
32354  cat conftest.err >&5
32355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32356  (exit $ac_status); } &&
32357	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32358  { (case "(($ac_try" in
32359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32360  *) ac_try_echo=$ac_try;;
32361esac
32362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32363  (eval "$ac_try") 2>&5
32364  ac_status=$?
32365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32366  (exit $ac_status); }; } &&
32367	 { ac_try='test -s conftest$ac_exeext'
32368  { (case "(($ac_try" in
32369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32370  *) ac_try_echo=$ac_try;;
32371esac
32372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32373  (eval "$ac_try") 2>&5
32374  ac_status=$?
32375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32376  (exit $ac_status); }; }; then
32377  eval "$as_ac_var=yes"
32378else
32379  echo "$as_me: failed program was:" >&5
32380sed 's/^/| /' conftest.$ac_ext >&5
32381
32382	eval "$as_ac_var=no"
32383fi
32384
32385rm -f core conftest.err conftest.$ac_objext \
32386      conftest$ac_exeext conftest.$ac_ext
32387fi
32388ac_res=`eval echo '${'$as_ac_var'}'`
32389	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32390echo "${ECHO_T}$ac_res" >&6; }
32391if test `eval echo '${'$as_ac_var'}'` = yes; then
32392  cat >>confdefs.h <<_ACEOF
32393#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32394_ACEOF
32395
32396fi
32397done
32398
32399
32400
32401
32402
32403for ac_func in strtoll strtoq sysconf malloc_zone_statistics
32404do
32405as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32406{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32407echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32408if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32409  echo $ECHO_N "(cached) $ECHO_C" >&6
32410else
32411  cat >conftest.$ac_ext <<_ACEOF
32412/* confdefs.h.  */
32413_ACEOF
32414cat confdefs.h >>conftest.$ac_ext
32415cat >>conftest.$ac_ext <<_ACEOF
32416/* end confdefs.h.  */
32417/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32418   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32419#define $ac_func innocuous_$ac_func
32420
32421/* System header to define __stub macros and hopefully few prototypes,
32422    which can conflict with char $ac_func (); below.
32423    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32424    <limits.h> exists even on freestanding compilers.  */
32425
32426#ifdef __STDC__
32427# include <limits.h>
32428#else
32429# include <assert.h>
32430#endif
32431
32432#undef $ac_func
32433
32434/* Override any GCC internal prototype to avoid an error.
32435   Use char because int might match the return type of a GCC
32436   builtin and then its argument prototype would still apply.  */
32437#ifdef __cplusplus
32438extern "C"
32439#endif
32440char $ac_func ();
32441/* The GNU C library defines this for functions which it implements
32442    to always fail with ENOSYS.  Some functions are actually named
32443    something starting with __ and the normal name is an alias.  */
32444#if defined __stub_$ac_func || defined __stub___$ac_func
32445choke me
32446#endif
32447
32448int
32449main ()
32450{
32451return $ac_func ();
32452  ;
32453  return 0;
32454}
32455_ACEOF
32456rm -f conftest.$ac_objext conftest$ac_exeext
32457if { (ac_try="$ac_link"
32458case "(($ac_try" in
32459  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32460  *) ac_try_echo=$ac_try;;
32461esac
32462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32463  (eval "$ac_link") 2>conftest.er1
32464  ac_status=$?
32465  grep -v '^ *+' conftest.er1 >conftest.err
32466  rm -f conftest.er1
32467  cat conftest.err >&5
32468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32469  (exit $ac_status); } &&
32470	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32471  { (case "(($ac_try" in
32472  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32473  *) ac_try_echo=$ac_try;;
32474esac
32475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32476  (eval "$ac_try") 2>&5
32477  ac_status=$?
32478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32479  (exit $ac_status); }; } &&
32480	 { ac_try='test -s conftest$ac_exeext'
32481  { (case "(($ac_try" in
32482  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32483  *) ac_try_echo=$ac_try;;
32484esac
32485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32486  (eval "$ac_try") 2>&5
32487  ac_status=$?
32488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32489  (exit $ac_status); }; }; then
32490  eval "$as_ac_var=yes"
32491else
32492  echo "$as_me: failed program was:" >&5
32493sed 's/^/| /' conftest.$ac_ext >&5
32494
32495	eval "$as_ac_var=no"
32496fi
32497
32498rm -f core conftest.err conftest.$ac_objext \
32499      conftest$ac_exeext conftest.$ac_ext
32500fi
32501ac_res=`eval echo '${'$as_ac_var'}'`
32502	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32503echo "${ECHO_T}$ac_res" >&6; }
32504if test `eval echo '${'$as_ac_var'}'` = yes; then
32505  cat >>confdefs.h <<_ACEOF
32506#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32507_ACEOF
32508
32509fi
32510done
32511
32512
32513
32514
32515
32516for ac_func in setjmp longjmp sigsetjmp siglongjmp
32517do
32518as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32519{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32520echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32521if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32522  echo $ECHO_N "(cached) $ECHO_C" >&6
32523else
32524  cat >conftest.$ac_ext <<_ACEOF
32525/* confdefs.h.  */
32526_ACEOF
32527cat confdefs.h >>conftest.$ac_ext
32528cat >>conftest.$ac_ext <<_ACEOF
32529/* end confdefs.h.  */
32530/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32531   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32532#define $ac_func innocuous_$ac_func
32533
32534/* System header to define __stub macros and hopefully few prototypes,
32535    which can conflict with char $ac_func (); below.
32536    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32537    <limits.h> exists even on freestanding compilers.  */
32538
32539#ifdef __STDC__
32540# include <limits.h>
32541#else
32542# include <assert.h>
32543#endif
32544
32545#undef $ac_func
32546
32547/* Override any GCC internal prototype to avoid an error.
32548   Use char because int might match the return type of a GCC
32549   builtin and then its argument prototype would still apply.  */
32550#ifdef __cplusplus
32551extern "C"
32552#endif
32553char $ac_func ();
32554/* The GNU C library defines this for functions which it implements
32555    to always fail with ENOSYS.  Some functions are actually named
32556    something starting with __ and the normal name is an alias.  */
32557#if defined __stub_$ac_func || defined __stub___$ac_func
32558choke me
32559#endif
32560
32561int
32562main ()
32563{
32564return $ac_func ();
32565  ;
32566  return 0;
32567}
32568_ACEOF
32569rm -f conftest.$ac_objext conftest$ac_exeext
32570if { (ac_try="$ac_link"
32571case "(($ac_try" in
32572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32573  *) ac_try_echo=$ac_try;;
32574esac
32575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32576  (eval "$ac_link") 2>conftest.er1
32577  ac_status=$?
32578  grep -v '^ *+' conftest.er1 >conftest.err
32579  rm -f conftest.er1
32580  cat conftest.err >&5
32581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32582  (exit $ac_status); } &&
32583	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32584  { (case "(($ac_try" in
32585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32586  *) ac_try_echo=$ac_try;;
32587esac
32588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32589  (eval "$ac_try") 2>&5
32590  ac_status=$?
32591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32592  (exit $ac_status); }; } &&
32593	 { ac_try='test -s conftest$ac_exeext'
32594  { (case "(($ac_try" in
32595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32596  *) ac_try_echo=$ac_try;;
32597esac
32598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32599  (eval "$ac_try") 2>&5
32600  ac_status=$?
32601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32602  (exit $ac_status); }; }; then
32603  eval "$as_ac_var=yes"
32604else
32605  echo "$as_me: failed program was:" >&5
32606sed 's/^/| /' conftest.$ac_ext >&5
32607
32608	eval "$as_ac_var=no"
32609fi
32610
32611rm -f core conftest.err conftest.$ac_objext \
32612      conftest$ac_exeext conftest.$ac_ext
32613fi
32614ac_res=`eval echo '${'$as_ac_var'}'`
32615	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32616echo "${ECHO_T}$ac_res" >&6; }
32617if test `eval echo '${'$as_ac_var'}'` = yes; then
32618  cat >>confdefs.h <<_ACEOF
32619#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32620_ACEOF
32621
32622fi
32623done
32624
32625{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32626echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
32627if test "${llvm_cv_c_printf_a+set}" = set; then
32628  echo $ECHO_N "(cached) $ECHO_C" >&6
32629else
32630  ac_ext=c
32631ac_cpp='$CPP $CPPFLAGS'
32632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32634ac_compiler_gnu=$ac_cv_c_compiler_gnu
32635
32636 if test "$cross_compiling" = yes; then
32637  llvmac_cv_c_printf_a=no
32638else
32639  cat >conftest.$ac_ext <<_ACEOF
32640
32641  /* confdefs.h.  */
32642_ACEOF
32643cat confdefs.h >>conftest.$ac_ext
32644cat >>conftest.$ac_ext <<_ACEOF
32645/* end confdefs.h.  */
32646
32647#include <stdio.h>
32648#include <stdlib.h>
32649
32650int
32651main ()
32652{
32653
32654volatile double A, B;
32655char Buffer[100];
32656A = 1;
32657A /= 10.0;
32658sprintf(Buffer, "%a", A);
32659B = atof(Buffer);
32660if (A != B)
32661  return (1);
32662if (A != 0x1.999999999999ap-4)
32663  return (1);
32664return (0);
32665  ;
32666  return 0;
32667}
32668_ACEOF
32669rm -f conftest$ac_exeext
32670if { (ac_try="$ac_link"
32671case "(($ac_try" in
32672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32673  *) ac_try_echo=$ac_try;;
32674esac
32675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32676  (eval "$ac_link") 2>&5
32677  ac_status=$?
32678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32679  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32680  { (case "(($ac_try" in
32681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32682  *) ac_try_echo=$ac_try;;
32683esac
32684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32685  (eval "$ac_try") 2>&5
32686  ac_status=$?
32687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32688  (exit $ac_status); }; }; then
32689  llvm_cv_c_printf_a=yes
32690else
32691  echo "$as_me: program exited with status $ac_status" >&5
32692echo "$as_me: failed program was:" >&5
32693sed 's/^/| /' conftest.$ac_ext >&5
32694
32695( exit $ac_status )
32696llvmac_cv_c_printf_a=no
32697fi
32698rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32699fi
32700
32701
32702 ac_ext=c
32703ac_cpp='$CPP $CPPFLAGS'
32704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32706ac_compiler_gnu=$ac_cv_c_compiler_gnu
32707
32708fi
32709{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32710echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
32711 if test "$llvm_cv_c_printf_a" = "yes"; then
32712
32713cat >>confdefs.h <<\_ACEOF
32714#define HAVE_PRINTF_A 1
32715_ACEOF
32716
32717 fi
32718
32719# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32720# for constant arguments.  Useless!
32721{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
32722echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32723if test "${ac_cv_working_alloca_h+set}" = set; then
32724  echo $ECHO_N "(cached) $ECHO_C" >&6
32725else
32726  cat >conftest.$ac_ext <<_ACEOF
32727/* confdefs.h.  */
32728_ACEOF
32729cat confdefs.h >>conftest.$ac_ext
32730cat >>conftest.$ac_ext <<_ACEOF
32731/* end confdefs.h.  */
32732#include <alloca.h>
32733int
32734main ()
32735{
32736char *p = (char *) alloca (2 * sizeof (int));
32737			  if (p) return 0;
32738  ;
32739  return 0;
32740}
32741_ACEOF
32742rm -f conftest.$ac_objext conftest$ac_exeext
32743if { (ac_try="$ac_link"
32744case "(($ac_try" in
32745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32746  *) ac_try_echo=$ac_try;;
32747esac
32748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32749  (eval "$ac_link") 2>conftest.er1
32750  ac_status=$?
32751  grep -v '^ *+' conftest.er1 >conftest.err
32752  rm -f conftest.er1
32753  cat conftest.err >&5
32754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32755  (exit $ac_status); } &&
32756	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32757  { (case "(($ac_try" in
32758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32759  *) ac_try_echo=$ac_try;;
32760esac
32761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32762  (eval "$ac_try") 2>&5
32763  ac_status=$?
32764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32765  (exit $ac_status); }; } &&
32766	 { ac_try='test -s conftest$ac_exeext'
32767  { (case "(($ac_try" in
32768  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32769  *) ac_try_echo=$ac_try;;
32770esac
32771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32772  (eval "$ac_try") 2>&5
32773  ac_status=$?
32774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32775  (exit $ac_status); }; }; then
32776  ac_cv_working_alloca_h=yes
32777else
32778  echo "$as_me: failed program was:" >&5
32779sed 's/^/| /' conftest.$ac_ext >&5
32780
32781	ac_cv_working_alloca_h=no
32782fi
32783
32784rm -f core conftest.err conftest.$ac_objext \
32785      conftest$ac_exeext conftest.$ac_ext
32786fi
32787{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32788echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32789if test $ac_cv_working_alloca_h = yes; then
32790
32791cat >>confdefs.h <<\_ACEOF
32792#define HAVE_ALLOCA_H 1
32793_ACEOF
32794
32795fi
32796
32797{ echo "$as_me:$LINENO: checking for alloca" >&5
32798echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32799if test "${ac_cv_func_alloca_works+set}" = set; then
32800  echo $ECHO_N "(cached) $ECHO_C" >&6
32801else
32802  cat >conftest.$ac_ext <<_ACEOF
32803/* confdefs.h.  */
32804_ACEOF
32805cat confdefs.h >>conftest.$ac_ext
32806cat >>conftest.$ac_ext <<_ACEOF
32807/* end confdefs.h.  */
32808#ifdef __GNUC__
32809# define alloca __builtin_alloca
32810#else
32811# ifdef _MSC_VER
32812#  include <malloc.h>
32813#  define alloca _alloca
32814# else
32815#  if HAVE_ALLOCA_H
32816#   include <alloca.h>
32817#  else
32818#   ifdef _AIX
32819 #pragma alloca
32820#   else
32821#    ifndef alloca /* predefined by HP cc +Olibcalls */
32822char *alloca ();
32823#    endif
32824#   endif
32825#  endif
32826# endif
32827#endif
32828
32829int
32830main ()
32831{
32832char *p = (char *) alloca (1);
32833				    if (p) return 0;
32834  ;
32835  return 0;
32836}
32837_ACEOF
32838rm -f conftest.$ac_objext conftest$ac_exeext
32839if { (ac_try="$ac_link"
32840case "(($ac_try" in
32841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32842  *) ac_try_echo=$ac_try;;
32843esac
32844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32845  (eval "$ac_link") 2>conftest.er1
32846  ac_status=$?
32847  grep -v '^ *+' conftest.er1 >conftest.err
32848  rm -f conftest.er1
32849  cat conftest.err >&5
32850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32851  (exit $ac_status); } &&
32852	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32853  { (case "(($ac_try" in
32854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32855  *) ac_try_echo=$ac_try;;
32856esac
32857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32858  (eval "$ac_try") 2>&5
32859  ac_status=$?
32860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32861  (exit $ac_status); }; } &&
32862	 { ac_try='test -s conftest$ac_exeext'
32863  { (case "(($ac_try" in
32864  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32865  *) ac_try_echo=$ac_try;;
32866esac
32867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32868  (eval "$ac_try") 2>&5
32869  ac_status=$?
32870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32871  (exit $ac_status); }; }; then
32872  ac_cv_func_alloca_works=yes
32873else
32874  echo "$as_me: failed program was:" >&5
32875sed 's/^/| /' conftest.$ac_ext >&5
32876
32877	ac_cv_func_alloca_works=no
32878fi
32879
32880rm -f core conftest.err conftest.$ac_objext \
32881      conftest$ac_exeext conftest.$ac_ext
32882fi
32883{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32884echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32885
32886if test $ac_cv_func_alloca_works = yes; then
32887
32888cat >>confdefs.h <<\_ACEOF
32889#define HAVE_ALLOCA 1
32890_ACEOF
32891
32892else
32893  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32894# that cause trouble.  Some versions do not even contain alloca or
32895# contain a buggy version.  If you still want to use their alloca,
32896# use ar to extract alloca.o from them instead of compiling alloca.c.
32897
32898ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32899
32900cat >>confdefs.h <<\_ACEOF
32901#define C_ALLOCA 1
32902_ACEOF
32903
32904
32905{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32906echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32907if test "${ac_cv_os_cray+set}" = set; then
32908  echo $ECHO_N "(cached) $ECHO_C" >&6
32909else
32910  cat >conftest.$ac_ext <<_ACEOF
32911/* confdefs.h.  */
32912_ACEOF
32913cat confdefs.h >>conftest.$ac_ext
32914cat >>conftest.$ac_ext <<_ACEOF
32915/* end confdefs.h.  */
32916#if defined CRAY && ! defined CRAY2
32917webecray
32918#else
32919wenotbecray
32920#endif
32921
32922_ACEOF
32923if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32924  $EGREP "webecray" >/dev/null 2>&1; then
32925  ac_cv_os_cray=yes
32926else
32927  ac_cv_os_cray=no
32928fi
32929rm -f conftest*
32930
32931fi
32932{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32933echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32934if test $ac_cv_os_cray = yes; then
32935  for ac_func in _getb67 GETB67 getb67; do
32936    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32937{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32938echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32939if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32940  echo $ECHO_N "(cached) $ECHO_C" >&6
32941else
32942  cat >conftest.$ac_ext <<_ACEOF
32943/* confdefs.h.  */
32944_ACEOF
32945cat confdefs.h >>conftest.$ac_ext
32946cat >>conftest.$ac_ext <<_ACEOF
32947/* end confdefs.h.  */
32948/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32949   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32950#define $ac_func innocuous_$ac_func
32951
32952/* System header to define __stub macros and hopefully few prototypes,
32953    which can conflict with char $ac_func (); below.
32954    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32955    <limits.h> exists even on freestanding compilers.  */
32956
32957#ifdef __STDC__
32958# include <limits.h>
32959#else
32960# include <assert.h>
32961#endif
32962
32963#undef $ac_func
32964
32965/* Override any GCC internal prototype to avoid an error.
32966   Use char because int might match the return type of a GCC
32967   builtin and then its argument prototype would still apply.  */
32968#ifdef __cplusplus
32969extern "C"
32970#endif
32971char $ac_func ();
32972/* The GNU C library defines this for functions which it implements
32973    to always fail with ENOSYS.  Some functions are actually named
32974    something starting with __ and the normal name is an alias.  */
32975#if defined __stub_$ac_func || defined __stub___$ac_func
32976choke me
32977#endif
32978
32979int
32980main ()
32981{
32982return $ac_func ();
32983  ;
32984  return 0;
32985}
32986_ACEOF
32987rm -f conftest.$ac_objext conftest$ac_exeext
32988if { (ac_try="$ac_link"
32989case "(($ac_try" in
32990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32991  *) ac_try_echo=$ac_try;;
32992esac
32993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32994  (eval "$ac_link") 2>conftest.er1
32995  ac_status=$?
32996  grep -v '^ *+' conftest.er1 >conftest.err
32997  rm -f conftest.er1
32998  cat conftest.err >&5
32999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33000  (exit $ac_status); } &&
33001	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33002  { (case "(($ac_try" in
33003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33004  *) ac_try_echo=$ac_try;;
33005esac
33006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33007  (eval "$ac_try") 2>&5
33008  ac_status=$?
33009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33010  (exit $ac_status); }; } &&
33011	 { ac_try='test -s conftest$ac_exeext'
33012  { (case "(($ac_try" in
33013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33014  *) ac_try_echo=$ac_try;;
33015esac
33016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33017  (eval "$ac_try") 2>&5
33018  ac_status=$?
33019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33020  (exit $ac_status); }; }; then
33021  eval "$as_ac_var=yes"
33022else
33023  echo "$as_me: failed program was:" >&5
33024sed 's/^/| /' conftest.$ac_ext >&5
33025
33026	eval "$as_ac_var=no"
33027fi
33028
33029rm -f core conftest.err conftest.$ac_objext \
33030      conftest$ac_exeext conftest.$ac_ext
33031fi
33032ac_res=`eval echo '${'$as_ac_var'}'`
33033	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33034echo "${ECHO_T}$ac_res" >&6; }
33035if test `eval echo '${'$as_ac_var'}'` = yes; then
33036
33037cat >>confdefs.h <<_ACEOF
33038#define CRAY_STACKSEG_END $ac_func
33039_ACEOF
33040
33041    break
33042fi
33043
33044  done
33045fi
33046
33047{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
33048echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
33049if test "${ac_cv_c_stack_direction+set}" = set; then
33050  echo $ECHO_N "(cached) $ECHO_C" >&6
33051else
33052  if test "$cross_compiling" = yes; then
33053  ac_cv_c_stack_direction=0
33054else
33055  cat >conftest.$ac_ext <<_ACEOF
33056/* confdefs.h.  */
33057_ACEOF
33058cat confdefs.h >>conftest.$ac_ext
33059cat >>conftest.$ac_ext <<_ACEOF
33060/* end confdefs.h.  */
33061$ac_includes_default
33062int
33063find_stack_direction ()
33064{
33065  static char *addr = 0;
33066  auto char dummy;
33067  if (addr == 0)
33068    {
33069      addr = &dummy;
33070      return find_stack_direction ();
33071    }
33072  else
33073    return (&dummy > addr) ? 1 : -1;
33074}
33075
33076int
33077main ()
33078{
33079  return find_stack_direction () < 0;
33080}
33081_ACEOF
33082rm -f conftest$ac_exeext
33083if { (ac_try="$ac_link"
33084case "(($ac_try" in
33085  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33086  *) ac_try_echo=$ac_try;;
33087esac
33088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33089  (eval "$ac_link") 2>&5
33090  ac_status=$?
33091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33092  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33093  { (case "(($ac_try" in
33094  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33095  *) ac_try_echo=$ac_try;;
33096esac
33097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33098  (eval "$ac_try") 2>&5
33099  ac_status=$?
33100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33101  (exit $ac_status); }; }; then
33102  ac_cv_c_stack_direction=1
33103else
33104  echo "$as_me: program exited with status $ac_status" >&5
33105echo "$as_me: failed program was:" >&5
33106sed 's/^/| /' conftest.$ac_ext >&5
33107
33108( exit $ac_status )
33109ac_cv_c_stack_direction=-1
33110fi
33111rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33112fi
33113
33114
33115fi
33116{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33117echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
33118
33119cat >>confdefs.h <<_ACEOF
33120#define STACK_DIRECTION $ac_cv_c_stack_direction
33121_ACEOF
33122
33123
33124fi
33125
33126
33127{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33128echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
33129if test "${ac_cv_func_rand48+set}" = set; then
33130  echo $ECHO_N "(cached) $ECHO_C" >&6
33131else
33132  ac_ext=cpp
33133ac_cpp='$CXXCPP $CPPFLAGS'
33134ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33135ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33136ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33137
33138   cat >conftest.$ac_ext <<_ACEOF
33139/* confdefs.h.  */
33140_ACEOF
33141cat confdefs.h >>conftest.$ac_ext
33142cat >>conftest.$ac_ext <<_ACEOF
33143/* end confdefs.h.  */
33144#include <stdlib.h>
33145int
33146main ()
33147{
33148srand48(0);lrand48();drand48();
33149  ;
33150  return 0;
33151}
33152_ACEOF
33153rm -f conftest.$ac_objext
33154if { (ac_try="$ac_compile"
33155case "(($ac_try" in
33156  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33157  *) ac_try_echo=$ac_try;;
33158esac
33159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33160  (eval "$ac_compile") 2>conftest.er1
33161  ac_status=$?
33162  grep -v '^ *+' conftest.er1 >conftest.err
33163  rm -f conftest.er1
33164  cat conftest.err >&5
33165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33166  (exit $ac_status); } &&
33167	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33168  { (case "(($ac_try" in
33169  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33170  *) ac_try_echo=$ac_try;;
33171esac
33172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33173  (eval "$ac_try") 2>&5
33174  ac_status=$?
33175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33176  (exit $ac_status); }; } &&
33177	 { ac_try='test -s conftest.$ac_objext'
33178  { (case "(($ac_try" in
33179  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33180  *) ac_try_echo=$ac_try;;
33181esac
33182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33183  (eval "$ac_try") 2>&5
33184  ac_status=$?
33185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33186  (exit $ac_status); }; }; then
33187  ac_cv_func_rand48=yes
33188else
33189  echo "$as_me: failed program was:" >&5
33190sed 's/^/| /' conftest.$ac_ext >&5
33191
33192	ac_cv_func_rand48=no
33193fi
33194
33195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33196  ac_ext=c
33197ac_cpp='$CPP $CPPFLAGS'
33198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33200ac_compiler_gnu=$ac_cv_c_compiler_gnu
33201
33202fi
33203{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33204echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
33205
33206if test "$ac_cv_func_rand48" = "yes" ; then
33207
33208cat >>confdefs.h <<\_ACEOF
33209#define HAVE_RAND48 1
33210_ACEOF
33211
33212fi
33213
33214
33215{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33216echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
33217if test "${ac_cv_cxx_namespaces+set}" = set; then
33218  echo $ECHO_N "(cached) $ECHO_C" >&6
33219else
33220  ac_ext=cpp
33221ac_cpp='$CXXCPP $CPPFLAGS'
33222ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33223ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33224ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33225
33226 cat >conftest.$ac_ext <<_ACEOF
33227/* confdefs.h.  */
33228_ACEOF
33229cat confdefs.h >>conftest.$ac_ext
33230cat >>conftest.$ac_ext <<_ACEOF
33231/* end confdefs.h.  */
33232namespace Outer { namespace Inner { int i = 0; }}
33233int
33234main ()
33235{
33236using namespace Outer::Inner; return i;
33237  ;
33238  return 0;
33239}
33240_ACEOF
33241rm -f conftest.$ac_objext
33242if { (ac_try="$ac_compile"
33243case "(($ac_try" in
33244  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33245  *) ac_try_echo=$ac_try;;
33246esac
33247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33248  (eval "$ac_compile") 2>conftest.er1
33249  ac_status=$?
33250  grep -v '^ *+' conftest.er1 >conftest.err
33251  rm -f conftest.er1
33252  cat conftest.err >&5
33253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33254  (exit $ac_status); } &&
33255	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33256  { (case "(($ac_try" in
33257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33258  *) ac_try_echo=$ac_try;;
33259esac
33260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33261  (eval "$ac_try") 2>&5
33262  ac_status=$?
33263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33264  (exit $ac_status); }; } &&
33265	 { ac_try='test -s conftest.$ac_objext'
33266  { (case "(($ac_try" in
33267  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33268  *) ac_try_echo=$ac_try;;
33269esac
33270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33271  (eval "$ac_try") 2>&5
33272  ac_status=$?
33273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33274  (exit $ac_status); }; }; then
33275  ac_cv_cxx_namespaces=yes
33276else
33277  echo "$as_me: failed program was:" >&5
33278sed 's/^/| /' conftest.$ac_ext >&5
33279
33280	ac_cv_cxx_namespaces=no
33281fi
33282
33283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33284 ac_ext=c
33285ac_cpp='$CPP $CPPFLAGS'
33286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33288ac_compiler_gnu=$ac_cv_c_compiler_gnu
33289
33290
33291fi
33292{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33293echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
33294if test "$ac_cv_cxx_namespaces" = yes; then
33295
33296cat >>confdefs.h <<\_ACEOF
33297#define HAVE_NAMESPACES
33298_ACEOF
33299
33300fi
33301
33302{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33303echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
33304if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33305  echo $ECHO_N "(cached) $ECHO_C" >&6
33306else
33307
33308  ac_ext=cpp
33309ac_cpp='$CXXCPP $CPPFLAGS'
33310ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33311ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33312ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33313
33314  cat >conftest.$ac_ext <<_ACEOF
33315/* confdefs.h.  */
33316_ACEOF
33317cat confdefs.h >>conftest.$ac_ext
33318cat >>conftest.$ac_ext <<_ACEOF
33319/* end confdefs.h.  */
33320#include <iterator>
33321#ifdef HAVE_NAMESPACES
33322using namespace std;
33323#endif
33324int
33325main ()
33326{
33327iterator<int,int,int> t; return 0;
33328  ;
33329  return 0;
33330}
33331_ACEOF
33332rm -f conftest.$ac_objext
33333if { (ac_try="$ac_compile"
33334case "(($ac_try" in
33335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33336  *) ac_try_echo=$ac_try;;
33337esac
33338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33339  (eval "$ac_compile") 2>conftest.er1
33340  ac_status=$?
33341  grep -v '^ *+' conftest.er1 >conftest.err
33342  rm -f conftest.er1
33343  cat conftest.err >&5
33344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33345  (exit $ac_status); } &&
33346	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33347  { (case "(($ac_try" in
33348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33349  *) ac_try_echo=$ac_try;;
33350esac
33351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33352  (eval "$ac_try") 2>&5
33353  ac_status=$?
33354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33355  (exit $ac_status); }; } &&
33356	 { ac_try='test -s conftest.$ac_objext'
33357  { (case "(($ac_try" in
33358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33359  *) ac_try_echo=$ac_try;;
33360esac
33361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33362  (eval "$ac_try") 2>&5
33363  ac_status=$?
33364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33365  (exit $ac_status); }; }; then
33366  ac_cv_cxx_have_std_iterator=yes
33367else
33368  echo "$as_me: failed program was:" >&5
33369sed 's/^/| /' conftest.$ac_ext >&5
33370
33371	ac_cv_cxx_have_std_iterator=no
33372fi
33373
33374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33375  ac_ext=c
33376ac_cpp='$CPP $CPPFLAGS'
33377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33379ac_compiler_gnu=$ac_cv_c_compiler_gnu
33380
33381
33382fi
33383{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33384echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
33385if test "$ac_cv_cxx_have_std_iterator" = yes
33386then
33387
33388cat >>confdefs.h <<\_ACEOF
33389#define HAVE_STD_ITERATOR 1
33390_ACEOF
33391
33392else
33393
33394cat >>confdefs.h <<\_ACEOF
33395#define HAVE_STD_ITERATOR 0
33396_ACEOF
33397
33398fi
33399
33400{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33401echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
33402if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33403  echo $ECHO_N "(cached) $ECHO_C" >&6
33404else
33405
33406  ac_ext=cpp
33407ac_cpp='$CXXCPP $CPPFLAGS'
33408ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33409ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33410ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33411
33412  cat >conftest.$ac_ext <<_ACEOF
33413/* confdefs.h.  */
33414_ACEOF
33415cat confdefs.h >>conftest.$ac_ext
33416cat >>conftest.$ac_ext <<_ACEOF
33417/* end confdefs.h.  */
33418#include <iterator>
33419#ifdef HAVE_NAMESPACES
33420using namespace std;
33421#endif
33422int
33423main ()
33424{
33425bidirectional_iterator<int,int> t; return 0;
33426  ;
33427  return 0;
33428}
33429_ACEOF
33430rm -f conftest.$ac_objext
33431if { (ac_try="$ac_compile"
33432case "(($ac_try" in
33433  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33434  *) ac_try_echo=$ac_try;;
33435esac
33436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33437  (eval "$ac_compile") 2>conftest.er1
33438  ac_status=$?
33439  grep -v '^ *+' conftest.er1 >conftest.err
33440  rm -f conftest.er1
33441  cat conftest.err >&5
33442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33443  (exit $ac_status); } &&
33444	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33445  { (case "(($ac_try" in
33446  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33447  *) ac_try_echo=$ac_try;;
33448esac
33449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33450  (eval "$ac_try") 2>&5
33451  ac_status=$?
33452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33453  (exit $ac_status); }; } &&
33454	 { ac_try='test -s conftest.$ac_objext'
33455  { (case "(($ac_try" in
33456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33457  *) ac_try_echo=$ac_try;;
33458esac
33459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33460  (eval "$ac_try") 2>&5
33461  ac_status=$?
33462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33463  (exit $ac_status); }; }; then
33464  ac_cv_cxx_have_bi_iterator=yes
33465else
33466  echo "$as_me: failed program was:" >&5
33467sed 's/^/| /' conftest.$ac_ext >&5
33468
33469	ac_cv_cxx_have_bi_iterator=no
33470fi
33471
33472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33473  ac_ext=c
33474ac_cpp='$CPP $CPPFLAGS'
33475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33477ac_compiler_gnu=$ac_cv_c_compiler_gnu
33478
33479
33480fi
33481{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33482echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
33483if test "$ac_cv_cxx_have_bi_iterator" = yes
33484then
33485
33486cat >>confdefs.h <<\_ACEOF
33487#define HAVE_BI_ITERATOR 1
33488_ACEOF
33489
33490else
33491
33492cat >>confdefs.h <<\_ACEOF
33493#define HAVE_BI_ITERATOR 0
33494_ACEOF
33495
33496fi
33497
33498{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33499echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
33500if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33501  echo $ECHO_N "(cached) $ECHO_C" >&6
33502else
33503
33504  ac_ext=cpp
33505ac_cpp='$CXXCPP $CPPFLAGS'
33506ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33507ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33508ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33509
33510  cat >conftest.$ac_ext <<_ACEOF
33511/* confdefs.h.  */
33512_ACEOF
33513cat confdefs.h >>conftest.$ac_ext
33514cat >>conftest.$ac_ext <<_ACEOF
33515/* end confdefs.h.  */
33516#include <iterator>
33517#ifdef HAVE_NAMESPACES
33518using namespace std;
33519#endif
33520int
33521main ()
33522{
33523forward_iterator<int,int> t; return 0;
33524  ;
33525  return 0;
33526}
33527_ACEOF
33528rm -f conftest.$ac_objext
33529if { (ac_try="$ac_compile"
33530case "(($ac_try" in
33531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33532  *) ac_try_echo=$ac_try;;
33533esac
33534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33535  (eval "$ac_compile") 2>conftest.er1
33536  ac_status=$?
33537  grep -v '^ *+' conftest.er1 >conftest.err
33538  rm -f conftest.er1
33539  cat conftest.err >&5
33540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33541  (exit $ac_status); } &&
33542	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33543  { (case "(($ac_try" in
33544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33545  *) ac_try_echo=$ac_try;;
33546esac
33547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33548  (eval "$ac_try") 2>&5
33549  ac_status=$?
33550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33551  (exit $ac_status); }; } &&
33552	 { ac_try='test -s conftest.$ac_objext'
33553  { (case "(($ac_try" in
33554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33555  *) ac_try_echo=$ac_try;;
33556esac
33557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33558  (eval "$ac_try") 2>&5
33559  ac_status=$?
33560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33561  (exit $ac_status); }; }; then
33562  ac_cv_cxx_have_fwd_iterator=yes
33563else
33564  echo "$as_me: failed program was:" >&5
33565sed 's/^/| /' conftest.$ac_ext >&5
33566
33567	ac_cv_cxx_have_fwd_iterator=no
33568fi
33569
33570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33571  ac_ext=c
33572ac_cpp='$CPP $CPPFLAGS'
33573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33575ac_compiler_gnu=$ac_cv_c_compiler_gnu
33576
33577
33578fi
33579{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33580echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
33581if test "$ac_cv_cxx_have_fwd_iterator" = yes
33582then
33583
33584cat >>confdefs.h <<\_ACEOF
33585#define HAVE_FWD_ITERATOR 1
33586_ACEOF
33587
33588else
33589
33590cat >>confdefs.h <<\_ACEOF
33591#define HAVE_FWD_ITERATOR 0
33592_ACEOF
33593
33594fi
33595
33596
33597{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33598echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
33599if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33600  echo $ECHO_N "(cached) $ECHO_C" >&6
33601else
33602  ac_ext=cpp
33603ac_cpp='$CXXCPP $CPPFLAGS'
33604ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33605ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33606ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33607
33608   cat >conftest.$ac_ext <<_ACEOF
33609/* confdefs.h.  */
33610_ACEOF
33611cat confdefs.h >>conftest.$ac_ext
33612cat >>conftest.$ac_ext <<_ACEOF
33613/* end confdefs.h.  */
33614#include <math.h>
33615int
33616main ()
33617{
33618float f; isnan(f);
33619  ;
33620  return 0;
33621}
33622_ACEOF
33623rm -f conftest.$ac_objext
33624if { (ac_try="$ac_compile"
33625case "(($ac_try" in
33626  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33627  *) ac_try_echo=$ac_try;;
33628esac
33629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33630  (eval "$ac_compile") 2>conftest.er1
33631  ac_status=$?
33632  grep -v '^ *+' conftest.er1 >conftest.err
33633  rm -f conftest.er1
33634  cat conftest.err >&5
33635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33636  (exit $ac_status); } &&
33637	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33638  { (case "(($ac_try" in
33639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33640  *) ac_try_echo=$ac_try;;
33641esac
33642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33643  (eval "$ac_try") 2>&5
33644  ac_status=$?
33645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33646  (exit $ac_status); }; } &&
33647	 { ac_try='test -s conftest.$ac_objext'
33648  { (case "(($ac_try" in
33649  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33650  *) ac_try_echo=$ac_try;;
33651esac
33652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33653  (eval "$ac_try") 2>&5
33654  ac_status=$?
33655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33656  (exit $ac_status); }; }; then
33657  ac_cv_func_isnan_in_math_h=yes
33658else
33659  echo "$as_me: failed program was:" >&5
33660sed 's/^/| /' conftest.$ac_ext >&5
33661
33662	ac_cv_func_isnan_in_math_h=no
33663fi
33664
33665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33666  ac_ext=c
33667ac_cpp='$CPP $CPPFLAGS'
33668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33670ac_compiler_gnu=$ac_cv_c_compiler_gnu
33671
33672fi
33673{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33674echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33675
33676
33677if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33678
33679cat >>confdefs.h <<\_ACEOF
33680#define HAVE_ISNAN_IN_MATH_H 1
33681_ACEOF
33682
33683fi
33684
33685{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33686echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33687if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33688  echo $ECHO_N "(cached) $ECHO_C" >&6
33689else
33690  ac_ext=cpp
33691ac_cpp='$CXXCPP $CPPFLAGS'
33692ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33693ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33694ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33695
33696   cat >conftest.$ac_ext <<_ACEOF
33697/* confdefs.h.  */
33698_ACEOF
33699cat confdefs.h >>conftest.$ac_ext
33700cat >>conftest.$ac_ext <<_ACEOF
33701/* end confdefs.h.  */
33702#include <cmath>
33703int
33704main ()
33705{
33706float f; isnan(f);
33707  ;
33708  return 0;
33709}
33710_ACEOF
33711rm -f conftest.$ac_objext
33712if { (ac_try="$ac_compile"
33713case "(($ac_try" in
33714  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33715  *) ac_try_echo=$ac_try;;
33716esac
33717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33718  (eval "$ac_compile") 2>conftest.er1
33719  ac_status=$?
33720  grep -v '^ *+' conftest.er1 >conftest.err
33721  rm -f conftest.er1
33722  cat conftest.err >&5
33723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33724  (exit $ac_status); } &&
33725	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33726  { (case "(($ac_try" in
33727  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33728  *) ac_try_echo=$ac_try;;
33729esac
33730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33731  (eval "$ac_try") 2>&5
33732  ac_status=$?
33733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33734  (exit $ac_status); }; } &&
33735	 { ac_try='test -s conftest.$ac_objext'
33736  { (case "(($ac_try" in
33737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33738  *) ac_try_echo=$ac_try;;
33739esac
33740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33741  (eval "$ac_try") 2>&5
33742  ac_status=$?
33743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33744  (exit $ac_status); }; }; then
33745  ac_cv_func_isnan_in_cmath=yes
33746else
33747  echo "$as_me: failed program was:" >&5
33748sed 's/^/| /' conftest.$ac_ext >&5
33749
33750	ac_cv_func_isnan_in_cmath=no
33751fi
33752
33753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33754  ac_ext=c
33755ac_cpp='$CPP $CPPFLAGS'
33756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33758ac_compiler_gnu=$ac_cv_c_compiler_gnu
33759
33760fi
33761{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33762echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33763
33764if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33765
33766cat >>confdefs.h <<\_ACEOF
33767#define HAVE_ISNAN_IN_CMATH 1
33768_ACEOF
33769
33770fi
33771
33772{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33773echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33774if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33775  echo $ECHO_N "(cached) $ECHO_C" >&6
33776else
33777  ac_ext=cpp
33778ac_cpp='$CXXCPP $CPPFLAGS'
33779ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33780ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33781ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33782
33783   cat >conftest.$ac_ext <<_ACEOF
33784/* confdefs.h.  */
33785_ACEOF
33786cat confdefs.h >>conftest.$ac_ext
33787cat >>conftest.$ac_ext <<_ACEOF
33788/* end confdefs.h.  */
33789#include <cmath>
33790int
33791main ()
33792{
33793float f; std::isnan(f);
33794  ;
33795  return 0;
33796}
33797_ACEOF
33798rm -f conftest.$ac_objext
33799if { (ac_try="$ac_compile"
33800case "(($ac_try" in
33801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33802  *) ac_try_echo=$ac_try;;
33803esac
33804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33805  (eval "$ac_compile") 2>conftest.er1
33806  ac_status=$?
33807  grep -v '^ *+' conftest.er1 >conftest.err
33808  rm -f conftest.er1
33809  cat conftest.err >&5
33810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33811  (exit $ac_status); } &&
33812	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33813  { (case "(($ac_try" in
33814  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33815  *) ac_try_echo=$ac_try;;
33816esac
33817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33818  (eval "$ac_try") 2>&5
33819  ac_status=$?
33820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33821  (exit $ac_status); }; } &&
33822	 { ac_try='test -s conftest.$ac_objext'
33823  { (case "(($ac_try" in
33824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33825  *) ac_try_echo=$ac_try;;
33826esac
33827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33828  (eval "$ac_try") 2>&5
33829  ac_status=$?
33830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33831  (exit $ac_status); }; }; then
33832  ac_cv_func_std_isnan_in_cmath=yes
33833else
33834  echo "$as_me: failed program was:" >&5
33835sed 's/^/| /' conftest.$ac_ext >&5
33836
33837	ac_cv_func_std_isnan_in_cmath=no
33838fi
33839
33840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33841  ac_ext=c
33842ac_cpp='$CPP $CPPFLAGS'
33843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33845ac_compiler_gnu=$ac_cv_c_compiler_gnu
33846
33847fi
33848{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33849echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33850
33851if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33852
33853cat >>confdefs.h <<\_ACEOF
33854#define HAVE_STD_ISNAN_IN_CMATH 1
33855_ACEOF
33856
33857fi
33858
33859
33860{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33861echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33862if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33863  echo $ECHO_N "(cached) $ECHO_C" >&6
33864else
33865  ac_ext=cpp
33866ac_cpp='$CXXCPP $CPPFLAGS'
33867ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33868ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33869ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33870
33871   cat >conftest.$ac_ext <<_ACEOF
33872/* confdefs.h.  */
33873_ACEOF
33874cat confdefs.h >>conftest.$ac_ext
33875cat >>conftest.$ac_ext <<_ACEOF
33876/* end confdefs.h.  */
33877#include <math.h>
33878int
33879main ()
33880{
33881float f; isinf(f);
33882  ;
33883  return 0;
33884}
33885_ACEOF
33886rm -f conftest.$ac_objext
33887if { (ac_try="$ac_compile"
33888case "(($ac_try" in
33889  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33890  *) ac_try_echo=$ac_try;;
33891esac
33892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33893  (eval "$ac_compile") 2>conftest.er1
33894  ac_status=$?
33895  grep -v '^ *+' conftest.er1 >conftest.err
33896  rm -f conftest.er1
33897  cat conftest.err >&5
33898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33899  (exit $ac_status); } &&
33900	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33901  { (case "(($ac_try" in
33902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33903  *) ac_try_echo=$ac_try;;
33904esac
33905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33906  (eval "$ac_try") 2>&5
33907  ac_status=$?
33908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33909  (exit $ac_status); }; } &&
33910	 { ac_try='test -s conftest.$ac_objext'
33911  { (case "(($ac_try" in
33912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33913  *) ac_try_echo=$ac_try;;
33914esac
33915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33916  (eval "$ac_try") 2>&5
33917  ac_status=$?
33918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33919  (exit $ac_status); }; }; then
33920  ac_cv_func_isinf_in_math_h=yes
33921else
33922  echo "$as_me: failed program was:" >&5
33923sed 's/^/| /' conftest.$ac_ext >&5
33924
33925	ac_cv_func_isinf_in_math_h=no
33926fi
33927
33928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33929  ac_ext=c
33930ac_cpp='$CPP $CPPFLAGS'
33931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33933ac_compiler_gnu=$ac_cv_c_compiler_gnu
33934
33935fi
33936{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33937echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33938
33939if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33940
33941cat >>confdefs.h <<\_ACEOF
33942#define HAVE_ISINF_IN_MATH_H 1
33943_ACEOF
33944
33945fi
33946
33947{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33948echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33949if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33950  echo $ECHO_N "(cached) $ECHO_C" >&6
33951else
33952  ac_ext=cpp
33953ac_cpp='$CXXCPP $CPPFLAGS'
33954ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33955ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33956ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33957
33958   cat >conftest.$ac_ext <<_ACEOF
33959/* confdefs.h.  */
33960_ACEOF
33961cat confdefs.h >>conftest.$ac_ext
33962cat >>conftest.$ac_ext <<_ACEOF
33963/* end confdefs.h.  */
33964#include <cmath>
33965int
33966main ()
33967{
33968float f; isinf(f);
33969  ;
33970  return 0;
33971}
33972_ACEOF
33973rm -f conftest.$ac_objext
33974if { (ac_try="$ac_compile"
33975case "(($ac_try" in
33976  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33977  *) ac_try_echo=$ac_try;;
33978esac
33979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33980  (eval "$ac_compile") 2>conftest.er1
33981  ac_status=$?
33982  grep -v '^ *+' conftest.er1 >conftest.err
33983  rm -f conftest.er1
33984  cat conftest.err >&5
33985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33986  (exit $ac_status); } &&
33987	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33988  { (case "(($ac_try" in
33989  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33990  *) ac_try_echo=$ac_try;;
33991esac
33992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33993  (eval "$ac_try") 2>&5
33994  ac_status=$?
33995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33996  (exit $ac_status); }; } &&
33997	 { ac_try='test -s conftest.$ac_objext'
33998  { (case "(($ac_try" in
33999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34000  *) ac_try_echo=$ac_try;;
34001esac
34002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34003  (eval "$ac_try") 2>&5
34004  ac_status=$?
34005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34006  (exit $ac_status); }; }; then
34007  ac_cv_func_isinf_in_cmath=yes
34008else
34009  echo "$as_me: failed program was:" >&5
34010sed 's/^/| /' conftest.$ac_ext >&5
34011
34012	ac_cv_func_isinf_in_cmath=no
34013fi
34014
34015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34016  ac_ext=c
34017ac_cpp='$CPP $CPPFLAGS'
34018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34020ac_compiler_gnu=$ac_cv_c_compiler_gnu
34021
34022fi
34023{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
34024echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
34025
34026if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
34027
34028cat >>confdefs.h <<\_ACEOF
34029#define HAVE_ISINF_IN_CMATH 1
34030_ACEOF
34031
34032fi
34033
34034{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
34035echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
34036if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
34037  echo $ECHO_N "(cached) $ECHO_C" >&6
34038else
34039  ac_ext=cpp
34040ac_cpp='$CXXCPP $CPPFLAGS'
34041ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34042ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34043ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34044
34045   cat >conftest.$ac_ext <<_ACEOF
34046/* confdefs.h.  */
34047_ACEOF
34048cat confdefs.h >>conftest.$ac_ext
34049cat >>conftest.$ac_ext <<_ACEOF
34050/* end confdefs.h.  */
34051#include <cmath>
34052int
34053main ()
34054{
34055float f; std::isinf(f)}
34056  ;
34057  return 0;
34058}
34059_ACEOF
34060rm -f conftest.$ac_objext
34061if { (ac_try="$ac_compile"
34062case "(($ac_try" in
34063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34064  *) ac_try_echo=$ac_try;;
34065esac
34066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34067  (eval "$ac_compile") 2>conftest.er1
34068  ac_status=$?
34069  grep -v '^ *+' conftest.er1 >conftest.err
34070  rm -f conftest.er1
34071  cat conftest.err >&5
34072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34073  (exit $ac_status); } &&
34074	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34075  { (case "(($ac_try" in
34076  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34077  *) ac_try_echo=$ac_try;;
34078esac
34079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34080  (eval "$ac_try") 2>&5
34081  ac_status=$?
34082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34083  (exit $ac_status); }; } &&
34084	 { ac_try='test -s conftest.$ac_objext'
34085  { (case "(($ac_try" in
34086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34087  *) ac_try_echo=$ac_try;;
34088esac
34089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34090  (eval "$ac_try") 2>&5
34091  ac_status=$?
34092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34093  (exit $ac_status); }; }; then
34094  ac_cv_func_std_isinf_in_cmath=yes
34095else
34096  echo "$as_me: failed program was:" >&5
34097sed 's/^/| /' conftest.$ac_ext >&5
34098
34099	ac_cv_func_std_isinf_in_cmath=no
34100fi
34101
34102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34103  ac_ext=c
34104ac_cpp='$CPP $CPPFLAGS'
34105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34107ac_compiler_gnu=$ac_cv_c_compiler_gnu
34108
34109fi
34110{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34111echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
34112
34113if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
34114
34115cat >>confdefs.h <<\_ACEOF
34116#define HAVE_STD_ISINF_IN_CMATH 1
34117_ACEOF
34118
34119fi
34120
34121{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34122echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
34123if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34124  echo $ECHO_N "(cached) $ECHO_C" >&6
34125else
34126  ac_ext=cpp
34127ac_cpp='$CXXCPP $CPPFLAGS'
34128ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34129ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34130ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34131
34132   cat >conftest.$ac_ext <<_ACEOF
34133/* confdefs.h.  */
34134_ACEOF
34135cat confdefs.h >>conftest.$ac_ext
34136cat >>conftest.$ac_ext <<_ACEOF
34137/* end confdefs.h.  */
34138#include <ieeefp.h>
34139int
34140main ()
34141{
34142float f; finite(f);
34143  ;
34144  return 0;
34145}
34146_ACEOF
34147rm -f conftest.$ac_objext
34148if { (ac_try="$ac_compile"
34149case "(($ac_try" in
34150  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34151  *) ac_try_echo=$ac_try;;
34152esac
34153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34154  (eval "$ac_compile") 2>conftest.er1
34155  ac_status=$?
34156  grep -v '^ *+' conftest.er1 >conftest.err
34157  rm -f conftest.er1
34158  cat conftest.err >&5
34159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34160  (exit $ac_status); } &&
34161	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34162  { (case "(($ac_try" in
34163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34164  *) ac_try_echo=$ac_try;;
34165esac
34166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34167  (eval "$ac_try") 2>&5
34168  ac_status=$?
34169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34170  (exit $ac_status); }; } &&
34171	 { ac_try='test -s conftest.$ac_objext'
34172  { (case "(($ac_try" in
34173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34174  *) ac_try_echo=$ac_try;;
34175esac
34176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34177  (eval "$ac_try") 2>&5
34178  ac_status=$?
34179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34180  (exit $ac_status); }; }; then
34181  ac_cv_func_finite_in_ieeefp_h=yes
34182else
34183  echo "$as_me: failed program was:" >&5
34184sed 's/^/| /' conftest.$ac_ext >&5
34185
34186	ac_cv_func_finite_in_ieeefp_h=no
34187fi
34188
34189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34190  ac_ext=c
34191ac_cpp='$CPP $CPPFLAGS'
34192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34194ac_compiler_gnu=$ac_cv_c_compiler_gnu
34195
34196fi
34197{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34198echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
34199
34200if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
34201
34202cat >>confdefs.h <<\_ACEOF
34203#define HAVE_FINITE_IN_IEEEFP_H 1
34204_ACEOF
34205
34206fi
34207
34208
34209
34210if test "$llvm_cv_platform_type" = "Unix" ; then
34211
34212
34213for ac_header in stdlib.h unistd.h
34214do
34215as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34216if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34217  { echo "$as_me:$LINENO: checking for $ac_header" >&5
34218echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34219if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34220  echo $ECHO_N "(cached) $ECHO_C" >&6
34221fi
34222ac_res=`eval echo '${'$as_ac_Header'}'`
34223	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34224echo "${ECHO_T}$ac_res" >&6; }
34225else
34226  # Is the header compilable?
34227{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
34228echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34229cat >conftest.$ac_ext <<_ACEOF
34230/* confdefs.h.  */
34231_ACEOF
34232cat confdefs.h >>conftest.$ac_ext
34233cat >>conftest.$ac_ext <<_ACEOF
34234/* end confdefs.h.  */
34235$ac_includes_default
34236#include <$ac_header>
34237_ACEOF
34238rm -f conftest.$ac_objext
34239if { (ac_try="$ac_compile"
34240case "(($ac_try" in
34241  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34242  *) ac_try_echo=$ac_try;;
34243esac
34244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34245  (eval "$ac_compile") 2>conftest.er1
34246  ac_status=$?
34247  grep -v '^ *+' conftest.er1 >conftest.err
34248  rm -f conftest.er1
34249  cat conftest.err >&5
34250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34251  (exit $ac_status); } &&
34252	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34253  { (case "(($ac_try" in
34254  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34255  *) ac_try_echo=$ac_try;;
34256esac
34257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34258  (eval "$ac_try") 2>&5
34259  ac_status=$?
34260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34261  (exit $ac_status); }; } &&
34262	 { ac_try='test -s conftest.$ac_objext'
34263  { (case "(($ac_try" in
34264  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34265  *) ac_try_echo=$ac_try;;
34266esac
34267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34268  (eval "$ac_try") 2>&5
34269  ac_status=$?
34270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34271  (exit $ac_status); }; }; then
34272  ac_header_compiler=yes
34273else
34274  echo "$as_me: failed program was:" >&5
34275sed 's/^/| /' conftest.$ac_ext >&5
34276
34277	ac_header_compiler=no
34278fi
34279
34280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34281{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34282echo "${ECHO_T}$ac_header_compiler" >&6; }
34283
34284# Is the header present?
34285{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
34286echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34287cat >conftest.$ac_ext <<_ACEOF
34288/* confdefs.h.  */
34289_ACEOF
34290cat confdefs.h >>conftest.$ac_ext
34291cat >>conftest.$ac_ext <<_ACEOF
34292/* end confdefs.h.  */
34293#include <$ac_header>
34294_ACEOF
34295if { (ac_try="$ac_cpp conftest.$ac_ext"
34296case "(($ac_try" in
34297  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34298  *) ac_try_echo=$ac_try;;
34299esac
34300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34301  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34302  ac_status=$?
34303  grep -v '^ *+' conftest.er1 >conftest.err
34304  rm -f conftest.er1
34305  cat conftest.err >&5
34306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34307  (exit $ac_status); } >/dev/null; then
34308  if test -s conftest.err; then
34309    ac_cpp_err=$ac_c_preproc_warn_flag
34310    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34311  else
34312    ac_cpp_err=
34313  fi
34314else
34315  ac_cpp_err=yes
34316fi
34317if test -z "$ac_cpp_err"; then
34318  ac_header_preproc=yes
34319else
34320  echo "$as_me: failed program was:" >&5
34321sed 's/^/| /' conftest.$ac_ext >&5
34322
34323  ac_header_preproc=no
34324fi
34325
34326rm -f conftest.err conftest.$ac_ext
34327{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34328echo "${ECHO_T}$ac_header_preproc" >&6; }
34329
34330# So?  What about this header?
34331case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34332  yes:no: )
34333    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34334echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34335    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34336echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34337    ac_header_preproc=yes
34338    ;;
34339  no:yes:* )
34340    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34341echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34342    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34343echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34344    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34345echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34346    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34347echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34348    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34349echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34350    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34351echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34352    ( cat <<\_ASBOX
34353## ----------------------------------- ##
34354## Report this to llvmbugs@cs.uiuc.edu ##
34355## ----------------------------------- ##
34356_ASBOX
34357     ) | sed "s/^/$as_me: WARNING:     /" >&2
34358    ;;
34359esac
34360{ echo "$as_me:$LINENO: checking for $ac_header" >&5
34361echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34362if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34363  echo $ECHO_N "(cached) $ECHO_C" >&6
34364else
34365  eval "$as_ac_Header=\$ac_header_preproc"
34366fi
34367ac_res=`eval echo '${'$as_ac_Header'}'`
34368	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34369echo "${ECHO_T}$ac_res" >&6; }
34370
34371fi
34372if test `eval echo '${'$as_ac_Header'}'` = yes; then
34373  cat >>confdefs.h <<_ACEOF
34374#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34375_ACEOF
34376
34377fi
34378
34379done
34380
34381
34382for ac_func in getpagesize
34383do
34384as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34385{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34386echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34387if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34388  echo $ECHO_N "(cached) $ECHO_C" >&6
34389else
34390  cat >conftest.$ac_ext <<_ACEOF
34391/* confdefs.h.  */
34392_ACEOF
34393cat confdefs.h >>conftest.$ac_ext
34394cat >>conftest.$ac_ext <<_ACEOF
34395/* end confdefs.h.  */
34396/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34397   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34398#define $ac_func innocuous_$ac_func
34399
34400/* System header to define __stub macros and hopefully few prototypes,
34401    which can conflict with char $ac_func (); below.
34402    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34403    <limits.h> exists even on freestanding compilers.  */
34404
34405#ifdef __STDC__
34406# include <limits.h>
34407#else
34408# include <assert.h>
34409#endif
34410
34411#undef $ac_func
34412
34413/* Override any GCC internal prototype to avoid an error.
34414   Use char because int might match the return type of a GCC
34415   builtin and then its argument prototype would still apply.  */
34416#ifdef __cplusplus
34417extern "C"
34418#endif
34419char $ac_func ();
34420/* The GNU C library defines this for functions which it implements
34421    to always fail with ENOSYS.  Some functions are actually named
34422    something starting with __ and the normal name is an alias.  */
34423#if defined __stub_$ac_func || defined __stub___$ac_func
34424choke me
34425#endif
34426
34427int
34428main ()
34429{
34430return $ac_func ();
34431  ;
34432  return 0;
34433}
34434_ACEOF
34435rm -f conftest.$ac_objext conftest$ac_exeext
34436if { (ac_try="$ac_link"
34437case "(($ac_try" in
34438  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34439  *) ac_try_echo=$ac_try;;
34440esac
34441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34442  (eval "$ac_link") 2>conftest.er1
34443  ac_status=$?
34444  grep -v '^ *+' conftest.er1 >conftest.err
34445  rm -f conftest.er1
34446  cat conftest.err >&5
34447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34448  (exit $ac_status); } &&
34449	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34450  { (case "(($ac_try" in
34451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34452  *) ac_try_echo=$ac_try;;
34453esac
34454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34455  (eval "$ac_try") 2>&5
34456  ac_status=$?
34457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34458  (exit $ac_status); }; } &&
34459	 { ac_try='test -s conftest$ac_exeext'
34460  { (case "(($ac_try" in
34461  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34462  *) ac_try_echo=$ac_try;;
34463esac
34464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34465  (eval "$ac_try") 2>&5
34466  ac_status=$?
34467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34468  (exit $ac_status); }; }; then
34469  eval "$as_ac_var=yes"
34470else
34471  echo "$as_me: failed program was:" >&5
34472sed 's/^/| /' conftest.$ac_ext >&5
34473
34474	eval "$as_ac_var=no"
34475fi
34476
34477rm -f core conftest.err conftest.$ac_objext \
34478      conftest$ac_exeext conftest.$ac_ext
34479fi
34480ac_res=`eval echo '${'$as_ac_var'}'`
34481	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34482echo "${ECHO_T}$ac_res" >&6; }
34483if test `eval echo '${'$as_ac_var'}'` = yes; then
34484  cat >>confdefs.h <<_ACEOF
34485#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34486_ACEOF
34487
34488fi
34489done
34490
34491{ echo "$as_me:$LINENO: checking for working mmap" >&5
34492echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
34493if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34494  echo $ECHO_N "(cached) $ECHO_C" >&6
34495else
34496  if test "$cross_compiling" = yes; then
34497  ac_cv_func_mmap_fixed_mapped=no
34498else
34499  cat >conftest.$ac_ext <<_ACEOF
34500/* confdefs.h.  */
34501_ACEOF
34502cat confdefs.h >>conftest.$ac_ext
34503cat >>conftest.$ac_ext <<_ACEOF
34504/* end confdefs.h.  */
34505$ac_includes_default
34506/* malloc might have been renamed as rpl_malloc. */
34507#undef malloc
34508
34509/* Thanks to Mike Haertel and Jim Avera for this test.
34510   Here is a matrix of mmap possibilities:
34511	mmap private not fixed
34512	mmap private fixed at somewhere currently unmapped
34513	mmap private fixed at somewhere already mapped
34514	mmap shared not fixed
34515	mmap shared fixed at somewhere currently unmapped
34516	mmap shared fixed at somewhere already mapped
34517   For private mappings, we should verify that changes cannot be read()
34518   back from the file, nor mmap's back from the file at a different
34519   address.  (There have been systems where private was not correctly
34520   implemented like the infamous i386 svr4.0, and systems where the
34521   VM page cache was not coherent with the file system buffer cache
34522   like early versions of FreeBSD and possibly contemporary NetBSD.)
34523   For shared mappings, we should conversely verify that changes get
34524   propagated back to all the places they're supposed to be.
34525
34526   Grep wants private fixed already mapped.
34527   The main things grep needs to know about mmap are:
34528   * does it exist and is it safe to write into the mmap'd area
34529   * how to use it (BSD variants)  */
34530
34531#include <fcntl.h>
34532#include <sys/mman.h>
34533
34534#if !STDC_HEADERS && !HAVE_STDLIB_H
34535char *malloc ();
34536#endif
34537
34538/* This mess was copied from the GNU getpagesize.h.  */
34539#if !HAVE_GETPAGESIZE
34540/* Assume that all systems that can run configure have sys/param.h.  */
34541# if !HAVE_SYS_PARAM_H
34542#  define HAVE_SYS_PARAM_H 1
34543# endif
34544
34545# ifdef _SC_PAGESIZE
34546#  define getpagesize() sysconf(_SC_PAGESIZE)
34547# else /* no _SC_PAGESIZE */
34548#  if HAVE_SYS_PARAM_H
34549#   include <sys/param.h>
34550#   ifdef EXEC_PAGESIZE
34551#    define getpagesize() EXEC_PAGESIZE
34552#   else /* no EXEC_PAGESIZE */
34553#    ifdef NBPG
34554#     define getpagesize() NBPG * CLSIZE
34555#     ifndef CLSIZE
34556#      define CLSIZE 1
34557#     endif /* no CLSIZE */
34558#    else /* no NBPG */
34559#     ifdef NBPC
34560#      define getpagesize() NBPC
34561#     else /* no NBPC */
34562#      ifdef PAGESIZE
34563#       define getpagesize() PAGESIZE
34564#      endif /* PAGESIZE */
34565#     endif /* no NBPC */
34566#    endif /* no NBPG */
34567#   endif /* no EXEC_PAGESIZE */
34568#  else /* no HAVE_SYS_PARAM_H */
34569#   define getpagesize() 8192	/* punt totally */
34570#  endif /* no HAVE_SYS_PARAM_H */
34571# endif /* no _SC_PAGESIZE */
34572
34573#endif /* no HAVE_GETPAGESIZE */
34574
34575int
34576main ()
34577{
34578  char *data, *data2, *data3;
34579  int i, pagesize;
34580  int fd;
34581
34582  pagesize = getpagesize ();
34583
34584  /* First, make a file with some known garbage in it. */
34585  data = (char *) malloc (pagesize);
34586  if (!data)
34587    return 1;
34588  for (i = 0; i < pagesize; ++i)
34589    *(data + i) = rand ();
34590  umask (0);
34591  fd = creat ("conftest.mmap", 0600);
34592  if (fd < 0)
34593    return 1;
34594  if (write (fd, data, pagesize) != pagesize)
34595    return 1;
34596  close (fd);
34597
34598  /* Next, try to mmap the file at a fixed address which already has
34599     something else allocated at it.  If we can, also make sure that
34600     we see the same garbage.  */
34601  fd = open ("conftest.mmap", O_RDWR);
34602  if (fd < 0)
34603    return 1;
34604  data2 = (char *) malloc (2 * pagesize);
34605  if (!data2)
34606    return 1;
34607  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
34608  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
34609		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
34610    return 1;
34611  for (i = 0; i < pagesize; ++i)
34612    if (*(data + i) != *(data2 + i))
34613      return 1;
34614
34615  /* Finally, make sure that changes to the mapped area do not
34616     percolate back to the file as seen by read().  (This is a bug on
34617     some variants of i386 svr4.0.)  */
34618  for (i = 0; i < pagesize; ++i)
34619    *(data2 + i) = *(data2 + i) + 1;
34620  data3 = (char *) malloc (pagesize);
34621  if (!data3)
34622    return 1;
34623  if (read (fd, data3, pagesize) != pagesize)
34624    return 1;
34625  for (i = 0; i < pagesize; ++i)
34626    if (*(data + i) != *(data3 + i))
34627      return 1;
34628  close (fd);
34629  return 0;
34630}
34631_ACEOF
34632rm -f conftest$ac_exeext
34633if { (ac_try="$ac_link"
34634case "(($ac_try" in
34635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34636  *) ac_try_echo=$ac_try;;
34637esac
34638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34639  (eval "$ac_link") 2>&5
34640  ac_status=$?
34641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34642  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34643  { (case "(($ac_try" in
34644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34645  *) ac_try_echo=$ac_try;;
34646esac
34647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34648  (eval "$ac_try") 2>&5
34649  ac_status=$?
34650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34651  (exit $ac_status); }; }; then
34652  ac_cv_func_mmap_fixed_mapped=yes
34653else
34654  echo "$as_me: program exited with status $ac_status" >&5
34655echo "$as_me: failed program was:" >&5
34656sed 's/^/| /' conftest.$ac_ext >&5
34657
34658( exit $ac_status )
34659ac_cv_func_mmap_fixed_mapped=no
34660fi
34661rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34662fi
34663
34664
34665fi
34666{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34667echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34668if test $ac_cv_func_mmap_fixed_mapped = yes; then
34669
34670cat >>confdefs.h <<\_ACEOF
34671#define HAVE_MMAP 1
34672_ACEOF
34673
34674fi
34675rm -f conftest.mmap
34676
34677  { echo "$as_me:$LINENO: checking for mmap of files" >&5
34678echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34679if test "${ac_cv_func_mmap_file+set}" = set; then
34680  echo $ECHO_N "(cached) $ECHO_C" >&6
34681else
34682   ac_ext=c
34683ac_cpp='$CPP $CPPFLAGS'
34684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34686ac_compiler_gnu=$ac_cv_c_compiler_gnu
34687
34688  if test "$cross_compiling" = yes; then
34689  ac_cv_func_mmap_file=no
34690else
34691  cat >conftest.$ac_ext <<_ACEOF
34692
34693    /* confdefs.h.  */
34694_ACEOF
34695cat confdefs.h >>conftest.$ac_ext
34696cat >>conftest.$ac_ext <<_ACEOF
34697/* end confdefs.h.  */
34698
34699#include <sys/types.h>
34700#include <sys/mman.h>
34701#include <fcntl.h>
34702
34703int
34704main ()
34705{
34706
34707  int fd;
34708  fd = creat ("foo",0777);
34709  fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34710  unlink ("foo");
34711  return (fd != (int) MAP_FAILED);
34712  ;
34713  return 0;
34714}
34715_ACEOF
34716rm -f conftest$ac_exeext
34717if { (ac_try="$ac_link"
34718case "(($ac_try" in
34719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34720  *) ac_try_echo=$ac_try;;
34721esac
34722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34723  (eval "$ac_link") 2>&5
34724  ac_status=$?
34725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34726  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34727  { (case "(($ac_try" in
34728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34729  *) ac_try_echo=$ac_try;;
34730esac
34731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34732  (eval "$ac_try") 2>&5
34733  ac_status=$?
34734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34735  (exit $ac_status); }; }; then
34736  ac_cv_func_mmap_file=yes
34737else
34738  echo "$as_me: program exited with status $ac_status" >&5
34739echo "$as_me: failed program was:" >&5
34740sed 's/^/| /' conftest.$ac_ext >&5
34741
34742( exit $ac_status )
34743ac_cv_func_mmap_file=no
34744fi
34745rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34746fi
34747
34748
34749  ac_ext=c
34750ac_cpp='$CPP $CPPFLAGS'
34751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34753ac_compiler_gnu=$ac_cv_c_compiler_gnu
34754
34755
34756fi
34757{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34758echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34759if test "$ac_cv_func_mmap_file" = yes; then
34760
34761cat >>confdefs.h <<\_ACEOF
34762#define HAVE_MMAP_FILE
34763_ACEOF
34764
34765   MMAP_FILE=yes
34766
34767fi
34768
34769  { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34770echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34771if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34772  echo $ECHO_N "(cached) $ECHO_C" >&6
34773else
34774  if test "$llvm_cv_os_type" = "Interix" ; then
34775   ac_cv_need_dev_zero_for_mmap=yes
34776 else
34777   ac_cv_need_dev_zero_for_mmap=no
34778 fi
34779
34780fi
34781{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34782echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34783if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34784
34785cat >>confdefs.h <<\_ACEOF
34786#define NEED_DEV_ZERO_FOR_MMAP 1
34787_ACEOF
34788
34789fi
34790
34791  if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34792  then
34793    { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34794echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34795  fi
34796  if test "$ac_cv_func_mmap_file" = "no"
34797  then
34798    { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34799echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34800  fi
34801fi
34802
34803{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
34804echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
34805cat >conftest.$ac_ext <<_ACEOF
34806/* confdefs.h.  */
34807_ACEOF
34808cat confdefs.h >>conftest.$ac_ext
34809cat >>conftest.$ac_ext <<_ACEOF
34810/* end confdefs.h.  */
34811int main() {
34812        volatile unsigned long val = 1;
34813        __sync_synchronize();
34814        __sync_val_compare_and_swap(&val, 1, 0);
34815        __sync_add_and_fetch(&val, 1);
34816        __sync_sub_and_fetch(&val, 1);
34817        return 0;
34818      }
34819
34820_ACEOF
34821rm -f conftest.$ac_objext conftest$ac_exeext
34822if { (ac_try="$ac_link"
34823case "(($ac_try" in
34824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34825  *) ac_try_echo=$ac_try;;
34826esac
34827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34828  (eval "$ac_link") 2>conftest.er1
34829  ac_status=$?
34830  grep -v '^ *+' conftest.er1 >conftest.err
34831  rm -f conftest.er1
34832  cat conftest.err >&5
34833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34834  (exit $ac_status); } &&
34835	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34836  { (case "(($ac_try" in
34837  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34838  *) ac_try_echo=$ac_try;;
34839esac
34840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34841  (eval "$ac_try") 2>&5
34842  ac_status=$?
34843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34844  (exit $ac_status); }; } &&
34845	 { ac_try='test -s conftest$ac_exeext'
34846  { (case "(($ac_try" in
34847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34848  *) ac_try_echo=$ac_try;;
34849esac
34850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34851  (eval "$ac_try") 2>&5
34852  ac_status=$?
34853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34854  (exit $ac_status); }; }; then
34855  { echo "$as_me:$LINENO: result: yes" >&5
34856echo "${ECHO_T}yes" >&6; }
34857
34858cat >>confdefs.h <<\_ACEOF
34859#define LLVM_MULTITHREADED 1
34860_ACEOF
34861
34862else
34863  echo "$as_me: failed program was:" >&5
34864sed 's/^/| /' conftest.$ac_ext >&5
34865
34866	{ echo "$as_me:$LINENO: result: no" >&5
34867echo "${ECHO_T}no" >&6; }
34868
34869cat >>confdefs.h <<\_ACEOF
34870#define LLVM_MULTITHREADED 0
34871_ACEOF
34872
34873  { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34874echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
34875fi
34876
34877rm -f core conftest.err conftest.$ac_objext \
34878      conftest$ac_exeext conftest.$ac_ext
34879
34880
34881
34882
34883for ac_func in __dso_handle
34884do
34885as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34886{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34887echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34888if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34889  echo $ECHO_N "(cached) $ECHO_C" >&6
34890else
34891  cat >conftest.$ac_ext <<_ACEOF
34892/* confdefs.h.  */
34893_ACEOF
34894cat confdefs.h >>conftest.$ac_ext
34895cat >>conftest.$ac_ext <<_ACEOF
34896/* end confdefs.h.  */
34897/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34898   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34899#define $ac_func innocuous_$ac_func
34900
34901/* System header to define __stub macros and hopefully few prototypes,
34902    which can conflict with char $ac_func (); below.
34903    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34904    <limits.h> exists even on freestanding compilers.  */
34905
34906#ifdef __STDC__
34907# include <limits.h>
34908#else
34909# include <assert.h>
34910#endif
34911
34912#undef $ac_func
34913
34914/* Override any GCC internal prototype to avoid an error.
34915   Use char because int might match the return type of a GCC
34916   builtin and then its argument prototype would still apply.  */
34917#ifdef __cplusplus
34918extern "C"
34919#endif
34920char $ac_func ();
34921/* The GNU C library defines this for functions which it implements
34922    to always fail with ENOSYS.  Some functions are actually named
34923    something starting with __ and the normal name is an alias.  */
34924#if defined __stub_$ac_func || defined __stub___$ac_func
34925choke me
34926#endif
34927
34928int
34929main ()
34930{
34931return $ac_func ();
34932  ;
34933  return 0;
34934}
34935_ACEOF
34936rm -f conftest.$ac_objext conftest$ac_exeext
34937if { (ac_try="$ac_link"
34938case "(($ac_try" in
34939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34940  *) ac_try_echo=$ac_try;;
34941esac
34942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34943  (eval "$ac_link") 2>conftest.er1
34944  ac_status=$?
34945  grep -v '^ *+' conftest.er1 >conftest.err
34946  rm -f conftest.er1
34947  cat conftest.err >&5
34948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34949  (exit $ac_status); } &&
34950	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34951  { (case "(($ac_try" in
34952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34953  *) ac_try_echo=$ac_try;;
34954esac
34955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34956  (eval "$ac_try") 2>&5
34957  ac_status=$?
34958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34959  (exit $ac_status); }; } &&
34960	 { ac_try='test -s conftest$ac_exeext'
34961  { (case "(($ac_try" in
34962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34963  *) ac_try_echo=$ac_try;;
34964esac
34965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34966  (eval "$ac_try") 2>&5
34967  ac_status=$?
34968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34969  (exit $ac_status); }; }; then
34970  eval "$as_ac_var=yes"
34971else
34972  echo "$as_me: failed program was:" >&5
34973sed 's/^/| /' conftest.$ac_ext >&5
34974
34975	eval "$as_ac_var=no"
34976fi
34977
34978rm -f core conftest.err conftest.$ac_objext \
34979      conftest$ac_exeext conftest.$ac_ext
34980fi
34981ac_res=`eval echo '${'$as_ac_var'}'`
34982	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34983echo "${ECHO_T}$ac_res" >&6; }
34984if test `eval echo '${'$as_ac_var'}'` = yes; then
34985  cat >>confdefs.h <<_ACEOF
34986#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34987_ACEOF
34988
34989fi
34990done
34991
34992
34993{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34994echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34995if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34996  echo $ECHO_N "(cached) $ECHO_C" >&6
34997else
34998  llvm_cv_llvmgcc_sanity="no"
34999if test -x "$LLVMGCC" ; then
35000  cp /dev/null conftest.c
35001  "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
35002      grep 'target datalayout =' > /dev/null 2>&1
35003  if test $? -eq 0 ; then
35004    llvm_cv_llvmgcc_sanity="yes"
35005  fi
35006  rm conftest.c
35007fi
35008fi
35009{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
35010echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
35011
35012if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
35013  { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
35014echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
35015  llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
35016  LLVMCC1=$llvmcc1path
35017
35018  llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
35019  LLVMCC1PLUS=$llvmcc1pluspath
35020
35021  llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
35022  LLVMGCCDIR=$llvmgccdir
35023
35024  llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
35025  LLVMGCCLIBEXEC=$llvmgcclibexec
35026
35027  llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
35028  llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
35029  LLVMGCC_VERSION=$llvmgccversion
35030
35031  LLVMGCC_MAJVERS=$llvmgccmajvers
35032
35033  llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
35034  LLVMGCC_LANGS=$llvmgcclangs
35035
35036  { echo "$as_me:$LINENO: result: ok" >&5
35037echo "${ECHO_T}ok" >&6; }
35038fi
35039
35040SHLIBEXT=$libltdl_cv_shlibext
35041
35042
35043# Translate the various configuration directories and other basic
35044# information into substitutions that will end up in Makefile.config.in
35045# that these configured values can be used by the makefiles
35046if test "${prefix}" = "NONE" ; then
35047  prefix="/usr/local"
35048fi
35049eval LLVM_PREFIX="${prefix}";
35050eval LLVM_BINDIR="${prefix}/bin";
35051eval LLVM_LIBDIR="${prefix}/lib";
35052eval LLVM_DATADIR="${prefix}/share/llvm";
35053eval LLVM_DOCSDIR="${prefix}/docs/llvm";
35054eval LLVM_ETCDIR="${prefix}/etc/llvm";
35055eval LLVM_INCLUDEDIR="${prefix}/include";
35056eval LLVM_INFODIR="${prefix}/info";
35057eval LLVM_MANDIR="${prefix}/man";
35058LLVM_CONFIGTIME=`date`
35059
35060
35061
35062
35063
35064
35065
35066
35067
35068
35069
35070# Place the various directores into the config.h file as #defines so that we
35071# can know about the installation paths within LLVM.
35072
35073cat >>confdefs.h <<_ACEOF
35074#define LLVM_PREFIX "$LLVM_PREFIX"
35075_ACEOF
35076
35077
35078cat >>confdefs.h <<_ACEOF
35079#define LLVM_BINDIR "$LLVM_BINDIR"
35080_ACEOF
35081
35082
35083cat >>confdefs.h <<_ACEOF
35084#define LLVM_LIBDIR "$LLVM_LIBDIR"
35085_ACEOF
35086
35087
35088cat >>confdefs.h <<_ACEOF
35089#define LLVM_DATADIR "$LLVM_DATADIR"
35090_ACEOF
35091
35092
35093cat >>confdefs.h <<_ACEOF
35094#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
35095_ACEOF
35096
35097
35098cat >>confdefs.h <<_ACEOF
35099#define LLVM_ETCDIR "$LLVM_ETCDIR"
35100_ACEOF
35101
35102
35103cat >>confdefs.h <<_ACEOF
35104#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35105_ACEOF
35106
35107
35108cat >>confdefs.h <<_ACEOF
35109#define LLVM_INFODIR "$LLVM_INFODIR"
35110_ACEOF
35111
35112
35113cat >>confdefs.h <<_ACEOF
35114#define LLVM_MANDIR "$LLVM_MANDIR"
35115_ACEOF
35116
35117
35118cat >>confdefs.h <<_ACEOF
35119#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35120_ACEOF
35121
35122
35123cat >>confdefs.h <<_ACEOF
35124#define LLVM_HOSTTRIPLE "$host"
35125_ACEOF
35126
35127
35128# Determine which bindings to build.
35129if test "$BINDINGS_TO_BUILD" = auto ; then
35130  BINDINGS_TO_BUILD=""
35131  if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35132    BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35133  fi
35134fi
35135BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35136
35137
35138# This isn't really configurey, but it avoids having to repeat the list in
35139# other files.
35140ALL_BINDINGS=ocaml
35141
35142
35143# Do any work necessary to ensure that bindings have what they need.
35144binding_prereqs_failed=0
35145for a_binding in $BINDINGS_TO_BUILD ; do
35146  case "$a_binding" in
35147  ocaml)
35148    if test "x$OCAMLC" = x ; then
35149      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35150echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35151      binding_prereqs_failed=1
35152    fi
35153    if test "x$OCAMLDEP" = x ; then
35154      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35155echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35156      binding_prereqs_failed=1
35157    fi
35158    if test "x$OCAMLOPT" = x ; then
35159      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35160echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35161          fi
35162    if test "x$with_ocaml_libdir" != xauto ; then
35163      OCAML_LIBDIR=$with_ocaml_libdir
35164
35165    else
35166      ocaml_stdlib="`"$OCAMLC" -where`"
35167      if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35168      then
35169        # ocaml stdlib is beneath our prefix; use stdlib
35170        OCAML_LIBDIR=$ocaml_stdlib
35171
35172      else
35173        # ocaml stdlib is outside our prefix; use libdir/ocaml
35174        OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35175
35176      fi
35177    fi
35178    ;;
35179  esac
35180done
35181if test "$binding_prereqs_failed" = 1 ; then
35182  { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35183echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35184   { (exit 1); exit 1; }; }
35185fi
35186
35187{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35188echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35189if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35190  echo $ECHO_N "(cached) $ECHO_C" >&6
35191else
35192   ac_ext=cpp
35193ac_cpp='$CXXCPP $CPPFLAGS'
35194ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35195ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35196ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35197
35198  oldcxxflags="$CXXFLAGS"
35199  CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35200  cat >conftest.$ac_ext <<_ACEOF
35201/* confdefs.h.  */
35202_ACEOF
35203cat confdefs.h >>conftest.$ac_ext
35204cat >>conftest.$ac_ext <<_ACEOF
35205/* end confdefs.h.  */
35206
35207int
35208main ()
35209{
35210
35211  ;
35212  return 0;
35213}
35214_ACEOF
35215rm -f conftest.$ac_objext
35216if { (ac_try="$ac_compile"
35217case "(($ac_try" in
35218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35219  *) ac_try_echo=$ac_try;;
35220esac
35221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35222  (eval "$ac_compile") 2>conftest.er1
35223  ac_status=$?
35224  grep -v '^ *+' conftest.er1 >conftest.err
35225  rm -f conftest.er1
35226  cat conftest.err >&5
35227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35228  (exit $ac_status); } &&
35229	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35230  { (case "(($ac_try" in
35231  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35232  *) ac_try_echo=$ac_try;;
35233esac
35234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35235  (eval "$ac_try") 2>&5
35236  ac_status=$?
35237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35238  (exit $ac_status); }; } &&
35239	 { ac_try='test -s conftest.$ac_objext'
35240  { (case "(($ac_try" in
35241  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35242  *) ac_try_echo=$ac_try;;
35243esac
35244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35245  (eval "$ac_try") 2>&5
35246  ac_status=$?
35247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35248  (exit $ac_status); }; }; then
35249  llvm_cv_cxx_visibility_inlines_hidden=yes
35250else
35251  echo "$as_me: failed program was:" >&5
35252sed 's/^/| /' conftest.$ac_ext >&5
35253
35254	llvm_cv_cxx_visibility_inlines_hidden=no
35255fi
35256
35257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35258  CXXFLAGS="$oldcxxflags"
35259  ac_ext=c
35260ac_cpp='$CPP $CPPFLAGS'
35261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35263ac_compiler_gnu=$ac_cv_c_compiler_gnu
35264
35265
35266fi
35267{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35268echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35269if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35270  ENABLE_VISIBILITY_INLINES_HIDDEN=1
35271
35272else
35273  ENABLE_VISIBILITY_INLINES_HIDDEN=0
35274
35275fi
35276
35277
35278if test "$llvm_cv_link_use_r" = "yes" ; then
35279  RPATH="-Wl,-R"
35280else
35281  RPATH="-Wl,-rpath"
35282fi
35283
35284
35285if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35286  RDYNAMIC="-Wl,-export-dynamic"
35287else
35288  RDYNAMIC=""
35289fi
35290
35291
35292
35293ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
35294
35295ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35296
35297ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35298
35299ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35300
35301ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
35302
35303
35304ac_config_files="$ac_config_files Makefile.config"
35305
35306
35307ac_config_files="$ac_config_files llvm.spec"
35308
35309
35310ac_config_files="$ac_config_files docs/doxygen.cfg"
35311
35312
35313ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35314
35315
35316ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
35317
35318
35319ac_config_commands="$ac_config_commands setup"
35320
35321ac_config_commands="$ac_config_commands Makefile"
35322
35323
35324ac_config_commands="$ac_config_commands Makefile.common"
35325
35326
35327ac_config_commands="$ac_config_commands examples/Makefile"
35328
35329
35330ac_config_commands="$ac_config_commands lib/Makefile"
35331
35332
35333ac_config_commands="$ac_config_commands runtime/Makefile"
35334
35335
35336ac_config_commands="$ac_config_commands test/Makefile"
35337
35338
35339ac_config_commands="$ac_config_commands test/Makefile.tests"
35340
35341
35342ac_config_commands="$ac_config_commands unittests/Makefile"
35343
35344
35345ac_config_commands="$ac_config_commands tools/Makefile"
35346
35347
35348ac_config_commands="$ac_config_commands utils/Makefile"
35349
35350
35351ac_config_commands="$ac_config_commands projects/Makefile"
35352
35353
35354ac_config_commands="$ac_config_commands bindings/Makefile"
35355
35356
35357ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35358
35359
35360
35361cat >confcache <<\_ACEOF
35362# This file is a shell script that caches the results of configure
35363# tests run on this system so they can be shared between configure
35364# scripts and configure runs, see configure's option --config-cache.
35365# It is not useful on other systems.  If it contains results you don't
35366# want to keep, you may remove or edit it.
35367#
35368# config.status only pays attention to the cache file if you give it
35369# the --recheck option to rerun configure.
35370#
35371# `ac_cv_env_foo' variables (set or unset) will be overridden when
35372# loading this file, other *unset* `ac_cv_foo' will be assigned the
35373# following values.
35374
35375_ACEOF
35376
35377# The following way of writing the cache mishandles newlines in values,
35378# but we know of no workaround that is simple, portable, and efficient.
35379# So, we kill variables containing newlines.
35380# Ultrix sh set writes to stderr and can't be redirected directly,
35381# and sets the high bit in the cache file unless we assign to the vars.
35382(
35383  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35384    eval ac_val=\$$ac_var
35385    case $ac_val in #(
35386    *${as_nl}*)
35387      case $ac_var in #(
35388      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35389echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35390      esac
35391      case $ac_var in #(
35392      _ | IFS | as_nl) ;; #(
35393      *) $as_unset $ac_var ;;
35394      esac ;;
35395    esac
35396  done
35397
35398  (set) 2>&1 |
35399    case $as_nl`(ac_space=' '; set) 2>&1` in #(
35400    *${as_nl}ac_space=\ *)
35401      # `set' does not quote correctly, so add quotes (double-quote
35402      # substitution turns \\\\ into \\, and sed turns \\ into \).
35403      sed -n \
35404	"s/'/'\\\\''/g;
35405	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35406      ;; #(
35407    *)
35408      # `set' quotes correctly as required by POSIX, so do not add quotes.
35409      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35410      ;;
35411    esac |
35412    sort
35413) |
35414  sed '
35415     /^ac_cv_env_/b end
35416     t clear
35417     :clear
35418     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35419     t end
35420     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35421     :end' >>confcache
35422if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35423  if test -w "$cache_file"; then
35424    test "x$cache_file" != "x/dev/null" &&
35425      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35426echo "$as_me: updating cache $cache_file" >&6;}
35427    cat confcache >$cache_file
35428  else
35429    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35430echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35431  fi
35432fi
35433rm -f confcache
35434
35435test "x$prefix" = xNONE && prefix=$ac_default_prefix
35436# Let make expand exec_prefix.
35437test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35438
35439DEFS=-DHAVE_CONFIG_H
35440
35441ac_libobjs=
35442ac_ltlibobjs=
35443for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35444  # 1. Remove the extension, and $U if already installed.
35445  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35446  ac_i=`echo "$ac_i" | sed "$ac_script"`
35447  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
35448  #    will be set to the directory where LIBOBJS objects are built.
35449  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35450  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35451done
35452LIBOBJS=$ac_libobjs
35453
35454LTLIBOBJS=$ac_ltlibobjs
35455
35456
35457if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35458  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35459Usually this means the macro was only invoked conditionally." >&5
35460echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35461Usually this means the macro was only invoked conditionally." >&2;}
35462   { (exit 1); exit 1; }; }
35463fi
35464if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35465  { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35466Usually this means the macro was only invoked conditionally." >&5
35467echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35468Usually this means the macro was only invoked conditionally." >&2;}
35469   { (exit 1); exit 1; }; }
35470fi
35471
35472: ${CONFIG_STATUS=./config.status}
35473ac_clean_files_save=$ac_clean_files
35474ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35475{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35476echo "$as_me: creating $CONFIG_STATUS" >&6;}
35477cat >$CONFIG_STATUS <<_ACEOF
35478#! $SHELL
35479# Generated by $as_me.
35480# Run this file to recreate the current configuration.
35481# Compiler output produced by configure, useful for debugging
35482# configure, is in config.log if it exists.
35483
35484debug=false
35485ac_cs_recheck=false
35486ac_cs_silent=false
35487SHELL=\${CONFIG_SHELL-$SHELL}
35488_ACEOF
35489
35490cat >>$CONFIG_STATUS <<\_ACEOF
35491## --------------------- ##
35492## M4sh Initialization.  ##
35493## --------------------- ##
35494
35495# Be Bourne compatible
35496if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35497  emulate sh
35498  NULLCMD=:
35499  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35500  # is contrary to our usage.  Disable this feature.
35501  alias -g '${1+"$@"}'='"$@"'
35502  setopt NO_GLOB_SUBST
35503else
35504  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
35505fi
35506BIN_SH=xpg4; export BIN_SH # for Tru64
35507DUALCASE=1; export DUALCASE # for MKS sh
35508
35509
35510# PATH needs CR
35511# Avoid depending upon Character Ranges.
35512as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35513as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35514as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35515as_cr_digits='0123456789'
35516as_cr_alnum=$as_cr_Letters$as_cr_digits
35517
35518# The user is always right.
35519if test "${PATH_SEPARATOR+set}" != set; then
35520  echo "#! /bin/sh" >conf$$.sh
35521  echo  "exit 0"   >>conf$$.sh
35522  chmod +x conf$$.sh
35523  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35524    PATH_SEPARATOR=';'
35525  else
35526    PATH_SEPARATOR=:
35527  fi
35528  rm -f conf$$.sh
35529fi
35530
35531# Support unset when possible.
35532if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35533  as_unset=unset
35534else
35535  as_unset=false
35536fi
35537
35538
35539# IFS
35540# We need space, tab and new line, in precisely that order.  Quoting is
35541# there to prevent editors from complaining about space-tab.
35542# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35543# splitting by setting IFS to empty value.)
35544as_nl='
35545'
35546IFS=" ""	$as_nl"
35547
35548# Find who we are.  Look in the path if we contain no directory separator.
35549case $0 in
35550  *[\\/]* ) as_myself=$0 ;;
35551  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35552for as_dir in $PATH
35553do
35554  IFS=$as_save_IFS
35555  test -z "$as_dir" && as_dir=.
35556  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35557done
35558IFS=$as_save_IFS
35559
35560     ;;
35561esac
35562# We did not find ourselves, most probably we were run as `sh COMMAND'
35563# in which case we are not to be found in the path.
35564if test "x$as_myself" = x; then
35565  as_myself=$0
35566fi
35567if test ! -f "$as_myself"; then
35568  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35569  { (exit 1); exit 1; }
35570fi
35571
35572# Work around bugs in pre-3.0 UWIN ksh.
35573for as_var in ENV MAIL MAILPATH
35574do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35575done
35576PS1='$ '
35577PS2='> '
35578PS4='+ '
35579
35580# NLS nuisances.
35581for as_var in \
35582  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35583  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35584  LC_TELEPHONE LC_TIME
35585do
35586  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35587    eval $as_var=C; export $as_var
35588  else
35589    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35590  fi
35591done
35592
35593# Required to use basename.
35594if expr a : '\(a\)' >/dev/null 2>&1 &&
35595   test "X`expr 00001 : '.*\(...\)'`" = X001; then
35596  as_expr=expr
35597else
35598  as_expr=false
35599fi
35600
35601if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35602  as_basename=basename
35603else
35604  as_basename=false
35605fi
35606
35607
35608# Name of the executable.
35609as_me=`$as_basename -- "$0" ||
35610$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35611	 X"$0" : 'X\(//\)$' \| \
35612	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35613echo X/"$0" |
35614    sed '/^.*\/\([^/][^/]*\)\/*$/{
35615	    s//\1/
35616	    q
35617	  }
35618	  /^X\/\(\/\/\)$/{
35619	    s//\1/
35620	    q
35621	  }
35622	  /^X\/\(\/\).*/{
35623	    s//\1/
35624	    q
35625	  }
35626	  s/.*/./; q'`
35627
35628# CDPATH.
35629$as_unset CDPATH
35630
35631
35632
35633  as_lineno_1=$LINENO
35634  as_lineno_2=$LINENO
35635  test "x$as_lineno_1" != "x$as_lineno_2" &&
35636  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35637
35638  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35639  # uniformly replaced by the line number.  The first 'sed' inserts a
35640  # line-number line after each line using $LINENO; the second 'sed'
35641  # does the real work.  The second script uses 'N' to pair each
35642  # line-number line with the line containing $LINENO, and appends
35643  # trailing '-' during substitution so that $LINENO is not a special
35644  # case at line end.
35645  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35646  # scripts with optimization help from Paolo Bonzini.  Blame Lee
35647  # E. McMahon (1931-1989) for sed's syntax.  :-)
35648  sed -n '
35649    p
35650    /[$]LINENO/=
35651  ' <$as_myself |
35652    sed '
35653      s/[$]LINENO.*/&-/
35654      t lineno
35655      b
35656      :lineno
35657      N
35658      :loop
35659      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35660      t loop
35661      s/-\n.*//
35662    ' >$as_me.lineno &&
35663  chmod +x "$as_me.lineno" ||
35664    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35665   { (exit 1); exit 1; }; }
35666
35667  # Don't try to exec as it changes $[0], causing all sort of problems
35668  # (the dirname of $[0] is not the place where we might find the
35669  # original and so on.  Autoconf is especially sensitive to this).
35670  . "./$as_me.lineno"
35671  # Exit status is that of the last command.
35672  exit
35673}
35674
35675
35676if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35677  as_dirname=dirname
35678else
35679  as_dirname=false
35680fi
35681
35682ECHO_C= ECHO_N= ECHO_T=
35683case `echo -n x` in
35684-n*)
35685  case `echo 'x\c'` in
35686  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
35687  *)   ECHO_C='\c';;
35688  esac;;
35689*)
35690  ECHO_N='-n';;
35691esac
35692
35693if expr a : '\(a\)' >/dev/null 2>&1 &&
35694   test "X`expr 00001 : '.*\(...\)'`" = X001; then
35695  as_expr=expr
35696else
35697  as_expr=false
35698fi
35699
35700rm -f conf$$ conf$$.exe conf$$.file
35701if test -d conf$$.dir; then
35702  rm -f conf$$.dir/conf$$.file
35703else
35704  rm -f conf$$.dir
35705  mkdir conf$$.dir
35706fi
35707echo >conf$$.file
35708if ln -s conf$$.file conf$$ 2>/dev/null; then
35709  as_ln_s='ln -s'
35710  # ... but there are two gotchas:
35711  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35712  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35713  # In both cases, we have to default to `cp -p'.
35714  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35715    as_ln_s='cp -p'
35716elif ln conf$$.file conf$$ 2>/dev/null; then
35717  as_ln_s=ln
35718else
35719  as_ln_s='cp -p'
35720fi
35721rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35722rmdir conf$$.dir 2>/dev/null
35723
35724if mkdir -p . 2>/dev/null; then
35725  as_mkdir_p=:
35726else
35727  test -d ./-p && rmdir ./-p
35728  as_mkdir_p=false
35729fi
35730
35731# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
35732# systems may use methods other than mode bits to determine executability.
35733cat >conf$$.file <<_ASEOF
35734#! /bin/sh
35735exit 0
35736_ASEOF
35737chmod +x conf$$.file
35738if test -x conf$$.file >/dev/null 2>&1; then
35739  as_executable_p="test -x"
35740else
35741  as_executable_p=:
35742fi
35743rm -f conf$$.file
35744
35745# Sed expression to map a string onto a valid CPP name.
35746as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35747
35748# Sed expression to map a string onto a valid variable name.
35749as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35750
35751
35752exec 6>&1
35753
35754# Save the log message, to keep $[0] and so on meaningful, and to
35755# report actual input values of CONFIG_FILES etc. instead of their
35756# values after options handling.
35757ac_log="
35758This file was extended by llvm $as_me 2.7svn, which was
35759generated by GNU Autoconf 2.60.  Invocation command line was
35760
35761  CONFIG_FILES    = $CONFIG_FILES
35762  CONFIG_HEADERS  = $CONFIG_HEADERS
35763  CONFIG_LINKS    = $CONFIG_LINKS
35764  CONFIG_COMMANDS = $CONFIG_COMMANDS
35765  $ $0 $@
35766
35767on `(hostname || uname -n) 2>/dev/null | sed 1q`
35768"
35769
35770_ACEOF
35771
35772cat >>$CONFIG_STATUS <<_ACEOF
35773# Files that config.status was made for.
35774config_files="$ac_config_files"
35775config_headers="$ac_config_headers"
35776config_commands="$ac_config_commands"
35777
35778_ACEOF
35779
35780cat >>$CONFIG_STATUS <<\_ACEOF
35781ac_cs_usage="\
35782\`$as_me' instantiates files from templates according to the
35783current configuration.
35784
35785Usage: $0 [OPTIONS] [FILE]...
35786
35787  -h, --help       print this help, then exit
35788  -V, --version    print version number, then exit
35789  -q, --quiet      do not print progress messages
35790  -d, --debug      don't remove temporary files
35791      --recheck    update $as_me by reconfiguring in the same conditions
35792  --file=FILE[:TEMPLATE]
35793		   instantiate the configuration file FILE
35794  --header=FILE[:TEMPLATE]
35795		   instantiate the configuration header FILE
35796
35797Configuration files:
35798$config_files
35799
35800Configuration headers:
35801$config_headers
35802
35803Configuration commands:
35804$config_commands
35805
35806Report bugs to <bug-autoconf@gnu.org>."
35807
35808_ACEOF
35809cat >>$CONFIG_STATUS <<_ACEOF
35810ac_cs_version="\\
35811llvm config.status 2.7svn
35812configured by $0, generated by GNU Autoconf 2.60,
35813  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35814
35815Copyright (C) 2006 Free Software Foundation, Inc.
35816This config.status script is free software; the Free Software Foundation
35817gives unlimited permission to copy, distribute and modify it."
35818
35819ac_pwd='$ac_pwd'
35820srcdir='$srcdir'
35821INSTALL='$INSTALL'
35822_ACEOF
35823
35824cat >>$CONFIG_STATUS <<\_ACEOF
35825# If no file are specified by the user, then we need to provide default
35826# value.  By we need to know if files were specified by the user.
35827ac_need_defaults=:
35828while test $# != 0
35829do
35830  case $1 in
35831  --*=*)
35832    ac_option=`expr "X$1" : 'X\([^=]*\)='`
35833    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35834    ac_shift=:
35835    ;;
35836  *)
35837    ac_option=$1
35838    ac_optarg=$2
35839    ac_shift=shift
35840    ;;
35841  esac
35842
35843  case $ac_option in
35844  # Handling of the options.
35845  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35846    ac_cs_recheck=: ;;
35847  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35848    echo "$ac_cs_version"; exit ;;
35849  --debug | --debu | --deb | --de | --d | -d )
35850    debug=: ;;
35851  --file | --fil | --fi | --f )
35852    $ac_shift
35853    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35854    ac_need_defaults=false;;
35855  --header | --heade | --head | --hea )
35856    $ac_shift
35857    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35858    ac_need_defaults=false;;
35859  --he | --h)
35860    # Conflict between --help and --header
35861    { echo "$as_me: error: ambiguous option: $1
35862Try \`$0 --help' for more information." >&2
35863   { (exit 1); exit 1; }; };;
35864  --help | --hel | -h )
35865    echo "$ac_cs_usage"; exit ;;
35866  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35867  | -silent | --silent | --silen | --sile | --sil | --si | --s)
35868    ac_cs_silent=: ;;
35869
35870  # This is an error.
35871  -*) { echo "$as_me: error: unrecognized option: $1
35872Try \`$0 --help' for more information." >&2
35873   { (exit 1); exit 1; }; } ;;
35874
35875  *) ac_config_targets="$ac_config_targets $1"
35876     ac_need_defaults=false ;;
35877
35878  esac
35879  shift
35880done
35881
35882ac_configure_extra_args=
35883
35884if $ac_cs_silent; then
35885  exec 6>/dev/null
35886  ac_configure_extra_args="$ac_configure_extra_args --silent"
35887fi
35888
35889_ACEOF
35890cat >>$CONFIG_STATUS <<_ACEOF
35891if \$ac_cs_recheck; then
35892  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35893  CONFIG_SHELL=$SHELL
35894  export CONFIG_SHELL
35895  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35896fi
35897
35898_ACEOF
35899cat >>$CONFIG_STATUS <<\_ACEOF
35900exec 5>>config.log
35901{
35902  echo
35903  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35904## Running $as_me. ##
35905_ASBOX
35906  echo "$ac_log"
35907} >&5
35908
35909_ACEOF
35910cat >>$CONFIG_STATUS <<_ACEOF
35911#
35912# INIT-COMMANDS
35913#
35914llvm_src="${srcdir}"
35915
35916_ACEOF
35917
35918cat >>$CONFIG_STATUS <<\_ACEOF
35919
35920# Handling of arguments.
35921for ac_config_target in $ac_config_targets
35922do
35923  case $ac_config_target in
35924    "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35925    "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35926    "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
35927    "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
35928    "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35929    "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
35930    "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
35931    "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35932    "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
35933    "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35934    "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35935    "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35936    "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35937    "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35938    "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35939    "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35940    "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35941    "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35942    "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
35943    "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35944    "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35945    "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
35946    "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35947    "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35948
35949  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35950echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35951   { (exit 1); exit 1; }; };;
35952  esac
35953done
35954
35955
35956# If the user did not use the arguments to specify the items to instantiate,
35957# then the envvar interface is used.  Set only those that are not.
35958# We use the long form for the default assignment because of an extremely
35959# bizarre bug on SunOS 4.1.3.
35960if $ac_need_defaults; then
35961  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35962  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35963  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35964fi
35965
35966# Have a temporary directory for convenience.  Make it in the build tree
35967# simply because there is no reason against having it here, and in addition,
35968# creating and moving files from /tmp can sometimes cause problems.
35969# Hook for its removal unless debugging.
35970# Note that there is a small window in which the directory will not be cleaned:
35971# after its creation but before its name has been assigned to `$tmp'.
35972$debug ||
35973{
35974  tmp=
35975  trap 'exit_status=$?
35976  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35977' 0
35978  trap '{ (exit 1); exit 1; }' 1 2 13 15
35979}
35980# Create a (secure) tmp directory for tmp files.
35981
35982{
35983  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35984  test -n "$tmp" && test -d "$tmp"
35985}  ||
35986{
35987  tmp=./conf$$-$RANDOM
35988  (umask 077 && mkdir "$tmp")
35989} ||
35990{
35991   echo "$me: cannot create a temporary directory in ." >&2
35992   { (exit 1); exit 1; }
35993}
35994
35995#
35996# Set up the sed scripts for CONFIG_FILES section.
35997#
35998
35999# No need to generate the scripts if there are no CONFIG_FILES.
36000# This happens for instance when ./config.status config.h
36001if test -n "$CONFIG_FILES"; then
36002
36003_ACEOF
36004
36005
36006
36007ac_delim='%!_!# '
36008for ac_last_try in false false false false false :; do
36009  cat >conf$$subs.sed <<_ACEOF
36010SHELL!$SHELL$ac_delim
36011PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
36012PACKAGE_NAME!$PACKAGE_NAME$ac_delim
36013PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
36014PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
36015PACKAGE_STRING!$PACKAGE_STRING$ac_delim
36016PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
36017exec_prefix!$exec_prefix$ac_delim
36018prefix!$prefix$ac_delim
36019program_transform_name!$program_transform_name$ac_delim
36020bindir!$bindir$ac_delim
36021sbindir!$sbindir$ac_delim
36022libexecdir!$libexecdir$ac_delim
36023datarootdir!$datarootdir$ac_delim
36024datadir!$datadir$ac_delim
36025sysconfdir!$sysconfdir$ac_delim
36026sharedstatedir!$sharedstatedir$ac_delim
36027localstatedir!$localstatedir$ac_delim
36028includedir!$includedir$ac_delim
36029oldincludedir!$oldincludedir$ac_delim
36030docdir!$docdir$ac_delim
36031infodir!$infodir$ac_delim
36032htmldir!$htmldir$ac_delim
36033dvidir!$dvidir$ac_delim
36034pdfdir!$pdfdir$ac_delim
36035psdir!$psdir$ac_delim
36036libdir!$libdir$ac_delim
36037localedir!$localedir$ac_delim
36038mandir!$mandir$ac_delim
36039DEFS!$DEFS$ac_delim
36040ECHO_C!$ECHO_C$ac_delim
36041ECHO_N!$ECHO_N$ac_delim
36042ECHO_T!$ECHO_T$ac_delim
36043LIBS!$LIBS$ac_delim
36044build_alias!$build_alias$ac_delim
36045host_alias!$host_alias$ac_delim
36046target_alias!$target_alias$ac_delim
36047LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
36048subdirs!$subdirs$ac_delim
36049build!$build$ac_delim
36050build_cpu!$build_cpu$ac_delim
36051build_vendor!$build_vendor$ac_delim
36052build_os!$build_os$ac_delim
36053host!$host$ac_delim
36054host_cpu!$host_cpu$ac_delim
36055host_vendor!$host_vendor$ac_delim
36056host_os!$host_os$ac_delim
36057target!$target$ac_delim
36058target_cpu!$target_cpu$ac_delim
36059target_vendor!$target_vendor$ac_delim
36060target_os!$target_os$ac_delim
36061OS!$OS$ac_delim
36062HOST_OS!$HOST_OS$ac_delim
36063TARGET_OS!$TARGET_OS$ac_delim
36064LINKALL!$LINKALL$ac_delim
36065NOLINKALL!$NOLINKALL$ac_delim
36066LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36067LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
36068ARCH!$ARCH$ac_delim
36069ENDIAN!$ENDIAN$ac_delim
36070CC!$CC$ac_delim
36071CFLAGS!$CFLAGS$ac_delim
36072LDFLAGS!$LDFLAGS$ac_delim
36073CPPFLAGS!$CPPFLAGS$ac_delim
36074ac_ct_CC!$ac_ct_CC$ac_delim
36075EXEEXT!$EXEEXT$ac_delim
36076OBJEXT!$OBJEXT$ac_delim
36077CPP!$CPP$ac_delim
36078GREP!$GREP$ac_delim
36079EGREP!$EGREP$ac_delim
36080LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36081BUILD_CC!$BUILD_CC$ac_delim
36082BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
36083BUILD_CXX!$BUILD_CXX$ac_delim
36084CVSBUILD!$CVSBUILD$ac_delim
36085ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
36086ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
36087DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
36088ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36089EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
36090DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
36091JIT!$JIT$ac_delim
36092TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36093ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36094ENABLE_THREADS!$ENABLE_THREADS$ac_delim
36095ENABLE_PIC!$ENABLE_PIC$ac_delim
36096TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
36097LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36098LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
36099LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
36100ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
36101EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
36102BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
36103ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36104ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
36105CXX!$CXX$ac_delim
36106CXXFLAGS!$CXXFLAGS$ac_delim
36107_ACEOF
36108
36109  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36110    break
36111  elif $ac_last_try; then
36112    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36113echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36114   { (exit 1); exit 1; }; }
36115  else
36116    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36117  fi
36118done
36119
36120ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36121if test -n "$ac_eof"; then
36122  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36123  ac_eof=`expr $ac_eof + 1`
36124fi
36125
36126cat >>$CONFIG_STATUS <<_ACEOF
36127cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36128/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36129_ACEOF
36130sed '
36131s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36132s/^/s,@/; s/!/@,|#_!!_#|/
36133:n
36134t n
36135s/'"$ac_delim"'$/,g/; t
36136s/$/\\/; p
36137N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36138' >>$CONFIG_STATUS <conf$$subs.sed
36139rm -f conf$$subs.sed
36140cat >>$CONFIG_STATUS <<_ACEOF
36141CEOF$ac_eof
36142_ACEOF
36143
36144
36145ac_delim='%!_!# '
36146for ac_last_try in false false false false false :; do
36147  cat >conf$$subs.sed <<_ACEOF
36148ac_ct_CXX!$ac_ct_CXX$ac_delim
36149NM!$NM$ac_delim
36150ifGNUmake!$ifGNUmake$ac_delim
36151LN_S!$LN_S$ac_delim
36152CMP!$CMP$ac_delim
36153CP!$CP$ac_delim
36154DATE!$DATE$ac_delim
36155FIND!$FIND$ac_delim
36156MKDIR!$MKDIR$ac_delim
36157MV!$MV$ac_delim
36158RANLIB!$RANLIB$ac_delim
36159RM!$RM$ac_delim
36160SED!$SED$ac_delim
36161TAR!$TAR$ac_delim
36162BINPWD!$BINPWD$ac_delim
36163GRAPHVIZ!$GRAPHVIZ$ac_delim
36164DOT!$DOT$ac_delim
36165FDP!$FDP$ac_delim
36166NEATO!$NEATO$ac_delim
36167TWOPI!$TWOPI$ac_delim
36168CIRCO!$CIRCO$ac_delim
36169GV!$GV$ac_delim
36170DOTTY!$DOTTY$ac_delim
36171PERL!$PERL$ac_delim
36172HAVE_PERL!$HAVE_PERL$ac_delim
36173INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36174INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36175INSTALL_DATA!$INSTALL_DATA$ac_delim
36176BZIP2!$BZIP2$ac_delim
36177DOXYGEN!$DOXYGEN$ac_delim
36178GROFF!$GROFF$ac_delim
36179GZIP!$GZIP$ac_delim
36180POD2HTML!$POD2HTML$ac_delim
36181POD2MAN!$POD2MAN$ac_delim
36182RUNTEST!$RUNTEST$ac_delim
36183TCLSH!$TCLSH$ac_delim
36184ZIP!$ZIP$ac_delim
36185OCAMLC!$OCAMLC$ac_delim
36186OCAMLOPT!$OCAMLOPT$ac_delim
36187OCAMLDEP!$OCAMLDEP$ac_delim
36188OCAMLDOC!$OCAMLDOC$ac_delim
36189GAS!$GAS$ac_delim
36190INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36191INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36192CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36193CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36194LIBADD_DL!$LIBADD_DL$ac_delim
36195ECHO!$ECHO$ac_delim
36196AR!$AR$ac_delim
36197STRIP!$STRIP$ac_delim
36198CXXCPP!$CXXCPP$ac_delim
36199F77!$F77$ac_delim
36200FFLAGS!$FFLAGS$ac_delim
36201ac_ct_F77!$ac_ct_F77$ac_delim
36202LIBTOOL!$LIBTOOL$ac_delim
36203LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36204LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
36205LLVMGCC!$LLVMGCC$ac_delim
36206LLVMGXX!$LLVMGXX$ac_delim
36207USE_UDIS86!$USE_UDIS86$ac_delim
36208USE_OPROFILE!$USE_OPROFILE$ac_delim
36209HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
36210HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
36211ALLOCA!$ALLOCA$ac_delim
36212MMAP_FILE!$MMAP_FILE$ac_delim
36213LLVMCC1!$LLVMCC1$ac_delim
36214LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36215LLVMGCCDIR!$LLVMGCCDIR$ac_delim
36216LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
36217LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36218LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
36219LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
36220SHLIBEXT!$SHLIBEXT$ac_delim
36221LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36222LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36223LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36224LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36225LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36226LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36227LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36228LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36229LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36230LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
36231BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36232ALL_BINDINGS!$ALL_BINDINGS$ac_delim
36233OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
36234ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
36235RPATH!$RPATH$ac_delim
36236RDYNAMIC!$RDYNAMIC$ac_delim
36237LIBOBJS!$LIBOBJS$ac_delim
36238LTLIBOBJS!$LTLIBOBJS$ac_delim
36239_ACEOF
36240
36241  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
36242    break
36243  elif $ac_last_try; then
36244    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36245echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36246   { (exit 1); exit 1; }; }
36247  else
36248    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36249  fi
36250done
36251
36252ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36253if test -n "$ac_eof"; then
36254  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36255  ac_eof=`expr $ac_eof + 1`
36256fi
36257
36258cat >>$CONFIG_STATUS <<_ACEOF
36259cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36260/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36261_ACEOF
36262sed '
36263s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36264s/^/s,@/; s/!/@,|#_!!_#|/
36265:n
36266t n
36267s/'"$ac_delim"'$/,g/; t
36268s/$/\\/; p
36269N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36270' >>$CONFIG_STATUS <conf$$subs.sed
36271rm -f conf$$subs.sed
36272cat >>$CONFIG_STATUS <<_ACEOF
36273:end
36274s/|#_!!_#|//g
36275CEOF$ac_eof
36276_ACEOF
36277
36278
36279# VPATH may cause trouble with some makes, so we remove $(srcdir),
36280# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36281# trailing colons and then remove the whole line if VPATH becomes empty
36282# (actually we leave an empty line to preserve line numbers).
36283if test "x$srcdir" = x.; then
36284  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
36285s/:*\$(srcdir):*/:/
36286s/:*\${srcdir}:*/:/
36287s/:*@srcdir@:*/:/
36288s/^\([^=]*=[	 ]*\):*/\1/
36289s/:*$//
36290s/^[^=]*=[	 ]*$//
36291}'
36292fi
36293
36294cat >>$CONFIG_STATUS <<\_ACEOF
36295fi # test -n "$CONFIG_FILES"
36296
36297
36298for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
36299do
36300  case $ac_tag in
36301  :[FHLC]) ac_mode=$ac_tag; continue;;
36302  esac
36303  case $ac_mode$ac_tag in
36304  :[FHL]*:*);;
36305  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36306echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36307   { (exit 1); exit 1; }; };;
36308  :[FH]-) ac_tag=-:-;;
36309  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36310  esac
36311  ac_save_IFS=$IFS
36312  IFS=:
36313  set x $ac_tag
36314  IFS=$ac_save_IFS
36315  shift
36316  ac_file=$1
36317  shift
36318
36319  case $ac_mode in
36320  :L) ac_source=$1;;
36321  :[FH])
36322    ac_file_inputs=
36323    for ac_f
36324    do
36325      case $ac_f in
36326      -) ac_f="$tmp/stdin";;
36327      *) # Look for the file first in the build tree, then in the source tree
36328	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
36329	 # because $ac_f cannot contain `:'.
36330	 test -f "$ac_f" ||
36331	   case $ac_f in
36332	   [\\/$]*) false;;
36333	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36334	   esac ||
36335	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36336echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36337   { (exit 1); exit 1; }; };;
36338      esac
36339      ac_file_inputs="$ac_file_inputs $ac_f"
36340    done
36341
36342    # Let's still pretend it is `configure' which instantiates (i.e., don't
36343    # use $as_me), people would be surprised to read:
36344    #    /* config.h.  Generated by config.status.  */
36345    configure_input="Generated from "`IFS=:
36346	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36347    if test x"$ac_file" != x-; then
36348      configure_input="$ac_file.  $configure_input"
36349      { echo "$as_me:$LINENO: creating $ac_file" >&5
36350echo "$as_me: creating $ac_file" >&6;}
36351    fi
36352
36353    case $ac_tag in
36354    *:-:* | *:-) cat >"$tmp/stdin";;
36355    esac
36356    ;;
36357  esac
36358
36359  ac_dir=`$as_dirname -- "$ac_file" ||
36360$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36361	 X"$ac_file" : 'X\(//\)[^/]' \| \
36362	 X"$ac_file" : 'X\(//\)$' \| \
36363	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36364echo X"$ac_file" |
36365    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36366	    s//\1/
36367	    q
36368	  }
36369	  /^X\(\/\/\)[^/].*/{
36370	    s//\1/
36371	    q
36372	  }
36373	  /^X\(\/\/\)$/{
36374	    s//\1/
36375	    q
36376	  }
36377	  /^X\(\/\).*/{
36378	    s//\1/
36379	    q
36380	  }
36381	  s/.*/./; q'`
36382  { as_dir="$ac_dir"
36383  case $as_dir in #(
36384  -*) as_dir=./$as_dir;;
36385  esac
36386  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36387    as_dirs=
36388    while :; do
36389      case $as_dir in #(
36390      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36391      *) as_qdir=$as_dir;;
36392      esac
36393      as_dirs="'$as_qdir' $as_dirs"
36394      as_dir=`$as_dirname -- "$as_dir" ||
36395$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36396	 X"$as_dir" : 'X\(//\)[^/]' \| \
36397	 X"$as_dir" : 'X\(//\)$' \| \
36398	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36399echo X"$as_dir" |
36400    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36401	    s//\1/
36402	    q
36403	  }
36404	  /^X\(\/\/\)[^/].*/{
36405	    s//\1/
36406	    q
36407	  }
36408	  /^X\(\/\/\)$/{
36409	    s//\1/
36410	    q
36411	  }
36412	  /^X\(\/\).*/{
36413	    s//\1/
36414	    q
36415	  }
36416	  s/.*/./; q'`
36417      test -d "$as_dir" && break
36418    done
36419    test -z "$as_dirs" || eval "mkdir $as_dirs"
36420  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36421echo "$as_me: error: cannot create directory $as_dir" >&2;}
36422   { (exit 1); exit 1; }; }; }
36423  ac_builddir=.
36424
36425case "$ac_dir" in
36426.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36427*)
36428  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36429  # A ".." for each directory in $ac_dir_suffix.
36430  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36431  case $ac_top_builddir_sub in
36432  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36433  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36434  esac ;;
36435esac
36436ac_abs_top_builddir=$ac_pwd
36437ac_abs_builddir=$ac_pwd$ac_dir_suffix
36438# for backward compatibility:
36439ac_top_builddir=$ac_top_build_prefix
36440
36441case $srcdir in
36442  .)  # We are building in place.
36443    ac_srcdir=.
36444    ac_top_srcdir=$ac_top_builddir_sub
36445    ac_abs_top_srcdir=$ac_pwd ;;
36446  [\\/]* | ?:[\\/]* )  # Absolute name.
36447    ac_srcdir=$srcdir$ac_dir_suffix;
36448    ac_top_srcdir=$srcdir
36449    ac_abs_top_srcdir=$srcdir ;;
36450  *) # Relative name.
36451    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36452    ac_top_srcdir=$ac_top_build_prefix$srcdir
36453    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36454esac
36455ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36456
36457
36458  case $ac_mode in
36459  :F)
36460  #
36461  # CONFIG_FILE
36462  #
36463
36464  case $INSTALL in
36465  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36466  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36467  esac
36468_ACEOF
36469
36470cat >>$CONFIG_STATUS <<\_ACEOF
36471# If the template does not know about datarootdir, expand it.
36472# FIXME: This hack should be removed a few years after 2.60.
36473ac_datarootdir_hack=; ac_datarootdir_seen=
36474
36475case `sed -n '/datarootdir/ {
36476  p
36477  q
36478}
36479/@datadir@/p
36480/@docdir@/p
36481/@infodir@/p
36482/@localedir@/p
36483/@mandir@/p
36484' $ac_file_inputs` in
36485*datarootdir*) ac_datarootdir_seen=yes;;
36486*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36487  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36488echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36489_ACEOF
36490cat >>$CONFIG_STATUS <<_ACEOF
36491  ac_datarootdir_hack='
36492  s&@datadir@&$datadir&g
36493  s&@docdir@&$docdir&g
36494  s&@infodir@&$infodir&g
36495  s&@localedir@&$localedir&g
36496  s&@mandir@&$mandir&g
36497    s&\\\${datarootdir}&$datarootdir&g' ;;
36498esac
36499_ACEOF
36500
36501# Neutralize VPATH when `$srcdir' = `.'.
36502# Shell code in configure.ac might set extrasub.
36503# FIXME: do we really want to maintain this feature?
36504cat >>$CONFIG_STATUS <<_ACEOF
36505  sed "$ac_vpsub
36506$extrasub
36507_ACEOF
36508cat >>$CONFIG_STATUS <<\_ACEOF
36509:t
36510/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36511s&@configure_input@&$configure_input&;t t
36512s&@top_builddir@&$ac_top_builddir_sub&;t t
36513s&@srcdir@&$ac_srcdir&;t t
36514s&@abs_srcdir@&$ac_abs_srcdir&;t t
36515s&@top_srcdir@&$ac_top_srcdir&;t t
36516s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36517s&@builddir@&$ac_builddir&;t t
36518s&@abs_builddir@&$ac_abs_builddir&;t t
36519s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36520s&@INSTALL@&$ac_INSTALL&;t t
36521$ac_datarootdir_hack
36522" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
36523
36524test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36525  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36526  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36527  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36528which seems to be undefined.  Please make sure it is defined." >&5
36529echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36530which seems to be undefined.  Please make sure it is defined." >&2;}
36531
36532  rm -f "$tmp/stdin"
36533  case $ac_file in
36534  -) cat "$tmp/out"; rm -f "$tmp/out";;
36535  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36536  esac
36537 ;;
36538  :H)
36539  #
36540  # CONFIG_HEADER
36541  #
36542_ACEOF
36543
36544# Transform confdefs.h into a sed script `conftest.defines', that
36545# substitutes the proper values into config.h.in to produce config.h.
36546rm -f conftest.defines conftest.tail
36547# First, append a space to every undef/define line, to ease matching.
36548echo 's/$/ /' >conftest.defines
36549# Then, protect against being on the right side of a sed subst, or in
36550# an unquoted here document, in config.status.  If some macros were
36551# called several times there might be several #defines for the same
36552# symbol, which is useless.  But do not sort them, since the last
36553# AC_DEFINE must be honored.
36554ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36555# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36556# NAME is the cpp macro being defined, VALUE is the value it is being given.
36557# PARAMS is the parameter list in the macro definition--in most cases, it's
36558# just an empty string.
36559ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
36560ac_dB='\\)[	 (].*,\\1define\\2'
36561ac_dC=' '
36562ac_dD=' ,'
36563
36564uniq confdefs.h |
36565  sed -n '
36566	t rset
36567	:rset
36568	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
36569	t ok
36570	d
36571	:ok
36572	s/[\\&,]/\\&/g
36573	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36574	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36575  ' >>conftest.defines
36576
36577# Remove the space that was appended to ease matching.
36578# Then replace #undef with comments.  This is necessary, for
36579# example, in the case of _POSIX_SOURCE, which is predefined and required
36580# on some systems where configure will not decide to define it.
36581# (The regexp can be short, since the line contains either #define or #undef.)
36582echo 's/ $//
36583s,^[	 #]*u.*,/* & */,' >>conftest.defines
36584
36585# Break up conftest.defines:
36586ac_max_sed_lines=50
36587
36588# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36589# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36590# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36591# et cetera.
36592ac_in='$ac_file_inputs'
36593ac_out='"$tmp/out1"'
36594ac_nxt='"$tmp/out2"'
36595
36596while :
36597do
36598  # Write a here document:
36599    cat >>$CONFIG_STATUS <<_ACEOF
36600    # First, check the format of the line:
36601    cat >"\$tmp/defines.sed" <<\\CEOF
36602/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
36603/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
36604b
36605:def
36606_ACEOF
36607  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36608  echo 'CEOF
36609    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36610  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36611  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36612  grep . conftest.tail >/dev/null || break
36613  rm -f conftest.defines
36614  mv conftest.tail conftest.defines
36615done
36616rm -f conftest.defines conftest.tail
36617
36618echo "ac_result=$ac_in" >>$CONFIG_STATUS
36619cat >>$CONFIG_STATUS <<\_ACEOF
36620  if test x"$ac_file" != x-; then
36621    echo "/* $configure_input  */" >"$tmp/config.h"
36622    cat "$ac_result" >>"$tmp/config.h"
36623    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36624      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36625echo "$as_me: $ac_file is unchanged" >&6;}
36626    else
36627      rm -f $ac_file
36628      mv "$tmp/config.h" $ac_file
36629    fi
36630  else
36631    echo "/* $configure_input  */"
36632    cat "$ac_result"
36633  fi
36634  rm -f "$tmp/out12"
36635 ;;
36636
36637  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36638echo "$as_me: executing $ac_file commands" >&6;}
36639 ;;
36640  esac
36641
36642
36643  case $ac_file$ac_mode in
36644    "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
36645   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
36646    "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
36647   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
36648    "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
36649   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
36650    "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
36651   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
36652    "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
36653   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
36654    "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
36655   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
36656    "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
36657   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
36658    "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
36659   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
36660    "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
36661   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
36662    "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
36663   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
36664    "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
36665   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
36666    "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
36667   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
36668    "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
36669   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
36670
36671  esac
36672done # for ac_tag
36673
36674
36675{ (exit 0); exit 0; }
36676_ACEOF
36677chmod +x $CONFIG_STATUS
36678ac_clean_files=$ac_clean_files_save
36679
36680
36681# configure is writing to config.log, and then calls config.status.
36682# config.status does its own redirection, appending to config.log.
36683# Unfortunately, on DOS this fails, as config.log is still kept open
36684# by configure, so config.status won't be able to write to it; its
36685# output is simply discarded.  So we exec the FD to /dev/null,
36686# effectively closing config.log, so it can be properly (re)opened and
36687# appended to by config.status.  When coming back to configure, we
36688# need to make the FD available again.
36689if test "$no_create" != yes; then
36690  ac_cs_success=:
36691  ac_config_status_args=
36692  test "$silent" = yes &&
36693    ac_config_status_args="$ac_config_status_args --quiet"
36694  exec 5>/dev/null
36695  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36696  exec 5>>config.log
36697  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36698  # would make configure fail if this is the last instruction.
36699  $ac_cs_success || { (exit 1); exit 1; }
36700fi
36701
36702#
36703# CONFIG_SUBDIRS section.
36704#
36705if test "$no_recursion" != yes; then
36706
36707  # Remove --cache-file and --srcdir arguments so they do not pile up.
36708  ac_sub_configure_args=
36709  ac_prev=
36710  eval "set x $ac_configure_args"
36711  shift
36712  for ac_arg
36713  do
36714    if test -n "$ac_prev"; then
36715      ac_prev=
36716      continue
36717    fi
36718    case $ac_arg in
36719    -cache-file | --cache-file | --cache-fil | --cache-fi \
36720    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36721      ac_prev=cache_file ;;
36722    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36723    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36724    | --c=*)
36725      ;;
36726    --config-cache | -C)
36727      ;;
36728    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36729      ac_prev=srcdir ;;
36730    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36731      ;;
36732    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36733      ac_prev=prefix ;;
36734    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36735      ;;
36736    *)
36737      case $ac_arg in
36738      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36739      esac
36740      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
36741    esac
36742  done
36743
36744  # Always prepend --prefix to ensure using the same prefix
36745  # in subdir configurations.
36746  ac_arg="--prefix=$prefix"
36747  case $ac_arg in
36748  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36749  esac
36750  ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
36751
36752  ac_popdir=`pwd`
36753  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36754
36755    # Do not complain, so a configure script can configure whichever
36756    # parts of a large source tree are present.
36757    test -d "$srcdir/$ac_dir" || continue
36758
36759    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36760    echo "$as_me:$LINENO: $ac_msg" >&5
36761    echo "$ac_msg" >&6
36762    { as_dir="$ac_dir"
36763  case $as_dir in #(
36764  -*) as_dir=./$as_dir;;
36765  esac
36766  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36767    as_dirs=
36768    while :; do
36769      case $as_dir in #(
36770      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36771      *) as_qdir=$as_dir;;
36772      esac
36773      as_dirs="'$as_qdir' $as_dirs"
36774      as_dir=`$as_dirname -- "$as_dir" ||
36775$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36776	 X"$as_dir" : 'X\(//\)[^/]' \| \
36777	 X"$as_dir" : 'X\(//\)$' \| \
36778	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36779echo X"$as_dir" |
36780    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36781	    s//\1/
36782	    q
36783	  }
36784	  /^X\(\/\/\)[^/].*/{
36785	    s//\1/
36786	    q
36787	  }
36788	  /^X\(\/\/\)$/{
36789	    s//\1/
36790	    q
36791	  }
36792	  /^X\(\/\).*/{
36793	    s//\1/
36794	    q
36795	  }
36796	  s/.*/./; q'`
36797      test -d "$as_dir" && break
36798    done
36799    test -z "$as_dirs" || eval "mkdir $as_dirs"
36800  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36801echo "$as_me: error: cannot create directory $as_dir" >&2;}
36802   { (exit 1); exit 1; }; }; }
36803    ac_builddir=.
36804
36805case "$ac_dir" in
36806.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36807*)
36808  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36809  # A ".." for each directory in $ac_dir_suffix.
36810  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36811  case $ac_top_builddir_sub in
36812  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36813  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36814  esac ;;
36815esac
36816ac_abs_top_builddir=$ac_pwd
36817ac_abs_builddir=$ac_pwd$ac_dir_suffix
36818# for backward compatibility:
36819ac_top_builddir=$ac_top_build_prefix
36820
36821case $srcdir in
36822  .)  # We are building in place.
36823    ac_srcdir=.
36824    ac_top_srcdir=$ac_top_builddir_sub
36825    ac_abs_top_srcdir=$ac_pwd ;;
36826  [\\/]* | ?:[\\/]* )  # Absolute name.
36827    ac_srcdir=$srcdir$ac_dir_suffix;
36828    ac_top_srcdir=$srcdir
36829    ac_abs_top_srcdir=$srcdir ;;
36830  *) # Relative name.
36831    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36832    ac_top_srcdir=$ac_top_build_prefix$srcdir
36833    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36834esac
36835ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36836
36837
36838    cd "$ac_dir"
36839
36840    # Check for guested configure; otherwise get Cygnus style configure.
36841    if test -f "$ac_srcdir/configure.gnu"; then
36842      ac_sub_configure=$ac_srcdir/configure.gnu
36843    elif test -f "$ac_srcdir/configure"; then
36844      ac_sub_configure=$ac_srcdir/configure
36845    elif test -f "$ac_srcdir/configure.in"; then
36846      # This should be Cygnus configure.
36847      ac_sub_configure=$ac_aux_dir/configure
36848    else
36849      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36850echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36851      ac_sub_configure=
36852    fi
36853
36854    # The recursion is here.
36855    if test -n "$ac_sub_configure"; then
36856      # Make the cache file name correct relative to the subdirectory.
36857      case $cache_file in
36858      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36859      *) # Relative name.
36860	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36861      esac
36862
36863      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36864echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36865      # The eval makes quoting arguments work.
36866      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36867	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36868	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36869echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36870   { (exit 1); exit 1; }; }
36871    fi
36872
36873    cd "$ac_popdir"
36874  done
36875fi
36876
36877