configure revision 54c7e1216415172ac1a2aaafa32668c97f845a2c
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.60 for llvm 2.2svn.
4#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
12# Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
13## --------------------- ##
14## M4sh Initialization.  ##
15## --------------------- ##
16
17# Be 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.2svn'
719PACKAGE_STRING='llvm 2.2svn'
720PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
722ac_unique_file="lib/VMCore/Module.cpp"
723# Factoring default headers for most tests.
724ac_includes_default="\
725#include <stdio.h>
726#if HAVE_SYS_TYPES_H
727# include <sys/types.h>
728#endif
729#if HAVE_SYS_STAT_H
730# include <sys/stat.h>
731#endif
732#if STDC_HEADERS
733# include <stdlib.h>
734# include <stddef.h>
735#else
736# if HAVE_STDLIB_H
737#  include <stdlib.h>
738# endif
739#endif
740#if HAVE_STRING_H
741# if !STDC_HEADERS && HAVE_MEMORY_H
742#  include <memory.h>
743# endif
744# include <string.h>
745#endif
746#if HAVE_STRINGS_H
747# include <strings.h>
748#endif
749#if HAVE_INTTYPES_H
750# include <inttypes.h>
751#endif
752#if HAVE_STDINT_H
753# include <stdint.h>
754#endif
755#if HAVE_UNISTD_H
756# include <unistd.h>
757#endif"
758
759ac_subst_vars='SHELL
760PATH_SEPARATOR
761PACKAGE_NAME
762PACKAGE_TARNAME
763PACKAGE_VERSION
764PACKAGE_STRING
765PACKAGE_BUGREPORT
766exec_prefix
767prefix
768program_transform_name
769bindir
770sbindir
771libexecdir
772datarootdir
773datadir
774sysconfdir
775sharedstatedir
776localstatedir
777includedir
778oldincludedir
779docdir
780infodir
781htmldir
782dvidir
783pdfdir
784psdir
785libdir
786localedir
787mandir
788DEFS
789ECHO_C
790ECHO_N
791ECHO_T
792LIBS
793build_alias
794host_alias
795target_alias
796LLVM_COPYRIGHT
797subdirs
798build
799build_cpu
800build_vendor
801build_os
802host
803host_cpu
804host_vendor
805host_os
806target
807target_cpu
808target_vendor
809target_os
810OS
811LINKALL
812NOLINKALL
813LLVM_ON_UNIX
814LLVM_ON_WIN32
815ARCH
816ENDIAN
817CC
818CFLAGS
819LDFLAGS
820CPPFLAGS
821ac_ct_CC
822EXEEXT
823OBJEXT
824CPP
825GREP
826EGREP
827LLVM_CROSS_COMPILING
828BUILD_CC
829BUILD_EXEEXT
830CVSBUILD
831ENABLE_OPTIMIZED
832DISABLE_ASSERTIONS
833ENABLE_EXPENSIVE_CHECKS
834EXPENSIVE_CHECKS
835DEBUG_RUNTIME
836JIT
837TARGET_HAS_JIT
838ENABLE_DOXYGEN
839ENABLE_THREADS
840ENABLE_PIC
841TARGETS_TO_BUILD
842ENABLE_CBE_PRINTF_A
843EXTRA_OPTIONS
844CXX
845CXXFLAGS
846ac_ct_CXX
847LEX
848LEXLIB
849LEX_OUTPUT_ROOT
850FLEX
851YACC
852YFLAGS
853BISON
854NM
855ifGNUmake
856LN_S
857CMP
858CP
859DATE
860FIND
861MKDIR
862MV
863RANLIB
864RM
865SED
866TAR
867BINPWD
868GRAPHVIZ
869DOT
870GV
871DOTTY
872PERL
873HAVE_PERL
874INSTALL_PROGRAM
875INSTALL_SCRIPT
876INSTALL_DATA
877BZIP2
878DOXYGEN
879GROFF
880GZIP
881POD2HTML
882POD2MAN
883RUNTEST
884TCLSH
885ZIP
886OCAMLC
887OCAMLOPT
888INSTALL_LTDL_TRUE
889INSTALL_LTDL_FALSE
890CONVENIENCE_LTDL_TRUE
891CONVENIENCE_LTDL_FALSE
892LIBADD_DL
893ECHO
894AR
895STRIP
896CXXCPP
897F77
898FFLAGS
899ac_ct_F77
900LIBTOOL
901ETAGSFLAGS
902LLVMGCC
903LLVMGXX
904USE_UDIS86
905HAVE_PTHREAD
906HUGE_VAL_SANITY
907ALLOCA
908MMAP_FILE
909LLVMCC1
910LLVMCC1PLUS
911LLVMGCCDIR
912LLVMGCCLIBEXEC
913LLVMGCC_VERSION
914LLVMGCC_MAJVERS
915LLVMGCC_LANGS
916SHLIBEXT
917LLVM_PREFIX
918LLVM_BINDIR
919LLVM_LIBDIR
920LLVM_DATADIR
921LLVM_DOCSDIR
922LLVM_ETCDIR
923LLVM_INCLUDEDIR
924LLVM_INFODIR
925LLVM_MANDIR
926LLVM_CONFIGTIME
927LIBOBJS
928LTLIBOBJS'
929ac_subst_files=''
930      ac_precious_vars='build_alias
931host_alias
932target_alias
933CC
934CFLAGS
935LDFLAGS
936CPPFLAGS
937CPP
938CXX
939CXXFLAGS
940CCC
941YACC
942YFLAGS
943CXXCPP
944F77
945FFLAGS'
946ac_subdirs_all='projects/sample
947projects/privbracket
948projects/llvm-stacker
949projects/llvm-test
950projects/llvm-reopt
951projects/llvm-gcc
952projects/llvm-java
953projects/llvm-tv
954projects/llvm-poolalloc
955projects/poolalloc
956projects/llvm-kernel'
957
958# Initialize some variables set by options.
959ac_init_help=
960ac_init_version=false
961# The variables have the same names as the options, with
962# dashes changed to underlines.
963cache_file=/dev/null
964exec_prefix=NONE
965no_create=
966no_recursion=
967prefix=NONE
968program_prefix=NONE
969program_suffix=NONE
970program_transform_name=s,x,x,
971silent=
972site=
973srcdir=
974verbose=
975x_includes=NONE
976x_libraries=NONE
977
978# Installation directory options.
979# These are left unexpanded so users can "make install exec_prefix=/foo"
980# and all the variables that are supposed to be based on exec_prefix
981# by default will actually change.
982# Use braces instead of parens because sh, perl, etc. also accept them.
983# (The list follows the same order as the GNU Coding Standards.)
984bindir='${exec_prefix}/bin'
985sbindir='${exec_prefix}/sbin'
986libexecdir='${exec_prefix}/libexec'
987datarootdir='${prefix}/share'
988datadir='${datarootdir}'
989sysconfdir='${prefix}/etc'
990sharedstatedir='${prefix}/com'
991localstatedir='${prefix}/var'
992includedir='${prefix}/include'
993oldincludedir='/usr/include'
994docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
995infodir='${datarootdir}/info'
996htmldir='${docdir}'
997dvidir='${docdir}'
998pdfdir='${docdir}'
999psdir='${docdir}'
1000libdir='${exec_prefix}/lib'
1001localedir='${datarootdir}/locale'
1002mandir='${datarootdir}/man'
1003
1004ac_prev=
1005ac_dashdash=
1006for ac_option
1007do
1008  # If the previous option needs an argument, assign it.
1009  if test -n "$ac_prev"; then
1010    eval $ac_prev=\$ac_option
1011    ac_prev=
1012    continue
1013  fi
1014
1015  case $ac_option in
1016  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1017  *)	ac_optarg=yes ;;
1018  esac
1019
1020  # Accept the important Cygnus configure options, so we can diagnose typos.
1021
1022  case $ac_dashdash$ac_option in
1023  --)
1024    ac_dashdash=yes ;;
1025
1026  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1027    ac_prev=bindir ;;
1028  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1029    bindir=$ac_optarg ;;
1030
1031  -build | --build | --buil | --bui | --bu)
1032    ac_prev=build_alias ;;
1033  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1034    build_alias=$ac_optarg ;;
1035
1036  -cache-file | --cache-file | --cache-fil | --cache-fi \
1037  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1038    ac_prev=cache_file ;;
1039  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1040  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1041    cache_file=$ac_optarg ;;
1042
1043  --config-cache | -C)
1044    cache_file=config.cache ;;
1045
1046  -datadir | --datadir | --datadi | --datad)
1047    ac_prev=datadir ;;
1048  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1049    datadir=$ac_optarg ;;
1050
1051  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1052  | --dataroo | --dataro | --datar)
1053    ac_prev=datarootdir ;;
1054  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1055  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1056    datarootdir=$ac_optarg ;;
1057
1058  -disable-* | --disable-*)
1059    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1060    # Reject names that are not valid shell variable names.
1061    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1062      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1063   { (exit 1); exit 1; }; }
1064    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1065    eval enable_$ac_feature=no ;;
1066
1067  -docdir | --docdir | --docdi | --doc | --do)
1068    ac_prev=docdir ;;
1069  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1070    docdir=$ac_optarg ;;
1071
1072  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1073    ac_prev=dvidir ;;
1074  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1075    dvidir=$ac_optarg ;;
1076
1077  -enable-* | --enable-*)
1078    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1079    # Reject names that are not valid shell variable names.
1080    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1081      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1082   { (exit 1); exit 1; }; }
1083    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1084    eval enable_$ac_feature=\$ac_optarg ;;
1085
1086  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1087  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1088  | --exec | --exe | --ex)
1089    ac_prev=exec_prefix ;;
1090  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1091  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1092  | --exec=* | --exe=* | --ex=*)
1093    exec_prefix=$ac_optarg ;;
1094
1095  -gas | --gas | --ga | --g)
1096    # Obsolete; use --with-gas.
1097    with_gas=yes ;;
1098
1099  -help | --help | --hel | --he | -h)
1100    ac_init_help=long ;;
1101  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1102    ac_init_help=recursive ;;
1103  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1104    ac_init_help=short ;;
1105
1106  -host | --host | --hos | --ho)
1107    ac_prev=host_alias ;;
1108  -host=* | --host=* | --hos=* | --ho=*)
1109    host_alias=$ac_optarg ;;
1110
1111  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1112    ac_prev=htmldir ;;
1113  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1114  | --ht=*)
1115    htmldir=$ac_optarg ;;
1116
1117  -includedir | --includedir | --includedi | --included | --include \
1118  | --includ | --inclu | --incl | --inc)
1119    ac_prev=includedir ;;
1120  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1121  | --includ=* | --inclu=* | --incl=* | --inc=*)
1122    includedir=$ac_optarg ;;
1123
1124  -infodir | --infodir | --infodi | --infod | --info | --inf)
1125    ac_prev=infodir ;;
1126  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1127    infodir=$ac_optarg ;;
1128
1129  -libdir | --libdir | --libdi | --libd)
1130    ac_prev=libdir ;;
1131  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1132    libdir=$ac_optarg ;;
1133
1134  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1135  | --libexe | --libex | --libe)
1136    ac_prev=libexecdir ;;
1137  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1138  | --libexe=* | --libex=* | --libe=*)
1139    libexecdir=$ac_optarg ;;
1140
1141  -localedir | --localedir | --localedi | --localed | --locale)
1142    ac_prev=localedir ;;
1143  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1144    localedir=$ac_optarg ;;
1145
1146  -localstatedir | --localstatedir | --localstatedi | --localstated \
1147  | --localstate | --localstat | --localsta | --localst | --locals)
1148    ac_prev=localstatedir ;;
1149  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1150  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1151    localstatedir=$ac_optarg ;;
1152
1153  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1154    ac_prev=mandir ;;
1155  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1156    mandir=$ac_optarg ;;
1157
1158  -nfp | --nfp | --nf)
1159    # Obsolete; use --without-fp.
1160    with_fp=no ;;
1161
1162  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1163  | --no-cr | --no-c | -n)
1164    no_create=yes ;;
1165
1166  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1167  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1168    no_recursion=yes ;;
1169
1170  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1171  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1172  | --oldin | --oldi | --old | --ol | --o)
1173    ac_prev=oldincludedir ;;
1174  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1175  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1176  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1177    oldincludedir=$ac_optarg ;;
1178
1179  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1180    ac_prev=prefix ;;
1181  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1182    prefix=$ac_optarg ;;
1183
1184  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1185  | --program-pre | --program-pr | --program-p)
1186    ac_prev=program_prefix ;;
1187  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1188  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1189    program_prefix=$ac_optarg ;;
1190
1191  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1192  | --program-suf | --program-su | --program-s)
1193    ac_prev=program_suffix ;;
1194  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1195  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1196    program_suffix=$ac_optarg ;;
1197
1198  -program-transform-name | --program-transform-name \
1199  | --program-transform-nam | --program-transform-na \
1200  | --program-transform-n | --program-transform- \
1201  | --program-transform | --program-transfor \
1202  | --program-transfo | --program-transf \
1203  | --program-trans | --program-tran \
1204  | --progr-tra | --program-tr | --program-t)
1205    ac_prev=program_transform_name ;;
1206  -program-transform-name=* | --program-transform-name=* \
1207  | --program-transform-nam=* | --program-transform-na=* \
1208  | --program-transform-n=* | --program-transform-=* \
1209  | --program-transform=* | --program-transfor=* \
1210  | --program-transfo=* | --program-transf=* \
1211  | --program-trans=* | --program-tran=* \
1212  | --progr-tra=* | --program-tr=* | --program-t=*)
1213    program_transform_name=$ac_optarg ;;
1214
1215  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1216    ac_prev=pdfdir ;;
1217  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1218    pdfdir=$ac_optarg ;;
1219
1220  -psdir | --psdir | --psdi | --psd | --ps)
1221    ac_prev=psdir ;;
1222  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1223    psdir=$ac_optarg ;;
1224
1225  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226  | -silent | --silent | --silen | --sile | --sil)
1227    silent=yes ;;
1228
1229  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1230    ac_prev=sbindir ;;
1231  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1232  | --sbi=* | --sb=*)
1233    sbindir=$ac_optarg ;;
1234
1235  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1236  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1237  | --sharedst | --shareds | --shared | --share | --shar \
1238  | --sha | --sh)
1239    ac_prev=sharedstatedir ;;
1240  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1241  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1242  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1243  | --sha=* | --sh=*)
1244    sharedstatedir=$ac_optarg ;;
1245
1246  -site | --site | --sit)
1247    ac_prev=site ;;
1248  -site=* | --site=* | --sit=*)
1249    site=$ac_optarg ;;
1250
1251  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1252    ac_prev=srcdir ;;
1253  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1254    srcdir=$ac_optarg ;;
1255
1256  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1257  | --syscon | --sysco | --sysc | --sys | --sy)
1258    ac_prev=sysconfdir ;;
1259  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1260  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1261    sysconfdir=$ac_optarg ;;
1262
1263  -target | --target | --targe | --targ | --tar | --ta | --t)
1264    ac_prev=target_alias ;;
1265  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1266    target_alias=$ac_optarg ;;
1267
1268  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1269    verbose=yes ;;
1270
1271  -version | --version | --versio | --versi | --vers | -V)
1272    ac_init_version=: ;;
1273
1274  -with-* | --with-*)
1275    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1276    # Reject names that are not valid shell variable names.
1277    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1278      { echo "$as_me: error: invalid package name: $ac_package" >&2
1279   { (exit 1); exit 1; }; }
1280    ac_package=`echo $ac_package| sed 's/-/_/g'`
1281    eval with_$ac_package=\$ac_optarg ;;
1282
1283  -without-* | --without-*)
1284    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1285    # Reject names that are not valid shell variable names.
1286    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1287      { echo "$as_me: error: invalid package name: $ac_package" >&2
1288   { (exit 1); exit 1; }; }
1289    ac_package=`echo $ac_package | sed 's/-/_/g'`
1290    eval with_$ac_package=no ;;
1291
1292  --x)
1293    # Obsolete; use --with-x.
1294    with_x=yes ;;
1295
1296  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1297  | --x-incl | --x-inc | --x-in | --x-i)
1298    ac_prev=x_includes ;;
1299  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1300  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1301    x_includes=$ac_optarg ;;
1302
1303  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1304  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1305    ac_prev=x_libraries ;;
1306  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1307  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1308    x_libraries=$ac_optarg ;;
1309
1310  -*) { echo "$as_me: error: unrecognized option: $ac_option
1311Try \`$0 --help' for more information." >&2
1312   { (exit 1); exit 1; }; }
1313    ;;
1314
1315  *=*)
1316    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1317    # Reject names that are not valid shell variable names.
1318    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1319      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1320   { (exit 1); exit 1; }; }
1321    eval $ac_envvar=\$ac_optarg
1322    export $ac_envvar ;;
1323
1324  *)
1325    # FIXME: should be removed in autoconf 3.0.
1326    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1327    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1328      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1329    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1330    ;;
1331
1332  esac
1333done
1334
1335if test -n "$ac_prev"; then
1336  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1337  { echo "$as_me: error: missing argument to $ac_option" >&2
1338   { (exit 1); exit 1; }; }
1339fi
1340
1341# Be sure to have absolute directory names.
1342for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1343		datadir sysconfdir sharedstatedir localstatedir includedir \
1344		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1345		libdir localedir mandir
1346do
1347  eval ac_val=\$$ac_var
1348  case $ac_val in
1349    [\\/$]* | ?:[\\/]* )  continue;;
1350    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1351  esac
1352  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1353   { (exit 1); exit 1; }; }
1354done
1355
1356# There might be people who depend on the old broken behavior: `$host'
1357# used to hold the argument of --host etc.
1358# FIXME: To remove some day.
1359build=$build_alias
1360host=$host_alias
1361target=$target_alias
1362
1363# FIXME: To remove some day.
1364if test "x$host_alias" != x; then
1365  if test "x$build_alias" = x; then
1366    cross_compiling=maybe
1367    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1368    If a cross compiler is detected then cross compile mode will be used." >&2
1369  elif test "x$build_alias" != "x$host_alias"; then
1370    cross_compiling=yes
1371  fi
1372fi
1373
1374ac_tool_prefix=
1375test -n "$host_alias" && ac_tool_prefix=$host_alias-
1376
1377test "$silent" = yes && exec 6>/dev/null
1378
1379
1380ac_pwd=`pwd` && test -n "$ac_pwd" &&
1381ac_ls_di=`ls -di .` &&
1382ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1383  { echo "$as_me: error: Working directory cannot be determined" >&2
1384   { (exit 1); exit 1; }; }
1385test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1386  { echo "$as_me: error: pwd does not report name of working directory" >&2
1387   { (exit 1); exit 1; }; }
1388
1389
1390# Find the source files, if location was not specified.
1391if test -z "$srcdir"; then
1392  ac_srcdir_defaulted=yes
1393  # Try the directory containing this script, then the parent directory.
1394  ac_confdir=`$as_dirname -- "$0" ||
1395$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1396	 X"$0" : 'X\(//\)[^/]' \| \
1397	 X"$0" : 'X\(//\)$' \| \
1398	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1399echo X"$0" |
1400    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1401	    s//\1/
1402	    q
1403	  }
1404	  /^X\(\/\/\)[^/].*/{
1405	    s//\1/
1406	    q
1407	  }
1408	  /^X\(\/\/\)$/{
1409	    s//\1/
1410	    q
1411	  }
1412	  /^X\(\/\).*/{
1413	    s//\1/
1414	    q
1415	  }
1416	  s/.*/./; q'`
1417  srcdir=$ac_confdir
1418  if test ! -r "$srcdir/$ac_unique_file"; then
1419    srcdir=..
1420  fi
1421else
1422  ac_srcdir_defaulted=no
1423fi
1424if test ! -r "$srcdir/$ac_unique_file"; then
1425  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1426  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1427   { (exit 1); exit 1; }; }
1428fi
1429ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1430ac_abs_confdir=`(
1431	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1432   { (exit 1); exit 1; }; }
1433	pwd)`
1434# When building in place, set srcdir=.
1435if test "$ac_abs_confdir" = "$ac_pwd"; then
1436  srcdir=.
1437fi
1438# Remove unnecessary trailing slashes from srcdir.
1439# Double slashes in file names in object file debugging info
1440# mess up M-x gdb in Emacs.
1441case $srcdir in
1442*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1443esac
1444for ac_var in $ac_precious_vars; do
1445  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1446  eval ac_env_${ac_var}_value=\$${ac_var}
1447  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1448  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1449done
1450
1451#
1452# Report the --help message.
1453#
1454if test "$ac_init_help" = "long"; then
1455  # Omit some internal or obsolete options to make the list less imposing.
1456  # This message is too long to be a string in the A/UX 3.1 sh.
1457  cat <<_ACEOF
1458\`configure' configures llvm 2.2svn to adapt to many kinds of systems.
1459
1460Usage: $0 [OPTION]... [VAR=VALUE]...
1461
1462To assign environment variables (e.g., CC, CFLAGS...), specify them as
1463VAR=VALUE.  See below for descriptions of some of the useful variables.
1464
1465Defaults for the options are specified in brackets.
1466
1467Configuration:
1468  -h, --help              display this help and exit
1469      --help=short        display options specific to this package
1470      --help=recursive    display the short help of all the included packages
1471  -V, --version           display version information and exit
1472  -q, --quiet, --silent   do not print \`checking...' messages
1473      --cache-file=FILE   cache test results in FILE [disabled]
1474  -C, --config-cache      alias for \`--cache-file=config.cache'
1475  -n, --no-create         do not create output files
1476      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1477
1478Installation directories:
1479  --prefix=PREFIX         install architecture-independent files in PREFIX
1480			  [$ac_default_prefix]
1481  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1482			  [PREFIX]
1483
1484By default, \`make install' will install all the files in
1485\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1486an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1487for instance \`--prefix=\$HOME'.
1488
1489For better control, use the options below.
1490
1491Fine tuning of the installation directories:
1492  --bindir=DIR           user executables [EPREFIX/bin]
1493  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1494  --libexecdir=DIR       program executables [EPREFIX/libexec]
1495  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1496  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1497  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1498  --libdir=DIR           object code libraries [EPREFIX/lib]
1499  --includedir=DIR       C header files [PREFIX/include]
1500  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1501  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1502  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1503  --infodir=DIR          info documentation [DATAROOTDIR/info]
1504  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1505  --mandir=DIR           man documentation [DATAROOTDIR/man]
1506  --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1507  --htmldir=DIR          html documentation [DOCDIR]
1508  --dvidir=DIR           dvi documentation [DOCDIR]
1509  --pdfdir=DIR           pdf documentation [DOCDIR]
1510  --psdir=DIR            ps documentation [DOCDIR]
1511_ACEOF
1512
1513  cat <<\_ACEOF
1514
1515System types:
1516  --build=BUILD     configure for building on BUILD [guessed]
1517  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1518  --target=TARGET   configure for building compilers for TARGET [HOST]
1519_ACEOF
1520fi
1521
1522if test -n "$ac_init_help"; then
1523  case $ac_init_help in
1524     short | recursive ) echo "Configuration of llvm 2.2svn:";;
1525   esac
1526  cat <<\_ACEOF
1527
1528Optional Features:
1529  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1530  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1531  --enable-optimized
1532  --enable-assertions
1533  --enable-expensive-checks
1534
1535  --enable-debug-runtime
1536  --enable-jit            Enable Just In Time Compiling (default is YES)
1537  --enable-doxygen        Build doxygen documentation (default is NO)
1538  --enable-threads        Use threads if available (default is YES)
1539  --enable-pic            Build LLVM with Position Independent Code (default
1540                          is NO)
1541  --enable-targets        Build specific host targets:
1542                          all,host-only,{target-name} (default=all)
1543  --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1544                          %a (default is YES)
1545  --enable-ltdl-install   install libltdl
1546  --enable-shared[=PKGS]  build shared libraries
1547                          [default=yes]
1548  --enable-static[=PKGS]  build static libraries
1549                          [default=yes]
1550  --enable-fast-install[=PKGS]
1551                          optimize for fast installation
1552                          [default=yes]
1553  --disable-libtool-lock  avoid locking (might break parallel builds)
1554
1555Optional Packages:
1556  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1557  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1558  --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1559                          searches PATH)
1560  --with-extra-options    Specify addtional options to compile LLVM with
1561  --with-tclinclude       directory where tcl headers are
1562  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1563  --with-pic              try to use only PIC/non-PIC objects [default=use
1564                          both]
1565  --with-tags[=TAGS]      include additional configurations [automatic]
1566  --with-udis86=<path>    Use udis86 external x86 disassembler library
1567
1568Some influential environment variables:
1569  CC          C compiler command
1570  CFLAGS      C compiler flags
1571  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1572              nonstandard directory <lib dir>
1573  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1574              you have headers in a nonstandard directory <include dir>
1575  CPP         C preprocessor
1576  CXX         C++ compiler command
1577  CXXFLAGS    C++ compiler flags
1578  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1579              the first program found out of: `bison -y', `byacc', `yacc'.
1580  YFLAGS      The list of arguments that will be passed by default to $YACC.
1581              This script will default YFLAGS to the empty string to avoid a
1582              default value of `-d' given by some make applications.
1583  CXXCPP      C++ preprocessor
1584  F77         Fortran 77 compiler command
1585  FFLAGS      Fortran 77 compiler flags
1586
1587Use these variables to override the choices made by `configure' or to help
1588it to find libraries and programs with nonstandard names/locations.
1589
1590Report bugs to <llvmbugs@cs.uiuc.edu>.
1591_ACEOF
1592ac_status=$?
1593fi
1594
1595if test "$ac_init_help" = "recursive"; then
1596  # If there are subdirs, report their specific --help.
1597  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1598    test -d "$ac_dir" || continue
1599    ac_builddir=.
1600
1601case "$ac_dir" in
1602.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1603*)
1604  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1605  # A ".." for each directory in $ac_dir_suffix.
1606  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1607  case $ac_top_builddir_sub in
1608  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1609  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1610  esac ;;
1611esac
1612ac_abs_top_builddir=$ac_pwd
1613ac_abs_builddir=$ac_pwd$ac_dir_suffix
1614# for backward compatibility:
1615ac_top_builddir=$ac_top_build_prefix
1616
1617case $srcdir in
1618  .)  # We are building in place.
1619    ac_srcdir=.
1620    ac_top_srcdir=$ac_top_builddir_sub
1621    ac_abs_top_srcdir=$ac_pwd ;;
1622  [\\/]* | ?:[\\/]* )  # Absolute name.
1623    ac_srcdir=$srcdir$ac_dir_suffix;
1624    ac_top_srcdir=$srcdir
1625    ac_abs_top_srcdir=$srcdir ;;
1626  *) # Relative name.
1627    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1628    ac_top_srcdir=$ac_top_build_prefix$srcdir
1629    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1630esac
1631ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1632
1633    cd "$ac_dir" || { ac_status=$?; continue; }
1634    # Check for guested configure.
1635    if test -f "$ac_srcdir/configure.gnu"; then
1636      echo &&
1637      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1638    elif test -f "$ac_srcdir/configure"; then
1639      echo &&
1640      $SHELL "$ac_srcdir/configure" --help=recursive
1641    else
1642      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1643    fi || ac_status=$?
1644    cd "$ac_pwd" || { ac_status=$?; break; }
1645  done
1646fi
1647
1648test -n "$ac_init_help" && exit $ac_status
1649if $ac_init_version; then
1650  cat <<\_ACEOF
1651llvm configure 2.2svn
1652generated by GNU Autoconf 2.60
1653
1654Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16552002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1656This configure script is free software; the Free Software Foundation
1657gives unlimited permission to copy, distribute and modify it.
1658
1659Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
1660_ACEOF
1661  exit
1662fi
1663cat >config.log <<_ACEOF
1664This file contains any messages produced by compilers while
1665running configure, to aid debugging if configure makes a mistake.
1666
1667It was created by llvm $as_me 2.2svn, which was
1668generated by GNU Autoconf 2.60.  Invocation command line was
1669
1670  $ $0 $@
1671
1672_ACEOF
1673exec 5>>config.log
1674{
1675cat <<_ASUNAME
1676## --------- ##
1677## Platform. ##
1678## --------- ##
1679
1680hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1681uname -m = `(uname -m) 2>/dev/null || echo unknown`
1682uname -r = `(uname -r) 2>/dev/null || echo unknown`
1683uname -s = `(uname -s) 2>/dev/null || echo unknown`
1684uname -v = `(uname -v) 2>/dev/null || echo unknown`
1685
1686/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1687/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1688
1689/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1690/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1691/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1692/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1693/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1694/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1695/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1696
1697_ASUNAME
1698
1699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700for as_dir in $PATH
1701do
1702  IFS=$as_save_IFS
1703  test -z "$as_dir" && as_dir=.
1704  echo "PATH: $as_dir"
1705done
1706IFS=$as_save_IFS
1707
1708} >&5
1709
1710cat >&5 <<_ACEOF
1711
1712
1713## ----------- ##
1714## Core tests. ##
1715## ----------- ##
1716
1717_ACEOF
1718
1719
1720# Keep a trace of the command line.
1721# Strip out --no-create and --no-recursion so they do not pile up.
1722# Strip out --silent because we don't want to record it for future runs.
1723# Also quote any args containing shell meta-characters.
1724# Make two passes to allow for proper duplicate-argument suppression.
1725ac_configure_args=
1726ac_configure_args0=
1727ac_configure_args1=
1728ac_must_keep_next=false
1729for ac_pass in 1 2
1730do
1731  for ac_arg
1732  do
1733    case $ac_arg in
1734    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1735    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1736    | -silent | --silent | --silen | --sile | --sil)
1737      continue ;;
1738    *\'*)
1739      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1740    esac
1741    case $ac_pass in
1742    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1743    2)
1744      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1745      if test $ac_must_keep_next = true; then
1746	ac_must_keep_next=false # Got value, back to normal.
1747      else
1748	case $ac_arg in
1749	  *=* | --config-cache | -C | -disable-* | --disable-* \
1750	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1751	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1752	  | -with-* | --with-* | -without-* | --without-* | --x)
1753	    case "$ac_configure_args0 " in
1754	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1755	    esac
1756	    ;;
1757	  -* ) ac_must_keep_next=true ;;
1758	esac
1759      fi
1760      ac_configure_args="$ac_configure_args '$ac_arg'"
1761      ;;
1762    esac
1763  done
1764done
1765$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1766$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1767
1768# When interrupted or exit'd, cleanup temporary files, and complete
1769# config.log.  We remove comments because anyway the quotes in there
1770# would cause problems or look ugly.
1771# WARNING: Use '\'' to represent an apostrophe within the trap.
1772# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1773trap 'exit_status=$?
1774  # Save into config.log some information that might help in debugging.
1775  {
1776    echo
1777
1778    cat <<\_ASBOX
1779## ---------------- ##
1780## Cache variables. ##
1781## ---------------- ##
1782_ASBOX
1783    echo
1784    # The following way of writing the cache mishandles newlines in values,
1785(
1786  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1787    eval ac_val=\$$ac_var
1788    case $ac_val in #(
1789    *${as_nl}*)
1790      case $ac_var in #(
1791      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1792echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1793      esac
1794      case $ac_var in #(
1795      _ | IFS | as_nl) ;; #(
1796      *) $as_unset $ac_var ;;
1797      esac ;;
1798    esac
1799  done
1800  (set) 2>&1 |
1801    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1802    *${as_nl}ac_space=\ *)
1803      sed -n \
1804	"s/'\''/'\''\\\\'\'''\''/g;
1805	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1806      ;; #(
1807    *)
1808      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1809      ;;
1810    esac |
1811    sort
1812)
1813    echo
1814
1815    cat <<\_ASBOX
1816## ----------------- ##
1817## Output variables. ##
1818## ----------------- ##
1819_ASBOX
1820    echo
1821    for ac_var in $ac_subst_vars
1822    do
1823      eval ac_val=\$$ac_var
1824      case $ac_val in
1825      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1826      esac
1827      echo "$ac_var='\''$ac_val'\''"
1828    done | sort
1829    echo
1830
1831    if test -n "$ac_subst_files"; then
1832      cat <<\_ASBOX
1833## ------------------- ##
1834## File substitutions. ##
1835## ------------------- ##
1836_ASBOX
1837      echo
1838      for ac_var in $ac_subst_files
1839      do
1840	eval ac_val=\$$ac_var
1841	case $ac_val in
1842	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1843	esac
1844	echo "$ac_var='\''$ac_val'\''"
1845      done | sort
1846      echo
1847    fi
1848
1849    if test -s confdefs.h; then
1850      cat <<\_ASBOX
1851## ----------- ##
1852## confdefs.h. ##
1853## ----------- ##
1854_ASBOX
1855      echo
1856      cat confdefs.h
1857      echo
1858    fi
1859    test "$ac_signal" != 0 &&
1860      echo "$as_me: caught signal $ac_signal"
1861    echo "$as_me: exit $exit_status"
1862  } >&5
1863  rm -f core *.core core.conftest.* &&
1864    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1865    exit $exit_status
1866' 0
1867for ac_signal in 1 2 13 15; do
1868  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1869done
1870ac_signal=0
1871
1872# confdefs.h avoids OS command line length limits that DEFS can exceed.
1873rm -f -r conftest* confdefs.h
1874
1875# Predefined preprocessor variables.
1876
1877cat >>confdefs.h <<_ACEOF
1878#define PACKAGE_NAME "$PACKAGE_NAME"
1879_ACEOF
1880
1881
1882cat >>confdefs.h <<_ACEOF
1883#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1884_ACEOF
1885
1886
1887cat >>confdefs.h <<_ACEOF
1888#define PACKAGE_VERSION "$PACKAGE_VERSION"
1889_ACEOF
1890
1891
1892cat >>confdefs.h <<_ACEOF
1893#define PACKAGE_STRING "$PACKAGE_STRING"
1894_ACEOF
1895
1896
1897cat >>confdefs.h <<_ACEOF
1898#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1899_ACEOF
1900
1901
1902# Let the site file select an alternate cache file if it wants to.
1903# Prefer explicitly selected file to automatically selected ones.
1904if test -n "$CONFIG_SITE"; then
1905  set x "$CONFIG_SITE"
1906elif test "x$prefix" != xNONE; then
1907  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1908else
1909  set x "$ac_default_prefix/share/config.site" \
1910	"$ac_default_prefix/etc/config.site"
1911fi
1912shift
1913for ac_site_file
1914do
1915  if test -r "$ac_site_file"; then
1916    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1917echo "$as_me: loading site script $ac_site_file" >&6;}
1918    sed 's/^/| /' "$ac_site_file" >&5
1919    . "$ac_site_file"
1920  fi
1921done
1922
1923if test -r "$cache_file"; then
1924  # Some versions of bash will fail to source /dev/null (special
1925  # files actually), so we avoid doing that.
1926  if test -f "$cache_file"; then
1927    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1928echo "$as_me: loading cache $cache_file" >&6;}
1929    case $cache_file in
1930      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1931      *)                      . "./$cache_file";;
1932    esac
1933  fi
1934else
1935  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1936echo "$as_me: creating cache $cache_file" >&6;}
1937  >$cache_file
1938fi
1939
1940# Check that the precious variables saved in the cache have kept the same
1941# value.
1942ac_cache_corrupted=false
1943for ac_var in $ac_precious_vars; do
1944  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1945  eval ac_new_set=\$ac_env_${ac_var}_set
1946  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1947  eval ac_new_val=\$ac_env_${ac_var}_value
1948  case $ac_old_set,$ac_new_set in
1949    set,)
1950      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1951echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1952      ac_cache_corrupted=: ;;
1953    ,set)
1954      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1955echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1956      ac_cache_corrupted=: ;;
1957    ,);;
1958    *)
1959      if test "x$ac_old_val" != "x$ac_new_val"; then
1960	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1961echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1962	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1963echo "$as_me:   former value:  $ac_old_val" >&2;}
1964	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1965echo "$as_me:   current value: $ac_new_val" >&2;}
1966	ac_cache_corrupted=:
1967      fi;;
1968  esac
1969  # Pass precious variables to config.status.
1970  if test "$ac_new_set" = set; then
1971    case $ac_new_val in
1972    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1973    *) ac_arg=$ac_var=$ac_new_val ;;
1974    esac
1975    case " $ac_configure_args " in
1976      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1977      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1978    esac
1979  fi
1980done
1981if $ac_cache_corrupted; then
1982  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1983echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1984  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1985echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1986   { (exit 1); exit 1; }; }
1987fi
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013ac_ext=c
2014ac_cpp='$CPP $CPPFLAGS'
2015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2017ac_compiler_gnu=$ac_cv_c_compiler_gnu
2018
2019
2020
2021LLVM_COPYRIGHT="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign."
2022
2023
2024
2025
2026
2027
2028
2029ac_aux_dir=
2030for ac_dir in autoconf "$srcdir"/autoconf; do
2031  if test -f "$ac_dir/install-sh"; then
2032    ac_aux_dir=$ac_dir
2033    ac_install_sh="$ac_aux_dir/install-sh -c"
2034    break
2035  elif test -f "$ac_dir/install.sh"; then
2036    ac_aux_dir=$ac_dir
2037    ac_install_sh="$ac_aux_dir/install.sh -c"
2038    break
2039  elif test -f "$ac_dir/shtool"; then
2040    ac_aux_dir=$ac_dir
2041    ac_install_sh="$ac_aux_dir/shtool install -c"
2042    break
2043  fi
2044done
2045if test -z "$ac_aux_dir"; then
2046  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2047echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2048   { (exit 1); exit 1; }; }
2049fi
2050
2051# These three variables are undocumented and unsupported,
2052# and are intended to be withdrawn in a future Autoconf release.
2053# They can cause serious problems if a builder's source tree is in a directory
2054# whose full name contains unusual characters.
2055ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2056ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2057ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2058
2059
2060
2061if test ${srcdir} != "." ; then
2062  if test -f ${srcdir}/include/llvm/Config/config.h ; then
2063    { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2064echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2065   { (exit 1); exit 1; }; }
2066  fi
2067fi
2068
2069for i in `ls ${srcdir}/projects`
2070do
2071  if test -d ${srcdir}/projects/${i} ; then
2072    case ${i} in
2073      CVS) ;;
2074      sample)       subdirs="$subdirs projects/sample"
2075    ;;
2076      privbracket)  subdirs="$subdirs projects/privbracket"
2077 ;;
2078      llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2079 ;;
2080      llvm-test)    subdirs="$subdirs projects/llvm-test"
2081 ;;
2082      llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2083;;
2084      llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2085  ;;
2086      llvm-java)    subdirs="$subdirs projects/llvm-java"
2087 ;;
2088      llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2089   ;;
2090      llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2091 ;;
2092      poolalloc)    subdirs="$subdirs projects/poolalloc"
2093 ;;
2094      llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2095 ;;
2096      *)
2097        { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2098echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2099        ;;
2100    esac
2101  fi
2102done
2103
2104
2105# Make sure we can run config.sub.
2106$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2107  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2108echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2109   { (exit 1); exit 1; }; }
2110
2111{ echo "$as_me:$LINENO: checking build system type" >&5
2112echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2113if test "${ac_cv_build+set}" = set; then
2114  echo $ECHO_N "(cached) $ECHO_C" >&6
2115else
2116  ac_build_alias=$build_alias
2117test "x$ac_build_alias" = x &&
2118  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2119test "x$ac_build_alias" = x &&
2120  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2121echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2122   { (exit 1); exit 1; }; }
2123ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2124  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2125echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2126   { (exit 1); exit 1; }; }
2127
2128fi
2129{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2130echo "${ECHO_T}$ac_cv_build" >&6; }
2131case $ac_cv_build in
2132*-*-*) ;;
2133*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2134echo "$as_me: error: invalid value of canonical build" >&2;}
2135   { (exit 1); exit 1; }; };;
2136esac
2137build=$ac_cv_build
2138ac_save_IFS=$IFS; IFS='-'
2139set x $ac_cv_build
2140shift
2141build_cpu=$1
2142build_vendor=$2
2143shift; shift
2144# Remember, the first character of IFS is used to create $*,
2145# except with old shells:
2146build_os=$*
2147IFS=$ac_save_IFS
2148case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2149
2150
2151{ echo "$as_me:$LINENO: checking host system type" >&5
2152echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2153if test "${ac_cv_host+set}" = set; then
2154  echo $ECHO_N "(cached) $ECHO_C" >&6
2155else
2156  if test "x$host_alias" = x; then
2157  ac_cv_host=$ac_cv_build
2158else
2159  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2160    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2161echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2162   { (exit 1); exit 1; }; }
2163fi
2164
2165fi
2166{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2167echo "${ECHO_T}$ac_cv_host" >&6; }
2168case $ac_cv_host in
2169*-*-*) ;;
2170*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2171echo "$as_me: error: invalid value of canonical host" >&2;}
2172   { (exit 1); exit 1; }; };;
2173esac
2174host=$ac_cv_host
2175ac_save_IFS=$IFS; IFS='-'
2176set x $ac_cv_host
2177shift
2178host_cpu=$1
2179host_vendor=$2
2180shift; shift
2181# Remember, the first character of IFS is used to create $*,
2182# except with old shells:
2183host_os=$*
2184IFS=$ac_save_IFS
2185case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2186
2187
2188{ echo "$as_me:$LINENO: checking target system type" >&5
2189echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2190if test "${ac_cv_target+set}" = set; then
2191  echo $ECHO_N "(cached) $ECHO_C" >&6
2192else
2193  if test "x$target_alias" = x; then
2194  ac_cv_target=$ac_cv_host
2195else
2196  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2197    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2198echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2199   { (exit 1); exit 1; }; }
2200fi
2201
2202fi
2203{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2204echo "${ECHO_T}$ac_cv_target" >&6; }
2205case $ac_cv_target in
2206*-*-*) ;;
2207*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2208echo "$as_me: error: invalid value of canonical target" >&2;}
2209   { (exit 1); exit 1; }; };;
2210esac
2211target=$ac_cv_target
2212ac_save_IFS=$IFS; IFS='-'
2213set x $ac_cv_target
2214shift
2215target_cpu=$1
2216target_vendor=$2
2217shift; shift
2218# Remember, the first character of IFS is used to create $*,
2219# except with old shells:
2220target_os=$*
2221IFS=$ac_save_IFS
2222case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2223
2224
2225# The aliases save the names the user supplied, while $host etc.
2226# will get canonicalized.
2227test -n "$target_alias" &&
2228  test "$program_prefix$program_suffix$program_transform_name" = \
2229    NONENONEs,x,x, &&
2230  program_prefix=${target_alias}-
2231
2232{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2233echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2234if test "${llvm_cv_os_type+set}" = set; then
2235  echo $ECHO_N "(cached) $ECHO_C" >&6
2236else
2237  case $host in
2238  *-*-aix*)
2239    llvm_cv_link_all_option="-Wl,--whole-archive"
2240    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2241    llvm_cv_os_type="AIX"
2242    llvm_cv_platform_type="Unix" ;;
2243  *-*-irix*)
2244    llvm_cv_link_all_option="-Wl,--whole-archive"
2245    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2246    llvm_cv_os_type="IRIX"
2247    llvm_cv_platform_type="Unix" ;;
2248  *-*-cygwin*)
2249    llvm_cv_link_all_option="-Wl,--whole-archive"
2250    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2251    llvm_cv_os_type="Cygwin"
2252    llvm_cv_platform_type="Unix" ;;
2253  *-*-darwin*)
2254    llvm_cv_link_all_option="-Wl,-all_load"
2255    llvm_cv_link_all_option="-Wl,-noall_load"
2256    llvm_cv_os_type="Darwin"
2257    llvm_cv_platform_type="Unix" ;;
2258  *-*-freebsd*)
2259    llvm_cv_link_all_option="-Wl,--whole-archive"
2260    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2261    llvm_cv_os_type="FreeBSD"
2262    llvm_cv_platform_type="Unix" ;;
2263  *-*-openbsd*)
2264    llvm_cv_link_all_option="-Wl,--whole-archive"
2265    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2266    llvm_cv_os_type="OpenBSD"
2267    llvm_cv_platform_type="Unix" ;;
2268  *-*-netbsd*)
2269    llvm_cv_link_all_option="-Wl,--whole-archive"
2270    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2271    llvm_cv_os_type="NetBSD"
2272    llvm_cv_platform_type="Unix" ;;
2273  *-*-hpux*)
2274    llvm_cv_link_all_option="-Wl,--whole-archive"
2275    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2276    llvm_cv_os_type="HP-UX"
2277    llvm_cv_platform_type="Unix" ;;
2278  *-*-interix*)
2279    llvm_cv_link_all_option="-Wl,--whole-archive"
2280    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2281    llvm_cv_os_type="Interix"
2282    llvm_cv_platform_type="Unix" ;;
2283  *-*-linux*)
2284    llvm_cv_link_all_option="-Wl,--whole-archive"
2285    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2286    llvm_cv_os_type="Linux"
2287    llvm_cv_platform_type="Unix" ;;
2288  *-*-solaris*)
2289    llvm_cv_link_all_option="-Wl,-z,allextract"
2290    llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2291    llvm_cv_os_type="SunOS"
2292    llvm_cv_platform_type="Unix" ;;
2293  *-*-win32*)
2294    llvm_cv_link_all_option="-Wl,--whole-archive"
2295    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2296    llvm_cv_os_type="Win32"
2297    llvm_cv_platform_type="Win32" ;;
2298  *-*-mingw*)
2299    llvm_cv_link_all_option="-Wl,--whole-archive"
2300    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2301    llvm_cv_os_type="MingW"
2302    llvm_cv_platform_type="Win32" ;;
2303  *)
2304    llvm_cv_link_all_option=""
2305    llvm_cv_no_link_all_option=""
2306    llvm_cv_os_type="Unknown"
2307    llvm_cv_platform_type="Unknown" ;;
2308esac
2309fi
2310{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2311echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2312
2313if test "$llvm_cv_os_type" = "Unknown" ; then
2314  { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2315echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2316   { (exit 1); exit 1; }; }
2317fi
2318
2319OS=$llvm_cv_os_type
2320
2321
2322LINKALL=$llvm_cv_link_all_option
2323
2324NOLINKALL=$llvm_cv_no_link_all_option
2325
2326
2327case $llvm_cv_platform_type in
2328  Unix)
2329
2330cat >>confdefs.h <<\_ACEOF
2331#define LLVM_ON_UNIX 1
2332_ACEOF
2333
2334    LLVM_ON_UNIX=1
2335
2336    LLVM_ON_WIN32=0
2337
2338    ;;
2339  Win32)
2340
2341cat >>confdefs.h <<\_ACEOF
2342#define LLVM_ON_WIN32 1
2343_ACEOF
2344
2345    LLVM_ON_UNIX=0
2346
2347    LLVM_ON_WIN32=1
2348
2349    ;;
2350esac
2351
2352{ echo "$as_me:$LINENO: checking target architecture" >&5
2353echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2354if test "${llvm_cv_target_arch+set}" = set; then
2355  echo $ECHO_N "(cached) $ECHO_C" >&6
2356else
2357  case $target in
2358  i?86-*)                 llvm_cv_target_arch="x86" ;;
2359  amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2360  sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2361  powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2362  alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2363  ia64-*)                 llvm_cv_target_arch="IA64" ;;
2364  arm-*)                  llvm_cv_target_arch="ARM" ;;
2365  mips-*)                 llvm_cv_target_arch="Mips" ;;
2366  *)                      llvm_cv_target_arch="Unknown" ;;
2367esac
2368fi
2369{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2370echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2371
2372if test "$llvm_cv_target_arch" = "Unknown" ; then
2373  { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2374echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2375fi
2376
2377ARCH=$llvm_cv_target_arch
2378
2379
2380ac_ext=c
2381ac_cpp='$CPP $CPPFLAGS'
2382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2384ac_compiler_gnu=$ac_cv_c_compiler_gnu
2385if test -n "$ac_tool_prefix"; then
2386  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2387set dummy ${ac_tool_prefix}gcc; ac_word=$2
2388{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2389echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2390if test "${ac_cv_prog_CC+set}" = set; then
2391  echo $ECHO_N "(cached) $ECHO_C" >&6
2392else
2393  if test -n "$CC"; then
2394  ac_cv_prog_CC="$CC" # Let the user override the test.
2395else
2396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397for as_dir in $PATH
2398do
2399  IFS=$as_save_IFS
2400  test -z "$as_dir" && as_dir=.
2401  for ac_exec_ext in '' $ac_executable_extensions; do
2402  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2403    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2404    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2405    break 2
2406  fi
2407done
2408done
2409IFS=$as_save_IFS
2410
2411fi
2412fi
2413CC=$ac_cv_prog_CC
2414if test -n "$CC"; then
2415  { echo "$as_me:$LINENO: result: $CC" >&5
2416echo "${ECHO_T}$CC" >&6; }
2417else
2418  { echo "$as_me:$LINENO: result: no" >&5
2419echo "${ECHO_T}no" >&6; }
2420fi
2421
2422
2423fi
2424if test -z "$ac_cv_prog_CC"; then
2425  ac_ct_CC=$CC
2426  # Extract the first word of "gcc", so it can be a program name with args.
2427set dummy gcc; ac_word=$2
2428{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2430if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2431  echo $ECHO_N "(cached) $ECHO_C" >&6
2432else
2433  if test -n "$ac_ct_CC"; then
2434  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2435else
2436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437for as_dir in $PATH
2438do
2439  IFS=$as_save_IFS
2440  test -z "$as_dir" && as_dir=.
2441  for ac_exec_ext in '' $ac_executable_extensions; do
2442  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2443    ac_cv_prog_ac_ct_CC="gcc"
2444    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2445    break 2
2446  fi
2447done
2448done
2449IFS=$as_save_IFS
2450
2451fi
2452fi
2453ac_ct_CC=$ac_cv_prog_ac_ct_CC
2454if test -n "$ac_ct_CC"; then
2455  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2456echo "${ECHO_T}$ac_ct_CC" >&6; }
2457else
2458  { echo "$as_me:$LINENO: result: no" >&5
2459echo "${ECHO_T}no" >&6; }
2460fi
2461
2462  if test "x$ac_ct_CC" = x; then
2463    CC=""
2464  else
2465    case $cross_compiling:$ac_tool_warned in
2466yes:)
2467{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2468whose name does not start with the host triplet.  If you think this
2469configuration is useful to you, please write to autoconf@gnu.org." >&5
2470echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2471whose name does not start with the host triplet.  If you think this
2472configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2473ac_tool_warned=yes ;;
2474esac
2475    CC=$ac_ct_CC
2476  fi
2477else
2478  CC="$ac_cv_prog_CC"
2479fi
2480
2481if test -z "$CC"; then
2482          if test -n "$ac_tool_prefix"; then
2483    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2484set dummy ${ac_tool_prefix}cc; ac_word=$2
2485{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2487if test "${ac_cv_prog_CC+set}" = set; then
2488  echo $ECHO_N "(cached) $ECHO_C" >&6
2489else
2490  if test -n "$CC"; then
2491  ac_cv_prog_CC="$CC" # Let the user override the test.
2492else
2493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494for as_dir in $PATH
2495do
2496  IFS=$as_save_IFS
2497  test -z "$as_dir" && as_dir=.
2498  for ac_exec_ext in '' $ac_executable_extensions; do
2499  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2500    ac_cv_prog_CC="${ac_tool_prefix}cc"
2501    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502    break 2
2503  fi
2504done
2505done
2506IFS=$as_save_IFS
2507
2508fi
2509fi
2510CC=$ac_cv_prog_CC
2511if test -n "$CC"; then
2512  { echo "$as_me:$LINENO: result: $CC" >&5
2513echo "${ECHO_T}$CC" >&6; }
2514else
2515  { echo "$as_me:$LINENO: result: no" >&5
2516echo "${ECHO_T}no" >&6; }
2517fi
2518
2519
2520  fi
2521fi
2522if test -z "$CC"; then
2523  # Extract the first word of "cc", so it can be a program name with args.
2524set dummy cc; ac_word=$2
2525{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2527if test "${ac_cv_prog_CC+set}" = set; then
2528  echo $ECHO_N "(cached) $ECHO_C" >&6
2529else
2530  if test -n "$CC"; then
2531  ac_cv_prog_CC="$CC" # Let the user override the test.
2532else
2533  ac_prog_rejected=no
2534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535for as_dir in $PATH
2536do
2537  IFS=$as_save_IFS
2538  test -z "$as_dir" && as_dir=.
2539  for ac_exec_ext in '' $ac_executable_extensions; do
2540  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2541    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2542       ac_prog_rejected=yes
2543       continue
2544     fi
2545    ac_cv_prog_CC="cc"
2546    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2547    break 2
2548  fi
2549done
2550done
2551IFS=$as_save_IFS
2552
2553if test $ac_prog_rejected = yes; then
2554  # We found a bogon in the path, so make sure we never use it.
2555  set dummy $ac_cv_prog_CC
2556  shift
2557  if test $# != 0; then
2558    # We chose a different compiler from the bogus one.
2559    # However, it has the same basename, so the bogon will be chosen
2560    # first if we set CC to just the basename; use the full file name.
2561    shift
2562    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2563  fi
2564fi
2565fi
2566fi
2567CC=$ac_cv_prog_CC
2568if test -n "$CC"; then
2569  { echo "$as_me:$LINENO: result: $CC" >&5
2570echo "${ECHO_T}$CC" >&6; }
2571else
2572  { echo "$as_me:$LINENO: result: no" >&5
2573echo "${ECHO_T}no" >&6; }
2574fi
2575
2576
2577fi
2578if test -z "$CC"; then
2579  if test -n "$ac_tool_prefix"; then
2580  for ac_prog in cl.exe
2581  do
2582    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2583set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2584{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2586if test "${ac_cv_prog_CC+set}" = set; then
2587  echo $ECHO_N "(cached) $ECHO_C" >&6
2588else
2589  if test -n "$CC"; then
2590  ac_cv_prog_CC="$CC" # Let the user override the test.
2591else
2592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593for as_dir in $PATH
2594do
2595  IFS=$as_save_IFS
2596  test -z "$as_dir" && as_dir=.
2597  for ac_exec_ext in '' $ac_executable_extensions; do
2598  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2599    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2600    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2601    break 2
2602  fi
2603done
2604done
2605IFS=$as_save_IFS
2606
2607fi
2608fi
2609CC=$ac_cv_prog_CC
2610if test -n "$CC"; then
2611  { echo "$as_me:$LINENO: result: $CC" >&5
2612echo "${ECHO_T}$CC" >&6; }
2613else
2614  { echo "$as_me:$LINENO: result: no" >&5
2615echo "${ECHO_T}no" >&6; }
2616fi
2617
2618
2619    test -n "$CC" && break
2620  done
2621fi
2622if test -z "$CC"; then
2623  ac_ct_CC=$CC
2624  for ac_prog in cl.exe
2625do
2626  # Extract the first word of "$ac_prog", so it can be a program name with args.
2627set dummy $ac_prog; ac_word=$2
2628{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2630if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2631  echo $ECHO_N "(cached) $ECHO_C" >&6
2632else
2633  if test -n "$ac_ct_CC"; then
2634  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2635else
2636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637for as_dir in $PATH
2638do
2639  IFS=$as_save_IFS
2640  test -z "$as_dir" && as_dir=.
2641  for ac_exec_ext in '' $ac_executable_extensions; do
2642  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2643    ac_cv_prog_ac_ct_CC="$ac_prog"
2644    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2645    break 2
2646  fi
2647done
2648done
2649IFS=$as_save_IFS
2650
2651fi
2652fi
2653ac_ct_CC=$ac_cv_prog_ac_ct_CC
2654if test -n "$ac_ct_CC"; then
2655  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2656echo "${ECHO_T}$ac_ct_CC" >&6; }
2657else
2658  { echo "$as_me:$LINENO: result: no" >&5
2659echo "${ECHO_T}no" >&6; }
2660fi
2661
2662
2663  test -n "$ac_ct_CC" && break
2664done
2665
2666  if test "x$ac_ct_CC" = x; then
2667    CC=""
2668  else
2669    case $cross_compiling:$ac_tool_warned in
2670yes:)
2671{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2672whose name does not start with the host triplet.  If you think this
2673configuration is useful to you, please write to autoconf@gnu.org." >&5
2674echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2675whose name does not start with the host triplet.  If you think this
2676configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2677ac_tool_warned=yes ;;
2678esac
2679    CC=$ac_ct_CC
2680  fi
2681fi
2682
2683fi
2684
2685
2686test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2687See \`config.log' for more details." >&5
2688echo "$as_me: error: no acceptable C compiler found in \$PATH
2689See \`config.log' for more details." >&2;}
2690   { (exit 1); exit 1; }; }
2691
2692# Provide some information about the compiler.
2693echo "$as_me:$LINENO: checking for C compiler version" >&5
2694ac_compiler=`set X $ac_compile; echo $2`
2695{ (ac_try="$ac_compiler --version >&5"
2696case "(($ac_try" in
2697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698  *) ac_try_echo=$ac_try;;
2699esac
2700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2701  (eval "$ac_compiler --version >&5") 2>&5
2702  ac_status=$?
2703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704  (exit $ac_status); }
2705{ (ac_try="$ac_compiler -v >&5"
2706case "(($ac_try" in
2707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708  *) ac_try_echo=$ac_try;;
2709esac
2710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711  (eval "$ac_compiler -v >&5") 2>&5
2712  ac_status=$?
2713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714  (exit $ac_status); }
2715{ (ac_try="$ac_compiler -V >&5"
2716case "(($ac_try" in
2717  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718  *) ac_try_echo=$ac_try;;
2719esac
2720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2721  (eval "$ac_compiler -V >&5") 2>&5
2722  ac_status=$?
2723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724  (exit $ac_status); }
2725
2726cat >conftest.$ac_ext <<_ACEOF
2727/* confdefs.h.  */
2728_ACEOF
2729cat confdefs.h >>conftest.$ac_ext
2730cat >>conftest.$ac_ext <<_ACEOF
2731/* end confdefs.h.  */
2732
2733int
2734main ()
2735{
2736
2737  ;
2738  return 0;
2739}
2740_ACEOF
2741ac_clean_files_save=$ac_clean_files
2742ac_clean_files="$ac_clean_files a.out a.exe b.out"
2743# Try to create an executable without -o first, disregard a.out.
2744# It will help us diagnose broken compilers, and finding out an intuition
2745# of exeext.
2746{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2747echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2748ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2749#
2750# List of possible output files, starting from the most likely.
2751# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2752# only as a last resort.  b.out is created by i960 compilers.
2753ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2754#
2755# The IRIX 6 linker writes into existing files which may not be
2756# executable, retaining their permissions.  Remove them first so a
2757# subsequent execution test works.
2758ac_rmfiles=
2759for ac_file in $ac_files
2760do
2761  case $ac_file in
2762    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2763    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2764  esac
2765done
2766rm -f $ac_rmfiles
2767
2768if { (ac_try="$ac_link_default"
2769case "(($ac_try" in
2770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771  *) ac_try_echo=$ac_try;;
2772esac
2773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2774  (eval "$ac_link_default") 2>&5
2775  ac_status=$?
2776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777  (exit $ac_status); }; then
2778  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2779# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2780# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2781# so that the user can short-circuit this test for compilers unknown to
2782# Autoconf.
2783for ac_file in $ac_files
2784do
2785  test -f "$ac_file" || continue
2786  case $ac_file in
2787    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2788	;;
2789    [ab].out )
2790	# We found the default executable, but exeext='' is most
2791	# certainly right.
2792	break;;
2793    *.* )
2794        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2795	then :; else
2796	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2797	fi
2798	# We set ac_cv_exeext here because the later test for it is not
2799	# safe: cross compilers may not add the suffix if given an `-o'
2800	# argument, so we may need to know it at that point already.
2801	# Even if this section looks crufty: it has the advantage of
2802	# actually working.
2803	break;;
2804    * )
2805	break;;
2806  esac
2807done
2808test "$ac_cv_exeext" = no && ac_cv_exeext=
2809
2810else
2811  echo "$as_me: failed program was:" >&5
2812sed 's/^/| /' conftest.$ac_ext >&5
2813
2814{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2815See \`config.log' for more details." >&5
2816echo "$as_me: error: C compiler cannot create executables
2817See \`config.log' for more details." >&2;}
2818   { (exit 77); exit 77; }; }
2819fi
2820
2821ac_exeext=$ac_cv_exeext
2822{ echo "$as_me:$LINENO: result: $ac_file" >&5
2823echo "${ECHO_T}$ac_file" >&6; }
2824
2825# Check that the compiler produces executables we can run.  If not, either
2826# the compiler is broken, or we cross compile.
2827{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2828echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2829# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2830# If not cross compiling, check that we can run a simple program.
2831if test "$cross_compiling" != yes; then
2832  if { ac_try='./$ac_file'
2833  { (case "(($ac_try" in
2834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835  *) ac_try_echo=$ac_try;;
2836esac
2837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2838  (eval "$ac_try") 2>&5
2839  ac_status=$?
2840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841  (exit $ac_status); }; }; then
2842    cross_compiling=no
2843  else
2844    if test "$cross_compiling" = maybe; then
2845	cross_compiling=yes
2846    else
2847	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2848If you meant to cross compile, use \`--host'.
2849See \`config.log' for more details." >&5
2850echo "$as_me: error: cannot run C compiled programs.
2851If you meant to cross compile, use \`--host'.
2852See \`config.log' for more details." >&2;}
2853   { (exit 1); exit 1; }; }
2854    fi
2855  fi
2856fi
2857{ echo "$as_me:$LINENO: result: yes" >&5
2858echo "${ECHO_T}yes" >&6; }
2859
2860rm -f a.out a.exe conftest$ac_cv_exeext b.out
2861ac_clean_files=$ac_clean_files_save
2862# Check that the compiler produces executables we can run.  If not, either
2863# the compiler is broken, or we cross compile.
2864{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2865echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2866{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2867echo "${ECHO_T}$cross_compiling" >&6; }
2868
2869{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2870echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2871if { (ac_try="$ac_link"
2872case "(($ac_try" in
2873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874  *) ac_try_echo=$ac_try;;
2875esac
2876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2877  (eval "$ac_link") 2>&5
2878  ac_status=$?
2879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880  (exit $ac_status); }; then
2881  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2882# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2883# work properly (i.e., refer to `conftest.exe'), while it won't with
2884# `rm'.
2885for ac_file in conftest.exe conftest conftest.*; do
2886  test -f "$ac_file" || continue
2887  case $ac_file in
2888    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2889    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2890	  break;;
2891    * ) break;;
2892  esac
2893done
2894else
2895  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2896See \`config.log' for more details." >&5
2897echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2898See \`config.log' for more details." >&2;}
2899   { (exit 1); exit 1; }; }
2900fi
2901
2902rm -f conftest$ac_cv_exeext
2903{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2904echo "${ECHO_T}$ac_cv_exeext" >&6; }
2905
2906rm -f conftest.$ac_ext
2907EXEEXT=$ac_cv_exeext
2908ac_exeext=$EXEEXT
2909{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2910echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2911if test "${ac_cv_objext+set}" = set; then
2912  echo $ECHO_N "(cached) $ECHO_C" >&6
2913else
2914  cat >conftest.$ac_ext <<_ACEOF
2915/* confdefs.h.  */
2916_ACEOF
2917cat confdefs.h >>conftest.$ac_ext
2918cat >>conftest.$ac_ext <<_ACEOF
2919/* end confdefs.h.  */
2920
2921int
2922main ()
2923{
2924
2925  ;
2926  return 0;
2927}
2928_ACEOF
2929rm -f conftest.o conftest.obj
2930if { (ac_try="$ac_compile"
2931case "(($ac_try" in
2932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933  *) ac_try_echo=$ac_try;;
2934esac
2935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936  (eval "$ac_compile") 2>&5
2937  ac_status=$?
2938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939  (exit $ac_status); }; then
2940  for ac_file in conftest.o conftest.obj conftest.*; do
2941  test -f "$ac_file" || continue;
2942  case $ac_file in
2943    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2944    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2945       break;;
2946  esac
2947done
2948else
2949  echo "$as_me: failed program was:" >&5
2950sed 's/^/| /' conftest.$ac_ext >&5
2951
2952{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2953See \`config.log' for more details." >&5
2954echo "$as_me: error: cannot compute suffix of object files: cannot compile
2955See \`config.log' for more details." >&2;}
2956   { (exit 1); exit 1; }; }
2957fi
2958
2959rm -f conftest.$ac_cv_objext conftest.$ac_ext
2960fi
2961{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2962echo "${ECHO_T}$ac_cv_objext" >&6; }
2963OBJEXT=$ac_cv_objext
2964ac_objext=$OBJEXT
2965{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2966echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2967if test "${ac_cv_c_compiler_gnu+set}" = set; then
2968  echo $ECHO_N "(cached) $ECHO_C" >&6
2969else
2970  cat >conftest.$ac_ext <<_ACEOF
2971/* confdefs.h.  */
2972_ACEOF
2973cat confdefs.h >>conftest.$ac_ext
2974cat >>conftest.$ac_ext <<_ACEOF
2975/* end confdefs.h.  */
2976
2977int
2978main ()
2979{
2980#ifndef __GNUC__
2981       choke me
2982#endif
2983
2984  ;
2985  return 0;
2986}
2987_ACEOF
2988rm -f conftest.$ac_objext
2989if { (ac_try="$ac_compile"
2990case "(($ac_try" in
2991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992  *) ac_try_echo=$ac_try;;
2993esac
2994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2995  (eval "$ac_compile") 2>conftest.er1
2996  ac_status=$?
2997  grep -v '^ *+' conftest.er1 >conftest.err
2998  rm -f conftest.er1
2999  cat conftest.err >&5
3000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001  (exit $ac_status); } &&
3002	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3003  { (case "(($ac_try" in
3004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005  *) ac_try_echo=$ac_try;;
3006esac
3007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008  (eval "$ac_try") 2>&5
3009  ac_status=$?
3010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011  (exit $ac_status); }; } &&
3012	 { ac_try='test -s conftest.$ac_objext'
3013  { (case "(($ac_try" in
3014  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015  *) ac_try_echo=$ac_try;;
3016esac
3017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018  (eval "$ac_try") 2>&5
3019  ac_status=$?
3020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021  (exit $ac_status); }; }; then
3022  ac_compiler_gnu=yes
3023else
3024  echo "$as_me: failed program was:" >&5
3025sed 's/^/| /' conftest.$ac_ext >&5
3026
3027	ac_compiler_gnu=no
3028fi
3029
3030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3031ac_cv_c_compiler_gnu=$ac_compiler_gnu
3032
3033fi
3034{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3035echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3036GCC=`test $ac_compiler_gnu = yes && echo yes`
3037ac_test_CFLAGS=${CFLAGS+set}
3038ac_save_CFLAGS=$CFLAGS
3039{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3040echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3041if test "${ac_cv_prog_cc_g+set}" = set; then
3042  echo $ECHO_N "(cached) $ECHO_C" >&6
3043else
3044  ac_save_c_werror_flag=$ac_c_werror_flag
3045   ac_c_werror_flag=yes
3046   ac_cv_prog_cc_g=no
3047   CFLAGS="-g"
3048   cat >conftest.$ac_ext <<_ACEOF
3049/* confdefs.h.  */
3050_ACEOF
3051cat confdefs.h >>conftest.$ac_ext
3052cat >>conftest.$ac_ext <<_ACEOF
3053/* end confdefs.h.  */
3054
3055int
3056main ()
3057{
3058
3059  ;
3060  return 0;
3061}
3062_ACEOF
3063rm -f conftest.$ac_objext
3064if { (ac_try="$ac_compile"
3065case "(($ac_try" in
3066  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067  *) ac_try_echo=$ac_try;;
3068esac
3069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3070  (eval "$ac_compile") 2>conftest.er1
3071  ac_status=$?
3072  grep -v '^ *+' conftest.er1 >conftest.err
3073  rm -f conftest.er1
3074  cat conftest.err >&5
3075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076  (exit $ac_status); } &&
3077	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3078  { (case "(($ac_try" in
3079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080  *) ac_try_echo=$ac_try;;
3081esac
3082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083  (eval "$ac_try") 2>&5
3084  ac_status=$?
3085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086  (exit $ac_status); }; } &&
3087	 { ac_try='test -s conftest.$ac_objext'
3088  { (case "(($ac_try" in
3089  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090  *) ac_try_echo=$ac_try;;
3091esac
3092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093  (eval "$ac_try") 2>&5
3094  ac_status=$?
3095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096  (exit $ac_status); }; }; then
3097  ac_cv_prog_cc_g=yes
3098else
3099  echo "$as_me: failed program was:" >&5
3100sed 's/^/| /' conftest.$ac_ext >&5
3101
3102	CFLAGS=""
3103      cat >conftest.$ac_ext <<_ACEOF
3104/* confdefs.h.  */
3105_ACEOF
3106cat confdefs.h >>conftest.$ac_ext
3107cat >>conftest.$ac_ext <<_ACEOF
3108/* end confdefs.h.  */
3109
3110int
3111main ()
3112{
3113
3114  ;
3115  return 0;
3116}
3117_ACEOF
3118rm -f conftest.$ac_objext
3119if { (ac_try="$ac_compile"
3120case "(($ac_try" in
3121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122  *) ac_try_echo=$ac_try;;
3123esac
3124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125  (eval "$ac_compile") 2>conftest.er1
3126  ac_status=$?
3127  grep -v '^ *+' conftest.er1 >conftest.err
3128  rm -f conftest.er1
3129  cat conftest.err >&5
3130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131  (exit $ac_status); } &&
3132	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3133  { (case "(($ac_try" in
3134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135  *) ac_try_echo=$ac_try;;
3136esac
3137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138  (eval "$ac_try") 2>&5
3139  ac_status=$?
3140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141  (exit $ac_status); }; } &&
3142	 { ac_try='test -s conftest.$ac_objext'
3143  { (case "(($ac_try" in
3144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145  *) ac_try_echo=$ac_try;;
3146esac
3147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148  (eval "$ac_try") 2>&5
3149  ac_status=$?
3150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151  (exit $ac_status); }; }; then
3152  :
3153else
3154  echo "$as_me: failed program was:" >&5
3155sed 's/^/| /' conftest.$ac_ext >&5
3156
3157	ac_c_werror_flag=$ac_save_c_werror_flag
3158	 CFLAGS="-g"
3159	 cat >conftest.$ac_ext <<_ACEOF
3160/* confdefs.h.  */
3161_ACEOF
3162cat confdefs.h >>conftest.$ac_ext
3163cat >>conftest.$ac_ext <<_ACEOF
3164/* end confdefs.h.  */
3165
3166int
3167main ()
3168{
3169
3170  ;
3171  return 0;
3172}
3173_ACEOF
3174rm -f conftest.$ac_objext
3175if { (ac_try="$ac_compile"
3176case "(($ac_try" in
3177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178  *) ac_try_echo=$ac_try;;
3179esac
3180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181  (eval "$ac_compile") 2>conftest.er1
3182  ac_status=$?
3183  grep -v '^ *+' conftest.er1 >conftest.err
3184  rm -f conftest.er1
3185  cat conftest.err >&5
3186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187  (exit $ac_status); } &&
3188	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3189  { (case "(($ac_try" in
3190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191  *) ac_try_echo=$ac_try;;
3192esac
3193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3194  (eval "$ac_try") 2>&5
3195  ac_status=$?
3196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197  (exit $ac_status); }; } &&
3198	 { ac_try='test -s conftest.$ac_objext'
3199  { (case "(($ac_try" in
3200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201  *) ac_try_echo=$ac_try;;
3202esac
3203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204  (eval "$ac_try") 2>&5
3205  ac_status=$?
3206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207  (exit $ac_status); }; }; then
3208  ac_cv_prog_cc_g=yes
3209else
3210  echo "$as_me: failed program was:" >&5
3211sed 's/^/| /' conftest.$ac_ext >&5
3212
3213
3214fi
3215
3216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217fi
3218
3219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3220fi
3221
3222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3223   ac_c_werror_flag=$ac_save_c_werror_flag
3224fi
3225{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3226echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3227if test "$ac_test_CFLAGS" = set; then
3228  CFLAGS=$ac_save_CFLAGS
3229elif test $ac_cv_prog_cc_g = yes; then
3230  if test "$GCC" = yes; then
3231    CFLAGS="-g -O2"
3232  else
3233    CFLAGS="-g"
3234  fi
3235else
3236  if test "$GCC" = yes; then
3237    CFLAGS="-O2"
3238  else
3239    CFLAGS=
3240  fi
3241fi
3242{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3243echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3244if test "${ac_cv_prog_cc_c89+set}" = set; then
3245  echo $ECHO_N "(cached) $ECHO_C" >&6
3246else
3247  ac_cv_prog_cc_c89=no
3248ac_save_CC=$CC
3249cat >conftest.$ac_ext <<_ACEOF
3250/* confdefs.h.  */
3251_ACEOF
3252cat confdefs.h >>conftest.$ac_ext
3253cat >>conftest.$ac_ext <<_ACEOF
3254/* end confdefs.h.  */
3255#include <stdarg.h>
3256#include <stdio.h>
3257#include <sys/types.h>
3258#include <sys/stat.h>
3259/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3260struct buf { int x; };
3261FILE * (*rcsopen) (struct buf *, struct stat *, int);
3262static char *e (p, i)
3263     char **p;
3264     int i;
3265{
3266  return p[i];
3267}
3268static char *f (char * (*g) (char **, int), char **p, ...)
3269{
3270  char *s;
3271  va_list v;
3272  va_start (v,p);
3273  s = g (p, va_arg (v,int));
3274  va_end (v);
3275  return s;
3276}
3277
3278/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3279   function prototypes and stuff, but not '\xHH' hex character constants.
3280   These don't provoke an error unfortunately, instead are silently treated
3281   as 'x'.  The following induces an error, until -std is added to get
3282   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3283   array size at least.  It's necessary to write '\x00'==0 to get something
3284   that's true only with -std.  */
3285int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3286
3287/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3288   inside strings and character constants.  */
3289#define FOO(x) 'x'
3290int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3291
3292int test (int i, double x);
3293struct s1 {int (*f) (int a);};
3294struct s2 {int (*f) (double a);};
3295int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3296int argc;
3297char **argv;
3298int
3299main ()
3300{
3301return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3302  ;
3303  return 0;
3304}
3305_ACEOF
3306for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3307	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3308do
3309  CC="$ac_save_CC $ac_arg"
3310  rm -f conftest.$ac_objext
3311if { (ac_try="$ac_compile"
3312case "(($ac_try" in
3313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314  *) ac_try_echo=$ac_try;;
3315esac
3316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317  (eval "$ac_compile") 2>conftest.er1
3318  ac_status=$?
3319  grep -v '^ *+' conftest.er1 >conftest.err
3320  rm -f conftest.er1
3321  cat conftest.err >&5
3322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323  (exit $ac_status); } &&
3324	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3325  { (case "(($ac_try" in
3326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327  *) ac_try_echo=$ac_try;;
3328esac
3329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3330  (eval "$ac_try") 2>&5
3331  ac_status=$?
3332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333  (exit $ac_status); }; } &&
3334	 { ac_try='test -s conftest.$ac_objext'
3335  { (case "(($ac_try" in
3336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337  *) ac_try_echo=$ac_try;;
3338esac
3339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3340  (eval "$ac_try") 2>&5
3341  ac_status=$?
3342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343  (exit $ac_status); }; }; then
3344  ac_cv_prog_cc_c89=$ac_arg
3345else
3346  echo "$as_me: failed program was:" >&5
3347sed 's/^/| /' conftest.$ac_ext >&5
3348
3349
3350fi
3351
3352rm -f core conftest.err conftest.$ac_objext
3353  test "x$ac_cv_prog_cc_c89" != "xno" && break
3354done
3355rm -f conftest.$ac_ext
3356CC=$ac_save_CC
3357
3358fi
3359# AC_CACHE_VAL
3360case "x$ac_cv_prog_cc_c89" in
3361  x)
3362    { echo "$as_me:$LINENO: result: none needed" >&5
3363echo "${ECHO_T}none needed" >&6; } ;;
3364  xno)
3365    { echo "$as_me:$LINENO: result: unsupported" >&5
3366echo "${ECHO_T}unsupported" >&6; } ;;
3367  *)
3368    CC="$CC $ac_cv_prog_cc_c89"
3369    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3370echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3371esac
3372
3373
3374ac_ext=c
3375ac_cpp='$CPP $CPPFLAGS'
3376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3378ac_compiler_gnu=$ac_cv_c_compiler_gnu
3379
3380
3381ac_ext=c
3382ac_cpp='$CPP $CPPFLAGS'
3383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3385ac_compiler_gnu=$ac_cv_c_compiler_gnu
3386{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3387echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3388# On Suns, sometimes $CPP names a directory.
3389if test -n "$CPP" && test -d "$CPP"; then
3390  CPP=
3391fi
3392if test -z "$CPP"; then
3393  if test "${ac_cv_prog_CPP+set}" = set; then
3394  echo $ECHO_N "(cached) $ECHO_C" >&6
3395else
3396      # Double quotes because CPP needs to be expanded
3397    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3398    do
3399      ac_preproc_ok=false
3400for ac_c_preproc_warn_flag in '' yes
3401do
3402  # Use a header file that comes with gcc, so configuring glibc
3403  # with a fresh cross-compiler works.
3404  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3405  # <limits.h> exists even on freestanding compilers.
3406  # On the NeXT, cc -E runs the code through the compiler's parser,
3407  # not just through cpp. "Syntax error" is here to catch this case.
3408  cat >conftest.$ac_ext <<_ACEOF
3409/* confdefs.h.  */
3410_ACEOF
3411cat confdefs.h >>conftest.$ac_ext
3412cat >>conftest.$ac_ext <<_ACEOF
3413/* end confdefs.h.  */
3414#ifdef __STDC__
3415# include <limits.h>
3416#else
3417# include <assert.h>
3418#endif
3419		     Syntax error
3420_ACEOF
3421if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
3434  if test -s conftest.err; then
3435    ac_cpp_err=$ac_c_preproc_warn_flag
3436    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3437  else
3438    ac_cpp_err=
3439  fi
3440else
3441  ac_cpp_err=yes
3442fi
3443if test -z "$ac_cpp_err"; then
3444  :
3445else
3446  echo "$as_me: failed program was:" >&5
3447sed 's/^/| /' conftest.$ac_ext >&5
3448
3449  # Broken: fails on valid input.
3450continue
3451fi
3452
3453rm -f conftest.err conftest.$ac_ext
3454
3455  # OK, works on sane cases.  Now check whether nonexistent headers
3456  # can be detected and how.
3457  cat >conftest.$ac_ext <<_ACEOF
3458/* confdefs.h.  */
3459_ACEOF
3460cat confdefs.h >>conftest.$ac_ext
3461cat >>conftest.$ac_ext <<_ACEOF
3462/* end confdefs.h.  */
3463#include <ac_nonexistent.h>
3464_ACEOF
3465if { (ac_try="$ac_cpp conftest.$ac_ext"
3466case "(($ac_try" in
3467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468  *) ac_try_echo=$ac_try;;
3469esac
3470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3471  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3472  ac_status=$?
3473  grep -v '^ *+' conftest.er1 >conftest.err
3474  rm -f conftest.er1
3475  cat conftest.err >&5
3476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477  (exit $ac_status); } >/dev/null; then
3478  if test -s conftest.err; then
3479    ac_cpp_err=$ac_c_preproc_warn_flag
3480    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3481  else
3482    ac_cpp_err=
3483  fi
3484else
3485  ac_cpp_err=yes
3486fi
3487if test -z "$ac_cpp_err"; then
3488  # Broken: success on invalid input.
3489continue
3490else
3491  echo "$as_me: failed program was:" >&5
3492sed 's/^/| /' conftest.$ac_ext >&5
3493
3494  # Passes both tests.
3495ac_preproc_ok=:
3496break
3497fi
3498
3499rm -f conftest.err conftest.$ac_ext
3500
3501done
3502# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3503rm -f conftest.err conftest.$ac_ext
3504if $ac_preproc_ok; then
3505  break
3506fi
3507
3508    done
3509    ac_cv_prog_CPP=$CPP
3510
3511fi
3512  CPP=$ac_cv_prog_CPP
3513else
3514  ac_cv_prog_CPP=$CPP
3515fi
3516{ echo "$as_me:$LINENO: result: $CPP" >&5
3517echo "${ECHO_T}$CPP" >&6; }
3518ac_preproc_ok=false
3519for ac_c_preproc_warn_flag in '' yes
3520do
3521  # Use a header file that comes with gcc, so configuring glibc
3522  # with a fresh cross-compiler works.
3523  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3524  # <limits.h> exists even on freestanding compilers.
3525  # On the NeXT, cc -E runs the code through the compiler's parser,
3526  # not just through cpp. "Syntax error" is here to catch this case.
3527  cat >conftest.$ac_ext <<_ACEOF
3528/* confdefs.h.  */
3529_ACEOF
3530cat confdefs.h >>conftest.$ac_ext
3531cat >>conftest.$ac_ext <<_ACEOF
3532/* end confdefs.h.  */
3533#ifdef __STDC__
3534# include <limits.h>
3535#else
3536# include <assert.h>
3537#endif
3538		     Syntax error
3539_ACEOF
3540if { (ac_try="$ac_cpp conftest.$ac_ext"
3541case "(($ac_try" in
3542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543  *) ac_try_echo=$ac_try;;
3544esac
3545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3546  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3547  ac_status=$?
3548  grep -v '^ *+' conftest.er1 >conftest.err
3549  rm -f conftest.er1
3550  cat conftest.err >&5
3551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552  (exit $ac_status); } >/dev/null; then
3553  if test -s conftest.err; then
3554    ac_cpp_err=$ac_c_preproc_warn_flag
3555    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3556  else
3557    ac_cpp_err=
3558  fi
3559else
3560  ac_cpp_err=yes
3561fi
3562if test -z "$ac_cpp_err"; then
3563  :
3564else
3565  echo "$as_me: failed program was:" >&5
3566sed 's/^/| /' conftest.$ac_ext >&5
3567
3568  # Broken: fails on valid input.
3569continue
3570fi
3571
3572rm -f conftest.err conftest.$ac_ext
3573
3574  # OK, works on sane cases.  Now check whether nonexistent headers
3575  # can be detected and how.
3576  cat >conftest.$ac_ext <<_ACEOF
3577/* confdefs.h.  */
3578_ACEOF
3579cat confdefs.h >>conftest.$ac_ext
3580cat >>conftest.$ac_ext <<_ACEOF
3581/* end confdefs.h.  */
3582#include <ac_nonexistent.h>
3583_ACEOF
3584if { (ac_try="$ac_cpp conftest.$ac_ext"
3585case "(($ac_try" in
3586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587  *) ac_try_echo=$ac_try;;
3588esac
3589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3590  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3591  ac_status=$?
3592  grep -v '^ *+' conftest.er1 >conftest.err
3593  rm -f conftest.er1
3594  cat conftest.err >&5
3595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596  (exit $ac_status); } >/dev/null; then
3597  if test -s conftest.err; then
3598    ac_cpp_err=$ac_c_preproc_warn_flag
3599    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3600  else
3601    ac_cpp_err=
3602  fi
3603else
3604  ac_cpp_err=yes
3605fi
3606if test -z "$ac_cpp_err"; then
3607  # Broken: success on invalid input.
3608continue
3609else
3610  echo "$as_me: failed program was:" >&5
3611sed 's/^/| /' conftest.$ac_ext >&5
3612
3613  # Passes both tests.
3614ac_preproc_ok=:
3615break
3616fi
3617
3618rm -f conftest.err conftest.$ac_ext
3619
3620done
3621# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3622rm -f conftest.err conftest.$ac_ext
3623if $ac_preproc_ok; then
3624  :
3625else
3626  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3627See \`config.log' for more details." >&5
3628echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3629See \`config.log' for more details." >&2;}
3630   { (exit 1); exit 1; }; }
3631fi
3632
3633ac_ext=c
3634ac_cpp='$CPP $CPPFLAGS'
3635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3637ac_compiler_gnu=$ac_cv_c_compiler_gnu
3638
3639
3640{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3641echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3642if test "${ac_cv_path_GREP+set}" = set; then
3643  echo $ECHO_N "(cached) $ECHO_C" >&6
3644else
3645  # Extract the first word of "grep ggrep" to use in msg output
3646if test -z "$GREP"; then
3647set dummy grep ggrep; ac_prog_name=$2
3648if test "${ac_cv_path_GREP+set}" = set; then
3649  echo $ECHO_N "(cached) $ECHO_C" >&6
3650else
3651  ac_path_GREP_found=false
3652# Loop through the user's path and test for each of PROGNAME-LIST
3653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3654for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3655do
3656  IFS=$as_save_IFS
3657  test -z "$as_dir" && as_dir=.
3658  for ac_prog in grep ggrep; do
3659  for ac_exec_ext in '' $ac_executable_extensions; do
3660    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3661    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3662    # Check for GNU ac_path_GREP and select it if it is found.
3663  # Check for GNU $ac_path_GREP
3664case `"$ac_path_GREP" --version 2>&1` in
3665*GNU*)
3666  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3667*)
3668  ac_count=0
3669  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3670  while :
3671  do
3672    cat "conftest.in" "conftest.in" >"conftest.tmp"
3673    mv "conftest.tmp" "conftest.in"
3674    cp "conftest.in" "conftest.nl"
3675    echo 'GREP' >> "conftest.nl"
3676    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3677    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3678    ac_count=`expr $ac_count + 1`
3679    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3680      # Best one so far, save it but keep looking for a better one
3681      ac_cv_path_GREP="$ac_path_GREP"
3682      ac_path_GREP_max=$ac_count
3683    fi
3684    # 10*(2^10) chars as input seems more than enough
3685    test $ac_count -gt 10 && break
3686  done
3687  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3688esac
3689
3690
3691    $ac_path_GREP_found && break 3
3692  done
3693done
3694
3695done
3696IFS=$as_save_IFS
3697
3698
3699fi
3700
3701GREP="$ac_cv_path_GREP"
3702if test -z "$GREP"; then
3703  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3704echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3705   { (exit 1); exit 1; }; }
3706fi
3707
3708else
3709  ac_cv_path_GREP=$GREP
3710fi
3711
3712
3713fi
3714{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3715echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3716 GREP="$ac_cv_path_GREP"
3717
3718
3719{ echo "$as_me:$LINENO: checking for egrep" >&5
3720echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3721if test "${ac_cv_path_EGREP+set}" = set; then
3722  echo $ECHO_N "(cached) $ECHO_C" >&6
3723else
3724  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3725   then ac_cv_path_EGREP="$GREP -E"
3726   else
3727     # Extract the first word of "egrep" to use in msg output
3728if test -z "$EGREP"; then
3729set dummy egrep; ac_prog_name=$2
3730if test "${ac_cv_path_EGREP+set}" = set; then
3731  echo $ECHO_N "(cached) $ECHO_C" >&6
3732else
3733  ac_path_EGREP_found=false
3734# Loop through the user's path and test for each of PROGNAME-LIST
3735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3737do
3738  IFS=$as_save_IFS
3739  test -z "$as_dir" && as_dir=.
3740  for ac_prog in egrep; do
3741  for ac_exec_ext in '' $ac_executable_extensions; do
3742    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3743    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3744    # Check for GNU ac_path_EGREP and select it if it is found.
3745  # Check for GNU $ac_path_EGREP
3746case `"$ac_path_EGREP" --version 2>&1` in
3747*GNU*)
3748  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3749*)
3750  ac_count=0
3751  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3752  while :
3753  do
3754    cat "conftest.in" "conftest.in" >"conftest.tmp"
3755    mv "conftest.tmp" "conftest.in"
3756    cp "conftest.in" "conftest.nl"
3757    echo 'EGREP' >> "conftest.nl"
3758    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3759    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3760    ac_count=`expr $ac_count + 1`
3761    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3762      # Best one so far, save it but keep looking for a better one
3763      ac_cv_path_EGREP="$ac_path_EGREP"
3764      ac_path_EGREP_max=$ac_count
3765    fi
3766    # 10*(2^10) chars as input seems more than enough
3767    test $ac_count -gt 10 && break
3768  done
3769  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3770esac
3771
3772
3773    $ac_path_EGREP_found && break 3
3774  done
3775done
3776
3777done
3778IFS=$as_save_IFS
3779
3780
3781fi
3782
3783EGREP="$ac_cv_path_EGREP"
3784if test -z "$EGREP"; then
3785  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3786echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3787   { (exit 1); exit 1; }; }
3788fi
3789
3790else
3791  ac_cv_path_EGREP=$EGREP
3792fi
3793
3794
3795   fi
3796fi
3797{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3798echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3799 EGREP="$ac_cv_path_EGREP"
3800
3801
3802{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3803echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3804if test "${ac_cv_header_stdc+set}" = set; then
3805  echo $ECHO_N "(cached) $ECHO_C" >&6
3806else
3807  cat >conftest.$ac_ext <<_ACEOF
3808/* confdefs.h.  */
3809_ACEOF
3810cat confdefs.h >>conftest.$ac_ext
3811cat >>conftest.$ac_ext <<_ACEOF
3812/* end confdefs.h.  */
3813#include <stdlib.h>
3814#include <stdarg.h>
3815#include <string.h>
3816#include <float.h>
3817
3818int
3819main ()
3820{
3821
3822  ;
3823  return 0;
3824}
3825_ACEOF
3826rm -f conftest.$ac_objext
3827if { (ac_try="$ac_compile"
3828case "(($ac_try" in
3829  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830  *) ac_try_echo=$ac_try;;
3831esac
3832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3833  (eval "$ac_compile") 2>conftest.er1
3834  ac_status=$?
3835  grep -v '^ *+' conftest.er1 >conftest.err
3836  rm -f conftest.er1
3837  cat conftest.err >&5
3838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839  (exit $ac_status); } &&
3840	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3841  { (case "(($ac_try" in
3842  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843  *) ac_try_echo=$ac_try;;
3844esac
3845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3846  (eval "$ac_try") 2>&5
3847  ac_status=$?
3848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849  (exit $ac_status); }; } &&
3850	 { ac_try='test -s conftest.$ac_objext'
3851  { (case "(($ac_try" in
3852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853  *) ac_try_echo=$ac_try;;
3854esac
3855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3856  (eval "$ac_try") 2>&5
3857  ac_status=$?
3858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859  (exit $ac_status); }; }; then
3860  ac_cv_header_stdc=yes
3861else
3862  echo "$as_me: failed program was:" >&5
3863sed 's/^/| /' conftest.$ac_ext >&5
3864
3865	ac_cv_header_stdc=no
3866fi
3867
3868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3869
3870if test $ac_cv_header_stdc = yes; then
3871  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3872  cat >conftest.$ac_ext <<_ACEOF
3873/* confdefs.h.  */
3874_ACEOF
3875cat confdefs.h >>conftest.$ac_ext
3876cat >>conftest.$ac_ext <<_ACEOF
3877/* end confdefs.h.  */
3878#include <string.h>
3879
3880_ACEOF
3881if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3882  $EGREP "memchr" >/dev/null 2>&1; then
3883  :
3884else
3885  ac_cv_header_stdc=no
3886fi
3887rm -f conftest*
3888
3889fi
3890
3891if test $ac_cv_header_stdc = yes; then
3892  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3893  cat >conftest.$ac_ext <<_ACEOF
3894/* confdefs.h.  */
3895_ACEOF
3896cat confdefs.h >>conftest.$ac_ext
3897cat >>conftest.$ac_ext <<_ACEOF
3898/* end confdefs.h.  */
3899#include <stdlib.h>
3900
3901_ACEOF
3902if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3903  $EGREP "free" >/dev/null 2>&1; then
3904  :
3905else
3906  ac_cv_header_stdc=no
3907fi
3908rm -f conftest*
3909
3910fi
3911
3912if test $ac_cv_header_stdc = yes; then
3913  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3914  if test "$cross_compiling" = yes; then
3915  :
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 <ctype.h>
3924#include <stdlib.h>
3925#if ((' ' & 0x0FF) == 0x020)
3926# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3927# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3928#else
3929# define ISLOWER(c) \
3930		   (('a' <= (c) && (c) <= 'i') \
3931		     || ('j' <= (c) && (c) <= 'r') \
3932		     || ('s' <= (c) && (c) <= 'z'))
3933# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3934#endif
3935
3936#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3937int
3938main ()
3939{
3940  int i;
3941  for (i = 0; i < 256; i++)
3942    if (XOR (islower (i), ISLOWER (i))
3943	|| toupper (i) != TOUPPER (i))
3944      return 2;
3945  return 0;
3946}
3947_ACEOF
3948rm -f conftest$ac_exeext
3949if { (ac_try="$ac_link"
3950case "(($ac_try" in
3951  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3952  *) ac_try_echo=$ac_try;;
3953esac
3954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3955  (eval "$ac_link") 2>&5
3956  ac_status=$?
3957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3959  { (case "(($ac_try" in
3960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961  *) ac_try_echo=$ac_try;;
3962esac
3963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3964  (eval "$ac_try") 2>&5
3965  ac_status=$?
3966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967  (exit $ac_status); }; }; then
3968  :
3969else
3970  echo "$as_me: program exited with status $ac_status" >&5
3971echo "$as_me: failed program was:" >&5
3972sed 's/^/| /' conftest.$ac_ext >&5
3973
3974( exit $ac_status )
3975ac_cv_header_stdc=no
3976fi
3977rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3978fi
3979
3980
3981fi
3982fi
3983{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3984echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3985if test $ac_cv_header_stdc = yes; then
3986
3987cat >>confdefs.h <<\_ACEOF
3988#define STDC_HEADERS 1
3989_ACEOF
3990
3991fi
3992
3993# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4004		  inttypes.h stdint.h unistd.h
4005do
4006as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4007{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4008echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4009if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4010  echo $ECHO_N "(cached) $ECHO_C" >&6
4011else
4012  cat >conftest.$ac_ext <<_ACEOF
4013/* confdefs.h.  */
4014_ACEOF
4015cat confdefs.h >>conftest.$ac_ext
4016cat >>conftest.$ac_ext <<_ACEOF
4017/* end confdefs.h.  */
4018$ac_includes_default
4019
4020#include <$ac_header>
4021_ACEOF
4022rm -f conftest.$ac_objext
4023if { (ac_try="$ac_compile"
4024case "(($ac_try" in
4025  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4026  *) ac_try_echo=$ac_try;;
4027esac
4028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4029  (eval "$ac_compile") 2>conftest.er1
4030  ac_status=$?
4031  grep -v '^ *+' conftest.er1 >conftest.err
4032  rm -f conftest.er1
4033  cat conftest.err >&5
4034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035  (exit $ac_status); } &&
4036	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4037  { (case "(($ac_try" in
4038  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4039  *) ac_try_echo=$ac_try;;
4040esac
4041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4042  (eval "$ac_try") 2>&5
4043  ac_status=$?
4044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045  (exit $ac_status); }; } &&
4046	 { ac_try='test -s conftest.$ac_objext'
4047  { (case "(($ac_try" in
4048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049  *) ac_try_echo=$ac_try;;
4050esac
4051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4052  (eval "$ac_try") 2>&5
4053  ac_status=$?
4054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055  (exit $ac_status); }; }; then
4056  eval "$as_ac_Header=yes"
4057else
4058  echo "$as_me: failed program was:" >&5
4059sed 's/^/| /' conftest.$ac_ext >&5
4060
4061	eval "$as_ac_Header=no"
4062fi
4063
4064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4065fi
4066ac_res=`eval echo '${'$as_ac_Header'}'`
4067	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4068echo "${ECHO_T}$ac_res" >&6; }
4069if test `eval echo '${'$as_ac_Header'}'` = yes; then
4070  cat >>confdefs.h <<_ACEOF
4071#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4072_ACEOF
4073
4074fi
4075
4076done
4077
4078
4079{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4080echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4081if test "${ac_cv_c_bigendian+set}" = set; then
4082  echo $ECHO_N "(cached) $ECHO_C" >&6
4083else
4084  # See if sys/param.h defines the BYTE_ORDER macro.
4085cat >conftest.$ac_ext <<_ACEOF
4086/* confdefs.h.  */
4087_ACEOF
4088cat confdefs.h >>conftest.$ac_ext
4089cat >>conftest.$ac_ext <<_ACEOF
4090/* end confdefs.h.  */
4091#include <sys/types.h>
4092#include <sys/param.h>
4093
4094int
4095main ()
4096{
4097#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4098 bogus endian macros
4099#endif
4100
4101  ;
4102  return 0;
4103}
4104_ACEOF
4105rm -f conftest.$ac_objext
4106if { (ac_try="$ac_compile"
4107case "(($ac_try" in
4108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4109  *) ac_try_echo=$ac_try;;
4110esac
4111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4112  (eval "$ac_compile") 2>conftest.er1
4113  ac_status=$?
4114  grep -v '^ *+' conftest.er1 >conftest.err
4115  rm -f conftest.er1
4116  cat conftest.err >&5
4117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118  (exit $ac_status); } &&
4119	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4120  { (case "(($ac_try" in
4121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4122  *) ac_try_echo=$ac_try;;
4123esac
4124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4125  (eval "$ac_try") 2>&5
4126  ac_status=$?
4127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128  (exit $ac_status); }; } &&
4129	 { ac_try='test -s conftest.$ac_objext'
4130  { (case "(($ac_try" in
4131  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132  *) ac_try_echo=$ac_try;;
4133esac
4134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4135  (eval "$ac_try") 2>&5
4136  ac_status=$?
4137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138  (exit $ac_status); }; }; then
4139  # It does; now see whether it defined to BIG_ENDIAN or not.
4140cat >conftest.$ac_ext <<_ACEOF
4141/* confdefs.h.  */
4142_ACEOF
4143cat confdefs.h >>conftest.$ac_ext
4144cat >>conftest.$ac_ext <<_ACEOF
4145/* end confdefs.h.  */
4146#include <sys/types.h>
4147#include <sys/param.h>
4148
4149int
4150main ()
4151{
4152#if BYTE_ORDER != BIG_ENDIAN
4153 not big endian
4154#endif
4155
4156  ;
4157  return 0;
4158}
4159_ACEOF
4160rm -f conftest.$ac_objext
4161if { (ac_try="$ac_compile"
4162case "(($ac_try" in
4163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4164  *) ac_try_echo=$ac_try;;
4165esac
4166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4167  (eval "$ac_compile") 2>conftest.er1
4168  ac_status=$?
4169  grep -v '^ *+' conftest.er1 >conftest.err
4170  rm -f conftest.er1
4171  cat conftest.err >&5
4172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173  (exit $ac_status); } &&
4174	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4175  { (case "(($ac_try" in
4176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177  *) ac_try_echo=$ac_try;;
4178esac
4179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4180  (eval "$ac_try") 2>&5
4181  ac_status=$?
4182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183  (exit $ac_status); }; } &&
4184	 { ac_try='test -s conftest.$ac_objext'
4185  { (case "(($ac_try" in
4186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187  *) ac_try_echo=$ac_try;;
4188esac
4189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4190  (eval "$ac_try") 2>&5
4191  ac_status=$?
4192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193  (exit $ac_status); }; }; then
4194  ac_cv_c_bigendian=yes
4195else
4196  echo "$as_me: failed program was:" >&5
4197sed 's/^/| /' conftest.$ac_ext >&5
4198
4199	ac_cv_c_bigendian=no
4200fi
4201
4202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4203else
4204  echo "$as_me: failed program was:" >&5
4205sed 's/^/| /' conftest.$ac_ext >&5
4206
4207	# It does not; compile a test program.
4208if test "$cross_compiling" = yes; then
4209  # try to guess the endianness by grepping values into an object file
4210  ac_cv_c_bigendian=unknown
4211  cat >conftest.$ac_ext <<_ACEOF
4212/* confdefs.h.  */
4213_ACEOF
4214cat confdefs.h >>conftest.$ac_ext
4215cat >>conftest.$ac_ext <<_ACEOF
4216/* end confdefs.h.  */
4217short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4218short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4219void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4220short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4221short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4222void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4223int
4224main ()
4225{
4226 _ascii (); _ebcdic ();
4227  ;
4228  return 0;
4229}
4230_ACEOF
4231rm -f conftest.$ac_objext
4232if { (ac_try="$ac_compile"
4233case "(($ac_try" in
4234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235  *) ac_try_echo=$ac_try;;
4236esac
4237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4238  (eval "$ac_compile") 2>conftest.er1
4239  ac_status=$?
4240  grep -v '^ *+' conftest.er1 >conftest.err
4241  rm -f conftest.er1
4242  cat conftest.err >&5
4243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244  (exit $ac_status); } &&
4245	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4246  { (case "(($ac_try" in
4247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4248  *) ac_try_echo=$ac_try;;
4249esac
4250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4251  (eval "$ac_try") 2>&5
4252  ac_status=$?
4253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254  (exit $ac_status); }; } &&
4255	 { ac_try='test -s conftest.$ac_objext'
4256  { (case "(($ac_try" in
4257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258  *) ac_try_echo=$ac_try;;
4259esac
4260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4261  (eval "$ac_try") 2>&5
4262  ac_status=$?
4263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264  (exit $ac_status); }; }; then
4265  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4266  ac_cv_c_bigendian=yes
4267fi
4268if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4269  if test "$ac_cv_c_bigendian" = unknown; then
4270    ac_cv_c_bigendian=no
4271  else
4272    # finding both strings is unlikely to happen, but who knows?
4273    ac_cv_c_bigendian=unknown
4274  fi
4275fi
4276else
4277  echo "$as_me: failed program was:" >&5
4278sed 's/^/| /' conftest.$ac_ext >&5
4279
4280
4281fi
4282
4283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4284else
4285  cat >conftest.$ac_ext <<_ACEOF
4286/* confdefs.h.  */
4287_ACEOF
4288cat confdefs.h >>conftest.$ac_ext
4289cat >>conftest.$ac_ext <<_ACEOF
4290/* end confdefs.h.  */
4291$ac_includes_default
4292int
4293main ()
4294{
4295
4296  /* Are we little or big endian?  From Harbison&Steele.  */
4297  union
4298  {
4299    long int l;
4300    char c[sizeof (long int)];
4301  } u;
4302  u.l = 1;
4303  return u.c[sizeof (long int) - 1] == 1;
4304
4305  ;
4306  return 0;
4307}
4308_ACEOF
4309rm -f conftest$ac_exeext
4310if { (ac_try="$ac_link"
4311case "(($ac_try" in
4312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313  *) ac_try_echo=$ac_try;;
4314esac
4315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4316  (eval "$ac_link") 2>&5
4317  ac_status=$?
4318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4320  { (case "(($ac_try" in
4321  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322  *) ac_try_echo=$ac_try;;
4323esac
4324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4325  (eval "$ac_try") 2>&5
4326  ac_status=$?
4327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328  (exit $ac_status); }; }; then
4329  ac_cv_c_bigendian=no
4330else
4331  echo "$as_me: program exited with status $ac_status" >&5
4332echo "$as_me: failed program was:" >&5
4333sed 's/^/| /' conftest.$ac_ext >&5
4334
4335( exit $ac_status )
4336ac_cv_c_bigendian=yes
4337fi
4338rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4339fi
4340
4341
4342fi
4343
4344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4345fi
4346{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4347echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4348case $ac_cv_c_bigendian in
4349  yes)
4350    ENDIAN=big
4351 ;;
4352  no)
4353    ENDIAN=little
4354 ;;
4355  *)
4356    { { echo "$as_me:$LINENO: error: unknown endianness
4357presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4358echo "$as_me: error: unknown endianness
4359presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4360   { (exit 1); exit 1; }; } ;;
4361esac
4362
4363
4364if test "$cross_compiling" = yes; then
4365  LLVM_CROSS_COMPILING=1
4366
4367
4368{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4369echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4370if test "${ac_cv_build_exeext+set}" = set; then
4371  echo $ECHO_N "(cached) $ECHO_C" >&6
4372else
4373  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4374  ac_cv_build_exeext=.exe
4375else
4376  ac_build_prefix=${build_alias}-
4377
4378  # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4379set dummy ${ac_build_prefix}gcc; ac_word=$2
4380{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4382if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4383  echo $ECHO_N "(cached) $ECHO_C" >&6
4384else
4385  if test -n "$BUILD_CC"; then
4386  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4387else
4388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389for as_dir in $PATH
4390do
4391  IFS=$as_save_IFS
4392  test -z "$as_dir" && as_dir=.
4393  for ac_exec_ext in '' $ac_executable_extensions; do
4394  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4395    ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4396    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4397    break 2
4398  fi
4399done
4400done
4401IFS=$as_save_IFS
4402
4403fi
4404fi
4405BUILD_CC=$ac_cv_prog_BUILD_CC
4406if test -n "$BUILD_CC"; then
4407  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4408echo "${ECHO_T}$BUILD_CC" >&6; }
4409else
4410  { echo "$as_me:$LINENO: result: no" >&5
4411echo "${ECHO_T}no" >&6; }
4412fi
4413
4414
4415  if test -z "$BUILD_CC"; then
4416     # Extract the first word of "gcc", so it can be a program name with args.
4417set dummy gcc; ac_word=$2
4418{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4420if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4421  echo $ECHO_N "(cached) $ECHO_C" >&6
4422else
4423  if test -n "$BUILD_CC"; then
4424  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4425else
4426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427for as_dir in $PATH
4428do
4429  IFS=$as_save_IFS
4430  test -z "$as_dir" && as_dir=.
4431  for ac_exec_ext in '' $ac_executable_extensions; do
4432  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4433    ac_cv_prog_BUILD_CC="gcc"
4434    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4435    break 2
4436  fi
4437done
4438done
4439IFS=$as_save_IFS
4440
4441fi
4442fi
4443BUILD_CC=$ac_cv_prog_BUILD_CC
4444if test -n "$BUILD_CC"; then
4445  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4446echo "${ECHO_T}$BUILD_CC" >&6; }
4447else
4448  { echo "$as_me:$LINENO: result: no" >&5
4449echo "${ECHO_T}no" >&6; }
4450fi
4451
4452
4453     if test -z "$BUILD_CC"; then
4454       # Extract the first word of "cc", so it can be a program name with args.
4455set dummy cc; ac_word=$2
4456{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4458if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4459  echo $ECHO_N "(cached) $ECHO_C" >&6
4460else
4461  if test -n "$BUILD_CC"; then
4462  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4463else
4464  ac_prog_rejected=no
4465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466for as_dir in $PATH
4467do
4468  IFS=$as_save_IFS
4469  test -z "$as_dir" && as_dir=.
4470  for ac_exec_ext in '' $ac_executable_extensions; do
4471  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4472    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4473       ac_prog_rejected=yes
4474       continue
4475     fi
4476    ac_cv_prog_BUILD_CC="cc"
4477    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4478    break 2
4479  fi
4480done
4481done
4482IFS=$as_save_IFS
4483
4484if test $ac_prog_rejected = yes; then
4485  # We found a bogon in the path, so make sure we never use it.
4486  set dummy $ac_cv_prog_BUILD_CC
4487  shift
4488  if test $# != 0; then
4489    # We chose a different compiler from the bogus one.
4490    # However, it has the same basename, so the bogon will be chosen
4491    # first if we set BUILD_CC to just the basename; use the full file name.
4492    shift
4493    ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4494  fi
4495fi
4496fi
4497fi
4498BUILD_CC=$ac_cv_prog_BUILD_CC
4499if test -n "$BUILD_CC"; then
4500  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4501echo "${ECHO_T}$BUILD_CC" >&6; }
4502else
4503  { echo "$as_me:$LINENO: result: no" >&5
4504echo "${ECHO_T}no" >&6; }
4505fi
4506
4507
4508     fi
4509  fi
4510  test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4511echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4512   { (exit 1); exit 1; }; }
4513  ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4514  rm -f conftest*
4515  echo 'int main () { return 0; }' > conftest.$ac_ext
4516  ac_cv_build_exeext=
4517  if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4518  (eval $ac_build_link) 2>&5
4519  ac_status=$?
4520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521  (exit $ac_status); }; then
4522    for file in conftest.*; do
4523      case $file in
4524      *.c | *.o | *.obj) ;;
4525      *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4526      esac
4527    done
4528  else
4529    { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4530echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4531   { (exit 1); exit 1; }; }
4532  fi
4533  rm -f conftest*
4534  test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4535fi
4536fi
4537
4538BUILD_EXEEXT=""
4539test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4540{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4541echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4542ac_build_exeext=$BUILD_EXEEXT
4543
4544else
4545  LLVM_CROSS_COMPILING=0
4546
4547fi
4548
4549if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4550  cvsbuild="yes"
4551  optimize="no"
4552  CVSBUILD=CVSBUILD=1
4553
4554else
4555  cvsbuild="no"
4556  optimize="yes"
4557fi
4558
4559
4560# Check whether --enable-optimized was given.
4561if test "${enable_optimized+set}" = set; then
4562  enableval=$enable_optimized;
4563else
4564  enableval=$optimize
4565fi
4566
4567if test ${enableval} = "no" ; then
4568  ENABLE_OPTIMIZED=
4569
4570else
4571  ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4572
4573fi
4574
4575# Check whether --enable-assertions was given.
4576if test "${enable_assertions+set}" = set; then
4577  enableval=$enable_assertions;
4578else
4579  enableval="yes"
4580fi
4581
4582if test ${enableval} = "yes" ; then
4583  DISABLE_ASSERTIONS=
4584
4585else
4586  DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4587
4588fi
4589
4590# Check whether --enable-expensive-checks was given.
4591if test "${enable_expensive_checks+set}" = set; then
4592  enableval=$enable_expensive_checks;
4593else
4594  enableval="no"
4595fi
4596
4597if test ${enableval} = "yes" ; then
4598  ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4599
4600  EXPENSIVE_CHECKS=yes
4601
4602else
4603  ENABLE_EXPENSIVE_CHECKS=
4604
4605  EXPENSIVE_CHECKS=no
4606
4607fi
4608
4609# Check whether --enable-debug-runtime was given.
4610if test "${enable_debug_runtime+set}" = set; then
4611  enableval=$enable_debug_runtime;
4612else
4613  enableval=no
4614fi
4615
4616if test ${enableval} = "no" ; then
4617  DEBUG_RUNTIME=
4618
4619else
4620  DEBUG_RUNTIME=DEBUG_RUNTIME=1
4621
4622fi
4623
4624# Check whether --enable-jit was given.
4625if test "${enable_jit+set}" = set; then
4626  enableval=$enable_jit;
4627else
4628  enableval=default
4629fi
4630
4631if test ${enableval} = "no"
4632then
4633  JIT=
4634
4635else
4636  case "$llvm_cv_target_arch" in
4637    x86)     TARGET_HAS_JIT=1
4638 ;;
4639    Sparc)   TARGET_HAS_JIT=0
4640 ;;
4641    PowerPC) TARGET_HAS_JIT=1
4642 ;;
4643    x86_64)  TARGET_HAS_JIT=1
4644 ;;
4645    Alpha)   TARGET_HAS_JIT=1
4646 ;;
4647    IA64)    TARGET_HAS_JIT=0
4648 ;;
4649    ARM)     TARGET_HAS_JIT=0
4650 ;;
4651    Mips)    TARGET_HAS_JIT=0
4652 ;;
4653    *)       TARGET_HAS_JIT=0
4654 ;;
4655  esac
4656fi
4657
4658# Check whether --enable-doxygen was given.
4659if test "${enable_doxygen+set}" = set; then
4660  enableval=$enable_doxygen;
4661else
4662  enableval=default
4663fi
4664
4665case "$enableval" in
4666  yes) ENABLE_DOXYGEN=1
4667 ;;
4668  no)  ENABLE_DOXYGEN=0
4669 ;;
4670  default) ENABLE_DOXYGEN=0
4671 ;;
4672  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4673echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4674   { (exit 1); exit 1; }; } ;;
4675esac
4676
4677# Check whether --enable-threads was given.
4678if test "${enable_threads+set}" = set; then
4679  enableval=$enable_threads;
4680else
4681  enableval=default
4682fi
4683
4684case "$enableval" in
4685  yes) ENABLE_THREADS=1
4686 ;;
4687  no)  ENABLE_THREADS=0
4688 ;;
4689  default) ENABLE_THREADS=1
4690 ;;
4691  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4692echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4693   { (exit 1); exit 1; }; } ;;
4694esac
4695
4696cat >>confdefs.h <<_ACEOF
4697#define ENABLE_THREADS $ENABLE_THREADS
4698_ACEOF
4699
4700
4701# Check whether --enable-pic was given.
4702if test "${enable_pic+set}" = set; then
4703  enableval=$enable_pic;
4704else
4705  enableval=default
4706fi
4707
4708case "$enableval" in
4709  yes) ENABLE_PIC=1
4710 ;;
4711  no)  ENABLE_PIC=0
4712 ;;
4713  default) ENABLE_PIC=0
4714 ;;
4715  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4716echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4717   { (exit 1); exit 1; }; } ;;
4718esac
4719
4720cat >>confdefs.h <<_ACEOF
4721#define ENABLE_PIC $ENABLE_PIC
4722_ACEOF
4723
4724
4725TARGETS_TO_BUILD=""
4726# Check whether --enable-targets was given.
4727if test "${enable_targets+set}" = set; then
4728  enableval=$enable_targets;
4729else
4730  enableval=all
4731fi
4732
4733case "$enableval" in
4734  all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips" ;;
4735  host-only)
4736    case "$llvm_cv_target_arch" in
4737      x86)     TARGETS_TO_BUILD="X86" ;;
4738      x86_64)  TARGETS_TO_BUILD="X86" ;;
4739      Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4740      PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4741      Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4742      IA64)    TARGETS_TO_BUILD="IA64" ;;
4743      ARM)     TARGETS_TO_BUILD="ARM" ;;
4744      Mips)    TARGETS_TO_BUILD="Mips" ;;
4745      *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4746echo "$as_me: error: Can not set target to build" >&2;}
4747   { (exit 1); exit 1; }; } ;;
4748    esac
4749    ;;
4750  *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4751      case "$a_target" in
4752        x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4753        x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4754        sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4755        powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4756        alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4757        ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4758        arm)     TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4759        mips)    TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4760        *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4761echo "$as_me: error: Unrecognized target $a_target" >&2;}
4762   { (exit 1); exit 1; }; } ;;
4763      esac
4764  done
4765  ;;
4766esac
4767TARGETS_TO_BUILD="CBackend MSIL $TARGETS_TO_BUILD"
4768TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4769
4770
4771# Check whether --enable-cbe-printf-a was given.
4772if test "${enable_cbe_printf_a+set}" = set; then
4773  enableval=$enable_cbe_printf_a;
4774else
4775  enableval=default
4776fi
4777
4778case "$enableval" in
4779  yes) ENABLE_CBE_PRINTF_A=1
4780 ;;
4781  no)  ENABLE_CBE_PRINTF_A=0
4782 ;;
4783  default)  ENABLE_CBE_PRINTF_A=1
4784 ;;
4785  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4786echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4787   { (exit 1); exit 1; }; } ;;
4788esac
4789
4790cat >>confdefs.h <<_ACEOF
4791#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4792_ACEOF
4793
4794
4795
4796# Check whether --with-llvmgccdir was given.
4797if test "${with_llvmgccdir+set}" = set; then
4798  withval=$with_llvmgccdir;
4799else
4800  withval=default
4801fi
4802
4803case "$withval" in
4804  default) WITH_LLVMGCCDIR=default ;;
4805  /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4806  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4807echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4808   { (exit 1); exit 1; }; } ;;
4809esac
4810
4811
4812# Check whether --with-extra-options was given.
4813if test "${with_extra_options+set}" = set; then
4814  withval=$with_extra_options;
4815else
4816  withval=default
4817fi
4818
4819case "$withval" in
4820  default) EXTRA_OPTIONS= ;;
4821  *) EXTRA_OPTIONS=$withval ;;
4822esac
4823EXTRA_OPTIONS=$EXTRA_OPTIONS
4824
4825
4826
4827ac_ext=c
4828ac_cpp='$CPP $CPPFLAGS'
4829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4831ac_compiler_gnu=$ac_cv_c_compiler_gnu
4832{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4833echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4834# On Suns, sometimes $CPP names a directory.
4835if test -n "$CPP" && test -d "$CPP"; then
4836  CPP=
4837fi
4838if test -z "$CPP"; then
4839  if test "${ac_cv_prog_CPP+set}" = set; then
4840  echo $ECHO_N "(cached) $ECHO_C" >&6
4841else
4842      # Double quotes because CPP needs to be expanded
4843    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4844    do
4845      ac_preproc_ok=false
4846for ac_c_preproc_warn_flag in '' yes
4847do
4848  # Use a header file that comes with gcc, so configuring glibc
4849  # with a fresh cross-compiler works.
4850  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4851  # <limits.h> exists even on freestanding compilers.
4852  # On the NeXT, cc -E runs the code through the compiler's parser,
4853  # not just through cpp. "Syntax error" is here to catch this case.
4854  cat >conftest.$ac_ext <<_ACEOF
4855/* confdefs.h.  */
4856_ACEOF
4857cat confdefs.h >>conftest.$ac_ext
4858cat >>conftest.$ac_ext <<_ACEOF
4859/* end confdefs.h.  */
4860#ifdef __STDC__
4861# include <limits.h>
4862#else
4863# include <assert.h>
4864#endif
4865		     Syntax error
4866_ACEOF
4867if { (ac_try="$ac_cpp conftest.$ac_ext"
4868case "(($ac_try" in
4869  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870  *) ac_try_echo=$ac_try;;
4871esac
4872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4873  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4874  ac_status=$?
4875  grep -v '^ *+' conftest.er1 >conftest.err
4876  rm -f conftest.er1
4877  cat conftest.err >&5
4878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879  (exit $ac_status); } >/dev/null; then
4880  if test -s conftest.err; then
4881    ac_cpp_err=$ac_c_preproc_warn_flag
4882    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4883  else
4884    ac_cpp_err=
4885  fi
4886else
4887  ac_cpp_err=yes
4888fi
4889if test -z "$ac_cpp_err"; then
4890  :
4891else
4892  echo "$as_me: failed program was:" >&5
4893sed 's/^/| /' conftest.$ac_ext >&5
4894
4895  # Broken: fails on valid input.
4896continue
4897fi
4898
4899rm -f conftest.err conftest.$ac_ext
4900
4901  # OK, works on sane cases.  Now check whether nonexistent headers
4902  # can be detected and how.
4903  cat >conftest.$ac_ext <<_ACEOF
4904/* confdefs.h.  */
4905_ACEOF
4906cat confdefs.h >>conftest.$ac_ext
4907cat >>conftest.$ac_ext <<_ACEOF
4908/* end confdefs.h.  */
4909#include <ac_nonexistent.h>
4910_ACEOF
4911if { (ac_try="$ac_cpp conftest.$ac_ext"
4912case "(($ac_try" in
4913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4914  *) ac_try_echo=$ac_try;;
4915esac
4916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4917  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4918  ac_status=$?
4919  grep -v '^ *+' conftest.er1 >conftest.err
4920  rm -f conftest.er1
4921  cat conftest.err >&5
4922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923  (exit $ac_status); } >/dev/null; then
4924  if test -s conftest.err; then
4925    ac_cpp_err=$ac_c_preproc_warn_flag
4926    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4927  else
4928    ac_cpp_err=
4929  fi
4930else
4931  ac_cpp_err=yes
4932fi
4933if test -z "$ac_cpp_err"; then
4934  # Broken: success on invalid input.
4935continue
4936else
4937  echo "$as_me: failed program was:" >&5
4938sed 's/^/| /' conftest.$ac_ext >&5
4939
4940  # Passes both tests.
4941ac_preproc_ok=:
4942break
4943fi
4944
4945rm -f conftest.err conftest.$ac_ext
4946
4947done
4948# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4949rm -f conftest.err conftest.$ac_ext
4950if $ac_preproc_ok; then
4951  break
4952fi
4953
4954    done
4955    ac_cv_prog_CPP=$CPP
4956
4957fi
4958  CPP=$ac_cv_prog_CPP
4959else
4960  ac_cv_prog_CPP=$CPP
4961fi
4962{ echo "$as_me:$LINENO: result: $CPP" >&5
4963echo "${ECHO_T}$CPP" >&6; }
4964ac_preproc_ok=false
4965for ac_c_preproc_warn_flag in '' yes
4966do
4967  # Use a header file that comes with gcc, so configuring glibc
4968  # with a fresh cross-compiler works.
4969  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4970  # <limits.h> exists even on freestanding compilers.
4971  # On the NeXT, cc -E runs the code through the compiler's parser,
4972  # not just through cpp. "Syntax error" is here to catch this case.
4973  cat >conftest.$ac_ext <<_ACEOF
4974/* confdefs.h.  */
4975_ACEOF
4976cat confdefs.h >>conftest.$ac_ext
4977cat >>conftest.$ac_ext <<_ACEOF
4978/* end confdefs.h.  */
4979#ifdef __STDC__
4980# include <limits.h>
4981#else
4982# include <assert.h>
4983#endif
4984		     Syntax error
4985_ACEOF
4986if { (ac_try="$ac_cpp conftest.$ac_ext"
4987case "(($ac_try" in
4988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4989  *) ac_try_echo=$ac_try;;
4990esac
4991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4992  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4993  ac_status=$?
4994  grep -v '^ *+' conftest.er1 >conftest.err
4995  rm -f conftest.er1
4996  cat conftest.err >&5
4997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998  (exit $ac_status); } >/dev/null; then
4999  if test -s conftest.err; then
5000    ac_cpp_err=$ac_c_preproc_warn_flag
5001    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5002  else
5003    ac_cpp_err=
5004  fi
5005else
5006  ac_cpp_err=yes
5007fi
5008if test -z "$ac_cpp_err"; then
5009  :
5010else
5011  echo "$as_me: failed program was:" >&5
5012sed 's/^/| /' conftest.$ac_ext >&5
5013
5014  # Broken: fails on valid input.
5015continue
5016fi
5017
5018rm -f conftest.err conftest.$ac_ext
5019
5020  # OK, works on sane cases.  Now check whether nonexistent headers
5021  # can be detected and how.
5022  cat >conftest.$ac_ext <<_ACEOF
5023/* confdefs.h.  */
5024_ACEOF
5025cat confdefs.h >>conftest.$ac_ext
5026cat >>conftest.$ac_ext <<_ACEOF
5027/* end confdefs.h.  */
5028#include <ac_nonexistent.h>
5029_ACEOF
5030if { (ac_try="$ac_cpp conftest.$ac_ext"
5031case "(($ac_try" in
5032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5033  *) ac_try_echo=$ac_try;;
5034esac
5035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5036  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5037  ac_status=$?
5038  grep -v '^ *+' conftest.er1 >conftest.err
5039  rm -f conftest.er1
5040  cat conftest.err >&5
5041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042  (exit $ac_status); } >/dev/null; then
5043  if test -s conftest.err; then
5044    ac_cpp_err=$ac_c_preproc_warn_flag
5045    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5046  else
5047    ac_cpp_err=
5048  fi
5049else
5050  ac_cpp_err=yes
5051fi
5052if test -z "$ac_cpp_err"; then
5053  # Broken: success on invalid input.
5054continue
5055else
5056  echo "$as_me: failed program was:" >&5
5057sed 's/^/| /' conftest.$ac_ext >&5
5058
5059  # Passes both tests.
5060ac_preproc_ok=:
5061break
5062fi
5063
5064rm -f conftest.err conftest.$ac_ext
5065
5066done
5067# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5068rm -f conftest.err conftest.$ac_ext
5069if $ac_preproc_ok; then
5070  :
5071else
5072  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5073See \`config.log' for more details." >&5
5074echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5075See \`config.log' for more details." >&2;}
5076   { (exit 1); exit 1; }; }
5077fi
5078
5079ac_ext=c
5080ac_cpp='$CPP $CPPFLAGS'
5081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5083ac_compiler_gnu=$ac_cv_c_compiler_gnu
5084
5085ac_ext=c
5086ac_cpp='$CPP $CPPFLAGS'
5087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5089ac_compiler_gnu=$ac_cv_c_compiler_gnu
5090if test -n "$ac_tool_prefix"; then
5091  for ac_prog in gcc
5092  do
5093    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5094set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5095{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5097if test "${ac_cv_prog_CC+set}" = set; then
5098  echo $ECHO_N "(cached) $ECHO_C" >&6
5099else
5100  if test -n "$CC"; then
5101  ac_cv_prog_CC="$CC" # Let the user override the test.
5102else
5103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104for as_dir in $PATH
5105do
5106  IFS=$as_save_IFS
5107  test -z "$as_dir" && as_dir=.
5108  for ac_exec_ext in '' $ac_executable_extensions; do
5109  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5110    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5111    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5112    break 2
5113  fi
5114done
5115done
5116IFS=$as_save_IFS
5117
5118fi
5119fi
5120CC=$ac_cv_prog_CC
5121if test -n "$CC"; then
5122  { echo "$as_me:$LINENO: result: $CC" >&5
5123echo "${ECHO_T}$CC" >&6; }
5124else
5125  { echo "$as_me:$LINENO: result: no" >&5
5126echo "${ECHO_T}no" >&6; }
5127fi
5128
5129
5130    test -n "$CC" && break
5131  done
5132fi
5133if test -z "$CC"; then
5134  ac_ct_CC=$CC
5135  for ac_prog in gcc
5136do
5137  # Extract the first word of "$ac_prog", so it can be a program name with args.
5138set dummy $ac_prog; ac_word=$2
5139{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5141if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5142  echo $ECHO_N "(cached) $ECHO_C" >&6
5143else
5144  if test -n "$ac_ct_CC"; then
5145  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5146else
5147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148for as_dir in $PATH
5149do
5150  IFS=$as_save_IFS
5151  test -z "$as_dir" && as_dir=.
5152  for ac_exec_ext in '' $ac_executable_extensions; do
5153  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5154    ac_cv_prog_ac_ct_CC="$ac_prog"
5155    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5156    break 2
5157  fi
5158done
5159done
5160IFS=$as_save_IFS
5161
5162fi
5163fi
5164ac_ct_CC=$ac_cv_prog_ac_ct_CC
5165if test -n "$ac_ct_CC"; then
5166  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5167echo "${ECHO_T}$ac_ct_CC" >&6; }
5168else
5169  { echo "$as_me:$LINENO: result: no" >&5
5170echo "${ECHO_T}no" >&6; }
5171fi
5172
5173
5174  test -n "$ac_ct_CC" && break
5175done
5176
5177  if test "x$ac_ct_CC" = x; then
5178    CC=""
5179  else
5180    case $cross_compiling:$ac_tool_warned in
5181yes:)
5182{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5183whose name does not start with the host triplet.  If you think this
5184configuration is useful to you, please write to autoconf@gnu.org." >&5
5185echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5186whose name does not start with the host triplet.  If you think this
5187configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5188ac_tool_warned=yes ;;
5189esac
5190    CC=$ac_ct_CC
5191  fi
5192fi
5193
5194
5195test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5196See \`config.log' for more details." >&5
5197echo "$as_me: error: no acceptable C compiler found in \$PATH
5198See \`config.log' for more details." >&2;}
5199   { (exit 1); exit 1; }; }
5200
5201# Provide some information about the compiler.
5202echo "$as_me:$LINENO: checking for C compiler version" >&5
5203ac_compiler=`set X $ac_compile; echo $2`
5204{ (ac_try="$ac_compiler --version >&5"
5205case "(($ac_try" in
5206  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5207  *) ac_try_echo=$ac_try;;
5208esac
5209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5210  (eval "$ac_compiler --version >&5") 2>&5
5211  ac_status=$?
5212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213  (exit $ac_status); }
5214{ (ac_try="$ac_compiler -v >&5"
5215case "(($ac_try" in
5216  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5217  *) ac_try_echo=$ac_try;;
5218esac
5219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5220  (eval "$ac_compiler -v >&5") 2>&5
5221  ac_status=$?
5222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223  (exit $ac_status); }
5224{ (ac_try="$ac_compiler -V >&5"
5225case "(($ac_try" in
5226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5227  *) ac_try_echo=$ac_try;;
5228esac
5229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5230  (eval "$ac_compiler -V >&5") 2>&5
5231  ac_status=$?
5232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233  (exit $ac_status); }
5234
5235{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5236echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5237if test "${ac_cv_c_compiler_gnu+set}" = set; then
5238  echo $ECHO_N "(cached) $ECHO_C" >&6
5239else
5240  cat >conftest.$ac_ext <<_ACEOF
5241/* confdefs.h.  */
5242_ACEOF
5243cat confdefs.h >>conftest.$ac_ext
5244cat >>conftest.$ac_ext <<_ACEOF
5245/* end confdefs.h.  */
5246
5247int
5248main ()
5249{
5250#ifndef __GNUC__
5251       choke me
5252#endif
5253
5254  ;
5255  return 0;
5256}
5257_ACEOF
5258rm -f conftest.$ac_objext
5259if { (ac_try="$ac_compile"
5260case "(($ac_try" in
5261  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5262  *) ac_try_echo=$ac_try;;
5263esac
5264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5265  (eval "$ac_compile") 2>conftest.er1
5266  ac_status=$?
5267  grep -v '^ *+' conftest.er1 >conftest.err
5268  rm -f conftest.er1
5269  cat conftest.err >&5
5270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271  (exit $ac_status); } &&
5272	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5273  { (case "(($ac_try" in
5274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5275  *) ac_try_echo=$ac_try;;
5276esac
5277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5278  (eval "$ac_try") 2>&5
5279  ac_status=$?
5280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281  (exit $ac_status); }; } &&
5282	 { ac_try='test -s conftest.$ac_objext'
5283  { (case "(($ac_try" in
5284  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5285  *) ac_try_echo=$ac_try;;
5286esac
5287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5288  (eval "$ac_try") 2>&5
5289  ac_status=$?
5290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291  (exit $ac_status); }; }; then
5292  ac_compiler_gnu=yes
5293else
5294  echo "$as_me: failed program was:" >&5
5295sed 's/^/| /' conftest.$ac_ext >&5
5296
5297	ac_compiler_gnu=no
5298fi
5299
5300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5301ac_cv_c_compiler_gnu=$ac_compiler_gnu
5302
5303fi
5304{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5305echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5306GCC=`test $ac_compiler_gnu = yes && echo yes`
5307ac_test_CFLAGS=${CFLAGS+set}
5308ac_save_CFLAGS=$CFLAGS
5309{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5310echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5311if test "${ac_cv_prog_cc_g+set}" = set; then
5312  echo $ECHO_N "(cached) $ECHO_C" >&6
5313else
5314  ac_save_c_werror_flag=$ac_c_werror_flag
5315   ac_c_werror_flag=yes
5316   ac_cv_prog_cc_g=no
5317   CFLAGS="-g"
5318   cat >conftest.$ac_ext <<_ACEOF
5319/* confdefs.h.  */
5320_ACEOF
5321cat confdefs.h >>conftest.$ac_ext
5322cat >>conftest.$ac_ext <<_ACEOF
5323/* end confdefs.h.  */
5324
5325int
5326main ()
5327{
5328
5329  ;
5330  return 0;
5331}
5332_ACEOF
5333rm -f conftest.$ac_objext
5334if { (ac_try="$ac_compile"
5335case "(($ac_try" in
5336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5337  *) ac_try_echo=$ac_try;;
5338esac
5339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5340  (eval "$ac_compile") 2>conftest.er1
5341  ac_status=$?
5342  grep -v '^ *+' conftest.er1 >conftest.err
5343  rm -f conftest.er1
5344  cat conftest.err >&5
5345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346  (exit $ac_status); } &&
5347	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5348  { (case "(($ac_try" in
5349  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350  *) ac_try_echo=$ac_try;;
5351esac
5352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353  (eval "$ac_try") 2>&5
5354  ac_status=$?
5355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356  (exit $ac_status); }; } &&
5357	 { ac_try='test -s conftest.$ac_objext'
5358  { (case "(($ac_try" in
5359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5360  *) ac_try_echo=$ac_try;;
5361esac
5362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5363  (eval "$ac_try") 2>&5
5364  ac_status=$?
5365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366  (exit $ac_status); }; }; then
5367  ac_cv_prog_cc_g=yes
5368else
5369  echo "$as_me: failed program was:" >&5
5370sed 's/^/| /' conftest.$ac_ext >&5
5371
5372	CFLAGS=""
5373      cat >conftest.$ac_ext <<_ACEOF
5374/* confdefs.h.  */
5375_ACEOF
5376cat confdefs.h >>conftest.$ac_ext
5377cat >>conftest.$ac_ext <<_ACEOF
5378/* end confdefs.h.  */
5379
5380int
5381main ()
5382{
5383
5384  ;
5385  return 0;
5386}
5387_ACEOF
5388rm -f conftest.$ac_objext
5389if { (ac_try="$ac_compile"
5390case "(($ac_try" in
5391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392  *) ac_try_echo=$ac_try;;
5393esac
5394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5395  (eval "$ac_compile") 2>conftest.er1
5396  ac_status=$?
5397  grep -v '^ *+' conftest.er1 >conftest.err
5398  rm -f conftest.er1
5399  cat conftest.err >&5
5400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401  (exit $ac_status); } &&
5402	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5403  { (case "(($ac_try" in
5404  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5405  *) ac_try_echo=$ac_try;;
5406esac
5407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5408  (eval "$ac_try") 2>&5
5409  ac_status=$?
5410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411  (exit $ac_status); }; } &&
5412	 { ac_try='test -s conftest.$ac_objext'
5413  { (case "(($ac_try" in
5414  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5415  *) ac_try_echo=$ac_try;;
5416esac
5417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5418  (eval "$ac_try") 2>&5
5419  ac_status=$?
5420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421  (exit $ac_status); }; }; then
5422  :
5423else
5424  echo "$as_me: failed program was:" >&5
5425sed 's/^/| /' conftest.$ac_ext >&5
5426
5427	ac_c_werror_flag=$ac_save_c_werror_flag
5428	 CFLAGS="-g"
5429	 cat >conftest.$ac_ext <<_ACEOF
5430/* confdefs.h.  */
5431_ACEOF
5432cat confdefs.h >>conftest.$ac_ext
5433cat >>conftest.$ac_ext <<_ACEOF
5434/* end confdefs.h.  */
5435
5436int
5437main ()
5438{
5439
5440  ;
5441  return 0;
5442}
5443_ACEOF
5444rm -f conftest.$ac_objext
5445if { (ac_try="$ac_compile"
5446case "(($ac_try" in
5447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5448  *) ac_try_echo=$ac_try;;
5449esac
5450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5451  (eval "$ac_compile") 2>conftest.er1
5452  ac_status=$?
5453  grep -v '^ *+' conftest.er1 >conftest.err
5454  rm -f conftest.er1
5455  cat conftest.err >&5
5456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457  (exit $ac_status); } &&
5458	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5459  { (case "(($ac_try" in
5460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461  *) ac_try_echo=$ac_try;;
5462esac
5463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5464  (eval "$ac_try") 2>&5
5465  ac_status=$?
5466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467  (exit $ac_status); }; } &&
5468	 { ac_try='test -s conftest.$ac_objext'
5469  { (case "(($ac_try" in
5470  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5471  *) ac_try_echo=$ac_try;;
5472esac
5473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5474  (eval "$ac_try") 2>&5
5475  ac_status=$?
5476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477  (exit $ac_status); }; }; then
5478  ac_cv_prog_cc_g=yes
5479else
5480  echo "$as_me: failed program was:" >&5
5481sed 's/^/| /' conftest.$ac_ext >&5
5482
5483
5484fi
5485
5486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5487fi
5488
5489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490fi
5491
5492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5493   ac_c_werror_flag=$ac_save_c_werror_flag
5494fi
5495{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5496echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5497if test "$ac_test_CFLAGS" = set; then
5498  CFLAGS=$ac_save_CFLAGS
5499elif test $ac_cv_prog_cc_g = yes; then
5500  if test "$GCC" = yes; then
5501    CFLAGS="-g -O2"
5502  else
5503    CFLAGS="-g"
5504  fi
5505else
5506  if test "$GCC" = yes; then
5507    CFLAGS="-O2"
5508  else
5509    CFLAGS=
5510  fi
5511fi
5512{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5513echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5514if test "${ac_cv_prog_cc_c89+set}" = set; then
5515  echo $ECHO_N "(cached) $ECHO_C" >&6
5516else
5517  ac_cv_prog_cc_c89=no
5518ac_save_CC=$CC
5519cat >conftest.$ac_ext <<_ACEOF
5520/* confdefs.h.  */
5521_ACEOF
5522cat confdefs.h >>conftest.$ac_ext
5523cat >>conftest.$ac_ext <<_ACEOF
5524/* end confdefs.h.  */
5525#include <stdarg.h>
5526#include <stdio.h>
5527#include <sys/types.h>
5528#include <sys/stat.h>
5529/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5530struct buf { int x; };
5531FILE * (*rcsopen) (struct buf *, struct stat *, int);
5532static char *e (p, i)
5533     char **p;
5534     int i;
5535{
5536  return p[i];
5537}
5538static char *f (char * (*g) (char **, int), char **p, ...)
5539{
5540  char *s;
5541  va_list v;
5542  va_start (v,p);
5543  s = g (p, va_arg (v,int));
5544  va_end (v);
5545  return s;
5546}
5547
5548/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5549   function prototypes and stuff, but not '\xHH' hex character constants.
5550   These don't provoke an error unfortunately, instead are silently treated
5551   as 'x'.  The following induces an error, until -std is added to get
5552   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5553   array size at least.  It's necessary to write '\x00'==0 to get something
5554   that's true only with -std.  */
5555int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5556
5557/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5558   inside strings and character constants.  */
5559#define FOO(x) 'x'
5560int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5561
5562int test (int i, double x);
5563struct s1 {int (*f) (int a);};
5564struct s2 {int (*f) (double a);};
5565int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5566int argc;
5567char **argv;
5568int
5569main ()
5570{
5571return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5572  ;
5573  return 0;
5574}
5575_ACEOF
5576for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5577	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5578do
5579  CC="$ac_save_CC $ac_arg"
5580  rm -f conftest.$ac_objext
5581if { (ac_try="$ac_compile"
5582case "(($ac_try" in
5583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584  *) ac_try_echo=$ac_try;;
5585esac
5586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5587  (eval "$ac_compile") 2>conftest.er1
5588  ac_status=$?
5589  grep -v '^ *+' conftest.er1 >conftest.err
5590  rm -f conftest.er1
5591  cat conftest.err >&5
5592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593  (exit $ac_status); } &&
5594	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5595  { (case "(($ac_try" in
5596  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5597  *) ac_try_echo=$ac_try;;
5598esac
5599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5600  (eval "$ac_try") 2>&5
5601  ac_status=$?
5602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603  (exit $ac_status); }; } &&
5604	 { ac_try='test -s conftest.$ac_objext'
5605  { (case "(($ac_try" in
5606  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5607  *) ac_try_echo=$ac_try;;
5608esac
5609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5610  (eval "$ac_try") 2>&5
5611  ac_status=$?
5612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613  (exit $ac_status); }; }; then
5614  ac_cv_prog_cc_c89=$ac_arg
5615else
5616  echo "$as_me: failed program was:" >&5
5617sed 's/^/| /' conftest.$ac_ext >&5
5618
5619
5620fi
5621
5622rm -f core conftest.err conftest.$ac_objext
5623  test "x$ac_cv_prog_cc_c89" != "xno" && break
5624done
5625rm -f conftest.$ac_ext
5626CC=$ac_save_CC
5627
5628fi
5629# AC_CACHE_VAL
5630case "x$ac_cv_prog_cc_c89" in
5631  x)
5632    { echo "$as_me:$LINENO: result: none needed" >&5
5633echo "${ECHO_T}none needed" >&6; } ;;
5634  xno)
5635    { echo "$as_me:$LINENO: result: unsupported" >&5
5636echo "${ECHO_T}unsupported" >&6; } ;;
5637  *)
5638    CC="$CC $ac_cv_prog_cc_c89"
5639    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5640echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5641esac
5642
5643
5644ac_ext=c
5645ac_cpp='$CPP $CPPFLAGS'
5646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5648ac_compiler_gnu=$ac_cv_c_compiler_gnu
5649
5650ac_ext=cpp
5651ac_cpp='$CXXCPP $CPPFLAGS'
5652ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5653ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5654ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5655if test -z "$CXX"; then
5656  if test -n "$CCC"; then
5657    CXX=$CCC
5658  else
5659    if test -n "$ac_tool_prefix"; then
5660  for ac_prog in g++
5661  do
5662    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5663set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5664{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5666if test "${ac_cv_prog_CXX+set}" = set; then
5667  echo $ECHO_N "(cached) $ECHO_C" >&6
5668else
5669  if test -n "$CXX"; then
5670  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5671else
5672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673for as_dir in $PATH
5674do
5675  IFS=$as_save_IFS
5676  test -z "$as_dir" && as_dir=.
5677  for ac_exec_ext in '' $ac_executable_extensions; do
5678  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5679    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5680    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5681    break 2
5682  fi
5683done
5684done
5685IFS=$as_save_IFS
5686
5687fi
5688fi
5689CXX=$ac_cv_prog_CXX
5690if test -n "$CXX"; then
5691  { echo "$as_me:$LINENO: result: $CXX" >&5
5692echo "${ECHO_T}$CXX" >&6; }
5693else
5694  { echo "$as_me:$LINENO: result: no" >&5
5695echo "${ECHO_T}no" >&6; }
5696fi
5697
5698
5699    test -n "$CXX" && break
5700  done
5701fi
5702if test -z "$CXX"; then
5703  ac_ct_CXX=$CXX
5704  for ac_prog in g++
5705do
5706  # Extract the first word of "$ac_prog", so it can be a program name with args.
5707set dummy $ac_prog; ac_word=$2
5708{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5710if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5711  echo $ECHO_N "(cached) $ECHO_C" >&6
5712else
5713  if test -n "$ac_ct_CXX"; then
5714  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5715else
5716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717for as_dir in $PATH
5718do
5719  IFS=$as_save_IFS
5720  test -z "$as_dir" && as_dir=.
5721  for ac_exec_ext in '' $ac_executable_extensions; do
5722  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5723    ac_cv_prog_ac_ct_CXX="$ac_prog"
5724    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5725    break 2
5726  fi
5727done
5728done
5729IFS=$as_save_IFS
5730
5731fi
5732fi
5733ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5734if test -n "$ac_ct_CXX"; then
5735  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5736echo "${ECHO_T}$ac_ct_CXX" >&6; }
5737else
5738  { echo "$as_me:$LINENO: result: no" >&5
5739echo "${ECHO_T}no" >&6; }
5740fi
5741
5742
5743  test -n "$ac_ct_CXX" && break
5744done
5745
5746  if test "x$ac_ct_CXX" = x; then
5747    CXX="g++"
5748  else
5749    case $cross_compiling:$ac_tool_warned in
5750yes:)
5751{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5752whose name does not start with the host triplet.  If you think this
5753configuration is useful to you, please write to autoconf@gnu.org." >&5
5754echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5755whose name does not start with the host triplet.  If you think this
5756configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5757ac_tool_warned=yes ;;
5758esac
5759    CXX=$ac_ct_CXX
5760  fi
5761fi
5762
5763  fi
5764fi
5765# Provide some information about the compiler.
5766echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5767ac_compiler=`set X $ac_compile; echo $2`
5768{ (ac_try="$ac_compiler --version >&5"
5769case "(($ac_try" in
5770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5771  *) ac_try_echo=$ac_try;;
5772esac
5773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5774  (eval "$ac_compiler --version >&5") 2>&5
5775  ac_status=$?
5776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777  (exit $ac_status); }
5778{ (ac_try="$ac_compiler -v >&5"
5779case "(($ac_try" in
5780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5781  *) ac_try_echo=$ac_try;;
5782esac
5783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5784  (eval "$ac_compiler -v >&5") 2>&5
5785  ac_status=$?
5786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787  (exit $ac_status); }
5788{ (ac_try="$ac_compiler -V >&5"
5789case "(($ac_try" in
5790  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5791  *) ac_try_echo=$ac_try;;
5792esac
5793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5794  (eval "$ac_compiler -V >&5") 2>&5
5795  ac_status=$?
5796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797  (exit $ac_status); }
5798
5799{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5800echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5801if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5802  echo $ECHO_N "(cached) $ECHO_C" >&6
5803else
5804  cat >conftest.$ac_ext <<_ACEOF
5805/* confdefs.h.  */
5806_ACEOF
5807cat confdefs.h >>conftest.$ac_ext
5808cat >>conftest.$ac_ext <<_ACEOF
5809/* end confdefs.h.  */
5810
5811int
5812main ()
5813{
5814#ifndef __GNUC__
5815       choke me
5816#endif
5817
5818  ;
5819  return 0;
5820}
5821_ACEOF
5822rm -f conftest.$ac_objext
5823if { (ac_try="$ac_compile"
5824case "(($ac_try" in
5825  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5826  *) ac_try_echo=$ac_try;;
5827esac
5828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5829  (eval "$ac_compile") 2>conftest.er1
5830  ac_status=$?
5831  grep -v '^ *+' conftest.er1 >conftest.err
5832  rm -f conftest.er1
5833  cat conftest.err >&5
5834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835  (exit $ac_status); } &&
5836	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5837  { (case "(($ac_try" in
5838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5839  *) ac_try_echo=$ac_try;;
5840esac
5841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5842  (eval "$ac_try") 2>&5
5843  ac_status=$?
5844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845  (exit $ac_status); }; } &&
5846	 { ac_try='test -s conftest.$ac_objext'
5847  { (case "(($ac_try" in
5848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5849  *) ac_try_echo=$ac_try;;
5850esac
5851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5852  (eval "$ac_try") 2>&5
5853  ac_status=$?
5854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855  (exit $ac_status); }; }; then
5856  ac_compiler_gnu=yes
5857else
5858  echo "$as_me: failed program was:" >&5
5859sed 's/^/| /' conftest.$ac_ext >&5
5860
5861	ac_compiler_gnu=no
5862fi
5863
5864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5865ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5866
5867fi
5868{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5869echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5870GXX=`test $ac_compiler_gnu = yes && echo yes`
5871ac_test_CXXFLAGS=${CXXFLAGS+set}
5872ac_save_CXXFLAGS=$CXXFLAGS
5873{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5874echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5875if test "${ac_cv_prog_cxx_g+set}" = set; then
5876  echo $ECHO_N "(cached) $ECHO_C" >&6
5877else
5878  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5879   ac_cxx_werror_flag=yes
5880   ac_cv_prog_cxx_g=no
5881   CXXFLAGS="-g"
5882   cat >conftest.$ac_ext <<_ACEOF
5883/* confdefs.h.  */
5884_ACEOF
5885cat confdefs.h >>conftest.$ac_ext
5886cat >>conftest.$ac_ext <<_ACEOF
5887/* end confdefs.h.  */
5888
5889int
5890main ()
5891{
5892
5893  ;
5894  return 0;
5895}
5896_ACEOF
5897rm -f conftest.$ac_objext
5898if { (ac_try="$ac_compile"
5899case "(($ac_try" in
5900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5901  *) ac_try_echo=$ac_try;;
5902esac
5903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5904  (eval "$ac_compile") 2>conftest.er1
5905  ac_status=$?
5906  grep -v '^ *+' conftest.er1 >conftest.err
5907  rm -f conftest.er1
5908  cat conftest.err >&5
5909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910  (exit $ac_status); } &&
5911	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5912  { (case "(($ac_try" in
5913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5914  *) ac_try_echo=$ac_try;;
5915esac
5916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5917  (eval "$ac_try") 2>&5
5918  ac_status=$?
5919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920  (exit $ac_status); }; } &&
5921	 { ac_try='test -s conftest.$ac_objext'
5922  { (case "(($ac_try" in
5923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5924  *) ac_try_echo=$ac_try;;
5925esac
5926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5927  (eval "$ac_try") 2>&5
5928  ac_status=$?
5929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930  (exit $ac_status); }; }; then
5931  ac_cv_prog_cxx_g=yes
5932else
5933  echo "$as_me: failed program was:" >&5
5934sed 's/^/| /' conftest.$ac_ext >&5
5935
5936	CXXFLAGS=""
5937      cat >conftest.$ac_ext <<_ACEOF
5938/* confdefs.h.  */
5939_ACEOF
5940cat confdefs.h >>conftest.$ac_ext
5941cat >>conftest.$ac_ext <<_ACEOF
5942/* end confdefs.h.  */
5943
5944int
5945main ()
5946{
5947
5948  ;
5949  return 0;
5950}
5951_ACEOF
5952rm -f conftest.$ac_objext
5953if { (ac_try="$ac_compile"
5954case "(($ac_try" in
5955  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5956  *) ac_try_echo=$ac_try;;
5957esac
5958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5959  (eval "$ac_compile") 2>conftest.er1
5960  ac_status=$?
5961  grep -v '^ *+' conftest.er1 >conftest.err
5962  rm -f conftest.er1
5963  cat conftest.err >&5
5964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965  (exit $ac_status); } &&
5966	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5967  { (case "(($ac_try" in
5968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5969  *) ac_try_echo=$ac_try;;
5970esac
5971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5972  (eval "$ac_try") 2>&5
5973  ac_status=$?
5974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975  (exit $ac_status); }; } &&
5976	 { ac_try='test -s conftest.$ac_objext'
5977  { (case "(($ac_try" in
5978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979  *) ac_try_echo=$ac_try;;
5980esac
5981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982  (eval "$ac_try") 2>&5
5983  ac_status=$?
5984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985  (exit $ac_status); }; }; then
5986  :
5987else
5988  echo "$as_me: failed program was:" >&5
5989sed 's/^/| /' conftest.$ac_ext >&5
5990
5991	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5992	 CXXFLAGS="-g"
5993	 cat >conftest.$ac_ext <<_ACEOF
5994/* confdefs.h.  */
5995_ACEOF
5996cat confdefs.h >>conftest.$ac_ext
5997cat >>conftest.$ac_ext <<_ACEOF
5998/* end confdefs.h.  */
5999
6000int
6001main ()
6002{
6003
6004  ;
6005  return 0;
6006}
6007_ACEOF
6008rm -f conftest.$ac_objext
6009if { (ac_try="$ac_compile"
6010case "(($ac_try" in
6011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012  *) ac_try_echo=$ac_try;;
6013esac
6014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6015  (eval "$ac_compile") 2>conftest.er1
6016  ac_status=$?
6017  grep -v '^ *+' conftest.er1 >conftest.err
6018  rm -f conftest.er1
6019  cat conftest.err >&5
6020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021  (exit $ac_status); } &&
6022	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6023  { (case "(($ac_try" in
6024  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6025  *) ac_try_echo=$ac_try;;
6026esac
6027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6028  (eval "$ac_try") 2>&5
6029  ac_status=$?
6030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031  (exit $ac_status); }; } &&
6032	 { ac_try='test -s conftest.$ac_objext'
6033  { (case "(($ac_try" in
6034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035  *) ac_try_echo=$ac_try;;
6036esac
6037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6038  (eval "$ac_try") 2>&5
6039  ac_status=$?
6040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041  (exit $ac_status); }; }; then
6042  ac_cv_prog_cxx_g=yes
6043else
6044  echo "$as_me: failed program was:" >&5
6045sed 's/^/| /' conftest.$ac_ext >&5
6046
6047
6048fi
6049
6050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6051fi
6052
6053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6054fi
6055
6056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6057   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6058fi
6059{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6060echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6061if test "$ac_test_CXXFLAGS" = set; then
6062  CXXFLAGS=$ac_save_CXXFLAGS
6063elif test $ac_cv_prog_cxx_g = yes; then
6064  if test "$GXX" = yes; then
6065    CXXFLAGS="-g -O2"
6066  else
6067    CXXFLAGS="-g"
6068  fi
6069else
6070  if test "$GXX" = yes; then
6071    CXXFLAGS="-O2"
6072  else
6073    CXXFLAGS=
6074  fi
6075fi
6076ac_ext=c
6077ac_cpp='$CPP $CPPFLAGS'
6078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6080ac_compiler_gnu=$ac_cv_c_compiler_gnu
6081
6082{ echo "$as_me:$LINENO: checking " >&5
6083echo $ECHO_N "checking ... $ECHO_C" >&6; }
6084if test "${ac_cv_has_flex+set}" = set; then
6085  echo $ECHO_N "(cached) $ECHO_C" >&6
6086else
6087  for ac_prog in flex lex
6088do
6089  # Extract the first word of "$ac_prog", so it can be a program name with args.
6090set dummy $ac_prog; ac_word=$2
6091{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6093if test "${ac_cv_prog_LEX+set}" = set; then
6094  echo $ECHO_N "(cached) $ECHO_C" >&6
6095else
6096  if test -n "$LEX"; then
6097  ac_cv_prog_LEX="$LEX" # Let the user override the test.
6098else
6099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100for as_dir in $PATH
6101do
6102  IFS=$as_save_IFS
6103  test -z "$as_dir" && as_dir=.
6104  for ac_exec_ext in '' $ac_executable_extensions; do
6105  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6106    ac_cv_prog_LEX="$ac_prog"
6107    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6108    break 2
6109  fi
6110done
6111done
6112IFS=$as_save_IFS
6113
6114fi
6115fi
6116LEX=$ac_cv_prog_LEX
6117if test -n "$LEX"; then
6118  { echo "$as_me:$LINENO: result: $LEX" >&5
6119echo "${ECHO_T}$LEX" >&6; }
6120else
6121  { echo "$as_me:$LINENO: result: no" >&5
6122echo "${ECHO_T}no" >&6; }
6123fi
6124
6125
6126  test -n "$LEX" && break
6127done
6128test -n "$LEX" || LEX=":"
6129
6130if test -z "$LEXLIB"
6131then
6132  { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6133echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6134if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6135  echo $ECHO_N "(cached) $ECHO_C" >&6
6136else
6137  ac_check_lib_save_LIBS=$LIBS
6138LIBS="-lfl  $LIBS"
6139cat >conftest.$ac_ext <<_ACEOF
6140/* confdefs.h.  */
6141_ACEOF
6142cat confdefs.h >>conftest.$ac_ext
6143cat >>conftest.$ac_ext <<_ACEOF
6144/* end confdefs.h.  */
6145
6146/* Override any GCC internal prototype to avoid an error.
6147   Use char because int might match the return type of a GCC
6148   builtin and then its argument prototype would still apply.  */
6149#ifdef __cplusplus
6150extern "C"
6151#endif
6152char yywrap ();
6153int
6154main ()
6155{
6156return yywrap ();
6157  ;
6158  return 0;
6159}
6160_ACEOF
6161rm -f conftest.$ac_objext conftest$ac_exeext
6162if { (ac_try="$ac_link"
6163case "(($ac_try" in
6164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165  *) ac_try_echo=$ac_try;;
6166esac
6167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6168  (eval "$ac_link") 2>conftest.er1
6169  ac_status=$?
6170  grep -v '^ *+' conftest.er1 >conftest.err
6171  rm -f conftest.er1
6172  cat conftest.err >&5
6173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174  (exit $ac_status); } &&
6175	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6176  { (case "(($ac_try" in
6177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6178  *) ac_try_echo=$ac_try;;
6179esac
6180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6181  (eval "$ac_try") 2>&5
6182  ac_status=$?
6183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184  (exit $ac_status); }; } &&
6185	 { ac_try='test -s conftest$ac_exeext'
6186  { (case "(($ac_try" in
6187  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6188  *) ac_try_echo=$ac_try;;
6189esac
6190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6191  (eval "$ac_try") 2>&5
6192  ac_status=$?
6193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194  (exit $ac_status); }; }; then
6195  ac_cv_lib_fl_yywrap=yes
6196else
6197  echo "$as_me: failed program was:" >&5
6198sed 's/^/| /' conftest.$ac_ext >&5
6199
6200	ac_cv_lib_fl_yywrap=no
6201fi
6202
6203rm -f core conftest.err conftest.$ac_objext \
6204      conftest$ac_exeext conftest.$ac_ext
6205LIBS=$ac_check_lib_save_LIBS
6206fi
6207{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6208echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6209if test $ac_cv_lib_fl_yywrap = yes; then
6210  LEXLIB="-lfl"
6211else
6212  { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6213echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6214if test "${ac_cv_lib_l_yywrap+set}" = set; then
6215  echo $ECHO_N "(cached) $ECHO_C" >&6
6216else
6217  ac_check_lib_save_LIBS=$LIBS
6218LIBS="-ll  $LIBS"
6219cat >conftest.$ac_ext <<_ACEOF
6220/* confdefs.h.  */
6221_ACEOF
6222cat confdefs.h >>conftest.$ac_ext
6223cat >>conftest.$ac_ext <<_ACEOF
6224/* end confdefs.h.  */
6225
6226/* Override any GCC internal prototype to avoid an error.
6227   Use char because int might match the return type of a GCC
6228   builtin and then its argument prototype would still apply.  */
6229#ifdef __cplusplus
6230extern "C"
6231#endif
6232char yywrap ();
6233int
6234main ()
6235{
6236return yywrap ();
6237  ;
6238  return 0;
6239}
6240_ACEOF
6241rm -f conftest.$ac_objext conftest$ac_exeext
6242if { (ac_try="$ac_link"
6243case "(($ac_try" in
6244  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6245  *) ac_try_echo=$ac_try;;
6246esac
6247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6248  (eval "$ac_link") 2>conftest.er1
6249  ac_status=$?
6250  grep -v '^ *+' conftest.er1 >conftest.err
6251  rm -f conftest.er1
6252  cat conftest.err >&5
6253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254  (exit $ac_status); } &&
6255	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6256  { (case "(($ac_try" in
6257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6258  *) ac_try_echo=$ac_try;;
6259esac
6260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6261  (eval "$ac_try") 2>&5
6262  ac_status=$?
6263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264  (exit $ac_status); }; } &&
6265	 { ac_try='test -s conftest$ac_exeext'
6266  { (case "(($ac_try" in
6267  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6268  *) ac_try_echo=$ac_try;;
6269esac
6270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6271  (eval "$ac_try") 2>&5
6272  ac_status=$?
6273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274  (exit $ac_status); }; }; then
6275  ac_cv_lib_l_yywrap=yes
6276else
6277  echo "$as_me: failed program was:" >&5
6278sed 's/^/| /' conftest.$ac_ext >&5
6279
6280	ac_cv_lib_l_yywrap=no
6281fi
6282
6283rm -f core conftest.err conftest.$ac_objext \
6284      conftest$ac_exeext conftest.$ac_ext
6285LIBS=$ac_check_lib_save_LIBS
6286fi
6287{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6288echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6289if test $ac_cv_lib_l_yywrap = yes; then
6290  LEXLIB="-ll"
6291fi
6292
6293fi
6294
6295fi
6296
6297if test "x$LEX" != "x:"; then
6298  { echo "$as_me:$LINENO: checking lex output file root" >&5
6299echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6300if test "${ac_cv_prog_lex_root+set}" = set; then
6301  echo $ECHO_N "(cached) $ECHO_C" >&6
6302else
6303  # The minimal lex program is just a single line: %%.  But some broken lexes
6304# (Solaris, I think it was) want two %% lines, so accommodate them.
6305cat >conftest.l <<_ACEOF
6306%%
6307%%
6308_ACEOF
6309{ (ac_try="$LEX conftest.l"
6310case "(($ac_try" in
6311  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6312  *) ac_try_echo=$ac_try;;
6313esac
6314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6315  (eval "$LEX conftest.l") 2>&5
6316  ac_status=$?
6317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318  (exit $ac_status); }
6319if test -f lex.yy.c; then
6320  ac_cv_prog_lex_root=lex.yy
6321elif test -f lexyy.c; then
6322  ac_cv_prog_lex_root=lexyy
6323else
6324  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6325echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6326   { (exit 1); exit 1; }; }
6327fi
6328fi
6329{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6330echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6331rm -f conftest.l
6332LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6333
6334{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6335echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6336if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6337  echo $ECHO_N "(cached) $ECHO_C" >&6
6338else
6339  # POSIX says lex can declare yytext either as a pointer or an array; the
6340# default is implementation-dependent. Figure out which it is, since
6341# not all implementations provide the %pointer and %array declarations.
6342ac_cv_prog_lex_yytext_pointer=no
6343echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6344ac_save_LIBS=$LIBS
6345LIBS="$LIBS $LEXLIB"
6346cat >conftest.$ac_ext <<_ACEOF
6347`cat $LEX_OUTPUT_ROOT.c`
6348_ACEOF
6349rm -f conftest.$ac_objext conftest$ac_exeext
6350if { (ac_try="$ac_link"
6351case "(($ac_try" in
6352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6353  *) ac_try_echo=$ac_try;;
6354esac
6355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6356  (eval "$ac_link") 2>conftest.er1
6357  ac_status=$?
6358  grep -v '^ *+' conftest.er1 >conftest.err
6359  rm -f conftest.er1
6360  cat conftest.err >&5
6361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362  (exit $ac_status); } &&
6363	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6364  { (case "(($ac_try" in
6365  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6366  *) ac_try_echo=$ac_try;;
6367esac
6368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6369  (eval "$ac_try") 2>&5
6370  ac_status=$?
6371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372  (exit $ac_status); }; } &&
6373	 { ac_try='test -s conftest$ac_exeext'
6374  { (case "(($ac_try" in
6375  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6376  *) ac_try_echo=$ac_try;;
6377esac
6378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6379  (eval "$ac_try") 2>&5
6380  ac_status=$?
6381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382  (exit $ac_status); }; }; then
6383  ac_cv_prog_lex_yytext_pointer=yes
6384else
6385  echo "$as_me: failed program was:" >&5
6386sed 's/^/| /' conftest.$ac_ext >&5
6387
6388
6389fi
6390
6391rm -f core conftest.err conftest.$ac_objext \
6392      conftest$ac_exeext conftest.$ac_ext
6393LIBS=$ac_save_LIBS
6394rm -f "${LEX_OUTPUT_ROOT}.c"
6395
6396fi
6397{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6398echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6399if test $ac_cv_prog_lex_yytext_pointer = yes; then
6400
6401cat >>confdefs.h <<\_ACEOF
6402#define YYTEXT_POINTER 1
6403_ACEOF
6404
6405fi
6406
6407fi
6408
6409fi
6410{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6411echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6412if test "$LEX" != "flex"; then
6413  { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6414echo "$as_me: error: flex not found but required" >&2;}
6415   { (exit 1); exit 1; }; }
6416else
6417  FLEX=flex
6418
6419fi
6420
6421{ echo "$as_me:$LINENO: checking " >&5
6422echo $ECHO_N "checking ... $ECHO_C" >&6; }
6423if test "${llvm_cv_has_bison+set}" = set; then
6424  echo $ECHO_N "(cached) $ECHO_C" >&6
6425else
6426  for ac_prog in 'bison -y' byacc
6427do
6428  # Extract the first word of "$ac_prog", so it can be a program name with args.
6429set dummy $ac_prog; ac_word=$2
6430{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6432if test "${ac_cv_prog_YACC+set}" = set; then
6433  echo $ECHO_N "(cached) $ECHO_C" >&6
6434else
6435  if test -n "$YACC"; then
6436  ac_cv_prog_YACC="$YACC" # Let the user override the test.
6437else
6438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439for as_dir in $PATH
6440do
6441  IFS=$as_save_IFS
6442  test -z "$as_dir" && as_dir=.
6443  for ac_exec_ext in '' $ac_executable_extensions; do
6444  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6445    ac_cv_prog_YACC="$ac_prog"
6446    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6447    break 2
6448  fi
6449done
6450done
6451IFS=$as_save_IFS
6452
6453fi
6454fi
6455YACC=$ac_cv_prog_YACC
6456if test -n "$YACC"; then
6457  { echo "$as_me:$LINENO: result: $YACC" >&5
6458echo "${ECHO_T}$YACC" >&6; }
6459else
6460  { echo "$as_me:$LINENO: result: no" >&5
6461echo "${ECHO_T}no" >&6; }
6462fi
6463
6464
6465  test -n "$YACC" && break
6466done
6467test -n "$YACC" || YACC="yacc"
6468
6469fi
6470{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6471echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6472if test "$YACC" != "bison -y"; then
6473
6474  { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6475echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6476else
6477  BISON=bison
6478
6479fi
6480
6481{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6482echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6483if test "${lt_cv_path_NM+set}" = set; then
6484  echo $ECHO_N "(cached) $ECHO_C" >&6
6485else
6486  if test -n "$NM"; then
6487  # Let the user override the test.
6488  lt_cv_path_NM="$NM"
6489else
6490  lt_nm_to_check="${ac_tool_prefix}nm"
6491  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6492    lt_nm_to_check="$lt_nm_to_check nm"
6493  fi
6494  for lt_tmp_nm in $lt_nm_to_check; do
6495    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6496    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6497      IFS="$lt_save_ifs"
6498      test -z "$ac_dir" && ac_dir=.
6499      tmp_nm="$ac_dir/$lt_tmp_nm"
6500      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6501	# Check to see if the nm accepts a BSD-compat flag.
6502	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6503	#   nm: unknown option "B" ignored
6504	# Tru64's nm complains that /dev/null is an invalid object file
6505	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6506	*/dev/null* | *'Invalid file or object type'*)
6507	  lt_cv_path_NM="$tmp_nm -B"
6508	  break
6509	  ;;
6510	*)
6511	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6512	  */dev/null*)
6513	    lt_cv_path_NM="$tmp_nm -p"
6514	    break
6515	    ;;
6516	  *)
6517	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6518	    continue # so that we can try to find one that supports BSD flags
6519	    ;;
6520	  esac
6521	  ;;
6522	esac
6523      fi
6524    done
6525    IFS="$lt_save_ifs"
6526  done
6527  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6528fi
6529fi
6530{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6531echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6532NM="$lt_cv_path_NM"
6533
6534
6535
6536{ echo "$as_me:$LINENO: checking for GNU make" >&5
6537echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6538if test "${llvm_cv_gnu_make_command+set}" = set; then
6539  echo $ECHO_N "(cached) $ECHO_C" >&6
6540else
6541  llvm_cv_gnu_make_command=''
6542 for a in "$MAKE" make gmake gnumake ; do
6543  if test -z "$a" ; then continue ; fi ;
6544  if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6545  then
6546   llvm_cv_gnu_make_command=$a ;
6547   break;
6548  fi
6549 done
6550fi
6551{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6552echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6553 if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6554   ifGNUmake='' ;
6555 else
6556   ifGNUmake='#' ;
6557   { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6558echo "${ECHO_T}\"Not found\"" >&6; };
6559 fi
6560
6561
6562{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6563echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6564LN_S=$as_ln_s
6565if test "$LN_S" = "ln -s"; then
6566  { echo "$as_me:$LINENO: result: yes" >&5
6567echo "${ECHO_T}yes" >&6; }
6568else
6569  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6570echo "${ECHO_T}no, using $LN_S" >&6; }
6571fi
6572
6573# Extract the first word of "cmp", so it can be a program name with args.
6574set dummy cmp; ac_word=$2
6575{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6577if test "${ac_cv_path_CMP+set}" = set; then
6578  echo $ECHO_N "(cached) $ECHO_C" >&6
6579else
6580  case $CMP in
6581  [\\/]* | ?:[\\/]*)
6582  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6583  ;;
6584  *)
6585  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586for as_dir in $PATH
6587do
6588  IFS=$as_save_IFS
6589  test -z "$as_dir" && as_dir=.
6590  for ac_exec_ext in '' $ac_executable_extensions; do
6591  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6592    ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6593    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6594    break 2
6595  fi
6596done
6597done
6598IFS=$as_save_IFS
6599
6600  test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6601  ;;
6602esac
6603fi
6604CMP=$ac_cv_path_CMP
6605if test -n "$CMP"; then
6606  { echo "$as_me:$LINENO: result: $CMP" >&5
6607echo "${ECHO_T}$CMP" >&6; }
6608else
6609  { echo "$as_me:$LINENO: result: no" >&5
6610echo "${ECHO_T}no" >&6; }
6611fi
6612
6613
6614# Extract the first word of "cp", so it can be a program name with args.
6615set dummy cp; ac_word=$2
6616{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6618if test "${ac_cv_path_CP+set}" = set; then
6619  echo $ECHO_N "(cached) $ECHO_C" >&6
6620else
6621  case $CP in
6622  [\\/]* | ?:[\\/]*)
6623  ac_cv_path_CP="$CP" # Let the user override the test with a path.
6624  ;;
6625  *)
6626  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627for as_dir in $PATH
6628do
6629  IFS=$as_save_IFS
6630  test -z "$as_dir" && as_dir=.
6631  for ac_exec_ext in '' $ac_executable_extensions; do
6632  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6633    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6634    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6635    break 2
6636  fi
6637done
6638done
6639IFS=$as_save_IFS
6640
6641  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6642  ;;
6643esac
6644fi
6645CP=$ac_cv_path_CP
6646if test -n "$CP"; then
6647  { echo "$as_me:$LINENO: result: $CP" >&5
6648echo "${ECHO_T}$CP" >&6; }
6649else
6650  { echo "$as_me:$LINENO: result: no" >&5
6651echo "${ECHO_T}no" >&6; }
6652fi
6653
6654
6655# Extract the first word of "date", so it can be a program name with args.
6656set dummy date; ac_word=$2
6657{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6659if test "${ac_cv_path_DATE+set}" = set; then
6660  echo $ECHO_N "(cached) $ECHO_C" >&6
6661else
6662  case $DATE in
6663  [\\/]* | ?:[\\/]*)
6664  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6665  ;;
6666  *)
6667  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668for as_dir in $PATH
6669do
6670  IFS=$as_save_IFS
6671  test -z "$as_dir" && as_dir=.
6672  for ac_exec_ext in '' $ac_executable_extensions; do
6673  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6674    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6675    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6676    break 2
6677  fi
6678done
6679done
6680IFS=$as_save_IFS
6681
6682  test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6683  ;;
6684esac
6685fi
6686DATE=$ac_cv_path_DATE
6687if test -n "$DATE"; then
6688  { echo "$as_me:$LINENO: result: $DATE" >&5
6689echo "${ECHO_T}$DATE" >&6; }
6690else
6691  { echo "$as_me:$LINENO: result: no" >&5
6692echo "${ECHO_T}no" >&6; }
6693fi
6694
6695
6696# Extract the first word of "find", so it can be a program name with args.
6697set dummy find; ac_word=$2
6698{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6700if test "${ac_cv_path_FIND+set}" = set; then
6701  echo $ECHO_N "(cached) $ECHO_C" >&6
6702else
6703  case $FIND in
6704  [\\/]* | ?:[\\/]*)
6705  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6706  ;;
6707  *)
6708  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709for as_dir in $PATH
6710do
6711  IFS=$as_save_IFS
6712  test -z "$as_dir" && as_dir=.
6713  for ac_exec_ext in '' $ac_executable_extensions; do
6714  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6715    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6716    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6717    break 2
6718  fi
6719done
6720done
6721IFS=$as_save_IFS
6722
6723  test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6724  ;;
6725esac
6726fi
6727FIND=$ac_cv_path_FIND
6728if test -n "$FIND"; then
6729  { echo "$as_me:$LINENO: result: $FIND" >&5
6730echo "${ECHO_T}$FIND" >&6; }
6731else
6732  { echo "$as_me:$LINENO: result: no" >&5
6733echo "${ECHO_T}no" >&6; }
6734fi
6735
6736
6737# Extract the first word of "grep", so it can be a program name with args.
6738set dummy grep; ac_word=$2
6739{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6741if test "${ac_cv_path_GREP+set}" = set; then
6742  echo $ECHO_N "(cached) $ECHO_C" >&6
6743else
6744  case $GREP in
6745  [\\/]* | ?:[\\/]*)
6746  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6747  ;;
6748  *)
6749  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750for as_dir in $PATH
6751do
6752  IFS=$as_save_IFS
6753  test -z "$as_dir" && as_dir=.
6754  for ac_exec_ext in '' $ac_executable_extensions; do
6755  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6756    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6757    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6758    break 2
6759  fi
6760done
6761done
6762IFS=$as_save_IFS
6763
6764  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6765  ;;
6766esac
6767fi
6768GREP=$ac_cv_path_GREP
6769if test -n "$GREP"; then
6770  { echo "$as_me:$LINENO: result: $GREP" >&5
6771echo "${ECHO_T}$GREP" >&6; }
6772else
6773  { echo "$as_me:$LINENO: result: no" >&5
6774echo "${ECHO_T}no" >&6; }
6775fi
6776
6777
6778# Extract the first word of "mkdir", so it can be a program name with args.
6779set dummy mkdir; ac_word=$2
6780{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6782if test "${ac_cv_path_MKDIR+set}" = set; then
6783  echo $ECHO_N "(cached) $ECHO_C" >&6
6784else
6785  case $MKDIR in
6786  [\\/]* | ?:[\\/]*)
6787  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6788  ;;
6789  *)
6790  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791for as_dir in $PATH
6792do
6793  IFS=$as_save_IFS
6794  test -z "$as_dir" && as_dir=.
6795  for ac_exec_ext in '' $ac_executable_extensions; do
6796  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6797    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6798    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6799    break 2
6800  fi
6801done
6802done
6803IFS=$as_save_IFS
6804
6805  test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6806  ;;
6807esac
6808fi
6809MKDIR=$ac_cv_path_MKDIR
6810if test -n "$MKDIR"; then
6811  { echo "$as_me:$LINENO: result: $MKDIR" >&5
6812echo "${ECHO_T}$MKDIR" >&6; }
6813else
6814  { echo "$as_me:$LINENO: result: no" >&5
6815echo "${ECHO_T}no" >&6; }
6816fi
6817
6818
6819# Extract the first word of "mv", so it can be a program name with args.
6820set dummy mv; ac_word=$2
6821{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6823if test "${ac_cv_path_MV+set}" = set; then
6824  echo $ECHO_N "(cached) $ECHO_C" >&6
6825else
6826  case $MV in
6827  [\\/]* | ?:[\\/]*)
6828  ac_cv_path_MV="$MV" # Let the user override the test with a path.
6829  ;;
6830  *)
6831  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832for as_dir in $PATH
6833do
6834  IFS=$as_save_IFS
6835  test -z "$as_dir" && as_dir=.
6836  for ac_exec_ext in '' $ac_executable_extensions; do
6837  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6838    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6839    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6840    break 2
6841  fi
6842done
6843done
6844IFS=$as_save_IFS
6845
6846  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6847  ;;
6848esac
6849fi
6850MV=$ac_cv_path_MV
6851if test -n "$MV"; then
6852  { echo "$as_me:$LINENO: result: $MV" >&5
6853echo "${ECHO_T}$MV" >&6; }
6854else
6855  { echo "$as_me:$LINENO: result: no" >&5
6856echo "${ECHO_T}no" >&6; }
6857fi
6858
6859
6860if test -n "$ac_tool_prefix"; then
6861  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6862set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6863{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6865if test "${ac_cv_prog_RANLIB+set}" = set; then
6866  echo $ECHO_N "(cached) $ECHO_C" >&6
6867else
6868  if test -n "$RANLIB"; then
6869  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6870else
6871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872for as_dir in $PATH
6873do
6874  IFS=$as_save_IFS
6875  test -z "$as_dir" && as_dir=.
6876  for ac_exec_ext in '' $ac_executable_extensions; do
6877  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6878    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6879    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6880    break 2
6881  fi
6882done
6883done
6884IFS=$as_save_IFS
6885
6886fi
6887fi
6888RANLIB=$ac_cv_prog_RANLIB
6889if test -n "$RANLIB"; then
6890  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6891echo "${ECHO_T}$RANLIB" >&6; }
6892else
6893  { echo "$as_me:$LINENO: result: no" >&5
6894echo "${ECHO_T}no" >&6; }
6895fi
6896
6897
6898fi
6899if test -z "$ac_cv_prog_RANLIB"; then
6900  ac_ct_RANLIB=$RANLIB
6901  # Extract the first word of "ranlib", so it can be a program name with args.
6902set dummy ranlib; ac_word=$2
6903{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6905if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6906  echo $ECHO_N "(cached) $ECHO_C" >&6
6907else
6908  if test -n "$ac_ct_RANLIB"; then
6909  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6910else
6911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912for as_dir in $PATH
6913do
6914  IFS=$as_save_IFS
6915  test -z "$as_dir" && as_dir=.
6916  for ac_exec_ext in '' $ac_executable_extensions; do
6917  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6918    ac_cv_prog_ac_ct_RANLIB="ranlib"
6919    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6920    break 2
6921  fi
6922done
6923done
6924IFS=$as_save_IFS
6925
6926fi
6927fi
6928ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6929if test -n "$ac_ct_RANLIB"; then
6930  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6931echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6932else
6933  { echo "$as_me:$LINENO: result: no" >&5
6934echo "${ECHO_T}no" >&6; }
6935fi
6936
6937  if test "x$ac_ct_RANLIB" = x; then
6938    RANLIB=":"
6939  else
6940    case $cross_compiling:$ac_tool_warned in
6941yes:)
6942{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6943whose name does not start with the host triplet.  If you think this
6944configuration is useful to you, please write to autoconf@gnu.org." >&5
6945echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6946whose name does not start with the host triplet.  If you think this
6947configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6948ac_tool_warned=yes ;;
6949esac
6950    RANLIB=$ac_ct_RANLIB
6951  fi
6952else
6953  RANLIB="$ac_cv_prog_RANLIB"
6954fi
6955
6956# Extract the first word of "rm", so it can be a program name with args.
6957set dummy rm; ac_word=$2
6958{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6960if test "${ac_cv_path_RM+set}" = set; then
6961  echo $ECHO_N "(cached) $ECHO_C" >&6
6962else
6963  case $RM in
6964  [\\/]* | ?:[\\/]*)
6965  ac_cv_path_RM="$RM" # Let the user override the test with a path.
6966  ;;
6967  *)
6968  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6969for as_dir in $PATH
6970do
6971  IFS=$as_save_IFS
6972  test -z "$as_dir" && as_dir=.
6973  for ac_exec_ext in '' $ac_executable_extensions; do
6974  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6975    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6976    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6977    break 2
6978  fi
6979done
6980done
6981IFS=$as_save_IFS
6982
6983  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6984  ;;
6985esac
6986fi
6987RM=$ac_cv_path_RM
6988if test -n "$RM"; then
6989  { echo "$as_me:$LINENO: result: $RM" >&5
6990echo "${ECHO_T}$RM" >&6; }
6991else
6992  { echo "$as_me:$LINENO: result: no" >&5
6993echo "${ECHO_T}no" >&6; }
6994fi
6995
6996
6997# Extract the first word of "sed", so it can be a program name with args.
6998set dummy sed; ac_word=$2
6999{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7001if test "${ac_cv_path_SED+set}" = set; then
7002  echo $ECHO_N "(cached) $ECHO_C" >&6
7003else
7004  case $SED in
7005  [\\/]* | ?:[\\/]*)
7006  ac_cv_path_SED="$SED" # Let the user override the test with a path.
7007  ;;
7008  *)
7009  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010for as_dir in $PATH
7011do
7012  IFS=$as_save_IFS
7013  test -z "$as_dir" && as_dir=.
7014  for ac_exec_ext in '' $ac_executable_extensions; do
7015  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7016    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7017    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7018    break 2
7019  fi
7020done
7021done
7022IFS=$as_save_IFS
7023
7024  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7025  ;;
7026esac
7027fi
7028SED=$ac_cv_path_SED
7029if test -n "$SED"; then
7030  { echo "$as_me:$LINENO: result: $SED" >&5
7031echo "${ECHO_T}$SED" >&6; }
7032else
7033  { echo "$as_me:$LINENO: result: no" >&5
7034echo "${ECHO_T}no" >&6; }
7035fi
7036
7037
7038# Extract the first word of "tar", so it can be a program name with args.
7039set dummy tar; ac_word=$2
7040{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7042if test "${ac_cv_path_TAR+set}" = set; then
7043  echo $ECHO_N "(cached) $ECHO_C" >&6
7044else
7045  case $TAR in
7046  [\\/]* | ?:[\\/]*)
7047  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7048  ;;
7049  *)
7050  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7051for as_dir in $PATH
7052do
7053  IFS=$as_save_IFS
7054  test -z "$as_dir" && as_dir=.
7055  for ac_exec_ext in '' $ac_executable_extensions; do
7056  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7057    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7058    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7059    break 2
7060  fi
7061done
7062done
7063IFS=$as_save_IFS
7064
7065  test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7066  ;;
7067esac
7068fi
7069TAR=$ac_cv_path_TAR
7070if test -n "$TAR"; then
7071  { echo "$as_me:$LINENO: result: $TAR" >&5
7072echo "${ECHO_T}$TAR" >&6; }
7073else
7074  { echo "$as_me:$LINENO: result: no" >&5
7075echo "${ECHO_T}no" >&6; }
7076fi
7077
7078
7079# Extract the first word of "pwd", so it can be a program name with args.
7080set dummy pwd; ac_word=$2
7081{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7083if test "${ac_cv_path_BINPWD+set}" = set; then
7084  echo $ECHO_N "(cached) $ECHO_C" >&6
7085else
7086  case $BINPWD in
7087  [\\/]* | ?:[\\/]*)
7088  ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7089  ;;
7090  *)
7091  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092for as_dir in $PATH
7093do
7094  IFS=$as_save_IFS
7095  test -z "$as_dir" && as_dir=.
7096  for ac_exec_ext in '' $ac_executable_extensions; do
7097  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7098    ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7099    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7100    break 2
7101  fi
7102done
7103done
7104IFS=$as_save_IFS
7105
7106  test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7107  ;;
7108esac
7109fi
7110BINPWD=$ac_cv_path_BINPWD
7111if test -n "$BINPWD"; then
7112  { echo "$as_me:$LINENO: result: $BINPWD" >&5
7113echo "${ECHO_T}$BINPWD" >&6; }
7114else
7115  { echo "$as_me:$LINENO: result: no" >&5
7116echo "${ECHO_T}no" >&6; }
7117fi
7118
7119
7120
7121# Extract the first word of "Graphviz", so it can be a program name with args.
7122set dummy Graphviz; ac_word=$2
7123{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7125if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7126  echo $ECHO_N "(cached) $ECHO_C" >&6
7127else
7128  case $GRAPHVIZ in
7129  [\\/]* | ?:[\\/]*)
7130  ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7131  ;;
7132  *)
7133  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134for as_dir in $PATH
7135do
7136  IFS=$as_save_IFS
7137  test -z "$as_dir" && as_dir=.
7138  for ac_exec_ext in '' $ac_executable_extensions; do
7139  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7140    ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7141    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7142    break 2
7143  fi
7144done
7145done
7146IFS=$as_save_IFS
7147
7148  test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7149  ;;
7150esac
7151fi
7152GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7153if test -n "$GRAPHVIZ"; then
7154  { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7155echo "${ECHO_T}$GRAPHVIZ" >&6; }
7156else
7157  { echo "$as_me:$LINENO: result: no" >&5
7158echo "${ECHO_T}no" >&6; }
7159fi
7160
7161
7162if test "$GRAPHVIZ" != "echo Graphviz" ; then
7163
7164cat >>confdefs.h <<\_ACEOF
7165#define HAVE_GRAPHVIZ 1
7166_ACEOF
7167
7168    if test "$llvm_cv_os_type" = "MingW" ; then
7169    GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7170  fi
7171
7172cat >>confdefs.h <<_ACEOF
7173#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7174_ACEOF
7175
7176fi
7177# Extract the first word of "dot", so it can be a program name with args.
7178set dummy dot; ac_word=$2
7179{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7181if test "${ac_cv_path_DOT+set}" = set; then
7182  echo $ECHO_N "(cached) $ECHO_C" >&6
7183else
7184  case $DOT in
7185  [\\/]* | ?:[\\/]*)
7186  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7187  ;;
7188  *)
7189  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190for as_dir in $PATH
7191do
7192  IFS=$as_save_IFS
7193  test -z "$as_dir" && as_dir=.
7194  for ac_exec_ext in '' $ac_executable_extensions; do
7195  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7196    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7197    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7198    break 2
7199  fi
7200done
7201done
7202IFS=$as_save_IFS
7203
7204  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7205  ;;
7206esac
7207fi
7208DOT=$ac_cv_path_DOT
7209if test -n "$DOT"; then
7210  { echo "$as_me:$LINENO: result: $DOT" >&5
7211echo "${ECHO_T}$DOT" >&6; }
7212else
7213  { echo "$as_me:$LINENO: result: no" >&5
7214echo "${ECHO_T}no" >&6; }
7215fi
7216
7217
7218if test "$DOT" != "echo dot" ; then
7219
7220cat >>confdefs.h <<\_ACEOF
7221#define HAVE_DOT 1
7222_ACEOF
7223
7224    if test "$llvm_cv_os_type" = "MingW" ; then
7225    DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7226  fi
7227
7228cat >>confdefs.h <<_ACEOF
7229#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7230_ACEOF
7231
7232fi
7233for ac_prog in gv gsview32
7234do
7235  # Extract the first word of "$ac_prog", so it can be a program name with args.
7236set dummy $ac_prog; ac_word=$2
7237{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7239if test "${ac_cv_path_GV+set}" = set; then
7240  echo $ECHO_N "(cached) $ECHO_C" >&6
7241else
7242  case $GV in
7243  [\\/]* | ?:[\\/]*)
7244  ac_cv_path_GV="$GV" # Let the user override the test with a path.
7245  ;;
7246  *)
7247  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248for as_dir in $PATH
7249do
7250  IFS=$as_save_IFS
7251  test -z "$as_dir" && as_dir=.
7252  for ac_exec_ext in '' $ac_executable_extensions; do
7253  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7254    ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7255    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7256    break 2
7257  fi
7258done
7259done
7260IFS=$as_save_IFS
7261
7262  ;;
7263esac
7264fi
7265GV=$ac_cv_path_GV
7266if test -n "$GV"; then
7267  { echo "$as_me:$LINENO: result: $GV" >&5
7268echo "${ECHO_T}$GV" >&6; }
7269else
7270  { echo "$as_me:$LINENO: result: no" >&5
7271echo "${ECHO_T}no" >&6; }
7272fi
7273
7274
7275  test -n "$GV" && break
7276done
7277test -n "$GV" || GV="echo gv"
7278
7279if test "$GV" != "echo gv" ; then
7280
7281cat >>confdefs.h <<\_ACEOF
7282#define HAVE_GV 1
7283_ACEOF
7284
7285    if test "$llvm_cv_os_type" = "MingW" ; then
7286    GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7287  fi
7288
7289cat >>confdefs.h <<_ACEOF
7290#define LLVM_PATH_GV "$GV${EXEEXT}"
7291_ACEOF
7292
7293fi
7294# Extract the first word of "dotty", so it can be a program name with args.
7295set dummy dotty; ac_word=$2
7296{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7298if test "${ac_cv_path_DOTTY+set}" = set; then
7299  echo $ECHO_N "(cached) $ECHO_C" >&6
7300else
7301  case $DOTTY in
7302  [\\/]* | ?:[\\/]*)
7303  ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7304  ;;
7305  *)
7306  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307for as_dir in $PATH
7308do
7309  IFS=$as_save_IFS
7310  test -z "$as_dir" && as_dir=.
7311  for ac_exec_ext in '' $ac_executable_extensions; do
7312  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7313    ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7314    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7315    break 2
7316  fi
7317done
7318done
7319IFS=$as_save_IFS
7320
7321  test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7322  ;;
7323esac
7324fi
7325DOTTY=$ac_cv_path_DOTTY
7326if test -n "$DOTTY"; then
7327  { echo "$as_me:$LINENO: result: $DOTTY" >&5
7328echo "${ECHO_T}$DOTTY" >&6; }
7329else
7330  { echo "$as_me:$LINENO: result: no" >&5
7331echo "${ECHO_T}no" >&6; }
7332fi
7333
7334
7335if test "$DOTTY" != "echo dotty" ; then
7336
7337cat >>confdefs.h <<\_ACEOF
7338#define HAVE_DOTTY 1
7339_ACEOF
7340
7341    if test "$llvm_cv_os_type" = "MingW" ; then
7342    DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7343  fi
7344
7345cat >>confdefs.h <<_ACEOF
7346#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7347_ACEOF
7348
7349fi
7350
7351
7352# Extract the first word of "perl", so it can be a program name with args.
7353set dummy perl; 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_PERL+set}" = set; then
7357  echo $ECHO_N "(cached) $ECHO_C" >&6
7358else
7359  case $PERL in
7360  [\\/]* | ?:[\\/]*)
7361  ac_cv_path_PERL="$PERL" # 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_PERL="$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_PERL" && ac_cv_path_PERL="none"
7380  ;;
7381esac
7382fi
7383PERL=$ac_cv_path_PERL
7384if test -n "$PERL"; then
7385  { echo "$as_me:$LINENO: result: $PERL" >&5
7386echo "${ECHO_T}$PERL" >&6; }
7387else
7388  { echo "$as_me:$LINENO: result: no" >&5
7389echo "${ECHO_T}no" >&6; }
7390fi
7391
7392
7393if test "$PERL" != "none"; then
7394  { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7395echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7396  if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7397    { echo "$as_me:$LINENO: result: yes" >&5
7398echo "${ECHO_T}yes" >&6; }
7399  else
7400    PERL=none
7401    { echo "$as_me:$LINENO: result: not found" >&5
7402echo "${ECHO_T}not found" >&6; }
7403  fi
7404fi
7405
7406
7407if test x"$PERL" = xnone; then
7408   HAVE_PERL=0
7409
7410   { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7411echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7412   { (exit 1); exit 1; }; }
7413else
7414   HAVE_PERL=1
7415
7416fi
7417
7418# Find a good install program.  We prefer a C program (faster),
7419# so one script is as good as another.  But avoid the broken or
7420# incompatible versions:
7421# SysV /etc/install, /usr/sbin/install
7422# SunOS /usr/etc/install
7423# IRIX /sbin/install
7424# AIX /bin/install
7425# AmigaOS /C/install, which installs bootblocks on floppy discs
7426# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7427# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7428# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7429# OS/2's system install, which has a completely different semantic
7430# ./install, which can be erroneously created by make from ./install.sh.
7431{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7432echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7433if test -z "$INSTALL"; then
7434if test "${ac_cv_path_install+set}" = set; then
7435  echo $ECHO_N "(cached) $ECHO_C" >&6
7436else
7437  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438for as_dir in $PATH
7439do
7440  IFS=$as_save_IFS
7441  test -z "$as_dir" && as_dir=.
7442  # Account for people who put trailing slashes in PATH elements.
7443case $as_dir/ in
7444  ./ | .// | /cC/* | \
7445  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7446  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7447  /usr/ucb/* ) ;;
7448  *)
7449    # OSF1 and SCO ODT 3.0 have their own names for install.
7450    # Don't use installbsd from OSF since it installs stuff as root
7451    # by default.
7452    for ac_prog in ginstall scoinst install; do
7453      for ac_exec_ext in '' $ac_executable_extensions; do
7454	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7455	  if test $ac_prog = install &&
7456	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7457	    # AIX install.  It has an incompatible calling convention.
7458	    :
7459	  elif test $ac_prog = install &&
7460	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7461	    # program-specific install script used by HP pwplus--don't use.
7462	    :
7463	  else
7464	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7465	    break 3
7466	  fi
7467	fi
7468      done
7469    done
7470    ;;
7471esac
7472done
7473IFS=$as_save_IFS
7474
7475
7476fi
7477  if test "${ac_cv_path_install+set}" = set; then
7478    INSTALL=$ac_cv_path_install
7479  else
7480    # As a last resort, use the slow shell script.  Don't cache a
7481    # value for INSTALL within a source directory, because that will
7482    # break other packages using the cache if that directory is
7483    # removed, or if the value is a relative name.
7484    INSTALL=$ac_install_sh
7485  fi
7486fi
7487{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7488echo "${ECHO_T}$INSTALL" >&6; }
7489
7490# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7491# It thinks the first close brace ends the variable substitution.
7492test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7493
7494test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7495
7496test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7497
7498
7499# Extract the first word of "bzip2", so it can be a program name with args.
7500set dummy bzip2; ac_word=$2
7501{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7503if test "${ac_cv_path_BZIP2+set}" = set; then
7504  echo $ECHO_N "(cached) $ECHO_C" >&6
7505else
7506  case $BZIP2 in
7507  [\\/]* | ?:[\\/]*)
7508  ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7509  ;;
7510  *)
7511  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512for as_dir in $PATH
7513do
7514  IFS=$as_save_IFS
7515  test -z "$as_dir" && as_dir=.
7516  for ac_exec_ext in '' $ac_executable_extensions; do
7517  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7518    ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7519    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7520    break 2
7521  fi
7522done
7523done
7524IFS=$as_save_IFS
7525
7526  test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7527  ;;
7528esac
7529fi
7530BZIP2=$ac_cv_path_BZIP2
7531if test -n "$BZIP2"; then
7532  { echo "$as_me:$LINENO: result: $BZIP2" >&5
7533echo "${ECHO_T}$BZIP2" >&6; }
7534else
7535  { echo "$as_me:$LINENO: result: no" >&5
7536echo "${ECHO_T}no" >&6; }
7537fi
7538
7539
7540# Extract the first word of "doxygen", so it can be a program name with args.
7541set dummy doxygen; ac_word=$2
7542{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7544if test "${ac_cv_path_DOXYGEN+set}" = set; then
7545  echo $ECHO_N "(cached) $ECHO_C" >&6
7546else
7547  case $DOXYGEN in
7548  [\\/]* | ?:[\\/]*)
7549  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7550  ;;
7551  *)
7552  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553for as_dir in $PATH
7554do
7555  IFS=$as_save_IFS
7556  test -z "$as_dir" && as_dir=.
7557  for ac_exec_ext in '' $ac_executable_extensions; do
7558  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7559    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7560    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7561    break 2
7562  fi
7563done
7564done
7565IFS=$as_save_IFS
7566
7567  test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7568  ;;
7569esac
7570fi
7571DOXYGEN=$ac_cv_path_DOXYGEN
7572if test -n "$DOXYGEN"; then
7573  { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7574echo "${ECHO_T}$DOXYGEN" >&6; }
7575else
7576  { echo "$as_me:$LINENO: result: no" >&5
7577echo "${ECHO_T}no" >&6; }
7578fi
7579
7580
7581# Extract the first word of "groff", so it can be a program name with args.
7582set dummy groff; 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_GROFF+set}" = set; then
7586  echo $ECHO_N "(cached) $ECHO_C" >&6
7587else
7588  case $GROFF in
7589  [\\/]* | ?:[\\/]*)
7590  ac_cv_path_GROFF="$GROFF" # 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_GROFF="$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_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7609  ;;
7610esac
7611fi
7612GROFF=$ac_cv_path_GROFF
7613if test -n "$GROFF"; then
7614  { echo "$as_me:$LINENO: result: $GROFF" >&5
7615echo "${ECHO_T}$GROFF" >&6; }
7616else
7617  { echo "$as_me:$LINENO: result: no" >&5
7618echo "${ECHO_T}no" >&6; }
7619fi
7620
7621
7622# Extract the first word of "gzip", so it can be a program name with args.
7623set dummy gzip; ac_word=$2
7624{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7626if test "${ac_cv_path_GZIP+set}" = set; then
7627  echo $ECHO_N "(cached) $ECHO_C" >&6
7628else
7629  case $GZIP in
7630  [\\/]* | ?:[\\/]*)
7631  ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7632  ;;
7633  *)
7634  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7635for as_dir in $PATH
7636do
7637  IFS=$as_save_IFS
7638  test -z "$as_dir" && as_dir=.
7639  for ac_exec_ext in '' $ac_executable_extensions; do
7640  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7641    ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7642    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7643    break 2
7644  fi
7645done
7646done
7647IFS=$as_save_IFS
7648
7649  test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7650  ;;
7651esac
7652fi
7653GZIP=$ac_cv_path_GZIP
7654if test -n "$GZIP"; then
7655  { echo "$as_me:$LINENO: result: $GZIP" >&5
7656echo "${ECHO_T}$GZIP" >&6; }
7657else
7658  { echo "$as_me:$LINENO: result: no" >&5
7659echo "${ECHO_T}no" >&6; }
7660fi
7661
7662
7663# Extract the first word of "pod2html", so it can be a program name with args.
7664set dummy pod2html; ac_word=$2
7665{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7667if test "${ac_cv_path_POD2HTML+set}" = set; then
7668  echo $ECHO_N "(cached) $ECHO_C" >&6
7669else
7670  case $POD2HTML in
7671  [\\/]* | ?:[\\/]*)
7672  ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7673  ;;
7674  *)
7675  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676for as_dir in $PATH
7677do
7678  IFS=$as_save_IFS
7679  test -z "$as_dir" && as_dir=.
7680  for ac_exec_ext in '' $ac_executable_extensions; do
7681  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7682    ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7683    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7684    break 2
7685  fi
7686done
7687done
7688IFS=$as_save_IFS
7689
7690  test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7691  ;;
7692esac
7693fi
7694POD2HTML=$ac_cv_path_POD2HTML
7695if test -n "$POD2HTML"; then
7696  { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7697echo "${ECHO_T}$POD2HTML" >&6; }
7698else
7699  { echo "$as_me:$LINENO: result: no" >&5
7700echo "${ECHO_T}no" >&6; }
7701fi
7702
7703
7704# Extract the first word of "pod2man", so it can be a program name with args.
7705set dummy pod2man; ac_word=$2
7706{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7708if test "${ac_cv_path_POD2MAN+set}" = set; then
7709  echo $ECHO_N "(cached) $ECHO_C" >&6
7710else
7711  case $POD2MAN in
7712  [\\/]* | ?:[\\/]*)
7713  ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7714  ;;
7715  *)
7716  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717for as_dir in $PATH
7718do
7719  IFS=$as_save_IFS
7720  test -z "$as_dir" && as_dir=.
7721  for ac_exec_ext in '' $ac_executable_extensions; do
7722  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7723    ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7724    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7725    break 2
7726  fi
7727done
7728done
7729IFS=$as_save_IFS
7730
7731  test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7732  ;;
7733esac
7734fi
7735POD2MAN=$ac_cv_path_POD2MAN
7736if test -n "$POD2MAN"; then
7737  { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7738echo "${ECHO_T}$POD2MAN" >&6; }
7739else
7740  { echo "$as_me:$LINENO: result: no" >&5
7741echo "${ECHO_T}no" >&6; }
7742fi
7743
7744
7745# Extract the first word of "runtest", so it can be a program name with args.
7746set dummy runtest; ac_word=$2
7747{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7749if test "${ac_cv_path_RUNTEST+set}" = set; then
7750  echo $ECHO_N "(cached) $ECHO_C" >&6
7751else
7752  case $RUNTEST in
7753  [\\/]* | ?:[\\/]*)
7754  ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7755  ;;
7756  *)
7757  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758for as_dir in $PATH
7759do
7760  IFS=$as_save_IFS
7761  test -z "$as_dir" && as_dir=.
7762  for ac_exec_ext in '' $ac_executable_extensions; do
7763  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7764    ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7765    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7766    break 2
7767  fi
7768done
7769done
7770IFS=$as_save_IFS
7771
7772  test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7773  ;;
7774esac
7775fi
7776RUNTEST=$ac_cv_path_RUNTEST
7777if test -n "$RUNTEST"; then
7778  { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7779echo "${ECHO_T}$RUNTEST" >&6; }
7780else
7781  { echo "$as_me:$LINENO: result: no" >&5
7782echo "${ECHO_T}no" >&6; }
7783fi
7784
7785
7786
7787no_itcl=true
7788{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7789echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7790
7791# Check whether --with-tclinclude was given.
7792if test "${with_tclinclude+set}" = set; then
7793  withval=$with_tclinclude; with_tclinclude=${withval}
7794else
7795  with_tclinclude=''
7796fi
7797
7798if test "${ac_cv_path_tclsh+set}" = set; then
7799  echo $ECHO_N "(cached) $ECHO_C" >&6
7800else
7801
7802if test x"${with_tclinclude}" != x ; then
7803  if test -f ${with_tclinclude}/tclsh ; then
7804    ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7805  elif test -f ${with_tclinclude}/src/tclsh ; then
7806    ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7807  else
7808    { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7809echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7810   { (exit 1); exit 1; }; }
7811  fi
7812fi
7813
7814if test x"${ac_cv_path_tclsh}" = x ; then
7815  { echo "$as_me:$LINENO: result: none" >&5
7816echo "${ECHO_T}none" >&6; }
7817  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
7818do
7819  # Extract the first word of "$ac_prog", so it can be a program name with args.
7820set dummy $ac_prog; ac_word=$2
7821{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7823if test "${ac_cv_path_TCLSH+set}" = set; then
7824  echo $ECHO_N "(cached) $ECHO_C" >&6
7825else
7826  case $TCLSH in
7827  [\\/]* | ?:[\\/]*)
7828  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7829  ;;
7830  *)
7831  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7832for as_dir in $PATH
7833do
7834  IFS=$as_save_IFS
7835  test -z "$as_dir" && as_dir=.
7836  for ac_exec_ext in '' $ac_executable_extensions; do
7837  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7838    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7839    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7840    break 2
7841  fi
7842done
7843done
7844IFS=$as_save_IFS
7845
7846  ;;
7847esac
7848fi
7849TCLSH=$ac_cv_path_TCLSH
7850if test -n "$TCLSH"; then
7851  { echo "$as_me:$LINENO: result: $TCLSH" >&5
7852echo "${ECHO_T}$TCLSH" >&6; }
7853else
7854  { echo "$as_me:$LINENO: result: no" >&5
7855echo "${ECHO_T}no" >&6; }
7856fi
7857
7858
7859  test -n "$TCLSH" && break
7860done
7861
7862  if test x"${TCLSH}" = x ; then
7863    ac_cv_path_tclsh='';
7864  else
7865    ac_cv_path_tclsh="${TCLSH}";
7866  fi
7867else
7868  { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7869echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7870  TCLSH="${ac_cv_path_tclsh}"
7871
7872fi
7873
7874fi
7875
7876# Extract the first word of "zip", so it can be a program name with args.
7877set dummy zip; ac_word=$2
7878{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7880if test "${ac_cv_path_ZIP+set}" = set; then
7881  echo $ECHO_N "(cached) $ECHO_C" >&6
7882else
7883  case $ZIP in
7884  [\\/]* | ?:[\\/]*)
7885  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7886  ;;
7887  *)
7888  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889for as_dir in $PATH
7890do
7891  IFS=$as_save_IFS
7892  test -z "$as_dir" && as_dir=.
7893  for ac_exec_ext in '' $ac_executable_extensions; do
7894  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7895    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7896    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7897    break 2
7898  fi
7899done
7900done
7901IFS=$as_save_IFS
7902
7903  test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7904  ;;
7905esac
7906fi
7907ZIP=$ac_cv_path_ZIP
7908if test -n "$ZIP"; then
7909  { echo "$as_me:$LINENO: result: $ZIP" >&5
7910echo "${ECHO_T}$ZIP" >&6; }
7911else
7912  { echo "$as_me:$LINENO: result: no" >&5
7913echo "${ECHO_T}no" >&6; }
7914fi
7915
7916
7917# Extract the first word of "ocamlc", so it can be a program name with args.
7918set dummy ocamlc; ac_word=$2
7919{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7921if test "${ac_cv_path_OCAMLC+set}" = set; then
7922  echo $ECHO_N "(cached) $ECHO_C" >&6
7923else
7924  case $OCAMLC in
7925  [\\/]* | ?:[\\/]*)
7926  ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7927  ;;
7928  *)
7929  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7930for as_dir in $PATH
7931do
7932  IFS=$as_save_IFS
7933  test -z "$as_dir" && as_dir=.
7934  for ac_exec_ext in '' $ac_executable_extensions; do
7935  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7936    ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7937    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7938    break 2
7939  fi
7940done
7941done
7942IFS=$as_save_IFS
7943
7944  test -z "$ac_cv_path_OCAMLC" && ac_cv_path_OCAMLC="echo "Skipped: ocamlc not found""
7945  ;;
7946esac
7947fi
7948OCAMLC=$ac_cv_path_OCAMLC
7949if test -n "$OCAMLC"; then
7950  { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7951echo "${ECHO_T}$OCAMLC" >&6; }
7952else
7953  { echo "$as_me:$LINENO: result: no" >&5
7954echo "${ECHO_T}no" >&6; }
7955fi
7956
7957
7958# Extract the first word of "ocamlopt", so it can be a program name with args.
7959set dummy ocamlopt; ac_word=$2
7960{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7962if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7963  echo $ECHO_N "(cached) $ECHO_C" >&6
7964else
7965  case $OCAMLOPT in
7966  [\\/]* | ?:[\\/]*)
7967  ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7968  ;;
7969  *)
7970  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7971for as_dir in $PATH
7972do
7973  IFS=$as_save_IFS
7974  test -z "$as_dir" && as_dir=.
7975  for ac_exec_ext in '' $ac_executable_extensions; do
7976  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7977    ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7978    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7979    break 2
7980  fi
7981done
7982done
7983IFS=$as_save_IFS
7984
7985  test -z "$ac_cv_path_OCAMLOPT" && ac_cv_path_OCAMLOPT="echo "Skipped: ocamlopt not found""
7986  ;;
7987esac
7988fi
7989OCAMLOPT=$ac_cv_path_OCAMLOPT
7990if test -n "$OCAMLOPT"; then
7991  { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7992echo "${ECHO_T}$OCAMLOPT" >&6; }
7993else
7994  { echo "$as_me:$LINENO: result: no" >&5
7995echo "${ECHO_T}no" >&6; }
7996fi
7997
7998
7999
8000{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8001echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8002if test "${llvm_cv_link_use_r+set}" = set; then
8003  echo $ECHO_N "(cached) $ECHO_C" >&6
8004else
8005   ac_ext=c
8006ac_cpp='$CPP $CPPFLAGS'
8007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8009ac_compiler_gnu=$ac_cv_c_compiler_gnu
8010
8011  oldcflags="$CFLAGS"
8012  CFLAGS="$CFLAGS -Wl,-R."
8013  cat >conftest.$ac_ext <<_ACEOF
8014/* confdefs.h.  */
8015_ACEOF
8016cat confdefs.h >>conftest.$ac_ext
8017cat >>conftest.$ac_ext <<_ACEOF
8018/* end confdefs.h.  */
8019
8020int
8021main ()
8022{
8023int main() { return 0; }
8024  ;
8025  return 0;
8026}
8027_ACEOF
8028rm -f conftest.$ac_objext conftest$ac_exeext
8029if { (ac_try="$ac_link"
8030case "(($ac_try" in
8031  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8032  *) ac_try_echo=$ac_try;;
8033esac
8034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8035  (eval "$ac_link") 2>conftest.er1
8036  ac_status=$?
8037  grep -v '^ *+' conftest.er1 >conftest.err
8038  rm -f conftest.er1
8039  cat conftest.err >&5
8040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041  (exit $ac_status); } &&
8042	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8043  { (case "(($ac_try" in
8044  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8045  *) ac_try_echo=$ac_try;;
8046esac
8047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8048  (eval "$ac_try") 2>&5
8049  ac_status=$?
8050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051  (exit $ac_status); }; } &&
8052	 { ac_try='test -s conftest$ac_exeext'
8053  { (case "(($ac_try" in
8054  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8055  *) ac_try_echo=$ac_try;;
8056esac
8057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8058  (eval "$ac_try") 2>&5
8059  ac_status=$?
8060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061  (exit $ac_status); }; }; then
8062  llvm_cv_link_use_r=yes
8063else
8064  echo "$as_me: failed program was:" >&5
8065sed 's/^/| /' conftest.$ac_ext >&5
8066
8067	llvm_cv_link_use_r=no
8068fi
8069
8070rm -f core conftest.err conftest.$ac_objext \
8071      conftest$ac_exeext conftest.$ac_ext
8072  CFLAGS="$oldcflags"
8073  ac_ext=c
8074ac_cpp='$CPP $CPPFLAGS'
8075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8077ac_compiler_gnu=$ac_cv_c_compiler_gnu
8078
8079
8080fi
8081{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8082echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8083if test "$llvm_cv_link_use_r" = yes ; then
8084
8085cat >>confdefs.h <<\_ACEOF
8086#define HAVE_LINK_R 1
8087_ACEOF
8088
8089  fi
8090
8091
8092
8093
8094{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8095echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8096if test "${ac_cv_c_const+set}" = set; then
8097  echo $ECHO_N "(cached) $ECHO_C" >&6
8098else
8099  cat >conftest.$ac_ext <<_ACEOF
8100/* confdefs.h.  */
8101_ACEOF
8102cat confdefs.h >>conftest.$ac_ext
8103cat >>conftest.$ac_ext <<_ACEOF
8104/* end confdefs.h.  */
8105
8106int
8107main ()
8108{
8109/* FIXME: Include the comments suggested by Paul. */
8110#ifndef __cplusplus
8111  /* Ultrix mips cc rejects this.  */
8112  typedef int charset[2];
8113  const charset x;
8114  /* SunOS 4.1.1 cc rejects this.  */
8115  char const *const *ccp;
8116  char **p;
8117  /* NEC SVR4.0.2 mips cc rejects this.  */
8118  struct point {int x, y;};
8119  static struct point const zero = {0,0};
8120  /* AIX XL C 1.02.0.0 rejects this.
8121     It does not let you subtract one const X* pointer from another in
8122     an arm of an if-expression whose if-part is not a constant
8123     expression */
8124  const char *g = "string";
8125  ccp = &g + (g ? g-g : 0);
8126  /* HPUX 7.0 cc rejects these. */
8127  ++ccp;
8128  p = (char**) ccp;
8129  ccp = (char const *const *) p;
8130  { /* SCO 3.2v4 cc rejects this.  */
8131    char *t;
8132    char const *s = 0 ? (char *) 0 : (char const *) 0;
8133
8134    *t++ = 0;
8135    if (s) return 0;
8136  }
8137  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8138    int x[] = {25, 17};
8139    const int *foo = &x[0];
8140    ++foo;
8141  }
8142  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8143    typedef const int *iptr;
8144    iptr p = 0;
8145    ++p;
8146  }
8147  { /* AIX XL C 1.02.0.0 rejects this saying
8148       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8149    struct s { int j; const int *ap[3]; };
8150    struct s *b; b->j = 5;
8151  }
8152  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8153    const int foo = 10;
8154    if (!foo) return 0;
8155  }
8156  return !x[0] && !zero.x;
8157#endif
8158
8159  ;
8160  return 0;
8161}
8162_ACEOF
8163rm -f conftest.$ac_objext
8164if { (ac_try="$ac_compile"
8165case "(($ac_try" in
8166  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8167  *) ac_try_echo=$ac_try;;
8168esac
8169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8170  (eval "$ac_compile") 2>conftest.er1
8171  ac_status=$?
8172  grep -v '^ *+' conftest.er1 >conftest.err
8173  rm -f conftest.er1
8174  cat conftest.err >&5
8175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176  (exit $ac_status); } &&
8177	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8178  { (case "(($ac_try" in
8179  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8180  *) ac_try_echo=$ac_try;;
8181esac
8182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8183  (eval "$ac_try") 2>&5
8184  ac_status=$?
8185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186  (exit $ac_status); }; } &&
8187	 { ac_try='test -s conftest.$ac_objext'
8188  { (case "(($ac_try" in
8189  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8190  *) ac_try_echo=$ac_try;;
8191esac
8192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8193  (eval "$ac_try") 2>&5
8194  ac_status=$?
8195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196  (exit $ac_status); }; }; then
8197  ac_cv_c_const=yes
8198else
8199  echo "$as_me: failed program was:" >&5
8200sed 's/^/| /' conftest.$ac_ext >&5
8201
8202	ac_cv_c_const=no
8203fi
8204
8205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8206fi
8207{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8208echo "${ECHO_T}$ac_cv_c_const" >&6; }
8209if test $ac_cv_c_const = no; then
8210
8211cat >>confdefs.h <<\_ACEOF
8212#define const
8213_ACEOF
8214
8215fi
8216
8217
8218
8219
8220
8221
8222ac_header_dirent=no
8223for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8224  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8225{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8226echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8227if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8228  echo $ECHO_N "(cached) $ECHO_C" >&6
8229else
8230  cat >conftest.$ac_ext <<_ACEOF
8231/* confdefs.h.  */
8232_ACEOF
8233cat confdefs.h >>conftest.$ac_ext
8234cat >>conftest.$ac_ext <<_ACEOF
8235/* end confdefs.h.  */
8236#include <sys/types.h>
8237#include <$ac_hdr>
8238
8239int
8240main ()
8241{
8242if ((DIR *) 0)
8243return 0;
8244  ;
8245  return 0;
8246}
8247_ACEOF
8248rm -f conftest.$ac_objext
8249if { (ac_try="$ac_compile"
8250case "(($ac_try" in
8251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8252  *) ac_try_echo=$ac_try;;
8253esac
8254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8255  (eval "$ac_compile") 2>conftest.er1
8256  ac_status=$?
8257  grep -v '^ *+' conftest.er1 >conftest.err
8258  rm -f conftest.er1
8259  cat conftest.err >&5
8260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261  (exit $ac_status); } &&
8262	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8263  { (case "(($ac_try" in
8264  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8265  *) ac_try_echo=$ac_try;;
8266esac
8267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8268  (eval "$ac_try") 2>&5
8269  ac_status=$?
8270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271  (exit $ac_status); }; } &&
8272	 { ac_try='test -s conftest.$ac_objext'
8273  { (case "(($ac_try" in
8274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8275  *) ac_try_echo=$ac_try;;
8276esac
8277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8278  (eval "$ac_try") 2>&5
8279  ac_status=$?
8280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281  (exit $ac_status); }; }; then
8282  eval "$as_ac_Header=yes"
8283else
8284  echo "$as_me: failed program was:" >&5
8285sed 's/^/| /' conftest.$ac_ext >&5
8286
8287	eval "$as_ac_Header=no"
8288fi
8289
8290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8291fi
8292ac_res=`eval echo '${'$as_ac_Header'}'`
8293	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8294echo "${ECHO_T}$ac_res" >&6; }
8295if test `eval echo '${'$as_ac_Header'}'` = yes; then
8296  cat >>confdefs.h <<_ACEOF
8297#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8298_ACEOF
8299
8300ac_header_dirent=$ac_hdr; break
8301fi
8302
8303done
8304# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8305if test $ac_header_dirent = dirent.h; then
8306  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8307echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8308if test "${ac_cv_search_opendir+set}" = set; then
8309  echo $ECHO_N "(cached) $ECHO_C" >&6
8310else
8311  ac_func_search_save_LIBS=$LIBS
8312cat >conftest.$ac_ext <<_ACEOF
8313/* confdefs.h.  */
8314_ACEOF
8315cat confdefs.h >>conftest.$ac_ext
8316cat >>conftest.$ac_ext <<_ACEOF
8317/* end confdefs.h.  */
8318
8319/* Override any GCC internal prototype to avoid an error.
8320   Use char because int might match the return type of a GCC
8321   builtin and then its argument prototype would still apply.  */
8322#ifdef __cplusplus
8323extern "C"
8324#endif
8325char opendir ();
8326int
8327main ()
8328{
8329return opendir ();
8330  ;
8331  return 0;
8332}
8333_ACEOF
8334for ac_lib in '' dir; do
8335  if test -z "$ac_lib"; then
8336    ac_res="none required"
8337  else
8338    ac_res=-l$ac_lib
8339    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8340  fi
8341  rm -f conftest.$ac_objext conftest$ac_exeext
8342if { (ac_try="$ac_link"
8343case "(($ac_try" in
8344  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8345  *) ac_try_echo=$ac_try;;
8346esac
8347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8348  (eval "$ac_link") 2>conftest.er1
8349  ac_status=$?
8350  grep -v '^ *+' conftest.er1 >conftest.err
8351  rm -f conftest.er1
8352  cat conftest.err >&5
8353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354  (exit $ac_status); } &&
8355	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8356  { (case "(($ac_try" in
8357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8358  *) ac_try_echo=$ac_try;;
8359esac
8360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8361  (eval "$ac_try") 2>&5
8362  ac_status=$?
8363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364  (exit $ac_status); }; } &&
8365	 { ac_try='test -s conftest$ac_exeext'
8366  { (case "(($ac_try" in
8367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8368  *) ac_try_echo=$ac_try;;
8369esac
8370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8371  (eval "$ac_try") 2>&5
8372  ac_status=$?
8373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374  (exit $ac_status); }; }; then
8375  ac_cv_search_opendir=$ac_res
8376else
8377  echo "$as_me: failed program was:" >&5
8378sed 's/^/| /' conftest.$ac_ext >&5
8379
8380
8381fi
8382
8383rm -f core conftest.err conftest.$ac_objext \
8384      conftest$ac_exeext
8385  if test "${ac_cv_search_opendir+set}" = set; then
8386  break
8387fi
8388done
8389if test "${ac_cv_search_opendir+set}" = set; then
8390  :
8391else
8392  ac_cv_search_opendir=no
8393fi
8394rm conftest.$ac_ext
8395LIBS=$ac_func_search_save_LIBS
8396fi
8397{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8398echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8399ac_res=$ac_cv_search_opendir
8400if test "$ac_res" != no; then
8401  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8402
8403fi
8404
8405else
8406  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8407echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8408if test "${ac_cv_search_opendir+set}" = set; then
8409  echo $ECHO_N "(cached) $ECHO_C" >&6
8410else
8411  ac_func_search_save_LIBS=$LIBS
8412cat >conftest.$ac_ext <<_ACEOF
8413/* confdefs.h.  */
8414_ACEOF
8415cat confdefs.h >>conftest.$ac_ext
8416cat >>conftest.$ac_ext <<_ACEOF
8417/* end confdefs.h.  */
8418
8419/* Override any GCC internal prototype to avoid an error.
8420   Use char because int might match the return type of a GCC
8421   builtin and then its argument prototype would still apply.  */
8422#ifdef __cplusplus
8423extern "C"
8424#endif
8425char opendir ();
8426int
8427main ()
8428{
8429return opendir ();
8430  ;
8431  return 0;
8432}
8433_ACEOF
8434for ac_lib in '' x; do
8435  if test -z "$ac_lib"; then
8436    ac_res="none required"
8437  else
8438    ac_res=-l$ac_lib
8439    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8440  fi
8441  rm -f conftest.$ac_objext conftest$ac_exeext
8442if { (ac_try="$ac_link"
8443case "(($ac_try" in
8444  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8445  *) ac_try_echo=$ac_try;;
8446esac
8447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8448  (eval "$ac_link") 2>conftest.er1
8449  ac_status=$?
8450  grep -v '^ *+' conftest.er1 >conftest.err
8451  rm -f conftest.er1
8452  cat conftest.err >&5
8453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454  (exit $ac_status); } &&
8455	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8456  { (case "(($ac_try" in
8457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458  *) ac_try_echo=$ac_try;;
8459esac
8460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8461  (eval "$ac_try") 2>&5
8462  ac_status=$?
8463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464  (exit $ac_status); }; } &&
8465	 { ac_try='test -s conftest$ac_exeext'
8466  { (case "(($ac_try" in
8467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8468  *) ac_try_echo=$ac_try;;
8469esac
8470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8471  (eval "$ac_try") 2>&5
8472  ac_status=$?
8473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474  (exit $ac_status); }; }; then
8475  ac_cv_search_opendir=$ac_res
8476else
8477  echo "$as_me: failed program was:" >&5
8478sed 's/^/| /' conftest.$ac_ext >&5
8479
8480
8481fi
8482
8483rm -f core conftest.err conftest.$ac_objext \
8484      conftest$ac_exeext
8485  if test "${ac_cv_search_opendir+set}" = set; then
8486  break
8487fi
8488done
8489if test "${ac_cv_search_opendir+set}" = set; then
8490  :
8491else
8492  ac_cv_search_opendir=no
8493fi
8494rm conftest.$ac_ext
8495LIBS=$ac_func_search_save_LIBS
8496fi
8497{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8498echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8499ac_res=$ac_cv_search_opendir
8500if test "$ac_res" != no; then
8501  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8502
8503fi
8504
8505fi
8506
8507
8508for ac_header in dlfcn.h
8509do
8510as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8511if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8512  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8513echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8514if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8515  echo $ECHO_N "(cached) $ECHO_C" >&6
8516fi
8517ac_res=`eval echo '${'$as_ac_Header'}'`
8518	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8519echo "${ECHO_T}$ac_res" >&6; }
8520else
8521  # Is the header compilable?
8522{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8523echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8524cat >conftest.$ac_ext <<_ACEOF
8525/* confdefs.h.  */
8526_ACEOF
8527cat confdefs.h >>conftest.$ac_ext
8528cat >>conftest.$ac_ext <<_ACEOF
8529/* end confdefs.h.  */
8530$ac_includes_default
8531#include <$ac_header>
8532_ACEOF
8533rm -f conftest.$ac_objext
8534if { (ac_try="$ac_compile"
8535case "(($ac_try" in
8536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8537  *) ac_try_echo=$ac_try;;
8538esac
8539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8540  (eval "$ac_compile") 2>conftest.er1
8541  ac_status=$?
8542  grep -v '^ *+' conftest.er1 >conftest.err
8543  rm -f conftest.er1
8544  cat conftest.err >&5
8545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546  (exit $ac_status); } &&
8547	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8548  { (case "(($ac_try" in
8549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8550  *) ac_try_echo=$ac_try;;
8551esac
8552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8553  (eval "$ac_try") 2>&5
8554  ac_status=$?
8555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556  (exit $ac_status); }; } &&
8557	 { ac_try='test -s conftest.$ac_objext'
8558  { (case "(($ac_try" in
8559  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8560  *) ac_try_echo=$ac_try;;
8561esac
8562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8563  (eval "$ac_try") 2>&5
8564  ac_status=$?
8565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566  (exit $ac_status); }; }; then
8567  ac_header_compiler=yes
8568else
8569  echo "$as_me: failed program was:" >&5
8570sed 's/^/| /' conftest.$ac_ext >&5
8571
8572	ac_header_compiler=no
8573fi
8574
8575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8576{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8577echo "${ECHO_T}$ac_header_compiler" >&6; }
8578
8579# Is the header present?
8580{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8581echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8582cat >conftest.$ac_ext <<_ACEOF
8583/* confdefs.h.  */
8584_ACEOF
8585cat confdefs.h >>conftest.$ac_ext
8586cat >>conftest.$ac_ext <<_ACEOF
8587/* end confdefs.h.  */
8588#include <$ac_header>
8589_ACEOF
8590if { (ac_try="$ac_cpp conftest.$ac_ext"
8591case "(($ac_try" in
8592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8593  *) ac_try_echo=$ac_try;;
8594esac
8595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8596  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8597  ac_status=$?
8598  grep -v '^ *+' conftest.er1 >conftest.err
8599  rm -f conftest.er1
8600  cat conftest.err >&5
8601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602  (exit $ac_status); } >/dev/null; then
8603  if test -s conftest.err; then
8604    ac_cpp_err=$ac_c_preproc_warn_flag
8605    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8606  else
8607    ac_cpp_err=
8608  fi
8609else
8610  ac_cpp_err=yes
8611fi
8612if test -z "$ac_cpp_err"; then
8613  ac_header_preproc=yes
8614else
8615  echo "$as_me: failed program was:" >&5
8616sed 's/^/| /' conftest.$ac_ext >&5
8617
8618  ac_header_preproc=no
8619fi
8620
8621rm -f conftest.err conftest.$ac_ext
8622{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8623echo "${ECHO_T}$ac_header_preproc" >&6; }
8624
8625# So?  What about this header?
8626case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8627  yes:no: )
8628    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8629echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8630    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8631echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8632    ac_header_preproc=yes
8633    ;;
8634  no:yes:* )
8635    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8636echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8637    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8638echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8639    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8640echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8641    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8642echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8643    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8644echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8645    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8646echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8647    ( cat <<\_ASBOX
8648## ----------------------------------- ##
8649## Report this to llvmbugs@cs.uiuc.edu ##
8650## ----------------------------------- ##
8651_ASBOX
8652     ) | sed "s/^/$as_me: WARNING:     /" >&2
8653    ;;
8654esac
8655{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8656echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8657if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8658  echo $ECHO_N "(cached) $ECHO_C" >&6
8659else
8660  eval "$as_ac_Header=\$ac_header_preproc"
8661fi
8662ac_res=`eval echo '${'$as_ac_Header'}'`
8663	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8664echo "${ECHO_T}$ac_res" >&6; }
8665
8666fi
8667if test `eval echo '${'$as_ac_Header'}'` = yes; then
8668  cat >>confdefs.h <<_ACEOF
8669#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8670_ACEOF
8671
8672fi
8673
8674done
8675
8676# Check whether --enable-ltdl-install was given.
8677if test "${enable_ltdl_install+set}" = set; then
8678  enableval=$enable_ltdl_install;
8679fi
8680
8681
8682
8683
8684if test x"${enable_ltdl_install-no}" != xno; then
8685  INSTALL_LTDL_TRUE=
8686  INSTALL_LTDL_FALSE='#'
8687else
8688  INSTALL_LTDL_TRUE='#'
8689  INSTALL_LTDL_FALSE=
8690fi
8691
8692
8693
8694if test x"${enable_ltdl_convenience-no}" != xno; then
8695  CONVENIENCE_LTDL_TRUE=
8696  CONVENIENCE_LTDL_FALSE='#'
8697else
8698  CONVENIENCE_LTDL_TRUE='#'
8699  CONVENIENCE_LTDL_FALSE=
8700fi
8701
8702
8703{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8704echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8705library_names_spec=
8706libname_spec='lib$name'
8707soname_spec=
8708shrext_cmds=".so"
8709postinstall_cmds=
8710postuninstall_cmds=
8711finish_cmds=
8712finish_eval=
8713shlibpath_var=
8714shlibpath_overrides_runpath=unknown
8715version_type=none
8716dynamic_linker="$host_os ld.so"
8717sys_lib_dlsearch_path_spec="/lib /usr/lib"
8718if test "$GCC" = yes; then
8719  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8720  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8721    # if the path contains ";" then we assume it to be the separator
8722    # otherwise default to the standard path separator (i.e. ":") - it is
8723    # assumed that no part of a normal pathname contains ";" but that should
8724    # okay in the real world where ";" in dirpaths is itself problematic.
8725    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8726  else
8727    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8728  fi
8729else
8730  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8731fi
8732need_lib_prefix=unknown
8733hardcode_into_libs=no
8734
8735# when you set need_version to no, make sure it does not cause -set_version
8736# flags to be left without arguments
8737need_version=unknown
8738
8739case $host_os in
8740aix3*)
8741  version_type=linux
8742  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8743  shlibpath_var=LIBPATH
8744
8745  # AIX 3 has no versioning support, so we append a major version to the name.
8746  soname_spec='${libname}${release}${shared_ext}$major'
8747  ;;
8748
8749aix4* | aix5*)
8750  version_type=linux
8751  need_lib_prefix=no
8752  need_version=no
8753  hardcode_into_libs=yes
8754  if test "$host_cpu" = ia64; then
8755    # AIX 5 supports IA64
8756    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8757    shlibpath_var=LD_LIBRARY_PATH
8758  else
8759    # With GCC up to 2.95.x, collect2 would create an import file
8760    # for dependence libraries.  The import file would start with
8761    # the line `#! .'.  This would cause the generated library to
8762    # depend on `.', always an invalid library.  This was fixed in
8763    # development snapshots of GCC prior to 3.0.
8764    case $host_os in
8765      aix4 | aix4.[01] | aix4.[01].*)
8766      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8767	   echo ' yes '
8768	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8769	:
8770      else
8771	can_build_shared=no
8772      fi
8773      ;;
8774    esac
8775    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8776    # soname into executable. Probably we can add versioning support to
8777    # collect2, so additional links can be useful in future.
8778    if test "$aix_use_runtimelinking" = yes; then
8779      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8780      # instead of lib<name>.a to let people know that these are not
8781      # typical AIX shared libraries.
8782      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8783    else
8784      # We preserve .a as extension for shared libraries through AIX4.2
8785      # and later when we are not doing run time linking.
8786      library_names_spec='${libname}${release}.a $libname.a'
8787      soname_spec='${libname}${release}${shared_ext}$major'
8788    fi
8789    shlibpath_var=LIBPATH
8790  fi
8791  ;;
8792
8793amigaos*)
8794  library_names_spec='$libname.ixlibrary $libname.a'
8795  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8796  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'
8797  ;;
8798
8799beos*)
8800  library_names_spec='${libname}${shared_ext}'
8801  dynamic_linker="$host_os ld.so"
8802  shlibpath_var=LIBRARY_PATH
8803  ;;
8804
8805bsdi[45]*)
8806  version_type=linux
8807  need_version=no
8808  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8809  soname_spec='${libname}${release}${shared_ext}$major'
8810  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8811  shlibpath_var=LD_LIBRARY_PATH
8812  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8813  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8814  # the default ld.so.conf also contains /usr/contrib/lib and
8815  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8816  # libtool to hard-code these into programs
8817  ;;
8818
8819cygwin* | mingw* | pw32*)
8820  version_type=windows
8821  shrext_cmds=".dll"
8822  need_version=no
8823  need_lib_prefix=no
8824
8825  case $GCC,$host_os in
8826  yes,cygwin* | yes,mingw* | yes,pw32*)
8827    library_names_spec='$libname.dll.a'
8828    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8829    postinstall_cmds='base_file=`basename \${file}`~
8830      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8831      dldir=$destdir/`dirname \$dlpath`~
8832      test -d \$dldir || mkdir -p \$dldir~
8833      $install_prog $dir/$dlname \$dldir/$dlname~
8834      chmod a+x \$dldir/$dlname'
8835    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8836      dlpath=$dir/\$dldll~
8837       $rm \$dlpath'
8838    shlibpath_overrides_runpath=yes
8839
8840    case $host_os in
8841    cygwin*)
8842      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8843      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8844      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8845      ;;
8846    mingw*)
8847      # MinGW DLLs use traditional 'lib' prefix
8848      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8849      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8850      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8851        # It is most probably a Windows format PATH printed by
8852        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8853        # path with ; separators, and with drive letters. We can handle the
8854        # drive letters (cygwin fileutils understands them), so leave them,
8855        # especially as we might pass files found there to a mingw objdump,
8856        # which wouldn't understand a cygwinified path. Ahh.
8857        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8858      else
8859        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8860      fi
8861      ;;
8862    pw32*)
8863      # pw32 DLLs use 'pw' prefix rather than 'lib'
8864      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8865      ;;
8866    esac
8867    ;;
8868
8869  *)
8870    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8871    ;;
8872  esac
8873  dynamic_linker='Win32 ld.exe'
8874  # FIXME: first we should search . and the directory the executable is in
8875  shlibpath_var=PATH
8876  ;;
8877
8878darwin* | rhapsody*)
8879  dynamic_linker="$host_os dyld"
8880  version_type=darwin
8881  need_lib_prefix=no
8882  need_version=no
8883  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8884  soname_spec='${libname}${release}${major}$shared_ext'
8885  shlibpath_overrides_runpath=yes
8886  shlibpath_var=DYLD_LIBRARY_PATH
8887  shrext_cmds='.dylib'
8888  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8889  if test "$GCC" = yes; then
8890    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"`
8891  else
8892    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8893  fi
8894  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8895  ;;
8896
8897dgux*)
8898  version_type=linux
8899  need_lib_prefix=no
8900  need_version=no
8901  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8902  soname_spec='${libname}${release}${shared_ext}$major'
8903  shlibpath_var=LD_LIBRARY_PATH
8904  ;;
8905
8906freebsd1*)
8907  dynamic_linker=no
8908  ;;
8909
8910kfreebsd*-gnu)
8911  version_type=linux
8912  need_lib_prefix=no
8913  need_version=no
8914  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8915  soname_spec='${libname}${release}${shared_ext}$major'
8916  shlibpath_var=LD_LIBRARY_PATH
8917  shlibpath_overrides_runpath=no
8918  hardcode_into_libs=yes
8919  dynamic_linker='GNU ld.so'
8920  ;;
8921
8922freebsd* | dragonfly*)
8923  # DragonFly does not have aout.  When/if they implement a new
8924  # versioning mechanism, adjust this.
8925  if test -x /usr/bin/objformat; then
8926    objformat=`/usr/bin/objformat`
8927  else
8928    case $host_os in
8929    freebsd[123]*) objformat=aout ;;
8930    *) objformat=elf ;;
8931    esac
8932  fi
8933  version_type=freebsd-$objformat
8934  case $version_type in
8935    freebsd-elf*)
8936      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8937      need_version=no
8938      need_lib_prefix=no
8939      ;;
8940    freebsd-*)
8941      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8942      need_version=yes
8943      ;;
8944  esac
8945  shlibpath_var=LD_LIBRARY_PATH
8946  case $host_os in
8947  freebsd2*)
8948    shlibpath_overrides_runpath=yes
8949    ;;
8950  freebsd3.[01]* | freebsdelf3.[01]*)
8951    shlibpath_overrides_runpath=yes
8952    hardcode_into_libs=yes
8953    ;;
8954  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8955  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8956    shlibpath_overrides_runpath=no
8957    hardcode_into_libs=yes
8958    ;;
8959  freebsd*) # from 4.6 on
8960    shlibpath_overrides_runpath=yes
8961    hardcode_into_libs=yes
8962    ;;
8963  esac
8964  ;;
8965
8966gnu*)
8967  version_type=linux
8968  need_lib_prefix=no
8969  need_version=no
8970  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8971  soname_spec='${libname}${release}${shared_ext}$major'
8972  shlibpath_var=LD_LIBRARY_PATH
8973  hardcode_into_libs=yes
8974  ;;
8975
8976hpux9* | hpux10* | hpux11*)
8977  # Give a soname corresponding to the major version so that dld.sl refuses to
8978  # link against other versions.
8979  version_type=sunos
8980  need_lib_prefix=no
8981  need_version=no
8982  case $host_cpu in
8983  ia64*)
8984    shrext_cmds='.so'
8985    hardcode_into_libs=yes
8986    dynamic_linker="$host_os dld.so"
8987    shlibpath_var=LD_LIBRARY_PATH
8988    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8989    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8990    soname_spec='${libname}${release}${shared_ext}$major'
8991    if test "X$HPUX_IA64_MODE" = X32; then
8992      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8993    else
8994      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8995    fi
8996    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8997    ;;
8998   hppa*64*)
8999     shrext_cmds='.sl'
9000     hardcode_into_libs=yes
9001     dynamic_linker="$host_os dld.sl"
9002     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9003     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9004     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9005     soname_spec='${libname}${release}${shared_ext}$major'
9006     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9007     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9008     ;;
9009   *)
9010    shrext_cmds='.sl'
9011    dynamic_linker="$host_os dld.sl"
9012    shlibpath_var=SHLIB_PATH
9013    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9014    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9015    soname_spec='${libname}${release}${shared_ext}$major'
9016    ;;
9017  esac
9018  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9019  postinstall_cmds='chmod 555 $lib'
9020  ;;
9021
9022interix3*)
9023  version_type=linux
9024  need_lib_prefix=no
9025  need_version=no
9026  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9027  soname_spec='${libname}${release}${shared_ext}$major'
9028  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9029  shlibpath_var=LD_LIBRARY_PATH
9030  shlibpath_overrides_runpath=no
9031  hardcode_into_libs=yes
9032  ;;
9033
9034irix5* | irix6* | nonstopux*)
9035  case $host_os in
9036    nonstopux*) version_type=nonstopux ;;
9037    *)
9038	if test "$lt_cv_prog_gnu_ld" = yes; then
9039		version_type=linux
9040	else
9041		version_type=irix
9042	fi ;;
9043  esac
9044  need_lib_prefix=no
9045  need_version=no
9046  soname_spec='${libname}${release}${shared_ext}$major'
9047  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9048  case $host_os in
9049  irix5* | nonstopux*)
9050    libsuff= shlibsuff=
9051    ;;
9052  *)
9053    case $LD in # libtool.m4 will add one of these switches to LD
9054    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9055      libsuff= shlibsuff= libmagic=32-bit;;
9056    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9057      libsuff=32 shlibsuff=N32 libmagic=N32;;
9058    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9059      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9060    *) libsuff= shlibsuff= libmagic=never-match;;
9061    esac
9062    ;;
9063  esac
9064  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9065  shlibpath_overrides_runpath=no
9066  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9067  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9068  hardcode_into_libs=yes
9069  ;;
9070
9071# No shared lib support for Linux oldld, aout, or coff.
9072linux*oldld* | linux*aout* | linux*coff*)
9073  dynamic_linker=no
9074  ;;
9075
9076# This must be Linux ELF.
9077linux*)
9078  version_type=linux
9079  need_lib_prefix=no
9080  need_version=no
9081  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9082  soname_spec='${libname}${release}${shared_ext}$major'
9083  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9084  shlibpath_var=LD_LIBRARY_PATH
9085  shlibpath_overrides_runpath=no
9086  # This implies no fast_install, which is unacceptable.
9087  # Some rework will be needed to allow for fast_install
9088  # before this can be enabled.
9089  hardcode_into_libs=yes
9090
9091  # Append ld.so.conf contents to the search path
9092  if test -f /etc/ld.so.conf; then
9093    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' ' '`
9094    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9095  fi
9096
9097  # We used to test for /lib/ld.so.1 and disable shared libraries on
9098  # powerpc, because MkLinux only supported shared libraries with the
9099  # GNU dynamic linker.  Since this was broken with cross compilers,
9100  # most powerpc-linux boxes support dynamic linking these days and
9101  # people can always --disable-shared, the test was removed, and we
9102  # assume the GNU/Linux dynamic linker is in use.
9103  dynamic_linker='GNU/Linux ld.so'
9104  ;;
9105
9106knetbsd*-gnu)
9107  version_type=linux
9108  need_lib_prefix=no
9109  need_version=no
9110  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9111  soname_spec='${libname}${release}${shared_ext}$major'
9112  shlibpath_var=LD_LIBRARY_PATH
9113  shlibpath_overrides_runpath=no
9114  hardcode_into_libs=yes
9115  dynamic_linker='GNU ld.so'
9116  ;;
9117
9118netbsd*)
9119  version_type=sunos
9120  need_lib_prefix=no
9121  need_version=no
9122  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9123    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9124    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9125    dynamic_linker='NetBSD (a.out) ld.so'
9126  else
9127    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9128    soname_spec='${libname}${release}${shared_ext}$major'
9129    dynamic_linker='NetBSD ld.elf_so'
9130  fi
9131  shlibpath_var=LD_LIBRARY_PATH
9132  shlibpath_overrides_runpath=yes
9133  hardcode_into_libs=yes
9134  ;;
9135
9136newsos6)
9137  version_type=linux
9138  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9139  shlibpath_var=LD_LIBRARY_PATH
9140  shlibpath_overrides_runpath=yes
9141  ;;
9142
9143nto-qnx*)
9144  version_type=linux
9145  need_lib_prefix=no
9146  need_version=no
9147  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9148  soname_spec='${libname}${release}${shared_ext}$major'
9149  shlibpath_var=LD_LIBRARY_PATH
9150  shlibpath_overrides_runpath=yes
9151  ;;
9152
9153openbsd*)
9154  version_type=sunos
9155  sys_lib_dlsearch_path_spec="/usr/lib"
9156  need_lib_prefix=no
9157  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9158  case $host_os in
9159    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9160    *)                         need_version=no  ;;
9161  esac
9162  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9163  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9164  shlibpath_var=LD_LIBRARY_PATH
9165  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9166    case $host_os in
9167      openbsd2.[89] | openbsd2.[89].*)
9168	shlibpath_overrides_runpath=no
9169	;;
9170      *)
9171	shlibpath_overrides_runpath=yes
9172	;;
9173      esac
9174  else
9175    shlibpath_overrides_runpath=yes
9176  fi
9177  ;;
9178
9179os2*)
9180  libname_spec='$name'
9181  shrext_cmds=".dll"
9182  need_lib_prefix=no
9183  library_names_spec='$libname${shared_ext} $libname.a'
9184  dynamic_linker='OS/2 ld.exe'
9185  shlibpath_var=LIBPATH
9186  ;;
9187
9188osf3* | osf4* | osf5*)
9189  version_type=osf
9190  need_lib_prefix=no
9191  need_version=no
9192  soname_spec='${libname}${release}${shared_ext}$major'
9193  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9194  shlibpath_var=LD_LIBRARY_PATH
9195  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9196  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9197  ;;
9198
9199solaris*)
9200  version_type=linux
9201  need_lib_prefix=no
9202  need_version=no
9203  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9204  soname_spec='${libname}${release}${shared_ext}$major'
9205  shlibpath_var=LD_LIBRARY_PATH
9206  shlibpath_overrides_runpath=yes
9207  hardcode_into_libs=yes
9208  # ldd complains unless libraries are executable
9209  postinstall_cmds='chmod +x $lib'
9210  ;;
9211
9212sunos4*)
9213  version_type=sunos
9214  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9215  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9216  shlibpath_var=LD_LIBRARY_PATH
9217  shlibpath_overrides_runpath=yes
9218  if test "$with_gnu_ld" = yes; then
9219    need_lib_prefix=no
9220  fi
9221  need_version=yes
9222  ;;
9223
9224sysv4 | sysv4.3*)
9225  version_type=linux
9226  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9227  soname_spec='${libname}${release}${shared_ext}$major'
9228  shlibpath_var=LD_LIBRARY_PATH
9229  case $host_vendor in
9230    sni)
9231      shlibpath_overrides_runpath=no
9232      need_lib_prefix=no
9233      export_dynamic_flag_spec='${wl}-Blargedynsym'
9234      runpath_var=LD_RUN_PATH
9235      ;;
9236    siemens)
9237      need_lib_prefix=no
9238      ;;
9239    motorola)
9240      need_lib_prefix=no
9241      need_version=no
9242      shlibpath_overrides_runpath=no
9243      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9244      ;;
9245  esac
9246  ;;
9247
9248sysv4*MP*)
9249  if test -d /usr/nec ;then
9250    version_type=linux
9251    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9252    soname_spec='$libname${shared_ext}.$major'
9253    shlibpath_var=LD_LIBRARY_PATH
9254  fi
9255  ;;
9256
9257sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9258  version_type=freebsd-elf
9259  need_lib_prefix=no
9260  need_version=no
9261  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9262  soname_spec='${libname}${release}${shared_ext}$major'
9263  shlibpath_var=LD_LIBRARY_PATH
9264  hardcode_into_libs=yes
9265  if test "$with_gnu_ld" = yes; then
9266    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9267    shlibpath_overrides_runpath=no
9268  else
9269    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9270    shlibpath_overrides_runpath=yes
9271    case $host_os in
9272      sco3.2v5*)
9273        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9274	;;
9275    esac
9276  fi
9277  sys_lib_dlsearch_path_spec='/usr/lib'
9278  ;;
9279
9280uts4*)
9281  version_type=linux
9282  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9283  soname_spec='${libname}${release}${shared_ext}$major'
9284  shlibpath_var=LD_LIBRARY_PATH
9285  ;;
9286
9287*)
9288  dynamic_linker=no
9289  ;;
9290esac
9291{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9292echo "${ECHO_T}$dynamic_linker" >&6; }
9293test "$dynamic_linker" = no && can_build_shared=no
9294
9295variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9296if test "$GCC" = yes; then
9297  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9298fi
9299
9300
9301{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9302echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9303if test "${libltdl_cv_shlibext+set}" = set; then
9304  echo $ECHO_N "(cached) $ECHO_C" >&6
9305else
9306
9307module=yes
9308eval libltdl_cv_shlibext=$shrext_cmds
9309
9310fi
9311{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9312echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9313if test -n "$libltdl_cv_shlibext"; then
9314
9315cat >>confdefs.h <<_ACEOF
9316#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9317_ACEOF
9318
9319fi
9320
9321
9322{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9323echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9324if test "${libltdl_cv_shlibpath_var+set}" = set; then
9325  echo $ECHO_N "(cached) $ECHO_C" >&6
9326else
9327  libltdl_cv_shlibpath_var="$shlibpath_var"
9328fi
9329{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9330echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9331if test -n "$libltdl_cv_shlibpath_var"; then
9332
9333cat >>confdefs.h <<_ACEOF
9334#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9335_ACEOF
9336
9337fi
9338
9339
9340{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9341echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9342if test "${libltdl_cv_sys_search_path+set}" = set; then
9343  echo $ECHO_N "(cached) $ECHO_C" >&6
9344else
9345  libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9346fi
9347{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9348echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9349if test -n "$libltdl_cv_sys_search_path"; then
9350  sys_search_path=
9351  for dir in $libltdl_cv_sys_search_path; do
9352    if test -z "$sys_search_path"; then
9353      sys_search_path="$dir"
9354    else
9355      sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9356    fi
9357  done
9358
9359cat >>confdefs.h <<_ACEOF
9360#define LTDL_SYSSEARCHPATH "$sys_search_path"
9361_ACEOF
9362
9363fi
9364
9365{ echo "$as_me:$LINENO: checking for objdir" >&5
9366echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9367if test "${libltdl_cv_objdir+set}" = set; then
9368  echo $ECHO_N "(cached) $ECHO_C" >&6
9369else
9370  libltdl_cv_objdir="$objdir"
9371  if test -n "$objdir"; then
9372    :
9373  else
9374    rm -f .libs 2>/dev/null
9375    mkdir .libs 2>/dev/null
9376    if test -d .libs; then
9377      libltdl_cv_objdir=.libs
9378    else
9379      # MS-DOS does not allow filenames that begin with a dot.
9380      libltdl_cv_objdir=_libs
9381    fi
9382  rmdir .libs 2>/dev/null
9383  fi
9384
9385fi
9386{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9387echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9388
9389cat >>confdefs.h <<_ACEOF
9390#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9391_ACEOF
9392
9393
9394
9395
9396
9397
9398# Check for command to grab the raw symbol name followed by C symbol from nm.
9399{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9400echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9401if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9402  echo $ECHO_N "(cached) $ECHO_C" >&6
9403else
9404
9405# These are sane defaults that work on at least a few old systems.
9406# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9407
9408# Character class describing NM global symbol codes.
9409symcode='[BCDEGRST]'
9410
9411# Regexp to match symbols that can be accessed directly from C.
9412sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9413
9414# Transform an extracted symbol line into a proper C declaration
9415lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9416
9417# Transform an extracted symbol line into symbol name and symbol address
9418lt_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'"
9419
9420# Define system-specific variables.
9421case $host_os in
9422aix*)
9423  symcode='[BCDT]'
9424  ;;
9425cygwin* | mingw* | pw32*)
9426  symcode='[ABCDGISTW]'
9427  ;;
9428hpux*) # Its linker distinguishes data from code symbols
9429  if test "$host_cpu" = ia64; then
9430    symcode='[ABCDEGRST]'
9431  fi
9432  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9433  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'"
9434  ;;
9435linux*)
9436  if test "$host_cpu" = ia64; then
9437    symcode='[ABCDGIRSTW]'
9438    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9439    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'"
9440  fi
9441  ;;
9442irix* | nonstopux*)
9443  symcode='[BCDEGRST]'
9444  ;;
9445osf*)
9446  symcode='[BCDEGQRST]'
9447  ;;
9448solaris*)
9449  symcode='[BDRT]'
9450  ;;
9451sco3.2v5*)
9452  symcode='[DT]'
9453  ;;
9454sysv4.2uw2*)
9455  symcode='[DT]'
9456  ;;
9457sysv5* | sco5v6* | unixware* | OpenUNIX*)
9458  symcode='[ABDT]'
9459  ;;
9460sysv4)
9461  symcode='[DFNSTU]'
9462  ;;
9463esac
9464
9465# Handle CRLF in mingw tool chain
9466opt_cr=
9467case $build_os in
9468mingw*)
9469  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9470  ;;
9471esac
9472
9473# If we're using GNU nm, then use its standard symbol codes.
9474case `$NM -V 2>&1` in
9475*GNU* | *'with BFD'*)
9476  symcode='[ABCDGIRSTW]' ;;
9477esac
9478
9479# Try without a prefix undercore, then with it.
9480for ac_symprfx in "" "_"; do
9481
9482  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9483  symxfrm="\\1 $ac_symprfx\\2 \\2"
9484
9485  # Write the raw and C identifiers.
9486  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9487
9488  # Check to see that the pipe works correctly.
9489  pipe_works=no
9490
9491  rm -f conftest*
9492  cat > conftest.$ac_ext <<EOF
9493#ifdef __cplusplus
9494extern "C" {
9495#endif
9496char nm_test_var;
9497void nm_test_func(){}
9498#ifdef __cplusplus
9499}
9500#endif
9501int main(){nm_test_var='a';nm_test_func();return(0);}
9502EOF
9503
9504  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9505  (eval $ac_compile) 2>&5
9506  ac_status=$?
9507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508  (exit $ac_status); }; then
9509    # Now try to grab the symbols.
9510    nlist=conftest.nm
9511    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9512  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9513  ac_status=$?
9514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515  (exit $ac_status); } && test -s "$nlist"; then
9516      # Try sorting and uniquifying the output.
9517      if sort "$nlist" | uniq > "$nlist"T; then
9518	mv -f "$nlist"T "$nlist"
9519      else
9520	rm -f "$nlist"T
9521      fi
9522
9523      # Make sure that we snagged all the symbols we need.
9524      if grep ' nm_test_var$' "$nlist" >/dev/null; then
9525	if grep ' nm_test_func$' "$nlist" >/dev/null; then
9526	  cat <<EOF > conftest.$ac_ext
9527#ifdef __cplusplus
9528extern "C" {
9529#endif
9530
9531EOF
9532	  # Now generate the symbol file.
9533	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9534
9535	  cat <<EOF >> conftest.$ac_ext
9536#if defined (__STDC__) && __STDC__
9537# define lt_ptr_t void *
9538#else
9539# define lt_ptr_t char *
9540# define const
9541#endif
9542
9543/* The mapping between symbol names and symbols. */
9544const struct {
9545  const char *name;
9546  lt_ptr_t address;
9547}
9548lt_preloaded_symbols[] =
9549{
9550EOF
9551	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9552	  cat <<\EOF >> conftest.$ac_ext
9553  {0, (lt_ptr_t) 0}
9554};
9555
9556#ifdef __cplusplus
9557}
9558#endif
9559EOF
9560	  # Now try linking the two files.
9561	  mv conftest.$ac_objext conftstm.$ac_objext
9562	  lt_save_LIBS="$LIBS"
9563	  lt_save_CFLAGS="$CFLAGS"
9564	  LIBS="conftstm.$ac_objext"
9565	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9566	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9567  (eval $ac_link) 2>&5
9568  ac_status=$?
9569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570  (exit $ac_status); } && test -s conftest${ac_exeext}; then
9571	    pipe_works=yes
9572	  fi
9573	  LIBS="$lt_save_LIBS"
9574	  CFLAGS="$lt_save_CFLAGS"
9575	else
9576	  echo "cannot find nm_test_func in $nlist" >&5
9577	fi
9578      else
9579	echo "cannot find nm_test_var in $nlist" >&5
9580      fi
9581    else
9582      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9583    fi
9584  else
9585    echo "$progname: failed program was:" >&5
9586    cat conftest.$ac_ext >&5
9587  fi
9588  rm -f conftest* conftst*
9589
9590  # Do not use the global_symbol_pipe unless it works.
9591  if test "$pipe_works" = yes; then
9592    break
9593  else
9594    lt_cv_sys_global_symbol_pipe=
9595  fi
9596done
9597
9598fi
9599
9600if test -z "$lt_cv_sys_global_symbol_pipe"; then
9601  lt_cv_sys_global_symbol_to_cdecl=
9602fi
9603if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9604  { echo "$as_me:$LINENO: result: failed" >&5
9605echo "${ECHO_T}failed" >&6; }
9606else
9607  { echo "$as_me:$LINENO: result: ok" >&5
9608echo "${ECHO_T}ok" >&6; }
9609fi
9610
9611
9612{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9613echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9614if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9615  echo $ECHO_N "(cached) $ECHO_C" >&6
9616else
9617  if test -n "$lt_cv_sys_global_symbol_pipe"; then
9618    libltdl_cv_preloaded_symbols=yes
9619  else
9620    libltdl_cv_preloaded_symbols=no
9621  fi
9622
9623fi
9624{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9625echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9626if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9627
9628cat >>confdefs.h <<\_ACEOF
9629#define HAVE_PRELOADED_SYMBOLS 1
9630_ACEOF
9631
9632fi
9633
9634LIBADD_DL=
9635
9636ac_ext=c
9637ac_cpp='$CPP $CPPFLAGS'
9638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9640ac_compiler_gnu=$ac_cv_c_compiler_gnu
9641
9642
9643{ echo "$as_me:$LINENO: checking for shl_load" >&5
9644echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9645if test "${ac_cv_func_shl_load+set}" = set; then
9646  echo $ECHO_N "(cached) $ECHO_C" >&6
9647else
9648  cat >conftest.$ac_ext <<_ACEOF
9649/* confdefs.h.  */
9650_ACEOF
9651cat confdefs.h >>conftest.$ac_ext
9652cat >>conftest.$ac_ext <<_ACEOF
9653/* end confdefs.h.  */
9654/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9655   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9656#define shl_load innocuous_shl_load
9657
9658/* System header to define __stub macros and hopefully few prototypes,
9659    which can conflict with char shl_load (); below.
9660    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9661    <limits.h> exists even on freestanding compilers.  */
9662
9663#ifdef __STDC__
9664# include <limits.h>
9665#else
9666# include <assert.h>
9667#endif
9668
9669#undef shl_load
9670
9671/* Override any GCC internal prototype to avoid an error.
9672   Use char because int might match the return type of a GCC
9673   builtin and then its argument prototype would still apply.  */
9674#ifdef __cplusplus
9675extern "C"
9676#endif
9677char shl_load ();
9678/* The GNU C library defines this for functions which it implements
9679    to always fail with ENOSYS.  Some functions are actually named
9680    something starting with __ and the normal name is an alias.  */
9681#if defined __stub_shl_load || defined __stub___shl_load
9682choke me
9683#endif
9684
9685int
9686main ()
9687{
9688return shl_load ();
9689  ;
9690  return 0;
9691}
9692_ACEOF
9693rm -f conftest.$ac_objext conftest$ac_exeext
9694if { (ac_try="$ac_link"
9695case "(($ac_try" in
9696  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9697  *) ac_try_echo=$ac_try;;
9698esac
9699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9700  (eval "$ac_link") 2>conftest.er1
9701  ac_status=$?
9702  grep -v '^ *+' conftest.er1 >conftest.err
9703  rm -f conftest.er1
9704  cat conftest.err >&5
9705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706  (exit $ac_status); } &&
9707	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9708  { (case "(($ac_try" in
9709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9710  *) ac_try_echo=$ac_try;;
9711esac
9712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9713  (eval "$ac_try") 2>&5
9714  ac_status=$?
9715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716  (exit $ac_status); }; } &&
9717	 { ac_try='test -s conftest$ac_exeext'
9718  { (case "(($ac_try" in
9719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9720  *) ac_try_echo=$ac_try;;
9721esac
9722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9723  (eval "$ac_try") 2>&5
9724  ac_status=$?
9725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726  (exit $ac_status); }; }; then
9727  ac_cv_func_shl_load=yes
9728else
9729  echo "$as_me: failed program was:" >&5
9730sed 's/^/| /' conftest.$ac_ext >&5
9731
9732	ac_cv_func_shl_load=no
9733fi
9734
9735rm -f core conftest.err conftest.$ac_objext \
9736      conftest$ac_exeext conftest.$ac_ext
9737fi
9738{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9739echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9740if test $ac_cv_func_shl_load = yes; then
9741
9742cat >>confdefs.h <<\_ACEOF
9743#define HAVE_SHL_LOAD 1
9744_ACEOF
9745
9746else
9747  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9748echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9749if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9750  echo $ECHO_N "(cached) $ECHO_C" >&6
9751else
9752  ac_check_lib_save_LIBS=$LIBS
9753LIBS="-ldld  $LIBS"
9754cat >conftest.$ac_ext <<_ACEOF
9755/* confdefs.h.  */
9756_ACEOF
9757cat confdefs.h >>conftest.$ac_ext
9758cat >>conftest.$ac_ext <<_ACEOF
9759/* end confdefs.h.  */
9760
9761/* Override any GCC internal prototype to avoid an error.
9762   Use char because int might match the return type of a GCC
9763   builtin and then its argument prototype would still apply.  */
9764#ifdef __cplusplus
9765extern "C"
9766#endif
9767char shl_load ();
9768int
9769main ()
9770{
9771return shl_load ();
9772  ;
9773  return 0;
9774}
9775_ACEOF
9776rm -f conftest.$ac_objext conftest$ac_exeext
9777if { (ac_try="$ac_link"
9778case "(($ac_try" in
9779  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9780  *) ac_try_echo=$ac_try;;
9781esac
9782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9783  (eval "$ac_link") 2>conftest.er1
9784  ac_status=$?
9785  grep -v '^ *+' conftest.er1 >conftest.err
9786  rm -f conftest.er1
9787  cat conftest.err >&5
9788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789  (exit $ac_status); } &&
9790	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9791  { (case "(($ac_try" in
9792  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9793  *) ac_try_echo=$ac_try;;
9794esac
9795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9796  (eval "$ac_try") 2>&5
9797  ac_status=$?
9798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799  (exit $ac_status); }; } &&
9800	 { ac_try='test -s conftest$ac_exeext'
9801  { (case "(($ac_try" in
9802  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9803  *) ac_try_echo=$ac_try;;
9804esac
9805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9806  (eval "$ac_try") 2>&5
9807  ac_status=$?
9808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809  (exit $ac_status); }; }; then
9810  ac_cv_lib_dld_shl_load=yes
9811else
9812  echo "$as_me: failed program was:" >&5
9813sed 's/^/| /' conftest.$ac_ext >&5
9814
9815	ac_cv_lib_dld_shl_load=no
9816fi
9817
9818rm -f core conftest.err conftest.$ac_objext \
9819      conftest$ac_exeext conftest.$ac_ext
9820LIBS=$ac_check_lib_save_LIBS
9821fi
9822{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9823echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9824if test $ac_cv_lib_dld_shl_load = yes; then
9825
9826cat >>confdefs.h <<\_ACEOF
9827#define HAVE_SHL_LOAD 1
9828_ACEOF
9829
9830	LIBADD_DL="$LIBADD_DL -ldld"
9831else
9832  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9833echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9834if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9835  echo $ECHO_N "(cached) $ECHO_C" >&6
9836else
9837  ac_check_lib_save_LIBS=$LIBS
9838LIBS="-ldl  $LIBS"
9839cat >conftest.$ac_ext <<_ACEOF
9840/* confdefs.h.  */
9841_ACEOF
9842cat confdefs.h >>conftest.$ac_ext
9843cat >>conftest.$ac_ext <<_ACEOF
9844/* end confdefs.h.  */
9845
9846/* Override any GCC internal prototype to avoid an error.
9847   Use char because int might match the return type of a GCC
9848   builtin and then its argument prototype would still apply.  */
9849#ifdef __cplusplus
9850extern "C"
9851#endif
9852char dlopen ();
9853int
9854main ()
9855{
9856return dlopen ();
9857  ;
9858  return 0;
9859}
9860_ACEOF
9861rm -f conftest.$ac_objext conftest$ac_exeext
9862if { (ac_try="$ac_link"
9863case "(($ac_try" in
9864  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9865  *) ac_try_echo=$ac_try;;
9866esac
9867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9868  (eval "$ac_link") 2>conftest.er1
9869  ac_status=$?
9870  grep -v '^ *+' conftest.er1 >conftest.err
9871  rm -f conftest.er1
9872  cat conftest.err >&5
9873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874  (exit $ac_status); } &&
9875	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9876  { (case "(($ac_try" in
9877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878  *) ac_try_echo=$ac_try;;
9879esac
9880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9881  (eval "$ac_try") 2>&5
9882  ac_status=$?
9883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884  (exit $ac_status); }; } &&
9885	 { ac_try='test -s conftest$ac_exeext'
9886  { (case "(($ac_try" in
9887  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9888  *) ac_try_echo=$ac_try;;
9889esac
9890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9891  (eval "$ac_try") 2>&5
9892  ac_status=$?
9893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894  (exit $ac_status); }; }; then
9895  ac_cv_lib_dl_dlopen=yes
9896else
9897  echo "$as_me: failed program was:" >&5
9898sed 's/^/| /' conftest.$ac_ext >&5
9899
9900	ac_cv_lib_dl_dlopen=no
9901fi
9902
9903rm -f core conftest.err conftest.$ac_objext \
9904      conftest$ac_exeext conftest.$ac_ext
9905LIBS=$ac_check_lib_save_LIBS
9906fi
9907{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9908echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9909if test $ac_cv_lib_dl_dlopen = yes; then
9910
9911cat >>confdefs.h <<\_ACEOF
9912#define HAVE_LIBDL 1
9913_ACEOF
9914
9915	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9916else
9917  cat >conftest.$ac_ext <<_ACEOF
9918/* confdefs.h.  */
9919_ACEOF
9920cat confdefs.h >>conftest.$ac_ext
9921cat >>conftest.$ac_ext <<_ACEOF
9922/* end confdefs.h.  */
9923#if HAVE_DLFCN_H
9924#  include <dlfcn.h>
9925#endif
9926
9927int
9928main ()
9929{
9930dlopen(0, 0);
9931  ;
9932  return 0;
9933}
9934_ACEOF
9935rm -f conftest.$ac_objext conftest$ac_exeext
9936if { (ac_try="$ac_link"
9937case "(($ac_try" in
9938  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9939  *) ac_try_echo=$ac_try;;
9940esac
9941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9942  (eval "$ac_link") 2>conftest.er1
9943  ac_status=$?
9944  grep -v '^ *+' conftest.er1 >conftest.err
9945  rm -f conftest.er1
9946  cat conftest.err >&5
9947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948  (exit $ac_status); } &&
9949	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9950  { (case "(($ac_try" in
9951  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952  *) ac_try_echo=$ac_try;;
9953esac
9954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9955  (eval "$ac_try") 2>&5
9956  ac_status=$?
9957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958  (exit $ac_status); }; } &&
9959	 { ac_try='test -s conftest$ac_exeext'
9960  { (case "(($ac_try" in
9961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9962  *) ac_try_echo=$ac_try;;
9963esac
9964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9965  (eval "$ac_try") 2>&5
9966  ac_status=$?
9967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968  (exit $ac_status); }; }; then
9969
9970cat >>confdefs.h <<\_ACEOF
9971#define HAVE_LIBDL 1
9972_ACEOF
9973 libltdl_cv_func_dlopen="yes"
9974else
9975  echo "$as_me: failed program was:" >&5
9976sed 's/^/| /' conftest.$ac_ext >&5
9977
9978	{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9979echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9980if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9981  echo $ECHO_N "(cached) $ECHO_C" >&6
9982else
9983  ac_check_lib_save_LIBS=$LIBS
9984LIBS="-lsvld  $LIBS"
9985cat >conftest.$ac_ext <<_ACEOF
9986/* confdefs.h.  */
9987_ACEOF
9988cat confdefs.h >>conftest.$ac_ext
9989cat >>conftest.$ac_ext <<_ACEOF
9990/* end confdefs.h.  */
9991
9992/* Override any GCC internal prototype to avoid an error.
9993   Use char because int might match the return type of a GCC
9994   builtin and then its argument prototype would still apply.  */
9995#ifdef __cplusplus
9996extern "C"
9997#endif
9998char dlopen ();
9999int
10000main ()
10001{
10002return dlopen ();
10003  ;
10004  return 0;
10005}
10006_ACEOF
10007rm -f conftest.$ac_objext conftest$ac_exeext
10008if { (ac_try="$ac_link"
10009case "(($ac_try" in
10010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10011  *) ac_try_echo=$ac_try;;
10012esac
10013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10014  (eval "$ac_link") 2>conftest.er1
10015  ac_status=$?
10016  grep -v '^ *+' conftest.er1 >conftest.err
10017  rm -f conftest.er1
10018  cat conftest.err >&5
10019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020  (exit $ac_status); } &&
10021	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10022  { (case "(($ac_try" in
10023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10024  *) ac_try_echo=$ac_try;;
10025esac
10026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10027  (eval "$ac_try") 2>&5
10028  ac_status=$?
10029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030  (exit $ac_status); }; } &&
10031	 { ac_try='test -s conftest$ac_exeext'
10032  { (case "(($ac_try" in
10033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10034  *) ac_try_echo=$ac_try;;
10035esac
10036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10037  (eval "$ac_try") 2>&5
10038  ac_status=$?
10039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040  (exit $ac_status); }; }; then
10041  ac_cv_lib_svld_dlopen=yes
10042else
10043  echo "$as_me: failed program was:" >&5
10044sed 's/^/| /' conftest.$ac_ext >&5
10045
10046	ac_cv_lib_svld_dlopen=no
10047fi
10048
10049rm -f core conftest.err conftest.$ac_objext \
10050      conftest$ac_exeext conftest.$ac_ext
10051LIBS=$ac_check_lib_save_LIBS
10052fi
10053{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10054echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10055if test $ac_cv_lib_svld_dlopen = yes; then
10056
10057cat >>confdefs.h <<\_ACEOF
10058#define HAVE_LIBDL 1
10059_ACEOF
10060
10061	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10062else
10063  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10064echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10065if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10066  echo $ECHO_N "(cached) $ECHO_C" >&6
10067else
10068  ac_check_lib_save_LIBS=$LIBS
10069LIBS="-ldld  $LIBS"
10070cat >conftest.$ac_ext <<_ACEOF
10071/* confdefs.h.  */
10072_ACEOF
10073cat confdefs.h >>conftest.$ac_ext
10074cat >>conftest.$ac_ext <<_ACEOF
10075/* end confdefs.h.  */
10076
10077/* Override any GCC internal prototype to avoid an error.
10078   Use char because int might match the return type of a GCC
10079   builtin and then its argument prototype would still apply.  */
10080#ifdef __cplusplus
10081extern "C"
10082#endif
10083char dld_link ();
10084int
10085main ()
10086{
10087return dld_link ();
10088  ;
10089  return 0;
10090}
10091_ACEOF
10092rm -f conftest.$ac_objext conftest$ac_exeext
10093if { (ac_try="$ac_link"
10094case "(($ac_try" in
10095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10096  *) ac_try_echo=$ac_try;;
10097esac
10098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10099  (eval "$ac_link") 2>conftest.er1
10100  ac_status=$?
10101  grep -v '^ *+' conftest.er1 >conftest.err
10102  rm -f conftest.er1
10103  cat conftest.err >&5
10104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105  (exit $ac_status); } &&
10106	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10107  { (case "(($ac_try" in
10108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10109  *) ac_try_echo=$ac_try;;
10110esac
10111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10112  (eval "$ac_try") 2>&5
10113  ac_status=$?
10114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115  (exit $ac_status); }; } &&
10116	 { ac_try='test -s conftest$ac_exeext'
10117  { (case "(($ac_try" in
10118  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10119  *) ac_try_echo=$ac_try;;
10120esac
10121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10122  (eval "$ac_try") 2>&5
10123  ac_status=$?
10124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125  (exit $ac_status); }; }; then
10126  ac_cv_lib_dld_dld_link=yes
10127else
10128  echo "$as_me: failed program was:" >&5
10129sed 's/^/| /' conftest.$ac_ext >&5
10130
10131	ac_cv_lib_dld_dld_link=no
10132fi
10133
10134rm -f core conftest.err conftest.$ac_objext \
10135      conftest$ac_exeext conftest.$ac_ext
10136LIBS=$ac_check_lib_save_LIBS
10137fi
10138{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10139echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10140if test $ac_cv_lib_dld_dld_link = yes; then
10141
10142cat >>confdefs.h <<\_ACEOF
10143#define HAVE_DLD 1
10144_ACEOF
10145
10146	 	LIBADD_DL="$LIBADD_DL -ldld"
10147else
10148  { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10149echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10150if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10151  echo $ECHO_N "(cached) $ECHO_C" >&6
10152else
10153  cat >conftest.$ac_ext <<_ACEOF
10154/* confdefs.h.  */
10155_ACEOF
10156cat confdefs.h >>conftest.$ac_ext
10157cat >>conftest.$ac_ext <<_ACEOF
10158/* end confdefs.h.  */
10159/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10160   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10161#define _dyld_func_lookup innocuous__dyld_func_lookup
10162
10163/* System header to define __stub macros and hopefully few prototypes,
10164    which can conflict with char _dyld_func_lookup (); below.
10165    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10166    <limits.h> exists even on freestanding compilers.  */
10167
10168#ifdef __STDC__
10169# include <limits.h>
10170#else
10171# include <assert.h>
10172#endif
10173
10174#undef _dyld_func_lookup
10175
10176/* Override any GCC internal prototype to avoid an error.
10177   Use char because int might match the return type of a GCC
10178   builtin and then its argument prototype would still apply.  */
10179#ifdef __cplusplus
10180extern "C"
10181#endif
10182char _dyld_func_lookup ();
10183/* The GNU C library defines this for functions which it implements
10184    to always fail with ENOSYS.  Some functions are actually named
10185    something starting with __ and the normal name is an alias.  */
10186#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10187choke me
10188#endif
10189
10190int
10191main ()
10192{
10193return _dyld_func_lookup ();
10194  ;
10195  return 0;
10196}
10197_ACEOF
10198rm -f conftest.$ac_objext conftest$ac_exeext
10199if { (ac_try="$ac_link"
10200case "(($ac_try" in
10201  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10202  *) ac_try_echo=$ac_try;;
10203esac
10204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10205  (eval "$ac_link") 2>conftest.er1
10206  ac_status=$?
10207  grep -v '^ *+' conftest.er1 >conftest.err
10208  rm -f conftest.er1
10209  cat conftest.err >&5
10210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211  (exit $ac_status); } &&
10212	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10213  { (case "(($ac_try" in
10214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215  *) ac_try_echo=$ac_try;;
10216esac
10217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10218  (eval "$ac_try") 2>&5
10219  ac_status=$?
10220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221  (exit $ac_status); }; } &&
10222	 { ac_try='test -s conftest$ac_exeext'
10223  { (case "(($ac_try" in
10224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10225  *) ac_try_echo=$ac_try;;
10226esac
10227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10228  (eval "$ac_try") 2>&5
10229  ac_status=$?
10230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231  (exit $ac_status); }; }; then
10232  ac_cv_func__dyld_func_lookup=yes
10233else
10234  echo "$as_me: failed program was:" >&5
10235sed 's/^/| /' conftest.$ac_ext >&5
10236
10237	ac_cv_func__dyld_func_lookup=no
10238fi
10239
10240rm -f core conftest.err conftest.$ac_objext \
10241      conftest$ac_exeext conftest.$ac_ext
10242fi
10243{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10244echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10245if test $ac_cv_func__dyld_func_lookup = yes; then
10246
10247cat >>confdefs.h <<\_ACEOF
10248#define HAVE_DYLD 1
10249_ACEOF
10250
10251fi
10252
10253
10254fi
10255
10256
10257fi
10258
10259
10260fi
10261
10262rm -f core conftest.err conftest.$ac_objext \
10263      conftest$ac_exeext conftest.$ac_ext
10264
10265fi
10266
10267
10268fi
10269
10270
10271fi
10272
10273
10274if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10275then
10276  lt_save_LIBS="$LIBS"
10277  LIBS="$LIBS $LIBADD_DL"
10278
10279for ac_func in dlerror
10280do
10281as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10282{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10283echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10284if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10285  echo $ECHO_N "(cached) $ECHO_C" >&6
10286else
10287  cat >conftest.$ac_ext <<_ACEOF
10288/* confdefs.h.  */
10289_ACEOF
10290cat confdefs.h >>conftest.$ac_ext
10291cat >>conftest.$ac_ext <<_ACEOF
10292/* end confdefs.h.  */
10293/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10294   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10295#define $ac_func innocuous_$ac_func
10296
10297/* System header to define __stub macros and hopefully few prototypes,
10298    which can conflict with char $ac_func (); below.
10299    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10300    <limits.h> exists even on freestanding compilers.  */
10301
10302#ifdef __STDC__
10303# include <limits.h>
10304#else
10305# include <assert.h>
10306#endif
10307
10308#undef $ac_func
10309
10310/* Override any GCC internal prototype to avoid an error.
10311   Use char because int might match the return type of a GCC
10312   builtin and then its argument prototype would still apply.  */
10313#ifdef __cplusplus
10314extern "C"
10315#endif
10316char $ac_func ();
10317/* The GNU C library defines this for functions which it implements
10318    to always fail with ENOSYS.  Some functions are actually named
10319    something starting with __ and the normal name is an alias.  */
10320#if defined __stub_$ac_func || defined __stub___$ac_func
10321choke me
10322#endif
10323
10324int
10325main ()
10326{
10327return $ac_func ();
10328  ;
10329  return 0;
10330}
10331_ACEOF
10332rm -f conftest.$ac_objext conftest$ac_exeext
10333if { (ac_try="$ac_link"
10334case "(($ac_try" in
10335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10336  *) ac_try_echo=$ac_try;;
10337esac
10338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10339  (eval "$ac_link") 2>conftest.er1
10340  ac_status=$?
10341  grep -v '^ *+' conftest.er1 >conftest.err
10342  rm -f conftest.er1
10343  cat conftest.err >&5
10344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345  (exit $ac_status); } &&
10346	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10347  { (case "(($ac_try" in
10348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10349  *) ac_try_echo=$ac_try;;
10350esac
10351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10352  (eval "$ac_try") 2>&5
10353  ac_status=$?
10354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355  (exit $ac_status); }; } &&
10356	 { ac_try='test -s conftest$ac_exeext'
10357  { (case "(($ac_try" in
10358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10359  *) ac_try_echo=$ac_try;;
10360esac
10361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10362  (eval "$ac_try") 2>&5
10363  ac_status=$?
10364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365  (exit $ac_status); }; }; then
10366  eval "$as_ac_var=yes"
10367else
10368  echo "$as_me: failed program was:" >&5
10369sed 's/^/| /' conftest.$ac_ext >&5
10370
10371	eval "$as_ac_var=no"
10372fi
10373
10374rm -f core conftest.err conftest.$ac_objext \
10375      conftest$ac_exeext conftest.$ac_ext
10376fi
10377ac_res=`eval echo '${'$as_ac_var'}'`
10378	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10379echo "${ECHO_T}$ac_res" >&6; }
10380if test `eval echo '${'$as_ac_var'}'` = yes; then
10381  cat >>confdefs.h <<_ACEOF
10382#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10383_ACEOF
10384
10385fi
10386done
10387
10388  LIBS="$lt_save_LIBS"
10389fi
10390ac_ext=c
10391ac_cpp='$CPP $CPPFLAGS'
10392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10394ac_compiler_gnu=$ac_cv_c_compiler_gnu
10395
10396
10397
10398{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10399echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10400if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10401  echo $ECHO_N "(cached) $ECHO_C" >&6
10402else
10403  ac_cv_sys_symbol_underscore=no
10404  cat > conftest.$ac_ext <<EOF
10405void nm_test_func(){}
10406int main(){nm_test_func;return 0;}
10407EOF
10408  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10409  (eval $ac_compile) 2>&5
10410  ac_status=$?
10411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412  (exit $ac_status); }; then
10413    # Now try to grab the symbols.
10414    ac_nlist=conftest.nm
10415    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10416  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10417  ac_status=$?
10418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419  (exit $ac_status); } && test -s "$ac_nlist"; then
10420      # See whether the symbols have a leading underscore.
10421      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10422        ac_cv_sys_symbol_underscore=yes
10423      else
10424        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10425	  :
10426        else
10427	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10428        fi
10429      fi
10430    else
10431      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10432    fi
10433  else
10434    echo "configure: failed program was:" >&5
10435    cat conftest.c >&5
10436  fi
10437  rm -rf conftest*
10438
10439fi
10440{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10441echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10442
10443
10444if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10445  if test x"$libltdl_cv_func_dlopen" = xyes ||
10446     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10447	{ echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10448echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10449if test "${libltdl_cv_need_uscore+set}" = set; then
10450  echo $ECHO_N "(cached) $ECHO_C" >&6
10451else
10452  libltdl_cv_need_uscore=unknown
10453          save_LIBS="$LIBS"
10454          LIBS="$LIBS $LIBADD_DL"
10455	  if test "$cross_compiling" = yes; then :
10456  libltdl_cv_need_uscore=cross
10457else
10458  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10459  lt_status=$lt_dlunknown
10460  cat > conftest.$ac_ext <<EOF
10461#line 10461 "configure"
10462#include "confdefs.h"
10463
10464#if HAVE_DLFCN_H
10465#include <dlfcn.h>
10466#endif
10467
10468#include <stdio.h>
10469
10470#ifdef RTLD_GLOBAL
10471#  define LT_DLGLOBAL		RTLD_GLOBAL
10472#else
10473#  ifdef DL_GLOBAL
10474#    define LT_DLGLOBAL		DL_GLOBAL
10475#  else
10476#    define LT_DLGLOBAL		0
10477#  endif
10478#endif
10479
10480/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10481   find out it does not work in some platform. */
10482#ifndef LT_DLLAZY_OR_NOW
10483#  ifdef RTLD_LAZY
10484#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10485#  else
10486#    ifdef DL_LAZY
10487#      define LT_DLLAZY_OR_NOW		DL_LAZY
10488#    else
10489#      ifdef RTLD_NOW
10490#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10491#      else
10492#        ifdef DL_NOW
10493#          define LT_DLLAZY_OR_NOW	DL_NOW
10494#        else
10495#          define LT_DLLAZY_OR_NOW	0
10496#        endif
10497#      endif
10498#    endif
10499#  endif
10500#endif
10501
10502#ifdef __cplusplus
10503extern "C" void exit (int);
10504#endif
10505
10506void fnord() { int i=42;}
10507int main ()
10508{
10509  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10510  int status = $lt_dlunknown;
10511
10512  if (self)
10513    {
10514      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10515      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10516      /* dlclose (self); */
10517    }
10518  else
10519    puts (dlerror ());
10520
10521    exit (status);
10522}
10523EOF
10524  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10525  (eval $ac_link) 2>&5
10526  ac_status=$?
10527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10529    (./conftest; exit; ) >&5 2>/dev/null
10530    lt_status=$?
10531    case x$lt_status in
10532      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10533      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10534      x$lt_dlunknown|x*)  ;;
10535    esac
10536  else :
10537    # compilation failed
10538
10539  fi
10540fi
10541rm -fr conftest*
10542
10543	  LIBS="$save_LIBS"
10544
10545fi
10546{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10547echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10548  fi
10549fi
10550
10551if test x"$libltdl_cv_need_uscore" = xyes; then
10552
10553cat >>confdefs.h <<\_ACEOF
10554#define NEED_USCORE 1
10555_ACEOF
10556
10557fi
10558
10559
10560{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10561echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10562if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10563  echo $ECHO_N "(cached) $ECHO_C" >&6
10564else
10565  # PORTME does your system automatically load deplibs for dlopen?
10566  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10567  # For now, we just catch OSes we know something about -- in the
10568  # future, we'll try test this programmatically.
10569  libltdl_cv_sys_dlopen_deplibs=unknown
10570  case "$host_os" in
10571  aix3*|aix4.1.*|aix4.2.*)
10572    # Unknown whether this is true for these versions of AIX, but
10573    # we want this `case' here to explicitly catch those versions.
10574    libltdl_cv_sys_dlopen_deplibs=unknown
10575    ;;
10576  aix[45]*)
10577    libltdl_cv_sys_dlopen_deplibs=yes
10578    ;;
10579  darwin*)
10580    # Assuming the user has installed a libdl from somewhere, this is true
10581    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10582    libltdl_cv_sys_dlopen_deplibs=yes
10583    ;;
10584  gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10585    # GNU and its variants, using gnu ld.so (Glibc)
10586    libltdl_cv_sys_dlopen_deplibs=yes
10587    ;;
10588  hpux10*|hpux11*)
10589    libltdl_cv_sys_dlopen_deplibs=yes
10590    ;;
10591  interix*)
10592    libltdl_cv_sys_dlopen_deplibs=yes
10593    ;;
10594  irix[12345]*|irix6.[01]*)
10595    # Catch all versions of IRIX before 6.2, and indicate that we don't
10596    # know how it worked for any of those versions.
10597    libltdl_cv_sys_dlopen_deplibs=unknown
10598    ;;
10599  irix*)
10600    # The case above catches anything before 6.2, and it's known that
10601    # at 6.2 and later dlopen does load deplibs.
10602    libltdl_cv_sys_dlopen_deplibs=yes
10603    ;;
10604  netbsd*)
10605    libltdl_cv_sys_dlopen_deplibs=yes
10606    ;;
10607  openbsd*)
10608    libltdl_cv_sys_dlopen_deplibs=yes
10609    ;;
10610  osf[1234]*)
10611    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10612    # it did *not* use an RPATH in a shared library to find objects the
10613    # library depends on, so we explictly say `no'.
10614    libltdl_cv_sys_dlopen_deplibs=no
10615    ;;
10616  osf5.0|osf5.0a|osf5.1)
10617    # dlopen *does* load deplibs and with the right loader patch applied
10618    # it even uses RPATH in a shared library to search for shared objects
10619    # that the library depends on, but there's no easy way to know if that
10620    # patch is installed.  Since this is the case, all we can really
10621    # say is unknown -- it depends on the patch being installed.  If
10622    # it is, this changes to `yes'.  Without it, it would be `no'.
10623    libltdl_cv_sys_dlopen_deplibs=unknown
10624    ;;
10625  osf*)
10626    # the two cases above should catch all versions of osf <= 5.1.  Read
10627    # the comments above for what we know about them.
10628    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10629    # is used to find them so we can finally say `yes'.
10630    libltdl_cv_sys_dlopen_deplibs=yes
10631    ;;
10632  solaris*)
10633    libltdl_cv_sys_dlopen_deplibs=yes
10634    ;;
10635  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10636    libltdl_cv_sys_dlopen_deplibs=yes
10637    ;;
10638  esac
10639
10640fi
10641{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10642echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10643if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10644
10645cat >>confdefs.h <<\_ACEOF
10646#define LTDL_DLOPEN_DEPLIBS 1
10647_ACEOF
10648
10649fi
10650
10651
10652for ac_header in argz.h
10653do
10654as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10655if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10656  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10658if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10659  echo $ECHO_N "(cached) $ECHO_C" >&6
10660fi
10661ac_res=`eval echo '${'$as_ac_Header'}'`
10662	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10663echo "${ECHO_T}$ac_res" >&6; }
10664else
10665  # Is the header compilable?
10666{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10667echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10668cat >conftest.$ac_ext <<_ACEOF
10669/* confdefs.h.  */
10670_ACEOF
10671cat confdefs.h >>conftest.$ac_ext
10672cat >>conftest.$ac_ext <<_ACEOF
10673/* end confdefs.h.  */
10674$ac_includes_default
10675#include <$ac_header>
10676_ACEOF
10677rm -f conftest.$ac_objext
10678if { (ac_try="$ac_compile"
10679case "(($ac_try" in
10680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10681  *) ac_try_echo=$ac_try;;
10682esac
10683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10684  (eval "$ac_compile") 2>conftest.er1
10685  ac_status=$?
10686  grep -v '^ *+' conftest.er1 >conftest.err
10687  rm -f conftest.er1
10688  cat conftest.err >&5
10689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690  (exit $ac_status); } &&
10691	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10692  { (case "(($ac_try" in
10693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10694  *) ac_try_echo=$ac_try;;
10695esac
10696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10697  (eval "$ac_try") 2>&5
10698  ac_status=$?
10699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700  (exit $ac_status); }; } &&
10701	 { ac_try='test -s conftest.$ac_objext'
10702  { (case "(($ac_try" in
10703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10704  *) ac_try_echo=$ac_try;;
10705esac
10706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10707  (eval "$ac_try") 2>&5
10708  ac_status=$?
10709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710  (exit $ac_status); }; }; then
10711  ac_header_compiler=yes
10712else
10713  echo "$as_me: failed program was:" >&5
10714sed 's/^/| /' conftest.$ac_ext >&5
10715
10716	ac_header_compiler=no
10717fi
10718
10719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10720{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10721echo "${ECHO_T}$ac_header_compiler" >&6; }
10722
10723# Is the header present?
10724{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10725echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10726cat >conftest.$ac_ext <<_ACEOF
10727/* confdefs.h.  */
10728_ACEOF
10729cat confdefs.h >>conftest.$ac_ext
10730cat >>conftest.$ac_ext <<_ACEOF
10731/* end confdefs.h.  */
10732#include <$ac_header>
10733_ACEOF
10734if { (ac_try="$ac_cpp conftest.$ac_ext"
10735case "(($ac_try" in
10736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10737  *) ac_try_echo=$ac_try;;
10738esac
10739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10740  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10741  ac_status=$?
10742  grep -v '^ *+' conftest.er1 >conftest.err
10743  rm -f conftest.er1
10744  cat conftest.err >&5
10745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746  (exit $ac_status); } >/dev/null; then
10747  if test -s conftest.err; then
10748    ac_cpp_err=$ac_c_preproc_warn_flag
10749    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10750  else
10751    ac_cpp_err=
10752  fi
10753else
10754  ac_cpp_err=yes
10755fi
10756if test -z "$ac_cpp_err"; then
10757  ac_header_preproc=yes
10758else
10759  echo "$as_me: failed program was:" >&5
10760sed 's/^/| /' conftest.$ac_ext >&5
10761
10762  ac_header_preproc=no
10763fi
10764
10765rm -f conftest.err conftest.$ac_ext
10766{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10767echo "${ECHO_T}$ac_header_preproc" >&6; }
10768
10769# So?  What about this header?
10770case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10771  yes:no: )
10772    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10773echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10774    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10775echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10776    ac_header_preproc=yes
10777    ;;
10778  no:yes:* )
10779    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10780echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10781    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10782echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10783    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10784echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10785    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10786echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10787    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10788echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10789    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10790echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10791    ( cat <<\_ASBOX
10792## ----------------------------------- ##
10793## Report this to llvmbugs@cs.uiuc.edu ##
10794## ----------------------------------- ##
10795_ASBOX
10796     ) | sed "s/^/$as_me: WARNING:     /" >&2
10797    ;;
10798esac
10799{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10800echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10801if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10802  echo $ECHO_N "(cached) $ECHO_C" >&6
10803else
10804  eval "$as_ac_Header=\$ac_header_preproc"
10805fi
10806ac_res=`eval echo '${'$as_ac_Header'}'`
10807	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10808echo "${ECHO_T}$ac_res" >&6; }
10809
10810fi
10811if test `eval echo '${'$as_ac_Header'}'` = yes; then
10812  cat >>confdefs.h <<_ACEOF
10813#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10814_ACEOF
10815
10816fi
10817
10818done
10819
10820
10821{ echo "$as_me:$LINENO: checking for error_t" >&5
10822echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10823if test "${ac_cv_type_error_t+set}" = set; then
10824  echo $ECHO_N "(cached) $ECHO_C" >&6
10825else
10826  cat >conftest.$ac_ext <<_ACEOF
10827/* confdefs.h.  */
10828_ACEOF
10829cat confdefs.h >>conftest.$ac_ext
10830cat >>conftest.$ac_ext <<_ACEOF
10831/* end confdefs.h.  */
10832#if HAVE_ARGZ_H
10833#  include <argz.h>
10834#endif
10835
10836typedef error_t ac__type_new_;
10837int
10838main ()
10839{
10840if ((ac__type_new_ *) 0)
10841  return 0;
10842if (sizeof (ac__type_new_))
10843  return 0;
10844  ;
10845  return 0;
10846}
10847_ACEOF
10848rm -f conftest.$ac_objext
10849if { (ac_try="$ac_compile"
10850case "(($ac_try" in
10851  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10852  *) ac_try_echo=$ac_try;;
10853esac
10854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10855  (eval "$ac_compile") 2>conftest.er1
10856  ac_status=$?
10857  grep -v '^ *+' conftest.er1 >conftest.err
10858  rm -f conftest.er1
10859  cat conftest.err >&5
10860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861  (exit $ac_status); } &&
10862	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10863  { (case "(($ac_try" in
10864  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10865  *) ac_try_echo=$ac_try;;
10866esac
10867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10868  (eval "$ac_try") 2>&5
10869  ac_status=$?
10870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871  (exit $ac_status); }; } &&
10872	 { ac_try='test -s conftest.$ac_objext'
10873  { (case "(($ac_try" in
10874  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875  *) ac_try_echo=$ac_try;;
10876esac
10877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10878  (eval "$ac_try") 2>&5
10879  ac_status=$?
10880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881  (exit $ac_status); }; }; then
10882  ac_cv_type_error_t=yes
10883else
10884  echo "$as_me: failed program was:" >&5
10885sed 's/^/| /' conftest.$ac_ext >&5
10886
10887	ac_cv_type_error_t=no
10888fi
10889
10890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10891fi
10892{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10893echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10894if test $ac_cv_type_error_t = yes; then
10895
10896cat >>confdefs.h <<_ACEOF
10897#define HAVE_ERROR_T 1
10898_ACEOF
10899
10900
10901else
10902
10903cat >>confdefs.h <<\_ACEOF
10904#define error_t int
10905_ACEOF
10906
10907fi
10908
10909
10910
10911
10912
10913
10914
10915for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10916do
10917as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10918{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10919echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10920if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10921  echo $ECHO_N "(cached) $ECHO_C" >&6
10922else
10923  cat >conftest.$ac_ext <<_ACEOF
10924/* confdefs.h.  */
10925_ACEOF
10926cat confdefs.h >>conftest.$ac_ext
10927cat >>conftest.$ac_ext <<_ACEOF
10928/* end confdefs.h.  */
10929/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10930   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10931#define $ac_func innocuous_$ac_func
10932
10933/* System header to define __stub macros and hopefully few prototypes,
10934    which can conflict with char $ac_func (); below.
10935    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10936    <limits.h> exists even on freestanding compilers.  */
10937
10938#ifdef __STDC__
10939# include <limits.h>
10940#else
10941# include <assert.h>
10942#endif
10943
10944#undef $ac_func
10945
10946/* Override any GCC internal prototype to avoid an error.
10947   Use char because int might match the return type of a GCC
10948   builtin and then its argument prototype would still apply.  */
10949#ifdef __cplusplus
10950extern "C"
10951#endif
10952char $ac_func ();
10953/* The GNU C library defines this for functions which it implements
10954    to always fail with ENOSYS.  Some functions are actually named
10955    something starting with __ and the normal name is an alias.  */
10956#if defined __stub_$ac_func || defined __stub___$ac_func
10957choke me
10958#endif
10959
10960int
10961main ()
10962{
10963return $ac_func ();
10964  ;
10965  return 0;
10966}
10967_ACEOF
10968rm -f conftest.$ac_objext conftest$ac_exeext
10969if { (ac_try="$ac_link"
10970case "(($ac_try" in
10971  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10972  *) ac_try_echo=$ac_try;;
10973esac
10974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10975  (eval "$ac_link") 2>conftest.er1
10976  ac_status=$?
10977  grep -v '^ *+' conftest.er1 >conftest.err
10978  rm -f conftest.er1
10979  cat conftest.err >&5
10980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981  (exit $ac_status); } &&
10982	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10983  { (case "(($ac_try" in
10984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10985  *) ac_try_echo=$ac_try;;
10986esac
10987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10988  (eval "$ac_try") 2>&5
10989  ac_status=$?
10990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991  (exit $ac_status); }; } &&
10992	 { ac_try='test -s conftest$ac_exeext'
10993  { (case "(($ac_try" in
10994  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10995  *) ac_try_echo=$ac_try;;
10996esac
10997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10998  (eval "$ac_try") 2>&5
10999  ac_status=$?
11000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001  (exit $ac_status); }; }; then
11002  eval "$as_ac_var=yes"
11003else
11004  echo "$as_me: failed program was:" >&5
11005sed 's/^/| /' conftest.$ac_ext >&5
11006
11007	eval "$as_ac_var=no"
11008fi
11009
11010rm -f core conftest.err conftest.$ac_objext \
11011      conftest$ac_exeext conftest.$ac_ext
11012fi
11013ac_res=`eval echo '${'$as_ac_var'}'`
11014	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11015echo "${ECHO_T}$ac_res" >&6; }
11016if test `eval echo '${'$as_ac_var'}'` = yes; then
11017  cat >>confdefs.h <<_ACEOF
11018#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11019_ACEOF
11020
11021fi
11022done
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11052		  stdio.h unistd.h
11053do
11054as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11055if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11056  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11057echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11058if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11059  echo $ECHO_N "(cached) $ECHO_C" >&6
11060fi
11061ac_res=`eval echo '${'$as_ac_Header'}'`
11062	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11063echo "${ECHO_T}$ac_res" >&6; }
11064else
11065  # Is the header compilable?
11066{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11067echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11068cat >conftest.$ac_ext <<_ACEOF
11069/* confdefs.h.  */
11070_ACEOF
11071cat confdefs.h >>conftest.$ac_ext
11072cat >>conftest.$ac_ext <<_ACEOF
11073/* end confdefs.h.  */
11074$ac_includes_default
11075#include <$ac_header>
11076_ACEOF
11077rm -f conftest.$ac_objext
11078if { (ac_try="$ac_compile"
11079case "(($ac_try" in
11080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11081  *) ac_try_echo=$ac_try;;
11082esac
11083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11084  (eval "$ac_compile") 2>conftest.er1
11085  ac_status=$?
11086  grep -v '^ *+' conftest.er1 >conftest.err
11087  rm -f conftest.er1
11088  cat conftest.err >&5
11089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090  (exit $ac_status); } &&
11091	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11092  { (case "(($ac_try" in
11093  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11094  *) ac_try_echo=$ac_try;;
11095esac
11096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11097  (eval "$ac_try") 2>&5
11098  ac_status=$?
11099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100  (exit $ac_status); }; } &&
11101	 { ac_try='test -s conftest.$ac_objext'
11102  { (case "(($ac_try" in
11103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11104  *) ac_try_echo=$ac_try;;
11105esac
11106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11107  (eval "$ac_try") 2>&5
11108  ac_status=$?
11109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110  (exit $ac_status); }; }; then
11111  ac_header_compiler=yes
11112else
11113  echo "$as_me: failed program was:" >&5
11114sed 's/^/| /' conftest.$ac_ext >&5
11115
11116	ac_header_compiler=no
11117fi
11118
11119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11120{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11121echo "${ECHO_T}$ac_header_compiler" >&6; }
11122
11123# Is the header present?
11124{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11125echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11126cat >conftest.$ac_ext <<_ACEOF
11127/* confdefs.h.  */
11128_ACEOF
11129cat confdefs.h >>conftest.$ac_ext
11130cat >>conftest.$ac_ext <<_ACEOF
11131/* end confdefs.h.  */
11132#include <$ac_header>
11133_ACEOF
11134if { (ac_try="$ac_cpp conftest.$ac_ext"
11135case "(($ac_try" in
11136  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11137  *) ac_try_echo=$ac_try;;
11138esac
11139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11140  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11141  ac_status=$?
11142  grep -v '^ *+' conftest.er1 >conftest.err
11143  rm -f conftest.er1
11144  cat conftest.err >&5
11145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146  (exit $ac_status); } >/dev/null; then
11147  if test -s conftest.err; then
11148    ac_cpp_err=$ac_c_preproc_warn_flag
11149    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11150  else
11151    ac_cpp_err=
11152  fi
11153else
11154  ac_cpp_err=yes
11155fi
11156if test -z "$ac_cpp_err"; then
11157  ac_header_preproc=yes
11158else
11159  echo "$as_me: failed program was:" >&5
11160sed 's/^/| /' conftest.$ac_ext >&5
11161
11162  ac_header_preproc=no
11163fi
11164
11165rm -f conftest.err conftest.$ac_ext
11166{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11167echo "${ECHO_T}$ac_header_preproc" >&6; }
11168
11169# So?  What about this header?
11170case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11171  yes:no: )
11172    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11173echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11174    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11175echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11176    ac_header_preproc=yes
11177    ;;
11178  no:yes:* )
11179    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11180echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11181    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11182echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11183    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11184echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11185    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11186echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11187    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11188echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11189    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11190echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11191    ( cat <<\_ASBOX
11192## ----------------------------------- ##
11193## Report this to llvmbugs@cs.uiuc.edu ##
11194## ----------------------------------- ##
11195_ASBOX
11196     ) | sed "s/^/$as_me: WARNING:     /" >&2
11197    ;;
11198esac
11199{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11200echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11201if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11202  echo $ECHO_N "(cached) $ECHO_C" >&6
11203else
11204  eval "$as_ac_Header=\$ac_header_preproc"
11205fi
11206ac_res=`eval echo '${'$as_ac_Header'}'`
11207	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11208echo "${ECHO_T}$ac_res" >&6; }
11209
11210fi
11211if test `eval echo '${'$as_ac_Header'}'` = yes; then
11212  cat >>confdefs.h <<_ACEOF
11213#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11214_ACEOF
11215
11216fi
11217
11218done
11219
11220
11221
11222
11223
11224for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11225do
11226as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11227if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11228  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11229echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11230if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11231  echo $ECHO_N "(cached) $ECHO_C" >&6
11232fi
11233ac_res=`eval echo '${'$as_ac_Header'}'`
11234	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11235echo "${ECHO_T}$ac_res" >&6; }
11236else
11237  # Is the header compilable?
11238{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11239echo $ECHO_N "checking $ac_header usability... $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$ac_includes_default
11247#include <$ac_header>
11248_ACEOF
11249rm -f conftest.$ac_objext
11250if { (ac_try="$ac_compile"
11251case "(($ac_try" in
11252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11253  *) ac_try_echo=$ac_try;;
11254esac
11255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11256  (eval "$ac_compile") 2>conftest.er1
11257  ac_status=$?
11258  grep -v '^ *+' conftest.er1 >conftest.err
11259  rm -f conftest.er1
11260  cat conftest.err >&5
11261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262  (exit $ac_status); } &&
11263	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11264  { (case "(($ac_try" in
11265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11266  *) ac_try_echo=$ac_try;;
11267esac
11268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11269  (eval "$ac_try") 2>&5
11270  ac_status=$?
11271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272  (exit $ac_status); }; } &&
11273	 { ac_try='test -s conftest.$ac_objext'
11274  { (case "(($ac_try" in
11275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11276  *) ac_try_echo=$ac_try;;
11277esac
11278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11279  (eval "$ac_try") 2>&5
11280  ac_status=$?
11281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282  (exit $ac_status); }; }; then
11283  ac_header_compiler=yes
11284else
11285  echo "$as_me: failed program was:" >&5
11286sed 's/^/| /' conftest.$ac_ext >&5
11287
11288	ac_header_compiler=no
11289fi
11290
11291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11292{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11293echo "${ECHO_T}$ac_header_compiler" >&6; }
11294
11295# Is the header present?
11296{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11297echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11298cat >conftest.$ac_ext <<_ACEOF
11299/* confdefs.h.  */
11300_ACEOF
11301cat confdefs.h >>conftest.$ac_ext
11302cat >>conftest.$ac_ext <<_ACEOF
11303/* end confdefs.h.  */
11304#include <$ac_header>
11305_ACEOF
11306if { (ac_try="$ac_cpp conftest.$ac_ext"
11307case "(($ac_try" in
11308  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11309  *) ac_try_echo=$ac_try;;
11310esac
11311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11312  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11313  ac_status=$?
11314  grep -v '^ *+' conftest.er1 >conftest.err
11315  rm -f conftest.er1
11316  cat conftest.err >&5
11317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318  (exit $ac_status); } >/dev/null; then
11319  if test -s conftest.err; then
11320    ac_cpp_err=$ac_c_preproc_warn_flag
11321    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11322  else
11323    ac_cpp_err=
11324  fi
11325else
11326  ac_cpp_err=yes
11327fi
11328if test -z "$ac_cpp_err"; then
11329  ac_header_preproc=yes
11330else
11331  echo "$as_me: failed program was:" >&5
11332sed 's/^/| /' conftest.$ac_ext >&5
11333
11334  ac_header_preproc=no
11335fi
11336
11337rm -f conftest.err conftest.$ac_ext
11338{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11339echo "${ECHO_T}$ac_header_preproc" >&6; }
11340
11341# So?  What about this header?
11342case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11343  yes:no: )
11344    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11345echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11346    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11347echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11348    ac_header_preproc=yes
11349    ;;
11350  no:yes:* )
11351    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11352echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11353    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11354echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11355    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11356echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11357    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11358echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11359    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11360echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11361    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11362echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11363    ( cat <<\_ASBOX
11364## ----------------------------------- ##
11365## Report this to llvmbugs@cs.uiuc.edu ##
11366## ----------------------------------- ##
11367_ASBOX
11368     ) | sed "s/^/$as_me: WARNING:     /" >&2
11369    ;;
11370esac
11371{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11372echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11373if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11374  echo $ECHO_N "(cached) $ECHO_C" >&6
11375else
11376  eval "$as_ac_Header=\$ac_header_preproc"
11377fi
11378ac_res=`eval echo '${'$as_ac_Header'}'`
11379	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11380echo "${ECHO_T}$ac_res" >&6; }
11381
11382fi
11383if test `eval echo '${'$as_ac_Header'}'` = yes; then
11384  cat >>confdefs.h <<_ACEOF
11385#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11386_ACEOF
11387
11388fi
11389
11390done
11391
11392
11393
11394for ac_header in string.h strings.h
11395do
11396as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11397if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11398  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11399echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11400if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11401  echo $ECHO_N "(cached) $ECHO_C" >&6
11402fi
11403ac_res=`eval echo '${'$as_ac_Header'}'`
11404	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11405echo "${ECHO_T}$ac_res" >&6; }
11406else
11407  # Is the header compilable?
11408{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11409echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11410cat >conftest.$ac_ext <<_ACEOF
11411/* confdefs.h.  */
11412_ACEOF
11413cat confdefs.h >>conftest.$ac_ext
11414cat >>conftest.$ac_ext <<_ACEOF
11415/* end confdefs.h.  */
11416$ac_includes_default
11417#include <$ac_header>
11418_ACEOF
11419rm -f conftest.$ac_objext
11420if { (ac_try="$ac_compile"
11421case "(($ac_try" in
11422  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11423  *) ac_try_echo=$ac_try;;
11424esac
11425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11426  (eval "$ac_compile") 2>conftest.er1
11427  ac_status=$?
11428  grep -v '^ *+' conftest.er1 >conftest.err
11429  rm -f conftest.er1
11430  cat conftest.err >&5
11431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432  (exit $ac_status); } &&
11433	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11434  { (case "(($ac_try" in
11435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11436  *) ac_try_echo=$ac_try;;
11437esac
11438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11439  (eval "$ac_try") 2>&5
11440  ac_status=$?
11441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442  (exit $ac_status); }; } &&
11443	 { ac_try='test -s conftest.$ac_objext'
11444  { (case "(($ac_try" in
11445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11446  *) ac_try_echo=$ac_try;;
11447esac
11448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11449  (eval "$ac_try") 2>&5
11450  ac_status=$?
11451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452  (exit $ac_status); }; }; then
11453  ac_header_compiler=yes
11454else
11455  echo "$as_me: failed program was:" >&5
11456sed 's/^/| /' conftest.$ac_ext >&5
11457
11458	ac_header_compiler=no
11459fi
11460
11461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11462{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11463echo "${ECHO_T}$ac_header_compiler" >&6; }
11464
11465# Is the header present?
11466{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11467echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11468cat >conftest.$ac_ext <<_ACEOF
11469/* confdefs.h.  */
11470_ACEOF
11471cat confdefs.h >>conftest.$ac_ext
11472cat >>conftest.$ac_ext <<_ACEOF
11473/* end confdefs.h.  */
11474#include <$ac_header>
11475_ACEOF
11476if { (ac_try="$ac_cpp conftest.$ac_ext"
11477case "(($ac_try" in
11478  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11479  *) ac_try_echo=$ac_try;;
11480esac
11481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11482  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11483  ac_status=$?
11484  grep -v '^ *+' conftest.er1 >conftest.err
11485  rm -f conftest.er1
11486  cat conftest.err >&5
11487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488  (exit $ac_status); } >/dev/null; then
11489  if test -s conftest.err; then
11490    ac_cpp_err=$ac_c_preproc_warn_flag
11491    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11492  else
11493    ac_cpp_err=
11494  fi
11495else
11496  ac_cpp_err=yes
11497fi
11498if test -z "$ac_cpp_err"; then
11499  ac_header_preproc=yes
11500else
11501  echo "$as_me: failed program was:" >&5
11502sed 's/^/| /' conftest.$ac_ext >&5
11503
11504  ac_header_preproc=no
11505fi
11506
11507rm -f conftest.err conftest.$ac_ext
11508{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11509echo "${ECHO_T}$ac_header_preproc" >&6; }
11510
11511# So?  What about this header?
11512case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11513  yes:no: )
11514    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11515echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11516    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11517echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11518    ac_header_preproc=yes
11519    ;;
11520  no:yes:* )
11521    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11522echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11523    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11524echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11525    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11526echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11527    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11528echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11529    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11530echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11531    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11532echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11533    ( cat <<\_ASBOX
11534## ----------------------------------- ##
11535## Report this to llvmbugs@cs.uiuc.edu ##
11536## ----------------------------------- ##
11537_ASBOX
11538     ) | sed "s/^/$as_me: WARNING:     /" >&2
11539    ;;
11540esac
11541{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11542echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11543if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11544  echo $ECHO_N "(cached) $ECHO_C" >&6
11545else
11546  eval "$as_ac_Header=\$ac_header_preproc"
11547fi
11548ac_res=`eval echo '${'$as_ac_Header'}'`
11549	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11550echo "${ECHO_T}$ac_res" >&6; }
11551
11552fi
11553if test `eval echo '${'$as_ac_Header'}'` = yes; then
11554  cat >>confdefs.h <<_ACEOF
11555#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11556_ACEOF
11557 break
11558fi
11559
11560done
11561
11562
11563
11564
11565for ac_func in strchr index
11566do
11567as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11568{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11569echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11570if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11571  echo $ECHO_N "(cached) $ECHO_C" >&6
11572else
11573  cat >conftest.$ac_ext <<_ACEOF
11574/* confdefs.h.  */
11575_ACEOF
11576cat confdefs.h >>conftest.$ac_ext
11577cat >>conftest.$ac_ext <<_ACEOF
11578/* end confdefs.h.  */
11579/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11580   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11581#define $ac_func innocuous_$ac_func
11582
11583/* System header to define __stub macros and hopefully few prototypes,
11584    which can conflict with char $ac_func (); below.
11585    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11586    <limits.h> exists even on freestanding compilers.  */
11587
11588#ifdef __STDC__
11589# include <limits.h>
11590#else
11591# include <assert.h>
11592#endif
11593
11594#undef $ac_func
11595
11596/* Override any GCC internal prototype to avoid an error.
11597   Use char because int might match the return type of a GCC
11598   builtin and then its argument prototype would still apply.  */
11599#ifdef __cplusplus
11600extern "C"
11601#endif
11602char $ac_func ();
11603/* The GNU C library defines this for functions which it implements
11604    to always fail with ENOSYS.  Some functions are actually named
11605    something starting with __ and the normal name is an alias.  */
11606#if defined __stub_$ac_func || defined __stub___$ac_func
11607choke me
11608#endif
11609
11610int
11611main ()
11612{
11613return $ac_func ();
11614  ;
11615  return 0;
11616}
11617_ACEOF
11618rm -f conftest.$ac_objext conftest$ac_exeext
11619if { (ac_try="$ac_link"
11620case "(($ac_try" in
11621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11622  *) ac_try_echo=$ac_try;;
11623esac
11624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11625  (eval "$ac_link") 2>conftest.er1
11626  ac_status=$?
11627  grep -v '^ *+' conftest.er1 >conftest.err
11628  rm -f conftest.er1
11629  cat conftest.err >&5
11630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631  (exit $ac_status); } &&
11632	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11633  { (case "(($ac_try" in
11634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11635  *) ac_try_echo=$ac_try;;
11636esac
11637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11638  (eval "$ac_try") 2>&5
11639  ac_status=$?
11640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641  (exit $ac_status); }; } &&
11642	 { ac_try='test -s conftest$ac_exeext'
11643  { (case "(($ac_try" in
11644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11645  *) ac_try_echo=$ac_try;;
11646esac
11647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11648  (eval "$ac_try") 2>&5
11649  ac_status=$?
11650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651  (exit $ac_status); }; }; then
11652  eval "$as_ac_var=yes"
11653else
11654  echo "$as_me: failed program was:" >&5
11655sed 's/^/| /' conftest.$ac_ext >&5
11656
11657	eval "$as_ac_var=no"
11658fi
11659
11660rm -f core conftest.err conftest.$ac_objext \
11661      conftest$ac_exeext conftest.$ac_ext
11662fi
11663ac_res=`eval echo '${'$as_ac_var'}'`
11664	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11665echo "${ECHO_T}$ac_res" >&6; }
11666if test `eval echo '${'$as_ac_var'}'` = yes; then
11667  cat >>confdefs.h <<_ACEOF
11668#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11669_ACEOF
11670 break
11671fi
11672done
11673
11674
11675
11676for ac_func in strrchr rindex
11677do
11678as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11679{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11680echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11681if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11682  echo $ECHO_N "(cached) $ECHO_C" >&6
11683else
11684  cat >conftest.$ac_ext <<_ACEOF
11685/* confdefs.h.  */
11686_ACEOF
11687cat confdefs.h >>conftest.$ac_ext
11688cat >>conftest.$ac_ext <<_ACEOF
11689/* end confdefs.h.  */
11690/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11691   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11692#define $ac_func innocuous_$ac_func
11693
11694/* System header to define __stub macros and hopefully few prototypes,
11695    which can conflict with char $ac_func (); below.
11696    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11697    <limits.h> exists even on freestanding compilers.  */
11698
11699#ifdef __STDC__
11700# include <limits.h>
11701#else
11702# include <assert.h>
11703#endif
11704
11705#undef $ac_func
11706
11707/* Override any GCC internal prototype to avoid an error.
11708   Use char because int might match the return type of a GCC
11709   builtin and then its argument prototype would still apply.  */
11710#ifdef __cplusplus
11711extern "C"
11712#endif
11713char $ac_func ();
11714/* The GNU C library defines this for functions which it implements
11715    to always fail with ENOSYS.  Some functions are actually named
11716    something starting with __ and the normal name is an alias.  */
11717#if defined __stub_$ac_func || defined __stub___$ac_func
11718choke me
11719#endif
11720
11721int
11722main ()
11723{
11724return $ac_func ();
11725  ;
11726  return 0;
11727}
11728_ACEOF
11729rm -f conftest.$ac_objext conftest$ac_exeext
11730if { (ac_try="$ac_link"
11731case "(($ac_try" in
11732  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11733  *) ac_try_echo=$ac_try;;
11734esac
11735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11736  (eval "$ac_link") 2>conftest.er1
11737  ac_status=$?
11738  grep -v '^ *+' conftest.er1 >conftest.err
11739  rm -f conftest.er1
11740  cat conftest.err >&5
11741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742  (exit $ac_status); } &&
11743	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11744  { (case "(($ac_try" in
11745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11746  *) ac_try_echo=$ac_try;;
11747esac
11748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11749  (eval "$ac_try") 2>&5
11750  ac_status=$?
11751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752  (exit $ac_status); }; } &&
11753	 { ac_try='test -s conftest$ac_exeext'
11754  { (case "(($ac_try" in
11755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11756  *) ac_try_echo=$ac_try;;
11757esac
11758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11759  (eval "$ac_try") 2>&5
11760  ac_status=$?
11761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762  (exit $ac_status); }; }; then
11763  eval "$as_ac_var=yes"
11764else
11765  echo "$as_me: failed program was:" >&5
11766sed 's/^/| /' conftest.$ac_ext >&5
11767
11768	eval "$as_ac_var=no"
11769fi
11770
11771rm -f core conftest.err conftest.$ac_objext \
11772      conftest$ac_exeext conftest.$ac_ext
11773fi
11774ac_res=`eval echo '${'$as_ac_var'}'`
11775	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11776echo "${ECHO_T}$ac_res" >&6; }
11777if test `eval echo '${'$as_ac_var'}'` = yes; then
11778  cat >>confdefs.h <<_ACEOF
11779#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11780_ACEOF
11781 break
11782fi
11783done
11784
11785
11786
11787for ac_func in memcpy bcopy
11788do
11789as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11790{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11791echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11792if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11793  echo $ECHO_N "(cached) $ECHO_C" >&6
11794else
11795  cat >conftest.$ac_ext <<_ACEOF
11796/* confdefs.h.  */
11797_ACEOF
11798cat confdefs.h >>conftest.$ac_ext
11799cat >>conftest.$ac_ext <<_ACEOF
11800/* end confdefs.h.  */
11801/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11802   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11803#define $ac_func innocuous_$ac_func
11804
11805/* System header to define __stub macros and hopefully few prototypes,
11806    which can conflict with char $ac_func (); below.
11807    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11808    <limits.h> exists even on freestanding compilers.  */
11809
11810#ifdef __STDC__
11811# include <limits.h>
11812#else
11813# include <assert.h>
11814#endif
11815
11816#undef $ac_func
11817
11818/* Override any GCC internal prototype to avoid an error.
11819   Use char because int might match the return type of a GCC
11820   builtin and then its argument prototype would still apply.  */
11821#ifdef __cplusplus
11822extern "C"
11823#endif
11824char $ac_func ();
11825/* The GNU C library defines this for functions which it implements
11826    to always fail with ENOSYS.  Some functions are actually named
11827    something starting with __ and the normal name is an alias.  */
11828#if defined __stub_$ac_func || defined __stub___$ac_func
11829choke me
11830#endif
11831
11832int
11833main ()
11834{
11835return $ac_func ();
11836  ;
11837  return 0;
11838}
11839_ACEOF
11840rm -f conftest.$ac_objext conftest$ac_exeext
11841if { (ac_try="$ac_link"
11842case "(($ac_try" in
11843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11844  *) ac_try_echo=$ac_try;;
11845esac
11846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11847  (eval "$ac_link") 2>conftest.er1
11848  ac_status=$?
11849  grep -v '^ *+' conftest.er1 >conftest.err
11850  rm -f conftest.er1
11851  cat conftest.err >&5
11852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853  (exit $ac_status); } &&
11854	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11855  { (case "(($ac_try" in
11856  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11857  *) ac_try_echo=$ac_try;;
11858esac
11859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11860  (eval "$ac_try") 2>&5
11861  ac_status=$?
11862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863  (exit $ac_status); }; } &&
11864	 { ac_try='test -s conftest$ac_exeext'
11865  { (case "(($ac_try" in
11866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11867  *) ac_try_echo=$ac_try;;
11868esac
11869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11870  (eval "$ac_try") 2>&5
11871  ac_status=$?
11872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873  (exit $ac_status); }; }; then
11874  eval "$as_ac_var=yes"
11875else
11876  echo "$as_me: failed program was:" >&5
11877sed 's/^/| /' conftest.$ac_ext >&5
11878
11879	eval "$as_ac_var=no"
11880fi
11881
11882rm -f core conftest.err conftest.$ac_objext \
11883      conftest$ac_exeext conftest.$ac_ext
11884fi
11885ac_res=`eval echo '${'$as_ac_var'}'`
11886	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11887echo "${ECHO_T}$ac_res" >&6; }
11888if test `eval echo '${'$as_ac_var'}'` = yes; then
11889  cat >>confdefs.h <<_ACEOF
11890#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11891_ACEOF
11892 break
11893fi
11894done
11895
11896
11897
11898for ac_func in memmove strcmp
11899do
11900as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11901{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11902echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11903if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11904  echo $ECHO_N "(cached) $ECHO_C" >&6
11905else
11906  cat >conftest.$ac_ext <<_ACEOF
11907/* confdefs.h.  */
11908_ACEOF
11909cat confdefs.h >>conftest.$ac_ext
11910cat >>conftest.$ac_ext <<_ACEOF
11911/* end confdefs.h.  */
11912/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11913   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11914#define $ac_func innocuous_$ac_func
11915
11916/* System header to define __stub macros and hopefully few prototypes,
11917    which can conflict with char $ac_func (); below.
11918    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11919    <limits.h> exists even on freestanding compilers.  */
11920
11921#ifdef __STDC__
11922# include <limits.h>
11923#else
11924# include <assert.h>
11925#endif
11926
11927#undef $ac_func
11928
11929/* Override any GCC internal prototype to avoid an error.
11930   Use char because int might match the return type of a GCC
11931   builtin and then its argument prototype would still apply.  */
11932#ifdef __cplusplus
11933extern "C"
11934#endif
11935char $ac_func ();
11936/* The GNU C library defines this for functions which it implements
11937    to always fail with ENOSYS.  Some functions are actually named
11938    something starting with __ and the normal name is an alias.  */
11939#if defined __stub_$ac_func || defined __stub___$ac_func
11940choke me
11941#endif
11942
11943int
11944main ()
11945{
11946return $ac_func ();
11947  ;
11948  return 0;
11949}
11950_ACEOF
11951rm -f conftest.$ac_objext conftest$ac_exeext
11952if { (ac_try="$ac_link"
11953case "(($ac_try" in
11954  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11955  *) ac_try_echo=$ac_try;;
11956esac
11957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11958  (eval "$ac_link") 2>conftest.er1
11959  ac_status=$?
11960  grep -v '^ *+' conftest.er1 >conftest.err
11961  rm -f conftest.er1
11962  cat conftest.err >&5
11963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964  (exit $ac_status); } &&
11965	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11966  { (case "(($ac_try" in
11967  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11968  *) ac_try_echo=$ac_try;;
11969esac
11970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11971  (eval "$ac_try") 2>&5
11972  ac_status=$?
11973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974  (exit $ac_status); }; } &&
11975	 { ac_try='test -s conftest$ac_exeext'
11976  { (case "(($ac_try" in
11977  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11978  *) ac_try_echo=$ac_try;;
11979esac
11980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11981  (eval "$ac_try") 2>&5
11982  ac_status=$?
11983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984  (exit $ac_status); }; }; then
11985  eval "$as_ac_var=yes"
11986else
11987  echo "$as_me: failed program was:" >&5
11988sed 's/^/| /' conftest.$ac_ext >&5
11989
11990	eval "$as_ac_var=no"
11991fi
11992
11993rm -f core conftest.err conftest.$ac_objext \
11994      conftest$ac_exeext conftest.$ac_ext
11995fi
11996ac_res=`eval echo '${'$as_ac_var'}'`
11997	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11998echo "${ECHO_T}$ac_res" >&6; }
11999if test `eval echo '${'$as_ac_var'}'` = yes; then
12000  cat >>confdefs.h <<_ACEOF
12001#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12002_ACEOF
12003
12004fi
12005done
12006
12007
12008
12009
12010for ac_func in closedir opendir readdir
12011do
12012as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12013{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12014echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12015if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12016  echo $ECHO_N "(cached) $ECHO_C" >&6
12017else
12018  cat >conftest.$ac_ext <<_ACEOF
12019/* confdefs.h.  */
12020_ACEOF
12021cat confdefs.h >>conftest.$ac_ext
12022cat >>conftest.$ac_ext <<_ACEOF
12023/* end confdefs.h.  */
12024/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12025   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12026#define $ac_func innocuous_$ac_func
12027
12028/* System header to define __stub macros and hopefully few prototypes,
12029    which can conflict with char $ac_func (); below.
12030    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12031    <limits.h> exists even on freestanding compilers.  */
12032
12033#ifdef __STDC__
12034# include <limits.h>
12035#else
12036# include <assert.h>
12037#endif
12038
12039#undef $ac_func
12040
12041/* Override any GCC internal prototype to avoid an error.
12042   Use char because int might match the return type of a GCC
12043   builtin and then its argument prototype would still apply.  */
12044#ifdef __cplusplus
12045extern "C"
12046#endif
12047char $ac_func ();
12048/* The GNU C library defines this for functions which it implements
12049    to always fail with ENOSYS.  Some functions are actually named
12050    something starting with __ and the normal name is an alias.  */
12051#if defined __stub_$ac_func || defined __stub___$ac_func
12052choke me
12053#endif
12054
12055int
12056main ()
12057{
12058return $ac_func ();
12059  ;
12060  return 0;
12061}
12062_ACEOF
12063rm -f conftest.$ac_objext conftest$ac_exeext
12064if { (ac_try="$ac_link"
12065case "(($ac_try" in
12066  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12067  *) ac_try_echo=$ac_try;;
12068esac
12069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12070  (eval "$ac_link") 2>conftest.er1
12071  ac_status=$?
12072  grep -v '^ *+' conftest.er1 >conftest.err
12073  rm -f conftest.er1
12074  cat conftest.err >&5
12075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076  (exit $ac_status); } &&
12077	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12078  { (case "(($ac_try" in
12079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12080  *) ac_try_echo=$ac_try;;
12081esac
12082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12083  (eval "$ac_try") 2>&5
12084  ac_status=$?
12085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086  (exit $ac_status); }; } &&
12087	 { ac_try='test -s conftest$ac_exeext'
12088  { (case "(($ac_try" in
12089  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12090  *) ac_try_echo=$ac_try;;
12091esac
12092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12093  (eval "$ac_try") 2>&5
12094  ac_status=$?
12095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096  (exit $ac_status); }; }; then
12097  eval "$as_ac_var=yes"
12098else
12099  echo "$as_me: failed program was:" >&5
12100sed 's/^/| /' conftest.$ac_ext >&5
12101
12102	eval "$as_ac_var=no"
12103fi
12104
12105rm -f core conftest.err conftest.$ac_objext \
12106      conftest$ac_exeext conftest.$ac_ext
12107fi
12108ac_res=`eval echo '${'$as_ac_var'}'`
12109	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12110echo "${ECHO_T}$ac_res" >&6; }
12111if test `eval echo '${'$as_ac_var'}'` = yes; then
12112  cat >>confdefs.h <<_ACEOF
12113#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12114_ACEOF
12115
12116fi
12117done
12118
12119
12120# Check whether --enable-shared was given.
12121if test "${enable_shared+set}" = set; then
12122  enableval=$enable_shared; p=${PACKAGE-default}
12123    case $enableval in
12124    yes) enable_shared=yes ;;
12125    no) enable_shared=no ;;
12126    *)
12127      enable_shared=no
12128      # Look at the argument we got.  We use all the common list separators.
12129      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12130      for pkg in $enableval; do
12131	IFS="$lt_save_ifs"
12132	if test "X$pkg" = "X$p"; then
12133	  enable_shared=yes
12134	fi
12135      done
12136      IFS="$lt_save_ifs"
12137      ;;
12138    esac
12139else
12140  enable_shared=yes
12141fi
12142
12143
12144# Check whether --enable-static was given.
12145if test "${enable_static+set}" = set; then
12146  enableval=$enable_static; p=${PACKAGE-default}
12147    case $enableval in
12148    yes) enable_static=yes ;;
12149    no) enable_static=no ;;
12150    *)
12151     enable_static=no
12152      # Look at the argument we got.  We use all the common list separators.
12153      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12154      for pkg in $enableval; do
12155	IFS="$lt_save_ifs"
12156	if test "X$pkg" = "X$p"; then
12157	  enable_static=yes
12158	fi
12159      done
12160      IFS="$lt_save_ifs"
12161      ;;
12162    esac
12163else
12164  enable_static=yes
12165fi
12166
12167
12168# Check whether --enable-fast-install was given.
12169if test "${enable_fast_install+set}" = set; then
12170  enableval=$enable_fast_install; p=${PACKAGE-default}
12171    case $enableval in
12172    yes) enable_fast_install=yes ;;
12173    no) enable_fast_install=no ;;
12174    *)
12175      enable_fast_install=no
12176      # Look at the argument we got.  We use all the common list separators.
12177      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12178      for pkg in $enableval; do
12179	IFS="$lt_save_ifs"
12180	if test "X$pkg" = "X$p"; then
12181	  enable_fast_install=yes
12182	fi
12183      done
12184      IFS="$lt_save_ifs"
12185      ;;
12186    esac
12187else
12188  enable_fast_install=yes
12189fi
12190
12191
12192{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12193echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12194if test "${lt_cv_path_SED+set}" = set; then
12195  echo $ECHO_N "(cached) $ECHO_C" >&6
12196else
12197  # Loop through the user's path and test for sed and gsed.
12198# Then use that list of sed's as ones to test for truncation.
12199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12200for as_dir in $PATH
12201do
12202  IFS=$as_save_IFS
12203  test -z "$as_dir" && as_dir=.
12204  for lt_ac_prog in sed gsed; do
12205    for ac_exec_ext in '' $ac_executable_extensions; do
12206      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12207        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12208      fi
12209    done
12210  done
12211done
12212lt_ac_max=0
12213lt_ac_count=0
12214# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12215# along with /bin/sed that truncates output.
12216for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12217  test ! -f $lt_ac_sed && continue
12218  cat /dev/null > conftest.in
12219  lt_ac_count=0
12220  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12221  # Check for GNU sed and select it if it is found.
12222  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12223    lt_cv_path_SED=$lt_ac_sed
12224    break
12225  fi
12226  while true; do
12227    cat conftest.in conftest.in >conftest.tmp
12228    mv conftest.tmp conftest.in
12229    cp conftest.in conftest.nl
12230    echo >>conftest.nl
12231    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12232    cmp -s conftest.out conftest.nl || break
12233    # 10000 chars as input seems more than enough
12234    test $lt_ac_count -gt 10 && break
12235    lt_ac_count=`expr $lt_ac_count + 1`
12236    if test $lt_ac_count -gt $lt_ac_max; then
12237      lt_ac_max=$lt_ac_count
12238      lt_cv_path_SED=$lt_ac_sed
12239    fi
12240  done
12241done
12242
12243fi
12244
12245SED=$lt_cv_path_SED
12246{ echo "$as_me:$LINENO: result: $SED" >&5
12247echo "${ECHO_T}$SED" >&6; }
12248
12249
12250# Check whether --with-gnu-ld was given.
12251if test "${with_gnu_ld+set}" = set; then
12252  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12253else
12254  with_gnu_ld=no
12255fi
12256
12257ac_prog=ld
12258if test "$GCC" = yes; then
12259  # Check if gcc -print-prog-name=ld gives a path.
12260  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12261echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12262  case $host in
12263  *-*-mingw*)
12264    # gcc leaves a trailing carriage return which upsets mingw
12265    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12266  *)
12267    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12268  esac
12269  case $ac_prog in
12270    # Accept absolute paths.
12271    [\\/]* | ?:[\\/]*)
12272      re_direlt='/[^/][^/]*/\.\./'
12273      # Canonicalize the pathname of ld
12274      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12275      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12276	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12277      done
12278      test -z "$LD" && LD="$ac_prog"
12279      ;;
12280  "")
12281    # If it fails, then pretend we aren't using GCC.
12282    ac_prog=ld
12283    ;;
12284  *)
12285    # If it is relative, then search for the first ld in PATH.
12286    with_gnu_ld=unknown
12287    ;;
12288  esac
12289elif test "$with_gnu_ld" = yes; then
12290  { echo "$as_me:$LINENO: checking for GNU ld" >&5
12291echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12292else
12293  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12294echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12295fi
12296if test "${lt_cv_path_LD+set}" = set; then
12297  echo $ECHO_N "(cached) $ECHO_C" >&6
12298else
12299  if test -z "$LD"; then
12300  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12301  for ac_dir in $PATH; do
12302    IFS="$lt_save_ifs"
12303    test -z "$ac_dir" && ac_dir=.
12304    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12305      lt_cv_path_LD="$ac_dir/$ac_prog"
12306      # Check to see if the program is GNU ld.  I'd rather use --version,
12307      # but apparently some variants of GNU ld only accept -v.
12308      # Break only if it was the GNU/non-GNU ld that we prefer.
12309      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12310      *GNU* | *'with BFD'*)
12311	test "$with_gnu_ld" != no && break
12312	;;
12313      *)
12314	test "$with_gnu_ld" != yes && break
12315	;;
12316      esac
12317    fi
12318  done
12319  IFS="$lt_save_ifs"
12320else
12321  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12322fi
12323fi
12324
12325LD="$lt_cv_path_LD"
12326if test -n "$LD"; then
12327  { echo "$as_me:$LINENO: result: $LD" >&5
12328echo "${ECHO_T}$LD" >&6; }
12329else
12330  { echo "$as_me:$LINENO: result: no" >&5
12331echo "${ECHO_T}no" >&6; }
12332fi
12333test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12334echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12335   { (exit 1); exit 1; }; }
12336{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12337echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12338if test "${lt_cv_prog_gnu_ld+set}" = set; then
12339  echo $ECHO_N "(cached) $ECHO_C" >&6
12340else
12341  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12342case `$LD -v 2>&1 </dev/null` in
12343*GNU* | *'with BFD'*)
12344  lt_cv_prog_gnu_ld=yes
12345  ;;
12346*)
12347  lt_cv_prog_gnu_ld=no
12348  ;;
12349esac
12350fi
12351{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12352echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12353with_gnu_ld=$lt_cv_prog_gnu_ld
12354
12355
12356{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12357echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12358if test "${lt_cv_ld_reload_flag+set}" = set; then
12359  echo $ECHO_N "(cached) $ECHO_C" >&6
12360else
12361  lt_cv_ld_reload_flag='-r'
12362fi
12363{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12364echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12365reload_flag=$lt_cv_ld_reload_flag
12366case $reload_flag in
12367"" | " "*) ;;
12368*) reload_flag=" $reload_flag" ;;
12369esac
12370reload_cmds='$LD$reload_flag -o $output$reload_objs'
12371case $host_os in
12372  darwin*)
12373    if test "$GCC" = yes; then
12374      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12375    else
12376      reload_cmds='$LD$reload_flag -o $output$reload_objs'
12377    fi
12378    ;;
12379esac
12380
12381{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12382echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12383if test "${lt_cv_deplibs_check_method+set}" = set; then
12384  echo $ECHO_N "(cached) $ECHO_C" >&6
12385else
12386  lt_cv_file_magic_cmd='$MAGIC_CMD'
12387lt_cv_file_magic_test_file=
12388lt_cv_deplibs_check_method='unknown'
12389# Need to set the preceding variable on all platforms that support
12390# interlibrary dependencies.
12391# 'none' -- dependencies not supported.
12392# `unknown' -- same as none, but documents that we really don't know.
12393# 'pass_all' -- all dependencies passed with no checks.
12394# 'test_compile' -- check by making test program.
12395# 'file_magic [[regex]]' -- check by looking for files in library path
12396# which responds to the $file_magic_cmd with a given extended regex.
12397# If you have `file' or equivalent on your system and you're not sure
12398# whether `pass_all' will *always* work, you probably want this one.
12399
12400case $host_os in
12401aix4* | aix5*)
12402  lt_cv_deplibs_check_method=pass_all
12403  ;;
12404
12405beos*)
12406  lt_cv_deplibs_check_method=pass_all
12407  ;;
12408
12409bsdi[45]*)
12410  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12411  lt_cv_file_magic_cmd='/usr/bin/file -L'
12412  lt_cv_file_magic_test_file=/shlib/libc.so
12413  ;;
12414
12415cygwin*)
12416  # func_win32_libid is a shell function defined in ltmain.sh
12417  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12418  lt_cv_file_magic_cmd='func_win32_libid'
12419  ;;
12420
12421mingw* | pw32*)
12422  # Base MSYS/MinGW do not provide the 'file' command needed by
12423  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12424  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12425  lt_cv_file_magic_cmd='$OBJDUMP -f'
12426  ;;
12427
12428darwin* | rhapsody*)
12429  lt_cv_deplibs_check_method=pass_all
12430  ;;
12431
12432freebsd* | kfreebsd*-gnu | dragonfly*)
12433  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12434    case $host_cpu in
12435    i*86 )
12436      # Not sure whether the presence of OpenBSD here was a mistake.
12437      # Let's accept both of them until this is cleared up.
12438      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12439      lt_cv_file_magic_cmd=/usr/bin/file
12440      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12441      ;;
12442    esac
12443  else
12444    lt_cv_deplibs_check_method=pass_all
12445  fi
12446  ;;
12447
12448gnu*)
12449  lt_cv_deplibs_check_method=pass_all
12450  ;;
12451
12452hpux10.20* | hpux11*)
12453  lt_cv_file_magic_cmd=/usr/bin/file
12454  case $host_cpu in
12455  ia64*)
12456    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12457    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12458    ;;
12459  hppa*64*)
12460    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]'
12461    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12462    ;;
12463  *)
12464    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12465    lt_cv_file_magic_test_file=/usr/lib/libc.sl
12466    ;;
12467  esac
12468  ;;
12469
12470interix3*)
12471  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12472  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12473  ;;
12474
12475irix5* | irix6* | nonstopux*)
12476  case $LD in
12477  *-32|*"-32 ") libmagic=32-bit;;
12478  *-n32|*"-n32 ") libmagic=N32;;
12479  *-64|*"-64 ") libmagic=64-bit;;
12480  *) libmagic=never-match;;
12481  esac
12482  lt_cv_deplibs_check_method=pass_all
12483  ;;
12484
12485# This must be Linux ELF.
12486linux*)
12487  lt_cv_deplibs_check_method=pass_all
12488  ;;
12489
12490netbsd*)
12491  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12492    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12493  else
12494    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12495  fi
12496  ;;
12497
12498newos6*)
12499  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12500  lt_cv_file_magic_cmd=/usr/bin/file
12501  lt_cv_file_magic_test_file=/usr/lib/libnls.so
12502  ;;
12503
12504nto-qnx*)
12505  lt_cv_deplibs_check_method=unknown
12506  ;;
12507
12508openbsd*)
12509  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12510    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12511  else
12512    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12513  fi
12514  ;;
12515
12516osf3* | osf4* | osf5*)
12517  lt_cv_deplibs_check_method=pass_all
12518  ;;
12519
12520solaris*)
12521  lt_cv_deplibs_check_method=pass_all
12522  ;;
12523
12524sysv4 | sysv4.3*)
12525  case $host_vendor in
12526  motorola)
12527    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]'
12528    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12529    ;;
12530  ncr)
12531    lt_cv_deplibs_check_method=pass_all
12532    ;;
12533  sequent)
12534    lt_cv_file_magic_cmd='/bin/file'
12535    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12536    ;;
12537  sni)
12538    lt_cv_file_magic_cmd='/bin/file'
12539    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12540    lt_cv_file_magic_test_file=/lib/libc.so
12541    ;;
12542  siemens)
12543    lt_cv_deplibs_check_method=pass_all
12544    ;;
12545  pc)
12546    lt_cv_deplibs_check_method=pass_all
12547    ;;
12548  esac
12549  ;;
12550
12551sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12552  lt_cv_deplibs_check_method=pass_all
12553  ;;
12554esac
12555
12556fi
12557{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12558echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12559file_magic_cmd=$lt_cv_file_magic_cmd
12560deplibs_check_method=$lt_cv_deplibs_check_method
12561test -z "$deplibs_check_method" && deplibs_check_method=unknown
12562
12563
12564
12565# If no C compiler was specified, use CC.
12566LTCC=${LTCC-"$CC"}
12567
12568# If no C compiler flags were specified, use CFLAGS.
12569LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12570
12571# Allow CC to be a program name with arguments.
12572compiler=$CC
12573
12574# Check whether --enable-libtool-lock was given.
12575if test "${enable_libtool_lock+set}" = set; then
12576  enableval=$enable_libtool_lock;
12577fi
12578
12579test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12580
12581# Some flags need to be propagated to the compiler or linker for good
12582# libtool support.
12583case $host in
12584ia64-*-hpux*)
12585  # Find out which ABI we are using.
12586  echo 'int i;' > conftest.$ac_ext
12587  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12588  (eval $ac_compile) 2>&5
12589  ac_status=$?
12590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591  (exit $ac_status); }; then
12592    case `/usr/bin/file conftest.$ac_objext` in
12593    *ELF-32*)
12594      HPUX_IA64_MODE="32"
12595      ;;
12596    *ELF-64*)
12597      HPUX_IA64_MODE="64"
12598      ;;
12599    esac
12600  fi
12601  rm -rf conftest*
12602  ;;
12603*-*-irix6*)
12604  # Find out which ABI we are using.
12605  echo '#line 12605 "configure"' > conftest.$ac_ext
12606  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12607  (eval $ac_compile) 2>&5
12608  ac_status=$?
12609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610  (exit $ac_status); }; then
12611   if test "$lt_cv_prog_gnu_ld" = yes; then
12612    case `/usr/bin/file conftest.$ac_objext` in
12613    *32-bit*)
12614      LD="${LD-ld} -melf32bsmip"
12615      ;;
12616    *N32*)
12617      LD="${LD-ld} -melf32bmipn32"
12618      ;;
12619    *64-bit*)
12620      LD="${LD-ld} -melf64bmip"
12621      ;;
12622    esac
12623   else
12624    case `/usr/bin/file conftest.$ac_objext` in
12625    *32-bit*)
12626      LD="${LD-ld} -32"
12627      ;;
12628    *N32*)
12629      LD="${LD-ld} -n32"
12630      ;;
12631    *64-bit*)
12632      LD="${LD-ld} -64"
12633      ;;
12634    esac
12635   fi
12636  fi
12637  rm -rf conftest*
12638  ;;
12639
12640x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12641  # Find out which ABI we are using.
12642  echo 'int i;' > conftest.$ac_ext
12643  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12644  (eval $ac_compile) 2>&5
12645  ac_status=$?
12646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647  (exit $ac_status); }; then
12648    case `/usr/bin/file conftest.o` in
12649    *32-bit*)
12650      case $host in
12651        x86_64-*linux*)
12652          LD="${LD-ld} -m elf_i386"
12653          ;;
12654        ppc64-*linux*|powerpc64-*linux*)
12655          LD="${LD-ld} -m elf32ppclinux"
12656          ;;
12657        s390x-*linux*)
12658          LD="${LD-ld} -m elf_s390"
12659          ;;
12660        sparc64-*linux*)
12661          LD="${LD-ld} -m elf32_sparc"
12662          ;;
12663      esac
12664      ;;
12665    *64-bit*)
12666      case $host in
12667        x86_64-*linux*)
12668          LD="${LD-ld} -m elf_x86_64"
12669          ;;
12670        ppc*-*linux*|powerpc*-*linux*)
12671          LD="${LD-ld} -m elf64ppc"
12672          ;;
12673        s390*-*linux*)
12674          LD="${LD-ld} -m elf64_s390"
12675          ;;
12676        sparc*-*linux*)
12677          LD="${LD-ld} -m elf64_sparc"
12678          ;;
12679      esac
12680      ;;
12681    esac
12682  fi
12683  rm -rf conftest*
12684  ;;
12685
12686*-*-sco3.2v5*)
12687  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12688  SAVE_CFLAGS="$CFLAGS"
12689  CFLAGS="$CFLAGS -belf"
12690  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12691echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12692if test "${lt_cv_cc_needs_belf+set}" = set; then
12693  echo $ECHO_N "(cached) $ECHO_C" >&6
12694else
12695  ac_ext=c
12696ac_cpp='$CPP $CPPFLAGS'
12697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12699ac_compiler_gnu=$ac_cv_c_compiler_gnu
12700
12701     cat >conftest.$ac_ext <<_ACEOF
12702/* confdefs.h.  */
12703_ACEOF
12704cat confdefs.h >>conftest.$ac_ext
12705cat >>conftest.$ac_ext <<_ACEOF
12706/* end confdefs.h.  */
12707
12708int
12709main ()
12710{
12711
12712  ;
12713  return 0;
12714}
12715_ACEOF
12716rm -f conftest.$ac_objext conftest$ac_exeext
12717if { (ac_try="$ac_link"
12718case "(($ac_try" in
12719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12720  *) ac_try_echo=$ac_try;;
12721esac
12722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12723  (eval "$ac_link") 2>conftest.er1
12724  ac_status=$?
12725  grep -v '^ *+' conftest.er1 >conftest.err
12726  rm -f conftest.er1
12727  cat conftest.err >&5
12728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729  (exit $ac_status); } &&
12730	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12731  { (case "(($ac_try" in
12732  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12733  *) ac_try_echo=$ac_try;;
12734esac
12735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12736  (eval "$ac_try") 2>&5
12737  ac_status=$?
12738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739  (exit $ac_status); }; } &&
12740	 { ac_try='test -s conftest$ac_exeext'
12741  { (case "(($ac_try" in
12742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12743  *) ac_try_echo=$ac_try;;
12744esac
12745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12746  (eval "$ac_try") 2>&5
12747  ac_status=$?
12748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749  (exit $ac_status); }; }; then
12750  lt_cv_cc_needs_belf=yes
12751else
12752  echo "$as_me: failed program was:" >&5
12753sed 's/^/| /' conftest.$ac_ext >&5
12754
12755	lt_cv_cc_needs_belf=no
12756fi
12757
12758rm -f core conftest.err conftest.$ac_objext \
12759      conftest$ac_exeext conftest.$ac_ext
12760     ac_ext=c
12761ac_cpp='$CPP $CPPFLAGS'
12762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12764ac_compiler_gnu=$ac_cv_c_compiler_gnu
12765
12766fi
12767{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12768echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12769  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12770    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12771    CFLAGS="$SAVE_CFLAGS"
12772  fi
12773  ;;
12774sparc*-*solaris*)
12775  # Find out which ABI we are using.
12776  echo 'int i;' > conftest.$ac_ext
12777  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12778  (eval $ac_compile) 2>&5
12779  ac_status=$?
12780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781  (exit $ac_status); }; then
12782    case `/usr/bin/file conftest.o` in
12783    *64-bit*)
12784      case $lt_cv_prog_gnu_ld in
12785      yes*) LD="${LD-ld} -m elf64_sparc" ;;
12786      *)    LD="${LD-ld} -64" ;;
12787      esac
12788      ;;
12789    esac
12790  fi
12791  rm -rf conftest*
12792  ;;
12793
12794
12795esac
12796
12797need_locks="$enable_libtool_lock"
12798
12799
12800
12801
12802if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12803    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12804    (test "X$CXX" != "Xg++"))) ; then
12805  ac_ext=cpp
12806ac_cpp='$CXXCPP $CPPFLAGS'
12807ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12808ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12809ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12810{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12811echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12812if test -z "$CXXCPP"; then
12813  if test "${ac_cv_prog_CXXCPP+set}" = set; then
12814  echo $ECHO_N "(cached) $ECHO_C" >&6
12815else
12816      # Double quotes because CXXCPP needs to be expanded
12817    for CXXCPP in "$CXX -E" "/lib/cpp"
12818    do
12819      ac_preproc_ok=false
12820for ac_cxx_preproc_warn_flag in '' yes
12821do
12822  # Use a header file that comes with gcc, so configuring glibc
12823  # with a fresh cross-compiler works.
12824  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12825  # <limits.h> exists even on freestanding compilers.
12826  # On the NeXT, cc -E runs the code through the compiler's parser,
12827  # not just through cpp. "Syntax error" is here to catch this case.
12828  cat >conftest.$ac_ext <<_ACEOF
12829/* confdefs.h.  */
12830_ACEOF
12831cat confdefs.h >>conftest.$ac_ext
12832cat >>conftest.$ac_ext <<_ACEOF
12833/* end confdefs.h.  */
12834#ifdef __STDC__
12835# include <limits.h>
12836#else
12837# include <assert.h>
12838#endif
12839		     Syntax error
12840_ACEOF
12841if { (ac_try="$ac_cpp conftest.$ac_ext"
12842case "(($ac_try" in
12843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12844  *) ac_try_echo=$ac_try;;
12845esac
12846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12847  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12848  ac_status=$?
12849  grep -v '^ *+' conftest.er1 >conftest.err
12850  rm -f conftest.er1
12851  cat conftest.err >&5
12852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853  (exit $ac_status); } >/dev/null; then
12854  if test -s conftest.err; then
12855    ac_cpp_err=$ac_cxx_preproc_warn_flag
12856    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12857  else
12858    ac_cpp_err=
12859  fi
12860else
12861  ac_cpp_err=yes
12862fi
12863if test -z "$ac_cpp_err"; then
12864  :
12865else
12866  echo "$as_me: failed program was:" >&5
12867sed 's/^/| /' conftest.$ac_ext >&5
12868
12869  # Broken: fails on valid input.
12870continue
12871fi
12872
12873rm -f conftest.err conftest.$ac_ext
12874
12875  # OK, works on sane cases.  Now check whether nonexistent headers
12876  # can be detected and how.
12877  cat >conftest.$ac_ext <<_ACEOF
12878/* confdefs.h.  */
12879_ACEOF
12880cat confdefs.h >>conftest.$ac_ext
12881cat >>conftest.$ac_ext <<_ACEOF
12882/* end confdefs.h.  */
12883#include <ac_nonexistent.h>
12884_ACEOF
12885if { (ac_try="$ac_cpp conftest.$ac_ext"
12886case "(($ac_try" in
12887  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12888  *) ac_try_echo=$ac_try;;
12889esac
12890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12891  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12892  ac_status=$?
12893  grep -v '^ *+' conftest.er1 >conftest.err
12894  rm -f conftest.er1
12895  cat conftest.err >&5
12896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897  (exit $ac_status); } >/dev/null; then
12898  if test -s conftest.err; then
12899    ac_cpp_err=$ac_cxx_preproc_warn_flag
12900    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12901  else
12902    ac_cpp_err=
12903  fi
12904else
12905  ac_cpp_err=yes
12906fi
12907if test -z "$ac_cpp_err"; then
12908  # Broken: success on invalid input.
12909continue
12910else
12911  echo "$as_me: failed program was:" >&5
12912sed 's/^/| /' conftest.$ac_ext >&5
12913
12914  # Passes both tests.
12915ac_preproc_ok=:
12916break
12917fi
12918
12919rm -f conftest.err conftest.$ac_ext
12920
12921done
12922# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12923rm -f conftest.err conftest.$ac_ext
12924if $ac_preproc_ok; then
12925  break
12926fi
12927
12928    done
12929    ac_cv_prog_CXXCPP=$CXXCPP
12930
12931fi
12932  CXXCPP=$ac_cv_prog_CXXCPP
12933else
12934  ac_cv_prog_CXXCPP=$CXXCPP
12935fi
12936{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
12937echo "${ECHO_T}$CXXCPP" >&6; }
12938ac_preproc_ok=false
12939for ac_cxx_preproc_warn_flag in '' yes
12940do
12941  # Use a header file that comes with gcc, so configuring glibc
12942  # with a fresh cross-compiler works.
12943  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12944  # <limits.h> exists even on freestanding compilers.
12945  # On the NeXT, cc -E runs the code through the compiler's parser,
12946  # not just through cpp. "Syntax error" is here to catch this case.
12947  cat >conftest.$ac_ext <<_ACEOF
12948/* confdefs.h.  */
12949_ACEOF
12950cat confdefs.h >>conftest.$ac_ext
12951cat >>conftest.$ac_ext <<_ACEOF
12952/* end confdefs.h.  */
12953#ifdef __STDC__
12954# include <limits.h>
12955#else
12956# include <assert.h>
12957#endif
12958		     Syntax error
12959_ACEOF
12960if { (ac_try="$ac_cpp conftest.$ac_ext"
12961case "(($ac_try" in
12962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12963  *) ac_try_echo=$ac_try;;
12964esac
12965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12966  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12967  ac_status=$?
12968  grep -v '^ *+' conftest.er1 >conftest.err
12969  rm -f conftest.er1
12970  cat conftest.err >&5
12971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972  (exit $ac_status); } >/dev/null; then
12973  if test -s conftest.err; then
12974    ac_cpp_err=$ac_cxx_preproc_warn_flag
12975    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12976  else
12977    ac_cpp_err=
12978  fi
12979else
12980  ac_cpp_err=yes
12981fi
12982if test -z "$ac_cpp_err"; then
12983  :
12984else
12985  echo "$as_me: failed program was:" >&5
12986sed 's/^/| /' conftest.$ac_ext >&5
12987
12988  # Broken: fails on valid input.
12989continue
12990fi
12991
12992rm -f conftest.err conftest.$ac_ext
12993
12994  # OK, works on sane cases.  Now check whether nonexistent headers
12995  # can be detected and how.
12996  cat >conftest.$ac_ext <<_ACEOF
12997/* confdefs.h.  */
12998_ACEOF
12999cat confdefs.h >>conftest.$ac_ext
13000cat >>conftest.$ac_ext <<_ACEOF
13001/* end confdefs.h.  */
13002#include <ac_nonexistent.h>
13003_ACEOF
13004if { (ac_try="$ac_cpp conftest.$ac_ext"
13005case "(($ac_try" in
13006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13007  *) ac_try_echo=$ac_try;;
13008esac
13009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13010  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13011  ac_status=$?
13012  grep -v '^ *+' conftest.er1 >conftest.err
13013  rm -f conftest.er1
13014  cat conftest.err >&5
13015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016  (exit $ac_status); } >/dev/null; then
13017  if test -s conftest.err; then
13018    ac_cpp_err=$ac_cxx_preproc_warn_flag
13019    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13020  else
13021    ac_cpp_err=
13022  fi
13023else
13024  ac_cpp_err=yes
13025fi
13026if test -z "$ac_cpp_err"; then
13027  # Broken: success on invalid input.
13028continue
13029else
13030  echo "$as_me: failed program was:" >&5
13031sed 's/^/| /' conftest.$ac_ext >&5
13032
13033  # Passes both tests.
13034ac_preproc_ok=:
13035break
13036fi
13037
13038rm -f conftest.err conftest.$ac_ext
13039
13040done
13041# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13042rm -f conftest.err conftest.$ac_ext
13043if $ac_preproc_ok; then
13044  :
13045else
13046  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13047See \`config.log' for more details." >&5
13048echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13049See \`config.log' for more details." >&2;}
13050   { (exit 1); exit 1; }; }
13051fi
13052
13053ac_ext=cpp
13054ac_cpp='$CXXCPP $CPPFLAGS'
13055ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13056ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13057ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13058
13059fi
13060
13061
13062ac_ext=f
13063ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13064ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13065ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13066if test -n "$ac_tool_prefix"; then
13067  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
13068  do
13069    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13070set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13071{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13073if test "${ac_cv_prog_F77+set}" = set; then
13074  echo $ECHO_N "(cached) $ECHO_C" >&6
13075else
13076  if test -n "$F77"; then
13077  ac_cv_prog_F77="$F77" # Let the user override the test.
13078else
13079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13080for as_dir in $PATH
13081do
13082  IFS=$as_save_IFS
13083  test -z "$as_dir" && as_dir=.
13084  for ac_exec_ext in '' $ac_executable_extensions; do
13085  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13086    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13087    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13088    break 2
13089  fi
13090done
13091done
13092IFS=$as_save_IFS
13093
13094fi
13095fi
13096F77=$ac_cv_prog_F77
13097if test -n "$F77"; then
13098  { echo "$as_me:$LINENO: result: $F77" >&5
13099echo "${ECHO_T}$F77" >&6; }
13100else
13101  { echo "$as_me:$LINENO: result: no" >&5
13102echo "${ECHO_T}no" >&6; }
13103fi
13104
13105
13106    test -n "$F77" && break
13107  done
13108fi
13109if test -z "$F77"; then
13110  ac_ct_F77=$F77
13111  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
13112do
13113  # Extract the first word of "$ac_prog", so it can be a program name with args.
13114set dummy $ac_prog; ac_word=$2
13115{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13117if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13118  echo $ECHO_N "(cached) $ECHO_C" >&6
13119else
13120  if test -n "$ac_ct_F77"; then
13121  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13122else
13123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13124for as_dir in $PATH
13125do
13126  IFS=$as_save_IFS
13127  test -z "$as_dir" && as_dir=.
13128  for ac_exec_ext in '' $ac_executable_extensions; do
13129  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13130    ac_cv_prog_ac_ct_F77="$ac_prog"
13131    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13132    break 2
13133  fi
13134done
13135done
13136IFS=$as_save_IFS
13137
13138fi
13139fi
13140ac_ct_F77=$ac_cv_prog_ac_ct_F77
13141if test -n "$ac_ct_F77"; then
13142  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13143echo "${ECHO_T}$ac_ct_F77" >&6; }
13144else
13145  { echo "$as_me:$LINENO: result: no" >&5
13146echo "${ECHO_T}no" >&6; }
13147fi
13148
13149
13150  test -n "$ac_ct_F77" && break
13151done
13152
13153  if test "x$ac_ct_F77" = x; then
13154    F77=""
13155  else
13156    case $cross_compiling:$ac_tool_warned in
13157yes:)
13158{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13159whose name does not start with the host triplet.  If you think this
13160configuration is useful to you, please write to autoconf@gnu.org." >&5
13161echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13162whose name does not start with the host triplet.  If you think this
13163configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13164ac_tool_warned=yes ;;
13165esac
13166    F77=$ac_ct_F77
13167  fi
13168fi
13169
13170
13171# Provide some information about the compiler.
13172echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13173ac_compiler=`set X $ac_compile; echo $2`
13174{ (ac_try="$ac_compiler --version >&5"
13175case "(($ac_try" in
13176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13177  *) ac_try_echo=$ac_try;;
13178esac
13179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13180  (eval "$ac_compiler --version >&5") 2>&5
13181  ac_status=$?
13182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183  (exit $ac_status); }
13184{ (ac_try="$ac_compiler -v >&5"
13185case "(($ac_try" in
13186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13187  *) ac_try_echo=$ac_try;;
13188esac
13189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13190  (eval "$ac_compiler -v >&5") 2>&5
13191  ac_status=$?
13192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193  (exit $ac_status); }
13194{ (ac_try="$ac_compiler -V >&5"
13195case "(($ac_try" in
13196  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13197  *) ac_try_echo=$ac_try;;
13198esac
13199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13200  (eval "$ac_compiler -V >&5") 2>&5
13201  ac_status=$?
13202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203  (exit $ac_status); }
13204rm -f a.out
13205
13206# If we don't use `.F' as extension, the preprocessor is not run on the
13207# input file.  (Note that this only needs to work for GNU compilers.)
13208ac_save_ext=$ac_ext
13209ac_ext=F
13210{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13211echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13212if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13213  echo $ECHO_N "(cached) $ECHO_C" >&6
13214else
13215  cat >conftest.$ac_ext <<_ACEOF
13216      program main
13217#ifndef __GNUC__
13218       choke me
13219#endif
13220
13221      end
13222_ACEOF
13223rm -f conftest.$ac_objext
13224if { (ac_try="$ac_compile"
13225case "(($ac_try" in
13226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13227  *) ac_try_echo=$ac_try;;
13228esac
13229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13230  (eval "$ac_compile") 2>conftest.er1
13231  ac_status=$?
13232  grep -v '^ *+' conftest.er1 >conftest.err
13233  rm -f conftest.er1
13234  cat conftest.err >&5
13235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236  (exit $ac_status); } &&
13237	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13238  { (case "(($ac_try" in
13239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13240  *) ac_try_echo=$ac_try;;
13241esac
13242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13243  (eval "$ac_try") 2>&5
13244  ac_status=$?
13245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246  (exit $ac_status); }; } &&
13247	 { ac_try='test -s conftest.$ac_objext'
13248  { (case "(($ac_try" in
13249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13250  *) ac_try_echo=$ac_try;;
13251esac
13252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13253  (eval "$ac_try") 2>&5
13254  ac_status=$?
13255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256  (exit $ac_status); }; }; then
13257  ac_compiler_gnu=yes
13258else
13259  echo "$as_me: failed program was:" >&5
13260sed 's/^/| /' conftest.$ac_ext >&5
13261
13262	ac_compiler_gnu=no
13263fi
13264
13265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13266ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13267
13268fi
13269{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13270echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13271ac_ext=$ac_save_ext
13272ac_test_FFLAGS=${FFLAGS+set}
13273ac_save_FFLAGS=$FFLAGS
13274FFLAGS=
13275{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13276echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13277if test "${ac_cv_prog_f77_g+set}" = set; then
13278  echo $ECHO_N "(cached) $ECHO_C" >&6
13279else
13280  FFLAGS=-g
13281cat >conftest.$ac_ext <<_ACEOF
13282      program main
13283
13284      end
13285_ACEOF
13286rm -f conftest.$ac_objext
13287if { (ac_try="$ac_compile"
13288case "(($ac_try" in
13289  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13290  *) ac_try_echo=$ac_try;;
13291esac
13292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13293  (eval "$ac_compile") 2>conftest.er1
13294  ac_status=$?
13295  grep -v '^ *+' conftest.er1 >conftest.err
13296  rm -f conftest.er1
13297  cat conftest.err >&5
13298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299  (exit $ac_status); } &&
13300	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13301  { (case "(($ac_try" in
13302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13303  *) ac_try_echo=$ac_try;;
13304esac
13305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13306  (eval "$ac_try") 2>&5
13307  ac_status=$?
13308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309  (exit $ac_status); }; } &&
13310	 { ac_try='test -s conftest.$ac_objext'
13311  { (case "(($ac_try" in
13312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13313  *) ac_try_echo=$ac_try;;
13314esac
13315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13316  (eval "$ac_try") 2>&5
13317  ac_status=$?
13318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319  (exit $ac_status); }; }; then
13320  ac_cv_prog_f77_g=yes
13321else
13322  echo "$as_me: failed program was:" >&5
13323sed 's/^/| /' conftest.$ac_ext >&5
13324
13325	ac_cv_prog_f77_g=no
13326fi
13327
13328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13329
13330fi
13331{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13332echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13333if test "$ac_test_FFLAGS" = set; then
13334  FFLAGS=$ac_save_FFLAGS
13335elif test $ac_cv_prog_f77_g = yes; then
13336  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13337    FFLAGS="-g -O2"
13338  else
13339    FFLAGS="-g"
13340  fi
13341else
13342  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13343    FFLAGS="-O2"
13344  else
13345    FFLAGS=
13346  fi
13347fi
13348
13349G77=`test $ac_compiler_gnu = yes && echo yes`
13350ac_ext=c
13351ac_cpp='$CPP $CPPFLAGS'
13352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13354ac_compiler_gnu=$ac_cv_c_compiler_gnu
13355
13356
13357
13358# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13359
13360# find the maximum length of command line arguments
13361{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13362echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13363if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13364  echo $ECHO_N "(cached) $ECHO_C" >&6
13365else
13366    i=0
13367  teststring="ABCD"
13368
13369  case $build_os in
13370  msdosdjgpp*)
13371    # On DJGPP, this test can blow up pretty badly due to problems in libc
13372    # (any single argument exceeding 2000 bytes causes a buffer overrun
13373    # during glob expansion).  Even if it were fixed, the result of this
13374    # check would be larger than it should be.
13375    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13376    ;;
13377
13378  gnu*)
13379    # Under GNU Hurd, this test is not required because there is
13380    # no limit to the length of command line arguments.
13381    # Libtool will interpret -1 as no limit whatsoever
13382    lt_cv_sys_max_cmd_len=-1;
13383    ;;
13384
13385  cygwin* | mingw*)
13386    # On Win9x/ME, this test blows up -- it succeeds, but takes
13387    # about 5 minutes as the teststring grows exponentially.
13388    # Worse, since 9x/ME are not pre-emptively multitasking,
13389    # you end up with a "frozen" computer, even though with patience
13390    # the test eventually succeeds (with a max line length of 256k).
13391    # Instead, let's just punt: use the minimum linelength reported by
13392    # all of the supported platforms: 8192 (on NT/2K/XP).
13393    lt_cv_sys_max_cmd_len=8192;
13394    ;;
13395
13396  amigaos*)
13397    # On AmigaOS with pdksh, this test takes hours, literally.
13398    # So we just punt and use a minimum line length of 8192.
13399    lt_cv_sys_max_cmd_len=8192;
13400    ;;
13401
13402  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13403    # This has been around since 386BSD, at least.  Likely further.
13404    if test -x /sbin/sysctl; then
13405      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13406    elif test -x /usr/sbin/sysctl; then
13407      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13408    else
13409      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
13410    fi
13411    # And add a safety zone
13412    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13413    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13414    ;;
13415
13416  interix*)
13417    # We know the value 262144 and hardcode it with a safety zone (like BSD)
13418    lt_cv_sys_max_cmd_len=196608
13419    ;;
13420
13421  osf*)
13422    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13423    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13424    # nice to cause kernel panics so lets avoid the loop below.
13425    # First set a reasonable default.
13426    lt_cv_sys_max_cmd_len=16384
13427    #
13428    if test -x /sbin/sysconfig; then
13429      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13430        *1*) lt_cv_sys_max_cmd_len=-1 ;;
13431      esac
13432    fi
13433    ;;
13434  sco3.2v5*)
13435    lt_cv_sys_max_cmd_len=102400
13436    ;;
13437  sysv5* | sco5v6* | sysv4.2uw2*)
13438    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13439    if test -n "$kargmax"; then
13440      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
13441    else
13442      lt_cv_sys_max_cmd_len=32768
13443    fi
13444    ;;
13445  *)
13446    # If test is not a shell built-in, we'll probably end up computing a
13447    # maximum length that is only half of the actual maximum length, but
13448    # we can't tell.
13449    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13450    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13451	       = "XX$teststring") >/dev/null 2>&1 &&
13452	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
13453	    lt_cv_sys_max_cmd_len=$new_result &&
13454	    test $i != 17 # 1/2 MB should be enough
13455    do
13456      i=`expr $i + 1`
13457      teststring=$teststring$teststring
13458    done
13459    teststring=
13460    # Add a significant safety factor because C++ compilers can tack on massive
13461    # amounts of additional arguments before passing them to the linker.
13462    # It appears as though 1/2 is a usable value.
13463    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13464    ;;
13465  esac
13466
13467fi
13468
13469if test -n $lt_cv_sys_max_cmd_len ; then
13470  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13471echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13472else
13473  { echo "$as_me:$LINENO: result: none" >&5
13474echo "${ECHO_T}none" >&6; }
13475fi
13476
13477
13478
13479
13480# Check for command to grab the raw symbol name followed by C symbol from nm.
13481{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13482echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13483if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13484  echo $ECHO_N "(cached) $ECHO_C" >&6
13485else
13486
13487# These are sane defaults that work on at least a few old systems.
13488# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13489
13490# Character class describing NM global symbol codes.
13491symcode='[BCDEGRST]'
13492
13493# Regexp to match symbols that can be accessed directly from C.
13494sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13495
13496# Transform an extracted symbol line into a proper C declaration
13497lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13498
13499# Transform an extracted symbol line into symbol name and symbol address
13500lt_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'"
13501
13502# Define system-specific variables.
13503case $host_os in
13504aix*)
13505  symcode='[BCDT]'
13506  ;;
13507cygwin* | mingw* | pw32*)
13508  symcode='[ABCDGISTW]'
13509  ;;
13510hpux*) # Its linker distinguishes data from code symbols
13511  if test "$host_cpu" = ia64; then
13512    symcode='[ABCDEGRST]'
13513  fi
13514  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13515  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'"
13516  ;;
13517linux*)
13518  if test "$host_cpu" = ia64; then
13519    symcode='[ABCDGIRSTW]'
13520    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13521    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'"
13522  fi
13523  ;;
13524irix* | nonstopux*)
13525  symcode='[BCDEGRST]'
13526  ;;
13527osf*)
13528  symcode='[BCDEGQRST]'
13529  ;;
13530solaris*)
13531  symcode='[BDRT]'
13532  ;;
13533sco3.2v5*)
13534  symcode='[DT]'
13535  ;;
13536sysv4.2uw2*)
13537  symcode='[DT]'
13538  ;;
13539sysv5* | sco5v6* | unixware* | OpenUNIX*)
13540  symcode='[ABDT]'
13541  ;;
13542sysv4)
13543  symcode='[DFNSTU]'
13544  ;;
13545esac
13546
13547# Handle CRLF in mingw tool chain
13548opt_cr=
13549case $build_os in
13550mingw*)
13551  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13552  ;;
13553esac
13554
13555# If we're using GNU nm, then use its standard symbol codes.
13556case `$NM -V 2>&1` in
13557*GNU* | *'with BFD'*)
13558  symcode='[ABCDGIRSTW]' ;;
13559esac
13560
13561# Try without a prefix undercore, then with it.
13562for ac_symprfx in "" "_"; do
13563
13564  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13565  symxfrm="\\1 $ac_symprfx\\2 \\2"
13566
13567  # Write the raw and C identifiers.
13568  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13569
13570  # Check to see that the pipe works correctly.
13571  pipe_works=no
13572
13573  rm -f conftest*
13574  cat > conftest.$ac_ext <<EOF
13575#ifdef __cplusplus
13576extern "C" {
13577#endif
13578char nm_test_var;
13579void nm_test_func(){}
13580#ifdef __cplusplus
13581}
13582#endif
13583int main(){nm_test_var='a';nm_test_func();return(0);}
13584EOF
13585
13586  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13587  (eval $ac_compile) 2>&5
13588  ac_status=$?
13589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590  (exit $ac_status); }; then
13591    # Now try to grab the symbols.
13592    nlist=conftest.nm
13593    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13594  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13595  ac_status=$?
13596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597  (exit $ac_status); } && test -s "$nlist"; then
13598      # Try sorting and uniquifying the output.
13599      if sort "$nlist" | uniq > "$nlist"T; then
13600	mv -f "$nlist"T "$nlist"
13601      else
13602	rm -f "$nlist"T
13603      fi
13604
13605      # Make sure that we snagged all the symbols we need.
13606      if grep ' nm_test_var$' "$nlist" >/dev/null; then
13607	if grep ' nm_test_func$' "$nlist" >/dev/null; then
13608	  cat <<EOF > conftest.$ac_ext
13609#ifdef __cplusplus
13610extern "C" {
13611#endif
13612
13613EOF
13614	  # Now generate the symbol file.
13615	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13616
13617	  cat <<EOF >> conftest.$ac_ext
13618#if defined (__STDC__) && __STDC__
13619# define lt_ptr_t void *
13620#else
13621# define lt_ptr_t char *
13622# define const
13623#endif
13624
13625/* The mapping between symbol names and symbols. */
13626const struct {
13627  const char *name;
13628  lt_ptr_t address;
13629}
13630lt_preloaded_symbols[] =
13631{
13632EOF
13633	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13634	  cat <<\EOF >> conftest.$ac_ext
13635  {0, (lt_ptr_t) 0}
13636};
13637
13638#ifdef __cplusplus
13639}
13640#endif
13641EOF
13642	  # Now try linking the two files.
13643	  mv conftest.$ac_objext conftstm.$ac_objext
13644	  lt_save_LIBS="$LIBS"
13645	  lt_save_CFLAGS="$CFLAGS"
13646	  LIBS="conftstm.$ac_objext"
13647	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13648	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13649  (eval $ac_link) 2>&5
13650  ac_status=$?
13651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652  (exit $ac_status); } && test -s conftest${ac_exeext}; then
13653	    pipe_works=yes
13654	  fi
13655	  LIBS="$lt_save_LIBS"
13656	  CFLAGS="$lt_save_CFLAGS"
13657	else
13658	  echo "cannot find nm_test_func in $nlist" >&5
13659	fi
13660      else
13661	echo "cannot find nm_test_var in $nlist" >&5
13662      fi
13663    else
13664      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13665    fi
13666  else
13667    echo "$progname: failed program was:" >&5
13668    cat conftest.$ac_ext >&5
13669  fi
13670  rm -f conftest* conftst*
13671
13672  # Do not use the global_symbol_pipe unless it works.
13673  if test "$pipe_works" = yes; then
13674    break
13675  else
13676    lt_cv_sys_global_symbol_pipe=
13677  fi
13678done
13679
13680fi
13681
13682if test -z "$lt_cv_sys_global_symbol_pipe"; then
13683  lt_cv_sys_global_symbol_to_cdecl=
13684fi
13685if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13686  { echo "$as_me:$LINENO: result: failed" >&5
13687echo "${ECHO_T}failed" >&6; }
13688else
13689  { echo "$as_me:$LINENO: result: ok" >&5
13690echo "${ECHO_T}ok" >&6; }
13691fi
13692
13693{ echo "$as_me:$LINENO: checking for objdir" >&5
13694echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13695if test "${lt_cv_objdir+set}" = set; then
13696  echo $ECHO_N "(cached) $ECHO_C" >&6
13697else
13698  rm -f .libs 2>/dev/null
13699mkdir .libs 2>/dev/null
13700if test -d .libs; then
13701  lt_cv_objdir=.libs
13702else
13703  # MS-DOS does not allow filenames that begin with a dot.
13704  lt_cv_objdir=_libs
13705fi
13706rmdir .libs 2>/dev/null
13707fi
13708{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13709echo "${ECHO_T}$lt_cv_objdir" >&6; }
13710objdir=$lt_cv_objdir
13711
13712
13713
13714
13715
13716case $host_os in
13717aix3*)
13718  # AIX sometimes has problems with the GCC collect2 program.  For some
13719  # reason, if we set the COLLECT_NAMES environment variable, the problems
13720  # vanish in a puff of smoke.
13721  if test "X${COLLECT_NAMES+set}" != Xset; then
13722    COLLECT_NAMES=
13723    export COLLECT_NAMES
13724  fi
13725  ;;
13726esac
13727
13728# Sed substitution that helps us do robust quoting.  It backslashifies
13729# metacharacters that are still active within double-quoted strings.
13730Xsed='sed -e 1s/^X//'
13731sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13732
13733# Same as above, but do not quote variable references.
13734double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13735
13736# Sed substitution to delay expansion of an escaped shell variable in a
13737# double_quote_subst'ed string.
13738delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13739
13740# Sed substitution to avoid accidental globbing in evaled expressions
13741no_glob_subst='s/\*/\\\*/g'
13742
13743# Constants:
13744rm="rm -f"
13745
13746# Global variables:
13747default_ofile=mklib
13748can_build_shared=yes
13749
13750# All known linkers require a `.a' archive for static linking (except MSVC,
13751# which needs '.lib').
13752libext=a
13753ltmain="$ac_aux_dir/ltmain.sh"
13754ofile="$default_ofile"
13755with_gnu_ld="$lt_cv_prog_gnu_ld"
13756
13757if test -n "$ac_tool_prefix"; then
13758  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13759set dummy ${ac_tool_prefix}ar; ac_word=$2
13760{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13762if test "${ac_cv_prog_AR+set}" = set; then
13763  echo $ECHO_N "(cached) $ECHO_C" >&6
13764else
13765  if test -n "$AR"; then
13766  ac_cv_prog_AR="$AR" # Let the user override the test.
13767else
13768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13769for as_dir in $PATH
13770do
13771  IFS=$as_save_IFS
13772  test -z "$as_dir" && as_dir=.
13773  for ac_exec_ext in '' $ac_executable_extensions; do
13774  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13775    ac_cv_prog_AR="${ac_tool_prefix}ar"
13776    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13777    break 2
13778  fi
13779done
13780done
13781IFS=$as_save_IFS
13782
13783fi
13784fi
13785AR=$ac_cv_prog_AR
13786if test -n "$AR"; then
13787  { echo "$as_me:$LINENO: result: $AR" >&5
13788echo "${ECHO_T}$AR" >&6; }
13789else
13790  { echo "$as_me:$LINENO: result: no" >&5
13791echo "${ECHO_T}no" >&6; }
13792fi
13793
13794
13795fi
13796if test -z "$ac_cv_prog_AR"; then
13797  ac_ct_AR=$AR
13798  # Extract the first word of "ar", so it can be a program name with args.
13799set dummy ar; ac_word=$2
13800{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13802if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13803  echo $ECHO_N "(cached) $ECHO_C" >&6
13804else
13805  if test -n "$ac_ct_AR"; then
13806  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13807else
13808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13809for as_dir in $PATH
13810do
13811  IFS=$as_save_IFS
13812  test -z "$as_dir" && as_dir=.
13813  for ac_exec_ext in '' $ac_executable_extensions; do
13814  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13815    ac_cv_prog_ac_ct_AR="ar"
13816    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13817    break 2
13818  fi
13819done
13820done
13821IFS=$as_save_IFS
13822
13823fi
13824fi
13825ac_ct_AR=$ac_cv_prog_ac_ct_AR
13826if test -n "$ac_ct_AR"; then
13827  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13828echo "${ECHO_T}$ac_ct_AR" >&6; }
13829else
13830  { echo "$as_me:$LINENO: result: no" >&5
13831echo "${ECHO_T}no" >&6; }
13832fi
13833
13834  if test "x$ac_ct_AR" = x; then
13835    AR="false"
13836  else
13837    case $cross_compiling:$ac_tool_warned in
13838yes:)
13839{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13840whose name does not start with the host triplet.  If you think this
13841configuration is useful to you, please write to autoconf@gnu.org." >&5
13842echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13843whose name does not start with the host triplet.  If you think this
13844configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13845ac_tool_warned=yes ;;
13846esac
13847    AR=$ac_ct_AR
13848  fi
13849else
13850  AR="$ac_cv_prog_AR"
13851fi
13852
13853if test -n "$ac_tool_prefix"; then
13854  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13855set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13856{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13858if test "${ac_cv_prog_RANLIB+set}" = set; then
13859  echo $ECHO_N "(cached) $ECHO_C" >&6
13860else
13861  if test -n "$RANLIB"; then
13862  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13863else
13864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13865for as_dir in $PATH
13866do
13867  IFS=$as_save_IFS
13868  test -z "$as_dir" && as_dir=.
13869  for ac_exec_ext in '' $ac_executable_extensions; do
13870  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13871    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13872    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13873    break 2
13874  fi
13875done
13876done
13877IFS=$as_save_IFS
13878
13879fi
13880fi
13881RANLIB=$ac_cv_prog_RANLIB
13882if test -n "$RANLIB"; then
13883  { echo "$as_me:$LINENO: result: $RANLIB" >&5
13884echo "${ECHO_T}$RANLIB" >&6; }
13885else
13886  { echo "$as_me:$LINENO: result: no" >&5
13887echo "${ECHO_T}no" >&6; }
13888fi
13889
13890
13891fi
13892if test -z "$ac_cv_prog_RANLIB"; then
13893  ac_ct_RANLIB=$RANLIB
13894  # Extract the first word of "ranlib", so it can be a program name with args.
13895set dummy ranlib; ac_word=$2
13896{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13898if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13899  echo $ECHO_N "(cached) $ECHO_C" >&6
13900else
13901  if test -n "$ac_ct_RANLIB"; then
13902  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13903else
13904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13905for as_dir in $PATH
13906do
13907  IFS=$as_save_IFS
13908  test -z "$as_dir" && as_dir=.
13909  for ac_exec_ext in '' $ac_executable_extensions; do
13910  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13911    ac_cv_prog_ac_ct_RANLIB="ranlib"
13912    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13913    break 2
13914  fi
13915done
13916done
13917IFS=$as_save_IFS
13918
13919fi
13920fi
13921ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13922if test -n "$ac_ct_RANLIB"; then
13923  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13924echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13925else
13926  { echo "$as_me:$LINENO: result: no" >&5
13927echo "${ECHO_T}no" >&6; }
13928fi
13929
13930  if test "x$ac_ct_RANLIB" = x; then
13931    RANLIB=":"
13932  else
13933    case $cross_compiling:$ac_tool_warned in
13934yes:)
13935{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13936whose name does not start with the host triplet.  If you think this
13937configuration is useful to you, please write to autoconf@gnu.org." >&5
13938echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13939whose name does not start with the host triplet.  If you think this
13940configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13941ac_tool_warned=yes ;;
13942esac
13943    RANLIB=$ac_ct_RANLIB
13944  fi
13945else
13946  RANLIB="$ac_cv_prog_RANLIB"
13947fi
13948
13949if test -n "$ac_tool_prefix"; then
13950  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13951set dummy ${ac_tool_prefix}strip; ac_word=$2
13952{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13954if test "${ac_cv_prog_STRIP+set}" = set; then
13955  echo $ECHO_N "(cached) $ECHO_C" >&6
13956else
13957  if test -n "$STRIP"; then
13958  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13959else
13960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13961for as_dir in $PATH
13962do
13963  IFS=$as_save_IFS
13964  test -z "$as_dir" && as_dir=.
13965  for ac_exec_ext in '' $ac_executable_extensions; do
13966  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13967    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13968    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13969    break 2
13970  fi
13971done
13972done
13973IFS=$as_save_IFS
13974
13975fi
13976fi
13977STRIP=$ac_cv_prog_STRIP
13978if test -n "$STRIP"; then
13979  { echo "$as_me:$LINENO: result: $STRIP" >&5
13980echo "${ECHO_T}$STRIP" >&6; }
13981else
13982  { echo "$as_me:$LINENO: result: no" >&5
13983echo "${ECHO_T}no" >&6; }
13984fi
13985
13986
13987fi
13988if test -z "$ac_cv_prog_STRIP"; then
13989  ac_ct_STRIP=$STRIP
13990  # Extract the first word of "strip", so it can be a program name with args.
13991set dummy strip; ac_word=$2
13992{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13994if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13995  echo $ECHO_N "(cached) $ECHO_C" >&6
13996else
13997  if test -n "$ac_ct_STRIP"; then
13998  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13999else
14000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14001for as_dir in $PATH
14002do
14003  IFS=$as_save_IFS
14004  test -z "$as_dir" && as_dir=.
14005  for ac_exec_ext in '' $ac_executable_extensions; do
14006  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14007    ac_cv_prog_ac_ct_STRIP="strip"
14008    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14009    break 2
14010  fi
14011done
14012done
14013IFS=$as_save_IFS
14014
14015fi
14016fi
14017ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14018if test -n "$ac_ct_STRIP"; then
14019  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14020echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14021else
14022  { echo "$as_me:$LINENO: result: no" >&5
14023echo "${ECHO_T}no" >&6; }
14024fi
14025
14026  if test "x$ac_ct_STRIP" = x; then
14027    STRIP=":"
14028  else
14029    case $cross_compiling:$ac_tool_warned in
14030yes:)
14031{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14032whose name does not start with the host triplet.  If you think this
14033configuration is useful to you, please write to autoconf@gnu.org." >&5
14034echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14035whose name does not start with the host triplet.  If you think this
14036configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14037ac_tool_warned=yes ;;
14038esac
14039    STRIP=$ac_ct_STRIP
14040  fi
14041else
14042  STRIP="$ac_cv_prog_STRIP"
14043fi
14044
14045
14046old_CC="$CC"
14047old_CFLAGS="$CFLAGS"
14048
14049# Set sane defaults for various variables
14050test -z "$AR" && AR=ar
14051test -z "$AR_FLAGS" && AR_FLAGS=cru
14052test -z "$AS" && AS=as
14053test -z "$CC" && CC=cc
14054test -z "$LTCC" && LTCC=$CC
14055test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14056test -z "$DLLTOOL" && DLLTOOL=dlltool
14057test -z "$LD" && LD=ld
14058test -z "$LN_S" && LN_S="ln -s"
14059test -z "$MAGIC_CMD" && MAGIC_CMD=file
14060test -z "$NM" && NM=nm
14061test -z "$SED" && SED=sed
14062test -z "$OBJDUMP" && OBJDUMP=objdump
14063test -z "$RANLIB" && RANLIB=:
14064test -z "$STRIP" && STRIP=:
14065test -z "$ac_objext" && ac_objext=o
14066
14067# Determine commands to create old-style static archives.
14068old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14069old_postinstall_cmds='chmod 644 $oldlib'
14070old_postuninstall_cmds=
14071
14072if test -n "$RANLIB"; then
14073  case $host_os in
14074  openbsd*)
14075    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14076    ;;
14077  *)
14078    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14079    ;;
14080  esac
14081  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14082fi
14083
14084for cc_temp in $compiler""; do
14085  case $cc_temp in
14086    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14087    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14088    \-*) ;;
14089    *) break;;
14090  esac
14091done
14092cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14093
14094
14095# Only perform the check for file, if the check method requires it
14096case $deplibs_check_method in
14097file_magic*)
14098  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14099    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14100echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14101if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14102  echo $ECHO_N "(cached) $ECHO_C" >&6
14103else
14104  case $MAGIC_CMD in
14105[\\/*] |  ?:[\\/]*)
14106  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14107  ;;
14108*)
14109  lt_save_MAGIC_CMD="$MAGIC_CMD"
14110  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14111  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14112  for ac_dir in $ac_dummy; do
14113    IFS="$lt_save_ifs"
14114    test -z "$ac_dir" && ac_dir=.
14115    if test -f $ac_dir/${ac_tool_prefix}file; then
14116      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14117      if test -n "$file_magic_test_file"; then
14118	case $deplibs_check_method in
14119	"file_magic "*)
14120	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14121	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14122	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14123	    $EGREP "$file_magic_regex" > /dev/null; then
14124	    :
14125	  else
14126	    cat <<EOF 1>&2
14127
14128*** Warning: the command libtool uses to detect shared libraries,
14129*** $file_magic_cmd, produces output that libtool cannot recognize.
14130*** The result is that libtool may fail to recognize shared libraries
14131*** as such.  This will affect the creation of libtool libraries that
14132*** depend on shared libraries, but programs linked with such libtool
14133*** libraries will work regardless of this problem.  Nevertheless, you
14134*** may want to report the problem to your system manager and/or to
14135*** bug-libtool@gnu.org
14136
14137EOF
14138	  fi ;;
14139	esac
14140      fi
14141      break
14142    fi
14143  done
14144  IFS="$lt_save_ifs"
14145  MAGIC_CMD="$lt_save_MAGIC_CMD"
14146  ;;
14147esac
14148fi
14149
14150MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14151if test -n "$MAGIC_CMD"; then
14152  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14153echo "${ECHO_T}$MAGIC_CMD" >&6; }
14154else
14155  { echo "$as_me:$LINENO: result: no" >&5
14156echo "${ECHO_T}no" >&6; }
14157fi
14158
14159if test -z "$lt_cv_path_MAGIC_CMD"; then
14160  if test -n "$ac_tool_prefix"; then
14161    { echo "$as_me:$LINENO: checking for file" >&5
14162echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14163if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14164  echo $ECHO_N "(cached) $ECHO_C" >&6
14165else
14166  case $MAGIC_CMD in
14167[\\/*] |  ?:[\\/]*)
14168  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14169  ;;
14170*)
14171  lt_save_MAGIC_CMD="$MAGIC_CMD"
14172  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14173  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14174  for ac_dir in $ac_dummy; do
14175    IFS="$lt_save_ifs"
14176    test -z "$ac_dir" && ac_dir=.
14177    if test -f $ac_dir/file; then
14178      lt_cv_path_MAGIC_CMD="$ac_dir/file"
14179      if test -n "$file_magic_test_file"; then
14180	case $deplibs_check_method in
14181	"file_magic "*)
14182	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14183	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14184	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14185	    $EGREP "$file_magic_regex" > /dev/null; then
14186	    :
14187	  else
14188	    cat <<EOF 1>&2
14189
14190*** Warning: the command libtool uses to detect shared libraries,
14191*** $file_magic_cmd, produces output that libtool cannot recognize.
14192*** The result is that libtool may fail to recognize shared libraries
14193*** as such.  This will affect the creation of libtool libraries that
14194*** depend on shared libraries, but programs linked with such libtool
14195*** libraries will work regardless of this problem.  Nevertheless, you
14196*** may want to report the problem to your system manager and/or to
14197*** bug-libtool@gnu.org
14198
14199EOF
14200	  fi ;;
14201	esac
14202      fi
14203      break
14204    fi
14205  done
14206  IFS="$lt_save_ifs"
14207  MAGIC_CMD="$lt_save_MAGIC_CMD"
14208  ;;
14209esac
14210fi
14211
14212MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14213if test -n "$MAGIC_CMD"; then
14214  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14215echo "${ECHO_T}$MAGIC_CMD" >&6; }
14216else
14217  { echo "$as_me:$LINENO: result: no" >&5
14218echo "${ECHO_T}no" >&6; }
14219fi
14220
14221  else
14222    MAGIC_CMD=:
14223  fi
14224fi
14225
14226  fi
14227  ;;
14228esac
14229
14230enable_dlopen=yes
14231enable_win32_dll=no
14232
14233# Check whether --enable-libtool-lock was given.
14234if test "${enable_libtool_lock+set}" = set; then
14235  enableval=$enable_libtool_lock;
14236fi
14237
14238test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14239
14240
14241# Check whether --with-pic was given.
14242if test "${with_pic+set}" = set; then
14243  withval=$with_pic; pic_mode="$withval"
14244else
14245  pic_mode=default
14246fi
14247
14248test -z "$pic_mode" && pic_mode=default
14249
14250# Use C for the default configuration in the libtool script
14251tagname=
14252lt_save_CC="$CC"
14253ac_ext=c
14254ac_cpp='$CPP $CPPFLAGS'
14255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14257ac_compiler_gnu=$ac_cv_c_compiler_gnu
14258
14259
14260# Source file extension for C test sources.
14261ac_ext=c
14262
14263# Object file extension for compiled C test sources.
14264objext=o
14265objext=$objext
14266
14267# Code to be used in simple compile tests
14268lt_simple_compile_test_code="int some_variable = 0;\n"
14269
14270# Code to be used in simple link tests
14271lt_simple_link_test_code='int main(){return(0);}\n'
14272
14273
14274# If no C compiler was specified, use CC.
14275LTCC=${LTCC-"$CC"}
14276
14277# If no C compiler flags were specified, use CFLAGS.
14278LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14279
14280# Allow CC to be a program name with arguments.
14281compiler=$CC
14282
14283
14284# save warnings/boilerplate of simple test code
14285ac_outfile=conftest.$ac_objext
14286printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14287eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14288_lt_compiler_boilerplate=`cat conftest.err`
14289$rm conftest*
14290
14291ac_outfile=conftest.$ac_objext
14292printf "$lt_simple_link_test_code" >conftest.$ac_ext
14293eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14294_lt_linker_boilerplate=`cat conftest.err`
14295$rm conftest*
14296
14297
14298
14299lt_prog_compiler_no_builtin_flag=
14300
14301if test "$GCC" = yes; then
14302  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14303
14304
14305{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14306echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14307if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14308  echo $ECHO_N "(cached) $ECHO_C" >&6
14309else
14310  lt_cv_prog_compiler_rtti_exceptions=no
14311  ac_outfile=conftest.$ac_objext
14312   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14313   lt_compiler_flag="-fno-rtti -fno-exceptions"
14314   # Insert the option either (1) after the last *FLAGS variable, or
14315   # (2) before a word containing "conftest.", or (3) at the end.
14316   # Note that $ac_compile itself does not contain backslashes and begins
14317   # with a dollar sign (not a hyphen), so the echo should work correctly.
14318   # The option is referenced via a variable to avoid confusing sed.
14319   lt_compile=`echo "$ac_compile" | $SED \
14320   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14321   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14322   -e 's:$: $lt_compiler_flag:'`
14323   (eval echo "\"\$as_me:14323: $lt_compile\"" >&5)
14324   (eval "$lt_compile" 2>conftest.err)
14325   ac_status=$?
14326   cat conftest.err >&5
14327   echo "$as_me:14327: \$? = $ac_status" >&5
14328   if (exit $ac_status) && test -s "$ac_outfile"; then
14329     # The compiler can only warn and ignore the option if not recognized
14330     # So say no if there are warnings other than the usual output.
14331     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14332     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14333     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14334       lt_cv_prog_compiler_rtti_exceptions=yes
14335     fi
14336   fi
14337   $rm conftest*
14338
14339fi
14340{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14341echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14342
14343if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14344    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14345else
14346    :
14347fi
14348
14349fi
14350
14351lt_prog_compiler_wl=
14352lt_prog_compiler_pic=
14353lt_prog_compiler_static=
14354
14355{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14356echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14357
14358  if test "$GCC" = yes; then
14359    lt_prog_compiler_wl='-Wl,'
14360    lt_prog_compiler_static='-static'
14361
14362    case $host_os in
14363      aix*)
14364      # All AIX code is PIC.
14365      if test "$host_cpu" = ia64; then
14366	# AIX 5 now supports IA64 processor
14367	lt_prog_compiler_static='-Bstatic'
14368      fi
14369      ;;
14370
14371    amigaos*)
14372      # FIXME: we need at least 68020 code to build shared libraries, but
14373      # adding the `-m68020' flag to GCC prevents building anything better,
14374      # like `-m68040'.
14375      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14376      ;;
14377
14378    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14379      # PIC is the default for these OSes.
14380      ;;
14381
14382    mingw* | pw32* | os2*)
14383      # This hack is so that the source file can tell whether it is being
14384      # built for inclusion in a dll (and should export symbols for example).
14385      lt_prog_compiler_pic='-DDLL_EXPORT'
14386      ;;
14387
14388    darwin* | rhapsody*)
14389      # PIC is the default on this platform
14390      # Common symbols not allowed in MH_DYLIB files
14391      lt_prog_compiler_pic='-fno-common'
14392      ;;
14393
14394    interix3*)
14395      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14396      # Instead, we relocate shared libraries at runtime.
14397      ;;
14398
14399    msdosdjgpp*)
14400      # Just because we use GCC doesn't mean we suddenly get shared libraries
14401      # on systems that don't support them.
14402      lt_prog_compiler_can_build_shared=no
14403      enable_shared=no
14404      ;;
14405
14406    sysv4*MP*)
14407      if test -d /usr/nec; then
14408	lt_prog_compiler_pic=-Kconform_pic
14409      fi
14410      ;;
14411
14412    hpux*)
14413      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14414      # not for PA HP-UX.
14415      case $host_cpu in
14416      hppa*64*|ia64*)
14417	# +Z the default
14418	;;
14419      *)
14420	lt_prog_compiler_pic='-fPIC'
14421	;;
14422      esac
14423      ;;
14424
14425    *)
14426      lt_prog_compiler_pic='-fPIC'
14427      ;;
14428    esac
14429  else
14430    # PORTME Check for flag to pass linker flags through the system compiler.
14431    case $host_os in
14432    aix*)
14433      lt_prog_compiler_wl='-Wl,'
14434      if test "$host_cpu" = ia64; then
14435	# AIX 5 now supports IA64 processor
14436	lt_prog_compiler_static='-Bstatic'
14437      else
14438	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14439      fi
14440      ;;
14441      darwin*)
14442        # PIC is the default on this platform
14443        # Common symbols not allowed in MH_DYLIB files
14444       case $cc_basename in
14445         xlc*)
14446         lt_prog_compiler_pic='-qnocommon'
14447         lt_prog_compiler_wl='-Wl,'
14448         ;;
14449       esac
14450       ;;
14451
14452    mingw* | pw32* | os2*)
14453      # This hack is so that the source file can tell whether it is being
14454      # built for inclusion in a dll (and should export symbols for example).
14455      lt_prog_compiler_pic='-DDLL_EXPORT'
14456      ;;
14457
14458    hpux9* | hpux10* | hpux11*)
14459      lt_prog_compiler_wl='-Wl,'
14460      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14461      # not for PA HP-UX.
14462      case $host_cpu in
14463      hppa*64*|ia64*)
14464	# +Z the default
14465	;;
14466      *)
14467	lt_prog_compiler_pic='+Z'
14468	;;
14469      esac
14470      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14471      lt_prog_compiler_static='${wl}-a ${wl}archive'
14472      ;;
14473
14474    irix5* | irix6* | nonstopux*)
14475      lt_prog_compiler_wl='-Wl,'
14476      # PIC (with -KPIC) is the default.
14477      lt_prog_compiler_static='-non_shared'
14478      ;;
14479
14480    newsos6)
14481      lt_prog_compiler_pic='-KPIC'
14482      lt_prog_compiler_static='-Bstatic'
14483      ;;
14484
14485    linux*)
14486      case $cc_basename in
14487      icc* | ecc*)
14488	lt_prog_compiler_wl='-Wl,'
14489	lt_prog_compiler_pic='-KPIC'
14490	lt_prog_compiler_static='-static'
14491        ;;
14492      pgcc* | pgf77* | pgf90* | pgf95*)
14493        # Portland Group compilers (*not* the Pentium gcc compiler,
14494	# which looks to be a dead project)
14495	lt_prog_compiler_wl='-Wl,'
14496	lt_prog_compiler_pic='-fpic'
14497	lt_prog_compiler_static='-Bstatic'
14498        ;;
14499      ccc*)
14500        lt_prog_compiler_wl='-Wl,'
14501        # All Alpha code is PIC.
14502        lt_prog_compiler_static='-non_shared'
14503        ;;
14504      esac
14505      ;;
14506
14507    osf3* | osf4* | osf5*)
14508      lt_prog_compiler_wl='-Wl,'
14509      # All OSF/1 code is PIC.
14510      lt_prog_compiler_static='-non_shared'
14511      ;;
14512
14513    solaris*)
14514      lt_prog_compiler_pic='-KPIC'
14515      lt_prog_compiler_static='-Bstatic'
14516      case $cc_basename in
14517      f77* | f90* | f95*)
14518	lt_prog_compiler_wl='-Qoption ld ';;
14519      *)
14520	lt_prog_compiler_wl='-Wl,';;
14521      esac
14522      ;;
14523
14524    sunos4*)
14525      lt_prog_compiler_wl='-Qoption ld '
14526      lt_prog_compiler_pic='-PIC'
14527      lt_prog_compiler_static='-Bstatic'
14528      ;;
14529
14530    sysv4 | sysv4.2uw2* | sysv4.3*)
14531      lt_prog_compiler_wl='-Wl,'
14532      lt_prog_compiler_pic='-KPIC'
14533      lt_prog_compiler_static='-Bstatic'
14534      ;;
14535
14536    sysv4*MP*)
14537      if test -d /usr/nec ;then
14538	lt_prog_compiler_pic='-Kconform_pic'
14539	lt_prog_compiler_static='-Bstatic'
14540      fi
14541      ;;
14542
14543    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14544      lt_prog_compiler_wl='-Wl,'
14545      lt_prog_compiler_pic='-KPIC'
14546      lt_prog_compiler_static='-Bstatic'
14547      ;;
14548
14549    unicos*)
14550      lt_prog_compiler_wl='-Wl,'
14551      lt_prog_compiler_can_build_shared=no
14552      ;;
14553
14554    uts4*)
14555      lt_prog_compiler_pic='-pic'
14556      lt_prog_compiler_static='-Bstatic'
14557      ;;
14558
14559    *)
14560      lt_prog_compiler_can_build_shared=no
14561      ;;
14562    esac
14563  fi
14564
14565{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14566echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14567
14568#
14569# Check to make sure the PIC flag actually works.
14570#
14571if test -n "$lt_prog_compiler_pic"; then
14572
14573{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14574echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14575if test "${lt_prog_compiler_pic_works+set}" = set; then
14576  echo $ECHO_N "(cached) $ECHO_C" >&6
14577else
14578  lt_prog_compiler_pic_works=no
14579  ac_outfile=conftest.$ac_objext
14580   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14581   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14582   # Insert the option either (1) after the last *FLAGS variable, or
14583   # (2) before a word containing "conftest.", or (3) at the end.
14584   # Note that $ac_compile itself does not contain backslashes and begins
14585   # with a dollar sign (not a hyphen), so the echo should work correctly.
14586   # The option is referenced via a variable to avoid confusing sed.
14587   lt_compile=`echo "$ac_compile" | $SED \
14588   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14589   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14590   -e 's:$: $lt_compiler_flag:'`
14591   (eval echo "\"\$as_me:14591: $lt_compile\"" >&5)
14592   (eval "$lt_compile" 2>conftest.err)
14593   ac_status=$?
14594   cat conftest.err >&5
14595   echo "$as_me:14595: \$? = $ac_status" >&5
14596   if (exit $ac_status) && test -s "$ac_outfile"; then
14597     # The compiler can only warn and ignore the option if not recognized
14598     # So say no if there are warnings other than the usual output.
14599     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14600     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14601     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14602       lt_prog_compiler_pic_works=yes
14603     fi
14604   fi
14605   $rm conftest*
14606
14607fi
14608{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14609echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14610
14611if test x"$lt_prog_compiler_pic_works" = xyes; then
14612    case $lt_prog_compiler_pic in
14613     "" | " "*) ;;
14614     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14615     esac
14616else
14617    lt_prog_compiler_pic=
14618     lt_prog_compiler_can_build_shared=no
14619fi
14620
14621fi
14622case $host_os in
14623  # For platforms which do not support PIC, -DPIC is meaningless:
14624  *djgpp*)
14625    lt_prog_compiler_pic=
14626    ;;
14627  *)
14628    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14629    ;;
14630esac
14631
14632#
14633# Check to make sure the static flag actually works.
14634#
14635wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14636{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14637echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14638if test "${lt_prog_compiler_static_works+set}" = set; then
14639  echo $ECHO_N "(cached) $ECHO_C" >&6
14640else
14641  lt_prog_compiler_static_works=no
14642   save_LDFLAGS="$LDFLAGS"
14643   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14644   printf "$lt_simple_link_test_code" > conftest.$ac_ext
14645   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14646     # The linker can only warn and ignore the option if not recognized
14647     # So say no if there are warnings
14648     if test -s conftest.err; then
14649       # Append any errors to the config.log.
14650       cat conftest.err 1>&5
14651       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14652       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14653       if diff conftest.exp conftest.er2 >/dev/null; then
14654         lt_prog_compiler_static_works=yes
14655       fi
14656     else
14657       lt_prog_compiler_static_works=yes
14658     fi
14659   fi
14660   $rm conftest*
14661   LDFLAGS="$save_LDFLAGS"
14662
14663fi
14664{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14665echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14666
14667if test x"$lt_prog_compiler_static_works" = xyes; then
14668    :
14669else
14670    lt_prog_compiler_static=
14671fi
14672
14673
14674{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14675echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14676if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14677  echo $ECHO_N "(cached) $ECHO_C" >&6
14678else
14679  lt_cv_prog_compiler_c_o=no
14680   $rm -r conftest 2>/dev/null
14681   mkdir conftest
14682   cd conftest
14683   mkdir out
14684   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14685
14686   lt_compiler_flag="-o out/conftest2.$ac_objext"
14687   # Insert the option either (1) after the last *FLAGS variable, or
14688   # (2) before a word containing "conftest.", or (3) at the end.
14689   # Note that $ac_compile itself does not contain backslashes and begins
14690   # with a dollar sign (not a hyphen), so the echo should work correctly.
14691   lt_compile=`echo "$ac_compile" | $SED \
14692   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14693   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14694   -e 's:$: $lt_compiler_flag:'`
14695   (eval echo "\"\$as_me:14695: $lt_compile\"" >&5)
14696   (eval "$lt_compile" 2>out/conftest.err)
14697   ac_status=$?
14698   cat out/conftest.err >&5
14699   echo "$as_me:14699: \$? = $ac_status" >&5
14700   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14701   then
14702     # The compiler can only warn and ignore the option if not recognized
14703     # So say no if there are warnings
14704     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14705     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14706     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14707       lt_cv_prog_compiler_c_o=yes
14708     fi
14709   fi
14710   chmod u+w . 2>&5
14711   $rm conftest*
14712   # SGI C++ compiler will create directory out/ii_files/ for
14713   # template instantiation
14714   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14715   $rm out/* && rmdir out
14716   cd ..
14717   rmdir conftest
14718   $rm conftest*
14719
14720fi
14721{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14722echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14723
14724
14725hard_links="nottested"
14726if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14727  # do not overwrite the value of need_locks provided by the user
14728  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14729echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14730  hard_links=yes
14731  $rm conftest*
14732  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14733  touch conftest.a
14734  ln conftest.a conftest.b 2>&5 || hard_links=no
14735  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14736  { echo "$as_me:$LINENO: result: $hard_links" >&5
14737echo "${ECHO_T}$hard_links" >&6; }
14738  if test "$hard_links" = no; then
14739    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14740echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14741    need_locks=warn
14742  fi
14743else
14744  need_locks=no
14745fi
14746
14747{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14748echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14749
14750  runpath_var=
14751  allow_undefined_flag=
14752  enable_shared_with_static_runtimes=no
14753  archive_cmds=
14754  archive_expsym_cmds=
14755  old_archive_From_new_cmds=
14756  old_archive_from_expsyms_cmds=
14757  export_dynamic_flag_spec=
14758  whole_archive_flag_spec=
14759  thread_safe_flag_spec=
14760  hardcode_libdir_flag_spec=
14761  hardcode_libdir_flag_spec_ld=
14762  hardcode_libdir_separator=
14763  hardcode_direct=no
14764  hardcode_minus_L=no
14765  hardcode_shlibpath_var=unsupported
14766  link_all_deplibs=unknown
14767  hardcode_automatic=no
14768  module_cmds=
14769  module_expsym_cmds=
14770  always_export_symbols=no
14771  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14772  # include_expsyms should be a list of space-separated symbols to be *always*
14773  # included in the symbol list
14774  include_expsyms=
14775  # exclude_expsyms can be an extended regexp of symbols to exclude
14776  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14777  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14778  # as well as any symbol that contains `d'.
14779  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14780  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14781  # platforms (ab)use it in PIC code, but their linkers get confused if
14782  # the symbol is explicitly referenced.  Since portable code cannot
14783  # rely on this symbol name, it's probably fine to never include it in
14784  # preloaded symbol tables.
14785  extract_expsyms_cmds=
14786  # Just being paranoid about ensuring that cc_basename is set.
14787  for cc_temp in $compiler""; do
14788  case $cc_temp in
14789    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14790    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14791    \-*) ;;
14792    *) break;;
14793  esac
14794done
14795cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14796
14797  case $host_os in
14798  cygwin* | mingw* | pw32*)
14799    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14800    # When not using gcc, we currently assume that we are using
14801    # Microsoft Visual C++.
14802    if test "$GCC" != yes; then
14803      with_gnu_ld=no
14804    fi
14805    ;;
14806  interix*)
14807    # we just hope/assume this is gcc and not c89 (= MSVC++)
14808    with_gnu_ld=yes
14809    ;;
14810  openbsd*)
14811    with_gnu_ld=no
14812    ;;
14813  esac
14814
14815  ld_shlibs=yes
14816  if test "$with_gnu_ld" = yes; then
14817    # If archive_cmds runs LD, not CC, wlarc should be empty
14818    wlarc='${wl}'
14819
14820    # Set some defaults for GNU ld with shared library support. These
14821    # are reset later if shared libraries are not supported. Putting them
14822    # here allows them to be overridden if necessary.
14823    runpath_var=LD_RUN_PATH
14824    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14825    export_dynamic_flag_spec='${wl}--export-dynamic'
14826    # ancient GNU ld didn't support --whole-archive et. al.
14827    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14828	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14829      else
14830  	whole_archive_flag_spec=
14831    fi
14832    supports_anon_versioning=no
14833    case `$LD -v 2>/dev/null` in
14834      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14835      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14836      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14837      *\ 2.11.*) ;; # other 2.11 versions
14838      *) supports_anon_versioning=yes ;;
14839    esac
14840
14841    # See if GNU ld supports shared libraries.
14842    case $host_os in
14843    aix3* | aix4* | aix5*)
14844      # On AIX/PPC, the GNU linker is very broken
14845      if test "$host_cpu" != ia64; then
14846	ld_shlibs=no
14847	cat <<EOF 1>&2
14848
14849*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14850*** to be unable to reliably create shared libraries on AIX.
14851*** Therefore, libtool is disabling shared libraries support.  If you
14852*** really care for shared libraries, you may want to modify your PATH
14853*** so that a non-GNU linker is found, and then restart.
14854
14855EOF
14856      fi
14857      ;;
14858
14859    amigaos*)
14860      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)'
14861      hardcode_libdir_flag_spec='-L$libdir'
14862      hardcode_minus_L=yes
14863
14864      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14865      # that the semantics of dynamic libraries on AmigaOS, at least up
14866      # to version 4, is to share data among multiple programs linked
14867      # with the same dynamic library.  Since this doesn't match the
14868      # behavior of shared libraries on other platforms, we can't use
14869      # them.
14870      ld_shlibs=no
14871      ;;
14872
14873    beos*)
14874      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14875	allow_undefined_flag=unsupported
14876	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14877	# support --undefined.  This deserves some investigation.  FIXME
14878	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14879      else
14880	ld_shlibs=no
14881      fi
14882      ;;
14883
14884    cygwin* | mingw* | pw32*)
14885      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14886      # as there is no search path for DLLs.
14887      hardcode_libdir_flag_spec='-L$libdir'
14888      allow_undefined_flag=unsupported
14889      always_export_symbols=no
14890      enable_shared_with_static_runtimes=yes
14891      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14892
14893      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14894        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14895	# If the export-symbols file already is a .def file (1st line
14896	# is EXPORTS), use it as is; otherwise, prepend...
14897	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14898	  cp $export_symbols $output_objdir/$soname.def;
14899	else
14900	  echo EXPORTS > $output_objdir/$soname.def;
14901	  cat $export_symbols >> $output_objdir/$soname.def;
14902	fi~
14903	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14904      else
14905	ld_shlibs=no
14906      fi
14907      ;;
14908
14909    interix3*)
14910      hardcode_direct=no
14911      hardcode_shlibpath_var=no
14912      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14913      export_dynamic_flag_spec='${wl}-E'
14914      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14915      # Instead, shared libraries are loaded at an image base (0x10000000 by
14916      # default) and relocated if they conflict, which is a slow very memory
14917      # consuming and fragmenting process.  To avoid this, we pick a random,
14918      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14919      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14920      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14921      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'
14922      ;;
14923
14924    linux*)
14925      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14926	tmp_addflag=
14927	case $cc_basename,$host_cpu in
14928	pgcc*)				# Portland Group C compiler
14929	  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'
14930	  tmp_addflag=' $pic_flag'
14931	  ;;
14932	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14933	  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'
14934	  tmp_addflag=' $pic_flag -Mnomain' ;;
14935	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14936	  tmp_addflag=' -i_dynamic' ;;
14937	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14938	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14939	ifc* | ifort*)			# Intel Fortran compiler
14940	  tmp_addflag=' -nofor_main' ;;
14941	esac
14942	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14943
14944	if test $supports_anon_versioning = yes; then
14945	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14946  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14947  $echo "local: *; };" >> $output_objdir/$libname.ver~
14948	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14949	fi
14950      else
14951	ld_shlibs=no
14952      fi
14953      ;;
14954
14955    netbsd*)
14956      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14957	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14958	wlarc=
14959      else
14960	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14961	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14962      fi
14963      ;;
14964
14965    solaris*)
14966      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14967	ld_shlibs=no
14968	cat <<EOF 1>&2
14969
14970*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14971*** create shared libraries on Solaris systems.  Therefore, libtool
14972*** is disabling shared libraries support.  We urge you to upgrade GNU
14973*** binutils to release 2.9.1 or newer.  Another option is to modify
14974*** your PATH or compiler configuration so that the native linker is
14975*** used, and then restart.
14976
14977EOF
14978      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14979	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14980	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14981      else
14982	ld_shlibs=no
14983      fi
14984      ;;
14985
14986    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14987      case `$LD -v 2>&1` in
14988        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14989	ld_shlibs=no
14990	cat <<_LT_EOF 1>&2
14991
14992*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14993*** reliably create shared libraries on SCO systems.  Therefore, libtool
14994*** is disabling shared libraries support.  We urge you to upgrade GNU
14995*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14996*** your PATH or compiler configuration so that the native linker is
14997*** used, and then restart.
14998
14999_LT_EOF
15000	;;
15001	*)
15002	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15003	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15004	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15005	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15006	  else
15007	    ld_shlibs=no
15008	  fi
15009	;;
15010      esac
15011      ;;
15012
15013    sunos4*)
15014      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15015      wlarc=
15016      hardcode_direct=yes
15017      hardcode_shlibpath_var=no
15018      ;;
15019
15020    *)
15021      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15022	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15023	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15024      else
15025	ld_shlibs=no
15026      fi
15027      ;;
15028    esac
15029
15030    if test "$ld_shlibs" = no; then
15031      runpath_var=
15032      hardcode_libdir_flag_spec=
15033      export_dynamic_flag_spec=
15034      whole_archive_flag_spec=
15035    fi
15036  else
15037    # PORTME fill in a description of your system's linker (not GNU ld)
15038    case $host_os in
15039    aix3*)
15040      allow_undefined_flag=unsupported
15041      always_export_symbols=yes
15042      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'
15043      # Note: this linker hardcodes the directories in LIBPATH if there
15044      # are no directories specified by -L.
15045      hardcode_minus_L=yes
15046      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15047	# Neither direct hardcoding nor static linking is supported with a
15048	# broken collect2.
15049	hardcode_direct=unsupported
15050      fi
15051      ;;
15052
15053    aix4* | aix5*)
15054      if test "$host_cpu" = ia64; then
15055	# On IA64, the linker does run time linking by default, so we don't
15056	# have to do anything special.
15057	aix_use_runtimelinking=no
15058	exp_sym_flag='-Bexport'
15059	no_entry_flag=""
15060      else
15061	# If we're using GNU nm, then we don't want the "-C" option.
15062	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15063	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15064	  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'
15065	else
15066	  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'
15067	fi
15068	aix_use_runtimelinking=no
15069
15070	# Test if we are trying to use run time linking or normal
15071	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15072	# need to do runtime linking.
15073	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15074	  for ld_flag in $LDFLAGS; do
15075  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15076  	    aix_use_runtimelinking=yes
15077  	    break
15078  	  fi
15079	  done
15080	  ;;
15081	esac
15082
15083	exp_sym_flag='-bexport'
15084	no_entry_flag='-bnoentry'
15085      fi
15086
15087      # When large executables or shared objects are built, AIX ld can
15088      # have problems creating the table of contents.  If linking a library
15089      # or program results in "error TOC overflow" add -mminimal-toc to
15090      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15091      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15092
15093      archive_cmds=''
15094      hardcode_direct=yes
15095      hardcode_libdir_separator=':'
15096      link_all_deplibs=yes
15097
15098      if test "$GCC" = yes; then
15099	case $host_os in aix4.[012]|aix4.[012].*)
15100	# We only want to do this on AIX 4.2 and lower, the check
15101	# below for broken collect2 doesn't work under 4.3+
15102	  collect2name=`${CC} -print-prog-name=collect2`
15103	  if test -f "$collect2name" && \
15104  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15105	  then
15106  	  # We have reworked collect2
15107  	  hardcode_direct=yes
15108	  else
15109  	  # We have old collect2
15110  	  hardcode_direct=unsupported
15111  	  # It fails to find uninstalled libraries when the uninstalled
15112  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15113  	  # to unsupported forces relinking
15114  	  hardcode_minus_L=yes
15115  	  hardcode_libdir_flag_spec='-L$libdir'
15116  	  hardcode_libdir_separator=
15117	  fi
15118	  ;;
15119	esac
15120	shared_flag='-shared'
15121	if test "$aix_use_runtimelinking" = yes; then
15122	  shared_flag="$shared_flag "'${wl}-G'
15123	fi
15124      else
15125	# not using gcc
15126	if test "$host_cpu" = ia64; then
15127  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15128  	# chokes on -Wl,-G. The following line is correct:
15129	  shared_flag='-G'
15130	else
15131	  if test "$aix_use_runtimelinking" = yes; then
15132	    shared_flag='${wl}-G'
15133	  else
15134	    shared_flag='${wl}-bM:SRE'
15135	  fi
15136	fi
15137      fi
15138
15139      # It seems that -bexpall does not export symbols beginning with
15140      # underscore (_), so it is better to generate a list of symbols to export.
15141      always_export_symbols=yes
15142      if test "$aix_use_runtimelinking" = yes; then
15143	# Warning - without using the other runtime loading flags (-brtl),
15144	# -berok will link without error, but may produce a broken library.
15145	allow_undefined_flag='-berok'
15146       # Determine the default libpath from the value encoded in an empty executable.
15147       cat >conftest.$ac_ext <<_ACEOF
15148/* confdefs.h.  */
15149_ACEOF
15150cat confdefs.h >>conftest.$ac_ext
15151cat >>conftest.$ac_ext <<_ACEOF
15152/* end confdefs.h.  */
15153
15154int
15155main ()
15156{
15157
15158  ;
15159  return 0;
15160}
15161_ACEOF
15162rm -f conftest.$ac_objext conftest$ac_exeext
15163if { (ac_try="$ac_link"
15164case "(($ac_try" in
15165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15166  *) ac_try_echo=$ac_try;;
15167esac
15168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15169  (eval "$ac_link") 2>conftest.er1
15170  ac_status=$?
15171  grep -v '^ *+' conftest.er1 >conftest.err
15172  rm -f conftest.er1
15173  cat conftest.err >&5
15174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175  (exit $ac_status); } &&
15176	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15177  { (case "(($ac_try" in
15178  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15179  *) ac_try_echo=$ac_try;;
15180esac
15181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15182  (eval "$ac_try") 2>&5
15183  ac_status=$?
15184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185  (exit $ac_status); }; } &&
15186	 { ac_try='test -s conftest$ac_exeext'
15187  { (case "(($ac_try" in
15188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15189  *) ac_try_echo=$ac_try;;
15190esac
15191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15192  (eval "$ac_try") 2>&5
15193  ac_status=$?
15194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195  (exit $ac_status); }; }; then
15196
15197aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15198}'`
15199# Check for a 64-bit object if we didn't find anything.
15200if 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; }
15201}'`; fi
15202else
15203  echo "$as_me: failed program was:" >&5
15204sed 's/^/| /' conftest.$ac_ext >&5
15205
15206
15207fi
15208
15209rm -f core conftest.err conftest.$ac_objext \
15210      conftest$ac_exeext conftest.$ac_ext
15211if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15212
15213       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15214	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"
15215       else
15216	if test "$host_cpu" = ia64; then
15217	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15218	  allow_undefined_flag="-z nodefs"
15219	  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"
15220	else
15221	 # Determine the default libpath from the value encoded in an empty executable.
15222	 cat >conftest.$ac_ext <<_ACEOF
15223/* confdefs.h.  */
15224_ACEOF
15225cat confdefs.h >>conftest.$ac_ext
15226cat >>conftest.$ac_ext <<_ACEOF
15227/* end confdefs.h.  */
15228
15229int
15230main ()
15231{
15232
15233  ;
15234  return 0;
15235}
15236_ACEOF
15237rm -f conftest.$ac_objext conftest$ac_exeext
15238if { (ac_try="$ac_link"
15239case "(($ac_try" in
15240  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15241  *) ac_try_echo=$ac_try;;
15242esac
15243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15244  (eval "$ac_link") 2>conftest.er1
15245  ac_status=$?
15246  grep -v '^ *+' conftest.er1 >conftest.err
15247  rm -f conftest.er1
15248  cat conftest.err >&5
15249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250  (exit $ac_status); } &&
15251	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15252  { (case "(($ac_try" in
15253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15254  *) ac_try_echo=$ac_try;;
15255esac
15256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15257  (eval "$ac_try") 2>&5
15258  ac_status=$?
15259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260  (exit $ac_status); }; } &&
15261	 { ac_try='test -s conftest$ac_exeext'
15262  { (case "(($ac_try" in
15263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264  *) ac_try_echo=$ac_try;;
15265esac
15266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15267  (eval "$ac_try") 2>&5
15268  ac_status=$?
15269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270  (exit $ac_status); }; }; then
15271
15272aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15273}'`
15274# Check for a 64-bit object if we didn't find anything.
15275if 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; }
15276}'`; fi
15277else
15278  echo "$as_me: failed program was:" >&5
15279sed 's/^/| /' conftest.$ac_ext >&5
15280
15281
15282fi
15283
15284rm -f core conftest.err conftest.$ac_objext \
15285      conftest$ac_exeext conftest.$ac_ext
15286if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15287
15288	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15289	  # Warning - without using the other run time loading flags,
15290	  # -berok will link without error, but may produce a broken library.
15291	  no_undefined_flag=' ${wl}-bernotok'
15292	  allow_undefined_flag=' ${wl}-berok'
15293	  # Exported symbols can be pulled into shared objects from archives
15294	  whole_archive_flag_spec='$convenience'
15295	  archive_cmds_need_lc=yes
15296	  # This is similar to how AIX traditionally builds its shared libraries.
15297	  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'
15298	fi
15299      fi
15300      ;;
15301
15302    amigaos*)
15303      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)'
15304      hardcode_libdir_flag_spec='-L$libdir'
15305      hardcode_minus_L=yes
15306      # see comment about different semantics on the GNU ld section
15307      ld_shlibs=no
15308      ;;
15309
15310    bsdi[45]*)
15311      export_dynamic_flag_spec=-rdynamic
15312      ;;
15313
15314    cygwin* | mingw* | pw32*)
15315      # When not using gcc, we currently assume that we are using
15316      # Microsoft Visual C++.
15317      # hardcode_libdir_flag_spec is actually meaningless, as there is
15318      # no search path for DLLs.
15319      hardcode_libdir_flag_spec=' '
15320      allow_undefined_flag=unsupported
15321      # Tell ltmain to make .lib files, not .a files.
15322      libext=lib
15323      # Tell ltmain to make .dll files, not .so files.
15324      shrext_cmds=".dll"
15325      # FIXME: Setting linknames here is a bad hack.
15326      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15327      # The linker will automatically build a .lib file if we build a DLL.
15328      old_archive_From_new_cmds='true'
15329      # FIXME: Should let the user specify the lib program.
15330      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15331      fix_srcfile_path='`cygpath -w "$srcfile"`'
15332      enable_shared_with_static_runtimes=yes
15333      ;;
15334
15335    darwin* | rhapsody*)
15336      case $host_os in
15337        rhapsody* | darwin1.[012])
15338         allow_undefined_flag='${wl}-undefined ${wl}suppress'
15339         ;;
15340       *) # Darwin 1.3 on
15341         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15342           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15343         else
15344           case ${MACOSX_DEPLOYMENT_TARGET} in
15345             10.[012])
15346               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15347               ;;
15348             10.*)
15349               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15350               ;;
15351           esac
15352         fi
15353         ;;
15354      esac
15355      archive_cmds_need_lc=no
15356      hardcode_direct=no
15357      hardcode_automatic=yes
15358      hardcode_shlibpath_var=unsupported
15359      whole_archive_flag_spec=''
15360      link_all_deplibs=yes
15361    if test "$GCC" = yes ; then
15362    	output_verbose_link_cmd='echo'
15363        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15364      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15365      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15366      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}'
15367      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}'
15368    else
15369      case $cc_basename in
15370        xlc*)
15371         output_verbose_link_cmd='echo'
15372         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15373         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15374          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15375         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}'
15376          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}'
15377          ;;
15378       *)
15379         ld_shlibs=no
15380          ;;
15381      esac
15382    fi
15383      ;;
15384
15385    dgux*)
15386      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15387      hardcode_libdir_flag_spec='-L$libdir'
15388      hardcode_shlibpath_var=no
15389      ;;
15390
15391    freebsd1*)
15392      ld_shlibs=no
15393      ;;
15394
15395    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15396    # support.  Future versions do this automatically, but an explicit c++rt0.o
15397    # does not break anything, and helps significantly (at the cost of a little
15398    # extra space).
15399    freebsd2.2*)
15400      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15401      hardcode_libdir_flag_spec='-R$libdir'
15402      hardcode_direct=yes
15403      hardcode_shlibpath_var=no
15404      ;;
15405
15406    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15407    freebsd2*)
15408      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15409      hardcode_direct=yes
15410      hardcode_minus_L=yes
15411      hardcode_shlibpath_var=no
15412      ;;
15413
15414    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15415    freebsd* | kfreebsd*-gnu | dragonfly*)
15416      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15417      hardcode_libdir_flag_spec='-R$libdir'
15418      hardcode_direct=yes
15419      hardcode_shlibpath_var=no
15420      ;;
15421
15422    hpux9*)
15423      if test "$GCC" = yes; then
15424	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'
15425      else
15426	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'
15427      fi
15428      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15429      hardcode_libdir_separator=:
15430      hardcode_direct=yes
15431
15432      # hardcode_minus_L: Not really in the search PATH,
15433      # but as the default location of the library.
15434      hardcode_minus_L=yes
15435      export_dynamic_flag_spec='${wl}-E'
15436      ;;
15437
15438    hpux10*)
15439      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15440	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15441      else
15442	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15443      fi
15444      if test "$with_gnu_ld" = no; then
15445	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15446	hardcode_libdir_separator=:
15447
15448	hardcode_direct=yes
15449	export_dynamic_flag_spec='${wl}-E'
15450
15451	# hardcode_minus_L: Not really in the search PATH,
15452	# but as the default location of the library.
15453	hardcode_minus_L=yes
15454      fi
15455      ;;
15456
15457    hpux11*)
15458      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15459	case $host_cpu in
15460	hppa*64*)
15461	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15462	  ;;
15463	ia64*)
15464	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15465	  ;;
15466	*)
15467	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15468	  ;;
15469	esac
15470      else
15471	case $host_cpu in
15472	hppa*64*)
15473	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15474	  ;;
15475	ia64*)
15476	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15477	  ;;
15478	*)
15479	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15480	  ;;
15481	esac
15482      fi
15483      if test "$with_gnu_ld" = no; then
15484	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15485	hardcode_libdir_separator=:
15486
15487	case $host_cpu in
15488	hppa*64*|ia64*)
15489	  hardcode_libdir_flag_spec_ld='+b $libdir'
15490	  hardcode_direct=no
15491	  hardcode_shlibpath_var=no
15492	  ;;
15493	*)
15494	  hardcode_direct=yes
15495	  export_dynamic_flag_spec='${wl}-E'
15496
15497	  # hardcode_minus_L: Not really in the search PATH,
15498	  # but as the default location of the library.
15499	  hardcode_minus_L=yes
15500	  ;;
15501	esac
15502      fi
15503      ;;
15504
15505    irix5* | irix6* | nonstopux*)
15506      if test "$GCC" = yes; then
15507	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'
15508      else
15509	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'
15510	hardcode_libdir_flag_spec_ld='-rpath $libdir'
15511      fi
15512      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15513      hardcode_libdir_separator=:
15514      link_all_deplibs=yes
15515      ;;
15516
15517    netbsd*)
15518      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15519	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15520      else
15521	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15522      fi
15523      hardcode_libdir_flag_spec='-R$libdir'
15524      hardcode_direct=yes
15525      hardcode_shlibpath_var=no
15526      ;;
15527
15528    newsos6)
15529      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15530      hardcode_direct=yes
15531      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15532      hardcode_libdir_separator=:
15533      hardcode_shlibpath_var=no
15534      ;;
15535
15536    openbsd*)
15537      hardcode_direct=yes
15538      hardcode_shlibpath_var=no
15539      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15540	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15541	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15542	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15543	export_dynamic_flag_spec='${wl}-E'
15544      else
15545       case $host_os in
15546	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15547	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15548	   hardcode_libdir_flag_spec='-R$libdir'
15549	   ;;
15550	 *)
15551	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15552	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15553	   ;;
15554       esac
15555      fi
15556      ;;
15557
15558    os2*)
15559      hardcode_libdir_flag_spec='-L$libdir'
15560      hardcode_minus_L=yes
15561      allow_undefined_flag=unsupported
15562      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'
15563      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15564      ;;
15565
15566    osf3*)
15567      if test "$GCC" = yes; then
15568	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15569	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'
15570      else
15571	allow_undefined_flag=' -expect_unresolved \*'
15572	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'
15573      fi
15574      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15575      hardcode_libdir_separator=:
15576      ;;
15577
15578    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15579      if test "$GCC" = yes; then
15580	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15581	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'
15582	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15583      else
15584	allow_undefined_flag=' -expect_unresolved \*'
15585	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'
15586	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15587	$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'
15588
15589	# Both c and cxx compiler support -rpath directly
15590	hardcode_libdir_flag_spec='-rpath $libdir'
15591      fi
15592      hardcode_libdir_separator=:
15593      ;;
15594
15595    solaris*)
15596      no_undefined_flag=' -z text'
15597      if test "$GCC" = yes; then
15598	wlarc='${wl}'
15599	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15600	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15601	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15602      else
15603	wlarc=''
15604	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15605	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15606  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15607      fi
15608      hardcode_libdir_flag_spec='-R$libdir'
15609      hardcode_shlibpath_var=no
15610      case $host_os in
15611      solaris2.[0-5] | solaris2.[0-5].*) ;;
15612      *)
15613 	# The compiler driver will combine linker options so we
15614 	# cannot just pass the convience library names through
15615 	# without $wl, iff we do not link with $LD.
15616 	# Luckily, gcc supports the same syntax we need for Sun Studio.
15617 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15618 	case $wlarc in
15619 	'')
15620 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15621 	*)
15622 	  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' ;;
15623 	esac ;;
15624      esac
15625      link_all_deplibs=yes
15626      ;;
15627
15628    sunos4*)
15629      if test "x$host_vendor" = xsequent; then
15630	# Use $CC to link under sequent, because it throws in some extra .o
15631	# files that make .init and .fini sections work.
15632	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15633      else
15634	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15635      fi
15636      hardcode_libdir_flag_spec='-L$libdir'
15637      hardcode_direct=yes
15638      hardcode_minus_L=yes
15639      hardcode_shlibpath_var=no
15640      ;;
15641
15642    sysv4)
15643      case $host_vendor in
15644	sni)
15645	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15646	  hardcode_direct=yes # is this really true???
15647	;;
15648	siemens)
15649	  ## LD is ld it makes a PLAMLIB
15650	  ## CC just makes a GrossModule.
15651	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15652	  reload_cmds='$CC -r -o $output$reload_objs'
15653	  hardcode_direct=no
15654        ;;
15655	motorola)
15656	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15657	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15658	;;
15659      esac
15660      runpath_var='LD_RUN_PATH'
15661      hardcode_shlibpath_var=no
15662      ;;
15663
15664    sysv4.3*)
15665      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15666      hardcode_shlibpath_var=no
15667      export_dynamic_flag_spec='-Bexport'
15668      ;;
15669
15670    sysv4*MP*)
15671      if test -d /usr/nec; then
15672	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15673	hardcode_shlibpath_var=no
15674	runpath_var=LD_RUN_PATH
15675	hardcode_runpath_var=yes
15676	ld_shlibs=yes
15677      fi
15678      ;;
15679
15680    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15681      no_undefined_flag='${wl}-z,text'
15682      archive_cmds_need_lc=no
15683      hardcode_shlibpath_var=no
15684      runpath_var='LD_RUN_PATH'
15685
15686      if test "$GCC" = yes; then
15687	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15688	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15689      else
15690	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15691	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15692      fi
15693      ;;
15694
15695    sysv5* | sco3.2v5* | sco5v6*)
15696      # Note: We can NOT use -z defs as we might desire, because we do not
15697      # link with -lc, and that would cause any symbols used from libc to
15698      # always be unresolved, which means just about no library would
15699      # ever link correctly.  If we're not using GNU ld we use -z text
15700      # though, which does catch some bad symbols but isn't as heavy-handed
15701      # as -z defs.
15702      no_undefined_flag='${wl}-z,text'
15703      allow_undefined_flag='${wl}-z,nodefs'
15704      archive_cmds_need_lc=no
15705      hardcode_shlibpath_var=no
15706      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15707      hardcode_libdir_separator=':'
15708      link_all_deplibs=yes
15709      export_dynamic_flag_spec='${wl}-Bexport'
15710      runpath_var='LD_RUN_PATH'
15711
15712      if test "$GCC" = yes; then
15713	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15714	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15715      else
15716	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15717	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15718      fi
15719      ;;
15720
15721    uts4*)
15722      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15723      hardcode_libdir_flag_spec='-L$libdir'
15724      hardcode_shlibpath_var=no
15725      ;;
15726
15727    *)
15728      ld_shlibs=no
15729      ;;
15730    esac
15731  fi
15732
15733{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15734echo "${ECHO_T}$ld_shlibs" >&6; }
15735test "$ld_shlibs" = no && can_build_shared=no
15736
15737#
15738# Do we need to explicitly link libc?
15739#
15740case "x$archive_cmds_need_lc" in
15741x|xyes)
15742  # Assume -lc should be added
15743  archive_cmds_need_lc=yes
15744
15745  if test "$enable_shared" = yes && test "$GCC" = yes; then
15746    case $archive_cmds in
15747    *'~'*)
15748      # FIXME: we may have to deal with multi-command sequences.
15749      ;;
15750    '$CC '*)
15751      # Test whether the compiler implicitly links with -lc since on some
15752      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15753      # to ld, don't add -lc before -lgcc.
15754      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15755echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15756      $rm conftest*
15757      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15758
15759      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15760  (eval $ac_compile) 2>&5
15761  ac_status=$?
15762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763  (exit $ac_status); } 2>conftest.err; then
15764        soname=conftest
15765        lib=conftest
15766        libobjs=conftest.$ac_objext
15767        deplibs=
15768        wl=$lt_prog_compiler_wl
15769	pic_flag=$lt_prog_compiler_pic
15770        compiler_flags=-v
15771        linker_flags=-v
15772        verstring=
15773        output_objdir=.
15774        libname=conftest
15775        lt_save_allow_undefined_flag=$allow_undefined_flag
15776        allow_undefined_flag=
15777        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15778  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15779  ac_status=$?
15780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781  (exit $ac_status); }
15782        then
15783	  archive_cmds_need_lc=no
15784        else
15785	  archive_cmds_need_lc=yes
15786        fi
15787        allow_undefined_flag=$lt_save_allow_undefined_flag
15788      else
15789        cat conftest.err 1>&5
15790      fi
15791      $rm conftest*
15792      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15793echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15794      ;;
15795    esac
15796  fi
15797  ;;
15798esac
15799
15800{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15801echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15802library_names_spec=
15803libname_spec='lib$name'
15804soname_spec=
15805shrext_cmds=".so"
15806postinstall_cmds=
15807postuninstall_cmds=
15808finish_cmds=
15809finish_eval=
15810shlibpath_var=
15811shlibpath_overrides_runpath=unknown
15812version_type=none
15813dynamic_linker="$host_os ld.so"
15814sys_lib_dlsearch_path_spec="/lib /usr/lib"
15815if test "$GCC" = yes; then
15816  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15817  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15818    # if the path contains ";" then we assume it to be the separator
15819    # otherwise default to the standard path separator (i.e. ":") - it is
15820    # assumed that no part of a normal pathname contains ";" but that should
15821    # okay in the real world where ";" in dirpaths is itself problematic.
15822    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15823  else
15824    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15825  fi
15826else
15827  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15828fi
15829need_lib_prefix=unknown
15830hardcode_into_libs=no
15831
15832# when you set need_version to no, make sure it does not cause -set_version
15833# flags to be left without arguments
15834need_version=unknown
15835
15836case $host_os in
15837aix3*)
15838  version_type=linux
15839  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15840  shlibpath_var=LIBPATH
15841
15842  # AIX 3 has no versioning support, so we append a major version to the name.
15843  soname_spec='${libname}${release}${shared_ext}$major'
15844  ;;
15845
15846aix4* | aix5*)
15847  version_type=linux
15848  need_lib_prefix=no
15849  need_version=no
15850  hardcode_into_libs=yes
15851  if test "$host_cpu" = ia64; then
15852    # AIX 5 supports IA64
15853    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15854    shlibpath_var=LD_LIBRARY_PATH
15855  else
15856    # With GCC up to 2.95.x, collect2 would create an import file
15857    # for dependence libraries.  The import file would start with
15858    # the line `#! .'.  This would cause the generated library to
15859    # depend on `.', always an invalid library.  This was fixed in
15860    # development snapshots of GCC prior to 3.0.
15861    case $host_os in
15862      aix4 | aix4.[01] | aix4.[01].*)
15863      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15864	   echo ' yes '
15865	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15866	:
15867      else
15868	can_build_shared=no
15869      fi
15870      ;;
15871    esac
15872    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15873    # soname into executable. Probably we can add versioning support to
15874    # collect2, so additional links can be useful in future.
15875    if test "$aix_use_runtimelinking" = yes; then
15876      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15877      # instead of lib<name>.a to let people know that these are not
15878      # typical AIX shared libraries.
15879      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15880    else
15881      # We preserve .a as extension for shared libraries through AIX4.2
15882      # and later when we are not doing run time linking.
15883      library_names_spec='${libname}${release}.a $libname.a'
15884      soname_spec='${libname}${release}${shared_ext}$major'
15885    fi
15886    shlibpath_var=LIBPATH
15887  fi
15888  ;;
15889
15890amigaos*)
15891  library_names_spec='$libname.ixlibrary $libname.a'
15892  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15893  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'
15894  ;;
15895
15896beos*)
15897  library_names_spec='${libname}${shared_ext}'
15898  dynamic_linker="$host_os ld.so"
15899  shlibpath_var=LIBRARY_PATH
15900  ;;
15901
15902bsdi[45]*)
15903  version_type=linux
15904  need_version=no
15905  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15906  soname_spec='${libname}${release}${shared_ext}$major'
15907  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15908  shlibpath_var=LD_LIBRARY_PATH
15909  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15910  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15911  # the default ld.so.conf also contains /usr/contrib/lib and
15912  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15913  # libtool to hard-code these into programs
15914  ;;
15915
15916cygwin* | mingw* | pw32*)
15917  version_type=windows
15918  shrext_cmds=".dll"
15919  need_version=no
15920  need_lib_prefix=no
15921
15922  case $GCC,$host_os in
15923  yes,cygwin* | yes,mingw* | yes,pw32*)
15924    library_names_spec='$libname.dll.a'
15925    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15926    postinstall_cmds='base_file=`basename \${file}`~
15927      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15928      dldir=$destdir/`dirname \$dlpath`~
15929      test -d \$dldir || mkdir -p \$dldir~
15930      $install_prog $dir/$dlname \$dldir/$dlname~
15931      chmod a+x \$dldir/$dlname'
15932    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15933      dlpath=$dir/\$dldll~
15934       $rm \$dlpath'
15935    shlibpath_overrides_runpath=yes
15936
15937    case $host_os in
15938    cygwin*)
15939      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15940      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15941      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15942      ;;
15943    mingw*)
15944      # MinGW DLLs use traditional 'lib' prefix
15945      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15946      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15947      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15948        # It is most probably a Windows format PATH printed by
15949        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15950        # path with ; separators, and with drive letters. We can handle the
15951        # drive letters (cygwin fileutils understands them), so leave them,
15952        # especially as we might pass files found there to a mingw objdump,
15953        # which wouldn't understand a cygwinified path. Ahh.
15954        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15955      else
15956        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15957      fi
15958      ;;
15959    pw32*)
15960      # pw32 DLLs use 'pw' prefix rather than 'lib'
15961      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15962      ;;
15963    esac
15964    ;;
15965
15966  *)
15967    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15968    ;;
15969  esac
15970  dynamic_linker='Win32 ld.exe'
15971  # FIXME: first we should search . and the directory the executable is in
15972  shlibpath_var=PATH
15973  ;;
15974
15975darwin* | rhapsody*)
15976  dynamic_linker="$host_os dyld"
15977  version_type=darwin
15978  need_lib_prefix=no
15979  need_version=no
15980  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15981  soname_spec='${libname}${release}${major}$shared_ext'
15982  shlibpath_overrides_runpath=yes
15983  shlibpath_var=DYLD_LIBRARY_PATH
15984  shrext_cmds='.dylib'
15985  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15986  if test "$GCC" = yes; then
15987    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"`
15988  else
15989    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15990  fi
15991  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15992  ;;
15993
15994dgux*)
15995  version_type=linux
15996  need_lib_prefix=no
15997  need_version=no
15998  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15999  soname_spec='${libname}${release}${shared_ext}$major'
16000  shlibpath_var=LD_LIBRARY_PATH
16001  ;;
16002
16003freebsd1*)
16004  dynamic_linker=no
16005  ;;
16006
16007kfreebsd*-gnu)
16008  version_type=linux
16009  need_lib_prefix=no
16010  need_version=no
16011  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16012  soname_spec='${libname}${release}${shared_ext}$major'
16013  shlibpath_var=LD_LIBRARY_PATH
16014  shlibpath_overrides_runpath=no
16015  hardcode_into_libs=yes
16016  dynamic_linker='GNU ld.so'
16017  ;;
16018
16019freebsd* | dragonfly*)
16020  # DragonFly does not have aout.  When/if they implement a new
16021  # versioning mechanism, adjust this.
16022  if test -x /usr/bin/objformat; then
16023    objformat=`/usr/bin/objformat`
16024  else
16025    case $host_os in
16026    freebsd[123]*) objformat=aout ;;
16027    *) objformat=elf ;;
16028    esac
16029  fi
16030  version_type=freebsd-$objformat
16031  case $version_type in
16032    freebsd-elf*)
16033      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16034      need_version=no
16035      need_lib_prefix=no
16036      ;;
16037    freebsd-*)
16038      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16039      need_version=yes
16040      ;;
16041  esac
16042  shlibpath_var=LD_LIBRARY_PATH
16043  case $host_os in
16044  freebsd2*)
16045    shlibpath_overrides_runpath=yes
16046    ;;
16047  freebsd3.[01]* | freebsdelf3.[01]*)
16048    shlibpath_overrides_runpath=yes
16049    hardcode_into_libs=yes
16050    ;;
16051  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16052  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16053    shlibpath_overrides_runpath=no
16054    hardcode_into_libs=yes
16055    ;;
16056  freebsd*) # from 4.6 on
16057    shlibpath_overrides_runpath=yes
16058    hardcode_into_libs=yes
16059    ;;
16060  esac
16061  ;;
16062
16063gnu*)
16064  version_type=linux
16065  need_lib_prefix=no
16066  need_version=no
16067  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16068  soname_spec='${libname}${release}${shared_ext}$major'
16069  shlibpath_var=LD_LIBRARY_PATH
16070  hardcode_into_libs=yes
16071  ;;
16072
16073hpux9* | hpux10* | hpux11*)
16074  # Give a soname corresponding to the major version so that dld.sl refuses to
16075  # link against other versions.
16076  version_type=sunos
16077  need_lib_prefix=no
16078  need_version=no
16079  case $host_cpu in
16080  ia64*)
16081    shrext_cmds='.so'
16082    hardcode_into_libs=yes
16083    dynamic_linker="$host_os dld.so"
16084    shlibpath_var=LD_LIBRARY_PATH
16085    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16086    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16087    soname_spec='${libname}${release}${shared_ext}$major'
16088    if test "X$HPUX_IA64_MODE" = X32; then
16089      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16090    else
16091      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16092    fi
16093    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16094    ;;
16095   hppa*64*)
16096     shrext_cmds='.sl'
16097     hardcode_into_libs=yes
16098     dynamic_linker="$host_os dld.sl"
16099     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16100     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16101     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16102     soname_spec='${libname}${release}${shared_ext}$major'
16103     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16104     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16105     ;;
16106   *)
16107    shrext_cmds='.sl'
16108    dynamic_linker="$host_os dld.sl"
16109    shlibpath_var=SHLIB_PATH
16110    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16111    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16112    soname_spec='${libname}${release}${shared_ext}$major'
16113    ;;
16114  esac
16115  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16116  postinstall_cmds='chmod 555 $lib'
16117  ;;
16118
16119interix3*)
16120  version_type=linux
16121  need_lib_prefix=no
16122  need_version=no
16123  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16124  soname_spec='${libname}${release}${shared_ext}$major'
16125  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16126  shlibpath_var=LD_LIBRARY_PATH
16127  shlibpath_overrides_runpath=no
16128  hardcode_into_libs=yes
16129  ;;
16130
16131irix5* | irix6* | nonstopux*)
16132  case $host_os in
16133    nonstopux*) version_type=nonstopux ;;
16134    *)
16135	if test "$lt_cv_prog_gnu_ld" = yes; then
16136		version_type=linux
16137	else
16138		version_type=irix
16139	fi ;;
16140  esac
16141  need_lib_prefix=no
16142  need_version=no
16143  soname_spec='${libname}${release}${shared_ext}$major'
16144  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16145  case $host_os in
16146  irix5* | nonstopux*)
16147    libsuff= shlibsuff=
16148    ;;
16149  *)
16150    case $LD in # libtool.m4 will add one of these switches to LD
16151    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16152      libsuff= shlibsuff= libmagic=32-bit;;
16153    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16154      libsuff=32 shlibsuff=N32 libmagic=N32;;
16155    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16156      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16157    *) libsuff= shlibsuff= libmagic=never-match;;
16158    esac
16159    ;;
16160  esac
16161  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16162  shlibpath_overrides_runpath=no
16163  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16164  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16165  hardcode_into_libs=yes
16166  ;;
16167
16168# No shared lib support for Linux oldld, aout, or coff.
16169linux*oldld* | linux*aout* | linux*coff*)
16170  dynamic_linker=no
16171  ;;
16172
16173# This must be Linux ELF.
16174linux*)
16175  version_type=linux
16176  need_lib_prefix=no
16177  need_version=no
16178  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16179  soname_spec='${libname}${release}${shared_ext}$major'
16180  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16181  shlibpath_var=LD_LIBRARY_PATH
16182  shlibpath_overrides_runpath=no
16183  # This implies no fast_install, which is unacceptable.
16184  # Some rework will be needed to allow for fast_install
16185  # before this can be enabled.
16186  hardcode_into_libs=yes
16187
16188  # Append ld.so.conf contents to the search path
16189  if test -f /etc/ld.so.conf; then
16190    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' ' '`
16191    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16192  fi
16193
16194  # We used to test for /lib/ld.so.1 and disable shared libraries on
16195  # powerpc, because MkLinux only supported shared libraries with the
16196  # GNU dynamic linker.  Since this was broken with cross compilers,
16197  # most powerpc-linux boxes support dynamic linking these days and
16198  # people can always --disable-shared, the test was removed, and we
16199  # assume the GNU/Linux dynamic linker is in use.
16200  dynamic_linker='GNU/Linux ld.so'
16201  ;;
16202
16203knetbsd*-gnu)
16204  version_type=linux
16205  need_lib_prefix=no
16206  need_version=no
16207  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16208  soname_spec='${libname}${release}${shared_ext}$major'
16209  shlibpath_var=LD_LIBRARY_PATH
16210  shlibpath_overrides_runpath=no
16211  hardcode_into_libs=yes
16212  dynamic_linker='GNU ld.so'
16213  ;;
16214
16215netbsd*)
16216  version_type=sunos
16217  need_lib_prefix=no
16218  need_version=no
16219  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16220    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16221    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16222    dynamic_linker='NetBSD (a.out) ld.so'
16223  else
16224    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16225    soname_spec='${libname}${release}${shared_ext}$major'
16226    dynamic_linker='NetBSD ld.elf_so'
16227  fi
16228  shlibpath_var=LD_LIBRARY_PATH
16229  shlibpath_overrides_runpath=yes
16230  hardcode_into_libs=yes
16231  ;;
16232
16233newsos6)
16234  version_type=linux
16235  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16236  shlibpath_var=LD_LIBRARY_PATH
16237  shlibpath_overrides_runpath=yes
16238  ;;
16239
16240nto-qnx*)
16241  version_type=linux
16242  need_lib_prefix=no
16243  need_version=no
16244  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16245  soname_spec='${libname}${release}${shared_ext}$major'
16246  shlibpath_var=LD_LIBRARY_PATH
16247  shlibpath_overrides_runpath=yes
16248  ;;
16249
16250openbsd*)
16251  version_type=sunos
16252  sys_lib_dlsearch_path_spec="/usr/lib"
16253  need_lib_prefix=no
16254  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16255  case $host_os in
16256    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16257    *)                         need_version=no  ;;
16258  esac
16259  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16260  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16261  shlibpath_var=LD_LIBRARY_PATH
16262  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16263    case $host_os in
16264      openbsd2.[89] | openbsd2.[89].*)
16265	shlibpath_overrides_runpath=no
16266	;;
16267      *)
16268	shlibpath_overrides_runpath=yes
16269	;;
16270      esac
16271  else
16272    shlibpath_overrides_runpath=yes
16273  fi
16274  ;;
16275
16276os2*)
16277  libname_spec='$name'
16278  shrext_cmds=".dll"
16279  need_lib_prefix=no
16280  library_names_spec='$libname${shared_ext} $libname.a'
16281  dynamic_linker='OS/2 ld.exe'
16282  shlibpath_var=LIBPATH
16283  ;;
16284
16285osf3* | osf4* | osf5*)
16286  version_type=osf
16287  need_lib_prefix=no
16288  need_version=no
16289  soname_spec='${libname}${release}${shared_ext}$major'
16290  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16291  shlibpath_var=LD_LIBRARY_PATH
16292  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16293  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16294  ;;
16295
16296solaris*)
16297  version_type=linux
16298  need_lib_prefix=no
16299  need_version=no
16300  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16301  soname_spec='${libname}${release}${shared_ext}$major'
16302  shlibpath_var=LD_LIBRARY_PATH
16303  shlibpath_overrides_runpath=yes
16304  hardcode_into_libs=yes
16305  # ldd complains unless libraries are executable
16306  postinstall_cmds='chmod +x $lib'
16307  ;;
16308
16309sunos4*)
16310  version_type=sunos
16311  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16312  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16313  shlibpath_var=LD_LIBRARY_PATH
16314  shlibpath_overrides_runpath=yes
16315  if test "$with_gnu_ld" = yes; then
16316    need_lib_prefix=no
16317  fi
16318  need_version=yes
16319  ;;
16320
16321sysv4 | sysv4.3*)
16322  version_type=linux
16323  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16324  soname_spec='${libname}${release}${shared_ext}$major'
16325  shlibpath_var=LD_LIBRARY_PATH
16326  case $host_vendor in
16327    sni)
16328      shlibpath_overrides_runpath=no
16329      need_lib_prefix=no
16330      export_dynamic_flag_spec='${wl}-Blargedynsym'
16331      runpath_var=LD_RUN_PATH
16332      ;;
16333    siemens)
16334      need_lib_prefix=no
16335      ;;
16336    motorola)
16337      need_lib_prefix=no
16338      need_version=no
16339      shlibpath_overrides_runpath=no
16340      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16341      ;;
16342  esac
16343  ;;
16344
16345sysv4*MP*)
16346  if test -d /usr/nec ;then
16347    version_type=linux
16348    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16349    soname_spec='$libname${shared_ext}.$major'
16350    shlibpath_var=LD_LIBRARY_PATH
16351  fi
16352  ;;
16353
16354sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16355  version_type=freebsd-elf
16356  need_lib_prefix=no
16357  need_version=no
16358  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16359  soname_spec='${libname}${release}${shared_ext}$major'
16360  shlibpath_var=LD_LIBRARY_PATH
16361  hardcode_into_libs=yes
16362  if test "$with_gnu_ld" = yes; then
16363    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16364    shlibpath_overrides_runpath=no
16365  else
16366    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16367    shlibpath_overrides_runpath=yes
16368    case $host_os in
16369      sco3.2v5*)
16370        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16371	;;
16372    esac
16373  fi
16374  sys_lib_dlsearch_path_spec='/usr/lib'
16375  ;;
16376
16377uts4*)
16378  version_type=linux
16379  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16380  soname_spec='${libname}${release}${shared_ext}$major'
16381  shlibpath_var=LD_LIBRARY_PATH
16382  ;;
16383
16384*)
16385  dynamic_linker=no
16386  ;;
16387esac
16388{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16389echo "${ECHO_T}$dynamic_linker" >&6; }
16390test "$dynamic_linker" = no && can_build_shared=no
16391
16392variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16393if test "$GCC" = yes; then
16394  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16395fi
16396
16397{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16398echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16399hardcode_action=
16400if test -n "$hardcode_libdir_flag_spec" || \
16401   test -n "$runpath_var" || \
16402   test "X$hardcode_automatic" = "Xyes" ; then
16403
16404  # We can hardcode non-existant directories.
16405  if test "$hardcode_direct" != no &&
16406     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16407     # have to relink, otherwise we might link with an installed library
16408     # when we should be linking with a yet-to-be-installed one
16409     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16410     test "$hardcode_minus_L" != no; then
16411    # Linking always hardcodes the temporary library directory.
16412    hardcode_action=relink
16413  else
16414    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16415    hardcode_action=immediate
16416  fi
16417else
16418  # We cannot hardcode anything, or else we can only hardcode existing
16419  # directories.
16420  hardcode_action=unsupported
16421fi
16422{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16423echo "${ECHO_T}$hardcode_action" >&6; }
16424
16425if test "$hardcode_action" = relink; then
16426  # Fast installation is not supported
16427  enable_fast_install=no
16428elif test "$shlibpath_overrides_runpath" = yes ||
16429     test "$enable_shared" = no; then
16430  # Fast installation is not necessary
16431  enable_fast_install=needless
16432fi
16433
16434striplib=
16435old_striplib=
16436{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16437echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16438if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16439  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16440  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16441  { echo "$as_me:$LINENO: result: yes" >&5
16442echo "${ECHO_T}yes" >&6; }
16443else
16444# FIXME - insert some real tests, host_os isn't really good enough
16445  case $host_os in
16446   darwin*)
16447       if test -n "$STRIP" ; then
16448         striplib="$STRIP -x"
16449         { echo "$as_me:$LINENO: result: yes" >&5
16450echo "${ECHO_T}yes" >&6; }
16451       else
16452  { echo "$as_me:$LINENO: result: no" >&5
16453echo "${ECHO_T}no" >&6; }
16454fi
16455       ;;
16456   *)
16457  { echo "$as_me:$LINENO: result: no" >&5
16458echo "${ECHO_T}no" >&6; }
16459    ;;
16460  esac
16461fi
16462
16463if test "x$enable_dlopen" != xyes; then
16464  enable_dlopen=unknown
16465  enable_dlopen_self=unknown
16466  enable_dlopen_self_static=unknown
16467else
16468  lt_cv_dlopen=no
16469  lt_cv_dlopen_libs=
16470
16471  case $host_os in
16472  beos*)
16473    lt_cv_dlopen="load_add_on"
16474    lt_cv_dlopen_libs=
16475    lt_cv_dlopen_self=yes
16476    ;;
16477
16478  mingw* | pw32*)
16479    lt_cv_dlopen="LoadLibrary"
16480    lt_cv_dlopen_libs=
16481   ;;
16482
16483  cygwin*)
16484    lt_cv_dlopen="dlopen"
16485    lt_cv_dlopen_libs=
16486   ;;
16487
16488  darwin*)
16489  # if libdl is installed we need to link against it
16490    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16491echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16492if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16493  echo $ECHO_N "(cached) $ECHO_C" >&6
16494else
16495  ac_check_lib_save_LIBS=$LIBS
16496LIBS="-ldl  $LIBS"
16497cat >conftest.$ac_ext <<_ACEOF
16498/* confdefs.h.  */
16499_ACEOF
16500cat confdefs.h >>conftest.$ac_ext
16501cat >>conftest.$ac_ext <<_ACEOF
16502/* end confdefs.h.  */
16503
16504/* Override any GCC internal prototype to avoid an error.
16505   Use char because int might match the return type of a GCC
16506   builtin and then its argument prototype would still apply.  */
16507#ifdef __cplusplus
16508extern "C"
16509#endif
16510char dlopen ();
16511int
16512main ()
16513{
16514return dlopen ();
16515  ;
16516  return 0;
16517}
16518_ACEOF
16519rm -f conftest.$ac_objext conftest$ac_exeext
16520if { (ac_try="$ac_link"
16521case "(($ac_try" in
16522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16523  *) ac_try_echo=$ac_try;;
16524esac
16525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16526  (eval "$ac_link") 2>conftest.er1
16527  ac_status=$?
16528  grep -v '^ *+' conftest.er1 >conftest.err
16529  rm -f conftest.er1
16530  cat conftest.err >&5
16531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532  (exit $ac_status); } &&
16533	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16534  { (case "(($ac_try" in
16535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16536  *) ac_try_echo=$ac_try;;
16537esac
16538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16539  (eval "$ac_try") 2>&5
16540  ac_status=$?
16541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542  (exit $ac_status); }; } &&
16543	 { ac_try='test -s conftest$ac_exeext'
16544  { (case "(($ac_try" in
16545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16546  *) ac_try_echo=$ac_try;;
16547esac
16548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16549  (eval "$ac_try") 2>&5
16550  ac_status=$?
16551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552  (exit $ac_status); }; }; then
16553  ac_cv_lib_dl_dlopen=yes
16554else
16555  echo "$as_me: failed program was:" >&5
16556sed 's/^/| /' conftest.$ac_ext >&5
16557
16558	ac_cv_lib_dl_dlopen=no
16559fi
16560
16561rm -f core conftest.err conftest.$ac_objext \
16562      conftest$ac_exeext conftest.$ac_ext
16563LIBS=$ac_check_lib_save_LIBS
16564fi
16565{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16566echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16567if test $ac_cv_lib_dl_dlopen = yes; then
16568  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16569else
16570
16571    lt_cv_dlopen="dyld"
16572    lt_cv_dlopen_libs=
16573    lt_cv_dlopen_self=yes
16574
16575fi
16576
16577   ;;
16578
16579  *)
16580    { echo "$as_me:$LINENO: checking for shl_load" >&5
16581echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16582if test "${ac_cv_func_shl_load+set}" = set; then
16583  echo $ECHO_N "(cached) $ECHO_C" >&6
16584else
16585  cat >conftest.$ac_ext <<_ACEOF
16586/* confdefs.h.  */
16587_ACEOF
16588cat confdefs.h >>conftest.$ac_ext
16589cat >>conftest.$ac_ext <<_ACEOF
16590/* end confdefs.h.  */
16591/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16592   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16593#define shl_load innocuous_shl_load
16594
16595/* System header to define __stub macros and hopefully few prototypes,
16596    which can conflict with char shl_load (); below.
16597    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16598    <limits.h> exists even on freestanding compilers.  */
16599
16600#ifdef __STDC__
16601# include <limits.h>
16602#else
16603# include <assert.h>
16604#endif
16605
16606#undef shl_load
16607
16608/* Override any GCC internal prototype to avoid an error.
16609   Use char because int might match the return type of a GCC
16610   builtin and then its argument prototype would still apply.  */
16611#ifdef __cplusplus
16612extern "C"
16613#endif
16614char shl_load ();
16615/* The GNU C library defines this for functions which it implements
16616    to always fail with ENOSYS.  Some functions are actually named
16617    something starting with __ and the normal name is an alias.  */
16618#if defined __stub_shl_load || defined __stub___shl_load
16619choke me
16620#endif
16621
16622int
16623main ()
16624{
16625return shl_load ();
16626  ;
16627  return 0;
16628}
16629_ACEOF
16630rm -f conftest.$ac_objext conftest$ac_exeext
16631if { (ac_try="$ac_link"
16632case "(($ac_try" in
16633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16634  *) ac_try_echo=$ac_try;;
16635esac
16636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16637  (eval "$ac_link") 2>conftest.er1
16638  ac_status=$?
16639  grep -v '^ *+' conftest.er1 >conftest.err
16640  rm -f conftest.er1
16641  cat conftest.err >&5
16642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643  (exit $ac_status); } &&
16644	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16645  { (case "(($ac_try" in
16646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16647  *) ac_try_echo=$ac_try;;
16648esac
16649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16650  (eval "$ac_try") 2>&5
16651  ac_status=$?
16652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653  (exit $ac_status); }; } &&
16654	 { ac_try='test -s conftest$ac_exeext'
16655  { (case "(($ac_try" in
16656  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16657  *) ac_try_echo=$ac_try;;
16658esac
16659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16660  (eval "$ac_try") 2>&5
16661  ac_status=$?
16662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663  (exit $ac_status); }; }; then
16664  ac_cv_func_shl_load=yes
16665else
16666  echo "$as_me: failed program was:" >&5
16667sed 's/^/| /' conftest.$ac_ext >&5
16668
16669	ac_cv_func_shl_load=no
16670fi
16671
16672rm -f core conftest.err conftest.$ac_objext \
16673      conftest$ac_exeext conftest.$ac_ext
16674fi
16675{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16676echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16677if test $ac_cv_func_shl_load = yes; then
16678  lt_cv_dlopen="shl_load"
16679else
16680  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16681echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16682if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16683  echo $ECHO_N "(cached) $ECHO_C" >&6
16684else
16685  ac_check_lib_save_LIBS=$LIBS
16686LIBS="-ldld  $LIBS"
16687cat >conftest.$ac_ext <<_ACEOF
16688/* confdefs.h.  */
16689_ACEOF
16690cat confdefs.h >>conftest.$ac_ext
16691cat >>conftest.$ac_ext <<_ACEOF
16692/* end confdefs.h.  */
16693
16694/* Override any GCC internal prototype to avoid an error.
16695   Use char because int might match the return type of a GCC
16696   builtin and then its argument prototype would still apply.  */
16697#ifdef __cplusplus
16698extern "C"
16699#endif
16700char shl_load ();
16701int
16702main ()
16703{
16704return shl_load ();
16705  ;
16706  return 0;
16707}
16708_ACEOF
16709rm -f conftest.$ac_objext conftest$ac_exeext
16710if { (ac_try="$ac_link"
16711case "(($ac_try" in
16712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16713  *) ac_try_echo=$ac_try;;
16714esac
16715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16716  (eval "$ac_link") 2>conftest.er1
16717  ac_status=$?
16718  grep -v '^ *+' conftest.er1 >conftest.err
16719  rm -f conftest.er1
16720  cat conftest.err >&5
16721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722  (exit $ac_status); } &&
16723	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16724  { (case "(($ac_try" in
16725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16726  *) ac_try_echo=$ac_try;;
16727esac
16728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16729  (eval "$ac_try") 2>&5
16730  ac_status=$?
16731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732  (exit $ac_status); }; } &&
16733	 { ac_try='test -s conftest$ac_exeext'
16734  { (case "(($ac_try" in
16735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16736  *) ac_try_echo=$ac_try;;
16737esac
16738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16739  (eval "$ac_try") 2>&5
16740  ac_status=$?
16741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742  (exit $ac_status); }; }; then
16743  ac_cv_lib_dld_shl_load=yes
16744else
16745  echo "$as_me: failed program was:" >&5
16746sed 's/^/| /' conftest.$ac_ext >&5
16747
16748	ac_cv_lib_dld_shl_load=no
16749fi
16750
16751rm -f core conftest.err conftest.$ac_objext \
16752      conftest$ac_exeext conftest.$ac_ext
16753LIBS=$ac_check_lib_save_LIBS
16754fi
16755{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16756echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16757if test $ac_cv_lib_dld_shl_load = yes; then
16758  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16759else
16760  { echo "$as_me:$LINENO: checking for dlopen" >&5
16761echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16762if test "${ac_cv_func_dlopen+set}" = set; then
16763  echo $ECHO_N "(cached) $ECHO_C" >&6
16764else
16765  cat >conftest.$ac_ext <<_ACEOF
16766/* confdefs.h.  */
16767_ACEOF
16768cat confdefs.h >>conftest.$ac_ext
16769cat >>conftest.$ac_ext <<_ACEOF
16770/* end confdefs.h.  */
16771/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16772   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16773#define dlopen innocuous_dlopen
16774
16775/* System header to define __stub macros and hopefully few prototypes,
16776    which can conflict with char dlopen (); below.
16777    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16778    <limits.h> exists even on freestanding compilers.  */
16779
16780#ifdef __STDC__
16781# include <limits.h>
16782#else
16783# include <assert.h>
16784#endif
16785
16786#undef dlopen
16787
16788/* Override any GCC internal prototype to avoid an error.
16789   Use char because int might match the return type of a GCC
16790   builtin and then its argument prototype would still apply.  */
16791#ifdef __cplusplus
16792extern "C"
16793#endif
16794char dlopen ();
16795/* The GNU C library defines this for functions which it implements
16796    to always fail with ENOSYS.  Some functions are actually named
16797    something starting with __ and the normal name is an alias.  */
16798#if defined __stub_dlopen || defined __stub___dlopen
16799choke me
16800#endif
16801
16802int
16803main ()
16804{
16805return dlopen ();
16806  ;
16807  return 0;
16808}
16809_ACEOF
16810rm -f conftest.$ac_objext conftest$ac_exeext
16811if { (ac_try="$ac_link"
16812case "(($ac_try" in
16813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16814  *) ac_try_echo=$ac_try;;
16815esac
16816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16817  (eval "$ac_link") 2>conftest.er1
16818  ac_status=$?
16819  grep -v '^ *+' conftest.er1 >conftest.err
16820  rm -f conftest.er1
16821  cat conftest.err >&5
16822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823  (exit $ac_status); } &&
16824	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16825  { (case "(($ac_try" in
16826  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16827  *) ac_try_echo=$ac_try;;
16828esac
16829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16830  (eval "$ac_try") 2>&5
16831  ac_status=$?
16832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833  (exit $ac_status); }; } &&
16834	 { ac_try='test -s conftest$ac_exeext'
16835  { (case "(($ac_try" in
16836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16837  *) ac_try_echo=$ac_try;;
16838esac
16839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16840  (eval "$ac_try") 2>&5
16841  ac_status=$?
16842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843  (exit $ac_status); }; }; then
16844  ac_cv_func_dlopen=yes
16845else
16846  echo "$as_me: failed program was:" >&5
16847sed 's/^/| /' conftest.$ac_ext >&5
16848
16849	ac_cv_func_dlopen=no
16850fi
16851
16852rm -f core conftest.err conftest.$ac_objext \
16853      conftest$ac_exeext conftest.$ac_ext
16854fi
16855{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16856echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16857if test $ac_cv_func_dlopen = yes; then
16858  lt_cv_dlopen="dlopen"
16859else
16860  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16861echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16862if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16863  echo $ECHO_N "(cached) $ECHO_C" >&6
16864else
16865  ac_check_lib_save_LIBS=$LIBS
16866LIBS="-ldl  $LIBS"
16867cat >conftest.$ac_ext <<_ACEOF
16868/* confdefs.h.  */
16869_ACEOF
16870cat confdefs.h >>conftest.$ac_ext
16871cat >>conftest.$ac_ext <<_ACEOF
16872/* end confdefs.h.  */
16873
16874/* Override any GCC internal prototype to avoid an error.
16875   Use char because int might match the return type of a GCC
16876   builtin and then its argument prototype would still apply.  */
16877#ifdef __cplusplus
16878extern "C"
16879#endif
16880char dlopen ();
16881int
16882main ()
16883{
16884return dlopen ();
16885  ;
16886  return 0;
16887}
16888_ACEOF
16889rm -f conftest.$ac_objext conftest$ac_exeext
16890if { (ac_try="$ac_link"
16891case "(($ac_try" in
16892  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16893  *) ac_try_echo=$ac_try;;
16894esac
16895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16896  (eval "$ac_link") 2>conftest.er1
16897  ac_status=$?
16898  grep -v '^ *+' conftest.er1 >conftest.err
16899  rm -f conftest.er1
16900  cat conftest.err >&5
16901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902  (exit $ac_status); } &&
16903	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16904  { (case "(($ac_try" in
16905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906  *) ac_try_echo=$ac_try;;
16907esac
16908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16909  (eval "$ac_try") 2>&5
16910  ac_status=$?
16911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912  (exit $ac_status); }; } &&
16913	 { ac_try='test -s conftest$ac_exeext'
16914  { (case "(($ac_try" in
16915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16916  *) ac_try_echo=$ac_try;;
16917esac
16918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16919  (eval "$ac_try") 2>&5
16920  ac_status=$?
16921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922  (exit $ac_status); }; }; then
16923  ac_cv_lib_dl_dlopen=yes
16924else
16925  echo "$as_me: failed program was:" >&5
16926sed 's/^/| /' conftest.$ac_ext >&5
16927
16928	ac_cv_lib_dl_dlopen=no
16929fi
16930
16931rm -f core conftest.err conftest.$ac_objext \
16932      conftest$ac_exeext conftest.$ac_ext
16933LIBS=$ac_check_lib_save_LIBS
16934fi
16935{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16936echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16937if test $ac_cv_lib_dl_dlopen = yes; then
16938  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16939else
16940  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16941echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16942if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16943  echo $ECHO_N "(cached) $ECHO_C" >&6
16944else
16945  ac_check_lib_save_LIBS=$LIBS
16946LIBS="-lsvld  $LIBS"
16947cat >conftest.$ac_ext <<_ACEOF
16948/* confdefs.h.  */
16949_ACEOF
16950cat confdefs.h >>conftest.$ac_ext
16951cat >>conftest.$ac_ext <<_ACEOF
16952/* end confdefs.h.  */
16953
16954/* Override any GCC internal prototype to avoid an error.
16955   Use char because int might match the return type of a GCC
16956   builtin and then its argument prototype would still apply.  */
16957#ifdef __cplusplus
16958extern "C"
16959#endif
16960char dlopen ();
16961int
16962main ()
16963{
16964return dlopen ();
16965  ;
16966  return 0;
16967}
16968_ACEOF
16969rm -f conftest.$ac_objext conftest$ac_exeext
16970if { (ac_try="$ac_link"
16971case "(($ac_try" in
16972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16973  *) ac_try_echo=$ac_try;;
16974esac
16975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16976  (eval "$ac_link") 2>conftest.er1
16977  ac_status=$?
16978  grep -v '^ *+' conftest.er1 >conftest.err
16979  rm -f conftest.er1
16980  cat conftest.err >&5
16981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982  (exit $ac_status); } &&
16983	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16984  { (case "(($ac_try" in
16985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16986  *) ac_try_echo=$ac_try;;
16987esac
16988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16989  (eval "$ac_try") 2>&5
16990  ac_status=$?
16991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992  (exit $ac_status); }; } &&
16993	 { ac_try='test -s conftest$ac_exeext'
16994  { (case "(($ac_try" in
16995  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16996  *) ac_try_echo=$ac_try;;
16997esac
16998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16999  (eval "$ac_try") 2>&5
17000  ac_status=$?
17001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002  (exit $ac_status); }; }; then
17003  ac_cv_lib_svld_dlopen=yes
17004else
17005  echo "$as_me: failed program was:" >&5
17006sed 's/^/| /' conftest.$ac_ext >&5
17007
17008	ac_cv_lib_svld_dlopen=no
17009fi
17010
17011rm -f core conftest.err conftest.$ac_objext \
17012      conftest$ac_exeext conftest.$ac_ext
17013LIBS=$ac_check_lib_save_LIBS
17014fi
17015{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17016echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17017if test $ac_cv_lib_svld_dlopen = yes; then
17018  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17019else
17020  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17021echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17022if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17023  echo $ECHO_N "(cached) $ECHO_C" >&6
17024else
17025  ac_check_lib_save_LIBS=$LIBS
17026LIBS="-ldld  $LIBS"
17027cat >conftest.$ac_ext <<_ACEOF
17028/* confdefs.h.  */
17029_ACEOF
17030cat confdefs.h >>conftest.$ac_ext
17031cat >>conftest.$ac_ext <<_ACEOF
17032/* end confdefs.h.  */
17033
17034/* Override any GCC internal prototype to avoid an error.
17035   Use char because int might match the return type of a GCC
17036   builtin and then its argument prototype would still apply.  */
17037#ifdef __cplusplus
17038extern "C"
17039#endif
17040char dld_link ();
17041int
17042main ()
17043{
17044return dld_link ();
17045  ;
17046  return 0;
17047}
17048_ACEOF
17049rm -f conftest.$ac_objext conftest$ac_exeext
17050if { (ac_try="$ac_link"
17051case "(($ac_try" in
17052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17053  *) ac_try_echo=$ac_try;;
17054esac
17055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17056  (eval "$ac_link") 2>conftest.er1
17057  ac_status=$?
17058  grep -v '^ *+' conftest.er1 >conftest.err
17059  rm -f conftest.er1
17060  cat conftest.err >&5
17061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062  (exit $ac_status); } &&
17063	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17064  { (case "(($ac_try" in
17065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17066  *) ac_try_echo=$ac_try;;
17067esac
17068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17069  (eval "$ac_try") 2>&5
17070  ac_status=$?
17071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072  (exit $ac_status); }; } &&
17073	 { ac_try='test -s conftest$ac_exeext'
17074  { (case "(($ac_try" in
17075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17076  *) ac_try_echo=$ac_try;;
17077esac
17078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17079  (eval "$ac_try") 2>&5
17080  ac_status=$?
17081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082  (exit $ac_status); }; }; then
17083  ac_cv_lib_dld_dld_link=yes
17084else
17085  echo "$as_me: failed program was:" >&5
17086sed 's/^/| /' conftest.$ac_ext >&5
17087
17088	ac_cv_lib_dld_dld_link=no
17089fi
17090
17091rm -f core conftest.err conftest.$ac_objext \
17092      conftest$ac_exeext conftest.$ac_ext
17093LIBS=$ac_check_lib_save_LIBS
17094fi
17095{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17096echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17097if test $ac_cv_lib_dld_dld_link = yes; then
17098  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17099fi
17100
17101
17102fi
17103
17104
17105fi
17106
17107
17108fi
17109
17110
17111fi
17112
17113
17114fi
17115
17116    ;;
17117  esac
17118
17119  if test "x$lt_cv_dlopen" != xno; then
17120    enable_dlopen=yes
17121  else
17122    enable_dlopen=no
17123  fi
17124
17125  case $lt_cv_dlopen in
17126  dlopen)
17127    save_CPPFLAGS="$CPPFLAGS"
17128    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17129
17130    save_LDFLAGS="$LDFLAGS"
17131    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17132
17133    save_LIBS="$LIBS"
17134    LIBS="$lt_cv_dlopen_libs $LIBS"
17135
17136    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17137echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17138if test "${lt_cv_dlopen_self+set}" = set; then
17139  echo $ECHO_N "(cached) $ECHO_C" >&6
17140else
17141  	  if test "$cross_compiling" = yes; then :
17142  lt_cv_dlopen_self=cross
17143else
17144  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17145  lt_status=$lt_dlunknown
17146  cat > conftest.$ac_ext <<EOF
17147#line 17147 "configure"
17148#include "confdefs.h"
17149
17150#if HAVE_DLFCN_H
17151#include <dlfcn.h>
17152#endif
17153
17154#include <stdio.h>
17155
17156#ifdef RTLD_GLOBAL
17157#  define LT_DLGLOBAL		RTLD_GLOBAL
17158#else
17159#  ifdef DL_GLOBAL
17160#    define LT_DLGLOBAL		DL_GLOBAL
17161#  else
17162#    define LT_DLGLOBAL		0
17163#  endif
17164#endif
17165
17166/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17167   find out it does not work in some platform. */
17168#ifndef LT_DLLAZY_OR_NOW
17169#  ifdef RTLD_LAZY
17170#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17171#  else
17172#    ifdef DL_LAZY
17173#      define LT_DLLAZY_OR_NOW		DL_LAZY
17174#    else
17175#      ifdef RTLD_NOW
17176#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17177#      else
17178#        ifdef DL_NOW
17179#          define LT_DLLAZY_OR_NOW	DL_NOW
17180#        else
17181#          define LT_DLLAZY_OR_NOW	0
17182#        endif
17183#      endif
17184#    endif
17185#  endif
17186#endif
17187
17188#ifdef __cplusplus
17189extern "C" void exit (int);
17190#endif
17191
17192void fnord() { int i=42;}
17193int main ()
17194{
17195  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17196  int status = $lt_dlunknown;
17197
17198  if (self)
17199    {
17200      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17201      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17202      /* dlclose (self); */
17203    }
17204  else
17205    puts (dlerror ());
17206
17207    exit (status);
17208}
17209EOF
17210  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17211  (eval $ac_link) 2>&5
17212  ac_status=$?
17213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17215    (./conftest; exit; ) >&5 2>/dev/null
17216    lt_status=$?
17217    case x$lt_status in
17218      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17219      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17220      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17221    esac
17222  else :
17223    # compilation failed
17224    lt_cv_dlopen_self=no
17225  fi
17226fi
17227rm -fr conftest*
17228
17229
17230fi
17231{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17232echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17233
17234    if test "x$lt_cv_dlopen_self" = xyes; then
17235      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17236      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17237echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17238if test "${lt_cv_dlopen_self_static+set}" = set; then
17239  echo $ECHO_N "(cached) $ECHO_C" >&6
17240else
17241  	  if test "$cross_compiling" = yes; then :
17242  lt_cv_dlopen_self_static=cross
17243else
17244  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17245  lt_status=$lt_dlunknown
17246  cat > conftest.$ac_ext <<EOF
17247#line 17247 "configure"
17248#include "confdefs.h"
17249
17250#if HAVE_DLFCN_H
17251#include <dlfcn.h>
17252#endif
17253
17254#include <stdio.h>
17255
17256#ifdef RTLD_GLOBAL
17257#  define LT_DLGLOBAL		RTLD_GLOBAL
17258#else
17259#  ifdef DL_GLOBAL
17260#    define LT_DLGLOBAL		DL_GLOBAL
17261#  else
17262#    define LT_DLGLOBAL		0
17263#  endif
17264#endif
17265
17266/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17267   find out it does not work in some platform. */
17268#ifndef LT_DLLAZY_OR_NOW
17269#  ifdef RTLD_LAZY
17270#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17271#  else
17272#    ifdef DL_LAZY
17273#      define LT_DLLAZY_OR_NOW		DL_LAZY
17274#    else
17275#      ifdef RTLD_NOW
17276#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17277#      else
17278#        ifdef DL_NOW
17279#          define LT_DLLAZY_OR_NOW	DL_NOW
17280#        else
17281#          define LT_DLLAZY_OR_NOW	0
17282#        endif
17283#      endif
17284#    endif
17285#  endif
17286#endif
17287
17288#ifdef __cplusplus
17289extern "C" void exit (int);
17290#endif
17291
17292void fnord() { int i=42;}
17293int main ()
17294{
17295  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17296  int status = $lt_dlunknown;
17297
17298  if (self)
17299    {
17300      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17301      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17302      /* dlclose (self); */
17303    }
17304  else
17305    puts (dlerror ());
17306
17307    exit (status);
17308}
17309EOF
17310  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17311  (eval $ac_link) 2>&5
17312  ac_status=$?
17313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17315    (./conftest; exit; ) >&5 2>/dev/null
17316    lt_status=$?
17317    case x$lt_status in
17318      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17319      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17320      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17321    esac
17322  else :
17323    # compilation failed
17324    lt_cv_dlopen_self_static=no
17325  fi
17326fi
17327rm -fr conftest*
17328
17329
17330fi
17331{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17332echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17333    fi
17334
17335    CPPFLAGS="$save_CPPFLAGS"
17336    LDFLAGS="$save_LDFLAGS"
17337    LIBS="$save_LIBS"
17338    ;;
17339  esac
17340
17341  case $lt_cv_dlopen_self in
17342  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17343  *) enable_dlopen_self=unknown ;;
17344  esac
17345
17346  case $lt_cv_dlopen_self_static in
17347  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17348  *) enable_dlopen_self_static=unknown ;;
17349  esac
17350fi
17351
17352
17353# Report which library types will actually be built
17354{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17355echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17356{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17357echo "${ECHO_T}$can_build_shared" >&6; }
17358
17359{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17360echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17361test "$can_build_shared" = "no" && enable_shared=no
17362
17363# On AIX, shared libraries and static libraries use the same namespace, and
17364# are all built from PIC.
17365case $host_os in
17366aix3*)
17367  test "$enable_shared" = yes && enable_static=no
17368  if test -n "$RANLIB"; then
17369    archive_cmds="$archive_cmds~\$RANLIB \$lib"
17370    postinstall_cmds='$RANLIB $lib'
17371  fi
17372  ;;
17373
17374aix4* | aix5*)
17375  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17376    test "$enable_shared" = yes && enable_static=no
17377  fi
17378    ;;
17379esac
17380{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17381echo "${ECHO_T}$enable_shared" >&6; }
17382
17383{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17384echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17385# Make sure either enable_shared or enable_static is yes.
17386test "$enable_shared" = yes || enable_static=yes
17387{ echo "$as_me:$LINENO: result: $enable_static" >&5
17388echo "${ECHO_T}$enable_static" >&6; }
17389
17390# The else clause should only fire when bootstrapping the
17391# libtool distribution, otherwise you forgot to ship ltmain.sh
17392# with your package, and you will get complaints that there are
17393# no rules to generate ltmain.sh.
17394if test -f "$ltmain"; then
17395  # See if we are running on zsh, and set the options which allow our commands through
17396  # without removal of \ escapes.
17397  if test -n "${ZSH_VERSION+set}" ; then
17398    setopt NO_GLOB_SUBST
17399  fi
17400  # Now quote all the things that may contain metacharacters while being
17401  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17402  # variables and quote the copies for generation of the libtool script.
17403  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17404    SED SHELL STRIP \
17405    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17406    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17407    deplibs_check_method reload_flag reload_cmds need_locks \
17408    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17409    lt_cv_sys_global_symbol_to_c_name_address \
17410    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17411    old_postinstall_cmds old_postuninstall_cmds \
17412    compiler \
17413    CC \
17414    LD \
17415    lt_prog_compiler_wl \
17416    lt_prog_compiler_pic \
17417    lt_prog_compiler_static \
17418    lt_prog_compiler_no_builtin_flag \
17419    export_dynamic_flag_spec \
17420    thread_safe_flag_spec \
17421    whole_archive_flag_spec \
17422    enable_shared_with_static_runtimes \
17423    old_archive_cmds \
17424    old_archive_from_new_cmds \
17425    predep_objects \
17426    postdep_objects \
17427    predeps \
17428    postdeps \
17429    compiler_lib_search_path \
17430    archive_cmds \
17431    archive_expsym_cmds \
17432    postinstall_cmds \
17433    postuninstall_cmds \
17434    old_archive_from_expsyms_cmds \
17435    allow_undefined_flag \
17436    no_undefined_flag \
17437    export_symbols_cmds \
17438    hardcode_libdir_flag_spec \
17439    hardcode_libdir_flag_spec_ld \
17440    hardcode_libdir_separator \
17441    hardcode_automatic \
17442    module_cmds \
17443    module_expsym_cmds \
17444    lt_cv_prog_compiler_c_o \
17445    exclude_expsyms \
17446    include_expsyms; do
17447
17448    case $var in
17449    old_archive_cmds | \
17450    old_archive_from_new_cmds | \
17451    archive_cmds | \
17452    archive_expsym_cmds | \
17453    module_cmds | \
17454    module_expsym_cmds | \
17455    old_archive_from_expsyms_cmds | \
17456    export_symbols_cmds | \
17457    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17458    postinstall_cmds | postuninstall_cmds | \
17459    old_postinstall_cmds | old_postuninstall_cmds | \
17460    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17461      # Double-quote double-evaled strings.
17462      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17463      ;;
17464    *)
17465      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17466      ;;
17467    esac
17468  done
17469
17470  case $lt_echo in
17471  *'\$0 --fallback-echo"')
17472    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17473    ;;
17474  esac
17475
17476cfgfile="${ofile}T"
17477  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17478  $rm -f "$cfgfile"
17479  { echo "$as_me:$LINENO: creating $ofile" >&5
17480echo "$as_me: creating $ofile" >&6;}
17481
17482  cat <<__EOF__ >> "$cfgfile"
17483#! $SHELL
17484
17485# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17486# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17487# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17488#
17489# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17490# Free Software Foundation, Inc.
17491#
17492# This file is part of GNU Libtool:
17493# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17494#
17495# This program is free software; you can redistribute it and/or modify
17496# it under the terms of the GNU General Public License as published by
17497# the Free Software Foundation; either version 2 of the License, or
17498# (at your option) any later version.
17499#
17500# This program is distributed in the hope that it will be useful, but
17501# WITHOUT ANY WARRANTY; without even the implied warranty of
17502# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17503# General Public License for more details.
17504#
17505# You should have received a copy of the GNU General Public License
17506# along with this program; if not, write to the Free Software
17507# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17508#
17509# As a special exception to the GNU General Public License, if you
17510# distribute this file as part of a program that contains a
17511# configuration script generated by Autoconf, you may include it under
17512# the same distribution terms that you use for the rest of that program.
17513
17514# A sed program that does not truncate output.
17515SED=$lt_SED
17516
17517# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17518Xsed="$SED -e 1s/^X//"
17519
17520# The HP-UX ksh and POSIX shell print the target directory to stdout
17521# if CDPATH is set.
17522(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17523
17524# The names of the tagged configurations supported by this script.
17525available_tags=
17526
17527# ### BEGIN LIBTOOL CONFIG
17528
17529# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17530
17531# Shell to use when invoking shell scripts.
17532SHELL=$lt_SHELL
17533
17534# Whether or not to build shared libraries.
17535build_libtool_libs=$enable_shared
17536
17537# Whether or not to build static libraries.
17538build_old_libs=$enable_static
17539
17540# Whether or not to add -lc for building shared libraries.
17541build_libtool_need_lc=$archive_cmds_need_lc
17542
17543# Whether or not to disallow shared libs when runtime libs are static
17544allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17545
17546# Whether or not to optimize for fast installation.
17547fast_install=$enable_fast_install
17548
17549# The host system.
17550host_alias=$host_alias
17551host=$host
17552host_os=$host_os
17553
17554# The build system.
17555build_alias=$build_alias
17556build=$build
17557build_os=$build_os
17558
17559# An echo program that does not interpret backslashes.
17560echo=$lt_echo
17561
17562# The archiver.
17563AR=$lt_AR
17564AR_FLAGS=$lt_AR_FLAGS
17565
17566# A C compiler.
17567LTCC=$lt_LTCC
17568
17569# LTCC compiler flags.
17570LTCFLAGS=$lt_LTCFLAGS
17571
17572# A language-specific compiler.
17573CC=$lt_compiler
17574
17575# Is the compiler the GNU C compiler?
17576with_gcc=$GCC
17577
17578# An ERE matcher.
17579EGREP=$lt_EGREP
17580
17581# The linker used to build libraries.
17582LD=$lt_LD
17583
17584# Whether we need hard or soft links.
17585LN_S=$lt_LN_S
17586
17587# A BSD-compatible nm program.
17588NM=$lt_NM
17589
17590# A symbol stripping program
17591STRIP=$lt_STRIP
17592
17593# Used to examine libraries when file_magic_cmd begins "file"
17594MAGIC_CMD=$MAGIC_CMD
17595
17596# Used on cygwin: DLL creation program.
17597DLLTOOL="$DLLTOOL"
17598
17599# Used on cygwin: object dumper.
17600OBJDUMP="$OBJDUMP"
17601
17602# Used on cygwin: assembler.
17603AS="$AS"
17604
17605# The name of the directory that contains temporary libtool files.
17606objdir=$objdir
17607
17608# How to create reloadable object files.
17609reload_flag=$lt_reload_flag
17610reload_cmds=$lt_reload_cmds
17611
17612# How to pass a linker flag through the compiler.
17613wl=$lt_lt_prog_compiler_wl
17614
17615# Object file suffix (normally "o").
17616objext="$ac_objext"
17617
17618# Old archive suffix (normally "a").
17619libext="$libext"
17620
17621# Shared library suffix (normally ".so").
17622shrext_cmds='$shrext_cmds'
17623
17624# Executable file suffix (normally "").
17625exeext="$exeext"
17626
17627# Additional compiler flags for building library objects.
17628pic_flag=$lt_lt_prog_compiler_pic
17629pic_mode=$pic_mode
17630
17631# What is the maximum length of a command?
17632max_cmd_len=$lt_cv_sys_max_cmd_len
17633
17634# Does compiler simultaneously support -c and -o options?
17635compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17636
17637# Must we lock files when doing compilation?
17638need_locks=$lt_need_locks
17639
17640# Do we need the lib prefix for modules?
17641need_lib_prefix=$need_lib_prefix
17642
17643# Do we need a version for libraries?
17644need_version=$need_version
17645
17646# Whether dlopen is supported.
17647dlopen_support=$enable_dlopen
17648
17649# Whether dlopen of programs is supported.
17650dlopen_self=$enable_dlopen_self
17651
17652# Whether dlopen of statically linked programs is supported.
17653dlopen_self_static=$enable_dlopen_self_static
17654
17655# Compiler flag to prevent dynamic linking.
17656link_static_flag=$lt_lt_prog_compiler_static
17657
17658# Compiler flag to turn off builtin functions.
17659no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17660
17661# Compiler flag to allow reflexive dlopens.
17662export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17663
17664# Compiler flag to generate shared objects directly from archives.
17665whole_archive_flag_spec=$lt_whole_archive_flag_spec
17666
17667# Compiler flag to generate thread-safe objects.
17668thread_safe_flag_spec=$lt_thread_safe_flag_spec
17669
17670# Library versioning type.
17671version_type=$version_type
17672
17673# Format of library name prefix.
17674libname_spec=$lt_libname_spec
17675
17676# List of archive names.  First name is the real one, the rest are links.
17677# The last name is the one that the linker finds with -lNAME.
17678library_names_spec=$lt_library_names_spec
17679
17680# The coded name of the library, if different from the real name.
17681soname_spec=$lt_soname_spec
17682
17683# Commands used to build and install an old-style archive.
17684RANLIB=$lt_RANLIB
17685old_archive_cmds=$lt_old_archive_cmds
17686old_postinstall_cmds=$lt_old_postinstall_cmds
17687old_postuninstall_cmds=$lt_old_postuninstall_cmds
17688
17689# Create an old-style archive from a shared archive.
17690old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17691
17692# Create a temporary old-style archive to link instead of a shared archive.
17693old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17694
17695# Commands used to build and install a shared archive.
17696archive_cmds=$lt_archive_cmds
17697archive_expsym_cmds=$lt_archive_expsym_cmds
17698postinstall_cmds=$lt_postinstall_cmds
17699postuninstall_cmds=$lt_postuninstall_cmds
17700
17701# Commands used to build a loadable module (assumed same as above if empty)
17702module_cmds=$lt_module_cmds
17703module_expsym_cmds=$lt_module_expsym_cmds
17704
17705# Commands to strip libraries.
17706old_striplib=$lt_old_striplib
17707striplib=$lt_striplib
17708
17709# Dependencies to place before the objects being linked to create a
17710# shared library.
17711predep_objects=$lt_predep_objects
17712
17713# Dependencies to place after the objects being linked to create a
17714# shared library.
17715postdep_objects=$lt_postdep_objects
17716
17717# Dependencies to place before the objects being linked to create a
17718# shared library.
17719predeps=$lt_predeps
17720
17721# Dependencies to place after the objects being linked to create a
17722# shared library.
17723postdeps=$lt_postdeps
17724
17725# The library search path used internally by the compiler when linking
17726# a shared library.
17727compiler_lib_search_path=$lt_compiler_lib_search_path
17728
17729# Method to check whether dependent libraries are shared objects.
17730deplibs_check_method=$lt_deplibs_check_method
17731
17732# Command to use when deplibs_check_method == file_magic.
17733file_magic_cmd=$lt_file_magic_cmd
17734
17735# Flag that allows shared libraries with undefined symbols to be built.
17736allow_undefined_flag=$lt_allow_undefined_flag
17737
17738# Flag that forces no undefined symbols.
17739no_undefined_flag=$lt_no_undefined_flag
17740
17741# Commands used to finish a libtool library installation in a directory.
17742finish_cmds=$lt_finish_cmds
17743
17744# Same as above, but a single script fragment to be evaled but not shown.
17745finish_eval=$lt_finish_eval
17746
17747# Take the output of nm and produce a listing of raw symbols and C names.
17748global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17749
17750# Transform the output of nm in a proper C declaration
17751global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17752
17753# Transform the output of nm in a C name address pair
17754global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17755
17756# This is the shared library runtime path variable.
17757runpath_var=$runpath_var
17758
17759# This is the shared library path variable.
17760shlibpath_var=$shlibpath_var
17761
17762# Is shlibpath searched before the hard-coded library search path?
17763shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17764
17765# How to hardcode a shared library path into an executable.
17766hardcode_action=$hardcode_action
17767
17768# Whether we should hardcode library paths into libraries.
17769hardcode_into_libs=$hardcode_into_libs
17770
17771# Flag to hardcode \$libdir into a binary during linking.
17772# This must work even if \$libdir does not exist.
17773hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17774
17775# If ld is used when linking, flag to hardcode \$libdir into
17776# a binary during linking. This must work even if \$libdir does
17777# not exist.
17778hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17779
17780# Whether we need a single -rpath flag with a separated argument.
17781hardcode_libdir_separator=$lt_hardcode_libdir_separator
17782
17783# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17784# resulting binary.
17785hardcode_direct=$hardcode_direct
17786
17787# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17788# resulting binary.
17789hardcode_minus_L=$hardcode_minus_L
17790
17791# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17792# the resulting binary.
17793hardcode_shlibpath_var=$hardcode_shlibpath_var
17794
17795# Set to yes if building a shared library automatically hardcodes DIR into the library
17796# and all subsequent libraries and executables linked against it.
17797hardcode_automatic=$hardcode_automatic
17798
17799# Variables whose values should be saved in libtool wrapper scripts and
17800# restored at relink time.
17801variables_saved_for_relink="$variables_saved_for_relink"
17802
17803# Whether libtool must link a program against all its dependency libraries.
17804link_all_deplibs=$link_all_deplibs
17805
17806# Compile-time system search path for libraries
17807sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17808
17809# Run-time system search path for libraries
17810sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17811
17812# Fix the shell variable \$srcfile for the compiler.
17813fix_srcfile_path="$fix_srcfile_path"
17814
17815# Set to yes if exported symbols are required.
17816always_export_symbols=$always_export_symbols
17817
17818# The commands to list exported symbols.
17819export_symbols_cmds=$lt_export_symbols_cmds
17820
17821# The commands to extract the exported symbol list from a shared archive.
17822extract_expsyms_cmds=$lt_extract_expsyms_cmds
17823
17824# Symbols that should not be listed in the preloaded symbols.
17825exclude_expsyms=$lt_exclude_expsyms
17826
17827# Symbols that must always be exported.
17828include_expsyms=$lt_include_expsyms
17829
17830# ### END LIBTOOL CONFIG
17831
17832__EOF__
17833
17834
17835  case $host_os in
17836  aix3*)
17837    cat <<\EOF >> "$cfgfile"
17838
17839# AIX sometimes has problems with the GCC collect2 program.  For some
17840# reason, if we set the COLLECT_NAMES environment variable, the problems
17841# vanish in a puff of smoke.
17842if test "X${COLLECT_NAMES+set}" != Xset; then
17843  COLLECT_NAMES=
17844  export COLLECT_NAMES
17845fi
17846EOF
17847    ;;
17848  esac
17849
17850  # We use sed instead of cat because bash on DJGPP gets confused if
17851  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17852  # text mode, it properly converts lines to CR/LF.  This bash problem
17853  # is reportedly fixed, but why not run on old versions too?
17854  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17855
17856  mv -f "$cfgfile" "$ofile" || \
17857    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17858  chmod +x "$ofile"
17859
17860else
17861  # If there is no Makefile yet, we rely on a make rule to execute
17862  # `config.status --recheck' to rerun these tests and create the
17863  # libtool script then.
17864  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17865  if test -f "$ltmain_in"; then
17866    test -f Makefile && make "$ltmain"
17867  fi
17868fi
17869
17870
17871ac_ext=c
17872ac_cpp='$CPP $CPPFLAGS'
17873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17875ac_compiler_gnu=$ac_cv_c_compiler_gnu
17876
17877CC="$lt_save_CC"
17878
17879
17880# Check whether --with-tags was given.
17881if test "${with_tags+set}" = set; then
17882  withval=$with_tags; tagnames="$withval"
17883fi
17884
17885
17886if test -f "$ltmain" && test -n "$tagnames"; then
17887  if test ! -f "${ofile}"; then
17888    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17889echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17890  fi
17891
17892  if test -z "$LTCC"; then
17893    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17894    if test -z "$LTCC"; then
17895      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17896echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17897    else
17898      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17899echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17900    fi
17901  fi
17902  if test -z "$LTCFLAGS"; then
17903    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17904  fi
17905
17906  # Extract list of available tagged configurations in $ofile.
17907  # Note that this assumes the entire list is on one line.
17908  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17909
17910  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17911  for tagname in $tagnames; do
17912    IFS="$lt_save_ifs"
17913    # Check whether tagname contains only valid characters
17914    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17915    "") ;;
17916    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17917echo "$as_me: error: invalid tag name: $tagname" >&2;}
17918   { (exit 1); exit 1; }; }
17919	;;
17920    esac
17921
17922    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17923    then
17924      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17925echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17926   { (exit 1); exit 1; }; }
17927    fi
17928
17929    # Update the list of available tags.
17930    if test -n "$tagname"; then
17931      echo appending configuration tag \"$tagname\" to $ofile
17932
17933      case $tagname in
17934      CXX)
17935	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17936	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17937	    (test "X$CXX" != "Xg++"))) ; then
17938	  ac_ext=cpp
17939ac_cpp='$CXXCPP $CPPFLAGS'
17940ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17941ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17942ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17943
17944
17945
17946
17947archive_cmds_need_lc_CXX=no
17948allow_undefined_flag_CXX=
17949always_export_symbols_CXX=no
17950archive_expsym_cmds_CXX=
17951export_dynamic_flag_spec_CXX=
17952hardcode_direct_CXX=no
17953hardcode_libdir_flag_spec_CXX=
17954hardcode_libdir_flag_spec_ld_CXX=
17955hardcode_libdir_separator_CXX=
17956hardcode_minus_L_CXX=no
17957hardcode_shlibpath_var_CXX=unsupported
17958hardcode_automatic_CXX=no
17959module_cmds_CXX=
17960module_expsym_cmds_CXX=
17961link_all_deplibs_CXX=unknown
17962old_archive_cmds_CXX=$old_archive_cmds
17963no_undefined_flag_CXX=
17964whole_archive_flag_spec_CXX=
17965enable_shared_with_static_runtimes_CXX=no
17966
17967# Dependencies to place before and after the object being linked:
17968predep_objects_CXX=
17969postdep_objects_CXX=
17970predeps_CXX=
17971postdeps_CXX=
17972compiler_lib_search_path_CXX=
17973
17974# Source file extension for C++ test sources.
17975ac_ext=cpp
17976
17977# Object file extension for compiled C++ test sources.
17978objext=o
17979objext_CXX=$objext
17980
17981# Code to be used in simple compile tests
17982lt_simple_compile_test_code="int some_variable = 0;\n"
17983
17984# Code to be used in simple link tests
17985lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17986
17987# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17988
17989# If no C compiler was specified, use CC.
17990LTCC=${LTCC-"$CC"}
17991
17992# If no C compiler flags were specified, use CFLAGS.
17993LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17994
17995# Allow CC to be a program name with arguments.
17996compiler=$CC
17997
17998
17999# save warnings/boilerplate of simple test code
18000ac_outfile=conftest.$ac_objext
18001printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18002eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18003_lt_compiler_boilerplate=`cat conftest.err`
18004$rm conftest*
18005
18006ac_outfile=conftest.$ac_objext
18007printf "$lt_simple_link_test_code" >conftest.$ac_ext
18008eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18009_lt_linker_boilerplate=`cat conftest.err`
18010$rm conftest*
18011
18012
18013# Allow CC to be a program name with arguments.
18014lt_save_CC=$CC
18015lt_save_LD=$LD
18016lt_save_GCC=$GCC
18017GCC=$GXX
18018lt_save_with_gnu_ld=$with_gnu_ld
18019lt_save_path_LD=$lt_cv_path_LD
18020if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18021  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18022else
18023  $as_unset lt_cv_prog_gnu_ld
18024fi
18025if test -n "${lt_cv_path_LDCXX+set}"; then
18026  lt_cv_path_LD=$lt_cv_path_LDCXX
18027else
18028  $as_unset lt_cv_path_LD
18029fi
18030test -z "${LDCXX+set}" || LD=$LDCXX
18031CC=${CXX-"c++"}
18032compiler=$CC
18033compiler_CXX=$CC
18034for cc_temp in $compiler""; do
18035  case $cc_temp in
18036    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18037    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18038    \-*) ;;
18039    *) break;;
18040  esac
18041done
18042cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18043
18044
18045# We don't want -fno-exception wen compiling C++ code, so set the
18046# no_builtin_flag separately
18047if test "$GXX" = yes; then
18048  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18049else
18050  lt_prog_compiler_no_builtin_flag_CXX=
18051fi
18052
18053if test "$GXX" = yes; then
18054  # Set up default GNU C++ configuration
18055
18056
18057# Check whether --with-gnu-ld was given.
18058if test "${with_gnu_ld+set}" = set; then
18059  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18060else
18061  with_gnu_ld=no
18062fi
18063
18064ac_prog=ld
18065if test "$GCC" = yes; then
18066  # Check if gcc -print-prog-name=ld gives a path.
18067  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18068echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18069  case $host in
18070  *-*-mingw*)
18071    # gcc leaves a trailing carriage return which upsets mingw
18072    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18073  *)
18074    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18075  esac
18076  case $ac_prog in
18077    # Accept absolute paths.
18078    [\\/]* | ?:[\\/]*)
18079      re_direlt='/[^/][^/]*/\.\./'
18080      # Canonicalize the pathname of ld
18081      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18082      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18083	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18084      done
18085      test -z "$LD" && LD="$ac_prog"
18086      ;;
18087  "")
18088    # If it fails, then pretend we aren't using GCC.
18089    ac_prog=ld
18090    ;;
18091  *)
18092    # If it is relative, then search for the first ld in PATH.
18093    with_gnu_ld=unknown
18094    ;;
18095  esac
18096elif test "$with_gnu_ld" = yes; then
18097  { echo "$as_me:$LINENO: checking for GNU ld" >&5
18098echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18099else
18100  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18101echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18102fi
18103if test "${lt_cv_path_LD+set}" = set; then
18104  echo $ECHO_N "(cached) $ECHO_C" >&6
18105else
18106  if test -z "$LD"; then
18107  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18108  for ac_dir in $PATH; do
18109    IFS="$lt_save_ifs"
18110    test -z "$ac_dir" && ac_dir=.
18111    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18112      lt_cv_path_LD="$ac_dir/$ac_prog"
18113      # Check to see if the program is GNU ld.  I'd rather use --version,
18114      # but apparently some variants of GNU ld only accept -v.
18115      # Break only if it was the GNU/non-GNU ld that we prefer.
18116      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18117      *GNU* | *'with BFD'*)
18118	test "$with_gnu_ld" != no && break
18119	;;
18120      *)
18121	test "$with_gnu_ld" != yes && break
18122	;;
18123      esac
18124    fi
18125  done
18126  IFS="$lt_save_ifs"
18127else
18128  lt_cv_path_LD="$LD" # Let the user override the test with a path.
18129fi
18130fi
18131
18132LD="$lt_cv_path_LD"
18133if test -n "$LD"; then
18134  { echo "$as_me:$LINENO: result: $LD" >&5
18135echo "${ECHO_T}$LD" >&6; }
18136else
18137  { echo "$as_me:$LINENO: result: no" >&5
18138echo "${ECHO_T}no" >&6; }
18139fi
18140test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18141echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18142   { (exit 1); exit 1; }; }
18143{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18144echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18145if test "${lt_cv_prog_gnu_ld+set}" = set; then
18146  echo $ECHO_N "(cached) $ECHO_C" >&6
18147else
18148  # I'd rather use --version here, but apparently some GNU lds only accept -v.
18149case `$LD -v 2>&1 </dev/null` in
18150*GNU* | *'with BFD'*)
18151  lt_cv_prog_gnu_ld=yes
18152  ;;
18153*)
18154  lt_cv_prog_gnu_ld=no
18155  ;;
18156esac
18157fi
18158{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18159echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18160with_gnu_ld=$lt_cv_prog_gnu_ld
18161
18162
18163
18164  # Check if GNU C++ uses GNU ld as the underlying linker, since the
18165  # archiving commands below assume that GNU ld is being used.
18166  if test "$with_gnu_ld" = yes; then
18167    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18168    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'
18169
18170    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18171    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18172
18173    # If archive_cmds runs LD, not CC, wlarc should be empty
18174    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18175    #     investigate it a little bit more. (MM)
18176    wlarc='${wl}'
18177
18178    # ancient GNU ld didn't support --whole-archive et. al.
18179    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18180	grep 'no-whole-archive' > /dev/null; then
18181      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18182    else
18183      whole_archive_flag_spec_CXX=
18184    fi
18185  else
18186    with_gnu_ld=no
18187    wlarc=
18188
18189    # A generic and very simple default shared library creation
18190    # command for GNU C++ for the case where it uses the native
18191    # linker, instead of GNU ld.  If possible, this setting should
18192    # overridden to take advantage of the native linker features on
18193    # the platform it is being used on.
18194    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18195  fi
18196
18197  # Commands to make compiler produce verbose output that lists
18198  # what "hidden" libraries, object files and flags are used when
18199  # linking a shared library.
18200  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18201
18202else
18203  GXX=no
18204  with_gnu_ld=no
18205  wlarc=
18206fi
18207
18208# PORTME: fill in a description of your system's C++ link characteristics
18209{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18210echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18211ld_shlibs_CXX=yes
18212case $host_os in
18213  aix3*)
18214    # FIXME: insert proper C++ library support
18215    ld_shlibs_CXX=no
18216    ;;
18217  aix4* | aix5*)
18218    if test "$host_cpu" = ia64; then
18219      # On IA64, the linker does run time linking by default, so we don't
18220      # have to do anything special.
18221      aix_use_runtimelinking=no
18222      exp_sym_flag='-Bexport'
18223      no_entry_flag=""
18224    else
18225      aix_use_runtimelinking=no
18226
18227      # Test if we are trying to use run time linking or normal
18228      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18229      # need to do runtime linking.
18230      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18231	for ld_flag in $LDFLAGS; do
18232	  case $ld_flag in
18233	  *-brtl*)
18234	    aix_use_runtimelinking=yes
18235	    break
18236	    ;;
18237	  esac
18238	done
18239	;;
18240      esac
18241
18242      exp_sym_flag='-bexport'
18243      no_entry_flag='-bnoentry'
18244    fi
18245
18246    # When large executables or shared objects are built, AIX ld can
18247    # have problems creating the table of contents.  If linking a library
18248    # or program results in "error TOC overflow" add -mminimal-toc to
18249    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18250    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18251
18252    archive_cmds_CXX=''
18253    hardcode_direct_CXX=yes
18254    hardcode_libdir_separator_CXX=':'
18255    link_all_deplibs_CXX=yes
18256
18257    if test "$GXX" = yes; then
18258      case $host_os in aix4.[012]|aix4.[012].*)
18259      # We only want to do this on AIX 4.2 and lower, the check
18260      # below for broken collect2 doesn't work under 4.3+
18261	collect2name=`${CC} -print-prog-name=collect2`
18262	if test -f "$collect2name" && \
18263	   strings "$collect2name" | grep resolve_lib_name >/dev/null
18264	then
18265	  # We have reworked collect2
18266	  hardcode_direct_CXX=yes
18267	else
18268	  # We have old collect2
18269	  hardcode_direct_CXX=unsupported
18270	  # It fails to find uninstalled libraries when the uninstalled
18271	  # path is not listed in the libpath.  Setting hardcode_minus_L
18272	  # to unsupported forces relinking
18273	  hardcode_minus_L_CXX=yes
18274	  hardcode_libdir_flag_spec_CXX='-L$libdir'
18275	  hardcode_libdir_separator_CXX=
18276	fi
18277	;;
18278      esac
18279      shared_flag='-shared'
18280      if test "$aix_use_runtimelinking" = yes; then
18281	shared_flag="$shared_flag "'${wl}-G'
18282      fi
18283    else
18284      # not using gcc
18285      if test "$host_cpu" = ia64; then
18286	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18287	# chokes on -Wl,-G. The following line is correct:
18288	shared_flag='-G'
18289      else
18290	if test "$aix_use_runtimelinking" = yes; then
18291	  shared_flag='${wl}-G'
18292	else
18293	  shared_flag='${wl}-bM:SRE'
18294	fi
18295      fi
18296    fi
18297
18298    # It seems that -bexpall does not export symbols beginning with
18299    # underscore (_), so it is better to generate a list of symbols to export.
18300    always_export_symbols_CXX=yes
18301    if test "$aix_use_runtimelinking" = yes; then
18302      # Warning - without using the other runtime loading flags (-brtl),
18303      # -berok will link without error, but may produce a broken library.
18304      allow_undefined_flag_CXX='-berok'
18305      # Determine the default libpath from the value encoded in an empty executable.
18306      cat >conftest.$ac_ext <<_ACEOF
18307/* confdefs.h.  */
18308_ACEOF
18309cat confdefs.h >>conftest.$ac_ext
18310cat >>conftest.$ac_ext <<_ACEOF
18311/* end confdefs.h.  */
18312
18313int
18314main ()
18315{
18316
18317  ;
18318  return 0;
18319}
18320_ACEOF
18321rm -f conftest.$ac_objext conftest$ac_exeext
18322if { (ac_try="$ac_link"
18323case "(($ac_try" in
18324  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18325  *) ac_try_echo=$ac_try;;
18326esac
18327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18328  (eval "$ac_link") 2>conftest.er1
18329  ac_status=$?
18330  grep -v '^ *+' conftest.er1 >conftest.err
18331  rm -f conftest.er1
18332  cat conftest.err >&5
18333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334  (exit $ac_status); } &&
18335	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18336  { (case "(($ac_try" in
18337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18338  *) ac_try_echo=$ac_try;;
18339esac
18340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18341  (eval "$ac_try") 2>&5
18342  ac_status=$?
18343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344  (exit $ac_status); }; } &&
18345	 { ac_try='test -s conftest$ac_exeext'
18346  { (case "(($ac_try" in
18347  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18348  *) ac_try_echo=$ac_try;;
18349esac
18350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18351  (eval "$ac_try") 2>&5
18352  ac_status=$?
18353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354  (exit $ac_status); }; }; then
18355
18356aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18357}'`
18358# Check for a 64-bit object if we didn't find anything.
18359if 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; }
18360}'`; fi
18361else
18362  echo "$as_me: failed program was:" >&5
18363sed 's/^/| /' conftest.$ac_ext >&5
18364
18365
18366fi
18367
18368rm -f core conftest.err conftest.$ac_objext \
18369      conftest$ac_exeext conftest.$ac_ext
18370if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18371
18372      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18373
18374      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"
18375     else
18376      if test "$host_cpu" = ia64; then
18377	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18378	allow_undefined_flag_CXX="-z nodefs"
18379	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"
18380      else
18381	# Determine the default libpath from the value encoded in an empty executable.
18382	cat >conftest.$ac_ext <<_ACEOF
18383/* confdefs.h.  */
18384_ACEOF
18385cat confdefs.h >>conftest.$ac_ext
18386cat >>conftest.$ac_ext <<_ACEOF
18387/* end confdefs.h.  */
18388
18389int
18390main ()
18391{
18392
18393  ;
18394  return 0;
18395}
18396_ACEOF
18397rm -f conftest.$ac_objext conftest$ac_exeext
18398if { (ac_try="$ac_link"
18399case "(($ac_try" in
18400  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18401  *) ac_try_echo=$ac_try;;
18402esac
18403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18404  (eval "$ac_link") 2>conftest.er1
18405  ac_status=$?
18406  grep -v '^ *+' conftest.er1 >conftest.err
18407  rm -f conftest.er1
18408  cat conftest.err >&5
18409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410  (exit $ac_status); } &&
18411	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18412  { (case "(($ac_try" in
18413  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18414  *) ac_try_echo=$ac_try;;
18415esac
18416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18417  (eval "$ac_try") 2>&5
18418  ac_status=$?
18419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420  (exit $ac_status); }; } &&
18421	 { ac_try='test -s conftest$ac_exeext'
18422  { (case "(($ac_try" in
18423  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18424  *) ac_try_echo=$ac_try;;
18425esac
18426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18427  (eval "$ac_try") 2>&5
18428  ac_status=$?
18429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430  (exit $ac_status); }; }; then
18431
18432aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18433}'`
18434# Check for a 64-bit object if we didn't find anything.
18435if 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; }
18436}'`; fi
18437else
18438  echo "$as_me: failed program was:" >&5
18439sed 's/^/| /' conftest.$ac_ext >&5
18440
18441
18442fi
18443
18444rm -f core conftest.err conftest.$ac_objext \
18445      conftest$ac_exeext conftest.$ac_ext
18446if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18447
18448	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18449	# Warning - without using the other run time loading flags,
18450	# -berok will link without error, but may produce a broken library.
18451	no_undefined_flag_CXX=' ${wl}-bernotok'
18452	allow_undefined_flag_CXX=' ${wl}-berok'
18453	# Exported symbols can be pulled into shared objects from archives
18454	whole_archive_flag_spec_CXX='$convenience'
18455	archive_cmds_need_lc_CXX=yes
18456	# This is similar to how AIX traditionally builds its shared libraries.
18457	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'
18458      fi
18459    fi
18460    ;;
18461
18462  beos*)
18463    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18464      allow_undefined_flag_CXX=unsupported
18465      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18466      # support --undefined.  This deserves some investigation.  FIXME
18467      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18468    else
18469      ld_shlibs_CXX=no
18470    fi
18471    ;;
18472
18473  chorus*)
18474    case $cc_basename in
18475      *)
18476	# FIXME: insert proper C++ library support
18477	ld_shlibs_CXX=no
18478	;;
18479    esac
18480    ;;
18481
18482  cygwin* | mingw* | pw32*)
18483    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18484    # as there is no search path for DLLs.
18485    hardcode_libdir_flag_spec_CXX='-L$libdir'
18486    allow_undefined_flag_CXX=unsupported
18487    always_export_symbols_CXX=no
18488    enable_shared_with_static_runtimes_CXX=yes
18489
18490    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18491      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'
18492      # If the export-symbols file already is a .def file (1st line
18493      # is EXPORTS), use it as is; otherwise, prepend...
18494      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18495	cp $export_symbols $output_objdir/$soname.def;
18496      else
18497	echo EXPORTS > $output_objdir/$soname.def;
18498	cat $export_symbols >> $output_objdir/$soname.def;
18499      fi~
18500      $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'
18501    else
18502      ld_shlibs_CXX=no
18503    fi
18504  ;;
18505      darwin* | rhapsody*)
18506        case $host_os in
18507        rhapsody* | darwin1.[012])
18508         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18509         ;;
18510       *) # Darwin 1.3 on
18511         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18512           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18513         else
18514           case ${MACOSX_DEPLOYMENT_TARGET} in
18515             10.[012])
18516               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18517               ;;
18518             10.*)
18519               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18520               ;;
18521           esac
18522         fi
18523         ;;
18524        esac
18525      archive_cmds_need_lc_CXX=no
18526      hardcode_direct_CXX=no
18527      hardcode_automatic_CXX=yes
18528      hardcode_shlibpath_var_CXX=unsupported
18529      whole_archive_flag_spec_CXX=''
18530      link_all_deplibs_CXX=yes
18531
18532    if test "$GXX" = yes ; then
18533      lt_int_apple_cc_single_mod=no
18534      output_verbose_link_cmd='echo'
18535      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18536       lt_int_apple_cc_single_mod=yes
18537      fi
18538      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18539       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18540      else
18541          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'
18542        fi
18543        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18544        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18545          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18546            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}'
18547          else
18548            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}'
18549          fi
18550            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}'
18551      else
18552      case $cc_basename in
18553        xlc*)
18554         output_verbose_link_cmd='echo'
18555          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'
18556          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18557          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18558          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}'
18559          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}'
18560          ;;
18561       *)
18562         ld_shlibs_CXX=no
18563          ;;
18564      esac
18565      fi
18566        ;;
18567
18568  dgux*)
18569    case $cc_basename in
18570      ec++*)
18571	# FIXME: insert proper C++ library support
18572	ld_shlibs_CXX=no
18573	;;
18574      ghcx*)
18575	# Green Hills C++ Compiler
18576	# FIXME: insert proper C++ library support
18577	ld_shlibs_CXX=no
18578	;;
18579      *)
18580	# FIXME: insert proper C++ library support
18581	ld_shlibs_CXX=no
18582	;;
18583    esac
18584    ;;
18585  freebsd[12]*)
18586    # C++ shared libraries reported to be fairly broken before switch to ELF
18587    ld_shlibs_CXX=no
18588    ;;
18589  freebsd-elf*)
18590    archive_cmds_need_lc_CXX=no
18591    ;;
18592  freebsd* | kfreebsd*-gnu | dragonfly*)
18593    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18594    # conventions
18595    ld_shlibs_CXX=yes
18596    ;;
18597  gnu*)
18598    ;;
18599  hpux9*)
18600    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18601    hardcode_libdir_separator_CXX=:
18602    export_dynamic_flag_spec_CXX='${wl}-E'
18603    hardcode_direct_CXX=yes
18604    hardcode_minus_L_CXX=yes # Not in the search PATH,
18605				# but as the default
18606				# location of the library.
18607
18608    case $cc_basename in
18609    CC*)
18610      # FIXME: insert proper C++ library support
18611      ld_shlibs_CXX=no
18612      ;;
18613    aCC*)
18614      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'
18615      # Commands to make compiler produce verbose output that lists
18616      # what "hidden" libraries, object files and flags are used when
18617      # linking a shared library.
18618      #
18619      # There doesn't appear to be a way to prevent this compiler from
18620      # explicitly linking system object files so we need to strip them
18621      # from the output so that they don't get included in the library
18622      # dependencies.
18623      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'
18624      ;;
18625    *)
18626      if test "$GXX" = yes; then
18627        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'
18628      else
18629        # FIXME: insert proper C++ library support
18630        ld_shlibs_CXX=no
18631      fi
18632      ;;
18633    esac
18634    ;;
18635  hpux10*|hpux11*)
18636    if test $with_gnu_ld = no; then
18637      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18638      hardcode_libdir_separator_CXX=:
18639
18640      case $host_cpu in
18641      hppa*64*|ia64*)
18642	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18643        ;;
18644      *)
18645	export_dynamic_flag_spec_CXX='${wl}-E'
18646        ;;
18647      esac
18648    fi
18649    case $host_cpu in
18650    hppa*64*|ia64*)
18651      hardcode_direct_CXX=no
18652      hardcode_shlibpath_var_CXX=no
18653      ;;
18654    *)
18655      hardcode_direct_CXX=yes
18656      hardcode_minus_L_CXX=yes # Not in the search PATH,
18657					      # but as the default
18658					      # location of the library.
18659      ;;
18660    esac
18661
18662    case $cc_basename in
18663      CC*)
18664	# FIXME: insert proper C++ library support
18665	ld_shlibs_CXX=no
18666	;;
18667      aCC*)
18668	case $host_cpu in
18669	hppa*64*)
18670	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18671	  ;;
18672	ia64*)
18673	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18674	  ;;
18675	*)
18676	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18677	  ;;
18678	esac
18679	# Commands to make compiler produce verbose output that lists
18680	# what "hidden" libraries, object files and flags are used when
18681	# linking a shared library.
18682	#
18683	# There doesn't appear to be a way to prevent this compiler from
18684	# explicitly linking system object files so we need to strip them
18685	# from the output so that they don't get included in the library
18686	# dependencies.
18687	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'
18688	;;
18689      *)
18690	if test "$GXX" = yes; then
18691	  if test $with_gnu_ld = no; then
18692	    case $host_cpu in
18693	    hppa*64*)
18694	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18695	      ;;
18696	    ia64*)
18697	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18698	      ;;
18699	    *)
18700	      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'
18701	      ;;
18702	    esac
18703	  fi
18704	else
18705	  # FIXME: insert proper C++ library support
18706	  ld_shlibs_CXX=no
18707	fi
18708	;;
18709    esac
18710    ;;
18711  interix3*)
18712    hardcode_direct_CXX=no
18713    hardcode_shlibpath_var_CXX=no
18714    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18715    export_dynamic_flag_spec_CXX='${wl}-E'
18716    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18717    # Instead, shared libraries are loaded at an image base (0x10000000 by
18718    # default) and relocated if they conflict, which is a slow very memory
18719    # consuming and fragmenting process.  To avoid this, we pick a random,
18720    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18721    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18722    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'
18723    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'
18724    ;;
18725  irix5* | irix6*)
18726    case $cc_basename in
18727      CC*)
18728	# SGI C++
18729	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'
18730
18731	# Archives containing C++ object files must be created using
18732	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18733	# necessary to make sure instantiated templates are included
18734	# in the archive.
18735	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18736	;;
18737      *)
18738	if test "$GXX" = yes; then
18739	  if test "$with_gnu_ld" = no; then
18740	    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'
18741	  else
18742	    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'
18743	  fi
18744	fi
18745	link_all_deplibs_CXX=yes
18746	;;
18747    esac
18748    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18749    hardcode_libdir_separator_CXX=:
18750    ;;
18751  linux*)
18752    case $cc_basename in
18753      KCC*)
18754	# Kuck and Associates, Inc. (KAI) C++ Compiler
18755
18756	# KCC will only create a shared library if the output file
18757	# ends with ".so" (or ".sl" for HP-UX), so rename the library
18758	# to its proper name (with version) after linking.
18759	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'
18760	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'
18761	# Commands to make compiler produce verbose output that lists
18762	# what "hidden" libraries, object files and flags are used when
18763	# linking a shared library.
18764	#
18765	# There doesn't appear to be a way to prevent this compiler from
18766	# explicitly linking system object files so we need to strip them
18767	# from the output so that they don't get included in the library
18768	# dependencies.
18769	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'
18770
18771	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18772	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18773
18774	# Archives containing C++ object files must be created using
18775	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
18776	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18777	;;
18778      icpc*)
18779	# Intel C++
18780	with_gnu_ld=yes
18781	# version 8.0 and above of icpc choke on multiply defined symbols
18782	# if we add $predep_objects and $postdep_objects, however 7.1 and
18783	# earlier do not add the objects themselves.
18784	case `$CC -V 2>&1` in
18785	*"Version 7."*)
18786  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18787  	  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'
18788	  ;;
18789	*)  # Version 8.0 or newer
18790	  tmp_idyn=
18791	  case $host_cpu in
18792	    ia64*) tmp_idyn=' -i_dynamic';;
18793	  esac
18794  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18795	  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'
18796	  ;;
18797	esac
18798	archive_cmds_need_lc_CXX=no
18799	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18800	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18801	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18802	;;
18803      pgCC*)
18804        # Portland Group C++ compiler
18805	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18806  	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'
18807
18808	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18809	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18810	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'
18811        ;;
18812      cxx*)
18813	# Compaq C++
18814	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18815	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'
18816
18817	runpath_var=LD_RUN_PATH
18818	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18819	hardcode_libdir_separator_CXX=:
18820
18821	# Commands to make compiler produce verbose output that lists
18822	# what "hidden" libraries, object files and flags are used when
18823	# linking a shared library.
18824	#
18825	# There doesn't appear to be a way to prevent this compiler from
18826	# explicitly linking system object files so we need to strip them
18827	# from the output so that they don't get included in the library
18828	# dependencies.
18829	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'
18830	;;
18831    esac
18832    ;;
18833  lynxos*)
18834    # FIXME: insert proper C++ library support
18835    ld_shlibs_CXX=no
18836    ;;
18837  m88k*)
18838    # FIXME: insert proper C++ library support
18839    ld_shlibs_CXX=no
18840    ;;
18841  mvs*)
18842    case $cc_basename in
18843      cxx*)
18844	# FIXME: insert proper C++ library support
18845	ld_shlibs_CXX=no
18846	;;
18847      *)
18848	# FIXME: insert proper C++ library support
18849	ld_shlibs_CXX=no
18850	;;
18851    esac
18852    ;;
18853  netbsd*)
18854    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18855      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18856      wlarc=
18857      hardcode_libdir_flag_spec_CXX='-R$libdir'
18858      hardcode_direct_CXX=yes
18859      hardcode_shlibpath_var_CXX=no
18860    fi
18861    # Workaround some broken pre-1.5 toolchains
18862    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18863    ;;
18864  openbsd2*)
18865    # C++ shared libraries are fairly broken
18866    ld_shlibs_CXX=no
18867    ;;
18868  openbsd*)
18869    hardcode_direct_CXX=yes
18870    hardcode_shlibpath_var_CXX=no
18871    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18872    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18873    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18874      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18875      export_dynamic_flag_spec_CXX='${wl}-E'
18876      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18877    fi
18878    output_verbose_link_cmd='echo'
18879    ;;
18880  osf3*)
18881    case $cc_basename in
18882      KCC*)
18883	# Kuck and Associates, Inc. (KAI) C++ Compiler
18884
18885	# KCC will only create a shared library if the output file
18886	# ends with ".so" (or ".sl" for HP-UX), so rename the library
18887	# to its proper name (with version) after linking.
18888	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'
18889
18890	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18891	hardcode_libdir_separator_CXX=:
18892
18893	# Archives containing C++ object files must be created using
18894	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
18895	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18896
18897	;;
18898      RCC*)
18899	# Rational C++ 2.4.1
18900	# FIXME: insert proper C++ library support
18901	ld_shlibs_CXX=no
18902	;;
18903      cxx*)
18904	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18905	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'
18906
18907	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18908	hardcode_libdir_separator_CXX=:
18909
18910	# Commands to make compiler produce verbose output that lists
18911	# what "hidden" libraries, object files and flags are used when
18912	# linking a shared library.
18913	#
18914	# There doesn't appear to be a way to prevent this compiler from
18915	# explicitly linking system object files so we need to strip them
18916	# from the output so that they don't get included in the library
18917	# dependencies.
18918	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'
18919	;;
18920      *)
18921	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18922	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18923	  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'
18924
18925	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18926	  hardcode_libdir_separator_CXX=:
18927
18928	  # Commands to make compiler produce verbose output that lists
18929	  # what "hidden" libraries, object files and flags are used when
18930	  # linking a shared library.
18931	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18932
18933	else
18934	  # FIXME: insert proper C++ library support
18935	  ld_shlibs_CXX=no
18936	fi
18937	;;
18938    esac
18939    ;;
18940  osf4* | osf5*)
18941    case $cc_basename in
18942      KCC*)
18943	# Kuck and Associates, Inc. (KAI) C++ Compiler
18944
18945	# KCC will only create a shared library if the output file
18946	# ends with ".so" (or ".sl" for HP-UX), so rename the library
18947	# to its proper name (with version) after linking.
18948	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'
18949
18950	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18951	hardcode_libdir_separator_CXX=:
18952
18953	# Archives containing C++ object files must be created using
18954	# the KAI C++ compiler.
18955	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18956	;;
18957      RCC*)
18958	# Rational C++ 2.4.1
18959	# FIXME: insert proper C++ library support
18960	ld_shlibs_CXX=no
18961	;;
18962      cxx*)
18963	allow_undefined_flag_CXX=' -expect_unresolved \*'
18964	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'
18965	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18966	  echo "-hidden">> $lib.exp~
18967	  $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~
18968	  $rm $lib.exp'
18969
18970	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18971	hardcode_libdir_separator_CXX=:
18972
18973	# Commands to make compiler produce verbose output that lists
18974	# what "hidden" libraries, object files and flags are used when
18975	# linking a shared library.
18976	#
18977	# There doesn't appear to be a way to prevent this compiler from
18978	# explicitly linking system object files so we need to strip them
18979	# from the output so that they don't get included in the library
18980	# dependencies.
18981	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'
18982	;;
18983      *)
18984	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18985	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18986	 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'
18987
18988	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18989	  hardcode_libdir_separator_CXX=:
18990
18991	  # Commands to make compiler produce verbose output that lists
18992	  # what "hidden" libraries, object files and flags are used when
18993	  # linking a shared library.
18994	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18995
18996	else
18997	  # FIXME: insert proper C++ library support
18998	  ld_shlibs_CXX=no
18999	fi
19000	;;
19001    esac
19002    ;;
19003  psos*)
19004    # FIXME: insert proper C++ library support
19005    ld_shlibs_CXX=no
19006    ;;
19007  sunos4*)
19008    case $cc_basename in
19009      CC*)
19010	# Sun C++ 4.x
19011	# FIXME: insert proper C++ library support
19012	ld_shlibs_CXX=no
19013	;;
19014      lcc*)
19015	# Lucid
19016	# FIXME: insert proper C++ library support
19017	ld_shlibs_CXX=no
19018	;;
19019      *)
19020	# FIXME: insert proper C++ library support
19021	ld_shlibs_CXX=no
19022	;;
19023    esac
19024    ;;
19025  solaris*)
19026    case $cc_basename in
19027      CC*)
19028	# Sun C++ 4.2, 5.x and Centerline C++
19029        archive_cmds_need_lc_CXX=yes
19030	no_undefined_flag_CXX=' -zdefs'
19031	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19032	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19033	$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'
19034
19035	hardcode_libdir_flag_spec_CXX='-R$libdir'
19036	hardcode_shlibpath_var_CXX=no
19037	case $host_os in
19038	  solaris2.[0-5] | solaris2.[0-5].*) ;;
19039	  *)
19040	    # The C++ compiler is used as linker so we must use $wl
19041	    # flag to pass the commands to the underlying system
19042	    # linker. We must also pass each convience library through
19043	    # to the system linker between allextract/defaultextract.
19044	    # The C++ compiler will combine linker options so we
19045	    # cannot just pass the convience library names through
19046	    # without $wl.
19047	    # Supported since Solaris 2.6 (maybe 2.5.1?)
19048	    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'
19049	    ;;
19050	esac
19051	link_all_deplibs_CXX=yes
19052
19053	output_verbose_link_cmd='echo'
19054
19055	# Archives containing C++ object files must be created using
19056	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
19057	# necessary to make sure instantiated templates are included
19058	# in the archive.
19059	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19060	;;
19061      gcx*)
19062	# Green Hills C++ Compiler
19063	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19064
19065	# The C++ compiler must be used to create the archive.
19066	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19067	;;
19068      *)
19069	# GNU C++ compiler with Solaris linker
19070	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19071	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19072	  if $CC --version | grep -v '^2\.7' > /dev/null; then
19073	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19074	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19075		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19076
19077	    # Commands to make compiler produce verbose output that lists
19078	    # what "hidden" libraries, object files and flags are used when
19079	    # linking a shared library.
19080	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19081	  else
19082	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
19083	    # platform.
19084	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19085	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19086		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19087
19088	    # Commands to make compiler produce verbose output that lists
19089	    # what "hidden" libraries, object files and flags are used when
19090	    # linking a shared library.
19091	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19092	  fi
19093
19094	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19095	fi
19096	;;
19097    esac
19098    ;;
19099  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19100    no_undefined_flag_CXX='${wl}-z,text'
19101    archive_cmds_need_lc_CXX=no
19102    hardcode_shlibpath_var_CXX=no
19103    runpath_var='LD_RUN_PATH'
19104
19105    case $cc_basename in
19106      CC*)
19107	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19108	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19109	;;
19110      *)
19111	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19112	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19113	;;
19114    esac
19115    ;;
19116  sysv5* | sco3.2v5* | sco5v6*)
19117    # Note: We can NOT use -z defs as we might desire, because we do not
19118    # link with -lc, and that would cause any symbols used from libc to
19119    # always be unresolved, which means just about no library would
19120    # ever link correctly.  If we're not using GNU ld we use -z text
19121    # though, which does catch some bad symbols but isn't as heavy-handed
19122    # as -z defs.
19123    # For security reasons, it is highly recommended that you always
19124    # use absolute paths for naming shared libraries, and exclude the
19125    # DT_RUNPATH tag from executables and libraries.  But doing so
19126    # requires that you compile everything twice, which is a pain.
19127    # So that behaviour is only enabled if SCOABSPATH is set to a
19128    # non-empty value in the environment.  Most likely only useful for
19129    # creating official distributions of packages.
19130    # This is a hack until libtool officially supports absolute path
19131    # names for shared libraries.
19132    no_undefined_flag_CXX='${wl}-z,text'
19133    allow_undefined_flag_CXX='${wl}-z,nodefs'
19134    archive_cmds_need_lc_CXX=no
19135    hardcode_shlibpath_var_CXX=no
19136    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19137    hardcode_libdir_separator_CXX=':'
19138    link_all_deplibs_CXX=yes
19139    export_dynamic_flag_spec_CXX='${wl}-Bexport'
19140    runpath_var='LD_RUN_PATH'
19141
19142    case $cc_basename in
19143      CC*)
19144	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19145	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19146	;;
19147      *)
19148	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19149	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19150	;;
19151    esac
19152    ;;
19153  tandem*)
19154    case $cc_basename in
19155      NCC*)
19156	# NonStop-UX NCC 3.20
19157	# FIXME: insert proper C++ library support
19158	ld_shlibs_CXX=no
19159	;;
19160      *)
19161	# FIXME: insert proper C++ library support
19162	ld_shlibs_CXX=no
19163	;;
19164    esac
19165    ;;
19166  vxworks*)
19167    # FIXME: insert proper C++ library support
19168    ld_shlibs_CXX=no
19169    ;;
19170  *)
19171    # FIXME: insert proper C++ library support
19172    ld_shlibs_CXX=no
19173    ;;
19174esac
19175{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19176echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19177test "$ld_shlibs_CXX" = no && can_build_shared=no
19178
19179GCC_CXX="$GXX"
19180LD_CXX="$LD"
19181
19182
19183cat > conftest.$ac_ext <<EOF
19184class Foo
19185{
19186public:
19187  Foo (void) { a = 0; }
19188private:
19189  int a;
19190};
19191EOF
19192
19193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19194  (eval $ac_compile) 2>&5
19195  ac_status=$?
19196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197  (exit $ac_status); }; then
19198  # Parse the compiler output and extract the necessary
19199  # objects, libraries and library flags.
19200
19201  # Sentinel used to keep track of whether or not we are before
19202  # the conftest object file.
19203  pre_test_object_deps_done=no
19204
19205  # The `*' in the case matches for architectures that use `case' in
19206  # $output_verbose_cmd can trigger glob expansion during the loop
19207  # eval without this substitution.
19208  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19209
19210  for p in `eval $output_verbose_link_cmd`; do
19211    case $p in
19212
19213    -L* | -R* | -l*)
19214       # Some compilers place space between "-{L,R}" and the path.
19215       # Remove the space.
19216       if test $p = "-L" \
19217	  || test $p = "-R"; then
19218	 prev=$p
19219	 continue
19220       else
19221	 prev=
19222       fi
19223
19224       if test "$pre_test_object_deps_done" = no; then
19225	 case $p in
19226	 -L* | -R*)
19227	   # Internal compiler library paths should come after those
19228	   # provided the user.  The postdeps already come after the
19229	   # user supplied libs so there is no need to process them.
19230	   if test -z "$compiler_lib_search_path_CXX"; then
19231	     compiler_lib_search_path_CXX="${prev}${p}"
19232	   else
19233	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19234	   fi
19235	   ;;
19236	 # The "-l" case would never come before the object being
19237	 # linked, so don't bother handling this case.
19238	 esac
19239       else
19240	 if test -z "$postdeps_CXX"; then
19241	   postdeps_CXX="${prev}${p}"
19242	 else
19243	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19244	 fi
19245       fi
19246       ;;
19247
19248    *.$objext)
19249       # This assumes that the test object file only shows up
19250       # once in the compiler output.
19251       if test "$p" = "conftest.$objext"; then
19252	 pre_test_object_deps_done=yes
19253	 continue
19254       fi
19255
19256       if test "$pre_test_object_deps_done" = no; then
19257	 if test -z "$predep_objects_CXX"; then
19258	   predep_objects_CXX="$p"
19259	 else
19260	   predep_objects_CXX="$predep_objects_CXX $p"
19261	 fi
19262       else
19263	 if test -z "$postdep_objects_CXX"; then
19264	   postdep_objects_CXX="$p"
19265	 else
19266	   postdep_objects_CXX="$postdep_objects_CXX $p"
19267	 fi
19268       fi
19269       ;;
19270
19271    *) ;; # Ignore the rest.
19272
19273    esac
19274  done
19275
19276  # Clean up.
19277  rm -f a.out a.exe
19278else
19279  echo "libtool.m4: error: problem compiling CXX test program"
19280fi
19281
19282$rm -f confest.$objext
19283
19284# PORTME: override above test on systems where it is broken
19285case $host_os in
19286interix3*)
19287  # Interix 3.5 installs completely hosed .la files for C++, so rather than
19288  # hack all around it, let's just trust "g++" to DTRT.
19289  predep_objects_CXX=
19290  postdep_objects_CXX=
19291  postdeps_CXX=
19292  ;;
19293
19294solaris*)
19295  case $cc_basename in
19296  CC*)
19297    # Adding this requires a known-good setup of shared libraries for
19298    # Sun compiler versions before 5.6, else PIC objects from an old
19299    # archive will be linked into the output, leading to subtle bugs.
19300    postdeps_CXX='-lCstd -lCrun'
19301    ;;
19302  esac
19303  ;;
19304esac
19305
19306
19307case " $postdeps_CXX " in
19308*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19309esac
19310
19311lt_prog_compiler_wl_CXX=
19312lt_prog_compiler_pic_CXX=
19313lt_prog_compiler_static_CXX=
19314
19315{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19316echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19317
19318  # C++ specific cases for pic, static, wl, etc.
19319  if test "$GXX" = yes; then
19320    lt_prog_compiler_wl_CXX='-Wl,'
19321    lt_prog_compiler_static_CXX='-static'
19322
19323    case $host_os in
19324    aix*)
19325      # All AIX code is PIC.
19326      if test "$host_cpu" = ia64; then
19327	# AIX 5 now supports IA64 processor
19328	lt_prog_compiler_static_CXX='-Bstatic'
19329      fi
19330      ;;
19331    amigaos*)
19332      # FIXME: we need at least 68020 code to build shared libraries, but
19333      # adding the `-m68020' flag to GCC prevents building anything better,
19334      # like `-m68040'.
19335      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19336      ;;
19337    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19338      # PIC is the default for these OSes.
19339      ;;
19340    mingw* | os2* | pw32*)
19341      # This hack is so that the source file can tell whether it is being
19342      # built for inclusion in a dll (and should export symbols for example).
19343      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19344      ;;
19345    darwin* | rhapsody*)
19346      # PIC is the default on this platform
19347      # Common symbols not allowed in MH_DYLIB files
19348      lt_prog_compiler_pic_CXX='-fno-common'
19349      ;;
19350    *djgpp*)
19351      # DJGPP does not support shared libraries at all
19352      lt_prog_compiler_pic_CXX=
19353      ;;
19354    interix3*)
19355      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19356      # Instead, we relocate shared libraries at runtime.
19357      ;;
19358    sysv4*MP*)
19359      if test -d /usr/nec; then
19360	lt_prog_compiler_pic_CXX=-Kconform_pic
19361      fi
19362      ;;
19363    hpux*)
19364      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19365      # not for PA HP-UX.
19366      case $host_cpu in
19367      hppa*64*|ia64*)
19368	;;
19369      *)
19370	lt_prog_compiler_pic_CXX='-fPIC'
19371	;;
19372      esac
19373      ;;
19374    *)
19375      lt_prog_compiler_pic_CXX='-fPIC'
19376      ;;
19377    esac
19378  else
19379    case $host_os in
19380      aix4* | aix5*)
19381	# All AIX code is PIC.
19382	if test "$host_cpu" = ia64; then
19383	  # AIX 5 now supports IA64 processor
19384	  lt_prog_compiler_static_CXX='-Bstatic'
19385	else
19386	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19387	fi
19388	;;
19389      chorus*)
19390	case $cc_basename in
19391	cxch68*)
19392	  # Green Hills C++ Compiler
19393	  # _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"
19394	  ;;
19395	esac
19396	;;
19397       darwin*)
19398         # PIC is the default on this platform
19399         # Common symbols not allowed in MH_DYLIB files
19400         case $cc_basename in
19401           xlc*)
19402           lt_prog_compiler_pic_CXX='-qnocommon'
19403           lt_prog_compiler_wl_CXX='-Wl,'
19404           ;;
19405         esac
19406       ;;
19407      dgux*)
19408	case $cc_basename in
19409	  ec++*)
19410	    lt_prog_compiler_pic_CXX='-KPIC'
19411	    ;;
19412	  ghcx*)
19413	    # Green Hills C++ Compiler
19414	    lt_prog_compiler_pic_CXX='-pic'
19415	    ;;
19416	  *)
19417	    ;;
19418	esac
19419	;;
19420      freebsd* | kfreebsd*-gnu | dragonfly*)
19421	# FreeBSD uses GNU C++
19422	;;
19423      hpux9* | hpux10* | hpux11*)
19424	case $cc_basename in
19425	  CC*)
19426	    lt_prog_compiler_wl_CXX='-Wl,'
19427	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19428	    if test "$host_cpu" != ia64; then
19429	      lt_prog_compiler_pic_CXX='+Z'
19430	    fi
19431	    ;;
19432	  aCC*)
19433	    lt_prog_compiler_wl_CXX='-Wl,'
19434	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19435	    case $host_cpu in
19436	    hppa*64*|ia64*)
19437	      # +Z the default
19438	      ;;
19439	    *)
19440	      lt_prog_compiler_pic_CXX='+Z'
19441	      ;;
19442	    esac
19443	    ;;
19444	  *)
19445	    ;;
19446	esac
19447	;;
19448      interix*)
19449	# This is c89, which is MS Visual C++ (no shared libs)
19450	# Anyone wants to do a port?
19451	;;
19452      irix5* | irix6* | nonstopux*)
19453	case $cc_basename in
19454	  CC*)
19455	    lt_prog_compiler_wl_CXX='-Wl,'
19456	    lt_prog_compiler_static_CXX='-non_shared'
19457	    # CC pic flag -KPIC is the default.
19458	    ;;
19459	  *)
19460	    ;;
19461	esac
19462	;;
19463      linux*)
19464	case $cc_basename in
19465	  KCC*)
19466	    # KAI C++ Compiler
19467	    lt_prog_compiler_wl_CXX='--backend -Wl,'
19468	    lt_prog_compiler_pic_CXX='-fPIC'
19469	    ;;
19470	  icpc* | ecpc*)
19471	    # Intel C++
19472	    lt_prog_compiler_wl_CXX='-Wl,'
19473	    lt_prog_compiler_pic_CXX='-KPIC'
19474	    lt_prog_compiler_static_CXX='-static'
19475	    ;;
19476	  pgCC*)
19477	    # Portland Group C++ compiler.
19478	    lt_prog_compiler_wl_CXX='-Wl,'
19479	    lt_prog_compiler_pic_CXX='-fpic'
19480	    lt_prog_compiler_static_CXX='-Bstatic'
19481	    ;;
19482	  cxx*)
19483	    # Compaq C++
19484	    # Make sure the PIC flag is empty.  It appears that all Alpha
19485	    # Linux and Compaq Tru64 Unix objects are PIC.
19486	    lt_prog_compiler_pic_CXX=
19487	    lt_prog_compiler_static_CXX='-non_shared'
19488	    ;;
19489	  *)
19490	    ;;
19491	esac
19492	;;
19493      lynxos*)
19494	;;
19495      m88k*)
19496	;;
19497      mvs*)
19498	case $cc_basename in
19499	  cxx*)
19500	    lt_prog_compiler_pic_CXX='-W c,exportall'
19501	    ;;
19502	  *)
19503	    ;;
19504	esac
19505	;;
19506      netbsd*)
19507	;;
19508      osf3* | osf4* | osf5*)
19509	case $cc_basename in
19510	  KCC*)
19511	    lt_prog_compiler_wl_CXX='--backend -Wl,'
19512	    ;;
19513	  RCC*)
19514	    # Rational C++ 2.4.1
19515	    lt_prog_compiler_pic_CXX='-pic'
19516	    ;;
19517	  cxx*)
19518	    # Digital/Compaq C++
19519	    lt_prog_compiler_wl_CXX='-Wl,'
19520	    # Make sure the PIC flag is empty.  It appears that all Alpha
19521	    # Linux and Compaq Tru64 Unix objects are PIC.
19522	    lt_prog_compiler_pic_CXX=
19523	    lt_prog_compiler_static_CXX='-non_shared'
19524	    ;;
19525	  *)
19526	    ;;
19527	esac
19528	;;
19529      psos*)
19530	;;
19531      solaris*)
19532	case $cc_basename in
19533	  CC*)
19534	    # Sun C++ 4.2, 5.x and Centerline C++
19535	    lt_prog_compiler_pic_CXX='-KPIC'
19536	    lt_prog_compiler_static_CXX='-Bstatic'
19537	    lt_prog_compiler_wl_CXX='-Qoption ld '
19538	    ;;
19539	  gcx*)
19540	    # Green Hills C++ Compiler
19541	    lt_prog_compiler_pic_CXX='-PIC'
19542	    ;;
19543	  *)
19544	    ;;
19545	esac
19546	;;
19547      sunos4*)
19548	case $cc_basename in
19549	  CC*)
19550	    # Sun C++ 4.x
19551	    lt_prog_compiler_pic_CXX='-pic'
19552	    lt_prog_compiler_static_CXX='-Bstatic'
19553	    ;;
19554	  lcc*)
19555	    # Lucid
19556	    lt_prog_compiler_pic_CXX='-pic'
19557	    ;;
19558	  *)
19559	    ;;
19560	esac
19561	;;
19562      tandem*)
19563	case $cc_basename in
19564	  NCC*)
19565	    # NonStop-UX NCC 3.20
19566	    lt_prog_compiler_pic_CXX='-KPIC'
19567	    ;;
19568	  *)
19569	    ;;
19570	esac
19571	;;
19572      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19573	case $cc_basename in
19574	  CC*)
19575	    lt_prog_compiler_wl_CXX='-Wl,'
19576	    lt_prog_compiler_pic_CXX='-KPIC'
19577	    lt_prog_compiler_static_CXX='-Bstatic'
19578	    ;;
19579	esac
19580	;;
19581      vxworks*)
19582	;;
19583      *)
19584	lt_prog_compiler_can_build_shared_CXX=no
19585	;;
19586    esac
19587  fi
19588
19589{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19590echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19591
19592#
19593# Check to make sure the PIC flag actually works.
19594#
19595if test -n "$lt_prog_compiler_pic_CXX"; then
19596
19597{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19598echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19599if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19600  echo $ECHO_N "(cached) $ECHO_C" >&6
19601else
19602  lt_prog_compiler_pic_works_CXX=no
19603  ac_outfile=conftest.$ac_objext
19604   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19605   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19606   # Insert the option either (1) after the last *FLAGS variable, or
19607   # (2) before a word containing "conftest.", or (3) at the end.
19608   # Note that $ac_compile itself does not contain backslashes and begins
19609   # with a dollar sign (not a hyphen), so the echo should work correctly.
19610   # The option is referenced via a variable to avoid confusing sed.
19611   lt_compile=`echo "$ac_compile" | $SED \
19612   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19613   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19614   -e 's:$: $lt_compiler_flag:'`
19615   (eval echo "\"\$as_me:19615: $lt_compile\"" >&5)
19616   (eval "$lt_compile" 2>conftest.err)
19617   ac_status=$?
19618   cat conftest.err >&5
19619   echo "$as_me:19619: \$? = $ac_status" >&5
19620   if (exit $ac_status) && test -s "$ac_outfile"; then
19621     # The compiler can only warn and ignore the option if not recognized
19622     # So say no if there are warnings other than the usual output.
19623     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19624     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19625     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19626       lt_prog_compiler_pic_works_CXX=yes
19627     fi
19628   fi
19629   $rm conftest*
19630
19631fi
19632{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19633echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19634
19635if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19636    case $lt_prog_compiler_pic_CXX in
19637     "" | " "*) ;;
19638     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19639     esac
19640else
19641    lt_prog_compiler_pic_CXX=
19642     lt_prog_compiler_can_build_shared_CXX=no
19643fi
19644
19645fi
19646case $host_os in
19647  # For platforms which do not support PIC, -DPIC is meaningless:
19648  *djgpp*)
19649    lt_prog_compiler_pic_CXX=
19650    ;;
19651  *)
19652    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19653    ;;
19654esac
19655
19656#
19657# Check to make sure the static flag actually works.
19658#
19659wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19660{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19661echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19662if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19663  echo $ECHO_N "(cached) $ECHO_C" >&6
19664else
19665  lt_prog_compiler_static_works_CXX=no
19666   save_LDFLAGS="$LDFLAGS"
19667   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19668   printf "$lt_simple_link_test_code" > conftest.$ac_ext
19669   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19670     # The linker can only warn and ignore the option if not recognized
19671     # So say no if there are warnings
19672     if test -s conftest.err; then
19673       # Append any errors to the config.log.
19674       cat conftest.err 1>&5
19675       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19676       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19677       if diff conftest.exp conftest.er2 >/dev/null; then
19678         lt_prog_compiler_static_works_CXX=yes
19679       fi
19680     else
19681       lt_prog_compiler_static_works_CXX=yes
19682     fi
19683   fi
19684   $rm conftest*
19685   LDFLAGS="$save_LDFLAGS"
19686
19687fi
19688{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19689echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19690
19691if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19692    :
19693else
19694    lt_prog_compiler_static_CXX=
19695fi
19696
19697
19698{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19699echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19700if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19701  echo $ECHO_N "(cached) $ECHO_C" >&6
19702else
19703  lt_cv_prog_compiler_c_o_CXX=no
19704   $rm -r conftest 2>/dev/null
19705   mkdir conftest
19706   cd conftest
19707   mkdir out
19708   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19709
19710   lt_compiler_flag="-o out/conftest2.$ac_objext"
19711   # Insert the option either (1) after the last *FLAGS variable, or
19712   # (2) before a word containing "conftest.", or (3) at the end.
19713   # Note that $ac_compile itself does not contain backslashes and begins
19714   # with a dollar sign (not a hyphen), so the echo should work correctly.
19715   lt_compile=`echo "$ac_compile" | $SED \
19716   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19717   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19718   -e 's:$: $lt_compiler_flag:'`
19719   (eval echo "\"\$as_me:19719: $lt_compile\"" >&5)
19720   (eval "$lt_compile" 2>out/conftest.err)
19721   ac_status=$?
19722   cat out/conftest.err >&5
19723   echo "$as_me:19723: \$? = $ac_status" >&5
19724   if (exit $ac_status) && test -s out/conftest2.$ac_objext
19725   then
19726     # The compiler can only warn and ignore the option if not recognized
19727     # So say no if there are warnings
19728     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19729     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19730     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19731       lt_cv_prog_compiler_c_o_CXX=yes
19732     fi
19733   fi
19734   chmod u+w . 2>&5
19735   $rm conftest*
19736   # SGI C++ compiler will create directory out/ii_files/ for
19737   # template instantiation
19738   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19739   $rm out/* && rmdir out
19740   cd ..
19741   rmdir conftest
19742   $rm conftest*
19743
19744fi
19745{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19746echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19747
19748
19749hard_links="nottested"
19750if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19751  # do not overwrite the value of need_locks provided by the user
19752  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19753echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19754  hard_links=yes
19755  $rm conftest*
19756  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19757  touch conftest.a
19758  ln conftest.a conftest.b 2>&5 || hard_links=no
19759  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19760  { echo "$as_me:$LINENO: result: $hard_links" >&5
19761echo "${ECHO_T}$hard_links" >&6; }
19762  if test "$hard_links" = no; then
19763    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19764echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19765    need_locks=warn
19766  fi
19767else
19768  need_locks=no
19769fi
19770
19771{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19772echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19773
19774  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19775  case $host_os in
19776  aix4* | aix5*)
19777    # If we're using GNU nm, then we don't want the "-C" option.
19778    # -C means demangle to AIX nm, but means don't demangle with GNU nm
19779    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19780      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'
19781    else
19782      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'
19783    fi
19784    ;;
19785  pw32*)
19786    export_symbols_cmds_CXX="$ltdll_cmds"
19787  ;;
19788  cygwin* | mingw*)
19789    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'
19790  ;;
19791  *)
19792    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19793  ;;
19794  esac
19795
19796{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19797echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19798test "$ld_shlibs_CXX" = no && can_build_shared=no
19799
19800#
19801# Do we need to explicitly link libc?
19802#
19803case "x$archive_cmds_need_lc_CXX" in
19804x|xyes)
19805  # Assume -lc should be added
19806  archive_cmds_need_lc_CXX=yes
19807
19808  if test "$enable_shared" = yes && test "$GCC" = yes; then
19809    case $archive_cmds_CXX in
19810    *'~'*)
19811      # FIXME: we may have to deal with multi-command sequences.
19812      ;;
19813    '$CC '*)
19814      # Test whether the compiler implicitly links with -lc since on some
19815      # systems, -lgcc has to come before -lc. If gcc already passes -lc
19816      # to ld, don't add -lc before -lgcc.
19817      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19818echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19819      $rm conftest*
19820      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19821
19822      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19823  (eval $ac_compile) 2>&5
19824  ac_status=$?
19825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826  (exit $ac_status); } 2>conftest.err; then
19827        soname=conftest
19828        lib=conftest
19829        libobjs=conftest.$ac_objext
19830        deplibs=
19831        wl=$lt_prog_compiler_wl_CXX
19832	pic_flag=$lt_prog_compiler_pic_CXX
19833        compiler_flags=-v
19834        linker_flags=-v
19835        verstring=
19836        output_objdir=.
19837        libname=conftest
19838        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19839        allow_undefined_flag_CXX=
19840        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19841  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19842  ac_status=$?
19843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844  (exit $ac_status); }
19845        then
19846	  archive_cmds_need_lc_CXX=no
19847        else
19848	  archive_cmds_need_lc_CXX=yes
19849        fi
19850        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19851      else
19852        cat conftest.err 1>&5
19853      fi
19854      $rm conftest*
19855      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19856echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19857      ;;
19858    esac
19859  fi
19860  ;;
19861esac
19862
19863{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19864echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19865library_names_spec=
19866libname_spec='lib$name'
19867soname_spec=
19868shrext_cmds=".so"
19869postinstall_cmds=
19870postuninstall_cmds=
19871finish_cmds=
19872finish_eval=
19873shlibpath_var=
19874shlibpath_overrides_runpath=unknown
19875version_type=none
19876dynamic_linker="$host_os ld.so"
19877sys_lib_dlsearch_path_spec="/lib /usr/lib"
19878if test "$GCC" = yes; then
19879  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19880  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19881    # if the path contains ";" then we assume it to be the separator
19882    # otherwise default to the standard path separator (i.e. ":") - it is
19883    # assumed that no part of a normal pathname contains ";" but that should
19884    # okay in the real world where ";" in dirpaths is itself problematic.
19885    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19886  else
19887    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19888  fi
19889else
19890  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19891fi
19892need_lib_prefix=unknown
19893hardcode_into_libs=no
19894
19895# when you set need_version to no, make sure it does not cause -set_version
19896# flags to be left without arguments
19897need_version=unknown
19898
19899case $host_os in
19900aix3*)
19901  version_type=linux
19902  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19903  shlibpath_var=LIBPATH
19904
19905  # AIX 3 has no versioning support, so we append a major version to the name.
19906  soname_spec='${libname}${release}${shared_ext}$major'
19907  ;;
19908
19909aix4* | aix5*)
19910  version_type=linux
19911  need_lib_prefix=no
19912  need_version=no
19913  hardcode_into_libs=yes
19914  if test "$host_cpu" = ia64; then
19915    # AIX 5 supports IA64
19916    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19917    shlibpath_var=LD_LIBRARY_PATH
19918  else
19919    # With GCC up to 2.95.x, collect2 would create an import file
19920    # for dependence libraries.  The import file would start with
19921    # the line `#! .'.  This would cause the generated library to
19922    # depend on `.', always an invalid library.  This was fixed in
19923    # development snapshots of GCC prior to 3.0.
19924    case $host_os in
19925      aix4 | aix4.[01] | aix4.[01].*)
19926      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19927	   echo ' yes '
19928	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19929	:
19930      else
19931	can_build_shared=no
19932      fi
19933      ;;
19934    esac
19935    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19936    # soname into executable. Probably we can add versioning support to
19937    # collect2, so additional links can be useful in future.
19938    if test "$aix_use_runtimelinking" = yes; then
19939      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19940      # instead of lib<name>.a to let people know that these are not
19941      # typical AIX shared libraries.
19942      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19943    else
19944      # We preserve .a as extension for shared libraries through AIX4.2
19945      # and later when we are not doing run time linking.
19946      library_names_spec='${libname}${release}.a $libname.a'
19947      soname_spec='${libname}${release}${shared_ext}$major'
19948    fi
19949    shlibpath_var=LIBPATH
19950  fi
19951  ;;
19952
19953amigaos*)
19954  library_names_spec='$libname.ixlibrary $libname.a'
19955  # Create ${libname}_ixlibrary.a entries in /sys/libs.
19956  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'
19957  ;;
19958
19959beos*)
19960  library_names_spec='${libname}${shared_ext}'
19961  dynamic_linker="$host_os ld.so"
19962  shlibpath_var=LIBRARY_PATH
19963  ;;
19964
19965bsdi[45]*)
19966  version_type=linux
19967  need_version=no
19968  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19969  soname_spec='${libname}${release}${shared_ext}$major'
19970  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19971  shlibpath_var=LD_LIBRARY_PATH
19972  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19973  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19974  # the default ld.so.conf also contains /usr/contrib/lib and
19975  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19976  # libtool to hard-code these into programs
19977  ;;
19978
19979cygwin* | mingw* | pw32*)
19980  version_type=windows
19981  shrext_cmds=".dll"
19982  need_version=no
19983  need_lib_prefix=no
19984
19985  case $GCC,$host_os in
19986  yes,cygwin* | yes,mingw* | yes,pw32*)
19987    library_names_spec='$libname.dll.a'
19988    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19989    postinstall_cmds='base_file=`basename \${file}`~
19990      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19991      dldir=$destdir/`dirname \$dlpath`~
19992      test -d \$dldir || mkdir -p \$dldir~
19993      $install_prog $dir/$dlname \$dldir/$dlname~
19994      chmod a+x \$dldir/$dlname'
19995    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19996      dlpath=$dir/\$dldll~
19997       $rm \$dlpath'
19998    shlibpath_overrides_runpath=yes
19999
20000    case $host_os in
20001    cygwin*)
20002      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20003      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20004      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20005      ;;
20006    mingw*)
20007      # MinGW DLLs use traditional 'lib' prefix
20008      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20009      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20010      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20011        # It is most probably a Windows format PATH printed by
20012        # mingw gcc, but we are running on Cygwin. Gcc prints its search
20013        # path with ; separators, and with drive letters. We can handle the
20014        # drive letters (cygwin fileutils understands them), so leave them,
20015        # especially as we might pass files found there to a mingw objdump,
20016        # which wouldn't understand a cygwinified path. Ahh.
20017        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20018      else
20019        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20020      fi
20021      ;;
20022    pw32*)
20023      # pw32 DLLs use 'pw' prefix rather than 'lib'
20024      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20025      ;;
20026    esac
20027    ;;
20028
20029  *)
20030    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20031    ;;
20032  esac
20033  dynamic_linker='Win32 ld.exe'
20034  # FIXME: first we should search . and the directory the executable is in
20035  shlibpath_var=PATH
20036  ;;
20037
20038darwin* | rhapsody*)
20039  dynamic_linker="$host_os dyld"
20040  version_type=darwin
20041  need_lib_prefix=no
20042  need_version=no
20043  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20044  soname_spec='${libname}${release}${major}$shared_ext'
20045  shlibpath_overrides_runpath=yes
20046  shlibpath_var=DYLD_LIBRARY_PATH
20047  shrext_cmds='.dylib'
20048  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20049  if test "$GCC" = yes; then
20050    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"`
20051  else
20052    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20053  fi
20054  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20055  ;;
20056
20057dgux*)
20058  version_type=linux
20059  need_lib_prefix=no
20060  need_version=no
20061  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20062  soname_spec='${libname}${release}${shared_ext}$major'
20063  shlibpath_var=LD_LIBRARY_PATH
20064  ;;
20065
20066freebsd1*)
20067  dynamic_linker=no
20068  ;;
20069
20070kfreebsd*-gnu)
20071  version_type=linux
20072  need_lib_prefix=no
20073  need_version=no
20074  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20075  soname_spec='${libname}${release}${shared_ext}$major'
20076  shlibpath_var=LD_LIBRARY_PATH
20077  shlibpath_overrides_runpath=no
20078  hardcode_into_libs=yes
20079  dynamic_linker='GNU ld.so'
20080  ;;
20081
20082freebsd* | dragonfly*)
20083  # DragonFly does not have aout.  When/if they implement a new
20084  # versioning mechanism, adjust this.
20085  if test -x /usr/bin/objformat; then
20086    objformat=`/usr/bin/objformat`
20087  else
20088    case $host_os in
20089    freebsd[123]*) objformat=aout ;;
20090    *) objformat=elf ;;
20091    esac
20092  fi
20093  version_type=freebsd-$objformat
20094  case $version_type in
20095    freebsd-elf*)
20096      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20097      need_version=no
20098      need_lib_prefix=no
20099      ;;
20100    freebsd-*)
20101      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20102      need_version=yes
20103      ;;
20104  esac
20105  shlibpath_var=LD_LIBRARY_PATH
20106  case $host_os in
20107  freebsd2*)
20108    shlibpath_overrides_runpath=yes
20109    ;;
20110  freebsd3.[01]* | freebsdelf3.[01]*)
20111    shlibpath_overrides_runpath=yes
20112    hardcode_into_libs=yes
20113    ;;
20114  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20115  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20116    shlibpath_overrides_runpath=no
20117    hardcode_into_libs=yes
20118    ;;
20119  freebsd*) # from 4.6 on
20120    shlibpath_overrides_runpath=yes
20121    hardcode_into_libs=yes
20122    ;;
20123  esac
20124  ;;
20125
20126gnu*)
20127  version_type=linux
20128  need_lib_prefix=no
20129  need_version=no
20130  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20131  soname_spec='${libname}${release}${shared_ext}$major'
20132  shlibpath_var=LD_LIBRARY_PATH
20133  hardcode_into_libs=yes
20134  ;;
20135
20136hpux9* | hpux10* | hpux11*)
20137  # Give a soname corresponding to the major version so that dld.sl refuses to
20138  # link against other versions.
20139  version_type=sunos
20140  need_lib_prefix=no
20141  need_version=no
20142  case $host_cpu in
20143  ia64*)
20144    shrext_cmds='.so'
20145    hardcode_into_libs=yes
20146    dynamic_linker="$host_os dld.so"
20147    shlibpath_var=LD_LIBRARY_PATH
20148    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20149    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20150    soname_spec='${libname}${release}${shared_ext}$major'
20151    if test "X$HPUX_IA64_MODE" = X32; then
20152      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20153    else
20154      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20155    fi
20156    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20157    ;;
20158   hppa*64*)
20159     shrext_cmds='.sl'
20160     hardcode_into_libs=yes
20161     dynamic_linker="$host_os dld.sl"
20162     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20163     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20164     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20165     soname_spec='${libname}${release}${shared_ext}$major'
20166     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20167     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20168     ;;
20169   *)
20170    shrext_cmds='.sl'
20171    dynamic_linker="$host_os dld.sl"
20172    shlibpath_var=SHLIB_PATH
20173    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20174    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20175    soname_spec='${libname}${release}${shared_ext}$major'
20176    ;;
20177  esac
20178  # HP-UX runs *really* slowly unless shared libraries are mode 555.
20179  postinstall_cmds='chmod 555 $lib'
20180  ;;
20181
20182interix3*)
20183  version_type=linux
20184  need_lib_prefix=no
20185  need_version=no
20186  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20187  soname_spec='${libname}${release}${shared_ext}$major'
20188  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20189  shlibpath_var=LD_LIBRARY_PATH
20190  shlibpath_overrides_runpath=no
20191  hardcode_into_libs=yes
20192  ;;
20193
20194irix5* | irix6* | nonstopux*)
20195  case $host_os in
20196    nonstopux*) version_type=nonstopux ;;
20197    *)
20198	if test "$lt_cv_prog_gnu_ld" = yes; then
20199		version_type=linux
20200	else
20201		version_type=irix
20202	fi ;;
20203  esac
20204  need_lib_prefix=no
20205  need_version=no
20206  soname_spec='${libname}${release}${shared_ext}$major'
20207  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20208  case $host_os in
20209  irix5* | nonstopux*)
20210    libsuff= shlibsuff=
20211    ;;
20212  *)
20213    case $LD in # libtool.m4 will add one of these switches to LD
20214    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20215      libsuff= shlibsuff= libmagic=32-bit;;
20216    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20217      libsuff=32 shlibsuff=N32 libmagic=N32;;
20218    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20219      libsuff=64 shlibsuff=64 libmagic=64-bit;;
20220    *) libsuff= shlibsuff= libmagic=never-match;;
20221    esac
20222    ;;
20223  esac
20224  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20225  shlibpath_overrides_runpath=no
20226  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20227  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20228  hardcode_into_libs=yes
20229  ;;
20230
20231# No shared lib support for Linux oldld, aout, or coff.
20232linux*oldld* | linux*aout* | linux*coff*)
20233  dynamic_linker=no
20234  ;;
20235
20236# This must be Linux ELF.
20237linux*)
20238  version_type=linux
20239  need_lib_prefix=no
20240  need_version=no
20241  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20242  soname_spec='${libname}${release}${shared_ext}$major'
20243  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20244  shlibpath_var=LD_LIBRARY_PATH
20245  shlibpath_overrides_runpath=no
20246  # This implies no fast_install, which is unacceptable.
20247  # Some rework will be needed to allow for fast_install
20248  # before this can be enabled.
20249  hardcode_into_libs=yes
20250
20251  # Append ld.so.conf contents to the search path
20252  if test -f /etc/ld.so.conf; then
20253    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' ' '`
20254    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20255  fi
20256
20257  # We used to test for /lib/ld.so.1 and disable shared libraries on
20258  # powerpc, because MkLinux only supported shared libraries with the
20259  # GNU dynamic linker.  Since this was broken with cross compilers,
20260  # most powerpc-linux boxes support dynamic linking these days and
20261  # people can always --disable-shared, the test was removed, and we
20262  # assume the GNU/Linux dynamic linker is in use.
20263  dynamic_linker='GNU/Linux ld.so'
20264  ;;
20265
20266knetbsd*-gnu)
20267  version_type=linux
20268  need_lib_prefix=no
20269  need_version=no
20270  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20271  soname_spec='${libname}${release}${shared_ext}$major'
20272  shlibpath_var=LD_LIBRARY_PATH
20273  shlibpath_overrides_runpath=no
20274  hardcode_into_libs=yes
20275  dynamic_linker='GNU ld.so'
20276  ;;
20277
20278netbsd*)
20279  version_type=sunos
20280  need_lib_prefix=no
20281  need_version=no
20282  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20283    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20284    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20285    dynamic_linker='NetBSD (a.out) ld.so'
20286  else
20287    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20288    soname_spec='${libname}${release}${shared_ext}$major'
20289    dynamic_linker='NetBSD ld.elf_so'
20290  fi
20291  shlibpath_var=LD_LIBRARY_PATH
20292  shlibpath_overrides_runpath=yes
20293  hardcode_into_libs=yes
20294  ;;
20295
20296newsos6)
20297  version_type=linux
20298  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20299  shlibpath_var=LD_LIBRARY_PATH
20300  shlibpath_overrides_runpath=yes
20301  ;;
20302
20303nto-qnx*)
20304  version_type=linux
20305  need_lib_prefix=no
20306  need_version=no
20307  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20308  soname_spec='${libname}${release}${shared_ext}$major'
20309  shlibpath_var=LD_LIBRARY_PATH
20310  shlibpath_overrides_runpath=yes
20311  ;;
20312
20313openbsd*)
20314  version_type=sunos
20315  sys_lib_dlsearch_path_spec="/usr/lib"
20316  need_lib_prefix=no
20317  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20318  case $host_os in
20319    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20320    *)                         need_version=no  ;;
20321  esac
20322  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20323  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20324  shlibpath_var=LD_LIBRARY_PATH
20325  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20326    case $host_os in
20327      openbsd2.[89] | openbsd2.[89].*)
20328	shlibpath_overrides_runpath=no
20329	;;
20330      *)
20331	shlibpath_overrides_runpath=yes
20332	;;
20333      esac
20334  else
20335    shlibpath_overrides_runpath=yes
20336  fi
20337  ;;
20338
20339os2*)
20340  libname_spec='$name'
20341  shrext_cmds=".dll"
20342  need_lib_prefix=no
20343  library_names_spec='$libname${shared_ext} $libname.a'
20344  dynamic_linker='OS/2 ld.exe'
20345  shlibpath_var=LIBPATH
20346  ;;
20347
20348osf3* | osf4* | osf5*)
20349  version_type=osf
20350  need_lib_prefix=no
20351  need_version=no
20352  soname_spec='${libname}${release}${shared_ext}$major'
20353  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20354  shlibpath_var=LD_LIBRARY_PATH
20355  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20356  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20357  ;;
20358
20359solaris*)
20360  version_type=linux
20361  need_lib_prefix=no
20362  need_version=no
20363  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20364  soname_spec='${libname}${release}${shared_ext}$major'
20365  shlibpath_var=LD_LIBRARY_PATH
20366  shlibpath_overrides_runpath=yes
20367  hardcode_into_libs=yes
20368  # ldd complains unless libraries are executable
20369  postinstall_cmds='chmod +x $lib'
20370  ;;
20371
20372sunos4*)
20373  version_type=sunos
20374  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20375  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20376  shlibpath_var=LD_LIBRARY_PATH
20377  shlibpath_overrides_runpath=yes
20378  if test "$with_gnu_ld" = yes; then
20379    need_lib_prefix=no
20380  fi
20381  need_version=yes
20382  ;;
20383
20384sysv4 | sysv4.3*)
20385  version_type=linux
20386  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20387  soname_spec='${libname}${release}${shared_ext}$major'
20388  shlibpath_var=LD_LIBRARY_PATH
20389  case $host_vendor in
20390    sni)
20391      shlibpath_overrides_runpath=no
20392      need_lib_prefix=no
20393      export_dynamic_flag_spec='${wl}-Blargedynsym'
20394      runpath_var=LD_RUN_PATH
20395      ;;
20396    siemens)
20397      need_lib_prefix=no
20398      ;;
20399    motorola)
20400      need_lib_prefix=no
20401      need_version=no
20402      shlibpath_overrides_runpath=no
20403      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20404      ;;
20405  esac
20406  ;;
20407
20408sysv4*MP*)
20409  if test -d /usr/nec ;then
20410    version_type=linux
20411    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20412    soname_spec='$libname${shared_ext}.$major'
20413    shlibpath_var=LD_LIBRARY_PATH
20414  fi
20415  ;;
20416
20417sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20418  version_type=freebsd-elf
20419  need_lib_prefix=no
20420  need_version=no
20421  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20422  soname_spec='${libname}${release}${shared_ext}$major'
20423  shlibpath_var=LD_LIBRARY_PATH
20424  hardcode_into_libs=yes
20425  if test "$with_gnu_ld" = yes; then
20426    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20427    shlibpath_overrides_runpath=no
20428  else
20429    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20430    shlibpath_overrides_runpath=yes
20431    case $host_os in
20432      sco3.2v5*)
20433        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20434	;;
20435    esac
20436  fi
20437  sys_lib_dlsearch_path_spec='/usr/lib'
20438  ;;
20439
20440uts4*)
20441  version_type=linux
20442  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20443  soname_spec='${libname}${release}${shared_ext}$major'
20444  shlibpath_var=LD_LIBRARY_PATH
20445  ;;
20446
20447*)
20448  dynamic_linker=no
20449  ;;
20450esac
20451{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20452echo "${ECHO_T}$dynamic_linker" >&6; }
20453test "$dynamic_linker" = no && can_build_shared=no
20454
20455variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20456if test "$GCC" = yes; then
20457  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20458fi
20459
20460{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20461echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20462hardcode_action_CXX=
20463if test -n "$hardcode_libdir_flag_spec_CXX" || \
20464   test -n "$runpath_var_CXX" || \
20465   test "X$hardcode_automatic_CXX" = "Xyes" ; then
20466
20467  # We can hardcode non-existant directories.
20468  if test "$hardcode_direct_CXX" != no &&
20469     # If the only mechanism to avoid hardcoding is shlibpath_var, we
20470     # have to relink, otherwise we might link with an installed library
20471     # when we should be linking with a yet-to-be-installed one
20472     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20473     test "$hardcode_minus_L_CXX" != no; then
20474    # Linking always hardcodes the temporary library directory.
20475    hardcode_action_CXX=relink
20476  else
20477    # We can link without hardcoding, and we can hardcode nonexisting dirs.
20478    hardcode_action_CXX=immediate
20479  fi
20480else
20481  # We cannot hardcode anything, or else we can only hardcode existing
20482  # directories.
20483  hardcode_action_CXX=unsupported
20484fi
20485{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20486echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20487
20488if test "$hardcode_action_CXX" = relink; then
20489  # Fast installation is not supported
20490  enable_fast_install=no
20491elif test "$shlibpath_overrides_runpath" = yes ||
20492     test "$enable_shared" = no; then
20493  # Fast installation is not necessary
20494  enable_fast_install=needless
20495fi
20496
20497
20498# The else clause should only fire when bootstrapping the
20499# libtool distribution, otherwise you forgot to ship ltmain.sh
20500# with your package, and you will get complaints that there are
20501# no rules to generate ltmain.sh.
20502if test -f "$ltmain"; then
20503  # See if we are running on zsh, and set the options which allow our commands through
20504  # without removal of \ escapes.
20505  if test -n "${ZSH_VERSION+set}" ; then
20506    setopt NO_GLOB_SUBST
20507  fi
20508  # Now quote all the things that may contain metacharacters while being
20509  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20510  # variables and quote the copies for generation of the libtool script.
20511  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20512    SED SHELL STRIP \
20513    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20514    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20515    deplibs_check_method reload_flag reload_cmds need_locks \
20516    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20517    lt_cv_sys_global_symbol_to_c_name_address \
20518    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20519    old_postinstall_cmds old_postuninstall_cmds \
20520    compiler_CXX \
20521    CC_CXX \
20522    LD_CXX \
20523    lt_prog_compiler_wl_CXX \
20524    lt_prog_compiler_pic_CXX \
20525    lt_prog_compiler_static_CXX \
20526    lt_prog_compiler_no_builtin_flag_CXX \
20527    export_dynamic_flag_spec_CXX \
20528    thread_safe_flag_spec_CXX \
20529    whole_archive_flag_spec_CXX \
20530    enable_shared_with_static_runtimes_CXX \
20531    old_archive_cmds_CXX \
20532    old_archive_from_new_cmds_CXX \
20533    predep_objects_CXX \
20534    postdep_objects_CXX \
20535    predeps_CXX \
20536    postdeps_CXX \
20537    compiler_lib_search_path_CXX \
20538    archive_cmds_CXX \
20539    archive_expsym_cmds_CXX \
20540    postinstall_cmds_CXX \
20541    postuninstall_cmds_CXX \
20542    old_archive_from_expsyms_cmds_CXX \
20543    allow_undefined_flag_CXX \
20544    no_undefined_flag_CXX \
20545    export_symbols_cmds_CXX \
20546    hardcode_libdir_flag_spec_CXX \
20547    hardcode_libdir_flag_spec_ld_CXX \
20548    hardcode_libdir_separator_CXX \
20549    hardcode_automatic_CXX \
20550    module_cmds_CXX \
20551    module_expsym_cmds_CXX \
20552    lt_cv_prog_compiler_c_o_CXX \
20553    exclude_expsyms_CXX \
20554    include_expsyms_CXX; do
20555
20556    case $var in
20557    old_archive_cmds_CXX | \
20558    old_archive_from_new_cmds_CXX | \
20559    archive_cmds_CXX | \
20560    archive_expsym_cmds_CXX | \
20561    module_cmds_CXX | \
20562    module_expsym_cmds_CXX | \
20563    old_archive_from_expsyms_cmds_CXX | \
20564    export_symbols_cmds_CXX | \
20565    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20566    postinstall_cmds | postuninstall_cmds | \
20567    old_postinstall_cmds | old_postuninstall_cmds | \
20568    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20569      # Double-quote double-evaled strings.
20570      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20571      ;;
20572    *)
20573      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20574      ;;
20575    esac
20576  done
20577
20578  case $lt_echo in
20579  *'\$0 --fallback-echo"')
20580    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20581    ;;
20582  esac
20583
20584cfgfile="$ofile"
20585
20586  cat <<__EOF__ >> "$cfgfile"
20587# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20588
20589# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20590
20591# Shell to use when invoking shell scripts.
20592SHELL=$lt_SHELL
20593
20594# Whether or not to build shared libraries.
20595build_libtool_libs=$enable_shared
20596
20597# Whether or not to build static libraries.
20598build_old_libs=$enable_static
20599
20600# Whether or not to add -lc for building shared libraries.
20601build_libtool_need_lc=$archive_cmds_need_lc_CXX
20602
20603# Whether or not to disallow shared libs when runtime libs are static
20604allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20605
20606# Whether or not to optimize for fast installation.
20607fast_install=$enable_fast_install
20608
20609# The host system.
20610host_alias=$host_alias
20611host=$host
20612host_os=$host_os
20613
20614# The build system.
20615build_alias=$build_alias
20616build=$build
20617build_os=$build_os
20618
20619# An echo program that does not interpret backslashes.
20620echo=$lt_echo
20621
20622# The archiver.
20623AR=$lt_AR
20624AR_FLAGS=$lt_AR_FLAGS
20625
20626# A C compiler.
20627LTCC=$lt_LTCC
20628
20629# LTCC compiler flags.
20630LTCFLAGS=$lt_LTCFLAGS
20631
20632# A language-specific compiler.
20633CC=$lt_compiler_CXX
20634
20635# Is the compiler the GNU C compiler?
20636with_gcc=$GCC_CXX
20637
20638# An ERE matcher.
20639EGREP=$lt_EGREP
20640
20641# The linker used to build libraries.
20642LD=$lt_LD_CXX
20643
20644# Whether we need hard or soft links.
20645LN_S=$lt_LN_S
20646
20647# A BSD-compatible nm program.
20648NM=$lt_NM
20649
20650# A symbol stripping program
20651STRIP=$lt_STRIP
20652
20653# Used to examine libraries when file_magic_cmd begins "file"
20654MAGIC_CMD=$MAGIC_CMD
20655
20656# Used on cygwin: DLL creation program.
20657DLLTOOL="$DLLTOOL"
20658
20659# Used on cygwin: object dumper.
20660OBJDUMP="$OBJDUMP"
20661
20662# Used on cygwin: assembler.
20663AS="$AS"
20664
20665# The name of the directory that contains temporary libtool files.
20666objdir=$objdir
20667
20668# How to create reloadable object files.
20669reload_flag=$lt_reload_flag
20670reload_cmds=$lt_reload_cmds
20671
20672# How to pass a linker flag through the compiler.
20673wl=$lt_lt_prog_compiler_wl_CXX
20674
20675# Object file suffix (normally "o").
20676objext="$ac_objext"
20677
20678# Old archive suffix (normally "a").
20679libext="$libext"
20680
20681# Shared library suffix (normally ".so").
20682shrext_cmds='$shrext_cmds'
20683
20684# Executable file suffix (normally "").
20685exeext="$exeext"
20686
20687# Additional compiler flags for building library objects.
20688pic_flag=$lt_lt_prog_compiler_pic_CXX
20689pic_mode=$pic_mode
20690
20691# What is the maximum length of a command?
20692max_cmd_len=$lt_cv_sys_max_cmd_len
20693
20694# Does compiler simultaneously support -c and -o options?
20695compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20696
20697# Must we lock files when doing compilation?
20698need_locks=$lt_need_locks
20699
20700# Do we need the lib prefix for modules?
20701need_lib_prefix=$need_lib_prefix
20702
20703# Do we need a version for libraries?
20704need_version=$need_version
20705
20706# Whether dlopen is supported.
20707dlopen_support=$enable_dlopen
20708
20709# Whether dlopen of programs is supported.
20710dlopen_self=$enable_dlopen_self
20711
20712# Whether dlopen of statically linked programs is supported.
20713dlopen_self_static=$enable_dlopen_self_static
20714
20715# Compiler flag to prevent dynamic linking.
20716link_static_flag=$lt_lt_prog_compiler_static_CXX
20717
20718# Compiler flag to turn off builtin functions.
20719no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20720
20721# Compiler flag to allow reflexive dlopens.
20722export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20723
20724# Compiler flag to generate shared objects directly from archives.
20725whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20726
20727# Compiler flag to generate thread-safe objects.
20728thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20729
20730# Library versioning type.
20731version_type=$version_type
20732
20733# Format of library name prefix.
20734libname_spec=$lt_libname_spec
20735
20736# List of archive names.  First name is the real one, the rest are links.
20737# The last name is the one that the linker finds with -lNAME.
20738library_names_spec=$lt_library_names_spec
20739
20740# The coded name of the library, if different from the real name.
20741soname_spec=$lt_soname_spec
20742
20743# Commands used to build and install an old-style archive.
20744RANLIB=$lt_RANLIB
20745old_archive_cmds=$lt_old_archive_cmds_CXX
20746old_postinstall_cmds=$lt_old_postinstall_cmds
20747old_postuninstall_cmds=$lt_old_postuninstall_cmds
20748
20749# Create an old-style archive from a shared archive.
20750old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20751
20752# Create a temporary old-style archive to link instead of a shared archive.
20753old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20754
20755# Commands used to build and install a shared archive.
20756archive_cmds=$lt_archive_cmds_CXX
20757archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20758postinstall_cmds=$lt_postinstall_cmds
20759postuninstall_cmds=$lt_postuninstall_cmds
20760
20761# Commands used to build a loadable module (assumed same as above if empty)
20762module_cmds=$lt_module_cmds_CXX
20763module_expsym_cmds=$lt_module_expsym_cmds_CXX
20764
20765# Commands to strip libraries.
20766old_striplib=$lt_old_striplib
20767striplib=$lt_striplib
20768
20769# Dependencies to place before the objects being linked to create a
20770# shared library.
20771predep_objects=$lt_predep_objects_CXX
20772
20773# Dependencies to place after the objects being linked to create a
20774# shared library.
20775postdep_objects=$lt_postdep_objects_CXX
20776
20777# Dependencies to place before the objects being linked to create a
20778# shared library.
20779predeps=$lt_predeps_CXX
20780
20781# Dependencies to place after the objects being linked to create a
20782# shared library.
20783postdeps=$lt_postdeps_CXX
20784
20785# The library search path used internally by the compiler when linking
20786# a shared library.
20787compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20788
20789# Method to check whether dependent libraries are shared objects.
20790deplibs_check_method=$lt_deplibs_check_method
20791
20792# Command to use when deplibs_check_method == file_magic.
20793file_magic_cmd=$lt_file_magic_cmd
20794
20795# Flag that allows shared libraries with undefined symbols to be built.
20796allow_undefined_flag=$lt_allow_undefined_flag_CXX
20797
20798# Flag that forces no undefined symbols.
20799no_undefined_flag=$lt_no_undefined_flag_CXX
20800
20801# Commands used to finish a libtool library installation in a directory.
20802finish_cmds=$lt_finish_cmds
20803
20804# Same as above, but a single script fragment to be evaled but not shown.
20805finish_eval=$lt_finish_eval
20806
20807# Take the output of nm and produce a listing of raw symbols and C names.
20808global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20809
20810# Transform the output of nm in a proper C declaration
20811global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20812
20813# Transform the output of nm in a C name address pair
20814global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20815
20816# This is the shared library runtime path variable.
20817runpath_var=$runpath_var
20818
20819# This is the shared library path variable.
20820shlibpath_var=$shlibpath_var
20821
20822# Is shlibpath searched before the hard-coded library search path?
20823shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20824
20825# How to hardcode a shared library path into an executable.
20826hardcode_action=$hardcode_action_CXX
20827
20828# Whether we should hardcode library paths into libraries.
20829hardcode_into_libs=$hardcode_into_libs
20830
20831# Flag to hardcode \$libdir into a binary during linking.
20832# This must work even if \$libdir does not exist.
20833hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20834
20835# If ld is used when linking, flag to hardcode \$libdir into
20836# a binary during linking. This must work even if \$libdir does
20837# not exist.
20838hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20839
20840# Whether we need a single -rpath flag with a separated argument.
20841hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20842
20843# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20844# resulting binary.
20845hardcode_direct=$hardcode_direct_CXX
20846
20847# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20848# resulting binary.
20849hardcode_minus_L=$hardcode_minus_L_CXX
20850
20851# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20852# the resulting binary.
20853hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20854
20855# Set to yes if building a shared library automatically hardcodes DIR into the library
20856# and all subsequent libraries and executables linked against it.
20857hardcode_automatic=$hardcode_automatic_CXX
20858
20859# Variables whose values should be saved in libtool wrapper scripts and
20860# restored at relink time.
20861variables_saved_for_relink="$variables_saved_for_relink"
20862
20863# Whether libtool must link a program against all its dependency libraries.
20864link_all_deplibs=$link_all_deplibs_CXX
20865
20866# Compile-time system search path for libraries
20867sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20868
20869# Run-time system search path for libraries
20870sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20871
20872# Fix the shell variable \$srcfile for the compiler.
20873fix_srcfile_path="$fix_srcfile_path_CXX"
20874
20875# Set to yes if exported symbols are required.
20876always_export_symbols=$always_export_symbols_CXX
20877
20878# The commands to list exported symbols.
20879export_symbols_cmds=$lt_export_symbols_cmds_CXX
20880
20881# The commands to extract the exported symbol list from a shared archive.
20882extract_expsyms_cmds=$lt_extract_expsyms_cmds
20883
20884# Symbols that should not be listed in the preloaded symbols.
20885exclude_expsyms=$lt_exclude_expsyms_CXX
20886
20887# Symbols that must always be exported.
20888include_expsyms=$lt_include_expsyms_CXX
20889
20890# ### END LIBTOOL TAG CONFIG: $tagname
20891
20892__EOF__
20893
20894
20895else
20896  # If there is no Makefile yet, we rely on a make rule to execute
20897  # `config.status --recheck' to rerun these tests and create the
20898  # libtool script then.
20899  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20900  if test -f "$ltmain_in"; then
20901    test -f Makefile && make "$ltmain"
20902  fi
20903fi
20904
20905
20906ac_ext=c
20907ac_cpp='$CPP $CPPFLAGS'
20908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20910ac_compiler_gnu=$ac_cv_c_compiler_gnu
20911
20912CC=$lt_save_CC
20913LDCXX=$LD
20914LD=$lt_save_LD
20915GCC=$lt_save_GCC
20916with_gnu_ldcxx=$with_gnu_ld
20917with_gnu_ld=$lt_save_with_gnu_ld
20918lt_cv_path_LDCXX=$lt_cv_path_LD
20919lt_cv_path_LD=$lt_save_path_LD
20920lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20921lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20922
20923	else
20924	  tagname=""
20925	fi
20926	;;
20927
20928      F77)
20929	if test -n "$F77" && test "X$F77" != "Xno"; then
20930
20931ac_ext=f
20932ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20933ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20934ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20935
20936
20937archive_cmds_need_lc_F77=no
20938allow_undefined_flag_F77=
20939always_export_symbols_F77=no
20940archive_expsym_cmds_F77=
20941export_dynamic_flag_spec_F77=
20942hardcode_direct_F77=no
20943hardcode_libdir_flag_spec_F77=
20944hardcode_libdir_flag_spec_ld_F77=
20945hardcode_libdir_separator_F77=
20946hardcode_minus_L_F77=no
20947hardcode_automatic_F77=no
20948module_cmds_F77=
20949module_expsym_cmds_F77=
20950link_all_deplibs_F77=unknown
20951old_archive_cmds_F77=$old_archive_cmds
20952no_undefined_flag_F77=
20953whole_archive_flag_spec_F77=
20954enable_shared_with_static_runtimes_F77=no
20955
20956# Source file extension for f77 test sources.
20957ac_ext=f
20958
20959# Object file extension for compiled f77 test sources.
20960objext=o
20961objext_F77=$objext
20962
20963# Code to be used in simple compile tests
20964lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
20965
20966# Code to be used in simple link tests
20967lt_simple_link_test_code="      program t\n      end\n"
20968
20969# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20970
20971# If no C compiler was specified, use CC.
20972LTCC=${LTCC-"$CC"}
20973
20974# If no C compiler flags were specified, use CFLAGS.
20975LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20976
20977# Allow CC to be a program name with arguments.
20978compiler=$CC
20979
20980
20981# save warnings/boilerplate of simple test code
20982ac_outfile=conftest.$ac_objext
20983printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20984eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20985_lt_compiler_boilerplate=`cat conftest.err`
20986$rm conftest*
20987
20988ac_outfile=conftest.$ac_objext
20989printf "$lt_simple_link_test_code" >conftest.$ac_ext
20990eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20991_lt_linker_boilerplate=`cat conftest.err`
20992$rm conftest*
20993
20994
20995# Allow CC to be a program name with arguments.
20996lt_save_CC="$CC"
20997CC=${F77-"f77"}
20998compiler=$CC
20999compiler_F77=$CC
21000for cc_temp in $compiler""; do
21001  case $cc_temp in
21002    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21003    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21004    \-*) ;;
21005    *) break;;
21006  esac
21007done
21008cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21009
21010
21011{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21012echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21013{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21014echo "${ECHO_T}$can_build_shared" >&6; }
21015
21016{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21017echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21018test "$can_build_shared" = "no" && enable_shared=no
21019
21020# On AIX, shared libraries and static libraries use the same namespace, and
21021# are all built from PIC.
21022case $host_os in
21023aix3*)
21024  test "$enable_shared" = yes && enable_static=no
21025  if test -n "$RANLIB"; then
21026    archive_cmds="$archive_cmds~\$RANLIB \$lib"
21027    postinstall_cmds='$RANLIB $lib'
21028  fi
21029  ;;
21030aix4* | aix5*)
21031  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21032    test "$enable_shared" = yes && enable_static=no
21033  fi
21034  ;;
21035esac
21036{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21037echo "${ECHO_T}$enable_shared" >&6; }
21038
21039{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21040echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21041# Make sure either enable_shared or enable_static is yes.
21042test "$enable_shared" = yes || enable_static=yes
21043{ echo "$as_me:$LINENO: result: $enable_static" >&5
21044echo "${ECHO_T}$enable_static" >&6; }
21045
21046GCC_F77="$G77"
21047LD_F77="$LD"
21048
21049lt_prog_compiler_wl_F77=
21050lt_prog_compiler_pic_F77=
21051lt_prog_compiler_static_F77=
21052
21053{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21054echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21055
21056  if test "$GCC" = yes; then
21057    lt_prog_compiler_wl_F77='-Wl,'
21058    lt_prog_compiler_static_F77='-static'
21059
21060    case $host_os in
21061      aix*)
21062      # All AIX code is PIC.
21063      if test "$host_cpu" = ia64; then
21064	# AIX 5 now supports IA64 processor
21065	lt_prog_compiler_static_F77='-Bstatic'
21066      fi
21067      ;;
21068
21069    amigaos*)
21070      # FIXME: we need at least 68020 code to build shared libraries, but
21071      # adding the `-m68020' flag to GCC prevents building anything better,
21072      # like `-m68040'.
21073      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21074      ;;
21075
21076    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21077      # PIC is the default for these OSes.
21078      ;;
21079
21080    mingw* | pw32* | os2*)
21081      # This hack is so that the source file can tell whether it is being
21082      # built for inclusion in a dll (and should export symbols for example).
21083      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21084      ;;
21085
21086    darwin* | rhapsody*)
21087      # PIC is the default on this platform
21088      # Common symbols not allowed in MH_DYLIB files
21089      lt_prog_compiler_pic_F77='-fno-common'
21090      ;;
21091
21092    interix3*)
21093      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21094      # Instead, we relocate shared libraries at runtime.
21095      ;;
21096
21097    msdosdjgpp*)
21098      # Just because we use GCC doesn't mean we suddenly get shared libraries
21099      # on systems that don't support them.
21100      lt_prog_compiler_can_build_shared_F77=no
21101      enable_shared=no
21102      ;;
21103
21104    sysv4*MP*)
21105      if test -d /usr/nec; then
21106	lt_prog_compiler_pic_F77=-Kconform_pic
21107      fi
21108      ;;
21109
21110    hpux*)
21111      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21112      # not for PA HP-UX.
21113      case $host_cpu in
21114      hppa*64*|ia64*)
21115	# +Z the default
21116	;;
21117      *)
21118	lt_prog_compiler_pic_F77='-fPIC'
21119	;;
21120      esac
21121      ;;
21122
21123    *)
21124      lt_prog_compiler_pic_F77='-fPIC'
21125      ;;
21126    esac
21127  else
21128    # PORTME Check for flag to pass linker flags through the system compiler.
21129    case $host_os in
21130    aix*)
21131      lt_prog_compiler_wl_F77='-Wl,'
21132      if test "$host_cpu" = ia64; then
21133	# AIX 5 now supports IA64 processor
21134	lt_prog_compiler_static_F77='-Bstatic'
21135      else
21136	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21137      fi
21138      ;;
21139      darwin*)
21140        # PIC is the default on this platform
21141        # Common symbols not allowed in MH_DYLIB files
21142       case $cc_basename in
21143         xlc*)
21144         lt_prog_compiler_pic_F77='-qnocommon'
21145         lt_prog_compiler_wl_F77='-Wl,'
21146         ;;
21147       esac
21148       ;;
21149
21150    mingw* | pw32* | os2*)
21151      # This hack is so that the source file can tell whether it is being
21152      # built for inclusion in a dll (and should export symbols for example).
21153      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21154      ;;
21155
21156    hpux9* | hpux10* | hpux11*)
21157      lt_prog_compiler_wl_F77='-Wl,'
21158      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21159      # not for PA HP-UX.
21160      case $host_cpu in
21161      hppa*64*|ia64*)
21162	# +Z the default
21163	;;
21164      *)
21165	lt_prog_compiler_pic_F77='+Z'
21166	;;
21167      esac
21168      # Is there a better lt_prog_compiler_static that works with the bundled CC?
21169      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21170      ;;
21171
21172    irix5* | irix6* | nonstopux*)
21173      lt_prog_compiler_wl_F77='-Wl,'
21174      # PIC (with -KPIC) is the default.
21175      lt_prog_compiler_static_F77='-non_shared'
21176      ;;
21177
21178    newsos6)
21179      lt_prog_compiler_pic_F77='-KPIC'
21180      lt_prog_compiler_static_F77='-Bstatic'
21181      ;;
21182
21183    linux*)
21184      case $cc_basename in
21185      icc* | ecc*)
21186	lt_prog_compiler_wl_F77='-Wl,'
21187	lt_prog_compiler_pic_F77='-KPIC'
21188	lt_prog_compiler_static_F77='-static'
21189        ;;
21190      pgcc* | pgf77* | pgf90* | pgf95*)
21191        # Portland Group compilers (*not* the Pentium gcc compiler,
21192	# which looks to be a dead project)
21193	lt_prog_compiler_wl_F77='-Wl,'
21194	lt_prog_compiler_pic_F77='-fpic'
21195	lt_prog_compiler_static_F77='-Bstatic'
21196        ;;
21197      ccc*)
21198        lt_prog_compiler_wl_F77='-Wl,'
21199        # All Alpha code is PIC.
21200        lt_prog_compiler_static_F77='-non_shared'
21201        ;;
21202      esac
21203      ;;
21204
21205    osf3* | osf4* | osf5*)
21206      lt_prog_compiler_wl_F77='-Wl,'
21207      # All OSF/1 code is PIC.
21208      lt_prog_compiler_static_F77='-non_shared'
21209      ;;
21210
21211    solaris*)
21212      lt_prog_compiler_pic_F77='-KPIC'
21213      lt_prog_compiler_static_F77='-Bstatic'
21214      case $cc_basename in
21215      f77* | f90* | f95*)
21216	lt_prog_compiler_wl_F77='-Qoption ld ';;
21217      *)
21218	lt_prog_compiler_wl_F77='-Wl,';;
21219      esac
21220      ;;
21221
21222    sunos4*)
21223      lt_prog_compiler_wl_F77='-Qoption ld '
21224      lt_prog_compiler_pic_F77='-PIC'
21225      lt_prog_compiler_static_F77='-Bstatic'
21226      ;;
21227
21228    sysv4 | sysv4.2uw2* | sysv4.3*)
21229      lt_prog_compiler_wl_F77='-Wl,'
21230      lt_prog_compiler_pic_F77='-KPIC'
21231      lt_prog_compiler_static_F77='-Bstatic'
21232      ;;
21233
21234    sysv4*MP*)
21235      if test -d /usr/nec ;then
21236	lt_prog_compiler_pic_F77='-Kconform_pic'
21237	lt_prog_compiler_static_F77='-Bstatic'
21238      fi
21239      ;;
21240
21241    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21242      lt_prog_compiler_wl_F77='-Wl,'
21243      lt_prog_compiler_pic_F77='-KPIC'
21244      lt_prog_compiler_static_F77='-Bstatic'
21245      ;;
21246
21247    unicos*)
21248      lt_prog_compiler_wl_F77='-Wl,'
21249      lt_prog_compiler_can_build_shared_F77=no
21250      ;;
21251
21252    uts4*)
21253      lt_prog_compiler_pic_F77='-pic'
21254      lt_prog_compiler_static_F77='-Bstatic'
21255      ;;
21256
21257    *)
21258      lt_prog_compiler_can_build_shared_F77=no
21259      ;;
21260    esac
21261  fi
21262
21263{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21264echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21265
21266#
21267# Check to make sure the PIC flag actually works.
21268#
21269if test -n "$lt_prog_compiler_pic_F77"; then
21270
21271{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21272echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21273if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21274  echo $ECHO_N "(cached) $ECHO_C" >&6
21275else
21276  lt_prog_compiler_pic_works_F77=no
21277  ac_outfile=conftest.$ac_objext
21278   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21279   lt_compiler_flag="$lt_prog_compiler_pic_F77"
21280   # Insert the option either (1) after the last *FLAGS variable, or
21281   # (2) before a word containing "conftest.", or (3) at the end.
21282   # Note that $ac_compile itself does not contain backslashes and begins
21283   # with a dollar sign (not a hyphen), so the echo should work correctly.
21284   # The option is referenced via a variable to avoid confusing sed.
21285   lt_compile=`echo "$ac_compile" | $SED \
21286   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21287   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21288   -e 's:$: $lt_compiler_flag:'`
21289   (eval echo "\"\$as_me:21289: $lt_compile\"" >&5)
21290   (eval "$lt_compile" 2>conftest.err)
21291   ac_status=$?
21292   cat conftest.err >&5
21293   echo "$as_me:21293: \$? = $ac_status" >&5
21294   if (exit $ac_status) && test -s "$ac_outfile"; then
21295     # The compiler can only warn and ignore the option if not recognized
21296     # So say no if there are warnings other than the usual output.
21297     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21298     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21299     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21300       lt_prog_compiler_pic_works_F77=yes
21301     fi
21302   fi
21303   $rm conftest*
21304
21305fi
21306{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21307echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21308
21309if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21310    case $lt_prog_compiler_pic_F77 in
21311     "" | " "*) ;;
21312     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21313     esac
21314else
21315    lt_prog_compiler_pic_F77=
21316     lt_prog_compiler_can_build_shared_F77=no
21317fi
21318
21319fi
21320case $host_os in
21321  # For platforms which do not support PIC, -DPIC is meaningless:
21322  *djgpp*)
21323    lt_prog_compiler_pic_F77=
21324    ;;
21325  *)
21326    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21327    ;;
21328esac
21329
21330#
21331# Check to make sure the static flag actually works.
21332#
21333wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21334{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21335echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21336if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21337  echo $ECHO_N "(cached) $ECHO_C" >&6
21338else
21339  lt_prog_compiler_static_works_F77=no
21340   save_LDFLAGS="$LDFLAGS"
21341   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21342   printf "$lt_simple_link_test_code" > conftest.$ac_ext
21343   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21344     # The linker can only warn and ignore the option if not recognized
21345     # So say no if there are warnings
21346     if test -s conftest.err; then
21347       # Append any errors to the config.log.
21348       cat conftest.err 1>&5
21349       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21350       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21351       if diff conftest.exp conftest.er2 >/dev/null; then
21352         lt_prog_compiler_static_works_F77=yes
21353       fi
21354     else
21355       lt_prog_compiler_static_works_F77=yes
21356     fi
21357   fi
21358   $rm conftest*
21359   LDFLAGS="$save_LDFLAGS"
21360
21361fi
21362{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21363echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21364
21365if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21366    :
21367else
21368    lt_prog_compiler_static_F77=
21369fi
21370
21371
21372{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21373echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21374if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21375  echo $ECHO_N "(cached) $ECHO_C" >&6
21376else
21377  lt_cv_prog_compiler_c_o_F77=no
21378   $rm -r conftest 2>/dev/null
21379   mkdir conftest
21380   cd conftest
21381   mkdir out
21382   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21383
21384   lt_compiler_flag="-o out/conftest2.$ac_objext"
21385   # Insert the option either (1) after the last *FLAGS variable, or
21386   # (2) before a word containing "conftest.", or (3) at the end.
21387   # Note that $ac_compile itself does not contain backslashes and begins
21388   # with a dollar sign (not a hyphen), so the echo should work correctly.
21389   lt_compile=`echo "$ac_compile" | $SED \
21390   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21391   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21392   -e 's:$: $lt_compiler_flag:'`
21393   (eval echo "\"\$as_me:21393: $lt_compile\"" >&5)
21394   (eval "$lt_compile" 2>out/conftest.err)
21395   ac_status=$?
21396   cat out/conftest.err >&5
21397   echo "$as_me:21397: \$? = $ac_status" >&5
21398   if (exit $ac_status) && test -s out/conftest2.$ac_objext
21399   then
21400     # The compiler can only warn and ignore the option if not recognized
21401     # So say no if there are warnings
21402     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21403     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21404     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21405       lt_cv_prog_compiler_c_o_F77=yes
21406     fi
21407   fi
21408   chmod u+w . 2>&5
21409   $rm conftest*
21410   # SGI C++ compiler will create directory out/ii_files/ for
21411   # template instantiation
21412   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21413   $rm out/* && rmdir out
21414   cd ..
21415   rmdir conftest
21416   $rm conftest*
21417
21418fi
21419{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21420echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21421
21422
21423hard_links="nottested"
21424if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21425  # do not overwrite the value of need_locks provided by the user
21426  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21427echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21428  hard_links=yes
21429  $rm conftest*
21430  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21431  touch conftest.a
21432  ln conftest.a conftest.b 2>&5 || hard_links=no
21433  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21434  { echo "$as_me:$LINENO: result: $hard_links" >&5
21435echo "${ECHO_T}$hard_links" >&6; }
21436  if test "$hard_links" = no; then
21437    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21438echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21439    need_locks=warn
21440  fi
21441else
21442  need_locks=no
21443fi
21444
21445{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21446echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21447
21448  runpath_var=
21449  allow_undefined_flag_F77=
21450  enable_shared_with_static_runtimes_F77=no
21451  archive_cmds_F77=
21452  archive_expsym_cmds_F77=
21453  old_archive_From_new_cmds_F77=
21454  old_archive_from_expsyms_cmds_F77=
21455  export_dynamic_flag_spec_F77=
21456  whole_archive_flag_spec_F77=
21457  thread_safe_flag_spec_F77=
21458  hardcode_libdir_flag_spec_F77=
21459  hardcode_libdir_flag_spec_ld_F77=
21460  hardcode_libdir_separator_F77=
21461  hardcode_direct_F77=no
21462  hardcode_minus_L_F77=no
21463  hardcode_shlibpath_var_F77=unsupported
21464  link_all_deplibs_F77=unknown
21465  hardcode_automatic_F77=no
21466  module_cmds_F77=
21467  module_expsym_cmds_F77=
21468  always_export_symbols_F77=no
21469  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21470  # include_expsyms should be a list of space-separated symbols to be *always*
21471  # included in the symbol list
21472  include_expsyms_F77=
21473  # exclude_expsyms can be an extended regexp of symbols to exclude
21474  # it will be wrapped by ` (' and `)$', so one must not match beginning or
21475  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21476  # as well as any symbol that contains `d'.
21477  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21478  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21479  # platforms (ab)use it in PIC code, but their linkers get confused if
21480  # the symbol is explicitly referenced.  Since portable code cannot
21481  # rely on this symbol name, it's probably fine to never include it in
21482  # preloaded symbol tables.
21483  extract_expsyms_cmds=
21484  # Just being paranoid about ensuring that cc_basename is set.
21485  for cc_temp in $compiler""; do
21486  case $cc_temp in
21487    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21488    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21489    \-*) ;;
21490    *) break;;
21491  esac
21492done
21493cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21494
21495  case $host_os in
21496  cygwin* | mingw* | pw32*)
21497    # FIXME: the MSVC++ port hasn't been tested in a loooong time
21498    # When not using gcc, we currently assume that we are using
21499    # Microsoft Visual C++.
21500    if test "$GCC" != yes; then
21501      with_gnu_ld=no
21502    fi
21503    ;;
21504  interix*)
21505    # we just hope/assume this is gcc and not c89 (= MSVC++)
21506    with_gnu_ld=yes
21507    ;;
21508  openbsd*)
21509    with_gnu_ld=no
21510    ;;
21511  esac
21512
21513  ld_shlibs_F77=yes
21514  if test "$with_gnu_ld" = yes; then
21515    # If archive_cmds runs LD, not CC, wlarc should be empty
21516    wlarc='${wl}'
21517
21518    # Set some defaults for GNU ld with shared library support. These
21519    # are reset later if shared libraries are not supported. Putting them
21520    # here allows them to be overridden if necessary.
21521    runpath_var=LD_RUN_PATH
21522    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21523    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21524    # ancient GNU ld didn't support --whole-archive et. al.
21525    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21526	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21527      else
21528  	whole_archive_flag_spec_F77=
21529    fi
21530    supports_anon_versioning=no
21531    case `$LD -v 2>/dev/null` in
21532      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21533      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21534      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21535      *\ 2.11.*) ;; # other 2.11 versions
21536      *) supports_anon_versioning=yes ;;
21537    esac
21538
21539    # See if GNU ld supports shared libraries.
21540    case $host_os in
21541    aix3* | aix4* | aix5*)
21542      # On AIX/PPC, the GNU linker is very broken
21543      if test "$host_cpu" != ia64; then
21544	ld_shlibs_F77=no
21545	cat <<EOF 1>&2
21546
21547*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21548*** to be unable to reliably create shared libraries on AIX.
21549*** Therefore, libtool is disabling shared libraries support.  If you
21550*** really care for shared libraries, you may want to modify your PATH
21551*** so that a non-GNU linker is found, and then restart.
21552
21553EOF
21554      fi
21555      ;;
21556
21557    amigaos*)
21558      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)'
21559      hardcode_libdir_flag_spec_F77='-L$libdir'
21560      hardcode_minus_L_F77=yes
21561
21562      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21563      # that the semantics of dynamic libraries on AmigaOS, at least up
21564      # to version 4, is to share data among multiple programs linked
21565      # with the same dynamic library.  Since this doesn't match the
21566      # behavior of shared libraries on other platforms, we can't use
21567      # them.
21568      ld_shlibs_F77=no
21569      ;;
21570
21571    beos*)
21572      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21573	allow_undefined_flag_F77=unsupported
21574	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21575	# support --undefined.  This deserves some investigation.  FIXME
21576	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21577      else
21578	ld_shlibs_F77=no
21579      fi
21580      ;;
21581
21582    cygwin* | mingw* | pw32*)
21583      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21584      # as there is no search path for DLLs.
21585      hardcode_libdir_flag_spec_F77='-L$libdir'
21586      allow_undefined_flag_F77=unsupported
21587      always_export_symbols_F77=no
21588      enable_shared_with_static_runtimes_F77=yes
21589      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21590
21591      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21592        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21593	# If the export-symbols file already is a .def file (1st line
21594	# is EXPORTS), use it as is; otherwise, prepend...
21595	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21596	  cp $export_symbols $output_objdir/$soname.def;
21597	else
21598	  echo EXPORTS > $output_objdir/$soname.def;
21599	  cat $export_symbols >> $output_objdir/$soname.def;
21600	fi~
21601	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21602      else
21603	ld_shlibs_F77=no
21604      fi
21605      ;;
21606
21607    interix3*)
21608      hardcode_direct_F77=no
21609      hardcode_shlibpath_var_F77=no
21610      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21611      export_dynamic_flag_spec_F77='${wl}-E'
21612      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21613      # Instead, shared libraries are loaded at an image base (0x10000000 by
21614      # default) and relocated if they conflict, which is a slow very memory
21615      # consuming and fragmenting process.  To avoid this, we pick a random,
21616      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21617      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21618      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'
21619      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'
21620      ;;
21621
21622    linux*)
21623      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21624	tmp_addflag=
21625	case $cc_basename,$host_cpu in
21626	pgcc*)				# Portland Group C compiler
21627	  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'
21628	  tmp_addflag=' $pic_flag'
21629	  ;;
21630	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
21631	  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'
21632	  tmp_addflag=' $pic_flag -Mnomain' ;;
21633	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
21634	  tmp_addflag=' -i_dynamic' ;;
21635	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
21636	  tmp_addflag=' -i_dynamic -nofor_main' ;;
21637	ifc* | ifort*)			# Intel Fortran compiler
21638	  tmp_addflag=' -nofor_main' ;;
21639	esac
21640	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21641
21642	if test $supports_anon_versioning = yes; then
21643	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21644  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21645  $echo "local: *; };" >> $output_objdir/$libname.ver~
21646	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21647	fi
21648      else
21649	ld_shlibs_F77=no
21650      fi
21651      ;;
21652
21653    netbsd*)
21654      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21655	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21656	wlarc=
21657      else
21658	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21659	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21660      fi
21661      ;;
21662
21663    solaris*)
21664      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21665	ld_shlibs_F77=no
21666	cat <<EOF 1>&2
21667
21668*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21669*** create shared libraries on Solaris systems.  Therefore, libtool
21670*** is disabling shared libraries support.  We urge you to upgrade GNU
21671*** binutils to release 2.9.1 or newer.  Another option is to modify
21672*** your PATH or compiler configuration so that the native linker is
21673*** used, and then restart.
21674
21675EOF
21676      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21677	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21678	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21679      else
21680	ld_shlibs_F77=no
21681      fi
21682      ;;
21683
21684    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21685      case `$LD -v 2>&1` in
21686        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21687	ld_shlibs_F77=no
21688	cat <<_LT_EOF 1>&2
21689
21690*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21691*** reliably create shared libraries on SCO systems.  Therefore, libtool
21692*** is disabling shared libraries support.  We urge you to upgrade GNU
21693*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21694*** your PATH or compiler configuration so that the native linker is
21695*** used, and then restart.
21696
21697_LT_EOF
21698	;;
21699	*)
21700	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21701	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21702	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21703	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21704	  else
21705	    ld_shlibs_F77=no
21706	  fi
21707	;;
21708      esac
21709      ;;
21710
21711    sunos4*)
21712      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21713      wlarc=
21714      hardcode_direct_F77=yes
21715      hardcode_shlibpath_var_F77=no
21716      ;;
21717
21718    *)
21719      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21720	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21721	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21722      else
21723	ld_shlibs_F77=no
21724      fi
21725      ;;
21726    esac
21727
21728    if test "$ld_shlibs_F77" = no; then
21729      runpath_var=
21730      hardcode_libdir_flag_spec_F77=
21731      export_dynamic_flag_spec_F77=
21732      whole_archive_flag_spec_F77=
21733    fi
21734  else
21735    # PORTME fill in a description of your system's linker (not GNU ld)
21736    case $host_os in
21737    aix3*)
21738      allow_undefined_flag_F77=unsupported
21739      always_export_symbols_F77=yes
21740      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'
21741      # Note: this linker hardcodes the directories in LIBPATH if there
21742      # are no directories specified by -L.
21743      hardcode_minus_L_F77=yes
21744      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21745	# Neither direct hardcoding nor static linking is supported with a
21746	# broken collect2.
21747	hardcode_direct_F77=unsupported
21748      fi
21749      ;;
21750
21751    aix4* | aix5*)
21752      if test "$host_cpu" = ia64; then
21753	# On IA64, the linker does run time linking by default, so we don't
21754	# have to do anything special.
21755	aix_use_runtimelinking=no
21756	exp_sym_flag='-Bexport'
21757	no_entry_flag=""
21758      else
21759	# If we're using GNU nm, then we don't want the "-C" option.
21760	# -C means demangle to AIX nm, but means don't demangle with GNU nm
21761	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21762	  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'
21763	else
21764	  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'
21765	fi
21766	aix_use_runtimelinking=no
21767
21768	# Test if we are trying to use run time linking or normal
21769	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
21770	# need to do runtime linking.
21771	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21772	  for ld_flag in $LDFLAGS; do
21773  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21774  	    aix_use_runtimelinking=yes
21775  	    break
21776  	  fi
21777	  done
21778	  ;;
21779	esac
21780
21781	exp_sym_flag='-bexport'
21782	no_entry_flag='-bnoentry'
21783      fi
21784
21785      # When large executables or shared objects are built, AIX ld can
21786      # have problems creating the table of contents.  If linking a library
21787      # or program results in "error TOC overflow" add -mminimal-toc to
21788      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21789      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21790
21791      archive_cmds_F77=''
21792      hardcode_direct_F77=yes
21793      hardcode_libdir_separator_F77=':'
21794      link_all_deplibs_F77=yes
21795
21796      if test "$GCC" = yes; then
21797	case $host_os in aix4.[012]|aix4.[012].*)
21798	# We only want to do this on AIX 4.2 and lower, the check
21799	# below for broken collect2 doesn't work under 4.3+
21800	  collect2name=`${CC} -print-prog-name=collect2`
21801	  if test -f "$collect2name" && \
21802  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
21803	  then
21804  	  # We have reworked collect2
21805  	  hardcode_direct_F77=yes
21806	  else
21807  	  # We have old collect2
21808  	  hardcode_direct_F77=unsupported
21809  	  # It fails to find uninstalled libraries when the uninstalled
21810  	  # path is not listed in the libpath.  Setting hardcode_minus_L
21811  	  # to unsupported forces relinking
21812  	  hardcode_minus_L_F77=yes
21813  	  hardcode_libdir_flag_spec_F77='-L$libdir'
21814  	  hardcode_libdir_separator_F77=
21815	  fi
21816	  ;;
21817	esac
21818	shared_flag='-shared'
21819	if test "$aix_use_runtimelinking" = yes; then
21820	  shared_flag="$shared_flag "'${wl}-G'
21821	fi
21822      else
21823	# not using gcc
21824	if test "$host_cpu" = ia64; then
21825  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21826  	# chokes on -Wl,-G. The following line is correct:
21827	  shared_flag='-G'
21828	else
21829	  if test "$aix_use_runtimelinking" = yes; then
21830	    shared_flag='${wl}-G'
21831	  else
21832	    shared_flag='${wl}-bM:SRE'
21833	  fi
21834	fi
21835      fi
21836
21837      # It seems that -bexpall does not export symbols beginning with
21838      # underscore (_), so it is better to generate a list of symbols to export.
21839      always_export_symbols_F77=yes
21840      if test "$aix_use_runtimelinking" = yes; then
21841	# Warning - without using the other runtime loading flags (-brtl),
21842	# -berok will link without error, but may produce a broken library.
21843	allow_undefined_flag_F77='-berok'
21844       # Determine the default libpath from the value encoded in an empty executable.
21845       cat >conftest.$ac_ext <<_ACEOF
21846      program main
21847
21848      end
21849_ACEOF
21850rm -f conftest.$ac_objext conftest$ac_exeext
21851if { (ac_try="$ac_link"
21852case "(($ac_try" in
21853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21854  *) ac_try_echo=$ac_try;;
21855esac
21856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21857  (eval "$ac_link") 2>conftest.er1
21858  ac_status=$?
21859  grep -v '^ *+' conftest.er1 >conftest.err
21860  rm -f conftest.er1
21861  cat conftest.err >&5
21862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21863  (exit $ac_status); } &&
21864	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21865  { (case "(($ac_try" in
21866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21867  *) ac_try_echo=$ac_try;;
21868esac
21869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21870  (eval "$ac_try") 2>&5
21871  ac_status=$?
21872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21873  (exit $ac_status); }; } &&
21874	 { ac_try='test -s conftest$ac_exeext'
21875  { (case "(($ac_try" in
21876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21877  *) ac_try_echo=$ac_try;;
21878esac
21879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21880  (eval "$ac_try") 2>&5
21881  ac_status=$?
21882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883  (exit $ac_status); }; }; then
21884
21885aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21886}'`
21887# Check for a 64-bit object if we didn't find anything.
21888if 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; }
21889}'`; fi
21890else
21891  echo "$as_me: failed program was:" >&5
21892sed 's/^/| /' conftest.$ac_ext >&5
21893
21894
21895fi
21896
21897rm -f core conftest.err conftest.$ac_objext \
21898      conftest$ac_exeext conftest.$ac_ext
21899if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21900
21901       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21902	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"
21903       else
21904	if test "$host_cpu" = ia64; then
21905	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21906	  allow_undefined_flag_F77="-z nodefs"
21907	  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"
21908	else
21909	 # Determine the default libpath from the value encoded in an empty executable.
21910	 cat >conftest.$ac_ext <<_ACEOF
21911      program main
21912
21913      end
21914_ACEOF
21915rm -f conftest.$ac_objext conftest$ac_exeext
21916if { (ac_try="$ac_link"
21917case "(($ac_try" in
21918  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21919  *) ac_try_echo=$ac_try;;
21920esac
21921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21922  (eval "$ac_link") 2>conftest.er1
21923  ac_status=$?
21924  grep -v '^ *+' conftest.er1 >conftest.err
21925  rm -f conftest.er1
21926  cat conftest.err >&5
21927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928  (exit $ac_status); } &&
21929	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21930  { (case "(($ac_try" in
21931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21932  *) ac_try_echo=$ac_try;;
21933esac
21934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21935  (eval "$ac_try") 2>&5
21936  ac_status=$?
21937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938  (exit $ac_status); }; } &&
21939	 { ac_try='test -s conftest$ac_exeext'
21940  { (case "(($ac_try" in
21941  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21942  *) ac_try_echo=$ac_try;;
21943esac
21944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21945  (eval "$ac_try") 2>&5
21946  ac_status=$?
21947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948  (exit $ac_status); }; }; then
21949
21950aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21951}'`
21952# Check for a 64-bit object if we didn't find anything.
21953if 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; }
21954}'`; fi
21955else
21956  echo "$as_me: failed program was:" >&5
21957sed 's/^/| /' conftest.$ac_ext >&5
21958
21959
21960fi
21961
21962rm -f core conftest.err conftest.$ac_objext \
21963      conftest$ac_exeext conftest.$ac_ext
21964if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21965
21966	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21967	  # Warning - without using the other run time loading flags,
21968	  # -berok will link without error, but may produce a broken library.
21969	  no_undefined_flag_F77=' ${wl}-bernotok'
21970	  allow_undefined_flag_F77=' ${wl}-berok'
21971	  # Exported symbols can be pulled into shared objects from archives
21972	  whole_archive_flag_spec_F77='$convenience'
21973	  archive_cmds_need_lc_F77=yes
21974	  # This is similar to how AIX traditionally builds its shared libraries.
21975	  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'
21976	fi
21977      fi
21978      ;;
21979
21980    amigaos*)
21981      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)'
21982      hardcode_libdir_flag_spec_F77='-L$libdir'
21983      hardcode_minus_L_F77=yes
21984      # see comment about different semantics on the GNU ld section
21985      ld_shlibs_F77=no
21986      ;;
21987
21988    bsdi[45]*)
21989      export_dynamic_flag_spec_F77=-rdynamic
21990      ;;
21991
21992    cygwin* | mingw* | pw32*)
21993      # When not using gcc, we currently assume that we are using
21994      # Microsoft Visual C++.
21995      # hardcode_libdir_flag_spec is actually meaningless, as there is
21996      # no search path for DLLs.
21997      hardcode_libdir_flag_spec_F77=' '
21998      allow_undefined_flag_F77=unsupported
21999      # Tell ltmain to make .lib files, not .a files.
22000      libext=lib
22001      # Tell ltmain to make .dll files, not .so files.
22002      shrext_cmds=".dll"
22003      # FIXME: Setting linknames here is a bad hack.
22004      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22005      # The linker will automatically build a .lib file if we build a DLL.
22006      old_archive_From_new_cmds_F77='true'
22007      # FIXME: Should let the user specify the lib program.
22008      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22009      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22010      enable_shared_with_static_runtimes_F77=yes
22011      ;;
22012
22013    darwin* | rhapsody*)
22014      case $host_os in
22015        rhapsody* | darwin1.[012])
22016         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22017         ;;
22018       *) # Darwin 1.3 on
22019         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22020           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22021         else
22022           case ${MACOSX_DEPLOYMENT_TARGET} in
22023             10.[012])
22024               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22025               ;;
22026             10.*)
22027               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22028               ;;
22029           esac
22030         fi
22031         ;;
22032      esac
22033      archive_cmds_need_lc_F77=no
22034      hardcode_direct_F77=no
22035      hardcode_automatic_F77=yes
22036      hardcode_shlibpath_var_F77=unsupported
22037      whole_archive_flag_spec_F77=''
22038      link_all_deplibs_F77=yes
22039    if test "$GCC" = yes ; then
22040    	output_verbose_link_cmd='echo'
22041        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22042      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22043      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22044      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}'
22045      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}'
22046    else
22047      case $cc_basename in
22048        xlc*)
22049         output_verbose_link_cmd='echo'
22050         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22051         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22052          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22053         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}'
22054          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}'
22055          ;;
22056       *)
22057         ld_shlibs_F77=no
22058          ;;
22059      esac
22060    fi
22061      ;;
22062
22063    dgux*)
22064      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22065      hardcode_libdir_flag_spec_F77='-L$libdir'
22066      hardcode_shlibpath_var_F77=no
22067      ;;
22068
22069    freebsd1*)
22070      ld_shlibs_F77=no
22071      ;;
22072
22073    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22074    # support.  Future versions do this automatically, but an explicit c++rt0.o
22075    # does not break anything, and helps significantly (at the cost of a little
22076    # extra space).
22077    freebsd2.2*)
22078      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22079      hardcode_libdir_flag_spec_F77='-R$libdir'
22080      hardcode_direct_F77=yes
22081      hardcode_shlibpath_var_F77=no
22082      ;;
22083
22084    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22085    freebsd2*)
22086      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22087      hardcode_direct_F77=yes
22088      hardcode_minus_L_F77=yes
22089      hardcode_shlibpath_var_F77=no
22090      ;;
22091
22092    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22093    freebsd* | kfreebsd*-gnu | dragonfly*)
22094      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22095      hardcode_libdir_flag_spec_F77='-R$libdir'
22096      hardcode_direct_F77=yes
22097      hardcode_shlibpath_var_F77=no
22098      ;;
22099
22100    hpux9*)
22101      if test "$GCC" = yes; then
22102	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'
22103      else
22104	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'
22105      fi
22106      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22107      hardcode_libdir_separator_F77=:
22108      hardcode_direct_F77=yes
22109
22110      # hardcode_minus_L: Not really in the search PATH,
22111      # but as the default location of the library.
22112      hardcode_minus_L_F77=yes
22113      export_dynamic_flag_spec_F77='${wl}-E'
22114      ;;
22115
22116    hpux10*)
22117      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22118	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22119      else
22120	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22121      fi
22122      if test "$with_gnu_ld" = no; then
22123	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22124	hardcode_libdir_separator_F77=:
22125
22126	hardcode_direct_F77=yes
22127	export_dynamic_flag_spec_F77='${wl}-E'
22128
22129	# hardcode_minus_L: Not really in the search PATH,
22130	# but as the default location of the library.
22131	hardcode_minus_L_F77=yes
22132      fi
22133      ;;
22134
22135    hpux11*)
22136      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22137	case $host_cpu in
22138	hppa*64*)
22139	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22140	  ;;
22141	ia64*)
22142	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22143	  ;;
22144	*)
22145	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22146	  ;;
22147	esac
22148      else
22149	case $host_cpu in
22150	hppa*64*)
22151	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22152	  ;;
22153	ia64*)
22154	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22155	  ;;
22156	*)
22157	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22158	  ;;
22159	esac
22160      fi
22161      if test "$with_gnu_ld" = no; then
22162	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22163	hardcode_libdir_separator_F77=:
22164
22165	case $host_cpu in
22166	hppa*64*|ia64*)
22167	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22168	  hardcode_direct_F77=no
22169	  hardcode_shlibpath_var_F77=no
22170	  ;;
22171	*)
22172	  hardcode_direct_F77=yes
22173	  export_dynamic_flag_spec_F77='${wl}-E'
22174
22175	  # hardcode_minus_L: Not really in the search PATH,
22176	  # but as the default location of the library.
22177	  hardcode_minus_L_F77=yes
22178	  ;;
22179	esac
22180      fi
22181      ;;
22182
22183    irix5* | irix6* | nonstopux*)
22184      if test "$GCC" = yes; then
22185	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'
22186      else
22187	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'
22188	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22189      fi
22190      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22191      hardcode_libdir_separator_F77=:
22192      link_all_deplibs_F77=yes
22193      ;;
22194
22195    netbsd*)
22196      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22197	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22198      else
22199	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22200      fi
22201      hardcode_libdir_flag_spec_F77='-R$libdir'
22202      hardcode_direct_F77=yes
22203      hardcode_shlibpath_var_F77=no
22204      ;;
22205
22206    newsos6)
22207      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22208      hardcode_direct_F77=yes
22209      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22210      hardcode_libdir_separator_F77=:
22211      hardcode_shlibpath_var_F77=no
22212      ;;
22213
22214    openbsd*)
22215      hardcode_direct_F77=yes
22216      hardcode_shlibpath_var_F77=no
22217      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22218	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22219	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22220	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22221	export_dynamic_flag_spec_F77='${wl}-E'
22222      else
22223       case $host_os in
22224	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22225	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22226	   hardcode_libdir_flag_spec_F77='-R$libdir'
22227	   ;;
22228	 *)
22229	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22230	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22231	   ;;
22232       esac
22233      fi
22234      ;;
22235
22236    os2*)
22237      hardcode_libdir_flag_spec_F77='-L$libdir'
22238      hardcode_minus_L_F77=yes
22239      allow_undefined_flag_F77=unsupported
22240      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'
22241      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22242      ;;
22243
22244    osf3*)
22245      if test "$GCC" = yes; then
22246	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22247	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'
22248      else
22249	allow_undefined_flag_F77=' -expect_unresolved \*'
22250	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'
22251      fi
22252      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22253      hardcode_libdir_separator_F77=:
22254      ;;
22255
22256    osf4* | osf5*)	# as osf3* with the addition of -msym flag
22257      if test "$GCC" = yes; then
22258	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22259	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'
22260	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22261      else
22262	allow_undefined_flag_F77=' -expect_unresolved \*'
22263	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'
22264	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~
22265	$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'
22266
22267	# Both c and cxx compiler support -rpath directly
22268	hardcode_libdir_flag_spec_F77='-rpath $libdir'
22269      fi
22270      hardcode_libdir_separator_F77=:
22271      ;;
22272
22273    solaris*)
22274      no_undefined_flag_F77=' -z text'
22275      if test "$GCC" = yes; then
22276	wlarc='${wl}'
22277	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22278	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22279	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22280      else
22281	wlarc=''
22282	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22283	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22284  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22285      fi
22286      hardcode_libdir_flag_spec_F77='-R$libdir'
22287      hardcode_shlibpath_var_F77=no
22288      case $host_os in
22289      solaris2.[0-5] | solaris2.[0-5].*) ;;
22290      *)
22291 	# The compiler driver will combine linker options so we
22292 	# cannot just pass the convience library names through
22293 	# without $wl, iff we do not link with $LD.
22294 	# Luckily, gcc supports the same syntax we need for Sun Studio.
22295 	# Supported since Solaris 2.6 (maybe 2.5.1?)
22296 	case $wlarc in
22297 	'')
22298 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22299 	*)
22300 	  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' ;;
22301 	esac ;;
22302      esac
22303      link_all_deplibs_F77=yes
22304      ;;
22305
22306    sunos4*)
22307      if test "x$host_vendor" = xsequent; then
22308	# Use $CC to link under sequent, because it throws in some extra .o
22309	# files that make .init and .fini sections work.
22310	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22311      else
22312	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22313      fi
22314      hardcode_libdir_flag_spec_F77='-L$libdir'
22315      hardcode_direct_F77=yes
22316      hardcode_minus_L_F77=yes
22317      hardcode_shlibpath_var_F77=no
22318      ;;
22319
22320    sysv4)
22321      case $host_vendor in
22322	sni)
22323	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22324	  hardcode_direct_F77=yes # is this really true???
22325	;;
22326	siemens)
22327	  ## LD is ld it makes a PLAMLIB
22328	  ## CC just makes a GrossModule.
22329	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22330	  reload_cmds_F77='$CC -r -o $output$reload_objs'
22331	  hardcode_direct_F77=no
22332        ;;
22333	motorola)
22334	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22335	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22336	;;
22337      esac
22338      runpath_var='LD_RUN_PATH'
22339      hardcode_shlibpath_var_F77=no
22340      ;;
22341
22342    sysv4.3*)
22343      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22344      hardcode_shlibpath_var_F77=no
22345      export_dynamic_flag_spec_F77='-Bexport'
22346      ;;
22347
22348    sysv4*MP*)
22349      if test -d /usr/nec; then
22350	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22351	hardcode_shlibpath_var_F77=no
22352	runpath_var=LD_RUN_PATH
22353	hardcode_runpath_var=yes
22354	ld_shlibs_F77=yes
22355      fi
22356      ;;
22357
22358    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22359      no_undefined_flag_F77='${wl}-z,text'
22360      archive_cmds_need_lc_F77=no
22361      hardcode_shlibpath_var_F77=no
22362      runpath_var='LD_RUN_PATH'
22363
22364      if test "$GCC" = yes; then
22365	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22366	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22367      else
22368	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22369	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22370      fi
22371      ;;
22372
22373    sysv5* | sco3.2v5* | sco5v6*)
22374      # Note: We can NOT use -z defs as we might desire, because we do not
22375      # link with -lc, and that would cause any symbols used from libc to
22376      # always be unresolved, which means just about no library would
22377      # ever link correctly.  If we're not using GNU ld we use -z text
22378      # though, which does catch some bad symbols but isn't as heavy-handed
22379      # as -z defs.
22380      no_undefined_flag_F77='${wl}-z,text'
22381      allow_undefined_flag_F77='${wl}-z,nodefs'
22382      archive_cmds_need_lc_F77=no
22383      hardcode_shlibpath_var_F77=no
22384      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22385      hardcode_libdir_separator_F77=':'
22386      link_all_deplibs_F77=yes
22387      export_dynamic_flag_spec_F77='${wl}-Bexport'
22388      runpath_var='LD_RUN_PATH'
22389
22390      if test "$GCC" = yes; then
22391	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22392	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22393      else
22394	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22395	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22396      fi
22397      ;;
22398
22399    uts4*)
22400      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22401      hardcode_libdir_flag_spec_F77='-L$libdir'
22402      hardcode_shlibpath_var_F77=no
22403      ;;
22404
22405    *)
22406      ld_shlibs_F77=no
22407      ;;
22408    esac
22409  fi
22410
22411{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22412echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22413test "$ld_shlibs_F77" = no && can_build_shared=no
22414
22415#
22416# Do we need to explicitly link libc?
22417#
22418case "x$archive_cmds_need_lc_F77" in
22419x|xyes)
22420  # Assume -lc should be added
22421  archive_cmds_need_lc_F77=yes
22422
22423  if test "$enable_shared" = yes && test "$GCC" = yes; then
22424    case $archive_cmds_F77 in
22425    *'~'*)
22426      # FIXME: we may have to deal with multi-command sequences.
22427      ;;
22428    '$CC '*)
22429      # Test whether the compiler implicitly links with -lc since on some
22430      # systems, -lgcc has to come before -lc. If gcc already passes -lc
22431      # to ld, don't add -lc before -lgcc.
22432      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22433echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22434      $rm conftest*
22435      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22436
22437      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22438  (eval $ac_compile) 2>&5
22439  ac_status=$?
22440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441  (exit $ac_status); } 2>conftest.err; then
22442        soname=conftest
22443        lib=conftest
22444        libobjs=conftest.$ac_objext
22445        deplibs=
22446        wl=$lt_prog_compiler_wl_F77
22447	pic_flag=$lt_prog_compiler_pic_F77
22448        compiler_flags=-v
22449        linker_flags=-v
22450        verstring=
22451        output_objdir=.
22452        libname=conftest
22453        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22454        allow_undefined_flag_F77=
22455        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22456  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22457  ac_status=$?
22458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459  (exit $ac_status); }
22460        then
22461	  archive_cmds_need_lc_F77=no
22462        else
22463	  archive_cmds_need_lc_F77=yes
22464        fi
22465        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22466      else
22467        cat conftest.err 1>&5
22468      fi
22469      $rm conftest*
22470      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22471echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22472      ;;
22473    esac
22474  fi
22475  ;;
22476esac
22477
22478{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22479echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22480library_names_spec=
22481libname_spec='lib$name'
22482soname_spec=
22483shrext_cmds=".so"
22484postinstall_cmds=
22485postuninstall_cmds=
22486finish_cmds=
22487finish_eval=
22488shlibpath_var=
22489shlibpath_overrides_runpath=unknown
22490version_type=none
22491dynamic_linker="$host_os ld.so"
22492sys_lib_dlsearch_path_spec="/lib /usr/lib"
22493if test "$GCC" = yes; then
22494  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22495  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22496    # if the path contains ";" then we assume it to be the separator
22497    # otherwise default to the standard path separator (i.e. ":") - it is
22498    # assumed that no part of a normal pathname contains ";" but that should
22499    # okay in the real world where ";" in dirpaths is itself problematic.
22500    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22501  else
22502    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22503  fi
22504else
22505  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22506fi
22507need_lib_prefix=unknown
22508hardcode_into_libs=no
22509
22510# when you set need_version to no, make sure it does not cause -set_version
22511# flags to be left without arguments
22512need_version=unknown
22513
22514case $host_os in
22515aix3*)
22516  version_type=linux
22517  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22518  shlibpath_var=LIBPATH
22519
22520  # AIX 3 has no versioning support, so we append a major version to the name.
22521  soname_spec='${libname}${release}${shared_ext}$major'
22522  ;;
22523
22524aix4* | aix5*)
22525  version_type=linux
22526  need_lib_prefix=no
22527  need_version=no
22528  hardcode_into_libs=yes
22529  if test "$host_cpu" = ia64; then
22530    # AIX 5 supports IA64
22531    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22532    shlibpath_var=LD_LIBRARY_PATH
22533  else
22534    # With GCC up to 2.95.x, collect2 would create an import file
22535    # for dependence libraries.  The import file would start with
22536    # the line `#! .'.  This would cause the generated library to
22537    # depend on `.', always an invalid library.  This was fixed in
22538    # development snapshots of GCC prior to 3.0.
22539    case $host_os in
22540      aix4 | aix4.[01] | aix4.[01].*)
22541      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22542	   echo ' yes '
22543	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22544	:
22545      else
22546	can_build_shared=no
22547      fi
22548      ;;
22549    esac
22550    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22551    # soname into executable. Probably we can add versioning support to
22552    # collect2, so additional links can be useful in future.
22553    if test "$aix_use_runtimelinking" = yes; then
22554      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22555      # instead of lib<name>.a to let people know that these are not
22556      # typical AIX shared libraries.
22557      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22558    else
22559      # We preserve .a as extension for shared libraries through AIX4.2
22560      # and later when we are not doing run time linking.
22561      library_names_spec='${libname}${release}.a $libname.a'
22562      soname_spec='${libname}${release}${shared_ext}$major'
22563    fi
22564    shlibpath_var=LIBPATH
22565  fi
22566  ;;
22567
22568amigaos*)
22569  library_names_spec='$libname.ixlibrary $libname.a'
22570  # Create ${libname}_ixlibrary.a entries in /sys/libs.
22571  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'
22572  ;;
22573
22574beos*)
22575  library_names_spec='${libname}${shared_ext}'
22576  dynamic_linker="$host_os ld.so"
22577  shlibpath_var=LIBRARY_PATH
22578  ;;
22579
22580bsdi[45]*)
22581  version_type=linux
22582  need_version=no
22583  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22584  soname_spec='${libname}${release}${shared_ext}$major'
22585  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22586  shlibpath_var=LD_LIBRARY_PATH
22587  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22588  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22589  # the default ld.so.conf also contains /usr/contrib/lib and
22590  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22591  # libtool to hard-code these into programs
22592  ;;
22593
22594cygwin* | mingw* | pw32*)
22595  version_type=windows
22596  shrext_cmds=".dll"
22597  need_version=no
22598  need_lib_prefix=no
22599
22600  case $GCC,$host_os in
22601  yes,cygwin* | yes,mingw* | yes,pw32*)
22602    library_names_spec='$libname.dll.a'
22603    # DLL is installed to $(libdir)/../bin by postinstall_cmds
22604    postinstall_cmds='base_file=`basename \${file}`~
22605      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22606      dldir=$destdir/`dirname \$dlpath`~
22607      test -d \$dldir || mkdir -p \$dldir~
22608      $install_prog $dir/$dlname \$dldir/$dlname~
22609      chmod a+x \$dldir/$dlname'
22610    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22611      dlpath=$dir/\$dldll~
22612       $rm \$dlpath'
22613    shlibpath_overrides_runpath=yes
22614
22615    case $host_os in
22616    cygwin*)
22617      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22618      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22619      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22620      ;;
22621    mingw*)
22622      # MinGW DLLs use traditional 'lib' prefix
22623      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22624      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22625      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22626        # It is most probably a Windows format PATH printed by
22627        # mingw gcc, but we are running on Cygwin. Gcc prints its search
22628        # path with ; separators, and with drive letters. We can handle the
22629        # drive letters (cygwin fileutils understands them), so leave them,
22630        # especially as we might pass files found there to a mingw objdump,
22631        # which wouldn't understand a cygwinified path. Ahh.
22632        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22633      else
22634        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22635      fi
22636      ;;
22637    pw32*)
22638      # pw32 DLLs use 'pw' prefix rather than 'lib'
22639      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22640      ;;
22641    esac
22642    ;;
22643
22644  *)
22645    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22646    ;;
22647  esac
22648  dynamic_linker='Win32 ld.exe'
22649  # FIXME: first we should search . and the directory the executable is in
22650  shlibpath_var=PATH
22651  ;;
22652
22653darwin* | rhapsody*)
22654  dynamic_linker="$host_os dyld"
22655  version_type=darwin
22656  need_lib_prefix=no
22657  need_version=no
22658  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22659  soname_spec='${libname}${release}${major}$shared_ext'
22660  shlibpath_overrides_runpath=yes
22661  shlibpath_var=DYLD_LIBRARY_PATH
22662  shrext_cmds='.dylib'
22663  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22664  if test "$GCC" = yes; then
22665    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"`
22666  else
22667    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22668  fi
22669  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22670  ;;
22671
22672dgux*)
22673  version_type=linux
22674  need_lib_prefix=no
22675  need_version=no
22676  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22677  soname_spec='${libname}${release}${shared_ext}$major'
22678  shlibpath_var=LD_LIBRARY_PATH
22679  ;;
22680
22681freebsd1*)
22682  dynamic_linker=no
22683  ;;
22684
22685kfreebsd*-gnu)
22686  version_type=linux
22687  need_lib_prefix=no
22688  need_version=no
22689  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22690  soname_spec='${libname}${release}${shared_ext}$major'
22691  shlibpath_var=LD_LIBRARY_PATH
22692  shlibpath_overrides_runpath=no
22693  hardcode_into_libs=yes
22694  dynamic_linker='GNU ld.so'
22695  ;;
22696
22697freebsd* | dragonfly*)
22698  # DragonFly does not have aout.  When/if they implement a new
22699  # versioning mechanism, adjust this.
22700  if test -x /usr/bin/objformat; then
22701    objformat=`/usr/bin/objformat`
22702  else
22703    case $host_os in
22704    freebsd[123]*) objformat=aout ;;
22705    *) objformat=elf ;;
22706    esac
22707  fi
22708  version_type=freebsd-$objformat
22709  case $version_type in
22710    freebsd-elf*)
22711      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22712      need_version=no
22713      need_lib_prefix=no
22714      ;;
22715    freebsd-*)
22716      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22717      need_version=yes
22718      ;;
22719  esac
22720  shlibpath_var=LD_LIBRARY_PATH
22721  case $host_os in
22722  freebsd2*)
22723    shlibpath_overrides_runpath=yes
22724    ;;
22725  freebsd3.[01]* | freebsdelf3.[01]*)
22726    shlibpath_overrides_runpath=yes
22727    hardcode_into_libs=yes
22728    ;;
22729  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22730  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22731    shlibpath_overrides_runpath=no
22732    hardcode_into_libs=yes
22733    ;;
22734  freebsd*) # from 4.6 on
22735    shlibpath_overrides_runpath=yes
22736    hardcode_into_libs=yes
22737    ;;
22738  esac
22739  ;;
22740
22741gnu*)
22742  version_type=linux
22743  need_lib_prefix=no
22744  need_version=no
22745  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22746  soname_spec='${libname}${release}${shared_ext}$major'
22747  shlibpath_var=LD_LIBRARY_PATH
22748  hardcode_into_libs=yes
22749  ;;
22750
22751hpux9* | hpux10* | hpux11*)
22752  # Give a soname corresponding to the major version so that dld.sl refuses to
22753  # link against other versions.
22754  version_type=sunos
22755  need_lib_prefix=no
22756  need_version=no
22757  case $host_cpu in
22758  ia64*)
22759    shrext_cmds='.so'
22760    hardcode_into_libs=yes
22761    dynamic_linker="$host_os dld.so"
22762    shlibpath_var=LD_LIBRARY_PATH
22763    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22764    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22765    soname_spec='${libname}${release}${shared_ext}$major'
22766    if test "X$HPUX_IA64_MODE" = X32; then
22767      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22768    else
22769      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22770    fi
22771    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22772    ;;
22773   hppa*64*)
22774     shrext_cmds='.sl'
22775     hardcode_into_libs=yes
22776     dynamic_linker="$host_os dld.sl"
22777     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22778     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22779     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22780     soname_spec='${libname}${release}${shared_ext}$major'
22781     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22782     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22783     ;;
22784   *)
22785    shrext_cmds='.sl'
22786    dynamic_linker="$host_os dld.sl"
22787    shlibpath_var=SHLIB_PATH
22788    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22789    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22790    soname_spec='${libname}${release}${shared_ext}$major'
22791    ;;
22792  esac
22793  # HP-UX runs *really* slowly unless shared libraries are mode 555.
22794  postinstall_cmds='chmod 555 $lib'
22795  ;;
22796
22797interix3*)
22798  version_type=linux
22799  need_lib_prefix=no
22800  need_version=no
22801  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22802  soname_spec='${libname}${release}${shared_ext}$major'
22803  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22804  shlibpath_var=LD_LIBRARY_PATH
22805  shlibpath_overrides_runpath=no
22806  hardcode_into_libs=yes
22807  ;;
22808
22809irix5* | irix6* | nonstopux*)
22810  case $host_os in
22811    nonstopux*) version_type=nonstopux ;;
22812    *)
22813	if test "$lt_cv_prog_gnu_ld" = yes; then
22814		version_type=linux
22815	else
22816		version_type=irix
22817	fi ;;
22818  esac
22819  need_lib_prefix=no
22820  need_version=no
22821  soname_spec='${libname}${release}${shared_ext}$major'
22822  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22823  case $host_os in
22824  irix5* | nonstopux*)
22825    libsuff= shlibsuff=
22826    ;;
22827  *)
22828    case $LD in # libtool.m4 will add one of these switches to LD
22829    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22830      libsuff= shlibsuff= libmagic=32-bit;;
22831    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22832      libsuff=32 shlibsuff=N32 libmagic=N32;;
22833    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22834      libsuff=64 shlibsuff=64 libmagic=64-bit;;
22835    *) libsuff= shlibsuff= libmagic=never-match;;
22836    esac
22837    ;;
22838  esac
22839  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22840  shlibpath_overrides_runpath=no
22841  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22842  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22843  hardcode_into_libs=yes
22844  ;;
22845
22846# No shared lib support for Linux oldld, aout, or coff.
22847linux*oldld* | linux*aout* | linux*coff*)
22848  dynamic_linker=no
22849  ;;
22850
22851# This must be Linux ELF.
22852linux*)
22853  version_type=linux
22854  need_lib_prefix=no
22855  need_version=no
22856  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22857  soname_spec='${libname}${release}${shared_ext}$major'
22858  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22859  shlibpath_var=LD_LIBRARY_PATH
22860  shlibpath_overrides_runpath=no
22861  # This implies no fast_install, which is unacceptable.
22862  # Some rework will be needed to allow for fast_install
22863  # before this can be enabled.
22864  hardcode_into_libs=yes
22865
22866  # Append ld.so.conf contents to the search path
22867  if test -f /etc/ld.so.conf; then
22868    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' ' '`
22869    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22870  fi
22871
22872  # We used to test for /lib/ld.so.1 and disable shared libraries on
22873  # powerpc, because MkLinux only supported shared libraries with the
22874  # GNU dynamic linker.  Since this was broken with cross compilers,
22875  # most powerpc-linux boxes support dynamic linking these days and
22876  # people can always --disable-shared, the test was removed, and we
22877  # assume the GNU/Linux dynamic linker is in use.
22878  dynamic_linker='GNU/Linux ld.so'
22879  ;;
22880
22881knetbsd*-gnu)
22882  version_type=linux
22883  need_lib_prefix=no
22884  need_version=no
22885  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22886  soname_spec='${libname}${release}${shared_ext}$major'
22887  shlibpath_var=LD_LIBRARY_PATH
22888  shlibpath_overrides_runpath=no
22889  hardcode_into_libs=yes
22890  dynamic_linker='GNU ld.so'
22891  ;;
22892
22893netbsd*)
22894  version_type=sunos
22895  need_lib_prefix=no
22896  need_version=no
22897  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22898    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22899    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22900    dynamic_linker='NetBSD (a.out) ld.so'
22901  else
22902    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22903    soname_spec='${libname}${release}${shared_ext}$major'
22904    dynamic_linker='NetBSD ld.elf_so'
22905  fi
22906  shlibpath_var=LD_LIBRARY_PATH
22907  shlibpath_overrides_runpath=yes
22908  hardcode_into_libs=yes
22909  ;;
22910
22911newsos6)
22912  version_type=linux
22913  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22914  shlibpath_var=LD_LIBRARY_PATH
22915  shlibpath_overrides_runpath=yes
22916  ;;
22917
22918nto-qnx*)
22919  version_type=linux
22920  need_lib_prefix=no
22921  need_version=no
22922  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22923  soname_spec='${libname}${release}${shared_ext}$major'
22924  shlibpath_var=LD_LIBRARY_PATH
22925  shlibpath_overrides_runpath=yes
22926  ;;
22927
22928openbsd*)
22929  version_type=sunos
22930  sys_lib_dlsearch_path_spec="/usr/lib"
22931  need_lib_prefix=no
22932  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22933  case $host_os in
22934    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22935    *)                         need_version=no  ;;
22936  esac
22937  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22938  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22939  shlibpath_var=LD_LIBRARY_PATH
22940  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22941    case $host_os in
22942      openbsd2.[89] | openbsd2.[89].*)
22943	shlibpath_overrides_runpath=no
22944	;;
22945      *)
22946	shlibpath_overrides_runpath=yes
22947	;;
22948      esac
22949  else
22950    shlibpath_overrides_runpath=yes
22951  fi
22952  ;;
22953
22954os2*)
22955  libname_spec='$name'
22956  shrext_cmds=".dll"
22957  need_lib_prefix=no
22958  library_names_spec='$libname${shared_ext} $libname.a'
22959  dynamic_linker='OS/2 ld.exe'
22960  shlibpath_var=LIBPATH
22961  ;;
22962
22963osf3* | osf4* | osf5*)
22964  version_type=osf
22965  need_lib_prefix=no
22966  need_version=no
22967  soname_spec='${libname}${release}${shared_ext}$major'
22968  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22969  shlibpath_var=LD_LIBRARY_PATH
22970  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22971  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22972  ;;
22973
22974solaris*)
22975  version_type=linux
22976  need_lib_prefix=no
22977  need_version=no
22978  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22979  soname_spec='${libname}${release}${shared_ext}$major'
22980  shlibpath_var=LD_LIBRARY_PATH
22981  shlibpath_overrides_runpath=yes
22982  hardcode_into_libs=yes
22983  # ldd complains unless libraries are executable
22984  postinstall_cmds='chmod +x $lib'
22985  ;;
22986
22987sunos4*)
22988  version_type=sunos
22989  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22990  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22991  shlibpath_var=LD_LIBRARY_PATH
22992  shlibpath_overrides_runpath=yes
22993  if test "$with_gnu_ld" = yes; then
22994    need_lib_prefix=no
22995  fi
22996  need_version=yes
22997  ;;
22998
22999sysv4 | sysv4.3*)
23000  version_type=linux
23001  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23002  soname_spec='${libname}${release}${shared_ext}$major'
23003  shlibpath_var=LD_LIBRARY_PATH
23004  case $host_vendor in
23005    sni)
23006      shlibpath_overrides_runpath=no
23007      need_lib_prefix=no
23008      export_dynamic_flag_spec='${wl}-Blargedynsym'
23009      runpath_var=LD_RUN_PATH
23010      ;;
23011    siemens)
23012      need_lib_prefix=no
23013      ;;
23014    motorola)
23015      need_lib_prefix=no
23016      need_version=no
23017      shlibpath_overrides_runpath=no
23018      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23019      ;;
23020  esac
23021  ;;
23022
23023sysv4*MP*)
23024  if test -d /usr/nec ;then
23025    version_type=linux
23026    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23027    soname_spec='$libname${shared_ext}.$major'
23028    shlibpath_var=LD_LIBRARY_PATH
23029  fi
23030  ;;
23031
23032sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23033  version_type=freebsd-elf
23034  need_lib_prefix=no
23035  need_version=no
23036  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23037  soname_spec='${libname}${release}${shared_ext}$major'
23038  shlibpath_var=LD_LIBRARY_PATH
23039  hardcode_into_libs=yes
23040  if test "$with_gnu_ld" = yes; then
23041    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23042    shlibpath_overrides_runpath=no
23043  else
23044    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23045    shlibpath_overrides_runpath=yes
23046    case $host_os in
23047      sco3.2v5*)
23048        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23049	;;
23050    esac
23051  fi
23052  sys_lib_dlsearch_path_spec='/usr/lib'
23053  ;;
23054
23055uts4*)
23056  version_type=linux
23057  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23058  soname_spec='${libname}${release}${shared_ext}$major'
23059  shlibpath_var=LD_LIBRARY_PATH
23060  ;;
23061
23062*)
23063  dynamic_linker=no
23064  ;;
23065esac
23066{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23067echo "${ECHO_T}$dynamic_linker" >&6; }
23068test "$dynamic_linker" = no && can_build_shared=no
23069
23070variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23071if test "$GCC" = yes; then
23072  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23073fi
23074
23075{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23076echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23077hardcode_action_F77=
23078if test -n "$hardcode_libdir_flag_spec_F77" || \
23079   test -n "$runpath_var_F77" || \
23080   test "X$hardcode_automatic_F77" = "Xyes" ; then
23081
23082  # We can hardcode non-existant directories.
23083  if test "$hardcode_direct_F77" != no &&
23084     # If the only mechanism to avoid hardcoding is shlibpath_var, we
23085     # have to relink, otherwise we might link with an installed library
23086     # when we should be linking with a yet-to-be-installed one
23087     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23088     test "$hardcode_minus_L_F77" != no; then
23089    # Linking always hardcodes the temporary library directory.
23090    hardcode_action_F77=relink
23091  else
23092    # We can link without hardcoding, and we can hardcode nonexisting dirs.
23093    hardcode_action_F77=immediate
23094  fi
23095else
23096  # We cannot hardcode anything, or else we can only hardcode existing
23097  # directories.
23098  hardcode_action_F77=unsupported
23099fi
23100{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23101echo "${ECHO_T}$hardcode_action_F77" >&6; }
23102
23103if test "$hardcode_action_F77" = relink; then
23104  # Fast installation is not supported
23105  enable_fast_install=no
23106elif test "$shlibpath_overrides_runpath" = yes ||
23107     test "$enable_shared" = no; then
23108  # Fast installation is not necessary
23109  enable_fast_install=needless
23110fi
23111
23112
23113# The else clause should only fire when bootstrapping the
23114# libtool distribution, otherwise you forgot to ship ltmain.sh
23115# with your package, and you will get complaints that there are
23116# no rules to generate ltmain.sh.
23117if test -f "$ltmain"; then
23118  # See if we are running on zsh, and set the options which allow our commands through
23119  # without removal of \ escapes.
23120  if test -n "${ZSH_VERSION+set}" ; then
23121    setopt NO_GLOB_SUBST
23122  fi
23123  # Now quote all the things that may contain metacharacters while being
23124  # careful not to overquote the AC_SUBSTed values.  We take copies of the
23125  # variables and quote the copies for generation of the libtool script.
23126  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23127    SED SHELL STRIP \
23128    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23129    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23130    deplibs_check_method reload_flag reload_cmds need_locks \
23131    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23132    lt_cv_sys_global_symbol_to_c_name_address \
23133    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23134    old_postinstall_cmds old_postuninstall_cmds \
23135    compiler_F77 \
23136    CC_F77 \
23137    LD_F77 \
23138    lt_prog_compiler_wl_F77 \
23139    lt_prog_compiler_pic_F77 \
23140    lt_prog_compiler_static_F77 \
23141    lt_prog_compiler_no_builtin_flag_F77 \
23142    export_dynamic_flag_spec_F77 \
23143    thread_safe_flag_spec_F77 \
23144    whole_archive_flag_spec_F77 \
23145    enable_shared_with_static_runtimes_F77 \
23146    old_archive_cmds_F77 \
23147    old_archive_from_new_cmds_F77 \
23148    predep_objects_F77 \
23149    postdep_objects_F77 \
23150    predeps_F77 \
23151    postdeps_F77 \
23152    compiler_lib_search_path_F77 \
23153    archive_cmds_F77 \
23154    archive_expsym_cmds_F77 \
23155    postinstall_cmds_F77 \
23156    postuninstall_cmds_F77 \
23157    old_archive_from_expsyms_cmds_F77 \
23158    allow_undefined_flag_F77 \
23159    no_undefined_flag_F77 \
23160    export_symbols_cmds_F77 \
23161    hardcode_libdir_flag_spec_F77 \
23162    hardcode_libdir_flag_spec_ld_F77 \
23163    hardcode_libdir_separator_F77 \
23164    hardcode_automatic_F77 \
23165    module_cmds_F77 \
23166    module_expsym_cmds_F77 \
23167    lt_cv_prog_compiler_c_o_F77 \
23168    exclude_expsyms_F77 \
23169    include_expsyms_F77; do
23170
23171    case $var in
23172    old_archive_cmds_F77 | \
23173    old_archive_from_new_cmds_F77 | \
23174    archive_cmds_F77 | \
23175    archive_expsym_cmds_F77 | \
23176    module_cmds_F77 | \
23177    module_expsym_cmds_F77 | \
23178    old_archive_from_expsyms_cmds_F77 | \
23179    export_symbols_cmds_F77 | \
23180    extract_expsyms_cmds | reload_cmds | finish_cmds | \
23181    postinstall_cmds | postuninstall_cmds | \
23182    old_postinstall_cmds | old_postuninstall_cmds | \
23183    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23184      # Double-quote double-evaled strings.
23185      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23186      ;;
23187    *)
23188      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23189      ;;
23190    esac
23191  done
23192
23193  case $lt_echo in
23194  *'\$0 --fallback-echo"')
23195    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23196    ;;
23197  esac
23198
23199cfgfile="$ofile"
23200
23201  cat <<__EOF__ >> "$cfgfile"
23202# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23203
23204# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23205
23206# Shell to use when invoking shell scripts.
23207SHELL=$lt_SHELL
23208
23209# Whether or not to build shared libraries.
23210build_libtool_libs=$enable_shared
23211
23212# Whether or not to build static libraries.
23213build_old_libs=$enable_static
23214
23215# Whether or not to add -lc for building shared libraries.
23216build_libtool_need_lc=$archive_cmds_need_lc_F77
23217
23218# Whether or not to disallow shared libs when runtime libs are static
23219allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23220
23221# Whether or not to optimize for fast installation.
23222fast_install=$enable_fast_install
23223
23224# The host system.
23225host_alias=$host_alias
23226host=$host
23227host_os=$host_os
23228
23229# The build system.
23230build_alias=$build_alias
23231build=$build
23232build_os=$build_os
23233
23234# An echo program that does not interpret backslashes.
23235echo=$lt_echo
23236
23237# The archiver.
23238AR=$lt_AR
23239AR_FLAGS=$lt_AR_FLAGS
23240
23241# A C compiler.
23242LTCC=$lt_LTCC
23243
23244# LTCC compiler flags.
23245LTCFLAGS=$lt_LTCFLAGS
23246
23247# A language-specific compiler.
23248CC=$lt_compiler_F77
23249
23250# Is the compiler the GNU C compiler?
23251with_gcc=$GCC_F77
23252
23253# An ERE matcher.
23254EGREP=$lt_EGREP
23255
23256# The linker used to build libraries.
23257LD=$lt_LD_F77
23258
23259# Whether we need hard or soft links.
23260LN_S=$lt_LN_S
23261
23262# A BSD-compatible nm program.
23263NM=$lt_NM
23264
23265# A symbol stripping program
23266STRIP=$lt_STRIP
23267
23268# Used to examine libraries when file_magic_cmd begins "file"
23269MAGIC_CMD=$MAGIC_CMD
23270
23271# Used on cygwin: DLL creation program.
23272DLLTOOL="$DLLTOOL"
23273
23274# Used on cygwin: object dumper.
23275OBJDUMP="$OBJDUMP"
23276
23277# Used on cygwin: assembler.
23278AS="$AS"
23279
23280# The name of the directory that contains temporary libtool files.
23281objdir=$objdir
23282
23283# How to create reloadable object files.
23284reload_flag=$lt_reload_flag
23285reload_cmds=$lt_reload_cmds
23286
23287# How to pass a linker flag through the compiler.
23288wl=$lt_lt_prog_compiler_wl_F77
23289
23290# Object file suffix (normally "o").
23291objext="$ac_objext"
23292
23293# Old archive suffix (normally "a").
23294libext="$libext"
23295
23296# Shared library suffix (normally ".so").
23297shrext_cmds='$shrext_cmds'
23298
23299# Executable file suffix (normally "").
23300exeext="$exeext"
23301
23302# Additional compiler flags for building library objects.
23303pic_flag=$lt_lt_prog_compiler_pic_F77
23304pic_mode=$pic_mode
23305
23306# What is the maximum length of a command?
23307max_cmd_len=$lt_cv_sys_max_cmd_len
23308
23309# Does compiler simultaneously support -c and -o options?
23310compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23311
23312# Must we lock files when doing compilation?
23313need_locks=$lt_need_locks
23314
23315# Do we need the lib prefix for modules?
23316need_lib_prefix=$need_lib_prefix
23317
23318# Do we need a version for libraries?
23319need_version=$need_version
23320
23321# Whether dlopen is supported.
23322dlopen_support=$enable_dlopen
23323
23324# Whether dlopen of programs is supported.
23325dlopen_self=$enable_dlopen_self
23326
23327# Whether dlopen of statically linked programs is supported.
23328dlopen_self_static=$enable_dlopen_self_static
23329
23330# Compiler flag to prevent dynamic linking.
23331link_static_flag=$lt_lt_prog_compiler_static_F77
23332
23333# Compiler flag to turn off builtin functions.
23334no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23335
23336# Compiler flag to allow reflexive dlopens.
23337export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23338
23339# Compiler flag to generate shared objects directly from archives.
23340whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23341
23342# Compiler flag to generate thread-safe objects.
23343thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23344
23345# Library versioning type.
23346version_type=$version_type
23347
23348# Format of library name prefix.
23349libname_spec=$lt_libname_spec
23350
23351# List of archive names.  First name is the real one, the rest are links.
23352# The last name is the one that the linker finds with -lNAME.
23353library_names_spec=$lt_library_names_spec
23354
23355# The coded name of the library, if different from the real name.
23356soname_spec=$lt_soname_spec
23357
23358# Commands used to build and install an old-style archive.
23359RANLIB=$lt_RANLIB
23360old_archive_cmds=$lt_old_archive_cmds_F77
23361old_postinstall_cmds=$lt_old_postinstall_cmds
23362old_postuninstall_cmds=$lt_old_postuninstall_cmds
23363
23364# Create an old-style archive from a shared archive.
23365old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23366
23367# Create a temporary old-style archive to link instead of a shared archive.
23368old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23369
23370# Commands used to build and install a shared archive.
23371archive_cmds=$lt_archive_cmds_F77
23372archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23373postinstall_cmds=$lt_postinstall_cmds
23374postuninstall_cmds=$lt_postuninstall_cmds
23375
23376# Commands used to build a loadable module (assumed same as above if empty)
23377module_cmds=$lt_module_cmds_F77
23378module_expsym_cmds=$lt_module_expsym_cmds_F77
23379
23380# Commands to strip libraries.
23381old_striplib=$lt_old_striplib
23382striplib=$lt_striplib
23383
23384# Dependencies to place before the objects being linked to create a
23385# shared library.
23386predep_objects=$lt_predep_objects_F77
23387
23388# Dependencies to place after the objects being linked to create a
23389# shared library.
23390postdep_objects=$lt_postdep_objects_F77
23391
23392# Dependencies to place before the objects being linked to create a
23393# shared library.
23394predeps=$lt_predeps_F77
23395
23396# Dependencies to place after the objects being linked to create a
23397# shared library.
23398postdeps=$lt_postdeps_F77
23399
23400# The library search path used internally by the compiler when linking
23401# a shared library.
23402compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23403
23404# Method to check whether dependent libraries are shared objects.
23405deplibs_check_method=$lt_deplibs_check_method
23406
23407# Command to use when deplibs_check_method == file_magic.
23408file_magic_cmd=$lt_file_magic_cmd
23409
23410# Flag that allows shared libraries with undefined symbols to be built.
23411allow_undefined_flag=$lt_allow_undefined_flag_F77
23412
23413# Flag that forces no undefined symbols.
23414no_undefined_flag=$lt_no_undefined_flag_F77
23415
23416# Commands used to finish a libtool library installation in a directory.
23417finish_cmds=$lt_finish_cmds
23418
23419# Same as above, but a single script fragment to be evaled but not shown.
23420finish_eval=$lt_finish_eval
23421
23422# Take the output of nm and produce a listing of raw symbols and C names.
23423global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23424
23425# Transform the output of nm in a proper C declaration
23426global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23427
23428# Transform the output of nm in a C name address pair
23429global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23430
23431# This is the shared library runtime path variable.
23432runpath_var=$runpath_var
23433
23434# This is the shared library path variable.
23435shlibpath_var=$shlibpath_var
23436
23437# Is shlibpath searched before the hard-coded library search path?
23438shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23439
23440# How to hardcode a shared library path into an executable.
23441hardcode_action=$hardcode_action_F77
23442
23443# Whether we should hardcode library paths into libraries.
23444hardcode_into_libs=$hardcode_into_libs
23445
23446# Flag to hardcode \$libdir into a binary during linking.
23447# This must work even if \$libdir does not exist.
23448hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23449
23450# If ld is used when linking, flag to hardcode \$libdir into
23451# a binary during linking. This must work even if \$libdir does
23452# not exist.
23453hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23454
23455# Whether we need a single -rpath flag with a separated argument.
23456hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23457
23458# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23459# resulting binary.
23460hardcode_direct=$hardcode_direct_F77
23461
23462# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23463# resulting binary.
23464hardcode_minus_L=$hardcode_minus_L_F77
23465
23466# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23467# the resulting binary.
23468hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23469
23470# Set to yes if building a shared library automatically hardcodes DIR into the library
23471# and all subsequent libraries and executables linked against it.
23472hardcode_automatic=$hardcode_automatic_F77
23473
23474# Variables whose values should be saved in libtool wrapper scripts and
23475# restored at relink time.
23476variables_saved_for_relink="$variables_saved_for_relink"
23477
23478# Whether libtool must link a program against all its dependency libraries.
23479link_all_deplibs=$link_all_deplibs_F77
23480
23481# Compile-time system search path for libraries
23482sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23483
23484# Run-time system search path for libraries
23485sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23486
23487# Fix the shell variable \$srcfile for the compiler.
23488fix_srcfile_path="$fix_srcfile_path_F77"
23489
23490# Set to yes if exported symbols are required.
23491always_export_symbols=$always_export_symbols_F77
23492
23493# The commands to list exported symbols.
23494export_symbols_cmds=$lt_export_symbols_cmds_F77
23495
23496# The commands to extract the exported symbol list from a shared archive.
23497extract_expsyms_cmds=$lt_extract_expsyms_cmds
23498
23499# Symbols that should not be listed in the preloaded symbols.
23500exclude_expsyms=$lt_exclude_expsyms_F77
23501
23502# Symbols that must always be exported.
23503include_expsyms=$lt_include_expsyms_F77
23504
23505# ### END LIBTOOL TAG CONFIG: $tagname
23506
23507__EOF__
23508
23509
23510else
23511  # If there is no Makefile yet, we rely on a make rule to execute
23512  # `config.status --recheck' to rerun these tests and create the
23513  # libtool script then.
23514  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23515  if test -f "$ltmain_in"; then
23516    test -f Makefile && make "$ltmain"
23517  fi
23518fi
23519
23520
23521ac_ext=c
23522ac_cpp='$CPP $CPPFLAGS'
23523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23525ac_compiler_gnu=$ac_cv_c_compiler_gnu
23526
23527CC="$lt_save_CC"
23528
23529	else
23530	  tagname=""
23531	fi
23532	;;
23533
23534      GCJ)
23535	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23536	  ac_ext=c
23537ac_cpp='$CPP $CPPFLAGS'
23538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23540ac_compiler_gnu=$ac_cv_c_compiler_gnu
23541
23542
23543# Source file extension for Java test sources.
23544ac_ext=java
23545
23546# Object file extension for compiled Java test sources.
23547objext=o
23548objext_GCJ=$objext
23549
23550# Code to be used in simple compile tests
23551lt_simple_compile_test_code="class foo {}\n"
23552
23553# Code to be used in simple link tests
23554lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23555
23556# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23557
23558# If no C compiler was specified, use CC.
23559LTCC=${LTCC-"$CC"}
23560
23561# If no C compiler flags were specified, use CFLAGS.
23562LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23563
23564# Allow CC to be a program name with arguments.
23565compiler=$CC
23566
23567
23568# save warnings/boilerplate of simple test code
23569ac_outfile=conftest.$ac_objext
23570printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23571eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23572_lt_compiler_boilerplate=`cat conftest.err`
23573$rm conftest*
23574
23575ac_outfile=conftest.$ac_objext
23576printf "$lt_simple_link_test_code" >conftest.$ac_ext
23577eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23578_lt_linker_boilerplate=`cat conftest.err`
23579$rm conftest*
23580
23581
23582# Allow CC to be a program name with arguments.
23583lt_save_CC="$CC"
23584CC=${GCJ-"gcj"}
23585compiler=$CC
23586compiler_GCJ=$CC
23587for cc_temp in $compiler""; do
23588  case $cc_temp in
23589    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23590    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23591    \-*) ;;
23592    *) break;;
23593  esac
23594done
23595cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23596
23597
23598# GCJ did not exist at the time GCC didn't implicitly link libc in.
23599archive_cmds_need_lc_GCJ=no
23600
23601old_archive_cmds_GCJ=$old_archive_cmds
23602
23603
23604lt_prog_compiler_no_builtin_flag_GCJ=
23605
23606if test "$GCC" = yes; then
23607  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23608
23609
23610{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23611echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23612if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23613  echo $ECHO_N "(cached) $ECHO_C" >&6
23614else
23615  lt_cv_prog_compiler_rtti_exceptions=no
23616  ac_outfile=conftest.$ac_objext
23617   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23618   lt_compiler_flag="-fno-rtti -fno-exceptions"
23619   # Insert the option either (1) after the last *FLAGS variable, or
23620   # (2) before a word containing "conftest.", or (3) at the end.
23621   # Note that $ac_compile itself does not contain backslashes and begins
23622   # with a dollar sign (not a hyphen), so the echo should work correctly.
23623   # The option is referenced via a variable to avoid confusing sed.
23624   lt_compile=`echo "$ac_compile" | $SED \
23625   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23626   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23627   -e 's:$: $lt_compiler_flag:'`
23628   (eval echo "\"\$as_me:23628: $lt_compile\"" >&5)
23629   (eval "$lt_compile" 2>conftest.err)
23630   ac_status=$?
23631   cat conftest.err >&5
23632   echo "$as_me:23632: \$? = $ac_status" >&5
23633   if (exit $ac_status) && test -s "$ac_outfile"; then
23634     # The compiler can only warn and ignore the option if not recognized
23635     # So say no if there are warnings other than the usual output.
23636     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23637     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23638     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23639       lt_cv_prog_compiler_rtti_exceptions=yes
23640     fi
23641   fi
23642   $rm conftest*
23643
23644fi
23645{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23646echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23647
23648if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23649    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23650else
23651    :
23652fi
23653
23654fi
23655
23656lt_prog_compiler_wl_GCJ=
23657lt_prog_compiler_pic_GCJ=
23658lt_prog_compiler_static_GCJ=
23659
23660{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23661echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23662
23663  if test "$GCC" = yes; then
23664    lt_prog_compiler_wl_GCJ='-Wl,'
23665    lt_prog_compiler_static_GCJ='-static'
23666
23667    case $host_os in
23668      aix*)
23669      # All AIX code is PIC.
23670      if test "$host_cpu" = ia64; then
23671	# AIX 5 now supports IA64 processor
23672	lt_prog_compiler_static_GCJ='-Bstatic'
23673      fi
23674      ;;
23675
23676    amigaos*)
23677      # FIXME: we need at least 68020 code to build shared libraries, but
23678      # adding the `-m68020' flag to GCC prevents building anything better,
23679      # like `-m68040'.
23680      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23681      ;;
23682
23683    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23684      # PIC is the default for these OSes.
23685      ;;
23686
23687    mingw* | pw32* | os2*)
23688      # This hack is so that the source file can tell whether it is being
23689      # built for inclusion in a dll (and should export symbols for example).
23690      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23691      ;;
23692
23693    darwin* | rhapsody*)
23694      # PIC is the default on this platform
23695      # Common symbols not allowed in MH_DYLIB files
23696      lt_prog_compiler_pic_GCJ='-fno-common'
23697      ;;
23698
23699    interix3*)
23700      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23701      # Instead, we relocate shared libraries at runtime.
23702      ;;
23703
23704    msdosdjgpp*)
23705      # Just because we use GCC doesn't mean we suddenly get shared libraries
23706      # on systems that don't support them.
23707      lt_prog_compiler_can_build_shared_GCJ=no
23708      enable_shared=no
23709      ;;
23710
23711    sysv4*MP*)
23712      if test -d /usr/nec; then
23713	lt_prog_compiler_pic_GCJ=-Kconform_pic
23714      fi
23715      ;;
23716
23717    hpux*)
23718      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23719      # not for PA HP-UX.
23720      case $host_cpu in
23721      hppa*64*|ia64*)
23722	# +Z the default
23723	;;
23724      *)
23725	lt_prog_compiler_pic_GCJ='-fPIC'
23726	;;
23727      esac
23728      ;;
23729
23730    *)
23731      lt_prog_compiler_pic_GCJ='-fPIC'
23732      ;;
23733    esac
23734  else
23735    # PORTME Check for flag to pass linker flags through the system compiler.
23736    case $host_os in
23737    aix*)
23738      lt_prog_compiler_wl_GCJ='-Wl,'
23739      if test "$host_cpu" = ia64; then
23740	# AIX 5 now supports IA64 processor
23741	lt_prog_compiler_static_GCJ='-Bstatic'
23742      else
23743	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23744      fi
23745      ;;
23746      darwin*)
23747        # PIC is the default on this platform
23748        # Common symbols not allowed in MH_DYLIB files
23749       case $cc_basename in
23750         xlc*)
23751         lt_prog_compiler_pic_GCJ='-qnocommon'
23752         lt_prog_compiler_wl_GCJ='-Wl,'
23753         ;;
23754       esac
23755       ;;
23756
23757    mingw* | pw32* | os2*)
23758      # This hack is so that the source file can tell whether it is being
23759      # built for inclusion in a dll (and should export symbols for example).
23760      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23761      ;;
23762
23763    hpux9* | hpux10* | hpux11*)
23764      lt_prog_compiler_wl_GCJ='-Wl,'
23765      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23766      # not for PA HP-UX.
23767      case $host_cpu in
23768      hppa*64*|ia64*)
23769	# +Z the default
23770	;;
23771      *)
23772	lt_prog_compiler_pic_GCJ='+Z'
23773	;;
23774      esac
23775      # Is there a better lt_prog_compiler_static that works with the bundled CC?
23776      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23777      ;;
23778
23779    irix5* | irix6* | nonstopux*)
23780      lt_prog_compiler_wl_GCJ='-Wl,'
23781      # PIC (with -KPIC) is the default.
23782      lt_prog_compiler_static_GCJ='-non_shared'
23783      ;;
23784
23785    newsos6)
23786      lt_prog_compiler_pic_GCJ='-KPIC'
23787      lt_prog_compiler_static_GCJ='-Bstatic'
23788      ;;
23789
23790    linux*)
23791      case $cc_basename in
23792      icc* | ecc*)
23793	lt_prog_compiler_wl_GCJ='-Wl,'
23794	lt_prog_compiler_pic_GCJ='-KPIC'
23795	lt_prog_compiler_static_GCJ='-static'
23796        ;;
23797      pgcc* | pgf77* | pgf90* | pgf95*)
23798        # Portland Group compilers (*not* the Pentium gcc compiler,
23799	# which looks to be a dead project)
23800	lt_prog_compiler_wl_GCJ='-Wl,'
23801	lt_prog_compiler_pic_GCJ='-fpic'
23802	lt_prog_compiler_static_GCJ='-Bstatic'
23803        ;;
23804      ccc*)
23805        lt_prog_compiler_wl_GCJ='-Wl,'
23806        # All Alpha code is PIC.
23807        lt_prog_compiler_static_GCJ='-non_shared'
23808        ;;
23809      esac
23810      ;;
23811
23812    osf3* | osf4* | osf5*)
23813      lt_prog_compiler_wl_GCJ='-Wl,'
23814      # All OSF/1 code is PIC.
23815      lt_prog_compiler_static_GCJ='-non_shared'
23816      ;;
23817
23818    solaris*)
23819      lt_prog_compiler_pic_GCJ='-KPIC'
23820      lt_prog_compiler_static_GCJ='-Bstatic'
23821      case $cc_basename in
23822      f77* | f90* | f95*)
23823	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23824      *)
23825	lt_prog_compiler_wl_GCJ='-Wl,';;
23826      esac
23827      ;;
23828
23829    sunos4*)
23830      lt_prog_compiler_wl_GCJ='-Qoption ld '
23831      lt_prog_compiler_pic_GCJ='-PIC'
23832      lt_prog_compiler_static_GCJ='-Bstatic'
23833      ;;
23834
23835    sysv4 | sysv4.2uw2* | sysv4.3*)
23836      lt_prog_compiler_wl_GCJ='-Wl,'
23837      lt_prog_compiler_pic_GCJ='-KPIC'
23838      lt_prog_compiler_static_GCJ='-Bstatic'
23839      ;;
23840
23841    sysv4*MP*)
23842      if test -d /usr/nec ;then
23843	lt_prog_compiler_pic_GCJ='-Kconform_pic'
23844	lt_prog_compiler_static_GCJ='-Bstatic'
23845      fi
23846      ;;
23847
23848    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23849      lt_prog_compiler_wl_GCJ='-Wl,'
23850      lt_prog_compiler_pic_GCJ='-KPIC'
23851      lt_prog_compiler_static_GCJ='-Bstatic'
23852      ;;
23853
23854    unicos*)
23855      lt_prog_compiler_wl_GCJ='-Wl,'
23856      lt_prog_compiler_can_build_shared_GCJ=no
23857      ;;
23858
23859    uts4*)
23860      lt_prog_compiler_pic_GCJ='-pic'
23861      lt_prog_compiler_static_GCJ='-Bstatic'
23862      ;;
23863
23864    *)
23865      lt_prog_compiler_can_build_shared_GCJ=no
23866      ;;
23867    esac
23868  fi
23869
23870{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23871echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23872
23873#
23874# Check to make sure the PIC flag actually works.
23875#
23876if test -n "$lt_prog_compiler_pic_GCJ"; then
23877
23878{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23879echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23880if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23881  echo $ECHO_N "(cached) $ECHO_C" >&6
23882else
23883  lt_prog_compiler_pic_works_GCJ=no
23884  ac_outfile=conftest.$ac_objext
23885   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23886   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23887   # Insert the option either (1) after the last *FLAGS variable, or
23888   # (2) before a word containing "conftest.", or (3) at the end.
23889   # Note that $ac_compile itself does not contain backslashes and begins
23890   # with a dollar sign (not a hyphen), so the echo should work correctly.
23891   # The option is referenced via a variable to avoid confusing sed.
23892   lt_compile=`echo "$ac_compile" | $SED \
23893   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23894   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23895   -e 's:$: $lt_compiler_flag:'`
23896   (eval echo "\"\$as_me:23896: $lt_compile\"" >&5)
23897   (eval "$lt_compile" 2>conftest.err)
23898   ac_status=$?
23899   cat conftest.err >&5
23900   echo "$as_me:23900: \$? = $ac_status" >&5
23901   if (exit $ac_status) && test -s "$ac_outfile"; then
23902     # The compiler can only warn and ignore the option if not recognized
23903     # So say no if there are warnings other than the usual output.
23904     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23905     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23906     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23907       lt_prog_compiler_pic_works_GCJ=yes
23908     fi
23909   fi
23910   $rm conftest*
23911
23912fi
23913{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23914echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23915
23916if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23917    case $lt_prog_compiler_pic_GCJ in
23918     "" | " "*) ;;
23919     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23920     esac
23921else
23922    lt_prog_compiler_pic_GCJ=
23923     lt_prog_compiler_can_build_shared_GCJ=no
23924fi
23925
23926fi
23927case $host_os in
23928  # For platforms which do not support PIC, -DPIC is meaningless:
23929  *djgpp*)
23930    lt_prog_compiler_pic_GCJ=
23931    ;;
23932  *)
23933    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23934    ;;
23935esac
23936
23937#
23938# Check to make sure the static flag actually works.
23939#
23940wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23941{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23942echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23943if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23944  echo $ECHO_N "(cached) $ECHO_C" >&6
23945else
23946  lt_prog_compiler_static_works_GCJ=no
23947   save_LDFLAGS="$LDFLAGS"
23948   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23949   printf "$lt_simple_link_test_code" > conftest.$ac_ext
23950   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23951     # The linker can only warn and ignore the option if not recognized
23952     # So say no if there are warnings
23953     if test -s conftest.err; then
23954       # Append any errors to the config.log.
23955       cat conftest.err 1>&5
23956       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23957       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23958       if diff conftest.exp conftest.er2 >/dev/null; then
23959         lt_prog_compiler_static_works_GCJ=yes
23960       fi
23961     else
23962       lt_prog_compiler_static_works_GCJ=yes
23963     fi
23964   fi
23965   $rm conftest*
23966   LDFLAGS="$save_LDFLAGS"
23967
23968fi
23969{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23970echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23971
23972if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23973    :
23974else
23975    lt_prog_compiler_static_GCJ=
23976fi
23977
23978
23979{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23980echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
23981if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23982  echo $ECHO_N "(cached) $ECHO_C" >&6
23983else
23984  lt_cv_prog_compiler_c_o_GCJ=no
23985   $rm -r conftest 2>/dev/null
23986   mkdir conftest
23987   cd conftest
23988   mkdir out
23989   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23990
23991   lt_compiler_flag="-o out/conftest2.$ac_objext"
23992   # Insert the option either (1) after the last *FLAGS variable, or
23993   # (2) before a word containing "conftest.", or (3) at the end.
23994   # Note that $ac_compile itself does not contain backslashes and begins
23995   # with a dollar sign (not a hyphen), so the echo should work correctly.
23996   lt_compile=`echo "$ac_compile" | $SED \
23997   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23998   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23999   -e 's:$: $lt_compiler_flag:'`
24000   (eval echo "\"\$as_me:24000: $lt_compile\"" >&5)
24001   (eval "$lt_compile" 2>out/conftest.err)
24002   ac_status=$?
24003   cat out/conftest.err >&5
24004   echo "$as_me:24004: \$? = $ac_status" >&5
24005   if (exit $ac_status) && test -s out/conftest2.$ac_objext
24006   then
24007     # The compiler can only warn and ignore the option if not recognized
24008     # So say no if there are warnings
24009     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24010     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24011     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24012       lt_cv_prog_compiler_c_o_GCJ=yes
24013     fi
24014   fi
24015   chmod u+w . 2>&5
24016   $rm conftest*
24017   # SGI C++ compiler will create directory out/ii_files/ for
24018   # template instantiation
24019   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24020   $rm out/* && rmdir out
24021   cd ..
24022   rmdir conftest
24023   $rm conftest*
24024
24025fi
24026{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24027echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24028
24029
24030hard_links="nottested"
24031if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24032  # do not overwrite the value of need_locks provided by the user
24033  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24034echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24035  hard_links=yes
24036  $rm conftest*
24037  ln conftest.a conftest.b 2>/dev/null && hard_links=no
24038  touch conftest.a
24039  ln conftest.a conftest.b 2>&5 || hard_links=no
24040  ln conftest.a conftest.b 2>/dev/null && hard_links=no
24041  { echo "$as_me:$LINENO: result: $hard_links" >&5
24042echo "${ECHO_T}$hard_links" >&6; }
24043  if test "$hard_links" = no; then
24044    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24045echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24046    need_locks=warn
24047  fi
24048else
24049  need_locks=no
24050fi
24051
24052{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24053echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24054
24055  runpath_var=
24056  allow_undefined_flag_GCJ=
24057  enable_shared_with_static_runtimes_GCJ=no
24058  archive_cmds_GCJ=
24059  archive_expsym_cmds_GCJ=
24060  old_archive_From_new_cmds_GCJ=
24061  old_archive_from_expsyms_cmds_GCJ=
24062  export_dynamic_flag_spec_GCJ=
24063  whole_archive_flag_spec_GCJ=
24064  thread_safe_flag_spec_GCJ=
24065  hardcode_libdir_flag_spec_GCJ=
24066  hardcode_libdir_flag_spec_ld_GCJ=
24067  hardcode_libdir_separator_GCJ=
24068  hardcode_direct_GCJ=no
24069  hardcode_minus_L_GCJ=no
24070  hardcode_shlibpath_var_GCJ=unsupported
24071  link_all_deplibs_GCJ=unknown
24072  hardcode_automatic_GCJ=no
24073  module_cmds_GCJ=
24074  module_expsym_cmds_GCJ=
24075  always_export_symbols_GCJ=no
24076  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24077  # include_expsyms should be a list of space-separated symbols to be *always*
24078  # included in the symbol list
24079  include_expsyms_GCJ=
24080  # exclude_expsyms can be an extended regexp of symbols to exclude
24081  # it will be wrapped by ` (' and `)$', so one must not match beginning or
24082  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24083  # as well as any symbol that contains `d'.
24084  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24085  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24086  # platforms (ab)use it in PIC code, but their linkers get confused if
24087  # the symbol is explicitly referenced.  Since portable code cannot
24088  # rely on this symbol name, it's probably fine to never include it in
24089  # preloaded symbol tables.
24090  extract_expsyms_cmds=
24091  # Just being paranoid about ensuring that cc_basename is set.
24092  for cc_temp in $compiler""; do
24093  case $cc_temp in
24094    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24095    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24096    \-*) ;;
24097    *) break;;
24098  esac
24099done
24100cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24101
24102  case $host_os in
24103  cygwin* | mingw* | pw32*)
24104    # FIXME: the MSVC++ port hasn't been tested in a loooong time
24105    # When not using gcc, we currently assume that we are using
24106    # Microsoft Visual C++.
24107    if test "$GCC" != yes; then
24108      with_gnu_ld=no
24109    fi
24110    ;;
24111  interix*)
24112    # we just hope/assume this is gcc and not c89 (= MSVC++)
24113    with_gnu_ld=yes
24114    ;;
24115  openbsd*)
24116    with_gnu_ld=no
24117    ;;
24118  esac
24119
24120  ld_shlibs_GCJ=yes
24121  if test "$with_gnu_ld" = yes; then
24122    # If archive_cmds runs LD, not CC, wlarc should be empty
24123    wlarc='${wl}'
24124
24125    # Set some defaults for GNU ld with shared library support. These
24126    # are reset later if shared libraries are not supported. Putting them
24127    # here allows them to be overridden if necessary.
24128    runpath_var=LD_RUN_PATH
24129    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24130    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24131    # ancient GNU ld didn't support --whole-archive et. al.
24132    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24133	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24134      else
24135  	whole_archive_flag_spec_GCJ=
24136    fi
24137    supports_anon_versioning=no
24138    case `$LD -v 2>/dev/null` in
24139      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24140      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24141      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24142      *\ 2.11.*) ;; # other 2.11 versions
24143      *) supports_anon_versioning=yes ;;
24144    esac
24145
24146    # See if GNU ld supports shared libraries.
24147    case $host_os in
24148    aix3* | aix4* | aix5*)
24149      # On AIX/PPC, the GNU linker is very broken
24150      if test "$host_cpu" != ia64; then
24151	ld_shlibs_GCJ=no
24152	cat <<EOF 1>&2
24153
24154*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24155*** to be unable to reliably create shared libraries on AIX.
24156*** Therefore, libtool is disabling shared libraries support.  If you
24157*** really care for shared libraries, you may want to modify your PATH
24158*** so that a non-GNU linker is found, and then restart.
24159
24160EOF
24161      fi
24162      ;;
24163
24164    amigaos*)
24165      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)'
24166      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24167      hardcode_minus_L_GCJ=yes
24168
24169      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24170      # that the semantics of dynamic libraries on AmigaOS, at least up
24171      # to version 4, is to share data among multiple programs linked
24172      # with the same dynamic library.  Since this doesn't match the
24173      # behavior of shared libraries on other platforms, we can't use
24174      # them.
24175      ld_shlibs_GCJ=no
24176      ;;
24177
24178    beos*)
24179      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24180	allow_undefined_flag_GCJ=unsupported
24181	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24182	# support --undefined.  This deserves some investigation.  FIXME
24183	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24184      else
24185	ld_shlibs_GCJ=no
24186      fi
24187      ;;
24188
24189    cygwin* | mingw* | pw32*)
24190      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24191      # as there is no search path for DLLs.
24192      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24193      allow_undefined_flag_GCJ=unsupported
24194      always_export_symbols_GCJ=no
24195      enable_shared_with_static_runtimes_GCJ=yes
24196      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24197
24198      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24199        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24200	# If the export-symbols file already is a .def file (1st line
24201	# is EXPORTS), use it as is; otherwise, prepend...
24202	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24203	  cp $export_symbols $output_objdir/$soname.def;
24204	else
24205	  echo EXPORTS > $output_objdir/$soname.def;
24206	  cat $export_symbols >> $output_objdir/$soname.def;
24207	fi~
24208	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24209      else
24210	ld_shlibs_GCJ=no
24211      fi
24212      ;;
24213
24214    interix3*)
24215      hardcode_direct_GCJ=no
24216      hardcode_shlibpath_var_GCJ=no
24217      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24218      export_dynamic_flag_spec_GCJ='${wl}-E'
24219      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24220      # Instead, shared libraries are loaded at an image base (0x10000000 by
24221      # default) and relocated if they conflict, which is a slow very memory
24222      # consuming and fragmenting process.  To avoid this, we pick a random,
24223      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24224      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24225      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'
24226      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'
24227      ;;
24228
24229    linux*)
24230      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24231	tmp_addflag=
24232	case $cc_basename,$host_cpu in
24233	pgcc*)				# Portland Group C compiler
24234	  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'
24235	  tmp_addflag=' $pic_flag'
24236	  ;;
24237	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
24238	  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'
24239	  tmp_addflag=' $pic_flag -Mnomain' ;;
24240	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
24241	  tmp_addflag=' -i_dynamic' ;;
24242	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
24243	  tmp_addflag=' -i_dynamic -nofor_main' ;;
24244	ifc* | ifort*)			# Intel Fortran compiler
24245	  tmp_addflag=' -nofor_main' ;;
24246	esac
24247	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24248
24249	if test $supports_anon_versioning = yes; then
24250	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24251  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24252  $echo "local: *; };" >> $output_objdir/$libname.ver~
24253	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24254	fi
24255      else
24256	ld_shlibs_GCJ=no
24257      fi
24258      ;;
24259
24260    netbsd*)
24261      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24262	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24263	wlarc=
24264      else
24265	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24266	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24267      fi
24268      ;;
24269
24270    solaris*)
24271      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24272	ld_shlibs_GCJ=no
24273	cat <<EOF 1>&2
24274
24275*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24276*** create shared libraries on Solaris systems.  Therefore, libtool
24277*** is disabling shared libraries support.  We urge you to upgrade GNU
24278*** binutils to release 2.9.1 or newer.  Another option is to modify
24279*** your PATH or compiler configuration so that the native linker is
24280*** used, and then restart.
24281
24282EOF
24283      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24284	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24285	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24286      else
24287	ld_shlibs_GCJ=no
24288      fi
24289      ;;
24290
24291    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24292      case `$LD -v 2>&1` in
24293        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24294	ld_shlibs_GCJ=no
24295	cat <<_LT_EOF 1>&2
24296
24297*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24298*** reliably create shared libraries on SCO systems.  Therefore, libtool
24299*** is disabling shared libraries support.  We urge you to upgrade GNU
24300*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24301*** your PATH or compiler configuration so that the native linker is
24302*** used, and then restart.
24303
24304_LT_EOF
24305	;;
24306	*)
24307	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24308	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24309	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24310	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24311	  else
24312	    ld_shlibs_GCJ=no
24313	  fi
24314	;;
24315      esac
24316      ;;
24317
24318    sunos4*)
24319      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24320      wlarc=
24321      hardcode_direct_GCJ=yes
24322      hardcode_shlibpath_var_GCJ=no
24323      ;;
24324
24325    *)
24326      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24327	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24328	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24329      else
24330	ld_shlibs_GCJ=no
24331      fi
24332      ;;
24333    esac
24334
24335    if test "$ld_shlibs_GCJ" = no; then
24336      runpath_var=
24337      hardcode_libdir_flag_spec_GCJ=
24338      export_dynamic_flag_spec_GCJ=
24339      whole_archive_flag_spec_GCJ=
24340    fi
24341  else
24342    # PORTME fill in a description of your system's linker (not GNU ld)
24343    case $host_os in
24344    aix3*)
24345      allow_undefined_flag_GCJ=unsupported
24346      always_export_symbols_GCJ=yes
24347      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'
24348      # Note: this linker hardcodes the directories in LIBPATH if there
24349      # are no directories specified by -L.
24350      hardcode_minus_L_GCJ=yes
24351      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24352	# Neither direct hardcoding nor static linking is supported with a
24353	# broken collect2.
24354	hardcode_direct_GCJ=unsupported
24355      fi
24356      ;;
24357
24358    aix4* | aix5*)
24359      if test "$host_cpu" = ia64; then
24360	# On IA64, the linker does run time linking by default, so we don't
24361	# have to do anything special.
24362	aix_use_runtimelinking=no
24363	exp_sym_flag='-Bexport'
24364	no_entry_flag=""
24365      else
24366	# If we're using GNU nm, then we don't want the "-C" option.
24367	# -C means demangle to AIX nm, but means don't demangle with GNU nm
24368	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24369	  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'
24370	else
24371	  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'
24372	fi
24373	aix_use_runtimelinking=no
24374
24375	# Test if we are trying to use run time linking or normal
24376	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
24377	# need to do runtime linking.
24378	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24379	  for ld_flag in $LDFLAGS; do
24380  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24381  	    aix_use_runtimelinking=yes
24382  	    break
24383  	  fi
24384	  done
24385	  ;;
24386	esac
24387
24388	exp_sym_flag='-bexport'
24389	no_entry_flag='-bnoentry'
24390      fi
24391
24392      # When large executables or shared objects are built, AIX ld can
24393      # have problems creating the table of contents.  If linking a library
24394      # or program results in "error TOC overflow" add -mminimal-toc to
24395      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24396      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24397
24398      archive_cmds_GCJ=''
24399      hardcode_direct_GCJ=yes
24400      hardcode_libdir_separator_GCJ=':'
24401      link_all_deplibs_GCJ=yes
24402
24403      if test "$GCC" = yes; then
24404	case $host_os in aix4.[012]|aix4.[012].*)
24405	# We only want to do this on AIX 4.2 and lower, the check
24406	# below for broken collect2 doesn't work under 4.3+
24407	  collect2name=`${CC} -print-prog-name=collect2`
24408	  if test -f "$collect2name" && \
24409  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
24410	  then
24411  	  # We have reworked collect2
24412  	  hardcode_direct_GCJ=yes
24413	  else
24414  	  # We have old collect2
24415  	  hardcode_direct_GCJ=unsupported
24416  	  # It fails to find uninstalled libraries when the uninstalled
24417  	  # path is not listed in the libpath.  Setting hardcode_minus_L
24418  	  # to unsupported forces relinking
24419  	  hardcode_minus_L_GCJ=yes
24420  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
24421  	  hardcode_libdir_separator_GCJ=
24422	  fi
24423	  ;;
24424	esac
24425	shared_flag='-shared'
24426	if test "$aix_use_runtimelinking" = yes; then
24427	  shared_flag="$shared_flag "'${wl}-G'
24428	fi
24429      else
24430	# not using gcc
24431	if test "$host_cpu" = ia64; then
24432  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24433  	# chokes on -Wl,-G. The following line is correct:
24434	  shared_flag='-G'
24435	else
24436	  if test "$aix_use_runtimelinking" = yes; then
24437	    shared_flag='${wl}-G'
24438	  else
24439	    shared_flag='${wl}-bM:SRE'
24440	  fi
24441	fi
24442      fi
24443
24444      # It seems that -bexpall does not export symbols beginning with
24445      # underscore (_), so it is better to generate a list of symbols to export.
24446      always_export_symbols_GCJ=yes
24447      if test "$aix_use_runtimelinking" = yes; then
24448	# Warning - without using the other runtime loading flags (-brtl),
24449	# -berok will link without error, but may produce a broken library.
24450	allow_undefined_flag_GCJ='-berok'
24451       # Determine the default libpath from the value encoded in an empty executable.
24452       cat >conftest.$ac_ext <<_ACEOF
24453/* confdefs.h.  */
24454_ACEOF
24455cat confdefs.h >>conftest.$ac_ext
24456cat >>conftest.$ac_ext <<_ACEOF
24457/* end confdefs.h.  */
24458
24459int
24460main ()
24461{
24462
24463  ;
24464  return 0;
24465}
24466_ACEOF
24467rm -f conftest.$ac_objext conftest$ac_exeext
24468if { (ac_try="$ac_link"
24469case "(($ac_try" in
24470  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24471  *) ac_try_echo=$ac_try;;
24472esac
24473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24474  (eval "$ac_link") 2>conftest.er1
24475  ac_status=$?
24476  grep -v '^ *+' conftest.er1 >conftest.err
24477  rm -f conftest.er1
24478  cat conftest.err >&5
24479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24480  (exit $ac_status); } &&
24481	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24482  { (case "(($ac_try" in
24483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24484  *) ac_try_echo=$ac_try;;
24485esac
24486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24487  (eval "$ac_try") 2>&5
24488  ac_status=$?
24489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24490  (exit $ac_status); }; } &&
24491	 { ac_try='test -s conftest$ac_exeext'
24492  { (case "(($ac_try" in
24493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24494  *) ac_try_echo=$ac_try;;
24495esac
24496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24497  (eval "$ac_try") 2>&5
24498  ac_status=$?
24499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24500  (exit $ac_status); }; }; then
24501
24502aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24503}'`
24504# Check for a 64-bit object if we didn't find anything.
24505if 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; }
24506}'`; fi
24507else
24508  echo "$as_me: failed program was:" >&5
24509sed 's/^/| /' conftest.$ac_ext >&5
24510
24511
24512fi
24513
24514rm -f core conftest.err conftest.$ac_objext \
24515      conftest$ac_exeext conftest.$ac_ext
24516if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24517
24518       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24519	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"
24520       else
24521	if test "$host_cpu" = ia64; then
24522	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24523	  allow_undefined_flag_GCJ="-z nodefs"
24524	  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"
24525	else
24526	 # Determine the default libpath from the value encoded in an empty executable.
24527	 cat >conftest.$ac_ext <<_ACEOF
24528/* confdefs.h.  */
24529_ACEOF
24530cat confdefs.h >>conftest.$ac_ext
24531cat >>conftest.$ac_ext <<_ACEOF
24532/* end confdefs.h.  */
24533
24534int
24535main ()
24536{
24537
24538  ;
24539  return 0;
24540}
24541_ACEOF
24542rm -f conftest.$ac_objext conftest$ac_exeext
24543if { (ac_try="$ac_link"
24544case "(($ac_try" in
24545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24546  *) ac_try_echo=$ac_try;;
24547esac
24548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24549  (eval "$ac_link") 2>conftest.er1
24550  ac_status=$?
24551  grep -v '^ *+' conftest.er1 >conftest.err
24552  rm -f conftest.er1
24553  cat conftest.err >&5
24554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24555  (exit $ac_status); } &&
24556	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24557  { (case "(($ac_try" in
24558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24559  *) ac_try_echo=$ac_try;;
24560esac
24561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24562  (eval "$ac_try") 2>&5
24563  ac_status=$?
24564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24565  (exit $ac_status); }; } &&
24566	 { ac_try='test -s conftest$ac_exeext'
24567  { (case "(($ac_try" in
24568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24569  *) ac_try_echo=$ac_try;;
24570esac
24571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24572  (eval "$ac_try") 2>&5
24573  ac_status=$?
24574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24575  (exit $ac_status); }; }; then
24576
24577aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24578}'`
24579# Check for a 64-bit object if we didn't find anything.
24580if 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; }
24581}'`; fi
24582else
24583  echo "$as_me: failed program was:" >&5
24584sed 's/^/| /' conftest.$ac_ext >&5
24585
24586
24587fi
24588
24589rm -f core conftest.err conftest.$ac_objext \
24590      conftest$ac_exeext conftest.$ac_ext
24591if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24592
24593	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24594	  # Warning - without using the other run time loading flags,
24595	  # -berok will link without error, but may produce a broken library.
24596	  no_undefined_flag_GCJ=' ${wl}-bernotok'
24597	  allow_undefined_flag_GCJ=' ${wl}-berok'
24598	  # Exported symbols can be pulled into shared objects from archives
24599	  whole_archive_flag_spec_GCJ='$convenience'
24600	  archive_cmds_need_lc_GCJ=yes
24601	  # This is similar to how AIX traditionally builds its shared libraries.
24602	  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'
24603	fi
24604      fi
24605      ;;
24606
24607    amigaos*)
24608      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)'
24609      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24610      hardcode_minus_L_GCJ=yes
24611      # see comment about different semantics on the GNU ld section
24612      ld_shlibs_GCJ=no
24613      ;;
24614
24615    bsdi[45]*)
24616      export_dynamic_flag_spec_GCJ=-rdynamic
24617      ;;
24618
24619    cygwin* | mingw* | pw32*)
24620      # When not using gcc, we currently assume that we are using
24621      # Microsoft Visual C++.
24622      # hardcode_libdir_flag_spec is actually meaningless, as there is
24623      # no search path for DLLs.
24624      hardcode_libdir_flag_spec_GCJ=' '
24625      allow_undefined_flag_GCJ=unsupported
24626      # Tell ltmain to make .lib files, not .a files.
24627      libext=lib
24628      # Tell ltmain to make .dll files, not .so files.
24629      shrext_cmds=".dll"
24630      # FIXME: Setting linknames here is a bad hack.
24631      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24632      # The linker will automatically build a .lib file if we build a DLL.
24633      old_archive_From_new_cmds_GCJ='true'
24634      # FIXME: Should let the user specify the lib program.
24635      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24636      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24637      enable_shared_with_static_runtimes_GCJ=yes
24638      ;;
24639
24640    darwin* | rhapsody*)
24641      case $host_os in
24642        rhapsody* | darwin1.[012])
24643         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24644         ;;
24645       *) # Darwin 1.3 on
24646         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24647           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24648         else
24649           case ${MACOSX_DEPLOYMENT_TARGET} in
24650             10.[012])
24651               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24652               ;;
24653             10.*)
24654               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24655               ;;
24656           esac
24657         fi
24658         ;;
24659      esac
24660      archive_cmds_need_lc_GCJ=no
24661      hardcode_direct_GCJ=no
24662      hardcode_automatic_GCJ=yes
24663      hardcode_shlibpath_var_GCJ=unsupported
24664      whole_archive_flag_spec_GCJ=''
24665      link_all_deplibs_GCJ=yes
24666    if test "$GCC" = yes ; then
24667    	output_verbose_link_cmd='echo'
24668        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24669      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24670      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24671      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}'
24672      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}'
24673    else
24674      case $cc_basename in
24675        xlc*)
24676         output_verbose_link_cmd='echo'
24677         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24678         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24679          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24680         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}'
24681          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}'
24682          ;;
24683       *)
24684         ld_shlibs_GCJ=no
24685          ;;
24686      esac
24687    fi
24688      ;;
24689
24690    dgux*)
24691      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24692      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24693      hardcode_shlibpath_var_GCJ=no
24694      ;;
24695
24696    freebsd1*)
24697      ld_shlibs_GCJ=no
24698      ;;
24699
24700    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24701    # support.  Future versions do this automatically, but an explicit c++rt0.o
24702    # does not break anything, and helps significantly (at the cost of a little
24703    # extra space).
24704    freebsd2.2*)
24705      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24706      hardcode_libdir_flag_spec_GCJ='-R$libdir'
24707      hardcode_direct_GCJ=yes
24708      hardcode_shlibpath_var_GCJ=no
24709      ;;
24710
24711    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24712    freebsd2*)
24713      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24714      hardcode_direct_GCJ=yes
24715      hardcode_minus_L_GCJ=yes
24716      hardcode_shlibpath_var_GCJ=no
24717      ;;
24718
24719    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24720    freebsd* | kfreebsd*-gnu | dragonfly*)
24721      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24722      hardcode_libdir_flag_spec_GCJ='-R$libdir'
24723      hardcode_direct_GCJ=yes
24724      hardcode_shlibpath_var_GCJ=no
24725      ;;
24726
24727    hpux9*)
24728      if test "$GCC" = yes; then
24729	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'
24730      else
24731	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'
24732      fi
24733      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24734      hardcode_libdir_separator_GCJ=:
24735      hardcode_direct_GCJ=yes
24736
24737      # hardcode_minus_L: Not really in the search PATH,
24738      # but as the default location of the library.
24739      hardcode_minus_L_GCJ=yes
24740      export_dynamic_flag_spec_GCJ='${wl}-E'
24741      ;;
24742
24743    hpux10*)
24744      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24745	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24746      else
24747	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24748      fi
24749      if test "$with_gnu_ld" = no; then
24750	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24751	hardcode_libdir_separator_GCJ=:
24752
24753	hardcode_direct_GCJ=yes
24754	export_dynamic_flag_spec_GCJ='${wl}-E'
24755
24756	# hardcode_minus_L: Not really in the search PATH,
24757	# but as the default location of the library.
24758	hardcode_minus_L_GCJ=yes
24759      fi
24760      ;;
24761
24762    hpux11*)
24763      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24764	case $host_cpu in
24765	hppa*64*)
24766	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24767	  ;;
24768	ia64*)
24769	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24770	  ;;
24771	*)
24772	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24773	  ;;
24774	esac
24775      else
24776	case $host_cpu in
24777	hppa*64*)
24778	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24779	  ;;
24780	ia64*)
24781	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24782	  ;;
24783	*)
24784	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24785	  ;;
24786	esac
24787      fi
24788      if test "$with_gnu_ld" = no; then
24789	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24790	hardcode_libdir_separator_GCJ=:
24791
24792	case $host_cpu in
24793	hppa*64*|ia64*)
24794	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24795	  hardcode_direct_GCJ=no
24796	  hardcode_shlibpath_var_GCJ=no
24797	  ;;
24798	*)
24799	  hardcode_direct_GCJ=yes
24800	  export_dynamic_flag_spec_GCJ='${wl}-E'
24801
24802	  # hardcode_minus_L: Not really in the search PATH,
24803	  # but as the default location of the library.
24804	  hardcode_minus_L_GCJ=yes
24805	  ;;
24806	esac
24807      fi
24808      ;;
24809
24810    irix5* | irix6* | nonstopux*)
24811      if test "$GCC" = yes; then
24812	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'
24813      else
24814	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'
24815	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24816      fi
24817      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24818      hardcode_libdir_separator_GCJ=:
24819      link_all_deplibs_GCJ=yes
24820      ;;
24821
24822    netbsd*)
24823      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24824	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24825      else
24826	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
24827      fi
24828      hardcode_libdir_flag_spec_GCJ='-R$libdir'
24829      hardcode_direct_GCJ=yes
24830      hardcode_shlibpath_var_GCJ=no
24831      ;;
24832
24833    newsos6)
24834      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24835      hardcode_direct_GCJ=yes
24836      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24837      hardcode_libdir_separator_GCJ=:
24838      hardcode_shlibpath_var_GCJ=no
24839      ;;
24840
24841    openbsd*)
24842      hardcode_direct_GCJ=yes
24843      hardcode_shlibpath_var_GCJ=no
24844      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24845	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24846	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24847	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24848	export_dynamic_flag_spec_GCJ='${wl}-E'
24849      else
24850       case $host_os in
24851	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24852	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24853	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
24854	   ;;
24855	 *)
24856	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24857	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24858	   ;;
24859       esac
24860      fi
24861      ;;
24862
24863    os2*)
24864      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24865      hardcode_minus_L_GCJ=yes
24866      allow_undefined_flag_GCJ=unsupported
24867      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'
24868      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24869      ;;
24870
24871    osf3*)
24872      if test "$GCC" = yes; then
24873	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24874	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'
24875      else
24876	allow_undefined_flag_GCJ=' -expect_unresolved \*'
24877	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'
24878      fi
24879      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24880      hardcode_libdir_separator_GCJ=:
24881      ;;
24882
24883    osf4* | osf5*)	# as osf3* with the addition of -msym flag
24884      if test "$GCC" = yes; then
24885	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24886	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'
24887	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24888      else
24889	allow_undefined_flag_GCJ=' -expect_unresolved \*'
24890	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'
24891	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~
24892	$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'
24893
24894	# Both c and cxx compiler support -rpath directly
24895	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24896      fi
24897      hardcode_libdir_separator_GCJ=:
24898      ;;
24899
24900    solaris*)
24901      no_undefined_flag_GCJ=' -z text'
24902      if test "$GCC" = yes; then
24903	wlarc='${wl}'
24904	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24905	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24906	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24907      else
24908	wlarc=''
24909	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24910	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24911  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24912      fi
24913      hardcode_libdir_flag_spec_GCJ='-R$libdir'
24914      hardcode_shlibpath_var_GCJ=no
24915      case $host_os in
24916      solaris2.[0-5] | solaris2.[0-5].*) ;;
24917      *)
24918 	# The compiler driver will combine linker options so we
24919 	# cannot just pass the convience library names through
24920 	# without $wl, iff we do not link with $LD.
24921 	# Luckily, gcc supports the same syntax we need for Sun Studio.
24922 	# Supported since Solaris 2.6 (maybe 2.5.1?)
24923 	case $wlarc in
24924 	'')
24925 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24926 	*)
24927 	  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' ;;
24928 	esac ;;
24929      esac
24930      link_all_deplibs_GCJ=yes
24931      ;;
24932
24933    sunos4*)
24934      if test "x$host_vendor" = xsequent; then
24935	# Use $CC to link under sequent, because it throws in some extra .o
24936	# files that make .init and .fini sections work.
24937	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24938      else
24939	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24940      fi
24941      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24942      hardcode_direct_GCJ=yes
24943      hardcode_minus_L_GCJ=yes
24944      hardcode_shlibpath_var_GCJ=no
24945      ;;
24946
24947    sysv4)
24948      case $host_vendor in
24949	sni)
24950	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24951	  hardcode_direct_GCJ=yes # is this really true???
24952	;;
24953	siemens)
24954	  ## LD is ld it makes a PLAMLIB
24955	  ## CC just makes a GrossModule.
24956	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24957	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24958	  hardcode_direct_GCJ=no
24959        ;;
24960	motorola)
24961	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24962	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24963	;;
24964      esac
24965      runpath_var='LD_RUN_PATH'
24966      hardcode_shlibpath_var_GCJ=no
24967      ;;
24968
24969    sysv4.3*)
24970      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24971      hardcode_shlibpath_var_GCJ=no
24972      export_dynamic_flag_spec_GCJ='-Bexport'
24973      ;;
24974
24975    sysv4*MP*)
24976      if test -d /usr/nec; then
24977	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24978	hardcode_shlibpath_var_GCJ=no
24979	runpath_var=LD_RUN_PATH
24980	hardcode_runpath_var=yes
24981	ld_shlibs_GCJ=yes
24982      fi
24983      ;;
24984
24985    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24986      no_undefined_flag_GCJ='${wl}-z,text'
24987      archive_cmds_need_lc_GCJ=no
24988      hardcode_shlibpath_var_GCJ=no
24989      runpath_var='LD_RUN_PATH'
24990
24991      if test "$GCC" = yes; then
24992	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24993	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24994      else
24995	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24996	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24997      fi
24998      ;;
24999
25000    sysv5* | sco3.2v5* | sco5v6*)
25001      # Note: We can NOT use -z defs as we might desire, because we do not
25002      # link with -lc, and that would cause any symbols used from libc to
25003      # always be unresolved, which means just about no library would
25004      # ever link correctly.  If we're not using GNU ld we use -z text
25005      # though, which does catch some bad symbols but isn't as heavy-handed
25006      # as -z defs.
25007      no_undefined_flag_GCJ='${wl}-z,text'
25008      allow_undefined_flag_GCJ='${wl}-z,nodefs'
25009      archive_cmds_need_lc_GCJ=no
25010      hardcode_shlibpath_var_GCJ=no
25011      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25012      hardcode_libdir_separator_GCJ=':'
25013      link_all_deplibs_GCJ=yes
25014      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25015      runpath_var='LD_RUN_PATH'
25016
25017      if test "$GCC" = yes; then
25018	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25019	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25020      else
25021	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25022	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25023      fi
25024      ;;
25025
25026    uts4*)
25027      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25028      hardcode_libdir_flag_spec_GCJ='-L$libdir'
25029      hardcode_shlibpath_var_GCJ=no
25030      ;;
25031
25032    *)
25033      ld_shlibs_GCJ=no
25034      ;;
25035    esac
25036  fi
25037
25038{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25039echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25040test "$ld_shlibs_GCJ" = no && can_build_shared=no
25041
25042#
25043# Do we need to explicitly link libc?
25044#
25045case "x$archive_cmds_need_lc_GCJ" in
25046x|xyes)
25047  # Assume -lc should be added
25048  archive_cmds_need_lc_GCJ=yes
25049
25050  if test "$enable_shared" = yes && test "$GCC" = yes; then
25051    case $archive_cmds_GCJ in
25052    *'~'*)
25053      # FIXME: we may have to deal with multi-command sequences.
25054      ;;
25055    '$CC '*)
25056      # Test whether the compiler implicitly links with -lc since on some
25057      # systems, -lgcc has to come before -lc. If gcc already passes -lc
25058      # to ld, don't add -lc before -lgcc.
25059      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25060echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25061      $rm conftest*
25062      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25063
25064      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25065  (eval $ac_compile) 2>&5
25066  ac_status=$?
25067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25068  (exit $ac_status); } 2>conftest.err; then
25069        soname=conftest
25070        lib=conftest
25071        libobjs=conftest.$ac_objext
25072        deplibs=
25073        wl=$lt_prog_compiler_wl_GCJ
25074	pic_flag=$lt_prog_compiler_pic_GCJ
25075        compiler_flags=-v
25076        linker_flags=-v
25077        verstring=
25078        output_objdir=.
25079        libname=conftest
25080        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25081        allow_undefined_flag_GCJ=
25082        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25083  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25084  ac_status=$?
25085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25086  (exit $ac_status); }
25087        then
25088	  archive_cmds_need_lc_GCJ=no
25089        else
25090	  archive_cmds_need_lc_GCJ=yes
25091        fi
25092        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25093      else
25094        cat conftest.err 1>&5
25095      fi
25096      $rm conftest*
25097      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25098echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25099      ;;
25100    esac
25101  fi
25102  ;;
25103esac
25104
25105{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25106echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25107library_names_spec=
25108libname_spec='lib$name'
25109soname_spec=
25110shrext_cmds=".so"
25111postinstall_cmds=
25112postuninstall_cmds=
25113finish_cmds=
25114finish_eval=
25115shlibpath_var=
25116shlibpath_overrides_runpath=unknown
25117version_type=none
25118dynamic_linker="$host_os ld.so"
25119sys_lib_dlsearch_path_spec="/lib /usr/lib"
25120if test "$GCC" = yes; then
25121  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25122  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25123    # if the path contains ";" then we assume it to be the separator
25124    # otherwise default to the standard path separator (i.e. ":") - it is
25125    # assumed that no part of a normal pathname contains ";" but that should
25126    # okay in the real world where ";" in dirpaths is itself problematic.
25127    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25128  else
25129    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25130  fi
25131else
25132  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25133fi
25134need_lib_prefix=unknown
25135hardcode_into_libs=no
25136
25137# when you set need_version to no, make sure it does not cause -set_version
25138# flags to be left without arguments
25139need_version=unknown
25140
25141case $host_os in
25142aix3*)
25143  version_type=linux
25144  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25145  shlibpath_var=LIBPATH
25146
25147  # AIX 3 has no versioning support, so we append a major version to the name.
25148  soname_spec='${libname}${release}${shared_ext}$major'
25149  ;;
25150
25151aix4* | aix5*)
25152  version_type=linux
25153  need_lib_prefix=no
25154  need_version=no
25155  hardcode_into_libs=yes
25156  if test "$host_cpu" = ia64; then
25157    # AIX 5 supports IA64
25158    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25159    shlibpath_var=LD_LIBRARY_PATH
25160  else
25161    # With GCC up to 2.95.x, collect2 would create an import file
25162    # for dependence libraries.  The import file would start with
25163    # the line `#! .'.  This would cause the generated library to
25164    # depend on `.', always an invalid library.  This was fixed in
25165    # development snapshots of GCC prior to 3.0.
25166    case $host_os in
25167      aix4 | aix4.[01] | aix4.[01].*)
25168      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25169	   echo ' yes '
25170	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25171	:
25172      else
25173	can_build_shared=no
25174      fi
25175      ;;
25176    esac
25177    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25178    # soname into executable. Probably we can add versioning support to
25179    # collect2, so additional links can be useful in future.
25180    if test "$aix_use_runtimelinking" = yes; then
25181      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25182      # instead of lib<name>.a to let people know that these are not
25183      # typical AIX shared libraries.
25184      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25185    else
25186      # We preserve .a as extension for shared libraries through AIX4.2
25187      # and later when we are not doing run time linking.
25188      library_names_spec='${libname}${release}.a $libname.a'
25189      soname_spec='${libname}${release}${shared_ext}$major'
25190    fi
25191    shlibpath_var=LIBPATH
25192  fi
25193  ;;
25194
25195amigaos*)
25196  library_names_spec='$libname.ixlibrary $libname.a'
25197  # Create ${libname}_ixlibrary.a entries in /sys/libs.
25198  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'
25199  ;;
25200
25201beos*)
25202  library_names_spec='${libname}${shared_ext}'
25203  dynamic_linker="$host_os ld.so"
25204  shlibpath_var=LIBRARY_PATH
25205  ;;
25206
25207bsdi[45]*)
25208  version_type=linux
25209  need_version=no
25210  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25211  soname_spec='${libname}${release}${shared_ext}$major'
25212  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25213  shlibpath_var=LD_LIBRARY_PATH
25214  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25215  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25216  # the default ld.so.conf also contains /usr/contrib/lib and
25217  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25218  # libtool to hard-code these into programs
25219  ;;
25220
25221cygwin* | mingw* | pw32*)
25222  version_type=windows
25223  shrext_cmds=".dll"
25224  need_version=no
25225  need_lib_prefix=no
25226
25227  case $GCC,$host_os in
25228  yes,cygwin* | yes,mingw* | yes,pw32*)
25229    library_names_spec='$libname.dll.a'
25230    # DLL is installed to $(libdir)/../bin by postinstall_cmds
25231    postinstall_cmds='base_file=`basename \${file}`~
25232      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25233      dldir=$destdir/`dirname \$dlpath`~
25234      test -d \$dldir || mkdir -p \$dldir~
25235      $install_prog $dir/$dlname \$dldir/$dlname~
25236      chmod a+x \$dldir/$dlname'
25237    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25238      dlpath=$dir/\$dldll~
25239       $rm \$dlpath'
25240    shlibpath_overrides_runpath=yes
25241
25242    case $host_os in
25243    cygwin*)
25244      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25245      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25246      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25247      ;;
25248    mingw*)
25249      # MinGW DLLs use traditional 'lib' prefix
25250      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25251      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25252      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25253        # It is most probably a Windows format PATH printed by
25254        # mingw gcc, but we are running on Cygwin. Gcc prints its search
25255        # path with ; separators, and with drive letters. We can handle the
25256        # drive letters (cygwin fileutils understands them), so leave them,
25257        # especially as we might pass files found there to a mingw objdump,
25258        # which wouldn't understand a cygwinified path. Ahh.
25259        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25260      else
25261        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25262      fi
25263      ;;
25264    pw32*)
25265      # pw32 DLLs use 'pw' prefix rather than 'lib'
25266      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25267      ;;
25268    esac
25269    ;;
25270
25271  *)
25272    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25273    ;;
25274  esac
25275  dynamic_linker='Win32 ld.exe'
25276  # FIXME: first we should search . and the directory the executable is in
25277  shlibpath_var=PATH
25278  ;;
25279
25280darwin* | rhapsody*)
25281  dynamic_linker="$host_os dyld"
25282  version_type=darwin
25283  need_lib_prefix=no
25284  need_version=no
25285  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25286  soname_spec='${libname}${release}${major}$shared_ext'
25287  shlibpath_overrides_runpath=yes
25288  shlibpath_var=DYLD_LIBRARY_PATH
25289  shrext_cmds='.dylib'
25290  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25291  if test "$GCC" = yes; then
25292    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"`
25293  else
25294    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25295  fi
25296  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25297  ;;
25298
25299dgux*)
25300  version_type=linux
25301  need_lib_prefix=no
25302  need_version=no
25303  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25304  soname_spec='${libname}${release}${shared_ext}$major'
25305  shlibpath_var=LD_LIBRARY_PATH
25306  ;;
25307
25308freebsd1*)
25309  dynamic_linker=no
25310  ;;
25311
25312kfreebsd*-gnu)
25313  version_type=linux
25314  need_lib_prefix=no
25315  need_version=no
25316  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25317  soname_spec='${libname}${release}${shared_ext}$major'
25318  shlibpath_var=LD_LIBRARY_PATH
25319  shlibpath_overrides_runpath=no
25320  hardcode_into_libs=yes
25321  dynamic_linker='GNU ld.so'
25322  ;;
25323
25324freebsd* | dragonfly*)
25325  # DragonFly does not have aout.  When/if they implement a new
25326  # versioning mechanism, adjust this.
25327  if test -x /usr/bin/objformat; then
25328    objformat=`/usr/bin/objformat`
25329  else
25330    case $host_os in
25331    freebsd[123]*) objformat=aout ;;
25332    *) objformat=elf ;;
25333    esac
25334  fi
25335  version_type=freebsd-$objformat
25336  case $version_type in
25337    freebsd-elf*)
25338      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25339      need_version=no
25340      need_lib_prefix=no
25341      ;;
25342    freebsd-*)
25343      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25344      need_version=yes
25345      ;;
25346  esac
25347  shlibpath_var=LD_LIBRARY_PATH
25348  case $host_os in
25349  freebsd2*)
25350    shlibpath_overrides_runpath=yes
25351    ;;
25352  freebsd3.[01]* | freebsdelf3.[01]*)
25353    shlibpath_overrides_runpath=yes
25354    hardcode_into_libs=yes
25355    ;;
25356  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25357  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25358    shlibpath_overrides_runpath=no
25359    hardcode_into_libs=yes
25360    ;;
25361  freebsd*) # from 4.6 on
25362    shlibpath_overrides_runpath=yes
25363    hardcode_into_libs=yes
25364    ;;
25365  esac
25366  ;;
25367
25368gnu*)
25369  version_type=linux
25370  need_lib_prefix=no
25371  need_version=no
25372  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25373  soname_spec='${libname}${release}${shared_ext}$major'
25374  shlibpath_var=LD_LIBRARY_PATH
25375  hardcode_into_libs=yes
25376  ;;
25377
25378hpux9* | hpux10* | hpux11*)
25379  # Give a soname corresponding to the major version so that dld.sl refuses to
25380  # link against other versions.
25381  version_type=sunos
25382  need_lib_prefix=no
25383  need_version=no
25384  case $host_cpu in
25385  ia64*)
25386    shrext_cmds='.so'
25387    hardcode_into_libs=yes
25388    dynamic_linker="$host_os dld.so"
25389    shlibpath_var=LD_LIBRARY_PATH
25390    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25391    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25392    soname_spec='${libname}${release}${shared_ext}$major'
25393    if test "X$HPUX_IA64_MODE" = X32; then
25394      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25395    else
25396      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25397    fi
25398    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25399    ;;
25400   hppa*64*)
25401     shrext_cmds='.sl'
25402     hardcode_into_libs=yes
25403     dynamic_linker="$host_os dld.sl"
25404     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25405     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25406     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25407     soname_spec='${libname}${release}${shared_ext}$major'
25408     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25409     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25410     ;;
25411   *)
25412    shrext_cmds='.sl'
25413    dynamic_linker="$host_os dld.sl"
25414    shlibpath_var=SHLIB_PATH
25415    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25416    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25417    soname_spec='${libname}${release}${shared_ext}$major'
25418    ;;
25419  esac
25420  # HP-UX runs *really* slowly unless shared libraries are mode 555.
25421  postinstall_cmds='chmod 555 $lib'
25422  ;;
25423
25424interix3*)
25425  version_type=linux
25426  need_lib_prefix=no
25427  need_version=no
25428  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25429  soname_spec='${libname}${release}${shared_ext}$major'
25430  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25431  shlibpath_var=LD_LIBRARY_PATH
25432  shlibpath_overrides_runpath=no
25433  hardcode_into_libs=yes
25434  ;;
25435
25436irix5* | irix6* | nonstopux*)
25437  case $host_os in
25438    nonstopux*) version_type=nonstopux ;;
25439    *)
25440	if test "$lt_cv_prog_gnu_ld" = yes; then
25441		version_type=linux
25442	else
25443		version_type=irix
25444	fi ;;
25445  esac
25446  need_lib_prefix=no
25447  need_version=no
25448  soname_spec='${libname}${release}${shared_ext}$major'
25449  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25450  case $host_os in
25451  irix5* | nonstopux*)
25452    libsuff= shlibsuff=
25453    ;;
25454  *)
25455    case $LD in # libtool.m4 will add one of these switches to LD
25456    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25457      libsuff= shlibsuff= libmagic=32-bit;;
25458    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25459      libsuff=32 shlibsuff=N32 libmagic=N32;;
25460    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25461      libsuff=64 shlibsuff=64 libmagic=64-bit;;
25462    *) libsuff= shlibsuff= libmagic=never-match;;
25463    esac
25464    ;;
25465  esac
25466  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25467  shlibpath_overrides_runpath=no
25468  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25469  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25470  hardcode_into_libs=yes
25471  ;;
25472
25473# No shared lib support for Linux oldld, aout, or coff.
25474linux*oldld* | linux*aout* | linux*coff*)
25475  dynamic_linker=no
25476  ;;
25477
25478# This must be Linux ELF.
25479linux*)
25480  version_type=linux
25481  need_lib_prefix=no
25482  need_version=no
25483  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25484  soname_spec='${libname}${release}${shared_ext}$major'
25485  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25486  shlibpath_var=LD_LIBRARY_PATH
25487  shlibpath_overrides_runpath=no
25488  # This implies no fast_install, which is unacceptable.
25489  # Some rework will be needed to allow for fast_install
25490  # before this can be enabled.
25491  hardcode_into_libs=yes
25492
25493  # Append ld.so.conf contents to the search path
25494  if test -f /etc/ld.so.conf; then
25495    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' ' '`
25496    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25497  fi
25498
25499  # We used to test for /lib/ld.so.1 and disable shared libraries on
25500  # powerpc, because MkLinux only supported shared libraries with the
25501  # GNU dynamic linker.  Since this was broken with cross compilers,
25502  # most powerpc-linux boxes support dynamic linking these days and
25503  # people can always --disable-shared, the test was removed, and we
25504  # assume the GNU/Linux dynamic linker is in use.
25505  dynamic_linker='GNU/Linux ld.so'
25506  ;;
25507
25508knetbsd*-gnu)
25509  version_type=linux
25510  need_lib_prefix=no
25511  need_version=no
25512  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25513  soname_spec='${libname}${release}${shared_ext}$major'
25514  shlibpath_var=LD_LIBRARY_PATH
25515  shlibpath_overrides_runpath=no
25516  hardcode_into_libs=yes
25517  dynamic_linker='GNU ld.so'
25518  ;;
25519
25520netbsd*)
25521  version_type=sunos
25522  need_lib_prefix=no
25523  need_version=no
25524  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25525    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25526    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25527    dynamic_linker='NetBSD (a.out) ld.so'
25528  else
25529    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25530    soname_spec='${libname}${release}${shared_ext}$major'
25531    dynamic_linker='NetBSD ld.elf_so'
25532  fi
25533  shlibpath_var=LD_LIBRARY_PATH
25534  shlibpath_overrides_runpath=yes
25535  hardcode_into_libs=yes
25536  ;;
25537
25538newsos6)
25539  version_type=linux
25540  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25541  shlibpath_var=LD_LIBRARY_PATH
25542  shlibpath_overrides_runpath=yes
25543  ;;
25544
25545nto-qnx*)
25546  version_type=linux
25547  need_lib_prefix=no
25548  need_version=no
25549  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25550  soname_spec='${libname}${release}${shared_ext}$major'
25551  shlibpath_var=LD_LIBRARY_PATH
25552  shlibpath_overrides_runpath=yes
25553  ;;
25554
25555openbsd*)
25556  version_type=sunos
25557  sys_lib_dlsearch_path_spec="/usr/lib"
25558  need_lib_prefix=no
25559  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25560  case $host_os in
25561    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25562    *)                         need_version=no  ;;
25563  esac
25564  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25565  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25566  shlibpath_var=LD_LIBRARY_PATH
25567  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25568    case $host_os in
25569      openbsd2.[89] | openbsd2.[89].*)
25570	shlibpath_overrides_runpath=no
25571	;;
25572      *)
25573	shlibpath_overrides_runpath=yes
25574	;;
25575      esac
25576  else
25577    shlibpath_overrides_runpath=yes
25578  fi
25579  ;;
25580
25581os2*)
25582  libname_spec='$name'
25583  shrext_cmds=".dll"
25584  need_lib_prefix=no
25585  library_names_spec='$libname${shared_ext} $libname.a'
25586  dynamic_linker='OS/2 ld.exe'
25587  shlibpath_var=LIBPATH
25588  ;;
25589
25590osf3* | osf4* | osf5*)
25591  version_type=osf
25592  need_lib_prefix=no
25593  need_version=no
25594  soname_spec='${libname}${release}${shared_ext}$major'
25595  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25596  shlibpath_var=LD_LIBRARY_PATH
25597  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25598  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25599  ;;
25600
25601solaris*)
25602  version_type=linux
25603  need_lib_prefix=no
25604  need_version=no
25605  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25606  soname_spec='${libname}${release}${shared_ext}$major'
25607  shlibpath_var=LD_LIBRARY_PATH
25608  shlibpath_overrides_runpath=yes
25609  hardcode_into_libs=yes
25610  # ldd complains unless libraries are executable
25611  postinstall_cmds='chmod +x $lib'
25612  ;;
25613
25614sunos4*)
25615  version_type=sunos
25616  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25617  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25618  shlibpath_var=LD_LIBRARY_PATH
25619  shlibpath_overrides_runpath=yes
25620  if test "$with_gnu_ld" = yes; then
25621    need_lib_prefix=no
25622  fi
25623  need_version=yes
25624  ;;
25625
25626sysv4 | sysv4.3*)
25627  version_type=linux
25628  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25629  soname_spec='${libname}${release}${shared_ext}$major'
25630  shlibpath_var=LD_LIBRARY_PATH
25631  case $host_vendor in
25632    sni)
25633      shlibpath_overrides_runpath=no
25634      need_lib_prefix=no
25635      export_dynamic_flag_spec='${wl}-Blargedynsym'
25636      runpath_var=LD_RUN_PATH
25637      ;;
25638    siemens)
25639      need_lib_prefix=no
25640      ;;
25641    motorola)
25642      need_lib_prefix=no
25643      need_version=no
25644      shlibpath_overrides_runpath=no
25645      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25646      ;;
25647  esac
25648  ;;
25649
25650sysv4*MP*)
25651  if test -d /usr/nec ;then
25652    version_type=linux
25653    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25654    soname_spec='$libname${shared_ext}.$major'
25655    shlibpath_var=LD_LIBRARY_PATH
25656  fi
25657  ;;
25658
25659sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25660  version_type=freebsd-elf
25661  need_lib_prefix=no
25662  need_version=no
25663  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25664  soname_spec='${libname}${release}${shared_ext}$major'
25665  shlibpath_var=LD_LIBRARY_PATH
25666  hardcode_into_libs=yes
25667  if test "$with_gnu_ld" = yes; then
25668    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25669    shlibpath_overrides_runpath=no
25670  else
25671    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25672    shlibpath_overrides_runpath=yes
25673    case $host_os in
25674      sco3.2v5*)
25675        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25676	;;
25677    esac
25678  fi
25679  sys_lib_dlsearch_path_spec='/usr/lib'
25680  ;;
25681
25682uts4*)
25683  version_type=linux
25684  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25685  soname_spec='${libname}${release}${shared_ext}$major'
25686  shlibpath_var=LD_LIBRARY_PATH
25687  ;;
25688
25689*)
25690  dynamic_linker=no
25691  ;;
25692esac
25693{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25694echo "${ECHO_T}$dynamic_linker" >&6; }
25695test "$dynamic_linker" = no && can_build_shared=no
25696
25697variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25698if test "$GCC" = yes; then
25699  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25700fi
25701
25702{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25703echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25704hardcode_action_GCJ=
25705if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25706   test -n "$runpath_var_GCJ" || \
25707   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25708
25709  # We can hardcode non-existant directories.
25710  if test "$hardcode_direct_GCJ" != no &&
25711     # If the only mechanism to avoid hardcoding is shlibpath_var, we
25712     # have to relink, otherwise we might link with an installed library
25713     # when we should be linking with a yet-to-be-installed one
25714     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25715     test "$hardcode_minus_L_GCJ" != no; then
25716    # Linking always hardcodes the temporary library directory.
25717    hardcode_action_GCJ=relink
25718  else
25719    # We can link without hardcoding, and we can hardcode nonexisting dirs.
25720    hardcode_action_GCJ=immediate
25721  fi
25722else
25723  # We cannot hardcode anything, or else we can only hardcode existing
25724  # directories.
25725  hardcode_action_GCJ=unsupported
25726fi
25727{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25728echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25729
25730if test "$hardcode_action_GCJ" = relink; then
25731  # Fast installation is not supported
25732  enable_fast_install=no
25733elif test "$shlibpath_overrides_runpath" = yes ||
25734     test "$enable_shared" = no; then
25735  # Fast installation is not necessary
25736  enable_fast_install=needless
25737fi
25738
25739
25740# The else clause should only fire when bootstrapping the
25741# libtool distribution, otherwise you forgot to ship ltmain.sh
25742# with your package, and you will get complaints that there are
25743# no rules to generate ltmain.sh.
25744if test -f "$ltmain"; then
25745  # See if we are running on zsh, and set the options which allow our commands through
25746  # without removal of \ escapes.
25747  if test -n "${ZSH_VERSION+set}" ; then
25748    setopt NO_GLOB_SUBST
25749  fi
25750  # Now quote all the things that may contain metacharacters while being
25751  # careful not to overquote the AC_SUBSTed values.  We take copies of the
25752  # variables and quote the copies for generation of the libtool script.
25753  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25754    SED SHELL STRIP \
25755    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25756    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25757    deplibs_check_method reload_flag reload_cmds need_locks \
25758    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25759    lt_cv_sys_global_symbol_to_c_name_address \
25760    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25761    old_postinstall_cmds old_postuninstall_cmds \
25762    compiler_GCJ \
25763    CC_GCJ \
25764    LD_GCJ \
25765    lt_prog_compiler_wl_GCJ \
25766    lt_prog_compiler_pic_GCJ \
25767    lt_prog_compiler_static_GCJ \
25768    lt_prog_compiler_no_builtin_flag_GCJ \
25769    export_dynamic_flag_spec_GCJ \
25770    thread_safe_flag_spec_GCJ \
25771    whole_archive_flag_spec_GCJ \
25772    enable_shared_with_static_runtimes_GCJ \
25773    old_archive_cmds_GCJ \
25774    old_archive_from_new_cmds_GCJ \
25775    predep_objects_GCJ \
25776    postdep_objects_GCJ \
25777    predeps_GCJ \
25778    postdeps_GCJ \
25779    compiler_lib_search_path_GCJ \
25780    archive_cmds_GCJ \
25781    archive_expsym_cmds_GCJ \
25782    postinstall_cmds_GCJ \
25783    postuninstall_cmds_GCJ \
25784    old_archive_from_expsyms_cmds_GCJ \
25785    allow_undefined_flag_GCJ \
25786    no_undefined_flag_GCJ \
25787    export_symbols_cmds_GCJ \
25788    hardcode_libdir_flag_spec_GCJ \
25789    hardcode_libdir_flag_spec_ld_GCJ \
25790    hardcode_libdir_separator_GCJ \
25791    hardcode_automatic_GCJ \
25792    module_cmds_GCJ \
25793    module_expsym_cmds_GCJ \
25794    lt_cv_prog_compiler_c_o_GCJ \
25795    exclude_expsyms_GCJ \
25796    include_expsyms_GCJ; do
25797
25798    case $var in
25799    old_archive_cmds_GCJ | \
25800    old_archive_from_new_cmds_GCJ | \
25801    archive_cmds_GCJ | \
25802    archive_expsym_cmds_GCJ | \
25803    module_cmds_GCJ | \
25804    module_expsym_cmds_GCJ | \
25805    old_archive_from_expsyms_cmds_GCJ | \
25806    export_symbols_cmds_GCJ | \
25807    extract_expsyms_cmds | reload_cmds | finish_cmds | \
25808    postinstall_cmds | postuninstall_cmds | \
25809    old_postinstall_cmds | old_postuninstall_cmds | \
25810    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25811      # Double-quote double-evaled strings.
25812      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25813      ;;
25814    *)
25815      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25816      ;;
25817    esac
25818  done
25819
25820  case $lt_echo in
25821  *'\$0 --fallback-echo"')
25822    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25823    ;;
25824  esac
25825
25826cfgfile="$ofile"
25827
25828  cat <<__EOF__ >> "$cfgfile"
25829# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25830
25831# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25832
25833# Shell to use when invoking shell scripts.
25834SHELL=$lt_SHELL
25835
25836# Whether or not to build shared libraries.
25837build_libtool_libs=$enable_shared
25838
25839# Whether or not to build static libraries.
25840build_old_libs=$enable_static
25841
25842# Whether or not to add -lc for building shared libraries.
25843build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25844
25845# Whether or not to disallow shared libs when runtime libs are static
25846allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25847
25848# Whether or not to optimize for fast installation.
25849fast_install=$enable_fast_install
25850
25851# The host system.
25852host_alias=$host_alias
25853host=$host
25854host_os=$host_os
25855
25856# The build system.
25857build_alias=$build_alias
25858build=$build
25859build_os=$build_os
25860
25861# An echo program that does not interpret backslashes.
25862echo=$lt_echo
25863
25864# The archiver.
25865AR=$lt_AR
25866AR_FLAGS=$lt_AR_FLAGS
25867
25868# A C compiler.
25869LTCC=$lt_LTCC
25870
25871# LTCC compiler flags.
25872LTCFLAGS=$lt_LTCFLAGS
25873
25874# A language-specific compiler.
25875CC=$lt_compiler_GCJ
25876
25877# Is the compiler the GNU C compiler?
25878with_gcc=$GCC_GCJ
25879
25880# An ERE matcher.
25881EGREP=$lt_EGREP
25882
25883# The linker used to build libraries.
25884LD=$lt_LD_GCJ
25885
25886# Whether we need hard or soft links.
25887LN_S=$lt_LN_S
25888
25889# A BSD-compatible nm program.
25890NM=$lt_NM
25891
25892# A symbol stripping program
25893STRIP=$lt_STRIP
25894
25895# Used to examine libraries when file_magic_cmd begins "file"
25896MAGIC_CMD=$MAGIC_CMD
25897
25898# Used on cygwin: DLL creation program.
25899DLLTOOL="$DLLTOOL"
25900
25901# Used on cygwin: object dumper.
25902OBJDUMP="$OBJDUMP"
25903
25904# Used on cygwin: assembler.
25905AS="$AS"
25906
25907# The name of the directory that contains temporary libtool files.
25908objdir=$objdir
25909
25910# How to create reloadable object files.
25911reload_flag=$lt_reload_flag
25912reload_cmds=$lt_reload_cmds
25913
25914# How to pass a linker flag through the compiler.
25915wl=$lt_lt_prog_compiler_wl_GCJ
25916
25917# Object file suffix (normally "o").
25918objext="$ac_objext"
25919
25920# Old archive suffix (normally "a").
25921libext="$libext"
25922
25923# Shared library suffix (normally ".so").
25924shrext_cmds='$shrext_cmds'
25925
25926# Executable file suffix (normally "").
25927exeext="$exeext"
25928
25929# Additional compiler flags for building library objects.
25930pic_flag=$lt_lt_prog_compiler_pic_GCJ
25931pic_mode=$pic_mode
25932
25933# What is the maximum length of a command?
25934max_cmd_len=$lt_cv_sys_max_cmd_len
25935
25936# Does compiler simultaneously support -c and -o options?
25937compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25938
25939# Must we lock files when doing compilation?
25940need_locks=$lt_need_locks
25941
25942# Do we need the lib prefix for modules?
25943need_lib_prefix=$need_lib_prefix
25944
25945# Do we need a version for libraries?
25946need_version=$need_version
25947
25948# Whether dlopen is supported.
25949dlopen_support=$enable_dlopen
25950
25951# Whether dlopen of programs is supported.
25952dlopen_self=$enable_dlopen_self
25953
25954# Whether dlopen of statically linked programs is supported.
25955dlopen_self_static=$enable_dlopen_self_static
25956
25957# Compiler flag to prevent dynamic linking.
25958link_static_flag=$lt_lt_prog_compiler_static_GCJ
25959
25960# Compiler flag to turn off builtin functions.
25961no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25962
25963# Compiler flag to allow reflexive dlopens.
25964export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25965
25966# Compiler flag to generate shared objects directly from archives.
25967whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25968
25969# Compiler flag to generate thread-safe objects.
25970thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25971
25972# Library versioning type.
25973version_type=$version_type
25974
25975# Format of library name prefix.
25976libname_spec=$lt_libname_spec
25977
25978# List of archive names.  First name is the real one, the rest are links.
25979# The last name is the one that the linker finds with -lNAME.
25980library_names_spec=$lt_library_names_spec
25981
25982# The coded name of the library, if different from the real name.
25983soname_spec=$lt_soname_spec
25984
25985# Commands used to build and install an old-style archive.
25986RANLIB=$lt_RANLIB
25987old_archive_cmds=$lt_old_archive_cmds_GCJ
25988old_postinstall_cmds=$lt_old_postinstall_cmds
25989old_postuninstall_cmds=$lt_old_postuninstall_cmds
25990
25991# Create an old-style archive from a shared archive.
25992old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25993
25994# Create a temporary old-style archive to link instead of a shared archive.
25995old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25996
25997# Commands used to build and install a shared archive.
25998archive_cmds=$lt_archive_cmds_GCJ
25999archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26000postinstall_cmds=$lt_postinstall_cmds
26001postuninstall_cmds=$lt_postuninstall_cmds
26002
26003# Commands used to build a loadable module (assumed same as above if empty)
26004module_cmds=$lt_module_cmds_GCJ
26005module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26006
26007# Commands to strip libraries.
26008old_striplib=$lt_old_striplib
26009striplib=$lt_striplib
26010
26011# Dependencies to place before the objects being linked to create a
26012# shared library.
26013predep_objects=$lt_predep_objects_GCJ
26014
26015# Dependencies to place after the objects being linked to create a
26016# shared library.
26017postdep_objects=$lt_postdep_objects_GCJ
26018
26019# Dependencies to place before the objects being linked to create a
26020# shared library.
26021predeps=$lt_predeps_GCJ
26022
26023# Dependencies to place after the objects being linked to create a
26024# shared library.
26025postdeps=$lt_postdeps_GCJ
26026
26027# The library search path used internally by the compiler when linking
26028# a shared library.
26029compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26030
26031# Method to check whether dependent libraries are shared objects.
26032deplibs_check_method=$lt_deplibs_check_method
26033
26034# Command to use when deplibs_check_method == file_magic.
26035file_magic_cmd=$lt_file_magic_cmd
26036
26037# Flag that allows shared libraries with undefined symbols to be built.
26038allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26039
26040# Flag that forces no undefined symbols.
26041no_undefined_flag=$lt_no_undefined_flag_GCJ
26042
26043# Commands used to finish a libtool library installation in a directory.
26044finish_cmds=$lt_finish_cmds
26045
26046# Same as above, but a single script fragment to be evaled but not shown.
26047finish_eval=$lt_finish_eval
26048
26049# Take the output of nm and produce a listing of raw symbols and C names.
26050global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26051
26052# Transform the output of nm in a proper C declaration
26053global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26054
26055# Transform the output of nm in a C name address pair
26056global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26057
26058# This is the shared library runtime path variable.
26059runpath_var=$runpath_var
26060
26061# This is the shared library path variable.
26062shlibpath_var=$shlibpath_var
26063
26064# Is shlibpath searched before the hard-coded library search path?
26065shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26066
26067# How to hardcode a shared library path into an executable.
26068hardcode_action=$hardcode_action_GCJ
26069
26070# Whether we should hardcode library paths into libraries.
26071hardcode_into_libs=$hardcode_into_libs
26072
26073# Flag to hardcode \$libdir into a binary during linking.
26074# This must work even if \$libdir does not exist.
26075hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26076
26077# If ld is used when linking, flag to hardcode \$libdir into
26078# a binary during linking. This must work even if \$libdir does
26079# not exist.
26080hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26081
26082# Whether we need a single -rpath flag with a separated argument.
26083hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26084
26085# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26086# resulting binary.
26087hardcode_direct=$hardcode_direct_GCJ
26088
26089# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26090# resulting binary.
26091hardcode_minus_L=$hardcode_minus_L_GCJ
26092
26093# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26094# the resulting binary.
26095hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26096
26097# Set to yes if building a shared library automatically hardcodes DIR into the library
26098# and all subsequent libraries and executables linked against it.
26099hardcode_automatic=$hardcode_automatic_GCJ
26100
26101# Variables whose values should be saved in libtool wrapper scripts and
26102# restored at relink time.
26103variables_saved_for_relink="$variables_saved_for_relink"
26104
26105# Whether libtool must link a program against all its dependency libraries.
26106link_all_deplibs=$link_all_deplibs_GCJ
26107
26108# Compile-time system search path for libraries
26109sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26110
26111# Run-time system search path for libraries
26112sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26113
26114# Fix the shell variable \$srcfile for the compiler.
26115fix_srcfile_path="$fix_srcfile_path_GCJ"
26116
26117# Set to yes if exported symbols are required.
26118always_export_symbols=$always_export_symbols_GCJ
26119
26120# The commands to list exported symbols.
26121export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26122
26123# The commands to extract the exported symbol list from a shared archive.
26124extract_expsyms_cmds=$lt_extract_expsyms_cmds
26125
26126# Symbols that should not be listed in the preloaded symbols.
26127exclude_expsyms=$lt_exclude_expsyms_GCJ
26128
26129# Symbols that must always be exported.
26130include_expsyms=$lt_include_expsyms_GCJ
26131
26132# ### END LIBTOOL TAG CONFIG: $tagname
26133
26134__EOF__
26135
26136
26137else
26138  # If there is no Makefile yet, we rely on a make rule to execute
26139  # `config.status --recheck' to rerun these tests and create the
26140  # libtool script then.
26141  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26142  if test -f "$ltmain_in"; then
26143    test -f Makefile && make "$ltmain"
26144  fi
26145fi
26146
26147
26148ac_ext=c
26149ac_cpp='$CPP $CPPFLAGS'
26150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26152ac_compiler_gnu=$ac_cv_c_compiler_gnu
26153
26154CC="$lt_save_CC"
26155
26156	else
26157	  tagname=""
26158	fi
26159	;;
26160
26161      RC)
26162	ac_ext=c
26163ac_cpp='$CPP $CPPFLAGS'
26164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26166ac_compiler_gnu=$ac_cv_c_compiler_gnu
26167
26168
26169# Source file extension for RC test sources.
26170ac_ext=rc
26171
26172# Object file extension for compiled RC test sources.
26173objext=o
26174objext_RC=$objext
26175
26176# Code to be used in simple compile tests
26177lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26178
26179# Code to be used in simple link tests
26180lt_simple_link_test_code="$lt_simple_compile_test_code"
26181
26182# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26183
26184# If no C compiler was specified, use CC.
26185LTCC=${LTCC-"$CC"}
26186
26187# If no C compiler flags were specified, use CFLAGS.
26188LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26189
26190# Allow CC to be a program name with arguments.
26191compiler=$CC
26192
26193
26194# save warnings/boilerplate of simple test code
26195ac_outfile=conftest.$ac_objext
26196printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26197eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26198_lt_compiler_boilerplate=`cat conftest.err`
26199$rm conftest*
26200
26201ac_outfile=conftest.$ac_objext
26202printf "$lt_simple_link_test_code" >conftest.$ac_ext
26203eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26204_lt_linker_boilerplate=`cat conftest.err`
26205$rm conftest*
26206
26207
26208# Allow CC to be a program name with arguments.
26209lt_save_CC="$CC"
26210CC=${RC-"windres"}
26211compiler=$CC
26212compiler_RC=$CC
26213for cc_temp in $compiler""; do
26214  case $cc_temp in
26215    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26216    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26217    \-*) ;;
26218    *) break;;
26219  esac
26220done
26221cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26222
26223lt_cv_prog_compiler_c_o_RC=yes
26224
26225# The else clause should only fire when bootstrapping the
26226# libtool distribution, otherwise you forgot to ship ltmain.sh
26227# with your package, and you will get complaints that there are
26228# no rules to generate ltmain.sh.
26229if test -f "$ltmain"; then
26230  # See if we are running on zsh, and set the options which allow our commands through
26231  # without removal of \ escapes.
26232  if test -n "${ZSH_VERSION+set}" ; then
26233    setopt NO_GLOB_SUBST
26234  fi
26235  # Now quote all the things that may contain metacharacters while being
26236  # careful not to overquote the AC_SUBSTed values.  We take copies of the
26237  # variables and quote the copies for generation of the libtool script.
26238  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26239    SED SHELL STRIP \
26240    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26241    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26242    deplibs_check_method reload_flag reload_cmds need_locks \
26243    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26244    lt_cv_sys_global_symbol_to_c_name_address \
26245    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26246    old_postinstall_cmds old_postuninstall_cmds \
26247    compiler_RC \
26248    CC_RC \
26249    LD_RC \
26250    lt_prog_compiler_wl_RC \
26251    lt_prog_compiler_pic_RC \
26252    lt_prog_compiler_static_RC \
26253    lt_prog_compiler_no_builtin_flag_RC \
26254    export_dynamic_flag_spec_RC \
26255    thread_safe_flag_spec_RC \
26256    whole_archive_flag_spec_RC \
26257    enable_shared_with_static_runtimes_RC \
26258    old_archive_cmds_RC \
26259    old_archive_from_new_cmds_RC \
26260    predep_objects_RC \
26261    postdep_objects_RC \
26262    predeps_RC \
26263    postdeps_RC \
26264    compiler_lib_search_path_RC \
26265    archive_cmds_RC \
26266    archive_expsym_cmds_RC \
26267    postinstall_cmds_RC \
26268    postuninstall_cmds_RC \
26269    old_archive_from_expsyms_cmds_RC \
26270    allow_undefined_flag_RC \
26271    no_undefined_flag_RC \
26272    export_symbols_cmds_RC \
26273    hardcode_libdir_flag_spec_RC \
26274    hardcode_libdir_flag_spec_ld_RC \
26275    hardcode_libdir_separator_RC \
26276    hardcode_automatic_RC \
26277    module_cmds_RC \
26278    module_expsym_cmds_RC \
26279    lt_cv_prog_compiler_c_o_RC \
26280    exclude_expsyms_RC \
26281    include_expsyms_RC; do
26282
26283    case $var in
26284    old_archive_cmds_RC | \
26285    old_archive_from_new_cmds_RC | \
26286    archive_cmds_RC | \
26287    archive_expsym_cmds_RC | \
26288    module_cmds_RC | \
26289    module_expsym_cmds_RC | \
26290    old_archive_from_expsyms_cmds_RC | \
26291    export_symbols_cmds_RC | \
26292    extract_expsyms_cmds | reload_cmds | finish_cmds | \
26293    postinstall_cmds | postuninstall_cmds | \
26294    old_postinstall_cmds | old_postuninstall_cmds | \
26295    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26296      # Double-quote double-evaled strings.
26297      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26298      ;;
26299    *)
26300      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26301      ;;
26302    esac
26303  done
26304
26305  case $lt_echo in
26306  *'\$0 --fallback-echo"')
26307    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26308    ;;
26309  esac
26310
26311cfgfile="$ofile"
26312
26313  cat <<__EOF__ >> "$cfgfile"
26314# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26315
26316# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26317
26318# Shell to use when invoking shell scripts.
26319SHELL=$lt_SHELL
26320
26321# Whether or not to build shared libraries.
26322build_libtool_libs=$enable_shared
26323
26324# Whether or not to build static libraries.
26325build_old_libs=$enable_static
26326
26327# Whether or not to add -lc for building shared libraries.
26328build_libtool_need_lc=$archive_cmds_need_lc_RC
26329
26330# Whether or not to disallow shared libs when runtime libs are static
26331allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26332
26333# Whether or not to optimize for fast installation.
26334fast_install=$enable_fast_install
26335
26336# The host system.
26337host_alias=$host_alias
26338host=$host
26339host_os=$host_os
26340
26341# The build system.
26342build_alias=$build_alias
26343build=$build
26344build_os=$build_os
26345
26346# An echo program that does not interpret backslashes.
26347echo=$lt_echo
26348
26349# The archiver.
26350AR=$lt_AR
26351AR_FLAGS=$lt_AR_FLAGS
26352
26353# A C compiler.
26354LTCC=$lt_LTCC
26355
26356# LTCC compiler flags.
26357LTCFLAGS=$lt_LTCFLAGS
26358
26359# A language-specific compiler.
26360CC=$lt_compiler_RC
26361
26362# Is the compiler the GNU C compiler?
26363with_gcc=$GCC_RC
26364
26365# An ERE matcher.
26366EGREP=$lt_EGREP
26367
26368# The linker used to build libraries.
26369LD=$lt_LD_RC
26370
26371# Whether we need hard or soft links.
26372LN_S=$lt_LN_S
26373
26374# A BSD-compatible nm program.
26375NM=$lt_NM
26376
26377# A symbol stripping program
26378STRIP=$lt_STRIP
26379
26380# Used to examine libraries when file_magic_cmd begins "file"
26381MAGIC_CMD=$MAGIC_CMD
26382
26383# Used on cygwin: DLL creation program.
26384DLLTOOL="$DLLTOOL"
26385
26386# Used on cygwin: object dumper.
26387OBJDUMP="$OBJDUMP"
26388
26389# Used on cygwin: assembler.
26390AS="$AS"
26391
26392# The name of the directory that contains temporary libtool files.
26393objdir=$objdir
26394
26395# How to create reloadable object files.
26396reload_flag=$lt_reload_flag
26397reload_cmds=$lt_reload_cmds
26398
26399# How to pass a linker flag through the compiler.
26400wl=$lt_lt_prog_compiler_wl_RC
26401
26402# Object file suffix (normally "o").
26403objext="$ac_objext"
26404
26405# Old archive suffix (normally "a").
26406libext="$libext"
26407
26408# Shared library suffix (normally ".so").
26409shrext_cmds='$shrext_cmds'
26410
26411# Executable file suffix (normally "").
26412exeext="$exeext"
26413
26414# Additional compiler flags for building library objects.
26415pic_flag=$lt_lt_prog_compiler_pic_RC
26416pic_mode=$pic_mode
26417
26418# What is the maximum length of a command?
26419max_cmd_len=$lt_cv_sys_max_cmd_len
26420
26421# Does compiler simultaneously support -c and -o options?
26422compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26423
26424# Must we lock files when doing compilation?
26425need_locks=$lt_need_locks
26426
26427# Do we need the lib prefix for modules?
26428need_lib_prefix=$need_lib_prefix
26429
26430# Do we need a version for libraries?
26431need_version=$need_version
26432
26433# Whether dlopen is supported.
26434dlopen_support=$enable_dlopen
26435
26436# Whether dlopen of programs is supported.
26437dlopen_self=$enable_dlopen_self
26438
26439# Whether dlopen of statically linked programs is supported.
26440dlopen_self_static=$enable_dlopen_self_static
26441
26442# Compiler flag to prevent dynamic linking.
26443link_static_flag=$lt_lt_prog_compiler_static_RC
26444
26445# Compiler flag to turn off builtin functions.
26446no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26447
26448# Compiler flag to allow reflexive dlopens.
26449export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26450
26451# Compiler flag to generate shared objects directly from archives.
26452whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26453
26454# Compiler flag to generate thread-safe objects.
26455thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26456
26457# Library versioning type.
26458version_type=$version_type
26459
26460# Format of library name prefix.
26461libname_spec=$lt_libname_spec
26462
26463# List of archive names.  First name is the real one, the rest are links.
26464# The last name is the one that the linker finds with -lNAME.
26465library_names_spec=$lt_library_names_spec
26466
26467# The coded name of the library, if different from the real name.
26468soname_spec=$lt_soname_spec
26469
26470# Commands used to build and install an old-style archive.
26471RANLIB=$lt_RANLIB
26472old_archive_cmds=$lt_old_archive_cmds_RC
26473old_postinstall_cmds=$lt_old_postinstall_cmds
26474old_postuninstall_cmds=$lt_old_postuninstall_cmds
26475
26476# Create an old-style archive from a shared archive.
26477old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26478
26479# Create a temporary old-style archive to link instead of a shared archive.
26480old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26481
26482# Commands used to build and install a shared archive.
26483archive_cmds=$lt_archive_cmds_RC
26484archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26485postinstall_cmds=$lt_postinstall_cmds
26486postuninstall_cmds=$lt_postuninstall_cmds
26487
26488# Commands used to build a loadable module (assumed same as above if empty)
26489module_cmds=$lt_module_cmds_RC
26490module_expsym_cmds=$lt_module_expsym_cmds_RC
26491
26492# Commands to strip libraries.
26493old_striplib=$lt_old_striplib
26494striplib=$lt_striplib
26495
26496# Dependencies to place before the objects being linked to create a
26497# shared library.
26498predep_objects=$lt_predep_objects_RC
26499
26500# Dependencies to place after the objects being linked to create a
26501# shared library.
26502postdep_objects=$lt_postdep_objects_RC
26503
26504# Dependencies to place before the objects being linked to create a
26505# shared library.
26506predeps=$lt_predeps_RC
26507
26508# Dependencies to place after the objects being linked to create a
26509# shared library.
26510postdeps=$lt_postdeps_RC
26511
26512# The library search path used internally by the compiler when linking
26513# a shared library.
26514compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26515
26516# Method to check whether dependent libraries are shared objects.
26517deplibs_check_method=$lt_deplibs_check_method
26518
26519# Command to use when deplibs_check_method == file_magic.
26520file_magic_cmd=$lt_file_magic_cmd
26521
26522# Flag that allows shared libraries with undefined symbols to be built.
26523allow_undefined_flag=$lt_allow_undefined_flag_RC
26524
26525# Flag that forces no undefined symbols.
26526no_undefined_flag=$lt_no_undefined_flag_RC
26527
26528# Commands used to finish a libtool library installation in a directory.
26529finish_cmds=$lt_finish_cmds
26530
26531# Same as above, but a single script fragment to be evaled but not shown.
26532finish_eval=$lt_finish_eval
26533
26534# Take the output of nm and produce a listing of raw symbols and C names.
26535global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26536
26537# Transform the output of nm in a proper C declaration
26538global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26539
26540# Transform the output of nm in a C name address pair
26541global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26542
26543# This is the shared library runtime path variable.
26544runpath_var=$runpath_var
26545
26546# This is the shared library path variable.
26547shlibpath_var=$shlibpath_var
26548
26549# Is shlibpath searched before the hard-coded library search path?
26550shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26551
26552# How to hardcode a shared library path into an executable.
26553hardcode_action=$hardcode_action_RC
26554
26555# Whether we should hardcode library paths into libraries.
26556hardcode_into_libs=$hardcode_into_libs
26557
26558# Flag to hardcode \$libdir into a binary during linking.
26559# This must work even if \$libdir does not exist.
26560hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26561
26562# If ld is used when linking, flag to hardcode \$libdir into
26563# a binary during linking. This must work even if \$libdir does
26564# not exist.
26565hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26566
26567# Whether we need a single -rpath flag with a separated argument.
26568hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26569
26570# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26571# resulting binary.
26572hardcode_direct=$hardcode_direct_RC
26573
26574# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26575# resulting binary.
26576hardcode_minus_L=$hardcode_minus_L_RC
26577
26578# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26579# the resulting binary.
26580hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26581
26582# Set to yes if building a shared library automatically hardcodes DIR into the library
26583# and all subsequent libraries and executables linked against it.
26584hardcode_automatic=$hardcode_automatic_RC
26585
26586# Variables whose values should be saved in libtool wrapper scripts and
26587# restored at relink time.
26588variables_saved_for_relink="$variables_saved_for_relink"
26589
26590# Whether libtool must link a program against all its dependency libraries.
26591link_all_deplibs=$link_all_deplibs_RC
26592
26593# Compile-time system search path for libraries
26594sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26595
26596# Run-time system search path for libraries
26597sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26598
26599# Fix the shell variable \$srcfile for the compiler.
26600fix_srcfile_path="$fix_srcfile_path_RC"
26601
26602# Set to yes if exported symbols are required.
26603always_export_symbols=$always_export_symbols_RC
26604
26605# The commands to list exported symbols.
26606export_symbols_cmds=$lt_export_symbols_cmds_RC
26607
26608# The commands to extract the exported symbol list from a shared archive.
26609extract_expsyms_cmds=$lt_extract_expsyms_cmds
26610
26611# Symbols that should not be listed in the preloaded symbols.
26612exclude_expsyms=$lt_exclude_expsyms_RC
26613
26614# Symbols that must always be exported.
26615include_expsyms=$lt_include_expsyms_RC
26616
26617# ### END LIBTOOL TAG CONFIG: $tagname
26618
26619__EOF__
26620
26621
26622else
26623  # If there is no Makefile yet, we rely on a make rule to execute
26624  # `config.status --recheck' to rerun these tests and create the
26625  # libtool script then.
26626  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26627  if test -f "$ltmain_in"; then
26628    test -f Makefile && make "$ltmain"
26629  fi
26630fi
26631
26632
26633ac_ext=c
26634ac_cpp='$CPP $CPPFLAGS'
26635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26637ac_compiler_gnu=$ac_cv_c_compiler_gnu
26638
26639CC="$lt_save_CC"
26640
26641	;;
26642
26643      *)
26644	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26645echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26646   { (exit 1); exit 1; }; }
26647	;;
26648      esac
26649
26650      # Append the new tag name to the list of available tags.
26651      if test -n "$tagname" ; then
26652      available_tags="$available_tags $tagname"
26653    fi
26654    fi
26655  done
26656  IFS="$lt_save_ifs"
26657
26658  # Now substitute the updated list of available tags.
26659  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26660    mv "${ofile}T" "$ofile"
26661    chmod +x "$ofile"
26662  else
26663    rm -f "${ofile}T"
26664    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26665echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26666   { (exit 1); exit 1; }; }
26667  fi
26668fi
26669
26670
26671
26672# This can be used to rebuild libtool when needed
26673LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26674
26675# Always use our own libtool.
26676LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26677
26678# Prevent multiple expansion
26679
26680
26681
26682
26683
26684
26685
26686
26687
26688
26689
26690
26691
26692
26693
26694
26695
26696
26697
26698
26699
26700if test "$lt_cv_dlopen_self" = "yes" ; then
26701
26702cat >>confdefs.h <<\_ACEOF
26703#define CAN_DLOPEN_SELF 1
26704_ACEOF
26705
26706fi
26707
26708etags_version=`$ETAGS --version 2>&1`
26709case "$etags_version" in
26710	*Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26711	*GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26712	*) ETAGSFLAGS="" ;;
26713esac
26714ETAGSFLAGS=$ETAGSFLAGS
26715
26716
26717if test "$WITH_LLVMGCCDIR" = "default" ; then
26718  LLVMGCC="llvm-gcc${EXEEXT}"
26719  LLVMGXX="llvm-g++${EXEEXT}"
26720  # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26721set dummy $LLVMGCC; ac_word=$2
26722{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26724if test "${ac_cv_path_LLVMGCC+set}" = set; then
26725  echo $ECHO_N "(cached) $ECHO_C" >&6
26726else
26727  case $LLVMGCC in
26728  [\\/]* | ?:[\\/]*)
26729  ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26730  ;;
26731  *)
26732  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26733for as_dir in $PATH
26734do
26735  IFS=$as_save_IFS
26736  test -z "$as_dir" && as_dir=.
26737  for ac_exec_ext in '' $ac_executable_extensions; do
26738  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26739    ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26740    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26741    break 2
26742  fi
26743done
26744done
26745IFS=$as_save_IFS
26746
26747  ;;
26748esac
26749fi
26750LLVMGCC=$ac_cv_path_LLVMGCC
26751if test -n "$LLVMGCC"; then
26752  { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26753echo "${ECHO_T}$LLVMGCC" >&6; }
26754else
26755  { echo "$as_me:$LINENO: result: no" >&5
26756echo "${ECHO_T}no" >&6; }
26757fi
26758
26759
26760  # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26761set dummy $LLVMGXX; ac_word=$2
26762{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26764if test "${ac_cv_path_LLVMGXX+set}" = set; then
26765  echo $ECHO_N "(cached) $ECHO_C" >&6
26766else
26767  case $LLVMGXX in
26768  [\\/]* | ?:[\\/]*)
26769  ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26770  ;;
26771  *)
26772  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26773for as_dir in $PATH
26774do
26775  IFS=$as_save_IFS
26776  test -z "$as_dir" && as_dir=.
26777  for ac_exec_ext in '' $ac_executable_extensions; do
26778  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26779    ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26780    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26781    break 2
26782  fi
26783done
26784done
26785IFS=$as_save_IFS
26786
26787  ;;
26788esac
26789fi
26790LLVMGXX=$ac_cv_path_LLVMGXX
26791if test -n "$LLVMGXX"; then
26792  { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26793echo "${ECHO_T}$LLVMGXX" >&6; }
26794else
26795  { echo "$as_me:$LINENO: result: no" >&5
26796echo "${ECHO_T}no" >&6; }
26797fi
26798
26799
26800else
26801  LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26802  LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26803  LLVMGCC=$LLVMGCC
26804
26805  LLVMGXX=$LLVMGXX
26806
26807fi
26808
26809{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26810echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26811
26812ICC=no
26813IXX=no
26814case $CC in
26815  icc*|icpc*)
26816    ICC=yes
26817    IXX=yes
26818    ;;
26819   *)
26820    ;;
26821esac
26822
26823if test "$GCC" != "yes" && test "$ICC" != "yes"
26824then
26825  { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26826echo "$as_me: error: gcc|icc required but not found" >&2;}
26827   { (exit 1); exit 1; }; }
26828fi
26829
26830if test "$GXX" != "yes" && test "$IXX" != "yes"
26831then
26832  { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26833echo "$as_me: error: g++|icc required but not found" >&2;}
26834   { (exit 1); exit 1; }; }
26835fi
26836
26837if test "$GCC" = "yes"
26838then
26839  gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
26840  if test "$gccmajor" -lt "3"
26841  then
26842    { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26843echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26844   { (exit 1); exit 1; }; }
26845  fi
26846fi
26847
26848if test -z "$llvm_cv_gnu_make_command"
26849then
26850  { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26851echo "$as_me: error: GNU Make required but not found" >&2;}
26852   { (exit 1); exit 1; }; }
26853fi
26854
26855{ echo "$as_me:$LINENO: result: ok" >&5
26856echo "${ECHO_T}ok" >&6; }
26857
26858
26859
26860{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26861echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26862if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26863  echo $ECHO_N "(cached) $ECHO_C" >&6
26864else
26865  ac_check_lib_save_LIBS=$LIBS
26866LIBS="-lelf  $LIBS"
26867cat >conftest.$ac_ext <<_ACEOF
26868/* confdefs.h.  */
26869_ACEOF
26870cat confdefs.h >>conftest.$ac_ext
26871cat >>conftest.$ac_ext <<_ACEOF
26872/* end confdefs.h.  */
26873
26874/* Override any GCC internal prototype to avoid an error.
26875   Use char because int might match the return type of a GCC
26876   builtin and then its argument prototype would still apply.  */
26877#ifdef __cplusplus
26878extern "C"
26879#endif
26880char elf_begin ();
26881int
26882main ()
26883{
26884return elf_begin ();
26885  ;
26886  return 0;
26887}
26888_ACEOF
26889rm -f conftest.$ac_objext conftest$ac_exeext
26890if { (ac_try="$ac_link"
26891case "(($ac_try" in
26892  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26893  *) ac_try_echo=$ac_try;;
26894esac
26895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26896  (eval "$ac_link") 2>conftest.er1
26897  ac_status=$?
26898  grep -v '^ *+' conftest.er1 >conftest.err
26899  rm -f conftest.er1
26900  cat conftest.err >&5
26901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26902  (exit $ac_status); } &&
26903	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26904  { (case "(($ac_try" in
26905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26906  *) ac_try_echo=$ac_try;;
26907esac
26908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26909  (eval "$ac_try") 2>&5
26910  ac_status=$?
26911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26912  (exit $ac_status); }; } &&
26913	 { ac_try='test -s conftest$ac_exeext'
26914  { (case "(($ac_try" in
26915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26916  *) ac_try_echo=$ac_try;;
26917esac
26918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26919  (eval "$ac_try") 2>&5
26920  ac_status=$?
26921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26922  (exit $ac_status); }; }; then
26923  ac_cv_lib_elf_elf_begin=yes
26924else
26925  echo "$as_me: failed program was:" >&5
26926sed 's/^/| /' conftest.$ac_ext >&5
26927
26928	ac_cv_lib_elf_elf_begin=no
26929fi
26930
26931rm -f core conftest.err conftest.$ac_objext \
26932      conftest$ac_exeext conftest.$ac_ext
26933LIBS=$ac_check_lib_save_LIBS
26934fi
26935{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26936echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26937if test $ac_cv_lib_elf_elf_begin = yes; then
26938  cat >>confdefs.h <<_ACEOF
26939#define HAVE_LIBELF 1
26940_ACEOF
26941
26942  LIBS="-lelf $LIBS"
26943
26944fi
26945
26946
26947{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
26948echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26949if test "${ac_cv_lib_m_sin+set}" = set; then
26950  echo $ECHO_N "(cached) $ECHO_C" >&6
26951else
26952  ac_check_lib_save_LIBS=$LIBS
26953LIBS="-lm  $LIBS"
26954cat >conftest.$ac_ext <<_ACEOF
26955/* confdefs.h.  */
26956_ACEOF
26957cat confdefs.h >>conftest.$ac_ext
26958cat >>conftest.$ac_ext <<_ACEOF
26959/* end confdefs.h.  */
26960
26961/* Override any GCC internal prototype to avoid an error.
26962   Use char because int might match the return type of a GCC
26963   builtin and then its argument prototype would still apply.  */
26964#ifdef __cplusplus
26965extern "C"
26966#endif
26967char sin ();
26968int
26969main ()
26970{
26971return sin ();
26972  ;
26973  return 0;
26974}
26975_ACEOF
26976rm -f conftest.$ac_objext conftest$ac_exeext
26977if { (ac_try="$ac_link"
26978case "(($ac_try" in
26979  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26980  *) ac_try_echo=$ac_try;;
26981esac
26982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26983  (eval "$ac_link") 2>conftest.er1
26984  ac_status=$?
26985  grep -v '^ *+' conftest.er1 >conftest.err
26986  rm -f conftest.er1
26987  cat conftest.err >&5
26988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26989  (exit $ac_status); } &&
26990	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26991  { (case "(($ac_try" in
26992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26993  *) ac_try_echo=$ac_try;;
26994esac
26995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26996  (eval "$ac_try") 2>&5
26997  ac_status=$?
26998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26999  (exit $ac_status); }; } &&
27000	 { ac_try='test -s conftest$ac_exeext'
27001  { (case "(($ac_try" in
27002  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27003  *) ac_try_echo=$ac_try;;
27004esac
27005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27006  (eval "$ac_try") 2>&5
27007  ac_status=$?
27008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27009  (exit $ac_status); }; }; then
27010  ac_cv_lib_m_sin=yes
27011else
27012  echo "$as_me: failed program was:" >&5
27013sed 's/^/| /' conftest.$ac_ext >&5
27014
27015	ac_cv_lib_m_sin=no
27016fi
27017
27018rm -f core conftest.err conftest.$ac_objext \
27019      conftest$ac_exeext conftest.$ac_ext
27020LIBS=$ac_check_lib_save_LIBS
27021fi
27022{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27023echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27024if test $ac_cv_lib_m_sin = yes; then
27025  cat >>confdefs.h <<_ACEOF
27026#define HAVE_LIBM 1
27027_ACEOF
27028
27029  LIBS="-lm $LIBS"
27030
27031fi
27032
27033if test "$llvm_cv_os_type" = "MingW" ; then
27034
27035{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27036echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27037if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27038  echo $ECHO_N "(cached) $ECHO_C" >&6
27039else
27040  ac_check_lib_save_LIBS=$LIBS
27041LIBS="-limagehlp  $LIBS"
27042cat >conftest.$ac_ext <<_ACEOF
27043/* confdefs.h.  */
27044_ACEOF
27045cat confdefs.h >>conftest.$ac_ext
27046cat >>conftest.$ac_ext <<_ACEOF
27047/* end confdefs.h.  */
27048
27049
27050int
27051main ()
27052{
27053return main ();
27054  ;
27055  return 0;
27056}
27057_ACEOF
27058rm -f conftest.$ac_objext conftest$ac_exeext
27059if { (ac_try="$ac_link"
27060case "(($ac_try" in
27061  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27062  *) ac_try_echo=$ac_try;;
27063esac
27064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27065  (eval "$ac_link") 2>conftest.er1
27066  ac_status=$?
27067  grep -v '^ *+' conftest.er1 >conftest.err
27068  rm -f conftest.er1
27069  cat conftest.err >&5
27070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27071  (exit $ac_status); } &&
27072	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27073  { (case "(($ac_try" in
27074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27075  *) ac_try_echo=$ac_try;;
27076esac
27077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27078  (eval "$ac_try") 2>&5
27079  ac_status=$?
27080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27081  (exit $ac_status); }; } &&
27082	 { ac_try='test -s conftest$ac_exeext'
27083  { (case "(($ac_try" in
27084  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27085  *) ac_try_echo=$ac_try;;
27086esac
27087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27088  (eval "$ac_try") 2>&5
27089  ac_status=$?
27090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27091  (exit $ac_status); }; }; then
27092  ac_cv_lib_imagehlp_main=yes
27093else
27094  echo "$as_me: failed program was:" >&5
27095sed 's/^/| /' conftest.$ac_ext >&5
27096
27097	ac_cv_lib_imagehlp_main=no
27098fi
27099
27100rm -f core conftest.err conftest.$ac_objext \
27101      conftest$ac_exeext conftest.$ac_ext
27102LIBS=$ac_check_lib_save_LIBS
27103fi
27104{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27105echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27106if test $ac_cv_lib_imagehlp_main = yes; then
27107  cat >>confdefs.h <<_ACEOF
27108#define HAVE_LIBIMAGEHLP 1
27109_ACEOF
27110
27111  LIBS="-limagehlp $LIBS"
27112
27113fi
27114
27115
27116{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27117echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27118if test "${ac_cv_lib_psapi_main+set}" = set; then
27119  echo $ECHO_N "(cached) $ECHO_C" >&6
27120else
27121  ac_check_lib_save_LIBS=$LIBS
27122LIBS="-lpsapi  $LIBS"
27123cat >conftest.$ac_ext <<_ACEOF
27124/* confdefs.h.  */
27125_ACEOF
27126cat confdefs.h >>conftest.$ac_ext
27127cat >>conftest.$ac_ext <<_ACEOF
27128/* end confdefs.h.  */
27129
27130
27131int
27132main ()
27133{
27134return main ();
27135  ;
27136  return 0;
27137}
27138_ACEOF
27139rm -f conftest.$ac_objext conftest$ac_exeext
27140if { (ac_try="$ac_link"
27141case "(($ac_try" in
27142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27143  *) ac_try_echo=$ac_try;;
27144esac
27145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27146  (eval "$ac_link") 2>conftest.er1
27147  ac_status=$?
27148  grep -v '^ *+' conftest.er1 >conftest.err
27149  rm -f conftest.er1
27150  cat conftest.err >&5
27151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27152  (exit $ac_status); } &&
27153	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27154  { (case "(($ac_try" in
27155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27156  *) ac_try_echo=$ac_try;;
27157esac
27158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27159  (eval "$ac_try") 2>&5
27160  ac_status=$?
27161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27162  (exit $ac_status); }; } &&
27163	 { ac_try='test -s conftest$ac_exeext'
27164  { (case "(($ac_try" in
27165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27166  *) ac_try_echo=$ac_try;;
27167esac
27168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27169  (eval "$ac_try") 2>&5
27170  ac_status=$?
27171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27172  (exit $ac_status); }; }; then
27173  ac_cv_lib_psapi_main=yes
27174else
27175  echo "$as_me: failed program was:" >&5
27176sed 's/^/| /' conftest.$ac_ext >&5
27177
27178	ac_cv_lib_psapi_main=no
27179fi
27180
27181rm -f core conftest.err conftest.$ac_objext \
27182      conftest$ac_exeext conftest.$ac_ext
27183LIBS=$ac_check_lib_save_LIBS
27184fi
27185{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27186echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27187if test $ac_cv_lib_psapi_main = yes; then
27188  cat >>confdefs.h <<_ACEOF
27189#define HAVE_LIBPSAPI 1
27190_ACEOF
27191
27192  LIBS="-lpsapi $LIBS"
27193
27194fi
27195
27196fi
27197
27198{ echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27199echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
27200if test "${ac_cv_search_lt_dlopen+set}" = set; then
27201  echo $ECHO_N "(cached) $ECHO_C" >&6
27202else
27203  ac_func_search_save_LIBS=$LIBS
27204cat >conftest.$ac_ext <<_ACEOF
27205/* confdefs.h.  */
27206_ACEOF
27207cat confdefs.h >>conftest.$ac_ext
27208cat >>conftest.$ac_ext <<_ACEOF
27209/* end confdefs.h.  */
27210
27211/* Override any GCC internal prototype to avoid an error.
27212   Use char because int might match the return type of a GCC
27213   builtin and then its argument prototype would still apply.  */
27214#ifdef __cplusplus
27215extern "C"
27216#endif
27217char lt_dlopen ();
27218int
27219main ()
27220{
27221return lt_dlopen ();
27222  ;
27223  return 0;
27224}
27225_ACEOF
27226for ac_lib in '' ltdl; do
27227  if test -z "$ac_lib"; then
27228    ac_res="none required"
27229  else
27230    ac_res=-l$ac_lib
27231    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27232  fi
27233  rm -f conftest.$ac_objext conftest$ac_exeext
27234if { (ac_try="$ac_link"
27235case "(($ac_try" in
27236  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27237  *) ac_try_echo=$ac_try;;
27238esac
27239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27240  (eval "$ac_link") 2>conftest.er1
27241  ac_status=$?
27242  grep -v '^ *+' conftest.er1 >conftest.err
27243  rm -f conftest.er1
27244  cat conftest.err >&5
27245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27246  (exit $ac_status); } &&
27247	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27248  { (case "(($ac_try" in
27249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27250  *) ac_try_echo=$ac_try;;
27251esac
27252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27253  (eval "$ac_try") 2>&5
27254  ac_status=$?
27255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27256  (exit $ac_status); }; } &&
27257	 { ac_try='test -s conftest$ac_exeext'
27258  { (case "(($ac_try" in
27259  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27260  *) ac_try_echo=$ac_try;;
27261esac
27262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27263  (eval "$ac_try") 2>&5
27264  ac_status=$?
27265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266  (exit $ac_status); }; }; then
27267  ac_cv_search_lt_dlopen=$ac_res
27268else
27269  echo "$as_me: failed program was:" >&5
27270sed 's/^/| /' conftest.$ac_ext >&5
27271
27272
27273fi
27274
27275rm -f core conftest.err conftest.$ac_objext \
27276      conftest$ac_exeext
27277  if test "${ac_cv_search_lt_dlopen+set}" = set; then
27278  break
27279fi
27280done
27281if test "${ac_cv_search_lt_dlopen+set}" = set; then
27282  :
27283else
27284  ac_cv_search_lt_dlopen=no
27285fi
27286rm conftest.$ac_ext
27287LIBS=$ac_func_search_save_LIBS
27288fi
27289{ echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27290echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27291ac_res=$ac_cv_search_lt_dlopen
27292if test "$ac_res" != no; then
27293  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27294
27295cat >>confdefs.h <<\_ACEOF
27296#define HAVE_LT_DLOPEN 1
27297_ACEOF
27298
27299else
27300  { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27301                           not be available" >&5
27302echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27303                           not be available" >&2;}
27304fi
27305
27306
27307{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27308echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27309if test "${ac_cv_search_dlopen+set}" = set; then
27310  echo $ECHO_N "(cached) $ECHO_C" >&6
27311else
27312  ac_func_search_save_LIBS=$LIBS
27313cat >conftest.$ac_ext <<_ACEOF
27314/* confdefs.h.  */
27315_ACEOF
27316cat confdefs.h >>conftest.$ac_ext
27317cat >>conftest.$ac_ext <<_ACEOF
27318/* end confdefs.h.  */
27319
27320/* Override any GCC internal prototype to avoid an error.
27321   Use char because int might match the return type of a GCC
27322   builtin and then its argument prototype would still apply.  */
27323#ifdef __cplusplus
27324extern "C"
27325#endif
27326char dlopen ();
27327int
27328main ()
27329{
27330return dlopen ();
27331  ;
27332  return 0;
27333}
27334_ACEOF
27335for ac_lib in '' dl; do
27336  if test -z "$ac_lib"; then
27337    ac_res="none required"
27338  else
27339    ac_res=-l$ac_lib
27340    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27341  fi
27342  rm -f conftest.$ac_objext conftest$ac_exeext
27343if { (ac_try="$ac_link"
27344case "(($ac_try" in
27345  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27346  *) ac_try_echo=$ac_try;;
27347esac
27348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27349  (eval "$ac_link") 2>conftest.er1
27350  ac_status=$?
27351  grep -v '^ *+' conftest.er1 >conftest.err
27352  rm -f conftest.er1
27353  cat conftest.err >&5
27354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27355  (exit $ac_status); } &&
27356	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27357  { (case "(($ac_try" in
27358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27359  *) ac_try_echo=$ac_try;;
27360esac
27361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27362  (eval "$ac_try") 2>&5
27363  ac_status=$?
27364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27365  (exit $ac_status); }; } &&
27366	 { ac_try='test -s conftest$ac_exeext'
27367  { (case "(($ac_try" in
27368  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27369  *) ac_try_echo=$ac_try;;
27370esac
27371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27372  (eval "$ac_try") 2>&5
27373  ac_status=$?
27374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27375  (exit $ac_status); }; }; then
27376  ac_cv_search_dlopen=$ac_res
27377else
27378  echo "$as_me: failed program was:" >&5
27379sed 's/^/| /' conftest.$ac_ext >&5
27380
27381
27382fi
27383
27384rm -f core conftest.err conftest.$ac_objext \
27385      conftest$ac_exeext
27386  if test "${ac_cv_search_dlopen+set}" = set; then
27387  break
27388fi
27389done
27390if test "${ac_cv_search_dlopen+set}" = set; then
27391  :
27392else
27393  ac_cv_search_dlopen=no
27394fi
27395rm conftest.$ac_ext
27396LIBS=$ac_func_search_save_LIBS
27397fi
27398{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27399echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27400ac_res=$ac_cv_search_dlopen
27401if test "$ac_res" != no; then
27402  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27403
27404cat >>confdefs.h <<\_ACEOF
27405#define HAVE_DLOPEN 1
27406_ACEOF
27407
27408else
27409  { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27410echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27411fi
27412
27413
27414{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27415echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27416if test "${ac_cv_search_mallinfo+set}" = set; then
27417  echo $ECHO_N "(cached) $ECHO_C" >&6
27418else
27419  ac_func_search_save_LIBS=$LIBS
27420cat >conftest.$ac_ext <<_ACEOF
27421/* confdefs.h.  */
27422_ACEOF
27423cat confdefs.h >>conftest.$ac_ext
27424cat >>conftest.$ac_ext <<_ACEOF
27425/* end confdefs.h.  */
27426
27427/* Override any GCC internal prototype to avoid an error.
27428   Use char because int might match the return type of a GCC
27429   builtin and then its argument prototype would still apply.  */
27430#ifdef __cplusplus
27431extern "C"
27432#endif
27433char mallinfo ();
27434int
27435main ()
27436{
27437return mallinfo ();
27438  ;
27439  return 0;
27440}
27441_ACEOF
27442for ac_lib in '' malloc; do
27443  if test -z "$ac_lib"; then
27444    ac_res="none required"
27445  else
27446    ac_res=-l$ac_lib
27447    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27448  fi
27449  rm -f conftest.$ac_objext conftest$ac_exeext
27450if { (ac_try="$ac_link"
27451case "(($ac_try" in
27452  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27453  *) ac_try_echo=$ac_try;;
27454esac
27455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27456  (eval "$ac_link") 2>conftest.er1
27457  ac_status=$?
27458  grep -v '^ *+' conftest.er1 >conftest.err
27459  rm -f conftest.er1
27460  cat conftest.err >&5
27461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27462  (exit $ac_status); } &&
27463	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27464  { (case "(($ac_try" in
27465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27466  *) ac_try_echo=$ac_try;;
27467esac
27468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27469  (eval "$ac_try") 2>&5
27470  ac_status=$?
27471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27472  (exit $ac_status); }; } &&
27473	 { ac_try='test -s conftest$ac_exeext'
27474  { (case "(($ac_try" in
27475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27476  *) ac_try_echo=$ac_try;;
27477esac
27478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27479  (eval "$ac_try") 2>&5
27480  ac_status=$?
27481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27482  (exit $ac_status); }; }; then
27483  ac_cv_search_mallinfo=$ac_res
27484else
27485  echo "$as_me: failed program was:" >&5
27486sed 's/^/| /' conftest.$ac_ext >&5
27487
27488
27489fi
27490
27491rm -f core conftest.err conftest.$ac_objext \
27492      conftest$ac_exeext
27493  if test "${ac_cv_search_mallinfo+set}" = set; then
27494  break
27495fi
27496done
27497if test "${ac_cv_search_mallinfo+set}" = set; then
27498  :
27499else
27500  ac_cv_search_mallinfo=no
27501fi
27502rm conftest.$ac_ext
27503LIBS=$ac_func_search_save_LIBS
27504fi
27505{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27506echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27507ac_res=$ac_cv_search_mallinfo
27508if test "$ac_res" != no; then
27509  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27510
27511cat >>confdefs.h <<\_ACEOF
27512#define HAVE_MALLINFO 1
27513_ACEOF
27514
27515fi
27516
27517
27518if test "$ENABLE_THREADS" -eq 1 ; then
27519
27520{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27521echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27522if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27523  echo $ECHO_N "(cached) $ECHO_C" >&6
27524else
27525  ac_check_lib_save_LIBS=$LIBS
27526LIBS="-lpthread  $LIBS"
27527cat >conftest.$ac_ext <<_ACEOF
27528/* confdefs.h.  */
27529_ACEOF
27530cat confdefs.h >>conftest.$ac_ext
27531cat >>conftest.$ac_ext <<_ACEOF
27532/* end confdefs.h.  */
27533
27534/* Override any GCC internal prototype to avoid an error.
27535   Use char because int might match the return type of a GCC
27536   builtin and then its argument prototype would still apply.  */
27537#ifdef __cplusplus
27538extern "C"
27539#endif
27540char pthread_mutex_init ();
27541int
27542main ()
27543{
27544return pthread_mutex_init ();
27545  ;
27546  return 0;
27547}
27548_ACEOF
27549rm -f conftest.$ac_objext conftest$ac_exeext
27550if { (ac_try="$ac_link"
27551case "(($ac_try" in
27552  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27553  *) ac_try_echo=$ac_try;;
27554esac
27555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27556  (eval "$ac_link") 2>conftest.er1
27557  ac_status=$?
27558  grep -v '^ *+' conftest.er1 >conftest.err
27559  rm -f conftest.er1
27560  cat conftest.err >&5
27561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27562  (exit $ac_status); } &&
27563	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
27573	 { ac_try='test -s conftest$ac_exeext'
27574  { (case "(($ac_try" in
27575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27576  *) ac_try_echo=$ac_try;;
27577esac
27578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27579  (eval "$ac_try") 2>&5
27580  ac_status=$?
27581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27582  (exit $ac_status); }; }; then
27583  ac_cv_lib_pthread_pthread_mutex_init=yes
27584else
27585  echo "$as_me: failed program was:" >&5
27586sed 's/^/| /' conftest.$ac_ext >&5
27587
27588	ac_cv_lib_pthread_pthread_mutex_init=no
27589fi
27590
27591rm -f core conftest.err conftest.$ac_objext \
27592      conftest$ac_exeext conftest.$ac_ext
27593LIBS=$ac_check_lib_save_LIBS
27594fi
27595{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27596echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27597if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27598  cat >>confdefs.h <<_ACEOF
27599#define HAVE_LIBPTHREAD 1
27600_ACEOF
27601
27602  LIBS="-lpthread $LIBS"
27603
27604fi
27605
27606  { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27607echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27608if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27609  echo $ECHO_N "(cached) $ECHO_C" >&6
27610else
27611  ac_func_search_save_LIBS=$LIBS
27612cat >conftest.$ac_ext <<_ACEOF
27613/* confdefs.h.  */
27614_ACEOF
27615cat confdefs.h >>conftest.$ac_ext
27616cat >>conftest.$ac_ext <<_ACEOF
27617/* end confdefs.h.  */
27618
27619/* Override any GCC internal prototype to avoid an error.
27620   Use char because int might match the return type of a GCC
27621   builtin and then its argument prototype would still apply.  */
27622#ifdef __cplusplus
27623extern "C"
27624#endif
27625char pthread_mutex_lock ();
27626int
27627main ()
27628{
27629return pthread_mutex_lock ();
27630  ;
27631  return 0;
27632}
27633_ACEOF
27634for ac_lib in '' pthread; do
27635  if test -z "$ac_lib"; then
27636    ac_res="none required"
27637  else
27638    ac_res=-l$ac_lib
27639    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27640  fi
27641  rm -f conftest.$ac_objext conftest$ac_exeext
27642if { (ac_try="$ac_link"
27643case "(($ac_try" in
27644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27645  *) ac_try_echo=$ac_try;;
27646esac
27647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27648  (eval "$ac_link") 2>conftest.er1
27649  ac_status=$?
27650  grep -v '^ *+' conftest.er1 >conftest.err
27651  rm -f conftest.er1
27652  cat conftest.err >&5
27653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27654  (exit $ac_status); } &&
27655	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27656  { (case "(($ac_try" in
27657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27658  *) ac_try_echo=$ac_try;;
27659esac
27660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27661  (eval "$ac_try") 2>&5
27662  ac_status=$?
27663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27664  (exit $ac_status); }; } &&
27665	 { ac_try='test -s conftest$ac_exeext'
27666  { (case "(($ac_try" in
27667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27668  *) ac_try_echo=$ac_try;;
27669esac
27670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27671  (eval "$ac_try") 2>&5
27672  ac_status=$?
27673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27674  (exit $ac_status); }; }; then
27675  ac_cv_search_pthread_mutex_lock=$ac_res
27676else
27677  echo "$as_me: failed program was:" >&5
27678sed 's/^/| /' conftest.$ac_ext >&5
27679
27680
27681fi
27682
27683rm -f core conftest.err conftest.$ac_objext \
27684      conftest$ac_exeext
27685  if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27686  break
27687fi
27688done
27689if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27690  :
27691else
27692  ac_cv_search_pthread_mutex_lock=no
27693fi
27694rm conftest.$ac_ext
27695LIBS=$ac_func_search_save_LIBS
27696fi
27697{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27698echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27699ac_res=$ac_cv_search_pthread_mutex_lock
27700if test "$ac_res" != no; then
27701  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27702
27703cat >>confdefs.h <<\_ACEOF
27704#define HAVE_PTHREAD_MUTEX_LOCK 1
27705_ACEOF
27706
27707fi
27708
27709fi
27710
27711
27712# Check whether --with-udis86 was given.
27713if test "${with_udis86+set}" = set; then
27714  withval=$with_udis86;
27715      USE_UDIS86=1
27716
27717      case "$withval" in
27718        /usr/lib|yes) ;;
27719        *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27720      esac
27721
27722{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27723echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27724if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27725  echo $ECHO_N "(cached) $ECHO_C" >&6
27726else
27727  ac_check_lib_save_LIBS=$LIBS
27728LIBS="-ludis86  $LIBS"
27729cat >conftest.$ac_ext <<_ACEOF
27730/* confdefs.h.  */
27731_ACEOF
27732cat confdefs.h >>conftest.$ac_ext
27733cat >>conftest.$ac_ext <<_ACEOF
27734/* end confdefs.h.  */
27735
27736/* Override any GCC internal prototype to avoid an error.
27737   Use char because int might match the return type of a GCC
27738   builtin and then its argument prototype would still apply.  */
27739#ifdef __cplusplus
27740extern "C"
27741#endif
27742char ud_init ();
27743int
27744main ()
27745{
27746return ud_init ();
27747  ;
27748  return 0;
27749}
27750_ACEOF
27751rm -f conftest.$ac_objext conftest$ac_exeext
27752if { (ac_try="$ac_link"
27753case "(($ac_try" in
27754  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27755  *) ac_try_echo=$ac_try;;
27756esac
27757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27758  (eval "$ac_link") 2>conftest.er1
27759  ac_status=$?
27760  grep -v '^ *+' conftest.er1 >conftest.err
27761  rm -f conftest.er1
27762  cat conftest.err >&5
27763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27764  (exit $ac_status); } &&
27765	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27766  { (case "(($ac_try" in
27767  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27768  *) ac_try_echo=$ac_try;;
27769esac
27770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27771  (eval "$ac_try") 2>&5
27772  ac_status=$?
27773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27774  (exit $ac_status); }; } &&
27775	 { ac_try='test -s conftest$ac_exeext'
27776  { (case "(($ac_try" in
27777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27778  *) ac_try_echo=$ac_try;;
27779esac
27780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27781  (eval "$ac_try") 2>&5
27782  ac_status=$?
27783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27784  (exit $ac_status); }; }; then
27785  ac_cv_lib_udis86_ud_init=yes
27786else
27787  echo "$as_me: failed program was:" >&5
27788sed 's/^/| /' conftest.$ac_ext >&5
27789
27790	ac_cv_lib_udis86_ud_init=no
27791fi
27792
27793rm -f core conftest.err conftest.$ac_objext \
27794      conftest$ac_exeext conftest.$ac_ext
27795LIBS=$ac_check_lib_save_LIBS
27796fi
27797{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27798echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27799if test $ac_cv_lib_udis86_ud_init = yes; then
27800  cat >>confdefs.h <<_ACEOF
27801#define HAVE_LIBUDIS86 1
27802_ACEOF
27803
27804  LIBS="-ludis86 $LIBS"
27805
27806else
27807
27808        echo "Error! You need to have libudis86 around."
27809        exit -1
27810
27811fi
27812
27813
27814else
27815  USE_UDIS86=0
27816
27817fi
27818
27819
27820cat >>confdefs.h <<_ACEOF
27821#define USE_UDIS86 $USE_UDIS86
27822_ACEOF
27823
27824
27825
27826
27827
27828
27829
27830
27831ac_header_dirent=no
27832for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27833  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27834{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27835echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27836if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27837  echo $ECHO_N "(cached) $ECHO_C" >&6
27838else
27839  cat >conftest.$ac_ext <<_ACEOF
27840/* confdefs.h.  */
27841_ACEOF
27842cat confdefs.h >>conftest.$ac_ext
27843cat >>conftest.$ac_ext <<_ACEOF
27844/* end confdefs.h.  */
27845#include <sys/types.h>
27846#include <$ac_hdr>
27847
27848int
27849main ()
27850{
27851if ((DIR *) 0)
27852return 0;
27853  ;
27854  return 0;
27855}
27856_ACEOF
27857rm -f conftest.$ac_objext
27858if { (ac_try="$ac_compile"
27859case "(($ac_try" in
27860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27861  *) ac_try_echo=$ac_try;;
27862esac
27863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27864  (eval "$ac_compile") 2>conftest.er1
27865  ac_status=$?
27866  grep -v '^ *+' conftest.er1 >conftest.err
27867  rm -f conftest.er1
27868  cat conftest.err >&5
27869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27870  (exit $ac_status); } &&
27871	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27872  { (case "(($ac_try" in
27873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27874  *) ac_try_echo=$ac_try;;
27875esac
27876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27877  (eval "$ac_try") 2>&5
27878  ac_status=$?
27879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27880  (exit $ac_status); }; } &&
27881	 { ac_try='test -s conftest.$ac_objext'
27882  { (case "(($ac_try" in
27883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27884  *) ac_try_echo=$ac_try;;
27885esac
27886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27887  (eval "$ac_try") 2>&5
27888  ac_status=$?
27889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27890  (exit $ac_status); }; }; then
27891  eval "$as_ac_Header=yes"
27892else
27893  echo "$as_me: failed program was:" >&5
27894sed 's/^/| /' conftest.$ac_ext >&5
27895
27896	eval "$as_ac_Header=no"
27897fi
27898
27899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27900fi
27901ac_res=`eval echo '${'$as_ac_Header'}'`
27902	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27903echo "${ECHO_T}$ac_res" >&6; }
27904if test `eval echo '${'$as_ac_Header'}'` = yes; then
27905  cat >>confdefs.h <<_ACEOF
27906#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27907_ACEOF
27908
27909ac_header_dirent=$ac_hdr; break
27910fi
27911
27912done
27913# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27914if test $ac_header_dirent = dirent.h; then
27915  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27916echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27917if test "${ac_cv_search_opendir+set}" = set; then
27918  echo $ECHO_N "(cached) $ECHO_C" >&6
27919else
27920  ac_func_search_save_LIBS=$LIBS
27921cat >conftest.$ac_ext <<_ACEOF
27922/* confdefs.h.  */
27923_ACEOF
27924cat confdefs.h >>conftest.$ac_ext
27925cat >>conftest.$ac_ext <<_ACEOF
27926/* end confdefs.h.  */
27927
27928/* Override any GCC internal prototype to avoid an error.
27929   Use char because int might match the return type of a GCC
27930   builtin and then its argument prototype would still apply.  */
27931#ifdef __cplusplus
27932extern "C"
27933#endif
27934char opendir ();
27935int
27936main ()
27937{
27938return opendir ();
27939  ;
27940  return 0;
27941}
27942_ACEOF
27943for ac_lib in '' dir; do
27944  if test -z "$ac_lib"; then
27945    ac_res="none required"
27946  else
27947    ac_res=-l$ac_lib
27948    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27949  fi
27950  rm -f conftest.$ac_objext conftest$ac_exeext
27951if { (ac_try="$ac_link"
27952case "(($ac_try" in
27953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27954  *) ac_try_echo=$ac_try;;
27955esac
27956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27957  (eval "$ac_link") 2>conftest.er1
27958  ac_status=$?
27959  grep -v '^ *+' conftest.er1 >conftest.err
27960  rm -f conftest.er1
27961  cat conftest.err >&5
27962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963  (exit $ac_status); } &&
27964	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27965  { (case "(($ac_try" in
27966  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27967  *) ac_try_echo=$ac_try;;
27968esac
27969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27970  (eval "$ac_try") 2>&5
27971  ac_status=$?
27972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27973  (exit $ac_status); }; } &&
27974	 { ac_try='test -s conftest$ac_exeext'
27975  { (case "(($ac_try" in
27976  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27977  *) ac_try_echo=$ac_try;;
27978esac
27979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27980  (eval "$ac_try") 2>&5
27981  ac_status=$?
27982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27983  (exit $ac_status); }; }; then
27984  ac_cv_search_opendir=$ac_res
27985else
27986  echo "$as_me: failed program was:" >&5
27987sed 's/^/| /' conftest.$ac_ext >&5
27988
27989
27990fi
27991
27992rm -f core conftest.err conftest.$ac_objext \
27993      conftest$ac_exeext
27994  if test "${ac_cv_search_opendir+set}" = set; then
27995  break
27996fi
27997done
27998if test "${ac_cv_search_opendir+set}" = set; then
27999  :
28000else
28001  ac_cv_search_opendir=no
28002fi
28003rm conftest.$ac_ext
28004LIBS=$ac_func_search_save_LIBS
28005fi
28006{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28007echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28008ac_res=$ac_cv_search_opendir
28009if test "$ac_res" != no; then
28010  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28011
28012fi
28013
28014else
28015  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28016echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28017if test "${ac_cv_search_opendir+set}" = set; then
28018  echo $ECHO_N "(cached) $ECHO_C" >&6
28019else
28020  ac_func_search_save_LIBS=$LIBS
28021cat >conftest.$ac_ext <<_ACEOF
28022/* confdefs.h.  */
28023_ACEOF
28024cat confdefs.h >>conftest.$ac_ext
28025cat >>conftest.$ac_ext <<_ACEOF
28026/* end confdefs.h.  */
28027
28028/* Override any GCC internal prototype to avoid an error.
28029   Use char because int might match the return type of a GCC
28030   builtin and then its argument prototype would still apply.  */
28031#ifdef __cplusplus
28032extern "C"
28033#endif
28034char opendir ();
28035int
28036main ()
28037{
28038return opendir ();
28039  ;
28040  return 0;
28041}
28042_ACEOF
28043for ac_lib in '' x; do
28044  if test -z "$ac_lib"; then
28045    ac_res="none required"
28046  else
28047    ac_res=-l$ac_lib
28048    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28049  fi
28050  rm -f conftest.$ac_objext conftest$ac_exeext
28051if { (ac_try="$ac_link"
28052case "(($ac_try" in
28053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28054  *) ac_try_echo=$ac_try;;
28055esac
28056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28057  (eval "$ac_link") 2>conftest.er1
28058  ac_status=$?
28059  grep -v '^ *+' conftest.er1 >conftest.err
28060  rm -f conftest.er1
28061  cat conftest.err >&5
28062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063  (exit $ac_status); } &&
28064	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28065  { (case "(($ac_try" in
28066  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28067  *) ac_try_echo=$ac_try;;
28068esac
28069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28070  (eval "$ac_try") 2>&5
28071  ac_status=$?
28072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28073  (exit $ac_status); }; } &&
28074	 { ac_try='test -s conftest$ac_exeext'
28075  { (case "(($ac_try" in
28076  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28077  *) ac_try_echo=$ac_try;;
28078esac
28079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28080  (eval "$ac_try") 2>&5
28081  ac_status=$?
28082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28083  (exit $ac_status); }; }; then
28084  ac_cv_search_opendir=$ac_res
28085else
28086  echo "$as_me: failed program was:" >&5
28087sed 's/^/| /' conftest.$ac_ext >&5
28088
28089
28090fi
28091
28092rm -f core conftest.err conftest.$ac_objext \
28093      conftest$ac_exeext
28094  if test "${ac_cv_search_opendir+set}" = set; then
28095  break
28096fi
28097done
28098if test "${ac_cv_search_opendir+set}" = set; then
28099  :
28100else
28101  ac_cv_search_opendir=no
28102fi
28103rm conftest.$ac_ext
28104LIBS=$ac_func_search_save_LIBS
28105fi
28106{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28107echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28108ac_res=$ac_cv_search_opendir
28109if test "$ac_res" != no; then
28110  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28111
28112fi
28113
28114fi
28115
28116{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28117echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28118if test "${ac_cv_header_mmap_anon+set}" = set; then
28119  echo $ECHO_N "(cached) $ECHO_C" >&6
28120else
28121   ac_ext=c
28122ac_cpp='$CPP $CPPFLAGS'
28123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28125ac_compiler_gnu=$ac_cv_c_compiler_gnu
28126
28127  cat >conftest.$ac_ext <<_ACEOF
28128/* confdefs.h.  */
28129_ACEOF
28130cat confdefs.h >>conftest.$ac_ext
28131cat >>conftest.$ac_ext <<_ACEOF
28132/* end confdefs.h.  */
28133#include <sys/mman.h>
28134#include <unistd.h>
28135#include <fcntl.h>
28136int
28137main ()
28138{
28139mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28140  ;
28141  return 0;
28142}
28143_ACEOF
28144rm -f conftest.$ac_objext
28145if { (ac_try="$ac_compile"
28146case "(($ac_try" in
28147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28148  *) ac_try_echo=$ac_try;;
28149esac
28150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28151  (eval "$ac_compile") 2>conftest.er1
28152  ac_status=$?
28153  grep -v '^ *+' conftest.er1 >conftest.err
28154  rm -f conftest.er1
28155  cat conftest.err >&5
28156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28157  (exit $ac_status); } &&
28158	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28159  { (case "(($ac_try" in
28160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28161  *) ac_try_echo=$ac_try;;
28162esac
28163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28164  (eval "$ac_try") 2>&5
28165  ac_status=$?
28166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28167  (exit $ac_status); }; } &&
28168	 { ac_try='test -s conftest.$ac_objext'
28169  { (case "(($ac_try" in
28170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28171  *) ac_try_echo=$ac_try;;
28172esac
28173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28174  (eval "$ac_try") 2>&5
28175  ac_status=$?
28176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28177  (exit $ac_status); }; }; then
28178  ac_cv_header_mmap_anon=yes
28179else
28180  echo "$as_me: failed program was:" >&5
28181sed 's/^/| /' conftest.$ac_ext >&5
28182
28183	ac_cv_header_mmap_anon=no
28184fi
28185
28186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28187  ac_ext=c
28188ac_cpp='$CPP $CPPFLAGS'
28189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28191ac_compiler_gnu=$ac_cv_c_compiler_gnu
28192
28193
28194fi
28195{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28196echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28197if test "$ac_cv_header_mmap_anon" = yes; then
28198
28199cat >>confdefs.h <<\_ACEOF
28200#define HAVE_MMAP_ANONYMOUS 1
28201_ACEOF
28202
28203fi
28204
28205{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28206echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28207if test "${ac_cv_header_stat_broken+set}" = set; then
28208  echo $ECHO_N "(cached) $ECHO_C" >&6
28209else
28210  cat >conftest.$ac_ext <<_ACEOF
28211/* confdefs.h.  */
28212_ACEOF
28213cat confdefs.h >>conftest.$ac_ext
28214cat >>conftest.$ac_ext <<_ACEOF
28215/* end confdefs.h.  */
28216#include <sys/types.h>
28217#include <sys/stat.h>
28218
28219#if defined S_ISBLK && defined S_IFDIR
28220# if S_ISBLK (S_IFDIR)
28221You lose.
28222# endif
28223#endif
28224
28225#if defined S_ISBLK && defined S_IFCHR
28226# if S_ISBLK (S_IFCHR)
28227You lose.
28228# endif
28229#endif
28230
28231#if defined S_ISLNK && defined S_IFREG
28232# if S_ISLNK (S_IFREG)
28233You lose.
28234# endif
28235#endif
28236
28237#if defined S_ISSOCK && defined S_IFREG
28238# if S_ISSOCK (S_IFREG)
28239You lose.
28240# endif
28241#endif
28242
28243_ACEOF
28244if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28245  $EGREP "You lose" >/dev/null 2>&1; then
28246  ac_cv_header_stat_broken=yes
28247else
28248  ac_cv_header_stat_broken=no
28249fi
28250rm -f conftest*
28251
28252fi
28253{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28254echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28255if test $ac_cv_header_stat_broken = yes; then
28256
28257cat >>confdefs.h <<\_ACEOF
28258#define STAT_MACROS_BROKEN 1
28259_ACEOF
28260
28261fi
28262
28263{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28264echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28265if test "${ac_cv_header_stdc+set}" = set; then
28266  echo $ECHO_N "(cached) $ECHO_C" >&6
28267else
28268  cat >conftest.$ac_ext <<_ACEOF
28269/* confdefs.h.  */
28270_ACEOF
28271cat confdefs.h >>conftest.$ac_ext
28272cat >>conftest.$ac_ext <<_ACEOF
28273/* end confdefs.h.  */
28274#include <stdlib.h>
28275#include <stdarg.h>
28276#include <string.h>
28277#include <float.h>
28278
28279int
28280main ()
28281{
28282
28283  ;
28284  return 0;
28285}
28286_ACEOF
28287rm -f conftest.$ac_objext
28288if { (ac_try="$ac_compile"
28289case "(($ac_try" in
28290  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28291  *) ac_try_echo=$ac_try;;
28292esac
28293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28294  (eval "$ac_compile") 2>conftest.er1
28295  ac_status=$?
28296  grep -v '^ *+' conftest.er1 >conftest.err
28297  rm -f conftest.er1
28298  cat conftest.err >&5
28299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28300  (exit $ac_status); } &&
28301	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28302  { (case "(($ac_try" in
28303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28304  *) ac_try_echo=$ac_try;;
28305esac
28306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28307  (eval "$ac_try") 2>&5
28308  ac_status=$?
28309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28310  (exit $ac_status); }; } &&
28311	 { ac_try='test -s conftest.$ac_objext'
28312  { (case "(($ac_try" in
28313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28314  *) ac_try_echo=$ac_try;;
28315esac
28316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28317  (eval "$ac_try") 2>&5
28318  ac_status=$?
28319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28320  (exit $ac_status); }; }; then
28321  ac_cv_header_stdc=yes
28322else
28323  echo "$as_me: failed program was:" >&5
28324sed 's/^/| /' conftest.$ac_ext >&5
28325
28326	ac_cv_header_stdc=no
28327fi
28328
28329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28330
28331if test $ac_cv_header_stdc = yes; then
28332  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28333  cat >conftest.$ac_ext <<_ACEOF
28334/* confdefs.h.  */
28335_ACEOF
28336cat confdefs.h >>conftest.$ac_ext
28337cat >>conftest.$ac_ext <<_ACEOF
28338/* end confdefs.h.  */
28339#include <string.h>
28340
28341_ACEOF
28342if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28343  $EGREP "memchr" >/dev/null 2>&1; then
28344  :
28345else
28346  ac_cv_header_stdc=no
28347fi
28348rm -f conftest*
28349
28350fi
28351
28352if test $ac_cv_header_stdc = yes; then
28353  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28354  cat >conftest.$ac_ext <<_ACEOF
28355/* confdefs.h.  */
28356_ACEOF
28357cat confdefs.h >>conftest.$ac_ext
28358cat >>conftest.$ac_ext <<_ACEOF
28359/* end confdefs.h.  */
28360#include <stdlib.h>
28361
28362_ACEOF
28363if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28364  $EGREP "free" >/dev/null 2>&1; then
28365  :
28366else
28367  ac_cv_header_stdc=no
28368fi
28369rm -f conftest*
28370
28371fi
28372
28373if test $ac_cv_header_stdc = yes; then
28374  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28375  if test "$cross_compiling" = yes; then
28376  :
28377else
28378  cat >conftest.$ac_ext <<_ACEOF
28379/* confdefs.h.  */
28380_ACEOF
28381cat confdefs.h >>conftest.$ac_ext
28382cat >>conftest.$ac_ext <<_ACEOF
28383/* end confdefs.h.  */
28384#include <ctype.h>
28385#include <stdlib.h>
28386#if ((' ' & 0x0FF) == 0x020)
28387# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28388# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28389#else
28390# define ISLOWER(c) \
28391		   (('a' <= (c) && (c) <= 'i') \
28392		     || ('j' <= (c) && (c) <= 'r') \
28393		     || ('s' <= (c) && (c) <= 'z'))
28394# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28395#endif
28396
28397#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28398int
28399main ()
28400{
28401  int i;
28402  for (i = 0; i < 256; i++)
28403    if (XOR (islower (i), ISLOWER (i))
28404	|| toupper (i) != TOUPPER (i))
28405      return 2;
28406  return 0;
28407}
28408_ACEOF
28409rm -f conftest$ac_exeext
28410if { (ac_try="$ac_link"
28411case "(($ac_try" in
28412  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28413  *) ac_try_echo=$ac_try;;
28414esac
28415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28416  (eval "$ac_link") 2>&5
28417  ac_status=$?
28418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28419  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28420  { (case "(($ac_try" in
28421  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28422  *) ac_try_echo=$ac_try;;
28423esac
28424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28425  (eval "$ac_try") 2>&5
28426  ac_status=$?
28427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28428  (exit $ac_status); }; }; then
28429  :
28430else
28431  echo "$as_me: program exited with status $ac_status" >&5
28432echo "$as_me: failed program was:" >&5
28433sed 's/^/| /' conftest.$ac_ext >&5
28434
28435( exit $ac_status )
28436ac_cv_header_stdc=no
28437fi
28438rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28439fi
28440
28441
28442fi
28443fi
28444{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28445echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28446if test $ac_cv_header_stdc = yes; then
28447
28448cat >>confdefs.h <<\_ACEOF
28449#define STDC_HEADERS 1
28450_ACEOF
28451
28452fi
28453
28454{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28455echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28456if test "${ac_cv_header_sys_wait_h+set}" = set; then
28457  echo $ECHO_N "(cached) $ECHO_C" >&6
28458else
28459  cat >conftest.$ac_ext <<_ACEOF
28460/* confdefs.h.  */
28461_ACEOF
28462cat confdefs.h >>conftest.$ac_ext
28463cat >>conftest.$ac_ext <<_ACEOF
28464/* end confdefs.h.  */
28465#include <sys/types.h>
28466#include <sys/wait.h>
28467#ifndef WEXITSTATUS
28468# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28469#endif
28470#ifndef WIFEXITED
28471# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28472#endif
28473
28474int
28475main ()
28476{
28477  int s;
28478  wait (&s);
28479  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28480  ;
28481  return 0;
28482}
28483_ACEOF
28484rm -f conftest.$ac_objext
28485if { (ac_try="$ac_compile"
28486case "(($ac_try" in
28487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28488  *) ac_try_echo=$ac_try;;
28489esac
28490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28491  (eval "$ac_compile") 2>conftest.er1
28492  ac_status=$?
28493  grep -v '^ *+' conftest.er1 >conftest.err
28494  rm -f conftest.er1
28495  cat conftest.err >&5
28496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28497  (exit $ac_status); } &&
28498	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28499  { (case "(($ac_try" in
28500  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28501  *) ac_try_echo=$ac_try;;
28502esac
28503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28504  (eval "$ac_try") 2>&5
28505  ac_status=$?
28506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28507  (exit $ac_status); }; } &&
28508	 { ac_try='test -s conftest.$ac_objext'
28509  { (case "(($ac_try" in
28510  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28511  *) ac_try_echo=$ac_try;;
28512esac
28513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28514  (eval "$ac_try") 2>&5
28515  ac_status=$?
28516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28517  (exit $ac_status); }; }; then
28518  ac_cv_header_sys_wait_h=yes
28519else
28520  echo "$as_me: failed program was:" >&5
28521sed 's/^/| /' conftest.$ac_ext >&5
28522
28523	ac_cv_header_sys_wait_h=no
28524fi
28525
28526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28527fi
28528{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28529echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28530if test $ac_cv_header_sys_wait_h = yes; then
28531
28532cat >>confdefs.h <<\_ACEOF
28533#define HAVE_SYS_WAIT_H 1
28534_ACEOF
28535
28536fi
28537
28538{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28539echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28540if test "${ac_cv_header_time+set}" = set; then
28541  echo $ECHO_N "(cached) $ECHO_C" >&6
28542else
28543  cat >conftest.$ac_ext <<_ACEOF
28544/* confdefs.h.  */
28545_ACEOF
28546cat confdefs.h >>conftest.$ac_ext
28547cat >>conftest.$ac_ext <<_ACEOF
28548/* end confdefs.h.  */
28549#include <sys/types.h>
28550#include <sys/time.h>
28551#include <time.h>
28552
28553int
28554main ()
28555{
28556if ((struct tm *) 0)
28557return 0;
28558  ;
28559  return 0;
28560}
28561_ACEOF
28562rm -f conftest.$ac_objext
28563if { (ac_try="$ac_compile"
28564case "(($ac_try" in
28565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28566  *) ac_try_echo=$ac_try;;
28567esac
28568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28569  (eval "$ac_compile") 2>conftest.er1
28570  ac_status=$?
28571  grep -v '^ *+' conftest.er1 >conftest.err
28572  rm -f conftest.er1
28573  cat conftest.err >&5
28574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28575  (exit $ac_status); } &&
28576	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28577  { (case "(($ac_try" in
28578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28579  *) ac_try_echo=$ac_try;;
28580esac
28581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28582  (eval "$ac_try") 2>&5
28583  ac_status=$?
28584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28585  (exit $ac_status); }; } &&
28586	 { ac_try='test -s conftest.$ac_objext'
28587  { (case "(($ac_try" in
28588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28589  *) ac_try_echo=$ac_try;;
28590esac
28591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28592  (eval "$ac_try") 2>&5
28593  ac_status=$?
28594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28595  (exit $ac_status); }; }; then
28596  ac_cv_header_time=yes
28597else
28598  echo "$as_me: failed program was:" >&5
28599sed 's/^/| /' conftest.$ac_ext >&5
28600
28601	ac_cv_header_time=no
28602fi
28603
28604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28605fi
28606{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28607echo "${ECHO_T}$ac_cv_header_time" >&6; }
28608if test $ac_cv_header_time = yes; then
28609
28610cat >>confdefs.h <<\_ACEOF
28611#define TIME_WITH_SYS_TIME 1
28612_ACEOF
28613
28614fi
28615
28616
28617
28618
28619
28620
28621
28622
28623for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28624do
28625as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28626if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28627  { echo "$as_me:$LINENO: checking for $ac_header" >&5
28628echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28629if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28630  echo $ECHO_N "(cached) $ECHO_C" >&6
28631fi
28632ac_res=`eval echo '${'$as_ac_Header'}'`
28633	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28634echo "${ECHO_T}$ac_res" >&6; }
28635else
28636  # Is the header compilable?
28637{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28638echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28639cat >conftest.$ac_ext <<_ACEOF
28640/* confdefs.h.  */
28641_ACEOF
28642cat confdefs.h >>conftest.$ac_ext
28643cat >>conftest.$ac_ext <<_ACEOF
28644/* end confdefs.h.  */
28645$ac_includes_default
28646#include <$ac_header>
28647_ACEOF
28648rm -f conftest.$ac_objext
28649if { (ac_try="$ac_compile"
28650case "(($ac_try" in
28651  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28652  *) ac_try_echo=$ac_try;;
28653esac
28654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28655  (eval "$ac_compile") 2>conftest.er1
28656  ac_status=$?
28657  grep -v '^ *+' conftest.er1 >conftest.err
28658  rm -f conftest.er1
28659  cat conftest.err >&5
28660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28661  (exit $ac_status); } &&
28662	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28663  { (case "(($ac_try" in
28664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28665  *) ac_try_echo=$ac_try;;
28666esac
28667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28668  (eval "$ac_try") 2>&5
28669  ac_status=$?
28670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28671  (exit $ac_status); }; } &&
28672	 { ac_try='test -s conftest.$ac_objext'
28673  { (case "(($ac_try" in
28674  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28675  *) ac_try_echo=$ac_try;;
28676esac
28677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28678  (eval "$ac_try") 2>&5
28679  ac_status=$?
28680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28681  (exit $ac_status); }; }; then
28682  ac_header_compiler=yes
28683else
28684  echo "$as_me: failed program was:" >&5
28685sed 's/^/| /' conftest.$ac_ext >&5
28686
28687	ac_header_compiler=no
28688fi
28689
28690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28691{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28692echo "${ECHO_T}$ac_header_compiler" >&6; }
28693
28694# Is the header present?
28695{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28696echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28697cat >conftest.$ac_ext <<_ACEOF
28698/* confdefs.h.  */
28699_ACEOF
28700cat confdefs.h >>conftest.$ac_ext
28701cat >>conftest.$ac_ext <<_ACEOF
28702/* end confdefs.h.  */
28703#include <$ac_header>
28704_ACEOF
28705if { (ac_try="$ac_cpp conftest.$ac_ext"
28706case "(($ac_try" in
28707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28708  *) ac_try_echo=$ac_try;;
28709esac
28710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28711  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28712  ac_status=$?
28713  grep -v '^ *+' conftest.er1 >conftest.err
28714  rm -f conftest.er1
28715  cat conftest.err >&5
28716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28717  (exit $ac_status); } >/dev/null; then
28718  if test -s conftest.err; then
28719    ac_cpp_err=$ac_c_preproc_warn_flag
28720    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28721  else
28722    ac_cpp_err=
28723  fi
28724else
28725  ac_cpp_err=yes
28726fi
28727if test -z "$ac_cpp_err"; then
28728  ac_header_preproc=yes
28729else
28730  echo "$as_me: failed program was:" >&5
28731sed 's/^/| /' conftest.$ac_ext >&5
28732
28733  ac_header_preproc=no
28734fi
28735
28736rm -f conftest.err conftest.$ac_ext
28737{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28738echo "${ECHO_T}$ac_header_preproc" >&6; }
28739
28740# So?  What about this header?
28741case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28742  yes:no: )
28743    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28744echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28745    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28746echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28747    ac_header_preproc=yes
28748    ;;
28749  no:yes:* )
28750    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28751echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28752    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28753echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28754    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28755echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28756    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28757echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28758    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28759echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28760    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28761echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28762    ( cat <<\_ASBOX
28763## ----------------------------------- ##
28764## Report this to llvmbugs@cs.uiuc.edu ##
28765## ----------------------------------- ##
28766_ASBOX
28767     ) | sed "s/^/$as_me: WARNING:     /" >&2
28768    ;;
28769esac
28770{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28771echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28772if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28773  echo $ECHO_N "(cached) $ECHO_C" >&6
28774else
28775  eval "$as_ac_Header=\$ac_header_preproc"
28776fi
28777ac_res=`eval echo '${'$as_ac_Header'}'`
28778	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28779echo "${ECHO_T}$ac_res" >&6; }
28780
28781fi
28782if test `eval echo '${'$as_ac_Header'}'` = yes; then
28783  cat >>confdefs.h <<_ACEOF
28784#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28785_ACEOF
28786
28787fi
28788
28789done
28790
28791
28792
28793
28794
28795
28796
28797for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28798do
28799as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28800if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28801  { echo "$as_me:$LINENO: checking for $ac_header" >&5
28802echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28803if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28804  echo $ECHO_N "(cached) $ECHO_C" >&6
28805fi
28806ac_res=`eval echo '${'$as_ac_Header'}'`
28807	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28808echo "${ECHO_T}$ac_res" >&6; }
28809else
28810  # Is the header compilable?
28811{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28812echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28813cat >conftest.$ac_ext <<_ACEOF
28814/* confdefs.h.  */
28815_ACEOF
28816cat confdefs.h >>conftest.$ac_ext
28817cat >>conftest.$ac_ext <<_ACEOF
28818/* end confdefs.h.  */
28819$ac_includes_default
28820#include <$ac_header>
28821_ACEOF
28822rm -f conftest.$ac_objext
28823if { (ac_try="$ac_compile"
28824case "(($ac_try" in
28825  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28826  *) ac_try_echo=$ac_try;;
28827esac
28828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28829  (eval "$ac_compile") 2>conftest.er1
28830  ac_status=$?
28831  grep -v '^ *+' conftest.er1 >conftest.err
28832  rm -f conftest.er1
28833  cat conftest.err >&5
28834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28835  (exit $ac_status); } &&
28836	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28837  { (case "(($ac_try" in
28838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28839  *) ac_try_echo=$ac_try;;
28840esac
28841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28842  (eval "$ac_try") 2>&5
28843  ac_status=$?
28844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28845  (exit $ac_status); }; } &&
28846	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
28856  ac_header_compiler=yes
28857else
28858  echo "$as_me: failed program was:" >&5
28859sed 's/^/| /' conftest.$ac_ext >&5
28860
28861	ac_header_compiler=no
28862fi
28863
28864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28865{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28866echo "${ECHO_T}$ac_header_compiler" >&6; }
28867
28868# Is the header present?
28869{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28870echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28871cat >conftest.$ac_ext <<_ACEOF
28872/* confdefs.h.  */
28873_ACEOF
28874cat confdefs.h >>conftest.$ac_ext
28875cat >>conftest.$ac_ext <<_ACEOF
28876/* end confdefs.h.  */
28877#include <$ac_header>
28878_ACEOF
28879if { (ac_try="$ac_cpp conftest.$ac_ext"
28880case "(($ac_try" in
28881  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28882  *) ac_try_echo=$ac_try;;
28883esac
28884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28885  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28886  ac_status=$?
28887  grep -v '^ *+' conftest.er1 >conftest.err
28888  rm -f conftest.er1
28889  cat conftest.err >&5
28890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28891  (exit $ac_status); } >/dev/null; then
28892  if test -s conftest.err; then
28893    ac_cpp_err=$ac_c_preproc_warn_flag
28894    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28895  else
28896    ac_cpp_err=
28897  fi
28898else
28899  ac_cpp_err=yes
28900fi
28901if test -z "$ac_cpp_err"; then
28902  ac_header_preproc=yes
28903else
28904  echo "$as_me: failed program was:" >&5
28905sed 's/^/| /' conftest.$ac_ext >&5
28906
28907  ac_header_preproc=no
28908fi
28909
28910rm -f conftest.err conftest.$ac_ext
28911{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28912echo "${ECHO_T}$ac_header_preproc" >&6; }
28913
28914# So?  What about this header?
28915case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28916  yes:no: )
28917    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28918echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28919    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28920echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28921    ac_header_preproc=yes
28922    ;;
28923  no:yes:* )
28924    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28925echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28926    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28927echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28928    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28929echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28930    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28931echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28932    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28933echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28934    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28935echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28936    ( cat <<\_ASBOX
28937## ----------------------------------- ##
28938## Report this to llvmbugs@cs.uiuc.edu ##
28939## ----------------------------------- ##
28940_ASBOX
28941     ) | sed "s/^/$as_me: WARNING:     /" >&2
28942    ;;
28943esac
28944{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28945echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28946if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28947  echo $ECHO_N "(cached) $ECHO_C" >&6
28948else
28949  eval "$as_ac_Header=\$ac_header_preproc"
28950fi
28951ac_res=`eval echo '${'$as_ac_Header'}'`
28952	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28953echo "${ECHO_T}$ac_res" >&6; }
28954
28955fi
28956if test `eval echo '${'$as_ac_Header'}'` = yes; then
28957  cat >>confdefs.h <<_ACEOF
28958#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28959_ACEOF
28960
28961fi
28962
28963done
28964
28965
28966for ac_header in windows.h
28967do
28968as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28969if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28970  { echo "$as_me:$LINENO: checking for $ac_header" >&5
28971echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28972if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28973  echo $ECHO_N "(cached) $ECHO_C" >&6
28974fi
28975ac_res=`eval echo '${'$as_ac_Header'}'`
28976	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28977echo "${ECHO_T}$ac_res" >&6; }
28978else
28979  # Is the header compilable?
28980{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28981echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28982cat >conftest.$ac_ext <<_ACEOF
28983/* confdefs.h.  */
28984_ACEOF
28985cat confdefs.h >>conftest.$ac_ext
28986cat >>conftest.$ac_ext <<_ACEOF
28987/* end confdefs.h.  */
28988$ac_includes_default
28989#include <$ac_header>
28990_ACEOF
28991rm -f conftest.$ac_objext
28992if { (ac_try="$ac_compile"
28993case "(($ac_try" in
28994  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28995  *) ac_try_echo=$ac_try;;
28996esac
28997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28998  (eval "$ac_compile") 2>conftest.er1
28999  ac_status=$?
29000  grep -v '^ *+' conftest.er1 >conftest.err
29001  rm -f conftest.er1
29002  cat conftest.err >&5
29003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29004  (exit $ac_status); } &&
29005	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29006  { (case "(($ac_try" in
29007  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29008  *) ac_try_echo=$ac_try;;
29009esac
29010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29011  (eval "$ac_try") 2>&5
29012  ac_status=$?
29013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29014  (exit $ac_status); }; } &&
29015	 { ac_try='test -s conftest.$ac_objext'
29016  { (case "(($ac_try" in
29017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29018  *) ac_try_echo=$ac_try;;
29019esac
29020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29021  (eval "$ac_try") 2>&5
29022  ac_status=$?
29023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29024  (exit $ac_status); }; }; then
29025  ac_header_compiler=yes
29026else
29027  echo "$as_me: failed program was:" >&5
29028sed 's/^/| /' conftest.$ac_ext >&5
29029
29030	ac_header_compiler=no
29031fi
29032
29033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29034{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29035echo "${ECHO_T}$ac_header_compiler" >&6; }
29036
29037# Is the header present?
29038{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29039echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29040cat >conftest.$ac_ext <<_ACEOF
29041/* confdefs.h.  */
29042_ACEOF
29043cat confdefs.h >>conftest.$ac_ext
29044cat >>conftest.$ac_ext <<_ACEOF
29045/* end confdefs.h.  */
29046#include <$ac_header>
29047_ACEOF
29048if { (ac_try="$ac_cpp conftest.$ac_ext"
29049case "(($ac_try" in
29050  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29051  *) ac_try_echo=$ac_try;;
29052esac
29053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29054  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29055  ac_status=$?
29056  grep -v '^ *+' conftest.er1 >conftest.err
29057  rm -f conftest.er1
29058  cat conftest.err >&5
29059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29060  (exit $ac_status); } >/dev/null; then
29061  if test -s conftest.err; then
29062    ac_cpp_err=$ac_c_preproc_warn_flag
29063    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29064  else
29065    ac_cpp_err=
29066  fi
29067else
29068  ac_cpp_err=yes
29069fi
29070if test -z "$ac_cpp_err"; then
29071  ac_header_preproc=yes
29072else
29073  echo "$as_me: failed program was:" >&5
29074sed 's/^/| /' conftest.$ac_ext >&5
29075
29076  ac_header_preproc=no
29077fi
29078
29079rm -f conftest.err conftest.$ac_ext
29080{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29081echo "${ECHO_T}$ac_header_preproc" >&6; }
29082
29083# So?  What about this header?
29084case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29085  yes:no: )
29086    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29087echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29088    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29089echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29090    ac_header_preproc=yes
29091    ;;
29092  no:yes:* )
29093    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29094echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29095    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29096echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29097    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29098echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29099    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29100echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29101    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29102echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29103    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29104echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29105    ( cat <<\_ASBOX
29106## ----------------------------------- ##
29107## Report this to llvmbugs@cs.uiuc.edu ##
29108## ----------------------------------- ##
29109_ASBOX
29110     ) | sed "s/^/$as_me: WARNING:     /" >&2
29111    ;;
29112esac
29113{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29114echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29115if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29116  echo $ECHO_N "(cached) $ECHO_C" >&6
29117else
29118  eval "$as_ac_Header=\$ac_header_preproc"
29119fi
29120ac_res=`eval echo '${'$as_ac_Header'}'`
29121	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29122echo "${ECHO_T}$ac_res" >&6; }
29123
29124fi
29125if test `eval echo '${'$as_ac_Header'}'` = yes; then
29126  cat >>confdefs.h <<_ACEOF
29127#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29128_ACEOF
29129
29130fi
29131
29132done
29133
29134
29135
29136
29137
29138for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29139do
29140as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29141if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29142  { echo "$as_me:$LINENO: checking for $ac_header" >&5
29143echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29144if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29145  echo $ECHO_N "(cached) $ECHO_C" >&6
29146fi
29147ac_res=`eval echo '${'$as_ac_Header'}'`
29148	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29149echo "${ECHO_T}$ac_res" >&6; }
29150else
29151  # Is the header compilable?
29152{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29153echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29154cat >conftest.$ac_ext <<_ACEOF
29155/* confdefs.h.  */
29156_ACEOF
29157cat confdefs.h >>conftest.$ac_ext
29158cat >>conftest.$ac_ext <<_ACEOF
29159/* end confdefs.h.  */
29160$ac_includes_default
29161#include <$ac_header>
29162_ACEOF
29163rm -f conftest.$ac_objext
29164if { (ac_try="$ac_compile"
29165case "(($ac_try" in
29166  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29167  *) ac_try_echo=$ac_try;;
29168esac
29169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29170  (eval "$ac_compile") 2>conftest.er1
29171  ac_status=$?
29172  grep -v '^ *+' conftest.er1 >conftest.err
29173  rm -f conftest.er1
29174  cat conftest.err >&5
29175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29176  (exit $ac_status); } &&
29177	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29178  { (case "(($ac_try" in
29179  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29180  *) ac_try_echo=$ac_try;;
29181esac
29182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29183  (eval "$ac_try") 2>&5
29184  ac_status=$?
29185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29186  (exit $ac_status); }; } &&
29187	 { ac_try='test -s conftest.$ac_objext'
29188  { (case "(($ac_try" in
29189  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29190  *) ac_try_echo=$ac_try;;
29191esac
29192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29193  (eval "$ac_try") 2>&5
29194  ac_status=$?
29195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29196  (exit $ac_status); }; }; then
29197  ac_header_compiler=yes
29198else
29199  echo "$as_me: failed program was:" >&5
29200sed 's/^/| /' conftest.$ac_ext >&5
29201
29202	ac_header_compiler=no
29203fi
29204
29205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29206{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29207echo "${ECHO_T}$ac_header_compiler" >&6; }
29208
29209# Is the header present?
29210{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29211echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29212cat >conftest.$ac_ext <<_ACEOF
29213/* confdefs.h.  */
29214_ACEOF
29215cat confdefs.h >>conftest.$ac_ext
29216cat >>conftest.$ac_ext <<_ACEOF
29217/* end confdefs.h.  */
29218#include <$ac_header>
29219_ACEOF
29220if { (ac_try="$ac_cpp conftest.$ac_ext"
29221case "(($ac_try" in
29222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29223  *) ac_try_echo=$ac_try;;
29224esac
29225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29226  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29227  ac_status=$?
29228  grep -v '^ *+' conftest.er1 >conftest.err
29229  rm -f conftest.er1
29230  cat conftest.err >&5
29231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29232  (exit $ac_status); } >/dev/null; then
29233  if test -s conftest.err; then
29234    ac_cpp_err=$ac_c_preproc_warn_flag
29235    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29236  else
29237    ac_cpp_err=
29238  fi
29239else
29240  ac_cpp_err=yes
29241fi
29242if test -z "$ac_cpp_err"; then
29243  ac_header_preproc=yes
29244else
29245  echo "$as_me: failed program was:" >&5
29246sed 's/^/| /' conftest.$ac_ext >&5
29247
29248  ac_header_preproc=no
29249fi
29250
29251rm -f conftest.err conftest.$ac_ext
29252{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29253echo "${ECHO_T}$ac_header_preproc" >&6; }
29254
29255# So?  What about this header?
29256case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29257  yes:no: )
29258    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29259echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29260    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29261echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29262    ac_header_preproc=yes
29263    ;;
29264  no:yes:* )
29265    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29266echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29267    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29268echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29269    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29270echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29271    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29272echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29273    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29274echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29275    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29276echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29277    ( cat <<\_ASBOX
29278## ----------------------------------- ##
29279## Report this to llvmbugs@cs.uiuc.edu ##
29280## ----------------------------------- ##
29281_ASBOX
29282     ) | sed "s/^/$as_me: WARNING:     /" >&2
29283    ;;
29284esac
29285{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29286echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29287if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29288  echo $ECHO_N "(cached) $ECHO_C" >&6
29289else
29290  eval "$as_ac_Header=\$ac_header_preproc"
29291fi
29292ac_res=`eval echo '${'$as_ac_Header'}'`
29293	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29294echo "${ECHO_T}$ac_res" >&6; }
29295
29296fi
29297if test `eval echo '${'$as_ac_Header'}'` = yes; then
29298  cat >>confdefs.h <<_ACEOF
29299#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29300_ACEOF
29301
29302fi
29303
29304done
29305
29306
29307
29308
29309for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29310do
29311as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29312if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29313  { echo "$as_me:$LINENO: checking for $ac_header" >&5
29314echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29315if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29316  echo $ECHO_N "(cached) $ECHO_C" >&6
29317fi
29318ac_res=`eval echo '${'$as_ac_Header'}'`
29319	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29320echo "${ECHO_T}$ac_res" >&6; }
29321else
29322  # Is the header compilable?
29323{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29324echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29325cat >conftest.$ac_ext <<_ACEOF
29326/* confdefs.h.  */
29327_ACEOF
29328cat confdefs.h >>conftest.$ac_ext
29329cat >>conftest.$ac_ext <<_ACEOF
29330/* end confdefs.h.  */
29331$ac_includes_default
29332#include <$ac_header>
29333_ACEOF
29334rm -f conftest.$ac_objext
29335if { (ac_try="$ac_compile"
29336case "(($ac_try" in
29337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29338  *) ac_try_echo=$ac_try;;
29339esac
29340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29341  (eval "$ac_compile") 2>conftest.er1
29342  ac_status=$?
29343  grep -v '^ *+' conftest.er1 >conftest.err
29344  rm -f conftest.er1
29345  cat conftest.err >&5
29346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29347  (exit $ac_status); } &&
29348	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29349  { (case "(($ac_try" in
29350  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29351  *) ac_try_echo=$ac_try;;
29352esac
29353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29354  (eval "$ac_try") 2>&5
29355  ac_status=$?
29356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29357  (exit $ac_status); }; } &&
29358	 { ac_try='test -s conftest.$ac_objext'
29359  { (case "(($ac_try" in
29360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29361  *) ac_try_echo=$ac_try;;
29362esac
29363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29364  (eval "$ac_try") 2>&5
29365  ac_status=$?
29366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29367  (exit $ac_status); }; }; then
29368  ac_header_compiler=yes
29369else
29370  echo "$as_me: failed program was:" >&5
29371sed 's/^/| /' conftest.$ac_ext >&5
29372
29373	ac_header_compiler=no
29374fi
29375
29376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29377{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29378echo "${ECHO_T}$ac_header_compiler" >&6; }
29379
29380# Is the header present?
29381{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29382echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29383cat >conftest.$ac_ext <<_ACEOF
29384/* confdefs.h.  */
29385_ACEOF
29386cat confdefs.h >>conftest.$ac_ext
29387cat >>conftest.$ac_ext <<_ACEOF
29388/* end confdefs.h.  */
29389#include <$ac_header>
29390_ACEOF
29391if { (ac_try="$ac_cpp conftest.$ac_ext"
29392case "(($ac_try" in
29393  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29394  *) ac_try_echo=$ac_try;;
29395esac
29396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29397  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29398  ac_status=$?
29399  grep -v '^ *+' conftest.er1 >conftest.err
29400  rm -f conftest.er1
29401  cat conftest.err >&5
29402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403  (exit $ac_status); } >/dev/null; then
29404  if test -s conftest.err; then
29405    ac_cpp_err=$ac_c_preproc_warn_flag
29406    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29407  else
29408    ac_cpp_err=
29409  fi
29410else
29411  ac_cpp_err=yes
29412fi
29413if test -z "$ac_cpp_err"; then
29414  ac_header_preproc=yes
29415else
29416  echo "$as_me: failed program was:" >&5
29417sed 's/^/| /' conftest.$ac_ext >&5
29418
29419  ac_header_preproc=no
29420fi
29421
29422rm -f conftest.err conftest.$ac_ext
29423{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29424echo "${ECHO_T}$ac_header_preproc" >&6; }
29425
29426# So?  What about this header?
29427case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29428  yes:no: )
29429    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29430echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29431    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29432echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29433    ac_header_preproc=yes
29434    ;;
29435  no:yes:* )
29436    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29437echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29438    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29439echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29440    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29441echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29442    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29443echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29444    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29445echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29446    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29447echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29448    ( cat <<\_ASBOX
29449## ----------------------------------- ##
29450## Report this to llvmbugs@cs.uiuc.edu ##
29451## ----------------------------------- ##
29452_ASBOX
29453     ) | sed "s/^/$as_me: WARNING:     /" >&2
29454    ;;
29455esac
29456{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29457echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29458if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29459  echo $ECHO_N "(cached) $ECHO_C" >&6
29460else
29461  eval "$as_ac_Header=\$ac_header_preproc"
29462fi
29463ac_res=`eval echo '${'$as_ac_Header'}'`
29464	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29465echo "${ECHO_T}$ac_res" >&6; }
29466
29467fi
29468if test `eval echo '${'$as_ac_Header'}'` = yes; then
29469  cat >>confdefs.h <<_ACEOF
29470#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29471_ACEOF
29472
29473fi
29474
29475done
29476
29477if test "$ENABLE_THREADS" -eq 1 ; then
29478
29479for ac_header in pthread.h
29480do
29481as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29482if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29483  { echo "$as_me:$LINENO: checking for $ac_header" >&5
29484echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29485if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29486  echo $ECHO_N "(cached) $ECHO_C" >&6
29487fi
29488ac_res=`eval echo '${'$as_ac_Header'}'`
29489	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29490echo "${ECHO_T}$ac_res" >&6; }
29491else
29492  # Is the header compilable?
29493{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29494echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29495cat >conftest.$ac_ext <<_ACEOF
29496/* confdefs.h.  */
29497_ACEOF
29498cat confdefs.h >>conftest.$ac_ext
29499cat >>conftest.$ac_ext <<_ACEOF
29500/* end confdefs.h.  */
29501$ac_includes_default
29502#include <$ac_header>
29503_ACEOF
29504rm -f conftest.$ac_objext
29505if { (ac_try="$ac_compile"
29506case "(($ac_try" in
29507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29508  *) ac_try_echo=$ac_try;;
29509esac
29510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29511  (eval "$ac_compile") 2>conftest.er1
29512  ac_status=$?
29513  grep -v '^ *+' conftest.er1 >conftest.err
29514  rm -f conftest.er1
29515  cat conftest.err >&5
29516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517  (exit $ac_status); } &&
29518	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29519  { (case "(($ac_try" in
29520  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29521  *) ac_try_echo=$ac_try;;
29522esac
29523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29524  (eval "$ac_try") 2>&5
29525  ac_status=$?
29526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29527  (exit $ac_status); }; } &&
29528	 { ac_try='test -s conftest.$ac_objext'
29529  { (case "(($ac_try" in
29530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29531  *) ac_try_echo=$ac_try;;
29532esac
29533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29534  (eval "$ac_try") 2>&5
29535  ac_status=$?
29536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29537  (exit $ac_status); }; }; then
29538  ac_header_compiler=yes
29539else
29540  echo "$as_me: failed program was:" >&5
29541sed 's/^/| /' conftest.$ac_ext >&5
29542
29543	ac_header_compiler=no
29544fi
29545
29546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29547{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29548echo "${ECHO_T}$ac_header_compiler" >&6; }
29549
29550# Is the header present?
29551{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29552echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29553cat >conftest.$ac_ext <<_ACEOF
29554/* confdefs.h.  */
29555_ACEOF
29556cat confdefs.h >>conftest.$ac_ext
29557cat >>conftest.$ac_ext <<_ACEOF
29558/* end confdefs.h.  */
29559#include <$ac_header>
29560_ACEOF
29561if { (ac_try="$ac_cpp conftest.$ac_ext"
29562case "(($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_cpp conftest.$ac_ext") 2>conftest.er1
29568  ac_status=$?
29569  grep -v '^ *+' conftest.er1 >conftest.err
29570  rm -f conftest.er1
29571  cat conftest.err >&5
29572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29573  (exit $ac_status); } >/dev/null; then
29574  if test -s conftest.err; then
29575    ac_cpp_err=$ac_c_preproc_warn_flag
29576    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29577  else
29578    ac_cpp_err=
29579  fi
29580else
29581  ac_cpp_err=yes
29582fi
29583if test -z "$ac_cpp_err"; then
29584  ac_header_preproc=yes
29585else
29586  echo "$as_me: failed program was:" >&5
29587sed 's/^/| /' conftest.$ac_ext >&5
29588
29589  ac_header_preproc=no
29590fi
29591
29592rm -f conftest.err conftest.$ac_ext
29593{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29594echo "${ECHO_T}$ac_header_preproc" >&6; }
29595
29596# So?  What about this header?
29597case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29598  yes:no: )
29599    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29600echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29601    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29602echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29603    ac_header_preproc=yes
29604    ;;
29605  no:yes:* )
29606    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29607echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29608    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29609echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29610    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29611echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29612    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29613echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29614    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29615echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29616    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29617echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29618    ( cat <<\_ASBOX
29619## ----------------------------------- ##
29620## Report this to llvmbugs@cs.uiuc.edu ##
29621## ----------------------------------- ##
29622_ASBOX
29623     ) | sed "s/^/$as_me: WARNING:     /" >&2
29624    ;;
29625esac
29626{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29627echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29628if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29629  echo $ECHO_N "(cached) $ECHO_C" >&6
29630else
29631  eval "$as_ac_Header=\$ac_header_preproc"
29632fi
29633ac_res=`eval echo '${'$as_ac_Header'}'`
29634	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29635echo "${ECHO_T}$ac_res" >&6; }
29636
29637fi
29638if test `eval echo '${'$as_ac_Header'}'` = yes; then
29639  cat >>confdefs.h <<_ACEOF
29640#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29641_ACEOF
29642 HAVE_PTHREAD=1
29643
29644else
29645  HAVE_PTHREAD=0
29646
29647fi
29648
29649done
29650
29651else
29652  HAVE_PTHREAD=0
29653
29654fi
29655
29656
29657
29658  { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29659echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29660if test "${ac_cv_huge_val_sanity+set}" = set; then
29661  echo $ECHO_N "(cached) $ECHO_C" >&6
29662else
29663
29664    ac_ext=cpp
29665ac_cpp='$CXXCPP $CPPFLAGS'
29666ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29667ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29668ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29669
29670    CXXFLAGS=-pedantic
29671    if test "$cross_compiling" = yes; then
29672  ac_cv_huge_val_sanity=yes
29673else
29674  cat >conftest.$ac_ext <<_ACEOF
29675/* confdefs.h.  */
29676_ACEOF
29677cat confdefs.h >>conftest.$ac_ext
29678cat >>conftest.$ac_ext <<_ACEOF
29679/* end confdefs.h.  */
29680#include <math.h>
29681int
29682main ()
29683{
29684double x = HUGE_VAL; return x != x;
29685  ;
29686  return 0;
29687}
29688_ACEOF
29689rm -f conftest$ac_exeext
29690if { (ac_try="$ac_link"
29691case "(($ac_try" in
29692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29693  *) ac_try_echo=$ac_try;;
29694esac
29695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29696  (eval "$ac_link") 2>&5
29697  ac_status=$?
29698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29699  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29700  { (case "(($ac_try" in
29701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29702  *) ac_try_echo=$ac_try;;
29703esac
29704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29705  (eval "$ac_try") 2>&5
29706  ac_status=$?
29707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29708  (exit $ac_status); }; }; then
29709  ac_cv_huge_val_sanity=yes
29710else
29711  echo "$as_me: program exited with status $ac_status" >&5
29712echo "$as_me: failed program was:" >&5
29713sed 's/^/| /' conftest.$ac_ext >&5
29714
29715( exit $ac_status )
29716ac_cv_huge_val_sanity=no
29717fi
29718rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29719fi
29720
29721
29722    ac_ext=c
29723ac_cpp='$CPP $CPPFLAGS'
29724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29726ac_compiler_gnu=$ac_cv_c_compiler_gnu
29727
29728
29729fi
29730{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29731echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29732  HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29733
29734
29735{ echo "$as_me:$LINENO: checking for pid_t" >&5
29736echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29737if test "${ac_cv_type_pid_t+set}" = set; then
29738  echo $ECHO_N "(cached) $ECHO_C" >&6
29739else
29740  cat >conftest.$ac_ext <<_ACEOF
29741/* confdefs.h.  */
29742_ACEOF
29743cat confdefs.h >>conftest.$ac_ext
29744cat >>conftest.$ac_ext <<_ACEOF
29745/* end confdefs.h.  */
29746$ac_includes_default
29747typedef pid_t ac__type_new_;
29748int
29749main ()
29750{
29751if ((ac__type_new_ *) 0)
29752  return 0;
29753if (sizeof (ac__type_new_))
29754  return 0;
29755  ;
29756  return 0;
29757}
29758_ACEOF
29759rm -f conftest.$ac_objext
29760if { (ac_try="$ac_compile"
29761case "(($ac_try" in
29762  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29763  *) ac_try_echo=$ac_try;;
29764esac
29765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29766  (eval "$ac_compile") 2>conftest.er1
29767  ac_status=$?
29768  grep -v '^ *+' conftest.er1 >conftest.err
29769  rm -f conftest.er1
29770  cat conftest.err >&5
29771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29772  (exit $ac_status); } &&
29773	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29774  { (case "(($ac_try" in
29775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29776  *) ac_try_echo=$ac_try;;
29777esac
29778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29779  (eval "$ac_try") 2>&5
29780  ac_status=$?
29781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29782  (exit $ac_status); }; } &&
29783	 { ac_try='test -s conftest.$ac_objext'
29784  { (case "(($ac_try" in
29785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29786  *) ac_try_echo=$ac_try;;
29787esac
29788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29789  (eval "$ac_try") 2>&5
29790  ac_status=$?
29791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29792  (exit $ac_status); }; }; then
29793  ac_cv_type_pid_t=yes
29794else
29795  echo "$as_me: failed program was:" >&5
29796sed 's/^/| /' conftest.$ac_ext >&5
29797
29798	ac_cv_type_pid_t=no
29799fi
29800
29801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29802fi
29803{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29804echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29805if test $ac_cv_type_pid_t = yes; then
29806  :
29807else
29808
29809cat >>confdefs.h <<_ACEOF
29810#define pid_t int
29811_ACEOF
29812
29813fi
29814
29815{ echo "$as_me:$LINENO: checking for size_t" >&5
29816echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29817if test "${ac_cv_type_size_t+set}" = set; then
29818  echo $ECHO_N "(cached) $ECHO_C" >&6
29819else
29820  cat >conftest.$ac_ext <<_ACEOF
29821/* confdefs.h.  */
29822_ACEOF
29823cat confdefs.h >>conftest.$ac_ext
29824cat >>conftest.$ac_ext <<_ACEOF
29825/* end confdefs.h.  */
29826$ac_includes_default
29827typedef size_t ac__type_new_;
29828int
29829main ()
29830{
29831if ((ac__type_new_ *) 0)
29832  return 0;
29833if (sizeof (ac__type_new_))
29834  return 0;
29835  ;
29836  return 0;
29837}
29838_ACEOF
29839rm -f conftest.$ac_objext
29840if { (ac_try="$ac_compile"
29841case "(($ac_try" in
29842  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29843  *) ac_try_echo=$ac_try;;
29844esac
29845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29846  (eval "$ac_compile") 2>conftest.er1
29847  ac_status=$?
29848  grep -v '^ *+' conftest.er1 >conftest.err
29849  rm -f conftest.er1
29850  cat conftest.err >&5
29851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29852  (exit $ac_status); } &&
29853	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29854  { (case "(($ac_try" in
29855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29856  *) ac_try_echo=$ac_try;;
29857esac
29858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29859  (eval "$ac_try") 2>&5
29860  ac_status=$?
29861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29862  (exit $ac_status); }; } &&
29863	 { ac_try='test -s conftest.$ac_objext'
29864  { (case "(($ac_try" in
29865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29866  *) ac_try_echo=$ac_try;;
29867esac
29868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29869  (eval "$ac_try") 2>&5
29870  ac_status=$?
29871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29872  (exit $ac_status); }; }; then
29873  ac_cv_type_size_t=yes
29874else
29875  echo "$as_me: failed program was:" >&5
29876sed 's/^/| /' conftest.$ac_ext >&5
29877
29878	ac_cv_type_size_t=no
29879fi
29880
29881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29882fi
29883{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29884echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29885if test $ac_cv_type_size_t = yes; then
29886  :
29887else
29888
29889cat >>confdefs.h <<_ACEOF
29890#define size_t unsigned int
29891_ACEOF
29892
29893fi
29894
29895{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29896echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29897if test "${ac_cv_type_signal+set}" = set; then
29898  echo $ECHO_N "(cached) $ECHO_C" >&6
29899else
29900  cat >conftest.$ac_ext <<_ACEOF
29901/* confdefs.h.  */
29902_ACEOF
29903cat confdefs.h >>conftest.$ac_ext
29904cat >>conftest.$ac_ext <<_ACEOF
29905/* end confdefs.h.  */
29906#include <sys/types.h>
29907#include <signal.h>
29908
29909int
29910main ()
29911{
29912return *(signal (0, 0)) (0) == 1;
29913  ;
29914  return 0;
29915}
29916_ACEOF
29917rm -f conftest.$ac_objext
29918if { (ac_try="$ac_compile"
29919case "(($ac_try" in
29920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29921  *) ac_try_echo=$ac_try;;
29922esac
29923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29924  (eval "$ac_compile") 2>conftest.er1
29925  ac_status=$?
29926  grep -v '^ *+' conftest.er1 >conftest.err
29927  rm -f conftest.er1
29928  cat conftest.err >&5
29929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29930  (exit $ac_status); } &&
29931	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29932  { (case "(($ac_try" in
29933  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29934  *) ac_try_echo=$ac_try;;
29935esac
29936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29937  (eval "$ac_try") 2>&5
29938  ac_status=$?
29939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29940  (exit $ac_status); }; } &&
29941	 { ac_try='test -s conftest.$ac_objext'
29942  { (case "(($ac_try" in
29943  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29944  *) ac_try_echo=$ac_try;;
29945esac
29946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29947  (eval "$ac_try") 2>&5
29948  ac_status=$?
29949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29950  (exit $ac_status); }; }; then
29951  ac_cv_type_signal=int
29952else
29953  echo "$as_me: failed program was:" >&5
29954sed 's/^/| /' conftest.$ac_ext >&5
29955
29956	ac_cv_type_signal=void
29957fi
29958
29959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29960fi
29961{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29962echo "${ECHO_T}$ac_cv_type_signal" >&6; }
29963
29964cat >>confdefs.h <<_ACEOF
29965#define RETSIGTYPE $ac_cv_type_signal
29966_ACEOF
29967
29968
29969{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29970echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
29971if test "${ac_cv_struct_tm+set}" = set; then
29972  echo $ECHO_N "(cached) $ECHO_C" >&6
29973else
29974  cat >conftest.$ac_ext <<_ACEOF
29975/* confdefs.h.  */
29976_ACEOF
29977cat confdefs.h >>conftest.$ac_ext
29978cat >>conftest.$ac_ext <<_ACEOF
29979/* end confdefs.h.  */
29980#include <sys/types.h>
29981#include <time.h>
29982
29983int
29984main ()
29985{
29986struct tm *tp; tp->tm_sec;
29987  ;
29988  return 0;
29989}
29990_ACEOF
29991rm -f conftest.$ac_objext
29992if { (ac_try="$ac_compile"
29993case "(($ac_try" in
29994  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29995  *) ac_try_echo=$ac_try;;
29996esac
29997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29998  (eval "$ac_compile") 2>conftest.er1
29999  ac_status=$?
30000  grep -v '^ *+' conftest.er1 >conftest.err
30001  rm -f conftest.er1
30002  cat conftest.err >&5
30003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30004  (exit $ac_status); } &&
30005	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30006  { (case "(($ac_try" in
30007  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30008  *) ac_try_echo=$ac_try;;
30009esac
30010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30011  (eval "$ac_try") 2>&5
30012  ac_status=$?
30013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30014  (exit $ac_status); }; } &&
30015	 { ac_try='test -s conftest.$ac_objext'
30016  { (case "(($ac_try" in
30017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30018  *) ac_try_echo=$ac_try;;
30019esac
30020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30021  (eval "$ac_try") 2>&5
30022  ac_status=$?
30023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30024  (exit $ac_status); }; }; then
30025  ac_cv_struct_tm=time.h
30026else
30027  echo "$as_me: failed program was:" >&5
30028sed 's/^/| /' conftest.$ac_ext >&5
30029
30030	ac_cv_struct_tm=sys/time.h
30031fi
30032
30033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30034fi
30035{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30036echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30037if test $ac_cv_struct_tm = sys/time.h; then
30038
30039cat >>confdefs.h <<\_ACEOF
30040#define TM_IN_SYS_TIME 1
30041_ACEOF
30042
30043fi
30044
30045{ echo "$as_me:$LINENO: checking for int64_t" >&5
30046echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30047if test "${ac_cv_type_int64_t+set}" = set; then
30048  echo $ECHO_N "(cached) $ECHO_C" >&6
30049else
30050  cat >conftest.$ac_ext <<_ACEOF
30051/* confdefs.h.  */
30052_ACEOF
30053cat confdefs.h >>conftest.$ac_ext
30054cat >>conftest.$ac_ext <<_ACEOF
30055/* end confdefs.h.  */
30056$ac_includes_default
30057typedef int64_t ac__type_new_;
30058int
30059main ()
30060{
30061if ((ac__type_new_ *) 0)
30062  return 0;
30063if (sizeof (ac__type_new_))
30064  return 0;
30065  ;
30066  return 0;
30067}
30068_ACEOF
30069rm -f conftest.$ac_objext
30070if { (ac_try="$ac_compile"
30071case "(($ac_try" in
30072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30073  *) ac_try_echo=$ac_try;;
30074esac
30075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30076  (eval "$ac_compile") 2>conftest.er1
30077  ac_status=$?
30078  grep -v '^ *+' conftest.er1 >conftest.err
30079  rm -f conftest.er1
30080  cat conftest.err >&5
30081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30082  (exit $ac_status); } &&
30083	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30084  { (case "(($ac_try" in
30085  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30086  *) ac_try_echo=$ac_try;;
30087esac
30088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30089  (eval "$ac_try") 2>&5
30090  ac_status=$?
30091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30092  (exit $ac_status); }; } &&
30093	 { ac_try='test -s conftest.$ac_objext'
30094  { (case "(($ac_try" in
30095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30096  *) ac_try_echo=$ac_try;;
30097esac
30098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30099  (eval "$ac_try") 2>&5
30100  ac_status=$?
30101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30102  (exit $ac_status); }; }; then
30103  ac_cv_type_int64_t=yes
30104else
30105  echo "$as_me: failed program was:" >&5
30106sed 's/^/| /' conftest.$ac_ext >&5
30107
30108	ac_cv_type_int64_t=no
30109fi
30110
30111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30112fi
30113{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30114echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30115if test $ac_cv_type_int64_t = yes; then
30116
30117cat >>confdefs.h <<_ACEOF
30118#define HAVE_INT64_T 1
30119_ACEOF
30120
30121
30122else
30123  { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30124echo "$as_me: error: Type int64_t required but not found" >&2;}
30125   { (exit 1); exit 1; }; }
30126fi
30127
30128{ echo "$as_me:$LINENO: checking for uint64_t" >&5
30129echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30130if test "${ac_cv_type_uint64_t+set}" = set; then
30131  echo $ECHO_N "(cached) $ECHO_C" >&6
30132else
30133  cat >conftest.$ac_ext <<_ACEOF
30134/* confdefs.h.  */
30135_ACEOF
30136cat confdefs.h >>conftest.$ac_ext
30137cat >>conftest.$ac_ext <<_ACEOF
30138/* end confdefs.h.  */
30139$ac_includes_default
30140typedef uint64_t ac__type_new_;
30141int
30142main ()
30143{
30144if ((ac__type_new_ *) 0)
30145  return 0;
30146if (sizeof (ac__type_new_))
30147  return 0;
30148  ;
30149  return 0;
30150}
30151_ACEOF
30152rm -f conftest.$ac_objext
30153if { (ac_try="$ac_compile"
30154case "(($ac_try" in
30155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30156  *) ac_try_echo=$ac_try;;
30157esac
30158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30159  (eval "$ac_compile") 2>conftest.er1
30160  ac_status=$?
30161  grep -v '^ *+' conftest.er1 >conftest.err
30162  rm -f conftest.er1
30163  cat conftest.err >&5
30164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30165  (exit $ac_status); } &&
30166	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30167  { (case "(($ac_try" in
30168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30169  *) ac_try_echo=$ac_try;;
30170esac
30171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30172  (eval "$ac_try") 2>&5
30173  ac_status=$?
30174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30175  (exit $ac_status); }; } &&
30176	 { ac_try='test -s conftest.$ac_objext'
30177  { (case "(($ac_try" in
30178  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30179  *) ac_try_echo=$ac_try;;
30180esac
30181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30182  (eval "$ac_try") 2>&5
30183  ac_status=$?
30184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30185  (exit $ac_status); }; }; then
30186  ac_cv_type_uint64_t=yes
30187else
30188  echo "$as_me: failed program was:" >&5
30189sed 's/^/| /' conftest.$ac_ext >&5
30190
30191	ac_cv_type_uint64_t=no
30192fi
30193
30194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30195fi
30196{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30197echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30198if test $ac_cv_type_uint64_t = yes; then
30199
30200cat >>confdefs.h <<_ACEOF
30201#define HAVE_UINT64_T 1
30202_ACEOF
30203
30204
30205else
30206  { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30207echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30208if test "${ac_cv_type_u_int64_t+set}" = set; then
30209  echo $ECHO_N "(cached) $ECHO_C" >&6
30210else
30211  cat >conftest.$ac_ext <<_ACEOF
30212/* confdefs.h.  */
30213_ACEOF
30214cat confdefs.h >>conftest.$ac_ext
30215cat >>conftest.$ac_ext <<_ACEOF
30216/* end confdefs.h.  */
30217$ac_includes_default
30218typedef u_int64_t ac__type_new_;
30219int
30220main ()
30221{
30222if ((ac__type_new_ *) 0)
30223  return 0;
30224if (sizeof (ac__type_new_))
30225  return 0;
30226  ;
30227  return 0;
30228}
30229_ACEOF
30230rm -f conftest.$ac_objext
30231if { (ac_try="$ac_compile"
30232case "(($ac_try" in
30233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30234  *) ac_try_echo=$ac_try;;
30235esac
30236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30237  (eval "$ac_compile") 2>conftest.er1
30238  ac_status=$?
30239  grep -v '^ *+' conftest.er1 >conftest.err
30240  rm -f conftest.er1
30241  cat conftest.err >&5
30242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30243  (exit $ac_status); } &&
30244	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30245  { (case "(($ac_try" in
30246  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30247  *) ac_try_echo=$ac_try;;
30248esac
30249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30250  (eval "$ac_try") 2>&5
30251  ac_status=$?
30252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30253  (exit $ac_status); }; } &&
30254	 { ac_try='test -s conftest.$ac_objext'
30255  { (case "(($ac_try" in
30256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30257  *) ac_try_echo=$ac_try;;
30258esac
30259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30260  (eval "$ac_try") 2>&5
30261  ac_status=$?
30262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30263  (exit $ac_status); }; }; then
30264  ac_cv_type_u_int64_t=yes
30265else
30266  echo "$as_me: failed program was:" >&5
30267sed 's/^/| /' conftest.$ac_ext >&5
30268
30269	ac_cv_type_u_int64_t=no
30270fi
30271
30272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30273fi
30274{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30275echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30276if test $ac_cv_type_u_int64_t = yes; then
30277
30278cat >>confdefs.h <<_ACEOF
30279#define HAVE_U_INT64_T 1
30280_ACEOF
30281
30282
30283else
30284  { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30285echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30286   { (exit 1); exit 1; }; }
30287fi
30288
30289fi
30290
30291
30292
30293
30294
30295
30296
30297
30298
30299
30300for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30301do
30302as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30303{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30304echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30305if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30306  echo $ECHO_N "(cached) $ECHO_C" >&6
30307else
30308  cat >conftest.$ac_ext <<_ACEOF
30309/* confdefs.h.  */
30310_ACEOF
30311cat confdefs.h >>conftest.$ac_ext
30312cat >>conftest.$ac_ext <<_ACEOF
30313/* end confdefs.h.  */
30314/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30315   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30316#define $ac_func innocuous_$ac_func
30317
30318/* System header to define __stub macros and hopefully few prototypes,
30319    which can conflict with char $ac_func (); below.
30320    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30321    <limits.h> exists even on freestanding compilers.  */
30322
30323#ifdef __STDC__
30324# include <limits.h>
30325#else
30326# include <assert.h>
30327#endif
30328
30329#undef $ac_func
30330
30331/* Override any GCC internal prototype to avoid an error.
30332   Use char because int might match the return type of a GCC
30333   builtin and then its argument prototype would still apply.  */
30334#ifdef __cplusplus
30335extern "C"
30336#endif
30337char $ac_func ();
30338/* The GNU C library defines this for functions which it implements
30339    to always fail with ENOSYS.  Some functions are actually named
30340    something starting with __ and the normal name is an alias.  */
30341#if defined __stub_$ac_func || defined __stub___$ac_func
30342choke me
30343#endif
30344
30345int
30346main ()
30347{
30348return $ac_func ();
30349  ;
30350  return 0;
30351}
30352_ACEOF
30353rm -f conftest.$ac_objext conftest$ac_exeext
30354if { (ac_try="$ac_link"
30355case "(($ac_try" in
30356  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30357  *) ac_try_echo=$ac_try;;
30358esac
30359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30360  (eval "$ac_link") 2>conftest.er1
30361  ac_status=$?
30362  grep -v '^ *+' conftest.er1 >conftest.err
30363  rm -f conftest.er1
30364  cat conftest.err >&5
30365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30366  (exit $ac_status); } &&
30367	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30368  { (case "(($ac_try" in
30369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30370  *) ac_try_echo=$ac_try;;
30371esac
30372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30373  (eval "$ac_try") 2>&5
30374  ac_status=$?
30375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30376  (exit $ac_status); }; } &&
30377	 { ac_try='test -s conftest$ac_exeext'
30378  { (case "(($ac_try" in
30379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30380  *) ac_try_echo=$ac_try;;
30381esac
30382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30383  (eval "$ac_try") 2>&5
30384  ac_status=$?
30385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30386  (exit $ac_status); }; }; then
30387  eval "$as_ac_var=yes"
30388else
30389  echo "$as_me: failed program was:" >&5
30390sed 's/^/| /' conftest.$ac_ext >&5
30391
30392	eval "$as_ac_var=no"
30393fi
30394
30395rm -f core conftest.err conftest.$ac_objext \
30396      conftest$ac_exeext conftest.$ac_ext
30397fi
30398ac_res=`eval echo '${'$as_ac_var'}'`
30399	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30400echo "${ECHO_T}$ac_res" >&6; }
30401if test `eval echo '${'$as_ac_var'}'` = yes; then
30402  cat >>confdefs.h <<_ACEOF
30403#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30404_ACEOF
30405
30406fi
30407done
30408
30409
30410
30411
30412
30413for ac_func in powf fmodf strtof round
30414do
30415as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30416{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30417echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30418if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30419  echo $ECHO_N "(cached) $ECHO_C" >&6
30420else
30421  cat >conftest.$ac_ext <<_ACEOF
30422/* confdefs.h.  */
30423_ACEOF
30424cat confdefs.h >>conftest.$ac_ext
30425cat >>conftest.$ac_ext <<_ACEOF
30426/* end confdefs.h.  */
30427/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30428   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30429#define $ac_func innocuous_$ac_func
30430
30431/* System header to define __stub macros and hopefully few prototypes,
30432    which can conflict with char $ac_func (); below.
30433    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30434    <limits.h> exists even on freestanding compilers.  */
30435
30436#ifdef __STDC__
30437# include <limits.h>
30438#else
30439# include <assert.h>
30440#endif
30441
30442#undef $ac_func
30443
30444/* Override any GCC internal prototype to avoid an error.
30445   Use char because int might match the return type of a GCC
30446   builtin and then its argument prototype would still apply.  */
30447#ifdef __cplusplus
30448extern "C"
30449#endif
30450char $ac_func ();
30451/* The GNU C library defines this for functions which it implements
30452    to always fail with ENOSYS.  Some functions are actually named
30453    something starting with __ and the normal name is an alias.  */
30454#if defined __stub_$ac_func || defined __stub___$ac_func
30455choke me
30456#endif
30457
30458int
30459main ()
30460{
30461return $ac_func ();
30462  ;
30463  return 0;
30464}
30465_ACEOF
30466rm -f conftest.$ac_objext conftest$ac_exeext
30467if { (ac_try="$ac_link"
30468case "(($ac_try" in
30469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30470  *) ac_try_echo=$ac_try;;
30471esac
30472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30473  (eval "$ac_link") 2>conftest.er1
30474  ac_status=$?
30475  grep -v '^ *+' conftest.er1 >conftest.err
30476  rm -f conftest.er1
30477  cat conftest.err >&5
30478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30479  (exit $ac_status); } &&
30480	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30481  { (case "(($ac_try" in
30482  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30483  *) ac_try_echo=$ac_try;;
30484esac
30485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30486  (eval "$ac_try") 2>&5
30487  ac_status=$?
30488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30489  (exit $ac_status); }; } &&
30490	 { ac_try='test -s conftest$ac_exeext'
30491  { (case "(($ac_try" in
30492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30493  *) ac_try_echo=$ac_try;;
30494esac
30495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30496  (eval "$ac_try") 2>&5
30497  ac_status=$?
30498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30499  (exit $ac_status); }; }; then
30500  eval "$as_ac_var=yes"
30501else
30502  echo "$as_me: failed program was:" >&5
30503sed 's/^/| /' conftest.$ac_ext >&5
30504
30505	eval "$as_ac_var=no"
30506fi
30507
30508rm -f core conftest.err conftest.$ac_objext \
30509      conftest$ac_exeext conftest.$ac_ext
30510fi
30511ac_res=`eval echo '${'$as_ac_var'}'`
30512	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30513echo "${ECHO_T}$ac_res" >&6; }
30514if test `eval echo '${'$as_ac_var'}'` = yes; then
30515  cat >>confdefs.h <<_ACEOF
30516#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30517_ACEOF
30518
30519fi
30520done
30521
30522
30523
30524
30525
30526
30527for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30528do
30529as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30530{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30531echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30532if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30533  echo $ECHO_N "(cached) $ECHO_C" >&6
30534else
30535  cat >conftest.$ac_ext <<_ACEOF
30536/* confdefs.h.  */
30537_ACEOF
30538cat confdefs.h >>conftest.$ac_ext
30539cat >>conftest.$ac_ext <<_ACEOF
30540/* end confdefs.h.  */
30541/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30542   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30543#define $ac_func innocuous_$ac_func
30544
30545/* System header to define __stub macros and hopefully few prototypes,
30546    which can conflict with char $ac_func (); below.
30547    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30548    <limits.h> exists even on freestanding compilers.  */
30549
30550#ifdef __STDC__
30551# include <limits.h>
30552#else
30553# include <assert.h>
30554#endif
30555
30556#undef $ac_func
30557
30558/* Override any GCC internal prototype to avoid an error.
30559   Use char because int might match the return type of a GCC
30560   builtin and then its argument prototype would still apply.  */
30561#ifdef __cplusplus
30562extern "C"
30563#endif
30564char $ac_func ();
30565/* The GNU C library defines this for functions which it implements
30566    to always fail with ENOSYS.  Some functions are actually named
30567    something starting with __ and the normal name is an alias.  */
30568#if defined __stub_$ac_func || defined __stub___$ac_func
30569choke me
30570#endif
30571
30572int
30573main ()
30574{
30575return $ac_func ();
30576  ;
30577  return 0;
30578}
30579_ACEOF
30580rm -f conftest.$ac_objext conftest$ac_exeext
30581if { (ac_try="$ac_link"
30582case "(($ac_try" in
30583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30584  *) ac_try_echo=$ac_try;;
30585esac
30586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30587  (eval "$ac_link") 2>conftest.er1
30588  ac_status=$?
30589  grep -v '^ *+' conftest.er1 >conftest.err
30590  rm -f conftest.er1
30591  cat conftest.err >&5
30592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30593  (exit $ac_status); } &&
30594	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30595  { (case "(($ac_try" in
30596  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30597  *) ac_try_echo=$ac_try;;
30598esac
30599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30600  (eval "$ac_try") 2>&5
30601  ac_status=$?
30602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30603  (exit $ac_status); }; } &&
30604	 { ac_try='test -s conftest$ac_exeext'
30605  { (case "(($ac_try" in
30606  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30607  *) ac_try_echo=$ac_try;;
30608esac
30609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30610  (eval "$ac_try") 2>&5
30611  ac_status=$?
30612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30613  (exit $ac_status); }; }; then
30614  eval "$as_ac_var=yes"
30615else
30616  echo "$as_me: failed program was:" >&5
30617sed 's/^/| /' conftest.$ac_ext >&5
30618
30619	eval "$as_ac_var=no"
30620fi
30621
30622rm -f core conftest.err conftest.$ac_objext \
30623      conftest$ac_exeext conftest.$ac_ext
30624fi
30625ac_res=`eval echo '${'$as_ac_var'}'`
30626	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30627echo "${ECHO_T}$ac_res" >&6; }
30628if test `eval echo '${'$as_ac_var'}'` = yes; then
30629  cat >>confdefs.h <<_ACEOF
30630#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30631_ACEOF
30632
30633fi
30634done
30635
30636
30637
30638
30639for ac_func in isatty mkdtemp mkstemp
30640do
30641as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30642{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30643echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30644if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30645  echo $ECHO_N "(cached) $ECHO_C" >&6
30646else
30647  cat >conftest.$ac_ext <<_ACEOF
30648/* confdefs.h.  */
30649_ACEOF
30650cat confdefs.h >>conftest.$ac_ext
30651cat >>conftest.$ac_ext <<_ACEOF
30652/* end confdefs.h.  */
30653/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30654   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30655#define $ac_func innocuous_$ac_func
30656
30657/* System header to define __stub macros and hopefully few prototypes,
30658    which can conflict with char $ac_func (); below.
30659    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30660    <limits.h> exists even on freestanding compilers.  */
30661
30662#ifdef __STDC__
30663# include <limits.h>
30664#else
30665# include <assert.h>
30666#endif
30667
30668#undef $ac_func
30669
30670/* Override any GCC internal prototype to avoid an error.
30671   Use char because int might match the return type of a GCC
30672   builtin and then its argument prototype would still apply.  */
30673#ifdef __cplusplus
30674extern "C"
30675#endif
30676char $ac_func ();
30677/* The GNU C library defines this for functions which it implements
30678    to always fail with ENOSYS.  Some functions are actually named
30679    something starting with __ and the normal name is an alias.  */
30680#if defined __stub_$ac_func || defined __stub___$ac_func
30681choke me
30682#endif
30683
30684int
30685main ()
30686{
30687return $ac_func ();
30688  ;
30689  return 0;
30690}
30691_ACEOF
30692rm -f conftest.$ac_objext conftest$ac_exeext
30693if { (ac_try="$ac_link"
30694case "(($ac_try" in
30695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30696  *) ac_try_echo=$ac_try;;
30697esac
30698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30699  (eval "$ac_link") 2>conftest.er1
30700  ac_status=$?
30701  grep -v '^ *+' conftest.er1 >conftest.err
30702  rm -f conftest.er1
30703  cat conftest.err >&5
30704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30705  (exit $ac_status); } &&
30706	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30707  { (case "(($ac_try" in
30708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30709  *) ac_try_echo=$ac_try;;
30710esac
30711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30712  (eval "$ac_try") 2>&5
30713  ac_status=$?
30714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30715  (exit $ac_status); }; } &&
30716	 { ac_try='test -s conftest$ac_exeext'
30717  { (case "(($ac_try" in
30718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30719  *) ac_try_echo=$ac_try;;
30720esac
30721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30722  (eval "$ac_try") 2>&5
30723  ac_status=$?
30724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30725  (exit $ac_status); }; }; then
30726  eval "$as_ac_var=yes"
30727else
30728  echo "$as_me: failed program was:" >&5
30729sed 's/^/| /' conftest.$ac_ext >&5
30730
30731	eval "$as_ac_var=no"
30732fi
30733
30734rm -f core conftest.err conftest.$ac_objext \
30735      conftest$ac_exeext conftest.$ac_ext
30736fi
30737ac_res=`eval echo '${'$as_ac_var'}'`
30738	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30739echo "${ECHO_T}$ac_res" >&6; }
30740if test `eval echo '${'$as_ac_var'}'` = yes; then
30741  cat >>confdefs.h <<_ACEOF
30742#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30743_ACEOF
30744
30745fi
30746done
30747
30748
30749
30750
30751
30752
30753
30754
30755for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30756do
30757as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30758{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30759echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30760if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30761  echo $ECHO_N "(cached) $ECHO_C" >&6
30762else
30763  cat >conftest.$ac_ext <<_ACEOF
30764/* confdefs.h.  */
30765_ACEOF
30766cat confdefs.h >>conftest.$ac_ext
30767cat >>conftest.$ac_ext <<_ACEOF
30768/* end confdefs.h.  */
30769/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30770   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30771#define $ac_func innocuous_$ac_func
30772
30773/* System header to define __stub macros and hopefully few prototypes,
30774    which can conflict with char $ac_func (); below.
30775    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30776    <limits.h> exists even on freestanding compilers.  */
30777
30778#ifdef __STDC__
30779# include <limits.h>
30780#else
30781# include <assert.h>
30782#endif
30783
30784#undef $ac_func
30785
30786/* Override any GCC internal prototype to avoid an error.
30787   Use char because int might match the return type of a GCC
30788   builtin and then its argument prototype would still apply.  */
30789#ifdef __cplusplus
30790extern "C"
30791#endif
30792char $ac_func ();
30793/* The GNU C library defines this for functions which it implements
30794    to always fail with ENOSYS.  Some functions are actually named
30795    something starting with __ and the normal name is an alias.  */
30796#if defined __stub_$ac_func || defined __stub___$ac_func
30797choke me
30798#endif
30799
30800int
30801main ()
30802{
30803return $ac_func ();
30804  ;
30805  return 0;
30806}
30807_ACEOF
30808rm -f conftest.$ac_objext conftest$ac_exeext
30809if { (ac_try="$ac_link"
30810case "(($ac_try" in
30811  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30812  *) ac_try_echo=$ac_try;;
30813esac
30814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30815  (eval "$ac_link") 2>conftest.er1
30816  ac_status=$?
30817  grep -v '^ *+' conftest.er1 >conftest.err
30818  rm -f conftest.er1
30819  cat conftest.err >&5
30820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30821  (exit $ac_status); } &&
30822	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30823  { (case "(($ac_try" in
30824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30825  *) ac_try_echo=$ac_try;;
30826esac
30827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30828  (eval "$ac_try") 2>&5
30829  ac_status=$?
30830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30831  (exit $ac_status); }; } &&
30832	 { ac_try='test -s conftest$ac_exeext'
30833  { (case "(($ac_try" in
30834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30835  *) ac_try_echo=$ac_try;;
30836esac
30837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30838  (eval "$ac_try") 2>&5
30839  ac_status=$?
30840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30841  (exit $ac_status); }; }; then
30842  eval "$as_ac_var=yes"
30843else
30844  echo "$as_me: failed program was:" >&5
30845sed 's/^/| /' conftest.$ac_ext >&5
30846
30847	eval "$as_ac_var=no"
30848fi
30849
30850rm -f core conftest.err conftest.$ac_objext \
30851      conftest$ac_exeext conftest.$ac_ext
30852fi
30853ac_res=`eval echo '${'$as_ac_var'}'`
30854	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30855echo "${ECHO_T}$ac_res" >&6; }
30856if test `eval echo '${'$as_ac_var'}'` = yes; then
30857  cat >>confdefs.h <<_ACEOF
30858#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30859_ACEOF
30860
30861fi
30862done
30863
30864
30865
30866
30867
30868for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30869do
30870as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30871{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30872echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30873if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30874  echo $ECHO_N "(cached) $ECHO_C" >&6
30875else
30876  cat >conftest.$ac_ext <<_ACEOF
30877/* confdefs.h.  */
30878_ACEOF
30879cat confdefs.h >>conftest.$ac_ext
30880cat >>conftest.$ac_ext <<_ACEOF
30881/* end confdefs.h.  */
30882/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30883   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30884#define $ac_func innocuous_$ac_func
30885
30886/* System header to define __stub macros and hopefully few prototypes,
30887    which can conflict with char $ac_func (); below.
30888    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30889    <limits.h> exists even on freestanding compilers.  */
30890
30891#ifdef __STDC__
30892# include <limits.h>
30893#else
30894# include <assert.h>
30895#endif
30896
30897#undef $ac_func
30898
30899/* Override any GCC internal prototype to avoid an error.
30900   Use char because int might match the return type of a GCC
30901   builtin and then its argument prototype would still apply.  */
30902#ifdef __cplusplus
30903extern "C"
30904#endif
30905char $ac_func ();
30906/* The GNU C library defines this for functions which it implements
30907    to always fail with ENOSYS.  Some functions are actually named
30908    something starting with __ and the normal name is an alias.  */
30909#if defined __stub_$ac_func || defined __stub___$ac_func
30910choke me
30911#endif
30912
30913int
30914main ()
30915{
30916return $ac_func ();
30917  ;
30918  return 0;
30919}
30920_ACEOF
30921rm -f conftest.$ac_objext conftest$ac_exeext
30922if { (ac_try="$ac_link"
30923case "(($ac_try" in
30924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30925  *) ac_try_echo=$ac_try;;
30926esac
30927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30928  (eval "$ac_link") 2>conftest.er1
30929  ac_status=$?
30930  grep -v '^ *+' conftest.er1 >conftest.err
30931  rm -f conftest.er1
30932  cat conftest.err >&5
30933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30934  (exit $ac_status); } &&
30935	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30936  { (case "(($ac_try" in
30937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30938  *) ac_try_echo=$ac_try;;
30939esac
30940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30941  (eval "$ac_try") 2>&5
30942  ac_status=$?
30943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30944  (exit $ac_status); }; } &&
30945	 { ac_try='test -s conftest$ac_exeext'
30946  { (case "(($ac_try" in
30947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30948  *) ac_try_echo=$ac_try;;
30949esac
30950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30951  (eval "$ac_try") 2>&5
30952  ac_status=$?
30953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30954  (exit $ac_status); }; }; then
30955  eval "$as_ac_var=yes"
30956else
30957  echo "$as_me: failed program was:" >&5
30958sed 's/^/| /' conftest.$ac_ext >&5
30959
30960	eval "$as_ac_var=no"
30961fi
30962
30963rm -f core conftest.err conftest.$ac_objext \
30964      conftest$ac_exeext conftest.$ac_ext
30965fi
30966ac_res=`eval echo '${'$as_ac_var'}'`
30967	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30968echo "${ECHO_T}$ac_res" >&6; }
30969if test `eval echo '${'$as_ac_var'}'` = yes; then
30970  cat >>confdefs.h <<_ACEOF
30971#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30972_ACEOF
30973
30974fi
30975done
30976
30977
30978
30979
30980
30981for ac_func in setjmp longjmp sigsetjmp siglongjmp
30982do
30983as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30984{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30985echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30986if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30987  echo $ECHO_N "(cached) $ECHO_C" >&6
30988else
30989  cat >conftest.$ac_ext <<_ACEOF
30990/* confdefs.h.  */
30991_ACEOF
30992cat confdefs.h >>conftest.$ac_ext
30993cat >>conftest.$ac_ext <<_ACEOF
30994/* end confdefs.h.  */
30995/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30996   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30997#define $ac_func innocuous_$ac_func
30998
30999/* System header to define __stub macros and hopefully few prototypes,
31000    which can conflict with char $ac_func (); below.
31001    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31002    <limits.h> exists even on freestanding compilers.  */
31003
31004#ifdef __STDC__
31005# include <limits.h>
31006#else
31007# include <assert.h>
31008#endif
31009
31010#undef $ac_func
31011
31012/* Override any GCC internal prototype to avoid an error.
31013   Use char because int might match the return type of a GCC
31014   builtin and then its argument prototype would still apply.  */
31015#ifdef __cplusplus
31016extern "C"
31017#endif
31018char $ac_func ();
31019/* The GNU C library defines this for functions which it implements
31020    to always fail with ENOSYS.  Some functions are actually named
31021    something starting with __ and the normal name is an alias.  */
31022#if defined __stub_$ac_func || defined __stub___$ac_func
31023choke me
31024#endif
31025
31026int
31027main ()
31028{
31029return $ac_func ();
31030  ;
31031  return 0;
31032}
31033_ACEOF
31034rm -f conftest.$ac_objext conftest$ac_exeext
31035if { (ac_try="$ac_link"
31036case "(($ac_try" in
31037  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31038  *) ac_try_echo=$ac_try;;
31039esac
31040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31041  (eval "$ac_link") 2>conftest.er1
31042  ac_status=$?
31043  grep -v '^ *+' conftest.er1 >conftest.err
31044  rm -f conftest.er1
31045  cat conftest.err >&5
31046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31047  (exit $ac_status); } &&
31048	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31049  { (case "(($ac_try" in
31050  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31051  *) ac_try_echo=$ac_try;;
31052esac
31053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31054  (eval "$ac_try") 2>&5
31055  ac_status=$?
31056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31057  (exit $ac_status); }; } &&
31058	 { ac_try='test -s conftest$ac_exeext'
31059  { (case "(($ac_try" in
31060  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31061  *) ac_try_echo=$ac_try;;
31062esac
31063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31064  (eval "$ac_try") 2>&5
31065  ac_status=$?
31066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31067  (exit $ac_status); }; }; then
31068  eval "$as_ac_var=yes"
31069else
31070  echo "$as_me: failed program was:" >&5
31071sed 's/^/| /' conftest.$ac_ext >&5
31072
31073	eval "$as_ac_var=no"
31074fi
31075
31076rm -f core conftest.err conftest.$ac_objext \
31077      conftest$ac_exeext conftest.$ac_ext
31078fi
31079ac_res=`eval echo '${'$as_ac_var'}'`
31080	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31081echo "${ECHO_T}$ac_res" >&6; }
31082if test `eval echo '${'$as_ac_var'}'` = yes; then
31083  cat >>confdefs.h <<_ACEOF
31084#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31085_ACEOF
31086
31087fi
31088done
31089
31090{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31091echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31092if test "${llvm_cv_c_printf_a+set}" = set; then
31093  echo $ECHO_N "(cached) $ECHO_C" >&6
31094else
31095  ac_ext=c
31096ac_cpp='$CPP $CPPFLAGS'
31097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31099ac_compiler_gnu=$ac_cv_c_compiler_gnu
31100
31101 if test "$cross_compiling" = yes; then
31102  llvmac_cv_c_printf_a=no
31103else
31104  cat >conftest.$ac_ext <<_ACEOF
31105
31106  /* confdefs.h.  */
31107_ACEOF
31108cat confdefs.h >>conftest.$ac_ext
31109cat >>conftest.$ac_ext <<_ACEOF
31110/* end confdefs.h.  */
31111
31112#include <stdio.h>
31113#include <stdlib.h>
31114
31115int
31116main ()
31117{
31118
31119volatile double A, B;
31120char Buffer[100];
31121A = 1;
31122A /= 10.0;
31123sprintf(Buffer, "%a", A);
31124B = atof(Buffer);
31125if (A != B)
31126  return (1);
31127if (A != 0x1.999999999999ap-4)
31128  return (1);
31129return (0);
31130  ;
31131  return 0;
31132}
31133_ACEOF
31134rm -f conftest$ac_exeext
31135if { (ac_try="$ac_link"
31136case "(($ac_try" in
31137  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31138  *) ac_try_echo=$ac_try;;
31139esac
31140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31141  (eval "$ac_link") 2>&5
31142  ac_status=$?
31143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31144  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31145  { (case "(($ac_try" in
31146  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31147  *) ac_try_echo=$ac_try;;
31148esac
31149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31150  (eval "$ac_try") 2>&5
31151  ac_status=$?
31152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31153  (exit $ac_status); }; }; then
31154  llvm_cv_c_printf_a=yes
31155else
31156  echo "$as_me: program exited with status $ac_status" >&5
31157echo "$as_me: failed program was:" >&5
31158sed 's/^/| /' conftest.$ac_ext >&5
31159
31160( exit $ac_status )
31161llvmac_cv_c_printf_a=no
31162fi
31163rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31164fi
31165
31166
31167 ac_ext=c
31168ac_cpp='$CPP $CPPFLAGS'
31169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31171ac_compiler_gnu=$ac_cv_c_compiler_gnu
31172
31173fi
31174{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31175echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31176 if test "$llvm_cv_c_printf_a" = "yes"; then
31177
31178cat >>confdefs.h <<\_ACEOF
31179#define HAVE_PRINTF_A 1
31180_ACEOF
31181
31182 fi
31183
31184# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31185# for constant arguments.  Useless!
31186{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
31187echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31188if test "${ac_cv_working_alloca_h+set}" = set; then
31189  echo $ECHO_N "(cached) $ECHO_C" >&6
31190else
31191  cat >conftest.$ac_ext <<_ACEOF
31192/* confdefs.h.  */
31193_ACEOF
31194cat confdefs.h >>conftest.$ac_ext
31195cat >>conftest.$ac_ext <<_ACEOF
31196/* end confdefs.h.  */
31197#include <alloca.h>
31198int
31199main ()
31200{
31201char *p = (char *) alloca (2 * sizeof (int));
31202			  if (p) return 0;
31203  ;
31204  return 0;
31205}
31206_ACEOF
31207rm -f conftest.$ac_objext conftest$ac_exeext
31208if { (ac_try="$ac_link"
31209case "(($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_link") 2>conftest.er1
31215  ac_status=$?
31216  grep -v '^ *+' conftest.er1 >conftest.err
31217  rm -f conftest.er1
31218  cat conftest.err >&5
31219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31220  (exit $ac_status); } &&
31221	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31222  { (case "(($ac_try" in
31223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31224  *) ac_try_echo=$ac_try;;
31225esac
31226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31227  (eval "$ac_try") 2>&5
31228  ac_status=$?
31229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31230  (exit $ac_status); }; } &&
31231	 { ac_try='test -s conftest$ac_exeext'
31232  { (case "(($ac_try" in
31233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31234  *) ac_try_echo=$ac_try;;
31235esac
31236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31237  (eval "$ac_try") 2>&5
31238  ac_status=$?
31239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31240  (exit $ac_status); }; }; then
31241  ac_cv_working_alloca_h=yes
31242else
31243  echo "$as_me: failed program was:" >&5
31244sed 's/^/| /' conftest.$ac_ext >&5
31245
31246	ac_cv_working_alloca_h=no
31247fi
31248
31249rm -f core conftest.err conftest.$ac_objext \
31250      conftest$ac_exeext conftest.$ac_ext
31251fi
31252{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31253echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31254if test $ac_cv_working_alloca_h = yes; then
31255
31256cat >>confdefs.h <<\_ACEOF
31257#define HAVE_ALLOCA_H 1
31258_ACEOF
31259
31260fi
31261
31262{ echo "$as_me:$LINENO: checking for alloca" >&5
31263echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31264if test "${ac_cv_func_alloca_works+set}" = set; then
31265  echo $ECHO_N "(cached) $ECHO_C" >&6
31266else
31267  cat >conftest.$ac_ext <<_ACEOF
31268/* confdefs.h.  */
31269_ACEOF
31270cat confdefs.h >>conftest.$ac_ext
31271cat >>conftest.$ac_ext <<_ACEOF
31272/* end confdefs.h.  */
31273#ifdef __GNUC__
31274# define alloca __builtin_alloca
31275#else
31276# ifdef _MSC_VER
31277#  include <malloc.h>
31278#  define alloca _alloca
31279# else
31280#  if HAVE_ALLOCA_H
31281#   include <alloca.h>
31282#  else
31283#   ifdef _AIX
31284 #pragma alloca
31285#   else
31286#    ifndef alloca /* predefined by HP cc +Olibcalls */
31287char *alloca ();
31288#    endif
31289#   endif
31290#  endif
31291# endif
31292#endif
31293
31294int
31295main ()
31296{
31297char *p = (char *) alloca (1);
31298				    if (p) return 0;
31299  ;
31300  return 0;
31301}
31302_ACEOF
31303rm -f conftest.$ac_objext conftest$ac_exeext
31304if { (ac_try="$ac_link"
31305case "(($ac_try" in
31306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31307  *) ac_try_echo=$ac_try;;
31308esac
31309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31310  (eval "$ac_link") 2>conftest.er1
31311  ac_status=$?
31312  grep -v '^ *+' conftest.er1 >conftest.err
31313  rm -f conftest.er1
31314  cat conftest.err >&5
31315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31316  (exit $ac_status); } &&
31317	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31318  { (case "(($ac_try" in
31319  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31320  *) ac_try_echo=$ac_try;;
31321esac
31322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31323  (eval "$ac_try") 2>&5
31324  ac_status=$?
31325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31326  (exit $ac_status); }; } &&
31327	 { ac_try='test -s conftest$ac_exeext'
31328  { (case "(($ac_try" in
31329  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31330  *) ac_try_echo=$ac_try;;
31331esac
31332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31333  (eval "$ac_try") 2>&5
31334  ac_status=$?
31335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31336  (exit $ac_status); }; }; then
31337  ac_cv_func_alloca_works=yes
31338else
31339  echo "$as_me: failed program was:" >&5
31340sed 's/^/| /' conftest.$ac_ext >&5
31341
31342	ac_cv_func_alloca_works=no
31343fi
31344
31345rm -f core conftest.err conftest.$ac_objext \
31346      conftest$ac_exeext conftest.$ac_ext
31347fi
31348{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31349echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31350
31351if test $ac_cv_func_alloca_works = yes; then
31352
31353cat >>confdefs.h <<\_ACEOF
31354#define HAVE_ALLOCA 1
31355_ACEOF
31356
31357else
31358  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31359# that cause trouble.  Some versions do not even contain alloca or
31360# contain a buggy version.  If you still want to use their alloca,
31361# use ar to extract alloca.o from them instead of compiling alloca.c.
31362
31363ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31364
31365cat >>confdefs.h <<\_ACEOF
31366#define C_ALLOCA 1
31367_ACEOF
31368
31369
31370{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31371echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31372if test "${ac_cv_os_cray+set}" = set; then
31373  echo $ECHO_N "(cached) $ECHO_C" >&6
31374else
31375  cat >conftest.$ac_ext <<_ACEOF
31376/* confdefs.h.  */
31377_ACEOF
31378cat confdefs.h >>conftest.$ac_ext
31379cat >>conftest.$ac_ext <<_ACEOF
31380/* end confdefs.h.  */
31381#if defined CRAY && ! defined CRAY2
31382webecray
31383#else
31384wenotbecray
31385#endif
31386
31387_ACEOF
31388if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31389  $EGREP "webecray" >/dev/null 2>&1; then
31390  ac_cv_os_cray=yes
31391else
31392  ac_cv_os_cray=no
31393fi
31394rm -f conftest*
31395
31396fi
31397{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31398echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31399if test $ac_cv_os_cray = yes; then
31400  for ac_func in _getb67 GETB67 getb67; do
31401    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31402{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31403echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31404if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31405  echo $ECHO_N "(cached) $ECHO_C" >&6
31406else
31407  cat >conftest.$ac_ext <<_ACEOF
31408/* confdefs.h.  */
31409_ACEOF
31410cat confdefs.h >>conftest.$ac_ext
31411cat >>conftest.$ac_ext <<_ACEOF
31412/* end confdefs.h.  */
31413/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31414   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31415#define $ac_func innocuous_$ac_func
31416
31417/* System header to define __stub macros and hopefully few prototypes,
31418    which can conflict with char $ac_func (); below.
31419    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31420    <limits.h> exists even on freestanding compilers.  */
31421
31422#ifdef __STDC__
31423# include <limits.h>
31424#else
31425# include <assert.h>
31426#endif
31427
31428#undef $ac_func
31429
31430/* Override any GCC internal prototype to avoid an error.
31431   Use char because int might match the return type of a GCC
31432   builtin and then its argument prototype would still apply.  */
31433#ifdef __cplusplus
31434extern "C"
31435#endif
31436char $ac_func ();
31437/* The GNU C library defines this for functions which it implements
31438    to always fail with ENOSYS.  Some functions are actually named
31439    something starting with __ and the normal name is an alias.  */
31440#if defined __stub_$ac_func || defined __stub___$ac_func
31441choke me
31442#endif
31443
31444int
31445main ()
31446{
31447return $ac_func ();
31448  ;
31449  return 0;
31450}
31451_ACEOF
31452rm -f conftest.$ac_objext conftest$ac_exeext
31453if { (ac_try="$ac_link"
31454case "(($ac_try" in
31455  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31456  *) ac_try_echo=$ac_try;;
31457esac
31458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31459  (eval "$ac_link") 2>conftest.er1
31460  ac_status=$?
31461  grep -v '^ *+' conftest.er1 >conftest.err
31462  rm -f conftest.er1
31463  cat conftest.err >&5
31464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31465  (exit $ac_status); } &&
31466	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31467  { (case "(($ac_try" in
31468  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31469  *) ac_try_echo=$ac_try;;
31470esac
31471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31472  (eval "$ac_try") 2>&5
31473  ac_status=$?
31474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31475  (exit $ac_status); }; } &&
31476	 { ac_try='test -s conftest$ac_exeext'
31477  { (case "(($ac_try" in
31478  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31479  *) ac_try_echo=$ac_try;;
31480esac
31481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31482  (eval "$ac_try") 2>&5
31483  ac_status=$?
31484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31485  (exit $ac_status); }; }; then
31486  eval "$as_ac_var=yes"
31487else
31488  echo "$as_me: failed program was:" >&5
31489sed 's/^/| /' conftest.$ac_ext >&5
31490
31491	eval "$as_ac_var=no"
31492fi
31493
31494rm -f core conftest.err conftest.$ac_objext \
31495      conftest$ac_exeext conftest.$ac_ext
31496fi
31497ac_res=`eval echo '${'$as_ac_var'}'`
31498	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31499echo "${ECHO_T}$ac_res" >&6; }
31500if test `eval echo '${'$as_ac_var'}'` = yes; then
31501
31502cat >>confdefs.h <<_ACEOF
31503#define CRAY_STACKSEG_END $ac_func
31504_ACEOF
31505
31506    break
31507fi
31508
31509  done
31510fi
31511
31512{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31513echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31514if test "${ac_cv_c_stack_direction+set}" = set; then
31515  echo $ECHO_N "(cached) $ECHO_C" >&6
31516else
31517  if test "$cross_compiling" = yes; then
31518  ac_cv_c_stack_direction=0
31519else
31520  cat >conftest.$ac_ext <<_ACEOF
31521/* confdefs.h.  */
31522_ACEOF
31523cat confdefs.h >>conftest.$ac_ext
31524cat >>conftest.$ac_ext <<_ACEOF
31525/* end confdefs.h.  */
31526$ac_includes_default
31527int
31528find_stack_direction ()
31529{
31530  static char *addr = 0;
31531  auto char dummy;
31532  if (addr == 0)
31533    {
31534      addr = &dummy;
31535      return find_stack_direction ();
31536    }
31537  else
31538    return (&dummy > addr) ? 1 : -1;
31539}
31540
31541int
31542main ()
31543{
31544  return find_stack_direction () < 0;
31545}
31546_ACEOF
31547rm -f conftest$ac_exeext
31548if { (ac_try="$ac_link"
31549case "(($ac_try" in
31550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31551  *) ac_try_echo=$ac_try;;
31552esac
31553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31554  (eval "$ac_link") 2>&5
31555  ac_status=$?
31556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31557  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31558  { (case "(($ac_try" in
31559  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31560  *) ac_try_echo=$ac_try;;
31561esac
31562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31563  (eval "$ac_try") 2>&5
31564  ac_status=$?
31565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31566  (exit $ac_status); }; }; then
31567  ac_cv_c_stack_direction=1
31568else
31569  echo "$as_me: program exited with status $ac_status" >&5
31570echo "$as_me: failed program was:" >&5
31571sed 's/^/| /' conftest.$ac_ext >&5
31572
31573( exit $ac_status )
31574ac_cv_c_stack_direction=-1
31575fi
31576rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31577fi
31578
31579
31580fi
31581{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31582echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31583
31584cat >>confdefs.h <<_ACEOF
31585#define STACK_DIRECTION $ac_cv_c_stack_direction
31586_ACEOF
31587
31588
31589fi
31590
31591
31592{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31593echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31594if test "${ac_cv_func_rand48+set}" = set; then
31595  echo $ECHO_N "(cached) $ECHO_C" >&6
31596else
31597  ac_ext=cpp
31598ac_cpp='$CXXCPP $CPPFLAGS'
31599ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31600ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31601ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31602
31603   cat >conftest.$ac_ext <<_ACEOF
31604/* confdefs.h.  */
31605_ACEOF
31606cat confdefs.h >>conftest.$ac_ext
31607cat >>conftest.$ac_ext <<_ACEOF
31608/* end confdefs.h.  */
31609#include <stdlib.h>
31610int
31611main ()
31612{
31613srand48(0);lrand48();drand48();
31614  ;
31615  return 0;
31616}
31617_ACEOF
31618rm -f conftest.$ac_objext
31619if { (ac_try="$ac_compile"
31620case "(($ac_try" in
31621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31622  *) ac_try_echo=$ac_try;;
31623esac
31624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31625  (eval "$ac_compile") 2>conftest.er1
31626  ac_status=$?
31627  grep -v '^ *+' conftest.er1 >conftest.err
31628  rm -f conftest.er1
31629  cat conftest.err >&5
31630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31631  (exit $ac_status); } &&
31632	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31633  { (case "(($ac_try" in
31634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31635  *) ac_try_echo=$ac_try;;
31636esac
31637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31638  (eval "$ac_try") 2>&5
31639  ac_status=$?
31640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31641  (exit $ac_status); }; } &&
31642	 { ac_try='test -s conftest.$ac_objext'
31643  { (case "(($ac_try" in
31644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31645  *) ac_try_echo=$ac_try;;
31646esac
31647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31648  (eval "$ac_try") 2>&5
31649  ac_status=$?
31650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31651  (exit $ac_status); }; }; then
31652  ac_cv_func_rand48=yes
31653else
31654  echo "$as_me: failed program was:" >&5
31655sed 's/^/| /' conftest.$ac_ext >&5
31656
31657	ac_cv_func_rand48=no
31658fi
31659
31660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31661  ac_ext=c
31662ac_cpp='$CPP $CPPFLAGS'
31663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31665ac_compiler_gnu=$ac_cv_c_compiler_gnu
31666
31667fi
31668{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31669echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31670
31671if test "$ac_cv_func_rand48" = "yes" ; then
31672
31673cat >>confdefs.h <<\_ACEOF
31674#define HAVE_RAND48 1
31675_ACEOF
31676
31677fi
31678
31679
31680{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31681echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31682if test "${ac_cv_cxx_namespaces+set}" = set; then
31683  echo $ECHO_N "(cached) $ECHO_C" >&6
31684else
31685  ac_ext=cpp
31686ac_cpp='$CXXCPP $CPPFLAGS'
31687ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31688ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31689ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31690
31691 cat >conftest.$ac_ext <<_ACEOF
31692/* confdefs.h.  */
31693_ACEOF
31694cat confdefs.h >>conftest.$ac_ext
31695cat >>conftest.$ac_ext <<_ACEOF
31696/* end confdefs.h.  */
31697namespace Outer { namespace Inner { int i = 0; }}
31698int
31699main ()
31700{
31701using namespace Outer::Inner; return i;
31702  ;
31703  return 0;
31704}
31705_ACEOF
31706rm -f conftest.$ac_objext
31707if { (ac_try="$ac_compile"
31708case "(($ac_try" in
31709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31710  *) ac_try_echo=$ac_try;;
31711esac
31712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31713  (eval "$ac_compile") 2>conftest.er1
31714  ac_status=$?
31715  grep -v '^ *+' conftest.er1 >conftest.err
31716  rm -f conftest.er1
31717  cat conftest.err >&5
31718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31719  (exit $ac_status); } &&
31720	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31721  { (case "(($ac_try" in
31722  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31723  *) ac_try_echo=$ac_try;;
31724esac
31725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31726  (eval "$ac_try") 2>&5
31727  ac_status=$?
31728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31729  (exit $ac_status); }; } &&
31730	 { ac_try='test -s conftest.$ac_objext'
31731  { (case "(($ac_try" in
31732  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31733  *) ac_try_echo=$ac_try;;
31734esac
31735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31736  (eval "$ac_try") 2>&5
31737  ac_status=$?
31738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31739  (exit $ac_status); }; }; then
31740  ac_cv_cxx_namespaces=yes
31741else
31742  echo "$as_me: failed program was:" >&5
31743sed 's/^/| /' conftest.$ac_ext >&5
31744
31745	ac_cv_cxx_namespaces=no
31746fi
31747
31748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31749 ac_ext=c
31750ac_cpp='$CPP $CPPFLAGS'
31751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31753ac_compiler_gnu=$ac_cv_c_compiler_gnu
31754
31755
31756fi
31757{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31758echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31759if test "$ac_cv_cxx_namespaces" = yes; then
31760
31761cat >>confdefs.h <<\_ACEOF
31762#define HAVE_NAMESPACES
31763_ACEOF
31764
31765fi
31766
31767{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31768echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31769if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31770  echo $ECHO_N "(cached) $ECHO_C" >&6
31771else
31772
31773  ac_ext=cpp
31774ac_cpp='$CXXCPP $CPPFLAGS'
31775ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31776ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31777ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31778
31779  cat >conftest.$ac_ext <<_ACEOF
31780/* confdefs.h.  */
31781_ACEOF
31782cat confdefs.h >>conftest.$ac_ext
31783cat >>conftest.$ac_ext <<_ACEOF
31784/* end confdefs.h.  */
31785#include <ext/hash_map>
31786#ifdef HAVE_NAMESPACES
31787using namespace std;
31788#endif
31789int
31790main ()
31791{
31792hash_map<int, int> t;
31793  ;
31794  return 0;
31795}
31796_ACEOF
31797rm -f conftest.$ac_objext
31798if { (ac_try="$ac_compile"
31799case "(($ac_try" in
31800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31801  *) ac_try_echo=$ac_try;;
31802esac
31803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31804  (eval "$ac_compile") 2>conftest.er1
31805  ac_status=$?
31806  grep -v '^ *+' conftest.er1 >conftest.err
31807  rm -f conftest.er1
31808  cat conftest.err >&5
31809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31810  (exit $ac_status); } &&
31811	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31812  { (case "(($ac_try" in
31813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31814  *) ac_try_echo=$ac_try;;
31815esac
31816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31817  (eval "$ac_try") 2>&5
31818  ac_status=$?
31819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31820  (exit $ac_status); }; } &&
31821	 { ac_try='test -s conftest.$ac_objext'
31822  { (case "(($ac_try" in
31823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31824  *) ac_try_echo=$ac_try;;
31825esac
31826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31827  (eval "$ac_try") 2>&5
31828  ac_status=$?
31829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31830  (exit $ac_status); }; }; then
31831  ac_cv_cxx_have_std_ext_hash_map=yes
31832else
31833  echo "$as_me: failed program was:" >&5
31834sed 's/^/| /' conftest.$ac_ext >&5
31835
31836	ac_cv_cxx_have_std_ext_hash_map=no
31837fi
31838
31839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31840  ac_ext=c
31841ac_cpp='$CPP $CPPFLAGS'
31842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31844ac_compiler_gnu=$ac_cv_c_compiler_gnu
31845
31846fi
31847{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31848echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31849 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31850 then
31851
31852cat >>confdefs.h <<\_ACEOF
31853#define HAVE_STD_EXT_HASH_MAP 1
31854_ACEOF
31855
31856 else
31857
31858cat >>confdefs.h <<\_ACEOF
31859#define HAVE_STD_EXT_HASH_MAP 0
31860_ACEOF
31861
31862 fi
31863
31864 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31865echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31866if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31867  echo $ECHO_N "(cached) $ECHO_C" >&6
31868else
31869
31870  ac_ext=cpp
31871ac_cpp='$CXXCPP $CPPFLAGS'
31872ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31873ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31874ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31875
31876  cat >conftest.$ac_ext <<_ACEOF
31877/* confdefs.h.  */
31878_ACEOF
31879cat confdefs.h >>conftest.$ac_ext
31880cat >>conftest.$ac_ext <<_ACEOF
31881/* end confdefs.h.  */
31882#include <ext/hash_map>
31883#ifdef HAVE_NAMESPACES
31884using namespace __gnu_cxx;
31885#endif
31886int
31887main ()
31888{
31889hash_map<int,int> t;
31890  ;
31891  return 0;
31892}
31893_ACEOF
31894rm -f conftest.$ac_objext
31895if { (ac_try="$ac_compile"
31896case "(($ac_try" in
31897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31898  *) ac_try_echo=$ac_try;;
31899esac
31900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31901  (eval "$ac_compile") 2>conftest.er1
31902  ac_status=$?
31903  grep -v '^ *+' conftest.er1 >conftest.err
31904  rm -f conftest.er1
31905  cat conftest.err >&5
31906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31907  (exit $ac_status); } &&
31908	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31909  { (case "(($ac_try" in
31910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31911  *) ac_try_echo=$ac_try;;
31912esac
31913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31914  (eval "$ac_try") 2>&5
31915  ac_status=$?
31916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31917  (exit $ac_status); }; } &&
31918	 { ac_try='test -s conftest.$ac_objext'
31919  { (case "(($ac_try" in
31920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31921  *) ac_try_echo=$ac_try;;
31922esac
31923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31924  (eval "$ac_try") 2>&5
31925  ac_status=$?
31926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31927  (exit $ac_status); }; }; then
31928  ac_cv_cxx_have_gnu_ext_hash_map=yes
31929else
31930  echo "$as_me: failed program was:" >&5
31931sed 's/^/| /' conftest.$ac_ext >&5
31932
31933	ac_cv_cxx_have_gnu_ext_hash_map=no
31934fi
31935
31936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31937  ac_ext=c
31938ac_cpp='$CPP $CPPFLAGS'
31939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31941ac_compiler_gnu=$ac_cv_c_compiler_gnu
31942
31943fi
31944{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31945echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
31946 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31947 then
31948
31949cat >>confdefs.h <<\_ACEOF
31950#define HAVE_GNU_EXT_HASH_MAP 1
31951_ACEOF
31952
31953 else
31954
31955cat >>confdefs.h <<\_ACEOF
31956#define HAVE_GNU_EXT_HASH_MAP 0
31957_ACEOF
31958
31959 fi
31960
31961 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31962echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
31963if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31964  echo $ECHO_N "(cached) $ECHO_C" >&6
31965else
31966
31967  ac_ext=cpp
31968ac_cpp='$CXXCPP $CPPFLAGS'
31969ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31970ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31971ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31972
31973  cat >conftest.$ac_ext <<_ACEOF
31974/* confdefs.h.  */
31975_ACEOF
31976cat confdefs.h >>conftest.$ac_ext
31977cat >>conftest.$ac_ext <<_ACEOF
31978/* end confdefs.h.  */
31979#include <hash_map>
31980int
31981main ()
31982{
31983hash_map<int,int> t;
31984  ;
31985  return 0;
31986}
31987_ACEOF
31988rm -f conftest.$ac_objext
31989if { (ac_try="$ac_compile"
31990case "(($ac_try" in
31991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31992  *) ac_try_echo=$ac_try;;
31993esac
31994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31995  (eval "$ac_compile") 2>conftest.er1
31996  ac_status=$?
31997  grep -v '^ *+' conftest.er1 >conftest.err
31998  rm -f conftest.er1
31999  cat conftest.err >&5
32000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32001  (exit $ac_status); } &&
32002	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32003  { (case "(($ac_try" in
32004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32005  *) ac_try_echo=$ac_try;;
32006esac
32007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32008  (eval "$ac_try") 2>&5
32009  ac_status=$?
32010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32011  (exit $ac_status); }; } &&
32012	 { ac_try='test -s conftest.$ac_objext'
32013  { (case "(($ac_try" in
32014  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32015  *) ac_try_echo=$ac_try;;
32016esac
32017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32018  (eval "$ac_try") 2>&5
32019  ac_status=$?
32020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32021  (exit $ac_status); }; }; then
32022  ac_cv_cxx_have_global_hash_map=yes
32023else
32024  echo "$as_me: failed program was:" >&5
32025sed 's/^/| /' conftest.$ac_ext >&5
32026
32027	ac_cv_cxx_have_global_hash_map=no
32028fi
32029
32030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32031  ac_ext=c
32032ac_cpp='$CPP $CPPFLAGS'
32033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32035ac_compiler_gnu=$ac_cv_c_compiler_gnu
32036
32037fi
32038{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32039echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32040 if test "$ac_cv_cxx_have_global_hash_map" = yes
32041 then
32042
32043cat >>confdefs.h <<\_ACEOF
32044#define HAVE_GLOBAL_HASH_MAP 1
32045_ACEOF
32046
32047 else
32048
32049cat >>confdefs.h <<\_ACEOF
32050#define HAVE_GLOBAL_HASH_MAP 0
32051_ACEOF
32052
32053 fi
32054
32055{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32056echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32057if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32058  echo $ECHO_N "(cached) $ECHO_C" >&6
32059else
32060
32061  ac_ext=cpp
32062ac_cpp='$CXXCPP $CPPFLAGS'
32063ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32064ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32065ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32066
32067  cat >conftest.$ac_ext <<_ACEOF
32068/* confdefs.h.  */
32069_ACEOF
32070cat confdefs.h >>conftest.$ac_ext
32071cat >>conftest.$ac_ext <<_ACEOF
32072/* end confdefs.h.  */
32073#include <ext/hash_set>
32074#ifdef HAVE_NAMESPACES
32075using namespace std;
32076#endif
32077int
32078main ()
32079{
32080hash_set<int> t;
32081  ;
32082  return 0;
32083}
32084_ACEOF
32085rm -f conftest.$ac_objext
32086if { (ac_try="$ac_compile"
32087case "(($ac_try" in
32088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32089  *) ac_try_echo=$ac_try;;
32090esac
32091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32092  (eval "$ac_compile") 2>conftest.er1
32093  ac_status=$?
32094  grep -v '^ *+' conftest.er1 >conftest.err
32095  rm -f conftest.er1
32096  cat conftest.err >&5
32097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32098  (exit $ac_status); } &&
32099	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32100  { (case "(($ac_try" in
32101  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32102  *) ac_try_echo=$ac_try;;
32103esac
32104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32105  (eval "$ac_try") 2>&5
32106  ac_status=$?
32107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32108  (exit $ac_status); }; } &&
32109	 { ac_try='test -s conftest.$ac_objext'
32110  { (case "(($ac_try" in
32111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32112  *) ac_try_echo=$ac_try;;
32113esac
32114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32115  (eval "$ac_try") 2>&5
32116  ac_status=$?
32117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32118  (exit $ac_status); }; }; then
32119  ac_cv_cxx_have_std_ext_hash_set=yes
32120else
32121  echo "$as_me: failed program was:" >&5
32122sed 's/^/| /' conftest.$ac_ext >&5
32123
32124	ac_cv_cxx_have_std_ext_hash_set=no
32125fi
32126
32127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32128  ac_ext=c
32129ac_cpp='$CPP $CPPFLAGS'
32130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32132ac_compiler_gnu=$ac_cv_c_compiler_gnu
32133
32134fi
32135{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32136echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32137 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32138 then
32139
32140cat >>confdefs.h <<\_ACEOF
32141#define HAVE_STD_EXT_HASH_SET 1
32142_ACEOF
32143
32144 else
32145
32146cat >>confdefs.h <<\_ACEOF
32147#define HAVE_STD_EXT_HASH_SET 0
32148_ACEOF
32149
32150 fi
32151
32152 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32153echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32154if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32155  echo $ECHO_N "(cached) $ECHO_C" >&6
32156else
32157
32158  ac_ext=cpp
32159ac_cpp='$CXXCPP $CPPFLAGS'
32160ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32161ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32162ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32163
32164  cat >conftest.$ac_ext <<_ACEOF
32165/* confdefs.h.  */
32166_ACEOF
32167cat confdefs.h >>conftest.$ac_ext
32168cat >>conftest.$ac_ext <<_ACEOF
32169/* end confdefs.h.  */
32170#include <ext/hash_set>
32171#ifdef HAVE_NAMESPACES
32172using namespace __gnu_cxx;
32173#endif
32174int
32175main ()
32176{
32177hash_set<int> t;
32178  ;
32179  return 0;
32180}
32181_ACEOF
32182rm -f conftest.$ac_objext
32183if { (ac_try="$ac_compile"
32184case "(($ac_try" in
32185  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32186  *) ac_try_echo=$ac_try;;
32187esac
32188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32189  (eval "$ac_compile") 2>conftest.er1
32190  ac_status=$?
32191  grep -v '^ *+' conftest.er1 >conftest.err
32192  rm -f conftest.er1
32193  cat conftest.err >&5
32194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32195  (exit $ac_status); } &&
32196	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32197  { (case "(($ac_try" in
32198  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32199  *) ac_try_echo=$ac_try;;
32200esac
32201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32202  (eval "$ac_try") 2>&5
32203  ac_status=$?
32204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32205  (exit $ac_status); }; } &&
32206	 { ac_try='test -s conftest.$ac_objext'
32207  { (case "(($ac_try" in
32208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32209  *) ac_try_echo=$ac_try;;
32210esac
32211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32212  (eval "$ac_try") 2>&5
32213  ac_status=$?
32214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32215  (exit $ac_status); }; }; then
32216  ac_cv_cxx_have_gnu_ext_hash_set=yes
32217else
32218  echo "$as_me: failed program was:" >&5
32219sed 's/^/| /' conftest.$ac_ext >&5
32220
32221	ac_cv_cxx_have_gnu_ext_hash_set=no
32222fi
32223
32224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32225  ac_ext=c
32226ac_cpp='$CPP $CPPFLAGS'
32227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32229ac_compiler_gnu=$ac_cv_c_compiler_gnu
32230
32231fi
32232{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32233echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32234 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32235 then
32236
32237cat >>confdefs.h <<\_ACEOF
32238#define HAVE_GNU_EXT_HASH_SET 1
32239_ACEOF
32240
32241 else
32242
32243cat >>confdefs.h <<\_ACEOF
32244#define HAVE_GNU_EXT_HASH_SET 0
32245_ACEOF
32246
32247 fi
32248
32249 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32250echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32251if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32252  echo $ECHO_N "(cached) $ECHO_C" >&6
32253else
32254
32255  ac_ext=cpp
32256ac_cpp='$CXXCPP $CPPFLAGS'
32257ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32258ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32259ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32260
32261  cat >conftest.$ac_ext <<_ACEOF
32262/* confdefs.h.  */
32263_ACEOF
32264cat confdefs.h >>conftest.$ac_ext
32265cat >>conftest.$ac_ext <<_ACEOF
32266/* end confdefs.h.  */
32267#include <hash_set>
32268int
32269main ()
32270{
32271hash_set<int> t; return 0;
32272  ;
32273  return 0;
32274}
32275_ACEOF
32276rm -f conftest.$ac_objext
32277if { (ac_try="$ac_compile"
32278case "(($ac_try" in
32279  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32280  *) ac_try_echo=$ac_try;;
32281esac
32282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32283  (eval "$ac_compile") 2>conftest.er1
32284  ac_status=$?
32285  grep -v '^ *+' conftest.er1 >conftest.err
32286  rm -f conftest.er1
32287  cat conftest.err >&5
32288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32289  (exit $ac_status); } &&
32290	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32291  { (case "(($ac_try" in
32292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32293  *) ac_try_echo=$ac_try;;
32294esac
32295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32296  (eval "$ac_try") 2>&5
32297  ac_status=$?
32298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32299  (exit $ac_status); }; } &&
32300	 { ac_try='test -s conftest.$ac_objext'
32301  { (case "(($ac_try" in
32302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32303  *) ac_try_echo=$ac_try;;
32304esac
32305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32306  (eval "$ac_try") 2>&5
32307  ac_status=$?
32308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32309  (exit $ac_status); }; }; then
32310  ac_cv_cxx_have_global_hash_set=yes
32311else
32312  echo "$as_me: failed program was:" >&5
32313sed 's/^/| /' conftest.$ac_ext >&5
32314
32315	ac_cv_cxx_have_global_hash_set=no
32316fi
32317
32318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32319  ac_ext=c
32320ac_cpp='$CPP $CPPFLAGS'
32321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32323ac_compiler_gnu=$ac_cv_c_compiler_gnu
32324
32325fi
32326{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32327echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32328 if test "$ac_cv_cxx_have_global_hash_set" = yes
32329 then
32330
32331cat >>confdefs.h <<\_ACEOF
32332#define HAVE_GLOBAL_HASH_SET 1
32333_ACEOF
32334
32335 else
32336
32337cat >>confdefs.h <<\_ACEOF
32338#define HAVE_GLOBAL_HASH_SET 0
32339_ACEOF
32340
32341 fi
32342
32343{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32344echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32345if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32346  echo $ECHO_N "(cached) $ECHO_C" >&6
32347else
32348
32349  ac_ext=cpp
32350ac_cpp='$CXXCPP $CPPFLAGS'
32351ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32352ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32353ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32354
32355  cat >conftest.$ac_ext <<_ACEOF
32356/* confdefs.h.  */
32357_ACEOF
32358cat confdefs.h >>conftest.$ac_ext
32359cat >>conftest.$ac_ext <<_ACEOF
32360/* end confdefs.h.  */
32361#include <iterator>
32362#ifdef HAVE_NAMESPACES
32363using namespace std;
32364#endif
32365int
32366main ()
32367{
32368iterator<int,int,int> t; return 0;
32369  ;
32370  return 0;
32371}
32372_ACEOF
32373rm -f conftest.$ac_objext
32374if { (ac_try="$ac_compile"
32375case "(($ac_try" in
32376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32377  *) ac_try_echo=$ac_try;;
32378esac
32379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32380  (eval "$ac_compile") 2>conftest.er1
32381  ac_status=$?
32382  grep -v '^ *+' conftest.er1 >conftest.err
32383  rm -f conftest.er1
32384  cat conftest.err >&5
32385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32386  (exit $ac_status); } &&
32387	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32388  { (case "(($ac_try" in
32389  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32390  *) ac_try_echo=$ac_try;;
32391esac
32392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32393  (eval "$ac_try") 2>&5
32394  ac_status=$?
32395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32396  (exit $ac_status); }; } &&
32397	 { ac_try='test -s conftest.$ac_objext'
32398  { (case "(($ac_try" in
32399  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32400  *) ac_try_echo=$ac_try;;
32401esac
32402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32403  (eval "$ac_try") 2>&5
32404  ac_status=$?
32405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32406  (exit $ac_status); }; }; then
32407  ac_cv_cxx_have_std_iterator=yes
32408else
32409  echo "$as_me: failed program was:" >&5
32410sed 's/^/| /' conftest.$ac_ext >&5
32411
32412	ac_cv_cxx_have_std_iterator=no
32413fi
32414
32415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32416  ac_ext=c
32417ac_cpp='$CPP $CPPFLAGS'
32418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32420ac_compiler_gnu=$ac_cv_c_compiler_gnu
32421
32422
32423fi
32424{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32425echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32426if test "$ac_cv_cxx_have_std_iterator" = yes
32427then
32428
32429cat >>confdefs.h <<\_ACEOF
32430#define HAVE_STD_ITERATOR 1
32431_ACEOF
32432
32433else
32434
32435cat >>confdefs.h <<\_ACEOF
32436#define HAVE_STD_ITERATOR 0
32437_ACEOF
32438
32439fi
32440
32441{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32442echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32443if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32444  echo $ECHO_N "(cached) $ECHO_C" >&6
32445else
32446
32447  ac_ext=cpp
32448ac_cpp='$CXXCPP $CPPFLAGS'
32449ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32450ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32451ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32452
32453  cat >conftest.$ac_ext <<_ACEOF
32454/* confdefs.h.  */
32455_ACEOF
32456cat confdefs.h >>conftest.$ac_ext
32457cat >>conftest.$ac_ext <<_ACEOF
32458/* end confdefs.h.  */
32459#include <iterator>
32460#ifdef HAVE_NAMESPACES
32461using namespace std;
32462#endif
32463int
32464main ()
32465{
32466bidirectional_iterator<int,int> t; return 0;
32467  ;
32468  return 0;
32469}
32470_ACEOF
32471rm -f conftest.$ac_objext
32472if { (ac_try="$ac_compile"
32473case "(($ac_try" in
32474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32475  *) ac_try_echo=$ac_try;;
32476esac
32477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32478  (eval "$ac_compile") 2>conftest.er1
32479  ac_status=$?
32480  grep -v '^ *+' conftest.er1 >conftest.err
32481  rm -f conftest.er1
32482  cat conftest.err >&5
32483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32484  (exit $ac_status); } &&
32485	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32486  { (case "(($ac_try" in
32487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32488  *) ac_try_echo=$ac_try;;
32489esac
32490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32491  (eval "$ac_try") 2>&5
32492  ac_status=$?
32493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32494  (exit $ac_status); }; } &&
32495	 { ac_try='test -s conftest.$ac_objext'
32496  { (case "(($ac_try" in
32497  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32498  *) ac_try_echo=$ac_try;;
32499esac
32500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32501  (eval "$ac_try") 2>&5
32502  ac_status=$?
32503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32504  (exit $ac_status); }; }; then
32505  ac_cv_cxx_have_bi_iterator=yes
32506else
32507  echo "$as_me: failed program was:" >&5
32508sed 's/^/| /' conftest.$ac_ext >&5
32509
32510	ac_cv_cxx_have_bi_iterator=no
32511fi
32512
32513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32514  ac_ext=c
32515ac_cpp='$CPP $CPPFLAGS'
32516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32518ac_compiler_gnu=$ac_cv_c_compiler_gnu
32519
32520
32521fi
32522{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32523echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32524if test "$ac_cv_cxx_have_bi_iterator" = yes
32525then
32526
32527cat >>confdefs.h <<\_ACEOF
32528#define HAVE_BI_ITERATOR 1
32529_ACEOF
32530
32531else
32532
32533cat >>confdefs.h <<\_ACEOF
32534#define HAVE_BI_ITERATOR 0
32535_ACEOF
32536
32537fi
32538
32539{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32540echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32541if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32542  echo $ECHO_N "(cached) $ECHO_C" >&6
32543else
32544
32545  ac_ext=cpp
32546ac_cpp='$CXXCPP $CPPFLAGS'
32547ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32548ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32549ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32550
32551  cat >conftest.$ac_ext <<_ACEOF
32552/* confdefs.h.  */
32553_ACEOF
32554cat confdefs.h >>conftest.$ac_ext
32555cat >>conftest.$ac_ext <<_ACEOF
32556/* end confdefs.h.  */
32557#include <iterator>
32558#ifdef HAVE_NAMESPACES
32559using namespace std;
32560#endif
32561int
32562main ()
32563{
32564forward_iterator<int,int> t; return 0;
32565  ;
32566  return 0;
32567}
32568_ACEOF
32569rm -f conftest.$ac_objext
32570if { (ac_try="$ac_compile"
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_compile") 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_cxx_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_objext'
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  ac_cv_cxx_have_fwd_iterator=yes
32604else
32605  echo "$as_me: failed program was:" >&5
32606sed 's/^/| /' conftest.$ac_ext >&5
32607
32608	ac_cv_cxx_have_fwd_iterator=no
32609fi
32610
32611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32612  ac_ext=c
32613ac_cpp='$CPP $CPPFLAGS'
32614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32616ac_compiler_gnu=$ac_cv_c_compiler_gnu
32617
32618
32619fi
32620{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32621echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32622if test "$ac_cv_cxx_have_fwd_iterator" = yes
32623then
32624
32625cat >>confdefs.h <<\_ACEOF
32626#define HAVE_FWD_ITERATOR 1
32627_ACEOF
32628
32629else
32630
32631cat >>confdefs.h <<\_ACEOF
32632#define HAVE_FWD_ITERATOR 0
32633_ACEOF
32634
32635fi
32636
32637
32638{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32639echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32640if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32641  echo $ECHO_N "(cached) $ECHO_C" >&6
32642else
32643  ac_ext=cpp
32644ac_cpp='$CXXCPP $CPPFLAGS'
32645ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32646ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32647ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32648
32649   cat >conftest.$ac_ext <<_ACEOF
32650/* confdefs.h.  */
32651_ACEOF
32652cat confdefs.h >>conftest.$ac_ext
32653cat >>conftest.$ac_ext <<_ACEOF
32654/* end confdefs.h.  */
32655#include <math.h>
32656int
32657main ()
32658{
32659float f; isnan(f);
32660  ;
32661  return 0;
32662}
32663_ACEOF
32664rm -f conftest.$ac_objext
32665if { (ac_try="$ac_compile"
32666case "(($ac_try" in
32667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32668  *) ac_try_echo=$ac_try;;
32669esac
32670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32671  (eval "$ac_compile") 2>conftest.er1
32672  ac_status=$?
32673  grep -v '^ *+' conftest.er1 >conftest.err
32674  rm -f conftest.er1
32675  cat conftest.err >&5
32676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32677  (exit $ac_status); } &&
32678	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32679  { (case "(($ac_try" in
32680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32681  *) ac_try_echo=$ac_try;;
32682esac
32683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32684  (eval "$ac_try") 2>&5
32685  ac_status=$?
32686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32687  (exit $ac_status); }; } &&
32688	 { ac_try='test -s conftest.$ac_objext'
32689  { (case "(($ac_try" in
32690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32691  *) ac_try_echo=$ac_try;;
32692esac
32693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32694  (eval "$ac_try") 2>&5
32695  ac_status=$?
32696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32697  (exit $ac_status); }; }; then
32698  ac_cv_func_isnan_in_math_h=yes
32699else
32700  echo "$as_me: failed program was:" >&5
32701sed 's/^/| /' conftest.$ac_ext >&5
32702
32703	ac_cv_func_isnan_in_math_h=no
32704fi
32705
32706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32707  ac_ext=c
32708ac_cpp='$CPP $CPPFLAGS'
32709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32711ac_compiler_gnu=$ac_cv_c_compiler_gnu
32712
32713fi
32714{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32715echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32716
32717
32718if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32719
32720cat >>confdefs.h <<\_ACEOF
32721#define HAVE_ISNAN_IN_MATH_H 1
32722_ACEOF
32723
32724fi
32725
32726{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32727echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32728if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32729  echo $ECHO_N "(cached) $ECHO_C" >&6
32730else
32731  ac_ext=cpp
32732ac_cpp='$CXXCPP $CPPFLAGS'
32733ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32734ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32735ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32736
32737   cat >conftest.$ac_ext <<_ACEOF
32738/* confdefs.h.  */
32739_ACEOF
32740cat confdefs.h >>conftest.$ac_ext
32741cat >>conftest.$ac_ext <<_ACEOF
32742/* end confdefs.h.  */
32743#include <cmath>
32744int
32745main ()
32746{
32747float f; isnan(f);
32748  ;
32749  return 0;
32750}
32751_ACEOF
32752rm -f conftest.$ac_objext
32753if { (ac_try="$ac_compile"
32754case "(($ac_try" in
32755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32756  *) ac_try_echo=$ac_try;;
32757esac
32758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32759  (eval "$ac_compile") 2>conftest.er1
32760  ac_status=$?
32761  grep -v '^ *+' conftest.er1 >conftest.err
32762  rm -f conftest.er1
32763  cat conftest.err >&5
32764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32765  (exit $ac_status); } &&
32766	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
32776	 { ac_try='test -s conftest.$ac_objext'
32777  { (case "(($ac_try" in
32778  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32779  *) ac_try_echo=$ac_try;;
32780esac
32781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32782  (eval "$ac_try") 2>&5
32783  ac_status=$?
32784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32785  (exit $ac_status); }; }; then
32786  ac_cv_func_isnan_in_cmath=yes
32787else
32788  echo "$as_me: failed program was:" >&5
32789sed 's/^/| /' conftest.$ac_ext >&5
32790
32791	ac_cv_func_isnan_in_cmath=no
32792fi
32793
32794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32795  ac_ext=c
32796ac_cpp='$CPP $CPPFLAGS'
32797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32799ac_compiler_gnu=$ac_cv_c_compiler_gnu
32800
32801fi
32802{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32803echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32804
32805if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32806
32807cat >>confdefs.h <<\_ACEOF
32808#define HAVE_ISNAN_IN_CMATH 1
32809_ACEOF
32810
32811fi
32812
32813{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32814echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32815if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32816  echo $ECHO_N "(cached) $ECHO_C" >&6
32817else
32818  ac_ext=cpp
32819ac_cpp='$CXXCPP $CPPFLAGS'
32820ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32821ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32822ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32823
32824   cat >conftest.$ac_ext <<_ACEOF
32825/* confdefs.h.  */
32826_ACEOF
32827cat confdefs.h >>conftest.$ac_ext
32828cat >>conftest.$ac_ext <<_ACEOF
32829/* end confdefs.h.  */
32830#include <cmath>
32831int
32832main ()
32833{
32834float f; std::isnan(f);
32835  ;
32836  return 0;
32837}
32838_ACEOF
32839rm -f conftest.$ac_objext
32840if { (ac_try="$ac_compile"
32841case "(($ac_try" in
32842  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32843  *) ac_try_echo=$ac_try;;
32844esac
32845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32846  (eval "$ac_compile") 2>conftest.er1
32847  ac_status=$?
32848  grep -v '^ *+' conftest.er1 >conftest.err
32849  rm -f conftest.er1
32850  cat conftest.err >&5
32851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32852  (exit $ac_status); } &&
32853	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32854  { (case "(($ac_try" in
32855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32856  *) ac_try_echo=$ac_try;;
32857esac
32858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32859  (eval "$ac_try") 2>&5
32860  ac_status=$?
32861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32862  (exit $ac_status); }; } &&
32863	 { ac_try='test -s conftest.$ac_objext'
32864  { (case "(($ac_try" in
32865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32866  *) ac_try_echo=$ac_try;;
32867esac
32868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32869  (eval "$ac_try") 2>&5
32870  ac_status=$?
32871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32872  (exit $ac_status); }; }; then
32873  ac_cv_func_std_isnan_in_cmath=yes
32874else
32875  echo "$as_me: failed program was:" >&5
32876sed 's/^/| /' conftest.$ac_ext >&5
32877
32878	ac_cv_func_std_isnan_in_cmath=no
32879fi
32880
32881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32882  ac_ext=c
32883ac_cpp='$CPP $CPPFLAGS'
32884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32886ac_compiler_gnu=$ac_cv_c_compiler_gnu
32887
32888fi
32889{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32890echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32891
32892if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32893
32894cat >>confdefs.h <<\_ACEOF
32895#define HAVE_STD_ISNAN_IN_CMATH 1
32896_ACEOF
32897
32898fi
32899
32900
32901{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32902echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32903if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32904  echo $ECHO_N "(cached) $ECHO_C" >&6
32905else
32906  ac_ext=cpp
32907ac_cpp='$CXXCPP $CPPFLAGS'
32908ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32909ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32910ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32911
32912   cat >conftest.$ac_ext <<_ACEOF
32913/* confdefs.h.  */
32914_ACEOF
32915cat confdefs.h >>conftest.$ac_ext
32916cat >>conftest.$ac_ext <<_ACEOF
32917/* end confdefs.h.  */
32918#include <math.h>
32919int
32920main ()
32921{
32922float f; isinf(f);
32923  ;
32924  return 0;
32925}
32926_ACEOF
32927rm -f conftest.$ac_objext
32928if { (ac_try="$ac_compile"
32929case "(($ac_try" in
32930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32931  *) ac_try_echo=$ac_try;;
32932esac
32933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32934  (eval "$ac_compile") 2>conftest.er1
32935  ac_status=$?
32936  grep -v '^ *+' conftest.er1 >conftest.err
32937  rm -f conftest.er1
32938  cat conftest.err >&5
32939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32940  (exit $ac_status); } &&
32941	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32942  { (case "(($ac_try" in
32943  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32944  *) ac_try_echo=$ac_try;;
32945esac
32946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32947  (eval "$ac_try") 2>&5
32948  ac_status=$?
32949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32950  (exit $ac_status); }; } &&
32951	 { ac_try='test -s conftest.$ac_objext'
32952  { (case "(($ac_try" in
32953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32954  *) ac_try_echo=$ac_try;;
32955esac
32956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32957  (eval "$ac_try") 2>&5
32958  ac_status=$?
32959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32960  (exit $ac_status); }; }; then
32961  ac_cv_func_isinf_in_math_h=yes
32962else
32963  echo "$as_me: failed program was:" >&5
32964sed 's/^/| /' conftest.$ac_ext >&5
32965
32966	ac_cv_func_isinf_in_math_h=no
32967fi
32968
32969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32970  ac_ext=c
32971ac_cpp='$CPP $CPPFLAGS'
32972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32974ac_compiler_gnu=$ac_cv_c_compiler_gnu
32975
32976fi
32977{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32978echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32979
32980if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32981
32982cat >>confdefs.h <<\_ACEOF
32983#define HAVE_ISINF_IN_MATH_H 1
32984_ACEOF
32985
32986fi
32987
32988{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32989echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32990if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32991  echo $ECHO_N "(cached) $ECHO_C" >&6
32992else
32993  ac_ext=cpp
32994ac_cpp='$CXXCPP $CPPFLAGS'
32995ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32996ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32997ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32998
32999   cat >conftest.$ac_ext <<_ACEOF
33000/* confdefs.h.  */
33001_ACEOF
33002cat confdefs.h >>conftest.$ac_ext
33003cat >>conftest.$ac_ext <<_ACEOF
33004/* end confdefs.h.  */
33005#include <cmath>
33006int
33007main ()
33008{
33009float f; isinf(f);
33010  ;
33011  return 0;
33012}
33013_ACEOF
33014rm -f conftest.$ac_objext
33015if { (ac_try="$ac_compile"
33016case "(($ac_try" in
33017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33018  *) ac_try_echo=$ac_try;;
33019esac
33020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33021  (eval "$ac_compile") 2>conftest.er1
33022  ac_status=$?
33023  grep -v '^ *+' conftest.er1 >conftest.err
33024  rm -f conftest.er1
33025  cat conftest.err >&5
33026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33027  (exit $ac_status); } &&
33028	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33029  { (case "(($ac_try" in
33030  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33031  *) ac_try_echo=$ac_try;;
33032esac
33033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33034  (eval "$ac_try") 2>&5
33035  ac_status=$?
33036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33037  (exit $ac_status); }; } &&
33038	 { ac_try='test -s conftest.$ac_objext'
33039  { (case "(($ac_try" in
33040  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33041  *) ac_try_echo=$ac_try;;
33042esac
33043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33044  (eval "$ac_try") 2>&5
33045  ac_status=$?
33046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33047  (exit $ac_status); }; }; then
33048  ac_cv_func_isinf_in_cmath=yes
33049else
33050  echo "$as_me: failed program was:" >&5
33051sed 's/^/| /' conftest.$ac_ext >&5
33052
33053	ac_cv_func_isinf_in_cmath=no
33054fi
33055
33056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33057  ac_ext=c
33058ac_cpp='$CPP $CPPFLAGS'
33059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33061ac_compiler_gnu=$ac_cv_c_compiler_gnu
33062
33063fi
33064{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33065echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33066
33067if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33068
33069cat >>confdefs.h <<\_ACEOF
33070#define HAVE_ISINF_IN_CMATH 1
33071_ACEOF
33072
33073fi
33074
33075{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33076echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33077if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33078  echo $ECHO_N "(cached) $ECHO_C" >&6
33079else
33080  ac_ext=cpp
33081ac_cpp='$CXXCPP $CPPFLAGS'
33082ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33083ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33084ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33085
33086   cat >conftest.$ac_ext <<_ACEOF
33087/* confdefs.h.  */
33088_ACEOF
33089cat confdefs.h >>conftest.$ac_ext
33090cat >>conftest.$ac_ext <<_ACEOF
33091/* end confdefs.h.  */
33092#include <cmath>
33093int
33094main ()
33095{
33096float f; std::isinf(f)}
33097  ;
33098  return 0;
33099}
33100_ACEOF
33101rm -f conftest.$ac_objext
33102if { (ac_try="$ac_compile"
33103case "(($ac_try" in
33104  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33105  *) ac_try_echo=$ac_try;;
33106esac
33107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33108  (eval "$ac_compile") 2>conftest.er1
33109  ac_status=$?
33110  grep -v '^ *+' conftest.er1 >conftest.err
33111  rm -f conftest.er1
33112  cat conftest.err >&5
33113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33114  (exit $ac_status); } &&
33115	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33116  { (case "(($ac_try" in
33117  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33118  *) ac_try_echo=$ac_try;;
33119esac
33120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33121  (eval "$ac_try") 2>&5
33122  ac_status=$?
33123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33124  (exit $ac_status); }; } &&
33125	 { ac_try='test -s conftest.$ac_objext'
33126  { (case "(($ac_try" in
33127  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33128  *) ac_try_echo=$ac_try;;
33129esac
33130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33131  (eval "$ac_try") 2>&5
33132  ac_status=$?
33133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33134  (exit $ac_status); }; }; then
33135  ac_cv_func_std_isinf_in_cmath=yes
33136else
33137  echo "$as_me: failed program was:" >&5
33138sed 's/^/| /' conftest.$ac_ext >&5
33139
33140	ac_cv_func_std_isinf_in_cmath=no
33141fi
33142
33143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33144  ac_ext=c
33145ac_cpp='$CPP $CPPFLAGS'
33146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33148ac_compiler_gnu=$ac_cv_c_compiler_gnu
33149
33150fi
33151{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33152echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33153
33154if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33155
33156cat >>confdefs.h <<\_ACEOF
33157#define HAVE_STD_ISINF_IN_CMATH 1
33158_ACEOF
33159
33160fi
33161
33162{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33163echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33164if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33165  echo $ECHO_N "(cached) $ECHO_C" >&6
33166else
33167  ac_ext=cpp
33168ac_cpp='$CXXCPP $CPPFLAGS'
33169ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33170ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33171ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33172
33173   cat >conftest.$ac_ext <<_ACEOF
33174/* confdefs.h.  */
33175_ACEOF
33176cat confdefs.h >>conftest.$ac_ext
33177cat >>conftest.$ac_ext <<_ACEOF
33178/* end confdefs.h.  */
33179#include <ieeefp.h>
33180int
33181main ()
33182{
33183float f; finite(f);
33184  ;
33185  return 0;
33186}
33187_ACEOF
33188rm -f conftest.$ac_objext
33189if { (ac_try="$ac_compile"
33190case "(($ac_try" in
33191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33192  *) ac_try_echo=$ac_try;;
33193esac
33194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33195  (eval "$ac_compile") 2>conftest.er1
33196  ac_status=$?
33197  grep -v '^ *+' conftest.er1 >conftest.err
33198  rm -f conftest.er1
33199  cat conftest.err >&5
33200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33201  (exit $ac_status); } &&
33202	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33203  { (case "(($ac_try" in
33204  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33205  *) ac_try_echo=$ac_try;;
33206esac
33207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33208  (eval "$ac_try") 2>&5
33209  ac_status=$?
33210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33211  (exit $ac_status); }; } &&
33212	 { ac_try='test -s conftest.$ac_objext'
33213  { (case "(($ac_try" in
33214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33215  *) ac_try_echo=$ac_try;;
33216esac
33217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33218  (eval "$ac_try") 2>&5
33219  ac_status=$?
33220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33221  (exit $ac_status); }; }; then
33222  ac_cv_func_finite_in_ieeefp_h=yes
33223else
33224  echo "$as_me: failed program was:" >&5
33225sed 's/^/| /' conftest.$ac_ext >&5
33226
33227	ac_cv_func_finite_in_ieeefp_h=no
33228fi
33229
33230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33231  ac_ext=c
33232ac_cpp='$CPP $CPPFLAGS'
33233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33235ac_compiler_gnu=$ac_cv_c_compiler_gnu
33236
33237fi
33238{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33239echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33240
33241if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33242
33243cat >>confdefs.h <<\_ACEOF
33244#define HAVE_FINITE_IN_IEEEFP_H 1
33245_ACEOF
33246
33247fi
33248
33249
33250
33251if test "$llvm_cv_platform_type" = "Unix" ; then
33252
33253
33254for ac_header in stdlib.h unistd.h
33255do
33256as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33257if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33258  { echo "$as_me:$LINENO: checking for $ac_header" >&5
33259echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33260if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33261  echo $ECHO_N "(cached) $ECHO_C" >&6
33262fi
33263ac_res=`eval echo '${'$as_ac_Header'}'`
33264	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33265echo "${ECHO_T}$ac_res" >&6; }
33266else
33267  # Is the header compilable?
33268{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33269echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33270cat >conftest.$ac_ext <<_ACEOF
33271/* confdefs.h.  */
33272_ACEOF
33273cat confdefs.h >>conftest.$ac_ext
33274cat >>conftest.$ac_ext <<_ACEOF
33275/* end confdefs.h.  */
33276$ac_includes_default
33277#include <$ac_header>
33278_ACEOF
33279rm -f conftest.$ac_objext
33280if { (ac_try="$ac_compile"
33281case "(($ac_try" in
33282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33283  *) ac_try_echo=$ac_try;;
33284esac
33285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33286  (eval "$ac_compile") 2>conftest.er1
33287  ac_status=$?
33288  grep -v '^ *+' conftest.er1 >conftest.err
33289  rm -f conftest.er1
33290  cat conftest.err >&5
33291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33292  (exit $ac_status); } &&
33293	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33294  { (case "(($ac_try" in
33295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33296  *) ac_try_echo=$ac_try;;
33297esac
33298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33299  (eval "$ac_try") 2>&5
33300  ac_status=$?
33301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33302  (exit $ac_status); }; } &&
33303	 { ac_try='test -s conftest.$ac_objext'
33304  { (case "(($ac_try" in
33305  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33306  *) ac_try_echo=$ac_try;;
33307esac
33308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33309  (eval "$ac_try") 2>&5
33310  ac_status=$?
33311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33312  (exit $ac_status); }; }; then
33313  ac_header_compiler=yes
33314else
33315  echo "$as_me: failed program was:" >&5
33316sed 's/^/| /' conftest.$ac_ext >&5
33317
33318	ac_header_compiler=no
33319fi
33320
33321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33322{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33323echo "${ECHO_T}$ac_header_compiler" >&6; }
33324
33325# Is the header present?
33326{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33327echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33328cat >conftest.$ac_ext <<_ACEOF
33329/* confdefs.h.  */
33330_ACEOF
33331cat confdefs.h >>conftest.$ac_ext
33332cat >>conftest.$ac_ext <<_ACEOF
33333/* end confdefs.h.  */
33334#include <$ac_header>
33335_ACEOF
33336if { (ac_try="$ac_cpp conftest.$ac_ext"
33337case "(($ac_try" in
33338  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33339  *) ac_try_echo=$ac_try;;
33340esac
33341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33342  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33343  ac_status=$?
33344  grep -v '^ *+' conftest.er1 >conftest.err
33345  rm -f conftest.er1
33346  cat conftest.err >&5
33347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33348  (exit $ac_status); } >/dev/null; then
33349  if test -s conftest.err; then
33350    ac_cpp_err=$ac_c_preproc_warn_flag
33351    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33352  else
33353    ac_cpp_err=
33354  fi
33355else
33356  ac_cpp_err=yes
33357fi
33358if test -z "$ac_cpp_err"; then
33359  ac_header_preproc=yes
33360else
33361  echo "$as_me: failed program was:" >&5
33362sed 's/^/| /' conftest.$ac_ext >&5
33363
33364  ac_header_preproc=no
33365fi
33366
33367rm -f conftest.err conftest.$ac_ext
33368{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33369echo "${ECHO_T}$ac_header_preproc" >&6; }
33370
33371# So?  What about this header?
33372case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33373  yes:no: )
33374    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33375echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33376    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33377echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33378    ac_header_preproc=yes
33379    ;;
33380  no:yes:* )
33381    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33382echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33383    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33384echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33385    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33386echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33387    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33388echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33389    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33390echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33391    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33392echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33393    ( cat <<\_ASBOX
33394## ----------------------------------- ##
33395## Report this to llvmbugs@cs.uiuc.edu ##
33396## ----------------------------------- ##
33397_ASBOX
33398     ) | sed "s/^/$as_me: WARNING:     /" >&2
33399    ;;
33400esac
33401{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33402echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33403if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33404  echo $ECHO_N "(cached) $ECHO_C" >&6
33405else
33406  eval "$as_ac_Header=\$ac_header_preproc"
33407fi
33408ac_res=`eval echo '${'$as_ac_Header'}'`
33409	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33410echo "${ECHO_T}$ac_res" >&6; }
33411
33412fi
33413if test `eval echo '${'$as_ac_Header'}'` = yes; then
33414  cat >>confdefs.h <<_ACEOF
33415#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33416_ACEOF
33417
33418fi
33419
33420done
33421
33422
33423for ac_func in getpagesize
33424do
33425as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33426{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33427echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33428if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33429  echo $ECHO_N "(cached) $ECHO_C" >&6
33430else
33431  cat >conftest.$ac_ext <<_ACEOF
33432/* confdefs.h.  */
33433_ACEOF
33434cat confdefs.h >>conftest.$ac_ext
33435cat >>conftest.$ac_ext <<_ACEOF
33436/* end confdefs.h.  */
33437/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33438   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33439#define $ac_func innocuous_$ac_func
33440
33441/* System header to define __stub macros and hopefully few prototypes,
33442    which can conflict with char $ac_func (); below.
33443    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33444    <limits.h> exists even on freestanding compilers.  */
33445
33446#ifdef __STDC__
33447# include <limits.h>
33448#else
33449# include <assert.h>
33450#endif
33451
33452#undef $ac_func
33453
33454/* Override any GCC internal prototype to avoid an error.
33455   Use char because int might match the return type of a GCC
33456   builtin and then its argument prototype would still apply.  */
33457#ifdef __cplusplus
33458extern "C"
33459#endif
33460char $ac_func ();
33461/* The GNU C library defines this for functions which it implements
33462    to always fail with ENOSYS.  Some functions are actually named
33463    something starting with __ and the normal name is an alias.  */
33464#if defined __stub_$ac_func || defined __stub___$ac_func
33465choke me
33466#endif
33467
33468int
33469main ()
33470{
33471return $ac_func ();
33472  ;
33473  return 0;
33474}
33475_ACEOF
33476rm -f conftest.$ac_objext conftest$ac_exeext
33477if { (ac_try="$ac_link"
33478case "(($ac_try" in
33479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33480  *) ac_try_echo=$ac_try;;
33481esac
33482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33483  (eval "$ac_link") 2>conftest.er1
33484  ac_status=$?
33485  grep -v '^ *+' conftest.er1 >conftest.err
33486  rm -f conftest.er1
33487  cat conftest.err >&5
33488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33489  (exit $ac_status); } &&
33490	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33491  { (case "(($ac_try" in
33492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33493  *) ac_try_echo=$ac_try;;
33494esac
33495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33496  (eval "$ac_try") 2>&5
33497  ac_status=$?
33498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33499  (exit $ac_status); }; } &&
33500	 { ac_try='test -s conftest$ac_exeext'
33501  { (case "(($ac_try" in
33502  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33503  *) ac_try_echo=$ac_try;;
33504esac
33505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33506  (eval "$ac_try") 2>&5
33507  ac_status=$?
33508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33509  (exit $ac_status); }; }; then
33510  eval "$as_ac_var=yes"
33511else
33512  echo "$as_me: failed program was:" >&5
33513sed 's/^/| /' conftest.$ac_ext >&5
33514
33515	eval "$as_ac_var=no"
33516fi
33517
33518rm -f core conftest.err conftest.$ac_objext \
33519      conftest$ac_exeext conftest.$ac_ext
33520fi
33521ac_res=`eval echo '${'$as_ac_var'}'`
33522	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33523echo "${ECHO_T}$ac_res" >&6; }
33524if test `eval echo '${'$as_ac_var'}'` = yes; then
33525  cat >>confdefs.h <<_ACEOF
33526#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33527_ACEOF
33528
33529fi
33530done
33531
33532{ echo "$as_me:$LINENO: checking for working mmap" >&5
33533echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33534if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33535  echo $ECHO_N "(cached) $ECHO_C" >&6
33536else
33537  if test "$cross_compiling" = yes; then
33538  ac_cv_func_mmap_fixed_mapped=no
33539else
33540  cat >conftest.$ac_ext <<_ACEOF
33541/* confdefs.h.  */
33542_ACEOF
33543cat confdefs.h >>conftest.$ac_ext
33544cat >>conftest.$ac_ext <<_ACEOF
33545/* end confdefs.h.  */
33546$ac_includes_default
33547/* malloc might have been renamed as rpl_malloc. */
33548#undef malloc
33549
33550/* Thanks to Mike Haertel and Jim Avera for this test.
33551   Here is a matrix of mmap possibilities:
33552	mmap private not fixed
33553	mmap private fixed at somewhere currently unmapped
33554	mmap private fixed at somewhere already mapped
33555	mmap shared not fixed
33556	mmap shared fixed at somewhere currently unmapped
33557	mmap shared fixed at somewhere already mapped
33558   For private mappings, we should verify that changes cannot be read()
33559   back from the file, nor mmap's back from the file at a different
33560   address.  (There have been systems where private was not correctly
33561   implemented like the infamous i386 svr4.0, and systems where the
33562   VM page cache was not coherent with the file system buffer cache
33563   like early versions of FreeBSD and possibly contemporary NetBSD.)
33564   For shared mappings, we should conversely verify that changes get
33565   propagated back to all the places they're supposed to be.
33566
33567   Grep wants private fixed already mapped.
33568   The main things grep needs to know about mmap are:
33569   * does it exist and is it safe to write into the mmap'd area
33570   * how to use it (BSD variants)  */
33571
33572#include <fcntl.h>
33573#include <sys/mman.h>
33574
33575#if !STDC_HEADERS && !HAVE_STDLIB_H
33576char *malloc ();
33577#endif
33578
33579/* This mess was copied from the GNU getpagesize.h.  */
33580#if !HAVE_GETPAGESIZE
33581/* Assume that all systems that can run configure have sys/param.h.  */
33582# if !HAVE_SYS_PARAM_H
33583#  define HAVE_SYS_PARAM_H 1
33584# endif
33585
33586# ifdef _SC_PAGESIZE
33587#  define getpagesize() sysconf(_SC_PAGESIZE)
33588# else /* no _SC_PAGESIZE */
33589#  if HAVE_SYS_PARAM_H
33590#   include <sys/param.h>
33591#   ifdef EXEC_PAGESIZE
33592#    define getpagesize() EXEC_PAGESIZE
33593#   else /* no EXEC_PAGESIZE */
33594#    ifdef NBPG
33595#     define getpagesize() NBPG * CLSIZE
33596#     ifndef CLSIZE
33597#      define CLSIZE 1
33598#     endif /* no CLSIZE */
33599#    else /* no NBPG */
33600#     ifdef NBPC
33601#      define getpagesize() NBPC
33602#     else /* no NBPC */
33603#      ifdef PAGESIZE
33604#       define getpagesize() PAGESIZE
33605#      endif /* PAGESIZE */
33606#     endif /* no NBPC */
33607#    endif /* no NBPG */
33608#   endif /* no EXEC_PAGESIZE */
33609#  else /* no HAVE_SYS_PARAM_H */
33610#   define getpagesize() 8192	/* punt totally */
33611#  endif /* no HAVE_SYS_PARAM_H */
33612# endif /* no _SC_PAGESIZE */
33613
33614#endif /* no HAVE_GETPAGESIZE */
33615
33616int
33617main ()
33618{
33619  char *data, *data2, *data3;
33620  int i, pagesize;
33621  int fd;
33622
33623  pagesize = getpagesize ();
33624
33625  /* First, make a file with some known garbage in it. */
33626  data = (char *) malloc (pagesize);
33627  if (!data)
33628    return 1;
33629  for (i = 0; i < pagesize; ++i)
33630    *(data + i) = rand ();
33631  umask (0);
33632  fd = creat ("conftest.mmap", 0600);
33633  if (fd < 0)
33634    return 1;
33635  if (write (fd, data, pagesize) != pagesize)
33636    return 1;
33637  close (fd);
33638
33639  /* Next, try to mmap the file at a fixed address which already has
33640     something else allocated at it.  If we can, also make sure that
33641     we see the same garbage.  */
33642  fd = open ("conftest.mmap", O_RDWR);
33643  if (fd < 0)
33644    return 1;
33645  data2 = (char *) malloc (2 * pagesize);
33646  if (!data2)
33647    return 1;
33648  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33649  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33650		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
33651    return 1;
33652  for (i = 0; i < pagesize; ++i)
33653    if (*(data + i) != *(data2 + i))
33654      return 1;
33655
33656  /* Finally, make sure that changes to the mapped area do not
33657     percolate back to the file as seen by read().  (This is a bug on
33658     some variants of i386 svr4.0.)  */
33659  for (i = 0; i < pagesize; ++i)
33660    *(data2 + i) = *(data2 + i) + 1;
33661  data3 = (char *) malloc (pagesize);
33662  if (!data3)
33663    return 1;
33664  if (read (fd, data3, pagesize) != pagesize)
33665    return 1;
33666  for (i = 0; i < pagesize; ++i)
33667    if (*(data + i) != *(data3 + i))
33668      return 1;
33669  close (fd);
33670  return 0;
33671}
33672_ACEOF
33673rm -f conftest$ac_exeext
33674if { (ac_try="$ac_link"
33675case "(($ac_try" in
33676  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33677  *) ac_try_echo=$ac_try;;
33678esac
33679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33680  (eval "$ac_link") 2>&5
33681  ac_status=$?
33682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33683  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33684  { (case "(($ac_try" in
33685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33686  *) ac_try_echo=$ac_try;;
33687esac
33688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33689  (eval "$ac_try") 2>&5
33690  ac_status=$?
33691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33692  (exit $ac_status); }; }; then
33693  ac_cv_func_mmap_fixed_mapped=yes
33694else
33695  echo "$as_me: program exited with status $ac_status" >&5
33696echo "$as_me: failed program was:" >&5
33697sed 's/^/| /' conftest.$ac_ext >&5
33698
33699( exit $ac_status )
33700ac_cv_func_mmap_fixed_mapped=no
33701fi
33702rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33703fi
33704
33705
33706fi
33707{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33708echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33709if test $ac_cv_func_mmap_fixed_mapped = yes; then
33710
33711cat >>confdefs.h <<\_ACEOF
33712#define HAVE_MMAP 1
33713_ACEOF
33714
33715fi
33716rm -f conftest.mmap
33717
33718  { echo "$as_me:$LINENO: checking for mmap of files" >&5
33719echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33720if test "${ac_cv_func_mmap_file+set}" = set; then
33721  echo $ECHO_N "(cached) $ECHO_C" >&6
33722else
33723   ac_ext=c
33724ac_cpp='$CPP $CPPFLAGS'
33725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33727ac_compiler_gnu=$ac_cv_c_compiler_gnu
33728
33729  if test "$cross_compiling" = yes; then
33730  ac_cv_func_mmap_file=no
33731else
33732  cat >conftest.$ac_ext <<_ACEOF
33733
33734    /* confdefs.h.  */
33735_ACEOF
33736cat confdefs.h >>conftest.$ac_ext
33737cat >>conftest.$ac_ext <<_ACEOF
33738/* end confdefs.h.  */
33739
33740#include <sys/types.h>
33741#include <sys/mman.h>
33742#include <fcntl.h>
33743
33744int
33745main ()
33746{
33747
33748  int fd;
33749  fd = creat ("foo",0777);
33750  fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33751  unlink ("foo");
33752  return (fd != (int) MAP_FAILED);
33753  ;
33754  return 0;
33755}
33756_ACEOF
33757rm -f conftest$ac_exeext
33758if { (ac_try="$ac_link"
33759case "(($ac_try" in
33760  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33761  *) ac_try_echo=$ac_try;;
33762esac
33763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33764  (eval "$ac_link") 2>&5
33765  ac_status=$?
33766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33767  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33768  { (case "(($ac_try" in
33769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33770  *) ac_try_echo=$ac_try;;
33771esac
33772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33773  (eval "$ac_try") 2>&5
33774  ac_status=$?
33775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33776  (exit $ac_status); }; }; then
33777  ac_cv_func_mmap_file=yes
33778else
33779  echo "$as_me: program exited with status $ac_status" >&5
33780echo "$as_me: failed program was:" >&5
33781sed 's/^/| /' conftest.$ac_ext >&5
33782
33783( exit $ac_status )
33784ac_cv_func_mmap_file=no
33785fi
33786rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33787fi
33788
33789
33790  ac_ext=c
33791ac_cpp='$CPP $CPPFLAGS'
33792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33794ac_compiler_gnu=$ac_cv_c_compiler_gnu
33795
33796
33797fi
33798{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33799echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33800if test "$ac_cv_func_mmap_file" = yes; then
33801
33802cat >>confdefs.h <<\_ACEOF
33803#define HAVE_MMAP_FILE
33804_ACEOF
33805
33806   MMAP_FILE=yes
33807
33808fi
33809
33810  { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33811echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33812if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33813  echo $ECHO_N "(cached) $ECHO_C" >&6
33814else
33815  if test "$llvm_cv_os_type" = "Interix" ; then
33816   ac_cv_need_dev_zero_for_mmap=yes
33817 else
33818   ac_cv_need_dev_zero_for_mmap=no
33819 fi
33820
33821fi
33822{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33823echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33824if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33825
33826cat >>confdefs.h <<\_ACEOF
33827#define NEED_DEV_ZERO_FOR_MMAP 1
33828_ACEOF
33829
33830fi
33831
33832  if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33833  then
33834    { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33835echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33836  fi
33837  if test "$ac_cv_func_mmap_file" = "no"
33838  then
33839    { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33840echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33841  fi
33842fi
33843
33844
33845
33846for ac_func in __dso_handle
33847do
33848as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33849{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33850echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33851if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33852  echo $ECHO_N "(cached) $ECHO_C" >&6
33853else
33854  cat >conftest.$ac_ext <<_ACEOF
33855/* confdefs.h.  */
33856_ACEOF
33857cat confdefs.h >>conftest.$ac_ext
33858cat >>conftest.$ac_ext <<_ACEOF
33859/* end confdefs.h.  */
33860/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33861   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33862#define $ac_func innocuous_$ac_func
33863
33864/* System header to define __stub macros and hopefully few prototypes,
33865    which can conflict with char $ac_func (); below.
33866    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33867    <limits.h> exists even on freestanding compilers.  */
33868
33869#ifdef __STDC__
33870# include <limits.h>
33871#else
33872# include <assert.h>
33873#endif
33874
33875#undef $ac_func
33876
33877/* Override any GCC internal prototype to avoid an error.
33878   Use char because int might match the return type of a GCC
33879   builtin and then its argument prototype would still apply.  */
33880#ifdef __cplusplus
33881extern "C"
33882#endif
33883char $ac_func ();
33884/* The GNU C library defines this for functions which it implements
33885    to always fail with ENOSYS.  Some functions are actually named
33886    something starting with __ and the normal name is an alias.  */
33887#if defined __stub_$ac_func || defined __stub___$ac_func
33888choke me
33889#endif
33890
33891int
33892main ()
33893{
33894return $ac_func ();
33895  ;
33896  return 0;
33897}
33898_ACEOF
33899rm -f conftest.$ac_objext conftest$ac_exeext
33900if { (ac_try="$ac_link"
33901case "(($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_link") 2>conftest.er1
33907  ac_status=$?
33908  grep -v '^ *+' conftest.er1 >conftest.err
33909  rm -f conftest.er1
33910  cat conftest.err >&5
33911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33912  (exit $ac_status); } &&
33913	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33914  { (case "(($ac_try" in
33915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33916  *) ac_try_echo=$ac_try;;
33917esac
33918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33919  (eval "$ac_try") 2>&5
33920  ac_status=$?
33921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33922  (exit $ac_status); }; } &&
33923	 { ac_try='test -s conftest$ac_exeext'
33924  { (case "(($ac_try" in
33925  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33926  *) ac_try_echo=$ac_try;;
33927esac
33928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33929  (eval "$ac_try") 2>&5
33930  ac_status=$?
33931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33932  (exit $ac_status); }; }; then
33933  eval "$as_ac_var=yes"
33934else
33935  echo "$as_me: failed program was:" >&5
33936sed 's/^/| /' conftest.$ac_ext >&5
33937
33938	eval "$as_ac_var=no"
33939fi
33940
33941rm -f core conftest.err conftest.$ac_objext \
33942      conftest$ac_exeext conftest.$ac_ext
33943fi
33944ac_res=`eval echo '${'$as_ac_var'}'`
33945	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33946echo "${ECHO_T}$ac_res" >&6; }
33947if test `eval echo '${'$as_ac_var'}'` = yes; then
33948  cat >>confdefs.h <<_ACEOF
33949#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33950_ACEOF
33951
33952fi
33953done
33954
33955
33956{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33957echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33958if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33959  echo $ECHO_N "(cached) $ECHO_C" >&6
33960else
33961  llvm_cv_llvmgcc_sanity="no"
33962if test -x "$LLVMGCC" ; then
33963  cp /dev/null conftest.c
33964  "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33965      grep 'target datalayout =' > /dev/null 2>&1
33966  if test $? -eq 0 ; then
33967    llvm_cv_llvmgcc_sanity="yes"
33968  fi
33969  rm conftest.c
33970fi
33971fi
33972{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33973echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33974
33975if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33976  { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33977echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
33978  llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33979  LLVMCC1=$llvmcc1path
33980
33981  llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33982  LLVMCC1PLUS=$llvmcc1pluspath
33983
33984  llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33985  LLVMGCCDIR=$llvmgccdir
33986
33987  llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33988  LLVMGCCLIBEXEC=$llvmgcclibexec
33989
33990  llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33991  llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33992  LLVMGCC_VERSION=$llvmgccversion
33993
33994  LLVMGCC_MAJVERS=$llvmgccmajvers
33995
33996  llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
33997  LLVMGCC_LANGS=$llvmgcclangs
33998
33999  { echo "$as_me:$LINENO: result: ok" >&5
34000echo "${ECHO_T}ok" >&6; }
34001fi
34002
34003SHLIBEXT=$libltdl_cv_shlibext
34004
34005
34006# Translate the various configuration directories and other basic
34007# information into substitutions that will end up in Makefile.config.in
34008# that these configured values can be used by the makefiles
34009if test "${prefix}" = "NONE" ; then
34010  prefix="/usr/local"
34011fi
34012eval LLVM_PREFIX="${prefix}";
34013eval LLVM_BINDIR="${prefix}/bin";
34014eval LLVM_LIBDIR="${prefix}/lib";
34015eval LLVM_DATADIR="${prefix}/share/llvm";
34016eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34017eval LLVM_ETCDIR="${prefix}/etc/llvm";
34018eval LLVM_INCLUDEDIR="${prefix}/include";
34019eval LLVM_INFODIR="${prefix}/info";
34020eval LLVM_MANDIR="${prefix}/man";
34021LLVM_CONFIGTIME=`date`
34022
34023
34024
34025
34026
34027
34028
34029
34030
34031
34032
34033# Place the various directores into the config.h file as #defines so that we
34034# can know about the installation paths within LLVM.
34035
34036cat >>confdefs.h <<_ACEOF
34037#define LLVM_PREFIX "$LLVM_PREFIX"
34038_ACEOF
34039
34040
34041cat >>confdefs.h <<_ACEOF
34042#define LLVM_BINDIR "$LLVM_BINDIR"
34043_ACEOF
34044
34045
34046cat >>confdefs.h <<_ACEOF
34047#define LLVM_LIBDIR "$LLVM_LIBDIR"
34048_ACEOF
34049
34050
34051cat >>confdefs.h <<_ACEOF
34052#define LLVM_DATADIR "$LLVM_DATADIR"
34053_ACEOF
34054
34055
34056cat >>confdefs.h <<_ACEOF
34057#define LLVM_DATADIR "$LLVM_DOCSDIR"
34058_ACEOF
34059
34060
34061cat >>confdefs.h <<_ACEOF
34062#define LLVM_ETCDIR "$LLVM_ETCDIR"
34063_ACEOF
34064
34065
34066cat >>confdefs.h <<_ACEOF
34067#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34068_ACEOF
34069
34070
34071cat >>confdefs.h <<_ACEOF
34072#define LLVM_INFODIR "$LLVM_INFODIR"
34073_ACEOF
34074
34075
34076cat >>confdefs.h <<_ACEOF
34077#define LLVM_MANDIR "$LLVM_MANDIR"
34078_ACEOF
34079
34080
34081cat >>confdefs.h <<_ACEOF
34082#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34083_ACEOF
34084
34085
34086
34087ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34088
34089ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34090
34091ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
34092
34093ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
34094
34095ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
34096
34097
34098ac_config_files="$ac_config_files Makefile.config"
34099
34100
34101ac_config_files="$ac_config_files llvm.spec"
34102
34103
34104ac_config_files="$ac_config_files docs/doxygen.cfg"
34105
34106
34107ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34108
34109
34110ac_config_commands="$ac_config_commands setup"
34111
34112ac_config_commands="$ac_config_commands Makefile"
34113
34114
34115ac_config_commands="$ac_config_commands Makefile.common"
34116
34117
34118ac_config_commands="$ac_config_commands examples/Makefile"
34119
34120
34121ac_config_commands="$ac_config_commands lib/Makefile"
34122
34123
34124ac_config_commands="$ac_config_commands runtime/Makefile"
34125
34126
34127ac_config_commands="$ac_config_commands test/Makefile"
34128
34129
34130ac_config_commands="$ac_config_commands test/Makefile.tests"
34131
34132
34133ac_config_commands="$ac_config_commands tools/Makefile"
34134
34135
34136ac_config_commands="$ac_config_commands utils/Makefile"
34137
34138
34139ac_config_commands="$ac_config_commands projects/Makefile"
34140
34141
34142
34143cat >confcache <<\_ACEOF
34144# This file is a shell script that caches the results of configure
34145# tests run on this system so they can be shared between configure
34146# scripts and configure runs, see configure's option --config-cache.
34147# It is not useful on other systems.  If it contains results you don't
34148# want to keep, you may remove or edit it.
34149#
34150# config.status only pays attention to the cache file if you give it
34151# the --recheck option to rerun configure.
34152#
34153# `ac_cv_env_foo' variables (set or unset) will be overridden when
34154# loading this file, other *unset* `ac_cv_foo' will be assigned the
34155# following values.
34156
34157_ACEOF
34158
34159# The following way of writing the cache mishandles newlines in values,
34160# but we know of no workaround that is simple, portable, and efficient.
34161# So, we kill variables containing newlines.
34162# Ultrix sh set writes to stderr and can't be redirected directly,
34163# and sets the high bit in the cache file unless we assign to the vars.
34164(
34165  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34166    eval ac_val=\$$ac_var
34167    case $ac_val in #(
34168    *${as_nl}*)
34169      case $ac_var in #(
34170      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34171echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34172      esac
34173      case $ac_var in #(
34174      _ | IFS | as_nl) ;; #(
34175      *) $as_unset $ac_var ;;
34176      esac ;;
34177    esac
34178  done
34179
34180  (set) 2>&1 |
34181    case $as_nl`(ac_space=' '; set) 2>&1` in #(
34182    *${as_nl}ac_space=\ *)
34183      # `set' does not quote correctly, so add quotes (double-quote
34184      # substitution turns \\\\ into \\, and sed turns \\ into \).
34185      sed -n \
34186	"s/'/'\\\\''/g;
34187	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34188      ;; #(
34189    *)
34190      # `set' quotes correctly as required by POSIX, so do not add quotes.
34191      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34192      ;;
34193    esac |
34194    sort
34195) |
34196  sed '
34197     /^ac_cv_env_/b end
34198     t clear
34199     :clear
34200     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34201     t end
34202     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34203     :end' >>confcache
34204if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34205  if test -w "$cache_file"; then
34206    test "x$cache_file" != "x/dev/null" &&
34207      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34208echo "$as_me: updating cache $cache_file" >&6;}
34209    cat confcache >$cache_file
34210  else
34211    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34212echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34213  fi
34214fi
34215rm -f confcache
34216
34217test "x$prefix" = xNONE && prefix=$ac_default_prefix
34218# Let make expand exec_prefix.
34219test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34220
34221DEFS=-DHAVE_CONFIG_H
34222
34223ac_libobjs=
34224ac_ltlibobjs=
34225for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34226  # 1. Remove the extension, and $U if already installed.
34227  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34228  ac_i=`echo "$ac_i" | sed "$ac_script"`
34229  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34230  #    will be set to the directory where LIBOBJS objects are built.
34231  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34232  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34233done
34234LIBOBJS=$ac_libobjs
34235
34236LTLIBOBJS=$ac_ltlibobjs
34237
34238
34239if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34240  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34241Usually this means the macro was only invoked conditionally." >&5
34242echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34243Usually this means the macro was only invoked conditionally." >&2;}
34244   { (exit 1); exit 1; }; }
34245fi
34246if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34247  { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34248Usually this means the macro was only invoked conditionally." >&5
34249echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34250Usually this means the macro was only invoked conditionally." >&2;}
34251   { (exit 1); exit 1; }; }
34252fi
34253
34254: ${CONFIG_STATUS=./config.status}
34255ac_clean_files_save=$ac_clean_files
34256ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34257{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34258echo "$as_me: creating $CONFIG_STATUS" >&6;}
34259cat >$CONFIG_STATUS <<_ACEOF
34260#! $SHELL
34261# Generated by $as_me.
34262# Run this file to recreate the current configuration.
34263# Compiler output produced by configure, useful for debugging
34264# configure, is in config.log if it exists.
34265
34266debug=false
34267ac_cs_recheck=false
34268ac_cs_silent=false
34269SHELL=\${CONFIG_SHELL-$SHELL}
34270_ACEOF
34271
34272cat >>$CONFIG_STATUS <<\_ACEOF
34273## --------------------- ##
34274## M4sh Initialization.  ##
34275## --------------------- ##
34276
34277# Be Bourne compatible
34278if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34279  emulate sh
34280  NULLCMD=:
34281  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34282  # is contrary to our usage.  Disable this feature.
34283  alias -g '${1+"$@"}'='"$@"'
34284  setopt NO_GLOB_SUBST
34285else
34286  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34287fi
34288BIN_SH=xpg4; export BIN_SH # for Tru64
34289DUALCASE=1; export DUALCASE # for MKS sh
34290
34291
34292# PATH needs CR
34293# Avoid depending upon Character Ranges.
34294as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34295as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34296as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34297as_cr_digits='0123456789'
34298as_cr_alnum=$as_cr_Letters$as_cr_digits
34299
34300# The user is always right.
34301if test "${PATH_SEPARATOR+set}" != set; then
34302  echo "#! /bin/sh" >conf$$.sh
34303  echo  "exit 0"   >>conf$$.sh
34304  chmod +x conf$$.sh
34305  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34306    PATH_SEPARATOR=';'
34307  else
34308    PATH_SEPARATOR=:
34309  fi
34310  rm -f conf$$.sh
34311fi
34312
34313# Support unset when possible.
34314if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34315  as_unset=unset
34316else
34317  as_unset=false
34318fi
34319
34320
34321# IFS
34322# We need space, tab and new line, in precisely that order.  Quoting is
34323# there to prevent editors from complaining about space-tab.
34324# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34325# splitting by setting IFS to empty value.)
34326as_nl='
34327'
34328IFS=" ""	$as_nl"
34329
34330# Find who we are.  Look in the path if we contain no directory separator.
34331case $0 in
34332  *[\\/]* ) as_myself=$0 ;;
34333  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34334for as_dir in $PATH
34335do
34336  IFS=$as_save_IFS
34337  test -z "$as_dir" && as_dir=.
34338  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34339done
34340IFS=$as_save_IFS
34341
34342     ;;
34343esac
34344# We did not find ourselves, most probably we were run as `sh COMMAND'
34345# in which case we are not to be found in the path.
34346if test "x$as_myself" = x; then
34347  as_myself=$0
34348fi
34349if test ! -f "$as_myself"; then
34350  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34351  { (exit 1); exit 1; }
34352fi
34353
34354# Work around bugs in pre-3.0 UWIN ksh.
34355for as_var in ENV MAIL MAILPATH
34356do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34357done
34358PS1='$ '
34359PS2='> '
34360PS4='+ '
34361
34362# NLS nuisances.
34363for as_var in \
34364  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34365  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34366  LC_TELEPHONE LC_TIME
34367do
34368  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34369    eval $as_var=C; export $as_var
34370  else
34371    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34372  fi
34373done
34374
34375# Required to use basename.
34376if expr a : '\(a\)' >/dev/null 2>&1 &&
34377   test "X`expr 00001 : '.*\(...\)'`" = X001; then
34378  as_expr=expr
34379else
34380  as_expr=false
34381fi
34382
34383if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34384  as_basename=basename
34385else
34386  as_basename=false
34387fi
34388
34389
34390# Name of the executable.
34391as_me=`$as_basename -- "$0" ||
34392$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34393	 X"$0" : 'X\(//\)$' \| \
34394	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34395echo X/"$0" |
34396    sed '/^.*\/\([^/][^/]*\)\/*$/{
34397	    s//\1/
34398	    q
34399	  }
34400	  /^X\/\(\/\/\)$/{
34401	    s//\1/
34402	    q
34403	  }
34404	  /^X\/\(\/\).*/{
34405	    s//\1/
34406	    q
34407	  }
34408	  s/.*/./; q'`
34409
34410# CDPATH.
34411$as_unset CDPATH
34412
34413
34414
34415  as_lineno_1=$LINENO
34416  as_lineno_2=$LINENO
34417  test "x$as_lineno_1" != "x$as_lineno_2" &&
34418  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34419
34420  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34421  # uniformly replaced by the line number.  The first 'sed' inserts a
34422  # line-number line after each line using $LINENO; the second 'sed'
34423  # does the real work.  The second script uses 'N' to pair each
34424  # line-number line with the line containing $LINENO, and appends
34425  # trailing '-' during substitution so that $LINENO is not a special
34426  # case at line end.
34427  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34428  # scripts with optimization help from Paolo Bonzini.  Blame Lee
34429  # E. McMahon (1931-1989) for sed's syntax.  :-)
34430  sed -n '
34431    p
34432    /[$]LINENO/=
34433  ' <$as_myself |
34434    sed '
34435      s/[$]LINENO.*/&-/
34436      t lineno
34437      b
34438      :lineno
34439      N
34440      :loop
34441      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34442      t loop
34443      s/-\n.*//
34444    ' >$as_me.lineno &&
34445  chmod +x "$as_me.lineno" ||
34446    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34447   { (exit 1); exit 1; }; }
34448
34449  # Don't try to exec as it changes $[0], causing all sort of problems
34450  # (the dirname of $[0] is not the place where we might find the
34451  # original and so on.  Autoconf is especially sensitive to this).
34452  . "./$as_me.lineno"
34453  # Exit status is that of the last command.
34454  exit
34455}
34456
34457
34458if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34459  as_dirname=dirname
34460else
34461  as_dirname=false
34462fi
34463
34464ECHO_C= ECHO_N= ECHO_T=
34465case `echo -n x` in
34466-n*)
34467  case `echo 'x\c'` in
34468  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
34469  *)   ECHO_C='\c';;
34470  esac;;
34471*)
34472  ECHO_N='-n';;
34473esac
34474
34475if expr a : '\(a\)' >/dev/null 2>&1 &&
34476   test "X`expr 00001 : '.*\(...\)'`" = X001; then
34477  as_expr=expr
34478else
34479  as_expr=false
34480fi
34481
34482rm -f conf$$ conf$$.exe conf$$.file
34483if test -d conf$$.dir; then
34484  rm -f conf$$.dir/conf$$.file
34485else
34486  rm -f conf$$.dir
34487  mkdir conf$$.dir
34488fi
34489echo >conf$$.file
34490if ln -s conf$$.file conf$$ 2>/dev/null; then
34491  as_ln_s='ln -s'
34492  # ... but there are two gotchas:
34493  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34494  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34495  # In both cases, we have to default to `cp -p'.
34496  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34497    as_ln_s='cp -p'
34498elif ln conf$$.file conf$$ 2>/dev/null; then
34499  as_ln_s=ln
34500else
34501  as_ln_s='cp -p'
34502fi
34503rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34504rmdir conf$$.dir 2>/dev/null
34505
34506if mkdir -p . 2>/dev/null; then
34507  as_mkdir_p=:
34508else
34509  test -d ./-p && rmdir ./-p
34510  as_mkdir_p=false
34511fi
34512
34513# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
34514# systems may use methods other than mode bits to determine executability.
34515cat >conf$$.file <<_ASEOF
34516#! /bin/sh
34517exit 0
34518_ASEOF
34519chmod +x conf$$.file
34520if test -x conf$$.file >/dev/null 2>&1; then
34521  as_executable_p="test -x"
34522else
34523  as_executable_p=:
34524fi
34525rm -f conf$$.file
34526
34527# Sed expression to map a string onto a valid CPP name.
34528as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34529
34530# Sed expression to map a string onto a valid variable name.
34531as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34532
34533
34534exec 6>&1
34535
34536# Save the log message, to keep $[0] and so on meaningful, and to
34537# report actual input values of CONFIG_FILES etc. instead of their
34538# values after options handling.
34539ac_log="
34540This file was extended by llvm $as_me 2.2svn, which was
34541generated by GNU Autoconf 2.60.  Invocation command line was
34542
34543  CONFIG_FILES    = $CONFIG_FILES
34544  CONFIG_HEADERS  = $CONFIG_HEADERS
34545  CONFIG_LINKS    = $CONFIG_LINKS
34546  CONFIG_COMMANDS = $CONFIG_COMMANDS
34547  $ $0 $@
34548
34549on `(hostname || uname -n) 2>/dev/null | sed 1q`
34550"
34551
34552_ACEOF
34553
34554cat >>$CONFIG_STATUS <<_ACEOF
34555# Files that config.status was made for.
34556config_files="$ac_config_files"
34557config_headers="$ac_config_headers"
34558config_commands="$ac_config_commands"
34559
34560_ACEOF
34561
34562cat >>$CONFIG_STATUS <<\_ACEOF
34563ac_cs_usage="\
34564\`$as_me' instantiates files from templates according to the
34565current configuration.
34566
34567Usage: $0 [OPTIONS] [FILE]...
34568
34569  -h, --help       print this help, then exit
34570  -V, --version    print version number, then exit
34571  -q, --quiet      do not print progress messages
34572  -d, --debug      don't remove temporary files
34573      --recheck    update $as_me by reconfiguring in the same conditions
34574  --file=FILE[:TEMPLATE]
34575		   instantiate the configuration file FILE
34576  --header=FILE[:TEMPLATE]
34577		   instantiate the configuration header FILE
34578
34579Configuration files:
34580$config_files
34581
34582Configuration headers:
34583$config_headers
34584
34585Configuration commands:
34586$config_commands
34587
34588Report bugs to <bug-autoconf@gnu.org>."
34589
34590_ACEOF
34591cat >>$CONFIG_STATUS <<_ACEOF
34592ac_cs_version="\\
34593llvm config.status 2.2svn
34594configured by $0, generated by GNU Autoconf 2.60,
34595  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34596
34597Copyright (C) 2006 Free Software Foundation, Inc.
34598This config.status script is free software; the Free Software Foundation
34599gives unlimited permission to copy, distribute and modify it."
34600
34601ac_pwd='$ac_pwd'
34602srcdir='$srcdir'
34603INSTALL='$INSTALL'
34604_ACEOF
34605
34606cat >>$CONFIG_STATUS <<\_ACEOF
34607# If no file are specified by the user, then we need to provide default
34608# value.  By we need to know if files were specified by the user.
34609ac_need_defaults=:
34610while test $# != 0
34611do
34612  case $1 in
34613  --*=*)
34614    ac_option=`expr "X$1" : 'X\([^=]*\)='`
34615    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34616    ac_shift=:
34617    ;;
34618  *)
34619    ac_option=$1
34620    ac_optarg=$2
34621    ac_shift=shift
34622    ;;
34623  esac
34624
34625  case $ac_option in
34626  # Handling of the options.
34627  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34628    ac_cs_recheck=: ;;
34629  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34630    echo "$ac_cs_version"; exit ;;
34631  --debug | --debu | --deb | --de | --d | -d )
34632    debug=: ;;
34633  --file | --fil | --fi | --f )
34634    $ac_shift
34635    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34636    ac_need_defaults=false;;
34637  --header | --heade | --head | --hea )
34638    $ac_shift
34639    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34640    ac_need_defaults=false;;
34641  --he | --h)
34642    # Conflict between --help and --header
34643    { echo "$as_me: error: ambiguous option: $1
34644Try \`$0 --help' for more information." >&2
34645   { (exit 1); exit 1; }; };;
34646  --help | --hel | -h )
34647    echo "$ac_cs_usage"; exit ;;
34648  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34649  | -silent | --silent | --silen | --sile | --sil | --si | --s)
34650    ac_cs_silent=: ;;
34651
34652  # This is an error.
34653  -*) { echo "$as_me: error: unrecognized option: $1
34654Try \`$0 --help' for more information." >&2
34655   { (exit 1); exit 1; }; } ;;
34656
34657  *) ac_config_targets="$ac_config_targets $1"
34658     ac_need_defaults=false ;;
34659
34660  esac
34661  shift
34662done
34663
34664ac_configure_extra_args=
34665
34666if $ac_cs_silent; then
34667  exec 6>/dev/null
34668  ac_configure_extra_args="$ac_configure_extra_args --silent"
34669fi
34670
34671_ACEOF
34672cat >>$CONFIG_STATUS <<_ACEOF
34673if \$ac_cs_recheck; then
34674  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34675  CONFIG_SHELL=$SHELL
34676  export CONFIG_SHELL
34677  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34678fi
34679
34680_ACEOF
34681cat >>$CONFIG_STATUS <<\_ACEOF
34682exec 5>>config.log
34683{
34684  echo
34685  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34686## Running $as_me. ##
34687_ASBOX
34688  echo "$ac_log"
34689} >&5
34690
34691_ACEOF
34692cat >>$CONFIG_STATUS <<_ACEOF
34693#
34694# INIT-COMMANDS
34695#
34696llvm_src="${srcdir}"
34697
34698_ACEOF
34699
34700cat >>$CONFIG_STATUS <<\_ACEOF
34701
34702# Handling of arguments.
34703for ac_config_target in $ac_config_targets
34704do
34705  case $ac_config_target in
34706    "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34707    "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34708    "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34709    "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34710    "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34711    "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34712    "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34713    "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34714    "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34715    "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34716    "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34717    "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34718    "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34719    "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34720    "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34721    "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34722    "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34723    "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34724    "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34725    "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34726
34727  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34728echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34729   { (exit 1); exit 1; }; };;
34730  esac
34731done
34732
34733
34734# If the user did not use the arguments to specify the items to instantiate,
34735# then the envvar interface is used.  Set only those that are not.
34736# We use the long form for the default assignment because of an extremely
34737# bizarre bug on SunOS 4.1.3.
34738if $ac_need_defaults; then
34739  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34740  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34741  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34742fi
34743
34744# Have a temporary directory for convenience.  Make it in the build tree
34745# simply because there is no reason against having it here, and in addition,
34746# creating and moving files from /tmp can sometimes cause problems.
34747# Hook for its removal unless debugging.
34748# Note that there is a small window in which the directory will not be cleaned:
34749# after its creation but before its name has been assigned to `$tmp'.
34750$debug ||
34751{
34752  tmp=
34753  trap 'exit_status=$?
34754  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34755' 0
34756  trap '{ (exit 1); exit 1; }' 1 2 13 15
34757}
34758# Create a (secure) tmp directory for tmp files.
34759
34760{
34761  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34762  test -n "$tmp" && test -d "$tmp"
34763}  ||
34764{
34765  tmp=./conf$$-$RANDOM
34766  (umask 077 && mkdir "$tmp")
34767} ||
34768{
34769   echo "$me: cannot create a temporary directory in ." >&2
34770   { (exit 1); exit 1; }
34771}
34772
34773#
34774# Set up the sed scripts for CONFIG_FILES section.
34775#
34776
34777# No need to generate the scripts if there are no CONFIG_FILES.
34778# This happens for instance when ./config.status config.h
34779if test -n "$CONFIG_FILES"; then
34780
34781_ACEOF
34782
34783
34784
34785ac_delim='%!_!# '
34786for ac_last_try in false false false false false :; do
34787  cat >conf$$subs.sed <<_ACEOF
34788SHELL!$SHELL$ac_delim
34789PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34790PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34791PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34792PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34793PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34794PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34795exec_prefix!$exec_prefix$ac_delim
34796prefix!$prefix$ac_delim
34797program_transform_name!$program_transform_name$ac_delim
34798bindir!$bindir$ac_delim
34799sbindir!$sbindir$ac_delim
34800libexecdir!$libexecdir$ac_delim
34801datarootdir!$datarootdir$ac_delim
34802datadir!$datadir$ac_delim
34803sysconfdir!$sysconfdir$ac_delim
34804sharedstatedir!$sharedstatedir$ac_delim
34805localstatedir!$localstatedir$ac_delim
34806includedir!$includedir$ac_delim
34807oldincludedir!$oldincludedir$ac_delim
34808docdir!$docdir$ac_delim
34809infodir!$infodir$ac_delim
34810htmldir!$htmldir$ac_delim
34811dvidir!$dvidir$ac_delim
34812pdfdir!$pdfdir$ac_delim
34813psdir!$psdir$ac_delim
34814libdir!$libdir$ac_delim
34815localedir!$localedir$ac_delim
34816mandir!$mandir$ac_delim
34817DEFS!$DEFS$ac_delim
34818ECHO_C!$ECHO_C$ac_delim
34819ECHO_N!$ECHO_N$ac_delim
34820ECHO_T!$ECHO_T$ac_delim
34821LIBS!$LIBS$ac_delim
34822build_alias!$build_alias$ac_delim
34823host_alias!$host_alias$ac_delim
34824target_alias!$target_alias$ac_delim
34825LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34826subdirs!$subdirs$ac_delim
34827build!$build$ac_delim
34828build_cpu!$build_cpu$ac_delim
34829build_vendor!$build_vendor$ac_delim
34830build_os!$build_os$ac_delim
34831host!$host$ac_delim
34832host_cpu!$host_cpu$ac_delim
34833host_vendor!$host_vendor$ac_delim
34834host_os!$host_os$ac_delim
34835target!$target$ac_delim
34836target_cpu!$target_cpu$ac_delim
34837target_vendor!$target_vendor$ac_delim
34838target_os!$target_os$ac_delim
34839OS!$OS$ac_delim
34840LINKALL!$LINKALL$ac_delim
34841NOLINKALL!$NOLINKALL$ac_delim
34842LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34843LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34844ARCH!$ARCH$ac_delim
34845ENDIAN!$ENDIAN$ac_delim
34846CC!$CC$ac_delim
34847CFLAGS!$CFLAGS$ac_delim
34848LDFLAGS!$LDFLAGS$ac_delim
34849CPPFLAGS!$CPPFLAGS$ac_delim
34850ac_ct_CC!$ac_ct_CC$ac_delim
34851EXEEXT!$EXEEXT$ac_delim
34852OBJEXT!$OBJEXT$ac_delim
34853CPP!$CPP$ac_delim
34854GREP!$GREP$ac_delim
34855EGREP!$EGREP$ac_delim
34856LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34857BUILD_CC!$BUILD_CC$ac_delim
34858BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34859CVSBUILD!$CVSBUILD$ac_delim
34860ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34861DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34862ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34863EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
34864DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34865JIT!$JIT$ac_delim
34866TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34867ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34868ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34869ENABLE_PIC!$ENABLE_PIC$ac_delim
34870TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34871ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34872EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34873CXX!$CXX$ac_delim
34874CXXFLAGS!$CXXFLAGS$ac_delim
34875ac_ct_CXX!$ac_ct_CXX$ac_delim
34876LEX!$LEX$ac_delim
34877LEXLIB!$LEXLIB$ac_delim
34878LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34879FLEX!$FLEX$ac_delim
34880YACC!$YACC$ac_delim
34881YFLAGS!$YFLAGS$ac_delim
34882BISON!$BISON$ac_delim
34883NM!$NM$ac_delim
34884ifGNUmake!$ifGNUmake$ac_delim
34885_ACEOF
34886
34887  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34888    break
34889  elif $ac_last_try; then
34890    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34891echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34892   { (exit 1); exit 1; }; }
34893  else
34894    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34895  fi
34896done
34897
34898ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34899if test -n "$ac_eof"; then
34900  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34901  ac_eof=`expr $ac_eof + 1`
34902fi
34903
34904cat >>$CONFIG_STATUS <<_ACEOF
34905cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34906/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34907_ACEOF
34908sed '
34909s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34910s/^/s,@/; s/!/@,|#_!!_#|/
34911:n
34912t n
34913s/'"$ac_delim"'$/,g/; t
34914s/$/\\/; p
34915N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34916' >>$CONFIG_STATUS <conf$$subs.sed
34917rm -f conf$$subs.sed
34918cat >>$CONFIG_STATUS <<_ACEOF
34919CEOF$ac_eof
34920_ACEOF
34921
34922
34923ac_delim='%!_!# '
34924for ac_last_try in false false false false false :; do
34925  cat >conf$$subs.sed <<_ACEOF
34926LN_S!$LN_S$ac_delim
34927CMP!$CMP$ac_delim
34928CP!$CP$ac_delim
34929DATE!$DATE$ac_delim
34930FIND!$FIND$ac_delim
34931MKDIR!$MKDIR$ac_delim
34932MV!$MV$ac_delim
34933RANLIB!$RANLIB$ac_delim
34934RM!$RM$ac_delim
34935SED!$SED$ac_delim
34936TAR!$TAR$ac_delim
34937BINPWD!$BINPWD$ac_delim
34938GRAPHVIZ!$GRAPHVIZ$ac_delim
34939DOT!$DOT$ac_delim
34940GV!$GV$ac_delim
34941DOTTY!$DOTTY$ac_delim
34942PERL!$PERL$ac_delim
34943HAVE_PERL!$HAVE_PERL$ac_delim
34944INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34945INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34946INSTALL_DATA!$INSTALL_DATA$ac_delim
34947BZIP2!$BZIP2$ac_delim
34948DOXYGEN!$DOXYGEN$ac_delim
34949GROFF!$GROFF$ac_delim
34950GZIP!$GZIP$ac_delim
34951POD2HTML!$POD2HTML$ac_delim
34952POD2MAN!$POD2MAN$ac_delim
34953RUNTEST!$RUNTEST$ac_delim
34954TCLSH!$TCLSH$ac_delim
34955ZIP!$ZIP$ac_delim
34956OCAMLC!$OCAMLC$ac_delim
34957OCAMLOPT!$OCAMLOPT$ac_delim
34958INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34959INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34960CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34961CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34962LIBADD_DL!$LIBADD_DL$ac_delim
34963ECHO!$ECHO$ac_delim
34964AR!$AR$ac_delim
34965STRIP!$STRIP$ac_delim
34966CXXCPP!$CXXCPP$ac_delim
34967F77!$F77$ac_delim
34968FFLAGS!$FFLAGS$ac_delim
34969ac_ct_F77!$ac_ct_F77$ac_delim
34970LIBTOOL!$LIBTOOL$ac_delim
34971ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34972LLVMGCC!$LLVMGCC$ac_delim
34973LLVMGXX!$LLVMGXX$ac_delim
34974USE_UDIS86!$USE_UDIS86$ac_delim
34975HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
34976HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
34977ALLOCA!$ALLOCA$ac_delim
34978MMAP_FILE!$MMAP_FILE$ac_delim
34979LLVMCC1!$LLVMCC1$ac_delim
34980LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34981LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34982LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
34983LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34984LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34985LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
34986SHLIBEXT!$SHLIBEXT$ac_delim
34987LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34988LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34989LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34990LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34991LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34992LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34993LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34994LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34995LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34996LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34997LIBOBJS!$LIBOBJS$ac_delim
34998LTLIBOBJS!$LTLIBOBJS$ac_delim
34999_ACEOF
35000
35001  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then
35002    break
35003  elif $ac_last_try; then
35004    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35005echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35006   { (exit 1); exit 1; }; }
35007  else
35008    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35009  fi
35010done
35011
35012ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35013if test -n "$ac_eof"; then
35014  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35015  ac_eof=`expr $ac_eof + 1`
35016fi
35017
35018cat >>$CONFIG_STATUS <<_ACEOF
35019cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35020/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35021_ACEOF
35022sed '
35023s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35024s/^/s,@/; s/!/@,|#_!!_#|/
35025:n
35026t n
35027s/'"$ac_delim"'$/,g/; t
35028s/$/\\/; p
35029N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35030' >>$CONFIG_STATUS <conf$$subs.sed
35031rm -f conf$$subs.sed
35032cat >>$CONFIG_STATUS <<_ACEOF
35033:end
35034s/|#_!!_#|//g
35035CEOF$ac_eof
35036_ACEOF
35037
35038
35039# VPATH may cause trouble with some makes, so we remove $(srcdir),
35040# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35041# trailing colons and then remove the whole line if VPATH becomes empty
35042# (actually we leave an empty line to preserve line numbers).
35043if test "x$srcdir" = x.; then
35044  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
35045s/:*\$(srcdir):*/:/
35046s/:*\${srcdir}:*/:/
35047s/:*@srcdir@:*/:/
35048s/^\([^=]*=[	 ]*\):*/\1/
35049s/:*$//
35050s/^[^=]*=[	 ]*$//
35051}'
35052fi
35053
35054cat >>$CONFIG_STATUS <<\_ACEOF
35055fi # test -n "$CONFIG_FILES"
35056
35057
35058for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
35059do
35060  case $ac_tag in
35061  :[FHLC]) ac_mode=$ac_tag; continue;;
35062  esac
35063  case $ac_mode$ac_tag in
35064  :[FHL]*:*);;
35065  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35066echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35067   { (exit 1); exit 1; }; };;
35068  :[FH]-) ac_tag=-:-;;
35069  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35070  esac
35071  ac_save_IFS=$IFS
35072  IFS=:
35073  set x $ac_tag
35074  IFS=$ac_save_IFS
35075  shift
35076  ac_file=$1
35077  shift
35078
35079  case $ac_mode in
35080  :L) ac_source=$1;;
35081  :[FH])
35082    ac_file_inputs=
35083    for ac_f
35084    do
35085      case $ac_f in
35086      -) ac_f="$tmp/stdin";;
35087      *) # Look for the file first in the build tree, then in the source tree
35088	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
35089	 # because $ac_f cannot contain `:'.
35090	 test -f "$ac_f" ||
35091	   case $ac_f in
35092	   [\\/$]*) false;;
35093	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35094	   esac ||
35095	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35096echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35097   { (exit 1); exit 1; }; };;
35098      esac
35099      ac_file_inputs="$ac_file_inputs $ac_f"
35100    done
35101
35102    # Let's still pretend it is `configure' which instantiates (i.e., don't
35103    # use $as_me), people would be surprised to read:
35104    #    /* config.h.  Generated by config.status.  */
35105    configure_input="Generated from "`IFS=:
35106	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35107    if test x"$ac_file" != x-; then
35108      configure_input="$ac_file.  $configure_input"
35109      { echo "$as_me:$LINENO: creating $ac_file" >&5
35110echo "$as_me: creating $ac_file" >&6;}
35111    fi
35112
35113    case $ac_tag in
35114    *:-:* | *:-) cat >"$tmp/stdin";;
35115    esac
35116    ;;
35117  esac
35118
35119  ac_dir=`$as_dirname -- "$ac_file" ||
35120$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35121	 X"$ac_file" : 'X\(//\)[^/]' \| \
35122	 X"$ac_file" : 'X\(//\)$' \| \
35123	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35124echo X"$ac_file" |
35125    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35126	    s//\1/
35127	    q
35128	  }
35129	  /^X\(\/\/\)[^/].*/{
35130	    s//\1/
35131	    q
35132	  }
35133	  /^X\(\/\/\)$/{
35134	    s//\1/
35135	    q
35136	  }
35137	  /^X\(\/\).*/{
35138	    s//\1/
35139	    q
35140	  }
35141	  s/.*/./; q'`
35142  { as_dir="$ac_dir"
35143  case $as_dir in #(
35144  -*) as_dir=./$as_dir;;
35145  esac
35146  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35147    as_dirs=
35148    while :; do
35149      case $as_dir in #(
35150      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35151      *) as_qdir=$as_dir;;
35152      esac
35153      as_dirs="'$as_qdir' $as_dirs"
35154      as_dir=`$as_dirname -- "$as_dir" ||
35155$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35156	 X"$as_dir" : 'X\(//\)[^/]' \| \
35157	 X"$as_dir" : 'X\(//\)$' \| \
35158	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35159echo X"$as_dir" |
35160    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35161	    s//\1/
35162	    q
35163	  }
35164	  /^X\(\/\/\)[^/].*/{
35165	    s//\1/
35166	    q
35167	  }
35168	  /^X\(\/\/\)$/{
35169	    s//\1/
35170	    q
35171	  }
35172	  /^X\(\/\).*/{
35173	    s//\1/
35174	    q
35175	  }
35176	  s/.*/./; q'`
35177      test -d "$as_dir" && break
35178    done
35179    test -z "$as_dirs" || eval "mkdir $as_dirs"
35180  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35181echo "$as_me: error: cannot create directory $as_dir" >&2;}
35182   { (exit 1); exit 1; }; }; }
35183  ac_builddir=.
35184
35185case "$ac_dir" in
35186.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35187*)
35188  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35189  # A ".." for each directory in $ac_dir_suffix.
35190  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35191  case $ac_top_builddir_sub in
35192  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35193  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35194  esac ;;
35195esac
35196ac_abs_top_builddir=$ac_pwd
35197ac_abs_builddir=$ac_pwd$ac_dir_suffix
35198# for backward compatibility:
35199ac_top_builddir=$ac_top_build_prefix
35200
35201case $srcdir in
35202  .)  # We are building in place.
35203    ac_srcdir=.
35204    ac_top_srcdir=$ac_top_builddir_sub
35205    ac_abs_top_srcdir=$ac_pwd ;;
35206  [\\/]* | ?:[\\/]* )  # Absolute name.
35207    ac_srcdir=$srcdir$ac_dir_suffix;
35208    ac_top_srcdir=$srcdir
35209    ac_abs_top_srcdir=$srcdir ;;
35210  *) # Relative name.
35211    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35212    ac_top_srcdir=$ac_top_build_prefix$srcdir
35213    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35214esac
35215ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35216
35217
35218  case $ac_mode in
35219  :F)
35220  #
35221  # CONFIG_FILE
35222  #
35223
35224  case $INSTALL in
35225  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35226  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35227  esac
35228_ACEOF
35229
35230cat >>$CONFIG_STATUS <<\_ACEOF
35231# If the template does not know about datarootdir, expand it.
35232# FIXME: This hack should be removed a few years after 2.60.
35233ac_datarootdir_hack=; ac_datarootdir_seen=
35234
35235case `sed -n '/datarootdir/ {
35236  p
35237  q
35238}
35239/@datadir@/p
35240/@docdir@/p
35241/@infodir@/p
35242/@localedir@/p
35243/@mandir@/p
35244' $ac_file_inputs` in
35245*datarootdir*) ac_datarootdir_seen=yes;;
35246*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35247  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35248echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35249_ACEOF
35250cat >>$CONFIG_STATUS <<_ACEOF
35251  ac_datarootdir_hack='
35252  s&@datadir@&$datadir&g
35253  s&@docdir@&$docdir&g
35254  s&@infodir@&$infodir&g
35255  s&@localedir@&$localedir&g
35256  s&@mandir@&$mandir&g
35257    s&\\\${datarootdir}&$datarootdir&g' ;;
35258esac
35259_ACEOF
35260
35261# Neutralize VPATH when `$srcdir' = `.'.
35262# Shell code in configure.ac might set extrasub.
35263# FIXME: do we really want to maintain this feature?
35264cat >>$CONFIG_STATUS <<_ACEOF
35265  sed "$ac_vpsub
35266$extrasub
35267_ACEOF
35268cat >>$CONFIG_STATUS <<\_ACEOF
35269:t
35270/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35271s&@configure_input@&$configure_input&;t t
35272s&@top_builddir@&$ac_top_builddir_sub&;t t
35273s&@srcdir@&$ac_srcdir&;t t
35274s&@abs_srcdir@&$ac_abs_srcdir&;t t
35275s&@top_srcdir@&$ac_top_srcdir&;t t
35276s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35277s&@builddir@&$ac_builddir&;t t
35278s&@abs_builddir@&$ac_abs_builddir&;t t
35279s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35280s&@INSTALL@&$ac_INSTALL&;t t
35281$ac_datarootdir_hack
35282" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35283
35284test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35285  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35286  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35287  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35288which seems to be undefined.  Please make sure it is defined." >&5
35289echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35290which seems to be undefined.  Please make sure it is defined." >&2;}
35291
35292  rm -f "$tmp/stdin"
35293  case $ac_file in
35294  -) cat "$tmp/out"; rm -f "$tmp/out";;
35295  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35296  esac
35297 ;;
35298  :H)
35299  #
35300  # CONFIG_HEADER
35301  #
35302_ACEOF
35303
35304# Transform confdefs.h into a sed script `conftest.defines', that
35305# substitutes the proper values into config.h.in to produce config.h.
35306rm -f conftest.defines conftest.tail
35307# First, append a space to every undef/define line, to ease matching.
35308echo 's/$/ /' >conftest.defines
35309# Then, protect against being on the right side of a sed subst, or in
35310# an unquoted here document, in config.status.  If some macros were
35311# called several times there might be several #defines for the same
35312# symbol, which is useless.  But do not sort them, since the last
35313# AC_DEFINE must be honored.
35314ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35315# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35316# NAME is the cpp macro being defined, VALUE is the value it is being given.
35317# PARAMS is the parameter list in the macro definition--in most cases, it's
35318# just an empty string.
35319ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
35320ac_dB='\\)[	 (].*,\\1define\\2'
35321ac_dC=' '
35322ac_dD=' ,'
35323
35324uniq confdefs.h |
35325  sed -n '
35326	t rset
35327	:rset
35328	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
35329	t ok
35330	d
35331	:ok
35332	s/[\\&,]/\\&/g
35333	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35334	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35335  ' >>conftest.defines
35336
35337# Remove the space that was appended to ease matching.
35338# Then replace #undef with comments.  This is necessary, for
35339# example, in the case of _POSIX_SOURCE, which is predefined and required
35340# on some systems where configure will not decide to define it.
35341# (The regexp can be short, since the line contains either #define or #undef.)
35342echo 's/ $//
35343s,^[	 #]*u.*,/* & */,' >>conftest.defines
35344
35345# Break up conftest.defines:
35346ac_max_sed_lines=50
35347
35348# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35349# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35350# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35351# et cetera.
35352ac_in='$ac_file_inputs'
35353ac_out='"$tmp/out1"'
35354ac_nxt='"$tmp/out2"'
35355
35356while :
35357do
35358  # Write a here document:
35359    cat >>$CONFIG_STATUS <<_ACEOF
35360    # First, check the format of the line:
35361    cat >"\$tmp/defines.sed" <<\\CEOF
35362/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
35363/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
35364b
35365:def
35366_ACEOF
35367  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35368  echo 'CEOF
35369    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35370  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35371  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35372  grep . conftest.tail >/dev/null || break
35373  rm -f conftest.defines
35374  mv conftest.tail conftest.defines
35375done
35376rm -f conftest.defines conftest.tail
35377
35378echo "ac_result=$ac_in" >>$CONFIG_STATUS
35379cat >>$CONFIG_STATUS <<\_ACEOF
35380  if test x"$ac_file" != x-; then
35381    echo "/* $configure_input  */" >"$tmp/config.h"
35382    cat "$ac_result" >>"$tmp/config.h"
35383    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35384      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35385echo "$as_me: $ac_file is unchanged" >&6;}
35386    else
35387      rm -f $ac_file
35388      mv "$tmp/config.h" $ac_file
35389    fi
35390  else
35391    echo "/* $configure_input  */"
35392    cat "$ac_result"
35393  fi
35394  rm -f "$tmp/out12"
35395 ;;
35396
35397  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35398echo "$as_me: executing $ac_file commands" >&6;}
35399 ;;
35400  esac
35401
35402
35403  case $ac_file$ac_mode in
35404    "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35405   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35406    "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35407   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35408    "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35409   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35410    "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35411   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35412    "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35413   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35414    "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35415   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35416    "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35417   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35418    "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35419   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35420    "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35421   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35422    "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35423   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35424
35425  esac
35426done # for ac_tag
35427
35428
35429{ (exit 0); exit 0; }
35430_ACEOF
35431chmod +x $CONFIG_STATUS
35432ac_clean_files=$ac_clean_files_save
35433
35434
35435# configure is writing to config.log, and then calls config.status.
35436# config.status does its own redirection, appending to config.log.
35437# Unfortunately, on DOS this fails, as config.log is still kept open
35438# by configure, so config.status won't be able to write to it; its
35439# output is simply discarded.  So we exec the FD to /dev/null,
35440# effectively closing config.log, so it can be properly (re)opened and
35441# appended to by config.status.  When coming back to configure, we
35442# need to make the FD available again.
35443if test "$no_create" != yes; then
35444  ac_cs_success=:
35445  ac_config_status_args=
35446  test "$silent" = yes &&
35447    ac_config_status_args="$ac_config_status_args --quiet"
35448  exec 5>/dev/null
35449  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35450  exec 5>>config.log
35451  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35452  # would make configure fail if this is the last instruction.
35453  $ac_cs_success || { (exit 1); exit 1; }
35454fi
35455
35456#
35457# CONFIG_SUBDIRS section.
35458#
35459if test "$no_recursion" != yes; then
35460
35461  # Remove --cache-file and --srcdir arguments so they do not pile up.
35462  ac_sub_configure_args=
35463  ac_prev=
35464  eval "set x $ac_configure_args"
35465  shift
35466  for ac_arg
35467  do
35468    if test -n "$ac_prev"; then
35469      ac_prev=
35470      continue
35471    fi
35472    case $ac_arg in
35473    -cache-file | --cache-file | --cache-fil | --cache-fi \
35474    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35475      ac_prev=cache_file ;;
35476    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35477    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35478    | --c=*)
35479      ;;
35480    --config-cache | -C)
35481      ;;
35482    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35483      ac_prev=srcdir ;;
35484    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35485      ;;
35486    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35487      ac_prev=prefix ;;
35488    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35489      ;;
35490    *)
35491      case $ac_arg in
35492      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35493      esac
35494      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35495    esac
35496  done
35497
35498  # Always prepend --prefix to ensure using the same prefix
35499  # in subdir configurations.
35500  ac_arg="--prefix=$prefix"
35501  case $ac_arg in
35502  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35503  esac
35504  ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35505
35506  ac_popdir=`pwd`
35507  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35508
35509    # Do not complain, so a configure script can configure whichever
35510    # parts of a large source tree are present.
35511    test -d "$srcdir/$ac_dir" || continue
35512
35513    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35514    echo "$as_me:$LINENO: $ac_msg" >&5
35515    echo "$ac_msg" >&6
35516    { as_dir="$ac_dir"
35517  case $as_dir in #(
35518  -*) as_dir=./$as_dir;;
35519  esac
35520  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35521    as_dirs=
35522    while :; do
35523      case $as_dir in #(
35524      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35525      *) as_qdir=$as_dir;;
35526      esac
35527      as_dirs="'$as_qdir' $as_dirs"
35528      as_dir=`$as_dirname -- "$as_dir" ||
35529$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35530	 X"$as_dir" : 'X\(//\)[^/]' \| \
35531	 X"$as_dir" : 'X\(//\)$' \| \
35532	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35533echo X"$as_dir" |
35534    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35535	    s//\1/
35536	    q
35537	  }
35538	  /^X\(\/\/\)[^/].*/{
35539	    s//\1/
35540	    q
35541	  }
35542	  /^X\(\/\/\)$/{
35543	    s//\1/
35544	    q
35545	  }
35546	  /^X\(\/\).*/{
35547	    s//\1/
35548	    q
35549	  }
35550	  s/.*/./; q'`
35551      test -d "$as_dir" && break
35552    done
35553    test -z "$as_dirs" || eval "mkdir $as_dirs"
35554  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35555echo "$as_me: error: cannot create directory $as_dir" >&2;}
35556   { (exit 1); exit 1; }; }; }
35557    ac_builddir=.
35558
35559case "$ac_dir" in
35560.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35561*)
35562  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35563  # A ".." for each directory in $ac_dir_suffix.
35564  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35565  case $ac_top_builddir_sub in
35566  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35567  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35568  esac ;;
35569esac
35570ac_abs_top_builddir=$ac_pwd
35571ac_abs_builddir=$ac_pwd$ac_dir_suffix
35572# for backward compatibility:
35573ac_top_builddir=$ac_top_build_prefix
35574
35575case $srcdir in
35576  .)  # We are building in place.
35577    ac_srcdir=.
35578    ac_top_srcdir=$ac_top_builddir_sub
35579    ac_abs_top_srcdir=$ac_pwd ;;
35580  [\\/]* | ?:[\\/]* )  # Absolute name.
35581    ac_srcdir=$srcdir$ac_dir_suffix;
35582    ac_top_srcdir=$srcdir
35583    ac_abs_top_srcdir=$srcdir ;;
35584  *) # Relative name.
35585    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35586    ac_top_srcdir=$ac_top_build_prefix$srcdir
35587    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35588esac
35589ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35590
35591
35592    cd "$ac_dir"
35593
35594    # Check for guested configure; otherwise get Cygnus style configure.
35595    if test -f "$ac_srcdir/configure.gnu"; then
35596      ac_sub_configure=$ac_srcdir/configure.gnu
35597    elif test -f "$ac_srcdir/configure"; then
35598      ac_sub_configure=$ac_srcdir/configure
35599    elif test -f "$ac_srcdir/configure.in"; then
35600      # This should be Cygnus configure.
35601      ac_sub_configure=$ac_aux_dir/configure
35602    else
35603      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35604echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35605      ac_sub_configure=
35606    fi
35607
35608    # The recursion is here.
35609    if test -n "$ac_sub_configure"; then
35610      # Make the cache file name correct relative to the subdirectory.
35611      case $cache_file in
35612      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35613      *) # Relative name.
35614	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35615      esac
35616
35617      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35618echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35619      # The eval makes quoting arguments work.
35620      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35621	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35622	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35623echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35624   { (exit 1); exit 1; }; }
35625    fi
35626
35627    cd "$ac_popdir"
35628  done
35629fi
35630
35631
35632