configure revision 692aa5afc847e4c24770fc0cceb94eb575d623c7
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.60 for llvm 2.1cvs.
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.1cvs'
719PACKAGE_STRING='llvm 2.1cvs'
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
833DEBUG_RUNTIME
834JIT
835TARGET_HAS_JIT
836ENABLE_DOXYGEN
837ENABLE_THREADS
838ENABLE_PIC
839TARGETS_TO_BUILD
840ENABLE_CBE_PRINTF_A
841EXTRA_OPTIONS
842CXX
843CXXFLAGS
844ac_ct_CXX
845LEX
846LEXLIB
847LEX_OUTPUT_ROOT
848FLEX
849YACC
850YFLAGS
851BISON
852NM
853ifGNUmake
854LN_S
855CMP
856CP
857DATE
858FIND
859MKDIR
860MV
861RANLIB
862RM
863SED
864TAR
865BINPWD
866GRAPHVIZ
867DOT
868GV
869DOTTY
870PERL
871HAVE_PERL
872INSTALL_PROGRAM
873INSTALL_SCRIPT
874INSTALL_DATA
875BZIP2
876DOXYGEN
877GROFF
878GZIP
879POD2HTML
880POD2MAN
881RUNTEST
882TCLSH
883ZIP
884INSTALL_LTDL_TRUE
885INSTALL_LTDL_FALSE
886CONVENIENCE_LTDL_TRUE
887CONVENIENCE_LTDL_FALSE
888LIBADD_DL
889ECHO
890AR
891STRIP
892CXXCPP
893F77
894FFLAGS
895ac_ct_F77
896LIBTOOL
897ETAGSFLAGS
898LLVMGCC
899LLVMGXX
900USE_UDIS86
901HAVE_PTHREAD
902HUGE_VAL_SANITY
903ALLOCA
904MMAP_FILE
905LLVMCC1
906LLVMCC1PLUS
907LLVMGCCDIR
908LLVMGCCLIBEXEC
909LLVMGCC_VERSION
910LLVMGCC_MAJVERS
911LLVMGCC_LANGS
912SHLIBEXT
913LLVM_PREFIX
914LLVM_BINDIR
915LLVM_LIBDIR
916LLVM_DATADIR
917LLVM_DOCSDIR
918LLVM_ETCDIR
919LLVM_INCLUDEDIR
920LLVM_INFODIR
921LLVM_MANDIR
922LLVM_CONFIGTIME
923LIBOBJS
924LTLIBOBJS'
925ac_subst_files=''
926      ac_precious_vars='build_alias
927host_alias
928target_alias
929CC
930CFLAGS
931LDFLAGS
932CPPFLAGS
933CPP
934CXX
935CXXFLAGS
936CCC
937YACC
938YFLAGS
939CXXCPP
940F77
941FFLAGS'
942ac_subdirs_all='projects/sample
943projects/privbracket
944projects/llvm-stacker
945projects/llvm-test
946projects/llvm-reopt
947projects/llvm-gcc
948projects/llvm-java
949projects/llvm-tv
950projects/llvm-poolalloc
951projects/llvm-kernel'
952
953# Initialize some variables set by options.
954ac_init_help=
955ac_init_version=false
956# The variables have the same names as the options, with
957# dashes changed to underlines.
958cache_file=/dev/null
959exec_prefix=NONE
960no_create=
961no_recursion=
962prefix=NONE
963program_prefix=NONE
964program_suffix=NONE
965program_transform_name=s,x,x,
966silent=
967site=
968srcdir=
969verbose=
970x_includes=NONE
971x_libraries=NONE
972
973# Installation directory options.
974# These are left unexpanded so users can "make install exec_prefix=/foo"
975# and all the variables that are supposed to be based on exec_prefix
976# by default will actually change.
977# Use braces instead of parens because sh, perl, etc. also accept them.
978# (The list follows the same order as the GNU Coding Standards.)
979bindir='${exec_prefix}/bin'
980sbindir='${exec_prefix}/sbin'
981libexecdir='${exec_prefix}/libexec'
982datarootdir='${prefix}/share'
983datadir='${datarootdir}'
984sysconfdir='${prefix}/etc'
985sharedstatedir='${prefix}/com'
986localstatedir='${prefix}/var'
987includedir='${prefix}/include'
988oldincludedir='/usr/include'
989docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
990infodir='${datarootdir}/info'
991htmldir='${docdir}'
992dvidir='${docdir}'
993pdfdir='${docdir}'
994psdir='${docdir}'
995libdir='${exec_prefix}/lib'
996localedir='${datarootdir}/locale'
997mandir='${datarootdir}/man'
998
999ac_prev=
1000ac_dashdash=
1001for ac_option
1002do
1003  # If the previous option needs an argument, assign it.
1004  if test -n "$ac_prev"; then
1005    eval $ac_prev=\$ac_option
1006    ac_prev=
1007    continue
1008  fi
1009
1010  case $ac_option in
1011  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1012  *)	ac_optarg=yes ;;
1013  esac
1014
1015  # Accept the important Cygnus configure options, so we can diagnose typos.
1016
1017  case $ac_dashdash$ac_option in
1018  --)
1019    ac_dashdash=yes ;;
1020
1021  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1022    ac_prev=bindir ;;
1023  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1024    bindir=$ac_optarg ;;
1025
1026  -build | --build | --buil | --bui | --bu)
1027    ac_prev=build_alias ;;
1028  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1029    build_alias=$ac_optarg ;;
1030
1031  -cache-file | --cache-file | --cache-fil | --cache-fi \
1032  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1033    ac_prev=cache_file ;;
1034  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1035  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1036    cache_file=$ac_optarg ;;
1037
1038  --config-cache | -C)
1039    cache_file=config.cache ;;
1040
1041  -datadir | --datadir | --datadi | --datad)
1042    ac_prev=datadir ;;
1043  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1044    datadir=$ac_optarg ;;
1045
1046  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1047  | --dataroo | --dataro | --datar)
1048    ac_prev=datarootdir ;;
1049  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1050  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1051    datarootdir=$ac_optarg ;;
1052
1053  -disable-* | --disable-*)
1054    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1055    # Reject names that are not valid shell variable names.
1056    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1057      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1058   { (exit 1); exit 1; }; }
1059    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1060    eval enable_$ac_feature=no ;;
1061
1062  -docdir | --docdir | --docdi | --doc | --do)
1063    ac_prev=docdir ;;
1064  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1065    docdir=$ac_optarg ;;
1066
1067  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1068    ac_prev=dvidir ;;
1069  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1070    dvidir=$ac_optarg ;;
1071
1072  -enable-* | --enable-*)
1073    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1074    # Reject names that are not valid shell variable names.
1075    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1076      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1077   { (exit 1); exit 1; }; }
1078    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1079    eval enable_$ac_feature=\$ac_optarg ;;
1080
1081  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1082  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1083  | --exec | --exe | --ex)
1084    ac_prev=exec_prefix ;;
1085  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1086  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1087  | --exec=* | --exe=* | --ex=*)
1088    exec_prefix=$ac_optarg ;;
1089
1090  -gas | --gas | --ga | --g)
1091    # Obsolete; use --with-gas.
1092    with_gas=yes ;;
1093
1094  -help | --help | --hel | --he | -h)
1095    ac_init_help=long ;;
1096  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1097    ac_init_help=recursive ;;
1098  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1099    ac_init_help=short ;;
1100
1101  -host | --host | --hos | --ho)
1102    ac_prev=host_alias ;;
1103  -host=* | --host=* | --hos=* | --ho=*)
1104    host_alias=$ac_optarg ;;
1105
1106  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1107    ac_prev=htmldir ;;
1108  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1109  | --ht=*)
1110    htmldir=$ac_optarg ;;
1111
1112  -includedir | --includedir | --includedi | --included | --include \
1113  | --includ | --inclu | --incl | --inc)
1114    ac_prev=includedir ;;
1115  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1116  | --includ=* | --inclu=* | --incl=* | --inc=*)
1117    includedir=$ac_optarg ;;
1118
1119  -infodir | --infodir | --infodi | --infod | --info | --inf)
1120    ac_prev=infodir ;;
1121  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1122    infodir=$ac_optarg ;;
1123
1124  -libdir | --libdir | --libdi | --libd)
1125    ac_prev=libdir ;;
1126  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1127    libdir=$ac_optarg ;;
1128
1129  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1130  | --libexe | --libex | --libe)
1131    ac_prev=libexecdir ;;
1132  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1133  | --libexe=* | --libex=* | --libe=*)
1134    libexecdir=$ac_optarg ;;
1135
1136  -localedir | --localedir | --localedi | --localed | --locale)
1137    ac_prev=localedir ;;
1138  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1139    localedir=$ac_optarg ;;
1140
1141  -localstatedir | --localstatedir | --localstatedi | --localstated \
1142  | --localstate | --localstat | --localsta | --localst | --locals)
1143    ac_prev=localstatedir ;;
1144  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1145  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1146    localstatedir=$ac_optarg ;;
1147
1148  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1149    ac_prev=mandir ;;
1150  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1151    mandir=$ac_optarg ;;
1152
1153  -nfp | --nfp | --nf)
1154    # Obsolete; use --without-fp.
1155    with_fp=no ;;
1156
1157  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1158  | --no-cr | --no-c | -n)
1159    no_create=yes ;;
1160
1161  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1162  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1163    no_recursion=yes ;;
1164
1165  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1166  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1167  | --oldin | --oldi | --old | --ol | --o)
1168    ac_prev=oldincludedir ;;
1169  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1170  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1171  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1172    oldincludedir=$ac_optarg ;;
1173
1174  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1175    ac_prev=prefix ;;
1176  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1177    prefix=$ac_optarg ;;
1178
1179  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1180  | --program-pre | --program-pr | --program-p)
1181    ac_prev=program_prefix ;;
1182  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1183  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1184    program_prefix=$ac_optarg ;;
1185
1186  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1187  | --program-suf | --program-su | --program-s)
1188    ac_prev=program_suffix ;;
1189  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1190  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1191    program_suffix=$ac_optarg ;;
1192
1193  -program-transform-name | --program-transform-name \
1194  | --program-transform-nam | --program-transform-na \
1195  | --program-transform-n | --program-transform- \
1196  | --program-transform | --program-transfor \
1197  | --program-transfo | --program-transf \
1198  | --program-trans | --program-tran \
1199  | --progr-tra | --program-tr | --program-t)
1200    ac_prev=program_transform_name ;;
1201  -program-transform-name=* | --program-transform-name=* \
1202  | --program-transform-nam=* | --program-transform-na=* \
1203  | --program-transform-n=* | --program-transform-=* \
1204  | --program-transform=* | --program-transfor=* \
1205  | --program-transfo=* | --program-transf=* \
1206  | --program-trans=* | --program-tran=* \
1207  | --progr-tra=* | --program-tr=* | --program-t=*)
1208    program_transform_name=$ac_optarg ;;
1209
1210  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1211    ac_prev=pdfdir ;;
1212  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1213    pdfdir=$ac_optarg ;;
1214
1215  -psdir | --psdir | --psdi | --psd | --ps)
1216    ac_prev=psdir ;;
1217  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1218    psdir=$ac_optarg ;;
1219
1220  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1221  | -silent | --silent | --silen | --sile | --sil)
1222    silent=yes ;;
1223
1224  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1225    ac_prev=sbindir ;;
1226  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1227  | --sbi=* | --sb=*)
1228    sbindir=$ac_optarg ;;
1229
1230  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1231  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1232  | --sharedst | --shareds | --shared | --share | --shar \
1233  | --sha | --sh)
1234    ac_prev=sharedstatedir ;;
1235  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1236  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1237  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1238  | --sha=* | --sh=*)
1239    sharedstatedir=$ac_optarg ;;
1240
1241  -site | --site | --sit)
1242    ac_prev=site ;;
1243  -site=* | --site=* | --sit=*)
1244    site=$ac_optarg ;;
1245
1246  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1247    ac_prev=srcdir ;;
1248  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1249    srcdir=$ac_optarg ;;
1250
1251  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1252  | --syscon | --sysco | --sysc | --sys | --sy)
1253    ac_prev=sysconfdir ;;
1254  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1255  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1256    sysconfdir=$ac_optarg ;;
1257
1258  -target | --target | --targe | --targ | --tar | --ta | --t)
1259    ac_prev=target_alias ;;
1260  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1261    target_alias=$ac_optarg ;;
1262
1263  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1264    verbose=yes ;;
1265
1266  -version | --version | --versio | --versi | --vers | -V)
1267    ac_init_version=: ;;
1268
1269  -with-* | --with-*)
1270    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1271    # Reject names that are not valid shell variable names.
1272    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1273      { echo "$as_me: error: invalid package name: $ac_package" >&2
1274   { (exit 1); exit 1; }; }
1275    ac_package=`echo $ac_package| sed 's/-/_/g'`
1276    eval with_$ac_package=\$ac_optarg ;;
1277
1278  -without-* | --without-*)
1279    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1280    # Reject names that are not valid shell variable names.
1281    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1282      { echo "$as_me: error: invalid package name: $ac_package" >&2
1283   { (exit 1); exit 1; }; }
1284    ac_package=`echo $ac_package | sed 's/-/_/g'`
1285    eval with_$ac_package=no ;;
1286
1287  --x)
1288    # Obsolete; use --with-x.
1289    with_x=yes ;;
1290
1291  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1292  | --x-incl | --x-inc | --x-in | --x-i)
1293    ac_prev=x_includes ;;
1294  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1295  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1296    x_includes=$ac_optarg ;;
1297
1298  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1299  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1300    ac_prev=x_libraries ;;
1301  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1302  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1303    x_libraries=$ac_optarg ;;
1304
1305  -*) { echo "$as_me: error: unrecognized option: $ac_option
1306Try \`$0 --help' for more information." >&2
1307   { (exit 1); exit 1; }; }
1308    ;;
1309
1310  *=*)
1311    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1312    # Reject names that are not valid shell variable names.
1313    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1314      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1315   { (exit 1); exit 1; }; }
1316    eval $ac_envvar=\$ac_optarg
1317    export $ac_envvar ;;
1318
1319  *)
1320    # FIXME: should be removed in autoconf 3.0.
1321    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1322    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1323      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1324    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1325    ;;
1326
1327  esac
1328done
1329
1330if test -n "$ac_prev"; then
1331  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1332  { echo "$as_me: error: missing argument to $ac_option" >&2
1333   { (exit 1); exit 1; }; }
1334fi
1335
1336# Be sure to have absolute directory names.
1337for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1338		datadir sysconfdir sharedstatedir localstatedir includedir \
1339		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1340		libdir localedir mandir
1341do
1342  eval ac_val=\$$ac_var
1343  case $ac_val in
1344    [\\/$]* | ?:[\\/]* )  continue;;
1345    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1346  esac
1347  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1348   { (exit 1); exit 1; }; }
1349done
1350
1351# There might be people who depend on the old broken behavior: `$host'
1352# used to hold the argument of --host etc.
1353# FIXME: To remove some day.
1354build=$build_alias
1355host=$host_alias
1356target=$target_alias
1357
1358# FIXME: To remove some day.
1359if test "x$host_alias" != x; then
1360  if test "x$build_alias" = x; then
1361    cross_compiling=maybe
1362    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1363    If a cross compiler is detected then cross compile mode will be used." >&2
1364  elif test "x$build_alias" != "x$host_alias"; then
1365    cross_compiling=yes
1366  fi
1367fi
1368
1369ac_tool_prefix=
1370test -n "$host_alias" && ac_tool_prefix=$host_alias-
1371
1372test "$silent" = yes && exec 6>/dev/null
1373
1374
1375ac_pwd=`pwd` && test -n "$ac_pwd" &&
1376ac_ls_di=`ls -di .` &&
1377ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1378  { echo "$as_me: error: Working directory cannot be determined" >&2
1379   { (exit 1); exit 1; }; }
1380test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1381  { echo "$as_me: error: pwd does not report name of working directory" >&2
1382   { (exit 1); exit 1; }; }
1383
1384
1385# Find the source files, if location was not specified.
1386if test -z "$srcdir"; then
1387  ac_srcdir_defaulted=yes
1388  # Try the directory containing this script, then the parent directory.
1389  ac_confdir=`$as_dirname -- "$0" ||
1390$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1391	 X"$0" : 'X\(//\)[^/]' \| \
1392	 X"$0" : 'X\(//\)$' \| \
1393	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1394echo X"$0" |
1395    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1396	    s//\1/
1397	    q
1398	  }
1399	  /^X\(\/\/\)[^/].*/{
1400	    s//\1/
1401	    q
1402	  }
1403	  /^X\(\/\/\)$/{
1404	    s//\1/
1405	    q
1406	  }
1407	  /^X\(\/\).*/{
1408	    s//\1/
1409	    q
1410	  }
1411	  s/.*/./; q'`
1412  srcdir=$ac_confdir
1413  if test ! -r "$srcdir/$ac_unique_file"; then
1414    srcdir=..
1415  fi
1416else
1417  ac_srcdir_defaulted=no
1418fi
1419if test ! -r "$srcdir/$ac_unique_file"; then
1420  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1421  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1422   { (exit 1); exit 1; }; }
1423fi
1424ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1425ac_abs_confdir=`(
1426	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1427   { (exit 1); exit 1; }; }
1428	pwd)`
1429# When building in place, set srcdir=.
1430if test "$ac_abs_confdir" = "$ac_pwd"; then
1431  srcdir=.
1432fi
1433# Remove unnecessary trailing slashes from srcdir.
1434# Double slashes in file names in object file debugging info
1435# mess up M-x gdb in Emacs.
1436case $srcdir in
1437*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1438esac
1439for ac_var in $ac_precious_vars; do
1440  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1441  eval ac_env_${ac_var}_value=\$${ac_var}
1442  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1443  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1444done
1445
1446#
1447# Report the --help message.
1448#
1449if test "$ac_init_help" = "long"; then
1450  # Omit some internal or obsolete options to make the list less imposing.
1451  # This message is too long to be a string in the A/UX 3.1 sh.
1452  cat <<_ACEOF
1453\`configure' configures llvm 2.1cvs to adapt to many kinds of systems.
1454
1455Usage: $0 [OPTION]... [VAR=VALUE]...
1456
1457To assign environment variables (e.g., CC, CFLAGS...), specify them as
1458VAR=VALUE.  See below for descriptions of some of the useful variables.
1459
1460Defaults for the options are specified in brackets.
1461
1462Configuration:
1463  -h, --help              display this help and exit
1464      --help=short        display options specific to this package
1465      --help=recursive    display the short help of all the included packages
1466  -V, --version           display version information and exit
1467  -q, --quiet, --silent   do not print \`checking...' messages
1468      --cache-file=FILE   cache test results in FILE [disabled]
1469  -C, --config-cache      alias for \`--cache-file=config.cache'
1470  -n, --no-create         do not create output files
1471      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1472
1473Installation directories:
1474  --prefix=PREFIX         install architecture-independent files in PREFIX
1475			  [$ac_default_prefix]
1476  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1477			  [PREFIX]
1478
1479By default, \`make install' will install all the files in
1480\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1481an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1482for instance \`--prefix=\$HOME'.
1483
1484For better control, use the options below.
1485
1486Fine tuning of the installation directories:
1487  --bindir=DIR           user executables [EPREFIX/bin]
1488  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1489  --libexecdir=DIR       program executables [EPREFIX/libexec]
1490  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1491  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1492  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1493  --libdir=DIR           object code libraries [EPREFIX/lib]
1494  --includedir=DIR       C header files [PREFIX/include]
1495  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1496  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1497  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1498  --infodir=DIR          info documentation [DATAROOTDIR/info]
1499  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1500  --mandir=DIR           man documentation [DATAROOTDIR/man]
1501  --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1502  --htmldir=DIR          html documentation [DOCDIR]
1503  --dvidir=DIR           dvi documentation [DOCDIR]
1504  --pdfdir=DIR           pdf documentation [DOCDIR]
1505  --psdir=DIR            ps documentation [DOCDIR]
1506_ACEOF
1507
1508  cat <<\_ACEOF
1509
1510System types:
1511  --build=BUILD     configure for building on BUILD [guessed]
1512  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1513  --target=TARGET   configure for building compilers for TARGET [HOST]
1514_ACEOF
1515fi
1516
1517if test -n "$ac_init_help"; then
1518  case $ac_init_help in
1519     short | recursive ) echo "Configuration of llvm 2.1cvs:";;
1520   esac
1521  cat <<\_ACEOF
1522
1523Optional Features:
1524  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1525  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1526  --enable-optimized
1527  --enable-assertions
1528  --enable-debug-runtime
1529  --enable-jit            Enable Just In Time Compiling (default is YES)
1530  --enable-doxygen        Build doxygen documentation (default is NO)
1531  --enable-threads        Use threads if available (default is YES)
1532  --enable-pic            Build LLVM with Position Independent Code (default
1533                          is NO)
1534  --enable-targets        Build specific host targets:
1535                          all,host-only,{target-name} (default=all)
1536  --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1537                          %a (default is YES)
1538  --enable-ltdl-install   install libltdl
1539  --enable-shared[=PKGS]  build shared libraries
1540                          [default=enable_shared_default]
1541  --enable-static[=PKGS]  build static libraries
1542                          [default=enable_static_default]
1543  --enable-fast-install[=PKGS]
1544                          optimize for fast installation
1545                          [default=enable_Fast_install_default]
1546  --disable-libtool-lock  avoid locking (might break parallel builds)
1547
1548Optional Packages:
1549  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1550  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1551  --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1552                          searches PATH)
1553  --with-extra-options    Specify addtional options to compile LLVM with
1554  --with-tclinclude       directory where tcl headers are
1555  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1556  --with-pic              try to use only PIC/non-PIC objects [default=use
1557                          both]
1558  --with-tags[=TAGS]      include additional configurations [automatic]
1559  --with-udis86=<path>    Use udis86 external x86 disassembler library
1560
1561Some influential environment variables:
1562  CC          C compiler command
1563  CFLAGS      C compiler flags
1564  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1565              nonstandard directory <lib dir>
1566  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1567              you have headers in a nonstandard directory <include dir>
1568  CPP         C preprocessor
1569  CXX         C++ compiler command
1570  CXXFLAGS    C++ compiler flags
1571  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1572              the first program found out of: `bison -y', `byacc', `yacc'.
1573  YFLAGS      The list of arguments that will be passed by default to $YACC.
1574              This script will default YFLAGS to the empty string to avoid a
1575              default value of `-d' given by some make applications.
1576  CXXCPP      C++ preprocessor
1577  F77         Fortran 77 compiler command
1578  FFLAGS      Fortran 77 compiler flags
1579
1580Use these variables to override the choices made by `configure' or to help
1581it to find libraries and programs with nonstandard names/locations.
1582
1583Report bugs to <llvmbugs@cs.uiuc.edu>.
1584_ACEOF
1585ac_status=$?
1586fi
1587
1588if test "$ac_init_help" = "recursive"; then
1589  # If there are subdirs, report their specific --help.
1590  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1591    test -d "$ac_dir" || continue
1592    ac_builddir=.
1593
1594case "$ac_dir" in
1595.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1596*)
1597  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1598  # A ".." for each directory in $ac_dir_suffix.
1599  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1600  case $ac_top_builddir_sub in
1601  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1602  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1603  esac ;;
1604esac
1605ac_abs_top_builddir=$ac_pwd
1606ac_abs_builddir=$ac_pwd$ac_dir_suffix
1607# for backward compatibility:
1608ac_top_builddir=$ac_top_build_prefix
1609
1610case $srcdir in
1611  .)  # We are building in place.
1612    ac_srcdir=.
1613    ac_top_srcdir=$ac_top_builddir_sub
1614    ac_abs_top_srcdir=$ac_pwd ;;
1615  [\\/]* | ?:[\\/]* )  # Absolute name.
1616    ac_srcdir=$srcdir$ac_dir_suffix;
1617    ac_top_srcdir=$srcdir
1618    ac_abs_top_srcdir=$srcdir ;;
1619  *) # Relative name.
1620    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1621    ac_top_srcdir=$ac_top_build_prefix$srcdir
1622    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1623esac
1624ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1625
1626    cd "$ac_dir" || { ac_status=$?; continue; }
1627    # Check for guested configure.
1628    if test -f "$ac_srcdir/configure.gnu"; then
1629      echo &&
1630      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1631    elif test -f "$ac_srcdir/configure"; then
1632      echo &&
1633      $SHELL "$ac_srcdir/configure" --help=recursive
1634    else
1635      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1636    fi || ac_status=$?
1637    cd "$ac_pwd" || { ac_status=$?; break; }
1638  done
1639fi
1640
1641test -n "$ac_init_help" && exit $ac_status
1642if $ac_init_version; then
1643  cat <<\_ACEOF
1644llvm configure 2.1cvs
1645generated by GNU Autoconf 2.60
1646
1647Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16482002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1649This configure script is free software; the Free Software Foundation
1650gives unlimited permission to copy, distribute and modify it.
1651
1652Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
1653_ACEOF
1654  exit
1655fi
1656cat >config.log <<_ACEOF
1657This file contains any messages produced by compilers while
1658running configure, to aid debugging if configure makes a mistake.
1659
1660It was created by llvm $as_me 2.1cvs, which was
1661generated by GNU Autoconf 2.60.  Invocation command line was
1662
1663  $ $0 $@
1664
1665_ACEOF
1666exec 5>>config.log
1667{
1668cat <<_ASUNAME
1669## --------- ##
1670## Platform. ##
1671## --------- ##
1672
1673hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1674uname -m = `(uname -m) 2>/dev/null || echo unknown`
1675uname -r = `(uname -r) 2>/dev/null || echo unknown`
1676uname -s = `(uname -s) 2>/dev/null || echo unknown`
1677uname -v = `(uname -v) 2>/dev/null || echo unknown`
1678
1679/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1680/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1681
1682/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1683/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1684/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1685/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1686/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1687/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1688/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1689
1690_ASUNAME
1691
1692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1693for as_dir in $PATH
1694do
1695  IFS=$as_save_IFS
1696  test -z "$as_dir" && as_dir=.
1697  echo "PATH: $as_dir"
1698done
1699IFS=$as_save_IFS
1700
1701} >&5
1702
1703cat >&5 <<_ACEOF
1704
1705
1706## ----------- ##
1707## Core tests. ##
1708## ----------- ##
1709
1710_ACEOF
1711
1712
1713# Keep a trace of the command line.
1714# Strip out --no-create and --no-recursion so they do not pile up.
1715# Strip out --silent because we don't want to record it for future runs.
1716# Also quote any args containing shell meta-characters.
1717# Make two passes to allow for proper duplicate-argument suppression.
1718ac_configure_args=
1719ac_configure_args0=
1720ac_configure_args1=
1721ac_must_keep_next=false
1722for ac_pass in 1 2
1723do
1724  for ac_arg
1725  do
1726    case $ac_arg in
1727    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1728    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1729    | -silent | --silent | --silen | --sile | --sil)
1730      continue ;;
1731    *\'*)
1732      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1733    esac
1734    case $ac_pass in
1735    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1736    2)
1737      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1738      if test $ac_must_keep_next = true; then
1739	ac_must_keep_next=false # Got value, back to normal.
1740      else
1741	case $ac_arg in
1742	  *=* | --config-cache | -C | -disable-* | --disable-* \
1743	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1744	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1745	  | -with-* | --with-* | -without-* | --without-* | --x)
1746	    case "$ac_configure_args0 " in
1747	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1748	    esac
1749	    ;;
1750	  -* ) ac_must_keep_next=true ;;
1751	esac
1752      fi
1753      ac_configure_args="$ac_configure_args '$ac_arg'"
1754      ;;
1755    esac
1756  done
1757done
1758$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1759$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1760
1761# When interrupted or exit'd, cleanup temporary files, and complete
1762# config.log.  We remove comments because anyway the quotes in there
1763# would cause problems or look ugly.
1764# WARNING: Use '\'' to represent an apostrophe within the trap.
1765# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1766trap 'exit_status=$?
1767  # Save into config.log some information that might help in debugging.
1768  {
1769    echo
1770
1771    cat <<\_ASBOX
1772## ---------------- ##
1773## Cache variables. ##
1774## ---------------- ##
1775_ASBOX
1776    echo
1777    # The following way of writing the cache mishandles newlines in values,
1778(
1779  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1780    eval ac_val=\$$ac_var
1781    case $ac_val in #(
1782    *${as_nl}*)
1783      case $ac_var in #(
1784      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1785echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1786      esac
1787      case $ac_var in #(
1788      _ | IFS | as_nl) ;; #(
1789      *) $as_unset $ac_var ;;
1790      esac ;;
1791    esac
1792  done
1793  (set) 2>&1 |
1794    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1795    *${as_nl}ac_space=\ *)
1796      sed -n \
1797	"s/'\''/'\''\\\\'\'''\''/g;
1798	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1799      ;; #(
1800    *)
1801      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1802      ;;
1803    esac |
1804    sort
1805)
1806    echo
1807
1808    cat <<\_ASBOX
1809## ----------------- ##
1810## Output variables. ##
1811## ----------------- ##
1812_ASBOX
1813    echo
1814    for ac_var in $ac_subst_vars
1815    do
1816      eval ac_val=\$$ac_var
1817      case $ac_val in
1818      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1819      esac
1820      echo "$ac_var='\''$ac_val'\''"
1821    done | sort
1822    echo
1823
1824    if test -n "$ac_subst_files"; then
1825      cat <<\_ASBOX
1826## ------------------- ##
1827## File substitutions. ##
1828## ------------------- ##
1829_ASBOX
1830      echo
1831      for ac_var in $ac_subst_files
1832      do
1833	eval ac_val=\$$ac_var
1834	case $ac_val in
1835	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1836	esac
1837	echo "$ac_var='\''$ac_val'\''"
1838      done | sort
1839      echo
1840    fi
1841
1842    if test -s confdefs.h; then
1843      cat <<\_ASBOX
1844## ----------- ##
1845## confdefs.h. ##
1846## ----------- ##
1847_ASBOX
1848      echo
1849      cat confdefs.h
1850      echo
1851    fi
1852    test "$ac_signal" != 0 &&
1853      echo "$as_me: caught signal $ac_signal"
1854    echo "$as_me: exit $exit_status"
1855  } >&5
1856  rm -f core *.core core.conftest.* &&
1857    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1858    exit $exit_status
1859' 0
1860for ac_signal in 1 2 13 15; do
1861  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1862done
1863ac_signal=0
1864
1865# confdefs.h avoids OS command line length limits that DEFS can exceed.
1866rm -f -r conftest* confdefs.h
1867
1868# Predefined preprocessor variables.
1869
1870cat >>confdefs.h <<_ACEOF
1871#define PACKAGE_NAME "$PACKAGE_NAME"
1872_ACEOF
1873
1874
1875cat >>confdefs.h <<_ACEOF
1876#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1877_ACEOF
1878
1879
1880cat >>confdefs.h <<_ACEOF
1881#define PACKAGE_VERSION "$PACKAGE_VERSION"
1882_ACEOF
1883
1884
1885cat >>confdefs.h <<_ACEOF
1886#define PACKAGE_STRING "$PACKAGE_STRING"
1887_ACEOF
1888
1889
1890cat >>confdefs.h <<_ACEOF
1891#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1892_ACEOF
1893
1894
1895# Let the site file select an alternate cache file if it wants to.
1896# Prefer explicitly selected file to automatically selected ones.
1897if test -n "$CONFIG_SITE"; then
1898  set x "$CONFIG_SITE"
1899elif test "x$prefix" != xNONE; then
1900  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1901else
1902  set x "$ac_default_prefix/share/config.site" \
1903	"$ac_default_prefix/etc/config.site"
1904fi
1905shift
1906for ac_site_file
1907do
1908  if test -r "$ac_site_file"; then
1909    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1910echo "$as_me: loading site script $ac_site_file" >&6;}
1911    sed 's/^/| /' "$ac_site_file" >&5
1912    . "$ac_site_file"
1913  fi
1914done
1915
1916if test -r "$cache_file"; then
1917  # Some versions of bash will fail to source /dev/null (special
1918  # files actually), so we avoid doing that.
1919  if test -f "$cache_file"; then
1920    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1921echo "$as_me: loading cache $cache_file" >&6;}
1922    case $cache_file in
1923      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1924      *)                      . "./$cache_file";;
1925    esac
1926  fi
1927else
1928  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1929echo "$as_me: creating cache $cache_file" >&6;}
1930  >$cache_file
1931fi
1932
1933# Check that the precious variables saved in the cache have kept the same
1934# value.
1935ac_cache_corrupted=false
1936for ac_var in $ac_precious_vars; do
1937  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1938  eval ac_new_set=\$ac_env_${ac_var}_set
1939  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1940  eval ac_new_val=\$ac_env_${ac_var}_value
1941  case $ac_old_set,$ac_new_set in
1942    set,)
1943      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1944echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1945      ac_cache_corrupted=: ;;
1946    ,set)
1947      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1948echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1949      ac_cache_corrupted=: ;;
1950    ,);;
1951    *)
1952      if test "x$ac_old_val" != "x$ac_new_val"; then
1953	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1954echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1955	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1956echo "$as_me:   former value:  $ac_old_val" >&2;}
1957	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1958echo "$as_me:   current value: $ac_new_val" >&2;}
1959	ac_cache_corrupted=:
1960      fi;;
1961  esac
1962  # Pass precious variables to config.status.
1963  if test "$ac_new_set" = set; then
1964    case $ac_new_val in
1965    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1966    *) ac_arg=$ac_var=$ac_new_val ;;
1967    esac
1968    case " $ac_configure_args " in
1969      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1970      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1971    esac
1972  fi
1973done
1974if $ac_cache_corrupted; then
1975  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1976echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1977  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1978echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1979   { (exit 1); exit 1; }; }
1980fi
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006ac_ext=c
2007ac_cpp='$CPP $CPPFLAGS'
2008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2010ac_compiler_gnu=$ac_cv_c_compiler_gnu
2011
2012
2013
2014LLVM_COPYRIGHT="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign."
2015
2016
2017
2018
2019
2020
2021
2022ac_aux_dir=
2023for ac_dir in autoconf "$srcdir"/autoconf; do
2024  if test -f "$ac_dir/install-sh"; then
2025    ac_aux_dir=$ac_dir
2026    ac_install_sh="$ac_aux_dir/install-sh -c"
2027    break
2028  elif test -f "$ac_dir/install.sh"; then
2029    ac_aux_dir=$ac_dir
2030    ac_install_sh="$ac_aux_dir/install.sh -c"
2031    break
2032  elif test -f "$ac_dir/shtool"; then
2033    ac_aux_dir=$ac_dir
2034    ac_install_sh="$ac_aux_dir/shtool install -c"
2035    break
2036  fi
2037done
2038if test -z "$ac_aux_dir"; then
2039  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2040echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2041   { (exit 1); exit 1; }; }
2042fi
2043
2044# These three variables are undocumented and unsupported,
2045# and are intended to be withdrawn in a future Autoconf release.
2046# They can cause serious problems if a builder's source tree is in a directory
2047# whose full name contains unusual characters.
2048ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2049ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2050ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2051
2052
2053
2054if test ${srcdir} != "." ; then
2055  if test -f ${srcdir}/include/llvm/Config/config.h ; then
2056    { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2057echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2058   { (exit 1); exit 1; }; }
2059  fi
2060fi
2061
2062for i in `ls ${srcdir}/projects`
2063do
2064  if test -d ${srcdir}/projects/${i} ; then
2065    case ${i} in
2066      CVS) ;;
2067      sample)       subdirs="$subdirs projects/sample"
2068    ;;
2069      privbracket)  subdirs="$subdirs projects/privbracket"
2070 ;;
2071      llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2072 ;;
2073      llvm-test)    subdirs="$subdirs projects/llvm-test"
2074 ;;
2075      llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2076;;
2077      llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2078  ;;
2079      llvm-java)    subdirs="$subdirs projects/llvm-java"
2080 ;;
2081      llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2082   ;;
2083      llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2084 ;;
2085      llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2086 ;;
2087      *)
2088        { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2089echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2090        ;;
2091    esac
2092  fi
2093done
2094
2095
2096# Make sure we can run config.sub.
2097$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2098  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2099echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2100   { (exit 1); exit 1; }; }
2101
2102{ echo "$as_me:$LINENO: checking build system type" >&5
2103echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2104if test "${ac_cv_build+set}" = set; then
2105  echo $ECHO_N "(cached) $ECHO_C" >&6
2106else
2107  ac_build_alias=$build_alias
2108test "x$ac_build_alias" = x &&
2109  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2110test "x$ac_build_alias" = x &&
2111  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2112echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2113   { (exit 1); exit 1; }; }
2114ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2115  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2116echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2117   { (exit 1); exit 1; }; }
2118
2119fi
2120{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2121echo "${ECHO_T}$ac_cv_build" >&6; }
2122case $ac_cv_build in
2123*-*-*) ;;
2124*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2125echo "$as_me: error: invalid value of canonical build" >&2;}
2126   { (exit 1); exit 1; }; };;
2127esac
2128build=$ac_cv_build
2129ac_save_IFS=$IFS; IFS='-'
2130set x $ac_cv_build
2131shift
2132build_cpu=$1
2133build_vendor=$2
2134shift; shift
2135# Remember, the first character of IFS is used to create $*,
2136# except with old shells:
2137build_os=$*
2138IFS=$ac_save_IFS
2139case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2140
2141
2142{ echo "$as_me:$LINENO: checking host system type" >&5
2143echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2144if test "${ac_cv_host+set}" = set; then
2145  echo $ECHO_N "(cached) $ECHO_C" >&6
2146else
2147  if test "x$host_alias" = x; then
2148  ac_cv_host=$ac_cv_build
2149else
2150  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2151    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2152echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2153   { (exit 1); exit 1; }; }
2154fi
2155
2156fi
2157{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2158echo "${ECHO_T}$ac_cv_host" >&6; }
2159case $ac_cv_host in
2160*-*-*) ;;
2161*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2162echo "$as_me: error: invalid value of canonical host" >&2;}
2163   { (exit 1); exit 1; }; };;
2164esac
2165host=$ac_cv_host
2166ac_save_IFS=$IFS; IFS='-'
2167set x $ac_cv_host
2168shift
2169host_cpu=$1
2170host_vendor=$2
2171shift; shift
2172# Remember, the first character of IFS is used to create $*,
2173# except with old shells:
2174host_os=$*
2175IFS=$ac_save_IFS
2176case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2177
2178
2179{ echo "$as_me:$LINENO: checking target system type" >&5
2180echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2181if test "${ac_cv_target+set}" = set; then
2182  echo $ECHO_N "(cached) $ECHO_C" >&6
2183else
2184  if test "x$target_alias" = x; then
2185  ac_cv_target=$ac_cv_host
2186else
2187  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2188    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2189echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2190   { (exit 1); exit 1; }; }
2191fi
2192
2193fi
2194{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2195echo "${ECHO_T}$ac_cv_target" >&6; }
2196case $ac_cv_target in
2197*-*-*) ;;
2198*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2199echo "$as_me: error: invalid value of canonical target" >&2;}
2200   { (exit 1); exit 1; }; };;
2201esac
2202target=$ac_cv_target
2203ac_save_IFS=$IFS; IFS='-'
2204set x $ac_cv_target
2205shift
2206target_cpu=$1
2207target_vendor=$2
2208shift; shift
2209# Remember, the first character of IFS is used to create $*,
2210# except with old shells:
2211target_os=$*
2212IFS=$ac_save_IFS
2213case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2214
2215
2216# The aliases save the names the user supplied, while $host etc.
2217# will get canonicalized.
2218test -n "$target_alias" &&
2219  test "$program_prefix$program_suffix$program_transform_name" = \
2220    NONENONEs,x,x, &&
2221  program_prefix=${target_alias}-
2222
2223{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2224echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2225if test "${llvm_cv_os_type+set}" = set; then
2226  echo $ECHO_N "(cached) $ECHO_C" >&6
2227else
2228  case $host in
2229  *-*-aix*)
2230    llvm_cv_link_all_option="-Wl,--whole-archive"
2231    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2232    llvm_cv_os_type="AIX"
2233    llvm_cv_platform_type="Unix" ;;
2234  *-*-irix*)
2235    llvm_cv_link_all_option="-Wl,--whole-archive"
2236    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2237    llvm_cv_os_type="IRIX"
2238    llvm_cv_platform_type="Unix" ;;
2239  *-*-cygwin*)
2240    llvm_cv_link_all_option="-Wl,--whole-archive"
2241    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2242    llvm_cv_os_type="Cygwin"
2243    llvm_cv_platform_type="Unix" ;;
2244  *-*-darwin*)
2245    llvm_cv_link_all_option="-Wl,-all_load"
2246    llvm_cv_link_all_option="-Wl,-noall_load"
2247    llvm_cv_os_type="Darwin"
2248    llvm_cv_platform_type="Unix" ;;
2249  *-*-freebsd*)
2250    llvm_cv_link_all_option="-Wl,--whole-archive"
2251    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2252    llvm_cv_os_type="FreeBSD"
2253    llvm_cv_platform_type="Unix" ;;
2254  *-*-openbsd*)
2255    llvm_cv_link_all_option="-Wl,--whole-archive"
2256    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2257    llvm_cv_os_type="OpenBSD"
2258    llvm_cv_platform_type="Unix" ;;
2259  *-*-netbsd*)
2260    llvm_cv_link_all_option="-Wl,--whole-archive"
2261    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2262    llvm_cv_os_type="NetBSD"
2263    llvm_cv_platform_type="Unix" ;;
2264  *-*-hpux*)
2265    llvm_cv_link_all_option="-Wl,--whole-archive"
2266    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2267    llvm_cv_os_type="HP-UX"
2268    llvm_cv_platform_type="Unix" ;;
2269  *-*-interix*)
2270    llvm_cv_link_all_option="-Wl,--whole-archive"
2271    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2272    llvm_cv_os_type="Interix"
2273    llvm_cv_platform_type="Unix" ;;
2274  *-*-linux*)
2275    llvm_cv_link_all_option="-Wl,--whole-archive"
2276    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2277    llvm_cv_os_type="Linux"
2278    llvm_cv_platform_type="Unix" ;;
2279  *-*-solaris*)
2280    llvm_cv_link_all_option="-Wl,-z,allextract"
2281    llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2282    llvm_cv_os_type="SunOS"
2283    llvm_cv_platform_type="Unix" ;;
2284  *-*-win32*)
2285    llvm_cv_link_all_option="-Wl,--whole-archive"
2286    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2287    llvm_cv_os_type="Win32"
2288    llvm_cv_platform_type="Win32" ;;
2289  *-*-mingw*)
2290    llvm_cv_link_all_option="-Wl,--whole-archive"
2291    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2292    llvm_cv_os_type="MingW"
2293    llvm_cv_platform_type="Win32" ;;
2294  *)
2295    llvm_cv_link_all_option=""
2296    llvm_cv_no_link_all_option=""
2297    llvm_cv_os_type="Unknown"
2298    llvm_cv_platform_type="Unknown" ;;
2299esac
2300fi
2301{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2302echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2303
2304if test "$llvm_cv_os_type" = "Unknown" ; then
2305  { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2306echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2307   { (exit 1); exit 1; }; }
2308fi
2309
2310OS=$llvm_cv_os_type
2311
2312
2313LINKALL=$llvm_cv_link_all_option
2314
2315NOLINKALL=$llvm_cv_no_link_all_option
2316
2317
2318case $llvm_cv_platform_type in
2319  Unix)
2320
2321cat >>confdefs.h <<\_ACEOF
2322#define LLVM_ON_UNIX 1
2323_ACEOF
2324
2325    LLVM_ON_UNIX=1
2326
2327    LLVM_ON_WIN32=0
2328
2329    ;;
2330  Win32)
2331
2332cat >>confdefs.h <<\_ACEOF
2333#define LLVM_ON_WIN32 1
2334_ACEOF
2335
2336    LLVM_ON_UNIX=0
2337
2338    LLVM_ON_WIN32=1
2339
2340    ;;
2341esac
2342
2343{ echo "$as_me:$LINENO: checking target architecture" >&5
2344echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2345if test "${llvm_cv_target_arch+set}" = set; then
2346  echo $ECHO_N "(cached) $ECHO_C" >&6
2347else
2348  case $target in
2349  i?86-*)                 llvm_cv_target_arch="x86" ;;
2350  amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2351  sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2352  powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2353  alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2354  ia64-*)                 llvm_cv_target_arch="IA64" ;;
2355  arm-*)                  llvm_cv_target_arch="ARM" ;;
2356  *)                      llvm_cv_target_arch="Unknown" ;;
2357esac
2358fi
2359{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2360echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2361
2362if test "$llvm_cv_target_arch" = "Unknown" ; then
2363  { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2364echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2365fi
2366
2367ARCH=$llvm_cv_target_arch
2368
2369
2370ac_ext=c
2371ac_cpp='$CPP $CPPFLAGS'
2372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2374ac_compiler_gnu=$ac_cv_c_compiler_gnu
2375if test -n "$ac_tool_prefix"; then
2376  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2377set dummy ${ac_tool_prefix}gcc; ac_word=$2
2378{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2380if test "${ac_cv_prog_CC+set}" = set; then
2381  echo $ECHO_N "(cached) $ECHO_C" >&6
2382else
2383  if test -n "$CC"; then
2384  ac_cv_prog_CC="$CC" # Let the user override the test.
2385else
2386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387for as_dir in $PATH
2388do
2389  IFS=$as_save_IFS
2390  test -z "$as_dir" && as_dir=.
2391  for ac_exec_ext in '' $ac_executable_extensions; do
2392  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2393    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2394    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2395    break 2
2396  fi
2397done
2398done
2399IFS=$as_save_IFS
2400
2401fi
2402fi
2403CC=$ac_cv_prog_CC
2404if test -n "$CC"; then
2405  { echo "$as_me:$LINENO: result: $CC" >&5
2406echo "${ECHO_T}$CC" >&6; }
2407else
2408  { echo "$as_me:$LINENO: result: no" >&5
2409echo "${ECHO_T}no" >&6; }
2410fi
2411
2412
2413fi
2414if test -z "$ac_cv_prog_CC"; then
2415  ac_ct_CC=$CC
2416  # Extract the first word of "gcc", so it can be a program name with args.
2417set dummy gcc; ac_word=$2
2418{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2420if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2421  echo $ECHO_N "(cached) $ECHO_C" >&6
2422else
2423  if test -n "$ac_ct_CC"; then
2424  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2425else
2426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427for as_dir in $PATH
2428do
2429  IFS=$as_save_IFS
2430  test -z "$as_dir" && as_dir=.
2431  for ac_exec_ext in '' $ac_executable_extensions; do
2432  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2433    ac_cv_prog_ac_ct_CC="gcc"
2434    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2435    break 2
2436  fi
2437done
2438done
2439IFS=$as_save_IFS
2440
2441fi
2442fi
2443ac_ct_CC=$ac_cv_prog_ac_ct_CC
2444if test -n "$ac_ct_CC"; then
2445  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2446echo "${ECHO_T}$ac_ct_CC" >&6; }
2447else
2448  { echo "$as_me:$LINENO: result: no" >&5
2449echo "${ECHO_T}no" >&6; }
2450fi
2451
2452  if test "x$ac_ct_CC" = x; then
2453    CC=""
2454  else
2455    case $cross_compiling:$ac_tool_warned in
2456yes:)
2457{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2458whose name does not start with the host triplet.  If you think this
2459configuration is useful to you, please write to autoconf@gnu.org." >&5
2460echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2461whose name does not start with the host triplet.  If you think this
2462configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2463ac_tool_warned=yes ;;
2464esac
2465    CC=$ac_ct_CC
2466  fi
2467else
2468  CC="$ac_cv_prog_CC"
2469fi
2470
2471if test -z "$CC"; then
2472          if test -n "$ac_tool_prefix"; then
2473    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2474set dummy ${ac_tool_prefix}cc; ac_word=$2
2475{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2477if test "${ac_cv_prog_CC+set}" = set; then
2478  echo $ECHO_N "(cached) $ECHO_C" >&6
2479else
2480  if test -n "$CC"; then
2481  ac_cv_prog_CC="$CC" # Let the user override the test.
2482else
2483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484for as_dir in $PATH
2485do
2486  IFS=$as_save_IFS
2487  test -z "$as_dir" && as_dir=.
2488  for ac_exec_ext in '' $ac_executable_extensions; do
2489  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2490    ac_cv_prog_CC="${ac_tool_prefix}cc"
2491    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2492    break 2
2493  fi
2494done
2495done
2496IFS=$as_save_IFS
2497
2498fi
2499fi
2500CC=$ac_cv_prog_CC
2501if test -n "$CC"; then
2502  { echo "$as_me:$LINENO: result: $CC" >&5
2503echo "${ECHO_T}$CC" >&6; }
2504else
2505  { echo "$as_me:$LINENO: result: no" >&5
2506echo "${ECHO_T}no" >&6; }
2507fi
2508
2509
2510  fi
2511fi
2512if test -z "$CC"; then
2513  # Extract the first word of "cc", so it can be a program name with args.
2514set dummy cc; ac_word=$2
2515{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2517if test "${ac_cv_prog_CC+set}" = set; then
2518  echo $ECHO_N "(cached) $ECHO_C" >&6
2519else
2520  if test -n "$CC"; then
2521  ac_cv_prog_CC="$CC" # Let the user override the test.
2522else
2523  ac_prog_rejected=no
2524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525for as_dir in $PATH
2526do
2527  IFS=$as_save_IFS
2528  test -z "$as_dir" && as_dir=.
2529  for ac_exec_ext in '' $ac_executable_extensions; do
2530  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2531    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2532       ac_prog_rejected=yes
2533       continue
2534     fi
2535    ac_cv_prog_CC="cc"
2536    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2537    break 2
2538  fi
2539done
2540done
2541IFS=$as_save_IFS
2542
2543if test $ac_prog_rejected = yes; then
2544  # We found a bogon in the path, so make sure we never use it.
2545  set dummy $ac_cv_prog_CC
2546  shift
2547  if test $# != 0; then
2548    # We chose a different compiler from the bogus one.
2549    # However, it has the same basename, so the bogon will be chosen
2550    # first if we set CC to just the basename; use the full file name.
2551    shift
2552    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2553  fi
2554fi
2555fi
2556fi
2557CC=$ac_cv_prog_CC
2558if test -n "$CC"; then
2559  { echo "$as_me:$LINENO: result: $CC" >&5
2560echo "${ECHO_T}$CC" >&6; }
2561else
2562  { echo "$as_me:$LINENO: result: no" >&5
2563echo "${ECHO_T}no" >&6; }
2564fi
2565
2566
2567fi
2568if test -z "$CC"; then
2569  if test -n "$ac_tool_prefix"; then
2570  for ac_prog in cl.exe
2571  do
2572    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2573set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2574{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2576if test "${ac_cv_prog_CC+set}" = set; then
2577  echo $ECHO_N "(cached) $ECHO_C" >&6
2578else
2579  if test -n "$CC"; then
2580  ac_cv_prog_CC="$CC" # Let the user override the test.
2581else
2582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583for as_dir in $PATH
2584do
2585  IFS=$as_save_IFS
2586  test -z "$as_dir" && as_dir=.
2587  for ac_exec_ext in '' $ac_executable_extensions; do
2588  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2589    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2590    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2591    break 2
2592  fi
2593done
2594done
2595IFS=$as_save_IFS
2596
2597fi
2598fi
2599CC=$ac_cv_prog_CC
2600if test -n "$CC"; then
2601  { echo "$as_me:$LINENO: result: $CC" >&5
2602echo "${ECHO_T}$CC" >&6; }
2603else
2604  { echo "$as_me:$LINENO: result: no" >&5
2605echo "${ECHO_T}no" >&6; }
2606fi
2607
2608
2609    test -n "$CC" && break
2610  done
2611fi
2612if test -z "$CC"; then
2613  ac_ct_CC=$CC
2614  for ac_prog in cl.exe
2615do
2616  # Extract the first word of "$ac_prog", so it can be a program name with args.
2617set dummy $ac_prog; ac_word=$2
2618{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2620if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2621  echo $ECHO_N "(cached) $ECHO_C" >&6
2622else
2623  if test -n "$ac_ct_CC"; then
2624  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2625else
2626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627for as_dir in $PATH
2628do
2629  IFS=$as_save_IFS
2630  test -z "$as_dir" && as_dir=.
2631  for ac_exec_ext in '' $ac_executable_extensions; do
2632  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2633    ac_cv_prog_ac_ct_CC="$ac_prog"
2634    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2635    break 2
2636  fi
2637done
2638done
2639IFS=$as_save_IFS
2640
2641fi
2642fi
2643ac_ct_CC=$ac_cv_prog_ac_ct_CC
2644if test -n "$ac_ct_CC"; then
2645  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2646echo "${ECHO_T}$ac_ct_CC" >&6; }
2647else
2648  { echo "$as_me:$LINENO: result: no" >&5
2649echo "${ECHO_T}no" >&6; }
2650fi
2651
2652
2653  test -n "$ac_ct_CC" && break
2654done
2655
2656  if test "x$ac_ct_CC" = x; then
2657    CC=""
2658  else
2659    case $cross_compiling:$ac_tool_warned in
2660yes:)
2661{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2662whose name does not start with the host triplet.  If you think this
2663configuration is useful to you, please write to autoconf@gnu.org." >&5
2664echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2665whose name does not start with the host triplet.  If you think this
2666configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2667ac_tool_warned=yes ;;
2668esac
2669    CC=$ac_ct_CC
2670  fi
2671fi
2672
2673fi
2674
2675
2676test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2677See \`config.log' for more details." >&5
2678echo "$as_me: error: no acceptable C compiler found in \$PATH
2679See \`config.log' for more details." >&2;}
2680   { (exit 1); exit 1; }; }
2681
2682# Provide some information about the compiler.
2683echo "$as_me:$LINENO: checking for C compiler version" >&5
2684ac_compiler=`set X $ac_compile; echo $2`
2685{ (ac_try="$ac_compiler --version >&5"
2686case "(($ac_try" in
2687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688  *) ac_try_echo=$ac_try;;
2689esac
2690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2691  (eval "$ac_compiler --version >&5") 2>&5
2692  ac_status=$?
2693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694  (exit $ac_status); }
2695{ (ac_try="$ac_compiler -v >&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 -v >&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
2716cat >conftest.$ac_ext <<_ACEOF
2717/* confdefs.h.  */
2718_ACEOF
2719cat confdefs.h >>conftest.$ac_ext
2720cat >>conftest.$ac_ext <<_ACEOF
2721/* end confdefs.h.  */
2722
2723int
2724main ()
2725{
2726
2727  ;
2728  return 0;
2729}
2730_ACEOF
2731ac_clean_files_save=$ac_clean_files
2732ac_clean_files="$ac_clean_files a.out a.exe b.out"
2733# Try to create an executable without -o first, disregard a.out.
2734# It will help us diagnose broken compilers, and finding out an intuition
2735# of exeext.
2736{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2737echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2738ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2739#
2740# List of possible output files, starting from the most likely.
2741# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2742# only as a last resort.  b.out is created by i960 compilers.
2743ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2744#
2745# The IRIX 6 linker writes into existing files which may not be
2746# executable, retaining their permissions.  Remove them first so a
2747# subsequent execution test works.
2748ac_rmfiles=
2749for ac_file in $ac_files
2750do
2751  case $ac_file in
2752    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2753    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2754  esac
2755done
2756rm -f $ac_rmfiles
2757
2758if { (ac_try="$ac_link_default"
2759case "(($ac_try" in
2760  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761  *) ac_try_echo=$ac_try;;
2762esac
2763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2764  (eval "$ac_link_default") 2>&5
2765  ac_status=$?
2766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767  (exit $ac_status); }; then
2768  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2769# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2770# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2771# so that the user can short-circuit this test for compilers unknown to
2772# Autoconf.
2773for ac_file in $ac_files
2774do
2775  test -f "$ac_file" || continue
2776  case $ac_file in
2777    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2778	;;
2779    [ab].out )
2780	# We found the default executable, but exeext='' is most
2781	# certainly right.
2782	break;;
2783    *.* )
2784        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2785	then :; else
2786	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2787	fi
2788	# We set ac_cv_exeext here because the later test for it is not
2789	# safe: cross compilers may not add the suffix if given an `-o'
2790	# argument, so we may need to know it at that point already.
2791	# Even if this section looks crufty: it has the advantage of
2792	# actually working.
2793	break;;
2794    * )
2795	break;;
2796  esac
2797done
2798test "$ac_cv_exeext" = no && ac_cv_exeext=
2799
2800else
2801  echo "$as_me: failed program was:" >&5
2802sed 's/^/| /' conftest.$ac_ext >&5
2803
2804{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2805See \`config.log' for more details." >&5
2806echo "$as_me: error: C compiler cannot create executables
2807See \`config.log' for more details." >&2;}
2808   { (exit 77); exit 77; }; }
2809fi
2810
2811ac_exeext=$ac_cv_exeext
2812{ echo "$as_me:$LINENO: result: $ac_file" >&5
2813echo "${ECHO_T}$ac_file" >&6; }
2814
2815# Check that the compiler produces executables we can run.  If not, either
2816# the compiler is broken, or we cross compile.
2817{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2818echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2819# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2820# If not cross compiling, check that we can run a simple program.
2821if test "$cross_compiling" != yes; then
2822  if { ac_try='./$ac_file'
2823  { (case "(($ac_try" in
2824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825  *) ac_try_echo=$ac_try;;
2826esac
2827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2828  (eval "$ac_try") 2>&5
2829  ac_status=$?
2830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831  (exit $ac_status); }; }; then
2832    cross_compiling=no
2833  else
2834    if test "$cross_compiling" = maybe; then
2835	cross_compiling=yes
2836    else
2837	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2838If you meant to cross compile, use \`--host'.
2839See \`config.log' for more details." >&5
2840echo "$as_me: error: cannot run C compiled programs.
2841If you meant to cross compile, use \`--host'.
2842See \`config.log' for more details." >&2;}
2843   { (exit 1); exit 1; }; }
2844    fi
2845  fi
2846fi
2847{ echo "$as_me:$LINENO: result: yes" >&5
2848echo "${ECHO_T}yes" >&6; }
2849
2850rm -f a.out a.exe conftest$ac_cv_exeext b.out
2851ac_clean_files=$ac_clean_files_save
2852# Check that the compiler produces executables we can run.  If not, either
2853# the compiler is broken, or we cross compile.
2854{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2855echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2856{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2857echo "${ECHO_T}$cross_compiling" >&6; }
2858
2859{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2860echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2861if { (ac_try="$ac_link"
2862case "(($ac_try" in
2863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864  *) ac_try_echo=$ac_try;;
2865esac
2866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2867  (eval "$ac_link") 2>&5
2868  ac_status=$?
2869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870  (exit $ac_status); }; then
2871  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2872# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2873# work properly (i.e., refer to `conftest.exe'), while it won't with
2874# `rm'.
2875for ac_file in conftest.exe conftest conftest.*; do
2876  test -f "$ac_file" || continue
2877  case $ac_file in
2878    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2879    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2880	  break;;
2881    * ) break;;
2882  esac
2883done
2884else
2885  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2886See \`config.log' for more details." >&5
2887echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2888See \`config.log' for more details." >&2;}
2889   { (exit 1); exit 1; }; }
2890fi
2891
2892rm -f conftest$ac_cv_exeext
2893{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2894echo "${ECHO_T}$ac_cv_exeext" >&6; }
2895
2896rm -f conftest.$ac_ext
2897EXEEXT=$ac_cv_exeext
2898ac_exeext=$EXEEXT
2899{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2900echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2901if test "${ac_cv_objext+set}" = set; then
2902  echo $ECHO_N "(cached) $ECHO_C" >&6
2903else
2904  cat >conftest.$ac_ext <<_ACEOF
2905/* confdefs.h.  */
2906_ACEOF
2907cat confdefs.h >>conftest.$ac_ext
2908cat >>conftest.$ac_ext <<_ACEOF
2909/* end confdefs.h.  */
2910
2911int
2912main ()
2913{
2914
2915  ;
2916  return 0;
2917}
2918_ACEOF
2919rm -f conftest.o conftest.obj
2920if { (ac_try="$ac_compile"
2921case "(($ac_try" in
2922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923  *) ac_try_echo=$ac_try;;
2924esac
2925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2926  (eval "$ac_compile") 2>&5
2927  ac_status=$?
2928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929  (exit $ac_status); }; then
2930  for ac_file in conftest.o conftest.obj conftest.*; do
2931  test -f "$ac_file" || continue;
2932  case $ac_file in
2933    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2934    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2935       break;;
2936  esac
2937done
2938else
2939  echo "$as_me: failed program was:" >&5
2940sed 's/^/| /' conftest.$ac_ext >&5
2941
2942{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2943See \`config.log' for more details." >&5
2944echo "$as_me: error: cannot compute suffix of object files: cannot compile
2945See \`config.log' for more details." >&2;}
2946   { (exit 1); exit 1; }; }
2947fi
2948
2949rm -f conftest.$ac_cv_objext conftest.$ac_ext
2950fi
2951{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2952echo "${ECHO_T}$ac_cv_objext" >&6; }
2953OBJEXT=$ac_cv_objext
2954ac_objext=$OBJEXT
2955{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2956echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2957if test "${ac_cv_c_compiler_gnu+set}" = set; then
2958  echo $ECHO_N "(cached) $ECHO_C" >&6
2959else
2960  cat >conftest.$ac_ext <<_ACEOF
2961/* confdefs.h.  */
2962_ACEOF
2963cat confdefs.h >>conftest.$ac_ext
2964cat >>conftest.$ac_ext <<_ACEOF
2965/* end confdefs.h.  */
2966
2967int
2968main ()
2969{
2970#ifndef __GNUC__
2971       choke me
2972#endif
2973
2974  ;
2975  return 0;
2976}
2977_ACEOF
2978rm -f conftest.$ac_objext
2979if { (ac_try="$ac_compile"
2980case "(($ac_try" in
2981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982  *) ac_try_echo=$ac_try;;
2983esac
2984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2985  (eval "$ac_compile") 2>conftest.er1
2986  ac_status=$?
2987  grep -v '^ *+' conftest.er1 >conftest.err
2988  rm -f conftest.er1
2989  cat conftest.err >&5
2990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991  (exit $ac_status); } &&
2992	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2993  { (case "(($ac_try" in
2994  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995  *) ac_try_echo=$ac_try;;
2996esac
2997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2998  (eval "$ac_try") 2>&5
2999  ac_status=$?
3000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001  (exit $ac_status); }; } &&
3002	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3012  ac_compiler_gnu=yes
3013else
3014  echo "$as_me: failed program was:" >&5
3015sed 's/^/| /' conftest.$ac_ext >&5
3016
3017	ac_compiler_gnu=no
3018fi
3019
3020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3021ac_cv_c_compiler_gnu=$ac_compiler_gnu
3022
3023fi
3024{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3025echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3026GCC=`test $ac_compiler_gnu = yes && echo yes`
3027ac_test_CFLAGS=${CFLAGS+set}
3028ac_save_CFLAGS=$CFLAGS
3029{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3030echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3031if test "${ac_cv_prog_cc_g+set}" = set; then
3032  echo $ECHO_N "(cached) $ECHO_C" >&6
3033else
3034  ac_save_c_werror_flag=$ac_c_werror_flag
3035   ac_c_werror_flag=yes
3036   ac_cv_prog_cc_g=no
3037   CFLAGS="-g"
3038   cat >conftest.$ac_ext <<_ACEOF
3039/* confdefs.h.  */
3040_ACEOF
3041cat confdefs.h >>conftest.$ac_ext
3042cat >>conftest.$ac_ext <<_ACEOF
3043/* end confdefs.h.  */
3044
3045int
3046main ()
3047{
3048
3049  ;
3050  return 0;
3051}
3052_ACEOF
3053rm -f conftest.$ac_objext
3054if { (ac_try="$ac_compile"
3055case "(($ac_try" in
3056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057  *) ac_try_echo=$ac_try;;
3058esac
3059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3060  (eval "$ac_compile") 2>conftest.er1
3061  ac_status=$?
3062  grep -v '^ *+' conftest.er1 >conftest.err
3063  rm -f conftest.er1
3064  cat conftest.err >&5
3065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066  (exit $ac_status); } &&
3067	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3068  { (case "(($ac_try" in
3069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070  *) ac_try_echo=$ac_try;;
3071esac
3072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073  (eval "$ac_try") 2>&5
3074  ac_status=$?
3075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076  (exit $ac_status); }; } &&
3077	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3087  ac_cv_prog_cc_g=yes
3088else
3089  echo "$as_me: failed program was:" >&5
3090sed 's/^/| /' conftest.$ac_ext >&5
3091
3092	CFLAGS=""
3093      cat >conftest.$ac_ext <<_ACEOF
3094/* confdefs.h.  */
3095_ACEOF
3096cat confdefs.h >>conftest.$ac_ext
3097cat >>conftest.$ac_ext <<_ACEOF
3098/* end confdefs.h.  */
3099
3100int
3101main ()
3102{
3103
3104  ;
3105  return 0;
3106}
3107_ACEOF
3108rm -f conftest.$ac_objext
3109if { (ac_try="$ac_compile"
3110case "(($ac_try" in
3111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112  *) ac_try_echo=$ac_try;;
3113esac
3114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115  (eval "$ac_compile") 2>conftest.er1
3116  ac_status=$?
3117  grep -v '^ *+' conftest.er1 >conftest.err
3118  rm -f conftest.er1
3119  cat conftest.err >&5
3120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121  (exit $ac_status); } &&
3122	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3123  { (case "(($ac_try" in
3124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125  *) ac_try_echo=$ac_try;;
3126esac
3127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128  (eval "$ac_try") 2>&5
3129  ac_status=$?
3130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131  (exit $ac_status); }; } &&
3132	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3142  :
3143else
3144  echo "$as_me: failed program was:" >&5
3145sed 's/^/| /' conftest.$ac_ext >&5
3146
3147	ac_c_werror_flag=$ac_save_c_werror_flag
3148	 CFLAGS="-g"
3149	 cat >conftest.$ac_ext <<_ACEOF
3150/* confdefs.h.  */
3151_ACEOF
3152cat confdefs.h >>conftest.$ac_ext
3153cat >>conftest.$ac_ext <<_ACEOF
3154/* end confdefs.h.  */
3155
3156int
3157main ()
3158{
3159
3160  ;
3161  return 0;
3162}
3163_ACEOF
3164rm -f conftest.$ac_objext
3165if { (ac_try="$ac_compile"
3166case "(($ac_try" in
3167  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168  *) ac_try_echo=$ac_try;;
3169esac
3170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171  (eval "$ac_compile") 2>conftest.er1
3172  ac_status=$?
3173  grep -v '^ *+' conftest.er1 >conftest.err
3174  rm -f conftest.er1
3175  cat conftest.err >&5
3176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177  (exit $ac_status); } &&
3178	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3179  { (case "(($ac_try" in
3180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181  *) ac_try_echo=$ac_try;;
3182esac
3183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184  (eval "$ac_try") 2>&5
3185  ac_status=$?
3186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187  (exit $ac_status); }; } &&
3188	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3198  ac_cv_prog_cc_g=yes
3199else
3200  echo "$as_me: failed program was:" >&5
3201sed 's/^/| /' conftest.$ac_ext >&5
3202
3203
3204fi
3205
3206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207fi
3208
3209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3210fi
3211
3212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3213   ac_c_werror_flag=$ac_save_c_werror_flag
3214fi
3215{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3216echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3217if test "$ac_test_CFLAGS" = set; then
3218  CFLAGS=$ac_save_CFLAGS
3219elif test $ac_cv_prog_cc_g = yes; then
3220  if test "$GCC" = yes; then
3221    CFLAGS="-g -O2"
3222  else
3223    CFLAGS="-g"
3224  fi
3225else
3226  if test "$GCC" = yes; then
3227    CFLAGS="-O2"
3228  else
3229    CFLAGS=
3230  fi
3231fi
3232{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3233echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3234if test "${ac_cv_prog_cc_c89+set}" = set; then
3235  echo $ECHO_N "(cached) $ECHO_C" >&6
3236else
3237  ac_cv_prog_cc_c89=no
3238ac_save_CC=$CC
3239cat >conftest.$ac_ext <<_ACEOF
3240/* confdefs.h.  */
3241_ACEOF
3242cat confdefs.h >>conftest.$ac_ext
3243cat >>conftest.$ac_ext <<_ACEOF
3244/* end confdefs.h.  */
3245#include <stdarg.h>
3246#include <stdio.h>
3247#include <sys/types.h>
3248#include <sys/stat.h>
3249/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3250struct buf { int x; };
3251FILE * (*rcsopen) (struct buf *, struct stat *, int);
3252static char *e (p, i)
3253     char **p;
3254     int i;
3255{
3256  return p[i];
3257}
3258static char *f (char * (*g) (char **, int), char **p, ...)
3259{
3260  char *s;
3261  va_list v;
3262  va_start (v,p);
3263  s = g (p, va_arg (v,int));
3264  va_end (v);
3265  return s;
3266}
3267
3268/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3269   function prototypes and stuff, but not '\xHH' hex character constants.
3270   These don't provoke an error unfortunately, instead are silently treated
3271   as 'x'.  The following induces an error, until -std is added to get
3272   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3273   array size at least.  It's necessary to write '\x00'==0 to get something
3274   that's true only with -std.  */
3275int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3276
3277/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3278   inside strings and character constants.  */
3279#define FOO(x) 'x'
3280int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3281
3282int test (int i, double x);
3283struct s1 {int (*f) (int a);};
3284struct s2 {int (*f) (double a);};
3285int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3286int argc;
3287char **argv;
3288int
3289main ()
3290{
3291return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3292  ;
3293  return 0;
3294}
3295_ACEOF
3296for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3297	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3298do
3299  CC="$ac_save_CC $ac_arg"
3300  rm -f conftest.$ac_objext
3301if { (ac_try="$ac_compile"
3302case "(($ac_try" in
3303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304  *) ac_try_echo=$ac_try;;
3305esac
3306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3307  (eval "$ac_compile") 2>conftest.er1
3308  ac_status=$?
3309  grep -v '^ *+' conftest.er1 >conftest.err
3310  rm -f conftest.er1
3311  cat conftest.err >&5
3312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313  (exit $ac_status); } &&
3314	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3315  { (case "(($ac_try" in
3316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317  *) ac_try_echo=$ac_try;;
3318esac
3319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3320  (eval "$ac_try") 2>&5
3321  ac_status=$?
3322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323  (exit $ac_status); }; } &&
3324	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3334  ac_cv_prog_cc_c89=$ac_arg
3335else
3336  echo "$as_me: failed program was:" >&5
3337sed 's/^/| /' conftest.$ac_ext >&5
3338
3339
3340fi
3341
3342rm -f core conftest.err conftest.$ac_objext
3343  test "x$ac_cv_prog_cc_c89" != "xno" && break
3344done
3345rm -f conftest.$ac_ext
3346CC=$ac_save_CC
3347
3348fi
3349# AC_CACHE_VAL
3350case "x$ac_cv_prog_cc_c89" in
3351  x)
3352    { echo "$as_me:$LINENO: result: none needed" >&5
3353echo "${ECHO_T}none needed" >&6; } ;;
3354  xno)
3355    { echo "$as_me:$LINENO: result: unsupported" >&5
3356echo "${ECHO_T}unsupported" >&6; } ;;
3357  *)
3358    CC="$CC $ac_cv_prog_cc_c89"
3359    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3360echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3361esac
3362
3363
3364ac_ext=c
3365ac_cpp='$CPP $CPPFLAGS'
3366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3368ac_compiler_gnu=$ac_cv_c_compiler_gnu
3369
3370
3371ac_ext=c
3372ac_cpp='$CPP $CPPFLAGS'
3373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3375ac_compiler_gnu=$ac_cv_c_compiler_gnu
3376{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3377echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3378# On Suns, sometimes $CPP names a directory.
3379if test -n "$CPP" && test -d "$CPP"; then
3380  CPP=
3381fi
3382if test -z "$CPP"; then
3383  if test "${ac_cv_prog_CPP+set}" = set; then
3384  echo $ECHO_N "(cached) $ECHO_C" >&6
3385else
3386      # Double quotes because CPP needs to be expanded
3387    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3388    do
3389      ac_preproc_ok=false
3390for ac_c_preproc_warn_flag in '' yes
3391do
3392  # Use a header file that comes with gcc, so configuring glibc
3393  # with a fresh cross-compiler works.
3394  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3395  # <limits.h> exists even on freestanding compilers.
3396  # On the NeXT, cc -E runs the code through the compiler's parser,
3397  # not just through cpp. "Syntax error" is here to catch this case.
3398  cat >conftest.$ac_ext <<_ACEOF
3399/* confdefs.h.  */
3400_ACEOF
3401cat confdefs.h >>conftest.$ac_ext
3402cat >>conftest.$ac_ext <<_ACEOF
3403/* end confdefs.h.  */
3404#ifdef __STDC__
3405# include <limits.h>
3406#else
3407# include <assert.h>
3408#endif
3409		     Syntax error
3410_ACEOF
3411if { (ac_try="$ac_cpp conftest.$ac_ext"
3412case "(($ac_try" in
3413  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414  *) ac_try_echo=$ac_try;;
3415esac
3416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3417  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3418  ac_status=$?
3419  grep -v '^ *+' conftest.er1 >conftest.err
3420  rm -f conftest.er1
3421  cat conftest.err >&5
3422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423  (exit $ac_status); } >/dev/null; then
3424  if test -s conftest.err; then
3425    ac_cpp_err=$ac_c_preproc_warn_flag
3426    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3427  else
3428    ac_cpp_err=
3429  fi
3430else
3431  ac_cpp_err=yes
3432fi
3433if test -z "$ac_cpp_err"; then
3434  :
3435else
3436  echo "$as_me: failed program was:" >&5
3437sed 's/^/| /' conftest.$ac_ext >&5
3438
3439  # Broken: fails on valid input.
3440continue
3441fi
3442
3443rm -f conftest.err conftest.$ac_ext
3444
3445  # OK, works on sane cases.  Now check whether nonexistent headers
3446  # can be detected and how.
3447  cat >conftest.$ac_ext <<_ACEOF
3448/* confdefs.h.  */
3449_ACEOF
3450cat confdefs.h >>conftest.$ac_ext
3451cat >>conftest.$ac_ext <<_ACEOF
3452/* end confdefs.h.  */
3453#include <ac_nonexistent.h>
3454_ACEOF
3455if { (ac_try="$ac_cpp conftest.$ac_ext"
3456case "(($ac_try" in
3457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458  *) ac_try_echo=$ac_try;;
3459esac
3460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3461  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3462  ac_status=$?
3463  grep -v '^ *+' conftest.er1 >conftest.err
3464  rm -f conftest.er1
3465  cat conftest.err >&5
3466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467  (exit $ac_status); } >/dev/null; then
3468  if test -s conftest.err; then
3469    ac_cpp_err=$ac_c_preproc_warn_flag
3470    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3471  else
3472    ac_cpp_err=
3473  fi
3474else
3475  ac_cpp_err=yes
3476fi
3477if test -z "$ac_cpp_err"; then
3478  # Broken: success on invalid input.
3479continue
3480else
3481  echo "$as_me: failed program was:" >&5
3482sed 's/^/| /' conftest.$ac_ext >&5
3483
3484  # Passes both tests.
3485ac_preproc_ok=:
3486break
3487fi
3488
3489rm -f conftest.err conftest.$ac_ext
3490
3491done
3492# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3493rm -f conftest.err conftest.$ac_ext
3494if $ac_preproc_ok; then
3495  break
3496fi
3497
3498    done
3499    ac_cv_prog_CPP=$CPP
3500
3501fi
3502  CPP=$ac_cv_prog_CPP
3503else
3504  ac_cv_prog_CPP=$CPP
3505fi
3506{ echo "$as_me:$LINENO: result: $CPP" >&5
3507echo "${ECHO_T}$CPP" >&6; }
3508ac_preproc_ok=false
3509for ac_c_preproc_warn_flag in '' yes
3510do
3511  # Use a header file that comes with gcc, so configuring glibc
3512  # with a fresh cross-compiler works.
3513  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3514  # <limits.h> exists even on freestanding compilers.
3515  # On the NeXT, cc -E runs the code through the compiler's parser,
3516  # not just through cpp. "Syntax error" is here to catch this case.
3517  cat >conftest.$ac_ext <<_ACEOF
3518/* confdefs.h.  */
3519_ACEOF
3520cat confdefs.h >>conftest.$ac_ext
3521cat >>conftest.$ac_ext <<_ACEOF
3522/* end confdefs.h.  */
3523#ifdef __STDC__
3524# include <limits.h>
3525#else
3526# include <assert.h>
3527#endif
3528		     Syntax error
3529_ACEOF
3530if { (ac_try="$ac_cpp conftest.$ac_ext"
3531case "(($ac_try" in
3532  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533  *) ac_try_echo=$ac_try;;
3534esac
3535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3536  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3537  ac_status=$?
3538  grep -v '^ *+' conftest.er1 >conftest.err
3539  rm -f conftest.er1
3540  cat conftest.err >&5
3541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542  (exit $ac_status); } >/dev/null; then
3543  if test -s conftest.err; then
3544    ac_cpp_err=$ac_c_preproc_warn_flag
3545    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3546  else
3547    ac_cpp_err=
3548  fi
3549else
3550  ac_cpp_err=yes
3551fi
3552if test -z "$ac_cpp_err"; then
3553  :
3554else
3555  echo "$as_me: failed program was:" >&5
3556sed 's/^/| /' conftest.$ac_ext >&5
3557
3558  # Broken: fails on valid input.
3559continue
3560fi
3561
3562rm -f conftest.err conftest.$ac_ext
3563
3564  # OK, works on sane cases.  Now check whether nonexistent headers
3565  # can be detected and how.
3566  cat >conftest.$ac_ext <<_ACEOF
3567/* confdefs.h.  */
3568_ACEOF
3569cat confdefs.h >>conftest.$ac_ext
3570cat >>conftest.$ac_ext <<_ACEOF
3571/* end confdefs.h.  */
3572#include <ac_nonexistent.h>
3573_ACEOF
3574if { (ac_try="$ac_cpp conftest.$ac_ext"
3575case "(($ac_try" in
3576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577  *) ac_try_echo=$ac_try;;
3578esac
3579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3580  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3581  ac_status=$?
3582  grep -v '^ *+' conftest.er1 >conftest.err
3583  rm -f conftest.er1
3584  cat conftest.err >&5
3585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586  (exit $ac_status); } >/dev/null; then
3587  if test -s conftest.err; then
3588    ac_cpp_err=$ac_c_preproc_warn_flag
3589    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3590  else
3591    ac_cpp_err=
3592  fi
3593else
3594  ac_cpp_err=yes
3595fi
3596if test -z "$ac_cpp_err"; then
3597  # Broken: success on invalid input.
3598continue
3599else
3600  echo "$as_me: failed program was:" >&5
3601sed 's/^/| /' conftest.$ac_ext >&5
3602
3603  # Passes both tests.
3604ac_preproc_ok=:
3605break
3606fi
3607
3608rm -f conftest.err conftest.$ac_ext
3609
3610done
3611# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3612rm -f conftest.err conftest.$ac_ext
3613if $ac_preproc_ok; then
3614  :
3615else
3616  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3617See \`config.log' for more details." >&5
3618echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3619See \`config.log' for more details." >&2;}
3620   { (exit 1); exit 1; }; }
3621fi
3622
3623ac_ext=c
3624ac_cpp='$CPP $CPPFLAGS'
3625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3627ac_compiler_gnu=$ac_cv_c_compiler_gnu
3628
3629
3630{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3631echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3632if test "${ac_cv_path_GREP+set}" = set; then
3633  echo $ECHO_N "(cached) $ECHO_C" >&6
3634else
3635  # Extract the first word of "grep ggrep" to use in msg output
3636if test -z "$GREP"; then
3637set dummy grep ggrep; ac_prog_name=$2
3638if test "${ac_cv_path_GREP+set}" = set; then
3639  echo $ECHO_N "(cached) $ECHO_C" >&6
3640else
3641  ac_path_GREP_found=false
3642# Loop through the user's path and test for each of PROGNAME-LIST
3643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3645do
3646  IFS=$as_save_IFS
3647  test -z "$as_dir" && as_dir=.
3648  for ac_prog in grep ggrep; do
3649  for ac_exec_ext in '' $ac_executable_extensions; do
3650    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3651    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3652    # Check for GNU ac_path_GREP and select it if it is found.
3653  # Check for GNU $ac_path_GREP
3654case `"$ac_path_GREP" --version 2>&1` in
3655*GNU*)
3656  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3657*)
3658  ac_count=0
3659  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3660  while :
3661  do
3662    cat "conftest.in" "conftest.in" >"conftest.tmp"
3663    mv "conftest.tmp" "conftest.in"
3664    cp "conftest.in" "conftest.nl"
3665    echo 'GREP' >> "conftest.nl"
3666    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3667    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3668    ac_count=`expr $ac_count + 1`
3669    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3670      # Best one so far, save it but keep looking for a better one
3671      ac_cv_path_GREP="$ac_path_GREP"
3672      ac_path_GREP_max=$ac_count
3673    fi
3674    # 10*(2^10) chars as input seems more than enough
3675    test $ac_count -gt 10 && break
3676  done
3677  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3678esac
3679
3680
3681    $ac_path_GREP_found && break 3
3682  done
3683done
3684
3685done
3686IFS=$as_save_IFS
3687
3688
3689fi
3690
3691GREP="$ac_cv_path_GREP"
3692if test -z "$GREP"; then
3693  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3694echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3695   { (exit 1); exit 1; }; }
3696fi
3697
3698else
3699  ac_cv_path_GREP=$GREP
3700fi
3701
3702
3703fi
3704{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3705echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3706 GREP="$ac_cv_path_GREP"
3707
3708
3709{ echo "$as_me:$LINENO: checking for egrep" >&5
3710echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3711if test "${ac_cv_path_EGREP+set}" = set; then
3712  echo $ECHO_N "(cached) $ECHO_C" >&6
3713else
3714  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3715   then ac_cv_path_EGREP="$GREP -E"
3716   else
3717     # Extract the first word of "egrep" to use in msg output
3718if test -z "$EGREP"; then
3719set dummy egrep; ac_prog_name=$2
3720if test "${ac_cv_path_EGREP+set}" = set; then
3721  echo $ECHO_N "(cached) $ECHO_C" >&6
3722else
3723  ac_path_EGREP_found=false
3724# Loop through the user's path and test for each of PROGNAME-LIST
3725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3727do
3728  IFS=$as_save_IFS
3729  test -z "$as_dir" && as_dir=.
3730  for ac_prog in egrep; do
3731  for ac_exec_ext in '' $ac_executable_extensions; do
3732    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3733    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3734    # Check for GNU ac_path_EGREP and select it if it is found.
3735  # Check for GNU $ac_path_EGREP
3736case `"$ac_path_EGREP" --version 2>&1` in
3737*GNU*)
3738  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3739*)
3740  ac_count=0
3741  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3742  while :
3743  do
3744    cat "conftest.in" "conftest.in" >"conftest.tmp"
3745    mv "conftest.tmp" "conftest.in"
3746    cp "conftest.in" "conftest.nl"
3747    echo 'EGREP' >> "conftest.nl"
3748    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3749    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3750    ac_count=`expr $ac_count + 1`
3751    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3752      # Best one so far, save it but keep looking for a better one
3753      ac_cv_path_EGREP="$ac_path_EGREP"
3754      ac_path_EGREP_max=$ac_count
3755    fi
3756    # 10*(2^10) chars as input seems more than enough
3757    test $ac_count -gt 10 && break
3758  done
3759  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3760esac
3761
3762
3763    $ac_path_EGREP_found && break 3
3764  done
3765done
3766
3767done
3768IFS=$as_save_IFS
3769
3770
3771fi
3772
3773EGREP="$ac_cv_path_EGREP"
3774if test -z "$EGREP"; then
3775  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3776echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3777   { (exit 1); exit 1; }; }
3778fi
3779
3780else
3781  ac_cv_path_EGREP=$EGREP
3782fi
3783
3784
3785   fi
3786fi
3787{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3788echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3789 EGREP="$ac_cv_path_EGREP"
3790
3791
3792{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3793echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3794if test "${ac_cv_header_stdc+set}" = set; then
3795  echo $ECHO_N "(cached) $ECHO_C" >&6
3796else
3797  cat >conftest.$ac_ext <<_ACEOF
3798/* confdefs.h.  */
3799_ACEOF
3800cat confdefs.h >>conftest.$ac_ext
3801cat >>conftest.$ac_ext <<_ACEOF
3802/* end confdefs.h.  */
3803#include <stdlib.h>
3804#include <stdarg.h>
3805#include <string.h>
3806#include <float.h>
3807
3808int
3809main ()
3810{
3811
3812  ;
3813  return 0;
3814}
3815_ACEOF
3816rm -f conftest.$ac_objext
3817if { (ac_try="$ac_compile"
3818case "(($ac_try" in
3819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820  *) ac_try_echo=$ac_try;;
3821esac
3822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3823  (eval "$ac_compile") 2>conftest.er1
3824  ac_status=$?
3825  grep -v '^ *+' conftest.er1 >conftest.err
3826  rm -f conftest.er1
3827  cat conftest.err >&5
3828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829  (exit $ac_status); } &&
3830	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3831  { (case "(($ac_try" in
3832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3833  *) ac_try_echo=$ac_try;;
3834esac
3835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3836  (eval "$ac_try") 2>&5
3837  ac_status=$?
3838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839  (exit $ac_status); }; } &&
3840	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3850  ac_cv_header_stdc=yes
3851else
3852  echo "$as_me: failed program was:" >&5
3853sed 's/^/| /' conftest.$ac_ext >&5
3854
3855	ac_cv_header_stdc=no
3856fi
3857
3858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3859
3860if test $ac_cv_header_stdc = yes; then
3861  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3862  cat >conftest.$ac_ext <<_ACEOF
3863/* confdefs.h.  */
3864_ACEOF
3865cat confdefs.h >>conftest.$ac_ext
3866cat >>conftest.$ac_ext <<_ACEOF
3867/* end confdefs.h.  */
3868#include <string.h>
3869
3870_ACEOF
3871if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3872  $EGREP "memchr" >/dev/null 2>&1; then
3873  :
3874else
3875  ac_cv_header_stdc=no
3876fi
3877rm -f conftest*
3878
3879fi
3880
3881if test $ac_cv_header_stdc = yes; then
3882  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3883  cat >conftest.$ac_ext <<_ACEOF
3884/* confdefs.h.  */
3885_ACEOF
3886cat confdefs.h >>conftest.$ac_ext
3887cat >>conftest.$ac_ext <<_ACEOF
3888/* end confdefs.h.  */
3889#include <stdlib.h>
3890
3891_ACEOF
3892if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3893  $EGREP "free" >/dev/null 2>&1; then
3894  :
3895else
3896  ac_cv_header_stdc=no
3897fi
3898rm -f conftest*
3899
3900fi
3901
3902if test $ac_cv_header_stdc = yes; then
3903  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3904  if test "$cross_compiling" = yes; then
3905  :
3906else
3907  cat >conftest.$ac_ext <<_ACEOF
3908/* confdefs.h.  */
3909_ACEOF
3910cat confdefs.h >>conftest.$ac_ext
3911cat >>conftest.$ac_ext <<_ACEOF
3912/* end confdefs.h.  */
3913#include <ctype.h>
3914#include <stdlib.h>
3915#if ((' ' & 0x0FF) == 0x020)
3916# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3917# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3918#else
3919# define ISLOWER(c) \
3920		   (('a' <= (c) && (c) <= 'i') \
3921		     || ('j' <= (c) && (c) <= 'r') \
3922		     || ('s' <= (c) && (c) <= 'z'))
3923# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3924#endif
3925
3926#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3927int
3928main ()
3929{
3930  int i;
3931  for (i = 0; i < 256; i++)
3932    if (XOR (islower (i), ISLOWER (i))
3933	|| toupper (i) != TOUPPER (i))
3934      return 2;
3935  return 0;
3936}
3937_ACEOF
3938rm -f conftest$ac_exeext
3939if { (ac_try="$ac_link"
3940case "(($ac_try" in
3941  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942  *) ac_try_echo=$ac_try;;
3943esac
3944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3945  (eval "$ac_link") 2>&5
3946  ac_status=$?
3947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3949  { (case "(($ac_try" in
3950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951  *) ac_try_echo=$ac_try;;
3952esac
3953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3954  (eval "$ac_try") 2>&5
3955  ac_status=$?
3956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957  (exit $ac_status); }; }; then
3958  :
3959else
3960  echo "$as_me: program exited with status $ac_status" >&5
3961echo "$as_me: failed program was:" >&5
3962sed 's/^/| /' conftest.$ac_ext >&5
3963
3964( exit $ac_status )
3965ac_cv_header_stdc=no
3966fi
3967rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3968fi
3969
3970
3971fi
3972fi
3973{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3974echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3975if test $ac_cv_header_stdc = yes; then
3976
3977cat >>confdefs.h <<\_ACEOF
3978#define STDC_HEADERS 1
3979_ACEOF
3980
3981fi
3982
3983# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3994		  inttypes.h stdint.h unistd.h
3995do
3996as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3997{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3998echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3999if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4000  echo $ECHO_N "(cached) $ECHO_C" >&6
4001else
4002  cat >conftest.$ac_ext <<_ACEOF
4003/* confdefs.h.  */
4004_ACEOF
4005cat confdefs.h >>conftest.$ac_ext
4006cat >>conftest.$ac_ext <<_ACEOF
4007/* end confdefs.h.  */
4008$ac_includes_default
4009
4010#include <$ac_header>
4011_ACEOF
4012rm -f conftest.$ac_objext
4013if { (ac_try="$ac_compile"
4014case "(($ac_try" in
4015  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016  *) ac_try_echo=$ac_try;;
4017esac
4018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4019  (eval "$ac_compile") 2>conftest.er1
4020  ac_status=$?
4021  grep -v '^ *+' conftest.er1 >conftest.err
4022  rm -f conftest.er1
4023  cat conftest.err >&5
4024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025  (exit $ac_status); } &&
4026	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4027  { (case "(($ac_try" in
4028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029  *) ac_try_echo=$ac_try;;
4030esac
4031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4032  (eval "$ac_try") 2>&5
4033  ac_status=$?
4034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035  (exit $ac_status); }; } &&
4036	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4046  eval "$as_ac_Header=yes"
4047else
4048  echo "$as_me: failed program was:" >&5
4049sed 's/^/| /' conftest.$ac_ext >&5
4050
4051	eval "$as_ac_Header=no"
4052fi
4053
4054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4055fi
4056ac_res=`eval echo '${'$as_ac_Header'}'`
4057	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4058echo "${ECHO_T}$ac_res" >&6; }
4059if test `eval echo '${'$as_ac_Header'}'` = yes; then
4060  cat >>confdefs.h <<_ACEOF
4061#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4062_ACEOF
4063
4064fi
4065
4066done
4067
4068
4069{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4070echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4071if test "${ac_cv_c_bigendian+set}" = set; then
4072  echo $ECHO_N "(cached) $ECHO_C" >&6
4073else
4074  # See if sys/param.h defines the BYTE_ORDER macro.
4075cat >conftest.$ac_ext <<_ACEOF
4076/* confdefs.h.  */
4077_ACEOF
4078cat confdefs.h >>conftest.$ac_ext
4079cat >>conftest.$ac_ext <<_ACEOF
4080/* end confdefs.h.  */
4081#include <sys/types.h>
4082#include <sys/param.h>
4083
4084int
4085main ()
4086{
4087#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4088 bogus endian macros
4089#endif
4090
4091  ;
4092  return 0;
4093}
4094_ACEOF
4095rm -f conftest.$ac_objext
4096if { (ac_try="$ac_compile"
4097case "(($ac_try" in
4098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099  *) ac_try_echo=$ac_try;;
4100esac
4101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4102  (eval "$ac_compile") 2>conftest.er1
4103  ac_status=$?
4104  grep -v '^ *+' conftest.er1 >conftest.err
4105  rm -f conftest.er1
4106  cat conftest.err >&5
4107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108  (exit $ac_status); } &&
4109	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4110  { (case "(($ac_try" in
4111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112  *) ac_try_echo=$ac_try;;
4113esac
4114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4115  (eval "$ac_try") 2>&5
4116  ac_status=$?
4117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118  (exit $ac_status); }; } &&
4119	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4129  # It does; now see whether it defined to BIG_ENDIAN or not.
4130cat >conftest.$ac_ext <<_ACEOF
4131/* confdefs.h.  */
4132_ACEOF
4133cat confdefs.h >>conftest.$ac_ext
4134cat >>conftest.$ac_ext <<_ACEOF
4135/* end confdefs.h.  */
4136#include <sys/types.h>
4137#include <sys/param.h>
4138
4139int
4140main ()
4141{
4142#if BYTE_ORDER != BIG_ENDIAN
4143 not big endian
4144#endif
4145
4146  ;
4147  return 0;
4148}
4149_ACEOF
4150rm -f conftest.$ac_objext
4151if { (ac_try="$ac_compile"
4152case "(($ac_try" in
4153  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154  *) ac_try_echo=$ac_try;;
4155esac
4156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4157  (eval "$ac_compile") 2>conftest.er1
4158  ac_status=$?
4159  grep -v '^ *+' conftest.er1 >conftest.err
4160  rm -f conftest.er1
4161  cat conftest.err >&5
4162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163  (exit $ac_status); } &&
4164	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4165  { (case "(($ac_try" in
4166  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167  *) ac_try_echo=$ac_try;;
4168esac
4169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4170  (eval "$ac_try") 2>&5
4171  ac_status=$?
4172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173  (exit $ac_status); }; } &&
4174	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4184  ac_cv_c_bigendian=yes
4185else
4186  echo "$as_me: failed program was:" >&5
4187sed 's/^/| /' conftest.$ac_ext >&5
4188
4189	ac_cv_c_bigendian=no
4190fi
4191
4192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4193else
4194  echo "$as_me: failed program was:" >&5
4195sed 's/^/| /' conftest.$ac_ext >&5
4196
4197	# It does not; compile a test program.
4198if test "$cross_compiling" = yes; then
4199  # try to guess the endianness by grepping values into an object file
4200  ac_cv_c_bigendian=unknown
4201  cat >conftest.$ac_ext <<_ACEOF
4202/* confdefs.h.  */
4203_ACEOF
4204cat confdefs.h >>conftest.$ac_ext
4205cat >>conftest.$ac_ext <<_ACEOF
4206/* end confdefs.h.  */
4207short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4208short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4209void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4210short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4211short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4212void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4213int
4214main ()
4215{
4216 _ascii (); _ebcdic ();
4217  ;
4218  return 0;
4219}
4220_ACEOF
4221rm -f conftest.$ac_objext
4222if { (ac_try="$ac_compile"
4223case "(($ac_try" in
4224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225  *) ac_try_echo=$ac_try;;
4226esac
4227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4228  (eval "$ac_compile") 2>conftest.er1
4229  ac_status=$?
4230  grep -v '^ *+' conftest.er1 >conftest.err
4231  rm -f conftest.er1
4232  cat conftest.err >&5
4233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234  (exit $ac_status); } &&
4235	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4236  { (case "(($ac_try" in
4237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238  *) ac_try_echo=$ac_try;;
4239esac
4240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4241  (eval "$ac_try") 2>&5
4242  ac_status=$?
4243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244  (exit $ac_status); }; } &&
4245	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4255  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4256  ac_cv_c_bigendian=yes
4257fi
4258if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4259  if test "$ac_cv_c_bigendian" = unknown; then
4260    ac_cv_c_bigendian=no
4261  else
4262    # finding both strings is unlikely to happen, but who knows?
4263    ac_cv_c_bigendian=unknown
4264  fi
4265fi
4266else
4267  echo "$as_me: failed program was:" >&5
4268sed 's/^/| /' conftest.$ac_ext >&5
4269
4270
4271fi
4272
4273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4274else
4275  cat >conftest.$ac_ext <<_ACEOF
4276/* confdefs.h.  */
4277_ACEOF
4278cat confdefs.h >>conftest.$ac_ext
4279cat >>conftest.$ac_ext <<_ACEOF
4280/* end confdefs.h.  */
4281$ac_includes_default
4282int
4283main ()
4284{
4285
4286  /* Are we little or big endian?  From Harbison&Steele.  */
4287  union
4288  {
4289    long int l;
4290    char c[sizeof (long int)];
4291  } u;
4292  u.l = 1;
4293  return u.c[sizeof (long int) - 1] == 1;
4294
4295  ;
4296  return 0;
4297}
4298_ACEOF
4299rm -f conftest$ac_exeext
4300if { (ac_try="$ac_link"
4301case "(($ac_try" in
4302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303  *) ac_try_echo=$ac_try;;
4304esac
4305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4306  (eval "$ac_link") 2>&5
4307  ac_status=$?
4308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4310  { (case "(($ac_try" in
4311  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312  *) ac_try_echo=$ac_try;;
4313esac
4314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4315  (eval "$ac_try") 2>&5
4316  ac_status=$?
4317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318  (exit $ac_status); }; }; then
4319  ac_cv_c_bigendian=no
4320else
4321  echo "$as_me: program exited with status $ac_status" >&5
4322echo "$as_me: failed program was:" >&5
4323sed 's/^/| /' conftest.$ac_ext >&5
4324
4325( exit $ac_status )
4326ac_cv_c_bigendian=yes
4327fi
4328rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4329fi
4330
4331
4332fi
4333
4334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4335fi
4336{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4337echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4338case $ac_cv_c_bigendian in
4339  yes)
4340    ENDIAN=big
4341 ;;
4342  no)
4343    ENDIAN=little
4344 ;;
4345  *)
4346    { { echo "$as_me:$LINENO: error: unknown endianness
4347presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4348echo "$as_me: error: unknown endianness
4349presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4350   { (exit 1); exit 1; }; } ;;
4351esac
4352
4353
4354if test "$cross_compiling" = yes; then
4355  LLVM_CROSS_COMPILING=1
4356
4357
4358{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4359echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4360if test "${ac_cv_build_exeext+set}" = set; then
4361  echo $ECHO_N "(cached) $ECHO_C" >&6
4362else
4363  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4364  ac_cv_build_exeext=.exe
4365else
4366  ac_build_prefix=${build_alias}-
4367
4368  # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4369set dummy ${ac_build_prefix}gcc; ac_word=$2
4370{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4372if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4373  echo $ECHO_N "(cached) $ECHO_C" >&6
4374else
4375  if test -n "$BUILD_CC"; then
4376  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4377else
4378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379for as_dir in $PATH
4380do
4381  IFS=$as_save_IFS
4382  test -z "$as_dir" && as_dir=.
4383  for ac_exec_ext in '' $ac_executable_extensions; do
4384  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4385    ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4386    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4387    break 2
4388  fi
4389done
4390done
4391IFS=$as_save_IFS
4392
4393fi
4394fi
4395BUILD_CC=$ac_cv_prog_BUILD_CC
4396if test -n "$BUILD_CC"; then
4397  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4398echo "${ECHO_T}$BUILD_CC" >&6; }
4399else
4400  { echo "$as_me:$LINENO: result: no" >&5
4401echo "${ECHO_T}no" >&6; }
4402fi
4403
4404
4405  if test -z "$BUILD_CC"; then
4406     # Extract the first word of "gcc", so it can be a program name with args.
4407set dummy gcc; ac_word=$2
4408{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4410if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4411  echo $ECHO_N "(cached) $ECHO_C" >&6
4412else
4413  if test -n "$BUILD_CC"; then
4414  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4415else
4416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417for as_dir in $PATH
4418do
4419  IFS=$as_save_IFS
4420  test -z "$as_dir" && as_dir=.
4421  for ac_exec_ext in '' $ac_executable_extensions; do
4422  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4423    ac_cv_prog_BUILD_CC="gcc"
4424    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4425    break 2
4426  fi
4427done
4428done
4429IFS=$as_save_IFS
4430
4431fi
4432fi
4433BUILD_CC=$ac_cv_prog_BUILD_CC
4434if test -n "$BUILD_CC"; then
4435  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4436echo "${ECHO_T}$BUILD_CC" >&6; }
4437else
4438  { echo "$as_me:$LINENO: result: no" >&5
4439echo "${ECHO_T}no" >&6; }
4440fi
4441
4442
4443     if test -z "$BUILD_CC"; then
4444       # Extract the first word of "cc", so it can be a program name with args.
4445set dummy cc; ac_word=$2
4446{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4448if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4449  echo $ECHO_N "(cached) $ECHO_C" >&6
4450else
4451  if test -n "$BUILD_CC"; then
4452  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4453else
4454  ac_prog_rejected=no
4455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456for as_dir in $PATH
4457do
4458  IFS=$as_save_IFS
4459  test -z "$as_dir" && as_dir=.
4460  for ac_exec_ext in '' $ac_executable_extensions; do
4461  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4462    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4463       ac_prog_rejected=yes
4464       continue
4465     fi
4466    ac_cv_prog_BUILD_CC="cc"
4467    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4468    break 2
4469  fi
4470done
4471done
4472IFS=$as_save_IFS
4473
4474if test $ac_prog_rejected = yes; then
4475  # We found a bogon in the path, so make sure we never use it.
4476  set dummy $ac_cv_prog_BUILD_CC
4477  shift
4478  if test $# != 0; then
4479    # We chose a different compiler from the bogus one.
4480    # However, it has the same basename, so the bogon will be chosen
4481    # first if we set BUILD_CC to just the basename; use the full file name.
4482    shift
4483    ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4484  fi
4485fi
4486fi
4487fi
4488BUILD_CC=$ac_cv_prog_BUILD_CC
4489if test -n "$BUILD_CC"; then
4490  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4491echo "${ECHO_T}$BUILD_CC" >&6; }
4492else
4493  { echo "$as_me:$LINENO: result: no" >&5
4494echo "${ECHO_T}no" >&6; }
4495fi
4496
4497
4498     fi
4499  fi
4500  test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4501echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4502   { (exit 1); exit 1; }; }
4503  ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4504  rm -f conftest*
4505  echo 'int main () { return 0; }' > conftest.$ac_ext
4506  ac_cv_build_exeext=
4507  if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4508  (eval $ac_build_link) 2>&5
4509  ac_status=$?
4510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511  (exit $ac_status); }; then
4512    for file in conftest.*; do
4513      case $file in
4514      *.c | *.o | *.obj) ;;
4515      *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4516      esac
4517    done
4518  else
4519    { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4520echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4521   { (exit 1); exit 1; }; }
4522  fi
4523  rm -f conftest*
4524  test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4525fi
4526fi
4527
4528BUILD_EXEEXT=""
4529test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4530{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4531echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4532ac_build_exeext=$BUILD_EXEEXT
4533
4534else
4535  LLVM_CROSS_COMPILING=0
4536
4537fi
4538
4539if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4540  cvsbuild="yes"
4541  optimize="no"
4542  CVSBUILD=CVSBUILD=1
4543
4544else
4545  cvsbuild="no"
4546  optimize="yes"
4547fi
4548
4549
4550# Check whether --enable-optimized was given.
4551if test "${enable_optimized+set}" = set; then
4552  enableval=$enable_optimized;
4553else
4554  enableval=$optimize
4555fi
4556
4557if test ${enableval} = "no" ; then
4558  ENABLE_OPTIMIZED=
4559
4560else
4561  ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4562
4563fi
4564
4565# Check whether --enable-assertions was given.
4566if test "${enable_assertions+set}" = set; then
4567  enableval=$enable_assertions;
4568else
4569  enableval="yes"
4570fi
4571
4572if test ${enableval} = "yes" ; then
4573  DISABLE_ASSERTIONS=
4574
4575else
4576  DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4577
4578fi
4579
4580# Check whether --enable-debug-runtime was given.
4581if test "${enable_debug_runtime+set}" = set; then
4582  enableval=$enable_debug_runtime;
4583else
4584  enableval=no
4585fi
4586
4587if test ${enableval} = "no" ; then
4588  DEBUG_RUNTIME=
4589
4590else
4591  DEBUG_RUNTIME=DEBUG_RUNTIME=1
4592
4593fi
4594
4595# Check whether --enable-jit was given.
4596if test "${enable_jit+set}" = set; then
4597  enableval=$enable_jit;
4598else
4599  enableval=default
4600fi
4601
4602if test ${enableval} = "no"
4603then
4604  JIT=
4605
4606else
4607  case "$llvm_cv_target_arch" in
4608    x86)     TARGET_HAS_JIT=1
4609 ;;
4610    Sparc)   TARGET_HAS_JIT=0
4611 ;;
4612    PowerPC) TARGET_HAS_JIT=1
4613 ;;
4614    x86_64)  TARGET_HAS_JIT=1
4615 ;;
4616    Alpha)   TARGET_HAS_JIT=1
4617 ;;
4618    IA64)    TARGET_HAS_JIT=0
4619 ;;
4620    ARM)     TARGET_HAS_JIT=0
4621 ;;
4622    *)       TARGET_HAS_JIT=0
4623 ;;
4624  esac
4625fi
4626
4627# Check whether --enable-doxygen was given.
4628if test "${enable_doxygen+set}" = set; then
4629  enableval=$enable_doxygen;
4630else
4631  enableval=default
4632fi
4633
4634case "$enableval" in
4635  yes) ENABLE_DOXYGEN=1
4636 ;;
4637  no)  ENABLE_DOXYGEN=0
4638 ;;
4639  default) ENABLE_DOXYGEN=0
4640 ;;
4641  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4642echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4643   { (exit 1); exit 1; }; } ;;
4644esac
4645
4646# Check whether --enable-threads was given.
4647if test "${enable_threads+set}" = set; then
4648  enableval=$enable_threads;
4649else
4650  enableval=default
4651fi
4652
4653case "$enableval" in
4654  yes) ENABLE_THREADS=1
4655 ;;
4656  no)  ENABLE_THREADS=0
4657 ;;
4658  default) ENABLE_THREADS=1
4659 ;;
4660  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4661echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4662   { (exit 1); exit 1; }; } ;;
4663esac
4664
4665cat >>confdefs.h <<_ACEOF
4666#define ENABLE_THREADS $ENABLE_THREADS
4667_ACEOF
4668
4669
4670# Check whether --enable-pic was given.
4671if test "${enable_pic+set}" = set; then
4672  enableval=$enable_pic;
4673else
4674  enableval=default
4675fi
4676
4677case "$enableval" in
4678  yes) ENABLE_PIC=1
4679 ;;
4680  no)  ENABLE_PIC=0
4681 ;;
4682  default) ENABLE_PIC=0
4683 ;;
4684  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4685echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4686   { (exit 1); exit 1; }; } ;;
4687esac
4688
4689cat >>confdefs.h <<_ACEOF
4690#define ENABLE_PIC $ENABLE_PIC
4691_ACEOF
4692
4693
4694TARGETS_TO_BUILD=""
4695# Check whether --enable-targets was given.
4696if test "${enable_targets+set}" = set; then
4697  enableval=$enable_targets;
4698else
4699  enableval=all
4700fi
4701
4702case "$enableval" in
4703  all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
4704  host-only)
4705    case "$llvm_cv_target_arch" in
4706      x86)     TARGETS_TO_BUILD="X86" ;;
4707      x86_64)  TARGETS_TO_BUILD="X86" ;;
4708      Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4709      PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4710      Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4711      IA64)    TARGETS_TO_BUILD="IA64" ;;
4712      ARM)     TARGETS_TO_BUILD="ARM" ;;
4713      *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4714echo "$as_me: error: Can not set target to build" >&2;}
4715   { (exit 1); exit 1; }; } ;;
4716    esac
4717    ;;
4718  *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4719      case "$a_target" in
4720        x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4721        x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4722        sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4723        powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4724        alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4725        ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4726        arm)     TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4727        *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4728echo "$as_me: error: Unrecognized target $a_target" >&2;}
4729   { (exit 1); exit 1; }; } ;;
4730      esac
4731  done
4732  ;;
4733esac
4734TARGETS_TO_BUILD="CBackend MSIL $TARGETS_TO_BUILD"
4735TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4736
4737
4738# Check whether --enable-cbe-printf-a was given.
4739if test "${enable_cbe_printf_a+set}" = set; then
4740  enableval=$enable_cbe_printf_a;
4741else
4742  enableval=default
4743fi
4744
4745case "$enableval" in
4746  yes) ENABLE_CBE_PRINTF_A=1
4747 ;;
4748  no)  ENABLE_CBE_PRINTF_A=0
4749 ;;
4750  default)  ENABLE_CBE_PRINTF_A=1
4751 ;;
4752  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4753echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4754   { (exit 1); exit 1; }; } ;;
4755esac
4756
4757cat >>confdefs.h <<_ACEOF
4758#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4759_ACEOF
4760
4761
4762
4763# Check whether --with-llvmgccdir was given.
4764if test "${with_llvmgccdir+set}" = set; then
4765  withval=$with_llvmgccdir;
4766else
4767  withval=default
4768fi
4769
4770case "$withval" in
4771  default) WITH_LLVMGCCDIR=default ;;
4772  /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4773  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4774echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4775   { (exit 1); exit 1; }; } ;;
4776esac
4777
4778
4779# Check whether --with-extra-options was given.
4780if test "${with_extra_options+set}" = set; then
4781  withval=$with_extra_options;
4782else
4783  withval=default
4784fi
4785
4786case "$withval" in
4787  default) EXTRA_OPTIONS= ;;
4788  *) EXTRA_OPTIONS=$withval ;;
4789esac
4790EXTRA_OPTIONS=$EXTRA_OPTIONS
4791
4792
4793
4794ac_ext=c
4795ac_cpp='$CPP $CPPFLAGS'
4796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4798ac_compiler_gnu=$ac_cv_c_compiler_gnu
4799{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4800echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4801# On Suns, sometimes $CPP names a directory.
4802if test -n "$CPP" && test -d "$CPP"; then
4803  CPP=
4804fi
4805if test -z "$CPP"; then
4806  if test "${ac_cv_prog_CPP+set}" = set; then
4807  echo $ECHO_N "(cached) $ECHO_C" >&6
4808else
4809      # Double quotes because CPP needs to be expanded
4810    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4811    do
4812      ac_preproc_ok=false
4813for ac_c_preproc_warn_flag in '' yes
4814do
4815  # Use a header file that comes with gcc, so configuring glibc
4816  # with a fresh cross-compiler works.
4817  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4818  # <limits.h> exists even on freestanding compilers.
4819  # On the NeXT, cc -E runs the code through the compiler's parser,
4820  # not just through cpp. "Syntax error" is here to catch this case.
4821  cat >conftest.$ac_ext <<_ACEOF
4822/* confdefs.h.  */
4823_ACEOF
4824cat confdefs.h >>conftest.$ac_ext
4825cat >>conftest.$ac_ext <<_ACEOF
4826/* end confdefs.h.  */
4827#ifdef __STDC__
4828# include <limits.h>
4829#else
4830# include <assert.h>
4831#endif
4832		     Syntax error
4833_ACEOF
4834if { (ac_try="$ac_cpp conftest.$ac_ext"
4835case "(($ac_try" in
4836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4837  *) ac_try_echo=$ac_try;;
4838esac
4839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4840  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4841  ac_status=$?
4842  grep -v '^ *+' conftest.er1 >conftest.err
4843  rm -f conftest.er1
4844  cat conftest.err >&5
4845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846  (exit $ac_status); } >/dev/null; then
4847  if test -s conftest.err; then
4848    ac_cpp_err=$ac_c_preproc_warn_flag
4849    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4850  else
4851    ac_cpp_err=
4852  fi
4853else
4854  ac_cpp_err=yes
4855fi
4856if test -z "$ac_cpp_err"; then
4857  :
4858else
4859  echo "$as_me: failed program was:" >&5
4860sed 's/^/| /' conftest.$ac_ext >&5
4861
4862  # Broken: fails on valid input.
4863continue
4864fi
4865
4866rm -f conftest.err conftest.$ac_ext
4867
4868  # OK, works on sane cases.  Now check whether nonexistent headers
4869  # can be detected and how.
4870  cat >conftest.$ac_ext <<_ACEOF
4871/* confdefs.h.  */
4872_ACEOF
4873cat confdefs.h >>conftest.$ac_ext
4874cat >>conftest.$ac_ext <<_ACEOF
4875/* end confdefs.h.  */
4876#include <ac_nonexistent.h>
4877_ACEOF
4878if { (ac_try="$ac_cpp conftest.$ac_ext"
4879case "(($ac_try" in
4880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4881  *) ac_try_echo=$ac_try;;
4882esac
4883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4884  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4885  ac_status=$?
4886  grep -v '^ *+' conftest.er1 >conftest.err
4887  rm -f conftest.er1
4888  cat conftest.err >&5
4889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890  (exit $ac_status); } >/dev/null; then
4891  if test -s conftest.err; then
4892    ac_cpp_err=$ac_c_preproc_warn_flag
4893    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4894  else
4895    ac_cpp_err=
4896  fi
4897else
4898  ac_cpp_err=yes
4899fi
4900if test -z "$ac_cpp_err"; then
4901  # Broken: success on invalid input.
4902continue
4903else
4904  echo "$as_me: failed program was:" >&5
4905sed 's/^/| /' conftest.$ac_ext >&5
4906
4907  # Passes both tests.
4908ac_preproc_ok=:
4909break
4910fi
4911
4912rm -f conftest.err conftest.$ac_ext
4913
4914done
4915# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4916rm -f conftest.err conftest.$ac_ext
4917if $ac_preproc_ok; then
4918  break
4919fi
4920
4921    done
4922    ac_cv_prog_CPP=$CPP
4923
4924fi
4925  CPP=$ac_cv_prog_CPP
4926else
4927  ac_cv_prog_CPP=$CPP
4928fi
4929{ echo "$as_me:$LINENO: result: $CPP" >&5
4930echo "${ECHO_T}$CPP" >&6; }
4931ac_preproc_ok=false
4932for ac_c_preproc_warn_flag in '' yes
4933do
4934  # Use a header file that comes with gcc, so configuring glibc
4935  # with a fresh cross-compiler works.
4936  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4937  # <limits.h> exists even on freestanding compilers.
4938  # On the NeXT, cc -E runs the code through the compiler's parser,
4939  # not just through cpp. "Syntax error" is here to catch this case.
4940  cat >conftest.$ac_ext <<_ACEOF
4941/* confdefs.h.  */
4942_ACEOF
4943cat confdefs.h >>conftest.$ac_ext
4944cat >>conftest.$ac_ext <<_ACEOF
4945/* end confdefs.h.  */
4946#ifdef __STDC__
4947# include <limits.h>
4948#else
4949# include <assert.h>
4950#endif
4951		     Syntax error
4952_ACEOF
4953if { (ac_try="$ac_cpp conftest.$ac_ext"
4954case "(($ac_try" in
4955  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4956  *) ac_try_echo=$ac_try;;
4957esac
4958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4959  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4960  ac_status=$?
4961  grep -v '^ *+' conftest.er1 >conftest.err
4962  rm -f conftest.er1
4963  cat conftest.err >&5
4964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965  (exit $ac_status); } >/dev/null; then
4966  if test -s conftest.err; then
4967    ac_cpp_err=$ac_c_preproc_warn_flag
4968    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4969  else
4970    ac_cpp_err=
4971  fi
4972else
4973  ac_cpp_err=yes
4974fi
4975if test -z "$ac_cpp_err"; then
4976  :
4977else
4978  echo "$as_me: failed program was:" >&5
4979sed 's/^/| /' conftest.$ac_ext >&5
4980
4981  # Broken: fails on valid input.
4982continue
4983fi
4984
4985rm -f conftest.err conftest.$ac_ext
4986
4987  # OK, works on sane cases.  Now check whether nonexistent headers
4988  # can be detected and how.
4989  cat >conftest.$ac_ext <<_ACEOF
4990/* confdefs.h.  */
4991_ACEOF
4992cat confdefs.h >>conftest.$ac_ext
4993cat >>conftest.$ac_ext <<_ACEOF
4994/* end confdefs.h.  */
4995#include <ac_nonexistent.h>
4996_ACEOF
4997if { (ac_try="$ac_cpp conftest.$ac_ext"
4998case "(($ac_try" in
4999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5000  *) ac_try_echo=$ac_try;;
5001esac
5002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5003  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5004  ac_status=$?
5005  grep -v '^ *+' conftest.er1 >conftest.err
5006  rm -f conftest.er1
5007  cat conftest.err >&5
5008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009  (exit $ac_status); } >/dev/null; then
5010  if test -s conftest.err; then
5011    ac_cpp_err=$ac_c_preproc_warn_flag
5012    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5013  else
5014    ac_cpp_err=
5015  fi
5016else
5017  ac_cpp_err=yes
5018fi
5019if test -z "$ac_cpp_err"; then
5020  # Broken: success on invalid input.
5021continue
5022else
5023  echo "$as_me: failed program was:" >&5
5024sed 's/^/| /' conftest.$ac_ext >&5
5025
5026  # Passes both tests.
5027ac_preproc_ok=:
5028break
5029fi
5030
5031rm -f conftest.err conftest.$ac_ext
5032
5033done
5034# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5035rm -f conftest.err conftest.$ac_ext
5036if $ac_preproc_ok; then
5037  :
5038else
5039  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5040See \`config.log' for more details." >&5
5041echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5042See \`config.log' for more details." >&2;}
5043   { (exit 1); exit 1; }; }
5044fi
5045
5046ac_ext=c
5047ac_cpp='$CPP $CPPFLAGS'
5048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5050ac_compiler_gnu=$ac_cv_c_compiler_gnu
5051
5052ac_ext=c
5053ac_cpp='$CPP $CPPFLAGS'
5054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5056ac_compiler_gnu=$ac_cv_c_compiler_gnu
5057if test -n "$ac_tool_prefix"; then
5058  for ac_prog in gcc
5059  do
5060    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5061set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5062{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5064if test "${ac_cv_prog_CC+set}" = set; then
5065  echo $ECHO_N "(cached) $ECHO_C" >&6
5066else
5067  if test -n "$CC"; then
5068  ac_cv_prog_CC="$CC" # Let the user override the test.
5069else
5070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071for as_dir in $PATH
5072do
5073  IFS=$as_save_IFS
5074  test -z "$as_dir" && as_dir=.
5075  for ac_exec_ext in '' $ac_executable_extensions; do
5076  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5077    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5078    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5079    break 2
5080  fi
5081done
5082done
5083IFS=$as_save_IFS
5084
5085fi
5086fi
5087CC=$ac_cv_prog_CC
5088if test -n "$CC"; then
5089  { echo "$as_me:$LINENO: result: $CC" >&5
5090echo "${ECHO_T}$CC" >&6; }
5091else
5092  { echo "$as_me:$LINENO: result: no" >&5
5093echo "${ECHO_T}no" >&6; }
5094fi
5095
5096
5097    test -n "$CC" && break
5098  done
5099fi
5100if test -z "$CC"; then
5101  ac_ct_CC=$CC
5102  for ac_prog in gcc
5103do
5104  # Extract the first word of "$ac_prog", so it can be a program name with args.
5105set dummy $ac_prog; ac_word=$2
5106{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5108if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5109  echo $ECHO_N "(cached) $ECHO_C" >&6
5110else
5111  if test -n "$ac_ct_CC"; then
5112  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5113else
5114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115for as_dir in $PATH
5116do
5117  IFS=$as_save_IFS
5118  test -z "$as_dir" && as_dir=.
5119  for ac_exec_ext in '' $ac_executable_extensions; do
5120  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5121    ac_cv_prog_ac_ct_CC="$ac_prog"
5122    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5123    break 2
5124  fi
5125done
5126done
5127IFS=$as_save_IFS
5128
5129fi
5130fi
5131ac_ct_CC=$ac_cv_prog_ac_ct_CC
5132if test -n "$ac_ct_CC"; then
5133  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5134echo "${ECHO_T}$ac_ct_CC" >&6; }
5135else
5136  { echo "$as_me:$LINENO: result: no" >&5
5137echo "${ECHO_T}no" >&6; }
5138fi
5139
5140
5141  test -n "$ac_ct_CC" && break
5142done
5143
5144  if test "x$ac_ct_CC" = x; then
5145    CC=""
5146  else
5147    case $cross_compiling:$ac_tool_warned in
5148yes:)
5149{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5150whose name does not start with the host triplet.  If you think this
5151configuration is useful to you, please write to autoconf@gnu.org." >&5
5152echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5153whose name does not start with the host triplet.  If you think this
5154configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5155ac_tool_warned=yes ;;
5156esac
5157    CC=$ac_ct_CC
5158  fi
5159fi
5160
5161
5162test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5163See \`config.log' for more details." >&5
5164echo "$as_me: error: no acceptable C compiler found in \$PATH
5165See \`config.log' for more details." >&2;}
5166   { (exit 1); exit 1; }; }
5167
5168# Provide some information about the compiler.
5169echo "$as_me:$LINENO: checking for C compiler version" >&5
5170ac_compiler=`set X $ac_compile; echo $2`
5171{ (ac_try="$ac_compiler --version >&5"
5172case "(($ac_try" in
5173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5174  *) ac_try_echo=$ac_try;;
5175esac
5176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5177  (eval "$ac_compiler --version >&5") 2>&5
5178  ac_status=$?
5179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180  (exit $ac_status); }
5181{ (ac_try="$ac_compiler -v >&5"
5182case "(($ac_try" in
5183  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5184  *) ac_try_echo=$ac_try;;
5185esac
5186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5187  (eval "$ac_compiler -v >&5") 2>&5
5188  ac_status=$?
5189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190  (exit $ac_status); }
5191{ (ac_try="$ac_compiler -V >&5"
5192case "(($ac_try" in
5193  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5194  *) ac_try_echo=$ac_try;;
5195esac
5196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5197  (eval "$ac_compiler -V >&5") 2>&5
5198  ac_status=$?
5199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200  (exit $ac_status); }
5201
5202{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5203echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5204if test "${ac_cv_c_compiler_gnu+set}" = set; then
5205  echo $ECHO_N "(cached) $ECHO_C" >&6
5206else
5207  cat >conftest.$ac_ext <<_ACEOF
5208/* confdefs.h.  */
5209_ACEOF
5210cat confdefs.h >>conftest.$ac_ext
5211cat >>conftest.$ac_ext <<_ACEOF
5212/* end confdefs.h.  */
5213
5214int
5215main ()
5216{
5217#ifndef __GNUC__
5218       choke me
5219#endif
5220
5221  ;
5222  return 0;
5223}
5224_ACEOF
5225rm -f conftest.$ac_objext
5226if { (ac_try="$ac_compile"
5227case "(($ac_try" in
5228  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5229  *) ac_try_echo=$ac_try;;
5230esac
5231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5232  (eval "$ac_compile") 2>conftest.er1
5233  ac_status=$?
5234  grep -v '^ *+' conftest.er1 >conftest.err
5235  rm -f conftest.er1
5236  cat conftest.err >&5
5237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238  (exit $ac_status); } &&
5239	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5240  { (case "(($ac_try" in
5241  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5242  *) ac_try_echo=$ac_try;;
5243esac
5244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5245  (eval "$ac_try") 2>&5
5246  ac_status=$?
5247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248  (exit $ac_status); }; } &&
5249	 { ac_try='test -s conftest.$ac_objext'
5250  { (case "(($ac_try" in
5251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5252  *) ac_try_echo=$ac_try;;
5253esac
5254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5255  (eval "$ac_try") 2>&5
5256  ac_status=$?
5257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258  (exit $ac_status); }; }; then
5259  ac_compiler_gnu=yes
5260else
5261  echo "$as_me: failed program was:" >&5
5262sed 's/^/| /' conftest.$ac_ext >&5
5263
5264	ac_compiler_gnu=no
5265fi
5266
5267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5268ac_cv_c_compiler_gnu=$ac_compiler_gnu
5269
5270fi
5271{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5272echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5273GCC=`test $ac_compiler_gnu = yes && echo yes`
5274ac_test_CFLAGS=${CFLAGS+set}
5275ac_save_CFLAGS=$CFLAGS
5276{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5277echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5278if test "${ac_cv_prog_cc_g+set}" = set; then
5279  echo $ECHO_N "(cached) $ECHO_C" >&6
5280else
5281  ac_save_c_werror_flag=$ac_c_werror_flag
5282   ac_c_werror_flag=yes
5283   ac_cv_prog_cc_g=no
5284   CFLAGS="-g"
5285   cat >conftest.$ac_ext <<_ACEOF
5286/* confdefs.h.  */
5287_ACEOF
5288cat confdefs.h >>conftest.$ac_ext
5289cat >>conftest.$ac_ext <<_ACEOF
5290/* end confdefs.h.  */
5291
5292int
5293main ()
5294{
5295
5296  ;
5297  return 0;
5298}
5299_ACEOF
5300rm -f conftest.$ac_objext
5301if { (ac_try="$ac_compile"
5302case "(($ac_try" in
5303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5304  *) ac_try_echo=$ac_try;;
5305esac
5306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5307  (eval "$ac_compile") 2>conftest.er1
5308  ac_status=$?
5309  grep -v '^ *+' conftest.er1 >conftest.err
5310  rm -f conftest.er1
5311  cat conftest.err >&5
5312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313  (exit $ac_status); } &&
5314	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5315  { (case "(($ac_try" in
5316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5317  *) ac_try_echo=$ac_try;;
5318esac
5319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5320  (eval "$ac_try") 2>&5
5321  ac_status=$?
5322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323  (exit $ac_status); }; } &&
5324	 { ac_try='test -s conftest.$ac_objext'
5325  { (case "(($ac_try" in
5326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5327  *) ac_try_echo=$ac_try;;
5328esac
5329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5330  (eval "$ac_try") 2>&5
5331  ac_status=$?
5332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333  (exit $ac_status); }; }; then
5334  ac_cv_prog_cc_g=yes
5335else
5336  echo "$as_me: failed program was:" >&5
5337sed 's/^/| /' conftest.$ac_ext >&5
5338
5339	CFLAGS=""
5340      cat >conftest.$ac_ext <<_ACEOF
5341/* confdefs.h.  */
5342_ACEOF
5343cat confdefs.h >>conftest.$ac_ext
5344cat >>conftest.$ac_ext <<_ACEOF
5345/* end confdefs.h.  */
5346
5347int
5348main ()
5349{
5350
5351  ;
5352  return 0;
5353}
5354_ACEOF
5355rm -f conftest.$ac_objext
5356if { (ac_try="$ac_compile"
5357case "(($ac_try" in
5358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5359  *) ac_try_echo=$ac_try;;
5360esac
5361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5362  (eval "$ac_compile") 2>conftest.er1
5363  ac_status=$?
5364  grep -v '^ *+' conftest.er1 >conftest.err
5365  rm -f conftest.er1
5366  cat conftest.err >&5
5367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368  (exit $ac_status); } &&
5369	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5370  { (case "(($ac_try" in
5371  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5372  *) ac_try_echo=$ac_try;;
5373esac
5374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5375  (eval "$ac_try") 2>&5
5376  ac_status=$?
5377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378  (exit $ac_status); }; } &&
5379	 { ac_try='test -s conftest.$ac_objext'
5380  { (case "(($ac_try" in
5381  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5382  *) ac_try_echo=$ac_try;;
5383esac
5384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5385  (eval "$ac_try") 2>&5
5386  ac_status=$?
5387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388  (exit $ac_status); }; }; then
5389  :
5390else
5391  echo "$as_me: failed program was:" >&5
5392sed 's/^/| /' conftest.$ac_ext >&5
5393
5394	ac_c_werror_flag=$ac_save_c_werror_flag
5395	 CFLAGS="-g"
5396	 cat >conftest.$ac_ext <<_ACEOF
5397/* confdefs.h.  */
5398_ACEOF
5399cat confdefs.h >>conftest.$ac_ext
5400cat >>conftest.$ac_ext <<_ACEOF
5401/* end confdefs.h.  */
5402
5403int
5404main ()
5405{
5406
5407  ;
5408  return 0;
5409}
5410_ACEOF
5411rm -f conftest.$ac_objext
5412if { (ac_try="$ac_compile"
5413case "(($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_compile") 2>conftest.er1
5419  ac_status=$?
5420  grep -v '^ *+' conftest.er1 >conftest.err
5421  rm -f conftest.er1
5422  cat conftest.err >&5
5423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424  (exit $ac_status); } &&
5425	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5426  { (case "(($ac_try" in
5427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428  *) ac_try_echo=$ac_try;;
5429esac
5430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431  (eval "$ac_try") 2>&5
5432  ac_status=$?
5433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434  (exit $ac_status); }; } &&
5435	 { ac_try='test -s conftest.$ac_objext'
5436  { (case "(($ac_try" in
5437  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5438  *) ac_try_echo=$ac_try;;
5439esac
5440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5441  (eval "$ac_try") 2>&5
5442  ac_status=$?
5443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444  (exit $ac_status); }; }; then
5445  ac_cv_prog_cc_g=yes
5446else
5447  echo "$as_me: failed program was:" >&5
5448sed 's/^/| /' conftest.$ac_ext >&5
5449
5450
5451fi
5452
5453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5454fi
5455
5456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5457fi
5458
5459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460   ac_c_werror_flag=$ac_save_c_werror_flag
5461fi
5462{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5463echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5464if test "$ac_test_CFLAGS" = set; then
5465  CFLAGS=$ac_save_CFLAGS
5466elif test $ac_cv_prog_cc_g = yes; then
5467  if test "$GCC" = yes; then
5468    CFLAGS="-g -O2"
5469  else
5470    CFLAGS="-g"
5471  fi
5472else
5473  if test "$GCC" = yes; then
5474    CFLAGS="-O2"
5475  else
5476    CFLAGS=
5477  fi
5478fi
5479{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5480echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5481if test "${ac_cv_prog_cc_c89+set}" = set; then
5482  echo $ECHO_N "(cached) $ECHO_C" >&6
5483else
5484  ac_cv_prog_cc_c89=no
5485ac_save_CC=$CC
5486cat >conftest.$ac_ext <<_ACEOF
5487/* confdefs.h.  */
5488_ACEOF
5489cat confdefs.h >>conftest.$ac_ext
5490cat >>conftest.$ac_ext <<_ACEOF
5491/* end confdefs.h.  */
5492#include <stdarg.h>
5493#include <stdio.h>
5494#include <sys/types.h>
5495#include <sys/stat.h>
5496/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5497struct buf { int x; };
5498FILE * (*rcsopen) (struct buf *, struct stat *, int);
5499static char *e (p, i)
5500     char **p;
5501     int i;
5502{
5503  return p[i];
5504}
5505static char *f (char * (*g) (char **, int), char **p, ...)
5506{
5507  char *s;
5508  va_list v;
5509  va_start (v,p);
5510  s = g (p, va_arg (v,int));
5511  va_end (v);
5512  return s;
5513}
5514
5515/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5516   function prototypes and stuff, but not '\xHH' hex character constants.
5517   These don't provoke an error unfortunately, instead are silently treated
5518   as 'x'.  The following induces an error, until -std is added to get
5519   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5520   array size at least.  It's necessary to write '\x00'==0 to get something
5521   that's true only with -std.  */
5522int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5523
5524/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5525   inside strings and character constants.  */
5526#define FOO(x) 'x'
5527int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5528
5529int test (int i, double x);
5530struct s1 {int (*f) (int a);};
5531struct s2 {int (*f) (double a);};
5532int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5533int argc;
5534char **argv;
5535int
5536main ()
5537{
5538return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5539  ;
5540  return 0;
5541}
5542_ACEOF
5543for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5544	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5545do
5546  CC="$ac_save_CC $ac_arg"
5547  rm -f conftest.$ac_objext
5548if { (ac_try="$ac_compile"
5549case "(($ac_try" in
5550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551  *) ac_try_echo=$ac_try;;
5552esac
5553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5554  (eval "$ac_compile") 2>conftest.er1
5555  ac_status=$?
5556  grep -v '^ *+' conftest.er1 >conftest.err
5557  rm -f conftest.er1
5558  cat conftest.err >&5
5559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560  (exit $ac_status); } &&
5561	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5562  { (case "(($ac_try" in
5563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5564  *) ac_try_echo=$ac_try;;
5565esac
5566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5567  (eval "$ac_try") 2>&5
5568  ac_status=$?
5569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570  (exit $ac_status); }; } &&
5571	 { ac_try='test -s conftest.$ac_objext'
5572  { (case "(($ac_try" in
5573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5574  *) ac_try_echo=$ac_try;;
5575esac
5576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5577  (eval "$ac_try") 2>&5
5578  ac_status=$?
5579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580  (exit $ac_status); }; }; then
5581  ac_cv_prog_cc_c89=$ac_arg
5582else
5583  echo "$as_me: failed program was:" >&5
5584sed 's/^/| /' conftest.$ac_ext >&5
5585
5586
5587fi
5588
5589rm -f core conftest.err conftest.$ac_objext
5590  test "x$ac_cv_prog_cc_c89" != "xno" && break
5591done
5592rm -f conftest.$ac_ext
5593CC=$ac_save_CC
5594
5595fi
5596# AC_CACHE_VAL
5597case "x$ac_cv_prog_cc_c89" in
5598  x)
5599    { echo "$as_me:$LINENO: result: none needed" >&5
5600echo "${ECHO_T}none needed" >&6; } ;;
5601  xno)
5602    { echo "$as_me:$LINENO: result: unsupported" >&5
5603echo "${ECHO_T}unsupported" >&6; } ;;
5604  *)
5605    CC="$CC $ac_cv_prog_cc_c89"
5606    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5607echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5608esac
5609
5610
5611ac_ext=c
5612ac_cpp='$CPP $CPPFLAGS'
5613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5615ac_compiler_gnu=$ac_cv_c_compiler_gnu
5616
5617ac_ext=cpp
5618ac_cpp='$CXXCPP $CPPFLAGS'
5619ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5620ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5621ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5622if test -z "$CXX"; then
5623  if test -n "$CCC"; then
5624    CXX=$CCC
5625  else
5626    if test -n "$ac_tool_prefix"; then
5627  for ac_prog in g++
5628  do
5629    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5630set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5631{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5633if test "${ac_cv_prog_CXX+set}" = set; then
5634  echo $ECHO_N "(cached) $ECHO_C" >&6
5635else
5636  if test -n "$CXX"; then
5637  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5638else
5639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640for as_dir in $PATH
5641do
5642  IFS=$as_save_IFS
5643  test -z "$as_dir" && as_dir=.
5644  for ac_exec_ext in '' $ac_executable_extensions; do
5645  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5646    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5647    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5648    break 2
5649  fi
5650done
5651done
5652IFS=$as_save_IFS
5653
5654fi
5655fi
5656CXX=$ac_cv_prog_CXX
5657if test -n "$CXX"; then
5658  { echo "$as_me:$LINENO: result: $CXX" >&5
5659echo "${ECHO_T}$CXX" >&6; }
5660else
5661  { echo "$as_me:$LINENO: result: no" >&5
5662echo "${ECHO_T}no" >&6; }
5663fi
5664
5665
5666    test -n "$CXX" && break
5667  done
5668fi
5669if test -z "$CXX"; then
5670  ac_ct_CXX=$CXX
5671  for ac_prog in g++
5672do
5673  # Extract the first word of "$ac_prog", so it can be a program name with args.
5674set dummy $ac_prog; ac_word=$2
5675{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5677if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5678  echo $ECHO_N "(cached) $ECHO_C" >&6
5679else
5680  if test -n "$ac_ct_CXX"; then
5681  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5682else
5683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684for as_dir in $PATH
5685do
5686  IFS=$as_save_IFS
5687  test -z "$as_dir" && as_dir=.
5688  for ac_exec_ext in '' $ac_executable_extensions; do
5689  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5690    ac_cv_prog_ac_ct_CXX="$ac_prog"
5691    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5692    break 2
5693  fi
5694done
5695done
5696IFS=$as_save_IFS
5697
5698fi
5699fi
5700ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5701if test -n "$ac_ct_CXX"; then
5702  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5703echo "${ECHO_T}$ac_ct_CXX" >&6; }
5704else
5705  { echo "$as_me:$LINENO: result: no" >&5
5706echo "${ECHO_T}no" >&6; }
5707fi
5708
5709
5710  test -n "$ac_ct_CXX" && break
5711done
5712
5713  if test "x$ac_ct_CXX" = x; then
5714    CXX="g++"
5715  else
5716    case $cross_compiling:$ac_tool_warned in
5717yes:)
5718{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5719whose name does not start with the host triplet.  If you think this
5720configuration is useful to you, please write to autoconf@gnu.org." >&5
5721echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5722whose name does not start with the host triplet.  If you think this
5723configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5724ac_tool_warned=yes ;;
5725esac
5726    CXX=$ac_ct_CXX
5727  fi
5728fi
5729
5730  fi
5731fi
5732# Provide some information about the compiler.
5733echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5734ac_compiler=`set X $ac_compile; echo $2`
5735{ (ac_try="$ac_compiler --version >&5"
5736case "(($ac_try" in
5737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5738  *) ac_try_echo=$ac_try;;
5739esac
5740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5741  (eval "$ac_compiler --version >&5") 2>&5
5742  ac_status=$?
5743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744  (exit $ac_status); }
5745{ (ac_try="$ac_compiler -v >&5"
5746case "(($ac_try" in
5747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5748  *) ac_try_echo=$ac_try;;
5749esac
5750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5751  (eval "$ac_compiler -v >&5") 2>&5
5752  ac_status=$?
5753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754  (exit $ac_status); }
5755{ (ac_try="$ac_compiler -V >&5"
5756case "(($ac_try" in
5757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5758  *) ac_try_echo=$ac_try;;
5759esac
5760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5761  (eval "$ac_compiler -V >&5") 2>&5
5762  ac_status=$?
5763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764  (exit $ac_status); }
5765
5766{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5767echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5768if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5769  echo $ECHO_N "(cached) $ECHO_C" >&6
5770else
5771  cat >conftest.$ac_ext <<_ACEOF
5772/* confdefs.h.  */
5773_ACEOF
5774cat confdefs.h >>conftest.$ac_ext
5775cat >>conftest.$ac_ext <<_ACEOF
5776/* end confdefs.h.  */
5777
5778int
5779main ()
5780{
5781#ifndef __GNUC__
5782       choke me
5783#endif
5784
5785  ;
5786  return 0;
5787}
5788_ACEOF
5789rm -f conftest.$ac_objext
5790if { (ac_try="$ac_compile"
5791case "(($ac_try" in
5792  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5793  *) ac_try_echo=$ac_try;;
5794esac
5795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5796  (eval "$ac_compile") 2>conftest.er1
5797  ac_status=$?
5798  grep -v '^ *+' conftest.er1 >conftest.err
5799  rm -f conftest.er1
5800  cat conftest.err >&5
5801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802  (exit $ac_status); } &&
5803	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5804  { (case "(($ac_try" in
5805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5806  *) ac_try_echo=$ac_try;;
5807esac
5808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5809  (eval "$ac_try") 2>&5
5810  ac_status=$?
5811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812  (exit $ac_status); }; } &&
5813	 { ac_try='test -s conftest.$ac_objext'
5814  { (case "(($ac_try" in
5815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5816  *) ac_try_echo=$ac_try;;
5817esac
5818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5819  (eval "$ac_try") 2>&5
5820  ac_status=$?
5821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822  (exit $ac_status); }; }; then
5823  ac_compiler_gnu=yes
5824else
5825  echo "$as_me: failed program was:" >&5
5826sed 's/^/| /' conftest.$ac_ext >&5
5827
5828	ac_compiler_gnu=no
5829fi
5830
5831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5832ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5833
5834fi
5835{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5836echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5837GXX=`test $ac_compiler_gnu = yes && echo yes`
5838ac_test_CXXFLAGS=${CXXFLAGS+set}
5839ac_save_CXXFLAGS=$CXXFLAGS
5840{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5841echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5842if test "${ac_cv_prog_cxx_g+set}" = set; then
5843  echo $ECHO_N "(cached) $ECHO_C" >&6
5844else
5845  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5846   ac_cxx_werror_flag=yes
5847   ac_cv_prog_cxx_g=no
5848   CXXFLAGS="-g"
5849   cat >conftest.$ac_ext <<_ACEOF
5850/* confdefs.h.  */
5851_ACEOF
5852cat confdefs.h >>conftest.$ac_ext
5853cat >>conftest.$ac_ext <<_ACEOF
5854/* end confdefs.h.  */
5855
5856int
5857main ()
5858{
5859
5860  ;
5861  return 0;
5862}
5863_ACEOF
5864rm -f conftest.$ac_objext
5865if { (ac_try="$ac_compile"
5866case "(($ac_try" in
5867  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5868  *) ac_try_echo=$ac_try;;
5869esac
5870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5871  (eval "$ac_compile") 2>conftest.er1
5872  ac_status=$?
5873  grep -v '^ *+' conftest.er1 >conftest.err
5874  rm -f conftest.er1
5875  cat conftest.err >&5
5876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877  (exit $ac_status); } &&
5878	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5879  { (case "(($ac_try" in
5880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5881  *) ac_try_echo=$ac_try;;
5882esac
5883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5884  (eval "$ac_try") 2>&5
5885  ac_status=$?
5886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887  (exit $ac_status); }; } &&
5888	 { ac_try='test -s conftest.$ac_objext'
5889  { (case "(($ac_try" in
5890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5891  *) ac_try_echo=$ac_try;;
5892esac
5893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5894  (eval "$ac_try") 2>&5
5895  ac_status=$?
5896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897  (exit $ac_status); }; }; then
5898  ac_cv_prog_cxx_g=yes
5899else
5900  echo "$as_me: failed program was:" >&5
5901sed 's/^/| /' conftest.$ac_ext >&5
5902
5903	CXXFLAGS=""
5904      cat >conftest.$ac_ext <<_ACEOF
5905/* confdefs.h.  */
5906_ACEOF
5907cat confdefs.h >>conftest.$ac_ext
5908cat >>conftest.$ac_ext <<_ACEOF
5909/* end confdefs.h.  */
5910
5911int
5912main ()
5913{
5914
5915  ;
5916  return 0;
5917}
5918_ACEOF
5919rm -f conftest.$ac_objext
5920if { (ac_try="$ac_compile"
5921case "(($ac_try" in
5922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5923  *) ac_try_echo=$ac_try;;
5924esac
5925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5926  (eval "$ac_compile") 2>conftest.er1
5927  ac_status=$?
5928  grep -v '^ *+' conftest.er1 >conftest.err
5929  rm -f conftest.er1
5930  cat conftest.err >&5
5931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932  (exit $ac_status); } &&
5933	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5934  { (case "(($ac_try" in
5935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5936  *) ac_try_echo=$ac_try;;
5937esac
5938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5939  (eval "$ac_try") 2>&5
5940  ac_status=$?
5941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942  (exit $ac_status); }; } &&
5943	 { ac_try='test -s conftest.$ac_objext'
5944  { (case "(($ac_try" in
5945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946  *) ac_try_echo=$ac_try;;
5947esac
5948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5949  (eval "$ac_try") 2>&5
5950  ac_status=$?
5951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952  (exit $ac_status); }; }; then
5953  :
5954else
5955  echo "$as_me: failed program was:" >&5
5956sed 's/^/| /' conftest.$ac_ext >&5
5957
5958	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5959	 CXXFLAGS="-g"
5960	 cat >conftest.$ac_ext <<_ACEOF
5961/* confdefs.h.  */
5962_ACEOF
5963cat confdefs.h >>conftest.$ac_ext
5964cat >>conftest.$ac_ext <<_ACEOF
5965/* end confdefs.h.  */
5966
5967int
5968main ()
5969{
5970
5971  ;
5972  return 0;
5973}
5974_ACEOF
5975rm -f conftest.$ac_objext
5976if { (ac_try="$ac_compile"
5977case "(($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_compile") 2>conftest.er1
5983  ac_status=$?
5984  grep -v '^ *+' conftest.er1 >conftest.err
5985  rm -f conftest.er1
5986  cat conftest.err >&5
5987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988  (exit $ac_status); } &&
5989	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5990  { (case "(($ac_try" in
5991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5992  *) ac_try_echo=$ac_try;;
5993esac
5994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5995  (eval "$ac_try") 2>&5
5996  ac_status=$?
5997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998  (exit $ac_status); }; } &&
5999	 { ac_try='test -s conftest.$ac_objext'
6000  { (case "(($ac_try" in
6001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002  *) ac_try_echo=$ac_try;;
6003esac
6004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6005  (eval "$ac_try") 2>&5
6006  ac_status=$?
6007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008  (exit $ac_status); }; }; then
6009  ac_cv_prog_cxx_g=yes
6010else
6011  echo "$as_me: failed program was:" >&5
6012sed 's/^/| /' conftest.$ac_ext >&5
6013
6014
6015fi
6016
6017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018fi
6019
6020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6021fi
6022
6023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6024   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6025fi
6026{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6027echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6028if test "$ac_test_CXXFLAGS" = set; then
6029  CXXFLAGS=$ac_save_CXXFLAGS
6030elif test $ac_cv_prog_cxx_g = yes; then
6031  if test "$GXX" = yes; then
6032    CXXFLAGS="-g -O2"
6033  else
6034    CXXFLAGS="-g"
6035  fi
6036else
6037  if test "$GXX" = yes; then
6038    CXXFLAGS="-O2"
6039  else
6040    CXXFLAGS=
6041  fi
6042fi
6043ac_ext=c
6044ac_cpp='$CPP $CPPFLAGS'
6045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6047ac_compiler_gnu=$ac_cv_c_compiler_gnu
6048
6049{ echo "$as_me:$LINENO: checking " >&5
6050echo $ECHO_N "checking ... $ECHO_C" >&6; }
6051if test "${ac_cv_has_flex+set}" = set; then
6052  echo $ECHO_N "(cached) $ECHO_C" >&6
6053else
6054  for ac_prog in flex lex
6055do
6056  # Extract the first word of "$ac_prog", so it can be a program name with args.
6057set dummy $ac_prog; ac_word=$2
6058{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6060if test "${ac_cv_prog_LEX+set}" = set; then
6061  echo $ECHO_N "(cached) $ECHO_C" >&6
6062else
6063  if test -n "$LEX"; then
6064  ac_cv_prog_LEX="$LEX" # Let the user override the test.
6065else
6066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067for as_dir in $PATH
6068do
6069  IFS=$as_save_IFS
6070  test -z "$as_dir" && as_dir=.
6071  for ac_exec_ext in '' $ac_executable_extensions; do
6072  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6073    ac_cv_prog_LEX="$ac_prog"
6074    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6075    break 2
6076  fi
6077done
6078done
6079IFS=$as_save_IFS
6080
6081fi
6082fi
6083LEX=$ac_cv_prog_LEX
6084if test -n "$LEX"; then
6085  { echo "$as_me:$LINENO: result: $LEX" >&5
6086echo "${ECHO_T}$LEX" >&6; }
6087else
6088  { echo "$as_me:$LINENO: result: no" >&5
6089echo "${ECHO_T}no" >&6; }
6090fi
6091
6092
6093  test -n "$LEX" && break
6094done
6095test -n "$LEX" || LEX=":"
6096
6097if test -z "$LEXLIB"
6098then
6099  { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6100echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6101if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6102  echo $ECHO_N "(cached) $ECHO_C" >&6
6103else
6104  ac_check_lib_save_LIBS=$LIBS
6105LIBS="-lfl  $LIBS"
6106cat >conftest.$ac_ext <<_ACEOF
6107/* confdefs.h.  */
6108_ACEOF
6109cat confdefs.h >>conftest.$ac_ext
6110cat >>conftest.$ac_ext <<_ACEOF
6111/* end confdefs.h.  */
6112
6113/* Override any GCC internal prototype to avoid an error.
6114   Use char because int might match the return type of a GCC
6115   builtin and then its argument prototype would still apply.  */
6116#ifdef __cplusplus
6117extern "C"
6118#endif
6119char yywrap ();
6120int
6121main ()
6122{
6123return yywrap ();
6124  ;
6125  return 0;
6126}
6127_ACEOF
6128rm -f conftest.$ac_objext conftest$ac_exeext
6129if { (ac_try="$ac_link"
6130case "(($ac_try" in
6131  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6132  *) ac_try_echo=$ac_try;;
6133esac
6134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6135  (eval "$ac_link") 2>conftest.er1
6136  ac_status=$?
6137  grep -v '^ *+' conftest.er1 >conftest.err
6138  rm -f conftest.er1
6139  cat conftest.err >&5
6140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141  (exit $ac_status); } &&
6142	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6143  { (case "(($ac_try" in
6144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6145  *) ac_try_echo=$ac_try;;
6146esac
6147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6148  (eval "$ac_try") 2>&5
6149  ac_status=$?
6150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151  (exit $ac_status); }; } &&
6152	 { ac_try='test -s conftest$ac_exeext'
6153  { (case "(($ac_try" in
6154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6155  *) ac_try_echo=$ac_try;;
6156esac
6157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6158  (eval "$ac_try") 2>&5
6159  ac_status=$?
6160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161  (exit $ac_status); }; }; then
6162  ac_cv_lib_fl_yywrap=yes
6163else
6164  echo "$as_me: failed program was:" >&5
6165sed 's/^/| /' conftest.$ac_ext >&5
6166
6167	ac_cv_lib_fl_yywrap=no
6168fi
6169
6170rm -f core conftest.err conftest.$ac_objext \
6171      conftest$ac_exeext conftest.$ac_ext
6172LIBS=$ac_check_lib_save_LIBS
6173fi
6174{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6175echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6176if test $ac_cv_lib_fl_yywrap = yes; then
6177  LEXLIB="-lfl"
6178else
6179  { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6180echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6181if test "${ac_cv_lib_l_yywrap+set}" = set; then
6182  echo $ECHO_N "(cached) $ECHO_C" >&6
6183else
6184  ac_check_lib_save_LIBS=$LIBS
6185LIBS="-ll  $LIBS"
6186cat >conftest.$ac_ext <<_ACEOF
6187/* confdefs.h.  */
6188_ACEOF
6189cat confdefs.h >>conftest.$ac_ext
6190cat >>conftest.$ac_ext <<_ACEOF
6191/* end confdefs.h.  */
6192
6193/* Override any GCC internal prototype to avoid an error.
6194   Use char because int might match the return type of a GCC
6195   builtin and then its argument prototype would still apply.  */
6196#ifdef __cplusplus
6197extern "C"
6198#endif
6199char yywrap ();
6200int
6201main ()
6202{
6203return yywrap ();
6204  ;
6205  return 0;
6206}
6207_ACEOF
6208rm -f conftest.$ac_objext conftest$ac_exeext
6209if { (ac_try="$ac_link"
6210case "(($ac_try" in
6211  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6212  *) ac_try_echo=$ac_try;;
6213esac
6214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6215  (eval "$ac_link") 2>conftest.er1
6216  ac_status=$?
6217  grep -v '^ *+' conftest.er1 >conftest.err
6218  rm -f conftest.er1
6219  cat conftest.err >&5
6220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221  (exit $ac_status); } &&
6222	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6223  { (case "(($ac_try" in
6224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6225  *) ac_try_echo=$ac_try;;
6226esac
6227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6228  (eval "$ac_try") 2>&5
6229  ac_status=$?
6230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231  (exit $ac_status); }; } &&
6232	 { ac_try='test -s conftest$ac_exeext'
6233  { (case "(($ac_try" in
6234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6235  *) ac_try_echo=$ac_try;;
6236esac
6237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6238  (eval "$ac_try") 2>&5
6239  ac_status=$?
6240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241  (exit $ac_status); }; }; then
6242  ac_cv_lib_l_yywrap=yes
6243else
6244  echo "$as_me: failed program was:" >&5
6245sed 's/^/| /' conftest.$ac_ext >&5
6246
6247	ac_cv_lib_l_yywrap=no
6248fi
6249
6250rm -f core conftest.err conftest.$ac_objext \
6251      conftest$ac_exeext conftest.$ac_ext
6252LIBS=$ac_check_lib_save_LIBS
6253fi
6254{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6255echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6256if test $ac_cv_lib_l_yywrap = yes; then
6257  LEXLIB="-ll"
6258fi
6259
6260fi
6261
6262fi
6263
6264if test "x$LEX" != "x:"; then
6265  { echo "$as_me:$LINENO: checking lex output file root" >&5
6266echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6267if test "${ac_cv_prog_lex_root+set}" = set; then
6268  echo $ECHO_N "(cached) $ECHO_C" >&6
6269else
6270  # The minimal lex program is just a single line: %%.  But some broken lexes
6271# (Solaris, I think it was) want two %% lines, so accommodate them.
6272cat >conftest.l <<_ACEOF
6273%%
6274%%
6275_ACEOF
6276{ (ac_try="$LEX conftest.l"
6277case "(($ac_try" in
6278  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6279  *) ac_try_echo=$ac_try;;
6280esac
6281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6282  (eval "$LEX conftest.l") 2>&5
6283  ac_status=$?
6284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285  (exit $ac_status); }
6286if test -f lex.yy.c; then
6287  ac_cv_prog_lex_root=lex.yy
6288elif test -f lexyy.c; then
6289  ac_cv_prog_lex_root=lexyy
6290else
6291  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6292echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6293   { (exit 1); exit 1; }; }
6294fi
6295fi
6296{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6297echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6298rm -f conftest.l
6299LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6300
6301{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6302echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6303if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6304  echo $ECHO_N "(cached) $ECHO_C" >&6
6305else
6306  # POSIX says lex can declare yytext either as a pointer or an array; the
6307# default is implementation-dependent. Figure out which it is, since
6308# not all implementations provide the %pointer and %array declarations.
6309ac_cv_prog_lex_yytext_pointer=no
6310echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6311ac_save_LIBS=$LIBS
6312LIBS="$LIBS $LEXLIB"
6313cat >conftest.$ac_ext <<_ACEOF
6314`cat $LEX_OUTPUT_ROOT.c`
6315_ACEOF
6316rm -f conftest.$ac_objext conftest$ac_exeext
6317if { (ac_try="$ac_link"
6318case "(($ac_try" in
6319  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6320  *) ac_try_echo=$ac_try;;
6321esac
6322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6323  (eval "$ac_link") 2>conftest.er1
6324  ac_status=$?
6325  grep -v '^ *+' conftest.er1 >conftest.err
6326  rm -f conftest.er1
6327  cat conftest.err >&5
6328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329  (exit $ac_status); } &&
6330	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6331  { (case "(($ac_try" in
6332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6333  *) ac_try_echo=$ac_try;;
6334esac
6335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6336  (eval "$ac_try") 2>&5
6337  ac_status=$?
6338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339  (exit $ac_status); }; } &&
6340	 { ac_try='test -s conftest$ac_exeext'
6341  { (case "(($ac_try" in
6342  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6343  *) ac_try_echo=$ac_try;;
6344esac
6345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6346  (eval "$ac_try") 2>&5
6347  ac_status=$?
6348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349  (exit $ac_status); }; }; then
6350  ac_cv_prog_lex_yytext_pointer=yes
6351else
6352  echo "$as_me: failed program was:" >&5
6353sed 's/^/| /' conftest.$ac_ext >&5
6354
6355
6356fi
6357
6358rm -f core conftest.err conftest.$ac_objext \
6359      conftest$ac_exeext conftest.$ac_ext
6360LIBS=$ac_save_LIBS
6361rm -f "${LEX_OUTPUT_ROOT}.c"
6362
6363fi
6364{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6365echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6366if test $ac_cv_prog_lex_yytext_pointer = yes; then
6367
6368cat >>confdefs.h <<\_ACEOF
6369#define YYTEXT_POINTER 1
6370_ACEOF
6371
6372fi
6373
6374fi
6375
6376fi
6377{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6378echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6379if test "$LEX" != "flex"; then
6380  { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6381echo "$as_me: error: flex not found but required" >&2;}
6382   { (exit 1); exit 1; }; }
6383else
6384  FLEX=flex
6385
6386fi
6387
6388{ echo "$as_me:$LINENO: checking " >&5
6389echo $ECHO_N "checking ... $ECHO_C" >&6; }
6390if test "${llvm_cv_has_bison+set}" = set; then
6391  echo $ECHO_N "(cached) $ECHO_C" >&6
6392else
6393  for ac_prog in 'bison -y' byacc
6394do
6395  # Extract the first word of "$ac_prog", so it can be a program name with args.
6396set dummy $ac_prog; ac_word=$2
6397{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6399if test "${ac_cv_prog_YACC+set}" = set; then
6400  echo $ECHO_N "(cached) $ECHO_C" >&6
6401else
6402  if test -n "$YACC"; then
6403  ac_cv_prog_YACC="$YACC" # Let the user override the test.
6404else
6405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406for as_dir in $PATH
6407do
6408  IFS=$as_save_IFS
6409  test -z "$as_dir" && as_dir=.
6410  for ac_exec_ext in '' $ac_executable_extensions; do
6411  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6412    ac_cv_prog_YACC="$ac_prog"
6413    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6414    break 2
6415  fi
6416done
6417done
6418IFS=$as_save_IFS
6419
6420fi
6421fi
6422YACC=$ac_cv_prog_YACC
6423if test -n "$YACC"; then
6424  { echo "$as_me:$LINENO: result: $YACC" >&5
6425echo "${ECHO_T}$YACC" >&6; }
6426else
6427  { echo "$as_me:$LINENO: result: no" >&5
6428echo "${ECHO_T}no" >&6; }
6429fi
6430
6431
6432  test -n "$YACC" && break
6433done
6434test -n "$YACC" || YACC="yacc"
6435
6436fi
6437{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6438echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6439if test "$YACC" != "bison -y"; then
6440
6441  { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6442echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6443else
6444  BISON=bison
6445
6446fi
6447
6448{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6449echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6450if test "${lt_cv_path_NM+set}" = set; then
6451  echo $ECHO_N "(cached) $ECHO_C" >&6
6452else
6453  if test -n "$NM"; then
6454  # Let the user override the test.
6455  lt_cv_path_NM="$NM"
6456else
6457  lt_nm_to_check="${ac_tool_prefix}nm"
6458  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6459    lt_nm_to_check="$lt_nm_to_check nm"
6460  fi
6461  for lt_tmp_nm in $lt_nm_to_check; do
6462    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6463    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6464      IFS="$lt_save_ifs"
6465      test -z "$ac_dir" && ac_dir=.
6466      tmp_nm="$ac_dir/$lt_tmp_nm"
6467      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6468	# Check to see if the nm accepts a BSD-compat flag.
6469	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6470	#   nm: unknown option "B" ignored
6471	# Tru64's nm complains that /dev/null is an invalid object file
6472	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6473	*/dev/null* | *'Invalid file or object type'*)
6474	  lt_cv_path_NM="$tmp_nm -B"
6475	  break
6476	  ;;
6477	*)
6478	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6479	  */dev/null*)
6480	    lt_cv_path_NM="$tmp_nm -p"
6481	    break
6482	    ;;
6483	  *)
6484	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6485	    continue # so that we can try to find one that supports BSD flags
6486	    ;;
6487	  esac
6488	  ;;
6489	esac
6490      fi
6491    done
6492    IFS="$lt_save_ifs"
6493  done
6494  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6495fi
6496fi
6497{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6498echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6499NM="$lt_cv_path_NM"
6500
6501
6502
6503{ echo "$as_me:$LINENO: checking for GNU make" >&5
6504echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6505if test "${llvm_cv_gnu_make_command+set}" = set; then
6506  echo $ECHO_N "(cached) $ECHO_C" >&6
6507else
6508  llvm_cv_gnu_make_command=''
6509 for a in "$MAKE" make gmake gnumake ; do
6510  if test -z "$a" ; then continue ; fi ;
6511  if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6512  then
6513   llvm_cv_gnu_make_command=$a ;
6514   break;
6515  fi
6516 done
6517fi
6518{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6519echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6520 if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6521   ifGNUmake='' ;
6522 else
6523   ifGNUmake='#' ;
6524   { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6525echo "${ECHO_T}\"Not found\"" >&6; };
6526 fi
6527
6528
6529{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6530echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6531LN_S=$as_ln_s
6532if test "$LN_S" = "ln -s"; then
6533  { echo "$as_me:$LINENO: result: yes" >&5
6534echo "${ECHO_T}yes" >&6; }
6535else
6536  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6537echo "${ECHO_T}no, using $LN_S" >&6; }
6538fi
6539
6540# Extract the first word of "cmp", so it can be a program name with args.
6541set dummy cmp; ac_word=$2
6542{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6544if test "${ac_cv_path_CMP+set}" = set; then
6545  echo $ECHO_N "(cached) $ECHO_C" >&6
6546else
6547  case $CMP in
6548  [\\/]* | ?:[\\/]*)
6549  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6550  ;;
6551  *)
6552  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553for as_dir in $PATH
6554do
6555  IFS=$as_save_IFS
6556  test -z "$as_dir" && as_dir=.
6557  for ac_exec_ext in '' $ac_executable_extensions; do
6558  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6559    ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6560    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6561    break 2
6562  fi
6563done
6564done
6565IFS=$as_save_IFS
6566
6567  test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6568  ;;
6569esac
6570fi
6571CMP=$ac_cv_path_CMP
6572if test -n "$CMP"; then
6573  { echo "$as_me:$LINENO: result: $CMP" >&5
6574echo "${ECHO_T}$CMP" >&6; }
6575else
6576  { echo "$as_me:$LINENO: result: no" >&5
6577echo "${ECHO_T}no" >&6; }
6578fi
6579
6580
6581# Extract the first word of "cp", so it can be a program name with args.
6582set dummy cp; ac_word=$2
6583{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6585if test "${ac_cv_path_CP+set}" = set; then
6586  echo $ECHO_N "(cached) $ECHO_C" >&6
6587else
6588  case $CP in
6589  [\\/]* | ?:[\\/]*)
6590  ac_cv_path_CP="$CP" # Let the user override the test with a path.
6591  ;;
6592  *)
6593  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594for as_dir in $PATH
6595do
6596  IFS=$as_save_IFS
6597  test -z "$as_dir" && as_dir=.
6598  for ac_exec_ext in '' $ac_executable_extensions; do
6599  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6600    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6601    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6602    break 2
6603  fi
6604done
6605done
6606IFS=$as_save_IFS
6607
6608  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6609  ;;
6610esac
6611fi
6612CP=$ac_cv_path_CP
6613if test -n "$CP"; then
6614  { echo "$as_me:$LINENO: result: $CP" >&5
6615echo "${ECHO_T}$CP" >&6; }
6616else
6617  { echo "$as_me:$LINENO: result: no" >&5
6618echo "${ECHO_T}no" >&6; }
6619fi
6620
6621
6622# Extract the first word of "date", so it can be a program name with args.
6623set dummy date; ac_word=$2
6624{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6626if test "${ac_cv_path_DATE+set}" = set; then
6627  echo $ECHO_N "(cached) $ECHO_C" >&6
6628else
6629  case $DATE in
6630  [\\/]* | ?:[\\/]*)
6631  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6632  ;;
6633  *)
6634  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635for as_dir in $PATH
6636do
6637  IFS=$as_save_IFS
6638  test -z "$as_dir" && as_dir=.
6639  for ac_exec_ext in '' $ac_executable_extensions; do
6640  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6641    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6642    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6643    break 2
6644  fi
6645done
6646done
6647IFS=$as_save_IFS
6648
6649  test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6650  ;;
6651esac
6652fi
6653DATE=$ac_cv_path_DATE
6654if test -n "$DATE"; then
6655  { echo "$as_me:$LINENO: result: $DATE" >&5
6656echo "${ECHO_T}$DATE" >&6; }
6657else
6658  { echo "$as_me:$LINENO: result: no" >&5
6659echo "${ECHO_T}no" >&6; }
6660fi
6661
6662
6663# Extract the first word of "find", so it can be a program name with args.
6664set dummy find; ac_word=$2
6665{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6667if test "${ac_cv_path_FIND+set}" = set; then
6668  echo $ECHO_N "(cached) $ECHO_C" >&6
6669else
6670  case $FIND in
6671  [\\/]* | ?:[\\/]*)
6672  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6673  ;;
6674  *)
6675  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676for as_dir in $PATH
6677do
6678  IFS=$as_save_IFS
6679  test -z "$as_dir" && as_dir=.
6680  for ac_exec_ext in '' $ac_executable_extensions; do
6681  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6682    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6683    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6684    break 2
6685  fi
6686done
6687done
6688IFS=$as_save_IFS
6689
6690  test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6691  ;;
6692esac
6693fi
6694FIND=$ac_cv_path_FIND
6695if test -n "$FIND"; then
6696  { echo "$as_me:$LINENO: result: $FIND" >&5
6697echo "${ECHO_T}$FIND" >&6; }
6698else
6699  { echo "$as_me:$LINENO: result: no" >&5
6700echo "${ECHO_T}no" >&6; }
6701fi
6702
6703
6704# Extract the first word of "grep", so it can be a program name with args.
6705set dummy grep; ac_word=$2
6706{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6708if test "${ac_cv_path_GREP+set}" = set; then
6709  echo $ECHO_N "(cached) $ECHO_C" >&6
6710else
6711  case $GREP in
6712  [\\/]* | ?:[\\/]*)
6713  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6714  ;;
6715  *)
6716  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717for as_dir in $PATH
6718do
6719  IFS=$as_save_IFS
6720  test -z "$as_dir" && as_dir=.
6721  for ac_exec_ext in '' $ac_executable_extensions; do
6722  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6723    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6724    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6725    break 2
6726  fi
6727done
6728done
6729IFS=$as_save_IFS
6730
6731  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6732  ;;
6733esac
6734fi
6735GREP=$ac_cv_path_GREP
6736if test -n "$GREP"; then
6737  { echo "$as_me:$LINENO: result: $GREP" >&5
6738echo "${ECHO_T}$GREP" >&6; }
6739else
6740  { echo "$as_me:$LINENO: result: no" >&5
6741echo "${ECHO_T}no" >&6; }
6742fi
6743
6744
6745# Extract the first word of "mkdir", so it can be a program name with args.
6746set dummy mkdir; ac_word=$2
6747{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6749if test "${ac_cv_path_MKDIR+set}" = set; then
6750  echo $ECHO_N "(cached) $ECHO_C" >&6
6751else
6752  case $MKDIR in
6753  [\\/]* | ?:[\\/]*)
6754  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6755  ;;
6756  *)
6757  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758for as_dir in $PATH
6759do
6760  IFS=$as_save_IFS
6761  test -z "$as_dir" && as_dir=.
6762  for ac_exec_ext in '' $ac_executable_extensions; do
6763  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6764    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6765    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6766    break 2
6767  fi
6768done
6769done
6770IFS=$as_save_IFS
6771
6772  test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6773  ;;
6774esac
6775fi
6776MKDIR=$ac_cv_path_MKDIR
6777if test -n "$MKDIR"; then
6778  { echo "$as_me:$LINENO: result: $MKDIR" >&5
6779echo "${ECHO_T}$MKDIR" >&6; }
6780else
6781  { echo "$as_me:$LINENO: result: no" >&5
6782echo "${ECHO_T}no" >&6; }
6783fi
6784
6785
6786# Extract the first word of "mv", so it can be a program name with args.
6787set dummy mv; ac_word=$2
6788{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6790if test "${ac_cv_path_MV+set}" = set; then
6791  echo $ECHO_N "(cached) $ECHO_C" >&6
6792else
6793  case $MV in
6794  [\\/]* | ?:[\\/]*)
6795  ac_cv_path_MV="$MV" # Let the user override the test with a path.
6796  ;;
6797  *)
6798  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799for as_dir in $PATH
6800do
6801  IFS=$as_save_IFS
6802  test -z "$as_dir" && as_dir=.
6803  for ac_exec_ext in '' $ac_executable_extensions; do
6804  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6805    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6806    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6807    break 2
6808  fi
6809done
6810done
6811IFS=$as_save_IFS
6812
6813  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6814  ;;
6815esac
6816fi
6817MV=$ac_cv_path_MV
6818if test -n "$MV"; then
6819  { echo "$as_me:$LINENO: result: $MV" >&5
6820echo "${ECHO_T}$MV" >&6; }
6821else
6822  { echo "$as_me:$LINENO: result: no" >&5
6823echo "${ECHO_T}no" >&6; }
6824fi
6825
6826
6827if test -n "$ac_tool_prefix"; then
6828  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6829set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6830{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6832if test "${ac_cv_prog_RANLIB+set}" = set; then
6833  echo $ECHO_N "(cached) $ECHO_C" >&6
6834else
6835  if test -n "$RANLIB"; then
6836  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6837else
6838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839for as_dir in $PATH
6840do
6841  IFS=$as_save_IFS
6842  test -z "$as_dir" && as_dir=.
6843  for ac_exec_ext in '' $ac_executable_extensions; do
6844  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6845    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6846    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6847    break 2
6848  fi
6849done
6850done
6851IFS=$as_save_IFS
6852
6853fi
6854fi
6855RANLIB=$ac_cv_prog_RANLIB
6856if test -n "$RANLIB"; then
6857  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6858echo "${ECHO_T}$RANLIB" >&6; }
6859else
6860  { echo "$as_me:$LINENO: result: no" >&5
6861echo "${ECHO_T}no" >&6; }
6862fi
6863
6864
6865fi
6866if test -z "$ac_cv_prog_RANLIB"; then
6867  ac_ct_RANLIB=$RANLIB
6868  # Extract the first word of "ranlib", so it can be a program name with args.
6869set dummy ranlib; ac_word=$2
6870{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6872if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6873  echo $ECHO_N "(cached) $ECHO_C" >&6
6874else
6875  if test -n "$ac_ct_RANLIB"; then
6876  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6877else
6878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879for as_dir in $PATH
6880do
6881  IFS=$as_save_IFS
6882  test -z "$as_dir" && as_dir=.
6883  for ac_exec_ext in '' $ac_executable_extensions; do
6884  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6885    ac_cv_prog_ac_ct_RANLIB="ranlib"
6886    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6887    break 2
6888  fi
6889done
6890done
6891IFS=$as_save_IFS
6892
6893fi
6894fi
6895ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6896if test -n "$ac_ct_RANLIB"; then
6897  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6898echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6899else
6900  { echo "$as_me:$LINENO: result: no" >&5
6901echo "${ECHO_T}no" >&6; }
6902fi
6903
6904  if test "x$ac_ct_RANLIB" = x; then
6905    RANLIB=":"
6906  else
6907    case $cross_compiling:$ac_tool_warned in
6908yes:)
6909{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6910whose name does not start with the host triplet.  If you think this
6911configuration is useful to you, please write to autoconf@gnu.org." >&5
6912echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6913whose name does not start with the host triplet.  If you think this
6914configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6915ac_tool_warned=yes ;;
6916esac
6917    RANLIB=$ac_ct_RANLIB
6918  fi
6919else
6920  RANLIB="$ac_cv_prog_RANLIB"
6921fi
6922
6923# Extract the first word of "rm", so it can be a program name with args.
6924set dummy rm; ac_word=$2
6925{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6927if test "${ac_cv_path_RM+set}" = set; then
6928  echo $ECHO_N "(cached) $ECHO_C" >&6
6929else
6930  case $RM in
6931  [\\/]* | ?:[\\/]*)
6932  ac_cv_path_RM="$RM" # Let the user override the test with a path.
6933  ;;
6934  *)
6935  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936for as_dir in $PATH
6937do
6938  IFS=$as_save_IFS
6939  test -z "$as_dir" && as_dir=.
6940  for ac_exec_ext in '' $ac_executable_extensions; do
6941  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6942    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6943    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6944    break 2
6945  fi
6946done
6947done
6948IFS=$as_save_IFS
6949
6950  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6951  ;;
6952esac
6953fi
6954RM=$ac_cv_path_RM
6955if test -n "$RM"; then
6956  { echo "$as_me:$LINENO: result: $RM" >&5
6957echo "${ECHO_T}$RM" >&6; }
6958else
6959  { echo "$as_me:$LINENO: result: no" >&5
6960echo "${ECHO_T}no" >&6; }
6961fi
6962
6963
6964# Extract the first word of "sed", so it can be a program name with args.
6965set dummy sed; ac_word=$2
6966{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6968if test "${ac_cv_path_SED+set}" = set; then
6969  echo $ECHO_N "(cached) $ECHO_C" >&6
6970else
6971  case $SED in
6972  [\\/]* | ?:[\\/]*)
6973  ac_cv_path_SED="$SED" # Let the user override the test with a path.
6974  ;;
6975  *)
6976  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977for as_dir in $PATH
6978do
6979  IFS=$as_save_IFS
6980  test -z "$as_dir" && as_dir=.
6981  for ac_exec_ext in '' $ac_executable_extensions; do
6982  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6983    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6984    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6985    break 2
6986  fi
6987done
6988done
6989IFS=$as_save_IFS
6990
6991  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6992  ;;
6993esac
6994fi
6995SED=$ac_cv_path_SED
6996if test -n "$SED"; then
6997  { echo "$as_me:$LINENO: result: $SED" >&5
6998echo "${ECHO_T}$SED" >&6; }
6999else
7000  { echo "$as_me:$LINENO: result: no" >&5
7001echo "${ECHO_T}no" >&6; }
7002fi
7003
7004
7005# Extract the first word of "tar", so it can be a program name with args.
7006set dummy tar; ac_word=$2
7007{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7009if test "${ac_cv_path_TAR+set}" = set; then
7010  echo $ECHO_N "(cached) $ECHO_C" >&6
7011else
7012  case $TAR in
7013  [\\/]* | ?:[\\/]*)
7014  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7015  ;;
7016  *)
7017  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018for as_dir in $PATH
7019do
7020  IFS=$as_save_IFS
7021  test -z "$as_dir" && as_dir=.
7022  for ac_exec_ext in '' $ac_executable_extensions; do
7023  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7024    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7025    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7026    break 2
7027  fi
7028done
7029done
7030IFS=$as_save_IFS
7031
7032  test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7033  ;;
7034esac
7035fi
7036TAR=$ac_cv_path_TAR
7037if test -n "$TAR"; then
7038  { echo "$as_me:$LINENO: result: $TAR" >&5
7039echo "${ECHO_T}$TAR" >&6; }
7040else
7041  { echo "$as_me:$LINENO: result: no" >&5
7042echo "${ECHO_T}no" >&6; }
7043fi
7044
7045
7046# Extract the first word of "pwd", so it can be a program name with args.
7047set dummy pwd; ac_word=$2
7048{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7050if test "${ac_cv_path_BINPWD+set}" = set; then
7051  echo $ECHO_N "(cached) $ECHO_C" >&6
7052else
7053  case $BINPWD in
7054  [\\/]* | ?:[\\/]*)
7055  ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7056  ;;
7057  *)
7058  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059for as_dir in $PATH
7060do
7061  IFS=$as_save_IFS
7062  test -z "$as_dir" && as_dir=.
7063  for ac_exec_ext in '' $ac_executable_extensions; do
7064  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7065    ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7066    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7067    break 2
7068  fi
7069done
7070done
7071IFS=$as_save_IFS
7072
7073  test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7074  ;;
7075esac
7076fi
7077BINPWD=$ac_cv_path_BINPWD
7078if test -n "$BINPWD"; then
7079  { echo "$as_me:$LINENO: result: $BINPWD" >&5
7080echo "${ECHO_T}$BINPWD" >&6; }
7081else
7082  { echo "$as_me:$LINENO: result: no" >&5
7083echo "${ECHO_T}no" >&6; }
7084fi
7085
7086
7087
7088# Extract the first word of "Graphviz", so it can be a program name with args.
7089set dummy Graphviz; ac_word=$2
7090{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7092if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7093  echo $ECHO_N "(cached) $ECHO_C" >&6
7094else
7095  case $GRAPHVIZ in
7096  [\\/]* | ?:[\\/]*)
7097  ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7098  ;;
7099  *)
7100  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101for as_dir in $PATH
7102do
7103  IFS=$as_save_IFS
7104  test -z "$as_dir" && as_dir=.
7105  for ac_exec_ext in '' $ac_executable_extensions; do
7106  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7107    ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7108    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7109    break 2
7110  fi
7111done
7112done
7113IFS=$as_save_IFS
7114
7115  test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7116  ;;
7117esac
7118fi
7119GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7120if test -n "$GRAPHVIZ"; then
7121  { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7122echo "${ECHO_T}$GRAPHVIZ" >&6; }
7123else
7124  { echo "$as_me:$LINENO: result: no" >&5
7125echo "${ECHO_T}no" >&6; }
7126fi
7127
7128
7129if test "$GRAPHVIZ" != "echo Graphviz" ; then
7130
7131cat >>confdefs.h <<\_ACEOF
7132#define HAVE_GRAPHVIZ 1
7133_ACEOF
7134
7135    if test "$llvm_cv_os_type" = "MingW" ; then
7136    GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7137  fi
7138
7139cat >>confdefs.h <<_ACEOF
7140#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7141_ACEOF
7142
7143fi
7144# Extract the first word of "dot", so it can be a program name with args.
7145set dummy dot; ac_word=$2
7146{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7148if test "${ac_cv_path_DOT+set}" = set; then
7149  echo $ECHO_N "(cached) $ECHO_C" >&6
7150else
7151  case $DOT in
7152  [\\/]* | ?:[\\/]*)
7153  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7154  ;;
7155  *)
7156  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157for as_dir in $PATH
7158do
7159  IFS=$as_save_IFS
7160  test -z "$as_dir" && as_dir=.
7161  for ac_exec_ext in '' $ac_executable_extensions; do
7162  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7163    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7164    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7165    break 2
7166  fi
7167done
7168done
7169IFS=$as_save_IFS
7170
7171  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7172  ;;
7173esac
7174fi
7175DOT=$ac_cv_path_DOT
7176if test -n "$DOT"; then
7177  { echo "$as_me:$LINENO: result: $DOT" >&5
7178echo "${ECHO_T}$DOT" >&6; }
7179else
7180  { echo "$as_me:$LINENO: result: no" >&5
7181echo "${ECHO_T}no" >&6; }
7182fi
7183
7184
7185if test "$DOT" != "echo dot" ; then
7186
7187cat >>confdefs.h <<\_ACEOF
7188#define HAVE_DOT 1
7189_ACEOF
7190
7191    if test "$llvm_cv_os_type" = "MingW" ; then
7192    DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7193  fi
7194
7195cat >>confdefs.h <<_ACEOF
7196#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7197_ACEOF
7198
7199fi
7200for ac_prog in gv gsview32
7201do
7202  # Extract the first word of "$ac_prog", so it can be a program name with args.
7203set dummy $ac_prog; ac_word=$2
7204{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7206if test "${ac_cv_path_GV+set}" = set; then
7207  echo $ECHO_N "(cached) $ECHO_C" >&6
7208else
7209  case $GV in
7210  [\\/]* | ?:[\\/]*)
7211  ac_cv_path_GV="$GV" # Let the user override the test with a path.
7212  ;;
7213  *)
7214  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215for as_dir in $PATH
7216do
7217  IFS=$as_save_IFS
7218  test -z "$as_dir" && as_dir=.
7219  for ac_exec_ext in '' $ac_executable_extensions; do
7220  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7221    ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7222    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7223    break 2
7224  fi
7225done
7226done
7227IFS=$as_save_IFS
7228
7229  ;;
7230esac
7231fi
7232GV=$ac_cv_path_GV
7233if test -n "$GV"; then
7234  { echo "$as_me:$LINENO: result: $GV" >&5
7235echo "${ECHO_T}$GV" >&6; }
7236else
7237  { echo "$as_me:$LINENO: result: no" >&5
7238echo "${ECHO_T}no" >&6; }
7239fi
7240
7241
7242  test -n "$GV" && break
7243done
7244test -n "$GV" || GV="echo gv"
7245
7246if test "$GV" != "echo gv" ; then
7247
7248cat >>confdefs.h <<\_ACEOF
7249#define HAVE_GV 1
7250_ACEOF
7251
7252    if test "$llvm_cv_os_type" = "MingW" ; then
7253    GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7254  fi
7255
7256cat >>confdefs.h <<_ACEOF
7257#define LLVM_PATH_GV "$GV${EXEEXT}"
7258_ACEOF
7259
7260fi
7261# Extract the first word of "dotty", so it can be a program name with args.
7262set dummy dotty; ac_word=$2
7263{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7265if test "${ac_cv_path_DOTTY+set}" = set; then
7266  echo $ECHO_N "(cached) $ECHO_C" >&6
7267else
7268  case $DOTTY in
7269  [\\/]* | ?:[\\/]*)
7270  ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7271  ;;
7272  *)
7273  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274for as_dir in $PATH
7275do
7276  IFS=$as_save_IFS
7277  test -z "$as_dir" && as_dir=.
7278  for ac_exec_ext in '' $ac_executable_extensions; do
7279  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7280    ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7281    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7282    break 2
7283  fi
7284done
7285done
7286IFS=$as_save_IFS
7287
7288  test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7289  ;;
7290esac
7291fi
7292DOTTY=$ac_cv_path_DOTTY
7293if test -n "$DOTTY"; then
7294  { echo "$as_me:$LINENO: result: $DOTTY" >&5
7295echo "${ECHO_T}$DOTTY" >&6; }
7296else
7297  { echo "$as_me:$LINENO: result: no" >&5
7298echo "${ECHO_T}no" >&6; }
7299fi
7300
7301
7302if test "$DOTTY" != "echo dotty" ; then
7303
7304cat >>confdefs.h <<\_ACEOF
7305#define HAVE_DOTTY 1
7306_ACEOF
7307
7308    if test "$llvm_cv_os_type" = "MingW" ; then
7309    DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7310  fi
7311
7312cat >>confdefs.h <<_ACEOF
7313#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7314_ACEOF
7315
7316fi
7317
7318
7319# Extract the first word of "perl", so it can be a program name with args.
7320set dummy perl; ac_word=$2
7321{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7323if test "${ac_cv_path_PERL+set}" = set; then
7324  echo $ECHO_N "(cached) $ECHO_C" >&6
7325else
7326  case $PERL in
7327  [\\/]* | ?:[\\/]*)
7328  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7329  ;;
7330  *)
7331  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332for as_dir in $PATH
7333do
7334  IFS=$as_save_IFS
7335  test -z "$as_dir" && as_dir=.
7336  for ac_exec_ext in '' $ac_executable_extensions; do
7337  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7338    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7339    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7340    break 2
7341  fi
7342done
7343done
7344IFS=$as_save_IFS
7345
7346  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7347  ;;
7348esac
7349fi
7350PERL=$ac_cv_path_PERL
7351if test -n "$PERL"; then
7352  { echo "$as_me:$LINENO: result: $PERL" >&5
7353echo "${ECHO_T}$PERL" >&6; }
7354else
7355  { echo "$as_me:$LINENO: result: no" >&5
7356echo "${ECHO_T}no" >&6; }
7357fi
7358
7359
7360if test "$PERL" != "none"; then
7361  { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7362echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7363  if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7364    { echo "$as_me:$LINENO: result: yes" >&5
7365echo "${ECHO_T}yes" >&6; }
7366  else
7367    PERL=none
7368    { echo "$as_me:$LINENO: result: not found" >&5
7369echo "${ECHO_T}not found" >&6; }
7370  fi
7371fi
7372
7373
7374if test x"$PERL" = xnone; then
7375   HAVE_PERL=0
7376
7377else
7378   HAVE_PERL=1
7379
7380fi
7381
7382# Find a good install program.  We prefer a C program (faster),
7383# so one script is as good as another.  But avoid the broken or
7384# incompatible versions:
7385# SysV /etc/install, /usr/sbin/install
7386# SunOS /usr/etc/install
7387# IRIX /sbin/install
7388# AIX /bin/install
7389# AmigaOS /C/install, which installs bootblocks on floppy discs
7390# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7391# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7392# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7393# OS/2's system install, which has a completely different semantic
7394# ./install, which can be erroneously created by make from ./install.sh.
7395{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7396echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7397if test -z "$INSTALL"; then
7398if test "${ac_cv_path_install+set}" = set; then
7399  echo $ECHO_N "(cached) $ECHO_C" >&6
7400else
7401  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402for as_dir in $PATH
7403do
7404  IFS=$as_save_IFS
7405  test -z "$as_dir" && as_dir=.
7406  # Account for people who put trailing slashes in PATH elements.
7407case $as_dir/ in
7408  ./ | .// | /cC/* | \
7409  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7410  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7411  /usr/ucb/* ) ;;
7412  *)
7413    # OSF1 and SCO ODT 3.0 have their own names for install.
7414    # Don't use installbsd from OSF since it installs stuff as root
7415    # by default.
7416    for ac_prog in ginstall scoinst install; do
7417      for ac_exec_ext in '' $ac_executable_extensions; do
7418	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7419	  if test $ac_prog = install &&
7420	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7421	    # AIX install.  It has an incompatible calling convention.
7422	    :
7423	  elif test $ac_prog = install &&
7424	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7425	    # program-specific install script used by HP pwplus--don't use.
7426	    :
7427	  else
7428	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7429	    break 3
7430	  fi
7431	fi
7432      done
7433    done
7434    ;;
7435esac
7436done
7437IFS=$as_save_IFS
7438
7439
7440fi
7441  if test "${ac_cv_path_install+set}" = set; then
7442    INSTALL=$ac_cv_path_install
7443  else
7444    # As a last resort, use the slow shell script.  Don't cache a
7445    # value for INSTALL within a source directory, because that will
7446    # break other packages using the cache if that directory is
7447    # removed, or if the value is a relative name.
7448    INSTALL=$ac_install_sh
7449  fi
7450fi
7451{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7452echo "${ECHO_T}$INSTALL" >&6; }
7453
7454# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7455# It thinks the first close brace ends the variable substitution.
7456test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7457
7458test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7459
7460test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7461
7462
7463# Extract the first word of "bzip2", so it can be a program name with args.
7464set dummy bzip2; ac_word=$2
7465{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7467if test "${ac_cv_path_BZIP2+set}" = set; then
7468  echo $ECHO_N "(cached) $ECHO_C" >&6
7469else
7470  case $BZIP2 in
7471  [\\/]* | ?:[\\/]*)
7472  ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7473  ;;
7474  *)
7475  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476for as_dir in $PATH
7477do
7478  IFS=$as_save_IFS
7479  test -z "$as_dir" && as_dir=.
7480  for ac_exec_ext in '' $ac_executable_extensions; do
7481  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7482    ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7483    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7484    break 2
7485  fi
7486done
7487done
7488IFS=$as_save_IFS
7489
7490  test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7491  ;;
7492esac
7493fi
7494BZIP2=$ac_cv_path_BZIP2
7495if test -n "$BZIP2"; then
7496  { echo "$as_me:$LINENO: result: $BZIP2" >&5
7497echo "${ECHO_T}$BZIP2" >&6; }
7498else
7499  { echo "$as_me:$LINENO: result: no" >&5
7500echo "${ECHO_T}no" >&6; }
7501fi
7502
7503
7504# Extract the first word of "doxygen", so it can be a program name with args.
7505set dummy doxygen; ac_word=$2
7506{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7508if test "${ac_cv_path_DOXYGEN+set}" = set; then
7509  echo $ECHO_N "(cached) $ECHO_C" >&6
7510else
7511  case $DOXYGEN in
7512  [\\/]* | ?:[\\/]*)
7513  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7514  ;;
7515  *)
7516  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517for as_dir in $PATH
7518do
7519  IFS=$as_save_IFS
7520  test -z "$as_dir" && as_dir=.
7521  for ac_exec_ext in '' $ac_executable_extensions; do
7522  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7523    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7524    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7525    break 2
7526  fi
7527done
7528done
7529IFS=$as_save_IFS
7530
7531  test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7532  ;;
7533esac
7534fi
7535DOXYGEN=$ac_cv_path_DOXYGEN
7536if test -n "$DOXYGEN"; then
7537  { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7538echo "${ECHO_T}$DOXYGEN" >&6; }
7539else
7540  { echo "$as_me:$LINENO: result: no" >&5
7541echo "${ECHO_T}no" >&6; }
7542fi
7543
7544
7545# Extract the first word of "groff", so it can be a program name with args.
7546set dummy groff; ac_word=$2
7547{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7549if test "${ac_cv_path_GROFF+set}" = set; then
7550  echo $ECHO_N "(cached) $ECHO_C" >&6
7551else
7552  case $GROFF in
7553  [\\/]* | ?:[\\/]*)
7554  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7555  ;;
7556  *)
7557  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558for as_dir in $PATH
7559do
7560  IFS=$as_save_IFS
7561  test -z "$as_dir" && as_dir=.
7562  for ac_exec_ext in '' $ac_executable_extensions; do
7563  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7564    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7565    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7566    break 2
7567  fi
7568done
7569done
7570IFS=$as_save_IFS
7571
7572  test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7573  ;;
7574esac
7575fi
7576GROFF=$ac_cv_path_GROFF
7577if test -n "$GROFF"; then
7578  { echo "$as_me:$LINENO: result: $GROFF" >&5
7579echo "${ECHO_T}$GROFF" >&6; }
7580else
7581  { echo "$as_me:$LINENO: result: no" >&5
7582echo "${ECHO_T}no" >&6; }
7583fi
7584
7585
7586# Extract the first word of "gzip", so it can be a program name with args.
7587set dummy gzip; ac_word=$2
7588{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7590if test "${ac_cv_path_GZIP+set}" = set; then
7591  echo $ECHO_N "(cached) $ECHO_C" >&6
7592else
7593  case $GZIP in
7594  [\\/]* | ?:[\\/]*)
7595  ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7596  ;;
7597  *)
7598  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599for as_dir in $PATH
7600do
7601  IFS=$as_save_IFS
7602  test -z "$as_dir" && as_dir=.
7603  for ac_exec_ext in '' $ac_executable_extensions; do
7604  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7605    ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7606    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7607    break 2
7608  fi
7609done
7610done
7611IFS=$as_save_IFS
7612
7613  test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7614  ;;
7615esac
7616fi
7617GZIP=$ac_cv_path_GZIP
7618if test -n "$GZIP"; then
7619  { echo "$as_me:$LINENO: result: $GZIP" >&5
7620echo "${ECHO_T}$GZIP" >&6; }
7621else
7622  { echo "$as_me:$LINENO: result: no" >&5
7623echo "${ECHO_T}no" >&6; }
7624fi
7625
7626
7627# Extract the first word of "pod2html", so it can be a program name with args.
7628set dummy pod2html; ac_word=$2
7629{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7631if test "${ac_cv_path_POD2HTML+set}" = set; then
7632  echo $ECHO_N "(cached) $ECHO_C" >&6
7633else
7634  case $POD2HTML in
7635  [\\/]* | ?:[\\/]*)
7636  ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7637  ;;
7638  *)
7639  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640for as_dir in $PATH
7641do
7642  IFS=$as_save_IFS
7643  test -z "$as_dir" && as_dir=.
7644  for ac_exec_ext in '' $ac_executable_extensions; do
7645  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7646    ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7647    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7648    break 2
7649  fi
7650done
7651done
7652IFS=$as_save_IFS
7653
7654  test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7655  ;;
7656esac
7657fi
7658POD2HTML=$ac_cv_path_POD2HTML
7659if test -n "$POD2HTML"; then
7660  { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7661echo "${ECHO_T}$POD2HTML" >&6; }
7662else
7663  { echo "$as_me:$LINENO: result: no" >&5
7664echo "${ECHO_T}no" >&6; }
7665fi
7666
7667
7668# Extract the first word of "pod2man", so it can be a program name with args.
7669set dummy pod2man; ac_word=$2
7670{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7672if test "${ac_cv_path_POD2MAN+set}" = set; then
7673  echo $ECHO_N "(cached) $ECHO_C" >&6
7674else
7675  case $POD2MAN in
7676  [\\/]* | ?:[\\/]*)
7677  ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7678  ;;
7679  *)
7680  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681for as_dir in $PATH
7682do
7683  IFS=$as_save_IFS
7684  test -z "$as_dir" && as_dir=.
7685  for ac_exec_ext in '' $ac_executable_extensions; do
7686  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7687    ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7688    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7689    break 2
7690  fi
7691done
7692done
7693IFS=$as_save_IFS
7694
7695  test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7696  ;;
7697esac
7698fi
7699POD2MAN=$ac_cv_path_POD2MAN
7700if test -n "$POD2MAN"; then
7701  { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7702echo "${ECHO_T}$POD2MAN" >&6; }
7703else
7704  { echo "$as_me:$LINENO: result: no" >&5
7705echo "${ECHO_T}no" >&6; }
7706fi
7707
7708
7709# Extract the first word of "runtest", so it can be a program name with args.
7710set dummy runtest; ac_word=$2
7711{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7713if test "${ac_cv_path_RUNTEST+set}" = set; then
7714  echo $ECHO_N "(cached) $ECHO_C" >&6
7715else
7716  case $RUNTEST in
7717  [\\/]* | ?:[\\/]*)
7718  ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7719  ;;
7720  *)
7721  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722for as_dir in $PATH
7723do
7724  IFS=$as_save_IFS
7725  test -z "$as_dir" && as_dir=.
7726  for ac_exec_ext in '' $ac_executable_extensions; do
7727  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7728    ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7729    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7730    break 2
7731  fi
7732done
7733done
7734IFS=$as_save_IFS
7735
7736  test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7737  ;;
7738esac
7739fi
7740RUNTEST=$ac_cv_path_RUNTEST
7741if test -n "$RUNTEST"; then
7742  { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7743echo "${ECHO_T}$RUNTEST" >&6; }
7744else
7745  { echo "$as_me:$LINENO: result: no" >&5
7746echo "${ECHO_T}no" >&6; }
7747fi
7748
7749
7750
7751no_itcl=true
7752{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7753echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7754
7755# Check whether --with-tclinclude was given.
7756if test "${with_tclinclude+set}" = set; then
7757  withval=$with_tclinclude; with_tclinclude=${withval}
7758else
7759  with_tclinclude=''
7760fi
7761
7762if test "${ac_cv_path_tclsh+set}" = set; then
7763  echo $ECHO_N "(cached) $ECHO_C" >&6
7764else
7765
7766if test x"${with_tclinclude}" != x ; then
7767  if test -f ${with_tclinclude}/tclsh ; then
7768    ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7769  elif test -f ${with_tclinclude}/src/tclsh ; then
7770    ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7771  else
7772    { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7773echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7774   { (exit 1); exit 1; }; }
7775  fi
7776fi
7777
7778if test x"${ac_cv_path_tclsh}" = x ; then
7779  { echo "$as_me:$LINENO: result: none" >&5
7780echo "${ECHO_T}none" >&6; }
7781  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
7782do
7783  # Extract the first word of "$ac_prog", so it can be a program name with args.
7784set dummy $ac_prog; ac_word=$2
7785{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7787if test "${ac_cv_path_TCLSH+set}" = set; then
7788  echo $ECHO_N "(cached) $ECHO_C" >&6
7789else
7790  case $TCLSH in
7791  [\\/]* | ?:[\\/]*)
7792  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7793  ;;
7794  *)
7795  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7796for as_dir in $PATH
7797do
7798  IFS=$as_save_IFS
7799  test -z "$as_dir" && as_dir=.
7800  for ac_exec_ext in '' $ac_executable_extensions; do
7801  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7802    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7803    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7804    break 2
7805  fi
7806done
7807done
7808IFS=$as_save_IFS
7809
7810  ;;
7811esac
7812fi
7813TCLSH=$ac_cv_path_TCLSH
7814if test -n "$TCLSH"; then
7815  { echo "$as_me:$LINENO: result: $TCLSH" >&5
7816echo "${ECHO_T}$TCLSH" >&6; }
7817else
7818  { echo "$as_me:$LINENO: result: no" >&5
7819echo "${ECHO_T}no" >&6; }
7820fi
7821
7822
7823  test -n "$TCLSH" && break
7824done
7825
7826  if test x"${TCLSH}" = x ; then
7827    ac_cv_path_tclsh='';
7828  else
7829    ac_cv_path_tclsh="${TCLSH}";
7830  fi
7831else
7832  { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7833echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7834  TCLSH="${ac_cv_path_tclsh}"
7835
7836fi
7837
7838fi
7839
7840# Extract the first word of "zip", so it can be a program name with args.
7841set dummy zip; ac_word=$2
7842{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7844if test "${ac_cv_path_ZIP+set}" = set; then
7845  echo $ECHO_N "(cached) $ECHO_C" >&6
7846else
7847  case $ZIP in
7848  [\\/]* | ?:[\\/]*)
7849  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7850  ;;
7851  *)
7852  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7853for as_dir in $PATH
7854do
7855  IFS=$as_save_IFS
7856  test -z "$as_dir" && as_dir=.
7857  for ac_exec_ext in '' $ac_executable_extensions; do
7858  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7859    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7860    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7861    break 2
7862  fi
7863done
7864done
7865IFS=$as_save_IFS
7866
7867  test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7868  ;;
7869esac
7870fi
7871ZIP=$ac_cv_path_ZIP
7872if test -n "$ZIP"; then
7873  { echo "$as_me:$LINENO: result: $ZIP" >&5
7874echo "${ECHO_T}$ZIP" >&6; }
7875else
7876  { echo "$as_me:$LINENO: result: no" >&5
7877echo "${ECHO_T}no" >&6; }
7878fi
7879
7880
7881
7882{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7883echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7884if test "${llvm_cv_link_use_r+set}" = set; then
7885  echo $ECHO_N "(cached) $ECHO_C" >&6
7886else
7887   ac_ext=c
7888ac_cpp='$CPP $CPPFLAGS'
7889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7891ac_compiler_gnu=$ac_cv_c_compiler_gnu
7892
7893  oldcflags="$CFLAGS"
7894  CFLAGS="$CFLAGS -Wl,-R."
7895  cat >conftest.$ac_ext <<_ACEOF
7896/* confdefs.h.  */
7897_ACEOF
7898cat confdefs.h >>conftest.$ac_ext
7899cat >>conftest.$ac_ext <<_ACEOF
7900/* end confdefs.h.  */
7901
7902int
7903main ()
7904{
7905int main() { return 0; }
7906  ;
7907  return 0;
7908}
7909_ACEOF
7910rm -f conftest.$ac_objext conftest$ac_exeext
7911if { (ac_try="$ac_link"
7912case "(($ac_try" in
7913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7914  *) ac_try_echo=$ac_try;;
7915esac
7916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7917  (eval "$ac_link") 2>conftest.er1
7918  ac_status=$?
7919  grep -v '^ *+' conftest.er1 >conftest.err
7920  rm -f conftest.er1
7921  cat conftest.err >&5
7922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923  (exit $ac_status); } &&
7924	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7925  { (case "(($ac_try" in
7926  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927  *) ac_try_echo=$ac_try;;
7928esac
7929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7930  (eval "$ac_try") 2>&5
7931  ac_status=$?
7932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933  (exit $ac_status); }; } &&
7934	 { ac_try='test -s conftest$ac_exeext'
7935  { (case "(($ac_try" in
7936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7937  *) ac_try_echo=$ac_try;;
7938esac
7939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7940  (eval "$ac_try") 2>&5
7941  ac_status=$?
7942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943  (exit $ac_status); }; }; then
7944  llvm_cv_link_use_r=yes
7945else
7946  echo "$as_me: failed program was:" >&5
7947sed 's/^/| /' conftest.$ac_ext >&5
7948
7949	llvm_cv_link_use_r=no
7950fi
7951
7952rm -f core conftest.err conftest.$ac_objext \
7953      conftest$ac_exeext conftest.$ac_ext
7954  CFLAGS="$oldcflags"
7955  ac_ext=c
7956ac_cpp='$CPP $CPPFLAGS'
7957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7959ac_compiler_gnu=$ac_cv_c_compiler_gnu
7960
7961
7962fi
7963{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7964echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7965if test "$llvm_cv_link_use_r" = yes ; then
7966
7967cat >>confdefs.h <<\_ACEOF
7968#define HAVE_LINK_R 1
7969_ACEOF
7970
7971  fi
7972
7973
7974
7975
7976{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7977echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7978if test "${ac_cv_c_const+set}" = set; then
7979  echo $ECHO_N "(cached) $ECHO_C" >&6
7980else
7981  cat >conftest.$ac_ext <<_ACEOF
7982/* confdefs.h.  */
7983_ACEOF
7984cat confdefs.h >>conftest.$ac_ext
7985cat >>conftest.$ac_ext <<_ACEOF
7986/* end confdefs.h.  */
7987
7988int
7989main ()
7990{
7991/* FIXME: Include the comments suggested by Paul. */
7992#ifndef __cplusplus
7993  /* Ultrix mips cc rejects this.  */
7994  typedef int charset[2];
7995  const charset x;
7996  /* SunOS 4.1.1 cc rejects this.  */
7997  char const *const *ccp;
7998  char **p;
7999  /* NEC SVR4.0.2 mips cc rejects this.  */
8000  struct point {int x, y;};
8001  static struct point const zero = {0,0};
8002  /* AIX XL C 1.02.0.0 rejects this.
8003     It does not let you subtract one const X* pointer from another in
8004     an arm of an if-expression whose if-part is not a constant
8005     expression */
8006  const char *g = "string";
8007  ccp = &g + (g ? g-g : 0);
8008  /* HPUX 7.0 cc rejects these. */
8009  ++ccp;
8010  p = (char**) ccp;
8011  ccp = (char const *const *) p;
8012  { /* SCO 3.2v4 cc rejects this.  */
8013    char *t;
8014    char const *s = 0 ? (char *) 0 : (char const *) 0;
8015
8016    *t++ = 0;
8017    if (s) return 0;
8018  }
8019  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8020    int x[] = {25, 17};
8021    const int *foo = &x[0];
8022    ++foo;
8023  }
8024  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8025    typedef const int *iptr;
8026    iptr p = 0;
8027    ++p;
8028  }
8029  { /* AIX XL C 1.02.0.0 rejects this saying
8030       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8031    struct s { int j; const int *ap[3]; };
8032    struct s *b; b->j = 5;
8033  }
8034  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8035    const int foo = 10;
8036    if (!foo) return 0;
8037  }
8038  return !x[0] && !zero.x;
8039#endif
8040
8041  ;
8042  return 0;
8043}
8044_ACEOF
8045rm -f conftest.$ac_objext
8046if { (ac_try="$ac_compile"
8047case "(($ac_try" in
8048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8049  *) ac_try_echo=$ac_try;;
8050esac
8051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8052  (eval "$ac_compile") 2>conftest.er1
8053  ac_status=$?
8054  grep -v '^ *+' conftest.er1 >conftest.err
8055  rm -f conftest.er1
8056  cat conftest.err >&5
8057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058  (exit $ac_status); } &&
8059	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8060  { (case "(($ac_try" in
8061  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8062  *) ac_try_echo=$ac_try;;
8063esac
8064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8065  (eval "$ac_try") 2>&5
8066  ac_status=$?
8067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068  (exit $ac_status); }; } &&
8069	 { ac_try='test -s conftest.$ac_objext'
8070  { (case "(($ac_try" in
8071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8072  *) ac_try_echo=$ac_try;;
8073esac
8074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8075  (eval "$ac_try") 2>&5
8076  ac_status=$?
8077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078  (exit $ac_status); }; }; then
8079  ac_cv_c_const=yes
8080else
8081  echo "$as_me: failed program was:" >&5
8082sed 's/^/| /' conftest.$ac_ext >&5
8083
8084	ac_cv_c_const=no
8085fi
8086
8087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8088fi
8089{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8090echo "${ECHO_T}$ac_cv_c_const" >&6; }
8091if test $ac_cv_c_const = no; then
8092
8093cat >>confdefs.h <<\_ACEOF
8094#define const
8095_ACEOF
8096
8097fi
8098
8099
8100
8101
8102
8103
8104ac_header_dirent=no
8105for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8106  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8107{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8108echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8109if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8110  echo $ECHO_N "(cached) $ECHO_C" >&6
8111else
8112  cat >conftest.$ac_ext <<_ACEOF
8113/* confdefs.h.  */
8114_ACEOF
8115cat confdefs.h >>conftest.$ac_ext
8116cat >>conftest.$ac_ext <<_ACEOF
8117/* end confdefs.h.  */
8118#include <sys/types.h>
8119#include <$ac_hdr>
8120
8121int
8122main ()
8123{
8124if ((DIR *) 0)
8125return 0;
8126  ;
8127  return 0;
8128}
8129_ACEOF
8130rm -f conftest.$ac_objext
8131if { (ac_try="$ac_compile"
8132case "(($ac_try" in
8133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134  *) ac_try_echo=$ac_try;;
8135esac
8136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137  (eval "$ac_compile") 2>conftest.er1
8138  ac_status=$?
8139  grep -v '^ *+' conftest.er1 >conftest.err
8140  rm -f conftest.er1
8141  cat conftest.err >&5
8142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143  (exit $ac_status); } &&
8144	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8145  { (case "(($ac_try" in
8146  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147  *) ac_try_echo=$ac_try;;
8148esac
8149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8150  (eval "$ac_try") 2>&5
8151  ac_status=$?
8152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153  (exit $ac_status); }; } &&
8154	 { ac_try='test -s conftest.$ac_objext'
8155  { (case "(($ac_try" in
8156  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157  *) ac_try_echo=$ac_try;;
8158esac
8159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8160  (eval "$ac_try") 2>&5
8161  ac_status=$?
8162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163  (exit $ac_status); }; }; then
8164  eval "$as_ac_Header=yes"
8165else
8166  echo "$as_me: failed program was:" >&5
8167sed 's/^/| /' conftest.$ac_ext >&5
8168
8169	eval "$as_ac_Header=no"
8170fi
8171
8172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8173fi
8174ac_res=`eval echo '${'$as_ac_Header'}'`
8175	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8176echo "${ECHO_T}$ac_res" >&6; }
8177if test `eval echo '${'$as_ac_Header'}'` = yes; then
8178  cat >>confdefs.h <<_ACEOF
8179#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8180_ACEOF
8181
8182ac_header_dirent=$ac_hdr; break
8183fi
8184
8185done
8186# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8187if test $ac_header_dirent = dirent.h; then
8188  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8189echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8190if test "${ac_cv_search_opendir+set}" = set; then
8191  echo $ECHO_N "(cached) $ECHO_C" >&6
8192else
8193  ac_func_search_save_LIBS=$LIBS
8194cat >conftest.$ac_ext <<_ACEOF
8195/* confdefs.h.  */
8196_ACEOF
8197cat confdefs.h >>conftest.$ac_ext
8198cat >>conftest.$ac_ext <<_ACEOF
8199/* end confdefs.h.  */
8200
8201/* Override any GCC internal prototype to avoid an error.
8202   Use char because int might match the return type of a GCC
8203   builtin and then its argument prototype would still apply.  */
8204#ifdef __cplusplus
8205extern "C"
8206#endif
8207char opendir ();
8208int
8209main ()
8210{
8211return opendir ();
8212  ;
8213  return 0;
8214}
8215_ACEOF
8216for ac_lib in '' dir; do
8217  if test -z "$ac_lib"; then
8218    ac_res="none required"
8219  else
8220    ac_res=-l$ac_lib
8221    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8222  fi
8223  rm -f conftest.$ac_objext conftest$ac_exeext
8224if { (ac_try="$ac_link"
8225case "(($ac_try" in
8226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227  *) ac_try_echo=$ac_try;;
8228esac
8229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8230  (eval "$ac_link") 2>conftest.er1
8231  ac_status=$?
8232  grep -v '^ *+' conftest.er1 >conftest.err
8233  rm -f conftest.er1
8234  cat conftest.err >&5
8235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236  (exit $ac_status); } &&
8237	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8238  { (case "(($ac_try" in
8239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8240  *) ac_try_echo=$ac_try;;
8241esac
8242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8243  (eval "$ac_try") 2>&5
8244  ac_status=$?
8245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246  (exit $ac_status); }; } &&
8247	 { ac_try='test -s conftest$ac_exeext'
8248  { (case "(($ac_try" in
8249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8250  *) ac_try_echo=$ac_try;;
8251esac
8252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8253  (eval "$ac_try") 2>&5
8254  ac_status=$?
8255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256  (exit $ac_status); }; }; then
8257  ac_cv_search_opendir=$ac_res
8258else
8259  echo "$as_me: failed program was:" >&5
8260sed 's/^/| /' conftest.$ac_ext >&5
8261
8262
8263fi
8264
8265rm -f core conftest.err conftest.$ac_objext \
8266      conftest$ac_exeext
8267  if test "${ac_cv_search_opendir+set}" = set; then
8268  break
8269fi
8270done
8271if test "${ac_cv_search_opendir+set}" = set; then
8272  :
8273else
8274  ac_cv_search_opendir=no
8275fi
8276rm conftest.$ac_ext
8277LIBS=$ac_func_search_save_LIBS
8278fi
8279{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8280echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8281ac_res=$ac_cv_search_opendir
8282if test "$ac_res" != no; then
8283  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8284
8285fi
8286
8287else
8288  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8289echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8290if test "${ac_cv_search_opendir+set}" = set; then
8291  echo $ECHO_N "(cached) $ECHO_C" >&6
8292else
8293  ac_func_search_save_LIBS=$LIBS
8294cat >conftest.$ac_ext <<_ACEOF
8295/* confdefs.h.  */
8296_ACEOF
8297cat confdefs.h >>conftest.$ac_ext
8298cat >>conftest.$ac_ext <<_ACEOF
8299/* end confdefs.h.  */
8300
8301/* Override any GCC internal prototype to avoid an error.
8302   Use char because int might match the return type of a GCC
8303   builtin and then its argument prototype would still apply.  */
8304#ifdef __cplusplus
8305extern "C"
8306#endif
8307char opendir ();
8308int
8309main ()
8310{
8311return opendir ();
8312  ;
8313  return 0;
8314}
8315_ACEOF
8316for ac_lib in '' x; do
8317  if test -z "$ac_lib"; then
8318    ac_res="none required"
8319  else
8320    ac_res=-l$ac_lib
8321    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8322  fi
8323  rm -f conftest.$ac_objext conftest$ac_exeext
8324if { (ac_try="$ac_link"
8325case "(($ac_try" in
8326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8327  *) ac_try_echo=$ac_try;;
8328esac
8329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8330  (eval "$ac_link") 2>conftest.er1
8331  ac_status=$?
8332  grep -v '^ *+' conftest.er1 >conftest.err
8333  rm -f conftest.er1
8334  cat conftest.err >&5
8335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336  (exit $ac_status); } &&
8337	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8338  { (case "(($ac_try" in
8339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8340  *) ac_try_echo=$ac_try;;
8341esac
8342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8343  (eval "$ac_try") 2>&5
8344  ac_status=$?
8345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346  (exit $ac_status); }; } &&
8347	 { ac_try='test -s conftest$ac_exeext'
8348  { (case "(($ac_try" in
8349  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8350  *) ac_try_echo=$ac_try;;
8351esac
8352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8353  (eval "$ac_try") 2>&5
8354  ac_status=$?
8355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356  (exit $ac_status); }; }; then
8357  ac_cv_search_opendir=$ac_res
8358else
8359  echo "$as_me: failed program was:" >&5
8360sed 's/^/| /' conftest.$ac_ext >&5
8361
8362
8363fi
8364
8365rm -f core conftest.err conftest.$ac_objext \
8366      conftest$ac_exeext
8367  if test "${ac_cv_search_opendir+set}" = set; then
8368  break
8369fi
8370done
8371if test "${ac_cv_search_opendir+set}" = set; then
8372  :
8373else
8374  ac_cv_search_opendir=no
8375fi
8376rm conftest.$ac_ext
8377LIBS=$ac_func_search_save_LIBS
8378fi
8379{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8380echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8381ac_res=$ac_cv_search_opendir
8382if test "$ac_res" != no; then
8383  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8384
8385fi
8386
8387fi
8388
8389
8390for ac_header in dlfcn.h
8391do
8392as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8393if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8394  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8395echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8396if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8397  echo $ECHO_N "(cached) $ECHO_C" >&6
8398fi
8399ac_res=`eval echo '${'$as_ac_Header'}'`
8400	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8401echo "${ECHO_T}$ac_res" >&6; }
8402else
8403  # Is the header compilable?
8404{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8405echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8406cat >conftest.$ac_ext <<_ACEOF
8407/* confdefs.h.  */
8408_ACEOF
8409cat confdefs.h >>conftest.$ac_ext
8410cat >>conftest.$ac_ext <<_ACEOF
8411/* end confdefs.h.  */
8412$ac_includes_default
8413#include <$ac_header>
8414_ACEOF
8415rm -f conftest.$ac_objext
8416if { (ac_try="$ac_compile"
8417case "(($ac_try" in
8418  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8419  *) ac_try_echo=$ac_try;;
8420esac
8421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8422  (eval "$ac_compile") 2>conftest.er1
8423  ac_status=$?
8424  grep -v '^ *+' conftest.er1 >conftest.err
8425  rm -f conftest.er1
8426  cat conftest.err >&5
8427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428  (exit $ac_status); } &&
8429	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8430  { (case "(($ac_try" in
8431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8432  *) ac_try_echo=$ac_try;;
8433esac
8434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8435  (eval "$ac_try") 2>&5
8436  ac_status=$?
8437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438  (exit $ac_status); }; } &&
8439	 { ac_try='test -s conftest.$ac_objext'
8440  { (case "(($ac_try" in
8441  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8442  *) ac_try_echo=$ac_try;;
8443esac
8444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8445  (eval "$ac_try") 2>&5
8446  ac_status=$?
8447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448  (exit $ac_status); }; }; then
8449  ac_header_compiler=yes
8450else
8451  echo "$as_me: failed program was:" >&5
8452sed 's/^/| /' conftest.$ac_ext >&5
8453
8454	ac_header_compiler=no
8455fi
8456
8457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8458{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8459echo "${ECHO_T}$ac_header_compiler" >&6; }
8460
8461# Is the header present?
8462{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8463echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8464cat >conftest.$ac_ext <<_ACEOF
8465/* confdefs.h.  */
8466_ACEOF
8467cat confdefs.h >>conftest.$ac_ext
8468cat >>conftest.$ac_ext <<_ACEOF
8469/* end confdefs.h.  */
8470#include <$ac_header>
8471_ACEOF
8472if { (ac_try="$ac_cpp conftest.$ac_ext"
8473case "(($ac_try" in
8474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8475  *) ac_try_echo=$ac_try;;
8476esac
8477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8478  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8479  ac_status=$?
8480  grep -v '^ *+' conftest.er1 >conftest.err
8481  rm -f conftest.er1
8482  cat conftest.err >&5
8483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484  (exit $ac_status); } >/dev/null; then
8485  if test -s conftest.err; then
8486    ac_cpp_err=$ac_c_preproc_warn_flag
8487    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8488  else
8489    ac_cpp_err=
8490  fi
8491else
8492  ac_cpp_err=yes
8493fi
8494if test -z "$ac_cpp_err"; then
8495  ac_header_preproc=yes
8496else
8497  echo "$as_me: failed program was:" >&5
8498sed 's/^/| /' conftest.$ac_ext >&5
8499
8500  ac_header_preproc=no
8501fi
8502
8503rm -f conftest.err conftest.$ac_ext
8504{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8505echo "${ECHO_T}$ac_header_preproc" >&6; }
8506
8507# So?  What about this header?
8508case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8509  yes:no: )
8510    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8511echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8512    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8513echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8514    ac_header_preproc=yes
8515    ;;
8516  no:yes:* )
8517    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8518echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8519    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8520echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8521    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8522echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8523    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8524echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8525    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8526echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8527    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8528echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8529    ( cat <<\_ASBOX
8530## ----------------------------------- ##
8531## Report this to llvmbugs@cs.uiuc.edu ##
8532## ----------------------------------- ##
8533_ASBOX
8534     ) | sed "s/^/$as_me: WARNING:     /" >&2
8535    ;;
8536esac
8537{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8538echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8539if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8540  echo $ECHO_N "(cached) $ECHO_C" >&6
8541else
8542  eval "$as_ac_Header=\$ac_header_preproc"
8543fi
8544ac_res=`eval echo '${'$as_ac_Header'}'`
8545	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8546echo "${ECHO_T}$ac_res" >&6; }
8547
8548fi
8549if test `eval echo '${'$as_ac_Header'}'` = yes; then
8550  cat >>confdefs.h <<_ACEOF
8551#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8552_ACEOF
8553
8554fi
8555
8556done
8557
8558# Check whether --enable-ltdl-install was given.
8559if test "${enable_ltdl_install+set}" = set; then
8560  enableval=$enable_ltdl_install;
8561fi
8562
8563
8564
8565
8566if test x"${enable_ltdl_install-no}" != xno; then
8567  INSTALL_LTDL_TRUE=
8568  INSTALL_LTDL_FALSE='#'
8569else
8570  INSTALL_LTDL_TRUE='#'
8571  INSTALL_LTDL_FALSE=
8572fi
8573
8574
8575
8576if test x"${enable_ltdl_convenience-no}" != xno; then
8577  CONVENIENCE_LTDL_TRUE=
8578  CONVENIENCE_LTDL_FALSE='#'
8579else
8580  CONVENIENCE_LTDL_TRUE='#'
8581  CONVENIENCE_LTDL_FALSE=
8582fi
8583
8584
8585{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8586echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8587library_names_spec=
8588libname_spec='lib$name'
8589soname_spec=
8590shrext_cmds=".so"
8591postinstall_cmds=
8592postuninstall_cmds=
8593finish_cmds=
8594finish_eval=
8595shlibpath_var=
8596shlibpath_overrides_runpath=unknown
8597version_type=none
8598dynamic_linker="$host_os ld.so"
8599sys_lib_dlsearch_path_spec="/lib /usr/lib"
8600if test "$GCC" = yes; then
8601  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8602  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8603    # if the path contains ";" then we assume it to be the separator
8604    # otherwise default to the standard path separator (i.e. ":") - it is
8605    # assumed that no part of a normal pathname contains ";" but that should
8606    # okay in the real world where ";" in dirpaths is itself problematic.
8607    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8608  else
8609    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8610  fi
8611else
8612  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8613fi
8614need_lib_prefix=unknown
8615hardcode_into_libs=no
8616
8617# when you set need_version to no, make sure it does not cause -set_version
8618# flags to be left without arguments
8619need_version=unknown
8620
8621case $host_os in
8622aix3*)
8623  version_type=linux
8624  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8625  shlibpath_var=LIBPATH
8626
8627  # AIX 3 has no versioning support, so we append a major version to the name.
8628  soname_spec='${libname}${release}${shared_ext}$major'
8629  ;;
8630
8631aix4* | aix5*)
8632  version_type=linux
8633  need_lib_prefix=no
8634  need_version=no
8635  hardcode_into_libs=yes
8636  if test "$host_cpu" = ia64; then
8637    # AIX 5 supports IA64
8638    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8639    shlibpath_var=LD_LIBRARY_PATH
8640  else
8641    # With GCC up to 2.95.x, collect2 would create an import file
8642    # for dependence libraries.  The import file would start with
8643    # the line `#! .'.  This would cause the generated library to
8644    # depend on `.', always an invalid library.  This was fixed in
8645    # development snapshots of GCC prior to 3.0.
8646    case $host_os in
8647      aix4 | aix4.[01] | aix4.[01].*)
8648      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8649	   echo ' yes '
8650	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8651	:
8652      else
8653	can_build_shared=no
8654      fi
8655      ;;
8656    esac
8657    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8658    # soname into executable. Probably we can add versioning support to
8659    # collect2, so additional links can be useful in future.
8660    if test "$aix_use_runtimelinking" = yes; then
8661      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8662      # instead of lib<name>.a to let people know that these are not
8663      # typical AIX shared libraries.
8664      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8665    else
8666      # We preserve .a as extension for shared libraries through AIX4.2
8667      # and later when we are not doing run time linking.
8668      library_names_spec='${libname}${release}.a $libname.a'
8669      soname_spec='${libname}${release}${shared_ext}$major'
8670    fi
8671    shlibpath_var=LIBPATH
8672  fi
8673  ;;
8674
8675amigaos*)
8676  library_names_spec='$libname.ixlibrary $libname.a'
8677  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8678  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'
8679  ;;
8680
8681beos*)
8682  library_names_spec='${libname}${shared_ext}'
8683  dynamic_linker="$host_os ld.so"
8684  shlibpath_var=LIBRARY_PATH
8685  ;;
8686
8687bsdi[45]*)
8688  version_type=linux
8689  need_version=no
8690  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8691  soname_spec='${libname}${release}${shared_ext}$major'
8692  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8693  shlibpath_var=LD_LIBRARY_PATH
8694  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8695  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8696  # the default ld.so.conf also contains /usr/contrib/lib and
8697  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8698  # libtool to hard-code these into programs
8699  ;;
8700
8701cygwin* | mingw* | pw32*)
8702  version_type=windows
8703  shrext_cmds=".dll"
8704  need_version=no
8705  need_lib_prefix=no
8706
8707  case $GCC,$host_os in
8708  yes,cygwin* | yes,mingw* | yes,pw32*)
8709    library_names_spec='$libname.dll.a'
8710    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8711    postinstall_cmds='base_file=`basename \${file}`~
8712      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8713      dldir=$destdir/`dirname \$dlpath`~
8714      test -d \$dldir || mkdir -p \$dldir~
8715      $install_prog $dir/$dlname \$dldir/$dlname~
8716      chmod a+x \$dldir/$dlname'
8717    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8718      dlpath=$dir/\$dldll~
8719       $rm \$dlpath'
8720    shlibpath_overrides_runpath=yes
8721
8722    case $host_os in
8723    cygwin*)
8724      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8725      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8726      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8727      ;;
8728    mingw*)
8729      # MinGW DLLs use traditional 'lib' prefix
8730      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8731      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8732      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8733        # It is most probably a Windows format PATH printed by
8734        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8735        # path with ; separators, and with drive letters. We can handle the
8736        # drive letters (cygwin fileutils understands them), so leave them,
8737        # especially as we might pass files found there to a mingw objdump,
8738        # which wouldn't understand a cygwinified path. Ahh.
8739        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8740      else
8741        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8742      fi
8743      ;;
8744    pw32*)
8745      # pw32 DLLs use 'pw' prefix rather than 'lib'
8746      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8747      ;;
8748    esac
8749    ;;
8750
8751  *)
8752    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8753    ;;
8754  esac
8755  dynamic_linker='Win32 ld.exe'
8756  # FIXME: first we should search . and the directory the executable is in
8757  shlibpath_var=PATH
8758  ;;
8759
8760darwin* | rhapsody*)
8761  dynamic_linker="$host_os dyld"
8762  version_type=darwin
8763  need_lib_prefix=no
8764  need_version=no
8765  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8766  soname_spec='${libname}${release}${major}$shared_ext'
8767  shlibpath_overrides_runpath=yes
8768  shlibpath_var=DYLD_LIBRARY_PATH
8769  shrext_cmds='.dylib'
8770  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8771  if test "$GCC" = yes; then
8772    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"`
8773  else
8774    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8775  fi
8776  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8777  ;;
8778
8779dgux*)
8780  version_type=linux
8781  need_lib_prefix=no
8782  need_version=no
8783  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8784  soname_spec='${libname}${release}${shared_ext}$major'
8785  shlibpath_var=LD_LIBRARY_PATH
8786  ;;
8787
8788freebsd1*)
8789  dynamic_linker=no
8790  ;;
8791
8792kfreebsd*-gnu)
8793  version_type=linux
8794  need_lib_prefix=no
8795  need_version=no
8796  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8797  soname_spec='${libname}${release}${shared_ext}$major'
8798  shlibpath_var=LD_LIBRARY_PATH
8799  shlibpath_overrides_runpath=no
8800  hardcode_into_libs=yes
8801  dynamic_linker='GNU ld.so'
8802  ;;
8803
8804freebsd* | dragonfly*)
8805  # DragonFly does not have aout.  When/if they implement a new
8806  # versioning mechanism, adjust this.
8807  if test -x /usr/bin/objformat; then
8808    objformat=`/usr/bin/objformat`
8809  else
8810    case $host_os in
8811    freebsd[123]*) objformat=aout ;;
8812    *) objformat=elf ;;
8813    esac
8814  fi
8815  version_type=freebsd-$objformat
8816  case $version_type in
8817    freebsd-elf*)
8818      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8819      need_version=no
8820      need_lib_prefix=no
8821      ;;
8822    freebsd-*)
8823      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8824      need_version=yes
8825      ;;
8826  esac
8827  shlibpath_var=LD_LIBRARY_PATH
8828  case $host_os in
8829  freebsd2*)
8830    shlibpath_overrides_runpath=yes
8831    ;;
8832  freebsd3.[01]* | freebsdelf3.[01]*)
8833    shlibpath_overrides_runpath=yes
8834    hardcode_into_libs=yes
8835    ;;
8836  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8837  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8838    shlibpath_overrides_runpath=no
8839    hardcode_into_libs=yes
8840    ;;
8841  freebsd*) # from 4.6 on
8842    shlibpath_overrides_runpath=yes
8843    hardcode_into_libs=yes
8844    ;;
8845  esac
8846  ;;
8847
8848gnu*)
8849  version_type=linux
8850  need_lib_prefix=no
8851  need_version=no
8852  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8853  soname_spec='${libname}${release}${shared_ext}$major'
8854  shlibpath_var=LD_LIBRARY_PATH
8855  hardcode_into_libs=yes
8856  ;;
8857
8858hpux9* | hpux10* | hpux11*)
8859  # Give a soname corresponding to the major version so that dld.sl refuses to
8860  # link against other versions.
8861  version_type=sunos
8862  need_lib_prefix=no
8863  need_version=no
8864  case $host_cpu in
8865  ia64*)
8866    shrext_cmds='.so'
8867    hardcode_into_libs=yes
8868    dynamic_linker="$host_os dld.so"
8869    shlibpath_var=LD_LIBRARY_PATH
8870    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8871    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8872    soname_spec='${libname}${release}${shared_ext}$major'
8873    if test "X$HPUX_IA64_MODE" = X32; then
8874      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8875    else
8876      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8877    fi
8878    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8879    ;;
8880   hppa*64*)
8881     shrext_cmds='.sl'
8882     hardcode_into_libs=yes
8883     dynamic_linker="$host_os dld.sl"
8884     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8885     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8886     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8887     soname_spec='${libname}${release}${shared_ext}$major'
8888     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8889     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8890     ;;
8891   *)
8892    shrext_cmds='.sl'
8893    dynamic_linker="$host_os dld.sl"
8894    shlibpath_var=SHLIB_PATH
8895    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8896    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8897    soname_spec='${libname}${release}${shared_ext}$major'
8898    ;;
8899  esac
8900  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8901  postinstall_cmds='chmod 555 $lib'
8902  ;;
8903
8904interix3*)
8905  version_type=linux
8906  need_lib_prefix=no
8907  need_version=no
8908  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8909  soname_spec='${libname}${release}${shared_ext}$major'
8910  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8911  shlibpath_var=LD_LIBRARY_PATH
8912  shlibpath_overrides_runpath=no
8913  hardcode_into_libs=yes
8914  ;;
8915
8916irix5* | irix6* | nonstopux*)
8917  case $host_os in
8918    nonstopux*) version_type=nonstopux ;;
8919    *)
8920	if test "$lt_cv_prog_gnu_ld" = yes; then
8921		version_type=linux
8922	else
8923		version_type=irix
8924	fi ;;
8925  esac
8926  need_lib_prefix=no
8927  need_version=no
8928  soname_spec='${libname}${release}${shared_ext}$major'
8929  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8930  case $host_os in
8931  irix5* | nonstopux*)
8932    libsuff= shlibsuff=
8933    ;;
8934  *)
8935    case $LD in # libtool.m4 will add one of these switches to LD
8936    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8937      libsuff= shlibsuff= libmagic=32-bit;;
8938    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8939      libsuff=32 shlibsuff=N32 libmagic=N32;;
8940    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8941      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8942    *) libsuff= shlibsuff= libmagic=never-match;;
8943    esac
8944    ;;
8945  esac
8946  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8947  shlibpath_overrides_runpath=no
8948  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8949  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8950  hardcode_into_libs=yes
8951  ;;
8952
8953# No shared lib support for Linux oldld, aout, or coff.
8954linux*oldld* | linux*aout* | linux*coff*)
8955  dynamic_linker=no
8956  ;;
8957
8958# This must be Linux ELF.
8959linux*)
8960  version_type=linux
8961  need_lib_prefix=no
8962  need_version=no
8963  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8964  soname_spec='${libname}${release}${shared_ext}$major'
8965  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8966  shlibpath_var=LD_LIBRARY_PATH
8967  shlibpath_overrides_runpath=no
8968  # This implies no fast_install, which is unacceptable.
8969  # Some rework will be needed to allow for fast_install
8970  # before this can be enabled.
8971  hardcode_into_libs=yes
8972
8973  # Append ld.so.conf contents to the search path
8974  if test -f /etc/ld.so.conf; then
8975    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' ' '`
8976    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8977  fi
8978
8979  # We used to test for /lib/ld.so.1 and disable shared libraries on
8980  # powerpc, because MkLinux only supported shared libraries with the
8981  # GNU dynamic linker.  Since this was broken with cross compilers,
8982  # most powerpc-linux boxes support dynamic linking these days and
8983  # people can always --disable-shared, the test was removed, and we
8984  # assume the GNU/Linux dynamic linker is in use.
8985  dynamic_linker='GNU/Linux ld.so'
8986  ;;
8987
8988knetbsd*-gnu)
8989  version_type=linux
8990  need_lib_prefix=no
8991  need_version=no
8992  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8993  soname_spec='${libname}${release}${shared_ext}$major'
8994  shlibpath_var=LD_LIBRARY_PATH
8995  shlibpath_overrides_runpath=no
8996  hardcode_into_libs=yes
8997  dynamic_linker='GNU ld.so'
8998  ;;
8999
9000netbsd*)
9001  version_type=sunos
9002  need_lib_prefix=no
9003  need_version=no
9004  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9005    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9006    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9007    dynamic_linker='NetBSD (a.out) ld.so'
9008  else
9009    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9010    soname_spec='${libname}${release}${shared_ext}$major'
9011    dynamic_linker='NetBSD ld.elf_so'
9012  fi
9013  shlibpath_var=LD_LIBRARY_PATH
9014  shlibpath_overrides_runpath=yes
9015  hardcode_into_libs=yes
9016  ;;
9017
9018newsos6)
9019  version_type=linux
9020  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9021  shlibpath_var=LD_LIBRARY_PATH
9022  shlibpath_overrides_runpath=yes
9023  ;;
9024
9025nto-qnx*)
9026  version_type=linux
9027  need_lib_prefix=no
9028  need_version=no
9029  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9030  soname_spec='${libname}${release}${shared_ext}$major'
9031  shlibpath_var=LD_LIBRARY_PATH
9032  shlibpath_overrides_runpath=yes
9033  ;;
9034
9035openbsd*)
9036  version_type=sunos
9037  sys_lib_dlsearch_path_spec="/usr/lib"
9038  need_lib_prefix=no
9039  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9040  case $host_os in
9041    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9042    *)                         need_version=no  ;;
9043  esac
9044  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9045  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9046  shlibpath_var=LD_LIBRARY_PATH
9047  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9048    case $host_os in
9049      openbsd2.[89] | openbsd2.[89].*)
9050	shlibpath_overrides_runpath=no
9051	;;
9052      *)
9053	shlibpath_overrides_runpath=yes
9054	;;
9055      esac
9056  else
9057    shlibpath_overrides_runpath=yes
9058  fi
9059  ;;
9060
9061os2*)
9062  libname_spec='$name'
9063  shrext_cmds=".dll"
9064  need_lib_prefix=no
9065  library_names_spec='$libname${shared_ext} $libname.a'
9066  dynamic_linker='OS/2 ld.exe'
9067  shlibpath_var=LIBPATH
9068  ;;
9069
9070osf3* | osf4* | osf5*)
9071  version_type=osf
9072  need_lib_prefix=no
9073  need_version=no
9074  soname_spec='${libname}${release}${shared_ext}$major'
9075  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9076  shlibpath_var=LD_LIBRARY_PATH
9077  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9078  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9079  ;;
9080
9081solaris*)
9082  version_type=linux
9083  need_lib_prefix=no
9084  need_version=no
9085  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9086  soname_spec='${libname}${release}${shared_ext}$major'
9087  shlibpath_var=LD_LIBRARY_PATH
9088  shlibpath_overrides_runpath=yes
9089  hardcode_into_libs=yes
9090  # ldd complains unless libraries are executable
9091  postinstall_cmds='chmod +x $lib'
9092  ;;
9093
9094sunos4*)
9095  version_type=sunos
9096  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9097  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9098  shlibpath_var=LD_LIBRARY_PATH
9099  shlibpath_overrides_runpath=yes
9100  if test "$with_gnu_ld" = yes; then
9101    need_lib_prefix=no
9102  fi
9103  need_version=yes
9104  ;;
9105
9106sysv4 | sysv4.3*)
9107  version_type=linux
9108  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9109  soname_spec='${libname}${release}${shared_ext}$major'
9110  shlibpath_var=LD_LIBRARY_PATH
9111  case $host_vendor in
9112    sni)
9113      shlibpath_overrides_runpath=no
9114      need_lib_prefix=no
9115      export_dynamic_flag_spec='${wl}-Blargedynsym'
9116      runpath_var=LD_RUN_PATH
9117      ;;
9118    siemens)
9119      need_lib_prefix=no
9120      ;;
9121    motorola)
9122      need_lib_prefix=no
9123      need_version=no
9124      shlibpath_overrides_runpath=no
9125      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9126      ;;
9127  esac
9128  ;;
9129
9130sysv4*MP*)
9131  if test -d /usr/nec ;then
9132    version_type=linux
9133    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9134    soname_spec='$libname${shared_ext}.$major'
9135    shlibpath_var=LD_LIBRARY_PATH
9136  fi
9137  ;;
9138
9139sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9140  version_type=freebsd-elf
9141  need_lib_prefix=no
9142  need_version=no
9143  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9144  soname_spec='${libname}${release}${shared_ext}$major'
9145  shlibpath_var=LD_LIBRARY_PATH
9146  hardcode_into_libs=yes
9147  if test "$with_gnu_ld" = yes; then
9148    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9149    shlibpath_overrides_runpath=no
9150  else
9151    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9152    shlibpath_overrides_runpath=yes
9153    case $host_os in
9154      sco3.2v5*)
9155        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9156	;;
9157    esac
9158  fi
9159  sys_lib_dlsearch_path_spec='/usr/lib'
9160  ;;
9161
9162uts4*)
9163  version_type=linux
9164  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9165  soname_spec='${libname}${release}${shared_ext}$major'
9166  shlibpath_var=LD_LIBRARY_PATH
9167  ;;
9168
9169*)
9170  dynamic_linker=no
9171  ;;
9172esac
9173{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9174echo "${ECHO_T}$dynamic_linker" >&6; }
9175test "$dynamic_linker" = no && can_build_shared=no
9176
9177variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9178if test "$GCC" = yes; then
9179  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9180fi
9181
9182
9183{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9184echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9185if test "${libltdl_cv_shlibext+set}" = set; then
9186  echo $ECHO_N "(cached) $ECHO_C" >&6
9187else
9188
9189module=yes
9190eval libltdl_cv_shlibext=$shrext_cmds
9191
9192fi
9193{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9194echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9195if test -n "$libltdl_cv_shlibext"; then
9196
9197cat >>confdefs.h <<_ACEOF
9198#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9199_ACEOF
9200
9201fi
9202
9203
9204{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9205echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9206if test "${libltdl_cv_shlibpath_var+set}" = set; then
9207  echo $ECHO_N "(cached) $ECHO_C" >&6
9208else
9209  libltdl_cv_shlibpath_var="$shlibpath_var"
9210fi
9211{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9212echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9213if test -n "$libltdl_cv_shlibpath_var"; then
9214
9215cat >>confdefs.h <<_ACEOF
9216#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9217_ACEOF
9218
9219fi
9220
9221
9222{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9223echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9224if test "${libltdl_cv_sys_search_path+set}" = set; then
9225  echo $ECHO_N "(cached) $ECHO_C" >&6
9226else
9227  libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9228fi
9229{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9230echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9231if test -n "$libltdl_cv_sys_search_path"; then
9232  sys_search_path=
9233  for dir in $libltdl_cv_sys_search_path; do
9234    if test -z "$sys_search_path"; then
9235      sys_search_path="$dir"
9236    else
9237      sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9238    fi
9239  done
9240
9241cat >>confdefs.h <<_ACEOF
9242#define LTDL_SYSSEARCHPATH "$sys_search_path"
9243_ACEOF
9244
9245fi
9246
9247{ echo "$as_me:$LINENO: checking for objdir" >&5
9248echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9249if test "${libltdl_cv_objdir+set}" = set; then
9250  echo $ECHO_N "(cached) $ECHO_C" >&6
9251else
9252  libltdl_cv_objdir="$objdir"
9253  if test -n "$objdir"; then
9254    :
9255  else
9256    rm -f .libs 2>/dev/null
9257    mkdir .libs 2>/dev/null
9258    if test -d .libs; then
9259      libltdl_cv_objdir=.libs
9260    else
9261      # MS-DOS does not allow filenames that begin with a dot.
9262      libltdl_cv_objdir=_libs
9263    fi
9264  rmdir .libs 2>/dev/null
9265  fi
9266
9267fi
9268{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9269echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9270
9271cat >>confdefs.h <<_ACEOF
9272#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9273_ACEOF
9274
9275
9276
9277
9278
9279
9280# Check for command to grab the raw symbol name followed by C symbol from nm.
9281{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9282echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9283if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9284  echo $ECHO_N "(cached) $ECHO_C" >&6
9285else
9286
9287# These are sane defaults that work on at least a few old systems.
9288# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9289
9290# Character class describing NM global symbol codes.
9291symcode='[BCDEGRST]'
9292
9293# Regexp to match symbols that can be accessed directly from C.
9294sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9295
9296# Transform an extracted symbol line into a proper C declaration
9297lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9298
9299# Transform an extracted symbol line into symbol name and symbol address
9300lt_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'"
9301
9302# Define system-specific variables.
9303case $host_os in
9304aix*)
9305  symcode='[BCDT]'
9306  ;;
9307cygwin* | mingw* | pw32*)
9308  symcode='[ABCDGISTW]'
9309  ;;
9310hpux*) # Its linker distinguishes data from code symbols
9311  if test "$host_cpu" = ia64; then
9312    symcode='[ABCDEGRST]'
9313  fi
9314  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9315  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'"
9316  ;;
9317linux*)
9318  if test "$host_cpu" = ia64; then
9319    symcode='[ABCDGIRSTW]'
9320    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9321    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'"
9322  fi
9323  ;;
9324irix* | nonstopux*)
9325  symcode='[BCDEGRST]'
9326  ;;
9327osf*)
9328  symcode='[BCDEGQRST]'
9329  ;;
9330solaris*)
9331  symcode='[BDRT]'
9332  ;;
9333sco3.2v5*)
9334  symcode='[DT]'
9335  ;;
9336sysv4.2uw2*)
9337  symcode='[DT]'
9338  ;;
9339sysv5* | sco5v6* | unixware* | OpenUNIX*)
9340  symcode='[ABDT]'
9341  ;;
9342sysv4)
9343  symcode='[DFNSTU]'
9344  ;;
9345esac
9346
9347# Handle CRLF in mingw tool chain
9348opt_cr=
9349case $build_os in
9350mingw*)
9351  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9352  ;;
9353esac
9354
9355# If we're using GNU nm, then use its standard symbol codes.
9356case `$NM -V 2>&1` in
9357*GNU* | *'with BFD'*)
9358  symcode='[ABCDGIRSTW]' ;;
9359esac
9360
9361# Try without a prefix undercore, then with it.
9362for ac_symprfx in "" "_"; do
9363
9364  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9365  symxfrm="\\1 $ac_symprfx\\2 \\2"
9366
9367  # Write the raw and C identifiers.
9368  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9369
9370  # Check to see that the pipe works correctly.
9371  pipe_works=no
9372
9373  rm -f conftest*
9374  cat > conftest.$ac_ext <<EOF
9375#ifdef __cplusplus
9376extern "C" {
9377#endif
9378char nm_test_var;
9379void nm_test_func(){}
9380#ifdef __cplusplus
9381}
9382#endif
9383int main(){nm_test_var='a';nm_test_func();return(0);}
9384EOF
9385
9386  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9387  (eval $ac_compile) 2>&5
9388  ac_status=$?
9389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390  (exit $ac_status); }; then
9391    # Now try to grab the symbols.
9392    nlist=conftest.nm
9393    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9394  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9395  ac_status=$?
9396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397  (exit $ac_status); } && test -s "$nlist"; then
9398      # Try sorting and uniquifying the output.
9399      if sort "$nlist" | uniq > "$nlist"T; then
9400	mv -f "$nlist"T "$nlist"
9401      else
9402	rm -f "$nlist"T
9403      fi
9404
9405      # Make sure that we snagged all the symbols we need.
9406      if grep ' nm_test_var$' "$nlist" >/dev/null; then
9407	if grep ' nm_test_func$' "$nlist" >/dev/null; then
9408	  cat <<EOF > conftest.$ac_ext
9409#ifdef __cplusplus
9410extern "C" {
9411#endif
9412
9413EOF
9414	  # Now generate the symbol file.
9415	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9416
9417	  cat <<EOF >> conftest.$ac_ext
9418#if defined (__STDC__) && __STDC__
9419# define lt_ptr_t void *
9420#else
9421# define lt_ptr_t char *
9422# define const
9423#endif
9424
9425/* The mapping between symbol names and symbols. */
9426const struct {
9427  const char *name;
9428  lt_ptr_t address;
9429}
9430lt_preloaded_symbols[] =
9431{
9432EOF
9433	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9434	  cat <<\EOF >> conftest.$ac_ext
9435  {0, (lt_ptr_t) 0}
9436};
9437
9438#ifdef __cplusplus
9439}
9440#endif
9441EOF
9442	  # Now try linking the two files.
9443	  mv conftest.$ac_objext conftstm.$ac_objext
9444	  lt_save_LIBS="$LIBS"
9445	  lt_save_CFLAGS="$CFLAGS"
9446	  LIBS="conftstm.$ac_objext"
9447	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9448	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9449  (eval $ac_link) 2>&5
9450  ac_status=$?
9451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452  (exit $ac_status); } && test -s conftest${ac_exeext}; then
9453	    pipe_works=yes
9454	  fi
9455	  LIBS="$lt_save_LIBS"
9456	  CFLAGS="$lt_save_CFLAGS"
9457	else
9458	  echo "cannot find nm_test_func in $nlist" >&5
9459	fi
9460      else
9461	echo "cannot find nm_test_var in $nlist" >&5
9462      fi
9463    else
9464      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9465    fi
9466  else
9467    echo "$progname: failed program was:" >&5
9468    cat conftest.$ac_ext >&5
9469  fi
9470  rm -f conftest* conftst*
9471
9472  # Do not use the global_symbol_pipe unless it works.
9473  if test "$pipe_works" = yes; then
9474    break
9475  else
9476    lt_cv_sys_global_symbol_pipe=
9477  fi
9478done
9479
9480fi
9481
9482if test -z "$lt_cv_sys_global_symbol_pipe"; then
9483  lt_cv_sys_global_symbol_to_cdecl=
9484fi
9485if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9486  { echo "$as_me:$LINENO: result: failed" >&5
9487echo "${ECHO_T}failed" >&6; }
9488else
9489  { echo "$as_me:$LINENO: result: ok" >&5
9490echo "${ECHO_T}ok" >&6; }
9491fi
9492
9493
9494{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9495echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9496if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9497  echo $ECHO_N "(cached) $ECHO_C" >&6
9498else
9499  if test -n "$lt_cv_sys_global_symbol_pipe"; then
9500    libltdl_cv_preloaded_symbols=yes
9501  else
9502    libltdl_cv_preloaded_symbols=no
9503  fi
9504
9505fi
9506{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9507echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9508if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9509
9510cat >>confdefs.h <<\_ACEOF
9511#define HAVE_PRELOADED_SYMBOLS 1
9512_ACEOF
9513
9514fi
9515
9516LIBADD_DL=
9517
9518ac_ext=c
9519ac_cpp='$CPP $CPPFLAGS'
9520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9522ac_compiler_gnu=$ac_cv_c_compiler_gnu
9523
9524
9525{ echo "$as_me:$LINENO: checking for shl_load" >&5
9526echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9527if test "${ac_cv_func_shl_load+set}" = set; then
9528  echo $ECHO_N "(cached) $ECHO_C" >&6
9529else
9530  cat >conftest.$ac_ext <<_ACEOF
9531/* confdefs.h.  */
9532_ACEOF
9533cat confdefs.h >>conftest.$ac_ext
9534cat >>conftest.$ac_ext <<_ACEOF
9535/* end confdefs.h.  */
9536/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9537   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9538#define shl_load innocuous_shl_load
9539
9540/* System header to define __stub macros and hopefully few prototypes,
9541    which can conflict with char shl_load (); below.
9542    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9543    <limits.h> exists even on freestanding compilers.  */
9544
9545#ifdef __STDC__
9546# include <limits.h>
9547#else
9548# include <assert.h>
9549#endif
9550
9551#undef shl_load
9552
9553/* Override any GCC internal prototype to avoid an error.
9554   Use char because int might match the return type of a GCC
9555   builtin and then its argument prototype would still apply.  */
9556#ifdef __cplusplus
9557extern "C"
9558#endif
9559char shl_load ();
9560/* The GNU C library defines this for functions which it implements
9561    to always fail with ENOSYS.  Some functions are actually named
9562    something starting with __ and the normal name is an alias.  */
9563#if defined __stub_shl_load || defined __stub___shl_load
9564choke me
9565#endif
9566
9567int
9568main ()
9569{
9570return shl_load ();
9571  ;
9572  return 0;
9573}
9574_ACEOF
9575rm -f conftest.$ac_objext conftest$ac_exeext
9576if { (ac_try="$ac_link"
9577case "(($ac_try" in
9578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9579  *) ac_try_echo=$ac_try;;
9580esac
9581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9582  (eval "$ac_link") 2>conftest.er1
9583  ac_status=$?
9584  grep -v '^ *+' conftest.er1 >conftest.err
9585  rm -f conftest.er1
9586  cat conftest.err >&5
9587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588  (exit $ac_status); } &&
9589	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9590  { (case "(($ac_try" in
9591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9592  *) ac_try_echo=$ac_try;;
9593esac
9594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9595  (eval "$ac_try") 2>&5
9596  ac_status=$?
9597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598  (exit $ac_status); }; } &&
9599	 { ac_try='test -s conftest$ac_exeext'
9600  { (case "(($ac_try" in
9601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9602  *) ac_try_echo=$ac_try;;
9603esac
9604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9605  (eval "$ac_try") 2>&5
9606  ac_status=$?
9607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608  (exit $ac_status); }; }; then
9609  ac_cv_func_shl_load=yes
9610else
9611  echo "$as_me: failed program was:" >&5
9612sed 's/^/| /' conftest.$ac_ext >&5
9613
9614	ac_cv_func_shl_load=no
9615fi
9616
9617rm -f core conftest.err conftest.$ac_objext \
9618      conftest$ac_exeext conftest.$ac_ext
9619fi
9620{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9621echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9622if test $ac_cv_func_shl_load = yes; then
9623
9624cat >>confdefs.h <<\_ACEOF
9625#define HAVE_SHL_LOAD 1
9626_ACEOF
9627
9628else
9629  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9630echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9631if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9632  echo $ECHO_N "(cached) $ECHO_C" >&6
9633else
9634  ac_check_lib_save_LIBS=$LIBS
9635LIBS="-ldld  $LIBS"
9636cat >conftest.$ac_ext <<_ACEOF
9637/* confdefs.h.  */
9638_ACEOF
9639cat confdefs.h >>conftest.$ac_ext
9640cat >>conftest.$ac_ext <<_ACEOF
9641/* end confdefs.h.  */
9642
9643/* Override any GCC internal prototype to avoid an error.
9644   Use char because int might match the return type of a GCC
9645   builtin and then its argument prototype would still apply.  */
9646#ifdef __cplusplus
9647extern "C"
9648#endif
9649char shl_load ();
9650int
9651main ()
9652{
9653return shl_load ();
9654  ;
9655  return 0;
9656}
9657_ACEOF
9658rm -f conftest.$ac_objext conftest$ac_exeext
9659if { (ac_try="$ac_link"
9660case "(($ac_try" in
9661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662  *) ac_try_echo=$ac_try;;
9663esac
9664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665  (eval "$ac_link") 2>conftest.er1
9666  ac_status=$?
9667  grep -v '^ *+' conftest.er1 >conftest.err
9668  rm -f conftest.er1
9669  cat conftest.err >&5
9670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671  (exit $ac_status); } &&
9672	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9673  { (case "(($ac_try" in
9674  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9675  *) ac_try_echo=$ac_try;;
9676esac
9677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9678  (eval "$ac_try") 2>&5
9679  ac_status=$?
9680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681  (exit $ac_status); }; } &&
9682	 { ac_try='test -s conftest$ac_exeext'
9683  { (case "(($ac_try" in
9684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9685  *) ac_try_echo=$ac_try;;
9686esac
9687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9688  (eval "$ac_try") 2>&5
9689  ac_status=$?
9690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691  (exit $ac_status); }; }; then
9692  ac_cv_lib_dld_shl_load=yes
9693else
9694  echo "$as_me: failed program was:" >&5
9695sed 's/^/| /' conftest.$ac_ext >&5
9696
9697	ac_cv_lib_dld_shl_load=no
9698fi
9699
9700rm -f core conftest.err conftest.$ac_objext \
9701      conftest$ac_exeext conftest.$ac_ext
9702LIBS=$ac_check_lib_save_LIBS
9703fi
9704{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9705echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9706if test $ac_cv_lib_dld_shl_load = yes; then
9707
9708cat >>confdefs.h <<\_ACEOF
9709#define HAVE_SHL_LOAD 1
9710_ACEOF
9711
9712	LIBADD_DL="$LIBADD_DL -ldld"
9713else
9714  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9715echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9716if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9717  echo $ECHO_N "(cached) $ECHO_C" >&6
9718else
9719  ac_check_lib_save_LIBS=$LIBS
9720LIBS="-ldl  $LIBS"
9721cat >conftest.$ac_ext <<_ACEOF
9722/* confdefs.h.  */
9723_ACEOF
9724cat confdefs.h >>conftest.$ac_ext
9725cat >>conftest.$ac_ext <<_ACEOF
9726/* end confdefs.h.  */
9727
9728/* Override any GCC internal prototype to avoid an error.
9729   Use char because int might match the return type of a GCC
9730   builtin and then its argument prototype would still apply.  */
9731#ifdef __cplusplus
9732extern "C"
9733#endif
9734char dlopen ();
9735int
9736main ()
9737{
9738return dlopen ();
9739  ;
9740  return 0;
9741}
9742_ACEOF
9743rm -f conftest.$ac_objext conftest$ac_exeext
9744if { (ac_try="$ac_link"
9745case "(($ac_try" in
9746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9747  *) ac_try_echo=$ac_try;;
9748esac
9749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9750  (eval "$ac_link") 2>conftest.er1
9751  ac_status=$?
9752  grep -v '^ *+' conftest.er1 >conftest.err
9753  rm -f conftest.er1
9754  cat conftest.err >&5
9755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756  (exit $ac_status); } &&
9757	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9758  { (case "(($ac_try" in
9759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9760  *) ac_try_echo=$ac_try;;
9761esac
9762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9763  (eval "$ac_try") 2>&5
9764  ac_status=$?
9765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766  (exit $ac_status); }; } &&
9767	 { ac_try='test -s conftest$ac_exeext'
9768  { (case "(($ac_try" in
9769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9770  *) ac_try_echo=$ac_try;;
9771esac
9772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9773  (eval "$ac_try") 2>&5
9774  ac_status=$?
9775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776  (exit $ac_status); }; }; then
9777  ac_cv_lib_dl_dlopen=yes
9778else
9779  echo "$as_me: failed program was:" >&5
9780sed 's/^/| /' conftest.$ac_ext >&5
9781
9782	ac_cv_lib_dl_dlopen=no
9783fi
9784
9785rm -f core conftest.err conftest.$ac_objext \
9786      conftest$ac_exeext conftest.$ac_ext
9787LIBS=$ac_check_lib_save_LIBS
9788fi
9789{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9790echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9791if test $ac_cv_lib_dl_dlopen = yes; then
9792
9793cat >>confdefs.h <<\_ACEOF
9794#define HAVE_LIBDL 1
9795_ACEOF
9796
9797	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9798else
9799  cat >conftest.$ac_ext <<_ACEOF
9800/* confdefs.h.  */
9801_ACEOF
9802cat confdefs.h >>conftest.$ac_ext
9803cat >>conftest.$ac_ext <<_ACEOF
9804/* end confdefs.h.  */
9805#if HAVE_DLFCN_H
9806#  include <dlfcn.h>
9807#endif
9808
9809int
9810main ()
9811{
9812dlopen(0, 0);
9813  ;
9814  return 0;
9815}
9816_ACEOF
9817rm -f conftest.$ac_objext conftest$ac_exeext
9818if { (ac_try="$ac_link"
9819case "(($ac_try" in
9820  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9821  *) ac_try_echo=$ac_try;;
9822esac
9823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9824  (eval "$ac_link") 2>conftest.er1
9825  ac_status=$?
9826  grep -v '^ *+' conftest.er1 >conftest.err
9827  rm -f conftest.er1
9828  cat conftest.err >&5
9829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830  (exit $ac_status); } &&
9831	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9832  { (case "(($ac_try" in
9833  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834  *) ac_try_echo=$ac_try;;
9835esac
9836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837  (eval "$ac_try") 2>&5
9838  ac_status=$?
9839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840  (exit $ac_status); }; } &&
9841	 { ac_try='test -s conftest$ac_exeext'
9842  { (case "(($ac_try" in
9843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9844  *) ac_try_echo=$ac_try;;
9845esac
9846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9847  (eval "$ac_try") 2>&5
9848  ac_status=$?
9849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850  (exit $ac_status); }; }; then
9851
9852cat >>confdefs.h <<\_ACEOF
9853#define HAVE_LIBDL 1
9854_ACEOF
9855 libltdl_cv_func_dlopen="yes"
9856else
9857  echo "$as_me: failed program was:" >&5
9858sed 's/^/| /' conftest.$ac_ext >&5
9859
9860	{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9861echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9862if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9863  echo $ECHO_N "(cached) $ECHO_C" >&6
9864else
9865  ac_check_lib_save_LIBS=$LIBS
9866LIBS="-lsvld  $LIBS"
9867cat >conftest.$ac_ext <<_ACEOF
9868/* confdefs.h.  */
9869_ACEOF
9870cat confdefs.h >>conftest.$ac_ext
9871cat >>conftest.$ac_ext <<_ACEOF
9872/* end confdefs.h.  */
9873
9874/* Override any GCC internal prototype to avoid an error.
9875   Use char because int might match the return type of a GCC
9876   builtin and then its argument prototype would still apply.  */
9877#ifdef __cplusplus
9878extern "C"
9879#endif
9880char dlopen ();
9881int
9882main ()
9883{
9884return dlopen ();
9885  ;
9886  return 0;
9887}
9888_ACEOF
9889rm -f conftest.$ac_objext conftest$ac_exeext
9890if { (ac_try="$ac_link"
9891case "(($ac_try" in
9892  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9893  *) ac_try_echo=$ac_try;;
9894esac
9895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9896  (eval "$ac_link") 2>conftest.er1
9897  ac_status=$?
9898  grep -v '^ *+' conftest.er1 >conftest.err
9899  rm -f conftest.er1
9900  cat conftest.err >&5
9901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902  (exit $ac_status); } &&
9903	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9904  { (case "(($ac_try" in
9905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9906  *) ac_try_echo=$ac_try;;
9907esac
9908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9909  (eval "$ac_try") 2>&5
9910  ac_status=$?
9911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912  (exit $ac_status); }; } &&
9913	 { ac_try='test -s conftest$ac_exeext'
9914  { (case "(($ac_try" in
9915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9916  *) ac_try_echo=$ac_try;;
9917esac
9918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9919  (eval "$ac_try") 2>&5
9920  ac_status=$?
9921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922  (exit $ac_status); }; }; then
9923  ac_cv_lib_svld_dlopen=yes
9924else
9925  echo "$as_me: failed program was:" >&5
9926sed 's/^/| /' conftest.$ac_ext >&5
9927
9928	ac_cv_lib_svld_dlopen=no
9929fi
9930
9931rm -f core conftest.err conftest.$ac_objext \
9932      conftest$ac_exeext conftest.$ac_ext
9933LIBS=$ac_check_lib_save_LIBS
9934fi
9935{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9936echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9937if test $ac_cv_lib_svld_dlopen = yes; then
9938
9939cat >>confdefs.h <<\_ACEOF
9940#define HAVE_LIBDL 1
9941_ACEOF
9942
9943	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9944else
9945  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9946echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9947if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9948  echo $ECHO_N "(cached) $ECHO_C" >&6
9949else
9950  ac_check_lib_save_LIBS=$LIBS
9951LIBS="-ldld  $LIBS"
9952cat >conftest.$ac_ext <<_ACEOF
9953/* confdefs.h.  */
9954_ACEOF
9955cat confdefs.h >>conftest.$ac_ext
9956cat >>conftest.$ac_ext <<_ACEOF
9957/* end confdefs.h.  */
9958
9959/* Override any GCC internal prototype to avoid an error.
9960   Use char because int might match the return type of a GCC
9961   builtin and then its argument prototype would still apply.  */
9962#ifdef __cplusplus
9963extern "C"
9964#endif
9965char dld_link ();
9966int
9967main ()
9968{
9969return dld_link ();
9970  ;
9971  return 0;
9972}
9973_ACEOF
9974rm -f conftest.$ac_objext conftest$ac_exeext
9975if { (ac_try="$ac_link"
9976case "(($ac_try" in
9977  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978  *) ac_try_echo=$ac_try;;
9979esac
9980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981  (eval "$ac_link") 2>conftest.er1
9982  ac_status=$?
9983  grep -v '^ *+' conftest.er1 >conftest.err
9984  rm -f conftest.er1
9985  cat conftest.err >&5
9986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987  (exit $ac_status); } &&
9988	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9989  { (case "(($ac_try" in
9990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991  *) ac_try_echo=$ac_try;;
9992esac
9993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994  (eval "$ac_try") 2>&5
9995  ac_status=$?
9996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997  (exit $ac_status); }; } &&
9998	 { ac_try='test -s conftest$ac_exeext'
9999  { (case "(($ac_try" in
10000  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10001  *) ac_try_echo=$ac_try;;
10002esac
10003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10004  (eval "$ac_try") 2>&5
10005  ac_status=$?
10006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007  (exit $ac_status); }; }; then
10008  ac_cv_lib_dld_dld_link=yes
10009else
10010  echo "$as_me: failed program was:" >&5
10011sed 's/^/| /' conftest.$ac_ext >&5
10012
10013	ac_cv_lib_dld_dld_link=no
10014fi
10015
10016rm -f core conftest.err conftest.$ac_objext \
10017      conftest$ac_exeext conftest.$ac_ext
10018LIBS=$ac_check_lib_save_LIBS
10019fi
10020{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10021echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10022if test $ac_cv_lib_dld_dld_link = yes; then
10023
10024cat >>confdefs.h <<\_ACEOF
10025#define HAVE_DLD 1
10026_ACEOF
10027
10028	 	LIBADD_DL="$LIBADD_DL -ldld"
10029else
10030  { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10031echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10032if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10033  echo $ECHO_N "(cached) $ECHO_C" >&6
10034else
10035  cat >conftest.$ac_ext <<_ACEOF
10036/* confdefs.h.  */
10037_ACEOF
10038cat confdefs.h >>conftest.$ac_ext
10039cat >>conftest.$ac_ext <<_ACEOF
10040/* end confdefs.h.  */
10041/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10042   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10043#define _dyld_func_lookup innocuous__dyld_func_lookup
10044
10045/* System header to define __stub macros and hopefully few prototypes,
10046    which can conflict with char _dyld_func_lookup (); below.
10047    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10048    <limits.h> exists even on freestanding compilers.  */
10049
10050#ifdef __STDC__
10051# include <limits.h>
10052#else
10053# include <assert.h>
10054#endif
10055
10056#undef _dyld_func_lookup
10057
10058/* Override any GCC internal prototype to avoid an error.
10059   Use char because int might match the return type of a GCC
10060   builtin and then its argument prototype would still apply.  */
10061#ifdef __cplusplus
10062extern "C"
10063#endif
10064char _dyld_func_lookup ();
10065/* The GNU C library defines this for functions which it implements
10066    to always fail with ENOSYS.  Some functions are actually named
10067    something starting with __ and the normal name is an alias.  */
10068#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10069choke me
10070#endif
10071
10072int
10073main ()
10074{
10075return _dyld_func_lookup ();
10076  ;
10077  return 0;
10078}
10079_ACEOF
10080rm -f conftest.$ac_objext conftest$ac_exeext
10081if { (ac_try="$ac_link"
10082case "(($ac_try" in
10083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10084  *) ac_try_echo=$ac_try;;
10085esac
10086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10087  (eval "$ac_link") 2>conftest.er1
10088  ac_status=$?
10089  grep -v '^ *+' conftest.er1 >conftest.err
10090  rm -f conftest.er1
10091  cat conftest.err >&5
10092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093  (exit $ac_status); } &&
10094	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10095  { (case "(($ac_try" in
10096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10097  *) ac_try_echo=$ac_try;;
10098esac
10099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10100  (eval "$ac_try") 2>&5
10101  ac_status=$?
10102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103  (exit $ac_status); }; } &&
10104	 { ac_try='test -s conftest$ac_exeext'
10105  { (case "(($ac_try" in
10106  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10107  *) ac_try_echo=$ac_try;;
10108esac
10109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10110  (eval "$ac_try") 2>&5
10111  ac_status=$?
10112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113  (exit $ac_status); }; }; then
10114  ac_cv_func__dyld_func_lookup=yes
10115else
10116  echo "$as_me: failed program was:" >&5
10117sed 's/^/| /' conftest.$ac_ext >&5
10118
10119	ac_cv_func__dyld_func_lookup=no
10120fi
10121
10122rm -f core conftest.err conftest.$ac_objext \
10123      conftest$ac_exeext conftest.$ac_ext
10124fi
10125{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10126echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10127if test $ac_cv_func__dyld_func_lookup = yes; then
10128
10129cat >>confdefs.h <<\_ACEOF
10130#define HAVE_DYLD 1
10131_ACEOF
10132
10133fi
10134
10135
10136fi
10137
10138
10139fi
10140
10141
10142fi
10143
10144rm -f core conftest.err conftest.$ac_objext \
10145      conftest$ac_exeext conftest.$ac_ext
10146
10147fi
10148
10149
10150fi
10151
10152
10153fi
10154
10155
10156if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10157then
10158  lt_save_LIBS="$LIBS"
10159  LIBS="$LIBS $LIBADD_DL"
10160
10161for ac_func in dlerror
10162do
10163as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10164{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10165echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10166if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10167  echo $ECHO_N "(cached) $ECHO_C" >&6
10168else
10169  cat >conftest.$ac_ext <<_ACEOF
10170/* confdefs.h.  */
10171_ACEOF
10172cat confdefs.h >>conftest.$ac_ext
10173cat >>conftest.$ac_ext <<_ACEOF
10174/* end confdefs.h.  */
10175/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10176   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10177#define $ac_func innocuous_$ac_func
10178
10179/* System header to define __stub macros and hopefully few prototypes,
10180    which can conflict with char $ac_func (); below.
10181    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10182    <limits.h> exists even on freestanding compilers.  */
10183
10184#ifdef __STDC__
10185# include <limits.h>
10186#else
10187# include <assert.h>
10188#endif
10189
10190#undef $ac_func
10191
10192/* Override any GCC internal prototype to avoid an error.
10193   Use char because int might match the return type of a GCC
10194   builtin and then its argument prototype would still apply.  */
10195#ifdef __cplusplus
10196extern "C"
10197#endif
10198char $ac_func ();
10199/* The GNU C library defines this for functions which it implements
10200    to always fail with ENOSYS.  Some functions are actually named
10201    something starting with __ and the normal name is an alias.  */
10202#if defined __stub_$ac_func || defined __stub___$ac_func
10203choke me
10204#endif
10205
10206int
10207main ()
10208{
10209return $ac_func ();
10210  ;
10211  return 0;
10212}
10213_ACEOF
10214rm -f conftest.$ac_objext conftest$ac_exeext
10215if { (ac_try="$ac_link"
10216case "(($ac_try" in
10217  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10218  *) ac_try_echo=$ac_try;;
10219esac
10220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10221  (eval "$ac_link") 2>conftest.er1
10222  ac_status=$?
10223  grep -v '^ *+' conftest.er1 >conftest.err
10224  rm -f conftest.er1
10225  cat conftest.err >&5
10226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227  (exit $ac_status); } &&
10228	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10229  { (case "(($ac_try" in
10230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10231  *) ac_try_echo=$ac_try;;
10232esac
10233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10234  (eval "$ac_try") 2>&5
10235  ac_status=$?
10236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237  (exit $ac_status); }; } &&
10238	 { ac_try='test -s conftest$ac_exeext'
10239  { (case "(($ac_try" in
10240  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10241  *) ac_try_echo=$ac_try;;
10242esac
10243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10244  (eval "$ac_try") 2>&5
10245  ac_status=$?
10246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247  (exit $ac_status); }; }; then
10248  eval "$as_ac_var=yes"
10249else
10250  echo "$as_me: failed program was:" >&5
10251sed 's/^/| /' conftest.$ac_ext >&5
10252
10253	eval "$as_ac_var=no"
10254fi
10255
10256rm -f core conftest.err conftest.$ac_objext \
10257      conftest$ac_exeext conftest.$ac_ext
10258fi
10259ac_res=`eval echo '${'$as_ac_var'}'`
10260	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10261echo "${ECHO_T}$ac_res" >&6; }
10262if test `eval echo '${'$as_ac_var'}'` = yes; then
10263  cat >>confdefs.h <<_ACEOF
10264#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10265_ACEOF
10266
10267fi
10268done
10269
10270  LIBS="$lt_save_LIBS"
10271fi
10272ac_ext=c
10273ac_cpp='$CPP $CPPFLAGS'
10274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10276ac_compiler_gnu=$ac_cv_c_compiler_gnu
10277
10278
10279
10280{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10281echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10282if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10283  echo $ECHO_N "(cached) $ECHO_C" >&6
10284else
10285  ac_cv_sys_symbol_underscore=no
10286  cat > conftest.$ac_ext <<EOF
10287void nm_test_func(){}
10288int main(){nm_test_func;return 0;}
10289EOF
10290  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10291  (eval $ac_compile) 2>&5
10292  ac_status=$?
10293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294  (exit $ac_status); }; then
10295    # Now try to grab the symbols.
10296    ac_nlist=conftest.nm
10297    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10298  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10299  ac_status=$?
10300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301  (exit $ac_status); } && test -s "$ac_nlist"; then
10302      # See whether the symbols have a leading underscore.
10303      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10304        ac_cv_sys_symbol_underscore=yes
10305      else
10306        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10307	  :
10308        else
10309	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10310        fi
10311      fi
10312    else
10313      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10314    fi
10315  else
10316    echo "configure: failed program was:" >&5
10317    cat conftest.c >&5
10318  fi
10319  rm -rf conftest*
10320
10321fi
10322{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10323echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10324
10325
10326if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10327  if test x"$libltdl_cv_func_dlopen" = xyes ||
10328     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10329	{ echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10330echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10331if test "${libltdl_cv_need_uscore+set}" = set; then
10332  echo $ECHO_N "(cached) $ECHO_C" >&6
10333else
10334  libltdl_cv_need_uscore=unknown
10335          save_LIBS="$LIBS"
10336          LIBS="$LIBS $LIBADD_DL"
10337	  if test "$cross_compiling" = yes; then :
10338  libltdl_cv_need_uscore=cross
10339else
10340  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10341  lt_status=$lt_dlunknown
10342  cat > conftest.$ac_ext <<EOF
10343#line 10343 "configure"
10344#include "confdefs.h"
10345
10346#if HAVE_DLFCN_H
10347#include <dlfcn.h>
10348#endif
10349
10350#include <stdio.h>
10351
10352#ifdef RTLD_GLOBAL
10353#  define LT_DLGLOBAL		RTLD_GLOBAL
10354#else
10355#  ifdef DL_GLOBAL
10356#    define LT_DLGLOBAL		DL_GLOBAL
10357#  else
10358#    define LT_DLGLOBAL		0
10359#  endif
10360#endif
10361
10362/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10363   find out it does not work in some platform. */
10364#ifndef LT_DLLAZY_OR_NOW
10365#  ifdef RTLD_LAZY
10366#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10367#  else
10368#    ifdef DL_LAZY
10369#      define LT_DLLAZY_OR_NOW		DL_LAZY
10370#    else
10371#      ifdef RTLD_NOW
10372#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10373#      else
10374#        ifdef DL_NOW
10375#          define LT_DLLAZY_OR_NOW	DL_NOW
10376#        else
10377#          define LT_DLLAZY_OR_NOW	0
10378#        endif
10379#      endif
10380#    endif
10381#  endif
10382#endif
10383
10384#ifdef __cplusplus
10385extern "C" void exit (int);
10386#endif
10387
10388void fnord() { int i=42;}
10389int main ()
10390{
10391  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10392  int status = $lt_dlunknown;
10393
10394  if (self)
10395    {
10396      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10397      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10398      /* dlclose (self); */
10399    }
10400  else
10401    puts (dlerror ());
10402
10403    exit (status);
10404}
10405EOF
10406  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10407  (eval $ac_link) 2>&5
10408  ac_status=$?
10409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10411    (./conftest; exit; ) >&5 2>/dev/null
10412    lt_status=$?
10413    case x$lt_status in
10414      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10415      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10416      x$lt_dlunknown|x*)  ;;
10417    esac
10418  else :
10419    # compilation failed
10420
10421  fi
10422fi
10423rm -fr conftest*
10424
10425	  LIBS="$save_LIBS"
10426
10427fi
10428{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10429echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10430  fi
10431fi
10432
10433if test x"$libltdl_cv_need_uscore" = xyes; then
10434
10435cat >>confdefs.h <<\_ACEOF
10436#define NEED_USCORE 1
10437_ACEOF
10438
10439fi
10440
10441
10442{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10443echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10444if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10445  echo $ECHO_N "(cached) $ECHO_C" >&6
10446else
10447  # PORTME does your system automatically load deplibs for dlopen?
10448  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10449  # For now, we just catch OSes we know something about -- in the
10450  # future, we'll try test this programmatically.
10451  libltdl_cv_sys_dlopen_deplibs=unknown
10452  case "$host_os" in
10453  aix3*|aix4.1.*|aix4.2.*)
10454    # Unknown whether this is true for these versions of AIX, but
10455    # we want this `case' here to explicitly catch those versions.
10456    libltdl_cv_sys_dlopen_deplibs=unknown
10457    ;;
10458  aix[45]*)
10459    libltdl_cv_sys_dlopen_deplibs=yes
10460    ;;
10461  darwin*)
10462    # Assuming the user has installed a libdl from somewhere, this is true
10463    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10464    libltdl_cv_sys_dlopen_deplibs=yes
10465    ;;
10466  gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10467    # GNU and its variants, using gnu ld.so (Glibc)
10468    libltdl_cv_sys_dlopen_deplibs=yes
10469    ;;
10470  hpux10*|hpux11*)
10471    libltdl_cv_sys_dlopen_deplibs=yes
10472    ;;
10473  interix*)
10474    libltdl_cv_sys_dlopen_deplibs=yes
10475    ;;
10476  irix[12345]*|irix6.[01]*)
10477    # Catch all versions of IRIX before 6.2, and indicate that we don't
10478    # know how it worked for any of those versions.
10479    libltdl_cv_sys_dlopen_deplibs=unknown
10480    ;;
10481  irix*)
10482    # The case above catches anything before 6.2, and it's known that
10483    # at 6.2 and later dlopen does load deplibs.
10484    libltdl_cv_sys_dlopen_deplibs=yes
10485    ;;
10486  netbsd*)
10487    libltdl_cv_sys_dlopen_deplibs=yes
10488    ;;
10489  openbsd*)
10490    libltdl_cv_sys_dlopen_deplibs=yes
10491    ;;
10492  osf[1234]*)
10493    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10494    # it did *not* use an RPATH in a shared library to find objects the
10495    # library depends on, so we explictly say `no'.
10496    libltdl_cv_sys_dlopen_deplibs=no
10497    ;;
10498  osf5.0|osf5.0a|osf5.1)
10499    # dlopen *does* load deplibs and with the right loader patch applied
10500    # it even uses RPATH in a shared library to search for shared objects
10501    # that the library depends on, but there's no easy way to know if that
10502    # patch is installed.  Since this is the case, all we can really
10503    # say is unknown -- it depends on the patch being installed.  If
10504    # it is, this changes to `yes'.  Without it, it would be `no'.
10505    libltdl_cv_sys_dlopen_deplibs=unknown
10506    ;;
10507  osf*)
10508    # the two cases above should catch all versions of osf <= 5.1.  Read
10509    # the comments above for what we know about them.
10510    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10511    # is used to find them so we can finally say `yes'.
10512    libltdl_cv_sys_dlopen_deplibs=yes
10513    ;;
10514  solaris*)
10515    libltdl_cv_sys_dlopen_deplibs=yes
10516    ;;
10517  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10518    libltdl_cv_sys_dlopen_deplibs=yes
10519    ;;
10520  esac
10521
10522fi
10523{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10524echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10525if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10526
10527cat >>confdefs.h <<\_ACEOF
10528#define LTDL_DLOPEN_DEPLIBS 1
10529_ACEOF
10530
10531fi
10532
10533
10534for ac_header in argz.h
10535do
10536as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10537if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10538  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10539echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10540if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10541  echo $ECHO_N "(cached) $ECHO_C" >&6
10542fi
10543ac_res=`eval echo '${'$as_ac_Header'}'`
10544	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10545echo "${ECHO_T}$ac_res" >&6; }
10546else
10547  # Is the header compilable?
10548{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10549echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10550cat >conftest.$ac_ext <<_ACEOF
10551/* confdefs.h.  */
10552_ACEOF
10553cat confdefs.h >>conftest.$ac_ext
10554cat >>conftest.$ac_ext <<_ACEOF
10555/* end confdefs.h.  */
10556$ac_includes_default
10557#include <$ac_header>
10558_ACEOF
10559rm -f conftest.$ac_objext
10560if { (ac_try="$ac_compile"
10561case "(($ac_try" in
10562  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10563  *) ac_try_echo=$ac_try;;
10564esac
10565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10566  (eval "$ac_compile") 2>conftest.er1
10567  ac_status=$?
10568  grep -v '^ *+' conftest.er1 >conftest.err
10569  rm -f conftest.er1
10570  cat conftest.err >&5
10571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572  (exit $ac_status); } &&
10573	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10574  { (case "(($ac_try" in
10575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10576  *) ac_try_echo=$ac_try;;
10577esac
10578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10579  (eval "$ac_try") 2>&5
10580  ac_status=$?
10581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582  (exit $ac_status); }; } &&
10583	 { ac_try='test -s conftest.$ac_objext'
10584  { (case "(($ac_try" in
10585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10586  *) ac_try_echo=$ac_try;;
10587esac
10588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10589  (eval "$ac_try") 2>&5
10590  ac_status=$?
10591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592  (exit $ac_status); }; }; then
10593  ac_header_compiler=yes
10594else
10595  echo "$as_me: failed program was:" >&5
10596sed 's/^/| /' conftest.$ac_ext >&5
10597
10598	ac_header_compiler=no
10599fi
10600
10601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10602{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10603echo "${ECHO_T}$ac_header_compiler" >&6; }
10604
10605# Is the header present?
10606{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10607echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10608cat >conftest.$ac_ext <<_ACEOF
10609/* confdefs.h.  */
10610_ACEOF
10611cat confdefs.h >>conftest.$ac_ext
10612cat >>conftest.$ac_ext <<_ACEOF
10613/* end confdefs.h.  */
10614#include <$ac_header>
10615_ACEOF
10616if { (ac_try="$ac_cpp conftest.$ac_ext"
10617case "(($ac_try" in
10618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10619  *) ac_try_echo=$ac_try;;
10620esac
10621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10622  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10623  ac_status=$?
10624  grep -v '^ *+' conftest.er1 >conftest.err
10625  rm -f conftest.er1
10626  cat conftest.err >&5
10627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628  (exit $ac_status); } >/dev/null; then
10629  if test -s conftest.err; then
10630    ac_cpp_err=$ac_c_preproc_warn_flag
10631    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10632  else
10633    ac_cpp_err=
10634  fi
10635else
10636  ac_cpp_err=yes
10637fi
10638if test -z "$ac_cpp_err"; then
10639  ac_header_preproc=yes
10640else
10641  echo "$as_me: failed program was:" >&5
10642sed 's/^/| /' conftest.$ac_ext >&5
10643
10644  ac_header_preproc=no
10645fi
10646
10647rm -f conftest.err conftest.$ac_ext
10648{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10649echo "${ECHO_T}$ac_header_preproc" >&6; }
10650
10651# So?  What about this header?
10652case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10653  yes:no: )
10654    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10655echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10656    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10657echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10658    ac_header_preproc=yes
10659    ;;
10660  no:yes:* )
10661    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10662echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10663    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10664echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10665    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10666echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10667    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10668echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10669    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10670echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10671    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10672echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10673    ( cat <<\_ASBOX
10674## ----------------------------------- ##
10675## Report this to llvmbugs@cs.uiuc.edu ##
10676## ----------------------------------- ##
10677_ASBOX
10678     ) | sed "s/^/$as_me: WARNING:     /" >&2
10679    ;;
10680esac
10681{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10682echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10683if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10684  echo $ECHO_N "(cached) $ECHO_C" >&6
10685else
10686  eval "$as_ac_Header=\$ac_header_preproc"
10687fi
10688ac_res=`eval echo '${'$as_ac_Header'}'`
10689	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10690echo "${ECHO_T}$ac_res" >&6; }
10691
10692fi
10693if test `eval echo '${'$as_ac_Header'}'` = yes; then
10694  cat >>confdefs.h <<_ACEOF
10695#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10696_ACEOF
10697
10698fi
10699
10700done
10701
10702
10703{ echo "$as_me:$LINENO: checking for error_t" >&5
10704echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10705if test "${ac_cv_type_error_t+set}" = set; then
10706  echo $ECHO_N "(cached) $ECHO_C" >&6
10707else
10708  cat >conftest.$ac_ext <<_ACEOF
10709/* confdefs.h.  */
10710_ACEOF
10711cat confdefs.h >>conftest.$ac_ext
10712cat >>conftest.$ac_ext <<_ACEOF
10713/* end confdefs.h.  */
10714#if HAVE_ARGZ_H
10715#  include <argz.h>
10716#endif
10717
10718typedef error_t ac__type_new_;
10719int
10720main ()
10721{
10722if ((ac__type_new_ *) 0)
10723  return 0;
10724if (sizeof (ac__type_new_))
10725  return 0;
10726  ;
10727  return 0;
10728}
10729_ACEOF
10730rm -f conftest.$ac_objext
10731if { (ac_try="$ac_compile"
10732case "(($ac_try" in
10733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10734  *) ac_try_echo=$ac_try;;
10735esac
10736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10737  (eval "$ac_compile") 2>conftest.er1
10738  ac_status=$?
10739  grep -v '^ *+' conftest.er1 >conftest.err
10740  rm -f conftest.er1
10741  cat conftest.err >&5
10742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743  (exit $ac_status); } &&
10744	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10745  { (case "(($ac_try" in
10746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10747  *) ac_try_echo=$ac_try;;
10748esac
10749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10750  (eval "$ac_try") 2>&5
10751  ac_status=$?
10752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753  (exit $ac_status); }; } &&
10754	 { ac_try='test -s conftest.$ac_objext'
10755  { (case "(($ac_try" in
10756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10757  *) ac_try_echo=$ac_try;;
10758esac
10759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10760  (eval "$ac_try") 2>&5
10761  ac_status=$?
10762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763  (exit $ac_status); }; }; then
10764  ac_cv_type_error_t=yes
10765else
10766  echo "$as_me: failed program was:" >&5
10767sed 's/^/| /' conftest.$ac_ext >&5
10768
10769	ac_cv_type_error_t=no
10770fi
10771
10772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10773fi
10774{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10775echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10776if test $ac_cv_type_error_t = yes; then
10777
10778cat >>confdefs.h <<_ACEOF
10779#define HAVE_ERROR_T 1
10780_ACEOF
10781
10782
10783else
10784
10785cat >>confdefs.h <<\_ACEOF
10786#define error_t int
10787_ACEOF
10788
10789fi
10790
10791
10792
10793
10794
10795
10796
10797for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10798do
10799as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10800{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10801echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10802if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10803  echo $ECHO_N "(cached) $ECHO_C" >&6
10804else
10805  cat >conftest.$ac_ext <<_ACEOF
10806/* confdefs.h.  */
10807_ACEOF
10808cat confdefs.h >>conftest.$ac_ext
10809cat >>conftest.$ac_ext <<_ACEOF
10810/* end confdefs.h.  */
10811/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10812   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10813#define $ac_func innocuous_$ac_func
10814
10815/* System header to define __stub macros and hopefully few prototypes,
10816    which can conflict with char $ac_func (); below.
10817    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10818    <limits.h> exists even on freestanding compilers.  */
10819
10820#ifdef __STDC__
10821# include <limits.h>
10822#else
10823# include <assert.h>
10824#endif
10825
10826#undef $ac_func
10827
10828/* Override any GCC internal prototype to avoid an error.
10829   Use char because int might match the return type of a GCC
10830   builtin and then its argument prototype would still apply.  */
10831#ifdef __cplusplus
10832extern "C"
10833#endif
10834char $ac_func ();
10835/* The GNU C library defines this for functions which it implements
10836    to always fail with ENOSYS.  Some functions are actually named
10837    something starting with __ and the normal name is an alias.  */
10838#if defined __stub_$ac_func || defined __stub___$ac_func
10839choke me
10840#endif
10841
10842int
10843main ()
10844{
10845return $ac_func ();
10846  ;
10847  return 0;
10848}
10849_ACEOF
10850rm -f conftest.$ac_objext conftest$ac_exeext
10851if { (ac_try="$ac_link"
10852case "(($ac_try" in
10853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854  *) ac_try_echo=$ac_try;;
10855esac
10856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857  (eval "$ac_link") 2>conftest.er1
10858  ac_status=$?
10859  grep -v '^ *+' conftest.er1 >conftest.err
10860  rm -f conftest.er1
10861  cat conftest.err >&5
10862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863  (exit $ac_status); } &&
10864	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10865  { (case "(($ac_try" in
10866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867  *) ac_try_echo=$ac_try;;
10868esac
10869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10870  (eval "$ac_try") 2>&5
10871  ac_status=$?
10872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873  (exit $ac_status); }; } &&
10874	 { ac_try='test -s conftest$ac_exeext'
10875  { (case "(($ac_try" in
10876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10877  *) ac_try_echo=$ac_try;;
10878esac
10879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10880  (eval "$ac_try") 2>&5
10881  ac_status=$?
10882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883  (exit $ac_status); }; }; then
10884  eval "$as_ac_var=yes"
10885else
10886  echo "$as_me: failed program was:" >&5
10887sed 's/^/| /' conftest.$ac_ext >&5
10888
10889	eval "$as_ac_var=no"
10890fi
10891
10892rm -f core conftest.err conftest.$ac_objext \
10893      conftest$ac_exeext conftest.$ac_ext
10894fi
10895ac_res=`eval echo '${'$as_ac_var'}'`
10896	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10897echo "${ECHO_T}$ac_res" >&6; }
10898if test `eval echo '${'$as_ac_var'}'` = yes; then
10899  cat >>confdefs.h <<_ACEOF
10900#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10901_ACEOF
10902
10903fi
10904done
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10934		  stdio.h unistd.h
10935do
10936as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10937if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10938  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10939echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10940if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10941  echo $ECHO_N "(cached) $ECHO_C" >&6
10942fi
10943ac_res=`eval echo '${'$as_ac_Header'}'`
10944	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10945echo "${ECHO_T}$ac_res" >&6; }
10946else
10947  # Is the header compilable?
10948{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10949echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10950cat >conftest.$ac_ext <<_ACEOF
10951/* confdefs.h.  */
10952_ACEOF
10953cat confdefs.h >>conftest.$ac_ext
10954cat >>conftest.$ac_ext <<_ACEOF
10955/* end confdefs.h.  */
10956$ac_includes_default
10957#include <$ac_header>
10958_ACEOF
10959rm -f conftest.$ac_objext
10960if { (ac_try="$ac_compile"
10961case "(($ac_try" in
10962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963  *) ac_try_echo=$ac_try;;
10964esac
10965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10966  (eval "$ac_compile") 2>conftest.er1
10967  ac_status=$?
10968  grep -v '^ *+' conftest.er1 >conftest.err
10969  rm -f conftest.er1
10970  cat conftest.err >&5
10971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972  (exit $ac_status); } &&
10973	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10974  { (case "(($ac_try" in
10975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10976  *) ac_try_echo=$ac_try;;
10977esac
10978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10979  (eval "$ac_try") 2>&5
10980  ac_status=$?
10981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982  (exit $ac_status); }; } &&
10983	 { ac_try='test -s conftest.$ac_objext'
10984  { (case "(($ac_try" in
10985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10986  *) ac_try_echo=$ac_try;;
10987esac
10988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10989  (eval "$ac_try") 2>&5
10990  ac_status=$?
10991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992  (exit $ac_status); }; }; then
10993  ac_header_compiler=yes
10994else
10995  echo "$as_me: failed program was:" >&5
10996sed 's/^/| /' conftest.$ac_ext >&5
10997
10998	ac_header_compiler=no
10999fi
11000
11001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11002{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11003echo "${ECHO_T}$ac_header_compiler" >&6; }
11004
11005# Is the header present?
11006{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11007echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11008cat >conftest.$ac_ext <<_ACEOF
11009/* confdefs.h.  */
11010_ACEOF
11011cat confdefs.h >>conftest.$ac_ext
11012cat >>conftest.$ac_ext <<_ACEOF
11013/* end confdefs.h.  */
11014#include <$ac_header>
11015_ACEOF
11016if { (ac_try="$ac_cpp conftest.$ac_ext"
11017case "(($ac_try" in
11018  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11019  *) ac_try_echo=$ac_try;;
11020esac
11021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11022  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11023  ac_status=$?
11024  grep -v '^ *+' conftest.er1 >conftest.err
11025  rm -f conftest.er1
11026  cat conftest.err >&5
11027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028  (exit $ac_status); } >/dev/null; then
11029  if test -s conftest.err; then
11030    ac_cpp_err=$ac_c_preproc_warn_flag
11031    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11032  else
11033    ac_cpp_err=
11034  fi
11035else
11036  ac_cpp_err=yes
11037fi
11038if test -z "$ac_cpp_err"; then
11039  ac_header_preproc=yes
11040else
11041  echo "$as_me: failed program was:" >&5
11042sed 's/^/| /' conftest.$ac_ext >&5
11043
11044  ac_header_preproc=no
11045fi
11046
11047rm -f conftest.err conftest.$ac_ext
11048{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11049echo "${ECHO_T}$ac_header_preproc" >&6; }
11050
11051# So?  What about this header?
11052case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11053  yes:no: )
11054    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11055echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11056    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11057echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11058    ac_header_preproc=yes
11059    ;;
11060  no:yes:* )
11061    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11062echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11063    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11064echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11065    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11066echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11067    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11068echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11069    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11070echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11071    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11072echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11073    ( cat <<\_ASBOX
11074## ----------------------------------- ##
11075## Report this to llvmbugs@cs.uiuc.edu ##
11076## ----------------------------------- ##
11077_ASBOX
11078     ) | sed "s/^/$as_me: WARNING:     /" >&2
11079    ;;
11080esac
11081{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11082echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11083if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11084  echo $ECHO_N "(cached) $ECHO_C" >&6
11085else
11086  eval "$as_ac_Header=\$ac_header_preproc"
11087fi
11088ac_res=`eval echo '${'$as_ac_Header'}'`
11089	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11090echo "${ECHO_T}$ac_res" >&6; }
11091
11092fi
11093if test `eval echo '${'$as_ac_Header'}'` = yes; then
11094  cat >>confdefs.h <<_ACEOF
11095#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11096_ACEOF
11097
11098fi
11099
11100done
11101
11102
11103
11104
11105
11106for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11107do
11108as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11109if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11110  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11111echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11112if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11113  echo $ECHO_N "(cached) $ECHO_C" >&6
11114fi
11115ac_res=`eval echo '${'$as_ac_Header'}'`
11116	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11117echo "${ECHO_T}$ac_res" >&6; }
11118else
11119  # Is the header compilable?
11120{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11121echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11122cat >conftest.$ac_ext <<_ACEOF
11123/* confdefs.h.  */
11124_ACEOF
11125cat confdefs.h >>conftest.$ac_ext
11126cat >>conftest.$ac_ext <<_ACEOF
11127/* end confdefs.h.  */
11128$ac_includes_default
11129#include <$ac_header>
11130_ACEOF
11131rm -f conftest.$ac_objext
11132if { (ac_try="$ac_compile"
11133case "(($ac_try" in
11134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135  *) ac_try_echo=$ac_try;;
11136esac
11137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11138  (eval "$ac_compile") 2>conftest.er1
11139  ac_status=$?
11140  grep -v '^ *+' conftest.er1 >conftest.err
11141  rm -f conftest.er1
11142  cat conftest.err >&5
11143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144  (exit $ac_status); } &&
11145	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11146  { (case "(($ac_try" in
11147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11148  *) ac_try_echo=$ac_try;;
11149esac
11150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11151  (eval "$ac_try") 2>&5
11152  ac_status=$?
11153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154  (exit $ac_status); }; } &&
11155	 { ac_try='test -s conftest.$ac_objext'
11156  { (case "(($ac_try" in
11157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11158  *) ac_try_echo=$ac_try;;
11159esac
11160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11161  (eval "$ac_try") 2>&5
11162  ac_status=$?
11163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164  (exit $ac_status); }; }; then
11165  ac_header_compiler=yes
11166else
11167  echo "$as_me: failed program was:" >&5
11168sed 's/^/| /' conftest.$ac_ext >&5
11169
11170	ac_header_compiler=no
11171fi
11172
11173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11174{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11175echo "${ECHO_T}$ac_header_compiler" >&6; }
11176
11177# Is the header present?
11178{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11179echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11180cat >conftest.$ac_ext <<_ACEOF
11181/* confdefs.h.  */
11182_ACEOF
11183cat confdefs.h >>conftest.$ac_ext
11184cat >>conftest.$ac_ext <<_ACEOF
11185/* end confdefs.h.  */
11186#include <$ac_header>
11187_ACEOF
11188if { (ac_try="$ac_cpp conftest.$ac_ext"
11189case "(($ac_try" in
11190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11191  *) ac_try_echo=$ac_try;;
11192esac
11193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11194  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11195  ac_status=$?
11196  grep -v '^ *+' conftest.er1 >conftest.err
11197  rm -f conftest.er1
11198  cat conftest.err >&5
11199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200  (exit $ac_status); } >/dev/null; then
11201  if test -s conftest.err; then
11202    ac_cpp_err=$ac_c_preproc_warn_flag
11203    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11204  else
11205    ac_cpp_err=
11206  fi
11207else
11208  ac_cpp_err=yes
11209fi
11210if test -z "$ac_cpp_err"; then
11211  ac_header_preproc=yes
11212else
11213  echo "$as_me: failed program was:" >&5
11214sed 's/^/| /' conftest.$ac_ext >&5
11215
11216  ac_header_preproc=no
11217fi
11218
11219rm -f conftest.err conftest.$ac_ext
11220{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11221echo "${ECHO_T}$ac_header_preproc" >&6; }
11222
11223# So?  What about this header?
11224case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11225  yes:no: )
11226    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11227echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11228    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11229echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11230    ac_header_preproc=yes
11231    ;;
11232  no:yes:* )
11233    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11234echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11235    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11236echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11237    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11238echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11239    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11240echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11241    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11242echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11243    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11244echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11245    ( cat <<\_ASBOX
11246## ----------------------------------- ##
11247## Report this to llvmbugs@cs.uiuc.edu ##
11248## ----------------------------------- ##
11249_ASBOX
11250     ) | sed "s/^/$as_me: WARNING:     /" >&2
11251    ;;
11252esac
11253{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11254echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11255if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11256  echo $ECHO_N "(cached) $ECHO_C" >&6
11257else
11258  eval "$as_ac_Header=\$ac_header_preproc"
11259fi
11260ac_res=`eval echo '${'$as_ac_Header'}'`
11261	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11262echo "${ECHO_T}$ac_res" >&6; }
11263
11264fi
11265if test `eval echo '${'$as_ac_Header'}'` = yes; then
11266  cat >>confdefs.h <<_ACEOF
11267#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11268_ACEOF
11269
11270fi
11271
11272done
11273
11274
11275
11276for ac_header in string.h strings.h
11277do
11278as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11279if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11280  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11281echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11282if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11283  echo $ECHO_N "(cached) $ECHO_C" >&6
11284fi
11285ac_res=`eval echo '${'$as_ac_Header'}'`
11286	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11287echo "${ECHO_T}$ac_res" >&6; }
11288else
11289  # Is the header compilable?
11290{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11291echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11292cat >conftest.$ac_ext <<_ACEOF
11293/* confdefs.h.  */
11294_ACEOF
11295cat confdefs.h >>conftest.$ac_ext
11296cat >>conftest.$ac_ext <<_ACEOF
11297/* end confdefs.h.  */
11298$ac_includes_default
11299#include <$ac_header>
11300_ACEOF
11301rm -f conftest.$ac_objext
11302if { (ac_try="$ac_compile"
11303case "(($ac_try" in
11304  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11305  *) ac_try_echo=$ac_try;;
11306esac
11307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11308  (eval "$ac_compile") 2>conftest.er1
11309  ac_status=$?
11310  grep -v '^ *+' conftest.er1 >conftest.err
11311  rm -f conftest.er1
11312  cat conftest.err >&5
11313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314  (exit $ac_status); } &&
11315	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11316  { (case "(($ac_try" in
11317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11318  *) ac_try_echo=$ac_try;;
11319esac
11320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11321  (eval "$ac_try") 2>&5
11322  ac_status=$?
11323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324  (exit $ac_status); }; } &&
11325	 { ac_try='test -s conftest.$ac_objext'
11326  { (case "(($ac_try" in
11327  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11328  *) ac_try_echo=$ac_try;;
11329esac
11330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11331  (eval "$ac_try") 2>&5
11332  ac_status=$?
11333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334  (exit $ac_status); }; }; then
11335  ac_header_compiler=yes
11336else
11337  echo "$as_me: failed program was:" >&5
11338sed 's/^/| /' conftest.$ac_ext >&5
11339
11340	ac_header_compiler=no
11341fi
11342
11343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11344{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11345echo "${ECHO_T}$ac_header_compiler" >&6; }
11346
11347# Is the header present?
11348{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11349echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11350cat >conftest.$ac_ext <<_ACEOF
11351/* confdefs.h.  */
11352_ACEOF
11353cat confdefs.h >>conftest.$ac_ext
11354cat >>conftest.$ac_ext <<_ACEOF
11355/* end confdefs.h.  */
11356#include <$ac_header>
11357_ACEOF
11358if { (ac_try="$ac_cpp conftest.$ac_ext"
11359case "(($ac_try" in
11360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11361  *) ac_try_echo=$ac_try;;
11362esac
11363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11364  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11365  ac_status=$?
11366  grep -v '^ *+' conftest.er1 >conftest.err
11367  rm -f conftest.er1
11368  cat conftest.err >&5
11369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370  (exit $ac_status); } >/dev/null; then
11371  if test -s conftest.err; then
11372    ac_cpp_err=$ac_c_preproc_warn_flag
11373    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11374  else
11375    ac_cpp_err=
11376  fi
11377else
11378  ac_cpp_err=yes
11379fi
11380if test -z "$ac_cpp_err"; then
11381  ac_header_preproc=yes
11382else
11383  echo "$as_me: failed program was:" >&5
11384sed 's/^/| /' conftest.$ac_ext >&5
11385
11386  ac_header_preproc=no
11387fi
11388
11389rm -f conftest.err conftest.$ac_ext
11390{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11391echo "${ECHO_T}$ac_header_preproc" >&6; }
11392
11393# So?  What about this header?
11394case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11395  yes:no: )
11396    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11397echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11398    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11399echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11400    ac_header_preproc=yes
11401    ;;
11402  no:yes:* )
11403    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11404echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11405    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11406echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11407    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11408echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11409    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11410echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11411    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11412echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11413    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11414echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11415    ( cat <<\_ASBOX
11416## ----------------------------------- ##
11417## Report this to llvmbugs@cs.uiuc.edu ##
11418## ----------------------------------- ##
11419_ASBOX
11420     ) | sed "s/^/$as_me: WARNING:     /" >&2
11421    ;;
11422esac
11423{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11424echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11425if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11426  echo $ECHO_N "(cached) $ECHO_C" >&6
11427else
11428  eval "$as_ac_Header=\$ac_header_preproc"
11429fi
11430ac_res=`eval echo '${'$as_ac_Header'}'`
11431	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11432echo "${ECHO_T}$ac_res" >&6; }
11433
11434fi
11435if test `eval echo '${'$as_ac_Header'}'` = yes; then
11436  cat >>confdefs.h <<_ACEOF
11437#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11438_ACEOF
11439 break
11440fi
11441
11442done
11443
11444
11445
11446
11447for ac_func in strchr index
11448do
11449as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11450{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11451echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11452if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11453  echo $ECHO_N "(cached) $ECHO_C" >&6
11454else
11455  cat >conftest.$ac_ext <<_ACEOF
11456/* confdefs.h.  */
11457_ACEOF
11458cat confdefs.h >>conftest.$ac_ext
11459cat >>conftest.$ac_ext <<_ACEOF
11460/* end confdefs.h.  */
11461/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11462   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11463#define $ac_func innocuous_$ac_func
11464
11465/* System header to define __stub macros and hopefully few prototypes,
11466    which can conflict with char $ac_func (); below.
11467    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11468    <limits.h> exists even on freestanding compilers.  */
11469
11470#ifdef __STDC__
11471# include <limits.h>
11472#else
11473# include <assert.h>
11474#endif
11475
11476#undef $ac_func
11477
11478/* Override any GCC internal prototype to avoid an error.
11479   Use char because int might match the return type of a GCC
11480   builtin and then its argument prototype would still apply.  */
11481#ifdef __cplusplus
11482extern "C"
11483#endif
11484char $ac_func ();
11485/* The GNU C library defines this for functions which it implements
11486    to always fail with ENOSYS.  Some functions are actually named
11487    something starting with __ and the normal name is an alias.  */
11488#if defined __stub_$ac_func || defined __stub___$ac_func
11489choke me
11490#endif
11491
11492int
11493main ()
11494{
11495return $ac_func ();
11496  ;
11497  return 0;
11498}
11499_ACEOF
11500rm -f conftest.$ac_objext conftest$ac_exeext
11501if { (ac_try="$ac_link"
11502case "(($ac_try" in
11503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11504  *) ac_try_echo=$ac_try;;
11505esac
11506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11507  (eval "$ac_link") 2>conftest.er1
11508  ac_status=$?
11509  grep -v '^ *+' conftest.er1 >conftest.err
11510  rm -f conftest.er1
11511  cat conftest.err >&5
11512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513  (exit $ac_status); } &&
11514	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11515  { (case "(($ac_try" in
11516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11517  *) ac_try_echo=$ac_try;;
11518esac
11519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11520  (eval "$ac_try") 2>&5
11521  ac_status=$?
11522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523  (exit $ac_status); }; } &&
11524	 { ac_try='test -s conftest$ac_exeext'
11525  { (case "(($ac_try" in
11526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11527  *) ac_try_echo=$ac_try;;
11528esac
11529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11530  (eval "$ac_try") 2>&5
11531  ac_status=$?
11532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533  (exit $ac_status); }; }; then
11534  eval "$as_ac_var=yes"
11535else
11536  echo "$as_me: failed program was:" >&5
11537sed 's/^/| /' conftest.$ac_ext >&5
11538
11539	eval "$as_ac_var=no"
11540fi
11541
11542rm -f core conftest.err conftest.$ac_objext \
11543      conftest$ac_exeext conftest.$ac_ext
11544fi
11545ac_res=`eval echo '${'$as_ac_var'}'`
11546	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11547echo "${ECHO_T}$ac_res" >&6; }
11548if test `eval echo '${'$as_ac_var'}'` = yes; then
11549  cat >>confdefs.h <<_ACEOF
11550#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11551_ACEOF
11552 break
11553fi
11554done
11555
11556
11557
11558for ac_func in strrchr rindex
11559do
11560as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11561{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11562echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11563if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11564  echo $ECHO_N "(cached) $ECHO_C" >&6
11565else
11566  cat >conftest.$ac_ext <<_ACEOF
11567/* confdefs.h.  */
11568_ACEOF
11569cat confdefs.h >>conftest.$ac_ext
11570cat >>conftest.$ac_ext <<_ACEOF
11571/* end confdefs.h.  */
11572/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11573   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11574#define $ac_func innocuous_$ac_func
11575
11576/* System header to define __stub macros and hopefully few prototypes,
11577    which can conflict with char $ac_func (); below.
11578    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11579    <limits.h> exists even on freestanding compilers.  */
11580
11581#ifdef __STDC__
11582# include <limits.h>
11583#else
11584# include <assert.h>
11585#endif
11586
11587#undef $ac_func
11588
11589/* Override any GCC internal prototype to avoid an error.
11590   Use char because int might match the return type of a GCC
11591   builtin and then its argument prototype would still apply.  */
11592#ifdef __cplusplus
11593extern "C"
11594#endif
11595char $ac_func ();
11596/* The GNU C library defines this for functions which it implements
11597    to always fail with ENOSYS.  Some functions are actually named
11598    something starting with __ and the normal name is an alias.  */
11599#if defined __stub_$ac_func || defined __stub___$ac_func
11600choke me
11601#endif
11602
11603int
11604main ()
11605{
11606return $ac_func ();
11607  ;
11608  return 0;
11609}
11610_ACEOF
11611rm -f conftest.$ac_objext conftest$ac_exeext
11612if { (ac_try="$ac_link"
11613case "(($ac_try" in
11614  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11615  *) ac_try_echo=$ac_try;;
11616esac
11617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11618  (eval "$ac_link") 2>conftest.er1
11619  ac_status=$?
11620  grep -v '^ *+' conftest.er1 >conftest.err
11621  rm -f conftest.er1
11622  cat conftest.err >&5
11623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624  (exit $ac_status); } &&
11625	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11626  { (case "(($ac_try" in
11627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628  *) ac_try_echo=$ac_try;;
11629esac
11630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11631  (eval "$ac_try") 2>&5
11632  ac_status=$?
11633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634  (exit $ac_status); }; } &&
11635	 { ac_try='test -s conftest$ac_exeext'
11636  { (case "(($ac_try" in
11637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11638  *) ac_try_echo=$ac_try;;
11639esac
11640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11641  (eval "$ac_try") 2>&5
11642  ac_status=$?
11643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644  (exit $ac_status); }; }; then
11645  eval "$as_ac_var=yes"
11646else
11647  echo "$as_me: failed program was:" >&5
11648sed 's/^/| /' conftest.$ac_ext >&5
11649
11650	eval "$as_ac_var=no"
11651fi
11652
11653rm -f core conftest.err conftest.$ac_objext \
11654      conftest$ac_exeext conftest.$ac_ext
11655fi
11656ac_res=`eval echo '${'$as_ac_var'}'`
11657	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11658echo "${ECHO_T}$ac_res" >&6; }
11659if test `eval echo '${'$as_ac_var'}'` = yes; then
11660  cat >>confdefs.h <<_ACEOF
11661#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11662_ACEOF
11663 break
11664fi
11665done
11666
11667
11668
11669for ac_func in memcpy bcopy
11670do
11671as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11672{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11673echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11674if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11675  echo $ECHO_N "(cached) $ECHO_C" >&6
11676else
11677  cat >conftest.$ac_ext <<_ACEOF
11678/* confdefs.h.  */
11679_ACEOF
11680cat confdefs.h >>conftest.$ac_ext
11681cat >>conftest.$ac_ext <<_ACEOF
11682/* end confdefs.h.  */
11683/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11684   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11685#define $ac_func innocuous_$ac_func
11686
11687/* System header to define __stub macros and hopefully few prototypes,
11688    which can conflict with char $ac_func (); below.
11689    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11690    <limits.h> exists even on freestanding compilers.  */
11691
11692#ifdef __STDC__
11693# include <limits.h>
11694#else
11695# include <assert.h>
11696#endif
11697
11698#undef $ac_func
11699
11700/* Override any GCC internal prototype to avoid an error.
11701   Use char because int might match the return type of a GCC
11702   builtin and then its argument prototype would still apply.  */
11703#ifdef __cplusplus
11704extern "C"
11705#endif
11706char $ac_func ();
11707/* The GNU C library defines this for functions which it implements
11708    to always fail with ENOSYS.  Some functions are actually named
11709    something starting with __ and the normal name is an alias.  */
11710#if defined __stub_$ac_func || defined __stub___$ac_func
11711choke me
11712#endif
11713
11714int
11715main ()
11716{
11717return $ac_func ();
11718  ;
11719  return 0;
11720}
11721_ACEOF
11722rm -f conftest.$ac_objext conftest$ac_exeext
11723if { (ac_try="$ac_link"
11724case "(($ac_try" in
11725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11726  *) ac_try_echo=$ac_try;;
11727esac
11728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11729  (eval "$ac_link") 2>conftest.er1
11730  ac_status=$?
11731  grep -v '^ *+' conftest.er1 >conftest.err
11732  rm -f conftest.er1
11733  cat conftest.err >&5
11734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735  (exit $ac_status); } &&
11736	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11737  { (case "(($ac_try" in
11738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11739  *) ac_try_echo=$ac_try;;
11740esac
11741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11742  (eval "$ac_try") 2>&5
11743  ac_status=$?
11744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745  (exit $ac_status); }; } &&
11746	 { ac_try='test -s conftest$ac_exeext'
11747  { (case "(($ac_try" in
11748  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11749  *) ac_try_echo=$ac_try;;
11750esac
11751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11752  (eval "$ac_try") 2>&5
11753  ac_status=$?
11754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755  (exit $ac_status); }; }; then
11756  eval "$as_ac_var=yes"
11757else
11758  echo "$as_me: failed program was:" >&5
11759sed 's/^/| /' conftest.$ac_ext >&5
11760
11761	eval "$as_ac_var=no"
11762fi
11763
11764rm -f core conftest.err conftest.$ac_objext \
11765      conftest$ac_exeext conftest.$ac_ext
11766fi
11767ac_res=`eval echo '${'$as_ac_var'}'`
11768	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11769echo "${ECHO_T}$ac_res" >&6; }
11770if test `eval echo '${'$as_ac_var'}'` = yes; then
11771  cat >>confdefs.h <<_ACEOF
11772#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11773_ACEOF
11774 break
11775fi
11776done
11777
11778
11779
11780for ac_func in memmove strcmp
11781do
11782as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11783{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11784echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11785if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11786  echo $ECHO_N "(cached) $ECHO_C" >&6
11787else
11788  cat >conftest.$ac_ext <<_ACEOF
11789/* confdefs.h.  */
11790_ACEOF
11791cat confdefs.h >>conftest.$ac_ext
11792cat >>conftest.$ac_ext <<_ACEOF
11793/* end confdefs.h.  */
11794/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11795   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11796#define $ac_func innocuous_$ac_func
11797
11798/* System header to define __stub macros and hopefully few prototypes,
11799    which can conflict with char $ac_func (); below.
11800    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11801    <limits.h> exists even on freestanding compilers.  */
11802
11803#ifdef __STDC__
11804# include <limits.h>
11805#else
11806# include <assert.h>
11807#endif
11808
11809#undef $ac_func
11810
11811/* Override any GCC internal prototype to avoid an error.
11812   Use char because int might match the return type of a GCC
11813   builtin and then its argument prototype would still apply.  */
11814#ifdef __cplusplus
11815extern "C"
11816#endif
11817char $ac_func ();
11818/* The GNU C library defines this for functions which it implements
11819    to always fail with ENOSYS.  Some functions are actually named
11820    something starting with __ and the normal name is an alias.  */
11821#if defined __stub_$ac_func || defined __stub___$ac_func
11822choke me
11823#endif
11824
11825int
11826main ()
11827{
11828return $ac_func ();
11829  ;
11830  return 0;
11831}
11832_ACEOF
11833rm -f conftest.$ac_objext conftest$ac_exeext
11834if { (ac_try="$ac_link"
11835case "(($ac_try" in
11836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11837  *) ac_try_echo=$ac_try;;
11838esac
11839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11840  (eval "$ac_link") 2>conftest.er1
11841  ac_status=$?
11842  grep -v '^ *+' conftest.er1 >conftest.err
11843  rm -f conftest.er1
11844  cat conftest.err >&5
11845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846  (exit $ac_status); } &&
11847	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11848  { (case "(($ac_try" in
11849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850  *) ac_try_echo=$ac_try;;
11851esac
11852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11853  (eval "$ac_try") 2>&5
11854  ac_status=$?
11855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856  (exit $ac_status); }; } &&
11857	 { ac_try='test -s conftest$ac_exeext'
11858  { (case "(($ac_try" in
11859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11860  *) ac_try_echo=$ac_try;;
11861esac
11862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11863  (eval "$ac_try") 2>&5
11864  ac_status=$?
11865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866  (exit $ac_status); }; }; then
11867  eval "$as_ac_var=yes"
11868else
11869  echo "$as_me: failed program was:" >&5
11870sed 's/^/| /' conftest.$ac_ext >&5
11871
11872	eval "$as_ac_var=no"
11873fi
11874
11875rm -f core conftest.err conftest.$ac_objext \
11876      conftest$ac_exeext conftest.$ac_ext
11877fi
11878ac_res=`eval echo '${'$as_ac_var'}'`
11879	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11880echo "${ECHO_T}$ac_res" >&6; }
11881if test `eval echo '${'$as_ac_var'}'` = yes; then
11882  cat >>confdefs.h <<_ACEOF
11883#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11884_ACEOF
11885
11886fi
11887done
11888
11889
11890
11891
11892for ac_func in closedir opendir readdir
11893do
11894as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11895{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11896echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11897if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11898  echo $ECHO_N "(cached) $ECHO_C" >&6
11899else
11900  cat >conftest.$ac_ext <<_ACEOF
11901/* confdefs.h.  */
11902_ACEOF
11903cat confdefs.h >>conftest.$ac_ext
11904cat >>conftest.$ac_ext <<_ACEOF
11905/* end confdefs.h.  */
11906/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11907   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11908#define $ac_func innocuous_$ac_func
11909
11910/* System header to define __stub macros and hopefully few prototypes,
11911    which can conflict with char $ac_func (); below.
11912    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11913    <limits.h> exists even on freestanding compilers.  */
11914
11915#ifdef __STDC__
11916# include <limits.h>
11917#else
11918# include <assert.h>
11919#endif
11920
11921#undef $ac_func
11922
11923/* Override any GCC internal prototype to avoid an error.
11924   Use char because int might match the return type of a GCC
11925   builtin and then its argument prototype would still apply.  */
11926#ifdef __cplusplus
11927extern "C"
11928#endif
11929char $ac_func ();
11930/* The GNU C library defines this for functions which it implements
11931    to always fail with ENOSYS.  Some functions are actually named
11932    something starting with __ and the normal name is an alias.  */
11933#if defined __stub_$ac_func || defined __stub___$ac_func
11934choke me
11935#endif
11936
11937int
11938main ()
11939{
11940return $ac_func ();
11941  ;
11942  return 0;
11943}
11944_ACEOF
11945rm -f conftest.$ac_objext conftest$ac_exeext
11946if { (ac_try="$ac_link"
11947case "(($ac_try" in
11948  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11949  *) ac_try_echo=$ac_try;;
11950esac
11951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11952  (eval "$ac_link") 2>conftest.er1
11953  ac_status=$?
11954  grep -v '^ *+' conftest.er1 >conftest.err
11955  rm -f conftest.er1
11956  cat conftest.err >&5
11957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958  (exit $ac_status); } &&
11959	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11960  { (case "(($ac_try" in
11961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11962  *) ac_try_echo=$ac_try;;
11963esac
11964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11965  (eval "$ac_try") 2>&5
11966  ac_status=$?
11967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968  (exit $ac_status); }; } &&
11969	 { ac_try='test -s conftest$ac_exeext'
11970  { (case "(($ac_try" in
11971  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11972  *) ac_try_echo=$ac_try;;
11973esac
11974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11975  (eval "$ac_try") 2>&5
11976  ac_status=$?
11977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978  (exit $ac_status); }; }; then
11979  eval "$as_ac_var=yes"
11980else
11981  echo "$as_me: failed program was:" >&5
11982sed 's/^/| /' conftest.$ac_ext >&5
11983
11984	eval "$as_ac_var=no"
11985fi
11986
11987rm -f core conftest.err conftest.$ac_objext \
11988      conftest$ac_exeext conftest.$ac_ext
11989fi
11990ac_res=`eval echo '${'$as_ac_var'}'`
11991	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11992echo "${ECHO_T}$ac_res" >&6; }
11993if test `eval echo '${'$as_ac_var'}'` = yes; then
11994  cat >>confdefs.h <<_ACEOF
11995#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11996_ACEOF
11997
11998fi
11999done
12000
12001
12002# Check whether --enable-shared was given.
12003if test "${enable_shared+set}" = set; then
12004  enableval=$enable_shared; p=${PACKAGE-default}
12005    case $enableval in
12006    yes) enable_shared=yes ;;
12007    no) enable_shared=no ;;
12008    *)
12009      enable_shared=no
12010      # Look at the argument we got.  We use all the common list separators.
12011      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12012      for pkg in $enableval; do
12013	IFS="$lt_save_ifs"
12014	if test "X$pkg" = "X$p"; then
12015	  enable_shared=yes
12016	fi
12017      done
12018      IFS="$lt_save_ifs"
12019      ;;
12020    esac
12021else
12022  enable_shared=yes
12023fi
12024
12025
12026# Check whether --enable-static was given.
12027if test "${enable_static+set}" = set; then
12028  enableval=$enable_static; p=${PACKAGE-default}
12029    case $enableval in
12030    yes) enable_static=yes ;;
12031    no) enable_static=no ;;
12032    *)
12033     enable_static=no
12034      # Look at the argument we got.  We use all the common list separators.
12035      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12036      for pkg in $enableval; do
12037	IFS="$lt_save_ifs"
12038	if test "X$pkg" = "X$p"; then
12039	  enable_static=yes
12040	fi
12041      done
12042      IFS="$lt_save_ifs"
12043      ;;
12044    esac
12045else
12046  enable_static=yes
12047fi
12048
12049
12050# Check whether --enable-fast-install was given.
12051if test "${enable_fast_install+set}" = set; then
12052  enableval=$enable_fast_install; p=${PACKAGE-default}
12053    case $enableval in
12054    yes) enable_fast_install=yes ;;
12055    no) enable_fast_install=no ;;
12056    *)
12057      enable_fast_install=no
12058      # Look at the argument we got.  We use all the common list separators.
12059      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12060      for pkg in $enableval; do
12061	IFS="$lt_save_ifs"
12062	if test "X$pkg" = "X$p"; then
12063	  enable_fast_install=yes
12064	fi
12065      done
12066      IFS="$lt_save_ifs"
12067      ;;
12068    esac
12069else
12070  enable_fast_install=yes
12071fi
12072
12073
12074{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12075echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12076if test "${lt_cv_path_SED+set}" = set; then
12077  echo $ECHO_N "(cached) $ECHO_C" >&6
12078else
12079  # Loop through the user's path and test for sed and gsed.
12080# Then use that list of sed's as ones to test for truncation.
12081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12082for as_dir in $PATH
12083do
12084  IFS=$as_save_IFS
12085  test -z "$as_dir" && as_dir=.
12086  for lt_ac_prog in sed gsed; do
12087    for ac_exec_ext in '' $ac_executable_extensions; do
12088      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12089        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12090      fi
12091    done
12092  done
12093done
12094lt_ac_max=0
12095lt_ac_count=0
12096# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12097# along with /bin/sed that truncates output.
12098for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12099  test ! -f $lt_ac_sed && continue
12100  cat /dev/null > conftest.in
12101  lt_ac_count=0
12102  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12103  # Check for GNU sed and select it if it is found.
12104  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12105    lt_cv_path_SED=$lt_ac_sed
12106    break
12107  fi
12108  while true; do
12109    cat conftest.in conftest.in >conftest.tmp
12110    mv conftest.tmp conftest.in
12111    cp conftest.in conftest.nl
12112    echo >>conftest.nl
12113    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12114    cmp -s conftest.out conftest.nl || break
12115    # 10000 chars as input seems more than enough
12116    test $lt_ac_count -gt 10 && break
12117    lt_ac_count=`expr $lt_ac_count + 1`
12118    if test $lt_ac_count -gt $lt_ac_max; then
12119      lt_ac_max=$lt_ac_count
12120      lt_cv_path_SED=$lt_ac_sed
12121    fi
12122  done
12123done
12124
12125fi
12126
12127SED=$lt_cv_path_SED
12128{ echo "$as_me:$LINENO: result: $SED" >&5
12129echo "${ECHO_T}$SED" >&6; }
12130
12131
12132# Check whether --with-gnu-ld was given.
12133if test "${with_gnu_ld+set}" = set; then
12134  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12135else
12136  with_gnu_ld=no
12137fi
12138
12139ac_prog=ld
12140if test "$GCC" = yes; then
12141  # Check if gcc -print-prog-name=ld gives a path.
12142  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12143echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12144  case $host in
12145  *-*-mingw*)
12146    # gcc leaves a trailing carriage return which upsets mingw
12147    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12148  *)
12149    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12150  esac
12151  case $ac_prog in
12152    # Accept absolute paths.
12153    [\\/]* | ?:[\\/]*)
12154      re_direlt='/[^/][^/]*/\.\./'
12155      # Canonicalize the pathname of ld
12156      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12157      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12158	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12159      done
12160      test -z "$LD" && LD="$ac_prog"
12161      ;;
12162  "")
12163    # If it fails, then pretend we aren't using GCC.
12164    ac_prog=ld
12165    ;;
12166  *)
12167    # If it is relative, then search for the first ld in PATH.
12168    with_gnu_ld=unknown
12169    ;;
12170  esac
12171elif test "$with_gnu_ld" = yes; then
12172  { echo "$as_me:$LINENO: checking for GNU ld" >&5
12173echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12174else
12175  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12176echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12177fi
12178if test "${lt_cv_path_LD+set}" = set; then
12179  echo $ECHO_N "(cached) $ECHO_C" >&6
12180else
12181  if test -z "$LD"; then
12182  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12183  for ac_dir in $PATH; do
12184    IFS="$lt_save_ifs"
12185    test -z "$ac_dir" && ac_dir=.
12186    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12187      lt_cv_path_LD="$ac_dir/$ac_prog"
12188      # Check to see if the program is GNU ld.  I'd rather use --version,
12189      # but apparently some variants of GNU ld only accept -v.
12190      # Break only if it was the GNU/non-GNU ld that we prefer.
12191      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12192      *GNU* | *'with BFD'*)
12193	test "$with_gnu_ld" != no && break
12194	;;
12195      *)
12196	test "$with_gnu_ld" != yes && break
12197	;;
12198      esac
12199    fi
12200  done
12201  IFS="$lt_save_ifs"
12202else
12203  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12204fi
12205fi
12206
12207LD="$lt_cv_path_LD"
12208if test -n "$LD"; then
12209  { echo "$as_me:$LINENO: result: $LD" >&5
12210echo "${ECHO_T}$LD" >&6; }
12211else
12212  { echo "$as_me:$LINENO: result: no" >&5
12213echo "${ECHO_T}no" >&6; }
12214fi
12215test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12216echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12217   { (exit 1); exit 1; }; }
12218{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12219echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12220if test "${lt_cv_prog_gnu_ld+set}" = set; then
12221  echo $ECHO_N "(cached) $ECHO_C" >&6
12222else
12223  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12224case `$LD -v 2>&1 </dev/null` in
12225*GNU* | *'with BFD'*)
12226  lt_cv_prog_gnu_ld=yes
12227  ;;
12228*)
12229  lt_cv_prog_gnu_ld=no
12230  ;;
12231esac
12232fi
12233{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12234echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12235with_gnu_ld=$lt_cv_prog_gnu_ld
12236
12237
12238{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12239echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12240if test "${lt_cv_ld_reload_flag+set}" = set; then
12241  echo $ECHO_N "(cached) $ECHO_C" >&6
12242else
12243  lt_cv_ld_reload_flag='-r'
12244fi
12245{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12246echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12247reload_flag=$lt_cv_ld_reload_flag
12248case $reload_flag in
12249"" | " "*) ;;
12250*) reload_flag=" $reload_flag" ;;
12251esac
12252reload_cmds='$LD$reload_flag -o $output$reload_objs'
12253case $host_os in
12254  darwin*)
12255    if test "$GCC" = yes; then
12256      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12257    else
12258      reload_cmds='$LD$reload_flag -o $output$reload_objs'
12259    fi
12260    ;;
12261esac
12262
12263{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12264echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12265if test "${lt_cv_deplibs_check_method+set}" = set; then
12266  echo $ECHO_N "(cached) $ECHO_C" >&6
12267else
12268  lt_cv_file_magic_cmd='$MAGIC_CMD'
12269lt_cv_file_magic_test_file=
12270lt_cv_deplibs_check_method='unknown'
12271# Need to set the preceding variable on all platforms that support
12272# interlibrary dependencies.
12273# 'none' -- dependencies not supported.
12274# `unknown' -- same as none, but documents that we really don't know.
12275# 'pass_all' -- all dependencies passed with no checks.
12276# 'test_compile' -- check by making test program.
12277# 'file_magic [[regex]]' -- check by looking for files in library path
12278# which responds to the $file_magic_cmd with a given extended regex.
12279# If you have `file' or equivalent on your system and you're not sure
12280# whether `pass_all' will *always* work, you probably want this one.
12281
12282case $host_os in
12283aix4* | aix5*)
12284  lt_cv_deplibs_check_method=pass_all
12285  ;;
12286
12287beos*)
12288  lt_cv_deplibs_check_method=pass_all
12289  ;;
12290
12291bsdi[45]*)
12292  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12293  lt_cv_file_magic_cmd='/usr/bin/file -L'
12294  lt_cv_file_magic_test_file=/shlib/libc.so
12295  ;;
12296
12297cygwin*)
12298  # func_win32_libid is a shell function defined in ltmain.sh
12299  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12300  lt_cv_file_magic_cmd='func_win32_libid'
12301  ;;
12302
12303mingw* | pw32*)
12304  # Base MSYS/MinGW do not provide the 'file' command needed by
12305  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12306  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12307  lt_cv_file_magic_cmd='$OBJDUMP -f'
12308  ;;
12309
12310darwin* | rhapsody*)
12311  lt_cv_deplibs_check_method=pass_all
12312  ;;
12313
12314freebsd* | kfreebsd*-gnu | dragonfly*)
12315  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12316    case $host_cpu in
12317    i*86 )
12318      # Not sure whether the presence of OpenBSD here was a mistake.
12319      # Let's accept both of them until this is cleared up.
12320      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12321      lt_cv_file_magic_cmd=/usr/bin/file
12322      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12323      ;;
12324    esac
12325  else
12326    lt_cv_deplibs_check_method=pass_all
12327  fi
12328  ;;
12329
12330gnu*)
12331  lt_cv_deplibs_check_method=pass_all
12332  ;;
12333
12334hpux10.20* | hpux11*)
12335  lt_cv_file_magic_cmd=/usr/bin/file
12336  case $host_cpu in
12337  ia64*)
12338    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12339    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12340    ;;
12341  hppa*64*)
12342    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]'
12343    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12344    ;;
12345  *)
12346    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12347    lt_cv_file_magic_test_file=/usr/lib/libc.sl
12348    ;;
12349  esac
12350  ;;
12351
12352interix3*)
12353  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12354  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12355  ;;
12356
12357irix5* | irix6* | nonstopux*)
12358  case $LD in
12359  *-32|*"-32 ") libmagic=32-bit;;
12360  *-n32|*"-n32 ") libmagic=N32;;
12361  *-64|*"-64 ") libmagic=64-bit;;
12362  *) libmagic=never-match;;
12363  esac
12364  lt_cv_deplibs_check_method=pass_all
12365  ;;
12366
12367# This must be Linux ELF.
12368linux*)
12369  lt_cv_deplibs_check_method=pass_all
12370  ;;
12371
12372netbsd*)
12373  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12374    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12375  else
12376    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12377  fi
12378  ;;
12379
12380newos6*)
12381  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12382  lt_cv_file_magic_cmd=/usr/bin/file
12383  lt_cv_file_magic_test_file=/usr/lib/libnls.so
12384  ;;
12385
12386nto-qnx*)
12387  lt_cv_deplibs_check_method=unknown
12388  ;;
12389
12390openbsd*)
12391  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12392    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12393  else
12394    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12395  fi
12396  ;;
12397
12398osf3* | osf4* | osf5*)
12399  lt_cv_deplibs_check_method=pass_all
12400  ;;
12401
12402solaris*)
12403  lt_cv_deplibs_check_method=pass_all
12404  ;;
12405
12406sysv4 | sysv4.3*)
12407  case $host_vendor in
12408  motorola)
12409    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]'
12410    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12411    ;;
12412  ncr)
12413    lt_cv_deplibs_check_method=pass_all
12414    ;;
12415  sequent)
12416    lt_cv_file_magic_cmd='/bin/file'
12417    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12418    ;;
12419  sni)
12420    lt_cv_file_magic_cmd='/bin/file'
12421    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12422    lt_cv_file_magic_test_file=/lib/libc.so
12423    ;;
12424  siemens)
12425    lt_cv_deplibs_check_method=pass_all
12426    ;;
12427  pc)
12428    lt_cv_deplibs_check_method=pass_all
12429    ;;
12430  esac
12431  ;;
12432
12433sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12434  lt_cv_deplibs_check_method=pass_all
12435  ;;
12436esac
12437
12438fi
12439{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12440echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12441file_magic_cmd=$lt_cv_file_magic_cmd
12442deplibs_check_method=$lt_cv_deplibs_check_method
12443test -z "$deplibs_check_method" && deplibs_check_method=unknown
12444
12445
12446
12447# If no C compiler was specified, use CC.
12448LTCC=${LTCC-"$CC"}
12449
12450# If no C compiler flags were specified, use CFLAGS.
12451LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12452
12453# Allow CC to be a program name with arguments.
12454compiler=$CC
12455
12456# Check whether --enable-libtool-lock was given.
12457if test "${enable_libtool_lock+set}" = set; then
12458  enableval=$enable_libtool_lock;
12459fi
12460
12461test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12462
12463# Some flags need to be propagated to the compiler or linker for good
12464# libtool support.
12465case $host in
12466ia64-*-hpux*)
12467  # Find out which ABI we are using.
12468  echo 'int i;' > conftest.$ac_ext
12469  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12470  (eval $ac_compile) 2>&5
12471  ac_status=$?
12472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473  (exit $ac_status); }; then
12474    case `/usr/bin/file conftest.$ac_objext` in
12475    *ELF-32*)
12476      HPUX_IA64_MODE="32"
12477      ;;
12478    *ELF-64*)
12479      HPUX_IA64_MODE="64"
12480      ;;
12481    esac
12482  fi
12483  rm -rf conftest*
12484  ;;
12485*-*-irix6*)
12486  # Find out which ABI we are using.
12487  echo '#line 12487 "configure"' > conftest.$ac_ext
12488  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12489  (eval $ac_compile) 2>&5
12490  ac_status=$?
12491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492  (exit $ac_status); }; then
12493   if test "$lt_cv_prog_gnu_ld" = yes; then
12494    case `/usr/bin/file conftest.$ac_objext` in
12495    *32-bit*)
12496      LD="${LD-ld} -melf32bsmip"
12497      ;;
12498    *N32*)
12499      LD="${LD-ld} -melf32bmipn32"
12500      ;;
12501    *64-bit*)
12502      LD="${LD-ld} -melf64bmip"
12503      ;;
12504    esac
12505   else
12506    case `/usr/bin/file conftest.$ac_objext` in
12507    *32-bit*)
12508      LD="${LD-ld} -32"
12509      ;;
12510    *N32*)
12511      LD="${LD-ld} -n32"
12512      ;;
12513    *64-bit*)
12514      LD="${LD-ld} -64"
12515      ;;
12516    esac
12517   fi
12518  fi
12519  rm -rf conftest*
12520  ;;
12521
12522x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12523  # Find out which ABI we are using.
12524  echo 'int i;' > conftest.$ac_ext
12525  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12526  (eval $ac_compile) 2>&5
12527  ac_status=$?
12528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529  (exit $ac_status); }; then
12530    case `/usr/bin/file conftest.o` in
12531    *32-bit*)
12532      case $host in
12533        x86_64-*linux*)
12534          LD="${LD-ld} -m elf_i386"
12535          ;;
12536        ppc64-*linux*|powerpc64-*linux*)
12537          LD="${LD-ld} -m elf32ppclinux"
12538          ;;
12539        s390x-*linux*)
12540          LD="${LD-ld} -m elf_s390"
12541          ;;
12542        sparc64-*linux*)
12543          LD="${LD-ld} -m elf32_sparc"
12544          ;;
12545      esac
12546      ;;
12547    *64-bit*)
12548      case $host in
12549        x86_64-*linux*)
12550          LD="${LD-ld} -m elf_x86_64"
12551          ;;
12552        ppc*-*linux*|powerpc*-*linux*)
12553          LD="${LD-ld} -m elf64ppc"
12554          ;;
12555        s390*-*linux*)
12556          LD="${LD-ld} -m elf64_s390"
12557          ;;
12558        sparc*-*linux*)
12559          LD="${LD-ld} -m elf64_sparc"
12560          ;;
12561      esac
12562      ;;
12563    esac
12564  fi
12565  rm -rf conftest*
12566  ;;
12567
12568*-*-sco3.2v5*)
12569  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12570  SAVE_CFLAGS="$CFLAGS"
12571  CFLAGS="$CFLAGS -belf"
12572  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12573echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12574if test "${lt_cv_cc_needs_belf+set}" = set; then
12575  echo $ECHO_N "(cached) $ECHO_C" >&6
12576else
12577  ac_ext=c
12578ac_cpp='$CPP $CPPFLAGS'
12579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12581ac_compiler_gnu=$ac_cv_c_compiler_gnu
12582
12583     cat >conftest.$ac_ext <<_ACEOF
12584/* confdefs.h.  */
12585_ACEOF
12586cat confdefs.h >>conftest.$ac_ext
12587cat >>conftest.$ac_ext <<_ACEOF
12588/* end confdefs.h.  */
12589
12590int
12591main ()
12592{
12593
12594  ;
12595  return 0;
12596}
12597_ACEOF
12598rm -f conftest.$ac_objext conftest$ac_exeext
12599if { (ac_try="$ac_link"
12600case "(($ac_try" in
12601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602  *) ac_try_echo=$ac_try;;
12603esac
12604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12605  (eval "$ac_link") 2>conftest.er1
12606  ac_status=$?
12607  grep -v '^ *+' conftest.er1 >conftest.err
12608  rm -f conftest.er1
12609  cat conftest.err >&5
12610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611  (exit $ac_status); } &&
12612	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12613  { (case "(($ac_try" in
12614  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12615  *) ac_try_echo=$ac_try;;
12616esac
12617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12618  (eval "$ac_try") 2>&5
12619  ac_status=$?
12620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621  (exit $ac_status); }; } &&
12622	 { ac_try='test -s conftest$ac_exeext'
12623  { (case "(($ac_try" in
12624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12625  *) ac_try_echo=$ac_try;;
12626esac
12627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12628  (eval "$ac_try") 2>&5
12629  ac_status=$?
12630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631  (exit $ac_status); }; }; then
12632  lt_cv_cc_needs_belf=yes
12633else
12634  echo "$as_me: failed program was:" >&5
12635sed 's/^/| /' conftest.$ac_ext >&5
12636
12637	lt_cv_cc_needs_belf=no
12638fi
12639
12640rm -f core conftest.err conftest.$ac_objext \
12641      conftest$ac_exeext conftest.$ac_ext
12642     ac_ext=c
12643ac_cpp='$CPP $CPPFLAGS'
12644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12646ac_compiler_gnu=$ac_cv_c_compiler_gnu
12647
12648fi
12649{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12650echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12651  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12652    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12653    CFLAGS="$SAVE_CFLAGS"
12654  fi
12655  ;;
12656sparc*-*solaris*)
12657  # Find out which ABI we are using.
12658  echo 'int i;' > conftest.$ac_ext
12659  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12660  (eval $ac_compile) 2>&5
12661  ac_status=$?
12662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663  (exit $ac_status); }; then
12664    case `/usr/bin/file conftest.o` in
12665    *64-bit*)
12666      case $lt_cv_prog_gnu_ld in
12667      yes*) LD="${LD-ld} -m elf64_sparc" ;;
12668      *)    LD="${LD-ld} -64" ;;
12669      esac
12670      ;;
12671    esac
12672  fi
12673  rm -rf conftest*
12674  ;;
12675
12676
12677esac
12678
12679need_locks="$enable_libtool_lock"
12680
12681
12682
12683
12684if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12685    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12686    (test "X$CXX" != "Xg++"))) ; then
12687  ac_ext=cpp
12688ac_cpp='$CXXCPP $CPPFLAGS'
12689ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12690ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12691ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12692{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12693echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12694if test -z "$CXXCPP"; then
12695  if test "${ac_cv_prog_CXXCPP+set}" = set; then
12696  echo $ECHO_N "(cached) $ECHO_C" >&6
12697else
12698      # Double quotes because CXXCPP needs to be expanded
12699    for CXXCPP in "$CXX -E" "/lib/cpp"
12700    do
12701      ac_preproc_ok=false
12702for ac_cxx_preproc_warn_flag in '' yes
12703do
12704  # Use a header file that comes with gcc, so configuring glibc
12705  # with a fresh cross-compiler works.
12706  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12707  # <limits.h> exists even on freestanding compilers.
12708  # On the NeXT, cc -E runs the code through the compiler's parser,
12709  # not just through cpp. "Syntax error" is here to catch this case.
12710  cat >conftest.$ac_ext <<_ACEOF
12711/* confdefs.h.  */
12712_ACEOF
12713cat confdefs.h >>conftest.$ac_ext
12714cat >>conftest.$ac_ext <<_ACEOF
12715/* end confdefs.h.  */
12716#ifdef __STDC__
12717# include <limits.h>
12718#else
12719# include <assert.h>
12720#endif
12721		     Syntax error
12722_ACEOF
12723if { (ac_try="$ac_cpp conftest.$ac_ext"
12724case "(($ac_try" in
12725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12726  *) ac_try_echo=$ac_try;;
12727esac
12728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12729  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12730  ac_status=$?
12731  grep -v '^ *+' conftest.er1 >conftest.err
12732  rm -f conftest.er1
12733  cat conftest.err >&5
12734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735  (exit $ac_status); } >/dev/null; then
12736  if test -s conftest.err; then
12737    ac_cpp_err=$ac_cxx_preproc_warn_flag
12738    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12739  else
12740    ac_cpp_err=
12741  fi
12742else
12743  ac_cpp_err=yes
12744fi
12745if test -z "$ac_cpp_err"; then
12746  :
12747else
12748  echo "$as_me: failed program was:" >&5
12749sed 's/^/| /' conftest.$ac_ext >&5
12750
12751  # Broken: fails on valid input.
12752continue
12753fi
12754
12755rm -f conftest.err conftest.$ac_ext
12756
12757  # OK, works on sane cases.  Now check whether nonexistent headers
12758  # can be detected and how.
12759  cat >conftest.$ac_ext <<_ACEOF
12760/* confdefs.h.  */
12761_ACEOF
12762cat confdefs.h >>conftest.$ac_ext
12763cat >>conftest.$ac_ext <<_ACEOF
12764/* end confdefs.h.  */
12765#include <ac_nonexistent.h>
12766_ACEOF
12767if { (ac_try="$ac_cpp conftest.$ac_ext"
12768case "(($ac_try" in
12769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12770  *) ac_try_echo=$ac_try;;
12771esac
12772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12773  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12774  ac_status=$?
12775  grep -v '^ *+' conftest.er1 >conftest.err
12776  rm -f conftest.er1
12777  cat conftest.err >&5
12778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779  (exit $ac_status); } >/dev/null; then
12780  if test -s conftest.err; then
12781    ac_cpp_err=$ac_cxx_preproc_warn_flag
12782    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12783  else
12784    ac_cpp_err=
12785  fi
12786else
12787  ac_cpp_err=yes
12788fi
12789if test -z "$ac_cpp_err"; then
12790  # Broken: success on invalid input.
12791continue
12792else
12793  echo "$as_me: failed program was:" >&5
12794sed 's/^/| /' conftest.$ac_ext >&5
12795
12796  # Passes both tests.
12797ac_preproc_ok=:
12798break
12799fi
12800
12801rm -f conftest.err conftest.$ac_ext
12802
12803done
12804# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12805rm -f conftest.err conftest.$ac_ext
12806if $ac_preproc_ok; then
12807  break
12808fi
12809
12810    done
12811    ac_cv_prog_CXXCPP=$CXXCPP
12812
12813fi
12814  CXXCPP=$ac_cv_prog_CXXCPP
12815else
12816  ac_cv_prog_CXXCPP=$CXXCPP
12817fi
12818{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
12819echo "${ECHO_T}$CXXCPP" >&6; }
12820ac_preproc_ok=false
12821for ac_cxx_preproc_warn_flag in '' yes
12822do
12823  # Use a header file that comes with gcc, so configuring glibc
12824  # with a fresh cross-compiler works.
12825  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12826  # <limits.h> exists even on freestanding compilers.
12827  # On the NeXT, cc -E runs the code through the compiler's parser,
12828  # not just through cpp. "Syntax error" is here to catch this case.
12829  cat >conftest.$ac_ext <<_ACEOF
12830/* confdefs.h.  */
12831_ACEOF
12832cat confdefs.h >>conftest.$ac_ext
12833cat >>conftest.$ac_ext <<_ACEOF
12834/* end confdefs.h.  */
12835#ifdef __STDC__
12836# include <limits.h>
12837#else
12838# include <assert.h>
12839#endif
12840		     Syntax error
12841_ACEOF
12842if { (ac_try="$ac_cpp conftest.$ac_ext"
12843case "(($ac_try" in
12844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12845  *) ac_try_echo=$ac_try;;
12846esac
12847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12848  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12849  ac_status=$?
12850  grep -v '^ *+' conftest.er1 >conftest.err
12851  rm -f conftest.er1
12852  cat conftest.err >&5
12853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854  (exit $ac_status); } >/dev/null; then
12855  if test -s conftest.err; then
12856    ac_cpp_err=$ac_cxx_preproc_warn_flag
12857    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12858  else
12859    ac_cpp_err=
12860  fi
12861else
12862  ac_cpp_err=yes
12863fi
12864if test -z "$ac_cpp_err"; then
12865  :
12866else
12867  echo "$as_me: failed program was:" >&5
12868sed 's/^/| /' conftest.$ac_ext >&5
12869
12870  # Broken: fails on valid input.
12871continue
12872fi
12873
12874rm -f conftest.err conftest.$ac_ext
12875
12876  # OK, works on sane cases.  Now check whether nonexistent headers
12877  # can be detected and how.
12878  cat >conftest.$ac_ext <<_ACEOF
12879/* confdefs.h.  */
12880_ACEOF
12881cat confdefs.h >>conftest.$ac_ext
12882cat >>conftest.$ac_ext <<_ACEOF
12883/* end confdefs.h.  */
12884#include <ac_nonexistent.h>
12885_ACEOF
12886if { (ac_try="$ac_cpp conftest.$ac_ext"
12887case "(($ac_try" in
12888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12889  *) ac_try_echo=$ac_try;;
12890esac
12891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12892  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12893  ac_status=$?
12894  grep -v '^ *+' conftest.er1 >conftest.err
12895  rm -f conftest.er1
12896  cat conftest.err >&5
12897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898  (exit $ac_status); } >/dev/null; then
12899  if test -s conftest.err; then
12900    ac_cpp_err=$ac_cxx_preproc_warn_flag
12901    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12902  else
12903    ac_cpp_err=
12904  fi
12905else
12906  ac_cpp_err=yes
12907fi
12908if test -z "$ac_cpp_err"; then
12909  # Broken: success on invalid input.
12910continue
12911else
12912  echo "$as_me: failed program was:" >&5
12913sed 's/^/| /' conftest.$ac_ext >&5
12914
12915  # Passes both tests.
12916ac_preproc_ok=:
12917break
12918fi
12919
12920rm -f conftest.err conftest.$ac_ext
12921
12922done
12923# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12924rm -f conftest.err conftest.$ac_ext
12925if $ac_preproc_ok; then
12926  :
12927else
12928  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12929See \`config.log' for more details." >&5
12930echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12931See \`config.log' for more details." >&2;}
12932   { (exit 1); exit 1; }; }
12933fi
12934
12935ac_ext=cpp
12936ac_cpp='$CXXCPP $CPPFLAGS'
12937ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12938ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12939ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12940
12941fi
12942
12943
12944ac_ext=f
12945ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12946ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12947ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12948if test -n "$ac_tool_prefix"; then
12949  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
12950  do
12951    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12952set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12953{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12955if test "${ac_cv_prog_F77+set}" = set; then
12956  echo $ECHO_N "(cached) $ECHO_C" >&6
12957else
12958  if test -n "$F77"; then
12959  ac_cv_prog_F77="$F77" # Let the user override the test.
12960else
12961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12962for as_dir in $PATH
12963do
12964  IFS=$as_save_IFS
12965  test -z "$as_dir" && as_dir=.
12966  for ac_exec_ext in '' $ac_executable_extensions; do
12967  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12968    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12969    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12970    break 2
12971  fi
12972done
12973done
12974IFS=$as_save_IFS
12975
12976fi
12977fi
12978F77=$ac_cv_prog_F77
12979if test -n "$F77"; then
12980  { echo "$as_me:$LINENO: result: $F77" >&5
12981echo "${ECHO_T}$F77" >&6; }
12982else
12983  { echo "$as_me:$LINENO: result: no" >&5
12984echo "${ECHO_T}no" >&6; }
12985fi
12986
12987
12988    test -n "$F77" && break
12989  done
12990fi
12991if test -z "$F77"; then
12992  ac_ct_F77=$F77
12993  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
12994do
12995  # Extract the first word of "$ac_prog", so it can be a program name with args.
12996set dummy $ac_prog; ac_word=$2
12997{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12999if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13000  echo $ECHO_N "(cached) $ECHO_C" >&6
13001else
13002  if test -n "$ac_ct_F77"; then
13003  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13004else
13005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13006for as_dir in $PATH
13007do
13008  IFS=$as_save_IFS
13009  test -z "$as_dir" && as_dir=.
13010  for ac_exec_ext in '' $ac_executable_extensions; do
13011  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13012    ac_cv_prog_ac_ct_F77="$ac_prog"
13013    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13014    break 2
13015  fi
13016done
13017done
13018IFS=$as_save_IFS
13019
13020fi
13021fi
13022ac_ct_F77=$ac_cv_prog_ac_ct_F77
13023if test -n "$ac_ct_F77"; then
13024  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13025echo "${ECHO_T}$ac_ct_F77" >&6; }
13026else
13027  { echo "$as_me:$LINENO: result: no" >&5
13028echo "${ECHO_T}no" >&6; }
13029fi
13030
13031
13032  test -n "$ac_ct_F77" && break
13033done
13034
13035  if test "x$ac_ct_F77" = x; then
13036    F77=""
13037  else
13038    case $cross_compiling:$ac_tool_warned in
13039yes:)
13040{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13041whose name does not start with the host triplet.  If you think this
13042configuration is useful to you, please write to autoconf@gnu.org." >&5
13043echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13044whose name does not start with the host triplet.  If you think this
13045configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13046ac_tool_warned=yes ;;
13047esac
13048    F77=$ac_ct_F77
13049  fi
13050fi
13051
13052
13053# Provide some information about the compiler.
13054echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13055ac_compiler=`set X $ac_compile; echo $2`
13056{ (ac_try="$ac_compiler --version >&5"
13057case "(($ac_try" in
13058  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13059  *) ac_try_echo=$ac_try;;
13060esac
13061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13062  (eval "$ac_compiler --version >&5") 2>&5
13063  ac_status=$?
13064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065  (exit $ac_status); }
13066{ (ac_try="$ac_compiler -v >&5"
13067case "(($ac_try" in
13068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13069  *) ac_try_echo=$ac_try;;
13070esac
13071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13072  (eval "$ac_compiler -v >&5") 2>&5
13073  ac_status=$?
13074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075  (exit $ac_status); }
13076{ (ac_try="$ac_compiler -V >&5"
13077case "(($ac_try" in
13078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13079  *) ac_try_echo=$ac_try;;
13080esac
13081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13082  (eval "$ac_compiler -V >&5") 2>&5
13083  ac_status=$?
13084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085  (exit $ac_status); }
13086rm -f a.out
13087
13088# If we don't use `.F' as extension, the preprocessor is not run on the
13089# input file.  (Note that this only needs to work for GNU compilers.)
13090ac_save_ext=$ac_ext
13091ac_ext=F
13092{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13093echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13094if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13095  echo $ECHO_N "(cached) $ECHO_C" >&6
13096else
13097  cat >conftest.$ac_ext <<_ACEOF
13098      program main
13099#ifndef __GNUC__
13100       choke me
13101#endif
13102
13103      end
13104_ACEOF
13105rm -f conftest.$ac_objext
13106if { (ac_try="$ac_compile"
13107case "(($ac_try" in
13108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13109  *) ac_try_echo=$ac_try;;
13110esac
13111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13112  (eval "$ac_compile") 2>conftest.er1
13113  ac_status=$?
13114  grep -v '^ *+' conftest.er1 >conftest.err
13115  rm -f conftest.er1
13116  cat conftest.err >&5
13117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118  (exit $ac_status); } &&
13119	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13120  { (case "(($ac_try" in
13121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13122  *) ac_try_echo=$ac_try;;
13123esac
13124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13125  (eval "$ac_try") 2>&5
13126  ac_status=$?
13127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128  (exit $ac_status); }; } &&
13129	 { ac_try='test -s conftest.$ac_objext'
13130  { (case "(($ac_try" in
13131  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13132  *) ac_try_echo=$ac_try;;
13133esac
13134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13135  (eval "$ac_try") 2>&5
13136  ac_status=$?
13137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138  (exit $ac_status); }; }; then
13139  ac_compiler_gnu=yes
13140else
13141  echo "$as_me: failed program was:" >&5
13142sed 's/^/| /' conftest.$ac_ext >&5
13143
13144	ac_compiler_gnu=no
13145fi
13146
13147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13148ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13149
13150fi
13151{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13152echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13153ac_ext=$ac_save_ext
13154ac_test_FFLAGS=${FFLAGS+set}
13155ac_save_FFLAGS=$FFLAGS
13156FFLAGS=
13157{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13158echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13159if test "${ac_cv_prog_f77_g+set}" = set; then
13160  echo $ECHO_N "(cached) $ECHO_C" >&6
13161else
13162  FFLAGS=-g
13163cat >conftest.$ac_ext <<_ACEOF
13164      program main
13165
13166      end
13167_ACEOF
13168rm -f conftest.$ac_objext
13169if { (ac_try="$ac_compile"
13170case "(($ac_try" in
13171  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13172  *) ac_try_echo=$ac_try;;
13173esac
13174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13175  (eval "$ac_compile") 2>conftest.er1
13176  ac_status=$?
13177  grep -v '^ *+' conftest.er1 >conftest.err
13178  rm -f conftest.er1
13179  cat conftest.err >&5
13180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181  (exit $ac_status); } &&
13182	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13183  { (case "(($ac_try" in
13184  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13185  *) ac_try_echo=$ac_try;;
13186esac
13187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13188  (eval "$ac_try") 2>&5
13189  ac_status=$?
13190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191  (exit $ac_status); }; } &&
13192	 { ac_try='test -s conftest.$ac_objext'
13193  { (case "(($ac_try" in
13194  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13195  *) ac_try_echo=$ac_try;;
13196esac
13197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13198  (eval "$ac_try") 2>&5
13199  ac_status=$?
13200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201  (exit $ac_status); }; }; then
13202  ac_cv_prog_f77_g=yes
13203else
13204  echo "$as_me: failed program was:" >&5
13205sed 's/^/| /' conftest.$ac_ext >&5
13206
13207	ac_cv_prog_f77_g=no
13208fi
13209
13210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13211
13212fi
13213{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13214echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13215if test "$ac_test_FFLAGS" = set; then
13216  FFLAGS=$ac_save_FFLAGS
13217elif test $ac_cv_prog_f77_g = yes; then
13218  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13219    FFLAGS="-g -O2"
13220  else
13221    FFLAGS="-g"
13222  fi
13223else
13224  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13225    FFLAGS="-O2"
13226  else
13227    FFLAGS=
13228  fi
13229fi
13230
13231G77=`test $ac_compiler_gnu = yes && echo yes`
13232ac_ext=c
13233ac_cpp='$CPP $CPPFLAGS'
13234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13236ac_compiler_gnu=$ac_cv_c_compiler_gnu
13237
13238
13239
13240# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13241
13242# find the maximum length of command line arguments
13243{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13244echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13245if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13246  echo $ECHO_N "(cached) $ECHO_C" >&6
13247else
13248    i=0
13249  teststring="ABCD"
13250
13251  case $build_os in
13252  msdosdjgpp*)
13253    # On DJGPP, this test can blow up pretty badly due to problems in libc
13254    # (any single argument exceeding 2000 bytes causes a buffer overrun
13255    # during glob expansion).  Even if it were fixed, the result of this
13256    # check would be larger than it should be.
13257    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13258    ;;
13259
13260  gnu*)
13261    # Under GNU Hurd, this test is not required because there is
13262    # no limit to the length of command line arguments.
13263    # Libtool will interpret -1 as no limit whatsoever
13264    lt_cv_sys_max_cmd_len=-1;
13265    ;;
13266
13267  cygwin* | mingw*)
13268    # On Win9x/ME, this test blows up -- it succeeds, but takes
13269    # about 5 minutes as the teststring grows exponentially.
13270    # Worse, since 9x/ME are not pre-emptively multitasking,
13271    # you end up with a "frozen" computer, even though with patience
13272    # the test eventually succeeds (with a max line length of 256k).
13273    # Instead, let's just punt: use the minimum linelength reported by
13274    # all of the supported platforms: 8192 (on NT/2K/XP).
13275    lt_cv_sys_max_cmd_len=8192;
13276    ;;
13277
13278  amigaos*)
13279    # On AmigaOS with pdksh, this test takes hours, literally.
13280    # So we just punt and use a minimum line length of 8192.
13281    lt_cv_sys_max_cmd_len=8192;
13282    ;;
13283
13284  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13285    # This has been around since 386BSD, at least.  Likely further.
13286    if test -x /sbin/sysctl; then
13287      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13288    elif test -x /usr/sbin/sysctl; then
13289      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13290    else
13291      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
13292    fi
13293    # And add a safety zone
13294    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13295    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13296    ;;
13297
13298  interix*)
13299    # We know the value 262144 and hardcode it with a safety zone (like BSD)
13300    lt_cv_sys_max_cmd_len=196608
13301    ;;
13302
13303  osf*)
13304    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13305    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13306    # nice to cause kernel panics so lets avoid the loop below.
13307    # First set a reasonable default.
13308    lt_cv_sys_max_cmd_len=16384
13309    #
13310    if test -x /sbin/sysconfig; then
13311      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13312        *1*) lt_cv_sys_max_cmd_len=-1 ;;
13313      esac
13314    fi
13315    ;;
13316  sco3.2v5*)
13317    lt_cv_sys_max_cmd_len=102400
13318    ;;
13319  sysv5* | sco5v6* | sysv4.2uw2*)
13320    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13321    if test -n "$kargmax"; then
13322      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
13323    else
13324      lt_cv_sys_max_cmd_len=32768
13325    fi
13326    ;;
13327  *)
13328    # If test is not a shell built-in, we'll probably end up computing a
13329    # maximum length that is only half of the actual maximum length, but
13330    # we can't tell.
13331    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13332    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13333	       = "XX$teststring") >/dev/null 2>&1 &&
13334	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
13335	    lt_cv_sys_max_cmd_len=$new_result &&
13336	    test $i != 17 # 1/2 MB should be enough
13337    do
13338      i=`expr $i + 1`
13339      teststring=$teststring$teststring
13340    done
13341    teststring=
13342    # Add a significant safety factor because C++ compilers can tack on massive
13343    # amounts of additional arguments before passing them to the linker.
13344    # It appears as though 1/2 is a usable value.
13345    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13346    ;;
13347  esac
13348
13349fi
13350
13351if test -n $lt_cv_sys_max_cmd_len ; then
13352  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13353echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13354else
13355  { echo "$as_me:$LINENO: result: none" >&5
13356echo "${ECHO_T}none" >&6; }
13357fi
13358
13359
13360
13361
13362# Check for command to grab the raw symbol name followed by C symbol from nm.
13363{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13364echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13365if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13366  echo $ECHO_N "(cached) $ECHO_C" >&6
13367else
13368
13369# These are sane defaults that work on at least a few old systems.
13370# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13371
13372# Character class describing NM global symbol codes.
13373symcode='[BCDEGRST]'
13374
13375# Regexp to match symbols that can be accessed directly from C.
13376sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13377
13378# Transform an extracted symbol line into a proper C declaration
13379lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13380
13381# Transform an extracted symbol line into symbol name and symbol address
13382lt_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'"
13383
13384# Define system-specific variables.
13385case $host_os in
13386aix*)
13387  symcode='[BCDT]'
13388  ;;
13389cygwin* | mingw* | pw32*)
13390  symcode='[ABCDGISTW]'
13391  ;;
13392hpux*) # Its linker distinguishes data from code symbols
13393  if test "$host_cpu" = ia64; then
13394    symcode='[ABCDEGRST]'
13395  fi
13396  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13397  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'"
13398  ;;
13399linux*)
13400  if test "$host_cpu" = ia64; then
13401    symcode='[ABCDGIRSTW]'
13402    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13403    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'"
13404  fi
13405  ;;
13406irix* | nonstopux*)
13407  symcode='[BCDEGRST]'
13408  ;;
13409osf*)
13410  symcode='[BCDEGQRST]'
13411  ;;
13412solaris*)
13413  symcode='[BDRT]'
13414  ;;
13415sco3.2v5*)
13416  symcode='[DT]'
13417  ;;
13418sysv4.2uw2*)
13419  symcode='[DT]'
13420  ;;
13421sysv5* | sco5v6* | unixware* | OpenUNIX*)
13422  symcode='[ABDT]'
13423  ;;
13424sysv4)
13425  symcode='[DFNSTU]'
13426  ;;
13427esac
13428
13429# Handle CRLF in mingw tool chain
13430opt_cr=
13431case $build_os in
13432mingw*)
13433  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13434  ;;
13435esac
13436
13437# If we're using GNU nm, then use its standard symbol codes.
13438case `$NM -V 2>&1` in
13439*GNU* | *'with BFD'*)
13440  symcode='[ABCDGIRSTW]' ;;
13441esac
13442
13443# Try without a prefix undercore, then with it.
13444for ac_symprfx in "" "_"; do
13445
13446  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13447  symxfrm="\\1 $ac_symprfx\\2 \\2"
13448
13449  # Write the raw and C identifiers.
13450  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13451
13452  # Check to see that the pipe works correctly.
13453  pipe_works=no
13454
13455  rm -f conftest*
13456  cat > conftest.$ac_ext <<EOF
13457#ifdef __cplusplus
13458extern "C" {
13459#endif
13460char nm_test_var;
13461void nm_test_func(){}
13462#ifdef __cplusplus
13463}
13464#endif
13465int main(){nm_test_var='a';nm_test_func();return(0);}
13466EOF
13467
13468  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13469  (eval $ac_compile) 2>&5
13470  ac_status=$?
13471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472  (exit $ac_status); }; then
13473    # Now try to grab the symbols.
13474    nlist=conftest.nm
13475    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13476  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13477  ac_status=$?
13478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479  (exit $ac_status); } && test -s "$nlist"; then
13480      # Try sorting and uniquifying the output.
13481      if sort "$nlist" | uniq > "$nlist"T; then
13482	mv -f "$nlist"T "$nlist"
13483      else
13484	rm -f "$nlist"T
13485      fi
13486
13487      # Make sure that we snagged all the symbols we need.
13488      if grep ' nm_test_var$' "$nlist" >/dev/null; then
13489	if grep ' nm_test_func$' "$nlist" >/dev/null; then
13490	  cat <<EOF > conftest.$ac_ext
13491#ifdef __cplusplus
13492extern "C" {
13493#endif
13494
13495EOF
13496	  # Now generate the symbol file.
13497	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13498
13499	  cat <<EOF >> conftest.$ac_ext
13500#if defined (__STDC__) && __STDC__
13501# define lt_ptr_t void *
13502#else
13503# define lt_ptr_t char *
13504# define const
13505#endif
13506
13507/* The mapping between symbol names and symbols. */
13508const struct {
13509  const char *name;
13510  lt_ptr_t address;
13511}
13512lt_preloaded_symbols[] =
13513{
13514EOF
13515	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13516	  cat <<\EOF >> conftest.$ac_ext
13517  {0, (lt_ptr_t) 0}
13518};
13519
13520#ifdef __cplusplus
13521}
13522#endif
13523EOF
13524	  # Now try linking the two files.
13525	  mv conftest.$ac_objext conftstm.$ac_objext
13526	  lt_save_LIBS="$LIBS"
13527	  lt_save_CFLAGS="$CFLAGS"
13528	  LIBS="conftstm.$ac_objext"
13529	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13530	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13531  (eval $ac_link) 2>&5
13532  ac_status=$?
13533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534  (exit $ac_status); } && test -s conftest${ac_exeext}; then
13535	    pipe_works=yes
13536	  fi
13537	  LIBS="$lt_save_LIBS"
13538	  CFLAGS="$lt_save_CFLAGS"
13539	else
13540	  echo "cannot find nm_test_func in $nlist" >&5
13541	fi
13542      else
13543	echo "cannot find nm_test_var in $nlist" >&5
13544      fi
13545    else
13546      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13547    fi
13548  else
13549    echo "$progname: failed program was:" >&5
13550    cat conftest.$ac_ext >&5
13551  fi
13552  rm -f conftest* conftst*
13553
13554  # Do not use the global_symbol_pipe unless it works.
13555  if test "$pipe_works" = yes; then
13556    break
13557  else
13558    lt_cv_sys_global_symbol_pipe=
13559  fi
13560done
13561
13562fi
13563
13564if test -z "$lt_cv_sys_global_symbol_pipe"; then
13565  lt_cv_sys_global_symbol_to_cdecl=
13566fi
13567if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13568  { echo "$as_me:$LINENO: result: failed" >&5
13569echo "${ECHO_T}failed" >&6; }
13570else
13571  { echo "$as_me:$LINENO: result: ok" >&5
13572echo "${ECHO_T}ok" >&6; }
13573fi
13574
13575{ echo "$as_me:$LINENO: checking for objdir" >&5
13576echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13577if test "${lt_cv_objdir+set}" = set; then
13578  echo $ECHO_N "(cached) $ECHO_C" >&6
13579else
13580  rm -f .libs 2>/dev/null
13581mkdir .libs 2>/dev/null
13582if test -d .libs; then
13583  lt_cv_objdir=.libs
13584else
13585  # MS-DOS does not allow filenames that begin with a dot.
13586  lt_cv_objdir=_libs
13587fi
13588rmdir .libs 2>/dev/null
13589fi
13590{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13591echo "${ECHO_T}$lt_cv_objdir" >&6; }
13592objdir=$lt_cv_objdir
13593
13594
13595
13596
13597
13598case $host_os in
13599aix3*)
13600  # AIX sometimes has problems with the GCC collect2 program.  For some
13601  # reason, if we set the COLLECT_NAMES environment variable, the problems
13602  # vanish in a puff of smoke.
13603  if test "X${COLLECT_NAMES+set}" != Xset; then
13604    COLLECT_NAMES=
13605    export COLLECT_NAMES
13606  fi
13607  ;;
13608esac
13609
13610# Sed substitution that helps us do robust quoting.  It backslashifies
13611# metacharacters that are still active within double-quoted strings.
13612Xsed='sed -e 1s/^X//'
13613sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13614
13615# Same as above, but do not quote variable references.
13616double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13617
13618# Sed substitution to delay expansion of an escaped shell variable in a
13619# double_quote_subst'ed string.
13620delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13621
13622# Sed substitution to avoid accidental globbing in evaled expressions
13623no_glob_subst='s/\*/\\\*/g'
13624
13625# Constants:
13626rm="rm -f"
13627
13628# Global variables:
13629default_ofile=mklib
13630can_build_shared=yes
13631
13632# All known linkers require a `.a' archive for static linking (except MSVC,
13633# which needs '.lib').
13634libext=a
13635ltmain="$ac_aux_dir/ltmain.sh"
13636ofile="$default_ofile"
13637with_gnu_ld="$lt_cv_prog_gnu_ld"
13638
13639if test -n "$ac_tool_prefix"; then
13640  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13641set dummy ${ac_tool_prefix}ar; ac_word=$2
13642{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13644if test "${ac_cv_prog_AR+set}" = set; then
13645  echo $ECHO_N "(cached) $ECHO_C" >&6
13646else
13647  if test -n "$AR"; then
13648  ac_cv_prog_AR="$AR" # Let the user override the test.
13649else
13650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13651for as_dir in $PATH
13652do
13653  IFS=$as_save_IFS
13654  test -z "$as_dir" && as_dir=.
13655  for ac_exec_ext in '' $ac_executable_extensions; do
13656  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13657    ac_cv_prog_AR="${ac_tool_prefix}ar"
13658    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13659    break 2
13660  fi
13661done
13662done
13663IFS=$as_save_IFS
13664
13665fi
13666fi
13667AR=$ac_cv_prog_AR
13668if test -n "$AR"; then
13669  { echo "$as_me:$LINENO: result: $AR" >&5
13670echo "${ECHO_T}$AR" >&6; }
13671else
13672  { echo "$as_me:$LINENO: result: no" >&5
13673echo "${ECHO_T}no" >&6; }
13674fi
13675
13676
13677fi
13678if test -z "$ac_cv_prog_AR"; then
13679  ac_ct_AR=$AR
13680  # Extract the first word of "ar", so it can be a program name with args.
13681set dummy ar; ac_word=$2
13682{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13684if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13685  echo $ECHO_N "(cached) $ECHO_C" >&6
13686else
13687  if test -n "$ac_ct_AR"; then
13688  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13689else
13690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13691for as_dir in $PATH
13692do
13693  IFS=$as_save_IFS
13694  test -z "$as_dir" && as_dir=.
13695  for ac_exec_ext in '' $ac_executable_extensions; do
13696  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13697    ac_cv_prog_ac_ct_AR="ar"
13698    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13699    break 2
13700  fi
13701done
13702done
13703IFS=$as_save_IFS
13704
13705fi
13706fi
13707ac_ct_AR=$ac_cv_prog_ac_ct_AR
13708if test -n "$ac_ct_AR"; then
13709  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13710echo "${ECHO_T}$ac_ct_AR" >&6; }
13711else
13712  { echo "$as_me:$LINENO: result: no" >&5
13713echo "${ECHO_T}no" >&6; }
13714fi
13715
13716  if test "x$ac_ct_AR" = x; then
13717    AR="false"
13718  else
13719    case $cross_compiling:$ac_tool_warned in
13720yes:)
13721{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13722whose name does not start with the host triplet.  If you think this
13723configuration is useful to you, please write to autoconf@gnu.org." >&5
13724echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13725whose name does not start with the host triplet.  If you think this
13726configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13727ac_tool_warned=yes ;;
13728esac
13729    AR=$ac_ct_AR
13730  fi
13731else
13732  AR="$ac_cv_prog_AR"
13733fi
13734
13735if test -n "$ac_tool_prefix"; then
13736  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13737set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13738{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13740if test "${ac_cv_prog_RANLIB+set}" = set; then
13741  echo $ECHO_N "(cached) $ECHO_C" >&6
13742else
13743  if test -n "$RANLIB"; then
13744  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13745else
13746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13747for as_dir in $PATH
13748do
13749  IFS=$as_save_IFS
13750  test -z "$as_dir" && as_dir=.
13751  for ac_exec_ext in '' $ac_executable_extensions; do
13752  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13753    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13754    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13755    break 2
13756  fi
13757done
13758done
13759IFS=$as_save_IFS
13760
13761fi
13762fi
13763RANLIB=$ac_cv_prog_RANLIB
13764if test -n "$RANLIB"; then
13765  { echo "$as_me:$LINENO: result: $RANLIB" >&5
13766echo "${ECHO_T}$RANLIB" >&6; }
13767else
13768  { echo "$as_me:$LINENO: result: no" >&5
13769echo "${ECHO_T}no" >&6; }
13770fi
13771
13772
13773fi
13774if test -z "$ac_cv_prog_RANLIB"; then
13775  ac_ct_RANLIB=$RANLIB
13776  # Extract the first word of "ranlib", so it can be a program name with args.
13777set dummy ranlib; ac_word=$2
13778{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13780if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13781  echo $ECHO_N "(cached) $ECHO_C" >&6
13782else
13783  if test -n "$ac_ct_RANLIB"; then
13784  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13785else
13786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13787for as_dir in $PATH
13788do
13789  IFS=$as_save_IFS
13790  test -z "$as_dir" && as_dir=.
13791  for ac_exec_ext in '' $ac_executable_extensions; do
13792  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13793    ac_cv_prog_ac_ct_RANLIB="ranlib"
13794    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13795    break 2
13796  fi
13797done
13798done
13799IFS=$as_save_IFS
13800
13801fi
13802fi
13803ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13804if test -n "$ac_ct_RANLIB"; then
13805  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13806echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13807else
13808  { echo "$as_me:$LINENO: result: no" >&5
13809echo "${ECHO_T}no" >&6; }
13810fi
13811
13812  if test "x$ac_ct_RANLIB" = x; then
13813    RANLIB=":"
13814  else
13815    case $cross_compiling:$ac_tool_warned in
13816yes:)
13817{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13818whose name does not start with the host triplet.  If you think this
13819configuration is useful to you, please write to autoconf@gnu.org." >&5
13820echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13821whose name does not start with the host triplet.  If you think this
13822configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13823ac_tool_warned=yes ;;
13824esac
13825    RANLIB=$ac_ct_RANLIB
13826  fi
13827else
13828  RANLIB="$ac_cv_prog_RANLIB"
13829fi
13830
13831if test -n "$ac_tool_prefix"; then
13832  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13833set dummy ${ac_tool_prefix}strip; ac_word=$2
13834{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13836if test "${ac_cv_prog_STRIP+set}" = set; then
13837  echo $ECHO_N "(cached) $ECHO_C" >&6
13838else
13839  if test -n "$STRIP"; then
13840  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13841else
13842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13843for as_dir in $PATH
13844do
13845  IFS=$as_save_IFS
13846  test -z "$as_dir" && as_dir=.
13847  for ac_exec_ext in '' $ac_executable_extensions; do
13848  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13849    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13850    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13851    break 2
13852  fi
13853done
13854done
13855IFS=$as_save_IFS
13856
13857fi
13858fi
13859STRIP=$ac_cv_prog_STRIP
13860if test -n "$STRIP"; then
13861  { echo "$as_me:$LINENO: result: $STRIP" >&5
13862echo "${ECHO_T}$STRIP" >&6; }
13863else
13864  { echo "$as_me:$LINENO: result: no" >&5
13865echo "${ECHO_T}no" >&6; }
13866fi
13867
13868
13869fi
13870if test -z "$ac_cv_prog_STRIP"; then
13871  ac_ct_STRIP=$STRIP
13872  # Extract the first word of "strip", so it can be a program name with args.
13873set dummy strip; ac_word=$2
13874{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13876if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13877  echo $ECHO_N "(cached) $ECHO_C" >&6
13878else
13879  if test -n "$ac_ct_STRIP"; then
13880  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13881else
13882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13883for as_dir in $PATH
13884do
13885  IFS=$as_save_IFS
13886  test -z "$as_dir" && as_dir=.
13887  for ac_exec_ext in '' $ac_executable_extensions; do
13888  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13889    ac_cv_prog_ac_ct_STRIP="strip"
13890    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13891    break 2
13892  fi
13893done
13894done
13895IFS=$as_save_IFS
13896
13897fi
13898fi
13899ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13900if test -n "$ac_ct_STRIP"; then
13901  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13902echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13903else
13904  { echo "$as_me:$LINENO: result: no" >&5
13905echo "${ECHO_T}no" >&6; }
13906fi
13907
13908  if test "x$ac_ct_STRIP" = x; then
13909    STRIP=":"
13910  else
13911    case $cross_compiling:$ac_tool_warned in
13912yes:)
13913{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13914whose name does not start with the host triplet.  If you think this
13915configuration is useful to you, please write to autoconf@gnu.org." >&5
13916echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13917whose name does not start with the host triplet.  If you think this
13918configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13919ac_tool_warned=yes ;;
13920esac
13921    STRIP=$ac_ct_STRIP
13922  fi
13923else
13924  STRIP="$ac_cv_prog_STRIP"
13925fi
13926
13927
13928old_CC="$CC"
13929old_CFLAGS="$CFLAGS"
13930
13931# Set sane defaults for various variables
13932test -z "$AR" && AR=ar
13933test -z "$AR_FLAGS" && AR_FLAGS=cru
13934test -z "$AS" && AS=as
13935test -z "$CC" && CC=cc
13936test -z "$LTCC" && LTCC=$CC
13937test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13938test -z "$DLLTOOL" && DLLTOOL=dlltool
13939test -z "$LD" && LD=ld
13940test -z "$LN_S" && LN_S="ln -s"
13941test -z "$MAGIC_CMD" && MAGIC_CMD=file
13942test -z "$NM" && NM=nm
13943test -z "$SED" && SED=sed
13944test -z "$OBJDUMP" && OBJDUMP=objdump
13945test -z "$RANLIB" && RANLIB=:
13946test -z "$STRIP" && STRIP=:
13947test -z "$ac_objext" && ac_objext=o
13948
13949# Determine commands to create old-style static archives.
13950old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13951old_postinstall_cmds='chmod 644 $oldlib'
13952old_postuninstall_cmds=
13953
13954if test -n "$RANLIB"; then
13955  case $host_os in
13956  openbsd*)
13957    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13958    ;;
13959  *)
13960    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13961    ;;
13962  esac
13963  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13964fi
13965
13966for cc_temp in $compiler""; do
13967  case $cc_temp in
13968    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13969    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13970    \-*) ;;
13971    *) break;;
13972  esac
13973done
13974cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13975
13976
13977# Only perform the check for file, if the check method requires it
13978case $deplibs_check_method in
13979file_magic*)
13980  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13981    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13982echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
13983if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13984  echo $ECHO_N "(cached) $ECHO_C" >&6
13985else
13986  case $MAGIC_CMD in
13987[\\/*] |  ?:[\\/]*)
13988  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13989  ;;
13990*)
13991  lt_save_MAGIC_CMD="$MAGIC_CMD"
13992  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13993  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13994  for ac_dir in $ac_dummy; do
13995    IFS="$lt_save_ifs"
13996    test -z "$ac_dir" && ac_dir=.
13997    if test -f $ac_dir/${ac_tool_prefix}file; then
13998      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13999      if test -n "$file_magic_test_file"; then
14000	case $deplibs_check_method in
14001	"file_magic "*)
14002	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14003	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14004	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14005	    $EGREP "$file_magic_regex" > /dev/null; then
14006	    :
14007	  else
14008	    cat <<EOF 1>&2
14009
14010*** Warning: the command libtool uses to detect shared libraries,
14011*** $file_magic_cmd, produces output that libtool cannot recognize.
14012*** The result is that libtool may fail to recognize shared libraries
14013*** as such.  This will affect the creation of libtool libraries that
14014*** depend on shared libraries, but programs linked with such libtool
14015*** libraries will work regardless of this problem.  Nevertheless, you
14016*** may want to report the problem to your system manager and/or to
14017*** bug-libtool@gnu.org
14018
14019EOF
14020	  fi ;;
14021	esac
14022      fi
14023      break
14024    fi
14025  done
14026  IFS="$lt_save_ifs"
14027  MAGIC_CMD="$lt_save_MAGIC_CMD"
14028  ;;
14029esac
14030fi
14031
14032MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14033if test -n "$MAGIC_CMD"; then
14034  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14035echo "${ECHO_T}$MAGIC_CMD" >&6; }
14036else
14037  { echo "$as_me:$LINENO: result: no" >&5
14038echo "${ECHO_T}no" >&6; }
14039fi
14040
14041if test -z "$lt_cv_path_MAGIC_CMD"; then
14042  if test -n "$ac_tool_prefix"; then
14043    { echo "$as_me:$LINENO: checking for file" >&5
14044echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14045if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14046  echo $ECHO_N "(cached) $ECHO_C" >&6
14047else
14048  case $MAGIC_CMD in
14049[\\/*] |  ?:[\\/]*)
14050  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14051  ;;
14052*)
14053  lt_save_MAGIC_CMD="$MAGIC_CMD"
14054  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14055  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14056  for ac_dir in $ac_dummy; do
14057    IFS="$lt_save_ifs"
14058    test -z "$ac_dir" && ac_dir=.
14059    if test -f $ac_dir/file; then
14060      lt_cv_path_MAGIC_CMD="$ac_dir/file"
14061      if test -n "$file_magic_test_file"; then
14062	case $deplibs_check_method in
14063	"file_magic "*)
14064	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14065	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14066	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14067	    $EGREP "$file_magic_regex" > /dev/null; then
14068	    :
14069	  else
14070	    cat <<EOF 1>&2
14071
14072*** Warning: the command libtool uses to detect shared libraries,
14073*** $file_magic_cmd, produces output that libtool cannot recognize.
14074*** The result is that libtool may fail to recognize shared libraries
14075*** as such.  This will affect the creation of libtool libraries that
14076*** depend on shared libraries, but programs linked with such libtool
14077*** libraries will work regardless of this problem.  Nevertheless, you
14078*** may want to report the problem to your system manager and/or to
14079*** bug-libtool@gnu.org
14080
14081EOF
14082	  fi ;;
14083	esac
14084      fi
14085      break
14086    fi
14087  done
14088  IFS="$lt_save_ifs"
14089  MAGIC_CMD="$lt_save_MAGIC_CMD"
14090  ;;
14091esac
14092fi
14093
14094MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14095if test -n "$MAGIC_CMD"; then
14096  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14097echo "${ECHO_T}$MAGIC_CMD" >&6; }
14098else
14099  { echo "$as_me:$LINENO: result: no" >&5
14100echo "${ECHO_T}no" >&6; }
14101fi
14102
14103  else
14104    MAGIC_CMD=:
14105  fi
14106fi
14107
14108  fi
14109  ;;
14110esac
14111
14112enable_dlopen=yes
14113enable_win32_dll=no
14114
14115# Check whether --enable-libtool-lock was given.
14116if test "${enable_libtool_lock+set}" = set; then
14117  enableval=$enable_libtool_lock;
14118fi
14119
14120test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14121
14122
14123# Check whether --with-pic was given.
14124if test "${with_pic+set}" = set; then
14125  withval=$with_pic; pic_mode="$withval"
14126else
14127  pic_mode=default
14128fi
14129
14130test -z "$pic_mode" && pic_mode=default
14131
14132# Use C for the default configuration in the libtool script
14133tagname=
14134lt_save_CC="$CC"
14135ac_ext=c
14136ac_cpp='$CPP $CPPFLAGS'
14137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14139ac_compiler_gnu=$ac_cv_c_compiler_gnu
14140
14141
14142# Source file extension for C test sources.
14143ac_ext=c
14144
14145# Object file extension for compiled C test sources.
14146objext=o
14147objext=$objext
14148
14149# Code to be used in simple compile tests
14150lt_simple_compile_test_code="int some_variable = 0;\n"
14151
14152# Code to be used in simple link tests
14153lt_simple_link_test_code='int main(){return(0);}\n'
14154
14155
14156# If no C compiler was specified, use CC.
14157LTCC=${LTCC-"$CC"}
14158
14159# If no C compiler flags were specified, use CFLAGS.
14160LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14161
14162# Allow CC to be a program name with arguments.
14163compiler=$CC
14164
14165
14166# save warnings/boilerplate of simple test code
14167ac_outfile=conftest.$ac_objext
14168printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14169eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14170_lt_compiler_boilerplate=`cat conftest.err`
14171$rm conftest*
14172
14173ac_outfile=conftest.$ac_objext
14174printf "$lt_simple_link_test_code" >conftest.$ac_ext
14175eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14176_lt_linker_boilerplate=`cat conftest.err`
14177$rm conftest*
14178
14179
14180
14181lt_prog_compiler_no_builtin_flag=
14182
14183if test "$GCC" = yes; then
14184  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14185
14186
14187{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14188echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14189if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14190  echo $ECHO_N "(cached) $ECHO_C" >&6
14191else
14192  lt_cv_prog_compiler_rtti_exceptions=no
14193  ac_outfile=conftest.$ac_objext
14194   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14195   lt_compiler_flag="-fno-rtti -fno-exceptions"
14196   # Insert the option either (1) after the last *FLAGS variable, or
14197   # (2) before a word containing "conftest.", or (3) at the end.
14198   # Note that $ac_compile itself does not contain backslashes and begins
14199   # with a dollar sign (not a hyphen), so the echo should work correctly.
14200   # The option is referenced via a variable to avoid confusing sed.
14201   lt_compile=`echo "$ac_compile" | $SED \
14202   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14203   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14204   -e 's:$: $lt_compiler_flag:'`
14205   (eval echo "\"\$as_me:14205: $lt_compile\"" >&5)
14206   (eval "$lt_compile" 2>conftest.err)
14207   ac_status=$?
14208   cat conftest.err >&5
14209   echo "$as_me:14209: \$? = $ac_status" >&5
14210   if (exit $ac_status) && test -s "$ac_outfile"; then
14211     # The compiler can only warn and ignore the option if not recognized
14212     # So say no if there are warnings other than the usual output.
14213     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14214     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14215     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14216       lt_cv_prog_compiler_rtti_exceptions=yes
14217     fi
14218   fi
14219   $rm conftest*
14220
14221fi
14222{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14223echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14224
14225if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14226    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14227else
14228    :
14229fi
14230
14231fi
14232
14233lt_prog_compiler_wl=
14234lt_prog_compiler_pic=
14235lt_prog_compiler_static=
14236
14237{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14238echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14239
14240  if test "$GCC" = yes; then
14241    lt_prog_compiler_wl='-Wl,'
14242    lt_prog_compiler_static='-static'
14243
14244    case $host_os in
14245      aix*)
14246      # All AIX code is PIC.
14247      if test "$host_cpu" = ia64; then
14248	# AIX 5 now supports IA64 processor
14249	lt_prog_compiler_static='-Bstatic'
14250      fi
14251      ;;
14252
14253    amigaos*)
14254      # FIXME: we need at least 68020 code to build shared libraries, but
14255      # adding the `-m68020' flag to GCC prevents building anything better,
14256      # like `-m68040'.
14257      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14258      ;;
14259
14260    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14261      # PIC is the default for these OSes.
14262      ;;
14263
14264    mingw* | pw32* | os2*)
14265      # This hack is so that the source file can tell whether it is being
14266      # built for inclusion in a dll (and should export symbols for example).
14267      lt_prog_compiler_pic='-DDLL_EXPORT'
14268      ;;
14269
14270    darwin* | rhapsody*)
14271      # PIC is the default on this platform
14272      # Common symbols not allowed in MH_DYLIB files
14273      lt_prog_compiler_pic='-fno-common'
14274      ;;
14275
14276    interix3*)
14277      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14278      # Instead, we relocate shared libraries at runtime.
14279      ;;
14280
14281    msdosdjgpp*)
14282      # Just because we use GCC doesn't mean we suddenly get shared libraries
14283      # on systems that don't support them.
14284      lt_prog_compiler_can_build_shared=no
14285      enable_shared=no
14286      ;;
14287
14288    sysv4*MP*)
14289      if test -d /usr/nec; then
14290	lt_prog_compiler_pic=-Kconform_pic
14291      fi
14292      ;;
14293
14294    hpux*)
14295      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14296      # not for PA HP-UX.
14297      case $host_cpu in
14298      hppa*64*|ia64*)
14299	# +Z the default
14300	;;
14301      *)
14302	lt_prog_compiler_pic='-fPIC'
14303	;;
14304      esac
14305      ;;
14306
14307    *)
14308      lt_prog_compiler_pic='-fPIC'
14309      ;;
14310    esac
14311  else
14312    # PORTME Check for flag to pass linker flags through the system compiler.
14313    case $host_os in
14314    aix*)
14315      lt_prog_compiler_wl='-Wl,'
14316      if test "$host_cpu" = ia64; then
14317	# AIX 5 now supports IA64 processor
14318	lt_prog_compiler_static='-Bstatic'
14319      else
14320	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14321      fi
14322      ;;
14323      darwin*)
14324        # PIC is the default on this platform
14325        # Common symbols not allowed in MH_DYLIB files
14326       case $cc_basename in
14327         xlc*)
14328         lt_prog_compiler_pic='-qnocommon'
14329         lt_prog_compiler_wl='-Wl,'
14330         ;;
14331       esac
14332       ;;
14333
14334    mingw* | pw32* | os2*)
14335      # This hack is so that the source file can tell whether it is being
14336      # built for inclusion in a dll (and should export symbols for example).
14337      lt_prog_compiler_pic='-DDLL_EXPORT'
14338      ;;
14339
14340    hpux9* | hpux10* | hpux11*)
14341      lt_prog_compiler_wl='-Wl,'
14342      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14343      # not for PA HP-UX.
14344      case $host_cpu in
14345      hppa*64*|ia64*)
14346	# +Z the default
14347	;;
14348      *)
14349	lt_prog_compiler_pic='+Z'
14350	;;
14351      esac
14352      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14353      lt_prog_compiler_static='${wl}-a ${wl}archive'
14354      ;;
14355
14356    irix5* | irix6* | nonstopux*)
14357      lt_prog_compiler_wl='-Wl,'
14358      # PIC (with -KPIC) is the default.
14359      lt_prog_compiler_static='-non_shared'
14360      ;;
14361
14362    newsos6)
14363      lt_prog_compiler_pic='-KPIC'
14364      lt_prog_compiler_static='-Bstatic'
14365      ;;
14366
14367    linux*)
14368      case $cc_basename in
14369      icc* | ecc*)
14370	lt_prog_compiler_wl='-Wl,'
14371	lt_prog_compiler_pic='-KPIC'
14372	lt_prog_compiler_static='-static'
14373        ;;
14374      pgcc* | pgf77* | pgf90* | pgf95*)
14375        # Portland Group compilers (*not* the Pentium gcc compiler,
14376	# which looks to be a dead project)
14377	lt_prog_compiler_wl='-Wl,'
14378	lt_prog_compiler_pic='-fpic'
14379	lt_prog_compiler_static='-Bstatic'
14380        ;;
14381      ccc*)
14382        lt_prog_compiler_wl='-Wl,'
14383        # All Alpha code is PIC.
14384        lt_prog_compiler_static='-non_shared'
14385        ;;
14386      esac
14387      ;;
14388
14389    osf3* | osf4* | osf5*)
14390      lt_prog_compiler_wl='-Wl,'
14391      # All OSF/1 code is PIC.
14392      lt_prog_compiler_static='-non_shared'
14393      ;;
14394
14395    solaris*)
14396      lt_prog_compiler_pic='-KPIC'
14397      lt_prog_compiler_static='-Bstatic'
14398      case $cc_basename in
14399      f77* | f90* | f95*)
14400	lt_prog_compiler_wl='-Qoption ld ';;
14401      *)
14402	lt_prog_compiler_wl='-Wl,';;
14403      esac
14404      ;;
14405
14406    sunos4*)
14407      lt_prog_compiler_wl='-Qoption ld '
14408      lt_prog_compiler_pic='-PIC'
14409      lt_prog_compiler_static='-Bstatic'
14410      ;;
14411
14412    sysv4 | sysv4.2uw2* | sysv4.3*)
14413      lt_prog_compiler_wl='-Wl,'
14414      lt_prog_compiler_pic='-KPIC'
14415      lt_prog_compiler_static='-Bstatic'
14416      ;;
14417
14418    sysv4*MP*)
14419      if test -d /usr/nec ;then
14420	lt_prog_compiler_pic='-Kconform_pic'
14421	lt_prog_compiler_static='-Bstatic'
14422      fi
14423      ;;
14424
14425    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14426      lt_prog_compiler_wl='-Wl,'
14427      lt_prog_compiler_pic='-KPIC'
14428      lt_prog_compiler_static='-Bstatic'
14429      ;;
14430
14431    unicos*)
14432      lt_prog_compiler_wl='-Wl,'
14433      lt_prog_compiler_can_build_shared=no
14434      ;;
14435
14436    uts4*)
14437      lt_prog_compiler_pic='-pic'
14438      lt_prog_compiler_static='-Bstatic'
14439      ;;
14440
14441    *)
14442      lt_prog_compiler_can_build_shared=no
14443      ;;
14444    esac
14445  fi
14446
14447{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14448echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14449
14450#
14451# Check to make sure the PIC flag actually works.
14452#
14453if test -n "$lt_prog_compiler_pic"; then
14454
14455{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14456echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14457if test "${lt_prog_compiler_pic_works+set}" = set; then
14458  echo $ECHO_N "(cached) $ECHO_C" >&6
14459else
14460  lt_prog_compiler_pic_works=no
14461  ac_outfile=conftest.$ac_objext
14462   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14463   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14464   # Insert the option either (1) after the last *FLAGS variable, or
14465   # (2) before a word containing "conftest.", or (3) at the end.
14466   # Note that $ac_compile itself does not contain backslashes and begins
14467   # with a dollar sign (not a hyphen), so the echo should work correctly.
14468   # The option is referenced via a variable to avoid confusing sed.
14469   lt_compile=`echo "$ac_compile" | $SED \
14470   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14471   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14472   -e 's:$: $lt_compiler_flag:'`
14473   (eval echo "\"\$as_me:14473: $lt_compile\"" >&5)
14474   (eval "$lt_compile" 2>conftest.err)
14475   ac_status=$?
14476   cat conftest.err >&5
14477   echo "$as_me:14477: \$? = $ac_status" >&5
14478   if (exit $ac_status) && test -s "$ac_outfile"; then
14479     # The compiler can only warn and ignore the option if not recognized
14480     # So say no if there are warnings other than the usual output.
14481     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14482     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14483     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14484       lt_prog_compiler_pic_works=yes
14485     fi
14486   fi
14487   $rm conftest*
14488
14489fi
14490{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14491echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14492
14493if test x"$lt_prog_compiler_pic_works" = xyes; then
14494    case $lt_prog_compiler_pic in
14495     "" | " "*) ;;
14496     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14497     esac
14498else
14499    lt_prog_compiler_pic=
14500     lt_prog_compiler_can_build_shared=no
14501fi
14502
14503fi
14504case $host_os in
14505  # For platforms which do not support PIC, -DPIC is meaningless:
14506  *djgpp*)
14507    lt_prog_compiler_pic=
14508    ;;
14509  *)
14510    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14511    ;;
14512esac
14513
14514#
14515# Check to make sure the static flag actually works.
14516#
14517wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14518{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14519echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14520if test "${lt_prog_compiler_static_works+set}" = set; then
14521  echo $ECHO_N "(cached) $ECHO_C" >&6
14522else
14523  lt_prog_compiler_static_works=no
14524   save_LDFLAGS="$LDFLAGS"
14525   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14526   printf "$lt_simple_link_test_code" > conftest.$ac_ext
14527   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14528     # The linker can only warn and ignore the option if not recognized
14529     # So say no if there are warnings
14530     if test -s conftest.err; then
14531       # Append any errors to the config.log.
14532       cat conftest.err 1>&5
14533       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14534       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14535       if diff conftest.exp conftest.er2 >/dev/null; then
14536         lt_prog_compiler_static_works=yes
14537       fi
14538     else
14539       lt_prog_compiler_static_works=yes
14540     fi
14541   fi
14542   $rm conftest*
14543   LDFLAGS="$save_LDFLAGS"
14544
14545fi
14546{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14547echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14548
14549if test x"$lt_prog_compiler_static_works" = xyes; then
14550    :
14551else
14552    lt_prog_compiler_static=
14553fi
14554
14555
14556{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14557echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14558if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14559  echo $ECHO_N "(cached) $ECHO_C" >&6
14560else
14561  lt_cv_prog_compiler_c_o=no
14562   $rm -r conftest 2>/dev/null
14563   mkdir conftest
14564   cd conftest
14565   mkdir out
14566   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14567
14568   lt_compiler_flag="-o out/conftest2.$ac_objext"
14569   # Insert the option either (1) after the last *FLAGS variable, or
14570   # (2) before a word containing "conftest.", or (3) at the end.
14571   # Note that $ac_compile itself does not contain backslashes and begins
14572   # with a dollar sign (not a hyphen), so the echo should work correctly.
14573   lt_compile=`echo "$ac_compile" | $SED \
14574   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14575   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14576   -e 's:$: $lt_compiler_flag:'`
14577   (eval echo "\"\$as_me:14577: $lt_compile\"" >&5)
14578   (eval "$lt_compile" 2>out/conftest.err)
14579   ac_status=$?
14580   cat out/conftest.err >&5
14581   echo "$as_me:14581: \$? = $ac_status" >&5
14582   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14583   then
14584     # The compiler can only warn and ignore the option if not recognized
14585     # So say no if there are warnings
14586     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14587     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14588     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14589       lt_cv_prog_compiler_c_o=yes
14590     fi
14591   fi
14592   chmod u+w . 2>&5
14593   $rm conftest*
14594   # SGI C++ compiler will create directory out/ii_files/ for
14595   # template instantiation
14596   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14597   $rm out/* && rmdir out
14598   cd ..
14599   rmdir conftest
14600   $rm conftest*
14601
14602fi
14603{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14604echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14605
14606
14607hard_links="nottested"
14608if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14609  # do not overwrite the value of need_locks provided by the user
14610  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14611echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14612  hard_links=yes
14613  $rm conftest*
14614  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14615  touch conftest.a
14616  ln conftest.a conftest.b 2>&5 || hard_links=no
14617  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14618  { echo "$as_me:$LINENO: result: $hard_links" >&5
14619echo "${ECHO_T}$hard_links" >&6; }
14620  if test "$hard_links" = no; then
14621    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14622echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14623    need_locks=warn
14624  fi
14625else
14626  need_locks=no
14627fi
14628
14629{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14630echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14631
14632  runpath_var=
14633  allow_undefined_flag=
14634  enable_shared_with_static_runtimes=no
14635  archive_cmds=
14636  archive_expsym_cmds=
14637  old_archive_From_new_cmds=
14638  old_archive_from_expsyms_cmds=
14639  export_dynamic_flag_spec=
14640  whole_archive_flag_spec=
14641  thread_safe_flag_spec=
14642  hardcode_libdir_flag_spec=
14643  hardcode_libdir_flag_spec_ld=
14644  hardcode_libdir_separator=
14645  hardcode_direct=no
14646  hardcode_minus_L=no
14647  hardcode_shlibpath_var=unsupported
14648  link_all_deplibs=unknown
14649  hardcode_automatic=no
14650  module_cmds=
14651  module_expsym_cmds=
14652  always_export_symbols=no
14653  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14654  # include_expsyms should be a list of space-separated symbols to be *always*
14655  # included in the symbol list
14656  include_expsyms=
14657  # exclude_expsyms can be an extended regexp of symbols to exclude
14658  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14659  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14660  # as well as any symbol that contains `d'.
14661  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14662  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14663  # platforms (ab)use it in PIC code, but their linkers get confused if
14664  # the symbol is explicitly referenced.  Since portable code cannot
14665  # rely on this symbol name, it's probably fine to never include it in
14666  # preloaded symbol tables.
14667  extract_expsyms_cmds=
14668  # Just being paranoid about ensuring that cc_basename is set.
14669  for cc_temp in $compiler""; do
14670  case $cc_temp in
14671    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14672    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14673    \-*) ;;
14674    *) break;;
14675  esac
14676done
14677cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14678
14679  case $host_os in
14680  cygwin* | mingw* | pw32*)
14681    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14682    # When not using gcc, we currently assume that we are using
14683    # Microsoft Visual C++.
14684    if test "$GCC" != yes; then
14685      with_gnu_ld=no
14686    fi
14687    ;;
14688  interix*)
14689    # we just hope/assume this is gcc and not c89 (= MSVC++)
14690    with_gnu_ld=yes
14691    ;;
14692  openbsd*)
14693    with_gnu_ld=no
14694    ;;
14695  esac
14696
14697  ld_shlibs=yes
14698  if test "$with_gnu_ld" = yes; then
14699    # If archive_cmds runs LD, not CC, wlarc should be empty
14700    wlarc='${wl}'
14701
14702    # Set some defaults for GNU ld with shared library support. These
14703    # are reset later if shared libraries are not supported. Putting them
14704    # here allows them to be overridden if necessary.
14705    runpath_var=LD_RUN_PATH
14706    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14707    export_dynamic_flag_spec='${wl}--export-dynamic'
14708    # ancient GNU ld didn't support --whole-archive et. al.
14709    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14710	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14711      else
14712  	whole_archive_flag_spec=
14713    fi
14714    supports_anon_versioning=no
14715    case `$LD -v 2>/dev/null` in
14716      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14717      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14718      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14719      *\ 2.11.*) ;; # other 2.11 versions
14720      *) supports_anon_versioning=yes ;;
14721    esac
14722
14723    # See if GNU ld supports shared libraries.
14724    case $host_os in
14725    aix3* | aix4* | aix5*)
14726      # On AIX/PPC, the GNU linker is very broken
14727      if test "$host_cpu" != ia64; then
14728	ld_shlibs=no
14729	cat <<EOF 1>&2
14730
14731*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14732*** to be unable to reliably create shared libraries on AIX.
14733*** Therefore, libtool is disabling shared libraries support.  If you
14734*** really care for shared libraries, you may want to modify your PATH
14735*** so that a non-GNU linker is found, and then restart.
14736
14737EOF
14738      fi
14739      ;;
14740
14741    amigaos*)
14742      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)'
14743      hardcode_libdir_flag_spec='-L$libdir'
14744      hardcode_minus_L=yes
14745
14746      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14747      # that the semantics of dynamic libraries on AmigaOS, at least up
14748      # to version 4, is to share data among multiple programs linked
14749      # with the same dynamic library.  Since this doesn't match the
14750      # behavior of shared libraries on other platforms, we can't use
14751      # them.
14752      ld_shlibs=no
14753      ;;
14754
14755    beos*)
14756      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14757	allow_undefined_flag=unsupported
14758	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14759	# support --undefined.  This deserves some investigation.  FIXME
14760	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14761      else
14762	ld_shlibs=no
14763      fi
14764      ;;
14765
14766    cygwin* | mingw* | pw32*)
14767      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14768      # as there is no search path for DLLs.
14769      hardcode_libdir_flag_spec='-L$libdir'
14770      allow_undefined_flag=unsupported
14771      always_export_symbols=no
14772      enable_shared_with_static_runtimes=yes
14773      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14774
14775      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14776        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14777	# If the export-symbols file already is a .def file (1st line
14778	# is EXPORTS), use it as is; otherwise, prepend...
14779	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14780	  cp $export_symbols $output_objdir/$soname.def;
14781	else
14782	  echo EXPORTS > $output_objdir/$soname.def;
14783	  cat $export_symbols >> $output_objdir/$soname.def;
14784	fi~
14785	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14786      else
14787	ld_shlibs=no
14788      fi
14789      ;;
14790
14791    interix3*)
14792      hardcode_direct=no
14793      hardcode_shlibpath_var=no
14794      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14795      export_dynamic_flag_spec='${wl}-E'
14796      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14797      # Instead, shared libraries are loaded at an image base (0x10000000 by
14798      # default) and relocated if they conflict, which is a slow very memory
14799      # consuming and fragmenting process.  To avoid this, we pick a random,
14800      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14801      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14802      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14803      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'
14804      ;;
14805
14806    linux*)
14807      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14808	tmp_addflag=
14809	case $cc_basename,$host_cpu in
14810	pgcc*)				# Portland Group C compiler
14811	  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'
14812	  tmp_addflag=' $pic_flag'
14813	  ;;
14814	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14815	  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'
14816	  tmp_addflag=' $pic_flag -Mnomain' ;;
14817	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14818	  tmp_addflag=' -i_dynamic' ;;
14819	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14820	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14821	ifc* | ifort*)			# Intel Fortran compiler
14822	  tmp_addflag=' -nofor_main' ;;
14823	esac
14824	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14825
14826	if test $supports_anon_versioning = yes; then
14827	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14828  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14829  $echo "local: *; };" >> $output_objdir/$libname.ver~
14830	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14831	fi
14832      else
14833	ld_shlibs=no
14834      fi
14835      ;;
14836
14837    netbsd*)
14838      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14839	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14840	wlarc=
14841      else
14842	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14843	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14844      fi
14845      ;;
14846
14847    solaris*)
14848      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14849	ld_shlibs=no
14850	cat <<EOF 1>&2
14851
14852*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14853*** create shared libraries on Solaris systems.  Therefore, libtool
14854*** is disabling shared libraries support.  We urge you to upgrade GNU
14855*** binutils to release 2.9.1 or newer.  Another option is to modify
14856*** your PATH or compiler configuration so that the native linker is
14857*** used, and then restart.
14858
14859EOF
14860      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14861	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14862	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14863      else
14864	ld_shlibs=no
14865      fi
14866      ;;
14867
14868    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14869      case `$LD -v 2>&1` in
14870        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14871	ld_shlibs=no
14872	cat <<_LT_EOF 1>&2
14873
14874*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14875*** reliably create shared libraries on SCO systems.  Therefore, libtool
14876*** is disabling shared libraries support.  We urge you to upgrade GNU
14877*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14878*** your PATH or compiler configuration so that the native linker is
14879*** used, and then restart.
14880
14881_LT_EOF
14882	;;
14883	*)
14884	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14885	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14886	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14887	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14888	  else
14889	    ld_shlibs=no
14890	  fi
14891	;;
14892      esac
14893      ;;
14894
14895    sunos4*)
14896      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14897      wlarc=
14898      hardcode_direct=yes
14899      hardcode_shlibpath_var=no
14900      ;;
14901
14902    *)
14903      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14904	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14905	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14906      else
14907	ld_shlibs=no
14908      fi
14909      ;;
14910    esac
14911
14912    if test "$ld_shlibs" = no; then
14913      runpath_var=
14914      hardcode_libdir_flag_spec=
14915      export_dynamic_flag_spec=
14916      whole_archive_flag_spec=
14917    fi
14918  else
14919    # PORTME fill in a description of your system's linker (not GNU ld)
14920    case $host_os in
14921    aix3*)
14922      allow_undefined_flag=unsupported
14923      always_export_symbols=yes
14924      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'
14925      # Note: this linker hardcodes the directories in LIBPATH if there
14926      # are no directories specified by -L.
14927      hardcode_minus_L=yes
14928      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14929	# Neither direct hardcoding nor static linking is supported with a
14930	# broken collect2.
14931	hardcode_direct=unsupported
14932      fi
14933      ;;
14934
14935    aix4* | aix5*)
14936      if test "$host_cpu" = ia64; then
14937	# On IA64, the linker does run time linking by default, so we don't
14938	# have to do anything special.
14939	aix_use_runtimelinking=no
14940	exp_sym_flag='-Bexport'
14941	no_entry_flag=""
14942      else
14943	# If we're using GNU nm, then we don't want the "-C" option.
14944	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14945	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14946	  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'
14947	else
14948	  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'
14949	fi
14950	aix_use_runtimelinking=no
14951
14952	# Test if we are trying to use run time linking or normal
14953	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14954	# need to do runtime linking.
14955	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14956	  for ld_flag in $LDFLAGS; do
14957  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14958  	    aix_use_runtimelinking=yes
14959  	    break
14960  	  fi
14961	  done
14962	  ;;
14963	esac
14964
14965	exp_sym_flag='-bexport'
14966	no_entry_flag='-bnoentry'
14967      fi
14968
14969      # When large executables or shared objects are built, AIX ld can
14970      # have problems creating the table of contents.  If linking a library
14971      # or program results in "error TOC overflow" add -mminimal-toc to
14972      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14973      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14974
14975      archive_cmds=''
14976      hardcode_direct=yes
14977      hardcode_libdir_separator=':'
14978      link_all_deplibs=yes
14979
14980      if test "$GCC" = yes; then
14981	case $host_os in aix4.[012]|aix4.[012].*)
14982	# We only want to do this on AIX 4.2 and lower, the check
14983	# below for broken collect2 doesn't work under 4.3+
14984	  collect2name=`${CC} -print-prog-name=collect2`
14985	  if test -f "$collect2name" && \
14986  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14987	  then
14988  	  # We have reworked collect2
14989  	  hardcode_direct=yes
14990	  else
14991  	  # We have old collect2
14992  	  hardcode_direct=unsupported
14993  	  # It fails to find uninstalled libraries when the uninstalled
14994  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14995  	  # to unsupported forces relinking
14996  	  hardcode_minus_L=yes
14997  	  hardcode_libdir_flag_spec='-L$libdir'
14998  	  hardcode_libdir_separator=
14999	  fi
15000	  ;;
15001	esac
15002	shared_flag='-shared'
15003	if test "$aix_use_runtimelinking" = yes; then
15004	  shared_flag="$shared_flag "'${wl}-G'
15005	fi
15006      else
15007	# not using gcc
15008	if test "$host_cpu" = ia64; then
15009  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15010  	# chokes on -Wl,-G. The following line is correct:
15011	  shared_flag='-G'
15012	else
15013	  if test "$aix_use_runtimelinking" = yes; then
15014	    shared_flag='${wl}-G'
15015	  else
15016	    shared_flag='${wl}-bM:SRE'
15017	  fi
15018	fi
15019      fi
15020
15021      # It seems that -bexpall does not export symbols beginning with
15022      # underscore (_), so it is better to generate a list of symbols to export.
15023      always_export_symbols=yes
15024      if test "$aix_use_runtimelinking" = yes; then
15025	# Warning - without using the other runtime loading flags (-brtl),
15026	# -berok will link without error, but may produce a broken library.
15027	allow_undefined_flag='-berok'
15028       # Determine the default libpath from the value encoded in an empty executable.
15029       cat >conftest.$ac_ext <<_ACEOF
15030/* confdefs.h.  */
15031_ACEOF
15032cat confdefs.h >>conftest.$ac_ext
15033cat >>conftest.$ac_ext <<_ACEOF
15034/* end confdefs.h.  */
15035
15036int
15037main ()
15038{
15039
15040  ;
15041  return 0;
15042}
15043_ACEOF
15044rm -f conftest.$ac_objext conftest$ac_exeext
15045if { (ac_try="$ac_link"
15046case "(($ac_try" in
15047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15048  *) ac_try_echo=$ac_try;;
15049esac
15050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15051  (eval "$ac_link") 2>conftest.er1
15052  ac_status=$?
15053  grep -v '^ *+' conftest.er1 >conftest.err
15054  rm -f conftest.er1
15055  cat conftest.err >&5
15056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057  (exit $ac_status); } &&
15058	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15059  { (case "(($ac_try" in
15060  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15061  *) ac_try_echo=$ac_try;;
15062esac
15063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15064  (eval "$ac_try") 2>&5
15065  ac_status=$?
15066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067  (exit $ac_status); }; } &&
15068	 { ac_try='test -s conftest$ac_exeext'
15069  { (case "(($ac_try" in
15070  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15071  *) ac_try_echo=$ac_try;;
15072esac
15073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15074  (eval "$ac_try") 2>&5
15075  ac_status=$?
15076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077  (exit $ac_status); }; }; then
15078
15079aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15080}'`
15081# Check for a 64-bit object if we didn't find anything.
15082if 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; }
15083}'`; fi
15084else
15085  echo "$as_me: failed program was:" >&5
15086sed 's/^/| /' conftest.$ac_ext >&5
15087
15088
15089fi
15090
15091rm -f core conftest.err conftest.$ac_objext \
15092      conftest$ac_exeext conftest.$ac_ext
15093if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15094
15095       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15096	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"
15097       else
15098	if test "$host_cpu" = ia64; then
15099	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15100	  allow_undefined_flag="-z nodefs"
15101	  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"
15102	else
15103	 # Determine the default libpath from the value encoded in an empty executable.
15104	 cat >conftest.$ac_ext <<_ACEOF
15105/* confdefs.h.  */
15106_ACEOF
15107cat confdefs.h >>conftest.$ac_ext
15108cat >>conftest.$ac_ext <<_ACEOF
15109/* end confdefs.h.  */
15110
15111int
15112main ()
15113{
15114
15115  ;
15116  return 0;
15117}
15118_ACEOF
15119rm -f conftest.$ac_objext conftest$ac_exeext
15120if { (ac_try="$ac_link"
15121case "(($ac_try" in
15122  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15123  *) ac_try_echo=$ac_try;;
15124esac
15125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15126  (eval "$ac_link") 2>conftest.er1
15127  ac_status=$?
15128  grep -v '^ *+' conftest.er1 >conftest.err
15129  rm -f conftest.er1
15130  cat conftest.err >&5
15131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132  (exit $ac_status); } &&
15133	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15134  { (case "(($ac_try" in
15135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136  *) ac_try_echo=$ac_try;;
15137esac
15138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15139  (eval "$ac_try") 2>&5
15140  ac_status=$?
15141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142  (exit $ac_status); }; } &&
15143	 { ac_try='test -s conftest$ac_exeext'
15144  { (case "(($ac_try" in
15145  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15146  *) ac_try_echo=$ac_try;;
15147esac
15148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15149  (eval "$ac_try") 2>&5
15150  ac_status=$?
15151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152  (exit $ac_status); }; }; then
15153
15154aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15155}'`
15156# Check for a 64-bit object if we didn't find anything.
15157if 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; }
15158}'`; fi
15159else
15160  echo "$as_me: failed program was:" >&5
15161sed 's/^/| /' conftest.$ac_ext >&5
15162
15163
15164fi
15165
15166rm -f core conftest.err conftest.$ac_objext \
15167      conftest$ac_exeext conftest.$ac_ext
15168if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15169
15170	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15171	  # Warning - without using the other run time loading flags,
15172	  # -berok will link without error, but may produce a broken library.
15173	  no_undefined_flag=' ${wl}-bernotok'
15174	  allow_undefined_flag=' ${wl}-berok'
15175	  # Exported symbols can be pulled into shared objects from archives
15176	  whole_archive_flag_spec='$convenience'
15177	  archive_cmds_need_lc=yes
15178	  # This is similar to how AIX traditionally builds its shared libraries.
15179	  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'
15180	fi
15181      fi
15182      ;;
15183
15184    amigaos*)
15185      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)'
15186      hardcode_libdir_flag_spec='-L$libdir'
15187      hardcode_minus_L=yes
15188      # see comment about different semantics on the GNU ld section
15189      ld_shlibs=no
15190      ;;
15191
15192    bsdi[45]*)
15193      export_dynamic_flag_spec=-rdynamic
15194      ;;
15195
15196    cygwin* | mingw* | pw32*)
15197      # When not using gcc, we currently assume that we are using
15198      # Microsoft Visual C++.
15199      # hardcode_libdir_flag_spec is actually meaningless, as there is
15200      # no search path for DLLs.
15201      hardcode_libdir_flag_spec=' '
15202      allow_undefined_flag=unsupported
15203      # Tell ltmain to make .lib files, not .a files.
15204      libext=lib
15205      # Tell ltmain to make .dll files, not .so files.
15206      shrext_cmds=".dll"
15207      # FIXME: Setting linknames here is a bad hack.
15208      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15209      # The linker will automatically build a .lib file if we build a DLL.
15210      old_archive_From_new_cmds='true'
15211      # FIXME: Should let the user specify the lib program.
15212      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15213      fix_srcfile_path='`cygpath -w "$srcfile"`'
15214      enable_shared_with_static_runtimes=yes
15215      ;;
15216
15217    darwin* | rhapsody*)
15218      case $host_os in
15219        rhapsody* | darwin1.[012])
15220         allow_undefined_flag='${wl}-undefined ${wl}suppress'
15221         ;;
15222       *) # Darwin 1.3 on
15223         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15224           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15225         else
15226           case ${MACOSX_DEPLOYMENT_TARGET} in
15227             10.[012])
15228               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15229               ;;
15230             10.*)
15231               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15232               ;;
15233           esac
15234         fi
15235         ;;
15236      esac
15237      archive_cmds_need_lc=no
15238      hardcode_direct=no
15239      hardcode_automatic=yes
15240      hardcode_shlibpath_var=unsupported
15241      whole_archive_flag_spec=''
15242      link_all_deplibs=yes
15243    if test "$GCC" = yes ; then
15244    	output_verbose_link_cmd='echo'
15245        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15246      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15247      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15248      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}'
15249      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}'
15250    else
15251      case $cc_basename in
15252        xlc*)
15253         output_verbose_link_cmd='echo'
15254         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15255         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15256          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15257         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}'
15258          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}'
15259          ;;
15260       *)
15261         ld_shlibs=no
15262          ;;
15263      esac
15264    fi
15265      ;;
15266
15267    dgux*)
15268      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15269      hardcode_libdir_flag_spec='-L$libdir'
15270      hardcode_shlibpath_var=no
15271      ;;
15272
15273    freebsd1*)
15274      ld_shlibs=no
15275      ;;
15276
15277    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15278    # support.  Future versions do this automatically, but an explicit c++rt0.o
15279    # does not break anything, and helps significantly (at the cost of a little
15280    # extra space).
15281    freebsd2.2*)
15282      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15283      hardcode_libdir_flag_spec='-R$libdir'
15284      hardcode_direct=yes
15285      hardcode_shlibpath_var=no
15286      ;;
15287
15288    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15289    freebsd2*)
15290      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15291      hardcode_direct=yes
15292      hardcode_minus_L=yes
15293      hardcode_shlibpath_var=no
15294      ;;
15295
15296    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15297    freebsd* | kfreebsd*-gnu | dragonfly*)
15298      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15299      hardcode_libdir_flag_spec='-R$libdir'
15300      hardcode_direct=yes
15301      hardcode_shlibpath_var=no
15302      ;;
15303
15304    hpux9*)
15305      if test "$GCC" = yes; then
15306	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'
15307      else
15308	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'
15309      fi
15310      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15311      hardcode_libdir_separator=:
15312      hardcode_direct=yes
15313
15314      # hardcode_minus_L: Not really in the search PATH,
15315      # but as the default location of the library.
15316      hardcode_minus_L=yes
15317      export_dynamic_flag_spec='${wl}-E'
15318      ;;
15319
15320    hpux10*)
15321      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15322	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15323      else
15324	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15325      fi
15326      if test "$with_gnu_ld" = no; then
15327	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15328	hardcode_libdir_separator=:
15329
15330	hardcode_direct=yes
15331	export_dynamic_flag_spec='${wl}-E'
15332
15333	# hardcode_minus_L: Not really in the search PATH,
15334	# but as the default location of the library.
15335	hardcode_minus_L=yes
15336      fi
15337      ;;
15338
15339    hpux11*)
15340      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15341	case $host_cpu in
15342	hppa*64*)
15343	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15344	  ;;
15345	ia64*)
15346	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15347	  ;;
15348	*)
15349	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15350	  ;;
15351	esac
15352      else
15353	case $host_cpu in
15354	hppa*64*)
15355	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15356	  ;;
15357	ia64*)
15358	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15359	  ;;
15360	*)
15361	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15362	  ;;
15363	esac
15364      fi
15365      if test "$with_gnu_ld" = no; then
15366	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15367	hardcode_libdir_separator=:
15368
15369	case $host_cpu in
15370	hppa*64*|ia64*)
15371	  hardcode_libdir_flag_spec_ld='+b $libdir'
15372	  hardcode_direct=no
15373	  hardcode_shlibpath_var=no
15374	  ;;
15375	*)
15376	  hardcode_direct=yes
15377	  export_dynamic_flag_spec='${wl}-E'
15378
15379	  # hardcode_minus_L: Not really in the search PATH,
15380	  # but as the default location of the library.
15381	  hardcode_minus_L=yes
15382	  ;;
15383	esac
15384      fi
15385      ;;
15386
15387    irix5* | irix6* | nonstopux*)
15388      if test "$GCC" = yes; then
15389	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'
15390      else
15391	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'
15392	hardcode_libdir_flag_spec_ld='-rpath $libdir'
15393      fi
15394      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15395      hardcode_libdir_separator=:
15396      link_all_deplibs=yes
15397      ;;
15398
15399    netbsd*)
15400      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15401	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15402      else
15403	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15404      fi
15405      hardcode_libdir_flag_spec='-R$libdir'
15406      hardcode_direct=yes
15407      hardcode_shlibpath_var=no
15408      ;;
15409
15410    newsos6)
15411      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15412      hardcode_direct=yes
15413      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15414      hardcode_libdir_separator=:
15415      hardcode_shlibpath_var=no
15416      ;;
15417
15418    openbsd*)
15419      hardcode_direct=yes
15420      hardcode_shlibpath_var=no
15421      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15422	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15423	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15424	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15425	export_dynamic_flag_spec='${wl}-E'
15426      else
15427       case $host_os in
15428	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15429	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15430	   hardcode_libdir_flag_spec='-R$libdir'
15431	   ;;
15432	 *)
15433	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15434	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15435	   ;;
15436       esac
15437      fi
15438      ;;
15439
15440    os2*)
15441      hardcode_libdir_flag_spec='-L$libdir'
15442      hardcode_minus_L=yes
15443      allow_undefined_flag=unsupported
15444      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'
15445      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15446      ;;
15447
15448    osf3*)
15449      if test "$GCC" = yes; then
15450	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15451	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'
15452      else
15453	allow_undefined_flag=' -expect_unresolved \*'
15454	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'
15455      fi
15456      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15457      hardcode_libdir_separator=:
15458      ;;
15459
15460    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15461      if test "$GCC" = yes; then
15462	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15463	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'
15464	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15465      else
15466	allow_undefined_flag=' -expect_unresolved \*'
15467	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'
15468	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15469	$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'
15470
15471	# Both c and cxx compiler support -rpath directly
15472	hardcode_libdir_flag_spec='-rpath $libdir'
15473      fi
15474      hardcode_libdir_separator=:
15475      ;;
15476
15477    solaris*)
15478      no_undefined_flag=' -z text'
15479      if test "$GCC" = yes; then
15480	wlarc='${wl}'
15481	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15482	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15483	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15484      else
15485	wlarc=''
15486	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15487	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15488  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15489      fi
15490      hardcode_libdir_flag_spec='-R$libdir'
15491      hardcode_shlibpath_var=no
15492      case $host_os in
15493      solaris2.[0-5] | solaris2.[0-5].*) ;;
15494      *)
15495 	# The compiler driver will combine linker options so we
15496 	# cannot just pass the convience library names through
15497 	# without $wl, iff we do not link with $LD.
15498 	# Luckily, gcc supports the same syntax we need for Sun Studio.
15499 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15500 	case $wlarc in
15501 	'')
15502 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15503 	*)
15504 	  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' ;;
15505 	esac ;;
15506      esac
15507      link_all_deplibs=yes
15508      ;;
15509
15510    sunos4*)
15511      if test "x$host_vendor" = xsequent; then
15512	# Use $CC to link under sequent, because it throws in some extra .o
15513	# files that make .init and .fini sections work.
15514	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15515      else
15516	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15517      fi
15518      hardcode_libdir_flag_spec='-L$libdir'
15519      hardcode_direct=yes
15520      hardcode_minus_L=yes
15521      hardcode_shlibpath_var=no
15522      ;;
15523
15524    sysv4)
15525      case $host_vendor in
15526	sni)
15527	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15528	  hardcode_direct=yes # is this really true???
15529	;;
15530	siemens)
15531	  ## LD is ld it makes a PLAMLIB
15532	  ## CC just makes a GrossModule.
15533	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15534	  reload_cmds='$CC -r -o $output$reload_objs'
15535	  hardcode_direct=no
15536        ;;
15537	motorola)
15538	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15539	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15540	;;
15541      esac
15542      runpath_var='LD_RUN_PATH'
15543      hardcode_shlibpath_var=no
15544      ;;
15545
15546    sysv4.3*)
15547      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15548      hardcode_shlibpath_var=no
15549      export_dynamic_flag_spec='-Bexport'
15550      ;;
15551
15552    sysv4*MP*)
15553      if test -d /usr/nec; then
15554	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15555	hardcode_shlibpath_var=no
15556	runpath_var=LD_RUN_PATH
15557	hardcode_runpath_var=yes
15558	ld_shlibs=yes
15559      fi
15560      ;;
15561
15562    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15563      no_undefined_flag='${wl}-z,text'
15564      archive_cmds_need_lc=no
15565      hardcode_shlibpath_var=no
15566      runpath_var='LD_RUN_PATH'
15567
15568      if test "$GCC" = yes; then
15569	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15570	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15571      else
15572	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15573	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15574      fi
15575      ;;
15576
15577    sysv5* | sco3.2v5* | sco5v6*)
15578      # Note: We can NOT use -z defs as we might desire, because we do not
15579      # link with -lc, and that would cause any symbols used from libc to
15580      # always be unresolved, which means just about no library would
15581      # ever link correctly.  If we're not using GNU ld we use -z text
15582      # though, which does catch some bad symbols but isn't as heavy-handed
15583      # as -z defs.
15584      no_undefined_flag='${wl}-z,text'
15585      allow_undefined_flag='${wl}-z,nodefs'
15586      archive_cmds_need_lc=no
15587      hardcode_shlibpath_var=no
15588      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15589      hardcode_libdir_separator=':'
15590      link_all_deplibs=yes
15591      export_dynamic_flag_spec='${wl}-Bexport'
15592      runpath_var='LD_RUN_PATH'
15593
15594      if test "$GCC" = yes; then
15595	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15596	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15597      else
15598	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15599	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15600      fi
15601      ;;
15602
15603    uts4*)
15604      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15605      hardcode_libdir_flag_spec='-L$libdir'
15606      hardcode_shlibpath_var=no
15607      ;;
15608
15609    *)
15610      ld_shlibs=no
15611      ;;
15612    esac
15613  fi
15614
15615{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15616echo "${ECHO_T}$ld_shlibs" >&6; }
15617test "$ld_shlibs" = no && can_build_shared=no
15618
15619#
15620# Do we need to explicitly link libc?
15621#
15622case "x$archive_cmds_need_lc" in
15623x|xyes)
15624  # Assume -lc should be added
15625  archive_cmds_need_lc=yes
15626
15627  if test "$enable_shared" = yes && test "$GCC" = yes; then
15628    case $archive_cmds in
15629    *'~'*)
15630      # FIXME: we may have to deal with multi-command sequences.
15631      ;;
15632    '$CC '*)
15633      # Test whether the compiler implicitly links with -lc since on some
15634      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15635      # to ld, don't add -lc before -lgcc.
15636      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15637echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15638      $rm conftest*
15639      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15640
15641      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15642  (eval $ac_compile) 2>&5
15643  ac_status=$?
15644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645  (exit $ac_status); } 2>conftest.err; then
15646        soname=conftest
15647        lib=conftest
15648        libobjs=conftest.$ac_objext
15649        deplibs=
15650        wl=$lt_prog_compiler_wl
15651	pic_flag=$lt_prog_compiler_pic
15652        compiler_flags=-v
15653        linker_flags=-v
15654        verstring=
15655        output_objdir=.
15656        libname=conftest
15657        lt_save_allow_undefined_flag=$allow_undefined_flag
15658        allow_undefined_flag=
15659        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15660  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15661  ac_status=$?
15662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663  (exit $ac_status); }
15664        then
15665	  archive_cmds_need_lc=no
15666        else
15667	  archive_cmds_need_lc=yes
15668        fi
15669        allow_undefined_flag=$lt_save_allow_undefined_flag
15670      else
15671        cat conftest.err 1>&5
15672      fi
15673      $rm conftest*
15674      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15675echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15676      ;;
15677    esac
15678  fi
15679  ;;
15680esac
15681
15682{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15683echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15684library_names_spec=
15685libname_spec='lib$name'
15686soname_spec=
15687shrext_cmds=".so"
15688postinstall_cmds=
15689postuninstall_cmds=
15690finish_cmds=
15691finish_eval=
15692shlibpath_var=
15693shlibpath_overrides_runpath=unknown
15694version_type=none
15695dynamic_linker="$host_os ld.so"
15696sys_lib_dlsearch_path_spec="/lib /usr/lib"
15697if test "$GCC" = yes; then
15698  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15699  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15700    # if the path contains ";" then we assume it to be the separator
15701    # otherwise default to the standard path separator (i.e. ":") - it is
15702    # assumed that no part of a normal pathname contains ";" but that should
15703    # okay in the real world where ";" in dirpaths is itself problematic.
15704    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15705  else
15706    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15707  fi
15708else
15709  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15710fi
15711need_lib_prefix=unknown
15712hardcode_into_libs=no
15713
15714# when you set need_version to no, make sure it does not cause -set_version
15715# flags to be left without arguments
15716need_version=unknown
15717
15718case $host_os in
15719aix3*)
15720  version_type=linux
15721  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15722  shlibpath_var=LIBPATH
15723
15724  # AIX 3 has no versioning support, so we append a major version to the name.
15725  soname_spec='${libname}${release}${shared_ext}$major'
15726  ;;
15727
15728aix4* | aix5*)
15729  version_type=linux
15730  need_lib_prefix=no
15731  need_version=no
15732  hardcode_into_libs=yes
15733  if test "$host_cpu" = ia64; then
15734    # AIX 5 supports IA64
15735    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15736    shlibpath_var=LD_LIBRARY_PATH
15737  else
15738    # With GCC up to 2.95.x, collect2 would create an import file
15739    # for dependence libraries.  The import file would start with
15740    # the line `#! .'.  This would cause the generated library to
15741    # depend on `.', always an invalid library.  This was fixed in
15742    # development snapshots of GCC prior to 3.0.
15743    case $host_os in
15744      aix4 | aix4.[01] | aix4.[01].*)
15745      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15746	   echo ' yes '
15747	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15748	:
15749      else
15750	can_build_shared=no
15751      fi
15752      ;;
15753    esac
15754    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15755    # soname into executable. Probably we can add versioning support to
15756    # collect2, so additional links can be useful in future.
15757    if test "$aix_use_runtimelinking" = yes; then
15758      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15759      # instead of lib<name>.a to let people know that these are not
15760      # typical AIX shared libraries.
15761      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15762    else
15763      # We preserve .a as extension for shared libraries through AIX4.2
15764      # and later when we are not doing run time linking.
15765      library_names_spec='${libname}${release}.a $libname.a'
15766      soname_spec='${libname}${release}${shared_ext}$major'
15767    fi
15768    shlibpath_var=LIBPATH
15769  fi
15770  ;;
15771
15772amigaos*)
15773  library_names_spec='$libname.ixlibrary $libname.a'
15774  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15775  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'
15776  ;;
15777
15778beos*)
15779  library_names_spec='${libname}${shared_ext}'
15780  dynamic_linker="$host_os ld.so"
15781  shlibpath_var=LIBRARY_PATH
15782  ;;
15783
15784bsdi[45]*)
15785  version_type=linux
15786  need_version=no
15787  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15788  soname_spec='${libname}${release}${shared_ext}$major'
15789  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15790  shlibpath_var=LD_LIBRARY_PATH
15791  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15792  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15793  # the default ld.so.conf also contains /usr/contrib/lib and
15794  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15795  # libtool to hard-code these into programs
15796  ;;
15797
15798cygwin* | mingw* | pw32*)
15799  version_type=windows
15800  shrext_cmds=".dll"
15801  need_version=no
15802  need_lib_prefix=no
15803
15804  case $GCC,$host_os in
15805  yes,cygwin* | yes,mingw* | yes,pw32*)
15806    library_names_spec='$libname.dll.a'
15807    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15808    postinstall_cmds='base_file=`basename \${file}`~
15809      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15810      dldir=$destdir/`dirname \$dlpath`~
15811      test -d \$dldir || mkdir -p \$dldir~
15812      $install_prog $dir/$dlname \$dldir/$dlname~
15813      chmod a+x \$dldir/$dlname'
15814    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15815      dlpath=$dir/\$dldll~
15816       $rm \$dlpath'
15817    shlibpath_overrides_runpath=yes
15818
15819    case $host_os in
15820    cygwin*)
15821      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15822      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15823      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15824      ;;
15825    mingw*)
15826      # MinGW DLLs use traditional 'lib' prefix
15827      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15828      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15829      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15830        # It is most probably a Windows format PATH printed by
15831        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15832        # path with ; separators, and with drive letters. We can handle the
15833        # drive letters (cygwin fileutils understands them), so leave them,
15834        # especially as we might pass files found there to a mingw objdump,
15835        # which wouldn't understand a cygwinified path. Ahh.
15836        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15837      else
15838        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15839      fi
15840      ;;
15841    pw32*)
15842      # pw32 DLLs use 'pw' prefix rather than 'lib'
15843      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15844      ;;
15845    esac
15846    ;;
15847
15848  *)
15849    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15850    ;;
15851  esac
15852  dynamic_linker='Win32 ld.exe'
15853  # FIXME: first we should search . and the directory the executable is in
15854  shlibpath_var=PATH
15855  ;;
15856
15857darwin* | rhapsody*)
15858  dynamic_linker="$host_os dyld"
15859  version_type=darwin
15860  need_lib_prefix=no
15861  need_version=no
15862  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15863  soname_spec='${libname}${release}${major}$shared_ext'
15864  shlibpath_overrides_runpath=yes
15865  shlibpath_var=DYLD_LIBRARY_PATH
15866  shrext_cmds='.dylib'
15867  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15868  if test "$GCC" = yes; then
15869    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"`
15870  else
15871    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15872  fi
15873  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15874  ;;
15875
15876dgux*)
15877  version_type=linux
15878  need_lib_prefix=no
15879  need_version=no
15880  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15881  soname_spec='${libname}${release}${shared_ext}$major'
15882  shlibpath_var=LD_LIBRARY_PATH
15883  ;;
15884
15885freebsd1*)
15886  dynamic_linker=no
15887  ;;
15888
15889kfreebsd*-gnu)
15890  version_type=linux
15891  need_lib_prefix=no
15892  need_version=no
15893  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15894  soname_spec='${libname}${release}${shared_ext}$major'
15895  shlibpath_var=LD_LIBRARY_PATH
15896  shlibpath_overrides_runpath=no
15897  hardcode_into_libs=yes
15898  dynamic_linker='GNU ld.so'
15899  ;;
15900
15901freebsd* | dragonfly*)
15902  # DragonFly does not have aout.  When/if they implement a new
15903  # versioning mechanism, adjust this.
15904  if test -x /usr/bin/objformat; then
15905    objformat=`/usr/bin/objformat`
15906  else
15907    case $host_os in
15908    freebsd[123]*) objformat=aout ;;
15909    *) objformat=elf ;;
15910    esac
15911  fi
15912  version_type=freebsd-$objformat
15913  case $version_type in
15914    freebsd-elf*)
15915      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15916      need_version=no
15917      need_lib_prefix=no
15918      ;;
15919    freebsd-*)
15920      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15921      need_version=yes
15922      ;;
15923  esac
15924  shlibpath_var=LD_LIBRARY_PATH
15925  case $host_os in
15926  freebsd2*)
15927    shlibpath_overrides_runpath=yes
15928    ;;
15929  freebsd3.[01]* | freebsdelf3.[01]*)
15930    shlibpath_overrides_runpath=yes
15931    hardcode_into_libs=yes
15932    ;;
15933  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15934  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15935    shlibpath_overrides_runpath=no
15936    hardcode_into_libs=yes
15937    ;;
15938  freebsd*) # from 4.6 on
15939    shlibpath_overrides_runpath=yes
15940    hardcode_into_libs=yes
15941    ;;
15942  esac
15943  ;;
15944
15945gnu*)
15946  version_type=linux
15947  need_lib_prefix=no
15948  need_version=no
15949  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15950  soname_spec='${libname}${release}${shared_ext}$major'
15951  shlibpath_var=LD_LIBRARY_PATH
15952  hardcode_into_libs=yes
15953  ;;
15954
15955hpux9* | hpux10* | hpux11*)
15956  # Give a soname corresponding to the major version so that dld.sl refuses to
15957  # link against other versions.
15958  version_type=sunos
15959  need_lib_prefix=no
15960  need_version=no
15961  case $host_cpu in
15962  ia64*)
15963    shrext_cmds='.so'
15964    hardcode_into_libs=yes
15965    dynamic_linker="$host_os dld.so"
15966    shlibpath_var=LD_LIBRARY_PATH
15967    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15968    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15969    soname_spec='${libname}${release}${shared_ext}$major'
15970    if test "X$HPUX_IA64_MODE" = X32; then
15971      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15972    else
15973      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15974    fi
15975    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15976    ;;
15977   hppa*64*)
15978     shrext_cmds='.sl'
15979     hardcode_into_libs=yes
15980     dynamic_linker="$host_os dld.sl"
15981     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15982     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15983     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15984     soname_spec='${libname}${release}${shared_ext}$major'
15985     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15986     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15987     ;;
15988   *)
15989    shrext_cmds='.sl'
15990    dynamic_linker="$host_os dld.sl"
15991    shlibpath_var=SHLIB_PATH
15992    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15993    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15994    soname_spec='${libname}${release}${shared_ext}$major'
15995    ;;
15996  esac
15997  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15998  postinstall_cmds='chmod 555 $lib'
15999  ;;
16000
16001interix3*)
16002  version_type=linux
16003  need_lib_prefix=no
16004  need_version=no
16005  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16006  soname_spec='${libname}${release}${shared_ext}$major'
16007  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16008  shlibpath_var=LD_LIBRARY_PATH
16009  shlibpath_overrides_runpath=no
16010  hardcode_into_libs=yes
16011  ;;
16012
16013irix5* | irix6* | nonstopux*)
16014  case $host_os in
16015    nonstopux*) version_type=nonstopux ;;
16016    *)
16017	if test "$lt_cv_prog_gnu_ld" = yes; then
16018		version_type=linux
16019	else
16020		version_type=irix
16021	fi ;;
16022  esac
16023  need_lib_prefix=no
16024  need_version=no
16025  soname_spec='${libname}${release}${shared_ext}$major'
16026  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16027  case $host_os in
16028  irix5* | nonstopux*)
16029    libsuff= shlibsuff=
16030    ;;
16031  *)
16032    case $LD in # libtool.m4 will add one of these switches to LD
16033    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16034      libsuff= shlibsuff= libmagic=32-bit;;
16035    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16036      libsuff=32 shlibsuff=N32 libmagic=N32;;
16037    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16038      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16039    *) libsuff= shlibsuff= libmagic=never-match;;
16040    esac
16041    ;;
16042  esac
16043  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16044  shlibpath_overrides_runpath=no
16045  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16046  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16047  hardcode_into_libs=yes
16048  ;;
16049
16050# No shared lib support for Linux oldld, aout, or coff.
16051linux*oldld* | linux*aout* | linux*coff*)
16052  dynamic_linker=no
16053  ;;
16054
16055# This must be Linux ELF.
16056linux*)
16057  version_type=linux
16058  need_lib_prefix=no
16059  need_version=no
16060  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16061  soname_spec='${libname}${release}${shared_ext}$major'
16062  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16063  shlibpath_var=LD_LIBRARY_PATH
16064  shlibpath_overrides_runpath=no
16065  # This implies no fast_install, which is unacceptable.
16066  # Some rework will be needed to allow for fast_install
16067  # before this can be enabled.
16068  hardcode_into_libs=yes
16069
16070  # Append ld.so.conf contents to the search path
16071  if test -f /etc/ld.so.conf; then
16072    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' ' '`
16073    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16074  fi
16075
16076  # We used to test for /lib/ld.so.1 and disable shared libraries on
16077  # powerpc, because MkLinux only supported shared libraries with the
16078  # GNU dynamic linker.  Since this was broken with cross compilers,
16079  # most powerpc-linux boxes support dynamic linking these days and
16080  # people can always --disable-shared, the test was removed, and we
16081  # assume the GNU/Linux dynamic linker is in use.
16082  dynamic_linker='GNU/Linux ld.so'
16083  ;;
16084
16085knetbsd*-gnu)
16086  version_type=linux
16087  need_lib_prefix=no
16088  need_version=no
16089  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16090  soname_spec='${libname}${release}${shared_ext}$major'
16091  shlibpath_var=LD_LIBRARY_PATH
16092  shlibpath_overrides_runpath=no
16093  hardcode_into_libs=yes
16094  dynamic_linker='GNU ld.so'
16095  ;;
16096
16097netbsd*)
16098  version_type=sunos
16099  need_lib_prefix=no
16100  need_version=no
16101  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16102    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16103    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16104    dynamic_linker='NetBSD (a.out) ld.so'
16105  else
16106    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16107    soname_spec='${libname}${release}${shared_ext}$major'
16108    dynamic_linker='NetBSD ld.elf_so'
16109  fi
16110  shlibpath_var=LD_LIBRARY_PATH
16111  shlibpath_overrides_runpath=yes
16112  hardcode_into_libs=yes
16113  ;;
16114
16115newsos6)
16116  version_type=linux
16117  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16118  shlibpath_var=LD_LIBRARY_PATH
16119  shlibpath_overrides_runpath=yes
16120  ;;
16121
16122nto-qnx*)
16123  version_type=linux
16124  need_lib_prefix=no
16125  need_version=no
16126  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16127  soname_spec='${libname}${release}${shared_ext}$major'
16128  shlibpath_var=LD_LIBRARY_PATH
16129  shlibpath_overrides_runpath=yes
16130  ;;
16131
16132openbsd*)
16133  version_type=sunos
16134  sys_lib_dlsearch_path_spec="/usr/lib"
16135  need_lib_prefix=no
16136  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16137  case $host_os in
16138    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16139    *)                         need_version=no  ;;
16140  esac
16141  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16142  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16143  shlibpath_var=LD_LIBRARY_PATH
16144  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16145    case $host_os in
16146      openbsd2.[89] | openbsd2.[89].*)
16147	shlibpath_overrides_runpath=no
16148	;;
16149      *)
16150	shlibpath_overrides_runpath=yes
16151	;;
16152      esac
16153  else
16154    shlibpath_overrides_runpath=yes
16155  fi
16156  ;;
16157
16158os2*)
16159  libname_spec='$name'
16160  shrext_cmds=".dll"
16161  need_lib_prefix=no
16162  library_names_spec='$libname${shared_ext} $libname.a'
16163  dynamic_linker='OS/2 ld.exe'
16164  shlibpath_var=LIBPATH
16165  ;;
16166
16167osf3* | osf4* | osf5*)
16168  version_type=osf
16169  need_lib_prefix=no
16170  need_version=no
16171  soname_spec='${libname}${release}${shared_ext}$major'
16172  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16173  shlibpath_var=LD_LIBRARY_PATH
16174  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16175  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16176  ;;
16177
16178solaris*)
16179  version_type=linux
16180  need_lib_prefix=no
16181  need_version=no
16182  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16183  soname_spec='${libname}${release}${shared_ext}$major'
16184  shlibpath_var=LD_LIBRARY_PATH
16185  shlibpath_overrides_runpath=yes
16186  hardcode_into_libs=yes
16187  # ldd complains unless libraries are executable
16188  postinstall_cmds='chmod +x $lib'
16189  ;;
16190
16191sunos4*)
16192  version_type=sunos
16193  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16194  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16195  shlibpath_var=LD_LIBRARY_PATH
16196  shlibpath_overrides_runpath=yes
16197  if test "$with_gnu_ld" = yes; then
16198    need_lib_prefix=no
16199  fi
16200  need_version=yes
16201  ;;
16202
16203sysv4 | sysv4.3*)
16204  version_type=linux
16205  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16206  soname_spec='${libname}${release}${shared_ext}$major'
16207  shlibpath_var=LD_LIBRARY_PATH
16208  case $host_vendor in
16209    sni)
16210      shlibpath_overrides_runpath=no
16211      need_lib_prefix=no
16212      export_dynamic_flag_spec='${wl}-Blargedynsym'
16213      runpath_var=LD_RUN_PATH
16214      ;;
16215    siemens)
16216      need_lib_prefix=no
16217      ;;
16218    motorola)
16219      need_lib_prefix=no
16220      need_version=no
16221      shlibpath_overrides_runpath=no
16222      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16223      ;;
16224  esac
16225  ;;
16226
16227sysv4*MP*)
16228  if test -d /usr/nec ;then
16229    version_type=linux
16230    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16231    soname_spec='$libname${shared_ext}.$major'
16232    shlibpath_var=LD_LIBRARY_PATH
16233  fi
16234  ;;
16235
16236sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16237  version_type=freebsd-elf
16238  need_lib_prefix=no
16239  need_version=no
16240  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16241  soname_spec='${libname}${release}${shared_ext}$major'
16242  shlibpath_var=LD_LIBRARY_PATH
16243  hardcode_into_libs=yes
16244  if test "$with_gnu_ld" = yes; then
16245    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16246    shlibpath_overrides_runpath=no
16247  else
16248    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16249    shlibpath_overrides_runpath=yes
16250    case $host_os in
16251      sco3.2v5*)
16252        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16253	;;
16254    esac
16255  fi
16256  sys_lib_dlsearch_path_spec='/usr/lib'
16257  ;;
16258
16259uts4*)
16260  version_type=linux
16261  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16262  soname_spec='${libname}${release}${shared_ext}$major'
16263  shlibpath_var=LD_LIBRARY_PATH
16264  ;;
16265
16266*)
16267  dynamic_linker=no
16268  ;;
16269esac
16270{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16271echo "${ECHO_T}$dynamic_linker" >&6; }
16272test "$dynamic_linker" = no && can_build_shared=no
16273
16274variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16275if test "$GCC" = yes; then
16276  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16277fi
16278
16279{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16280echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16281hardcode_action=
16282if test -n "$hardcode_libdir_flag_spec" || \
16283   test -n "$runpath_var" || \
16284   test "X$hardcode_automatic" = "Xyes" ; then
16285
16286  # We can hardcode non-existant directories.
16287  if test "$hardcode_direct" != no &&
16288     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16289     # have to relink, otherwise we might link with an installed library
16290     # when we should be linking with a yet-to-be-installed one
16291     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16292     test "$hardcode_minus_L" != no; then
16293    # Linking always hardcodes the temporary library directory.
16294    hardcode_action=relink
16295  else
16296    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16297    hardcode_action=immediate
16298  fi
16299else
16300  # We cannot hardcode anything, or else we can only hardcode existing
16301  # directories.
16302  hardcode_action=unsupported
16303fi
16304{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16305echo "${ECHO_T}$hardcode_action" >&6; }
16306
16307if test "$hardcode_action" = relink; then
16308  # Fast installation is not supported
16309  enable_fast_install=no
16310elif test "$shlibpath_overrides_runpath" = yes ||
16311     test "$enable_shared" = no; then
16312  # Fast installation is not necessary
16313  enable_fast_install=needless
16314fi
16315
16316striplib=
16317old_striplib=
16318{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16319echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16320if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16321  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16322  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16323  { echo "$as_me:$LINENO: result: yes" >&5
16324echo "${ECHO_T}yes" >&6; }
16325else
16326# FIXME - insert some real tests, host_os isn't really good enough
16327  case $host_os in
16328   darwin*)
16329       if test -n "$STRIP" ; then
16330         striplib="$STRIP -x"
16331         { echo "$as_me:$LINENO: result: yes" >&5
16332echo "${ECHO_T}yes" >&6; }
16333       else
16334  { echo "$as_me:$LINENO: result: no" >&5
16335echo "${ECHO_T}no" >&6; }
16336fi
16337       ;;
16338   *)
16339  { echo "$as_me:$LINENO: result: no" >&5
16340echo "${ECHO_T}no" >&6; }
16341    ;;
16342  esac
16343fi
16344
16345if test "x$enable_dlopen" != xyes; then
16346  enable_dlopen=unknown
16347  enable_dlopen_self=unknown
16348  enable_dlopen_self_static=unknown
16349else
16350  lt_cv_dlopen=no
16351  lt_cv_dlopen_libs=
16352
16353  case $host_os in
16354  beos*)
16355    lt_cv_dlopen="load_add_on"
16356    lt_cv_dlopen_libs=
16357    lt_cv_dlopen_self=yes
16358    ;;
16359
16360  mingw* | pw32*)
16361    lt_cv_dlopen="LoadLibrary"
16362    lt_cv_dlopen_libs=
16363   ;;
16364
16365  cygwin*)
16366    lt_cv_dlopen="dlopen"
16367    lt_cv_dlopen_libs=
16368   ;;
16369
16370  darwin*)
16371  # if libdl is installed we need to link against it
16372    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16373echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16374if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16375  echo $ECHO_N "(cached) $ECHO_C" >&6
16376else
16377  ac_check_lib_save_LIBS=$LIBS
16378LIBS="-ldl  $LIBS"
16379cat >conftest.$ac_ext <<_ACEOF
16380/* confdefs.h.  */
16381_ACEOF
16382cat confdefs.h >>conftest.$ac_ext
16383cat >>conftest.$ac_ext <<_ACEOF
16384/* end confdefs.h.  */
16385
16386/* Override any GCC internal prototype to avoid an error.
16387   Use char because int might match the return type of a GCC
16388   builtin and then its argument prototype would still apply.  */
16389#ifdef __cplusplus
16390extern "C"
16391#endif
16392char dlopen ();
16393int
16394main ()
16395{
16396return dlopen ();
16397  ;
16398  return 0;
16399}
16400_ACEOF
16401rm -f conftest.$ac_objext conftest$ac_exeext
16402if { (ac_try="$ac_link"
16403case "(($ac_try" in
16404  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16405  *) ac_try_echo=$ac_try;;
16406esac
16407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16408  (eval "$ac_link") 2>conftest.er1
16409  ac_status=$?
16410  grep -v '^ *+' conftest.er1 >conftest.err
16411  rm -f conftest.er1
16412  cat conftest.err >&5
16413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414  (exit $ac_status); } &&
16415	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16416  { (case "(($ac_try" in
16417  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16418  *) ac_try_echo=$ac_try;;
16419esac
16420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16421  (eval "$ac_try") 2>&5
16422  ac_status=$?
16423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424  (exit $ac_status); }; } &&
16425	 { ac_try='test -s conftest$ac_exeext'
16426  { (case "(($ac_try" in
16427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16428  *) ac_try_echo=$ac_try;;
16429esac
16430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16431  (eval "$ac_try") 2>&5
16432  ac_status=$?
16433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434  (exit $ac_status); }; }; then
16435  ac_cv_lib_dl_dlopen=yes
16436else
16437  echo "$as_me: failed program was:" >&5
16438sed 's/^/| /' conftest.$ac_ext >&5
16439
16440	ac_cv_lib_dl_dlopen=no
16441fi
16442
16443rm -f core conftest.err conftest.$ac_objext \
16444      conftest$ac_exeext conftest.$ac_ext
16445LIBS=$ac_check_lib_save_LIBS
16446fi
16447{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16448echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16449if test $ac_cv_lib_dl_dlopen = yes; then
16450  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16451else
16452
16453    lt_cv_dlopen="dyld"
16454    lt_cv_dlopen_libs=
16455    lt_cv_dlopen_self=yes
16456
16457fi
16458
16459   ;;
16460
16461  *)
16462    { echo "$as_me:$LINENO: checking for shl_load" >&5
16463echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16464if test "${ac_cv_func_shl_load+set}" = set; then
16465  echo $ECHO_N "(cached) $ECHO_C" >&6
16466else
16467  cat >conftest.$ac_ext <<_ACEOF
16468/* confdefs.h.  */
16469_ACEOF
16470cat confdefs.h >>conftest.$ac_ext
16471cat >>conftest.$ac_ext <<_ACEOF
16472/* end confdefs.h.  */
16473/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16474   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16475#define shl_load innocuous_shl_load
16476
16477/* System header to define __stub macros and hopefully few prototypes,
16478    which can conflict with char shl_load (); below.
16479    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16480    <limits.h> exists even on freestanding compilers.  */
16481
16482#ifdef __STDC__
16483# include <limits.h>
16484#else
16485# include <assert.h>
16486#endif
16487
16488#undef shl_load
16489
16490/* Override any GCC internal prototype to avoid an error.
16491   Use char because int might match the return type of a GCC
16492   builtin and then its argument prototype would still apply.  */
16493#ifdef __cplusplus
16494extern "C"
16495#endif
16496char shl_load ();
16497/* The GNU C library defines this for functions which it implements
16498    to always fail with ENOSYS.  Some functions are actually named
16499    something starting with __ and the normal name is an alias.  */
16500#if defined __stub_shl_load || defined __stub___shl_load
16501choke me
16502#endif
16503
16504int
16505main ()
16506{
16507return shl_load ();
16508  ;
16509  return 0;
16510}
16511_ACEOF
16512rm -f conftest.$ac_objext conftest$ac_exeext
16513if { (ac_try="$ac_link"
16514case "(($ac_try" in
16515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16516  *) ac_try_echo=$ac_try;;
16517esac
16518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16519  (eval "$ac_link") 2>conftest.er1
16520  ac_status=$?
16521  grep -v '^ *+' conftest.er1 >conftest.err
16522  rm -f conftest.er1
16523  cat conftest.err >&5
16524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525  (exit $ac_status); } &&
16526	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16527  { (case "(($ac_try" in
16528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16529  *) ac_try_echo=$ac_try;;
16530esac
16531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16532  (eval "$ac_try") 2>&5
16533  ac_status=$?
16534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535  (exit $ac_status); }; } &&
16536	 { ac_try='test -s conftest$ac_exeext'
16537  { (case "(($ac_try" in
16538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16539  *) ac_try_echo=$ac_try;;
16540esac
16541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16542  (eval "$ac_try") 2>&5
16543  ac_status=$?
16544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545  (exit $ac_status); }; }; then
16546  ac_cv_func_shl_load=yes
16547else
16548  echo "$as_me: failed program was:" >&5
16549sed 's/^/| /' conftest.$ac_ext >&5
16550
16551	ac_cv_func_shl_load=no
16552fi
16553
16554rm -f core conftest.err conftest.$ac_objext \
16555      conftest$ac_exeext conftest.$ac_ext
16556fi
16557{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16558echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16559if test $ac_cv_func_shl_load = yes; then
16560  lt_cv_dlopen="shl_load"
16561else
16562  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16563echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16564if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16565  echo $ECHO_N "(cached) $ECHO_C" >&6
16566else
16567  ac_check_lib_save_LIBS=$LIBS
16568LIBS="-ldld  $LIBS"
16569cat >conftest.$ac_ext <<_ACEOF
16570/* confdefs.h.  */
16571_ACEOF
16572cat confdefs.h >>conftest.$ac_ext
16573cat >>conftest.$ac_ext <<_ACEOF
16574/* end confdefs.h.  */
16575
16576/* Override any GCC internal prototype to avoid an error.
16577   Use char because int might match the return type of a GCC
16578   builtin and then its argument prototype would still apply.  */
16579#ifdef __cplusplus
16580extern "C"
16581#endif
16582char shl_load ();
16583int
16584main ()
16585{
16586return shl_load ();
16587  ;
16588  return 0;
16589}
16590_ACEOF
16591rm -f conftest.$ac_objext conftest$ac_exeext
16592if { (ac_try="$ac_link"
16593case "(($ac_try" in
16594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16595  *) ac_try_echo=$ac_try;;
16596esac
16597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16598  (eval "$ac_link") 2>conftest.er1
16599  ac_status=$?
16600  grep -v '^ *+' conftest.er1 >conftest.err
16601  rm -f conftest.er1
16602  cat conftest.err >&5
16603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604  (exit $ac_status); } &&
16605	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16606  { (case "(($ac_try" in
16607  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16608  *) ac_try_echo=$ac_try;;
16609esac
16610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16611  (eval "$ac_try") 2>&5
16612  ac_status=$?
16613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614  (exit $ac_status); }; } &&
16615	 { ac_try='test -s conftest$ac_exeext'
16616  { (case "(($ac_try" in
16617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16618  *) ac_try_echo=$ac_try;;
16619esac
16620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16621  (eval "$ac_try") 2>&5
16622  ac_status=$?
16623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624  (exit $ac_status); }; }; then
16625  ac_cv_lib_dld_shl_load=yes
16626else
16627  echo "$as_me: failed program was:" >&5
16628sed 's/^/| /' conftest.$ac_ext >&5
16629
16630	ac_cv_lib_dld_shl_load=no
16631fi
16632
16633rm -f core conftest.err conftest.$ac_objext \
16634      conftest$ac_exeext conftest.$ac_ext
16635LIBS=$ac_check_lib_save_LIBS
16636fi
16637{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16638echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16639if test $ac_cv_lib_dld_shl_load = yes; then
16640  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16641else
16642  { echo "$as_me:$LINENO: checking for dlopen" >&5
16643echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16644if test "${ac_cv_func_dlopen+set}" = set; then
16645  echo $ECHO_N "(cached) $ECHO_C" >&6
16646else
16647  cat >conftest.$ac_ext <<_ACEOF
16648/* confdefs.h.  */
16649_ACEOF
16650cat confdefs.h >>conftest.$ac_ext
16651cat >>conftest.$ac_ext <<_ACEOF
16652/* end confdefs.h.  */
16653/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16654   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16655#define dlopen innocuous_dlopen
16656
16657/* System header to define __stub macros and hopefully few prototypes,
16658    which can conflict with char dlopen (); below.
16659    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16660    <limits.h> exists even on freestanding compilers.  */
16661
16662#ifdef __STDC__
16663# include <limits.h>
16664#else
16665# include <assert.h>
16666#endif
16667
16668#undef dlopen
16669
16670/* Override any GCC internal prototype to avoid an error.
16671   Use char because int might match the return type of a GCC
16672   builtin and then its argument prototype would still apply.  */
16673#ifdef __cplusplus
16674extern "C"
16675#endif
16676char dlopen ();
16677/* The GNU C library defines this for functions which it implements
16678    to always fail with ENOSYS.  Some functions are actually named
16679    something starting with __ and the normal name is an alias.  */
16680#if defined __stub_dlopen || defined __stub___dlopen
16681choke me
16682#endif
16683
16684int
16685main ()
16686{
16687return dlopen ();
16688  ;
16689  return 0;
16690}
16691_ACEOF
16692rm -f conftest.$ac_objext conftest$ac_exeext
16693if { (ac_try="$ac_link"
16694case "(($ac_try" in
16695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16696  *) ac_try_echo=$ac_try;;
16697esac
16698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16699  (eval "$ac_link") 2>conftest.er1
16700  ac_status=$?
16701  grep -v '^ *+' conftest.er1 >conftest.err
16702  rm -f conftest.er1
16703  cat conftest.err >&5
16704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705  (exit $ac_status); } &&
16706	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16707  { (case "(($ac_try" in
16708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16709  *) ac_try_echo=$ac_try;;
16710esac
16711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16712  (eval "$ac_try") 2>&5
16713  ac_status=$?
16714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715  (exit $ac_status); }; } &&
16716	 { ac_try='test -s conftest$ac_exeext'
16717  { (case "(($ac_try" in
16718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16719  *) ac_try_echo=$ac_try;;
16720esac
16721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16722  (eval "$ac_try") 2>&5
16723  ac_status=$?
16724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725  (exit $ac_status); }; }; then
16726  ac_cv_func_dlopen=yes
16727else
16728  echo "$as_me: failed program was:" >&5
16729sed 's/^/| /' conftest.$ac_ext >&5
16730
16731	ac_cv_func_dlopen=no
16732fi
16733
16734rm -f core conftest.err conftest.$ac_objext \
16735      conftest$ac_exeext conftest.$ac_ext
16736fi
16737{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16738echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16739if test $ac_cv_func_dlopen = yes; then
16740  lt_cv_dlopen="dlopen"
16741else
16742  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16743echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16744if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16745  echo $ECHO_N "(cached) $ECHO_C" >&6
16746else
16747  ac_check_lib_save_LIBS=$LIBS
16748LIBS="-ldl  $LIBS"
16749cat >conftest.$ac_ext <<_ACEOF
16750/* confdefs.h.  */
16751_ACEOF
16752cat confdefs.h >>conftest.$ac_ext
16753cat >>conftest.$ac_ext <<_ACEOF
16754/* end confdefs.h.  */
16755
16756/* Override any GCC internal prototype to avoid an error.
16757   Use char because int might match the return type of a GCC
16758   builtin and then its argument prototype would still apply.  */
16759#ifdef __cplusplus
16760extern "C"
16761#endif
16762char dlopen ();
16763int
16764main ()
16765{
16766return dlopen ();
16767  ;
16768  return 0;
16769}
16770_ACEOF
16771rm -f conftest.$ac_objext conftest$ac_exeext
16772if { (ac_try="$ac_link"
16773case "(($ac_try" in
16774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16775  *) ac_try_echo=$ac_try;;
16776esac
16777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16778  (eval "$ac_link") 2>conftest.er1
16779  ac_status=$?
16780  grep -v '^ *+' conftest.er1 >conftest.err
16781  rm -f conftest.er1
16782  cat conftest.err >&5
16783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784  (exit $ac_status); } &&
16785	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16786  { (case "(($ac_try" in
16787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16788  *) ac_try_echo=$ac_try;;
16789esac
16790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16791  (eval "$ac_try") 2>&5
16792  ac_status=$?
16793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794  (exit $ac_status); }; } &&
16795	 { ac_try='test -s conftest$ac_exeext'
16796  { (case "(($ac_try" in
16797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16798  *) ac_try_echo=$ac_try;;
16799esac
16800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16801  (eval "$ac_try") 2>&5
16802  ac_status=$?
16803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804  (exit $ac_status); }; }; then
16805  ac_cv_lib_dl_dlopen=yes
16806else
16807  echo "$as_me: failed program was:" >&5
16808sed 's/^/| /' conftest.$ac_ext >&5
16809
16810	ac_cv_lib_dl_dlopen=no
16811fi
16812
16813rm -f core conftest.err conftest.$ac_objext \
16814      conftest$ac_exeext conftest.$ac_ext
16815LIBS=$ac_check_lib_save_LIBS
16816fi
16817{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16818echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16819if test $ac_cv_lib_dl_dlopen = yes; then
16820  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16821else
16822  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16823echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16824if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16825  echo $ECHO_N "(cached) $ECHO_C" >&6
16826else
16827  ac_check_lib_save_LIBS=$LIBS
16828LIBS="-lsvld  $LIBS"
16829cat >conftest.$ac_ext <<_ACEOF
16830/* confdefs.h.  */
16831_ACEOF
16832cat confdefs.h >>conftest.$ac_ext
16833cat >>conftest.$ac_ext <<_ACEOF
16834/* end confdefs.h.  */
16835
16836/* Override any GCC internal prototype to avoid an error.
16837   Use char because int might match the return type of a GCC
16838   builtin and then its argument prototype would still apply.  */
16839#ifdef __cplusplus
16840extern "C"
16841#endif
16842char dlopen ();
16843int
16844main ()
16845{
16846return dlopen ();
16847  ;
16848  return 0;
16849}
16850_ACEOF
16851rm -f conftest.$ac_objext conftest$ac_exeext
16852if { (ac_try="$ac_link"
16853case "(($ac_try" in
16854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16855  *) ac_try_echo=$ac_try;;
16856esac
16857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16858  (eval "$ac_link") 2>conftest.er1
16859  ac_status=$?
16860  grep -v '^ *+' conftest.er1 >conftest.err
16861  rm -f conftest.er1
16862  cat conftest.err >&5
16863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864  (exit $ac_status); } &&
16865	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16866  { (case "(($ac_try" in
16867  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16868  *) ac_try_echo=$ac_try;;
16869esac
16870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16871  (eval "$ac_try") 2>&5
16872  ac_status=$?
16873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874  (exit $ac_status); }; } &&
16875	 { ac_try='test -s conftest$ac_exeext'
16876  { (case "(($ac_try" in
16877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16878  *) ac_try_echo=$ac_try;;
16879esac
16880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16881  (eval "$ac_try") 2>&5
16882  ac_status=$?
16883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884  (exit $ac_status); }; }; then
16885  ac_cv_lib_svld_dlopen=yes
16886else
16887  echo "$as_me: failed program was:" >&5
16888sed 's/^/| /' conftest.$ac_ext >&5
16889
16890	ac_cv_lib_svld_dlopen=no
16891fi
16892
16893rm -f core conftest.err conftest.$ac_objext \
16894      conftest$ac_exeext conftest.$ac_ext
16895LIBS=$ac_check_lib_save_LIBS
16896fi
16897{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16898echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16899if test $ac_cv_lib_svld_dlopen = yes; then
16900  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16901else
16902  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16903echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16904if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16905  echo $ECHO_N "(cached) $ECHO_C" >&6
16906else
16907  ac_check_lib_save_LIBS=$LIBS
16908LIBS="-ldld  $LIBS"
16909cat >conftest.$ac_ext <<_ACEOF
16910/* confdefs.h.  */
16911_ACEOF
16912cat confdefs.h >>conftest.$ac_ext
16913cat >>conftest.$ac_ext <<_ACEOF
16914/* end confdefs.h.  */
16915
16916/* Override any GCC internal prototype to avoid an error.
16917   Use char because int might match the return type of a GCC
16918   builtin and then its argument prototype would still apply.  */
16919#ifdef __cplusplus
16920extern "C"
16921#endif
16922char dld_link ();
16923int
16924main ()
16925{
16926return dld_link ();
16927  ;
16928  return 0;
16929}
16930_ACEOF
16931rm -f conftest.$ac_objext conftest$ac_exeext
16932if { (ac_try="$ac_link"
16933case "(($ac_try" in
16934  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935  *) ac_try_echo=$ac_try;;
16936esac
16937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16938  (eval "$ac_link") 2>conftest.er1
16939  ac_status=$?
16940  grep -v '^ *+' conftest.er1 >conftest.err
16941  rm -f conftest.er1
16942  cat conftest.err >&5
16943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944  (exit $ac_status); } &&
16945	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16946  { (case "(($ac_try" in
16947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948  *) ac_try_echo=$ac_try;;
16949esac
16950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16951  (eval "$ac_try") 2>&5
16952  ac_status=$?
16953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954  (exit $ac_status); }; } &&
16955	 { ac_try='test -s conftest$ac_exeext'
16956  { (case "(($ac_try" in
16957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16958  *) ac_try_echo=$ac_try;;
16959esac
16960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16961  (eval "$ac_try") 2>&5
16962  ac_status=$?
16963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964  (exit $ac_status); }; }; then
16965  ac_cv_lib_dld_dld_link=yes
16966else
16967  echo "$as_me: failed program was:" >&5
16968sed 's/^/| /' conftest.$ac_ext >&5
16969
16970	ac_cv_lib_dld_dld_link=no
16971fi
16972
16973rm -f core conftest.err conftest.$ac_objext \
16974      conftest$ac_exeext conftest.$ac_ext
16975LIBS=$ac_check_lib_save_LIBS
16976fi
16977{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16978echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
16979if test $ac_cv_lib_dld_dld_link = yes; then
16980  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16981fi
16982
16983
16984fi
16985
16986
16987fi
16988
16989
16990fi
16991
16992
16993fi
16994
16995
16996fi
16997
16998    ;;
16999  esac
17000
17001  if test "x$lt_cv_dlopen" != xno; then
17002    enable_dlopen=yes
17003  else
17004    enable_dlopen=no
17005  fi
17006
17007  case $lt_cv_dlopen in
17008  dlopen)
17009    save_CPPFLAGS="$CPPFLAGS"
17010    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17011
17012    save_LDFLAGS="$LDFLAGS"
17013    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17014
17015    save_LIBS="$LIBS"
17016    LIBS="$lt_cv_dlopen_libs $LIBS"
17017
17018    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17019echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17020if test "${lt_cv_dlopen_self+set}" = set; then
17021  echo $ECHO_N "(cached) $ECHO_C" >&6
17022else
17023  	  if test "$cross_compiling" = yes; then :
17024  lt_cv_dlopen_self=cross
17025else
17026  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17027  lt_status=$lt_dlunknown
17028  cat > conftest.$ac_ext <<EOF
17029#line 17029 "configure"
17030#include "confdefs.h"
17031
17032#if HAVE_DLFCN_H
17033#include <dlfcn.h>
17034#endif
17035
17036#include <stdio.h>
17037
17038#ifdef RTLD_GLOBAL
17039#  define LT_DLGLOBAL		RTLD_GLOBAL
17040#else
17041#  ifdef DL_GLOBAL
17042#    define LT_DLGLOBAL		DL_GLOBAL
17043#  else
17044#    define LT_DLGLOBAL		0
17045#  endif
17046#endif
17047
17048/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17049   find out it does not work in some platform. */
17050#ifndef LT_DLLAZY_OR_NOW
17051#  ifdef RTLD_LAZY
17052#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17053#  else
17054#    ifdef DL_LAZY
17055#      define LT_DLLAZY_OR_NOW		DL_LAZY
17056#    else
17057#      ifdef RTLD_NOW
17058#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17059#      else
17060#        ifdef DL_NOW
17061#          define LT_DLLAZY_OR_NOW	DL_NOW
17062#        else
17063#          define LT_DLLAZY_OR_NOW	0
17064#        endif
17065#      endif
17066#    endif
17067#  endif
17068#endif
17069
17070#ifdef __cplusplus
17071extern "C" void exit (int);
17072#endif
17073
17074void fnord() { int i=42;}
17075int main ()
17076{
17077  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17078  int status = $lt_dlunknown;
17079
17080  if (self)
17081    {
17082      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17083      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17084      /* dlclose (self); */
17085    }
17086  else
17087    puts (dlerror ());
17088
17089    exit (status);
17090}
17091EOF
17092  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17093  (eval $ac_link) 2>&5
17094  ac_status=$?
17095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17097    (./conftest; exit; ) >&5 2>/dev/null
17098    lt_status=$?
17099    case x$lt_status in
17100      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17101      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17102      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17103    esac
17104  else :
17105    # compilation failed
17106    lt_cv_dlopen_self=no
17107  fi
17108fi
17109rm -fr conftest*
17110
17111
17112fi
17113{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17114echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17115
17116    if test "x$lt_cv_dlopen_self" = xyes; then
17117      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17118      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17119echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17120if test "${lt_cv_dlopen_self_static+set}" = set; then
17121  echo $ECHO_N "(cached) $ECHO_C" >&6
17122else
17123  	  if test "$cross_compiling" = yes; then :
17124  lt_cv_dlopen_self_static=cross
17125else
17126  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17127  lt_status=$lt_dlunknown
17128  cat > conftest.$ac_ext <<EOF
17129#line 17129 "configure"
17130#include "confdefs.h"
17131
17132#if HAVE_DLFCN_H
17133#include <dlfcn.h>
17134#endif
17135
17136#include <stdio.h>
17137
17138#ifdef RTLD_GLOBAL
17139#  define LT_DLGLOBAL		RTLD_GLOBAL
17140#else
17141#  ifdef DL_GLOBAL
17142#    define LT_DLGLOBAL		DL_GLOBAL
17143#  else
17144#    define LT_DLGLOBAL		0
17145#  endif
17146#endif
17147
17148/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17149   find out it does not work in some platform. */
17150#ifndef LT_DLLAZY_OR_NOW
17151#  ifdef RTLD_LAZY
17152#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17153#  else
17154#    ifdef DL_LAZY
17155#      define LT_DLLAZY_OR_NOW		DL_LAZY
17156#    else
17157#      ifdef RTLD_NOW
17158#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17159#      else
17160#        ifdef DL_NOW
17161#          define LT_DLLAZY_OR_NOW	DL_NOW
17162#        else
17163#          define LT_DLLAZY_OR_NOW	0
17164#        endif
17165#      endif
17166#    endif
17167#  endif
17168#endif
17169
17170#ifdef __cplusplus
17171extern "C" void exit (int);
17172#endif
17173
17174void fnord() { int i=42;}
17175int main ()
17176{
17177  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17178  int status = $lt_dlunknown;
17179
17180  if (self)
17181    {
17182      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17183      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17184      /* dlclose (self); */
17185    }
17186  else
17187    puts (dlerror ());
17188
17189    exit (status);
17190}
17191EOF
17192  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17193  (eval $ac_link) 2>&5
17194  ac_status=$?
17195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17197    (./conftest; exit; ) >&5 2>/dev/null
17198    lt_status=$?
17199    case x$lt_status in
17200      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17201      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17202      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17203    esac
17204  else :
17205    # compilation failed
17206    lt_cv_dlopen_self_static=no
17207  fi
17208fi
17209rm -fr conftest*
17210
17211
17212fi
17213{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17214echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17215    fi
17216
17217    CPPFLAGS="$save_CPPFLAGS"
17218    LDFLAGS="$save_LDFLAGS"
17219    LIBS="$save_LIBS"
17220    ;;
17221  esac
17222
17223  case $lt_cv_dlopen_self in
17224  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17225  *) enable_dlopen_self=unknown ;;
17226  esac
17227
17228  case $lt_cv_dlopen_self_static in
17229  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17230  *) enable_dlopen_self_static=unknown ;;
17231  esac
17232fi
17233
17234
17235# Report which library types will actually be built
17236{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17237echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17238{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17239echo "${ECHO_T}$can_build_shared" >&6; }
17240
17241{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17242echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17243test "$can_build_shared" = "no" && enable_shared=no
17244
17245# On AIX, shared libraries and static libraries use the same namespace, and
17246# are all built from PIC.
17247case $host_os in
17248aix3*)
17249  test "$enable_shared" = yes && enable_static=no
17250  if test -n "$RANLIB"; then
17251    archive_cmds="$archive_cmds~\$RANLIB \$lib"
17252    postinstall_cmds='$RANLIB $lib'
17253  fi
17254  ;;
17255
17256aix4* | aix5*)
17257  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17258    test "$enable_shared" = yes && enable_static=no
17259  fi
17260    ;;
17261esac
17262{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17263echo "${ECHO_T}$enable_shared" >&6; }
17264
17265{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17266echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17267# Make sure either enable_shared or enable_static is yes.
17268test "$enable_shared" = yes || enable_static=yes
17269{ echo "$as_me:$LINENO: result: $enable_static" >&5
17270echo "${ECHO_T}$enable_static" >&6; }
17271
17272# The else clause should only fire when bootstrapping the
17273# libtool distribution, otherwise you forgot to ship ltmain.sh
17274# with your package, and you will get complaints that there are
17275# no rules to generate ltmain.sh.
17276if test -f "$ltmain"; then
17277  # See if we are running on zsh, and set the options which allow our commands through
17278  # without removal of \ escapes.
17279  if test -n "${ZSH_VERSION+set}" ; then
17280    setopt NO_GLOB_SUBST
17281  fi
17282  # Now quote all the things that may contain metacharacters while being
17283  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17284  # variables and quote the copies for generation of the libtool script.
17285  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17286    SED SHELL STRIP \
17287    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17288    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17289    deplibs_check_method reload_flag reload_cmds need_locks \
17290    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17291    lt_cv_sys_global_symbol_to_c_name_address \
17292    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17293    old_postinstall_cmds old_postuninstall_cmds \
17294    compiler \
17295    CC \
17296    LD \
17297    lt_prog_compiler_wl \
17298    lt_prog_compiler_pic \
17299    lt_prog_compiler_static \
17300    lt_prog_compiler_no_builtin_flag \
17301    export_dynamic_flag_spec \
17302    thread_safe_flag_spec \
17303    whole_archive_flag_spec \
17304    enable_shared_with_static_runtimes \
17305    old_archive_cmds \
17306    old_archive_from_new_cmds \
17307    predep_objects \
17308    postdep_objects \
17309    predeps \
17310    postdeps \
17311    compiler_lib_search_path \
17312    archive_cmds \
17313    archive_expsym_cmds \
17314    postinstall_cmds \
17315    postuninstall_cmds \
17316    old_archive_from_expsyms_cmds \
17317    allow_undefined_flag \
17318    no_undefined_flag \
17319    export_symbols_cmds \
17320    hardcode_libdir_flag_spec \
17321    hardcode_libdir_flag_spec_ld \
17322    hardcode_libdir_separator \
17323    hardcode_automatic \
17324    module_cmds \
17325    module_expsym_cmds \
17326    lt_cv_prog_compiler_c_o \
17327    exclude_expsyms \
17328    include_expsyms; do
17329
17330    case $var in
17331    old_archive_cmds | \
17332    old_archive_from_new_cmds | \
17333    archive_cmds | \
17334    archive_expsym_cmds | \
17335    module_cmds | \
17336    module_expsym_cmds | \
17337    old_archive_from_expsyms_cmds | \
17338    export_symbols_cmds | \
17339    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17340    postinstall_cmds | postuninstall_cmds | \
17341    old_postinstall_cmds | old_postuninstall_cmds | \
17342    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17343      # Double-quote double-evaled strings.
17344      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17345      ;;
17346    *)
17347      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17348      ;;
17349    esac
17350  done
17351
17352  case $lt_echo in
17353  *'\$0 --fallback-echo"')
17354    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17355    ;;
17356  esac
17357
17358cfgfile="${ofile}T"
17359  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17360  $rm -f "$cfgfile"
17361  { echo "$as_me:$LINENO: creating $ofile" >&5
17362echo "$as_me: creating $ofile" >&6;}
17363
17364  cat <<__EOF__ >> "$cfgfile"
17365#! $SHELL
17366
17367# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17368# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17369# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17370#
17371# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17372# Free Software Foundation, Inc.
17373#
17374# This file is part of GNU Libtool:
17375# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17376#
17377# This program is free software; you can redistribute it and/or modify
17378# it under the terms of the GNU General Public License as published by
17379# the Free Software Foundation; either version 2 of the License, or
17380# (at your option) any later version.
17381#
17382# This program is distributed in the hope that it will be useful, but
17383# WITHOUT ANY WARRANTY; without even the implied warranty of
17384# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17385# General Public License for more details.
17386#
17387# You should have received a copy of the GNU General Public License
17388# along with this program; if not, write to the Free Software
17389# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17390#
17391# As a special exception to the GNU General Public License, if you
17392# distribute this file as part of a program that contains a
17393# configuration script generated by Autoconf, you may include it under
17394# the same distribution terms that you use for the rest of that program.
17395
17396# A sed program that does not truncate output.
17397SED=$lt_SED
17398
17399# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17400Xsed="$SED -e 1s/^X//"
17401
17402# The HP-UX ksh and POSIX shell print the target directory to stdout
17403# if CDPATH is set.
17404(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17405
17406# The names of the tagged configurations supported by this script.
17407available_tags=
17408
17409# ### BEGIN LIBTOOL CONFIG
17410
17411# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17412
17413# Shell to use when invoking shell scripts.
17414SHELL=$lt_SHELL
17415
17416# Whether or not to build shared libraries.
17417build_libtool_libs=$enable_shared
17418
17419# Whether or not to build static libraries.
17420build_old_libs=$enable_static
17421
17422# Whether or not to add -lc for building shared libraries.
17423build_libtool_need_lc=$archive_cmds_need_lc
17424
17425# Whether or not to disallow shared libs when runtime libs are static
17426allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17427
17428# Whether or not to optimize for fast installation.
17429fast_install=$enable_fast_install
17430
17431# The host system.
17432host_alias=$host_alias
17433host=$host
17434host_os=$host_os
17435
17436# The build system.
17437build_alias=$build_alias
17438build=$build
17439build_os=$build_os
17440
17441# An echo program that does not interpret backslashes.
17442echo=$lt_echo
17443
17444# The archiver.
17445AR=$lt_AR
17446AR_FLAGS=$lt_AR_FLAGS
17447
17448# A C compiler.
17449LTCC=$lt_LTCC
17450
17451# LTCC compiler flags.
17452LTCFLAGS=$lt_LTCFLAGS
17453
17454# A language-specific compiler.
17455CC=$lt_compiler
17456
17457# Is the compiler the GNU C compiler?
17458with_gcc=$GCC
17459
17460# An ERE matcher.
17461EGREP=$lt_EGREP
17462
17463# The linker used to build libraries.
17464LD=$lt_LD
17465
17466# Whether we need hard or soft links.
17467LN_S=$lt_LN_S
17468
17469# A BSD-compatible nm program.
17470NM=$lt_NM
17471
17472# A symbol stripping program
17473STRIP=$lt_STRIP
17474
17475# Used to examine libraries when file_magic_cmd begins "file"
17476MAGIC_CMD=$MAGIC_CMD
17477
17478# Used on cygwin: DLL creation program.
17479DLLTOOL="$DLLTOOL"
17480
17481# Used on cygwin: object dumper.
17482OBJDUMP="$OBJDUMP"
17483
17484# Used on cygwin: assembler.
17485AS="$AS"
17486
17487# The name of the directory that contains temporary libtool files.
17488objdir=$objdir
17489
17490# How to create reloadable object files.
17491reload_flag=$lt_reload_flag
17492reload_cmds=$lt_reload_cmds
17493
17494# How to pass a linker flag through the compiler.
17495wl=$lt_lt_prog_compiler_wl
17496
17497# Object file suffix (normally "o").
17498objext="$ac_objext"
17499
17500# Old archive suffix (normally "a").
17501libext="$libext"
17502
17503# Shared library suffix (normally ".so").
17504shrext_cmds='$shrext_cmds'
17505
17506# Executable file suffix (normally "").
17507exeext="$exeext"
17508
17509# Additional compiler flags for building library objects.
17510pic_flag=$lt_lt_prog_compiler_pic
17511pic_mode=$pic_mode
17512
17513# What is the maximum length of a command?
17514max_cmd_len=$lt_cv_sys_max_cmd_len
17515
17516# Does compiler simultaneously support -c and -o options?
17517compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17518
17519# Must we lock files when doing compilation?
17520need_locks=$lt_need_locks
17521
17522# Do we need the lib prefix for modules?
17523need_lib_prefix=$need_lib_prefix
17524
17525# Do we need a version for libraries?
17526need_version=$need_version
17527
17528# Whether dlopen is supported.
17529dlopen_support=$enable_dlopen
17530
17531# Whether dlopen of programs is supported.
17532dlopen_self=$enable_dlopen_self
17533
17534# Whether dlopen of statically linked programs is supported.
17535dlopen_self_static=$enable_dlopen_self_static
17536
17537# Compiler flag to prevent dynamic linking.
17538link_static_flag=$lt_lt_prog_compiler_static
17539
17540# Compiler flag to turn off builtin functions.
17541no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17542
17543# Compiler flag to allow reflexive dlopens.
17544export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17545
17546# Compiler flag to generate shared objects directly from archives.
17547whole_archive_flag_spec=$lt_whole_archive_flag_spec
17548
17549# Compiler flag to generate thread-safe objects.
17550thread_safe_flag_spec=$lt_thread_safe_flag_spec
17551
17552# Library versioning type.
17553version_type=$version_type
17554
17555# Format of library name prefix.
17556libname_spec=$lt_libname_spec
17557
17558# List of archive names.  First name is the real one, the rest are links.
17559# The last name is the one that the linker finds with -lNAME.
17560library_names_spec=$lt_library_names_spec
17561
17562# The coded name of the library, if different from the real name.
17563soname_spec=$lt_soname_spec
17564
17565# Commands used to build and install an old-style archive.
17566RANLIB=$lt_RANLIB
17567old_archive_cmds=$lt_old_archive_cmds
17568old_postinstall_cmds=$lt_old_postinstall_cmds
17569old_postuninstall_cmds=$lt_old_postuninstall_cmds
17570
17571# Create an old-style archive from a shared archive.
17572old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17573
17574# Create a temporary old-style archive to link instead of a shared archive.
17575old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17576
17577# Commands used to build and install a shared archive.
17578archive_cmds=$lt_archive_cmds
17579archive_expsym_cmds=$lt_archive_expsym_cmds
17580postinstall_cmds=$lt_postinstall_cmds
17581postuninstall_cmds=$lt_postuninstall_cmds
17582
17583# Commands used to build a loadable module (assumed same as above if empty)
17584module_cmds=$lt_module_cmds
17585module_expsym_cmds=$lt_module_expsym_cmds
17586
17587# Commands to strip libraries.
17588old_striplib=$lt_old_striplib
17589striplib=$lt_striplib
17590
17591# Dependencies to place before the objects being linked to create a
17592# shared library.
17593predep_objects=$lt_predep_objects
17594
17595# Dependencies to place after the objects being linked to create a
17596# shared library.
17597postdep_objects=$lt_postdep_objects
17598
17599# Dependencies to place before the objects being linked to create a
17600# shared library.
17601predeps=$lt_predeps
17602
17603# Dependencies to place after the objects being linked to create a
17604# shared library.
17605postdeps=$lt_postdeps
17606
17607# The library search path used internally by the compiler when linking
17608# a shared library.
17609compiler_lib_search_path=$lt_compiler_lib_search_path
17610
17611# Method to check whether dependent libraries are shared objects.
17612deplibs_check_method=$lt_deplibs_check_method
17613
17614# Command to use when deplibs_check_method == file_magic.
17615file_magic_cmd=$lt_file_magic_cmd
17616
17617# Flag that allows shared libraries with undefined symbols to be built.
17618allow_undefined_flag=$lt_allow_undefined_flag
17619
17620# Flag that forces no undefined symbols.
17621no_undefined_flag=$lt_no_undefined_flag
17622
17623# Commands used to finish a libtool library installation in a directory.
17624finish_cmds=$lt_finish_cmds
17625
17626# Same as above, but a single script fragment to be evaled but not shown.
17627finish_eval=$lt_finish_eval
17628
17629# Take the output of nm and produce a listing of raw symbols and C names.
17630global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17631
17632# Transform the output of nm in a proper C declaration
17633global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17634
17635# Transform the output of nm in a C name address pair
17636global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17637
17638# This is the shared library runtime path variable.
17639runpath_var=$runpath_var
17640
17641# This is the shared library path variable.
17642shlibpath_var=$shlibpath_var
17643
17644# Is shlibpath searched before the hard-coded library search path?
17645shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17646
17647# How to hardcode a shared library path into an executable.
17648hardcode_action=$hardcode_action
17649
17650# Whether we should hardcode library paths into libraries.
17651hardcode_into_libs=$hardcode_into_libs
17652
17653# Flag to hardcode \$libdir into a binary during linking.
17654# This must work even if \$libdir does not exist.
17655hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17656
17657# If ld is used when linking, flag to hardcode \$libdir into
17658# a binary during linking. This must work even if \$libdir does
17659# not exist.
17660hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17661
17662# Whether we need a single -rpath flag with a separated argument.
17663hardcode_libdir_separator=$lt_hardcode_libdir_separator
17664
17665# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17666# resulting binary.
17667hardcode_direct=$hardcode_direct
17668
17669# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17670# resulting binary.
17671hardcode_minus_L=$hardcode_minus_L
17672
17673# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17674# the resulting binary.
17675hardcode_shlibpath_var=$hardcode_shlibpath_var
17676
17677# Set to yes if building a shared library automatically hardcodes DIR into the library
17678# and all subsequent libraries and executables linked against it.
17679hardcode_automatic=$hardcode_automatic
17680
17681# Variables whose values should be saved in libtool wrapper scripts and
17682# restored at relink time.
17683variables_saved_for_relink="$variables_saved_for_relink"
17684
17685# Whether libtool must link a program against all its dependency libraries.
17686link_all_deplibs=$link_all_deplibs
17687
17688# Compile-time system search path for libraries
17689sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17690
17691# Run-time system search path for libraries
17692sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17693
17694# Fix the shell variable \$srcfile for the compiler.
17695fix_srcfile_path="$fix_srcfile_path"
17696
17697# Set to yes if exported symbols are required.
17698always_export_symbols=$always_export_symbols
17699
17700# The commands to list exported symbols.
17701export_symbols_cmds=$lt_export_symbols_cmds
17702
17703# The commands to extract the exported symbol list from a shared archive.
17704extract_expsyms_cmds=$lt_extract_expsyms_cmds
17705
17706# Symbols that should not be listed in the preloaded symbols.
17707exclude_expsyms=$lt_exclude_expsyms
17708
17709# Symbols that must always be exported.
17710include_expsyms=$lt_include_expsyms
17711
17712# ### END LIBTOOL CONFIG
17713
17714__EOF__
17715
17716
17717  case $host_os in
17718  aix3*)
17719    cat <<\EOF >> "$cfgfile"
17720
17721# AIX sometimes has problems with the GCC collect2 program.  For some
17722# reason, if we set the COLLECT_NAMES environment variable, the problems
17723# vanish in a puff of smoke.
17724if test "X${COLLECT_NAMES+set}" != Xset; then
17725  COLLECT_NAMES=
17726  export COLLECT_NAMES
17727fi
17728EOF
17729    ;;
17730  esac
17731
17732  # We use sed instead of cat because bash on DJGPP gets confused if
17733  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17734  # text mode, it properly converts lines to CR/LF.  This bash problem
17735  # is reportedly fixed, but why not run on old versions too?
17736  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17737
17738  mv -f "$cfgfile" "$ofile" || \
17739    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17740  chmod +x "$ofile"
17741
17742else
17743  # If there is no Makefile yet, we rely on a make rule to execute
17744  # `config.status --recheck' to rerun these tests and create the
17745  # libtool script then.
17746  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17747  if test -f "$ltmain_in"; then
17748    test -f Makefile && make "$ltmain"
17749  fi
17750fi
17751
17752
17753ac_ext=c
17754ac_cpp='$CPP $CPPFLAGS'
17755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17757ac_compiler_gnu=$ac_cv_c_compiler_gnu
17758
17759CC="$lt_save_CC"
17760
17761
17762# Check whether --with-tags was given.
17763if test "${with_tags+set}" = set; then
17764  withval=$with_tags; tagnames="$withval"
17765fi
17766
17767
17768if test -f "$ltmain" && test -n "$tagnames"; then
17769  if test ! -f "${ofile}"; then
17770    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17771echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17772  fi
17773
17774  if test -z "$LTCC"; then
17775    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17776    if test -z "$LTCC"; then
17777      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17778echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17779    else
17780      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17781echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17782    fi
17783  fi
17784  if test -z "$LTCFLAGS"; then
17785    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17786  fi
17787
17788  # Extract list of available tagged configurations in $ofile.
17789  # Note that this assumes the entire list is on one line.
17790  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17791
17792  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17793  for tagname in $tagnames; do
17794    IFS="$lt_save_ifs"
17795    # Check whether tagname contains only valid characters
17796    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17797    "") ;;
17798    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17799echo "$as_me: error: invalid tag name: $tagname" >&2;}
17800   { (exit 1); exit 1; }; }
17801	;;
17802    esac
17803
17804    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17805    then
17806      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17807echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17808   { (exit 1); exit 1; }; }
17809    fi
17810
17811    # Update the list of available tags.
17812    if test -n "$tagname"; then
17813      echo appending configuration tag \"$tagname\" to $ofile
17814
17815      case $tagname in
17816      CXX)
17817	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17818	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17819	    (test "X$CXX" != "Xg++"))) ; then
17820	  ac_ext=cpp
17821ac_cpp='$CXXCPP $CPPFLAGS'
17822ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17823ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17824ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17825
17826
17827
17828
17829archive_cmds_need_lc_CXX=no
17830allow_undefined_flag_CXX=
17831always_export_symbols_CXX=no
17832archive_expsym_cmds_CXX=
17833export_dynamic_flag_spec_CXX=
17834hardcode_direct_CXX=no
17835hardcode_libdir_flag_spec_CXX=
17836hardcode_libdir_flag_spec_ld_CXX=
17837hardcode_libdir_separator_CXX=
17838hardcode_minus_L_CXX=no
17839hardcode_shlibpath_var_CXX=unsupported
17840hardcode_automatic_CXX=no
17841module_cmds_CXX=
17842module_expsym_cmds_CXX=
17843link_all_deplibs_CXX=unknown
17844old_archive_cmds_CXX=$old_archive_cmds
17845no_undefined_flag_CXX=
17846whole_archive_flag_spec_CXX=
17847enable_shared_with_static_runtimes_CXX=no
17848
17849# Dependencies to place before and after the object being linked:
17850predep_objects_CXX=
17851postdep_objects_CXX=
17852predeps_CXX=
17853postdeps_CXX=
17854compiler_lib_search_path_CXX=
17855
17856# Source file extension for C++ test sources.
17857ac_ext=cpp
17858
17859# Object file extension for compiled C++ test sources.
17860objext=o
17861objext_CXX=$objext
17862
17863# Code to be used in simple compile tests
17864lt_simple_compile_test_code="int some_variable = 0;\n"
17865
17866# Code to be used in simple link tests
17867lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17868
17869# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17870
17871# If no C compiler was specified, use CC.
17872LTCC=${LTCC-"$CC"}
17873
17874# If no C compiler flags were specified, use CFLAGS.
17875LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17876
17877# Allow CC to be a program name with arguments.
17878compiler=$CC
17879
17880
17881# save warnings/boilerplate of simple test code
17882ac_outfile=conftest.$ac_objext
17883printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17884eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17885_lt_compiler_boilerplate=`cat conftest.err`
17886$rm conftest*
17887
17888ac_outfile=conftest.$ac_objext
17889printf "$lt_simple_link_test_code" >conftest.$ac_ext
17890eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17891_lt_linker_boilerplate=`cat conftest.err`
17892$rm conftest*
17893
17894
17895# Allow CC to be a program name with arguments.
17896lt_save_CC=$CC
17897lt_save_LD=$LD
17898lt_save_GCC=$GCC
17899GCC=$GXX
17900lt_save_with_gnu_ld=$with_gnu_ld
17901lt_save_path_LD=$lt_cv_path_LD
17902if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17903  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17904else
17905  $as_unset lt_cv_prog_gnu_ld
17906fi
17907if test -n "${lt_cv_path_LDCXX+set}"; then
17908  lt_cv_path_LD=$lt_cv_path_LDCXX
17909else
17910  $as_unset lt_cv_path_LD
17911fi
17912test -z "${LDCXX+set}" || LD=$LDCXX
17913CC=${CXX-"c++"}
17914compiler=$CC
17915compiler_CXX=$CC
17916for cc_temp in $compiler""; do
17917  case $cc_temp in
17918    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17919    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17920    \-*) ;;
17921    *) break;;
17922  esac
17923done
17924cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17925
17926
17927# We don't want -fno-exception wen compiling C++ code, so set the
17928# no_builtin_flag separately
17929if test "$GXX" = yes; then
17930  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17931else
17932  lt_prog_compiler_no_builtin_flag_CXX=
17933fi
17934
17935if test "$GXX" = yes; then
17936  # Set up default GNU C++ configuration
17937
17938
17939# Check whether --with-gnu-ld was given.
17940if test "${with_gnu_ld+set}" = set; then
17941  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17942else
17943  with_gnu_ld=no
17944fi
17945
17946ac_prog=ld
17947if test "$GCC" = yes; then
17948  # Check if gcc -print-prog-name=ld gives a path.
17949  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17950echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17951  case $host in
17952  *-*-mingw*)
17953    # gcc leaves a trailing carriage return which upsets mingw
17954    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17955  *)
17956    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17957  esac
17958  case $ac_prog in
17959    # Accept absolute paths.
17960    [\\/]* | ?:[\\/]*)
17961      re_direlt='/[^/][^/]*/\.\./'
17962      # Canonicalize the pathname of ld
17963      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17964      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17965	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17966      done
17967      test -z "$LD" && LD="$ac_prog"
17968      ;;
17969  "")
17970    # If it fails, then pretend we aren't using GCC.
17971    ac_prog=ld
17972    ;;
17973  *)
17974    # If it is relative, then search for the first ld in PATH.
17975    with_gnu_ld=unknown
17976    ;;
17977  esac
17978elif test "$with_gnu_ld" = yes; then
17979  { echo "$as_me:$LINENO: checking for GNU ld" >&5
17980echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
17981else
17982  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17983echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
17984fi
17985if test "${lt_cv_path_LD+set}" = set; then
17986  echo $ECHO_N "(cached) $ECHO_C" >&6
17987else
17988  if test -z "$LD"; then
17989  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17990  for ac_dir in $PATH; do
17991    IFS="$lt_save_ifs"
17992    test -z "$ac_dir" && ac_dir=.
17993    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17994      lt_cv_path_LD="$ac_dir/$ac_prog"
17995      # Check to see if the program is GNU ld.  I'd rather use --version,
17996      # but apparently some variants of GNU ld only accept -v.
17997      # Break only if it was the GNU/non-GNU ld that we prefer.
17998      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17999      *GNU* | *'with BFD'*)
18000	test "$with_gnu_ld" != no && break
18001	;;
18002      *)
18003	test "$with_gnu_ld" != yes && break
18004	;;
18005      esac
18006    fi
18007  done
18008  IFS="$lt_save_ifs"
18009else
18010  lt_cv_path_LD="$LD" # Let the user override the test with a path.
18011fi
18012fi
18013
18014LD="$lt_cv_path_LD"
18015if test -n "$LD"; then
18016  { echo "$as_me:$LINENO: result: $LD" >&5
18017echo "${ECHO_T}$LD" >&6; }
18018else
18019  { echo "$as_me:$LINENO: result: no" >&5
18020echo "${ECHO_T}no" >&6; }
18021fi
18022test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18023echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18024   { (exit 1); exit 1; }; }
18025{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18026echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18027if test "${lt_cv_prog_gnu_ld+set}" = set; then
18028  echo $ECHO_N "(cached) $ECHO_C" >&6
18029else
18030  # I'd rather use --version here, but apparently some GNU lds only accept -v.
18031case `$LD -v 2>&1 </dev/null` in
18032*GNU* | *'with BFD'*)
18033  lt_cv_prog_gnu_ld=yes
18034  ;;
18035*)
18036  lt_cv_prog_gnu_ld=no
18037  ;;
18038esac
18039fi
18040{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18041echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18042with_gnu_ld=$lt_cv_prog_gnu_ld
18043
18044
18045
18046  # Check if GNU C++ uses GNU ld as the underlying linker, since the
18047  # archiving commands below assume that GNU ld is being used.
18048  if test "$with_gnu_ld" = yes; then
18049    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18050    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'
18051
18052    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18053    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18054
18055    # If archive_cmds runs LD, not CC, wlarc should be empty
18056    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18057    #     investigate it a little bit more. (MM)
18058    wlarc='${wl}'
18059
18060    # ancient GNU ld didn't support --whole-archive et. al.
18061    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18062	grep 'no-whole-archive' > /dev/null; then
18063      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18064    else
18065      whole_archive_flag_spec_CXX=
18066    fi
18067  else
18068    with_gnu_ld=no
18069    wlarc=
18070
18071    # A generic and very simple default shared library creation
18072    # command for GNU C++ for the case where it uses the native
18073    # linker, instead of GNU ld.  If possible, this setting should
18074    # overridden to take advantage of the native linker features on
18075    # the platform it is being used on.
18076    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18077  fi
18078
18079  # Commands to make compiler produce verbose output that lists
18080  # what "hidden" libraries, object files and flags are used when
18081  # linking a shared library.
18082  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18083
18084else
18085  GXX=no
18086  with_gnu_ld=no
18087  wlarc=
18088fi
18089
18090# PORTME: fill in a description of your system's C++ link characteristics
18091{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18092echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18093ld_shlibs_CXX=yes
18094case $host_os in
18095  aix3*)
18096    # FIXME: insert proper C++ library support
18097    ld_shlibs_CXX=no
18098    ;;
18099  aix4* | aix5*)
18100    if test "$host_cpu" = ia64; then
18101      # On IA64, the linker does run time linking by default, so we don't
18102      # have to do anything special.
18103      aix_use_runtimelinking=no
18104      exp_sym_flag='-Bexport'
18105      no_entry_flag=""
18106    else
18107      aix_use_runtimelinking=no
18108
18109      # Test if we are trying to use run time linking or normal
18110      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18111      # need to do runtime linking.
18112      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18113	for ld_flag in $LDFLAGS; do
18114	  case $ld_flag in
18115	  *-brtl*)
18116	    aix_use_runtimelinking=yes
18117	    break
18118	    ;;
18119	  esac
18120	done
18121	;;
18122      esac
18123
18124      exp_sym_flag='-bexport'
18125      no_entry_flag='-bnoentry'
18126    fi
18127
18128    # When large executables or shared objects are built, AIX ld can
18129    # have problems creating the table of contents.  If linking a library
18130    # or program results in "error TOC overflow" add -mminimal-toc to
18131    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18132    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18133
18134    archive_cmds_CXX=''
18135    hardcode_direct_CXX=yes
18136    hardcode_libdir_separator_CXX=':'
18137    link_all_deplibs_CXX=yes
18138
18139    if test "$GXX" = yes; then
18140      case $host_os in aix4.[012]|aix4.[012].*)
18141      # We only want to do this on AIX 4.2 and lower, the check
18142      # below for broken collect2 doesn't work under 4.3+
18143	collect2name=`${CC} -print-prog-name=collect2`
18144	if test -f "$collect2name" && \
18145	   strings "$collect2name" | grep resolve_lib_name >/dev/null
18146	then
18147	  # We have reworked collect2
18148	  hardcode_direct_CXX=yes
18149	else
18150	  # We have old collect2
18151	  hardcode_direct_CXX=unsupported
18152	  # It fails to find uninstalled libraries when the uninstalled
18153	  # path is not listed in the libpath.  Setting hardcode_minus_L
18154	  # to unsupported forces relinking
18155	  hardcode_minus_L_CXX=yes
18156	  hardcode_libdir_flag_spec_CXX='-L$libdir'
18157	  hardcode_libdir_separator_CXX=
18158	fi
18159	;;
18160      esac
18161      shared_flag='-shared'
18162      if test "$aix_use_runtimelinking" = yes; then
18163	shared_flag="$shared_flag "'${wl}-G'
18164      fi
18165    else
18166      # not using gcc
18167      if test "$host_cpu" = ia64; then
18168	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18169	# chokes on -Wl,-G. The following line is correct:
18170	shared_flag='-G'
18171      else
18172	if test "$aix_use_runtimelinking" = yes; then
18173	  shared_flag='${wl}-G'
18174	else
18175	  shared_flag='${wl}-bM:SRE'
18176	fi
18177      fi
18178    fi
18179
18180    # It seems that -bexpall does not export symbols beginning with
18181    # underscore (_), so it is better to generate a list of symbols to export.
18182    always_export_symbols_CXX=yes
18183    if test "$aix_use_runtimelinking" = yes; then
18184      # Warning - without using the other runtime loading flags (-brtl),
18185      # -berok will link without error, but may produce a broken library.
18186      allow_undefined_flag_CXX='-berok'
18187      # Determine the default libpath from the value encoded in an empty executable.
18188      cat >conftest.$ac_ext <<_ACEOF
18189/* confdefs.h.  */
18190_ACEOF
18191cat confdefs.h >>conftest.$ac_ext
18192cat >>conftest.$ac_ext <<_ACEOF
18193/* end confdefs.h.  */
18194
18195int
18196main ()
18197{
18198
18199  ;
18200  return 0;
18201}
18202_ACEOF
18203rm -f conftest.$ac_objext conftest$ac_exeext
18204if { (ac_try="$ac_link"
18205case "(($ac_try" in
18206  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18207  *) ac_try_echo=$ac_try;;
18208esac
18209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18210  (eval "$ac_link") 2>conftest.er1
18211  ac_status=$?
18212  grep -v '^ *+' conftest.er1 >conftest.err
18213  rm -f conftest.er1
18214  cat conftest.err >&5
18215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216  (exit $ac_status); } &&
18217	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18218  { (case "(($ac_try" in
18219  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18220  *) ac_try_echo=$ac_try;;
18221esac
18222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18223  (eval "$ac_try") 2>&5
18224  ac_status=$?
18225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226  (exit $ac_status); }; } &&
18227	 { ac_try='test -s conftest$ac_exeext'
18228  { (case "(($ac_try" in
18229  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18230  *) ac_try_echo=$ac_try;;
18231esac
18232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18233  (eval "$ac_try") 2>&5
18234  ac_status=$?
18235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236  (exit $ac_status); }; }; then
18237
18238aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18239}'`
18240# Check for a 64-bit object if we didn't find anything.
18241if 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; }
18242}'`; fi
18243else
18244  echo "$as_me: failed program was:" >&5
18245sed 's/^/| /' conftest.$ac_ext >&5
18246
18247
18248fi
18249
18250rm -f core conftest.err conftest.$ac_objext \
18251      conftest$ac_exeext conftest.$ac_ext
18252if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18253
18254      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18255
18256      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"
18257     else
18258      if test "$host_cpu" = ia64; then
18259	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18260	allow_undefined_flag_CXX="-z nodefs"
18261	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"
18262      else
18263	# Determine the default libpath from the value encoded in an empty executable.
18264	cat >conftest.$ac_ext <<_ACEOF
18265/* confdefs.h.  */
18266_ACEOF
18267cat confdefs.h >>conftest.$ac_ext
18268cat >>conftest.$ac_ext <<_ACEOF
18269/* end confdefs.h.  */
18270
18271int
18272main ()
18273{
18274
18275  ;
18276  return 0;
18277}
18278_ACEOF
18279rm -f conftest.$ac_objext conftest$ac_exeext
18280if { (ac_try="$ac_link"
18281case "(($ac_try" in
18282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18283  *) ac_try_echo=$ac_try;;
18284esac
18285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18286  (eval "$ac_link") 2>conftest.er1
18287  ac_status=$?
18288  grep -v '^ *+' conftest.er1 >conftest.err
18289  rm -f conftest.er1
18290  cat conftest.err >&5
18291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292  (exit $ac_status); } &&
18293	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18294  { (case "(($ac_try" in
18295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18296  *) ac_try_echo=$ac_try;;
18297esac
18298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18299  (eval "$ac_try") 2>&5
18300  ac_status=$?
18301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302  (exit $ac_status); }; } &&
18303	 { ac_try='test -s conftest$ac_exeext'
18304  { (case "(($ac_try" in
18305  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18306  *) ac_try_echo=$ac_try;;
18307esac
18308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18309  (eval "$ac_try") 2>&5
18310  ac_status=$?
18311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312  (exit $ac_status); }; }; then
18313
18314aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18315}'`
18316# Check for a 64-bit object if we didn't find anything.
18317if 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; }
18318}'`; fi
18319else
18320  echo "$as_me: failed program was:" >&5
18321sed 's/^/| /' conftest.$ac_ext >&5
18322
18323
18324fi
18325
18326rm -f core conftest.err conftest.$ac_objext \
18327      conftest$ac_exeext conftest.$ac_ext
18328if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18329
18330	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18331	# Warning - without using the other run time loading flags,
18332	# -berok will link without error, but may produce a broken library.
18333	no_undefined_flag_CXX=' ${wl}-bernotok'
18334	allow_undefined_flag_CXX=' ${wl}-berok'
18335	# Exported symbols can be pulled into shared objects from archives
18336	whole_archive_flag_spec_CXX='$convenience'
18337	archive_cmds_need_lc_CXX=yes
18338	# This is similar to how AIX traditionally builds its shared libraries.
18339	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'
18340      fi
18341    fi
18342    ;;
18343
18344  beos*)
18345    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18346      allow_undefined_flag_CXX=unsupported
18347      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18348      # support --undefined.  This deserves some investigation.  FIXME
18349      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18350    else
18351      ld_shlibs_CXX=no
18352    fi
18353    ;;
18354
18355  chorus*)
18356    case $cc_basename in
18357      *)
18358	# FIXME: insert proper C++ library support
18359	ld_shlibs_CXX=no
18360	;;
18361    esac
18362    ;;
18363
18364  cygwin* | mingw* | pw32*)
18365    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18366    # as there is no search path for DLLs.
18367    hardcode_libdir_flag_spec_CXX='-L$libdir'
18368    allow_undefined_flag_CXX=unsupported
18369    always_export_symbols_CXX=no
18370    enable_shared_with_static_runtimes_CXX=yes
18371
18372    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18373      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'
18374      # If the export-symbols file already is a .def file (1st line
18375      # is EXPORTS), use it as is; otherwise, prepend...
18376      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18377	cp $export_symbols $output_objdir/$soname.def;
18378      else
18379	echo EXPORTS > $output_objdir/$soname.def;
18380	cat $export_symbols >> $output_objdir/$soname.def;
18381      fi~
18382      $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'
18383    else
18384      ld_shlibs_CXX=no
18385    fi
18386  ;;
18387      darwin* | rhapsody*)
18388        case $host_os in
18389        rhapsody* | darwin1.[012])
18390         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18391         ;;
18392       *) # Darwin 1.3 on
18393         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18394           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18395         else
18396           case ${MACOSX_DEPLOYMENT_TARGET} in
18397             10.[012])
18398               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18399               ;;
18400             10.*)
18401               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18402               ;;
18403           esac
18404         fi
18405         ;;
18406        esac
18407      archive_cmds_need_lc_CXX=no
18408      hardcode_direct_CXX=no
18409      hardcode_automatic_CXX=yes
18410      hardcode_shlibpath_var_CXX=unsupported
18411      whole_archive_flag_spec_CXX=''
18412      link_all_deplibs_CXX=yes
18413
18414    if test "$GXX" = yes ; then
18415      lt_int_apple_cc_single_mod=no
18416      output_verbose_link_cmd='echo'
18417      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18418       lt_int_apple_cc_single_mod=yes
18419      fi
18420      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18421       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18422      else
18423          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'
18424        fi
18425        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18426        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18427          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18428            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}'
18429          else
18430            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}'
18431          fi
18432            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}'
18433      else
18434      case $cc_basename in
18435        xlc*)
18436         output_verbose_link_cmd='echo'
18437          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'
18438          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18439          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18440          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}'
18441          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}'
18442          ;;
18443       *)
18444         ld_shlibs_CXX=no
18445          ;;
18446      esac
18447      fi
18448        ;;
18449
18450  dgux*)
18451    case $cc_basename in
18452      ec++*)
18453	# FIXME: insert proper C++ library support
18454	ld_shlibs_CXX=no
18455	;;
18456      ghcx*)
18457	# Green Hills C++ Compiler
18458	# FIXME: insert proper C++ library support
18459	ld_shlibs_CXX=no
18460	;;
18461      *)
18462	# FIXME: insert proper C++ library support
18463	ld_shlibs_CXX=no
18464	;;
18465    esac
18466    ;;
18467  freebsd[12]*)
18468    # C++ shared libraries reported to be fairly broken before switch to ELF
18469    ld_shlibs_CXX=no
18470    ;;
18471  freebsd-elf*)
18472    archive_cmds_need_lc_CXX=no
18473    ;;
18474  freebsd* | kfreebsd*-gnu | dragonfly*)
18475    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18476    # conventions
18477    ld_shlibs_CXX=yes
18478    ;;
18479  gnu*)
18480    ;;
18481  hpux9*)
18482    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18483    hardcode_libdir_separator_CXX=:
18484    export_dynamic_flag_spec_CXX='${wl}-E'
18485    hardcode_direct_CXX=yes
18486    hardcode_minus_L_CXX=yes # Not in the search PATH,
18487				# but as the default
18488				# location of the library.
18489
18490    case $cc_basename in
18491    CC*)
18492      # FIXME: insert proper C++ library support
18493      ld_shlibs_CXX=no
18494      ;;
18495    aCC*)
18496      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'
18497      # Commands to make compiler produce verbose output that lists
18498      # what "hidden" libraries, object files and flags are used when
18499      # linking a shared library.
18500      #
18501      # There doesn't appear to be a way to prevent this compiler from
18502      # explicitly linking system object files so we need to strip them
18503      # from the output so that they don't get included in the library
18504      # dependencies.
18505      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'
18506      ;;
18507    *)
18508      if test "$GXX" = yes; then
18509        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'
18510      else
18511        # FIXME: insert proper C++ library support
18512        ld_shlibs_CXX=no
18513      fi
18514      ;;
18515    esac
18516    ;;
18517  hpux10*|hpux11*)
18518    if test $with_gnu_ld = no; then
18519      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18520      hardcode_libdir_separator_CXX=:
18521
18522      case $host_cpu in
18523      hppa*64*|ia64*)
18524	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18525        ;;
18526      *)
18527	export_dynamic_flag_spec_CXX='${wl}-E'
18528        ;;
18529      esac
18530    fi
18531    case $host_cpu in
18532    hppa*64*|ia64*)
18533      hardcode_direct_CXX=no
18534      hardcode_shlibpath_var_CXX=no
18535      ;;
18536    *)
18537      hardcode_direct_CXX=yes
18538      hardcode_minus_L_CXX=yes # Not in the search PATH,
18539					      # but as the default
18540					      # location of the library.
18541      ;;
18542    esac
18543
18544    case $cc_basename in
18545      CC*)
18546	# FIXME: insert proper C++ library support
18547	ld_shlibs_CXX=no
18548	;;
18549      aCC*)
18550	case $host_cpu in
18551	hppa*64*)
18552	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18553	  ;;
18554	ia64*)
18555	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18556	  ;;
18557	*)
18558	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18559	  ;;
18560	esac
18561	# Commands to make compiler produce verbose output that lists
18562	# what "hidden" libraries, object files and flags are used when
18563	# linking a shared library.
18564	#
18565	# There doesn't appear to be a way to prevent this compiler from
18566	# explicitly linking system object files so we need to strip them
18567	# from the output so that they don't get included in the library
18568	# dependencies.
18569	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'
18570	;;
18571      *)
18572	if test "$GXX" = yes; then
18573	  if test $with_gnu_ld = no; then
18574	    case $host_cpu in
18575	    hppa*64*)
18576	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18577	      ;;
18578	    ia64*)
18579	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18580	      ;;
18581	    *)
18582	      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'
18583	      ;;
18584	    esac
18585	  fi
18586	else
18587	  # FIXME: insert proper C++ library support
18588	  ld_shlibs_CXX=no
18589	fi
18590	;;
18591    esac
18592    ;;
18593  interix3*)
18594    hardcode_direct_CXX=no
18595    hardcode_shlibpath_var_CXX=no
18596    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18597    export_dynamic_flag_spec_CXX='${wl}-E'
18598    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18599    # Instead, shared libraries are loaded at an image base (0x10000000 by
18600    # default) and relocated if they conflict, which is a slow very memory
18601    # consuming and fragmenting process.  To avoid this, we pick a random,
18602    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18603    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18604    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'
18605    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'
18606    ;;
18607  irix5* | irix6*)
18608    case $cc_basename in
18609      CC*)
18610	# SGI C++
18611	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'
18612
18613	# Archives containing C++ object files must be created using
18614	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18615	# necessary to make sure instantiated templates are included
18616	# in the archive.
18617	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18618	;;
18619      *)
18620	if test "$GXX" = yes; then
18621	  if test "$with_gnu_ld" = no; then
18622	    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'
18623	  else
18624	    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'
18625	  fi
18626	fi
18627	link_all_deplibs_CXX=yes
18628	;;
18629    esac
18630    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18631    hardcode_libdir_separator_CXX=:
18632    ;;
18633  linux*)
18634    case $cc_basename in
18635      KCC*)
18636	# Kuck and Associates, Inc. (KAI) C++ Compiler
18637
18638	# KCC will only create a shared library if the output file
18639	# ends with ".so" (or ".sl" for HP-UX), so rename the library
18640	# to its proper name (with version) after linking.
18641	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'
18642	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'
18643	# Commands to make compiler produce verbose output that lists
18644	# what "hidden" libraries, object files and flags are used when
18645	# linking a shared library.
18646	#
18647	# There doesn't appear to be a way to prevent this compiler from
18648	# explicitly linking system object files so we need to strip them
18649	# from the output so that they don't get included in the library
18650	# dependencies.
18651	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'
18652
18653	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18654	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18655
18656	# Archives containing C++ object files must be created using
18657	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
18658	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18659	;;
18660      icpc*)
18661	# Intel C++
18662	with_gnu_ld=yes
18663	# version 8.0 and above of icpc choke on multiply defined symbols
18664	# if we add $predep_objects and $postdep_objects, however 7.1 and
18665	# earlier do not add the objects themselves.
18666	case `$CC -V 2>&1` in
18667	*"Version 7."*)
18668  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18669  	  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'
18670	  ;;
18671	*)  # Version 8.0 or newer
18672	  tmp_idyn=
18673	  case $host_cpu in
18674	    ia64*) tmp_idyn=' -i_dynamic';;
18675	  esac
18676  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18677	  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'
18678	  ;;
18679	esac
18680	archive_cmds_need_lc_CXX=no
18681	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18682	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18683	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18684	;;
18685      pgCC*)
18686        # Portland Group C++ compiler
18687	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18688  	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'
18689
18690	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18691	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18692	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'
18693        ;;
18694      cxx*)
18695	# Compaq C++
18696	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18697	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'
18698
18699	runpath_var=LD_RUN_PATH
18700	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18701	hardcode_libdir_separator_CXX=:
18702
18703	# Commands to make compiler produce verbose output that lists
18704	# what "hidden" libraries, object files and flags are used when
18705	# linking a shared library.
18706	#
18707	# There doesn't appear to be a way to prevent this compiler from
18708	# explicitly linking system object files so we need to strip them
18709	# from the output so that they don't get included in the library
18710	# dependencies.
18711	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'
18712	;;
18713    esac
18714    ;;
18715  lynxos*)
18716    # FIXME: insert proper C++ library support
18717    ld_shlibs_CXX=no
18718    ;;
18719  m88k*)
18720    # FIXME: insert proper C++ library support
18721    ld_shlibs_CXX=no
18722    ;;
18723  mvs*)
18724    case $cc_basename in
18725      cxx*)
18726	# FIXME: insert proper C++ library support
18727	ld_shlibs_CXX=no
18728	;;
18729      *)
18730	# FIXME: insert proper C++ library support
18731	ld_shlibs_CXX=no
18732	;;
18733    esac
18734    ;;
18735  netbsd*)
18736    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18737      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18738      wlarc=
18739      hardcode_libdir_flag_spec_CXX='-R$libdir'
18740      hardcode_direct_CXX=yes
18741      hardcode_shlibpath_var_CXX=no
18742    fi
18743    # Workaround some broken pre-1.5 toolchains
18744    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18745    ;;
18746  openbsd2*)
18747    # C++ shared libraries are fairly broken
18748    ld_shlibs_CXX=no
18749    ;;
18750  openbsd*)
18751    hardcode_direct_CXX=yes
18752    hardcode_shlibpath_var_CXX=no
18753    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18754    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18755    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18756      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18757      export_dynamic_flag_spec_CXX='${wl}-E'
18758      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18759    fi
18760    output_verbose_link_cmd='echo'
18761    ;;
18762  osf3*)
18763    case $cc_basename in
18764      KCC*)
18765	# Kuck and Associates, Inc. (KAI) C++ Compiler
18766
18767	# KCC will only create a shared library if the output file
18768	# ends with ".so" (or ".sl" for HP-UX), so rename the library
18769	# to its proper name (with version) after linking.
18770	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'
18771
18772	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18773	hardcode_libdir_separator_CXX=:
18774
18775	# Archives containing C++ object files must be created using
18776	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
18777	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18778
18779	;;
18780      RCC*)
18781	# Rational C++ 2.4.1
18782	# FIXME: insert proper C++ library support
18783	ld_shlibs_CXX=no
18784	;;
18785      cxx*)
18786	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18787	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'
18788
18789	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18790	hardcode_libdir_separator_CXX=:
18791
18792	# Commands to make compiler produce verbose output that lists
18793	# what "hidden" libraries, object files and flags are used when
18794	# linking a shared library.
18795	#
18796	# There doesn't appear to be a way to prevent this compiler from
18797	# explicitly linking system object files so we need to strip them
18798	# from the output so that they don't get included in the library
18799	# dependencies.
18800	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'
18801	;;
18802      *)
18803	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18804	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18805	  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'
18806
18807	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18808	  hardcode_libdir_separator_CXX=:
18809
18810	  # Commands to make compiler produce verbose output that lists
18811	  # what "hidden" libraries, object files and flags are used when
18812	  # linking a shared library.
18813	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18814
18815	else
18816	  # FIXME: insert proper C++ library support
18817	  ld_shlibs_CXX=no
18818	fi
18819	;;
18820    esac
18821    ;;
18822  osf4* | osf5*)
18823    case $cc_basename in
18824      KCC*)
18825	# Kuck and Associates, Inc. (KAI) C++ Compiler
18826
18827	# KCC will only create a shared library if the output file
18828	# ends with ".so" (or ".sl" for HP-UX), so rename the library
18829	# to its proper name (with version) after linking.
18830	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'
18831
18832	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18833	hardcode_libdir_separator_CXX=:
18834
18835	# Archives containing C++ object files must be created using
18836	# the KAI C++ compiler.
18837	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18838	;;
18839      RCC*)
18840	# Rational C++ 2.4.1
18841	# FIXME: insert proper C++ library support
18842	ld_shlibs_CXX=no
18843	;;
18844      cxx*)
18845	allow_undefined_flag_CXX=' -expect_unresolved \*'
18846	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'
18847	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18848	  echo "-hidden">> $lib.exp~
18849	  $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~
18850	  $rm $lib.exp'
18851
18852	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18853	hardcode_libdir_separator_CXX=:
18854
18855	# Commands to make compiler produce verbose output that lists
18856	# what "hidden" libraries, object files and flags are used when
18857	# linking a shared library.
18858	#
18859	# There doesn't appear to be a way to prevent this compiler from
18860	# explicitly linking system object files so we need to strip them
18861	# from the output so that they don't get included in the library
18862	# dependencies.
18863	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'
18864	;;
18865      *)
18866	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18867	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18868	 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'
18869
18870	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18871	  hardcode_libdir_separator_CXX=:
18872
18873	  # Commands to make compiler produce verbose output that lists
18874	  # what "hidden" libraries, object files and flags are used when
18875	  # linking a shared library.
18876	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18877
18878	else
18879	  # FIXME: insert proper C++ library support
18880	  ld_shlibs_CXX=no
18881	fi
18882	;;
18883    esac
18884    ;;
18885  psos*)
18886    # FIXME: insert proper C++ library support
18887    ld_shlibs_CXX=no
18888    ;;
18889  sunos4*)
18890    case $cc_basename in
18891      CC*)
18892	# Sun C++ 4.x
18893	# FIXME: insert proper C++ library support
18894	ld_shlibs_CXX=no
18895	;;
18896      lcc*)
18897	# Lucid
18898	# FIXME: insert proper C++ library support
18899	ld_shlibs_CXX=no
18900	;;
18901      *)
18902	# FIXME: insert proper C++ library support
18903	ld_shlibs_CXX=no
18904	;;
18905    esac
18906    ;;
18907  solaris*)
18908    case $cc_basename in
18909      CC*)
18910	# Sun C++ 4.2, 5.x and Centerline C++
18911        archive_cmds_need_lc_CXX=yes
18912	no_undefined_flag_CXX=' -zdefs'
18913	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18914	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18915	$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'
18916
18917	hardcode_libdir_flag_spec_CXX='-R$libdir'
18918	hardcode_shlibpath_var_CXX=no
18919	case $host_os in
18920	  solaris2.[0-5] | solaris2.[0-5].*) ;;
18921	  *)
18922	    # The C++ compiler is used as linker so we must use $wl
18923	    # flag to pass the commands to the underlying system
18924	    # linker. We must also pass each convience library through
18925	    # to the system linker between allextract/defaultextract.
18926	    # The C++ compiler will combine linker options so we
18927	    # cannot just pass the convience library names through
18928	    # without $wl.
18929	    # Supported since Solaris 2.6 (maybe 2.5.1?)
18930	    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'
18931	    ;;
18932	esac
18933	link_all_deplibs_CXX=yes
18934
18935	output_verbose_link_cmd='echo'
18936
18937	# Archives containing C++ object files must be created using
18938	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
18939	# necessary to make sure instantiated templates are included
18940	# in the archive.
18941	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18942	;;
18943      gcx*)
18944	# Green Hills C++ Compiler
18945	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18946
18947	# The C++ compiler must be used to create the archive.
18948	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18949	;;
18950      *)
18951	# GNU C++ compiler with Solaris linker
18952	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18953	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18954	  if $CC --version | grep -v '^2\.7' > /dev/null; then
18955	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18956	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18957		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18958
18959	    # Commands to make compiler produce verbose output that lists
18960	    # what "hidden" libraries, object files and flags are used when
18961	    # linking a shared library.
18962	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18963	  else
18964	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
18965	    # platform.
18966	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18967	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18968		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18969
18970	    # Commands to make compiler produce verbose output that lists
18971	    # what "hidden" libraries, object files and flags are used when
18972	    # linking a shared library.
18973	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18974	  fi
18975
18976	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18977	fi
18978	;;
18979    esac
18980    ;;
18981  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18982    no_undefined_flag_CXX='${wl}-z,text'
18983    archive_cmds_need_lc_CXX=no
18984    hardcode_shlibpath_var_CXX=no
18985    runpath_var='LD_RUN_PATH'
18986
18987    case $cc_basename in
18988      CC*)
18989	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18990	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18991	;;
18992      *)
18993	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18994	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18995	;;
18996    esac
18997    ;;
18998  sysv5* | sco3.2v5* | sco5v6*)
18999    # Note: We can NOT use -z defs as we might desire, because we do not
19000    # link with -lc, and that would cause any symbols used from libc to
19001    # always be unresolved, which means just about no library would
19002    # ever link correctly.  If we're not using GNU ld we use -z text
19003    # though, which does catch some bad symbols but isn't as heavy-handed
19004    # as -z defs.
19005    # For security reasons, it is highly recommended that you always
19006    # use absolute paths for naming shared libraries, and exclude the
19007    # DT_RUNPATH tag from executables and libraries.  But doing so
19008    # requires that you compile everything twice, which is a pain.
19009    # So that behaviour is only enabled if SCOABSPATH is set to a
19010    # non-empty value in the environment.  Most likely only useful for
19011    # creating official distributions of packages.
19012    # This is a hack until libtool officially supports absolute path
19013    # names for shared libraries.
19014    no_undefined_flag_CXX='${wl}-z,text'
19015    allow_undefined_flag_CXX='${wl}-z,nodefs'
19016    archive_cmds_need_lc_CXX=no
19017    hardcode_shlibpath_var_CXX=no
19018    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19019    hardcode_libdir_separator_CXX=':'
19020    link_all_deplibs_CXX=yes
19021    export_dynamic_flag_spec_CXX='${wl}-Bexport'
19022    runpath_var='LD_RUN_PATH'
19023
19024    case $cc_basename in
19025      CC*)
19026	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19027	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19028	;;
19029      *)
19030	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19031	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19032	;;
19033    esac
19034    ;;
19035  tandem*)
19036    case $cc_basename in
19037      NCC*)
19038	# NonStop-UX NCC 3.20
19039	# FIXME: insert proper C++ library support
19040	ld_shlibs_CXX=no
19041	;;
19042      *)
19043	# FIXME: insert proper C++ library support
19044	ld_shlibs_CXX=no
19045	;;
19046    esac
19047    ;;
19048  vxworks*)
19049    # FIXME: insert proper C++ library support
19050    ld_shlibs_CXX=no
19051    ;;
19052  *)
19053    # FIXME: insert proper C++ library support
19054    ld_shlibs_CXX=no
19055    ;;
19056esac
19057{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19058echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19059test "$ld_shlibs_CXX" = no && can_build_shared=no
19060
19061GCC_CXX="$GXX"
19062LD_CXX="$LD"
19063
19064
19065cat > conftest.$ac_ext <<EOF
19066class Foo
19067{
19068public:
19069  Foo (void) { a = 0; }
19070private:
19071  int a;
19072};
19073EOF
19074
19075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19076  (eval $ac_compile) 2>&5
19077  ac_status=$?
19078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079  (exit $ac_status); }; then
19080  # Parse the compiler output and extract the necessary
19081  # objects, libraries and library flags.
19082
19083  # Sentinel used to keep track of whether or not we are before
19084  # the conftest object file.
19085  pre_test_object_deps_done=no
19086
19087  # The `*' in the case matches for architectures that use `case' in
19088  # $output_verbose_cmd can trigger glob expansion during the loop
19089  # eval without this substitution.
19090  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19091
19092  for p in `eval $output_verbose_link_cmd`; do
19093    case $p in
19094
19095    -L* | -R* | -l*)
19096       # Some compilers place space between "-{L,R}" and the path.
19097       # Remove the space.
19098       if test $p = "-L" \
19099	  || test $p = "-R"; then
19100	 prev=$p
19101	 continue
19102       else
19103	 prev=
19104       fi
19105
19106       if test "$pre_test_object_deps_done" = no; then
19107	 case $p in
19108	 -L* | -R*)
19109	   # Internal compiler library paths should come after those
19110	   # provided the user.  The postdeps already come after the
19111	   # user supplied libs so there is no need to process them.
19112	   if test -z "$compiler_lib_search_path_CXX"; then
19113	     compiler_lib_search_path_CXX="${prev}${p}"
19114	   else
19115	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19116	   fi
19117	   ;;
19118	 # The "-l" case would never come before the object being
19119	 # linked, so don't bother handling this case.
19120	 esac
19121       else
19122	 if test -z "$postdeps_CXX"; then
19123	   postdeps_CXX="${prev}${p}"
19124	 else
19125	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19126	 fi
19127       fi
19128       ;;
19129
19130    *.$objext)
19131       # This assumes that the test object file only shows up
19132       # once in the compiler output.
19133       if test "$p" = "conftest.$objext"; then
19134	 pre_test_object_deps_done=yes
19135	 continue
19136       fi
19137
19138       if test "$pre_test_object_deps_done" = no; then
19139	 if test -z "$predep_objects_CXX"; then
19140	   predep_objects_CXX="$p"
19141	 else
19142	   predep_objects_CXX="$predep_objects_CXX $p"
19143	 fi
19144       else
19145	 if test -z "$postdep_objects_CXX"; then
19146	   postdep_objects_CXX="$p"
19147	 else
19148	   postdep_objects_CXX="$postdep_objects_CXX $p"
19149	 fi
19150       fi
19151       ;;
19152
19153    *) ;; # Ignore the rest.
19154
19155    esac
19156  done
19157
19158  # Clean up.
19159  rm -f a.out a.exe
19160else
19161  echo "libtool.m4: error: problem compiling CXX test program"
19162fi
19163
19164$rm -f confest.$objext
19165
19166# PORTME: override above test on systems where it is broken
19167case $host_os in
19168interix3*)
19169  # Interix 3.5 installs completely hosed .la files for C++, so rather than
19170  # hack all around it, let's just trust "g++" to DTRT.
19171  predep_objects_CXX=
19172  postdep_objects_CXX=
19173  postdeps_CXX=
19174  ;;
19175
19176solaris*)
19177  case $cc_basename in
19178  CC*)
19179    # Adding this requires a known-good setup of shared libraries for
19180    # Sun compiler versions before 5.6, else PIC objects from an old
19181    # archive will be linked into the output, leading to subtle bugs.
19182    postdeps_CXX='-lCstd -lCrun'
19183    ;;
19184  esac
19185  ;;
19186esac
19187
19188
19189case " $postdeps_CXX " in
19190*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19191esac
19192
19193lt_prog_compiler_wl_CXX=
19194lt_prog_compiler_pic_CXX=
19195lt_prog_compiler_static_CXX=
19196
19197{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19198echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19199
19200  # C++ specific cases for pic, static, wl, etc.
19201  if test "$GXX" = yes; then
19202    lt_prog_compiler_wl_CXX='-Wl,'
19203    lt_prog_compiler_static_CXX='-static'
19204
19205    case $host_os in
19206    aix*)
19207      # All AIX code is PIC.
19208      if test "$host_cpu" = ia64; then
19209	# AIX 5 now supports IA64 processor
19210	lt_prog_compiler_static_CXX='-Bstatic'
19211      fi
19212      ;;
19213    amigaos*)
19214      # FIXME: we need at least 68020 code to build shared libraries, but
19215      # adding the `-m68020' flag to GCC prevents building anything better,
19216      # like `-m68040'.
19217      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19218      ;;
19219    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19220      # PIC is the default for these OSes.
19221      ;;
19222    mingw* | os2* | pw32*)
19223      # This hack is so that the source file can tell whether it is being
19224      # built for inclusion in a dll (and should export symbols for example).
19225      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19226      ;;
19227    darwin* | rhapsody*)
19228      # PIC is the default on this platform
19229      # Common symbols not allowed in MH_DYLIB files
19230      lt_prog_compiler_pic_CXX='-fno-common'
19231      ;;
19232    *djgpp*)
19233      # DJGPP does not support shared libraries at all
19234      lt_prog_compiler_pic_CXX=
19235      ;;
19236    interix3*)
19237      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19238      # Instead, we relocate shared libraries at runtime.
19239      ;;
19240    sysv4*MP*)
19241      if test -d /usr/nec; then
19242	lt_prog_compiler_pic_CXX=-Kconform_pic
19243      fi
19244      ;;
19245    hpux*)
19246      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19247      # not for PA HP-UX.
19248      case $host_cpu in
19249      hppa*64*|ia64*)
19250	;;
19251      *)
19252	lt_prog_compiler_pic_CXX='-fPIC'
19253	;;
19254      esac
19255      ;;
19256    *)
19257      lt_prog_compiler_pic_CXX='-fPIC'
19258      ;;
19259    esac
19260  else
19261    case $host_os in
19262      aix4* | aix5*)
19263	# All AIX code is PIC.
19264	if test "$host_cpu" = ia64; then
19265	  # AIX 5 now supports IA64 processor
19266	  lt_prog_compiler_static_CXX='-Bstatic'
19267	else
19268	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19269	fi
19270	;;
19271      chorus*)
19272	case $cc_basename in
19273	cxch68*)
19274	  # Green Hills C++ Compiler
19275	  # _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"
19276	  ;;
19277	esac
19278	;;
19279       darwin*)
19280         # PIC is the default on this platform
19281         # Common symbols not allowed in MH_DYLIB files
19282         case $cc_basename in
19283           xlc*)
19284           lt_prog_compiler_pic_CXX='-qnocommon'
19285           lt_prog_compiler_wl_CXX='-Wl,'
19286           ;;
19287         esac
19288       ;;
19289      dgux*)
19290	case $cc_basename in
19291	  ec++*)
19292	    lt_prog_compiler_pic_CXX='-KPIC'
19293	    ;;
19294	  ghcx*)
19295	    # Green Hills C++ Compiler
19296	    lt_prog_compiler_pic_CXX='-pic'
19297	    ;;
19298	  *)
19299	    ;;
19300	esac
19301	;;
19302      freebsd* | kfreebsd*-gnu | dragonfly*)
19303	# FreeBSD uses GNU C++
19304	;;
19305      hpux9* | hpux10* | hpux11*)
19306	case $cc_basename in
19307	  CC*)
19308	    lt_prog_compiler_wl_CXX='-Wl,'
19309	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19310	    if test "$host_cpu" != ia64; then
19311	      lt_prog_compiler_pic_CXX='+Z'
19312	    fi
19313	    ;;
19314	  aCC*)
19315	    lt_prog_compiler_wl_CXX='-Wl,'
19316	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19317	    case $host_cpu in
19318	    hppa*64*|ia64*)
19319	      # +Z the default
19320	      ;;
19321	    *)
19322	      lt_prog_compiler_pic_CXX='+Z'
19323	      ;;
19324	    esac
19325	    ;;
19326	  *)
19327	    ;;
19328	esac
19329	;;
19330      interix*)
19331	# This is c89, which is MS Visual C++ (no shared libs)
19332	# Anyone wants to do a port?
19333	;;
19334      irix5* | irix6* | nonstopux*)
19335	case $cc_basename in
19336	  CC*)
19337	    lt_prog_compiler_wl_CXX='-Wl,'
19338	    lt_prog_compiler_static_CXX='-non_shared'
19339	    # CC pic flag -KPIC is the default.
19340	    ;;
19341	  *)
19342	    ;;
19343	esac
19344	;;
19345      linux*)
19346	case $cc_basename in
19347	  KCC*)
19348	    # KAI C++ Compiler
19349	    lt_prog_compiler_wl_CXX='--backend -Wl,'
19350	    lt_prog_compiler_pic_CXX='-fPIC'
19351	    ;;
19352	  icpc* | ecpc*)
19353	    # Intel C++
19354	    lt_prog_compiler_wl_CXX='-Wl,'
19355	    lt_prog_compiler_pic_CXX='-KPIC'
19356	    lt_prog_compiler_static_CXX='-static'
19357	    ;;
19358	  pgCC*)
19359	    # Portland Group C++ compiler.
19360	    lt_prog_compiler_wl_CXX='-Wl,'
19361	    lt_prog_compiler_pic_CXX='-fpic'
19362	    lt_prog_compiler_static_CXX='-Bstatic'
19363	    ;;
19364	  cxx*)
19365	    # Compaq C++
19366	    # Make sure the PIC flag is empty.  It appears that all Alpha
19367	    # Linux and Compaq Tru64 Unix objects are PIC.
19368	    lt_prog_compiler_pic_CXX=
19369	    lt_prog_compiler_static_CXX='-non_shared'
19370	    ;;
19371	  *)
19372	    ;;
19373	esac
19374	;;
19375      lynxos*)
19376	;;
19377      m88k*)
19378	;;
19379      mvs*)
19380	case $cc_basename in
19381	  cxx*)
19382	    lt_prog_compiler_pic_CXX='-W c,exportall'
19383	    ;;
19384	  *)
19385	    ;;
19386	esac
19387	;;
19388      netbsd*)
19389	;;
19390      osf3* | osf4* | osf5*)
19391	case $cc_basename in
19392	  KCC*)
19393	    lt_prog_compiler_wl_CXX='--backend -Wl,'
19394	    ;;
19395	  RCC*)
19396	    # Rational C++ 2.4.1
19397	    lt_prog_compiler_pic_CXX='-pic'
19398	    ;;
19399	  cxx*)
19400	    # Digital/Compaq C++
19401	    lt_prog_compiler_wl_CXX='-Wl,'
19402	    # Make sure the PIC flag is empty.  It appears that all Alpha
19403	    # Linux and Compaq Tru64 Unix objects are PIC.
19404	    lt_prog_compiler_pic_CXX=
19405	    lt_prog_compiler_static_CXX='-non_shared'
19406	    ;;
19407	  *)
19408	    ;;
19409	esac
19410	;;
19411      psos*)
19412	;;
19413      solaris*)
19414	case $cc_basename in
19415	  CC*)
19416	    # Sun C++ 4.2, 5.x and Centerline C++
19417	    lt_prog_compiler_pic_CXX='-KPIC'
19418	    lt_prog_compiler_static_CXX='-Bstatic'
19419	    lt_prog_compiler_wl_CXX='-Qoption ld '
19420	    ;;
19421	  gcx*)
19422	    # Green Hills C++ Compiler
19423	    lt_prog_compiler_pic_CXX='-PIC'
19424	    ;;
19425	  *)
19426	    ;;
19427	esac
19428	;;
19429      sunos4*)
19430	case $cc_basename in
19431	  CC*)
19432	    # Sun C++ 4.x
19433	    lt_prog_compiler_pic_CXX='-pic'
19434	    lt_prog_compiler_static_CXX='-Bstatic'
19435	    ;;
19436	  lcc*)
19437	    # Lucid
19438	    lt_prog_compiler_pic_CXX='-pic'
19439	    ;;
19440	  *)
19441	    ;;
19442	esac
19443	;;
19444      tandem*)
19445	case $cc_basename in
19446	  NCC*)
19447	    # NonStop-UX NCC 3.20
19448	    lt_prog_compiler_pic_CXX='-KPIC'
19449	    ;;
19450	  *)
19451	    ;;
19452	esac
19453	;;
19454      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19455	case $cc_basename in
19456	  CC*)
19457	    lt_prog_compiler_wl_CXX='-Wl,'
19458	    lt_prog_compiler_pic_CXX='-KPIC'
19459	    lt_prog_compiler_static_CXX='-Bstatic'
19460	    ;;
19461	esac
19462	;;
19463      vxworks*)
19464	;;
19465      *)
19466	lt_prog_compiler_can_build_shared_CXX=no
19467	;;
19468    esac
19469  fi
19470
19471{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19472echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19473
19474#
19475# Check to make sure the PIC flag actually works.
19476#
19477if test -n "$lt_prog_compiler_pic_CXX"; then
19478
19479{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19480echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19481if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19482  echo $ECHO_N "(cached) $ECHO_C" >&6
19483else
19484  lt_prog_compiler_pic_works_CXX=no
19485  ac_outfile=conftest.$ac_objext
19486   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19487   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19488   # Insert the option either (1) after the last *FLAGS variable, or
19489   # (2) before a word containing "conftest.", or (3) at the end.
19490   # Note that $ac_compile itself does not contain backslashes and begins
19491   # with a dollar sign (not a hyphen), so the echo should work correctly.
19492   # The option is referenced via a variable to avoid confusing sed.
19493   lt_compile=`echo "$ac_compile" | $SED \
19494   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19495   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19496   -e 's:$: $lt_compiler_flag:'`
19497   (eval echo "\"\$as_me:19497: $lt_compile\"" >&5)
19498   (eval "$lt_compile" 2>conftest.err)
19499   ac_status=$?
19500   cat conftest.err >&5
19501   echo "$as_me:19501: \$? = $ac_status" >&5
19502   if (exit $ac_status) && test -s "$ac_outfile"; then
19503     # The compiler can only warn and ignore the option if not recognized
19504     # So say no if there are warnings other than the usual output.
19505     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19506     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19507     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19508       lt_prog_compiler_pic_works_CXX=yes
19509     fi
19510   fi
19511   $rm conftest*
19512
19513fi
19514{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19515echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19516
19517if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19518    case $lt_prog_compiler_pic_CXX in
19519     "" | " "*) ;;
19520     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19521     esac
19522else
19523    lt_prog_compiler_pic_CXX=
19524     lt_prog_compiler_can_build_shared_CXX=no
19525fi
19526
19527fi
19528case $host_os in
19529  # For platforms which do not support PIC, -DPIC is meaningless:
19530  *djgpp*)
19531    lt_prog_compiler_pic_CXX=
19532    ;;
19533  *)
19534    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19535    ;;
19536esac
19537
19538#
19539# Check to make sure the static flag actually works.
19540#
19541wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19542{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19543echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19544if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19545  echo $ECHO_N "(cached) $ECHO_C" >&6
19546else
19547  lt_prog_compiler_static_works_CXX=no
19548   save_LDFLAGS="$LDFLAGS"
19549   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19550   printf "$lt_simple_link_test_code" > conftest.$ac_ext
19551   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19552     # The linker can only warn and ignore the option if not recognized
19553     # So say no if there are warnings
19554     if test -s conftest.err; then
19555       # Append any errors to the config.log.
19556       cat conftest.err 1>&5
19557       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19558       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19559       if diff conftest.exp conftest.er2 >/dev/null; then
19560         lt_prog_compiler_static_works_CXX=yes
19561       fi
19562     else
19563       lt_prog_compiler_static_works_CXX=yes
19564     fi
19565   fi
19566   $rm conftest*
19567   LDFLAGS="$save_LDFLAGS"
19568
19569fi
19570{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19571echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19572
19573if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19574    :
19575else
19576    lt_prog_compiler_static_CXX=
19577fi
19578
19579
19580{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19581echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19582if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19583  echo $ECHO_N "(cached) $ECHO_C" >&6
19584else
19585  lt_cv_prog_compiler_c_o_CXX=no
19586   $rm -r conftest 2>/dev/null
19587   mkdir conftest
19588   cd conftest
19589   mkdir out
19590   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19591
19592   lt_compiler_flag="-o out/conftest2.$ac_objext"
19593   # Insert the option either (1) after the last *FLAGS variable, or
19594   # (2) before a word containing "conftest.", or (3) at the end.
19595   # Note that $ac_compile itself does not contain backslashes and begins
19596   # with a dollar sign (not a hyphen), so the echo should work correctly.
19597   lt_compile=`echo "$ac_compile" | $SED \
19598   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19599   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19600   -e 's:$: $lt_compiler_flag:'`
19601   (eval echo "\"\$as_me:19601: $lt_compile\"" >&5)
19602   (eval "$lt_compile" 2>out/conftest.err)
19603   ac_status=$?
19604   cat out/conftest.err >&5
19605   echo "$as_me:19605: \$? = $ac_status" >&5
19606   if (exit $ac_status) && test -s out/conftest2.$ac_objext
19607   then
19608     # The compiler can only warn and ignore the option if not recognized
19609     # So say no if there are warnings
19610     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19611     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19612     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19613       lt_cv_prog_compiler_c_o_CXX=yes
19614     fi
19615   fi
19616   chmod u+w . 2>&5
19617   $rm conftest*
19618   # SGI C++ compiler will create directory out/ii_files/ for
19619   # template instantiation
19620   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19621   $rm out/* && rmdir out
19622   cd ..
19623   rmdir conftest
19624   $rm conftest*
19625
19626fi
19627{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19628echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19629
19630
19631hard_links="nottested"
19632if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19633  # do not overwrite the value of need_locks provided by the user
19634  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19635echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19636  hard_links=yes
19637  $rm conftest*
19638  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19639  touch conftest.a
19640  ln conftest.a conftest.b 2>&5 || hard_links=no
19641  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19642  { echo "$as_me:$LINENO: result: $hard_links" >&5
19643echo "${ECHO_T}$hard_links" >&6; }
19644  if test "$hard_links" = no; then
19645    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19646echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19647    need_locks=warn
19648  fi
19649else
19650  need_locks=no
19651fi
19652
19653{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19654echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19655
19656  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19657  case $host_os in
19658  aix4* | aix5*)
19659    # If we're using GNU nm, then we don't want the "-C" option.
19660    # -C means demangle to AIX nm, but means don't demangle with GNU nm
19661    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19662      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'
19663    else
19664      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'
19665    fi
19666    ;;
19667  pw32*)
19668    export_symbols_cmds_CXX="$ltdll_cmds"
19669  ;;
19670  cygwin* | mingw*)
19671    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'
19672  ;;
19673  *)
19674    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19675  ;;
19676  esac
19677
19678{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19679echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19680test "$ld_shlibs_CXX" = no && can_build_shared=no
19681
19682#
19683# Do we need to explicitly link libc?
19684#
19685case "x$archive_cmds_need_lc_CXX" in
19686x|xyes)
19687  # Assume -lc should be added
19688  archive_cmds_need_lc_CXX=yes
19689
19690  if test "$enable_shared" = yes && test "$GCC" = yes; then
19691    case $archive_cmds_CXX in
19692    *'~'*)
19693      # FIXME: we may have to deal with multi-command sequences.
19694      ;;
19695    '$CC '*)
19696      # Test whether the compiler implicitly links with -lc since on some
19697      # systems, -lgcc has to come before -lc. If gcc already passes -lc
19698      # to ld, don't add -lc before -lgcc.
19699      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19700echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19701      $rm conftest*
19702      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19703
19704      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19705  (eval $ac_compile) 2>&5
19706  ac_status=$?
19707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708  (exit $ac_status); } 2>conftest.err; then
19709        soname=conftest
19710        lib=conftest
19711        libobjs=conftest.$ac_objext
19712        deplibs=
19713        wl=$lt_prog_compiler_wl_CXX
19714	pic_flag=$lt_prog_compiler_pic_CXX
19715        compiler_flags=-v
19716        linker_flags=-v
19717        verstring=
19718        output_objdir=.
19719        libname=conftest
19720        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19721        allow_undefined_flag_CXX=
19722        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19723  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19724  ac_status=$?
19725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726  (exit $ac_status); }
19727        then
19728	  archive_cmds_need_lc_CXX=no
19729        else
19730	  archive_cmds_need_lc_CXX=yes
19731        fi
19732        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19733      else
19734        cat conftest.err 1>&5
19735      fi
19736      $rm conftest*
19737      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19738echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19739      ;;
19740    esac
19741  fi
19742  ;;
19743esac
19744
19745{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19746echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19747library_names_spec=
19748libname_spec='lib$name'
19749soname_spec=
19750shrext_cmds=".so"
19751postinstall_cmds=
19752postuninstall_cmds=
19753finish_cmds=
19754finish_eval=
19755shlibpath_var=
19756shlibpath_overrides_runpath=unknown
19757version_type=none
19758dynamic_linker="$host_os ld.so"
19759sys_lib_dlsearch_path_spec="/lib /usr/lib"
19760if test "$GCC" = yes; then
19761  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19762  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19763    # if the path contains ";" then we assume it to be the separator
19764    # otherwise default to the standard path separator (i.e. ":") - it is
19765    # assumed that no part of a normal pathname contains ";" but that should
19766    # okay in the real world where ";" in dirpaths is itself problematic.
19767    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19768  else
19769    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19770  fi
19771else
19772  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19773fi
19774need_lib_prefix=unknown
19775hardcode_into_libs=no
19776
19777# when you set need_version to no, make sure it does not cause -set_version
19778# flags to be left without arguments
19779need_version=unknown
19780
19781case $host_os in
19782aix3*)
19783  version_type=linux
19784  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19785  shlibpath_var=LIBPATH
19786
19787  # AIX 3 has no versioning support, so we append a major version to the name.
19788  soname_spec='${libname}${release}${shared_ext}$major'
19789  ;;
19790
19791aix4* | aix5*)
19792  version_type=linux
19793  need_lib_prefix=no
19794  need_version=no
19795  hardcode_into_libs=yes
19796  if test "$host_cpu" = ia64; then
19797    # AIX 5 supports IA64
19798    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19799    shlibpath_var=LD_LIBRARY_PATH
19800  else
19801    # With GCC up to 2.95.x, collect2 would create an import file
19802    # for dependence libraries.  The import file would start with
19803    # the line `#! .'.  This would cause the generated library to
19804    # depend on `.', always an invalid library.  This was fixed in
19805    # development snapshots of GCC prior to 3.0.
19806    case $host_os in
19807      aix4 | aix4.[01] | aix4.[01].*)
19808      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19809	   echo ' yes '
19810	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19811	:
19812      else
19813	can_build_shared=no
19814      fi
19815      ;;
19816    esac
19817    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19818    # soname into executable. Probably we can add versioning support to
19819    # collect2, so additional links can be useful in future.
19820    if test "$aix_use_runtimelinking" = yes; then
19821      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19822      # instead of lib<name>.a to let people know that these are not
19823      # typical AIX shared libraries.
19824      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19825    else
19826      # We preserve .a as extension for shared libraries through AIX4.2
19827      # and later when we are not doing run time linking.
19828      library_names_spec='${libname}${release}.a $libname.a'
19829      soname_spec='${libname}${release}${shared_ext}$major'
19830    fi
19831    shlibpath_var=LIBPATH
19832  fi
19833  ;;
19834
19835amigaos*)
19836  library_names_spec='$libname.ixlibrary $libname.a'
19837  # Create ${libname}_ixlibrary.a entries in /sys/libs.
19838  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'
19839  ;;
19840
19841beos*)
19842  library_names_spec='${libname}${shared_ext}'
19843  dynamic_linker="$host_os ld.so"
19844  shlibpath_var=LIBRARY_PATH
19845  ;;
19846
19847bsdi[45]*)
19848  version_type=linux
19849  need_version=no
19850  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19851  soname_spec='${libname}${release}${shared_ext}$major'
19852  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19853  shlibpath_var=LD_LIBRARY_PATH
19854  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19855  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19856  # the default ld.so.conf also contains /usr/contrib/lib and
19857  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19858  # libtool to hard-code these into programs
19859  ;;
19860
19861cygwin* | mingw* | pw32*)
19862  version_type=windows
19863  shrext_cmds=".dll"
19864  need_version=no
19865  need_lib_prefix=no
19866
19867  case $GCC,$host_os in
19868  yes,cygwin* | yes,mingw* | yes,pw32*)
19869    library_names_spec='$libname.dll.a'
19870    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19871    postinstall_cmds='base_file=`basename \${file}`~
19872      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19873      dldir=$destdir/`dirname \$dlpath`~
19874      test -d \$dldir || mkdir -p \$dldir~
19875      $install_prog $dir/$dlname \$dldir/$dlname~
19876      chmod a+x \$dldir/$dlname'
19877    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19878      dlpath=$dir/\$dldll~
19879       $rm \$dlpath'
19880    shlibpath_overrides_runpath=yes
19881
19882    case $host_os in
19883    cygwin*)
19884      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19885      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19886      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19887      ;;
19888    mingw*)
19889      # MinGW DLLs use traditional 'lib' prefix
19890      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19891      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19892      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19893        # It is most probably a Windows format PATH printed by
19894        # mingw gcc, but we are running on Cygwin. Gcc prints its search
19895        # path with ; separators, and with drive letters. We can handle the
19896        # drive letters (cygwin fileutils understands them), so leave them,
19897        # especially as we might pass files found there to a mingw objdump,
19898        # which wouldn't understand a cygwinified path. Ahh.
19899        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19900      else
19901        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19902      fi
19903      ;;
19904    pw32*)
19905      # pw32 DLLs use 'pw' prefix rather than 'lib'
19906      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19907      ;;
19908    esac
19909    ;;
19910
19911  *)
19912    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19913    ;;
19914  esac
19915  dynamic_linker='Win32 ld.exe'
19916  # FIXME: first we should search . and the directory the executable is in
19917  shlibpath_var=PATH
19918  ;;
19919
19920darwin* | rhapsody*)
19921  dynamic_linker="$host_os dyld"
19922  version_type=darwin
19923  need_lib_prefix=no
19924  need_version=no
19925  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19926  soname_spec='${libname}${release}${major}$shared_ext'
19927  shlibpath_overrides_runpath=yes
19928  shlibpath_var=DYLD_LIBRARY_PATH
19929  shrext_cmds='.dylib'
19930  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19931  if test "$GCC" = yes; then
19932    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"`
19933  else
19934    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19935  fi
19936  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19937  ;;
19938
19939dgux*)
19940  version_type=linux
19941  need_lib_prefix=no
19942  need_version=no
19943  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19944  soname_spec='${libname}${release}${shared_ext}$major'
19945  shlibpath_var=LD_LIBRARY_PATH
19946  ;;
19947
19948freebsd1*)
19949  dynamic_linker=no
19950  ;;
19951
19952kfreebsd*-gnu)
19953  version_type=linux
19954  need_lib_prefix=no
19955  need_version=no
19956  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19957  soname_spec='${libname}${release}${shared_ext}$major'
19958  shlibpath_var=LD_LIBRARY_PATH
19959  shlibpath_overrides_runpath=no
19960  hardcode_into_libs=yes
19961  dynamic_linker='GNU ld.so'
19962  ;;
19963
19964freebsd* | dragonfly*)
19965  # DragonFly does not have aout.  When/if they implement a new
19966  # versioning mechanism, adjust this.
19967  if test -x /usr/bin/objformat; then
19968    objformat=`/usr/bin/objformat`
19969  else
19970    case $host_os in
19971    freebsd[123]*) objformat=aout ;;
19972    *) objformat=elf ;;
19973    esac
19974  fi
19975  version_type=freebsd-$objformat
19976  case $version_type in
19977    freebsd-elf*)
19978      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19979      need_version=no
19980      need_lib_prefix=no
19981      ;;
19982    freebsd-*)
19983      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19984      need_version=yes
19985      ;;
19986  esac
19987  shlibpath_var=LD_LIBRARY_PATH
19988  case $host_os in
19989  freebsd2*)
19990    shlibpath_overrides_runpath=yes
19991    ;;
19992  freebsd3.[01]* | freebsdelf3.[01]*)
19993    shlibpath_overrides_runpath=yes
19994    hardcode_into_libs=yes
19995    ;;
19996  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19997  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19998    shlibpath_overrides_runpath=no
19999    hardcode_into_libs=yes
20000    ;;
20001  freebsd*) # from 4.6 on
20002    shlibpath_overrides_runpath=yes
20003    hardcode_into_libs=yes
20004    ;;
20005  esac
20006  ;;
20007
20008gnu*)
20009  version_type=linux
20010  need_lib_prefix=no
20011  need_version=no
20012  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20013  soname_spec='${libname}${release}${shared_ext}$major'
20014  shlibpath_var=LD_LIBRARY_PATH
20015  hardcode_into_libs=yes
20016  ;;
20017
20018hpux9* | hpux10* | hpux11*)
20019  # Give a soname corresponding to the major version so that dld.sl refuses to
20020  # link against other versions.
20021  version_type=sunos
20022  need_lib_prefix=no
20023  need_version=no
20024  case $host_cpu in
20025  ia64*)
20026    shrext_cmds='.so'
20027    hardcode_into_libs=yes
20028    dynamic_linker="$host_os dld.so"
20029    shlibpath_var=LD_LIBRARY_PATH
20030    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20031    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20032    soname_spec='${libname}${release}${shared_ext}$major'
20033    if test "X$HPUX_IA64_MODE" = X32; then
20034      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20035    else
20036      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20037    fi
20038    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20039    ;;
20040   hppa*64*)
20041     shrext_cmds='.sl'
20042     hardcode_into_libs=yes
20043     dynamic_linker="$host_os dld.sl"
20044     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20045     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20046     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20047     soname_spec='${libname}${release}${shared_ext}$major'
20048     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20049     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20050     ;;
20051   *)
20052    shrext_cmds='.sl'
20053    dynamic_linker="$host_os dld.sl"
20054    shlibpath_var=SHLIB_PATH
20055    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20056    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20057    soname_spec='${libname}${release}${shared_ext}$major'
20058    ;;
20059  esac
20060  # HP-UX runs *really* slowly unless shared libraries are mode 555.
20061  postinstall_cmds='chmod 555 $lib'
20062  ;;
20063
20064interix3*)
20065  version_type=linux
20066  need_lib_prefix=no
20067  need_version=no
20068  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20069  soname_spec='${libname}${release}${shared_ext}$major'
20070  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20071  shlibpath_var=LD_LIBRARY_PATH
20072  shlibpath_overrides_runpath=no
20073  hardcode_into_libs=yes
20074  ;;
20075
20076irix5* | irix6* | nonstopux*)
20077  case $host_os in
20078    nonstopux*) version_type=nonstopux ;;
20079    *)
20080	if test "$lt_cv_prog_gnu_ld" = yes; then
20081		version_type=linux
20082	else
20083		version_type=irix
20084	fi ;;
20085  esac
20086  need_lib_prefix=no
20087  need_version=no
20088  soname_spec='${libname}${release}${shared_ext}$major'
20089  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20090  case $host_os in
20091  irix5* | nonstopux*)
20092    libsuff= shlibsuff=
20093    ;;
20094  *)
20095    case $LD in # libtool.m4 will add one of these switches to LD
20096    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20097      libsuff= shlibsuff= libmagic=32-bit;;
20098    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20099      libsuff=32 shlibsuff=N32 libmagic=N32;;
20100    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20101      libsuff=64 shlibsuff=64 libmagic=64-bit;;
20102    *) libsuff= shlibsuff= libmagic=never-match;;
20103    esac
20104    ;;
20105  esac
20106  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20107  shlibpath_overrides_runpath=no
20108  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20109  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20110  hardcode_into_libs=yes
20111  ;;
20112
20113# No shared lib support for Linux oldld, aout, or coff.
20114linux*oldld* | linux*aout* | linux*coff*)
20115  dynamic_linker=no
20116  ;;
20117
20118# This must be Linux ELF.
20119linux*)
20120  version_type=linux
20121  need_lib_prefix=no
20122  need_version=no
20123  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20124  soname_spec='${libname}${release}${shared_ext}$major'
20125  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20126  shlibpath_var=LD_LIBRARY_PATH
20127  shlibpath_overrides_runpath=no
20128  # This implies no fast_install, which is unacceptable.
20129  # Some rework will be needed to allow for fast_install
20130  # before this can be enabled.
20131  hardcode_into_libs=yes
20132
20133  # Append ld.so.conf contents to the search path
20134  if test -f /etc/ld.so.conf; then
20135    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' ' '`
20136    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20137  fi
20138
20139  # We used to test for /lib/ld.so.1 and disable shared libraries on
20140  # powerpc, because MkLinux only supported shared libraries with the
20141  # GNU dynamic linker.  Since this was broken with cross compilers,
20142  # most powerpc-linux boxes support dynamic linking these days and
20143  # people can always --disable-shared, the test was removed, and we
20144  # assume the GNU/Linux dynamic linker is in use.
20145  dynamic_linker='GNU/Linux ld.so'
20146  ;;
20147
20148knetbsd*-gnu)
20149  version_type=linux
20150  need_lib_prefix=no
20151  need_version=no
20152  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20153  soname_spec='${libname}${release}${shared_ext}$major'
20154  shlibpath_var=LD_LIBRARY_PATH
20155  shlibpath_overrides_runpath=no
20156  hardcode_into_libs=yes
20157  dynamic_linker='GNU ld.so'
20158  ;;
20159
20160netbsd*)
20161  version_type=sunos
20162  need_lib_prefix=no
20163  need_version=no
20164  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20165    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20166    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20167    dynamic_linker='NetBSD (a.out) ld.so'
20168  else
20169    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20170    soname_spec='${libname}${release}${shared_ext}$major'
20171    dynamic_linker='NetBSD ld.elf_so'
20172  fi
20173  shlibpath_var=LD_LIBRARY_PATH
20174  shlibpath_overrides_runpath=yes
20175  hardcode_into_libs=yes
20176  ;;
20177
20178newsos6)
20179  version_type=linux
20180  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20181  shlibpath_var=LD_LIBRARY_PATH
20182  shlibpath_overrides_runpath=yes
20183  ;;
20184
20185nto-qnx*)
20186  version_type=linux
20187  need_lib_prefix=no
20188  need_version=no
20189  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20190  soname_spec='${libname}${release}${shared_ext}$major'
20191  shlibpath_var=LD_LIBRARY_PATH
20192  shlibpath_overrides_runpath=yes
20193  ;;
20194
20195openbsd*)
20196  version_type=sunos
20197  sys_lib_dlsearch_path_spec="/usr/lib"
20198  need_lib_prefix=no
20199  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20200  case $host_os in
20201    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20202    *)                         need_version=no  ;;
20203  esac
20204  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20205  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20206  shlibpath_var=LD_LIBRARY_PATH
20207  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20208    case $host_os in
20209      openbsd2.[89] | openbsd2.[89].*)
20210	shlibpath_overrides_runpath=no
20211	;;
20212      *)
20213	shlibpath_overrides_runpath=yes
20214	;;
20215      esac
20216  else
20217    shlibpath_overrides_runpath=yes
20218  fi
20219  ;;
20220
20221os2*)
20222  libname_spec='$name'
20223  shrext_cmds=".dll"
20224  need_lib_prefix=no
20225  library_names_spec='$libname${shared_ext} $libname.a'
20226  dynamic_linker='OS/2 ld.exe'
20227  shlibpath_var=LIBPATH
20228  ;;
20229
20230osf3* | osf4* | osf5*)
20231  version_type=osf
20232  need_lib_prefix=no
20233  need_version=no
20234  soname_spec='${libname}${release}${shared_ext}$major'
20235  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20236  shlibpath_var=LD_LIBRARY_PATH
20237  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20238  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20239  ;;
20240
20241solaris*)
20242  version_type=linux
20243  need_lib_prefix=no
20244  need_version=no
20245  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20246  soname_spec='${libname}${release}${shared_ext}$major'
20247  shlibpath_var=LD_LIBRARY_PATH
20248  shlibpath_overrides_runpath=yes
20249  hardcode_into_libs=yes
20250  # ldd complains unless libraries are executable
20251  postinstall_cmds='chmod +x $lib'
20252  ;;
20253
20254sunos4*)
20255  version_type=sunos
20256  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20257  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20258  shlibpath_var=LD_LIBRARY_PATH
20259  shlibpath_overrides_runpath=yes
20260  if test "$with_gnu_ld" = yes; then
20261    need_lib_prefix=no
20262  fi
20263  need_version=yes
20264  ;;
20265
20266sysv4 | sysv4.3*)
20267  version_type=linux
20268  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20269  soname_spec='${libname}${release}${shared_ext}$major'
20270  shlibpath_var=LD_LIBRARY_PATH
20271  case $host_vendor in
20272    sni)
20273      shlibpath_overrides_runpath=no
20274      need_lib_prefix=no
20275      export_dynamic_flag_spec='${wl}-Blargedynsym'
20276      runpath_var=LD_RUN_PATH
20277      ;;
20278    siemens)
20279      need_lib_prefix=no
20280      ;;
20281    motorola)
20282      need_lib_prefix=no
20283      need_version=no
20284      shlibpath_overrides_runpath=no
20285      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20286      ;;
20287  esac
20288  ;;
20289
20290sysv4*MP*)
20291  if test -d /usr/nec ;then
20292    version_type=linux
20293    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20294    soname_spec='$libname${shared_ext}.$major'
20295    shlibpath_var=LD_LIBRARY_PATH
20296  fi
20297  ;;
20298
20299sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20300  version_type=freebsd-elf
20301  need_lib_prefix=no
20302  need_version=no
20303  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20304  soname_spec='${libname}${release}${shared_ext}$major'
20305  shlibpath_var=LD_LIBRARY_PATH
20306  hardcode_into_libs=yes
20307  if test "$with_gnu_ld" = yes; then
20308    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20309    shlibpath_overrides_runpath=no
20310  else
20311    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20312    shlibpath_overrides_runpath=yes
20313    case $host_os in
20314      sco3.2v5*)
20315        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20316	;;
20317    esac
20318  fi
20319  sys_lib_dlsearch_path_spec='/usr/lib'
20320  ;;
20321
20322uts4*)
20323  version_type=linux
20324  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20325  soname_spec='${libname}${release}${shared_ext}$major'
20326  shlibpath_var=LD_LIBRARY_PATH
20327  ;;
20328
20329*)
20330  dynamic_linker=no
20331  ;;
20332esac
20333{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20334echo "${ECHO_T}$dynamic_linker" >&6; }
20335test "$dynamic_linker" = no && can_build_shared=no
20336
20337variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20338if test "$GCC" = yes; then
20339  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20340fi
20341
20342{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20343echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20344hardcode_action_CXX=
20345if test -n "$hardcode_libdir_flag_spec_CXX" || \
20346   test -n "$runpath_var_CXX" || \
20347   test "X$hardcode_automatic_CXX" = "Xyes" ; then
20348
20349  # We can hardcode non-existant directories.
20350  if test "$hardcode_direct_CXX" != no &&
20351     # If the only mechanism to avoid hardcoding is shlibpath_var, we
20352     # have to relink, otherwise we might link with an installed library
20353     # when we should be linking with a yet-to-be-installed one
20354     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20355     test "$hardcode_minus_L_CXX" != no; then
20356    # Linking always hardcodes the temporary library directory.
20357    hardcode_action_CXX=relink
20358  else
20359    # We can link without hardcoding, and we can hardcode nonexisting dirs.
20360    hardcode_action_CXX=immediate
20361  fi
20362else
20363  # We cannot hardcode anything, or else we can only hardcode existing
20364  # directories.
20365  hardcode_action_CXX=unsupported
20366fi
20367{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20368echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20369
20370if test "$hardcode_action_CXX" = relink; then
20371  # Fast installation is not supported
20372  enable_fast_install=no
20373elif test "$shlibpath_overrides_runpath" = yes ||
20374     test "$enable_shared" = no; then
20375  # Fast installation is not necessary
20376  enable_fast_install=needless
20377fi
20378
20379
20380# The else clause should only fire when bootstrapping the
20381# libtool distribution, otherwise you forgot to ship ltmain.sh
20382# with your package, and you will get complaints that there are
20383# no rules to generate ltmain.sh.
20384if test -f "$ltmain"; then
20385  # See if we are running on zsh, and set the options which allow our commands through
20386  # without removal of \ escapes.
20387  if test -n "${ZSH_VERSION+set}" ; then
20388    setopt NO_GLOB_SUBST
20389  fi
20390  # Now quote all the things that may contain metacharacters while being
20391  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20392  # variables and quote the copies for generation of the libtool script.
20393  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20394    SED SHELL STRIP \
20395    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20396    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20397    deplibs_check_method reload_flag reload_cmds need_locks \
20398    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20399    lt_cv_sys_global_symbol_to_c_name_address \
20400    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20401    old_postinstall_cmds old_postuninstall_cmds \
20402    compiler_CXX \
20403    CC_CXX \
20404    LD_CXX \
20405    lt_prog_compiler_wl_CXX \
20406    lt_prog_compiler_pic_CXX \
20407    lt_prog_compiler_static_CXX \
20408    lt_prog_compiler_no_builtin_flag_CXX \
20409    export_dynamic_flag_spec_CXX \
20410    thread_safe_flag_spec_CXX \
20411    whole_archive_flag_spec_CXX \
20412    enable_shared_with_static_runtimes_CXX \
20413    old_archive_cmds_CXX \
20414    old_archive_from_new_cmds_CXX \
20415    predep_objects_CXX \
20416    postdep_objects_CXX \
20417    predeps_CXX \
20418    postdeps_CXX \
20419    compiler_lib_search_path_CXX \
20420    archive_cmds_CXX \
20421    archive_expsym_cmds_CXX \
20422    postinstall_cmds_CXX \
20423    postuninstall_cmds_CXX \
20424    old_archive_from_expsyms_cmds_CXX \
20425    allow_undefined_flag_CXX \
20426    no_undefined_flag_CXX \
20427    export_symbols_cmds_CXX \
20428    hardcode_libdir_flag_spec_CXX \
20429    hardcode_libdir_flag_spec_ld_CXX \
20430    hardcode_libdir_separator_CXX \
20431    hardcode_automatic_CXX \
20432    module_cmds_CXX \
20433    module_expsym_cmds_CXX \
20434    lt_cv_prog_compiler_c_o_CXX \
20435    exclude_expsyms_CXX \
20436    include_expsyms_CXX; do
20437
20438    case $var in
20439    old_archive_cmds_CXX | \
20440    old_archive_from_new_cmds_CXX | \
20441    archive_cmds_CXX | \
20442    archive_expsym_cmds_CXX | \
20443    module_cmds_CXX | \
20444    module_expsym_cmds_CXX | \
20445    old_archive_from_expsyms_cmds_CXX | \
20446    export_symbols_cmds_CXX | \
20447    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20448    postinstall_cmds | postuninstall_cmds | \
20449    old_postinstall_cmds | old_postuninstall_cmds | \
20450    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20451      # Double-quote double-evaled strings.
20452      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20453      ;;
20454    *)
20455      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20456      ;;
20457    esac
20458  done
20459
20460  case $lt_echo in
20461  *'\$0 --fallback-echo"')
20462    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20463    ;;
20464  esac
20465
20466cfgfile="$ofile"
20467
20468  cat <<__EOF__ >> "$cfgfile"
20469# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20470
20471# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20472
20473# Shell to use when invoking shell scripts.
20474SHELL=$lt_SHELL
20475
20476# Whether or not to build shared libraries.
20477build_libtool_libs=$enable_shared
20478
20479# Whether or not to build static libraries.
20480build_old_libs=$enable_static
20481
20482# Whether or not to add -lc for building shared libraries.
20483build_libtool_need_lc=$archive_cmds_need_lc_CXX
20484
20485# Whether or not to disallow shared libs when runtime libs are static
20486allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20487
20488# Whether or not to optimize for fast installation.
20489fast_install=$enable_fast_install
20490
20491# The host system.
20492host_alias=$host_alias
20493host=$host
20494host_os=$host_os
20495
20496# The build system.
20497build_alias=$build_alias
20498build=$build
20499build_os=$build_os
20500
20501# An echo program that does not interpret backslashes.
20502echo=$lt_echo
20503
20504# The archiver.
20505AR=$lt_AR
20506AR_FLAGS=$lt_AR_FLAGS
20507
20508# A C compiler.
20509LTCC=$lt_LTCC
20510
20511# LTCC compiler flags.
20512LTCFLAGS=$lt_LTCFLAGS
20513
20514# A language-specific compiler.
20515CC=$lt_compiler_CXX
20516
20517# Is the compiler the GNU C compiler?
20518with_gcc=$GCC_CXX
20519
20520# An ERE matcher.
20521EGREP=$lt_EGREP
20522
20523# The linker used to build libraries.
20524LD=$lt_LD_CXX
20525
20526# Whether we need hard or soft links.
20527LN_S=$lt_LN_S
20528
20529# A BSD-compatible nm program.
20530NM=$lt_NM
20531
20532# A symbol stripping program
20533STRIP=$lt_STRIP
20534
20535# Used to examine libraries when file_magic_cmd begins "file"
20536MAGIC_CMD=$MAGIC_CMD
20537
20538# Used on cygwin: DLL creation program.
20539DLLTOOL="$DLLTOOL"
20540
20541# Used on cygwin: object dumper.
20542OBJDUMP="$OBJDUMP"
20543
20544# Used on cygwin: assembler.
20545AS="$AS"
20546
20547# The name of the directory that contains temporary libtool files.
20548objdir=$objdir
20549
20550# How to create reloadable object files.
20551reload_flag=$lt_reload_flag
20552reload_cmds=$lt_reload_cmds
20553
20554# How to pass a linker flag through the compiler.
20555wl=$lt_lt_prog_compiler_wl_CXX
20556
20557# Object file suffix (normally "o").
20558objext="$ac_objext"
20559
20560# Old archive suffix (normally "a").
20561libext="$libext"
20562
20563# Shared library suffix (normally ".so").
20564shrext_cmds='$shrext_cmds'
20565
20566# Executable file suffix (normally "").
20567exeext="$exeext"
20568
20569# Additional compiler flags for building library objects.
20570pic_flag=$lt_lt_prog_compiler_pic_CXX
20571pic_mode=$pic_mode
20572
20573# What is the maximum length of a command?
20574max_cmd_len=$lt_cv_sys_max_cmd_len
20575
20576# Does compiler simultaneously support -c and -o options?
20577compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20578
20579# Must we lock files when doing compilation?
20580need_locks=$lt_need_locks
20581
20582# Do we need the lib prefix for modules?
20583need_lib_prefix=$need_lib_prefix
20584
20585# Do we need a version for libraries?
20586need_version=$need_version
20587
20588# Whether dlopen is supported.
20589dlopen_support=$enable_dlopen
20590
20591# Whether dlopen of programs is supported.
20592dlopen_self=$enable_dlopen_self
20593
20594# Whether dlopen of statically linked programs is supported.
20595dlopen_self_static=$enable_dlopen_self_static
20596
20597# Compiler flag to prevent dynamic linking.
20598link_static_flag=$lt_lt_prog_compiler_static_CXX
20599
20600# Compiler flag to turn off builtin functions.
20601no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20602
20603# Compiler flag to allow reflexive dlopens.
20604export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20605
20606# Compiler flag to generate shared objects directly from archives.
20607whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20608
20609# Compiler flag to generate thread-safe objects.
20610thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20611
20612# Library versioning type.
20613version_type=$version_type
20614
20615# Format of library name prefix.
20616libname_spec=$lt_libname_spec
20617
20618# List of archive names.  First name is the real one, the rest are links.
20619# The last name is the one that the linker finds with -lNAME.
20620library_names_spec=$lt_library_names_spec
20621
20622# The coded name of the library, if different from the real name.
20623soname_spec=$lt_soname_spec
20624
20625# Commands used to build and install an old-style archive.
20626RANLIB=$lt_RANLIB
20627old_archive_cmds=$lt_old_archive_cmds_CXX
20628old_postinstall_cmds=$lt_old_postinstall_cmds
20629old_postuninstall_cmds=$lt_old_postuninstall_cmds
20630
20631# Create an old-style archive from a shared archive.
20632old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20633
20634# Create a temporary old-style archive to link instead of a shared archive.
20635old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20636
20637# Commands used to build and install a shared archive.
20638archive_cmds=$lt_archive_cmds_CXX
20639archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20640postinstall_cmds=$lt_postinstall_cmds
20641postuninstall_cmds=$lt_postuninstall_cmds
20642
20643# Commands used to build a loadable module (assumed same as above if empty)
20644module_cmds=$lt_module_cmds_CXX
20645module_expsym_cmds=$lt_module_expsym_cmds_CXX
20646
20647# Commands to strip libraries.
20648old_striplib=$lt_old_striplib
20649striplib=$lt_striplib
20650
20651# Dependencies to place before the objects being linked to create a
20652# shared library.
20653predep_objects=$lt_predep_objects_CXX
20654
20655# Dependencies to place after the objects being linked to create a
20656# shared library.
20657postdep_objects=$lt_postdep_objects_CXX
20658
20659# Dependencies to place before the objects being linked to create a
20660# shared library.
20661predeps=$lt_predeps_CXX
20662
20663# Dependencies to place after the objects being linked to create a
20664# shared library.
20665postdeps=$lt_postdeps_CXX
20666
20667# The library search path used internally by the compiler when linking
20668# a shared library.
20669compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20670
20671# Method to check whether dependent libraries are shared objects.
20672deplibs_check_method=$lt_deplibs_check_method
20673
20674# Command to use when deplibs_check_method == file_magic.
20675file_magic_cmd=$lt_file_magic_cmd
20676
20677# Flag that allows shared libraries with undefined symbols to be built.
20678allow_undefined_flag=$lt_allow_undefined_flag_CXX
20679
20680# Flag that forces no undefined symbols.
20681no_undefined_flag=$lt_no_undefined_flag_CXX
20682
20683# Commands used to finish a libtool library installation in a directory.
20684finish_cmds=$lt_finish_cmds
20685
20686# Same as above, but a single script fragment to be evaled but not shown.
20687finish_eval=$lt_finish_eval
20688
20689# Take the output of nm and produce a listing of raw symbols and C names.
20690global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20691
20692# Transform the output of nm in a proper C declaration
20693global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20694
20695# Transform the output of nm in a C name address pair
20696global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20697
20698# This is the shared library runtime path variable.
20699runpath_var=$runpath_var
20700
20701# This is the shared library path variable.
20702shlibpath_var=$shlibpath_var
20703
20704# Is shlibpath searched before the hard-coded library search path?
20705shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20706
20707# How to hardcode a shared library path into an executable.
20708hardcode_action=$hardcode_action_CXX
20709
20710# Whether we should hardcode library paths into libraries.
20711hardcode_into_libs=$hardcode_into_libs
20712
20713# Flag to hardcode \$libdir into a binary during linking.
20714# This must work even if \$libdir does not exist.
20715hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20716
20717# If ld is used when linking, flag to hardcode \$libdir into
20718# a binary during linking. This must work even if \$libdir does
20719# not exist.
20720hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20721
20722# Whether we need a single -rpath flag with a separated argument.
20723hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20724
20725# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20726# resulting binary.
20727hardcode_direct=$hardcode_direct_CXX
20728
20729# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20730# resulting binary.
20731hardcode_minus_L=$hardcode_minus_L_CXX
20732
20733# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20734# the resulting binary.
20735hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20736
20737# Set to yes if building a shared library automatically hardcodes DIR into the library
20738# and all subsequent libraries and executables linked against it.
20739hardcode_automatic=$hardcode_automatic_CXX
20740
20741# Variables whose values should be saved in libtool wrapper scripts and
20742# restored at relink time.
20743variables_saved_for_relink="$variables_saved_for_relink"
20744
20745# Whether libtool must link a program against all its dependency libraries.
20746link_all_deplibs=$link_all_deplibs_CXX
20747
20748# Compile-time system search path for libraries
20749sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20750
20751# Run-time system search path for libraries
20752sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20753
20754# Fix the shell variable \$srcfile for the compiler.
20755fix_srcfile_path="$fix_srcfile_path_CXX"
20756
20757# Set to yes if exported symbols are required.
20758always_export_symbols=$always_export_symbols_CXX
20759
20760# The commands to list exported symbols.
20761export_symbols_cmds=$lt_export_symbols_cmds_CXX
20762
20763# The commands to extract the exported symbol list from a shared archive.
20764extract_expsyms_cmds=$lt_extract_expsyms_cmds
20765
20766# Symbols that should not be listed in the preloaded symbols.
20767exclude_expsyms=$lt_exclude_expsyms_CXX
20768
20769# Symbols that must always be exported.
20770include_expsyms=$lt_include_expsyms_CXX
20771
20772# ### END LIBTOOL TAG CONFIG: $tagname
20773
20774__EOF__
20775
20776
20777else
20778  # If there is no Makefile yet, we rely on a make rule to execute
20779  # `config.status --recheck' to rerun these tests and create the
20780  # libtool script then.
20781  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20782  if test -f "$ltmain_in"; then
20783    test -f Makefile && make "$ltmain"
20784  fi
20785fi
20786
20787
20788ac_ext=c
20789ac_cpp='$CPP $CPPFLAGS'
20790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20792ac_compiler_gnu=$ac_cv_c_compiler_gnu
20793
20794CC=$lt_save_CC
20795LDCXX=$LD
20796LD=$lt_save_LD
20797GCC=$lt_save_GCC
20798with_gnu_ldcxx=$with_gnu_ld
20799with_gnu_ld=$lt_save_with_gnu_ld
20800lt_cv_path_LDCXX=$lt_cv_path_LD
20801lt_cv_path_LD=$lt_save_path_LD
20802lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20803lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20804
20805	else
20806	  tagname=""
20807	fi
20808	;;
20809
20810      F77)
20811	if test -n "$F77" && test "X$F77" != "Xno"; then
20812
20813ac_ext=f
20814ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20815ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20816ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20817
20818
20819archive_cmds_need_lc_F77=no
20820allow_undefined_flag_F77=
20821always_export_symbols_F77=no
20822archive_expsym_cmds_F77=
20823export_dynamic_flag_spec_F77=
20824hardcode_direct_F77=no
20825hardcode_libdir_flag_spec_F77=
20826hardcode_libdir_flag_spec_ld_F77=
20827hardcode_libdir_separator_F77=
20828hardcode_minus_L_F77=no
20829hardcode_automatic_F77=no
20830module_cmds_F77=
20831module_expsym_cmds_F77=
20832link_all_deplibs_F77=unknown
20833old_archive_cmds_F77=$old_archive_cmds
20834no_undefined_flag_F77=
20835whole_archive_flag_spec_F77=
20836enable_shared_with_static_runtimes_F77=no
20837
20838# Source file extension for f77 test sources.
20839ac_ext=f
20840
20841# Object file extension for compiled f77 test sources.
20842objext=o
20843objext_F77=$objext
20844
20845# Code to be used in simple compile tests
20846lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
20847
20848# Code to be used in simple link tests
20849lt_simple_link_test_code="      program t\n      end\n"
20850
20851# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20852
20853# If no C compiler was specified, use CC.
20854LTCC=${LTCC-"$CC"}
20855
20856# If no C compiler flags were specified, use CFLAGS.
20857LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20858
20859# Allow CC to be a program name with arguments.
20860compiler=$CC
20861
20862
20863# save warnings/boilerplate of simple test code
20864ac_outfile=conftest.$ac_objext
20865printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20866eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20867_lt_compiler_boilerplate=`cat conftest.err`
20868$rm conftest*
20869
20870ac_outfile=conftest.$ac_objext
20871printf "$lt_simple_link_test_code" >conftest.$ac_ext
20872eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20873_lt_linker_boilerplate=`cat conftest.err`
20874$rm conftest*
20875
20876
20877# Allow CC to be a program name with arguments.
20878lt_save_CC="$CC"
20879CC=${F77-"f77"}
20880compiler=$CC
20881compiler_F77=$CC
20882for cc_temp in $compiler""; do
20883  case $cc_temp in
20884    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20885    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20886    \-*) ;;
20887    *) break;;
20888  esac
20889done
20890cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20891
20892
20893{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20894echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20895{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
20896echo "${ECHO_T}$can_build_shared" >&6; }
20897
20898{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20899echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
20900test "$can_build_shared" = "no" && enable_shared=no
20901
20902# On AIX, shared libraries and static libraries use the same namespace, and
20903# are all built from PIC.
20904case $host_os in
20905aix3*)
20906  test "$enable_shared" = yes && enable_static=no
20907  if test -n "$RANLIB"; then
20908    archive_cmds="$archive_cmds~\$RANLIB \$lib"
20909    postinstall_cmds='$RANLIB $lib'
20910  fi
20911  ;;
20912aix4* | aix5*)
20913  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20914    test "$enable_shared" = yes && enable_static=no
20915  fi
20916  ;;
20917esac
20918{ echo "$as_me:$LINENO: result: $enable_shared" >&5
20919echo "${ECHO_T}$enable_shared" >&6; }
20920
20921{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20922echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
20923# Make sure either enable_shared or enable_static is yes.
20924test "$enable_shared" = yes || enable_static=yes
20925{ echo "$as_me:$LINENO: result: $enable_static" >&5
20926echo "${ECHO_T}$enable_static" >&6; }
20927
20928GCC_F77="$G77"
20929LD_F77="$LD"
20930
20931lt_prog_compiler_wl_F77=
20932lt_prog_compiler_pic_F77=
20933lt_prog_compiler_static_F77=
20934
20935{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20936echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20937
20938  if test "$GCC" = yes; then
20939    lt_prog_compiler_wl_F77='-Wl,'
20940    lt_prog_compiler_static_F77='-static'
20941
20942    case $host_os in
20943      aix*)
20944      # All AIX code is PIC.
20945      if test "$host_cpu" = ia64; then
20946	# AIX 5 now supports IA64 processor
20947	lt_prog_compiler_static_F77='-Bstatic'
20948      fi
20949      ;;
20950
20951    amigaos*)
20952      # FIXME: we need at least 68020 code to build shared libraries, but
20953      # adding the `-m68020' flag to GCC prevents building anything better,
20954      # like `-m68040'.
20955      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20956      ;;
20957
20958    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20959      # PIC is the default for these OSes.
20960      ;;
20961
20962    mingw* | pw32* | os2*)
20963      # This hack is so that the source file can tell whether it is being
20964      # built for inclusion in a dll (and should export symbols for example).
20965      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20966      ;;
20967
20968    darwin* | rhapsody*)
20969      # PIC is the default on this platform
20970      # Common symbols not allowed in MH_DYLIB files
20971      lt_prog_compiler_pic_F77='-fno-common'
20972      ;;
20973
20974    interix3*)
20975      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20976      # Instead, we relocate shared libraries at runtime.
20977      ;;
20978
20979    msdosdjgpp*)
20980      # Just because we use GCC doesn't mean we suddenly get shared libraries
20981      # on systems that don't support them.
20982      lt_prog_compiler_can_build_shared_F77=no
20983      enable_shared=no
20984      ;;
20985
20986    sysv4*MP*)
20987      if test -d /usr/nec; then
20988	lt_prog_compiler_pic_F77=-Kconform_pic
20989      fi
20990      ;;
20991
20992    hpux*)
20993      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20994      # not for PA HP-UX.
20995      case $host_cpu in
20996      hppa*64*|ia64*)
20997	# +Z the default
20998	;;
20999      *)
21000	lt_prog_compiler_pic_F77='-fPIC'
21001	;;
21002      esac
21003      ;;
21004
21005    *)
21006      lt_prog_compiler_pic_F77='-fPIC'
21007      ;;
21008    esac
21009  else
21010    # PORTME Check for flag to pass linker flags through the system compiler.
21011    case $host_os in
21012    aix*)
21013      lt_prog_compiler_wl_F77='-Wl,'
21014      if test "$host_cpu" = ia64; then
21015	# AIX 5 now supports IA64 processor
21016	lt_prog_compiler_static_F77='-Bstatic'
21017      else
21018	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21019      fi
21020      ;;
21021      darwin*)
21022        # PIC is the default on this platform
21023        # Common symbols not allowed in MH_DYLIB files
21024       case $cc_basename in
21025         xlc*)
21026         lt_prog_compiler_pic_F77='-qnocommon'
21027         lt_prog_compiler_wl_F77='-Wl,'
21028         ;;
21029       esac
21030       ;;
21031
21032    mingw* | pw32* | os2*)
21033      # This hack is so that the source file can tell whether it is being
21034      # built for inclusion in a dll (and should export symbols for example).
21035      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21036      ;;
21037
21038    hpux9* | hpux10* | hpux11*)
21039      lt_prog_compiler_wl_F77='-Wl,'
21040      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21041      # not for PA HP-UX.
21042      case $host_cpu in
21043      hppa*64*|ia64*)
21044	# +Z the default
21045	;;
21046      *)
21047	lt_prog_compiler_pic_F77='+Z'
21048	;;
21049      esac
21050      # Is there a better lt_prog_compiler_static that works with the bundled CC?
21051      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21052      ;;
21053
21054    irix5* | irix6* | nonstopux*)
21055      lt_prog_compiler_wl_F77='-Wl,'
21056      # PIC (with -KPIC) is the default.
21057      lt_prog_compiler_static_F77='-non_shared'
21058      ;;
21059
21060    newsos6)
21061      lt_prog_compiler_pic_F77='-KPIC'
21062      lt_prog_compiler_static_F77='-Bstatic'
21063      ;;
21064
21065    linux*)
21066      case $cc_basename in
21067      icc* | ecc*)
21068	lt_prog_compiler_wl_F77='-Wl,'
21069	lt_prog_compiler_pic_F77='-KPIC'
21070	lt_prog_compiler_static_F77='-static'
21071        ;;
21072      pgcc* | pgf77* | pgf90* | pgf95*)
21073        # Portland Group compilers (*not* the Pentium gcc compiler,
21074	# which looks to be a dead project)
21075	lt_prog_compiler_wl_F77='-Wl,'
21076	lt_prog_compiler_pic_F77='-fpic'
21077	lt_prog_compiler_static_F77='-Bstatic'
21078        ;;
21079      ccc*)
21080        lt_prog_compiler_wl_F77='-Wl,'
21081        # All Alpha code is PIC.
21082        lt_prog_compiler_static_F77='-non_shared'
21083        ;;
21084      esac
21085      ;;
21086
21087    osf3* | osf4* | osf5*)
21088      lt_prog_compiler_wl_F77='-Wl,'
21089      # All OSF/1 code is PIC.
21090      lt_prog_compiler_static_F77='-non_shared'
21091      ;;
21092
21093    solaris*)
21094      lt_prog_compiler_pic_F77='-KPIC'
21095      lt_prog_compiler_static_F77='-Bstatic'
21096      case $cc_basename in
21097      f77* | f90* | f95*)
21098	lt_prog_compiler_wl_F77='-Qoption ld ';;
21099      *)
21100	lt_prog_compiler_wl_F77='-Wl,';;
21101      esac
21102      ;;
21103
21104    sunos4*)
21105      lt_prog_compiler_wl_F77='-Qoption ld '
21106      lt_prog_compiler_pic_F77='-PIC'
21107      lt_prog_compiler_static_F77='-Bstatic'
21108      ;;
21109
21110    sysv4 | sysv4.2uw2* | sysv4.3*)
21111      lt_prog_compiler_wl_F77='-Wl,'
21112      lt_prog_compiler_pic_F77='-KPIC'
21113      lt_prog_compiler_static_F77='-Bstatic'
21114      ;;
21115
21116    sysv4*MP*)
21117      if test -d /usr/nec ;then
21118	lt_prog_compiler_pic_F77='-Kconform_pic'
21119	lt_prog_compiler_static_F77='-Bstatic'
21120      fi
21121      ;;
21122
21123    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21124      lt_prog_compiler_wl_F77='-Wl,'
21125      lt_prog_compiler_pic_F77='-KPIC'
21126      lt_prog_compiler_static_F77='-Bstatic'
21127      ;;
21128
21129    unicos*)
21130      lt_prog_compiler_wl_F77='-Wl,'
21131      lt_prog_compiler_can_build_shared_F77=no
21132      ;;
21133
21134    uts4*)
21135      lt_prog_compiler_pic_F77='-pic'
21136      lt_prog_compiler_static_F77='-Bstatic'
21137      ;;
21138
21139    *)
21140      lt_prog_compiler_can_build_shared_F77=no
21141      ;;
21142    esac
21143  fi
21144
21145{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21146echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21147
21148#
21149# Check to make sure the PIC flag actually works.
21150#
21151if test -n "$lt_prog_compiler_pic_F77"; then
21152
21153{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21154echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21155if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21156  echo $ECHO_N "(cached) $ECHO_C" >&6
21157else
21158  lt_prog_compiler_pic_works_F77=no
21159  ac_outfile=conftest.$ac_objext
21160   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21161   lt_compiler_flag="$lt_prog_compiler_pic_F77"
21162   # Insert the option either (1) after the last *FLAGS variable, or
21163   # (2) before a word containing "conftest.", or (3) at the end.
21164   # Note that $ac_compile itself does not contain backslashes and begins
21165   # with a dollar sign (not a hyphen), so the echo should work correctly.
21166   # The option is referenced via a variable to avoid confusing sed.
21167   lt_compile=`echo "$ac_compile" | $SED \
21168   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21169   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21170   -e 's:$: $lt_compiler_flag:'`
21171   (eval echo "\"\$as_me:21171: $lt_compile\"" >&5)
21172   (eval "$lt_compile" 2>conftest.err)
21173   ac_status=$?
21174   cat conftest.err >&5
21175   echo "$as_me:21175: \$? = $ac_status" >&5
21176   if (exit $ac_status) && test -s "$ac_outfile"; then
21177     # The compiler can only warn and ignore the option if not recognized
21178     # So say no if there are warnings other than the usual output.
21179     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21180     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21181     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21182       lt_prog_compiler_pic_works_F77=yes
21183     fi
21184   fi
21185   $rm conftest*
21186
21187fi
21188{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21189echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21190
21191if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21192    case $lt_prog_compiler_pic_F77 in
21193     "" | " "*) ;;
21194     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21195     esac
21196else
21197    lt_prog_compiler_pic_F77=
21198     lt_prog_compiler_can_build_shared_F77=no
21199fi
21200
21201fi
21202case $host_os in
21203  # For platforms which do not support PIC, -DPIC is meaningless:
21204  *djgpp*)
21205    lt_prog_compiler_pic_F77=
21206    ;;
21207  *)
21208    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21209    ;;
21210esac
21211
21212#
21213# Check to make sure the static flag actually works.
21214#
21215wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21216{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21217echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21218if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21219  echo $ECHO_N "(cached) $ECHO_C" >&6
21220else
21221  lt_prog_compiler_static_works_F77=no
21222   save_LDFLAGS="$LDFLAGS"
21223   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21224   printf "$lt_simple_link_test_code" > conftest.$ac_ext
21225   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21226     # The linker can only warn and ignore the option if not recognized
21227     # So say no if there are warnings
21228     if test -s conftest.err; then
21229       # Append any errors to the config.log.
21230       cat conftest.err 1>&5
21231       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21232       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21233       if diff conftest.exp conftest.er2 >/dev/null; then
21234         lt_prog_compiler_static_works_F77=yes
21235       fi
21236     else
21237       lt_prog_compiler_static_works_F77=yes
21238     fi
21239   fi
21240   $rm conftest*
21241   LDFLAGS="$save_LDFLAGS"
21242
21243fi
21244{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21245echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21246
21247if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21248    :
21249else
21250    lt_prog_compiler_static_F77=
21251fi
21252
21253
21254{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21255echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21256if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21257  echo $ECHO_N "(cached) $ECHO_C" >&6
21258else
21259  lt_cv_prog_compiler_c_o_F77=no
21260   $rm -r conftest 2>/dev/null
21261   mkdir conftest
21262   cd conftest
21263   mkdir out
21264   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21265
21266   lt_compiler_flag="-o out/conftest2.$ac_objext"
21267   # Insert the option either (1) after the last *FLAGS variable, or
21268   # (2) before a word containing "conftest.", or (3) at the end.
21269   # Note that $ac_compile itself does not contain backslashes and begins
21270   # with a dollar sign (not a hyphen), so the echo should work correctly.
21271   lt_compile=`echo "$ac_compile" | $SED \
21272   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21273   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21274   -e 's:$: $lt_compiler_flag:'`
21275   (eval echo "\"\$as_me:21275: $lt_compile\"" >&5)
21276   (eval "$lt_compile" 2>out/conftest.err)
21277   ac_status=$?
21278   cat out/conftest.err >&5
21279   echo "$as_me:21279: \$? = $ac_status" >&5
21280   if (exit $ac_status) && test -s out/conftest2.$ac_objext
21281   then
21282     # The compiler can only warn and ignore the option if not recognized
21283     # So say no if there are warnings
21284     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21285     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21286     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21287       lt_cv_prog_compiler_c_o_F77=yes
21288     fi
21289   fi
21290   chmod u+w . 2>&5
21291   $rm conftest*
21292   # SGI C++ compiler will create directory out/ii_files/ for
21293   # template instantiation
21294   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21295   $rm out/* && rmdir out
21296   cd ..
21297   rmdir conftest
21298   $rm conftest*
21299
21300fi
21301{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21302echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21303
21304
21305hard_links="nottested"
21306if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21307  # do not overwrite the value of need_locks provided by the user
21308  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21309echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21310  hard_links=yes
21311  $rm conftest*
21312  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21313  touch conftest.a
21314  ln conftest.a conftest.b 2>&5 || hard_links=no
21315  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21316  { echo "$as_me:$LINENO: result: $hard_links" >&5
21317echo "${ECHO_T}$hard_links" >&6; }
21318  if test "$hard_links" = no; then
21319    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21320echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21321    need_locks=warn
21322  fi
21323else
21324  need_locks=no
21325fi
21326
21327{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21328echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21329
21330  runpath_var=
21331  allow_undefined_flag_F77=
21332  enable_shared_with_static_runtimes_F77=no
21333  archive_cmds_F77=
21334  archive_expsym_cmds_F77=
21335  old_archive_From_new_cmds_F77=
21336  old_archive_from_expsyms_cmds_F77=
21337  export_dynamic_flag_spec_F77=
21338  whole_archive_flag_spec_F77=
21339  thread_safe_flag_spec_F77=
21340  hardcode_libdir_flag_spec_F77=
21341  hardcode_libdir_flag_spec_ld_F77=
21342  hardcode_libdir_separator_F77=
21343  hardcode_direct_F77=no
21344  hardcode_minus_L_F77=no
21345  hardcode_shlibpath_var_F77=unsupported
21346  link_all_deplibs_F77=unknown
21347  hardcode_automatic_F77=no
21348  module_cmds_F77=
21349  module_expsym_cmds_F77=
21350  always_export_symbols_F77=no
21351  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21352  # include_expsyms should be a list of space-separated symbols to be *always*
21353  # included in the symbol list
21354  include_expsyms_F77=
21355  # exclude_expsyms can be an extended regexp of symbols to exclude
21356  # it will be wrapped by ` (' and `)$', so one must not match beginning or
21357  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21358  # as well as any symbol that contains `d'.
21359  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21360  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21361  # platforms (ab)use it in PIC code, but their linkers get confused if
21362  # the symbol is explicitly referenced.  Since portable code cannot
21363  # rely on this symbol name, it's probably fine to never include it in
21364  # preloaded symbol tables.
21365  extract_expsyms_cmds=
21366  # Just being paranoid about ensuring that cc_basename is set.
21367  for cc_temp in $compiler""; do
21368  case $cc_temp in
21369    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21370    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21371    \-*) ;;
21372    *) break;;
21373  esac
21374done
21375cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21376
21377  case $host_os in
21378  cygwin* | mingw* | pw32*)
21379    # FIXME: the MSVC++ port hasn't been tested in a loooong time
21380    # When not using gcc, we currently assume that we are using
21381    # Microsoft Visual C++.
21382    if test "$GCC" != yes; then
21383      with_gnu_ld=no
21384    fi
21385    ;;
21386  interix*)
21387    # we just hope/assume this is gcc and not c89 (= MSVC++)
21388    with_gnu_ld=yes
21389    ;;
21390  openbsd*)
21391    with_gnu_ld=no
21392    ;;
21393  esac
21394
21395  ld_shlibs_F77=yes
21396  if test "$with_gnu_ld" = yes; then
21397    # If archive_cmds runs LD, not CC, wlarc should be empty
21398    wlarc='${wl}'
21399
21400    # Set some defaults for GNU ld with shared library support. These
21401    # are reset later if shared libraries are not supported. Putting them
21402    # here allows them to be overridden if necessary.
21403    runpath_var=LD_RUN_PATH
21404    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21405    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21406    # ancient GNU ld didn't support --whole-archive et. al.
21407    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21408	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21409      else
21410  	whole_archive_flag_spec_F77=
21411    fi
21412    supports_anon_versioning=no
21413    case `$LD -v 2>/dev/null` in
21414      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21415      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21416      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21417      *\ 2.11.*) ;; # other 2.11 versions
21418      *) supports_anon_versioning=yes ;;
21419    esac
21420
21421    # See if GNU ld supports shared libraries.
21422    case $host_os in
21423    aix3* | aix4* | aix5*)
21424      # On AIX/PPC, the GNU linker is very broken
21425      if test "$host_cpu" != ia64; then
21426	ld_shlibs_F77=no
21427	cat <<EOF 1>&2
21428
21429*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21430*** to be unable to reliably create shared libraries on AIX.
21431*** Therefore, libtool is disabling shared libraries support.  If you
21432*** really care for shared libraries, you may want to modify your PATH
21433*** so that a non-GNU linker is found, and then restart.
21434
21435EOF
21436      fi
21437      ;;
21438
21439    amigaos*)
21440      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)'
21441      hardcode_libdir_flag_spec_F77='-L$libdir'
21442      hardcode_minus_L_F77=yes
21443
21444      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21445      # that the semantics of dynamic libraries on AmigaOS, at least up
21446      # to version 4, is to share data among multiple programs linked
21447      # with the same dynamic library.  Since this doesn't match the
21448      # behavior of shared libraries on other platforms, we can't use
21449      # them.
21450      ld_shlibs_F77=no
21451      ;;
21452
21453    beos*)
21454      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21455	allow_undefined_flag_F77=unsupported
21456	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21457	# support --undefined.  This deserves some investigation.  FIXME
21458	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21459      else
21460	ld_shlibs_F77=no
21461      fi
21462      ;;
21463
21464    cygwin* | mingw* | pw32*)
21465      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21466      # as there is no search path for DLLs.
21467      hardcode_libdir_flag_spec_F77='-L$libdir'
21468      allow_undefined_flag_F77=unsupported
21469      always_export_symbols_F77=no
21470      enable_shared_with_static_runtimes_F77=yes
21471      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21472
21473      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21474        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21475	# If the export-symbols file already is a .def file (1st line
21476	# is EXPORTS), use it as is; otherwise, prepend...
21477	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21478	  cp $export_symbols $output_objdir/$soname.def;
21479	else
21480	  echo EXPORTS > $output_objdir/$soname.def;
21481	  cat $export_symbols >> $output_objdir/$soname.def;
21482	fi~
21483	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21484      else
21485	ld_shlibs_F77=no
21486      fi
21487      ;;
21488
21489    interix3*)
21490      hardcode_direct_F77=no
21491      hardcode_shlibpath_var_F77=no
21492      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21493      export_dynamic_flag_spec_F77='${wl}-E'
21494      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21495      # Instead, shared libraries are loaded at an image base (0x10000000 by
21496      # default) and relocated if they conflict, which is a slow very memory
21497      # consuming and fragmenting process.  To avoid this, we pick a random,
21498      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21499      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21500      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'
21501      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'
21502      ;;
21503
21504    linux*)
21505      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21506	tmp_addflag=
21507	case $cc_basename,$host_cpu in
21508	pgcc*)				# Portland Group C compiler
21509	  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'
21510	  tmp_addflag=' $pic_flag'
21511	  ;;
21512	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
21513	  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'
21514	  tmp_addflag=' $pic_flag -Mnomain' ;;
21515	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
21516	  tmp_addflag=' -i_dynamic' ;;
21517	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
21518	  tmp_addflag=' -i_dynamic -nofor_main' ;;
21519	ifc* | ifort*)			# Intel Fortran compiler
21520	  tmp_addflag=' -nofor_main' ;;
21521	esac
21522	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21523
21524	if test $supports_anon_versioning = yes; then
21525	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21526  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21527  $echo "local: *; };" >> $output_objdir/$libname.ver~
21528	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21529	fi
21530      else
21531	ld_shlibs_F77=no
21532      fi
21533      ;;
21534
21535    netbsd*)
21536      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21537	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21538	wlarc=
21539      else
21540	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21541	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21542      fi
21543      ;;
21544
21545    solaris*)
21546      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21547	ld_shlibs_F77=no
21548	cat <<EOF 1>&2
21549
21550*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21551*** create shared libraries on Solaris systems.  Therefore, libtool
21552*** is disabling shared libraries support.  We urge you to upgrade GNU
21553*** binutils to release 2.9.1 or newer.  Another option is to modify
21554*** your PATH or compiler configuration so that the native linker is
21555*** used, and then restart.
21556
21557EOF
21558      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21559	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21560	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21561      else
21562	ld_shlibs_F77=no
21563      fi
21564      ;;
21565
21566    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21567      case `$LD -v 2>&1` in
21568        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21569	ld_shlibs_F77=no
21570	cat <<_LT_EOF 1>&2
21571
21572*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21573*** reliably create shared libraries on SCO systems.  Therefore, libtool
21574*** is disabling shared libraries support.  We urge you to upgrade GNU
21575*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21576*** your PATH or compiler configuration so that the native linker is
21577*** used, and then restart.
21578
21579_LT_EOF
21580	;;
21581	*)
21582	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21583	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21584	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21585	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21586	  else
21587	    ld_shlibs_F77=no
21588	  fi
21589	;;
21590      esac
21591      ;;
21592
21593    sunos4*)
21594      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21595      wlarc=
21596      hardcode_direct_F77=yes
21597      hardcode_shlibpath_var_F77=no
21598      ;;
21599
21600    *)
21601      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21602	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21603	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21604      else
21605	ld_shlibs_F77=no
21606      fi
21607      ;;
21608    esac
21609
21610    if test "$ld_shlibs_F77" = no; then
21611      runpath_var=
21612      hardcode_libdir_flag_spec_F77=
21613      export_dynamic_flag_spec_F77=
21614      whole_archive_flag_spec_F77=
21615    fi
21616  else
21617    # PORTME fill in a description of your system's linker (not GNU ld)
21618    case $host_os in
21619    aix3*)
21620      allow_undefined_flag_F77=unsupported
21621      always_export_symbols_F77=yes
21622      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'
21623      # Note: this linker hardcodes the directories in LIBPATH if there
21624      # are no directories specified by -L.
21625      hardcode_minus_L_F77=yes
21626      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21627	# Neither direct hardcoding nor static linking is supported with a
21628	# broken collect2.
21629	hardcode_direct_F77=unsupported
21630      fi
21631      ;;
21632
21633    aix4* | aix5*)
21634      if test "$host_cpu" = ia64; then
21635	# On IA64, the linker does run time linking by default, so we don't
21636	# have to do anything special.
21637	aix_use_runtimelinking=no
21638	exp_sym_flag='-Bexport'
21639	no_entry_flag=""
21640      else
21641	# If we're using GNU nm, then we don't want the "-C" option.
21642	# -C means demangle to AIX nm, but means don't demangle with GNU nm
21643	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21644	  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'
21645	else
21646	  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'
21647	fi
21648	aix_use_runtimelinking=no
21649
21650	# Test if we are trying to use run time linking or normal
21651	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
21652	# need to do runtime linking.
21653	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21654	  for ld_flag in $LDFLAGS; do
21655  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21656  	    aix_use_runtimelinking=yes
21657  	    break
21658  	  fi
21659	  done
21660	  ;;
21661	esac
21662
21663	exp_sym_flag='-bexport'
21664	no_entry_flag='-bnoentry'
21665      fi
21666
21667      # When large executables or shared objects are built, AIX ld can
21668      # have problems creating the table of contents.  If linking a library
21669      # or program results in "error TOC overflow" add -mminimal-toc to
21670      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21671      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21672
21673      archive_cmds_F77=''
21674      hardcode_direct_F77=yes
21675      hardcode_libdir_separator_F77=':'
21676      link_all_deplibs_F77=yes
21677
21678      if test "$GCC" = yes; then
21679	case $host_os in aix4.[012]|aix4.[012].*)
21680	# We only want to do this on AIX 4.2 and lower, the check
21681	# below for broken collect2 doesn't work under 4.3+
21682	  collect2name=`${CC} -print-prog-name=collect2`
21683	  if test -f "$collect2name" && \
21684  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
21685	  then
21686  	  # We have reworked collect2
21687  	  hardcode_direct_F77=yes
21688	  else
21689  	  # We have old collect2
21690  	  hardcode_direct_F77=unsupported
21691  	  # It fails to find uninstalled libraries when the uninstalled
21692  	  # path is not listed in the libpath.  Setting hardcode_minus_L
21693  	  # to unsupported forces relinking
21694  	  hardcode_minus_L_F77=yes
21695  	  hardcode_libdir_flag_spec_F77='-L$libdir'
21696  	  hardcode_libdir_separator_F77=
21697	  fi
21698	  ;;
21699	esac
21700	shared_flag='-shared'
21701	if test "$aix_use_runtimelinking" = yes; then
21702	  shared_flag="$shared_flag "'${wl}-G'
21703	fi
21704      else
21705	# not using gcc
21706	if test "$host_cpu" = ia64; then
21707  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21708  	# chokes on -Wl,-G. The following line is correct:
21709	  shared_flag='-G'
21710	else
21711	  if test "$aix_use_runtimelinking" = yes; then
21712	    shared_flag='${wl}-G'
21713	  else
21714	    shared_flag='${wl}-bM:SRE'
21715	  fi
21716	fi
21717      fi
21718
21719      # It seems that -bexpall does not export symbols beginning with
21720      # underscore (_), so it is better to generate a list of symbols to export.
21721      always_export_symbols_F77=yes
21722      if test "$aix_use_runtimelinking" = yes; then
21723	# Warning - without using the other runtime loading flags (-brtl),
21724	# -berok will link without error, but may produce a broken library.
21725	allow_undefined_flag_F77='-berok'
21726       # Determine the default libpath from the value encoded in an empty executable.
21727       cat >conftest.$ac_ext <<_ACEOF
21728      program main
21729
21730      end
21731_ACEOF
21732rm -f conftest.$ac_objext conftest$ac_exeext
21733if { (ac_try="$ac_link"
21734case "(($ac_try" in
21735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21736  *) ac_try_echo=$ac_try;;
21737esac
21738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21739  (eval "$ac_link") 2>conftest.er1
21740  ac_status=$?
21741  grep -v '^ *+' conftest.er1 >conftest.err
21742  rm -f conftest.er1
21743  cat conftest.err >&5
21744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745  (exit $ac_status); } &&
21746	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21747  { (case "(($ac_try" in
21748  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21749  *) ac_try_echo=$ac_try;;
21750esac
21751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21752  (eval "$ac_try") 2>&5
21753  ac_status=$?
21754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755  (exit $ac_status); }; } &&
21756	 { ac_try='test -s conftest$ac_exeext'
21757  { (case "(($ac_try" in
21758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21759  *) ac_try_echo=$ac_try;;
21760esac
21761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21762  (eval "$ac_try") 2>&5
21763  ac_status=$?
21764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765  (exit $ac_status); }; }; then
21766
21767aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21768}'`
21769# Check for a 64-bit object if we didn't find anything.
21770if 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; }
21771}'`; fi
21772else
21773  echo "$as_me: failed program was:" >&5
21774sed 's/^/| /' conftest.$ac_ext >&5
21775
21776
21777fi
21778
21779rm -f core conftest.err conftest.$ac_objext \
21780      conftest$ac_exeext conftest.$ac_ext
21781if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21782
21783       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21784	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"
21785       else
21786	if test "$host_cpu" = ia64; then
21787	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21788	  allow_undefined_flag_F77="-z nodefs"
21789	  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"
21790	else
21791	 # Determine the default libpath from the value encoded in an empty executable.
21792	 cat >conftest.$ac_ext <<_ACEOF
21793      program main
21794
21795      end
21796_ACEOF
21797rm -f conftest.$ac_objext conftest$ac_exeext
21798if { (ac_try="$ac_link"
21799case "(($ac_try" in
21800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21801  *) ac_try_echo=$ac_try;;
21802esac
21803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21804  (eval "$ac_link") 2>conftest.er1
21805  ac_status=$?
21806  grep -v '^ *+' conftest.er1 >conftest.err
21807  rm -f conftest.er1
21808  cat conftest.err >&5
21809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810  (exit $ac_status); } &&
21811	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21812  { (case "(($ac_try" in
21813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21814  *) ac_try_echo=$ac_try;;
21815esac
21816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21817  (eval "$ac_try") 2>&5
21818  ac_status=$?
21819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820  (exit $ac_status); }; } &&
21821	 { ac_try='test -s conftest$ac_exeext'
21822  { (case "(($ac_try" in
21823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21824  *) ac_try_echo=$ac_try;;
21825esac
21826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21827  (eval "$ac_try") 2>&5
21828  ac_status=$?
21829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21830  (exit $ac_status); }; }; then
21831
21832aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21833}'`
21834# Check for a 64-bit object if we didn't find anything.
21835if 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; }
21836}'`; fi
21837else
21838  echo "$as_me: failed program was:" >&5
21839sed 's/^/| /' conftest.$ac_ext >&5
21840
21841
21842fi
21843
21844rm -f core conftest.err conftest.$ac_objext \
21845      conftest$ac_exeext conftest.$ac_ext
21846if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21847
21848	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21849	  # Warning - without using the other run time loading flags,
21850	  # -berok will link without error, but may produce a broken library.
21851	  no_undefined_flag_F77=' ${wl}-bernotok'
21852	  allow_undefined_flag_F77=' ${wl}-berok'
21853	  # Exported symbols can be pulled into shared objects from archives
21854	  whole_archive_flag_spec_F77='$convenience'
21855	  archive_cmds_need_lc_F77=yes
21856	  # This is similar to how AIX traditionally builds its shared libraries.
21857	  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'
21858	fi
21859      fi
21860      ;;
21861
21862    amigaos*)
21863      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)'
21864      hardcode_libdir_flag_spec_F77='-L$libdir'
21865      hardcode_minus_L_F77=yes
21866      # see comment about different semantics on the GNU ld section
21867      ld_shlibs_F77=no
21868      ;;
21869
21870    bsdi[45]*)
21871      export_dynamic_flag_spec_F77=-rdynamic
21872      ;;
21873
21874    cygwin* | mingw* | pw32*)
21875      # When not using gcc, we currently assume that we are using
21876      # Microsoft Visual C++.
21877      # hardcode_libdir_flag_spec is actually meaningless, as there is
21878      # no search path for DLLs.
21879      hardcode_libdir_flag_spec_F77=' '
21880      allow_undefined_flag_F77=unsupported
21881      # Tell ltmain to make .lib files, not .a files.
21882      libext=lib
21883      # Tell ltmain to make .dll files, not .so files.
21884      shrext_cmds=".dll"
21885      # FIXME: Setting linknames here is a bad hack.
21886      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21887      # The linker will automatically build a .lib file if we build a DLL.
21888      old_archive_From_new_cmds_F77='true'
21889      # FIXME: Should let the user specify the lib program.
21890      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
21891      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
21892      enable_shared_with_static_runtimes_F77=yes
21893      ;;
21894
21895    darwin* | rhapsody*)
21896      case $host_os in
21897        rhapsody* | darwin1.[012])
21898         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21899         ;;
21900       *) # Darwin 1.3 on
21901         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21902           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21903         else
21904           case ${MACOSX_DEPLOYMENT_TARGET} in
21905             10.[012])
21906               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21907               ;;
21908             10.*)
21909               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21910               ;;
21911           esac
21912         fi
21913         ;;
21914      esac
21915      archive_cmds_need_lc_F77=no
21916      hardcode_direct_F77=no
21917      hardcode_automatic_F77=yes
21918      hardcode_shlibpath_var_F77=unsupported
21919      whole_archive_flag_spec_F77=''
21920      link_all_deplibs_F77=yes
21921    if test "$GCC" = yes ; then
21922    	output_verbose_link_cmd='echo'
21923        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21924      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21925      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21926      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}'
21927      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}'
21928    else
21929      case $cc_basename in
21930        xlc*)
21931         output_verbose_link_cmd='echo'
21932         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21933         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21934          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21935         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}'
21936          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}'
21937          ;;
21938       *)
21939         ld_shlibs_F77=no
21940          ;;
21941      esac
21942    fi
21943      ;;
21944
21945    dgux*)
21946      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21947      hardcode_libdir_flag_spec_F77='-L$libdir'
21948      hardcode_shlibpath_var_F77=no
21949      ;;
21950
21951    freebsd1*)
21952      ld_shlibs_F77=no
21953      ;;
21954
21955    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21956    # support.  Future versions do this automatically, but an explicit c++rt0.o
21957    # does not break anything, and helps significantly (at the cost of a little
21958    # extra space).
21959    freebsd2.2*)
21960      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21961      hardcode_libdir_flag_spec_F77='-R$libdir'
21962      hardcode_direct_F77=yes
21963      hardcode_shlibpath_var_F77=no
21964      ;;
21965
21966    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21967    freebsd2*)
21968      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21969      hardcode_direct_F77=yes
21970      hardcode_minus_L_F77=yes
21971      hardcode_shlibpath_var_F77=no
21972      ;;
21973
21974    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21975    freebsd* | kfreebsd*-gnu | dragonfly*)
21976      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21977      hardcode_libdir_flag_spec_F77='-R$libdir'
21978      hardcode_direct_F77=yes
21979      hardcode_shlibpath_var_F77=no
21980      ;;
21981
21982    hpux9*)
21983      if test "$GCC" = yes; then
21984	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'
21985      else
21986	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'
21987      fi
21988      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21989      hardcode_libdir_separator_F77=:
21990      hardcode_direct_F77=yes
21991
21992      # hardcode_minus_L: Not really in the search PATH,
21993      # but as the default location of the library.
21994      hardcode_minus_L_F77=yes
21995      export_dynamic_flag_spec_F77='${wl}-E'
21996      ;;
21997
21998    hpux10*)
21999      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22000	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22001      else
22002	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22003      fi
22004      if test "$with_gnu_ld" = no; then
22005	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22006	hardcode_libdir_separator_F77=:
22007
22008	hardcode_direct_F77=yes
22009	export_dynamic_flag_spec_F77='${wl}-E'
22010
22011	# hardcode_minus_L: Not really in the search PATH,
22012	# but as the default location of the library.
22013	hardcode_minus_L_F77=yes
22014      fi
22015      ;;
22016
22017    hpux11*)
22018      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22019	case $host_cpu in
22020	hppa*64*)
22021	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22022	  ;;
22023	ia64*)
22024	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22025	  ;;
22026	*)
22027	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22028	  ;;
22029	esac
22030      else
22031	case $host_cpu in
22032	hppa*64*)
22033	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22034	  ;;
22035	ia64*)
22036	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22037	  ;;
22038	*)
22039	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22040	  ;;
22041	esac
22042      fi
22043      if test "$with_gnu_ld" = no; then
22044	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22045	hardcode_libdir_separator_F77=:
22046
22047	case $host_cpu in
22048	hppa*64*|ia64*)
22049	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22050	  hardcode_direct_F77=no
22051	  hardcode_shlibpath_var_F77=no
22052	  ;;
22053	*)
22054	  hardcode_direct_F77=yes
22055	  export_dynamic_flag_spec_F77='${wl}-E'
22056
22057	  # hardcode_minus_L: Not really in the search PATH,
22058	  # but as the default location of the library.
22059	  hardcode_minus_L_F77=yes
22060	  ;;
22061	esac
22062      fi
22063      ;;
22064
22065    irix5* | irix6* | nonstopux*)
22066      if test "$GCC" = yes; then
22067	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'
22068      else
22069	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'
22070	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22071      fi
22072      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22073      hardcode_libdir_separator_F77=:
22074      link_all_deplibs_F77=yes
22075      ;;
22076
22077    netbsd*)
22078      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22079	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22080      else
22081	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22082      fi
22083      hardcode_libdir_flag_spec_F77='-R$libdir'
22084      hardcode_direct_F77=yes
22085      hardcode_shlibpath_var_F77=no
22086      ;;
22087
22088    newsos6)
22089      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22090      hardcode_direct_F77=yes
22091      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22092      hardcode_libdir_separator_F77=:
22093      hardcode_shlibpath_var_F77=no
22094      ;;
22095
22096    openbsd*)
22097      hardcode_direct_F77=yes
22098      hardcode_shlibpath_var_F77=no
22099      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22100	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22101	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22102	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22103	export_dynamic_flag_spec_F77='${wl}-E'
22104      else
22105       case $host_os in
22106	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22107	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22108	   hardcode_libdir_flag_spec_F77='-R$libdir'
22109	   ;;
22110	 *)
22111	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22112	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22113	   ;;
22114       esac
22115      fi
22116      ;;
22117
22118    os2*)
22119      hardcode_libdir_flag_spec_F77='-L$libdir'
22120      hardcode_minus_L_F77=yes
22121      allow_undefined_flag_F77=unsupported
22122      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'
22123      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22124      ;;
22125
22126    osf3*)
22127      if test "$GCC" = yes; then
22128	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22129	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'
22130      else
22131	allow_undefined_flag_F77=' -expect_unresolved \*'
22132	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'
22133      fi
22134      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22135      hardcode_libdir_separator_F77=:
22136      ;;
22137
22138    osf4* | osf5*)	# as osf3* with the addition of -msym flag
22139      if test "$GCC" = yes; then
22140	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22141	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'
22142	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22143      else
22144	allow_undefined_flag_F77=' -expect_unresolved \*'
22145	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'
22146	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~
22147	$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'
22148
22149	# Both c and cxx compiler support -rpath directly
22150	hardcode_libdir_flag_spec_F77='-rpath $libdir'
22151      fi
22152      hardcode_libdir_separator_F77=:
22153      ;;
22154
22155    solaris*)
22156      no_undefined_flag_F77=' -z text'
22157      if test "$GCC" = yes; then
22158	wlarc='${wl}'
22159	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22160	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22161	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22162      else
22163	wlarc=''
22164	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22165	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22166  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22167      fi
22168      hardcode_libdir_flag_spec_F77='-R$libdir'
22169      hardcode_shlibpath_var_F77=no
22170      case $host_os in
22171      solaris2.[0-5] | solaris2.[0-5].*) ;;
22172      *)
22173 	# The compiler driver will combine linker options so we
22174 	# cannot just pass the convience library names through
22175 	# without $wl, iff we do not link with $LD.
22176 	# Luckily, gcc supports the same syntax we need for Sun Studio.
22177 	# Supported since Solaris 2.6 (maybe 2.5.1?)
22178 	case $wlarc in
22179 	'')
22180 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22181 	*)
22182 	  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' ;;
22183 	esac ;;
22184      esac
22185      link_all_deplibs_F77=yes
22186      ;;
22187
22188    sunos4*)
22189      if test "x$host_vendor" = xsequent; then
22190	# Use $CC to link under sequent, because it throws in some extra .o
22191	# files that make .init and .fini sections work.
22192	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22193      else
22194	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22195      fi
22196      hardcode_libdir_flag_spec_F77='-L$libdir'
22197      hardcode_direct_F77=yes
22198      hardcode_minus_L_F77=yes
22199      hardcode_shlibpath_var_F77=no
22200      ;;
22201
22202    sysv4)
22203      case $host_vendor in
22204	sni)
22205	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22206	  hardcode_direct_F77=yes # is this really true???
22207	;;
22208	siemens)
22209	  ## LD is ld it makes a PLAMLIB
22210	  ## CC just makes a GrossModule.
22211	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22212	  reload_cmds_F77='$CC -r -o $output$reload_objs'
22213	  hardcode_direct_F77=no
22214        ;;
22215	motorola)
22216	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22217	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22218	;;
22219      esac
22220      runpath_var='LD_RUN_PATH'
22221      hardcode_shlibpath_var_F77=no
22222      ;;
22223
22224    sysv4.3*)
22225      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22226      hardcode_shlibpath_var_F77=no
22227      export_dynamic_flag_spec_F77='-Bexport'
22228      ;;
22229
22230    sysv4*MP*)
22231      if test -d /usr/nec; then
22232	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22233	hardcode_shlibpath_var_F77=no
22234	runpath_var=LD_RUN_PATH
22235	hardcode_runpath_var=yes
22236	ld_shlibs_F77=yes
22237      fi
22238      ;;
22239
22240    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22241      no_undefined_flag_F77='${wl}-z,text'
22242      archive_cmds_need_lc_F77=no
22243      hardcode_shlibpath_var_F77=no
22244      runpath_var='LD_RUN_PATH'
22245
22246      if test "$GCC" = yes; then
22247	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22248	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22249      else
22250	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22251	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22252      fi
22253      ;;
22254
22255    sysv5* | sco3.2v5* | sco5v6*)
22256      # Note: We can NOT use -z defs as we might desire, because we do not
22257      # link with -lc, and that would cause any symbols used from libc to
22258      # always be unresolved, which means just about no library would
22259      # ever link correctly.  If we're not using GNU ld we use -z text
22260      # though, which does catch some bad symbols but isn't as heavy-handed
22261      # as -z defs.
22262      no_undefined_flag_F77='${wl}-z,text'
22263      allow_undefined_flag_F77='${wl}-z,nodefs'
22264      archive_cmds_need_lc_F77=no
22265      hardcode_shlibpath_var_F77=no
22266      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22267      hardcode_libdir_separator_F77=':'
22268      link_all_deplibs_F77=yes
22269      export_dynamic_flag_spec_F77='${wl}-Bexport'
22270      runpath_var='LD_RUN_PATH'
22271
22272      if test "$GCC" = yes; then
22273	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22274	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22275      else
22276	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22277	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22278      fi
22279      ;;
22280
22281    uts4*)
22282      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22283      hardcode_libdir_flag_spec_F77='-L$libdir'
22284      hardcode_shlibpath_var_F77=no
22285      ;;
22286
22287    *)
22288      ld_shlibs_F77=no
22289      ;;
22290    esac
22291  fi
22292
22293{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22294echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22295test "$ld_shlibs_F77" = no && can_build_shared=no
22296
22297#
22298# Do we need to explicitly link libc?
22299#
22300case "x$archive_cmds_need_lc_F77" in
22301x|xyes)
22302  # Assume -lc should be added
22303  archive_cmds_need_lc_F77=yes
22304
22305  if test "$enable_shared" = yes && test "$GCC" = yes; then
22306    case $archive_cmds_F77 in
22307    *'~'*)
22308      # FIXME: we may have to deal with multi-command sequences.
22309      ;;
22310    '$CC '*)
22311      # Test whether the compiler implicitly links with -lc since on some
22312      # systems, -lgcc has to come before -lc. If gcc already passes -lc
22313      # to ld, don't add -lc before -lgcc.
22314      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22315echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22316      $rm conftest*
22317      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22318
22319      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22320  (eval $ac_compile) 2>&5
22321  ac_status=$?
22322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323  (exit $ac_status); } 2>conftest.err; then
22324        soname=conftest
22325        lib=conftest
22326        libobjs=conftest.$ac_objext
22327        deplibs=
22328        wl=$lt_prog_compiler_wl_F77
22329	pic_flag=$lt_prog_compiler_pic_F77
22330        compiler_flags=-v
22331        linker_flags=-v
22332        verstring=
22333        output_objdir=.
22334        libname=conftest
22335        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22336        allow_undefined_flag_F77=
22337        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22338  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22339  ac_status=$?
22340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22341  (exit $ac_status); }
22342        then
22343	  archive_cmds_need_lc_F77=no
22344        else
22345	  archive_cmds_need_lc_F77=yes
22346        fi
22347        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22348      else
22349        cat conftest.err 1>&5
22350      fi
22351      $rm conftest*
22352      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22353echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22354      ;;
22355    esac
22356  fi
22357  ;;
22358esac
22359
22360{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22361echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22362library_names_spec=
22363libname_spec='lib$name'
22364soname_spec=
22365shrext_cmds=".so"
22366postinstall_cmds=
22367postuninstall_cmds=
22368finish_cmds=
22369finish_eval=
22370shlibpath_var=
22371shlibpath_overrides_runpath=unknown
22372version_type=none
22373dynamic_linker="$host_os ld.so"
22374sys_lib_dlsearch_path_spec="/lib /usr/lib"
22375if test "$GCC" = yes; then
22376  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22377  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22378    # if the path contains ";" then we assume it to be the separator
22379    # otherwise default to the standard path separator (i.e. ":") - it is
22380    # assumed that no part of a normal pathname contains ";" but that should
22381    # okay in the real world where ";" in dirpaths is itself problematic.
22382    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22383  else
22384    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22385  fi
22386else
22387  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22388fi
22389need_lib_prefix=unknown
22390hardcode_into_libs=no
22391
22392# when you set need_version to no, make sure it does not cause -set_version
22393# flags to be left without arguments
22394need_version=unknown
22395
22396case $host_os in
22397aix3*)
22398  version_type=linux
22399  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22400  shlibpath_var=LIBPATH
22401
22402  # AIX 3 has no versioning support, so we append a major version to the name.
22403  soname_spec='${libname}${release}${shared_ext}$major'
22404  ;;
22405
22406aix4* | aix5*)
22407  version_type=linux
22408  need_lib_prefix=no
22409  need_version=no
22410  hardcode_into_libs=yes
22411  if test "$host_cpu" = ia64; then
22412    # AIX 5 supports IA64
22413    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22414    shlibpath_var=LD_LIBRARY_PATH
22415  else
22416    # With GCC up to 2.95.x, collect2 would create an import file
22417    # for dependence libraries.  The import file would start with
22418    # the line `#! .'.  This would cause the generated library to
22419    # depend on `.', always an invalid library.  This was fixed in
22420    # development snapshots of GCC prior to 3.0.
22421    case $host_os in
22422      aix4 | aix4.[01] | aix4.[01].*)
22423      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22424	   echo ' yes '
22425	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22426	:
22427      else
22428	can_build_shared=no
22429      fi
22430      ;;
22431    esac
22432    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22433    # soname into executable. Probably we can add versioning support to
22434    # collect2, so additional links can be useful in future.
22435    if test "$aix_use_runtimelinking" = yes; then
22436      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22437      # instead of lib<name>.a to let people know that these are not
22438      # typical AIX shared libraries.
22439      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22440    else
22441      # We preserve .a as extension for shared libraries through AIX4.2
22442      # and later when we are not doing run time linking.
22443      library_names_spec='${libname}${release}.a $libname.a'
22444      soname_spec='${libname}${release}${shared_ext}$major'
22445    fi
22446    shlibpath_var=LIBPATH
22447  fi
22448  ;;
22449
22450amigaos*)
22451  library_names_spec='$libname.ixlibrary $libname.a'
22452  # Create ${libname}_ixlibrary.a entries in /sys/libs.
22453  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'
22454  ;;
22455
22456beos*)
22457  library_names_spec='${libname}${shared_ext}'
22458  dynamic_linker="$host_os ld.so"
22459  shlibpath_var=LIBRARY_PATH
22460  ;;
22461
22462bsdi[45]*)
22463  version_type=linux
22464  need_version=no
22465  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22466  soname_spec='${libname}${release}${shared_ext}$major'
22467  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22468  shlibpath_var=LD_LIBRARY_PATH
22469  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22470  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22471  # the default ld.so.conf also contains /usr/contrib/lib and
22472  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22473  # libtool to hard-code these into programs
22474  ;;
22475
22476cygwin* | mingw* | pw32*)
22477  version_type=windows
22478  shrext_cmds=".dll"
22479  need_version=no
22480  need_lib_prefix=no
22481
22482  case $GCC,$host_os in
22483  yes,cygwin* | yes,mingw* | yes,pw32*)
22484    library_names_spec='$libname.dll.a'
22485    # DLL is installed to $(libdir)/../bin by postinstall_cmds
22486    postinstall_cmds='base_file=`basename \${file}`~
22487      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22488      dldir=$destdir/`dirname \$dlpath`~
22489      test -d \$dldir || mkdir -p \$dldir~
22490      $install_prog $dir/$dlname \$dldir/$dlname~
22491      chmod a+x \$dldir/$dlname'
22492    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22493      dlpath=$dir/\$dldll~
22494       $rm \$dlpath'
22495    shlibpath_overrides_runpath=yes
22496
22497    case $host_os in
22498    cygwin*)
22499      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22500      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22501      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22502      ;;
22503    mingw*)
22504      # MinGW DLLs use traditional 'lib' prefix
22505      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22506      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22507      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22508        # It is most probably a Windows format PATH printed by
22509        # mingw gcc, but we are running on Cygwin. Gcc prints its search
22510        # path with ; separators, and with drive letters. We can handle the
22511        # drive letters (cygwin fileutils understands them), so leave them,
22512        # especially as we might pass files found there to a mingw objdump,
22513        # which wouldn't understand a cygwinified path. Ahh.
22514        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22515      else
22516        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22517      fi
22518      ;;
22519    pw32*)
22520      # pw32 DLLs use 'pw' prefix rather than 'lib'
22521      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22522      ;;
22523    esac
22524    ;;
22525
22526  *)
22527    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22528    ;;
22529  esac
22530  dynamic_linker='Win32 ld.exe'
22531  # FIXME: first we should search . and the directory the executable is in
22532  shlibpath_var=PATH
22533  ;;
22534
22535darwin* | rhapsody*)
22536  dynamic_linker="$host_os dyld"
22537  version_type=darwin
22538  need_lib_prefix=no
22539  need_version=no
22540  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22541  soname_spec='${libname}${release}${major}$shared_ext'
22542  shlibpath_overrides_runpath=yes
22543  shlibpath_var=DYLD_LIBRARY_PATH
22544  shrext_cmds='.dylib'
22545  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22546  if test "$GCC" = yes; then
22547    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"`
22548  else
22549    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22550  fi
22551  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22552  ;;
22553
22554dgux*)
22555  version_type=linux
22556  need_lib_prefix=no
22557  need_version=no
22558  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22559  soname_spec='${libname}${release}${shared_ext}$major'
22560  shlibpath_var=LD_LIBRARY_PATH
22561  ;;
22562
22563freebsd1*)
22564  dynamic_linker=no
22565  ;;
22566
22567kfreebsd*-gnu)
22568  version_type=linux
22569  need_lib_prefix=no
22570  need_version=no
22571  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22572  soname_spec='${libname}${release}${shared_ext}$major'
22573  shlibpath_var=LD_LIBRARY_PATH
22574  shlibpath_overrides_runpath=no
22575  hardcode_into_libs=yes
22576  dynamic_linker='GNU ld.so'
22577  ;;
22578
22579freebsd* | dragonfly*)
22580  # DragonFly does not have aout.  When/if they implement a new
22581  # versioning mechanism, adjust this.
22582  if test -x /usr/bin/objformat; then
22583    objformat=`/usr/bin/objformat`
22584  else
22585    case $host_os in
22586    freebsd[123]*) objformat=aout ;;
22587    *) objformat=elf ;;
22588    esac
22589  fi
22590  version_type=freebsd-$objformat
22591  case $version_type in
22592    freebsd-elf*)
22593      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22594      need_version=no
22595      need_lib_prefix=no
22596      ;;
22597    freebsd-*)
22598      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22599      need_version=yes
22600      ;;
22601  esac
22602  shlibpath_var=LD_LIBRARY_PATH
22603  case $host_os in
22604  freebsd2*)
22605    shlibpath_overrides_runpath=yes
22606    ;;
22607  freebsd3.[01]* | freebsdelf3.[01]*)
22608    shlibpath_overrides_runpath=yes
22609    hardcode_into_libs=yes
22610    ;;
22611  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22612  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22613    shlibpath_overrides_runpath=no
22614    hardcode_into_libs=yes
22615    ;;
22616  freebsd*) # from 4.6 on
22617    shlibpath_overrides_runpath=yes
22618    hardcode_into_libs=yes
22619    ;;
22620  esac
22621  ;;
22622
22623gnu*)
22624  version_type=linux
22625  need_lib_prefix=no
22626  need_version=no
22627  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22628  soname_spec='${libname}${release}${shared_ext}$major'
22629  shlibpath_var=LD_LIBRARY_PATH
22630  hardcode_into_libs=yes
22631  ;;
22632
22633hpux9* | hpux10* | hpux11*)
22634  # Give a soname corresponding to the major version so that dld.sl refuses to
22635  # link against other versions.
22636  version_type=sunos
22637  need_lib_prefix=no
22638  need_version=no
22639  case $host_cpu in
22640  ia64*)
22641    shrext_cmds='.so'
22642    hardcode_into_libs=yes
22643    dynamic_linker="$host_os dld.so"
22644    shlibpath_var=LD_LIBRARY_PATH
22645    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22646    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22647    soname_spec='${libname}${release}${shared_ext}$major'
22648    if test "X$HPUX_IA64_MODE" = X32; then
22649      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22650    else
22651      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22652    fi
22653    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22654    ;;
22655   hppa*64*)
22656     shrext_cmds='.sl'
22657     hardcode_into_libs=yes
22658     dynamic_linker="$host_os dld.sl"
22659     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22660     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22661     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22662     soname_spec='${libname}${release}${shared_ext}$major'
22663     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22664     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22665     ;;
22666   *)
22667    shrext_cmds='.sl'
22668    dynamic_linker="$host_os dld.sl"
22669    shlibpath_var=SHLIB_PATH
22670    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22671    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22672    soname_spec='${libname}${release}${shared_ext}$major'
22673    ;;
22674  esac
22675  # HP-UX runs *really* slowly unless shared libraries are mode 555.
22676  postinstall_cmds='chmod 555 $lib'
22677  ;;
22678
22679interix3*)
22680  version_type=linux
22681  need_lib_prefix=no
22682  need_version=no
22683  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22684  soname_spec='${libname}${release}${shared_ext}$major'
22685  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22686  shlibpath_var=LD_LIBRARY_PATH
22687  shlibpath_overrides_runpath=no
22688  hardcode_into_libs=yes
22689  ;;
22690
22691irix5* | irix6* | nonstopux*)
22692  case $host_os in
22693    nonstopux*) version_type=nonstopux ;;
22694    *)
22695	if test "$lt_cv_prog_gnu_ld" = yes; then
22696		version_type=linux
22697	else
22698		version_type=irix
22699	fi ;;
22700  esac
22701  need_lib_prefix=no
22702  need_version=no
22703  soname_spec='${libname}${release}${shared_ext}$major'
22704  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22705  case $host_os in
22706  irix5* | nonstopux*)
22707    libsuff= shlibsuff=
22708    ;;
22709  *)
22710    case $LD in # libtool.m4 will add one of these switches to LD
22711    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22712      libsuff= shlibsuff= libmagic=32-bit;;
22713    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22714      libsuff=32 shlibsuff=N32 libmagic=N32;;
22715    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22716      libsuff=64 shlibsuff=64 libmagic=64-bit;;
22717    *) libsuff= shlibsuff= libmagic=never-match;;
22718    esac
22719    ;;
22720  esac
22721  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22722  shlibpath_overrides_runpath=no
22723  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22724  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22725  hardcode_into_libs=yes
22726  ;;
22727
22728# No shared lib support for Linux oldld, aout, or coff.
22729linux*oldld* | linux*aout* | linux*coff*)
22730  dynamic_linker=no
22731  ;;
22732
22733# This must be Linux ELF.
22734linux*)
22735  version_type=linux
22736  need_lib_prefix=no
22737  need_version=no
22738  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22739  soname_spec='${libname}${release}${shared_ext}$major'
22740  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22741  shlibpath_var=LD_LIBRARY_PATH
22742  shlibpath_overrides_runpath=no
22743  # This implies no fast_install, which is unacceptable.
22744  # Some rework will be needed to allow for fast_install
22745  # before this can be enabled.
22746  hardcode_into_libs=yes
22747
22748  # Append ld.so.conf contents to the search path
22749  if test -f /etc/ld.so.conf; then
22750    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' ' '`
22751    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22752  fi
22753
22754  # We used to test for /lib/ld.so.1 and disable shared libraries on
22755  # powerpc, because MkLinux only supported shared libraries with the
22756  # GNU dynamic linker.  Since this was broken with cross compilers,
22757  # most powerpc-linux boxes support dynamic linking these days and
22758  # people can always --disable-shared, the test was removed, and we
22759  # assume the GNU/Linux dynamic linker is in use.
22760  dynamic_linker='GNU/Linux ld.so'
22761  ;;
22762
22763knetbsd*-gnu)
22764  version_type=linux
22765  need_lib_prefix=no
22766  need_version=no
22767  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22768  soname_spec='${libname}${release}${shared_ext}$major'
22769  shlibpath_var=LD_LIBRARY_PATH
22770  shlibpath_overrides_runpath=no
22771  hardcode_into_libs=yes
22772  dynamic_linker='GNU ld.so'
22773  ;;
22774
22775netbsd*)
22776  version_type=sunos
22777  need_lib_prefix=no
22778  need_version=no
22779  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22780    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22781    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22782    dynamic_linker='NetBSD (a.out) ld.so'
22783  else
22784    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22785    soname_spec='${libname}${release}${shared_ext}$major'
22786    dynamic_linker='NetBSD ld.elf_so'
22787  fi
22788  shlibpath_var=LD_LIBRARY_PATH
22789  shlibpath_overrides_runpath=yes
22790  hardcode_into_libs=yes
22791  ;;
22792
22793newsos6)
22794  version_type=linux
22795  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22796  shlibpath_var=LD_LIBRARY_PATH
22797  shlibpath_overrides_runpath=yes
22798  ;;
22799
22800nto-qnx*)
22801  version_type=linux
22802  need_lib_prefix=no
22803  need_version=no
22804  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22805  soname_spec='${libname}${release}${shared_ext}$major'
22806  shlibpath_var=LD_LIBRARY_PATH
22807  shlibpath_overrides_runpath=yes
22808  ;;
22809
22810openbsd*)
22811  version_type=sunos
22812  sys_lib_dlsearch_path_spec="/usr/lib"
22813  need_lib_prefix=no
22814  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22815  case $host_os in
22816    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22817    *)                         need_version=no  ;;
22818  esac
22819  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22820  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22821  shlibpath_var=LD_LIBRARY_PATH
22822  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22823    case $host_os in
22824      openbsd2.[89] | openbsd2.[89].*)
22825	shlibpath_overrides_runpath=no
22826	;;
22827      *)
22828	shlibpath_overrides_runpath=yes
22829	;;
22830      esac
22831  else
22832    shlibpath_overrides_runpath=yes
22833  fi
22834  ;;
22835
22836os2*)
22837  libname_spec='$name'
22838  shrext_cmds=".dll"
22839  need_lib_prefix=no
22840  library_names_spec='$libname${shared_ext} $libname.a'
22841  dynamic_linker='OS/2 ld.exe'
22842  shlibpath_var=LIBPATH
22843  ;;
22844
22845osf3* | osf4* | osf5*)
22846  version_type=osf
22847  need_lib_prefix=no
22848  need_version=no
22849  soname_spec='${libname}${release}${shared_ext}$major'
22850  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22851  shlibpath_var=LD_LIBRARY_PATH
22852  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22853  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22854  ;;
22855
22856solaris*)
22857  version_type=linux
22858  need_lib_prefix=no
22859  need_version=no
22860  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22861  soname_spec='${libname}${release}${shared_ext}$major'
22862  shlibpath_var=LD_LIBRARY_PATH
22863  shlibpath_overrides_runpath=yes
22864  hardcode_into_libs=yes
22865  # ldd complains unless libraries are executable
22866  postinstall_cmds='chmod +x $lib'
22867  ;;
22868
22869sunos4*)
22870  version_type=sunos
22871  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22872  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22873  shlibpath_var=LD_LIBRARY_PATH
22874  shlibpath_overrides_runpath=yes
22875  if test "$with_gnu_ld" = yes; then
22876    need_lib_prefix=no
22877  fi
22878  need_version=yes
22879  ;;
22880
22881sysv4 | sysv4.3*)
22882  version_type=linux
22883  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22884  soname_spec='${libname}${release}${shared_ext}$major'
22885  shlibpath_var=LD_LIBRARY_PATH
22886  case $host_vendor in
22887    sni)
22888      shlibpath_overrides_runpath=no
22889      need_lib_prefix=no
22890      export_dynamic_flag_spec='${wl}-Blargedynsym'
22891      runpath_var=LD_RUN_PATH
22892      ;;
22893    siemens)
22894      need_lib_prefix=no
22895      ;;
22896    motorola)
22897      need_lib_prefix=no
22898      need_version=no
22899      shlibpath_overrides_runpath=no
22900      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22901      ;;
22902  esac
22903  ;;
22904
22905sysv4*MP*)
22906  if test -d /usr/nec ;then
22907    version_type=linux
22908    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22909    soname_spec='$libname${shared_ext}.$major'
22910    shlibpath_var=LD_LIBRARY_PATH
22911  fi
22912  ;;
22913
22914sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22915  version_type=freebsd-elf
22916  need_lib_prefix=no
22917  need_version=no
22918  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22919  soname_spec='${libname}${release}${shared_ext}$major'
22920  shlibpath_var=LD_LIBRARY_PATH
22921  hardcode_into_libs=yes
22922  if test "$with_gnu_ld" = yes; then
22923    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22924    shlibpath_overrides_runpath=no
22925  else
22926    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22927    shlibpath_overrides_runpath=yes
22928    case $host_os in
22929      sco3.2v5*)
22930        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22931	;;
22932    esac
22933  fi
22934  sys_lib_dlsearch_path_spec='/usr/lib'
22935  ;;
22936
22937uts4*)
22938  version_type=linux
22939  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22940  soname_spec='${libname}${release}${shared_ext}$major'
22941  shlibpath_var=LD_LIBRARY_PATH
22942  ;;
22943
22944*)
22945  dynamic_linker=no
22946  ;;
22947esac
22948{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22949echo "${ECHO_T}$dynamic_linker" >&6; }
22950test "$dynamic_linker" = no && can_build_shared=no
22951
22952variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22953if test "$GCC" = yes; then
22954  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22955fi
22956
22957{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22958echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
22959hardcode_action_F77=
22960if test -n "$hardcode_libdir_flag_spec_F77" || \
22961   test -n "$runpath_var_F77" || \
22962   test "X$hardcode_automatic_F77" = "Xyes" ; then
22963
22964  # We can hardcode non-existant directories.
22965  if test "$hardcode_direct_F77" != no &&
22966     # If the only mechanism to avoid hardcoding is shlibpath_var, we
22967     # have to relink, otherwise we might link with an installed library
22968     # when we should be linking with a yet-to-be-installed one
22969     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22970     test "$hardcode_minus_L_F77" != no; then
22971    # Linking always hardcodes the temporary library directory.
22972    hardcode_action_F77=relink
22973  else
22974    # We can link without hardcoding, and we can hardcode nonexisting dirs.
22975    hardcode_action_F77=immediate
22976  fi
22977else
22978  # We cannot hardcode anything, or else we can only hardcode existing
22979  # directories.
22980  hardcode_action_F77=unsupported
22981fi
22982{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22983echo "${ECHO_T}$hardcode_action_F77" >&6; }
22984
22985if test "$hardcode_action_F77" = relink; then
22986  # Fast installation is not supported
22987  enable_fast_install=no
22988elif test "$shlibpath_overrides_runpath" = yes ||
22989     test "$enable_shared" = no; then
22990  # Fast installation is not necessary
22991  enable_fast_install=needless
22992fi
22993
22994
22995# The else clause should only fire when bootstrapping the
22996# libtool distribution, otherwise you forgot to ship ltmain.sh
22997# with your package, and you will get complaints that there are
22998# no rules to generate ltmain.sh.
22999if test -f "$ltmain"; then
23000  # See if we are running on zsh, and set the options which allow our commands through
23001  # without removal of \ escapes.
23002  if test -n "${ZSH_VERSION+set}" ; then
23003    setopt NO_GLOB_SUBST
23004  fi
23005  # Now quote all the things that may contain metacharacters while being
23006  # careful not to overquote the AC_SUBSTed values.  We take copies of the
23007  # variables and quote the copies for generation of the libtool script.
23008  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23009    SED SHELL STRIP \
23010    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23011    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23012    deplibs_check_method reload_flag reload_cmds need_locks \
23013    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23014    lt_cv_sys_global_symbol_to_c_name_address \
23015    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23016    old_postinstall_cmds old_postuninstall_cmds \
23017    compiler_F77 \
23018    CC_F77 \
23019    LD_F77 \
23020    lt_prog_compiler_wl_F77 \
23021    lt_prog_compiler_pic_F77 \
23022    lt_prog_compiler_static_F77 \
23023    lt_prog_compiler_no_builtin_flag_F77 \
23024    export_dynamic_flag_spec_F77 \
23025    thread_safe_flag_spec_F77 \
23026    whole_archive_flag_spec_F77 \
23027    enable_shared_with_static_runtimes_F77 \
23028    old_archive_cmds_F77 \
23029    old_archive_from_new_cmds_F77 \
23030    predep_objects_F77 \
23031    postdep_objects_F77 \
23032    predeps_F77 \
23033    postdeps_F77 \
23034    compiler_lib_search_path_F77 \
23035    archive_cmds_F77 \
23036    archive_expsym_cmds_F77 \
23037    postinstall_cmds_F77 \
23038    postuninstall_cmds_F77 \
23039    old_archive_from_expsyms_cmds_F77 \
23040    allow_undefined_flag_F77 \
23041    no_undefined_flag_F77 \
23042    export_symbols_cmds_F77 \
23043    hardcode_libdir_flag_spec_F77 \
23044    hardcode_libdir_flag_spec_ld_F77 \
23045    hardcode_libdir_separator_F77 \
23046    hardcode_automatic_F77 \
23047    module_cmds_F77 \
23048    module_expsym_cmds_F77 \
23049    lt_cv_prog_compiler_c_o_F77 \
23050    exclude_expsyms_F77 \
23051    include_expsyms_F77; do
23052
23053    case $var in
23054    old_archive_cmds_F77 | \
23055    old_archive_from_new_cmds_F77 | \
23056    archive_cmds_F77 | \
23057    archive_expsym_cmds_F77 | \
23058    module_cmds_F77 | \
23059    module_expsym_cmds_F77 | \
23060    old_archive_from_expsyms_cmds_F77 | \
23061    export_symbols_cmds_F77 | \
23062    extract_expsyms_cmds | reload_cmds | finish_cmds | \
23063    postinstall_cmds | postuninstall_cmds | \
23064    old_postinstall_cmds | old_postuninstall_cmds | \
23065    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23066      # Double-quote double-evaled strings.
23067      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23068      ;;
23069    *)
23070      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23071      ;;
23072    esac
23073  done
23074
23075  case $lt_echo in
23076  *'\$0 --fallback-echo"')
23077    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23078    ;;
23079  esac
23080
23081cfgfile="$ofile"
23082
23083  cat <<__EOF__ >> "$cfgfile"
23084# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23085
23086# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23087
23088# Shell to use when invoking shell scripts.
23089SHELL=$lt_SHELL
23090
23091# Whether or not to build shared libraries.
23092build_libtool_libs=$enable_shared
23093
23094# Whether or not to build static libraries.
23095build_old_libs=$enable_static
23096
23097# Whether or not to add -lc for building shared libraries.
23098build_libtool_need_lc=$archive_cmds_need_lc_F77
23099
23100# Whether or not to disallow shared libs when runtime libs are static
23101allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23102
23103# Whether or not to optimize for fast installation.
23104fast_install=$enable_fast_install
23105
23106# The host system.
23107host_alias=$host_alias
23108host=$host
23109host_os=$host_os
23110
23111# The build system.
23112build_alias=$build_alias
23113build=$build
23114build_os=$build_os
23115
23116# An echo program that does not interpret backslashes.
23117echo=$lt_echo
23118
23119# The archiver.
23120AR=$lt_AR
23121AR_FLAGS=$lt_AR_FLAGS
23122
23123# A C compiler.
23124LTCC=$lt_LTCC
23125
23126# LTCC compiler flags.
23127LTCFLAGS=$lt_LTCFLAGS
23128
23129# A language-specific compiler.
23130CC=$lt_compiler_F77
23131
23132# Is the compiler the GNU C compiler?
23133with_gcc=$GCC_F77
23134
23135# An ERE matcher.
23136EGREP=$lt_EGREP
23137
23138# The linker used to build libraries.
23139LD=$lt_LD_F77
23140
23141# Whether we need hard or soft links.
23142LN_S=$lt_LN_S
23143
23144# A BSD-compatible nm program.
23145NM=$lt_NM
23146
23147# A symbol stripping program
23148STRIP=$lt_STRIP
23149
23150# Used to examine libraries when file_magic_cmd begins "file"
23151MAGIC_CMD=$MAGIC_CMD
23152
23153# Used on cygwin: DLL creation program.
23154DLLTOOL="$DLLTOOL"
23155
23156# Used on cygwin: object dumper.
23157OBJDUMP="$OBJDUMP"
23158
23159# Used on cygwin: assembler.
23160AS="$AS"
23161
23162# The name of the directory that contains temporary libtool files.
23163objdir=$objdir
23164
23165# How to create reloadable object files.
23166reload_flag=$lt_reload_flag
23167reload_cmds=$lt_reload_cmds
23168
23169# How to pass a linker flag through the compiler.
23170wl=$lt_lt_prog_compiler_wl_F77
23171
23172# Object file suffix (normally "o").
23173objext="$ac_objext"
23174
23175# Old archive suffix (normally "a").
23176libext="$libext"
23177
23178# Shared library suffix (normally ".so").
23179shrext_cmds='$shrext_cmds'
23180
23181# Executable file suffix (normally "").
23182exeext="$exeext"
23183
23184# Additional compiler flags for building library objects.
23185pic_flag=$lt_lt_prog_compiler_pic_F77
23186pic_mode=$pic_mode
23187
23188# What is the maximum length of a command?
23189max_cmd_len=$lt_cv_sys_max_cmd_len
23190
23191# Does compiler simultaneously support -c and -o options?
23192compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23193
23194# Must we lock files when doing compilation?
23195need_locks=$lt_need_locks
23196
23197# Do we need the lib prefix for modules?
23198need_lib_prefix=$need_lib_prefix
23199
23200# Do we need a version for libraries?
23201need_version=$need_version
23202
23203# Whether dlopen is supported.
23204dlopen_support=$enable_dlopen
23205
23206# Whether dlopen of programs is supported.
23207dlopen_self=$enable_dlopen_self
23208
23209# Whether dlopen of statically linked programs is supported.
23210dlopen_self_static=$enable_dlopen_self_static
23211
23212# Compiler flag to prevent dynamic linking.
23213link_static_flag=$lt_lt_prog_compiler_static_F77
23214
23215# Compiler flag to turn off builtin functions.
23216no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23217
23218# Compiler flag to allow reflexive dlopens.
23219export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23220
23221# Compiler flag to generate shared objects directly from archives.
23222whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23223
23224# Compiler flag to generate thread-safe objects.
23225thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23226
23227# Library versioning type.
23228version_type=$version_type
23229
23230# Format of library name prefix.
23231libname_spec=$lt_libname_spec
23232
23233# List of archive names.  First name is the real one, the rest are links.
23234# The last name is the one that the linker finds with -lNAME.
23235library_names_spec=$lt_library_names_spec
23236
23237# The coded name of the library, if different from the real name.
23238soname_spec=$lt_soname_spec
23239
23240# Commands used to build and install an old-style archive.
23241RANLIB=$lt_RANLIB
23242old_archive_cmds=$lt_old_archive_cmds_F77
23243old_postinstall_cmds=$lt_old_postinstall_cmds
23244old_postuninstall_cmds=$lt_old_postuninstall_cmds
23245
23246# Create an old-style archive from a shared archive.
23247old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23248
23249# Create a temporary old-style archive to link instead of a shared archive.
23250old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23251
23252# Commands used to build and install a shared archive.
23253archive_cmds=$lt_archive_cmds_F77
23254archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23255postinstall_cmds=$lt_postinstall_cmds
23256postuninstall_cmds=$lt_postuninstall_cmds
23257
23258# Commands used to build a loadable module (assumed same as above if empty)
23259module_cmds=$lt_module_cmds_F77
23260module_expsym_cmds=$lt_module_expsym_cmds_F77
23261
23262# Commands to strip libraries.
23263old_striplib=$lt_old_striplib
23264striplib=$lt_striplib
23265
23266# Dependencies to place before the objects being linked to create a
23267# shared library.
23268predep_objects=$lt_predep_objects_F77
23269
23270# Dependencies to place after the objects being linked to create a
23271# shared library.
23272postdep_objects=$lt_postdep_objects_F77
23273
23274# Dependencies to place before the objects being linked to create a
23275# shared library.
23276predeps=$lt_predeps_F77
23277
23278# Dependencies to place after the objects being linked to create a
23279# shared library.
23280postdeps=$lt_postdeps_F77
23281
23282# The library search path used internally by the compiler when linking
23283# a shared library.
23284compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23285
23286# Method to check whether dependent libraries are shared objects.
23287deplibs_check_method=$lt_deplibs_check_method
23288
23289# Command to use when deplibs_check_method == file_magic.
23290file_magic_cmd=$lt_file_magic_cmd
23291
23292# Flag that allows shared libraries with undefined symbols to be built.
23293allow_undefined_flag=$lt_allow_undefined_flag_F77
23294
23295# Flag that forces no undefined symbols.
23296no_undefined_flag=$lt_no_undefined_flag_F77
23297
23298# Commands used to finish a libtool library installation in a directory.
23299finish_cmds=$lt_finish_cmds
23300
23301# Same as above, but a single script fragment to be evaled but not shown.
23302finish_eval=$lt_finish_eval
23303
23304# Take the output of nm and produce a listing of raw symbols and C names.
23305global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23306
23307# Transform the output of nm in a proper C declaration
23308global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23309
23310# Transform the output of nm in a C name address pair
23311global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23312
23313# This is the shared library runtime path variable.
23314runpath_var=$runpath_var
23315
23316# This is the shared library path variable.
23317shlibpath_var=$shlibpath_var
23318
23319# Is shlibpath searched before the hard-coded library search path?
23320shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23321
23322# How to hardcode a shared library path into an executable.
23323hardcode_action=$hardcode_action_F77
23324
23325# Whether we should hardcode library paths into libraries.
23326hardcode_into_libs=$hardcode_into_libs
23327
23328# Flag to hardcode \$libdir into a binary during linking.
23329# This must work even if \$libdir does not exist.
23330hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23331
23332# If ld is used when linking, flag to hardcode \$libdir into
23333# a binary during linking. This must work even if \$libdir does
23334# not exist.
23335hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23336
23337# Whether we need a single -rpath flag with a separated argument.
23338hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23339
23340# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23341# resulting binary.
23342hardcode_direct=$hardcode_direct_F77
23343
23344# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23345# resulting binary.
23346hardcode_minus_L=$hardcode_minus_L_F77
23347
23348# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23349# the resulting binary.
23350hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23351
23352# Set to yes if building a shared library automatically hardcodes DIR into the library
23353# and all subsequent libraries and executables linked against it.
23354hardcode_automatic=$hardcode_automatic_F77
23355
23356# Variables whose values should be saved in libtool wrapper scripts and
23357# restored at relink time.
23358variables_saved_for_relink="$variables_saved_for_relink"
23359
23360# Whether libtool must link a program against all its dependency libraries.
23361link_all_deplibs=$link_all_deplibs_F77
23362
23363# Compile-time system search path for libraries
23364sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23365
23366# Run-time system search path for libraries
23367sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23368
23369# Fix the shell variable \$srcfile for the compiler.
23370fix_srcfile_path="$fix_srcfile_path_F77"
23371
23372# Set to yes if exported symbols are required.
23373always_export_symbols=$always_export_symbols_F77
23374
23375# The commands to list exported symbols.
23376export_symbols_cmds=$lt_export_symbols_cmds_F77
23377
23378# The commands to extract the exported symbol list from a shared archive.
23379extract_expsyms_cmds=$lt_extract_expsyms_cmds
23380
23381# Symbols that should not be listed in the preloaded symbols.
23382exclude_expsyms=$lt_exclude_expsyms_F77
23383
23384# Symbols that must always be exported.
23385include_expsyms=$lt_include_expsyms_F77
23386
23387# ### END LIBTOOL TAG CONFIG: $tagname
23388
23389__EOF__
23390
23391
23392else
23393  # If there is no Makefile yet, we rely on a make rule to execute
23394  # `config.status --recheck' to rerun these tests and create the
23395  # libtool script then.
23396  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23397  if test -f "$ltmain_in"; then
23398    test -f Makefile && make "$ltmain"
23399  fi
23400fi
23401
23402
23403ac_ext=c
23404ac_cpp='$CPP $CPPFLAGS'
23405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23407ac_compiler_gnu=$ac_cv_c_compiler_gnu
23408
23409CC="$lt_save_CC"
23410
23411	else
23412	  tagname=""
23413	fi
23414	;;
23415
23416      GCJ)
23417	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23418	  ac_ext=c
23419ac_cpp='$CPP $CPPFLAGS'
23420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23422ac_compiler_gnu=$ac_cv_c_compiler_gnu
23423
23424
23425# Source file extension for Java test sources.
23426ac_ext=java
23427
23428# Object file extension for compiled Java test sources.
23429objext=o
23430objext_GCJ=$objext
23431
23432# Code to be used in simple compile tests
23433lt_simple_compile_test_code="class foo {}\n"
23434
23435# Code to be used in simple link tests
23436lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23437
23438# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23439
23440# If no C compiler was specified, use CC.
23441LTCC=${LTCC-"$CC"}
23442
23443# If no C compiler flags were specified, use CFLAGS.
23444LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23445
23446# Allow CC to be a program name with arguments.
23447compiler=$CC
23448
23449
23450# save warnings/boilerplate of simple test code
23451ac_outfile=conftest.$ac_objext
23452printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23453eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23454_lt_compiler_boilerplate=`cat conftest.err`
23455$rm conftest*
23456
23457ac_outfile=conftest.$ac_objext
23458printf "$lt_simple_link_test_code" >conftest.$ac_ext
23459eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23460_lt_linker_boilerplate=`cat conftest.err`
23461$rm conftest*
23462
23463
23464# Allow CC to be a program name with arguments.
23465lt_save_CC="$CC"
23466CC=${GCJ-"gcj"}
23467compiler=$CC
23468compiler_GCJ=$CC
23469for cc_temp in $compiler""; do
23470  case $cc_temp in
23471    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23472    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23473    \-*) ;;
23474    *) break;;
23475  esac
23476done
23477cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23478
23479
23480# GCJ did not exist at the time GCC didn't implicitly link libc in.
23481archive_cmds_need_lc_GCJ=no
23482
23483old_archive_cmds_GCJ=$old_archive_cmds
23484
23485
23486lt_prog_compiler_no_builtin_flag_GCJ=
23487
23488if test "$GCC" = yes; then
23489  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23490
23491
23492{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23493echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23494if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23495  echo $ECHO_N "(cached) $ECHO_C" >&6
23496else
23497  lt_cv_prog_compiler_rtti_exceptions=no
23498  ac_outfile=conftest.$ac_objext
23499   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23500   lt_compiler_flag="-fno-rtti -fno-exceptions"
23501   # Insert the option either (1) after the last *FLAGS variable, or
23502   # (2) before a word containing "conftest.", or (3) at the end.
23503   # Note that $ac_compile itself does not contain backslashes and begins
23504   # with a dollar sign (not a hyphen), so the echo should work correctly.
23505   # The option is referenced via a variable to avoid confusing sed.
23506   lt_compile=`echo "$ac_compile" | $SED \
23507   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23508   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23509   -e 's:$: $lt_compiler_flag:'`
23510   (eval echo "\"\$as_me:23510: $lt_compile\"" >&5)
23511   (eval "$lt_compile" 2>conftest.err)
23512   ac_status=$?
23513   cat conftest.err >&5
23514   echo "$as_me:23514: \$? = $ac_status" >&5
23515   if (exit $ac_status) && test -s "$ac_outfile"; then
23516     # The compiler can only warn and ignore the option if not recognized
23517     # So say no if there are warnings other than the usual output.
23518     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23519     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23520     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23521       lt_cv_prog_compiler_rtti_exceptions=yes
23522     fi
23523   fi
23524   $rm conftest*
23525
23526fi
23527{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23528echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23529
23530if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23531    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23532else
23533    :
23534fi
23535
23536fi
23537
23538lt_prog_compiler_wl_GCJ=
23539lt_prog_compiler_pic_GCJ=
23540lt_prog_compiler_static_GCJ=
23541
23542{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23543echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23544
23545  if test "$GCC" = yes; then
23546    lt_prog_compiler_wl_GCJ='-Wl,'
23547    lt_prog_compiler_static_GCJ='-static'
23548
23549    case $host_os in
23550      aix*)
23551      # All AIX code is PIC.
23552      if test "$host_cpu" = ia64; then
23553	# AIX 5 now supports IA64 processor
23554	lt_prog_compiler_static_GCJ='-Bstatic'
23555      fi
23556      ;;
23557
23558    amigaos*)
23559      # FIXME: we need at least 68020 code to build shared libraries, but
23560      # adding the `-m68020' flag to GCC prevents building anything better,
23561      # like `-m68040'.
23562      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23563      ;;
23564
23565    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23566      # PIC is the default for these OSes.
23567      ;;
23568
23569    mingw* | pw32* | os2*)
23570      # This hack is so that the source file can tell whether it is being
23571      # built for inclusion in a dll (and should export symbols for example).
23572      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23573      ;;
23574
23575    darwin* | rhapsody*)
23576      # PIC is the default on this platform
23577      # Common symbols not allowed in MH_DYLIB files
23578      lt_prog_compiler_pic_GCJ='-fno-common'
23579      ;;
23580
23581    interix3*)
23582      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23583      # Instead, we relocate shared libraries at runtime.
23584      ;;
23585
23586    msdosdjgpp*)
23587      # Just because we use GCC doesn't mean we suddenly get shared libraries
23588      # on systems that don't support them.
23589      lt_prog_compiler_can_build_shared_GCJ=no
23590      enable_shared=no
23591      ;;
23592
23593    sysv4*MP*)
23594      if test -d /usr/nec; then
23595	lt_prog_compiler_pic_GCJ=-Kconform_pic
23596      fi
23597      ;;
23598
23599    hpux*)
23600      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23601      # not for PA HP-UX.
23602      case $host_cpu in
23603      hppa*64*|ia64*)
23604	# +Z the default
23605	;;
23606      *)
23607	lt_prog_compiler_pic_GCJ='-fPIC'
23608	;;
23609      esac
23610      ;;
23611
23612    *)
23613      lt_prog_compiler_pic_GCJ='-fPIC'
23614      ;;
23615    esac
23616  else
23617    # PORTME Check for flag to pass linker flags through the system compiler.
23618    case $host_os in
23619    aix*)
23620      lt_prog_compiler_wl_GCJ='-Wl,'
23621      if test "$host_cpu" = ia64; then
23622	# AIX 5 now supports IA64 processor
23623	lt_prog_compiler_static_GCJ='-Bstatic'
23624      else
23625	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23626      fi
23627      ;;
23628      darwin*)
23629        # PIC is the default on this platform
23630        # Common symbols not allowed in MH_DYLIB files
23631       case $cc_basename in
23632         xlc*)
23633         lt_prog_compiler_pic_GCJ='-qnocommon'
23634         lt_prog_compiler_wl_GCJ='-Wl,'
23635         ;;
23636       esac
23637       ;;
23638
23639    mingw* | pw32* | os2*)
23640      # This hack is so that the source file can tell whether it is being
23641      # built for inclusion in a dll (and should export symbols for example).
23642      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23643      ;;
23644
23645    hpux9* | hpux10* | hpux11*)
23646      lt_prog_compiler_wl_GCJ='-Wl,'
23647      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23648      # not for PA HP-UX.
23649      case $host_cpu in
23650      hppa*64*|ia64*)
23651	# +Z the default
23652	;;
23653      *)
23654	lt_prog_compiler_pic_GCJ='+Z'
23655	;;
23656      esac
23657      # Is there a better lt_prog_compiler_static that works with the bundled CC?
23658      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23659      ;;
23660
23661    irix5* | irix6* | nonstopux*)
23662      lt_prog_compiler_wl_GCJ='-Wl,'
23663      # PIC (with -KPIC) is the default.
23664      lt_prog_compiler_static_GCJ='-non_shared'
23665      ;;
23666
23667    newsos6)
23668      lt_prog_compiler_pic_GCJ='-KPIC'
23669      lt_prog_compiler_static_GCJ='-Bstatic'
23670      ;;
23671
23672    linux*)
23673      case $cc_basename in
23674      icc* | ecc*)
23675	lt_prog_compiler_wl_GCJ='-Wl,'
23676	lt_prog_compiler_pic_GCJ='-KPIC'
23677	lt_prog_compiler_static_GCJ='-static'
23678        ;;
23679      pgcc* | pgf77* | pgf90* | pgf95*)
23680        # Portland Group compilers (*not* the Pentium gcc compiler,
23681	# which looks to be a dead project)
23682	lt_prog_compiler_wl_GCJ='-Wl,'
23683	lt_prog_compiler_pic_GCJ='-fpic'
23684	lt_prog_compiler_static_GCJ='-Bstatic'
23685        ;;
23686      ccc*)
23687        lt_prog_compiler_wl_GCJ='-Wl,'
23688        # All Alpha code is PIC.
23689        lt_prog_compiler_static_GCJ='-non_shared'
23690        ;;
23691      esac
23692      ;;
23693
23694    osf3* | osf4* | osf5*)
23695      lt_prog_compiler_wl_GCJ='-Wl,'
23696      # All OSF/1 code is PIC.
23697      lt_prog_compiler_static_GCJ='-non_shared'
23698      ;;
23699
23700    solaris*)
23701      lt_prog_compiler_pic_GCJ='-KPIC'
23702      lt_prog_compiler_static_GCJ='-Bstatic'
23703      case $cc_basename in
23704      f77* | f90* | f95*)
23705	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23706      *)
23707	lt_prog_compiler_wl_GCJ='-Wl,';;
23708      esac
23709      ;;
23710
23711    sunos4*)
23712      lt_prog_compiler_wl_GCJ='-Qoption ld '
23713      lt_prog_compiler_pic_GCJ='-PIC'
23714      lt_prog_compiler_static_GCJ='-Bstatic'
23715      ;;
23716
23717    sysv4 | sysv4.2uw2* | sysv4.3*)
23718      lt_prog_compiler_wl_GCJ='-Wl,'
23719      lt_prog_compiler_pic_GCJ='-KPIC'
23720      lt_prog_compiler_static_GCJ='-Bstatic'
23721      ;;
23722
23723    sysv4*MP*)
23724      if test -d /usr/nec ;then
23725	lt_prog_compiler_pic_GCJ='-Kconform_pic'
23726	lt_prog_compiler_static_GCJ='-Bstatic'
23727      fi
23728      ;;
23729
23730    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23731      lt_prog_compiler_wl_GCJ='-Wl,'
23732      lt_prog_compiler_pic_GCJ='-KPIC'
23733      lt_prog_compiler_static_GCJ='-Bstatic'
23734      ;;
23735
23736    unicos*)
23737      lt_prog_compiler_wl_GCJ='-Wl,'
23738      lt_prog_compiler_can_build_shared_GCJ=no
23739      ;;
23740
23741    uts4*)
23742      lt_prog_compiler_pic_GCJ='-pic'
23743      lt_prog_compiler_static_GCJ='-Bstatic'
23744      ;;
23745
23746    *)
23747      lt_prog_compiler_can_build_shared_GCJ=no
23748      ;;
23749    esac
23750  fi
23751
23752{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23753echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23754
23755#
23756# Check to make sure the PIC flag actually works.
23757#
23758if test -n "$lt_prog_compiler_pic_GCJ"; then
23759
23760{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23761echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23762if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23763  echo $ECHO_N "(cached) $ECHO_C" >&6
23764else
23765  lt_prog_compiler_pic_works_GCJ=no
23766  ac_outfile=conftest.$ac_objext
23767   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23768   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23769   # Insert the option either (1) after the last *FLAGS variable, or
23770   # (2) before a word containing "conftest.", or (3) at the end.
23771   # Note that $ac_compile itself does not contain backslashes and begins
23772   # with a dollar sign (not a hyphen), so the echo should work correctly.
23773   # The option is referenced via a variable to avoid confusing sed.
23774   lt_compile=`echo "$ac_compile" | $SED \
23775   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23776   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23777   -e 's:$: $lt_compiler_flag:'`
23778   (eval echo "\"\$as_me:23778: $lt_compile\"" >&5)
23779   (eval "$lt_compile" 2>conftest.err)
23780   ac_status=$?
23781   cat conftest.err >&5
23782   echo "$as_me:23782: \$? = $ac_status" >&5
23783   if (exit $ac_status) && test -s "$ac_outfile"; then
23784     # The compiler can only warn and ignore the option if not recognized
23785     # So say no if there are warnings other than the usual output.
23786     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23787     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23788     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23789       lt_prog_compiler_pic_works_GCJ=yes
23790     fi
23791   fi
23792   $rm conftest*
23793
23794fi
23795{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23796echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23797
23798if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23799    case $lt_prog_compiler_pic_GCJ in
23800     "" | " "*) ;;
23801     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23802     esac
23803else
23804    lt_prog_compiler_pic_GCJ=
23805     lt_prog_compiler_can_build_shared_GCJ=no
23806fi
23807
23808fi
23809case $host_os in
23810  # For platforms which do not support PIC, -DPIC is meaningless:
23811  *djgpp*)
23812    lt_prog_compiler_pic_GCJ=
23813    ;;
23814  *)
23815    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23816    ;;
23817esac
23818
23819#
23820# Check to make sure the static flag actually works.
23821#
23822wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23823{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23824echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23825if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23826  echo $ECHO_N "(cached) $ECHO_C" >&6
23827else
23828  lt_prog_compiler_static_works_GCJ=no
23829   save_LDFLAGS="$LDFLAGS"
23830   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23831   printf "$lt_simple_link_test_code" > conftest.$ac_ext
23832   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23833     # The linker can only warn and ignore the option if not recognized
23834     # So say no if there are warnings
23835     if test -s conftest.err; then
23836       # Append any errors to the config.log.
23837       cat conftest.err 1>&5
23838       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23839       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23840       if diff conftest.exp conftest.er2 >/dev/null; then
23841         lt_prog_compiler_static_works_GCJ=yes
23842       fi
23843     else
23844       lt_prog_compiler_static_works_GCJ=yes
23845     fi
23846   fi
23847   $rm conftest*
23848   LDFLAGS="$save_LDFLAGS"
23849
23850fi
23851{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23852echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23853
23854if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23855    :
23856else
23857    lt_prog_compiler_static_GCJ=
23858fi
23859
23860
23861{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23862echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
23863if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23864  echo $ECHO_N "(cached) $ECHO_C" >&6
23865else
23866  lt_cv_prog_compiler_c_o_GCJ=no
23867   $rm -r conftest 2>/dev/null
23868   mkdir conftest
23869   cd conftest
23870   mkdir out
23871   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23872
23873   lt_compiler_flag="-o out/conftest2.$ac_objext"
23874   # Insert the option either (1) after the last *FLAGS variable, or
23875   # (2) before a word containing "conftest.", or (3) at the end.
23876   # Note that $ac_compile itself does not contain backslashes and begins
23877   # with a dollar sign (not a hyphen), so the echo should work correctly.
23878   lt_compile=`echo "$ac_compile" | $SED \
23879   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23880   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23881   -e 's:$: $lt_compiler_flag:'`
23882   (eval echo "\"\$as_me:23882: $lt_compile\"" >&5)
23883   (eval "$lt_compile" 2>out/conftest.err)
23884   ac_status=$?
23885   cat out/conftest.err >&5
23886   echo "$as_me:23886: \$? = $ac_status" >&5
23887   if (exit $ac_status) && test -s out/conftest2.$ac_objext
23888   then
23889     # The compiler can only warn and ignore the option if not recognized
23890     # So say no if there are warnings
23891     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23892     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23893     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23894       lt_cv_prog_compiler_c_o_GCJ=yes
23895     fi
23896   fi
23897   chmod u+w . 2>&5
23898   $rm conftest*
23899   # SGI C++ compiler will create directory out/ii_files/ for
23900   # template instantiation
23901   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23902   $rm out/* && rmdir out
23903   cd ..
23904   rmdir conftest
23905   $rm conftest*
23906
23907fi
23908{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23909echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
23910
23911
23912hard_links="nottested"
23913if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23914  # do not overwrite the value of need_locks provided by the user
23915  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23916echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
23917  hard_links=yes
23918  $rm conftest*
23919  ln conftest.a conftest.b 2>/dev/null && hard_links=no
23920  touch conftest.a
23921  ln conftest.a conftest.b 2>&5 || hard_links=no
23922  ln conftest.a conftest.b 2>/dev/null && hard_links=no
23923  { echo "$as_me:$LINENO: result: $hard_links" >&5
23924echo "${ECHO_T}$hard_links" >&6; }
23925  if test "$hard_links" = no; then
23926    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23927echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23928    need_locks=warn
23929  fi
23930else
23931  need_locks=no
23932fi
23933
23934{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23935echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
23936
23937  runpath_var=
23938  allow_undefined_flag_GCJ=
23939  enable_shared_with_static_runtimes_GCJ=no
23940  archive_cmds_GCJ=
23941  archive_expsym_cmds_GCJ=
23942  old_archive_From_new_cmds_GCJ=
23943  old_archive_from_expsyms_cmds_GCJ=
23944  export_dynamic_flag_spec_GCJ=
23945  whole_archive_flag_spec_GCJ=
23946  thread_safe_flag_spec_GCJ=
23947  hardcode_libdir_flag_spec_GCJ=
23948  hardcode_libdir_flag_spec_ld_GCJ=
23949  hardcode_libdir_separator_GCJ=
23950  hardcode_direct_GCJ=no
23951  hardcode_minus_L_GCJ=no
23952  hardcode_shlibpath_var_GCJ=unsupported
23953  link_all_deplibs_GCJ=unknown
23954  hardcode_automatic_GCJ=no
23955  module_cmds_GCJ=
23956  module_expsym_cmds_GCJ=
23957  always_export_symbols_GCJ=no
23958  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23959  # include_expsyms should be a list of space-separated symbols to be *always*
23960  # included in the symbol list
23961  include_expsyms_GCJ=
23962  # exclude_expsyms can be an extended regexp of symbols to exclude
23963  # it will be wrapped by ` (' and `)$', so one must not match beginning or
23964  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23965  # as well as any symbol that contains `d'.
23966  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23967  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23968  # platforms (ab)use it in PIC code, but their linkers get confused if
23969  # the symbol is explicitly referenced.  Since portable code cannot
23970  # rely on this symbol name, it's probably fine to never include it in
23971  # preloaded symbol tables.
23972  extract_expsyms_cmds=
23973  # Just being paranoid about ensuring that cc_basename is set.
23974  for cc_temp in $compiler""; do
23975  case $cc_temp in
23976    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23977    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23978    \-*) ;;
23979    *) break;;
23980  esac
23981done
23982cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23983
23984  case $host_os in
23985  cygwin* | mingw* | pw32*)
23986    # FIXME: the MSVC++ port hasn't been tested in a loooong time
23987    # When not using gcc, we currently assume that we are using
23988    # Microsoft Visual C++.
23989    if test "$GCC" != yes; then
23990      with_gnu_ld=no
23991    fi
23992    ;;
23993  interix*)
23994    # we just hope/assume this is gcc and not c89 (= MSVC++)
23995    with_gnu_ld=yes
23996    ;;
23997  openbsd*)
23998    with_gnu_ld=no
23999    ;;
24000  esac
24001
24002  ld_shlibs_GCJ=yes
24003  if test "$with_gnu_ld" = yes; then
24004    # If archive_cmds runs LD, not CC, wlarc should be empty
24005    wlarc='${wl}'
24006
24007    # Set some defaults for GNU ld with shared library support. These
24008    # are reset later if shared libraries are not supported. Putting them
24009    # here allows them to be overridden if necessary.
24010    runpath_var=LD_RUN_PATH
24011    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24012    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24013    # ancient GNU ld didn't support --whole-archive et. al.
24014    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24015	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24016      else
24017  	whole_archive_flag_spec_GCJ=
24018    fi
24019    supports_anon_versioning=no
24020    case `$LD -v 2>/dev/null` in
24021      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24022      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24023      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24024      *\ 2.11.*) ;; # other 2.11 versions
24025      *) supports_anon_versioning=yes ;;
24026    esac
24027
24028    # See if GNU ld supports shared libraries.
24029    case $host_os in
24030    aix3* | aix4* | aix5*)
24031      # On AIX/PPC, the GNU linker is very broken
24032      if test "$host_cpu" != ia64; then
24033	ld_shlibs_GCJ=no
24034	cat <<EOF 1>&2
24035
24036*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24037*** to be unable to reliably create shared libraries on AIX.
24038*** Therefore, libtool is disabling shared libraries support.  If you
24039*** really care for shared libraries, you may want to modify your PATH
24040*** so that a non-GNU linker is found, and then restart.
24041
24042EOF
24043      fi
24044      ;;
24045
24046    amigaos*)
24047      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)'
24048      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24049      hardcode_minus_L_GCJ=yes
24050
24051      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24052      # that the semantics of dynamic libraries on AmigaOS, at least up
24053      # to version 4, is to share data among multiple programs linked
24054      # with the same dynamic library.  Since this doesn't match the
24055      # behavior of shared libraries on other platforms, we can't use
24056      # them.
24057      ld_shlibs_GCJ=no
24058      ;;
24059
24060    beos*)
24061      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24062	allow_undefined_flag_GCJ=unsupported
24063	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24064	# support --undefined.  This deserves some investigation.  FIXME
24065	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24066      else
24067	ld_shlibs_GCJ=no
24068      fi
24069      ;;
24070
24071    cygwin* | mingw* | pw32*)
24072      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24073      # as there is no search path for DLLs.
24074      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24075      allow_undefined_flag_GCJ=unsupported
24076      always_export_symbols_GCJ=no
24077      enable_shared_with_static_runtimes_GCJ=yes
24078      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24079
24080      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24081        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24082	# If the export-symbols file already is a .def file (1st line
24083	# is EXPORTS), use it as is; otherwise, prepend...
24084	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24085	  cp $export_symbols $output_objdir/$soname.def;
24086	else
24087	  echo EXPORTS > $output_objdir/$soname.def;
24088	  cat $export_symbols >> $output_objdir/$soname.def;
24089	fi~
24090	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24091      else
24092	ld_shlibs_GCJ=no
24093      fi
24094      ;;
24095
24096    interix3*)
24097      hardcode_direct_GCJ=no
24098      hardcode_shlibpath_var_GCJ=no
24099      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24100      export_dynamic_flag_spec_GCJ='${wl}-E'
24101      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24102      # Instead, shared libraries are loaded at an image base (0x10000000 by
24103      # default) and relocated if they conflict, which is a slow very memory
24104      # consuming and fragmenting process.  To avoid this, we pick a random,
24105      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24106      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24107      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'
24108      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'
24109      ;;
24110
24111    linux*)
24112      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24113	tmp_addflag=
24114	case $cc_basename,$host_cpu in
24115	pgcc*)				# Portland Group C compiler
24116	  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'
24117	  tmp_addflag=' $pic_flag'
24118	  ;;
24119	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
24120	  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'
24121	  tmp_addflag=' $pic_flag -Mnomain' ;;
24122	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
24123	  tmp_addflag=' -i_dynamic' ;;
24124	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
24125	  tmp_addflag=' -i_dynamic -nofor_main' ;;
24126	ifc* | ifort*)			# Intel Fortran compiler
24127	  tmp_addflag=' -nofor_main' ;;
24128	esac
24129	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24130
24131	if test $supports_anon_versioning = yes; then
24132	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24133  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24134  $echo "local: *; };" >> $output_objdir/$libname.ver~
24135	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24136	fi
24137      else
24138	ld_shlibs_GCJ=no
24139      fi
24140      ;;
24141
24142    netbsd*)
24143      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24144	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24145	wlarc=
24146      else
24147	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24148	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24149      fi
24150      ;;
24151
24152    solaris*)
24153      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24154	ld_shlibs_GCJ=no
24155	cat <<EOF 1>&2
24156
24157*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24158*** create shared libraries on Solaris systems.  Therefore, libtool
24159*** is disabling shared libraries support.  We urge you to upgrade GNU
24160*** binutils to release 2.9.1 or newer.  Another option is to modify
24161*** your PATH or compiler configuration so that the native linker is
24162*** used, and then restart.
24163
24164EOF
24165      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24166	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24167	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24168      else
24169	ld_shlibs_GCJ=no
24170      fi
24171      ;;
24172
24173    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24174      case `$LD -v 2>&1` in
24175        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24176	ld_shlibs_GCJ=no
24177	cat <<_LT_EOF 1>&2
24178
24179*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24180*** reliably create shared libraries on SCO systems.  Therefore, libtool
24181*** is disabling shared libraries support.  We urge you to upgrade GNU
24182*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24183*** your PATH or compiler configuration so that the native linker is
24184*** used, and then restart.
24185
24186_LT_EOF
24187	;;
24188	*)
24189	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24190	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24191	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24192	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24193	  else
24194	    ld_shlibs_GCJ=no
24195	  fi
24196	;;
24197      esac
24198      ;;
24199
24200    sunos4*)
24201      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24202      wlarc=
24203      hardcode_direct_GCJ=yes
24204      hardcode_shlibpath_var_GCJ=no
24205      ;;
24206
24207    *)
24208      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24209	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24210	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24211      else
24212	ld_shlibs_GCJ=no
24213      fi
24214      ;;
24215    esac
24216
24217    if test "$ld_shlibs_GCJ" = no; then
24218      runpath_var=
24219      hardcode_libdir_flag_spec_GCJ=
24220      export_dynamic_flag_spec_GCJ=
24221      whole_archive_flag_spec_GCJ=
24222    fi
24223  else
24224    # PORTME fill in a description of your system's linker (not GNU ld)
24225    case $host_os in
24226    aix3*)
24227      allow_undefined_flag_GCJ=unsupported
24228      always_export_symbols_GCJ=yes
24229      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'
24230      # Note: this linker hardcodes the directories in LIBPATH if there
24231      # are no directories specified by -L.
24232      hardcode_minus_L_GCJ=yes
24233      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24234	# Neither direct hardcoding nor static linking is supported with a
24235	# broken collect2.
24236	hardcode_direct_GCJ=unsupported
24237      fi
24238      ;;
24239
24240    aix4* | aix5*)
24241      if test "$host_cpu" = ia64; then
24242	# On IA64, the linker does run time linking by default, so we don't
24243	# have to do anything special.
24244	aix_use_runtimelinking=no
24245	exp_sym_flag='-Bexport'
24246	no_entry_flag=""
24247      else
24248	# If we're using GNU nm, then we don't want the "-C" option.
24249	# -C means demangle to AIX nm, but means don't demangle with GNU nm
24250	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24251	  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'
24252	else
24253	  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'
24254	fi
24255	aix_use_runtimelinking=no
24256
24257	# Test if we are trying to use run time linking or normal
24258	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
24259	# need to do runtime linking.
24260	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24261	  for ld_flag in $LDFLAGS; do
24262  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24263  	    aix_use_runtimelinking=yes
24264  	    break
24265  	  fi
24266	  done
24267	  ;;
24268	esac
24269
24270	exp_sym_flag='-bexport'
24271	no_entry_flag='-bnoentry'
24272      fi
24273
24274      # When large executables or shared objects are built, AIX ld can
24275      # have problems creating the table of contents.  If linking a library
24276      # or program results in "error TOC overflow" add -mminimal-toc to
24277      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24278      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24279
24280      archive_cmds_GCJ=''
24281      hardcode_direct_GCJ=yes
24282      hardcode_libdir_separator_GCJ=':'
24283      link_all_deplibs_GCJ=yes
24284
24285      if test "$GCC" = yes; then
24286	case $host_os in aix4.[012]|aix4.[012].*)
24287	# We only want to do this on AIX 4.2 and lower, the check
24288	# below for broken collect2 doesn't work under 4.3+
24289	  collect2name=`${CC} -print-prog-name=collect2`
24290	  if test -f "$collect2name" && \
24291  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
24292	  then
24293  	  # We have reworked collect2
24294  	  hardcode_direct_GCJ=yes
24295	  else
24296  	  # We have old collect2
24297  	  hardcode_direct_GCJ=unsupported
24298  	  # It fails to find uninstalled libraries when the uninstalled
24299  	  # path is not listed in the libpath.  Setting hardcode_minus_L
24300  	  # to unsupported forces relinking
24301  	  hardcode_minus_L_GCJ=yes
24302  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
24303  	  hardcode_libdir_separator_GCJ=
24304	  fi
24305	  ;;
24306	esac
24307	shared_flag='-shared'
24308	if test "$aix_use_runtimelinking" = yes; then
24309	  shared_flag="$shared_flag "'${wl}-G'
24310	fi
24311      else
24312	# not using gcc
24313	if test "$host_cpu" = ia64; then
24314  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24315  	# chokes on -Wl,-G. The following line is correct:
24316	  shared_flag='-G'
24317	else
24318	  if test "$aix_use_runtimelinking" = yes; then
24319	    shared_flag='${wl}-G'
24320	  else
24321	    shared_flag='${wl}-bM:SRE'
24322	  fi
24323	fi
24324      fi
24325
24326      # It seems that -bexpall does not export symbols beginning with
24327      # underscore (_), so it is better to generate a list of symbols to export.
24328      always_export_symbols_GCJ=yes
24329      if test "$aix_use_runtimelinking" = yes; then
24330	# Warning - without using the other runtime loading flags (-brtl),
24331	# -berok will link without error, but may produce a broken library.
24332	allow_undefined_flag_GCJ='-berok'
24333       # Determine the default libpath from the value encoded in an empty executable.
24334       cat >conftest.$ac_ext <<_ACEOF
24335/* confdefs.h.  */
24336_ACEOF
24337cat confdefs.h >>conftest.$ac_ext
24338cat >>conftest.$ac_ext <<_ACEOF
24339/* end confdefs.h.  */
24340
24341int
24342main ()
24343{
24344
24345  ;
24346  return 0;
24347}
24348_ACEOF
24349rm -f conftest.$ac_objext conftest$ac_exeext
24350if { (ac_try="$ac_link"
24351case "(($ac_try" in
24352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24353  *) ac_try_echo=$ac_try;;
24354esac
24355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24356  (eval "$ac_link") 2>conftest.er1
24357  ac_status=$?
24358  grep -v '^ *+' conftest.er1 >conftest.err
24359  rm -f conftest.er1
24360  cat conftest.err >&5
24361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24362  (exit $ac_status); } &&
24363	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24364  { (case "(($ac_try" in
24365  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24366  *) ac_try_echo=$ac_try;;
24367esac
24368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24369  (eval "$ac_try") 2>&5
24370  ac_status=$?
24371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24372  (exit $ac_status); }; } &&
24373	 { ac_try='test -s conftest$ac_exeext'
24374  { (case "(($ac_try" in
24375  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24376  *) ac_try_echo=$ac_try;;
24377esac
24378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24379  (eval "$ac_try") 2>&5
24380  ac_status=$?
24381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24382  (exit $ac_status); }; }; then
24383
24384aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24385}'`
24386# Check for a 64-bit object if we didn't find anything.
24387if 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; }
24388}'`; fi
24389else
24390  echo "$as_me: failed program was:" >&5
24391sed 's/^/| /' conftest.$ac_ext >&5
24392
24393
24394fi
24395
24396rm -f core conftest.err conftest.$ac_objext \
24397      conftest$ac_exeext conftest.$ac_ext
24398if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24399
24400       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24401	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"
24402       else
24403	if test "$host_cpu" = ia64; then
24404	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24405	  allow_undefined_flag_GCJ="-z nodefs"
24406	  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"
24407	else
24408	 # Determine the default libpath from the value encoded in an empty executable.
24409	 cat >conftest.$ac_ext <<_ACEOF
24410/* confdefs.h.  */
24411_ACEOF
24412cat confdefs.h >>conftest.$ac_ext
24413cat >>conftest.$ac_ext <<_ACEOF
24414/* end confdefs.h.  */
24415
24416int
24417main ()
24418{
24419
24420  ;
24421  return 0;
24422}
24423_ACEOF
24424rm -f conftest.$ac_objext conftest$ac_exeext
24425if { (ac_try="$ac_link"
24426case "(($ac_try" in
24427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24428  *) ac_try_echo=$ac_try;;
24429esac
24430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24431  (eval "$ac_link") 2>conftest.er1
24432  ac_status=$?
24433  grep -v '^ *+' conftest.er1 >conftest.err
24434  rm -f conftest.er1
24435  cat conftest.err >&5
24436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24437  (exit $ac_status); } &&
24438	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24439  { (case "(($ac_try" in
24440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24441  *) ac_try_echo=$ac_try;;
24442esac
24443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24444  (eval "$ac_try") 2>&5
24445  ac_status=$?
24446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24447  (exit $ac_status); }; } &&
24448	 { ac_try='test -s conftest$ac_exeext'
24449  { (case "(($ac_try" in
24450  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24451  *) ac_try_echo=$ac_try;;
24452esac
24453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24454  (eval "$ac_try") 2>&5
24455  ac_status=$?
24456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24457  (exit $ac_status); }; }; then
24458
24459aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24460}'`
24461# Check for a 64-bit object if we didn't find anything.
24462if 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; }
24463}'`; fi
24464else
24465  echo "$as_me: failed program was:" >&5
24466sed 's/^/| /' conftest.$ac_ext >&5
24467
24468
24469fi
24470
24471rm -f core conftest.err conftest.$ac_objext \
24472      conftest$ac_exeext conftest.$ac_ext
24473if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24474
24475	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24476	  # Warning - without using the other run time loading flags,
24477	  # -berok will link without error, but may produce a broken library.
24478	  no_undefined_flag_GCJ=' ${wl}-bernotok'
24479	  allow_undefined_flag_GCJ=' ${wl}-berok'
24480	  # Exported symbols can be pulled into shared objects from archives
24481	  whole_archive_flag_spec_GCJ='$convenience'
24482	  archive_cmds_need_lc_GCJ=yes
24483	  # This is similar to how AIX traditionally builds its shared libraries.
24484	  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'
24485	fi
24486      fi
24487      ;;
24488
24489    amigaos*)
24490      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)'
24491      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24492      hardcode_minus_L_GCJ=yes
24493      # see comment about different semantics on the GNU ld section
24494      ld_shlibs_GCJ=no
24495      ;;
24496
24497    bsdi[45]*)
24498      export_dynamic_flag_spec_GCJ=-rdynamic
24499      ;;
24500
24501    cygwin* | mingw* | pw32*)
24502      # When not using gcc, we currently assume that we are using
24503      # Microsoft Visual C++.
24504      # hardcode_libdir_flag_spec is actually meaningless, as there is
24505      # no search path for DLLs.
24506      hardcode_libdir_flag_spec_GCJ=' '
24507      allow_undefined_flag_GCJ=unsupported
24508      # Tell ltmain to make .lib files, not .a files.
24509      libext=lib
24510      # Tell ltmain to make .dll files, not .so files.
24511      shrext_cmds=".dll"
24512      # FIXME: Setting linknames here is a bad hack.
24513      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24514      # The linker will automatically build a .lib file if we build a DLL.
24515      old_archive_From_new_cmds_GCJ='true'
24516      # FIXME: Should let the user specify the lib program.
24517      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24518      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24519      enable_shared_with_static_runtimes_GCJ=yes
24520      ;;
24521
24522    darwin* | rhapsody*)
24523      case $host_os in
24524        rhapsody* | darwin1.[012])
24525         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24526         ;;
24527       *) # Darwin 1.3 on
24528         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24529           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24530         else
24531           case ${MACOSX_DEPLOYMENT_TARGET} in
24532             10.[012])
24533               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24534               ;;
24535             10.*)
24536               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24537               ;;
24538           esac
24539         fi
24540         ;;
24541      esac
24542      archive_cmds_need_lc_GCJ=no
24543      hardcode_direct_GCJ=no
24544      hardcode_automatic_GCJ=yes
24545      hardcode_shlibpath_var_GCJ=unsupported
24546      whole_archive_flag_spec_GCJ=''
24547      link_all_deplibs_GCJ=yes
24548    if test "$GCC" = yes ; then
24549    	output_verbose_link_cmd='echo'
24550        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24551      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24552      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24553      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}'
24554      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}'
24555    else
24556      case $cc_basename in
24557        xlc*)
24558         output_verbose_link_cmd='echo'
24559         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24560         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24561          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24562         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}'
24563          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}'
24564          ;;
24565       *)
24566         ld_shlibs_GCJ=no
24567          ;;
24568      esac
24569    fi
24570      ;;
24571
24572    dgux*)
24573      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24574      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24575      hardcode_shlibpath_var_GCJ=no
24576      ;;
24577
24578    freebsd1*)
24579      ld_shlibs_GCJ=no
24580      ;;
24581
24582    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24583    # support.  Future versions do this automatically, but an explicit c++rt0.o
24584    # does not break anything, and helps significantly (at the cost of a little
24585    # extra space).
24586    freebsd2.2*)
24587      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24588      hardcode_libdir_flag_spec_GCJ='-R$libdir'
24589      hardcode_direct_GCJ=yes
24590      hardcode_shlibpath_var_GCJ=no
24591      ;;
24592
24593    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24594    freebsd2*)
24595      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24596      hardcode_direct_GCJ=yes
24597      hardcode_minus_L_GCJ=yes
24598      hardcode_shlibpath_var_GCJ=no
24599      ;;
24600
24601    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24602    freebsd* | kfreebsd*-gnu | dragonfly*)
24603      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24604      hardcode_libdir_flag_spec_GCJ='-R$libdir'
24605      hardcode_direct_GCJ=yes
24606      hardcode_shlibpath_var_GCJ=no
24607      ;;
24608
24609    hpux9*)
24610      if test "$GCC" = yes; then
24611	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'
24612      else
24613	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'
24614      fi
24615      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24616      hardcode_libdir_separator_GCJ=:
24617      hardcode_direct_GCJ=yes
24618
24619      # hardcode_minus_L: Not really in the search PATH,
24620      # but as the default location of the library.
24621      hardcode_minus_L_GCJ=yes
24622      export_dynamic_flag_spec_GCJ='${wl}-E'
24623      ;;
24624
24625    hpux10*)
24626      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24627	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24628      else
24629	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24630      fi
24631      if test "$with_gnu_ld" = no; then
24632	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24633	hardcode_libdir_separator_GCJ=:
24634
24635	hardcode_direct_GCJ=yes
24636	export_dynamic_flag_spec_GCJ='${wl}-E'
24637
24638	# hardcode_minus_L: Not really in the search PATH,
24639	# but as the default location of the library.
24640	hardcode_minus_L_GCJ=yes
24641      fi
24642      ;;
24643
24644    hpux11*)
24645      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24646	case $host_cpu in
24647	hppa*64*)
24648	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24649	  ;;
24650	ia64*)
24651	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24652	  ;;
24653	*)
24654	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24655	  ;;
24656	esac
24657      else
24658	case $host_cpu in
24659	hppa*64*)
24660	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24661	  ;;
24662	ia64*)
24663	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24664	  ;;
24665	*)
24666	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24667	  ;;
24668	esac
24669      fi
24670      if test "$with_gnu_ld" = no; then
24671	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24672	hardcode_libdir_separator_GCJ=:
24673
24674	case $host_cpu in
24675	hppa*64*|ia64*)
24676	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24677	  hardcode_direct_GCJ=no
24678	  hardcode_shlibpath_var_GCJ=no
24679	  ;;
24680	*)
24681	  hardcode_direct_GCJ=yes
24682	  export_dynamic_flag_spec_GCJ='${wl}-E'
24683
24684	  # hardcode_minus_L: Not really in the search PATH,
24685	  # but as the default location of the library.
24686	  hardcode_minus_L_GCJ=yes
24687	  ;;
24688	esac
24689      fi
24690      ;;
24691
24692    irix5* | irix6* | nonstopux*)
24693      if test "$GCC" = yes; then
24694	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'
24695      else
24696	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'
24697	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24698      fi
24699      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24700      hardcode_libdir_separator_GCJ=:
24701      link_all_deplibs_GCJ=yes
24702      ;;
24703
24704    netbsd*)
24705      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24706	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24707      else
24708	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
24709      fi
24710      hardcode_libdir_flag_spec_GCJ='-R$libdir'
24711      hardcode_direct_GCJ=yes
24712      hardcode_shlibpath_var_GCJ=no
24713      ;;
24714
24715    newsos6)
24716      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24717      hardcode_direct_GCJ=yes
24718      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24719      hardcode_libdir_separator_GCJ=:
24720      hardcode_shlibpath_var_GCJ=no
24721      ;;
24722
24723    openbsd*)
24724      hardcode_direct_GCJ=yes
24725      hardcode_shlibpath_var_GCJ=no
24726      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24727	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24728	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24729	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24730	export_dynamic_flag_spec_GCJ='${wl}-E'
24731      else
24732       case $host_os in
24733	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24734	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24735	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
24736	   ;;
24737	 *)
24738	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24739	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24740	   ;;
24741       esac
24742      fi
24743      ;;
24744
24745    os2*)
24746      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24747      hardcode_minus_L_GCJ=yes
24748      allow_undefined_flag_GCJ=unsupported
24749      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'
24750      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24751      ;;
24752
24753    osf3*)
24754      if test "$GCC" = yes; then
24755	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24756	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'
24757      else
24758	allow_undefined_flag_GCJ=' -expect_unresolved \*'
24759	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'
24760      fi
24761      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24762      hardcode_libdir_separator_GCJ=:
24763      ;;
24764
24765    osf4* | osf5*)	# as osf3* with the addition of -msym flag
24766      if test "$GCC" = yes; then
24767	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24768	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'
24769	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24770      else
24771	allow_undefined_flag_GCJ=' -expect_unresolved \*'
24772	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'
24773	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~
24774	$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'
24775
24776	# Both c and cxx compiler support -rpath directly
24777	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24778      fi
24779      hardcode_libdir_separator_GCJ=:
24780      ;;
24781
24782    solaris*)
24783      no_undefined_flag_GCJ=' -z text'
24784      if test "$GCC" = yes; then
24785	wlarc='${wl}'
24786	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24787	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24788	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24789      else
24790	wlarc=''
24791	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24792	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24793  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24794      fi
24795      hardcode_libdir_flag_spec_GCJ='-R$libdir'
24796      hardcode_shlibpath_var_GCJ=no
24797      case $host_os in
24798      solaris2.[0-5] | solaris2.[0-5].*) ;;
24799      *)
24800 	# The compiler driver will combine linker options so we
24801 	# cannot just pass the convience library names through
24802 	# without $wl, iff we do not link with $LD.
24803 	# Luckily, gcc supports the same syntax we need for Sun Studio.
24804 	# Supported since Solaris 2.6 (maybe 2.5.1?)
24805 	case $wlarc in
24806 	'')
24807 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24808 	*)
24809 	  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' ;;
24810 	esac ;;
24811      esac
24812      link_all_deplibs_GCJ=yes
24813      ;;
24814
24815    sunos4*)
24816      if test "x$host_vendor" = xsequent; then
24817	# Use $CC to link under sequent, because it throws in some extra .o
24818	# files that make .init and .fini sections work.
24819	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24820      else
24821	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24822      fi
24823      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24824      hardcode_direct_GCJ=yes
24825      hardcode_minus_L_GCJ=yes
24826      hardcode_shlibpath_var_GCJ=no
24827      ;;
24828
24829    sysv4)
24830      case $host_vendor in
24831	sni)
24832	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24833	  hardcode_direct_GCJ=yes # is this really true???
24834	;;
24835	siemens)
24836	  ## LD is ld it makes a PLAMLIB
24837	  ## CC just makes a GrossModule.
24838	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24839	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24840	  hardcode_direct_GCJ=no
24841        ;;
24842	motorola)
24843	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24844	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24845	;;
24846      esac
24847      runpath_var='LD_RUN_PATH'
24848      hardcode_shlibpath_var_GCJ=no
24849      ;;
24850
24851    sysv4.3*)
24852      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24853      hardcode_shlibpath_var_GCJ=no
24854      export_dynamic_flag_spec_GCJ='-Bexport'
24855      ;;
24856
24857    sysv4*MP*)
24858      if test -d /usr/nec; then
24859	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24860	hardcode_shlibpath_var_GCJ=no
24861	runpath_var=LD_RUN_PATH
24862	hardcode_runpath_var=yes
24863	ld_shlibs_GCJ=yes
24864      fi
24865      ;;
24866
24867    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24868      no_undefined_flag_GCJ='${wl}-z,text'
24869      archive_cmds_need_lc_GCJ=no
24870      hardcode_shlibpath_var_GCJ=no
24871      runpath_var='LD_RUN_PATH'
24872
24873      if test "$GCC" = yes; then
24874	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24875	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24876      else
24877	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24878	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24879      fi
24880      ;;
24881
24882    sysv5* | sco3.2v5* | sco5v6*)
24883      # Note: We can NOT use -z defs as we might desire, because we do not
24884      # link with -lc, and that would cause any symbols used from libc to
24885      # always be unresolved, which means just about no library would
24886      # ever link correctly.  If we're not using GNU ld we use -z text
24887      # though, which does catch some bad symbols but isn't as heavy-handed
24888      # as -z defs.
24889      no_undefined_flag_GCJ='${wl}-z,text'
24890      allow_undefined_flag_GCJ='${wl}-z,nodefs'
24891      archive_cmds_need_lc_GCJ=no
24892      hardcode_shlibpath_var_GCJ=no
24893      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24894      hardcode_libdir_separator_GCJ=':'
24895      link_all_deplibs_GCJ=yes
24896      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
24897      runpath_var='LD_RUN_PATH'
24898
24899      if test "$GCC" = yes; then
24900	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24901	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24902      else
24903	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24904	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24905      fi
24906      ;;
24907
24908    uts4*)
24909      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24910      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24911      hardcode_shlibpath_var_GCJ=no
24912      ;;
24913
24914    *)
24915      ld_shlibs_GCJ=no
24916      ;;
24917    esac
24918  fi
24919
24920{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24921echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
24922test "$ld_shlibs_GCJ" = no && can_build_shared=no
24923
24924#
24925# Do we need to explicitly link libc?
24926#
24927case "x$archive_cmds_need_lc_GCJ" in
24928x|xyes)
24929  # Assume -lc should be added
24930  archive_cmds_need_lc_GCJ=yes
24931
24932  if test "$enable_shared" = yes && test "$GCC" = yes; then
24933    case $archive_cmds_GCJ in
24934    *'~'*)
24935      # FIXME: we may have to deal with multi-command sequences.
24936      ;;
24937    '$CC '*)
24938      # Test whether the compiler implicitly links with -lc since on some
24939      # systems, -lgcc has to come before -lc. If gcc already passes -lc
24940      # to ld, don't add -lc before -lgcc.
24941      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24942echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
24943      $rm conftest*
24944      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24945
24946      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24947  (eval $ac_compile) 2>&5
24948  ac_status=$?
24949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24950  (exit $ac_status); } 2>conftest.err; then
24951        soname=conftest
24952        lib=conftest
24953        libobjs=conftest.$ac_objext
24954        deplibs=
24955        wl=$lt_prog_compiler_wl_GCJ
24956	pic_flag=$lt_prog_compiler_pic_GCJ
24957        compiler_flags=-v
24958        linker_flags=-v
24959        verstring=
24960        output_objdir=.
24961        libname=conftest
24962        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24963        allow_undefined_flag_GCJ=
24964        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24965  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24966  ac_status=$?
24967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24968  (exit $ac_status); }
24969        then
24970	  archive_cmds_need_lc_GCJ=no
24971        else
24972	  archive_cmds_need_lc_GCJ=yes
24973        fi
24974        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24975      else
24976        cat conftest.err 1>&5
24977      fi
24978      $rm conftest*
24979      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24980echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
24981      ;;
24982    esac
24983  fi
24984  ;;
24985esac
24986
24987{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24988echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
24989library_names_spec=
24990libname_spec='lib$name'
24991soname_spec=
24992shrext_cmds=".so"
24993postinstall_cmds=
24994postuninstall_cmds=
24995finish_cmds=
24996finish_eval=
24997shlibpath_var=
24998shlibpath_overrides_runpath=unknown
24999version_type=none
25000dynamic_linker="$host_os ld.so"
25001sys_lib_dlsearch_path_spec="/lib /usr/lib"
25002if test "$GCC" = yes; then
25003  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25004  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25005    # if the path contains ";" then we assume it to be the separator
25006    # otherwise default to the standard path separator (i.e. ":") - it is
25007    # assumed that no part of a normal pathname contains ";" but that should
25008    # okay in the real world where ";" in dirpaths is itself problematic.
25009    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25010  else
25011    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25012  fi
25013else
25014  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25015fi
25016need_lib_prefix=unknown
25017hardcode_into_libs=no
25018
25019# when you set need_version to no, make sure it does not cause -set_version
25020# flags to be left without arguments
25021need_version=unknown
25022
25023case $host_os in
25024aix3*)
25025  version_type=linux
25026  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25027  shlibpath_var=LIBPATH
25028
25029  # AIX 3 has no versioning support, so we append a major version to the name.
25030  soname_spec='${libname}${release}${shared_ext}$major'
25031  ;;
25032
25033aix4* | aix5*)
25034  version_type=linux
25035  need_lib_prefix=no
25036  need_version=no
25037  hardcode_into_libs=yes
25038  if test "$host_cpu" = ia64; then
25039    # AIX 5 supports IA64
25040    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25041    shlibpath_var=LD_LIBRARY_PATH
25042  else
25043    # With GCC up to 2.95.x, collect2 would create an import file
25044    # for dependence libraries.  The import file would start with
25045    # the line `#! .'.  This would cause the generated library to
25046    # depend on `.', always an invalid library.  This was fixed in
25047    # development snapshots of GCC prior to 3.0.
25048    case $host_os in
25049      aix4 | aix4.[01] | aix4.[01].*)
25050      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25051	   echo ' yes '
25052	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25053	:
25054      else
25055	can_build_shared=no
25056      fi
25057      ;;
25058    esac
25059    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25060    # soname into executable. Probably we can add versioning support to
25061    # collect2, so additional links can be useful in future.
25062    if test "$aix_use_runtimelinking" = yes; then
25063      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25064      # instead of lib<name>.a to let people know that these are not
25065      # typical AIX shared libraries.
25066      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25067    else
25068      # We preserve .a as extension for shared libraries through AIX4.2
25069      # and later when we are not doing run time linking.
25070      library_names_spec='${libname}${release}.a $libname.a'
25071      soname_spec='${libname}${release}${shared_ext}$major'
25072    fi
25073    shlibpath_var=LIBPATH
25074  fi
25075  ;;
25076
25077amigaos*)
25078  library_names_spec='$libname.ixlibrary $libname.a'
25079  # Create ${libname}_ixlibrary.a entries in /sys/libs.
25080  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'
25081  ;;
25082
25083beos*)
25084  library_names_spec='${libname}${shared_ext}'
25085  dynamic_linker="$host_os ld.so"
25086  shlibpath_var=LIBRARY_PATH
25087  ;;
25088
25089bsdi[45]*)
25090  version_type=linux
25091  need_version=no
25092  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25093  soname_spec='${libname}${release}${shared_ext}$major'
25094  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25095  shlibpath_var=LD_LIBRARY_PATH
25096  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25097  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25098  # the default ld.so.conf also contains /usr/contrib/lib and
25099  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25100  # libtool to hard-code these into programs
25101  ;;
25102
25103cygwin* | mingw* | pw32*)
25104  version_type=windows
25105  shrext_cmds=".dll"
25106  need_version=no
25107  need_lib_prefix=no
25108
25109  case $GCC,$host_os in
25110  yes,cygwin* | yes,mingw* | yes,pw32*)
25111    library_names_spec='$libname.dll.a'
25112    # DLL is installed to $(libdir)/../bin by postinstall_cmds
25113    postinstall_cmds='base_file=`basename \${file}`~
25114      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25115      dldir=$destdir/`dirname \$dlpath`~
25116      test -d \$dldir || mkdir -p \$dldir~
25117      $install_prog $dir/$dlname \$dldir/$dlname~
25118      chmod a+x \$dldir/$dlname'
25119    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25120      dlpath=$dir/\$dldll~
25121       $rm \$dlpath'
25122    shlibpath_overrides_runpath=yes
25123
25124    case $host_os in
25125    cygwin*)
25126      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25127      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25128      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25129      ;;
25130    mingw*)
25131      # MinGW DLLs use traditional 'lib' prefix
25132      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25133      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25134      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25135        # It is most probably a Windows format PATH printed by
25136        # mingw gcc, but we are running on Cygwin. Gcc prints its search
25137        # path with ; separators, and with drive letters. We can handle the
25138        # drive letters (cygwin fileutils understands them), so leave them,
25139        # especially as we might pass files found there to a mingw objdump,
25140        # which wouldn't understand a cygwinified path. Ahh.
25141        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25142      else
25143        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25144      fi
25145      ;;
25146    pw32*)
25147      # pw32 DLLs use 'pw' prefix rather than 'lib'
25148      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25149      ;;
25150    esac
25151    ;;
25152
25153  *)
25154    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25155    ;;
25156  esac
25157  dynamic_linker='Win32 ld.exe'
25158  # FIXME: first we should search . and the directory the executable is in
25159  shlibpath_var=PATH
25160  ;;
25161
25162darwin* | rhapsody*)
25163  dynamic_linker="$host_os dyld"
25164  version_type=darwin
25165  need_lib_prefix=no
25166  need_version=no
25167  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25168  soname_spec='${libname}${release}${major}$shared_ext'
25169  shlibpath_overrides_runpath=yes
25170  shlibpath_var=DYLD_LIBRARY_PATH
25171  shrext_cmds='.dylib'
25172  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25173  if test "$GCC" = yes; then
25174    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"`
25175  else
25176    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25177  fi
25178  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25179  ;;
25180
25181dgux*)
25182  version_type=linux
25183  need_lib_prefix=no
25184  need_version=no
25185  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25186  soname_spec='${libname}${release}${shared_ext}$major'
25187  shlibpath_var=LD_LIBRARY_PATH
25188  ;;
25189
25190freebsd1*)
25191  dynamic_linker=no
25192  ;;
25193
25194kfreebsd*-gnu)
25195  version_type=linux
25196  need_lib_prefix=no
25197  need_version=no
25198  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25199  soname_spec='${libname}${release}${shared_ext}$major'
25200  shlibpath_var=LD_LIBRARY_PATH
25201  shlibpath_overrides_runpath=no
25202  hardcode_into_libs=yes
25203  dynamic_linker='GNU ld.so'
25204  ;;
25205
25206freebsd* | dragonfly*)
25207  # DragonFly does not have aout.  When/if they implement a new
25208  # versioning mechanism, adjust this.
25209  if test -x /usr/bin/objformat; then
25210    objformat=`/usr/bin/objformat`
25211  else
25212    case $host_os in
25213    freebsd[123]*) objformat=aout ;;
25214    *) objformat=elf ;;
25215    esac
25216  fi
25217  version_type=freebsd-$objformat
25218  case $version_type in
25219    freebsd-elf*)
25220      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25221      need_version=no
25222      need_lib_prefix=no
25223      ;;
25224    freebsd-*)
25225      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25226      need_version=yes
25227      ;;
25228  esac
25229  shlibpath_var=LD_LIBRARY_PATH
25230  case $host_os in
25231  freebsd2*)
25232    shlibpath_overrides_runpath=yes
25233    ;;
25234  freebsd3.[01]* | freebsdelf3.[01]*)
25235    shlibpath_overrides_runpath=yes
25236    hardcode_into_libs=yes
25237    ;;
25238  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25239  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25240    shlibpath_overrides_runpath=no
25241    hardcode_into_libs=yes
25242    ;;
25243  freebsd*) # from 4.6 on
25244    shlibpath_overrides_runpath=yes
25245    hardcode_into_libs=yes
25246    ;;
25247  esac
25248  ;;
25249
25250gnu*)
25251  version_type=linux
25252  need_lib_prefix=no
25253  need_version=no
25254  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25255  soname_spec='${libname}${release}${shared_ext}$major'
25256  shlibpath_var=LD_LIBRARY_PATH
25257  hardcode_into_libs=yes
25258  ;;
25259
25260hpux9* | hpux10* | hpux11*)
25261  # Give a soname corresponding to the major version so that dld.sl refuses to
25262  # link against other versions.
25263  version_type=sunos
25264  need_lib_prefix=no
25265  need_version=no
25266  case $host_cpu in
25267  ia64*)
25268    shrext_cmds='.so'
25269    hardcode_into_libs=yes
25270    dynamic_linker="$host_os dld.so"
25271    shlibpath_var=LD_LIBRARY_PATH
25272    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25273    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25274    soname_spec='${libname}${release}${shared_ext}$major'
25275    if test "X$HPUX_IA64_MODE" = X32; then
25276      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25277    else
25278      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25279    fi
25280    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25281    ;;
25282   hppa*64*)
25283     shrext_cmds='.sl'
25284     hardcode_into_libs=yes
25285     dynamic_linker="$host_os dld.sl"
25286     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25287     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25288     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25289     soname_spec='${libname}${release}${shared_ext}$major'
25290     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25291     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25292     ;;
25293   *)
25294    shrext_cmds='.sl'
25295    dynamic_linker="$host_os dld.sl"
25296    shlibpath_var=SHLIB_PATH
25297    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25298    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25299    soname_spec='${libname}${release}${shared_ext}$major'
25300    ;;
25301  esac
25302  # HP-UX runs *really* slowly unless shared libraries are mode 555.
25303  postinstall_cmds='chmod 555 $lib'
25304  ;;
25305
25306interix3*)
25307  version_type=linux
25308  need_lib_prefix=no
25309  need_version=no
25310  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25311  soname_spec='${libname}${release}${shared_ext}$major'
25312  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25313  shlibpath_var=LD_LIBRARY_PATH
25314  shlibpath_overrides_runpath=no
25315  hardcode_into_libs=yes
25316  ;;
25317
25318irix5* | irix6* | nonstopux*)
25319  case $host_os in
25320    nonstopux*) version_type=nonstopux ;;
25321    *)
25322	if test "$lt_cv_prog_gnu_ld" = yes; then
25323		version_type=linux
25324	else
25325		version_type=irix
25326	fi ;;
25327  esac
25328  need_lib_prefix=no
25329  need_version=no
25330  soname_spec='${libname}${release}${shared_ext}$major'
25331  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25332  case $host_os in
25333  irix5* | nonstopux*)
25334    libsuff= shlibsuff=
25335    ;;
25336  *)
25337    case $LD in # libtool.m4 will add one of these switches to LD
25338    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25339      libsuff= shlibsuff= libmagic=32-bit;;
25340    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25341      libsuff=32 shlibsuff=N32 libmagic=N32;;
25342    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25343      libsuff=64 shlibsuff=64 libmagic=64-bit;;
25344    *) libsuff= shlibsuff= libmagic=never-match;;
25345    esac
25346    ;;
25347  esac
25348  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25349  shlibpath_overrides_runpath=no
25350  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25351  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25352  hardcode_into_libs=yes
25353  ;;
25354
25355# No shared lib support for Linux oldld, aout, or coff.
25356linux*oldld* | linux*aout* | linux*coff*)
25357  dynamic_linker=no
25358  ;;
25359
25360# This must be Linux ELF.
25361linux*)
25362  version_type=linux
25363  need_lib_prefix=no
25364  need_version=no
25365  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25366  soname_spec='${libname}${release}${shared_ext}$major'
25367  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25368  shlibpath_var=LD_LIBRARY_PATH
25369  shlibpath_overrides_runpath=no
25370  # This implies no fast_install, which is unacceptable.
25371  # Some rework will be needed to allow for fast_install
25372  # before this can be enabled.
25373  hardcode_into_libs=yes
25374
25375  # Append ld.so.conf contents to the search path
25376  if test -f /etc/ld.so.conf; then
25377    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' ' '`
25378    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25379  fi
25380
25381  # We used to test for /lib/ld.so.1 and disable shared libraries on
25382  # powerpc, because MkLinux only supported shared libraries with the
25383  # GNU dynamic linker.  Since this was broken with cross compilers,
25384  # most powerpc-linux boxes support dynamic linking these days and
25385  # people can always --disable-shared, the test was removed, and we
25386  # assume the GNU/Linux dynamic linker is in use.
25387  dynamic_linker='GNU/Linux ld.so'
25388  ;;
25389
25390knetbsd*-gnu)
25391  version_type=linux
25392  need_lib_prefix=no
25393  need_version=no
25394  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25395  soname_spec='${libname}${release}${shared_ext}$major'
25396  shlibpath_var=LD_LIBRARY_PATH
25397  shlibpath_overrides_runpath=no
25398  hardcode_into_libs=yes
25399  dynamic_linker='GNU ld.so'
25400  ;;
25401
25402netbsd*)
25403  version_type=sunos
25404  need_lib_prefix=no
25405  need_version=no
25406  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25407    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25408    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25409    dynamic_linker='NetBSD (a.out) ld.so'
25410  else
25411    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25412    soname_spec='${libname}${release}${shared_ext}$major'
25413    dynamic_linker='NetBSD ld.elf_so'
25414  fi
25415  shlibpath_var=LD_LIBRARY_PATH
25416  shlibpath_overrides_runpath=yes
25417  hardcode_into_libs=yes
25418  ;;
25419
25420newsos6)
25421  version_type=linux
25422  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25423  shlibpath_var=LD_LIBRARY_PATH
25424  shlibpath_overrides_runpath=yes
25425  ;;
25426
25427nto-qnx*)
25428  version_type=linux
25429  need_lib_prefix=no
25430  need_version=no
25431  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25432  soname_spec='${libname}${release}${shared_ext}$major'
25433  shlibpath_var=LD_LIBRARY_PATH
25434  shlibpath_overrides_runpath=yes
25435  ;;
25436
25437openbsd*)
25438  version_type=sunos
25439  sys_lib_dlsearch_path_spec="/usr/lib"
25440  need_lib_prefix=no
25441  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25442  case $host_os in
25443    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25444    *)                         need_version=no  ;;
25445  esac
25446  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25447  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25448  shlibpath_var=LD_LIBRARY_PATH
25449  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25450    case $host_os in
25451      openbsd2.[89] | openbsd2.[89].*)
25452	shlibpath_overrides_runpath=no
25453	;;
25454      *)
25455	shlibpath_overrides_runpath=yes
25456	;;
25457      esac
25458  else
25459    shlibpath_overrides_runpath=yes
25460  fi
25461  ;;
25462
25463os2*)
25464  libname_spec='$name'
25465  shrext_cmds=".dll"
25466  need_lib_prefix=no
25467  library_names_spec='$libname${shared_ext} $libname.a'
25468  dynamic_linker='OS/2 ld.exe'
25469  shlibpath_var=LIBPATH
25470  ;;
25471
25472osf3* | osf4* | osf5*)
25473  version_type=osf
25474  need_lib_prefix=no
25475  need_version=no
25476  soname_spec='${libname}${release}${shared_ext}$major'
25477  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25478  shlibpath_var=LD_LIBRARY_PATH
25479  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25480  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25481  ;;
25482
25483solaris*)
25484  version_type=linux
25485  need_lib_prefix=no
25486  need_version=no
25487  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25488  soname_spec='${libname}${release}${shared_ext}$major'
25489  shlibpath_var=LD_LIBRARY_PATH
25490  shlibpath_overrides_runpath=yes
25491  hardcode_into_libs=yes
25492  # ldd complains unless libraries are executable
25493  postinstall_cmds='chmod +x $lib'
25494  ;;
25495
25496sunos4*)
25497  version_type=sunos
25498  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25499  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25500  shlibpath_var=LD_LIBRARY_PATH
25501  shlibpath_overrides_runpath=yes
25502  if test "$with_gnu_ld" = yes; then
25503    need_lib_prefix=no
25504  fi
25505  need_version=yes
25506  ;;
25507
25508sysv4 | sysv4.3*)
25509  version_type=linux
25510  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25511  soname_spec='${libname}${release}${shared_ext}$major'
25512  shlibpath_var=LD_LIBRARY_PATH
25513  case $host_vendor in
25514    sni)
25515      shlibpath_overrides_runpath=no
25516      need_lib_prefix=no
25517      export_dynamic_flag_spec='${wl}-Blargedynsym'
25518      runpath_var=LD_RUN_PATH
25519      ;;
25520    siemens)
25521      need_lib_prefix=no
25522      ;;
25523    motorola)
25524      need_lib_prefix=no
25525      need_version=no
25526      shlibpath_overrides_runpath=no
25527      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25528      ;;
25529  esac
25530  ;;
25531
25532sysv4*MP*)
25533  if test -d /usr/nec ;then
25534    version_type=linux
25535    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25536    soname_spec='$libname${shared_ext}.$major'
25537    shlibpath_var=LD_LIBRARY_PATH
25538  fi
25539  ;;
25540
25541sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25542  version_type=freebsd-elf
25543  need_lib_prefix=no
25544  need_version=no
25545  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25546  soname_spec='${libname}${release}${shared_ext}$major'
25547  shlibpath_var=LD_LIBRARY_PATH
25548  hardcode_into_libs=yes
25549  if test "$with_gnu_ld" = yes; then
25550    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25551    shlibpath_overrides_runpath=no
25552  else
25553    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25554    shlibpath_overrides_runpath=yes
25555    case $host_os in
25556      sco3.2v5*)
25557        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25558	;;
25559    esac
25560  fi
25561  sys_lib_dlsearch_path_spec='/usr/lib'
25562  ;;
25563
25564uts4*)
25565  version_type=linux
25566  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25567  soname_spec='${libname}${release}${shared_ext}$major'
25568  shlibpath_var=LD_LIBRARY_PATH
25569  ;;
25570
25571*)
25572  dynamic_linker=no
25573  ;;
25574esac
25575{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25576echo "${ECHO_T}$dynamic_linker" >&6; }
25577test "$dynamic_linker" = no && can_build_shared=no
25578
25579variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25580if test "$GCC" = yes; then
25581  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25582fi
25583
25584{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25585echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25586hardcode_action_GCJ=
25587if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25588   test -n "$runpath_var_GCJ" || \
25589   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25590
25591  # We can hardcode non-existant directories.
25592  if test "$hardcode_direct_GCJ" != no &&
25593     # If the only mechanism to avoid hardcoding is shlibpath_var, we
25594     # have to relink, otherwise we might link with an installed library
25595     # when we should be linking with a yet-to-be-installed one
25596     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25597     test "$hardcode_minus_L_GCJ" != no; then
25598    # Linking always hardcodes the temporary library directory.
25599    hardcode_action_GCJ=relink
25600  else
25601    # We can link without hardcoding, and we can hardcode nonexisting dirs.
25602    hardcode_action_GCJ=immediate
25603  fi
25604else
25605  # We cannot hardcode anything, or else we can only hardcode existing
25606  # directories.
25607  hardcode_action_GCJ=unsupported
25608fi
25609{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25610echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25611
25612if test "$hardcode_action_GCJ" = relink; then
25613  # Fast installation is not supported
25614  enable_fast_install=no
25615elif test "$shlibpath_overrides_runpath" = yes ||
25616     test "$enable_shared" = no; then
25617  # Fast installation is not necessary
25618  enable_fast_install=needless
25619fi
25620
25621
25622# The else clause should only fire when bootstrapping the
25623# libtool distribution, otherwise you forgot to ship ltmain.sh
25624# with your package, and you will get complaints that there are
25625# no rules to generate ltmain.sh.
25626if test -f "$ltmain"; then
25627  # See if we are running on zsh, and set the options which allow our commands through
25628  # without removal of \ escapes.
25629  if test -n "${ZSH_VERSION+set}" ; then
25630    setopt NO_GLOB_SUBST
25631  fi
25632  # Now quote all the things that may contain metacharacters while being
25633  # careful not to overquote the AC_SUBSTed values.  We take copies of the
25634  # variables and quote the copies for generation of the libtool script.
25635  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25636    SED SHELL STRIP \
25637    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25638    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25639    deplibs_check_method reload_flag reload_cmds need_locks \
25640    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25641    lt_cv_sys_global_symbol_to_c_name_address \
25642    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25643    old_postinstall_cmds old_postuninstall_cmds \
25644    compiler_GCJ \
25645    CC_GCJ \
25646    LD_GCJ \
25647    lt_prog_compiler_wl_GCJ \
25648    lt_prog_compiler_pic_GCJ \
25649    lt_prog_compiler_static_GCJ \
25650    lt_prog_compiler_no_builtin_flag_GCJ \
25651    export_dynamic_flag_spec_GCJ \
25652    thread_safe_flag_spec_GCJ \
25653    whole_archive_flag_spec_GCJ \
25654    enable_shared_with_static_runtimes_GCJ \
25655    old_archive_cmds_GCJ \
25656    old_archive_from_new_cmds_GCJ \
25657    predep_objects_GCJ \
25658    postdep_objects_GCJ \
25659    predeps_GCJ \
25660    postdeps_GCJ \
25661    compiler_lib_search_path_GCJ \
25662    archive_cmds_GCJ \
25663    archive_expsym_cmds_GCJ \
25664    postinstall_cmds_GCJ \
25665    postuninstall_cmds_GCJ \
25666    old_archive_from_expsyms_cmds_GCJ \
25667    allow_undefined_flag_GCJ \
25668    no_undefined_flag_GCJ \
25669    export_symbols_cmds_GCJ \
25670    hardcode_libdir_flag_spec_GCJ \
25671    hardcode_libdir_flag_spec_ld_GCJ \
25672    hardcode_libdir_separator_GCJ \
25673    hardcode_automatic_GCJ \
25674    module_cmds_GCJ \
25675    module_expsym_cmds_GCJ \
25676    lt_cv_prog_compiler_c_o_GCJ \
25677    exclude_expsyms_GCJ \
25678    include_expsyms_GCJ; do
25679
25680    case $var in
25681    old_archive_cmds_GCJ | \
25682    old_archive_from_new_cmds_GCJ | \
25683    archive_cmds_GCJ | \
25684    archive_expsym_cmds_GCJ | \
25685    module_cmds_GCJ | \
25686    module_expsym_cmds_GCJ | \
25687    old_archive_from_expsyms_cmds_GCJ | \
25688    export_symbols_cmds_GCJ | \
25689    extract_expsyms_cmds | reload_cmds | finish_cmds | \
25690    postinstall_cmds | postuninstall_cmds | \
25691    old_postinstall_cmds | old_postuninstall_cmds | \
25692    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25693      # Double-quote double-evaled strings.
25694      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25695      ;;
25696    *)
25697      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25698      ;;
25699    esac
25700  done
25701
25702  case $lt_echo in
25703  *'\$0 --fallback-echo"')
25704    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25705    ;;
25706  esac
25707
25708cfgfile="$ofile"
25709
25710  cat <<__EOF__ >> "$cfgfile"
25711# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25712
25713# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25714
25715# Shell to use when invoking shell scripts.
25716SHELL=$lt_SHELL
25717
25718# Whether or not to build shared libraries.
25719build_libtool_libs=$enable_shared
25720
25721# Whether or not to build static libraries.
25722build_old_libs=$enable_static
25723
25724# Whether or not to add -lc for building shared libraries.
25725build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25726
25727# Whether or not to disallow shared libs when runtime libs are static
25728allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25729
25730# Whether or not to optimize for fast installation.
25731fast_install=$enable_fast_install
25732
25733# The host system.
25734host_alias=$host_alias
25735host=$host
25736host_os=$host_os
25737
25738# The build system.
25739build_alias=$build_alias
25740build=$build
25741build_os=$build_os
25742
25743# An echo program that does not interpret backslashes.
25744echo=$lt_echo
25745
25746# The archiver.
25747AR=$lt_AR
25748AR_FLAGS=$lt_AR_FLAGS
25749
25750# A C compiler.
25751LTCC=$lt_LTCC
25752
25753# LTCC compiler flags.
25754LTCFLAGS=$lt_LTCFLAGS
25755
25756# A language-specific compiler.
25757CC=$lt_compiler_GCJ
25758
25759# Is the compiler the GNU C compiler?
25760with_gcc=$GCC_GCJ
25761
25762# An ERE matcher.
25763EGREP=$lt_EGREP
25764
25765# The linker used to build libraries.
25766LD=$lt_LD_GCJ
25767
25768# Whether we need hard or soft links.
25769LN_S=$lt_LN_S
25770
25771# A BSD-compatible nm program.
25772NM=$lt_NM
25773
25774# A symbol stripping program
25775STRIP=$lt_STRIP
25776
25777# Used to examine libraries when file_magic_cmd begins "file"
25778MAGIC_CMD=$MAGIC_CMD
25779
25780# Used on cygwin: DLL creation program.
25781DLLTOOL="$DLLTOOL"
25782
25783# Used on cygwin: object dumper.
25784OBJDUMP="$OBJDUMP"
25785
25786# Used on cygwin: assembler.
25787AS="$AS"
25788
25789# The name of the directory that contains temporary libtool files.
25790objdir=$objdir
25791
25792# How to create reloadable object files.
25793reload_flag=$lt_reload_flag
25794reload_cmds=$lt_reload_cmds
25795
25796# How to pass a linker flag through the compiler.
25797wl=$lt_lt_prog_compiler_wl_GCJ
25798
25799# Object file suffix (normally "o").
25800objext="$ac_objext"
25801
25802# Old archive suffix (normally "a").
25803libext="$libext"
25804
25805# Shared library suffix (normally ".so").
25806shrext_cmds='$shrext_cmds'
25807
25808# Executable file suffix (normally "").
25809exeext="$exeext"
25810
25811# Additional compiler flags for building library objects.
25812pic_flag=$lt_lt_prog_compiler_pic_GCJ
25813pic_mode=$pic_mode
25814
25815# What is the maximum length of a command?
25816max_cmd_len=$lt_cv_sys_max_cmd_len
25817
25818# Does compiler simultaneously support -c and -o options?
25819compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25820
25821# Must we lock files when doing compilation?
25822need_locks=$lt_need_locks
25823
25824# Do we need the lib prefix for modules?
25825need_lib_prefix=$need_lib_prefix
25826
25827# Do we need a version for libraries?
25828need_version=$need_version
25829
25830# Whether dlopen is supported.
25831dlopen_support=$enable_dlopen
25832
25833# Whether dlopen of programs is supported.
25834dlopen_self=$enable_dlopen_self
25835
25836# Whether dlopen of statically linked programs is supported.
25837dlopen_self_static=$enable_dlopen_self_static
25838
25839# Compiler flag to prevent dynamic linking.
25840link_static_flag=$lt_lt_prog_compiler_static_GCJ
25841
25842# Compiler flag to turn off builtin functions.
25843no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25844
25845# Compiler flag to allow reflexive dlopens.
25846export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25847
25848# Compiler flag to generate shared objects directly from archives.
25849whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25850
25851# Compiler flag to generate thread-safe objects.
25852thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25853
25854# Library versioning type.
25855version_type=$version_type
25856
25857# Format of library name prefix.
25858libname_spec=$lt_libname_spec
25859
25860# List of archive names.  First name is the real one, the rest are links.
25861# The last name is the one that the linker finds with -lNAME.
25862library_names_spec=$lt_library_names_spec
25863
25864# The coded name of the library, if different from the real name.
25865soname_spec=$lt_soname_spec
25866
25867# Commands used to build and install an old-style archive.
25868RANLIB=$lt_RANLIB
25869old_archive_cmds=$lt_old_archive_cmds_GCJ
25870old_postinstall_cmds=$lt_old_postinstall_cmds
25871old_postuninstall_cmds=$lt_old_postuninstall_cmds
25872
25873# Create an old-style archive from a shared archive.
25874old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25875
25876# Create a temporary old-style archive to link instead of a shared archive.
25877old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25878
25879# Commands used to build and install a shared archive.
25880archive_cmds=$lt_archive_cmds_GCJ
25881archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25882postinstall_cmds=$lt_postinstall_cmds
25883postuninstall_cmds=$lt_postuninstall_cmds
25884
25885# Commands used to build a loadable module (assumed same as above if empty)
25886module_cmds=$lt_module_cmds_GCJ
25887module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25888
25889# Commands to strip libraries.
25890old_striplib=$lt_old_striplib
25891striplib=$lt_striplib
25892
25893# Dependencies to place before the objects being linked to create a
25894# shared library.
25895predep_objects=$lt_predep_objects_GCJ
25896
25897# Dependencies to place after the objects being linked to create a
25898# shared library.
25899postdep_objects=$lt_postdep_objects_GCJ
25900
25901# Dependencies to place before the objects being linked to create a
25902# shared library.
25903predeps=$lt_predeps_GCJ
25904
25905# Dependencies to place after the objects being linked to create a
25906# shared library.
25907postdeps=$lt_postdeps_GCJ
25908
25909# The library search path used internally by the compiler when linking
25910# a shared library.
25911compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25912
25913# Method to check whether dependent libraries are shared objects.
25914deplibs_check_method=$lt_deplibs_check_method
25915
25916# Command to use when deplibs_check_method == file_magic.
25917file_magic_cmd=$lt_file_magic_cmd
25918
25919# Flag that allows shared libraries with undefined symbols to be built.
25920allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25921
25922# Flag that forces no undefined symbols.
25923no_undefined_flag=$lt_no_undefined_flag_GCJ
25924
25925# Commands used to finish a libtool library installation in a directory.
25926finish_cmds=$lt_finish_cmds
25927
25928# Same as above, but a single script fragment to be evaled but not shown.
25929finish_eval=$lt_finish_eval
25930
25931# Take the output of nm and produce a listing of raw symbols and C names.
25932global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25933
25934# Transform the output of nm in a proper C declaration
25935global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25936
25937# Transform the output of nm in a C name address pair
25938global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25939
25940# This is the shared library runtime path variable.
25941runpath_var=$runpath_var
25942
25943# This is the shared library path variable.
25944shlibpath_var=$shlibpath_var
25945
25946# Is shlibpath searched before the hard-coded library search path?
25947shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25948
25949# How to hardcode a shared library path into an executable.
25950hardcode_action=$hardcode_action_GCJ
25951
25952# Whether we should hardcode library paths into libraries.
25953hardcode_into_libs=$hardcode_into_libs
25954
25955# Flag to hardcode \$libdir into a binary during linking.
25956# This must work even if \$libdir does not exist.
25957hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25958
25959# If ld is used when linking, flag to hardcode \$libdir into
25960# a binary during linking. This must work even if \$libdir does
25961# not exist.
25962hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25963
25964# Whether we need a single -rpath flag with a separated argument.
25965hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25966
25967# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25968# resulting binary.
25969hardcode_direct=$hardcode_direct_GCJ
25970
25971# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25972# resulting binary.
25973hardcode_minus_L=$hardcode_minus_L_GCJ
25974
25975# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25976# the resulting binary.
25977hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25978
25979# Set to yes if building a shared library automatically hardcodes DIR into the library
25980# and all subsequent libraries and executables linked against it.
25981hardcode_automatic=$hardcode_automatic_GCJ
25982
25983# Variables whose values should be saved in libtool wrapper scripts and
25984# restored at relink time.
25985variables_saved_for_relink="$variables_saved_for_relink"
25986
25987# Whether libtool must link a program against all its dependency libraries.
25988link_all_deplibs=$link_all_deplibs_GCJ
25989
25990# Compile-time system search path for libraries
25991sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25992
25993# Run-time system search path for libraries
25994sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25995
25996# Fix the shell variable \$srcfile for the compiler.
25997fix_srcfile_path="$fix_srcfile_path_GCJ"
25998
25999# Set to yes if exported symbols are required.
26000always_export_symbols=$always_export_symbols_GCJ
26001
26002# The commands to list exported symbols.
26003export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26004
26005# The commands to extract the exported symbol list from a shared archive.
26006extract_expsyms_cmds=$lt_extract_expsyms_cmds
26007
26008# Symbols that should not be listed in the preloaded symbols.
26009exclude_expsyms=$lt_exclude_expsyms_GCJ
26010
26011# Symbols that must always be exported.
26012include_expsyms=$lt_include_expsyms_GCJ
26013
26014# ### END LIBTOOL TAG CONFIG: $tagname
26015
26016__EOF__
26017
26018
26019else
26020  # If there is no Makefile yet, we rely on a make rule to execute
26021  # `config.status --recheck' to rerun these tests and create the
26022  # libtool script then.
26023  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26024  if test -f "$ltmain_in"; then
26025    test -f Makefile && make "$ltmain"
26026  fi
26027fi
26028
26029
26030ac_ext=c
26031ac_cpp='$CPP $CPPFLAGS'
26032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26034ac_compiler_gnu=$ac_cv_c_compiler_gnu
26035
26036CC="$lt_save_CC"
26037
26038	else
26039	  tagname=""
26040	fi
26041	;;
26042
26043      RC)
26044	ac_ext=c
26045ac_cpp='$CPP $CPPFLAGS'
26046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26048ac_compiler_gnu=$ac_cv_c_compiler_gnu
26049
26050
26051# Source file extension for RC test sources.
26052ac_ext=rc
26053
26054# Object file extension for compiled RC test sources.
26055objext=o
26056objext_RC=$objext
26057
26058# Code to be used in simple compile tests
26059lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26060
26061# Code to be used in simple link tests
26062lt_simple_link_test_code="$lt_simple_compile_test_code"
26063
26064# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26065
26066# If no C compiler was specified, use CC.
26067LTCC=${LTCC-"$CC"}
26068
26069# If no C compiler flags were specified, use CFLAGS.
26070LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26071
26072# Allow CC to be a program name with arguments.
26073compiler=$CC
26074
26075
26076# save warnings/boilerplate of simple test code
26077ac_outfile=conftest.$ac_objext
26078printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26079eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26080_lt_compiler_boilerplate=`cat conftest.err`
26081$rm conftest*
26082
26083ac_outfile=conftest.$ac_objext
26084printf "$lt_simple_link_test_code" >conftest.$ac_ext
26085eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26086_lt_linker_boilerplate=`cat conftest.err`
26087$rm conftest*
26088
26089
26090# Allow CC to be a program name with arguments.
26091lt_save_CC="$CC"
26092CC=${RC-"windres"}
26093compiler=$CC
26094compiler_RC=$CC
26095for cc_temp in $compiler""; do
26096  case $cc_temp in
26097    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26098    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26099    \-*) ;;
26100    *) break;;
26101  esac
26102done
26103cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26104
26105lt_cv_prog_compiler_c_o_RC=yes
26106
26107# The else clause should only fire when bootstrapping the
26108# libtool distribution, otherwise you forgot to ship ltmain.sh
26109# with your package, and you will get complaints that there are
26110# no rules to generate ltmain.sh.
26111if test -f "$ltmain"; then
26112  # See if we are running on zsh, and set the options which allow our commands through
26113  # without removal of \ escapes.
26114  if test -n "${ZSH_VERSION+set}" ; then
26115    setopt NO_GLOB_SUBST
26116  fi
26117  # Now quote all the things that may contain metacharacters while being
26118  # careful not to overquote the AC_SUBSTed values.  We take copies of the
26119  # variables and quote the copies for generation of the libtool script.
26120  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26121    SED SHELL STRIP \
26122    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26123    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26124    deplibs_check_method reload_flag reload_cmds need_locks \
26125    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26126    lt_cv_sys_global_symbol_to_c_name_address \
26127    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26128    old_postinstall_cmds old_postuninstall_cmds \
26129    compiler_RC \
26130    CC_RC \
26131    LD_RC \
26132    lt_prog_compiler_wl_RC \
26133    lt_prog_compiler_pic_RC \
26134    lt_prog_compiler_static_RC \
26135    lt_prog_compiler_no_builtin_flag_RC \
26136    export_dynamic_flag_spec_RC \
26137    thread_safe_flag_spec_RC \
26138    whole_archive_flag_spec_RC \
26139    enable_shared_with_static_runtimes_RC \
26140    old_archive_cmds_RC \
26141    old_archive_from_new_cmds_RC \
26142    predep_objects_RC \
26143    postdep_objects_RC \
26144    predeps_RC \
26145    postdeps_RC \
26146    compiler_lib_search_path_RC \
26147    archive_cmds_RC \
26148    archive_expsym_cmds_RC \
26149    postinstall_cmds_RC \
26150    postuninstall_cmds_RC \
26151    old_archive_from_expsyms_cmds_RC \
26152    allow_undefined_flag_RC \
26153    no_undefined_flag_RC \
26154    export_symbols_cmds_RC \
26155    hardcode_libdir_flag_spec_RC \
26156    hardcode_libdir_flag_spec_ld_RC \
26157    hardcode_libdir_separator_RC \
26158    hardcode_automatic_RC \
26159    module_cmds_RC \
26160    module_expsym_cmds_RC \
26161    lt_cv_prog_compiler_c_o_RC \
26162    exclude_expsyms_RC \
26163    include_expsyms_RC; do
26164
26165    case $var in
26166    old_archive_cmds_RC | \
26167    old_archive_from_new_cmds_RC | \
26168    archive_cmds_RC | \
26169    archive_expsym_cmds_RC | \
26170    module_cmds_RC | \
26171    module_expsym_cmds_RC | \
26172    old_archive_from_expsyms_cmds_RC | \
26173    export_symbols_cmds_RC | \
26174    extract_expsyms_cmds | reload_cmds | finish_cmds | \
26175    postinstall_cmds | postuninstall_cmds | \
26176    old_postinstall_cmds | old_postuninstall_cmds | \
26177    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26178      # Double-quote double-evaled strings.
26179      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26180      ;;
26181    *)
26182      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26183      ;;
26184    esac
26185  done
26186
26187  case $lt_echo in
26188  *'\$0 --fallback-echo"')
26189    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26190    ;;
26191  esac
26192
26193cfgfile="$ofile"
26194
26195  cat <<__EOF__ >> "$cfgfile"
26196# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26197
26198# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26199
26200# Shell to use when invoking shell scripts.
26201SHELL=$lt_SHELL
26202
26203# Whether or not to build shared libraries.
26204build_libtool_libs=$enable_shared
26205
26206# Whether or not to build static libraries.
26207build_old_libs=$enable_static
26208
26209# Whether or not to add -lc for building shared libraries.
26210build_libtool_need_lc=$archive_cmds_need_lc_RC
26211
26212# Whether or not to disallow shared libs when runtime libs are static
26213allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26214
26215# Whether or not to optimize for fast installation.
26216fast_install=$enable_fast_install
26217
26218# The host system.
26219host_alias=$host_alias
26220host=$host
26221host_os=$host_os
26222
26223# The build system.
26224build_alias=$build_alias
26225build=$build
26226build_os=$build_os
26227
26228# An echo program that does not interpret backslashes.
26229echo=$lt_echo
26230
26231# The archiver.
26232AR=$lt_AR
26233AR_FLAGS=$lt_AR_FLAGS
26234
26235# A C compiler.
26236LTCC=$lt_LTCC
26237
26238# LTCC compiler flags.
26239LTCFLAGS=$lt_LTCFLAGS
26240
26241# A language-specific compiler.
26242CC=$lt_compiler_RC
26243
26244# Is the compiler the GNU C compiler?
26245with_gcc=$GCC_RC
26246
26247# An ERE matcher.
26248EGREP=$lt_EGREP
26249
26250# The linker used to build libraries.
26251LD=$lt_LD_RC
26252
26253# Whether we need hard or soft links.
26254LN_S=$lt_LN_S
26255
26256# A BSD-compatible nm program.
26257NM=$lt_NM
26258
26259# A symbol stripping program
26260STRIP=$lt_STRIP
26261
26262# Used to examine libraries when file_magic_cmd begins "file"
26263MAGIC_CMD=$MAGIC_CMD
26264
26265# Used on cygwin: DLL creation program.
26266DLLTOOL="$DLLTOOL"
26267
26268# Used on cygwin: object dumper.
26269OBJDUMP="$OBJDUMP"
26270
26271# Used on cygwin: assembler.
26272AS="$AS"
26273
26274# The name of the directory that contains temporary libtool files.
26275objdir=$objdir
26276
26277# How to create reloadable object files.
26278reload_flag=$lt_reload_flag
26279reload_cmds=$lt_reload_cmds
26280
26281# How to pass a linker flag through the compiler.
26282wl=$lt_lt_prog_compiler_wl_RC
26283
26284# Object file suffix (normally "o").
26285objext="$ac_objext"
26286
26287# Old archive suffix (normally "a").
26288libext="$libext"
26289
26290# Shared library suffix (normally ".so").
26291shrext_cmds='$shrext_cmds'
26292
26293# Executable file suffix (normally "").
26294exeext="$exeext"
26295
26296# Additional compiler flags for building library objects.
26297pic_flag=$lt_lt_prog_compiler_pic_RC
26298pic_mode=$pic_mode
26299
26300# What is the maximum length of a command?
26301max_cmd_len=$lt_cv_sys_max_cmd_len
26302
26303# Does compiler simultaneously support -c and -o options?
26304compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26305
26306# Must we lock files when doing compilation?
26307need_locks=$lt_need_locks
26308
26309# Do we need the lib prefix for modules?
26310need_lib_prefix=$need_lib_prefix
26311
26312# Do we need a version for libraries?
26313need_version=$need_version
26314
26315# Whether dlopen is supported.
26316dlopen_support=$enable_dlopen
26317
26318# Whether dlopen of programs is supported.
26319dlopen_self=$enable_dlopen_self
26320
26321# Whether dlopen of statically linked programs is supported.
26322dlopen_self_static=$enable_dlopen_self_static
26323
26324# Compiler flag to prevent dynamic linking.
26325link_static_flag=$lt_lt_prog_compiler_static_RC
26326
26327# Compiler flag to turn off builtin functions.
26328no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26329
26330# Compiler flag to allow reflexive dlopens.
26331export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26332
26333# Compiler flag to generate shared objects directly from archives.
26334whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26335
26336# Compiler flag to generate thread-safe objects.
26337thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26338
26339# Library versioning type.
26340version_type=$version_type
26341
26342# Format of library name prefix.
26343libname_spec=$lt_libname_spec
26344
26345# List of archive names.  First name is the real one, the rest are links.
26346# The last name is the one that the linker finds with -lNAME.
26347library_names_spec=$lt_library_names_spec
26348
26349# The coded name of the library, if different from the real name.
26350soname_spec=$lt_soname_spec
26351
26352# Commands used to build and install an old-style archive.
26353RANLIB=$lt_RANLIB
26354old_archive_cmds=$lt_old_archive_cmds_RC
26355old_postinstall_cmds=$lt_old_postinstall_cmds
26356old_postuninstall_cmds=$lt_old_postuninstall_cmds
26357
26358# Create an old-style archive from a shared archive.
26359old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26360
26361# Create a temporary old-style archive to link instead of a shared archive.
26362old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26363
26364# Commands used to build and install a shared archive.
26365archive_cmds=$lt_archive_cmds_RC
26366archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26367postinstall_cmds=$lt_postinstall_cmds
26368postuninstall_cmds=$lt_postuninstall_cmds
26369
26370# Commands used to build a loadable module (assumed same as above if empty)
26371module_cmds=$lt_module_cmds_RC
26372module_expsym_cmds=$lt_module_expsym_cmds_RC
26373
26374# Commands to strip libraries.
26375old_striplib=$lt_old_striplib
26376striplib=$lt_striplib
26377
26378# Dependencies to place before the objects being linked to create a
26379# shared library.
26380predep_objects=$lt_predep_objects_RC
26381
26382# Dependencies to place after the objects being linked to create a
26383# shared library.
26384postdep_objects=$lt_postdep_objects_RC
26385
26386# Dependencies to place before the objects being linked to create a
26387# shared library.
26388predeps=$lt_predeps_RC
26389
26390# Dependencies to place after the objects being linked to create a
26391# shared library.
26392postdeps=$lt_postdeps_RC
26393
26394# The library search path used internally by the compiler when linking
26395# a shared library.
26396compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26397
26398# Method to check whether dependent libraries are shared objects.
26399deplibs_check_method=$lt_deplibs_check_method
26400
26401# Command to use when deplibs_check_method == file_magic.
26402file_magic_cmd=$lt_file_magic_cmd
26403
26404# Flag that allows shared libraries with undefined symbols to be built.
26405allow_undefined_flag=$lt_allow_undefined_flag_RC
26406
26407# Flag that forces no undefined symbols.
26408no_undefined_flag=$lt_no_undefined_flag_RC
26409
26410# Commands used to finish a libtool library installation in a directory.
26411finish_cmds=$lt_finish_cmds
26412
26413# Same as above, but a single script fragment to be evaled but not shown.
26414finish_eval=$lt_finish_eval
26415
26416# Take the output of nm and produce a listing of raw symbols and C names.
26417global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26418
26419# Transform the output of nm in a proper C declaration
26420global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26421
26422# Transform the output of nm in a C name address pair
26423global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26424
26425# This is the shared library runtime path variable.
26426runpath_var=$runpath_var
26427
26428# This is the shared library path variable.
26429shlibpath_var=$shlibpath_var
26430
26431# Is shlibpath searched before the hard-coded library search path?
26432shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26433
26434# How to hardcode a shared library path into an executable.
26435hardcode_action=$hardcode_action_RC
26436
26437# Whether we should hardcode library paths into libraries.
26438hardcode_into_libs=$hardcode_into_libs
26439
26440# Flag to hardcode \$libdir into a binary during linking.
26441# This must work even if \$libdir does not exist.
26442hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26443
26444# If ld is used when linking, flag to hardcode \$libdir into
26445# a binary during linking. This must work even if \$libdir does
26446# not exist.
26447hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26448
26449# Whether we need a single -rpath flag with a separated argument.
26450hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26451
26452# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26453# resulting binary.
26454hardcode_direct=$hardcode_direct_RC
26455
26456# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26457# resulting binary.
26458hardcode_minus_L=$hardcode_minus_L_RC
26459
26460# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26461# the resulting binary.
26462hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26463
26464# Set to yes if building a shared library automatically hardcodes DIR into the library
26465# and all subsequent libraries and executables linked against it.
26466hardcode_automatic=$hardcode_automatic_RC
26467
26468# Variables whose values should be saved in libtool wrapper scripts and
26469# restored at relink time.
26470variables_saved_for_relink="$variables_saved_for_relink"
26471
26472# Whether libtool must link a program against all its dependency libraries.
26473link_all_deplibs=$link_all_deplibs_RC
26474
26475# Compile-time system search path for libraries
26476sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26477
26478# Run-time system search path for libraries
26479sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26480
26481# Fix the shell variable \$srcfile for the compiler.
26482fix_srcfile_path="$fix_srcfile_path_RC"
26483
26484# Set to yes if exported symbols are required.
26485always_export_symbols=$always_export_symbols_RC
26486
26487# The commands to list exported symbols.
26488export_symbols_cmds=$lt_export_symbols_cmds_RC
26489
26490# The commands to extract the exported symbol list from a shared archive.
26491extract_expsyms_cmds=$lt_extract_expsyms_cmds
26492
26493# Symbols that should not be listed in the preloaded symbols.
26494exclude_expsyms=$lt_exclude_expsyms_RC
26495
26496# Symbols that must always be exported.
26497include_expsyms=$lt_include_expsyms_RC
26498
26499# ### END LIBTOOL TAG CONFIG: $tagname
26500
26501__EOF__
26502
26503
26504else
26505  # If there is no Makefile yet, we rely on a make rule to execute
26506  # `config.status --recheck' to rerun these tests and create the
26507  # libtool script then.
26508  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26509  if test -f "$ltmain_in"; then
26510    test -f Makefile && make "$ltmain"
26511  fi
26512fi
26513
26514
26515ac_ext=c
26516ac_cpp='$CPP $CPPFLAGS'
26517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26519ac_compiler_gnu=$ac_cv_c_compiler_gnu
26520
26521CC="$lt_save_CC"
26522
26523	;;
26524
26525      *)
26526	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26527echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26528   { (exit 1); exit 1; }; }
26529	;;
26530      esac
26531
26532      # Append the new tag name to the list of available tags.
26533      if test -n "$tagname" ; then
26534      available_tags="$available_tags $tagname"
26535    fi
26536    fi
26537  done
26538  IFS="$lt_save_ifs"
26539
26540  # Now substitute the updated list of available tags.
26541  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26542    mv "${ofile}T" "$ofile"
26543    chmod +x "$ofile"
26544  else
26545    rm -f "${ofile}T"
26546    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26547echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26548   { (exit 1); exit 1; }; }
26549  fi
26550fi
26551
26552
26553
26554# This can be used to rebuild libtool when needed
26555LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26556
26557# Always use our own libtool.
26558LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26559
26560# Prevent multiple expansion
26561
26562
26563
26564
26565
26566
26567
26568
26569
26570
26571
26572
26573
26574
26575
26576
26577
26578
26579
26580
26581
26582if test "$lt_cv_dlopen_self" = "yes" ; then
26583
26584cat >>confdefs.h <<\_ACEOF
26585#define CAN_DLOPEN_SELF 1
26586_ACEOF
26587
26588fi
26589
26590etags_version=`$ETAGS --version 2>&1`
26591case "$etags_version" in
26592	*Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26593	*GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26594	*) ETAGSFLAGS="" ;;
26595esac
26596ETAGSFLAGS=$ETAGSFLAGS
26597
26598
26599if test "$WITH_LLVMGCCDIR" = "default" ; then
26600  LLVMGCC="llvm-gcc${EXEEXT}"
26601  LLVMGXX="llvm-g++${EXEEXT}"
26602  # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26603set dummy $LLVMGCC; ac_word=$2
26604{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26606if test "${ac_cv_path_LLVMGCC+set}" = set; then
26607  echo $ECHO_N "(cached) $ECHO_C" >&6
26608else
26609  case $LLVMGCC in
26610  [\\/]* | ?:[\\/]*)
26611  ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26612  ;;
26613  *)
26614  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26615for as_dir in $PATH
26616do
26617  IFS=$as_save_IFS
26618  test -z "$as_dir" && as_dir=.
26619  for ac_exec_ext in '' $ac_executable_extensions; do
26620  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26621    ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26622    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26623    break 2
26624  fi
26625done
26626done
26627IFS=$as_save_IFS
26628
26629  ;;
26630esac
26631fi
26632LLVMGCC=$ac_cv_path_LLVMGCC
26633if test -n "$LLVMGCC"; then
26634  { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26635echo "${ECHO_T}$LLVMGCC" >&6; }
26636else
26637  { echo "$as_me:$LINENO: result: no" >&5
26638echo "${ECHO_T}no" >&6; }
26639fi
26640
26641
26642  # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26643set dummy $LLVMGXX; ac_word=$2
26644{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26646if test "${ac_cv_path_LLVMGXX+set}" = set; then
26647  echo $ECHO_N "(cached) $ECHO_C" >&6
26648else
26649  case $LLVMGXX in
26650  [\\/]* | ?:[\\/]*)
26651  ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26652  ;;
26653  *)
26654  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26655for as_dir in $PATH
26656do
26657  IFS=$as_save_IFS
26658  test -z "$as_dir" && as_dir=.
26659  for ac_exec_ext in '' $ac_executable_extensions; do
26660  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26661    ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26662    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26663    break 2
26664  fi
26665done
26666done
26667IFS=$as_save_IFS
26668
26669  ;;
26670esac
26671fi
26672LLVMGXX=$ac_cv_path_LLVMGXX
26673if test -n "$LLVMGXX"; then
26674  { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26675echo "${ECHO_T}$LLVMGXX" >&6; }
26676else
26677  { echo "$as_me:$LINENO: result: no" >&5
26678echo "${ECHO_T}no" >&6; }
26679fi
26680
26681
26682else
26683  LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26684  LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26685  LLVMGCC=$LLVMGCC
26686
26687  LLVMGXX=$LLVMGXX
26688
26689fi
26690
26691{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26692echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26693
26694ICC=no
26695IXX=no
26696case $CC in
26697  icc*|icpc*)
26698    ICC=yes
26699    IXX=yes
26700    ;;
26701   *)
26702    ;;
26703esac
26704
26705if test "$GCC" != "yes" && test "$ICC" != "yes"
26706then
26707  { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26708echo "$as_me: error: gcc|icc required but not found" >&2;}
26709   { (exit 1); exit 1; }; }
26710fi
26711
26712if test "$GXX" != "yes" && test "$IXX" != "yes"
26713then
26714  { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26715echo "$as_me: error: g++|icc required but not found" >&2;}
26716   { (exit 1); exit 1; }; }
26717fi
26718
26719if test "$GCC" = "yes"
26720then
26721  gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
26722  if test "$gccmajor" -lt "3"
26723  then
26724    { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26725echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26726   { (exit 1); exit 1; }; }
26727  fi
26728fi
26729
26730if test -z "$llvm_cv_gnu_make_command"
26731then
26732  { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26733echo "$as_me: error: GNU Make required but not found" >&2;}
26734   { (exit 1); exit 1; }; }
26735fi
26736
26737{ echo "$as_me:$LINENO: result: ok" >&5
26738echo "${ECHO_T}ok" >&6; }
26739
26740
26741
26742{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26743echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26744if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26745  echo $ECHO_N "(cached) $ECHO_C" >&6
26746else
26747  ac_check_lib_save_LIBS=$LIBS
26748LIBS="-lelf  $LIBS"
26749cat >conftest.$ac_ext <<_ACEOF
26750/* confdefs.h.  */
26751_ACEOF
26752cat confdefs.h >>conftest.$ac_ext
26753cat >>conftest.$ac_ext <<_ACEOF
26754/* end confdefs.h.  */
26755
26756/* Override any GCC internal prototype to avoid an error.
26757   Use char because int might match the return type of a GCC
26758   builtin and then its argument prototype would still apply.  */
26759#ifdef __cplusplus
26760extern "C"
26761#endif
26762char elf_begin ();
26763int
26764main ()
26765{
26766return elf_begin ();
26767  ;
26768  return 0;
26769}
26770_ACEOF
26771rm -f conftest.$ac_objext conftest$ac_exeext
26772if { (ac_try="$ac_link"
26773case "(($ac_try" in
26774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26775  *) ac_try_echo=$ac_try;;
26776esac
26777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26778  (eval "$ac_link") 2>conftest.er1
26779  ac_status=$?
26780  grep -v '^ *+' conftest.er1 >conftest.err
26781  rm -f conftest.er1
26782  cat conftest.err >&5
26783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26784  (exit $ac_status); } &&
26785	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26786  { (case "(($ac_try" in
26787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26788  *) ac_try_echo=$ac_try;;
26789esac
26790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26791  (eval "$ac_try") 2>&5
26792  ac_status=$?
26793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26794  (exit $ac_status); }; } &&
26795	 { ac_try='test -s conftest$ac_exeext'
26796  { (case "(($ac_try" in
26797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26798  *) ac_try_echo=$ac_try;;
26799esac
26800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26801  (eval "$ac_try") 2>&5
26802  ac_status=$?
26803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26804  (exit $ac_status); }; }; then
26805  ac_cv_lib_elf_elf_begin=yes
26806else
26807  echo "$as_me: failed program was:" >&5
26808sed 's/^/| /' conftest.$ac_ext >&5
26809
26810	ac_cv_lib_elf_elf_begin=no
26811fi
26812
26813rm -f core conftest.err conftest.$ac_objext \
26814      conftest$ac_exeext conftest.$ac_ext
26815LIBS=$ac_check_lib_save_LIBS
26816fi
26817{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26818echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26819if test $ac_cv_lib_elf_elf_begin = yes; then
26820  cat >>confdefs.h <<_ACEOF
26821#define HAVE_LIBELF 1
26822_ACEOF
26823
26824  LIBS="-lelf $LIBS"
26825
26826fi
26827
26828
26829{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
26830echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26831if test "${ac_cv_lib_m_sin+set}" = set; then
26832  echo $ECHO_N "(cached) $ECHO_C" >&6
26833else
26834  ac_check_lib_save_LIBS=$LIBS
26835LIBS="-lm  $LIBS"
26836cat >conftest.$ac_ext <<_ACEOF
26837/* confdefs.h.  */
26838_ACEOF
26839cat confdefs.h >>conftest.$ac_ext
26840cat >>conftest.$ac_ext <<_ACEOF
26841/* end confdefs.h.  */
26842
26843/* Override any GCC internal prototype to avoid an error.
26844   Use char because int might match the return type of a GCC
26845   builtin and then its argument prototype would still apply.  */
26846#ifdef __cplusplus
26847extern "C"
26848#endif
26849char sin ();
26850int
26851main ()
26852{
26853return sin ();
26854  ;
26855  return 0;
26856}
26857_ACEOF
26858rm -f conftest.$ac_objext conftest$ac_exeext
26859if { (ac_try="$ac_link"
26860case "(($ac_try" in
26861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26862  *) ac_try_echo=$ac_try;;
26863esac
26864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26865  (eval "$ac_link") 2>conftest.er1
26866  ac_status=$?
26867  grep -v '^ *+' conftest.er1 >conftest.err
26868  rm -f conftest.er1
26869  cat conftest.err >&5
26870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26871  (exit $ac_status); } &&
26872	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26873  { (case "(($ac_try" in
26874  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26875  *) ac_try_echo=$ac_try;;
26876esac
26877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26878  (eval "$ac_try") 2>&5
26879  ac_status=$?
26880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26881  (exit $ac_status); }; } &&
26882	 { ac_try='test -s conftest$ac_exeext'
26883  { (case "(($ac_try" in
26884  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26885  *) ac_try_echo=$ac_try;;
26886esac
26887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26888  (eval "$ac_try") 2>&5
26889  ac_status=$?
26890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26891  (exit $ac_status); }; }; then
26892  ac_cv_lib_m_sin=yes
26893else
26894  echo "$as_me: failed program was:" >&5
26895sed 's/^/| /' conftest.$ac_ext >&5
26896
26897	ac_cv_lib_m_sin=no
26898fi
26899
26900rm -f core conftest.err conftest.$ac_objext \
26901      conftest$ac_exeext conftest.$ac_ext
26902LIBS=$ac_check_lib_save_LIBS
26903fi
26904{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26905echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
26906if test $ac_cv_lib_m_sin = yes; then
26907  cat >>confdefs.h <<_ACEOF
26908#define HAVE_LIBM 1
26909_ACEOF
26910
26911  LIBS="-lm $LIBS"
26912
26913fi
26914
26915if test "$llvm_cv_os_type" = "MingW" ; then
26916
26917{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26918echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
26919if test "${ac_cv_lib_imagehlp_main+set}" = set; then
26920  echo $ECHO_N "(cached) $ECHO_C" >&6
26921else
26922  ac_check_lib_save_LIBS=$LIBS
26923LIBS="-limagehlp  $LIBS"
26924cat >conftest.$ac_ext <<_ACEOF
26925/* confdefs.h.  */
26926_ACEOF
26927cat confdefs.h >>conftest.$ac_ext
26928cat >>conftest.$ac_ext <<_ACEOF
26929/* end confdefs.h.  */
26930
26931
26932int
26933main ()
26934{
26935return main ();
26936  ;
26937  return 0;
26938}
26939_ACEOF
26940rm -f conftest.$ac_objext conftest$ac_exeext
26941if { (ac_try="$ac_link"
26942case "(($ac_try" in
26943  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26944  *) ac_try_echo=$ac_try;;
26945esac
26946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26947  (eval "$ac_link") 2>conftest.er1
26948  ac_status=$?
26949  grep -v '^ *+' conftest.er1 >conftest.err
26950  rm -f conftest.er1
26951  cat conftest.err >&5
26952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26953  (exit $ac_status); } &&
26954	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26955  { (case "(($ac_try" in
26956  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26957  *) ac_try_echo=$ac_try;;
26958esac
26959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26960  (eval "$ac_try") 2>&5
26961  ac_status=$?
26962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26963  (exit $ac_status); }; } &&
26964	 { ac_try='test -s conftest$ac_exeext'
26965  { (case "(($ac_try" in
26966  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26967  *) ac_try_echo=$ac_try;;
26968esac
26969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26970  (eval "$ac_try") 2>&5
26971  ac_status=$?
26972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26973  (exit $ac_status); }; }; then
26974  ac_cv_lib_imagehlp_main=yes
26975else
26976  echo "$as_me: failed program was:" >&5
26977sed 's/^/| /' conftest.$ac_ext >&5
26978
26979	ac_cv_lib_imagehlp_main=no
26980fi
26981
26982rm -f core conftest.err conftest.$ac_objext \
26983      conftest$ac_exeext conftest.$ac_ext
26984LIBS=$ac_check_lib_save_LIBS
26985fi
26986{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26987echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
26988if test $ac_cv_lib_imagehlp_main = yes; then
26989  cat >>confdefs.h <<_ACEOF
26990#define HAVE_LIBIMAGEHLP 1
26991_ACEOF
26992
26993  LIBS="-limagehlp $LIBS"
26994
26995fi
26996
26997
26998{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
26999echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27000if test "${ac_cv_lib_psapi_main+set}" = set; then
27001  echo $ECHO_N "(cached) $ECHO_C" >&6
27002else
27003  ac_check_lib_save_LIBS=$LIBS
27004LIBS="-lpsapi  $LIBS"
27005cat >conftest.$ac_ext <<_ACEOF
27006/* confdefs.h.  */
27007_ACEOF
27008cat confdefs.h >>conftest.$ac_ext
27009cat >>conftest.$ac_ext <<_ACEOF
27010/* end confdefs.h.  */
27011
27012
27013int
27014main ()
27015{
27016return main ();
27017  ;
27018  return 0;
27019}
27020_ACEOF
27021rm -f conftest.$ac_objext conftest$ac_exeext
27022if { (ac_try="$ac_link"
27023case "(($ac_try" in
27024  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27025  *) ac_try_echo=$ac_try;;
27026esac
27027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27028  (eval "$ac_link") 2>conftest.er1
27029  ac_status=$?
27030  grep -v '^ *+' conftest.er1 >conftest.err
27031  rm -f conftest.er1
27032  cat conftest.err >&5
27033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27034  (exit $ac_status); } &&
27035	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27036  { (case "(($ac_try" in
27037  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27038  *) ac_try_echo=$ac_try;;
27039esac
27040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27041  (eval "$ac_try") 2>&5
27042  ac_status=$?
27043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27044  (exit $ac_status); }; } &&
27045	 { ac_try='test -s conftest$ac_exeext'
27046  { (case "(($ac_try" in
27047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27048  *) ac_try_echo=$ac_try;;
27049esac
27050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27051  (eval "$ac_try") 2>&5
27052  ac_status=$?
27053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27054  (exit $ac_status); }; }; then
27055  ac_cv_lib_psapi_main=yes
27056else
27057  echo "$as_me: failed program was:" >&5
27058sed 's/^/| /' conftest.$ac_ext >&5
27059
27060	ac_cv_lib_psapi_main=no
27061fi
27062
27063rm -f core conftest.err conftest.$ac_objext \
27064      conftest$ac_exeext conftest.$ac_ext
27065LIBS=$ac_check_lib_save_LIBS
27066fi
27067{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27068echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27069if test $ac_cv_lib_psapi_main = yes; then
27070  cat >>confdefs.h <<_ACEOF
27071#define HAVE_LIBPSAPI 1
27072_ACEOF
27073
27074  LIBS="-lpsapi $LIBS"
27075
27076fi
27077
27078fi
27079
27080{ echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27081echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
27082if test "${ac_cv_search_lt_dlopen+set}" = set; then
27083  echo $ECHO_N "(cached) $ECHO_C" >&6
27084else
27085  ac_func_search_save_LIBS=$LIBS
27086cat >conftest.$ac_ext <<_ACEOF
27087/* confdefs.h.  */
27088_ACEOF
27089cat confdefs.h >>conftest.$ac_ext
27090cat >>conftest.$ac_ext <<_ACEOF
27091/* end confdefs.h.  */
27092
27093/* Override any GCC internal prototype to avoid an error.
27094   Use char because int might match the return type of a GCC
27095   builtin and then its argument prototype would still apply.  */
27096#ifdef __cplusplus
27097extern "C"
27098#endif
27099char lt_dlopen ();
27100int
27101main ()
27102{
27103return lt_dlopen ();
27104  ;
27105  return 0;
27106}
27107_ACEOF
27108for ac_lib in '' ltdl; do
27109  if test -z "$ac_lib"; then
27110    ac_res="none required"
27111  else
27112    ac_res=-l$ac_lib
27113    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27114  fi
27115  rm -f conftest.$ac_objext conftest$ac_exeext
27116if { (ac_try="$ac_link"
27117case "(($ac_try" in
27118  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27119  *) ac_try_echo=$ac_try;;
27120esac
27121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27122  (eval "$ac_link") 2>conftest.er1
27123  ac_status=$?
27124  grep -v '^ *+' conftest.er1 >conftest.err
27125  rm -f conftest.er1
27126  cat conftest.err >&5
27127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27128  (exit $ac_status); } &&
27129	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27130  { (case "(($ac_try" in
27131  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27132  *) ac_try_echo=$ac_try;;
27133esac
27134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27135  (eval "$ac_try") 2>&5
27136  ac_status=$?
27137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27138  (exit $ac_status); }; } &&
27139	 { ac_try='test -s conftest$ac_exeext'
27140  { (case "(($ac_try" in
27141  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27142  *) ac_try_echo=$ac_try;;
27143esac
27144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27145  (eval "$ac_try") 2>&5
27146  ac_status=$?
27147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27148  (exit $ac_status); }; }; then
27149  ac_cv_search_lt_dlopen=$ac_res
27150else
27151  echo "$as_me: failed program was:" >&5
27152sed 's/^/| /' conftest.$ac_ext >&5
27153
27154
27155fi
27156
27157rm -f core conftest.err conftest.$ac_objext \
27158      conftest$ac_exeext
27159  if test "${ac_cv_search_lt_dlopen+set}" = set; then
27160  break
27161fi
27162done
27163if test "${ac_cv_search_lt_dlopen+set}" = set; then
27164  :
27165else
27166  ac_cv_search_lt_dlopen=no
27167fi
27168rm conftest.$ac_ext
27169LIBS=$ac_func_search_save_LIBS
27170fi
27171{ echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27172echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27173ac_res=$ac_cv_search_lt_dlopen
27174if test "$ac_res" != no; then
27175  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27176
27177cat >>confdefs.h <<\_ACEOF
27178#define HAVE_LT_DLOPEN 1
27179_ACEOF
27180
27181else
27182  { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27183                           not be available" >&5
27184echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27185                           not be available" >&2;}
27186fi
27187
27188
27189{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27190echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27191if test "${ac_cv_search_dlopen+set}" = set; then
27192  echo $ECHO_N "(cached) $ECHO_C" >&6
27193else
27194  ac_func_search_save_LIBS=$LIBS
27195cat >conftest.$ac_ext <<_ACEOF
27196/* confdefs.h.  */
27197_ACEOF
27198cat confdefs.h >>conftest.$ac_ext
27199cat >>conftest.$ac_ext <<_ACEOF
27200/* end confdefs.h.  */
27201
27202/* Override any GCC internal prototype to avoid an error.
27203   Use char because int might match the return type of a GCC
27204   builtin and then its argument prototype would still apply.  */
27205#ifdef __cplusplus
27206extern "C"
27207#endif
27208char dlopen ();
27209int
27210main ()
27211{
27212return dlopen ();
27213  ;
27214  return 0;
27215}
27216_ACEOF
27217for ac_lib in '' dl; do
27218  if test -z "$ac_lib"; then
27219    ac_res="none required"
27220  else
27221    ac_res=-l$ac_lib
27222    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27223  fi
27224  rm -f conftest.$ac_objext conftest$ac_exeext
27225if { (ac_try="$ac_link"
27226case "(($ac_try" in
27227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27228  *) ac_try_echo=$ac_try;;
27229esac
27230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27231  (eval "$ac_link") 2>conftest.er1
27232  ac_status=$?
27233  grep -v '^ *+' conftest.er1 >conftest.err
27234  rm -f conftest.er1
27235  cat conftest.err >&5
27236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27237  (exit $ac_status); } &&
27238	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27239  { (case "(($ac_try" in
27240  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27241  *) ac_try_echo=$ac_try;;
27242esac
27243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27244  (eval "$ac_try") 2>&5
27245  ac_status=$?
27246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247  (exit $ac_status); }; } &&
27248	 { ac_try='test -s conftest$ac_exeext'
27249  { (case "(($ac_try" in
27250  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27251  *) ac_try_echo=$ac_try;;
27252esac
27253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27254  (eval "$ac_try") 2>&5
27255  ac_status=$?
27256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27257  (exit $ac_status); }; }; then
27258  ac_cv_search_dlopen=$ac_res
27259else
27260  echo "$as_me: failed program was:" >&5
27261sed 's/^/| /' conftest.$ac_ext >&5
27262
27263
27264fi
27265
27266rm -f core conftest.err conftest.$ac_objext \
27267      conftest$ac_exeext
27268  if test "${ac_cv_search_dlopen+set}" = set; then
27269  break
27270fi
27271done
27272if test "${ac_cv_search_dlopen+set}" = set; then
27273  :
27274else
27275  ac_cv_search_dlopen=no
27276fi
27277rm conftest.$ac_ext
27278LIBS=$ac_func_search_save_LIBS
27279fi
27280{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27281echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27282ac_res=$ac_cv_search_dlopen
27283if test "$ac_res" != no; then
27284  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27285
27286cat >>confdefs.h <<\_ACEOF
27287#define HAVE_DLOPEN 1
27288_ACEOF
27289
27290else
27291  { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27292echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27293fi
27294
27295
27296{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27297echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27298if test "${ac_cv_search_mallinfo+set}" = set; then
27299  echo $ECHO_N "(cached) $ECHO_C" >&6
27300else
27301  ac_func_search_save_LIBS=$LIBS
27302cat >conftest.$ac_ext <<_ACEOF
27303/* confdefs.h.  */
27304_ACEOF
27305cat confdefs.h >>conftest.$ac_ext
27306cat >>conftest.$ac_ext <<_ACEOF
27307/* end confdefs.h.  */
27308
27309/* Override any GCC internal prototype to avoid an error.
27310   Use char because int might match the return type of a GCC
27311   builtin and then its argument prototype would still apply.  */
27312#ifdef __cplusplus
27313extern "C"
27314#endif
27315char mallinfo ();
27316int
27317main ()
27318{
27319return mallinfo ();
27320  ;
27321  return 0;
27322}
27323_ACEOF
27324for ac_lib in '' malloc; do
27325  if test -z "$ac_lib"; then
27326    ac_res="none required"
27327  else
27328    ac_res=-l$ac_lib
27329    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27330  fi
27331  rm -f conftest.$ac_objext conftest$ac_exeext
27332if { (ac_try="$ac_link"
27333case "(($ac_try" in
27334  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27335  *) ac_try_echo=$ac_try;;
27336esac
27337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27338  (eval "$ac_link") 2>conftest.er1
27339  ac_status=$?
27340  grep -v '^ *+' conftest.er1 >conftest.err
27341  rm -f conftest.er1
27342  cat conftest.err >&5
27343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27344  (exit $ac_status); } &&
27345	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27346  { (case "(($ac_try" in
27347  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27348  *) ac_try_echo=$ac_try;;
27349esac
27350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27351  (eval "$ac_try") 2>&5
27352  ac_status=$?
27353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27354  (exit $ac_status); }; } &&
27355	 { ac_try='test -s conftest$ac_exeext'
27356  { (case "(($ac_try" in
27357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27358  *) ac_try_echo=$ac_try;;
27359esac
27360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27361  (eval "$ac_try") 2>&5
27362  ac_status=$?
27363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27364  (exit $ac_status); }; }; then
27365  ac_cv_search_mallinfo=$ac_res
27366else
27367  echo "$as_me: failed program was:" >&5
27368sed 's/^/| /' conftest.$ac_ext >&5
27369
27370
27371fi
27372
27373rm -f core conftest.err conftest.$ac_objext \
27374      conftest$ac_exeext
27375  if test "${ac_cv_search_mallinfo+set}" = set; then
27376  break
27377fi
27378done
27379if test "${ac_cv_search_mallinfo+set}" = set; then
27380  :
27381else
27382  ac_cv_search_mallinfo=no
27383fi
27384rm conftest.$ac_ext
27385LIBS=$ac_func_search_save_LIBS
27386fi
27387{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27388echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27389ac_res=$ac_cv_search_mallinfo
27390if test "$ac_res" != no; then
27391  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27392
27393cat >>confdefs.h <<\_ACEOF
27394#define HAVE_MALLINFO 1
27395_ACEOF
27396
27397fi
27398
27399
27400if test "$ENABLE_THREADS" -eq 1 ; then
27401
27402{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27403echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27404if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27405  echo $ECHO_N "(cached) $ECHO_C" >&6
27406else
27407  ac_check_lib_save_LIBS=$LIBS
27408LIBS="-lpthread  $LIBS"
27409cat >conftest.$ac_ext <<_ACEOF
27410/* confdefs.h.  */
27411_ACEOF
27412cat confdefs.h >>conftest.$ac_ext
27413cat >>conftest.$ac_ext <<_ACEOF
27414/* end confdefs.h.  */
27415
27416/* Override any GCC internal prototype to avoid an error.
27417   Use char because int might match the return type of a GCC
27418   builtin and then its argument prototype would still apply.  */
27419#ifdef __cplusplus
27420extern "C"
27421#endif
27422char pthread_mutex_init ();
27423int
27424main ()
27425{
27426return pthread_mutex_init ();
27427  ;
27428  return 0;
27429}
27430_ACEOF
27431rm -f conftest.$ac_objext conftest$ac_exeext
27432if { (ac_try="$ac_link"
27433case "(($ac_try" in
27434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27435  *) ac_try_echo=$ac_try;;
27436esac
27437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27438  (eval "$ac_link") 2>conftest.er1
27439  ac_status=$?
27440  grep -v '^ *+' conftest.er1 >conftest.err
27441  rm -f conftest.er1
27442  cat conftest.err >&5
27443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27444  (exit $ac_status); } &&
27445	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27446  { (case "(($ac_try" in
27447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27448  *) ac_try_echo=$ac_try;;
27449esac
27450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27451  (eval "$ac_try") 2>&5
27452  ac_status=$?
27453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27454  (exit $ac_status); }; } &&
27455	 { ac_try='test -s conftest$ac_exeext'
27456  { (case "(($ac_try" in
27457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27458  *) ac_try_echo=$ac_try;;
27459esac
27460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27461  (eval "$ac_try") 2>&5
27462  ac_status=$?
27463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27464  (exit $ac_status); }; }; then
27465  ac_cv_lib_pthread_pthread_mutex_init=yes
27466else
27467  echo "$as_me: failed program was:" >&5
27468sed 's/^/| /' conftest.$ac_ext >&5
27469
27470	ac_cv_lib_pthread_pthread_mutex_init=no
27471fi
27472
27473rm -f core conftest.err conftest.$ac_objext \
27474      conftest$ac_exeext conftest.$ac_ext
27475LIBS=$ac_check_lib_save_LIBS
27476fi
27477{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27478echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27479if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27480  cat >>confdefs.h <<_ACEOF
27481#define HAVE_LIBPTHREAD 1
27482_ACEOF
27483
27484  LIBS="-lpthread $LIBS"
27485
27486fi
27487
27488  { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27489echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27490if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27491  echo $ECHO_N "(cached) $ECHO_C" >&6
27492else
27493  ac_func_search_save_LIBS=$LIBS
27494cat >conftest.$ac_ext <<_ACEOF
27495/* confdefs.h.  */
27496_ACEOF
27497cat confdefs.h >>conftest.$ac_ext
27498cat >>conftest.$ac_ext <<_ACEOF
27499/* end confdefs.h.  */
27500
27501/* Override any GCC internal prototype to avoid an error.
27502   Use char because int might match the return type of a GCC
27503   builtin and then its argument prototype would still apply.  */
27504#ifdef __cplusplus
27505extern "C"
27506#endif
27507char pthread_mutex_lock ();
27508int
27509main ()
27510{
27511return pthread_mutex_lock ();
27512  ;
27513  return 0;
27514}
27515_ACEOF
27516for ac_lib in '' pthread; do
27517  if test -z "$ac_lib"; then
27518    ac_res="none required"
27519  else
27520    ac_res=-l$ac_lib
27521    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27522  fi
27523  rm -f conftest.$ac_objext conftest$ac_exeext
27524if { (ac_try="$ac_link"
27525case "(($ac_try" in
27526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27527  *) ac_try_echo=$ac_try;;
27528esac
27529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27530  (eval "$ac_link") 2>conftest.er1
27531  ac_status=$?
27532  grep -v '^ *+' conftest.er1 >conftest.err
27533  rm -f conftest.er1
27534  cat conftest.err >&5
27535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27536  (exit $ac_status); } &&
27537	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27538  { (case "(($ac_try" in
27539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27540  *) ac_try_echo=$ac_try;;
27541esac
27542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27543  (eval "$ac_try") 2>&5
27544  ac_status=$?
27545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27546  (exit $ac_status); }; } &&
27547	 { ac_try='test -s conftest$ac_exeext'
27548  { (case "(($ac_try" in
27549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27550  *) ac_try_echo=$ac_try;;
27551esac
27552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27553  (eval "$ac_try") 2>&5
27554  ac_status=$?
27555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27556  (exit $ac_status); }; }; then
27557  ac_cv_search_pthread_mutex_lock=$ac_res
27558else
27559  echo "$as_me: failed program was:" >&5
27560sed 's/^/| /' conftest.$ac_ext >&5
27561
27562
27563fi
27564
27565rm -f core conftest.err conftest.$ac_objext \
27566      conftest$ac_exeext
27567  if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27568  break
27569fi
27570done
27571if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27572  :
27573else
27574  ac_cv_search_pthread_mutex_lock=no
27575fi
27576rm conftest.$ac_ext
27577LIBS=$ac_func_search_save_LIBS
27578fi
27579{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27580echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27581ac_res=$ac_cv_search_pthread_mutex_lock
27582if test "$ac_res" != no; then
27583  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27584
27585cat >>confdefs.h <<\_ACEOF
27586#define HAVE_PTHREAD_MUTEX_LOCK 1
27587_ACEOF
27588
27589fi
27590
27591fi
27592
27593
27594# Check whether --with-udis86 was given.
27595if test "${with_udis86+set}" = set; then
27596  withval=$with_udis86;
27597      USE_UDIS86=1
27598
27599      case "$withval" in
27600        /usr/lib|yes) ;;
27601        *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27602      esac
27603
27604{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27605echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27606if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27607  echo $ECHO_N "(cached) $ECHO_C" >&6
27608else
27609  ac_check_lib_save_LIBS=$LIBS
27610LIBS="-ludis86  $LIBS"
27611cat >conftest.$ac_ext <<_ACEOF
27612/* confdefs.h.  */
27613_ACEOF
27614cat confdefs.h >>conftest.$ac_ext
27615cat >>conftest.$ac_ext <<_ACEOF
27616/* end confdefs.h.  */
27617
27618/* Override any GCC internal prototype to avoid an error.
27619   Use char because int might match the return type of a GCC
27620   builtin and then its argument prototype would still apply.  */
27621#ifdef __cplusplus
27622extern "C"
27623#endif
27624char ud_init ();
27625int
27626main ()
27627{
27628return ud_init ();
27629  ;
27630  return 0;
27631}
27632_ACEOF
27633rm -f conftest.$ac_objext conftest$ac_exeext
27634if { (ac_try="$ac_link"
27635case "(($ac_try" in
27636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27637  *) ac_try_echo=$ac_try;;
27638esac
27639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27640  (eval "$ac_link") 2>conftest.er1
27641  ac_status=$?
27642  grep -v '^ *+' conftest.er1 >conftest.err
27643  rm -f conftest.er1
27644  cat conftest.err >&5
27645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27646  (exit $ac_status); } &&
27647	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27648  { (case "(($ac_try" in
27649  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27650  *) ac_try_echo=$ac_try;;
27651esac
27652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27653  (eval "$ac_try") 2>&5
27654  ac_status=$?
27655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27656  (exit $ac_status); }; } &&
27657	 { ac_try='test -s conftest$ac_exeext'
27658  { (case "(($ac_try" in
27659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27660  *) ac_try_echo=$ac_try;;
27661esac
27662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27663  (eval "$ac_try") 2>&5
27664  ac_status=$?
27665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27666  (exit $ac_status); }; }; then
27667  ac_cv_lib_udis86_ud_init=yes
27668else
27669  echo "$as_me: failed program was:" >&5
27670sed 's/^/| /' conftest.$ac_ext >&5
27671
27672	ac_cv_lib_udis86_ud_init=no
27673fi
27674
27675rm -f core conftest.err conftest.$ac_objext \
27676      conftest$ac_exeext conftest.$ac_ext
27677LIBS=$ac_check_lib_save_LIBS
27678fi
27679{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27680echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27681if test $ac_cv_lib_udis86_ud_init = yes; then
27682  cat >>confdefs.h <<_ACEOF
27683#define HAVE_LIBUDIS86 1
27684_ACEOF
27685
27686  LIBS="-ludis86 $LIBS"
27687
27688else
27689
27690        echo "Error! You need to have libudis86 around."
27691        exit -1
27692
27693fi
27694
27695
27696else
27697  USE_UDIS86=0
27698
27699fi
27700
27701
27702cat >>confdefs.h <<_ACEOF
27703#define USE_UDIS86 $USE_UDIS86
27704_ACEOF
27705
27706
27707
27708
27709
27710
27711
27712
27713ac_header_dirent=no
27714for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27715  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27716{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27717echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27718if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27719  echo $ECHO_N "(cached) $ECHO_C" >&6
27720else
27721  cat >conftest.$ac_ext <<_ACEOF
27722/* confdefs.h.  */
27723_ACEOF
27724cat confdefs.h >>conftest.$ac_ext
27725cat >>conftest.$ac_ext <<_ACEOF
27726/* end confdefs.h.  */
27727#include <sys/types.h>
27728#include <$ac_hdr>
27729
27730int
27731main ()
27732{
27733if ((DIR *) 0)
27734return 0;
27735  ;
27736  return 0;
27737}
27738_ACEOF
27739rm -f conftest.$ac_objext
27740if { (ac_try="$ac_compile"
27741case "(($ac_try" in
27742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27743  *) ac_try_echo=$ac_try;;
27744esac
27745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27746  (eval "$ac_compile") 2>conftest.er1
27747  ac_status=$?
27748  grep -v '^ *+' conftest.er1 >conftest.err
27749  rm -f conftest.er1
27750  cat conftest.err >&5
27751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27752  (exit $ac_status); } &&
27753	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27754  { (case "(($ac_try" in
27755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27756  *) ac_try_echo=$ac_try;;
27757esac
27758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27759  (eval "$ac_try") 2>&5
27760  ac_status=$?
27761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27762  (exit $ac_status); }; } &&
27763	 { ac_try='test -s conftest.$ac_objext'
27764  { (case "(($ac_try" in
27765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27766  *) ac_try_echo=$ac_try;;
27767esac
27768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27769  (eval "$ac_try") 2>&5
27770  ac_status=$?
27771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27772  (exit $ac_status); }; }; then
27773  eval "$as_ac_Header=yes"
27774else
27775  echo "$as_me: failed program was:" >&5
27776sed 's/^/| /' conftest.$ac_ext >&5
27777
27778	eval "$as_ac_Header=no"
27779fi
27780
27781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27782fi
27783ac_res=`eval echo '${'$as_ac_Header'}'`
27784	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27785echo "${ECHO_T}$ac_res" >&6; }
27786if test `eval echo '${'$as_ac_Header'}'` = yes; then
27787  cat >>confdefs.h <<_ACEOF
27788#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27789_ACEOF
27790
27791ac_header_dirent=$ac_hdr; break
27792fi
27793
27794done
27795# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27796if test $ac_header_dirent = dirent.h; then
27797  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27798echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27799if test "${ac_cv_search_opendir+set}" = set; then
27800  echo $ECHO_N "(cached) $ECHO_C" >&6
27801else
27802  ac_func_search_save_LIBS=$LIBS
27803cat >conftest.$ac_ext <<_ACEOF
27804/* confdefs.h.  */
27805_ACEOF
27806cat confdefs.h >>conftest.$ac_ext
27807cat >>conftest.$ac_ext <<_ACEOF
27808/* end confdefs.h.  */
27809
27810/* Override any GCC internal prototype to avoid an error.
27811   Use char because int might match the return type of a GCC
27812   builtin and then its argument prototype would still apply.  */
27813#ifdef __cplusplus
27814extern "C"
27815#endif
27816char opendir ();
27817int
27818main ()
27819{
27820return opendir ();
27821  ;
27822  return 0;
27823}
27824_ACEOF
27825for ac_lib in '' dir; do
27826  if test -z "$ac_lib"; then
27827    ac_res="none required"
27828  else
27829    ac_res=-l$ac_lib
27830    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27831  fi
27832  rm -f conftest.$ac_objext conftest$ac_exeext
27833if { (ac_try="$ac_link"
27834case "(($ac_try" in
27835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27836  *) ac_try_echo=$ac_try;;
27837esac
27838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27839  (eval "$ac_link") 2>conftest.er1
27840  ac_status=$?
27841  grep -v '^ *+' conftest.er1 >conftest.err
27842  rm -f conftest.er1
27843  cat conftest.err >&5
27844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27845  (exit $ac_status); } &&
27846	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27847  { (case "(($ac_try" in
27848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27849  *) ac_try_echo=$ac_try;;
27850esac
27851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27852  (eval "$ac_try") 2>&5
27853  ac_status=$?
27854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27855  (exit $ac_status); }; } &&
27856	 { ac_try='test -s conftest$ac_exeext'
27857  { (case "(($ac_try" in
27858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27859  *) ac_try_echo=$ac_try;;
27860esac
27861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27862  (eval "$ac_try") 2>&5
27863  ac_status=$?
27864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27865  (exit $ac_status); }; }; then
27866  ac_cv_search_opendir=$ac_res
27867else
27868  echo "$as_me: failed program was:" >&5
27869sed 's/^/| /' conftest.$ac_ext >&5
27870
27871
27872fi
27873
27874rm -f core conftest.err conftest.$ac_objext \
27875      conftest$ac_exeext
27876  if test "${ac_cv_search_opendir+set}" = set; then
27877  break
27878fi
27879done
27880if test "${ac_cv_search_opendir+set}" = set; then
27881  :
27882else
27883  ac_cv_search_opendir=no
27884fi
27885rm conftest.$ac_ext
27886LIBS=$ac_func_search_save_LIBS
27887fi
27888{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27889echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27890ac_res=$ac_cv_search_opendir
27891if test "$ac_res" != no; then
27892  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27893
27894fi
27895
27896else
27897  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27898echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27899if test "${ac_cv_search_opendir+set}" = set; then
27900  echo $ECHO_N "(cached) $ECHO_C" >&6
27901else
27902  ac_func_search_save_LIBS=$LIBS
27903cat >conftest.$ac_ext <<_ACEOF
27904/* confdefs.h.  */
27905_ACEOF
27906cat confdefs.h >>conftest.$ac_ext
27907cat >>conftest.$ac_ext <<_ACEOF
27908/* end confdefs.h.  */
27909
27910/* Override any GCC internal prototype to avoid an error.
27911   Use char because int might match the return type of a GCC
27912   builtin and then its argument prototype would still apply.  */
27913#ifdef __cplusplus
27914extern "C"
27915#endif
27916char opendir ();
27917int
27918main ()
27919{
27920return opendir ();
27921  ;
27922  return 0;
27923}
27924_ACEOF
27925for ac_lib in '' x; do
27926  if test -z "$ac_lib"; then
27927    ac_res="none required"
27928  else
27929    ac_res=-l$ac_lib
27930    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27931  fi
27932  rm -f conftest.$ac_objext conftest$ac_exeext
27933if { (ac_try="$ac_link"
27934case "(($ac_try" in
27935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27936  *) ac_try_echo=$ac_try;;
27937esac
27938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27939  (eval "$ac_link") 2>conftest.er1
27940  ac_status=$?
27941  grep -v '^ *+' conftest.er1 >conftest.err
27942  rm -f conftest.er1
27943  cat conftest.err >&5
27944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27945  (exit $ac_status); } &&
27946	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27947  { (case "(($ac_try" in
27948  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27949  *) ac_try_echo=$ac_try;;
27950esac
27951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27952  (eval "$ac_try") 2>&5
27953  ac_status=$?
27954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27955  (exit $ac_status); }; } &&
27956	 { ac_try='test -s conftest$ac_exeext'
27957  { (case "(($ac_try" in
27958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27959  *) ac_try_echo=$ac_try;;
27960esac
27961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27962  (eval "$ac_try") 2>&5
27963  ac_status=$?
27964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27965  (exit $ac_status); }; }; then
27966  ac_cv_search_opendir=$ac_res
27967else
27968  echo "$as_me: failed program was:" >&5
27969sed 's/^/| /' conftest.$ac_ext >&5
27970
27971
27972fi
27973
27974rm -f core conftest.err conftest.$ac_objext \
27975      conftest$ac_exeext
27976  if test "${ac_cv_search_opendir+set}" = set; then
27977  break
27978fi
27979done
27980if test "${ac_cv_search_opendir+set}" = set; then
27981  :
27982else
27983  ac_cv_search_opendir=no
27984fi
27985rm conftest.$ac_ext
27986LIBS=$ac_func_search_save_LIBS
27987fi
27988{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27989echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27990ac_res=$ac_cv_search_opendir
27991if test "$ac_res" != no; then
27992  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27993
27994fi
27995
27996fi
27997
27998{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
27999echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28000if test "${ac_cv_header_mmap_anon+set}" = set; then
28001  echo $ECHO_N "(cached) $ECHO_C" >&6
28002else
28003   ac_ext=c
28004ac_cpp='$CPP $CPPFLAGS'
28005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28007ac_compiler_gnu=$ac_cv_c_compiler_gnu
28008
28009  cat >conftest.$ac_ext <<_ACEOF
28010/* confdefs.h.  */
28011_ACEOF
28012cat confdefs.h >>conftest.$ac_ext
28013cat >>conftest.$ac_ext <<_ACEOF
28014/* end confdefs.h.  */
28015#include <sys/mman.h>
28016#include <unistd.h>
28017#include <fcntl.h>
28018int
28019main ()
28020{
28021mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28022  ;
28023  return 0;
28024}
28025_ACEOF
28026rm -f conftest.$ac_objext
28027if { (ac_try="$ac_compile"
28028case "(($ac_try" in
28029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28030  *) ac_try_echo=$ac_try;;
28031esac
28032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28033  (eval "$ac_compile") 2>conftest.er1
28034  ac_status=$?
28035  grep -v '^ *+' conftest.er1 >conftest.err
28036  rm -f conftest.er1
28037  cat conftest.err >&5
28038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28039  (exit $ac_status); } &&
28040	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28041  { (case "(($ac_try" in
28042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28043  *) ac_try_echo=$ac_try;;
28044esac
28045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28046  (eval "$ac_try") 2>&5
28047  ac_status=$?
28048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28049  (exit $ac_status); }; } &&
28050	 { ac_try='test -s conftest.$ac_objext'
28051  { (case "(($ac_try" in
28052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28053  *) ac_try_echo=$ac_try;;
28054esac
28055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28056  (eval "$ac_try") 2>&5
28057  ac_status=$?
28058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28059  (exit $ac_status); }; }; then
28060  ac_cv_header_mmap_anon=yes
28061else
28062  echo "$as_me: failed program was:" >&5
28063sed 's/^/| /' conftest.$ac_ext >&5
28064
28065	ac_cv_header_mmap_anon=no
28066fi
28067
28068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28069  ac_ext=c
28070ac_cpp='$CPP $CPPFLAGS'
28071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28073ac_compiler_gnu=$ac_cv_c_compiler_gnu
28074
28075
28076fi
28077{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28078echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28079if test "$ac_cv_header_mmap_anon" = yes; then
28080
28081cat >>confdefs.h <<\_ACEOF
28082#define HAVE_MMAP_ANONYMOUS 1
28083_ACEOF
28084
28085fi
28086
28087{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28088echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28089if test "${ac_cv_header_stat_broken+set}" = set; then
28090  echo $ECHO_N "(cached) $ECHO_C" >&6
28091else
28092  cat >conftest.$ac_ext <<_ACEOF
28093/* confdefs.h.  */
28094_ACEOF
28095cat confdefs.h >>conftest.$ac_ext
28096cat >>conftest.$ac_ext <<_ACEOF
28097/* end confdefs.h.  */
28098#include <sys/types.h>
28099#include <sys/stat.h>
28100
28101#if defined S_ISBLK && defined S_IFDIR
28102# if S_ISBLK (S_IFDIR)
28103You lose.
28104# endif
28105#endif
28106
28107#if defined S_ISBLK && defined S_IFCHR
28108# if S_ISBLK (S_IFCHR)
28109You lose.
28110# endif
28111#endif
28112
28113#if defined S_ISLNK && defined S_IFREG
28114# if S_ISLNK (S_IFREG)
28115You lose.
28116# endif
28117#endif
28118
28119#if defined S_ISSOCK && defined S_IFREG
28120# if S_ISSOCK (S_IFREG)
28121You lose.
28122# endif
28123#endif
28124
28125_ACEOF
28126if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28127  $EGREP "You lose" >/dev/null 2>&1; then
28128  ac_cv_header_stat_broken=yes
28129else
28130  ac_cv_header_stat_broken=no
28131fi
28132rm -f conftest*
28133
28134fi
28135{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28136echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28137if test $ac_cv_header_stat_broken = yes; then
28138
28139cat >>confdefs.h <<\_ACEOF
28140#define STAT_MACROS_BROKEN 1
28141_ACEOF
28142
28143fi
28144
28145{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28146echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28147if test "${ac_cv_header_stdc+set}" = set; then
28148  echo $ECHO_N "(cached) $ECHO_C" >&6
28149else
28150  cat >conftest.$ac_ext <<_ACEOF
28151/* confdefs.h.  */
28152_ACEOF
28153cat confdefs.h >>conftest.$ac_ext
28154cat >>conftest.$ac_ext <<_ACEOF
28155/* end confdefs.h.  */
28156#include <stdlib.h>
28157#include <stdarg.h>
28158#include <string.h>
28159#include <float.h>
28160
28161int
28162main ()
28163{
28164
28165  ;
28166  return 0;
28167}
28168_ACEOF
28169rm -f conftest.$ac_objext
28170if { (ac_try="$ac_compile"
28171case "(($ac_try" in
28172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28173  *) ac_try_echo=$ac_try;;
28174esac
28175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28176  (eval "$ac_compile") 2>conftest.er1
28177  ac_status=$?
28178  grep -v '^ *+' conftest.er1 >conftest.err
28179  rm -f conftest.er1
28180  cat conftest.err >&5
28181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28182  (exit $ac_status); } &&
28183	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28184  { (case "(($ac_try" in
28185  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28186  *) ac_try_echo=$ac_try;;
28187esac
28188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28189  (eval "$ac_try") 2>&5
28190  ac_status=$?
28191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28192  (exit $ac_status); }; } &&
28193	 { ac_try='test -s conftest.$ac_objext'
28194  { (case "(($ac_try" in
28195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28196  *) ac_try_echo=$ac_try;;
28197esac
28198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28199  (eval "$ac_try") 2>&5
28200  ac_status=$?
28201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28202  (exit $ac_status); }; }; then
28203  ac_cv_header_stdc=yes
28204else
28205  echo "$as_me: failed program was:" >&5
28206sed 's/^/| /' conftest.$ac_ext >&5
28207
28208	ac_cv_header_stdc=no
28209fi
28210
28211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28212
28213if test $ac_cv_header_stdc = yes; then
28214  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28215  cat >conftest.$ac_ext <<_ACEOF
28216/* confdefs.h.  */
28217_ACEOF
28218cat confdefs.h >>conftest.$ac_ext
28219cat >>conftest.$ac_ext <<_ACEOF
28220/* end confdefs.h.  */
28221#include <string.h>
28222
28223_ACEOF
28224if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28225  $EGREP "memchr" >/dev/null 2>&1; then
28226  :
28227else
28228  ac_cv_header_stdc=no
28229fi
28230rm -f conftest*
28231
28232fi
28233
28234if test $ac_cv_header_stdc = yes; then
28235  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28236  cat >conftest.$ac_ext <<_ACEOF
28237/* confdefs.h.  */
28238_ACEOF
28239cat confdefs.h >>conftest.$ac_ext
28240cat >>conftest.$ac_ext <<_ACEOF
28241/* end confdefs.h.  */
28242#include <stdlib.h>
28243
28244_ACEOF
28245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28246  $EGREP "free" >/dev/null 2>&1; then
28247  :
28248else
28249  ac_cv_header_stdc=no
28250fi
28251rm -f conftest*
28252
28253fi
28254
28255if test $ac_cv_header_stdc = yes; then
28256  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28257  if test "$cross_compiling" = yes; then
28258  :
28259else
28260  cat >conftest.$ac_ext <<_ACEOF
28261/* confdefs.h.  */
28262_ACEOF
28263cat confdefs.h >>conftest.$ac_ext
28264cat >>conftest.$ac_ext <<_ACEOF
28265/* end confdefs.h.  */
28266#include <ctype.h>
28267#include <stdlib.h>
28268#if ((' ' & 0x0FF) == 0x020)
28269# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28270# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28271#else
28272# define ISLOWER(c) \
28273		   (('a' <= (c) && (c) <= 'i') \
28274		     || ('j' <= (c) && (c) <= 'r') \
28275		     || ('s' <= (c) && (c) <= 'z'))
28276# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28277#endif
28278
28279#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28280int
28281main ()
28282{
28283  int i;
28284  for (i = 0; i < 256; i++)
28285    if (XOR (islower (i), ISLOWER (i))
28286	|| toupper (i) != TOUPPER (i))
28287      return 2;
28288  return 0;
28289}
28290_ACEOF
28291rm -f conftest$ac_exeext
28292if { (ac_try="$ac_link"
28293case "(($ac_try" in
28294  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28295  *) ac_try_echo=$ac_try;;
28296esac
28297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28298  (eval "$ac_link") 2>&5
28299  ac_status=$?
28300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28301  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
28311  :
28312else
28313  echo "$as_me: program exited with status $ac_status" >&5
28314echo "$as_me: failed program was:" >&5
28315sed 's/^/| /' conftest.$ac_ext >&5
28316
28317( exit $ac_status )
28318ac_cv_header_stdc=no
28319fi
28320rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28321fi
28322
28323
28324fi
28325fi
28326{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28327echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28328if test $ac_cv_header_stdc = yes; then
28329
28330cat >>confdefs.h <<\_ACEOF
28331#define STDC_HEADERS 1
28332_ACEOF
28333
28334fi
28335
28336{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28337echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28338if test "${ac_cv_header_sys_wait_h+set}" = set; then
28339  echo $ECHO_N "(cached) $ECHO_C" >&6
28340else
28341  cat >conftest.$ac_ext <<_ACEOF
28342/* confdefs.h.  */
28343_ACEOF
28344cat confdefs.h >>conftest.$ac_ext
28345cat >>conftest.$ac_ext <<_ACEOF
28346/* end confdefs.h.  */
28347#include <sys/types.h>
28348#include <sys/wait.h>
28349#ifndef WEXITSTATUS
28350# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28351#endif
28352#ifndef WIFEXITED
28353# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28354#endif
28355
28356int
28357main ()
28358{
28359  int s;
28360  wait (&s);
28361  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28362  ;
28363  return 0;
28364}
28365_ACEOF
28366rm -f conftest.$ac_objext
28367if { (ac_try="$ac_compile"
28368case "(($ac_try" in
28369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28370  *) ac_try_echo=$ac_try;;
28371esac
28372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28373  (eval "$ac_compile") 2>conftest.er1
28374  ac_status=$?
28375  grep -v '^ *+' conftest.er1 >conftest.err
28376  rm -f conftest.er1
28377  cat conftest.err >&5
28378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28379  (exit $ac_status); } &&
28380	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28381  { (case "(($ac_try" in
28382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28383  *) ac_try_echo=$ac_try;;
28384esac
28385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28386  (eval "$ac_try") 2>&5
28387  ac_status=$?
28388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28389  (exit $ac_status); }; } &&
28390	 { ac_try='test -s conftest.$ac_objext'
28391  { (case "(($ac_try" in
28392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28393  *) ac_try_echo=$ac_try;;
28394esac
28395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28396  (eval "$ac_try") 2>&5
28397  ac_status=$?
28398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399  (exit $ac_status); }; }; then
28400  ac_cv_header_sys_wait_h=yes
28401else
28402  echo "$as_me: failed program was:" >&5
28403sed 's/^/| /' conftest.$ac_ext >&5
28404
28405	ac_cv_header_sys_wait_h=no
28406fi
28407
28408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28409fi
28410{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28411echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28412if test $ac_cv_header_sys_wait_h = yes; then
28413
28414cat >>confdefs.h <<\_ACEOF
28415#define HAVE_SYS_WAIT_H 1
28416_ACEOF
28417
28418fi
28419
28420{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28421echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28422if test "${ac_cv_header_time+set}" = set; then
28423  echo $ECHO_N "(cached) $ECHO_C" >&6
28424else
28425  cat >conftest.$ac_ext <<_ACEOF
28426/* confdefs.h.  */
28427_ACEOF
28428cat confdefs.h >>conftest.$ac_ext
28429cat >>conftest.$ac_ext <<_ACEOF
28430/* end confdefs.h.  */
28431#include <sys/types.h>
28432#include <sys/time.h>
28433#include <time.h>
28434
28435int
28436main ()
28437{
28438if ((struct tm *) 0)
28439return 0;
28440  ;
28441  return 0;
28442}
28443_ACEOF
28444rm -f conftest.$ac_objext
28445if { (ac_try="$ac_compile"
28446case "(($ac_try" in
28447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28448  *) ac_try_echo=$ac_try;;
28449esac
28450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28451  (eval "$ac_compile") 2>conftest.er1
28452  ac_status=$?
28453  grep -v '^ *+' conftest.er1 >conftest.err
28454  rm -f conftest.er1
28455  cat conftest.err >&5
28456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28457  (exit $ac_status); } &&
28458	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28459  { (case "(($ac_try" in
28460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28461  *) ac_try_echo=$ac_try;;
28462esac
28463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28464  (eval "$ac_try") 2>&5
28465  ac_status=$?
28466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28467  (exit $ac_status); }; } &&
28468	 { ac_try='test -s conftest.$ac_objext'
28469  { (case "(($ac_try" in
28470  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28471  *) ac_try_echo=$ac_try;;
28472esac
28473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28474  (eval "$ac_try") 2>&5
28475  ac_status=$?
28476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28477  (exit $ac_status); }; }; then
28478  ac_cv_header_time=yes
28479else
28480  echo "$as_me: failed program was:" >&5
28481sed 's/^/| /' conftest.$ac_ext >&5
28482
28483	ac_cv_header_time=no
28484fi
28485
28486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28487fi
28488{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28489echo "${ECHO_T}$ac_cv_header_time" >&6; }
28490if test $ac_cv_header_time = yes; then
28491
28492cat >>confdefs.h <<\_ACEOF
28493#define TIME_WITH_SYS_TIME 1
28494_ACEOF
28495
28496fi
28497
28498
28499
28500
28501
28502
28503
28504
28505for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28506do
28507as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28508if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28509  { echo "$as_me:$LINENO: checking for $ac_header" >&5
28510echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28511if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28512  echo $ECHO_N "(cached) $ECHO_C" >&6
28513fi
28514ac_res=`eval echo '${'$as_ac_Header'}'`
28515	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28516echo "${ECHO_T}$ac_res" >&6; }
28517else
28518  # Is the header compilable?
28519{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28520echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28521cat >conftest.$ac_ext <<_ACEOF
28522/* confdefs.h.  */
28523_ACEOF
28524cat confdefs.h >>conftest.$ac_ext
28525cat >>conftest.$ac_ext <<_ACEOF
28526/* end confdefs.h.  */
28527$ac_includes_default
28528#include <$ac_header>
28529_ACEOF
28530rm -f conftest.$ac_objext
28531if { (ac_try="$ac_compile"
28532case "(($ac_try" in
28533  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28534  *) ac_try_echo=$ac_try;;
28535esac
28536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28537  (eval "$ac_compile") 2>conftest.er1
28538  ac_status=$?
28539  grep -v '^ *+' conftest.er1 >conftest.err
28540  rm -f conftest.er1
28541  cat conftest.err >&5
28542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28543  (exit $ac_status); } &&
28544	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28545  { (case "(($ac_try" in
28546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28547  *) ac_try_echo=$ac_try;;
28548esac
28549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28550  (eval "$ac_try") 2>&5
28551  ac_status=$?
28552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28553  (exit $ac_status); }; } &&
28554	 { ac_try='test -s conftest.$ac_objext'
28555  { (case "(($ac_try" in
28556  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28557  *) ac_try_echo=$ac_try;;
28558esac
28559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28560  (eval "$ac_try") 2>&5
28561  ac_status=$?
28562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28563  (exit $ac_status); }; }; then
28564  ac_header_compiler=yes
28565else
28566  echo "$as_me: failed program was:" >&5
28567sed 's/^/| /' conftest.$ac_ext >&5
28568
28569	ac_header_compiler=no
28570fi
28571
28572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28573{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28574echo "${ECHO_T}$ac_header_compiler" >&6; }
28575
28576# Is the header present?
28577{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28578echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28579cat >conftest.$ac_ext <<_ACEOF
28580/* confdefs.h.  */
28581_ACEOF
28582cat confdefs.h >>conftest.$ac_ext
28583cat >>conftest.$ac_ext <<_ACEOF
28584/* end confdefs.h.  */
28585#include <$ac_header>
28586_ACEOF
28587if { (ac_try="$ac_cpp conftest.$ac_ext"
28588case "(($ac_try" in
28589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28590  *) ac_try_echo=$ac_try;;
28591esac
28592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28593  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28594  ac_status=$?
28595  grep -v '^ *+' conftest.er1 >conftest.err
28596  rm -f conftest.er1
28597  cat conftest.err >&5
28598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28599  (exit $ac_status); } >/dev/null; then
28600  if test -s conftest.err; then
28601    ac_cpp_err=$ac_c_preproc_warn_flag
28602    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28603  else
28604    ac_cpp_err=
28605  fi
28606else
28607  ac_cpp_err=yes
28608fi
28609if test -z "$ac_cpp_err"; then
28610  ac_header_preproc=yes
28611else
28612  echo "$as_me: failed program was:" >&5
28613sed 's/^/| /' conftest.$ac_ext >&5
28614
28615  ac_header_preproc=no
28616fi
28617
28618rm -f conftest.err conftest.$ac_ext
28619{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28620echo "${ECHO_T}$ac_header_preproc" >&6; }
28621
28622# So?  What about this header?
28623case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28624  yes:no: )
28625    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28626echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28627    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28628echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28629    ac_header_preproc=yes
28630    ;;
28631  no:yes:* )
28632    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28633echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28634    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28635echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28636    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28637echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28638    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28639echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28640    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28641echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28642    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28643echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28644    ( cat <<\_ASBOX
28645## ----------------------------------- ##
28646## Report this to llvmbugs@cs.uiuc.edu ##
28647## ----------------------------------- ##
28648_ASBOX
28649     ) | sed "s/^/$as_me: WARNING:     /" >&2
28650    ;;
28651esac
28652{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28653echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28654if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28655  echo $ECHO_N "(cached) $ECHO_C" >&6
28656else
28657  eval "$as_ac_Header=\$ac_header_preproc"
28658fi
28659ac_res=`eval echo '${'$as_ac_Header'}'`
28660	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28661echo "${ECHO_T}$ac_res" >&6; }
28662
28663fi
28664if test `eval echo '${'$as_ac_Header'}'` = yes; then
28665  cat >>confdefs.h <<_ACEOF
28666#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28667_ACEOF
28668
28669fi
28670
28671done
28672
28673
28674
28675
28676
28677
28678
28679for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28680do
28681as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28682if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28683  { echo "$as_me:$LINENO: checking for $ac_header" >&5
28684echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28685if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28686  echo $ECHO_N "(cached) $ECHO_C" >&6
28687fi
28688ac_res=`eval echo '${'$as_ac_Header'}'`
28689	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28690echo "${ECHO_T}$ac_res" >&6; }
28691else
28692  # Is the header compilable?
28693{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28694echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28695cat >conftest.$ac_ext <<_ACEOF
28696/* confdefs.h.  */
28697_ACEOF
28698cat confdefs.h >>conftest.$ac_ext
28699cat >>conftest.$ac_ext <<_ACEOF
28700/* end confdefs.h.  */
28701$ac_includes_default
28702#include <$ac_header>
28703_ACEOF
28704rm -f conftest.$ac_objext
28705if { (ac_try="$ac_compile"
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_compile") 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); } &&
28718	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28719  { (case "(($ac_try" in
28720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28721  *) ac_try_echo=$ac_try;;
28722esac
28723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28724  (eval "$ac_try") 2>&5
28725  ac_status=$?
28726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727  (exit $ac_status); }; } &&
28728	 { ac_try='test -s conftest.$ac_objext'
28729  { (case "(($ac_try" in
28730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28731  *) ac_try_echo=$ac_try;;
28732esac
28733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28734  (eval "$ac_try") 2>&5
28735  ac_status=$?
28736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28737  (exit $ac_status); }; }; then
28738  ac_header_compiler=yes
28739else
28740  echo "$as_me: failed program was:" >&5
28741sed 's/^/| /' conftest.$ac_ext >&5
28742
28743	ac_header_compiler=no
28744fi
28745
28746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28747{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28748echo "${ECHO_T}$ac_header_compiler" >&6; }
28749
28750# Is the header present?
28751{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28752echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28753cat >conftest.$ac_ext <<_ACEOF
28754/* confdefs.h.  */
28755_ACEOF
28756cat confdefs.h >>conftest.$ac_ext
28757cat >>conftest.$ac_ext <<_ACEOF
28758/* end confdefs.h.  */
28759#include <$ac_header>
28760_ACEOF
28761if { (ac_try="$ac_cpp conftest.$ac_ext"
28762case "(($ac_try" in
28763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28764  *) ac_try_echo=$ac_try;;
28765esac
28766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28767  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28768  ac_status=$?
28769  grep -v '^ *+' conftest.er1 >conftest.err
28770  rm -f conftest.er1
28771  cat conftest.err >&5
28772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28773  (exit $ac_status); } >/dev/null; then
28774  if test -s conftest.err; then
28775    ac_cpp_err=$ac_c_preproc_warn_flag
28776    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28777  else
28778    ac_cpp_err=
28779  fi
28780else
28781  ac_cpp_err=yes
28782fi
28783if test -z "$ac_cpp_err"; then
28784  ac_header_preproc=yes
28785else
28786  echo "$as_me: failed program was:" >&5
28787sed 's/^/| /' conftest.$ac_ext >&5
28788
28789  ac_header_preproc=no
28790fi
28791
28792rm -f conftest.err conftest.$ac_ext
28793{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28794echo "${ECHO_T}$ac_header_preproc" >&6; }
28795
28796# So?  What about this header?
28797case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28798  yes:no: )
28799    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28800echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28801    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28802echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28803    ac_header_preproc=yes
28804    ;;
28805  no:yes:* )
28806    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28807echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28808    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28809echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28810    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28811echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28812    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28813echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28814    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28815echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28816    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28817echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28818    ( cat <<\_ASBOX
28819## ----------------------------------- ##
28820## Report this to llvmbugs@cs.uiuc.edu ##
28821## ----------------------------------- ##
28822_ASBOX
28823     ) | sed "s/^/$as_me: WARNING:     /" >&2
28824    ;;
28825esac
28826{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28827echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28828if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28829  echo $ECHO_N "(cached) $ECHO_C" >&6
28830else
28831  eval "$as_ac_Header=\$ac_header_preproc"
28832fi
28833ac_res=`eval echo '${'$as_ac_Header'}'`
28834	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28835echo "${ECHO_T}$ac_res" >&6; }
28836
28837fi
28838if test `eval echo '${'$as_ac_Header'}'` = yes; then
28839  cat >>confdefs.h <<_ACEOF
28840#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28841_ACEOF
28842
28843fi
28844
28845done
28846
28847
28848
28849
28850
28851
28852for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
28853do
28854as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28855if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28856  { echo "$as_me:$LINENO: checking for $ac_header" >&5
28857echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28858if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28859  echo $ECHO_N "(cached) $ECHO_C" >&6
28860fi
28861ac_res=`eval echo '${'$as_ac_Header'}'`
28862	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28863echo "${ECHO_T}$ac_res" >&6; }
28864else
28865  # Is the header compilable?
28866{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28867echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28868cat >conftest.$ac_ext <<_ACEOF
28869/* confdefs.h.  */
28870_ACEOF
28871cat confdefs.h >>conftest.$ac_ext
28872cat >>conftest.$ac_ext <<_ACEOF
28873/* end confdefs.h.  */
28874$ac_includes_default
28875#include <$ac_header>
28876_ACEOF
28877rm -f conftest.$ac_objext
28878if { (ac_try="$ac_compile"
28879case "(($ac_try" in
28880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28881  *) ac_try_echo=$ac_try;;
28882esac
28883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28884  (eval "$ac_compile") 2>conftest.er1
28885  ac_status=$?
28886  grep -v '^ *+' conftest.er1 >conftest.err
28887  rm -f conftest.er1
28888  cat conftest.err >&5
28889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28890  (exit $ac_status); } &&
28891	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28892  { (case "(($ac_try" in
28893  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28894  *) ac_try_echo=$ac_try;;
28895esac
28896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28897  (eval "$ac_try") 2>&5
28898  ac_status=$?
28899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28900  (exit $ac_status); }; } &&
28901	 { ac_try='test -s conftest.$ac_objext'
28902  { (case "(($ac_try" in
28903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28904  *) ac_try_echo=$ac_try;;
28905esac
28906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28907  (eval "$ac_try") 2>&5
28908  ac_status=$?
28909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28910  (exit $ac_status); }; }; then
28911  ac_header_compiler=yes
28912else
28913  echo "$as_me: failed program was:" >&5
28914sed 's/^/| /' conftest.$ac_ext >&5
28915
28916	ac_header_compiler=no
28917fi
28918
28919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28920{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28921echo "${ECHO_T}$ac_header_compiler" >&6; }
28922
28923# Is the header present?
28924{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28925echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28926cat >conftest.$ac_ext <<_ACEOF
28927/* confdefs.h.  */
28928_ACEOF
28929cat confdefs.h >>conftest.$ac_ext
28930cat >>conftest.$ac_ext <<_ACEOF
28931/* end confdefs.h.  */
28932#include <$ac_header>
28933_ACEOF
28934if { (ac_try="$ac_cpp conftest.$ac_ext"
28935case "(($ac_try" in
28936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28937  *) ac_try_echo=$ac_try;;
28938esac
28939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28940  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28941  ac_status=$?
28942  grep -v '^ *+' conftest.er1 >conftest.err
28943  rm -f conftest.er1
28944  cat conftest.err >&5
28945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28946  (exit $ac_status); } >/dev/null; then
28947  if test -s conftest.err; then
28948    ac_cpp_err=$ac_c_preproc_warn_flag
28949    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28950  else
28951    ac_cpp_err=
28952  fi
28953else
28954  ac_cpp_err=yes
28955fi
28956if test -z "$ac_cpp_err"; then
28957  ac_header_preproc=yes
28958else
28959  echo "$as_me: failed program was:" >&5
28960sed 's/^/| /' conftest.$ac_ext >&5
28961
28962  ac_header_preproc=no
28963fi
28964
28965rm -f conftest.err conftest.$ac_ext
28966{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28967echo "${ECHO_T}$ac_header_preproc" >&6; }
28968
28969# So?  What about this header?
28970case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28971  yes:no: )
28972    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28973echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28974    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28975echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28976    ac_header_preproc=yes
28977    ;;
28978  no:yes:* )
28979    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28980echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28981    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28982echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28983    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28984echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28985    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28986echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28987    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28988echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28989    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28990echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28991    ( cat <<\_ASBOX
28992## ----------------------------------- ##
28993## Report this to llvmbugs@cs.uiuc.edu ##
28994## ----------------------------------- ##
28995_ASBOX
28996     ) | sed "s/^/$as_me: WARNING:     /" >&2
28997    ;;
28998esac
28999{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29000echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29001if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29002  echo $ECHO_N "(cached) $ECHO_C" >&6
29003else
29004  eval "$as_ac_Header=\$ac_header_preproc"
29005fi
29006ac_res=`eval echo '${'$as_ac_Header'}'`
29007	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29008echo "${ECHO_T}$ac_res" >&6; }
29009
29010fi
29011if test `eval echo '${'$as_ac_Header'}'` = yes; then
29012  cat >>confdefs.h <<_ACEOF
29013#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29014_ACEOF
29015
29016fi
29017
29018done
29019
29020
29021
29022
29023for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29024do
29025as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29026if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29027  { echo "$as_me:$LINENO: checking for $ac_header" >&5
29028echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29029if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29030  echo $ECHO_N "(cached) $ECHO_C" >&6
29031fi
29032ac_res=`eval echo '${'$as_ac_Header'}'`
29033	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29034echo "${ECHO_T}$ac_res" >&6; }
29035else
29036  # Is the header compilable?
29037{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29038echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29039cat >conftest.$ac_ext <<_ACEOF
29040/* confdefs.h.  */
29041_ACEOF
29042cat confdefs.h >>conftest.$ac_ext
29043cat >>conftest.$ac_ext <<_ACEOF
29044/* end confdefs.h.  */
29045$ac_includes_default
29046#include <$ac_header>
29047_ACEOF
29048rm -f conftest.$ac_objext
29049if { (ac_try="$ac_compile"
29050case "(($ac_try" in
29051  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29052  *) ac_try_echo=$ac_try;;
29053esac
29054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29055  (eval "$ac_compile") 2>conftest.er1
29056  ac_status=$?
29057  grep -v '^ *+' conftest.er1 >conftest.err
29058  rm -f conftest.er1
29059  cat conftest.err >&5
29060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29061  (exit $ac_status); } &&
29062	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29063  { (case "(($ac_try" in
29064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29065  *) ac_try_echo=$ac_try;;
29066esac
29067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29068  (eval "$ac_try") 2>&5
29069  ac_status=$?
29070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29071  (exit $ac_status); }; } &&
29072	 { ac_try='test -s conftest.$ac_objext'
29073  { (case "(($ac_try" in
29074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29075  *) ac_try_echo=$ac_try;;
29076esac
29077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29078  (eval "$ac_try") 2>&5
29079  ac_status=$?
29080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29081  (exit $ac_status); }; }; then
29082  ac_header_compiler=yes
29083else
29084  echo "$as_me: failed program was:" >&5
29085sed 's/^/| /' conftest.$ac_ext >&5
29086
29087	ac_header_compiler=no
29088fi
29089
29090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29091{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29092echo "${ECHO_T}$ac_header_compiler" >&6; }
29093
29094# Is the header present?
29095{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29096echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29097cat >conftest.$ac_ext <<_ACEOF
29098/* confdefs.h.  */
29099_ACEOF
29100cat confdefs.h >>conftest.$ac_ext
29101cat >>conftest.$ac_ext <<_ACEOF
29102/* end confdefs.h.  */
29103#include <$ac_header>
29104_ACEOF
29105if { (ac_try="$ac_cpp conftest.$ac_ext"
29106case "(($ac_try" in
29107  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29108  *) ac_try_echo=$ac_try;;
29109esac
29110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29111  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29112  ac_status=$?
29113  grep -v '^ *+' conftest.er1 >conftest.err
29114  rm -f conftest.er1
29115  cat conftest.err >&5
29116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29117  (exit $ac_status); } >/dev/null; then
29118  if test -s conftest.err; then
29119    ac_cpp_err=$ac_c_preproc_warn_flag
29120    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29121  else
29122    ac_cpp_err=
29123  fi
29124else
29125  ac_cpp_err=yes
29126fi
29127if test -z "$ac_cpp_err"; then
29128  ac_header_preproc=yes
29129else
29130  echo "$as_me: failed program was:" >&5
29131sed 's/^/| /' conftest.$ac_ext >&5
29132
29133  ac_header_preproc=no
29134fi
29135
29136rm -f conftest.err conftest.$ac_ext
29137{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29138echo "${ECHO_T}$ac_header_preproc" >&6; }
29139
29140# So?  What about this header?
29141case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29142  yes:no: )
29143    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29144echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29145    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29146echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29147    ac_header_preproc=yes
29148    ;;
29149  no:yes:* )
29150    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29151echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29152    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29153echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29154    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29155echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29156    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29157echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29158    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29159echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29160    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29161echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29162    ( cat <<\_ASBOX
29163## ----------------------------------- ##
29164## Report this to llvmbugs@cs.uiuc.edu ##
29165## ----------------------------------- ##
29166_ASBOX
29167     ) | sed "s/^/$as_me: WARNING:     /" >&2
29168    ;;
29169esac
29170{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29171echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29172if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29173  echo $ECHO_N "(cached) $ECHO_C" >&6
29174else
29175  eval "$as_ac_Header=\$ac_header_preproc"
29176fi
29177ac_res=`eval echo '${'$as_ac_Header'}'`
29178	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29179echo "${ECHO_T}$ac_res" >&6; }
29180
29181fi
29182if test `eval echo '${'$as_ac_Header'}'` = yes; then
29183  cat >>confdefs.h <<_ACEOF
29184#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29185_ACEOF
29186
29187fi
29188
29189done
29190
29191if test "$ENABLE_THREADS" -eq 1 ; then
29192  if test "${ac_cv_header_pthread_h+set}" = set; then
29193  { echo "$as_me:$LINENO: checking for pthread.h" >&5
29194echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29195if test "${ac_cv_header_pthread_h+set}" = set; then
29196  echo $ECHO_N "(cached) $ECHO_C" >&6
29197fi
29198{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29199echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
29200else
29201  # Is the header compilable?
29202{ echo "$as_me:$LINENO: checking pthread.h usability" >&5
29203echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
29204cat >conftest.$ac_ext <<_ACEOF
29205/* confdefs.h.  */
29206_ACEOF
29207cat confdefs.h >>conftest.$ac_ext
29208cat >>conftest.$ac_ext <<_ACEOF
29209/* end confdefs.h.  */
29210$ac_includes_default
29211#include <pthread.h>
29212_ACEOF
29213rm -f conftest.$ac_objext
29214if { (ac_try="$ac_compile"
29215case "(($ac_try" in
29216  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29217  *) ac_try_echo=$ac_try;;
29218esac
29219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29220  (eval "$ac_compile") 2>conftest.er1
29221  ac_status=$?
29222  grep -v '^ *+' conftest.er1 >conftest.err
29223  rm -f conftest.er1
29224  cat conftest.err >&5
29225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29226  (exit $ac_status); } &&
29227	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29228  { (case "(($ac_try" in
29229  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29230  *) ac_try_echo=$ac_try;;
29231esac
29232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29233  (eval "$ac_try") 2>&5
29234  ac_status=$?
29235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29236  (exit $ac_status); }; } &&
29237	 { ac_try='test -s conftest.$ac_objext'
29238  { (case "(($ac_try" in
29239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29240  *) ac_try_echo=$ac_try;;
29241esac
29242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29243  (eval "$ac_try") 2>&5
29244  ac_status=$?
29245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29246  (exit $ac_status); }; }; then
29247  ac_header_compiler=yes
29248else
29249  echo "$as_me: failed program was:" >&5
29250sed 's/^/| /' conftest.$ac_ext >&5
29251
29252	ac_header_compiler=no
29253fi
29254
29255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29256{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29257echo "${ECHO_T}$ac_header_compiler" >&6; }
29258
29259# Is the header present?
29260{ echo "$as_me:$LINENO: checking pthread.h presence" >&5
29261echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
29262cat >conftest.$ac_ext <<_ACEOF
29263/* confdefs.h.  */
29264_ACEOF
29265cat confdefs.h >>conftest.$ac_ext
29266cat >>conftest.$ac_ext <<_ACEOF
29267/* end confdefs.h.  */
29268#include <pthread.h>
29269_ACEOF
29270if { (ac_try="$ac_cpp conftest.$ac_ext"
29271case "(($ac_try" in
29272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29273  *) ac_try_echo=$ac_try;;
29274esac
29275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29276  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29277  ac_status=$?
29278  grep -v '^ *+' conftest.er1 >conftest.err
29279  rm -f conftest.er1
29280  cat conftest.err >&5
29281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29282  (exit $ac_status); } >/dev/null; then
29283  if test -s conftest.err; then
29284    ac_cpp_err=$ac_c_preproc_warn_flag
29285    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29286  else
29287    ac_cpp_err=
29288  fi
29289else
29290  ac_cpp_err=yes
29291fi
29292if test -z "$ac_cpp_err"; then
29293  ac_header_preproc=yes
29294else
29295  echo "$as_me: failed program was:" >&5
29296sed 's/^/| /' conftest.$ac_ext >&5
29297
29298  ac_header_preproc=no
29299fi
29300
29301rm -f conftest.err conftest.$ac_ext
29302{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29303echo "${ECHO_T}$ac_header_preproc" >&6; }
29304
29305# So?  What about this header?
29306case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29307  yes:no: )
29308    { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
29309echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29310    { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
29311echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
29312    ac_header_preproc=yes
29313    ;;
29314  no:yes:* )
29315    { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
29316echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
29317    { echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
29318echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
29319    { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
29320echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
29321    { echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
29322echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29323    { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
29324echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
29325    { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
29326echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
29327    ( cat <<\_ASBOX
29328## ----------------------------------- ##
29329## Report this to llvmbugs@cs.uiuc.edu ##
29330## ----------------------------------- ##
29331_ASBOX
29332     ) | sed "s/^/$as_me: WARNING:     /" >&2
29333    ;;
29334esac
29335{ echo "$as_me:$LINENO: checking for pthread.h" >&5
29336echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29337if test "${ac_cv_header_pthread_h+set}" = set; then
29338  echo $ECHO_N "(cached) $ECHO_C" >&6
29339else
29340  ac_cv_header_pthread_h=$ac_header_preproc
29341fi
29342{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29343echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
29344
29345fi
29346if test $ac_cv_header_pthread_h = yes; then
29347  HAVE_PTHREAD=1
29348
29349else
29350  HAVE_PTHREAD=0
29351
29352fi
29353
29354
29355else
29356  HAVE_PTHREAD=0
29357
29358fi
29359
29360
29361
29362  { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29363echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29364if test "${ac_cv_huge_val_sanity+set}" = set; then
29365  echo $ECHO_N "(cached) $ECHO_C" >&6
29366else
29367
29368    ac_ext=cpp
29369ac_cpp='$CXXCPP $CPPFLAGS'
29370ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29371ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29372ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29373
29374    CXXFLAGS=-pedantic
29375    if test "$cross_compiling" = yes; then
29376  ac_cv_huge_val_sanity=yes
29377else
29378  cat >conftest.$ac_ext <<_ACEOF
29379/* confdefs.h.  */
29380_ACEOF
29381cat confdefs.h >>conftest.$ac_ext
29382cat >>conftest.$ac_ext <<_ACEOF
29383/* end confdefs.h.  */
29384#include <math.h>
29385int
29386main ()
29387{
29388double x = HUGE_VAL; return x != x;
29389  ;
29390  return 0;
29391}
29392_ACEOF
29393rm -f conftest$ac_exeext
29394if { (ac_try="$ac_link"
29395case "(($ac_try" in
29396  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29397  *) ac_try_echo=$ac_try;;
29398esac
29399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29400  (eval "$ac_link") 2>&5
29401  ac_status=$?
29402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29404  { (case "(($ac_try" in
29405  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29406  *) ac_try_echo=$ac_try;;
29407esac
29408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29409  (eval "$ac_try") 2>&5
29410  ac_status=$?
29411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29412  (exit $ac_status); }; }; then
29413  ac_cv_huge_val_sanity=yes
29414else
29415  echo "$as_me: program exited with status $ac_status" >&5
29416echo "$as_me: failed program was:" >&5
29417sed 's/^/| /' conftest.$ac_ext >&5
29418
29419( exit $ac_status )
29420ac_cv_huge_val_sanity=no
29421fi
29422rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29423fi
29424
29425
29426    ac_ext=c
29427ac_cpp='$CPP $CPPFLAGS'
29428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29430ac_compiler_gnu=$ac_cv_c_compiler_gnu
29431
29432
29433fi
29434{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29435echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29436  HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29437
29438
29439{ echo "$as_me:$LINENO: checking for pid_t" >&5
29440echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29441if test "${ac_cv_type_pid_t+set}" = set; then
29442  echo $ECHO_N "(cached) $ECHO_C" >&6
29443else
29444  cat >conftest.$ac_ext <<_ACEOF
29445/* confdefs.h.  */
29446_ACEOF
29447cat confdefs.h >>conftest.$ac_ext
29448cat >>conftest.$ac_ext <<_ACEOF
29449/* end confdefs.h.  */
29450$ac_includes_default
29451typedef pid_t ac__type_new_;
29452int
29453main ()
29454{
29455if ((ac__type_new_ *) 0)
29456  return 0;
29457if (sizeof (ac__type_new_))
29458  return 0;
29459  ;
29460  return 0;
29461}
29462_ACEOF
29463rm -f conftest.$ac_objext
29464if { (ac_try="$ac_compile"
29465case "(($ac_try" in
29466  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29467  *) ac_try_echo=$ac_try;;
29468esac
29469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29470  (eval "$ac_compile") 2>conftest.er1
29471  ac_status=$?
29472  grep -v '^ *+' conftest.er1 >conftest.err
29473  rm -f conftest.er1
29474  cat conftest.err >&5
29475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29476  (exit $ac_status); } &&
29477	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29478  { (case "(($ac_try" in
29479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29480  *) ac_try_echo=$ac_try;;
29481esac
29482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29483  (eval "$ac_try") 2>&5
29484  ac_status=$?
29485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29486  (exit $ac_status); }; } &&
29487	 { ac_try='test -s conftest.$ac_objext'
29488  { (case "(($ac_try" in
29489  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29490  *) ac_try_echo=$ac_try;;
29491esac
29492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29493  (eval "$ac_try") 2>&5
29494  ac_status=$?
29495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29496  (exit $ac_status); }; }; then
29497  ac_cv_type_pid_t=yes
29498else
29499  echo "$as_me: failed program was:" >&5
29500sed 's/^/| /' conftest.$ac_ext >&5
29501
29502	ac_cv_type_pid_t=no
29503fi
29504
29505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29506fi
29507{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29508echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29509if test $ac_cv_type_pid_t = yes; then
29510  :
29511else
29512
29513cat >>confdefs.h <<_ACEOF
29514#define pid_t int
29515_ACEOF
29516
29517fi
29518
29519{ echo "$as_me:$LINENO: checking for size_t" >&5
29520echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29521if test "${ac_cv_type_size_t+set}" = set; then
29522  echo $ECHO_N "(cached) $ECHO_C" >&6
29523else
29524  cat >conftest.$ac_ext <<_ACEOF
29525/* confdefs.h.  */
29526_ACEOF
29527cat confdefs.h >>conftest.$ac_ext
29528cat >>conftest.$ac_ext <<_ACEOF
29529/* end confdefs.h.  */
29530$ac_includes_default
29531typedef size_t ac__type_new_;
29532int
29533main ()
29534{
29535if ((ac__type_new_ *) 0)
29536  return 0;
29537if (sizeof (ac__type_new_))
29538  return 0;
29539  ;
29540  return 0;
29541}
29542_ACEOF
29543rm -f conftest.$ac_objext
29544if { (ac_try="$ac_compile"
29545case "(($ac_try" in
29546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29547  *) ac_try_echo=$ac_try;;
29548esac
29549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29550  (eval "$ac_compile") 2>conftest.er1
29551  ac_status=$?
29552  grep -v '^ *+' conftest.er1 >conftest.err
29553  rm -f conftest.er1
29554  cat conftest.err >&5
29555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29556  (exit $ac_status); } &&
29557	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29558  { (case "(($ac_try" in
29559  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29560  *) ac_try_echo=$ac_try;;
29561esac
29562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29563  (eval "$ac_try") 2>&5
29564  ac_status=$?
29565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29566  (exit $ac_status); }; } &&
29567	 { ac_try='test -s conftest.$ac_objext'
29568  { (case "(($ac_try" in
29569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29570  *) ac_try_echo=$ac_try;;
29571esac
29572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29573  (eval "$ac_try") 2>&5
29574  ac_status=$?
29575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29576  (exit $ac_status); }; }; then
29577  ac_cv_type_size_t=yes
29578else
29579  echo "$as_me: failed program was:" >&5
29580sed 's/^/| /' conftest.$ac_ext >&5
29581
29582	ac_cv_type_size_t=no
29583fi
29584
29585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29586fi
29587{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29588echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29589if test $ac_cv_type_size_t = yes; then
29590  :
29591else
29592
29593cat >>confdefs.h <<_ACEOF
29594#define size_t unsigned int
29595_ACEOF
29596
29597fi
29598
29599{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29600echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29601if test "${ac_cv_type_signal+set}" = set; then
29602  echo $ECHO_N "(cached) $ECHO_C" >&6
29603else
29604  cat >conftest.$ac_ext <<_ACEOF
29605/* confdefs.h.  */
29606_ACEOF
29607cat confdefs.h >>conftest.$ac_ext
29608cat >>conftest.$ac_ext <<_ACEOF
29609/* end confdefs.h.  */
29610#include <sys/types.h>
29611#include <signal.h>
29612
29613int
29614main ()
29615{
29616return *(signal (0, 0)) (0) == 1;
29617  ;
29618  return 0;
29619}
29620_ACEOF
29621rm -f conftest.$ac_objext
29622if { (ac_try="$ac_compile"
29623case "(($ac_try" in
29624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29625  *) ac_try_echo=$ac_try;;
29626esac
29627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29628  (eval "$ac_compile") 2>conftest.er1
29629  ac_status=$?
29630  grep -v '^ *+' conftest.er1 >conftest.err
29631  rm -f conftest.er1
29632  cat conftest.err >&5
29633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29634  (exit $ac_status); } &&
29635	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29636  { (case "(($ac_try" in
29637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29638  *) ac_try_echo=$ac_try;;
29639esac
29640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29641  (eval "$ac_try") 2>&5
29642  ac_status=$?
29643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29644  (exit $ac_status); }; } &&
29645	 { ac_try='test -s conftest.$ac_objext'
29646  { (case "(($ac_try" in
29647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29648  *) ac_try_echo=$ac_try;;
29649esac
29650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29651  (eval "$ac_try") 2>&5
29652  ac_status=$?
29653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29654  (exit $ac_status); }; }; then
29655  ac_cv_type_signal=int
29656else
29657  echo "$as_me: failed program was:" >&5
29658sed 's/^/| /' conftest.$ac_ext >&5
29659
29660	ac_cv_type_signal=void
29661fi
29662
29663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29664fi
29665{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29666echo "${ECHO_T}$ac_cv_type_signal" >&6; }
29667
29668cat >>confdefs.h <<_ACEOF
29669#define RETSIGTYPE $ac_cv_type_signal
29670_ACEOF
29671
29672
29673{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29674echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
29675if test "${ac_cv_struct_tm+set}" = set; then
29676  echo $ECHO_N "(cached) $ECHO_C" >&6
29677else
29678  cat >conftest.$ac_ext <<_ACEOF
29679/* confdefs.h.  */
29680_ACEOF
29681cat confdefs.h >>conftest.$ac_ext
29682cat >>conftest.$ac_ext <<_ACEOF
29683/* end confdefs.h.  */
29684#include <sys/types.h>
29685#include <time.h>
29686
29687int
29688main ()
29689{
29690struct tm *tp; tp->tm_sec;
29691  ;
29692  return 0;
29693}
29694_ACEOF
29695rm -f conftest.$ac_objext
29696if { (ac_try="$ac_compile"
29697case "(($ac_try" in
29698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29699  *) ac_try_echo=$ac_try;;
29700esac
29701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29702  (eval "$ac_compile") 2>conftest.er1
29703  ac_status=$?
29704  grep -v '^ *+' conftest.er1 >conftest.err
29705  rm -f conftest.er1
29706  cat conftest.err >&5
29707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29708  (exit $ac_status); } &&
29709	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29710  { (case "(($ac_try" in
29711  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29712  *) ac_try_echo=$ac_try;;
29713esac
29714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29715  (eval "$ac_try") 2>&5
29716  ac_status=$?
29717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29718  (exit $ac_status); }; } &&
29719	 { ac_try='test -s conftest.$ac_objext'
29720  { (case "(($ac_try" in
29721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29722  *) ac_try_echo=$ac_try;;
29723esac
29724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29725  (eval "$ac_try") 2>&5
29726  ac_status=$?
29727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29728  (exit $ac_status); }; }; then
29729  ac_cv_struct_tm=time.h
29730else
29731  echo "$as_me: failed program was:" >&5
29732sed 's/^/| /' conftest.$ac_ext >&5
29733
29734	ac_cv_struct_tm=sys/time.h
29735fi
29736
29737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29738fi
29739{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29740echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
29741if test $ac_cv_struct_tm = sys/time.h; then
29742
29743cat >>confdefs.h <<\_ACEOF
29744#define TM_IN_SYS_TIME 1
29745_ACEOF
29746
29747fi
29748
29749{ echo "$as_me:$LINENO: checking for int64_t" >&5
29750echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
29751if test "${ac_cv_type_int64_t+set}" = set; then
29752  echo $ECHO_N "(cached) $ECHO_C" >&6
29753else
29754  cat >conftest.$ac_ext <<_ACEOF
29755/* confdefs.h.  */
29756_ACEOF
29757cat confdefs.h >>conftest.$ac_ext
29758cat >>conftest.$ac_ext <<_ACEOF
29759/* end confdefs.h.  */
29760$ac_includes_default
29761typedef int64_t ac__type_new_;
29762int
29763main ()
29764{
29765if ((ac__type_new_ *) 0)
29766  return 0;
29767if (sizeof (ac__type_new_))
29768  return 0;
29769  ;
29770  return 0;
29771}
29772_ACEOF
29773rm -f conftest.$ac_objext
29774if { (ac_try="$ac_compile"
29775case "(($ac_try" in
29776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29777  *) ac_try_echo=$ac_try;;
29778esac
29779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29780  (eval "$ac_compile") 2>conftest.er1
29781  ac_status=$?
29782  grep -v '^ *+' conftest.er1 >conftest.err
29783  rm -f conftest.er1
29784  cat conftest.err >&5
29785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29786  (exit $ac_status); } &&
29787	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29788  { (case "(($ac_try" in
29789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29790  *) ac_try_echo=$ac_try;;
29791esac
29792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29793  (eval "$ac_try") 2>&5
29794  ac_status=$?
29795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29796  (exit $ac_status); }; } &&
29797	 { ac_try='test -s conftest.$ac_objext'
29798  { (case "(($ac_try" in
29799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29800  *) ac_try_echo=$ac_try;;
29801esac
29802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29803  (eval "$ac_try") 2>&5
29804  ac_status=$?
29805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29806  (exit $ac_status); }; }; then
29807  ac_cv_type_int64_t=yes
29808else
29809  echo "$as_me: failed program was:" >&5
29810sed 's/^/| /' conftest.$ac_ext >&5
29811
29812	ac_cv_type_int64_t=no
29813fi
29814
29815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29816fi
29817{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
29818echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
29819if test $ac_cv_type_int64_t = yes; then
29820
29821cat >>confdefs.h <<_ACEOF
29822#define HAVE_INT64_T 1
29823_ACEOF
29824
29825
29826else
29827  { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
29828echo "$as_me: error: Type int64_t required but not found" >&2;}
29829   { (exit 1); exit 1; }; }
29830fi
29831
29832{ echo "$as_me:$LINENO: checking for uint64_t" >&5
29833echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
29834if test "${ac_cv_type_uint64_t+set}" = set; then
29835  echo $ECHO_N "(cached) $ECHO_C" >&6
29836else
29837  cat >conftest.$ac_ext <<_ACEOF
29838/* confdefs.h.  */
29839_ACEOF
29840cat confdefs.h >>conftest.$ac_ext
29841cat >>conftest.$ac_ext <<_ACEOF
29842/* end confdefs.h.  */
29843$ac_includes_default
29844typedef uint64_t ac__type_new_;
29845int
29846main ()
29847{
29848if ((ac__type_new_ *) 0)
29849  return 0;
29850if (sizeof (ac__type_new_))
29851  return 0;
29852  ;
29853  return 0;
29854}
29855_ACEOF
29856rm -f conftest.$ac_objext
29857if { (ac_try="$ac_compile"
29858case "(($ac_try" in
29859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29860  *) ac_try_echo=$ac_try;;
29861esac
29862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29863  (eval "$ac_compile") 2>conftest.er1
29864  ac_status=$?
29865  grep -v '^ *+' conftest.er1 >conftest.err
29866  rm -f conftest.er1
29867  cat conftest.err >&5
29868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29869  (exit $ac_status); } &&
29870	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29871  { (case "(($ac_try" in
29872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29873  *) ac_try_echo=$ac_try;;
29874esac
29875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29876  (eval "$ac_try") 2>&5
29877  ac_status=$?
29878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29879  (exit $ac_status); }; } &&
29880	 { ac_try='test -s conftest.$ac_objext'
29881  { (case "(($ac_try" in
29882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29883  *) ac_try_echo=$ac_try;;
29884esac
29885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29886  (eval "$ac_try") 2>&5
29887  ac_status=$?
29888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29889  (exit $ac_status); }; }; then
29890  ac_cv_type_uint64_t=yes
29891else
29892  echo "$as_me: failed program was:" >&5
29893sed 's/^/| /' conftest.$ac_ext >&5
29894
29895	ac_cv_type_uint64_t=no
29896fi
29897
29898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29899fi
29900{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
29901echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
29902if test $ac_cv_type_uint64_t = yes; then
29903
29904cat >>confdefs.h <<_ACEOF
29905#define HAVE_UINT64_T 1
29906_ACEOF
29907
29908
29909else
29910  { echo "$as_me:$LINENO: checking for u_int64_t" >&5
29911echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
29912if test "${ac_cv_type_u_int64_t+set}" = set; then
29913  echo $ECHO_N "(cached) $ECHO_C" >&6
29914else
29915  cat >conftest.$ac_ext <<_ACEOF
29916/* confdefs.h.  */
29917_ACEOF
29918cat confdefs.h >>conftest.$ac_ext
29919cat >>conftest.$ac_ext <<_ACEOF
29920/* end confdefs.h.  */
29921$ac_includes_default
29922typedef u_int64_t ac__type_new_;
29923int
29924main ()
29925{
29926if ((ac__type_new_ *) 0)
29927  return 0;
29928if (sizeof (ac__type_new_))
29929  return 0;
29930  ;
29931  return 0;
29932}
29933_ACEOF
29934rm -f conftest.$ac_objext
29935if { (ac_try="$ac_compile"
29936case "(($ac_try" in
29937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29938  *) ac_try_echo=$ac_try;;
29939esac
29940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29941  (eval "$ac_compile") 2>conftest.er1
29942  ac_status=$?
29943  grep -v '^ *+' conftest.er1 >conftest.err
29944  rm -f conftest.er1
29945  cat conftest.err >&5
29946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29947  (exit $ac_status); } &&
29948	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29949  { (case "(($ac_try" in
29950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29951  *) ac_try_echo=$ac_try;;
29952esac
29953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29954  (eval "$ac_try") 2>&5
29955  ac_status=$?
29956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29957  (exit $ac_status); }; } &&
29958	 { ac_try='test -s conftest.$ac_objext'
29959  { (case "(($ac_try" in
29960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29961  *) ac_try_echo=$ac_try;;
29962esac
29963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29964  (eval "$ac_try") 2>&5
29965  ac_status=$?
29966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29967  (exit $ac_status); }; }; then
29968  ac_cv_type_u_int64_t=yes
29969else
29970  echo "$as_me: failed program was:" >&5
29971sed 's/^/| /' conftest.$ac_ext >&5
29972
29973	ac_cv_type_u_int64_t=no
29974fi
29975
29976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29977fi
29978{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
29979echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
29980if test $ac_cv_type_u_int64_t = yes; then
29981
29982cat >>confdefs.h <<_ACEOF
29983#define HAVE_U_INT64_T 1
29984_ACEOF
29985
29986
29987else
29988  { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
29989echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
29990   { (exit 1); exit 1; }; }
29991fi
29992
29993fi
29994
29995
29996
29997
29998
29999
30000
30001
30002
30003
30004for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30005do
30006as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30007{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30008echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30009if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30010  echo $ECHO_N "(cached) $ECHO_C" >&6
30011else
30012  cat >conftest.$ac_ext <<_ACEOF
30013/* confdefs.h.  */
30014_ACEOF
30015cat confdefs.h >>conftest.$ac_ext
30016cat >>conftest.$ac_ext <<_ACEOF
30017/* end confdefs.h.  */
30018/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30019   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30020#define $ac_func innocuous_$ac_func
30021
30022/* System header to define __stub macros and hopefully few prototypes,
30023    which can conflict with char $ac_func (); below.
30024    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30025    <limits.h> exists even on freestanding compilers.  */
30026
30027#ifdef __STDC__
30028# include <limits.h>
30029#else
30030# include <assert.h>
30031#endif
30032
30033#undef $ac_func
30034
30035/* Override any GCC internal prototype to avoid an error.
30036   Use char because int might match the return type of a GCC
30037   builtin and then its argument prototype would still apply.  */
30038#ifdef __cplusplus
30039extern "C"
30040#endif
30041char $ac_func ();
30042/* The GNU C library defines this for functions which it implements
30043    to always fail with ENOSYS.  Some functions are actually named
30044    something starting with __ and the normal name is an alias.  */
30045#if defined __stub_$ac_func || defined __stub___$ac_func
30046choke me
30047#endif
30048
30049int
30050main ()
30051{
30052return $ac_func ();
30053  ;
30054  return 0;
30055}
30056_ACEOF
30057rm -f conftest.$ac_objext conftest$ac_exeext
30058if { (ac_try="$ac_link"
30059case "(($ac_try" in
30060  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30061  *) ac_try_echo=$ac_try;;
30062esac
30063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30064  (eval "$ac_link") 2>conftest.er1
30065  ac_status=$?
30066  grep -v '^ *+' conftest.er1 >conftest.err
30067  rm -f conftest.er1
30068  cat conftest.err >&5
30069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30070  (exit $ac_status); } &&
30071	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30072  { (case "(($ac_try" in
30073  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30074  *) ac_try_echo=$ac_try;;
30075esac
30076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30077  (eval "$ac_try") 2>&5
30078  ac_status=$?
30079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30080  (exit $ac_status); }; } &&
30081	 { ac_try='test -s conftest$ac_exeext'
30082  { (case "(($ac_try" in
30083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30084  *) ac_try_echo=$ac_try;;
30085esac
30086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30087  (eval "$ac_try") 2>&5
30088  ac_status=$?
30089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30090  (exit $ac_status); }; }; then
30091  eval "$as_ac_var=yes"
30092else
30093  echo "$as_me: failed program was:" >&5
30094sed 's/^/| /' conftest.$ac_ext >&5
30095
30096	eval "$as_ac_var=no"
30097fi
30098
30099rm -f core conftest.err conftest.$ac_objext \
30100      conftest$ac_exeext conftest.$ac_ext
30101fi
30102ac_res=`eval echo '${'$as_ac_var'}'`
30103	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30104echo "${ECHO_T}$ac_res" >&6; }
30105if test `eval echo '${'$as_ac_var'}'` = yes; then
30106  cat >>confdefs.h <<_ACEOF
30107#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30108_ACEOF
30109
30110fi
30111done
30112
30113
30114
30115
30116
30117
30118for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30119do
30120as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30121{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30122echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30123if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30124  echo $ECHO_N "(cached) $ECHO_C" >&6
30125else
30126  cat >conftest.$ac_ext <<_ACEOF
30127/* confdefs.h.  */
30128_ACEOF
30129cat confdefs.h >>conftest.$ac_ext
30130cat >>conftest.$ac_ext <<_ACEOF
30131/* end confdefs.h.  */
30132/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30133   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30134#define $ac_func innocuous_$ac_func
30135
30136/* System header to define __stub macros and hopefully few prototypes,
30137    which can conflict with char $ac_func (); below.
30138    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30139    <limits.h> exists even on freestanding compilers.  */
30140
30141#ifdef __STDC__
30142# include <limits.h>
30143#else
30144# include <assert.h>
30145#endif
30146
30147#undef $ac_func
30148
30149/* Override any GCC internal prototype to avoid an error.
30150   Use char because int might match the return type of a GCC
30151   builtin and then its argument prototype would still apply.  */
30152#ifdef __cplusplus
30153extern "C"
30154#endif
30155char $ac_func ();
30156/* The GNU C library defines this for functions which it implements
30157    to always fail with ENOSYS.  Some functions are actually named
30158    something starting with __ and the normal name is an alias.  */
30159#if defined __stub_$ac_func || defined __stub___$ac_func
30160choke me
30161#endif
30162
30163int
30164main ()
30165{
30166return $ac_func ();
30167  ;
30168  return 0;
30169}
30170_ACEOF
30171rm -f conftest.$ac_objext conftest$ac_exeext
30172if { (ac_try="$ac_link"
30173case "(($ac_try" in
30174  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30175  *) ac_try_echo=$ac_try;;
30176esac
30177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30178  (eval "$ac_link") 2>conftest.er1
30179  ac_status=$?
30180  grep -v '^ *+' conftest.er1 >conftest.err
30181  rm -f conftest.er1
30182  cat conftest.err >&5
30183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30184  (exit $ac_status); } &&
30185	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30186  { (case "(($ac_try" in
30187  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30188  *) ac_try_echo=$ac_try;;
30189esac
30190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30191  (eval "$ac_try") 2>&5
30192  ac_status=$?
30193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30194  (exit $ac_status); }; } &&
30195	 { ac_try='test -s conftest$ac_exeext'
30196  { (case "(($ac_try" in
30197  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30198  *) ac_try_echo=$ac_try;;
30199esac
30200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30201  (eval "$ac_try") 2>&5
30202  ac_status=$?
30203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30204  (exit $ac_status); }; }; then
30205  eval "$as_ac_var=yes"
30206else
30207  echo "$as_me: failed program was:" >&5
30208sed 's/^/| /' conftest.$ac_ext >&5
30209
30210	eval "$as_ac_var=no"
30211fi
30212
30213rm -f core conftest.err conftest.$ac_objext \
30214      conftest$ac_exeext conftest.$ac_ext
30215fi
30216ac_res=`eval echo '${'$as_ac_var'}'`
30217	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30218echo "${ECHO_T}$ac_res" >&6; }
30219if test `eval echo '${'$as_ac_var'}'` = yes; then
30220  cat >>confdefs.h <<_ACEOF
30221#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30222_ACEOF
30223
30224fi
30225done
30226
30227
30228
30229
30230for ac_func in isatty mkdtemp mkstemp
30231do
30232as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30233{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30234echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30235if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30236  echo $ECHO_N "(cached) $ECHO_C" >&6
30237else
30238  cat >conftest.$ac_ext <<_ACEOF
30239/* confdefs.h.  */
30240_ACEOF
30241cat confdefs.h >>conftest.$ac_ext
30242cat >>conftest.$ac_ext <<_ACEOF
30243/* end confdefs.h.  */
30244/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30245   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30246#define $ac_func innocuous_$ac_func
30247
30248/* System header to define __stub macros and hopefully few prototypes,
30249    which can conflict with char $ac_func (); below.
30250    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30251    <limits.h> exists even on freestanding compilers.  */
30252
30253#ifdef __STDC__
30254# include <limits.h>
30255#else
30256# include <assert.h>
30257#endif
30258
30259#undef $ac_func
30260
30261/* Override any GCC internal prototype to avoid an error.
30262   Use char because int might match the return type of a GCC
30263   builtin and then its argument prototype would still apply.  */
30264#ifdef __cplusplus
30265extern "C"
30266#endif
30267char $ac_func ();
30268/* The GNU C library defines this for functions which it implements
30269    to always fail with ENOSYS.  Some functions are actually named
30270    something starting with __ and the normal name is an alias.  */
30271#if defined __stub_$ac_func || defined __stub___$ac_func
30272choke me
30273#endif
30274
30275int
30276main ()
30277{
30278return $ac_func ();
30279  ;
30280  return 0;
30281}
30282_ACEOF
30283rm -f conftest.$ac_objext conftest$ac_exeext
30284if { (ac_try="$ac_link"
30285case "(($ac_try" in
30286  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30287  *) ac_try_echo=$ac_try;;
30288esac
30289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30290  (eval "$ac_link") 2>conftest.er1
30291  ac_status=$?
30292  grep -v '^ *+' conftest.er1 >conftest.err
30293  rm -f conftest.er1
30294  cat conftest.err >&5
30295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30296  (exit $ac_status); } &&
30297	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30298  { (case "(($ac_try" in
30299  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30300  *) ac_try_echo=$ac_try;;
30301esac
30302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30303  (eval "$ac_try") 2>&5
30304  ac_status=$?
30305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30306  (exit $ac_status); }; } &&
30307	 { ac_try='test -s conftest$ac_exeext'
30308  { (case "(($ac_try" in
30309  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30310  *) ac_try_echo=$ac_try;;
30311esac
30312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30313  (eval "$ac_try") 2>&5
30314  ac_status=$?
30315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30316  (exit $ac_status); }; }; then
30317  eval "$as_ac_var=yes"
30318else
30319  echo "$as_me: failed program was:" >&5
30320sed 's/^/| /' conftest.$ac_ext >&5
30321
30322	eval "$as_ac_var=no"
30323fi
30324
30325rm -f core conftest.err conftest.$ac_objext \
30326      conftest$ac_exeext conftest.$ac_ext
30327fi
30328ac_res=`eval echo '${'$as_ac_var'}'`
30329	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30330echo "${ECHO_T}$ac_res" >&6; }
30331if test `eval echo '${'$as_ac_var'}'` = yes; then
30332  cat >>confdefs.h <<_ACEOF
30333#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30334_ACEOF
30335
30336fi
30337done
30338
30339
30340
30341
30342
30343
30344
30345
30346for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30347do
30348as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30349{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30350echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30351if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30352  echo $ECHO_N "(cached) $ECHO_C" >&6
30353else
30354  cat >conftest.$ac_ext <<_ACEOF
30355/* confdefs.h.  */
30356_ACEOF
30357cat confdefs.h >>conftest.$ac_ext
30358cat >>conftest.$ac_ext <<_ACEOF
30359/* end confdefs.h.  */
30360/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30361   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30362#define $ac_func innocuous_$ac_func
30363
30364/* System header to define __stub macros and hopefully few prototypes,
30365    which can conflict with char $ac_func (); below.
30366    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30367    <limits.h> exists even on freestanding compilers.  */
30368
30369#ifdef __STDC__
30370# include <limits.h>
30371#else
30372# include <assert.h>
30373#endif
30374
30375#undef $ac_func
30376
30377/* Override any GCC internal prototype to avoid an error.
30378   Use char because int might match the return type of a GCC
30379   builtin and then its argument prototype would still apply.  */
30380#ifdef __cplusplus
30381extern "C"
30382#endif
30383char $ac_func ();
30384/* The GNU C library defines this for functions which it implements
30385    to always fail with ENOSYS.  Some functions are actually named
30386    something starting with __ and the normal name is an alias.  */
30387#if defined __stub_$ac_func || defined __stub___$ac_func
30388choke me
30389#endif
30390
30391int
30392main ()
30393{
30394return $ac_func ();
30395  ;
30396  return 0;
30397}
30398_ACEOF
30399rm -f conftest.$ac_objext conftest$ac_exeext
30400if { (ac_try="$ac_link"
30401case "(($ac_try" in
30402  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30403  *) ac_try_echo=$ac_try;;
30404esac
30405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30406  (eval "$ac_link") 2>conftest.er1
30407  ac_status=$?
30408  grep -v '^ *+' conftest.er1 >conftest.err
30409  rm -f conftest.er1
30410  cat conftest.err >&5
30411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30412  (exit $ac_status); } &&
30413	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30414  { (case "(($ac_try" in
30415  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30416  *) ac_try_echo=$ac_try;;
30417esac
30418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30419  (eval "$ac_try") 2>&5
30420  ac_status=$?
30421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30422  (exit $ac_status); }; } &&
30423	 { ac_try='test -s conftest$ac_exeext'
30424  { (case "(($ac_try" in
30425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30426  *) ac_try_echo=$ac_try;;
30427esac
30428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30429  (eval "$ac_try") 2>&5
30430  ac_status=$?
30431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30432  (exit $ac_status); }; }; then
30433  eval "$as_ac_var=yes"
30434else
30435  echo "$as_me: failed program was:" >&5
30436sed 's/^/| /' conftest.$ac_ext >&5
30437
30438	eval "$as_ac_var=no"
30439fi
30440
30441rm -f core conftest.err conftest.$ac_objext \
30442      conftest$ac_exeext conftest.$ac_ext
30443fi
30444ac_res=`eval echo '${'$as_ac_var'}'`
30445	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30446echo "${ECHO_T}$ac_res" >&6; }
30447if test `eval echo '${'$as_ac_var'}'` = yes; then
30448  cat >>confdefs.h <<_ACEOF
30449#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30450_ACEOF
30451
30452fi
30453done
30454
30455
30456
30457
30458
30459for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30460do
30461as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30462{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30463echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30464if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30465  echo $ECHO_N "(cached) $ECHO_C" >&6
30466else
30467  cat >conftest.$ac_ext <<_ACEOF
30468/* confdefs.h.  */
30469_ACEOF
30470cat confdefs.h >>conftest.$ac_ext
30471cat >>conftest.$ac_ext <<_ACEOF
30472/* end confdefs.h.  */
30473/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30474   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30475#define $ac_func innocuous_$ac_func
30476
30477/* System header to define __stub macros and hopefully few prototypes,
30478    which can conflict with char $ac_func (); below.
30479    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30480    <limits.h> exists even on freestanding compilers.  */
30481
30482#ifdef __STDC__
30483# include <limits.h>
30484#else
30485# include <assert.h>
30486#endif
30487
30488#undef $ac_func
30489
30490/* Override any GCC internal prototype to avoid an error.
30491   Use char because int might match the return type of a GCC
30492   builtin and then its argument prototype would still apply.  */
30493#ifdef __cplusplus
30494extern "C"
30495#endif
30496char $ac_func ();
30497/* The GNU C library defines this for functions which it implements
30498    to always fail with ENOSYS.  Some functions are actually named
30499    something starting with __ and the normal name is an alias.  */
30500#if defined __stub_$ac_func || defined __stub___$ac_func
30501choke me
30502#endif
30503
30504int
30505main ()
30506{
30507return $ac_func ();
30508  ;
30509  return 0;
30510}
30511_ACEOF
30512rm -f conftest.$ac_objext conftest$ac_exeext
30513if { (ac_try="$ac_link"
30514case "(($ac_try" in
30515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30516  *) ac_try_echo=$ac_try;;
30517esac
30518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30519  (eval "$ac_link") 2>conftest.er1
30520  ac_status=$?
30521  grep -v '^ *+' conftest.er1 >conftest.err
30522  rm -f conftest.er1
30523  cat conftest.err >&5
30524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30525  (exit $ac_status); } &&
30526	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30527  { (case "(($ac_try" in
30528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30529  *) ac_try_echo=$ac_try;;
30530esac
30531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30532  (eval "$ac_try") 2>&5
30533  ac_status=$?
30534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30535  (exit $ac_status); }; } &&
30536	 { ac_try='test -s conftest$ac_exeext'
30537  { (case "(($ac_try" in
30538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30539  *) ac_try_echo=$ac_try;;
30540esac
30541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30542  (eval "$ac_try") 2>&5
30543  ac_status=$?
30544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30545  (exit $ac_status); }; }; then
30546  eval "$as_ac_var=yes"
30547else
30548  echo "$as_me: failed program was:" >&5
30549sed 's/^/| /' conftest.$ac_ext >&5
30550
30551	eval "$as_ac_var=no"
30552fi
30553
30554rm -f core conftest.err conftest.$ac_objext \
30555      conftest$ac_exeext conftest.$ac_ext
30556fi
30557ac_res=`eval echo '${'$as_ac_var'}'`
30558	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30559echo "${ECHO_T}$ac_res" >&6; }
30560if test `eval echo '${'$as_ac_var'}'` = yes; then
30561  cat >>confdefs.h <<_ACEOF
30562#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30563_ACEOF
30564
30565fi
30566done
30567
30568
30569
30570
30571
30572for ac_func in setjmp longjmp sigsetjmp siglongjmp
30573do
30574as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30575{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30576echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30577if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30578  echo $ECHO_N "(cached) $ECHO_C" >&6
30579else
30580  cat >conftest.$ac_ext <<_ACEOF
30581/* confdefs.h.  */
30582_ACEOF
30583cat confdefs.h >>conftest.$ac_ext
30584cat >>conftest.$ac_ext <<_ACEOF
30585/* end confdefs.h.  */
30586/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30587   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30588#define $ac_func innocuous_$ac_func
30589
30590/* System header to define __stub macros and hopefully few prototypes,
30591    which can conflict with char $ac_func (); below.
30592    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30593    <limits.h> exists even on freestanding compilers.  */
30594
30595#ifdef __STDC__
30596# include <limits.h>
30597#else
30598# include <assert.h>
30599#endif
30600
30601#undef $ac_func
30602
30603/* Override any GCC internal prototype to avoid an error.
30604   Use char because int might match the return type of a GCC
30605   builtin and then its argument prototype would still apply.  */
30606#ifdef __cplusplus
30607extern "C"
30608#endif
30609char $ac_func ();
30610/* The GNU C library defines this for functions which it implements
30611    to always fail with ENOSYS.  Some functions are actually named
30612    something starting with __ and the normal name is an alias.  */
30613#if defined __stub_$ac_func || defined __stub___$ac_func
30614choke me
30615#endif
30616
30617int
30618main ()
30619{
30620return $ac_func ();
30621  ;
30622  return 0;
30623}
30624_ACEOF
30625rm -f conftest.$ac_objext conftest$ac_exeext
30626if { (ac_try="$ac_link"
30627case "(($ac_try" in
30628  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30629  *) ac_try_echo=$ac_try;;
30630esac
30631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30632  (eval "$ac_link") 2>conftest.er1
30633  ac_status=$?
30634  grep -v '^ *+' conftest.er1 >conftest.err
30635  rm -f conftest.er1
30636  cat conftest.err >&5
30637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30638  (exit $ac_status); } &&
30639	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30640  { (case "(($ac_try" in
30641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30642  *) ac_try_echo=$ac_try;;
30643esac
30644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30645  (eval "$ac_try") 2>&5
30646  ac_status=$?
30647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30648  (exit $ac_status); }; } &&
30649	 { ac_try='test -s conftest$ac_exeext'
30650  { (case "(($ac_try" in
30651  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30652  *) ac_try_echo=$ac_try;;
30653esac
30654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30655  (eval "$ac_try") 2>&5
30656  ac_status=$?
30657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30658  (exit $ac_status); }; }; then
30659  eval "$as_ac_var=yes"
30660else
30661  echo "$as_me: failed program was:" >&5
30662sed 's/^/| /' conftest.$ac_ext >&5
30663
30664	eval "$as_ac_var=no"
30665fi
30666
30667rm -f core conftest.err conftest.$ac_objext \
30668      conftest$ac_exeext conftest.$ac_ext
30669fi
30670ac_res=`eval echo '${'$as_ac_var'}'`
30671	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30672echo "${ECHO_T}$ac_res" >&6; }
30673if test `eval echo '${'$as_ac_var'}'` = yes; then
30674  cat >>confdefs.h <<_ACEOF
30675#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30676_ACEOF
30677
30678fi
30679done
30680
30681{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
30682echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
30683if test "${llvm_cv_c_printf_a+set}" = set; then
30684  echo $ECHO_N "(cached) $ECHO_C" >&6
30685else
30686  ac_ext=c
30687ac_cpp='$CPP $CPPFLAGS'
30688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30690ac_compiler_gnu=$ac_cv_c_compiler_gnu
30691
30692 if test "$cross_compiling" = yes; then
30693  llvmac_cv_c_printf_a=no
30694else
30695  cat >conftest.$ac_ext <<_ACEOF
30696
30697  /* confdefs.h.  */
30698_ACEOF
30699cat confdefs.h >>conftest.$ac_ext
30700cat >>conftest.$ac_ext <<_ACEOF
30701/* end confdefs.h.  */
30702
30703#include <stdio.h>
30704#include <stdlib.h>
30705
30706int
30707main ()
30708{
30709
30710volatile double A, B;
30711char Buffer[100];
30712A = 1;
30713A /= 10.0;
30714sprintf(Buffer, "%a", A);
30715B = atof(Buffer);
30716if (A != B)
30717  return (1);
30718if (A != 0x1.999999999999ap-4)
30719  return (1);
30720return (0);
30721  ;
30722  return 0;
30723}
30724_ACEOF
30725rm -f conftest$ac_exeext
30726if { (ac_try="$ac_link"
30727case "(($ac_try" in
30728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30729  *) ac_try_echo=$ac_try;;
30730esac
30731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30732  (eval "$ac_link") 2>&5
30733  ac_status=$?
30734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30735  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30736  { (case "(($ac_try" in
30737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30738  *) ac_try_echo=$ac_try;;
30739esac
30740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30741  (eval "$ac_try") 2>&5
30742  ac_status=$?
30743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30744  (exit $ac_status); }; }; then
30745  llvm_cv_c_printf_a=yes
30746else
30747  echo "$as_me: program exited with status $ac_status" >&5
30748echo "$as_me: failed program was:" >&5
30749sed 's/^/| /' conftest.$ac_ext >&5
30750
30751( exit $ac_status )
30752llvmac_cv_c_printf_a=no
30753fi
30754rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30755fi
30756
30757
30758 ac_ext=c
30759ac_cpp='$CPP $CPPFLAGS'
30760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30762ac_compiler_gnu=$ac_cv_c_compiler_gnu
30763
30764fi
30765{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
30766echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
30767 if test "$llvm_cv_c_printf_a" = "yes"; then
30768
30769cat >>confdefs.h <<\_ACEOF
30770#define HAVE_PRINTF_A 1
30771_ACEOF
30772
30773 fi
30774
30775# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30776# for constant arguments.  Useless!
30777{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
30778echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
30779if test "${ac_cv_working_alloca_h+set}" = set; then
30780  echo $ECHO_N "(cached) $ECHO_C" >&6
30781else
30782  cat >conftest.$ac_ext <<_ACEOF
30783/* confdefs.h.  */
30784_ACEOF
30785cat confdefs.h >>conftest.$ac_ext
30786cat >>conftest.$ac_ext <<_ACEOF
30787/* end confdefs.h.  */
30788#include <alloca.h>
30789int
30790main ()
30791{
30792char *p = (char *) alloca (2 * sizeof (int));
30793			  if (p) return 0;
30794  ;
30795  return 0;
30796}
30797_ACEOF
30798rm -f conftest.$ac_objext conftest$ac_exeext
30799if { (ac_try="$ac_link"
30800case "(($ac_try" in
30801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30802  *) ac_try_echo=$ac_try;;
30803esac
30804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30805  (eval "$ac_link") 2>conftest.er1
30806  ac_status=$?
30807  grep -v '^ *+' conftest.er1 >conftest.err
30808  rm -f conftest.er1
30809  cat conftest.err >&5
30810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30811  (exit $ac_status); } &&
30812	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30813  { (case "(($ac_try" in
30814  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30815  *) ac_try_echo=$ac_try;;
30816esac
30817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30818  (eval "$ac_try") 2>&5
30819  ac_status=$?
30820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30821  (exit $ac_status); }; } &&
30822	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
30832  ac_cv_working_alloca_h=yes
30833else
30834  echo "$as_me: failed program was:" >&5
30835sed 's/^/| /' conftest.$ac_ext >&5
30836
30837	ac_cv_working_alloca_h=no
30838fi
30839
30840rm -f core conftest.err conftest.$ac_objext \
30841      conftest$ac_exeext conftest.$ac_ext
30842fi
30843{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30844echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
30845if test $ac_cv_working_alloca_h = yes; then
30846
30847cat >>confdefs.h <<\_ACEOF
30848#define HAVE_ALLOCA_H 1
30849_ACEOF
30850
30851fi
30852
30853{ echo "$as_me:$LINENO: checking for alloca" >&5
30854echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
30855if test "${ac_cv_func_alloca_works+set}" = set; then
30856  echo $ECHO_N "(cached) $ECHO_C" >&6
30857else
30858  cat >conftest.$ac_ext <<_ACEOF
30859/* confdefs.h.  */
30860_ACEOF
30861cat confdefs.h >>conftest.$ac_ext
30862cat >>conftest.$ac_ext <<_ACEOF
30863/* end confdefs.h.  */
30864#ifdef __GNUC__
30865# define alloca __builtin_alloca
30866#else
30867# ifdef _MSC_VER
30868#  include <malloc.h>
30869#  define alloca _alloca
30870# else
30871#  if HAVE_ALLOCA_H
30872#   include <alloca.h>
30873#  else
30874#   ifdef _AIX
30875 #pragma alloca
30876#   else
30877#    ifndef alloca /* predefined by HP cc +Olibcalls */
30878char *alloca ();
30879#    endif
30880#   endif
30881#  endif
30882# endif
30883#endif
30884
30885int
30886main ()
30887{
30888char *p = (char *) alloca (1);
30889				    if (p) return 0;
30890  ;
30891  return 0;
30892}
30893_ACEOF
30894rm -f conftest.$ac_objext conftest$ac_exeext
30895if { (ac_try="$ac_link"
30896case "(($ac_try" in
30897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30898  *) ac_try_echo=$ac_try;;
30899esac
30900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30901  (eval "$ac_link") 2>conftest.er1
30902  ac_status=$?
30903  grep -v '^ *+' conftest.er1 >conftest.err
30904  rm -f conftest.er1
30905  cat conftest.err >&5
30906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30907  (exit $ac_status); } &&
30908	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30909  { (case "(($ac_try" in
30910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30911  *) ac_try_echo=$ac_try;;
30912esac
30913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30914  (eval "$ac_try") 2>&5
30915  ac_status=$?
30916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30917  (exit $ac_status); }; } &&
30918	 { ac_try='test -s conftest$ac_exeext'
30919  { (case "(($ac_try" in
30920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30921  *) ac_try_echo=$ac_try;;
30922esac
30923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30924  (eval "$ac_try") 2>&5
30925  ac_status=$?
30926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30927  (exit $ac_status); }; }; then
30928  ac_cv_func_alloca_works=yes
30929else
30930  echo "$as_me: failed program was:" >&5
30931sed 's/^/| /' conftest.$ac_ext >&5
30932
30933	ac_cv_func_alloca_works=no
30934fi
30935
30936rm -f core conftest.err conftest.$ac_objext \
30937      conftest$ac_exeext conftest.$ac_ext
30938fi
30939{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30940echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
30941
30942if test $ac_cv_func_alloca_works = yes; then
30943
30944cat >>confdefs.h <<\_ACEOF
30945#define HAVE_ALLOCA 1
30946_ACEOF
30947
30948else
30949  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30950# that cause trouble.  Some versions do not even contain alloca or
30951# contain a buggy version.  If you still want to use their alloca,
30952# use ar to extract alloca.o from them instead of compiling alloca.c.
30953
30954ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
30955
30956cat >>confdefs.h <<\_ACEOF
30957#define C_ALLOCA 1
30958_ACEOF
30959
30960
30961{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30962echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
30963if test "${ac_cv_os_cray+set}" = set; then
30964  echo $ECHO_N "(cached) $ECHO_C" >&6
30965else
30966  cat >conftest.$ac_ext <<_ACEOF
30967/* confdefs.h.  */
30968_ACEOF
30969cat confdefs.h >>conftest.$ac_ext
30970cat >>conftest.$ac_ext <<_ACEOF
30971/* end confdefs.h.  */
30972#if defined CRAY && ! defined CRAY2
30973webecray
30974#else
30975wenotbecray
30976#endif
30977
30978_ACEOF
30979if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30980  $EGREP "webecray" >/dev/null 2>&1; then
30981  ac_cv_os_cray=yes
30982else
30983  ac_cv_os_cray=no
30984fi
30985rm -f conftest*
30986
30987fi
30988{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
30989echo "${ECHO_T}$ac_cv_os_cray" >&6; }
30990if test $ac_cv_os_cray = yes; then
30991  for ac_func in _getb67 GETB67 getb67; do
30992    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30993{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30994echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30995if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30996  echo $ECHO_N "(cached) $ECHO_C" >&6
30997else
30998  cat >conftest.$ac_ext <<_ACEOF
30999/* confdefs.h.  */
31000_ACEOF
31001cat confdefs.h >>conftest.$ac_ext
31002cat >>conftest.$ac_ext <<_ACEOF
31003/* end confdefs.h.  */
31004/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31005   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31006#define $ac_func innocuous_$ac_func
31007
31008/* System header to define __stub macros and hopefully few prototypes,
31009    which can conflict with char $ac_func (); below.
31010    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31011    <limits.h> exists even on freestanding compilers.  */
31012
31013#ifdef __STDC__
31014# include <limits.h>
31015#else
31016# include <assert.h>
31017#endif
31018
31019#undef $ac_func
31020
31021/* Override any GCC internal prototype to avoid an error.
31022   Use char because int might match the return type of a GCC
31023   builtin and then its argument prototype would still apply.  */
31024#ifdef __cplusplus
31025extern "C"
31026#endif
31027char $ac_func ();
31028/* The GNU C library defines this for functions which it implements
31029    to always fail with ENOSYS.  Some functions are actually named
31030    something starting with __ and the normal name is an alias.  */
31031#if defined __stub_$ac_func || defined __stub___$ac_func
31032choke me
31033#endif
31034
31035int
31036main ()
31037{
31038return $ac_func ();
31039  ;
31040  return 0;
31041}
31042_ACEOF
31043rm -f conftest.$ac_objext conftest$ac_exeext
31044if { (ac_try="$ac_link"
31045case "(($ac_try" in
31046  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31047  *) ac_try_echo=$ac_try;;
31048esac
31049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31050  (eval "$ac_link") 2>conftest.er1
31051  ac_status=$?
31052  grep -v '^ *+' conftest.er1 >conftest.err
31053  rm -f conftest.er1
31054  cat conftest.err >&5
31055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31056  (exit $ac_status); } &&
31057	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31058  { (case "(($ac_try" in
31059  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31060  *) ac_try_echo=$ac_try;;
31061esac
31062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31063  (eval "$ac_try") 2>&5
31064  ac_status=$?
31065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31066  (exit $ac_status); }; } &&
31067	 { ac_try='test -s conftest$ac_exeext'
31068  { (case "(($ac_try" in
31069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31070  *) ac_try_echo=$ac_try;;
31071esac
31072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31073  (eval "$ac_try") 2>&5
31074  ac_status=$?
31075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31076  (exit $ac_status); }; }; then
31077  eval "$as_ac_var=yes"
31078else
31079  echo "$as_me: failed program was:" >&5
31080sed 's/^/| /' conftest.$ac_ext >&5
31081
31082	eval "$as_ac_var=no"
31083fi
31084
31085rm -f core conftest.err conftest.$ac_objext \
31086      conftest$ac_exeext conftest.$ac_ext
31087fi
31088ac_res=`eval echo '${'$as_ac_var'}'`
31089	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31090echo "${ECHO_T}$ac_res" >&6; }
31091if test `eval echo '${'$as_ac_var'}'` = yes; then
31092
31093cat >>confdefs.h <<_ACEOF
31094#define CRAY_STACKSEG_END $ac_func
31095_ACEOF
31096
31097    break
31098fi
31099
31100  done
31101fi
31102
31103{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31104echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31105if test "${ac_cv_c_stack_direction+set}" = set; then
31106  echo $ECHO_N "(cached) $ECHO_C" >&6
31107else
31108  if test "$cross_compiling" = yes; then
31109  ac_cv_c_stack_direction=0
31110else
31111  cat >conftest.$ac_ext <<_ACEOF
31112/* confdefs.h.  */
31113_ACEOF
31114cat confdefs.h >>conftest.$ac_ext
31115cat >>conftest.$ac_ext <<_ACEOF
31116/* end confdefs.h.  */
31117$ac_includes_default
31118int
31119find_stack_direction ()
31120{
31121  static char *addr = 0;
31122  auto char dummy;
31123  if (addr == 0)
31124    {
31125      addr = &dummy;
31126      return find_stack_direction ();
31127    }
31128  else
31129    return (&dummy > addr) ? 1 : -1;
31130}
31131
31132int
31133main ()
31134{
31135  return find_stack_direction () < 0;
31136}
31137_ACEOF
31138rm -f conftest$ac_exeext
31139if { (ac_try="$ac_link"
31140case "(($ac_try" in
31141  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31142  *) ac_try_echo=$ac_try;;
31143esac
31144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31145  (eval "$ac_link") 2>&5
31146  ac_status=$?
31147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31148  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31149  { (case "(($ac_try" in
31150  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31151  *) ac_try_echo=$ac_try;;
31152esac
31153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31154  (eval "$ac_try") 2>&5
31155  ac_status=$?
31156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31157  (exit $ac_status); }; }; then
31158  ac_cv_c_stack_direction=1
31159else
31160  echo "$as_me: program exited with status $ac_status" >&5
31161echo "$as_me: failed program was:" >&5
31162sed 's/^/| /' conftest.$ac_ext >&5
31163
31164( exit $ac_status )
31165ac_cv_c_stack_direction=-1
31166fi
31167rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31168fi
31169
31170
31171fi
31172{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31173echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31174
31175cat >>confdefs.h <<_ACEOF
31176#define STACK_DIRECTION $ac_cv_c_stack_direction
31177_ACEOF
31178
31179
31180fi
31181
31182
31183{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31184echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31185if test "${ac_cv_func_rand48+set}" = set; then
31186  echo $ECHO_N "(cached) $ECHO_C" >&6
31187else
31188  ac_ext=cpp
31189ac_cpp='$CXXCPP $CPPFLAGS'
31190ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31191ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31192ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31193
31194   cat >conftest.$ac_ext <<_ACEOF
31195/* confdefs.h.  */
31196_ACEOF
31197cat confdefs.h >>conftest.$ac_ext
31198cat >>conftest.$ac_ext <<_ACEOF
31199/* end confdefs.h.  */
31200#include <stdlib.h>
31201int
31202main ()
31203{
31204srand48(0);lrand48();drand48();
31205  ;
31206  return 0;
31207}
31208_ACEOF
31209rm -f conftest.$ac_objext
31210if { (ac_try="$ac_compile"
31211case "(($ac_try" in
31212  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31213  *) ac_try_echo=$ac_try;;
31214esac
31215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31216  (eval "$ac_compile") 2>conftest.er1
31217  ac_status=$?
31218  grep -v '^ *+' conftest.er1 >conftest.err
31219  rm -f conftest.er1
31220  cat conftest.err >&5
31221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31222  (exit $ac_status); } &&
31223	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31224  { (case "(($ac_try" in
31225  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31226  *) ac_try_echo=$ac_try;;
31227esac
31228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31229  (eval "$ac_try") 2>&5
31230  ac_status=$?
31231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31232  (exit $ac_status); }; } &&
31233	 { ac_try='test -s conftest.$ac_objext'
31234  { (case "(($ac_try" in
31235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31236  *) ac_try_echo=$ac_try;;
31237esac
31238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31239  (eval "$ac_try") 2>&5
31240  ac_status=$?
31241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31242  (exit $ac_status); }; }; then
31243  ac_cv_func_rand48=yes
31244else
31245  echo "$as_me: failed program was:" >&5
31246sed 's/^/| /' conftest.$ac_ext >&5
31247
31248	ac_cv_func_rand48=no
31249fi
31250
31251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31252  ac_ext=c
31253ac_cpp='$CPP $CPPFLAGS'
31254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31256ac_compiler_gnu=$ac_cv_c_compiler_gnu
31257
31258fi
31259{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31260echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31261
31262if test "$ac_cv_func_rand48" = "yes" ; then
31263
31264cat >>confdefs.h <<\_ACEOF
31265#define HAVE_RAND48 1
31266_ACEOF
31267
31268fi
31269
31270
31271{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31272echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31273if test "${ac_cv_cxx_namespaces+set}" = set; then
31274  echo $ECHO_N "(cached) $ECHO_C" >&6
31275else
31276  ac_ext=cpp
31277ac_cpp='$CXXCPP $CPPFLAGS'
31278ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31279ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31280ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31281
31282 cat >conftest.$ac_ext <<_ACEOF
31283/* confdefs.h.  */
31284_ACEOF
31285cat confdefs.h >>conftest.$ac_ext
31286cat >>conftest.$ac_ext <<_ACEOF
31287/* end confdefs.h.  */
31288namespace Outer { namespace Inner { int i = 0; }}
31289int
31290main ()
31291{
31292using namespace Outer::Inner; return i;
31293  ;
31294  return 0;
31295}
31296_ACEOF
31297rm -f conftest.$ac_objext
31298if { (ac_try="$ac_compile"
31299case "(($ac_try" in
31300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31301  *) ac_try_echo=$ac_try;;
31302esac
31303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31304  (eval "$ac_compile") 2>conftest.er1
31305  ac_status=$?
31306  grep -v '^ *+' conftest.er1 >conftest.err
31307  rm -f conftest.er1
31308  cat conftest.err >&5
31309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31310  (exit $ac_status); } &&
31311	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31312  { (case "(($ac_try" in
31313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31314  *) ac_try_echo=$ac_try;;
31315esac
31316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31317  (eval "$ac_try") 2>&5
31318  ac_status=$?
31319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31320  (exit $ac_status); }; } &&
31321	 { ac_try='test -s conftest.$ac_objext'
31322  { (case "(($ac_try" in
31323  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31324  *) ac_try_echo=$ac_try;;
31325esac
31326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31327  (eval "$ac_try") 2>&5
31328  ac_status=$?
31329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31330  (exit $ac_status); }; }; then
31331  ac_cv_cxx_namespaces=yes
31332else
31333  echo "$as_me: failed program was:" >&5
31334sed 's/^/| /' conftest.$ac_ext >&5
31335
31336	ac_cv_cxx_namespaces=no
31337fi
31338
31339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31340 ac_ext=c
31341ac_cpp='$CPP $CPPFLAGS'
31342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31344ac_compiler_gnu=$ac_cv_c_compiler_gnu
31345
31346
31347fi
31348{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31349echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31350if test "$ac_cv_cxx_namespaces" = yes; then
31351
31352cat >>confdefs.h <<\_ACEOF
31353#define HAVE_NAMESPACES
31354_ACEOF
31355
31356fi
31357
31358{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31359echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31360if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31361  echo $ECHO_N "(cached) $ECHO_C" >&6
31362else
31363
31364  ac_ext=cpp
31365ac_cpp='$CXXCPP $CPPFLAGS'
31366ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31367ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31368ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31369
31370  cat >conftest.$ac_ext <<_ACEOF
31371/* confdefs.h.  */
31372_ACEOF
31373cat confdefs.h >>conftest.$ac_ext
31374cat >>conftest.$ac_ext <<_ACEOF
31375/* end confdefs.h.  */
31376#include <ext/hash_map>
31377#ifdef HAVE_NAMESPACES
31378using namespace std;
31379#endif
31380int
31381main ()
31382{
31383hash_map<int, int> t;
31384  ;
31385  return 0;
31386}
31387_ACEOF
31388rm -f conftest.$ac_objext
31389if { (ac_try="$ac_compile"
31390case "(($ac_try" in
31391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31392  *) ac_try_echo=$ac_try;;
31393esac
31394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31395  (eval "$ac_compile") 2>conftest.er1
31396  ac_status=$?
31397  grep -v '^ *+' conftest.er1 >conftest.err
31398  rm -f conftest.er1
31399  cat conftest.err >&5
31400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31401  (exit $ac_status); } &&
31402	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31403  { (case "(($ac_try" in
31404  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31405  *) ac_try_echo=$ac_try;;
31406esac
31407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31408  (eval "$ac_try") 2>&5
31409  ac_status=$?
31410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31411  (exit $ac_status); }; } &&
31412	 { ac_try='test -s conftest.$ac_objext'
31413  { (case "(($ac_try" in
31414  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31415  *) ac_try_echo=$ac_try;;
31416esac
31417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31418  (eval "$ac_try") 2>&5
31419  ac_status=$?
31420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31421  (exit $ac_status); }; }; then
31422  ac_cv_cxx_have_std_ext_hash_map=yes
31423else
31424  echo "$as_me: failed program was:" >&5
31425sed 's/^/| /' conftest.$ac_ext >&5
31426
31427	ac_cv_cxx_have_std_ext_hash_map=no
31428fi
31429
31430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31431  ac_ext=c
31432ac_cpp='$CPP $CPPFLAGS'
31433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31435ac_compiler_gnu=$ac_cv_c_compiler_gnu
31436
31437fi
31438{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31439echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31440 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31441 then
31442
31443cat >>confdefs.h <<\_ACEOF
31444#define HAVE_STD_EXT_HASH_MAP 1
31445_ACEOF
31446
31447 else
31448
31449cat >>confdefs.h <<\_ACEOF
31450#define HAVE_STD_EXT_HASH_MAP 0
31451_ACEOF
31452
31453 fi
31454
31455 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31456echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31457if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31458  echo $ECHO_N "(cached) $ECHO_C" >&6
31459else
31460
31461  ac_ext=cpp
31462ac_cpp='$CXXCPP $CPPFLAGS'
31463ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31464ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31465ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31466
31467  cat >conftest.$ac_ext <<_ACEOF
31468/* confdefs.h.  */
31469_ACEOF
31470cat confdefs.h >>conftest.$ac_ext
31471cat >>conftest.$ac_ext <<_ACEOF
31472/* end confdefs.h.  */
31473#include <ext/hash_map>
31474#ifdef HAVE_NAMESPACES
31475using namespace __gnu_cxx;
31476#endif
31477int
31478main ()
31479{
31480hash_map<int,int> t;
31481  ;
31482  return 0;
31483}
31484_ACEOF
31485rm -f conftest.$ac_objext
31486if { (ac_try="$ac_compile"
31487case "(($ac_try" in
31488  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31489  *) ac_try_echo=$ac_try;;
31490esac
31491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31492  (eval "$ac_compile") 2>conftest.er1
31493  ac_status=$?
31494  grep -v '^ *+' conftest.er1 >conftest.err
31495  rm -f conftest.er1
31496  cat conftest.err >&5
31497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31498  (exit $ac_status); } &&
31499	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31500  { (case "(($ac_try" in
31501  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31502  *) ac_try_echo=$ac_try;;
31503esac
31504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31505  (eval "$ac_try") 2>&5
31506  ac_status=$?
31507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31508  (exit $ac_status); }; } &&
31509	 { ac_try='test -s conftest.$ac_objext'
31510  { (case "(($ac_try" in
31511  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31512  *) ac_try_echo=$ac_try;;
31513esac
31514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31515  (eval "$ac_try") 2>&5
31516  ac_status=$?
31517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31518  (exit $ac_status); }; }; then
31519  ac_cv_cxx_have_gnu_ext_hash_map=yes
31520else
31521  echo "$as_me: failed program was:" >&5
31522sed 's/^/| /' conftest.$ac_ext >&5
31523
31524	ac_cv_cxx_have_gnu_ext_hash_map=no
31525fi
31526
31527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31528  ac_ext=c
31529ac_cpp='$CPP $CPPFLAGS'
31530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31532ac_compiler_gnu=$ac_cv_c_compiler_gnu
31533
31534fi
31535{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31536echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
31537 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31538 then
31539
31540cat >>confdefs.h <<\_ACEOF
31541#define HAVE_GNU_EXT_HASH_MAP 1
31542_ACEOF
31543
31544 else
31545
31546cat >>confdefs.h <<\_ACEOF
31547#define HAVE_GNU_EXT_HASH_MAP 0
31548_ACEOF
31549
31550 fi
31551
31552 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31553echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
31554if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31555  echo $ECHO_N "(cached) $ECHO_C" >&6
31556else
31557
31558  ac_ext=cpp
31559ac_cpp='$CXXCPP $CPPFLAGS'
31560ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31561ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31562ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31563
31564  cat >conftest.$ac_ext <<_ACEOF
31565/* confdefs.h.  */
31566_ACEOF
31567cat confdefs.h >>conftest.$ac_ext
31568cat >>conftest.$ac_ext <<_ACEOF
31569/* end confdefs.h.  */
31570#include <hash_map>
31571int
31572main ()
31573{
31574hash_map<int,int> t;
31575  ;
31576  return 0;
31577}
31578_ACEOF
31579rm -f conftest.$ac_objext
31580if { (ac_try="$ac_compile"
31581case "(($ac_try" in
31582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31583  *) ac_try_echo=$ac_try;;
31584esac
31585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31586  (eval "$ac_compile") 2>conftest.er1
31587  ac_status=$?
31588  grep -v '^ *+' conftest.er1 >conftest.err
31589  rm -f conftest.er1
31590  cat conftest.err >&5
31591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31592  (exit $ac_status); } &&
31593	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31594  { (case "(($ac_try" in
31595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31596  *) ac_try_echo=$ac_try;;
31597esac
31598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31599  (eval "$ac_try") 2>&5
31600  ac_status=$?
31601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31602  (exit $ac_status); }; } &&
31603	 { ac_try='test -s conftest.$ac_objext'
31604  { (case "(($ac_try" in
31605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31606  *) ac_try_echo=$ac_try;;
31607esac
31608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31609  (eval "$ac_try") 2>&5
31610  ac_status=$?
31611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31612  (exit $ac_status); }; }; then
31613  ac_cv_cxx_have_global_hash_map=yes
31614else
31615  echo "$as_me: failed program was:" >&5
31616sed 's/^/| /' conftest.$ac_ext >&5
31617
31618	ac_cv_cxx_have_global_hash_map=no
31619fi
31620
31621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31622  ac_ext=c
31623ac_cpp='$CPP $CPPFLAGS'
31624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31626ac_compiler_gnu=$ac_cv_c_compiler_gnu
31627
31628fi
31629{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
31630echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
31631 if test "$ac_cv_cxx_have_global_hash_map" = yes
31632 then
31633
31634cat >>confdefs.h <<\_ACEOF
31635#define HAVE_GLOBAL_HASH_MAP 1
31636_ACEOF
31637
31638 else
31639
31640cat >>confdefs.h <<\_ACEOF
31641#define HAVE_GLOBAL_HASH_MAP 0
31642_ACEOF
31643
31644 fi
31645
31646{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
31647echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
31648if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
31649  echo $ECHO_N "(cached) $ECHO_C" >&6
31650else
31651
31652  ac_ext=cpp
31653ac_cpp='$CXXCPP $CPPFLAGS'
31654ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31655ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31656ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31657
31658  cat >conftest.$ac_ext <<_ACEOF
31659/* confdefs.h.  */
31660_ACEOF
31661cat confdefs.h >>conftest.$ac_ext
31662cat >>conftest.$ac_ext <<_ACEOF
31663/* end confdefs.h.  */
31664#include <ext/hash_set>
31665#ifdef HAVE_NAMESPACES
31666using namespace std;
31667#endif
31668int
31669main ()
31670{
31671hash_set<int> t;
31672  ;
31673  return 0;
31674}
31675_ACEOF
31676rm -f conftest.$ac_objext
31677if { (ac_try="$ac_compile"
31678case "(($ac_try" in
31679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31680  *) ac_try_echo=$ac_try;;
31681esac
31682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31683  (eval "$ac_compile") 2>conftest.er1
31684  ac_status=$?
31685  grep -v '^ *+' conftest.er1 >conftest.err
31686  rm -f conftest.er1
31687  cat conftest.err >&5
31688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31689  (exit $ac_status); } &&
31690	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31691  { (case "(($ac_try" in
31692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31693  *) ac_try_echo=$ac_try;;
31694esac
31695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31696  (eval "$ac_try") 2>&5
31697  ac_status=$?
31698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31699  (exit $ac_status); }; } &&
31700	 { ac_try='test -s conftest.$ac_objext'
31701  { (case "(($ac_try" in
31702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31703  *) ac_try_echo=$ac_try;;
31704esac
31705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31706  (eval "$ac_try") 2>&5
31707  ac_status=$?
31708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31709  (exit $ac_status); }; }; then
31710  ac_cv_cxx_have_std_ext_hash_set=yes
31711else
31712  echo "$as_me: failed program was:" >&5
31713sed 's/^/| /' conftest.$ac_ext >&5
31714
31715	ac_cv_cxx_have_std_ext_hash_set=no
31716fi
31717
31718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31719  ac_ext=c
31720ac_cpp='$CPP $CPPFLAGS'
31721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31723ac_compiler_gnu=$ac_cv_c_compiler_gnu
31724
31725fi
31726{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
31727echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
31728 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
31729 then
31730
31731cat >>confdefs.h <<\_ACEOF
31732#define HAVE_STD_EXT_HASH_SET 1
31733_ACEOF
31734
31735 else
31736
31737cat >>confdefs.h <<\_ACEOF
31738#define HAVE_STD_EXT_HASH_SET 0
31739_ACEOF
31740
31741 fi
31742
31743 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
31744echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
31745if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
31746  echo $ECHO_N "(cached) $ECHO_C" >&6
31747else
31748
31749  ac_ext=cpp
31750ac_cpp='$CXXCPP $CPPFLAGS'
31751ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31752ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31753ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31754
31755  cat >conftest.$ac_ext <<_ACEOF
31756/* confdefs.h.  */
31757_ACEOF
31758cat confdefs.h >>conftest.$ac_ext
31759cat >>conftest.$ac_ext <<_ACEOF
31760/* end confdefs.h.  */
31761#include <ext/hash_set>
31762#ifdef HAVE_NAMESPACES
31763using namespace __gnu_cxx;
31764#endif
31765int
31766main ()
31767{
31768hash_set<int> t;
31769  ;
31770  return 0;
31771}
31772_ACEOF
31773rm -f conftest.$ac_objext
31774if { (ac_try="$ac_compile"
31775case "(($ac_try" in
31776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31777  *) ac_try_echo=$ac_try;;
31778esac
31779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31780  (eval "$ac_compile") 2>conftest.er1
31781  ac_status=$?
31782  grep -v '^ *+' conftest.er1 >conftest.err
31783  rm -f conftest.er1
31784  cat conftest.err >&5
31785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31786  (exit $ac_status); } &&
31787	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31788  { (case "(($ac_try" in
31789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31790  *) ac_try_echo=$ac_try;;
31791esac
31792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31793  (eval "$ac_try") 2>&5
31794  ac_status=$?
31795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31796  (exit $ac_status); }; } &&
31797	 { ac_try='test -s conftest.$ac_objext'
31798  { (case "(($ac_try" in
31799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31800  *) ac_try_echo=$ac_try;;
31801esac
31802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31803  (eval "$ac_try") 2>&5
31804  ac_status=$?
31805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31806  (exit $ac_status); }; }; then
31807  ac_cv_cxx_have_gnu_ext_hash_set=yes
31808else
31809  echo "$as_me: failed program was:" >&5
31810sed 's/^/| /' conftest.$ac_ext >&5
31811
31812	ac_cv_cxx_have_gnu_ext_hash_set=no
31813fi
31814
31815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31816  ac_ext=c
31817ac_cpp='$CPP $CPPFLAGS'
31818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31820ac_compiler_gnu=$ac_cv_c_compiler_gnu
31821
31822fi
31823{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
31824echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
31825 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
31826 then
31827
31828cat >>confdefs.h <<\_ACEOF
31829#define HAVE_GNU_EXT_HASH_SET 1
31830_ACEOF
31831
31832 else
31833
31834cat >>confdefs.h <<\_ACEOF
31835#define HAVE_GNU_EXT_HASH_SET 0
31836_ACEOF
31837
31838 fi
31839
31840 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
31841echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
31842if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
31843  echo $ECHO_N "(cached) $ECHO_C" >&6
31844else
31845
31846  ac_ext=cpp
31847ac_cpp='$CXXCPP $CPPFLAGS'
31848ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31849ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31850ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31851
31852  cat >conftest.$ac_ext <<_ACEOF
31853/* confdefs.h.  */
31854_ACEOF
31855cat confdefs.h >>conftest.$ac_ext
31856cat >>conftest.$ac_ext <<_ACEOF
31857/* end confdefs.h.  */
31858#include <hash_set>
31859int
31860main ()
31861{
31862hash_set<int> t; return 0;
31863  ;
31864  return 0;
31865}
31866_ACEOF
31867rm -f conftest.$ac_objext
31868if { (ac_try="$ac_compile"
31869case "(($ac_try" in
31870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31871  *) ac_try_echo=$ac_try;;
31872esac
31873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31874  (eval "$ac_compile") 2>conftest.er1
31875  ac_status=$?
31876  grep -v '^ *+' conftest.er1 >conftest.err
31877  rm -f conftest.er1
31878  cat conftest.err >&5
31879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31880  (exit $ac_status); } &&
31881	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31882  { (case "(($ac_try" in
31883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31884  *) ac_try_echo=$ac_try;;
31885esac
31886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31887  (eval "$ac_try") 2>&5
31888  ac_status=$?
31889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31890  (exit $ac_status); }; } &&
31891	 { ac_try='test -s conftest.$ac_objext'
31892  { (case "(($ac_try" in
31893  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31894  *) ac_try_echo=$ac_try;;
31895esac
31896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31897  (eval "$ac_try") 2>&5
31898  ac_status=$?
31899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31900  (exit $ac_status); }; }; then
31901  ac_cv_cxx_have_global_hash_set=yes
31902else
31903  echo "$as_me: failed program was:" >&5
31904sed 's/^/| /' conftest.$ac_ext >&5
31905
31906	ac_cv_cxx_have_global_hash_set=no
31907fi
31908
31909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31910  ac_ext=c
31911ac_cpp='$CPP $CPPFLAGS'
31912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31914ac_compiler_gnu=$ac_cv_c_compiler_gnu
31915
31916fi
31917{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
31918echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
31919 if test "$ac_cv_cxx_have_global_hash_set" = yes
31920 then
31921
31922cat >>confdefs.h <<\_ACEOF
31923#define HAVE_GLOBAL_HASH_SET 1
31924_ACEOF
31925
31926 else
31927
31928cat >>confdefs.h <<\_ACEOF
31929#define HAVE_GLOBAL_HASH_SET 0
31930_ACEOF
31931
31932 fi
31933
31934{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
31935echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
31936if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
31937  echo $ECHO_N "(cached) $ECHO_C" >&6
31938else
31939
31940  ac_ext=cpp
31941ac_cpp='$CXXCPP $CPPFLAGS'
31942ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31943ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31944ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31945
31946  cat >conftest.$ac_ext <<_ACEOF
31947/* confdefs.h.  */
31948_ACEOF
31949cat confdefs.h >>conftest.$ac_ext
31950cat >>conftest.$ac_ext <<_ACEOF
31951/* end confdefs.h.  */
31952#include <iterator>
31953#ifdef HAVE_NAMESPACES
31954using namespace std;
31955#endif
31956int
31957main ()
31958{
31959iterator<int,int,int> t; return 0;
31960  ;
31961  return 0;
31962}
31963_ACEOF
31964rm -f conftest.$ac_objext
31965if { (ac_try="$ac_compile"
31966case "(($ac_try" in
31967  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31968  *) ac_try_echo=$ac_try;;
31969esac
31970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31971  (eval "$ac_compile") 2>conftest.er1
31972  ac_status=$?
31973  grep -v '^ *+' conftest.er1 >conftest.err
31974  rm -f conftest.er1
31975  cat conftest.err >&5
31976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31977  (exit $ac_status); } &&
31978	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31979  { (case "(($ac_try" in
31980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31981  *) ac_try_echo=$ac_try;;
31982esac
31983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31984  (eval "$ac_try") 2>&5
31985  ac_status=$?
31986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31987  (exit $ac_status); }; } &&
31988	 { ac_try='test -s conftest.$ac_objext'
31989  { (case "(($ac_try" in
31990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31991  *) ac_try_echo=$ac_try;;
31992esac
31993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31994  (eval "$ac_try") 2>&5
31995  ac_status=$?
31996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31997  (exit $ac_status); }; }; then
31998  ac_cv_cxx_have_std_iterator=yes
31999else
32000  echo "$as_me: failed program was:" >&5
32001sed 's/^/| /' conftest.$ac_ext >&5
32002
32003	ac_cv_cxx_have_std_iterator=no
32004fi
32005
32006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32007  ac_ext=c
32008ac_cpp='$CPP $CPPFLAGS'
32009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32011ac_compiler_gnu=$ac_cv_c_compiler_gnu
32012
32013
32014fi
32015{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32016echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32017if test "$ac_cv_cxx_have_std_iterator" = yes
32018then
32019
32020cat >>confdefs.h <<\_ACEOF
32021#define HAVE_STD_ITERATOR 1
32022_ACEOF
32023
32024else
32025
32026cat >>confdefs.h <<\_ACEOF
32027#define HAVE_STD_ITERATOR 0
32028_ACEOF
32029
32030fi
32031
32032{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32033echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32034if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32035  echo $ECHO_N "(cached) $ECHO_C" >&6
32036else
32037
32038  ac_ext=cpp
32039ac_cpp='$CXXCPP $CPPFLAGS'
32040ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32041ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32042ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32043
32044  cat >conftest.$ac_ext <<_ACEOF
32045/* confdefs.h.  */
32046_ACEOF
32047cat confdefs.h >>conftest.$ac_ext
32048cat >>conftest.$ac_ext <<_ACEOF
32049/* end confdefs.h.  */
32050#include <iterator>
32051#ifdef HAVE_NAMESPACES
32052using namespace std;
32053#endif
32054int
32055main ()
32056{
32057bidirectional_iterator<int,int> t; return 0;
32058  ;
32059  return 0;
32060}
32061_ACEOF
32062rm -f conftest.$ac_objext
32063if { (ac_try="$ac_compile"
32064case "(($ac_try" in
32065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32066  *) ac_try_echo=$ac_try;;
32067esac
32068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32069  (eval "$ac_compile") 2>conftest.er1
32070  ac_status=$?
32071  grep -v '^ *+' conftest.er1 >conftest.err
32072  rm -f conftest.er1
32073  cat conftest.err >&5
32074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32075  (exit $ac_status); } &&
32076	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32077  { (case "(($ac_try" in
32078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32079  *) ac_try_echo=$ac_try;;
32080esac
32081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32082  (eval "$ac_try") 2>&5
32083  ac_status=$?
32084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32085  (exit $ac_status); }; } &&
32086	 { ac_try='test -s conftest.$ac_objext'
32087  { (case "(($ac_try" in
32088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32089  *) ac_try_echo=$ac_try;;
32090esac
32091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32092  (eval "$ac_try") 2>&5
32093  ac_status=$?
32094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32095  (exit $ac_status); }; }; then
32096  ac_cv_cxx_have_bi_iterator=yes
32097else
32098  echo "$as_me: failed program was:" >&5
32099sed 's/^/| /' conftest.$ac_ext >&5
32100
32101	ac_cv_cxx_have_bi_iterator=no
32102fi
32103
32104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32105  ac_ext=c
32106ac_cpp='$CPP $CPPFLAGS'
32107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32109ac_compiler_gnu=$ac_cv_c_compiler_gnu
32110
32111
32112fi
32113{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32114echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32115if test "$ac_cv_cxx_have_bi_iterator" = yes
32116then
32117
32118cat >>confdefs.h <<\_ACEOF
32119#define HAVE_BI_ITERATOR 1
32120_ACEOF
32121
32122else
32123
32124cat >>confdefs.h <<\_ACEOF
32125#define HAVE_BI_ITERATOR 0
32126_ACEOF
32127
32128fi
32129
32130{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32131echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32132if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32133  echo $ECHO_N "(cached) $ECHO_C" >&6
32134else
32135
32136  ac_ext=cpp
32137ac_cpp='$CXXCPP $CPPFLAGS'
32138ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32139ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32140ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32141
32142  cat >conftest.$ac_ext <<_ACEOF
32143/* confdefs.h.  */
32144_ACEOF
32145cat confdefs.h >>conftest.$ac_ext
32146cat >>conftest.$ac_ext <<_ACEOF
32147/* end confdefs.h.  */
32148#include <iterator>
32149#ifdef HAVE_NAMESPACES
32150using namespace std;
32151#endif
32152int
32153main ()
32154{
32155forward_iterator<int,int> t; return 0;
32156  ;
32157  return 0;
32158}
32159_ACEOF
32160rm -f conftest.$ac_objext
32161if { (ac_try="$ac_compile"
32162case "(($ac_try" in
32163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32164  *) ac_try_echo=$ac_try;;
32165esac
32166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32167  (eval "$ac_compile") 2>conftest.er1
32168  ac_status=$?
32169  grep -v '^ *+' conftest.er1 >conftest.err
32170  rm -f conftest.er1
32171  cat conftest.err >&5
32172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32173  (exit $ac_status); } &&
32174	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32175  { (case "(($ac_try" in
32176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32177  *) ac_try_echo=$ac_try;;
32178esac
32179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32180  (eval "$ac_try") 2>&5
32181  ac_status=$?
32182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32183  (exit $ac_status); }; } &&
32184	 { ac_try='test -s conftest.$ac_objext'
32185  { (case "(($ac_try" in
32186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32187  *) ac_try_echo=$ac_try;;
32188esac
32189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32190  (eval "$ac_try") 2>&5
32191  ac_status=$?
32192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32193  (exit $ac_status); }; }; then
32194  ac_cv_cxx_have_fwd_iterator=yes
32195else
32196  echo "$as_me: failed program was:" >&5
32197sed 's/^/| /' conftest.$ac_ext >&5
32198
32199	ac_cv_cxx_have_fwd_iterator=no
32200fi
32201
32202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32203  ac_ext=c
32204ac_cpp='$CPP $CPPFLAGS'
32205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32207ac_compiler_gnu=$ac_cv_c_compiler_gnu
32208
32209
32210fi
32211{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32212echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32213if test "$ac_cv_cxx_have_fwd_iterator" = yes
32214then
32215
32216cat >>confdefs.h <<\_ACEOF
32217#define HAVE_FWD_ITERATOR 1
32218_ACEOF
32219
32220else
32221
32222cat >>confdefs.h <<\_ACEOF
32223#define HAVE_FWD_ITERATOR 0
32224_ACEOF
32225
32226fi
32227
32228
32229{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32230echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32231if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32232  echo $ECHO_N "(cached) $ECHO_C" >&6
32233else
32234  ac_ext=cpp
32235ac_cpp='$CXXCPP $CPPFLAGS'
32236ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32237ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32238ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32239
32240   cat >conftest.$ac_ext <<_ACEOF
32241/* confdefs.h.  */
32242_ACEOF
32243cat confdefs.h >>conftest.$ac_ext
32244cat >>conftest.$ac_ext <<_ACEOF
32245/* end confdefs.h.  */
32246#include <math.h>
32247int
32248main ()
32249{
32250float f; isnan(f);
32251  ;
32252  return 0;
32253}
32254_ACEOF
32255rm -f conftest.$ac_objext
32256if { (ac_try="$ac_compile"
32257case "(($ac_try" in
32258  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32259  *) ac_try_echo=$ac_try;;
32260esac
32261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32262  (eval "$ac_compile") 2>conftest.er1
32263  ac_status=$?
32264  grep -v '^ *+' conftest.er1 >conftest.err
32265  rm -f conftest.er1
32266  cat conftest.err >&5
32267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32268  (exit $ac_status); } &&
32269	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32270  { (case "(($ac_try" in
32271  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32272  *) ac_try_echo=$ac_try;;
32273esac
32274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32275  (eval "$ac_try") 2>&5
32276  ac_status=$?
32277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32278  (exit $ac_status); }; } &&
32279	 { ac_try='test -s conftest.$ac_objext'
32280  { (case "(($ac_try" in
32281  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32282  *) ac_try_echo=$ac_try;;
32283esac
32284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32285  (eval "$ac_try") 2>&5
32286  ac_status=$?
32287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32288  (exit $ac_status); }; }; then
32289  ac_cv_func_isnan_in_math_h=yes
32290else
32291  echo "$as_me: failed program was:" >&5
32292sed 's/^/| /' conftest.$ac_ext >&5
32293
32294	ac_cv_func_isnan_in_math_h=no
32295fi
32296
32297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32298  ac_ext=c
32299ac_cpp='$CPP $CPPFLAGS'
32300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32302ac_compiler_gnu=$ac_cv_c_compiler_gnu
32303
32304fi
32305{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32306echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32307
32308
32309if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32310
32311cat >>confdefs.h <<\_ACEOF
32312#define HAVE_ISNAN_IN_MATH_H 1
32313_ACEOF
32314
32315fi
32316
32317{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32318echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32319if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32320  echo $ECHO_N "(cached) $ECHO_C" >&6
32321else
32322  ac_ext=cpp
32323ac_cpp='$CXXCPP $CPPFLAGS'
32324ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32325ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32326ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32327
32328   cat >conftest.$ac_ext <<_ACEOF
32329/* confdefs.h.  */
32330_ACEOF
32331cat confdefs.h >>conftest.$ac_ext
32332cat >>conftest.$ac_ext <<_ACEOF
32333/* end confdefs.h.  */
32334#include <cmath>
32335int
32336main ()
32337{
32338float f; isnan(f);
32339  ;
32340  return 0;
32341}
32342_ACEOF
32343rm -f conftest.$ac_objext
32344if { (ac_try="$ac_compile"
32345case "(($ac_try" in
32346  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32347  *) ac_try_echo=$ac_try;;
32348esac
32349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32350  (eval "$ac_compile") 2>conftest.er1
32351  ac_status=$?
32352  grep -v '^ *+' conftest.er1 >conftest.err
32353  rm -f conftest.er1
32354  cat conftest.err >&5
32355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32356  (exit $ac_status); } &&
32357	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32358  { (case "(($ac_try" in
32359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32360  *) ac_try_echo=$ac_try;;
32361esac
32362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32363  (eval "$ac_try") 2>&5
32364  ac_status=$?
32365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32366  (exit $ac_status); }; } &&
32367	 { ac_try='test -s conftest.$ac_objext'
32368  { (case "(($ac_try" in
32369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32370  *) ac_try_echo=$ac_try;;
32371esac
32372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32373  (eval "$ac_try") 2>&5
32374  ac_status=$?
32375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32376  (exit $ac_status); }; }; then
32377  ac_cv_func_isnan_in_cmath=yes
32378else
32379  echo "$as_me: failed program was:" >&5
32380sed 's/^/| /' conftest.$ac_ext >&5
32381
32382	ac_cv_func_isnan_in_cmath=no
32383fi
32384
32385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32386  ac_ext=c
32387ac_cpp='$CPP $CPPFLAGS'
32388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32390ac_compiler_gnu=$ac_cv_c_compiler_gnu
32391
32392fi
32393{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32394echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32395
32396if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32397
32398cat >>confdefs.h <<\_ACEOF
32399#define HAVE_ISNAN_IN_CMATH 1
32400_ACEOF
32401
32402fi
32403
32404{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32405echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32406if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32407  echo $ECHO_N "(cached) $ECHO_C" >&6
32408else
32409  ac_ext=cpp
32410ac_cpp='$CXXCPP $CPPFLAGS'
32411ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32412ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32413ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32414
32415   cat >conftest.$ac_ext <<_ACEOF
32416/* confdefs.h.  */
32417_ACEOF
32418cat confdefs.h >>conftest.$ac_ext
32419cat >>conftest.$ac_ext <<_ACEOF
32420/* end confdefs.h.  */
32421#include <cmath>
32422int
32423main ()
32424{
32425float f; std::isnan(f);
32426  ;
32427  return 0;
32428}
32429_ACEOF
32430rm -f conftest.$ac_objext
32431if { (ac_try="$ac_compile"
32432case "(($ac_try" in
32433  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32434  *) ac_try_echo=$ac_try;;
32435esac
32436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32437  (eval "$ac_compile") 2>conftest.er1
32438  ac_status=$?
32439  grep -v '^ *+' conftest.er1 >conftest.err
32440  rm -f conftest.er1
32441  cat conftest.err >&5
32442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32443  (exit $ac_status); } &&
32444	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32445  { (case "(($ac_try" in
32446  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32447  *) ac_try_echo=$ac_try;;
32448esac
32449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32450  (eval "$ac_try") 2>&5
32451  ac_status=$?
32452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32453  (exit $ac_status); }; } &&
32454	 { ac_try='test -s conftest.$ac_objext'
32455  { (case "(($ac_try" in
32456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32457  *) ac_try_echo=$ac_try;;
32458esac
32459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32460  (eval "$ac_try") 2>&5
32461  ac_status=$?
32462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32463  (exit $ac_status); }; }; then
32464  ac_cv_func_std_isnan_in_cmath=yes
32465else
32466  echo "$as_me: failed program was:" >&5
32467sed 's/^/| /' conftest.$ac_ext >&5
32468
32469	ac_cv_func_std_isnan_in_cmath=no
32470fi
32471
32472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32473  ac_ext=c
32474ac_cpp='$CPP $CPPFLAGS'
32475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32477ac_compiler_gnu=$ac_cv_c_compiler_gnu
32478
32479fi
32480{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32481echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32482
32483if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32484
32485cat >>confdefs.h <<\_ACEOF
32486#define HAVE_STD_ISNAN_IN_CMATH 1
32487_ACEOF
32488
32489fi
32490
32491
32492{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32493echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32494if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32495  echo $ECHO_N "(cached) $ECHO_C" >&6
32496else
32497  ac_ext=cpp
32498ac_cpp='$CXXCPP $CPPFLAGS'
32499ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32500ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32501ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32502
32503   cat >conftest.$ac_ext <<_ACEOF
32504/* confdefs.h.  */
32505_ACEOF
32506cat confdefs.h >>conftest.$ac_ext
32507cat >>conftest.$ac_ext <<_ACEOF
32508/* end confdefs.h.  */
32509#include <math.h>
32510int
32511main ()
32512{
32513float f; isinf(f);
32514  ;
32515  return 0;
32516}
32517_ACEOF
32518rm -f conftest.$ac_objext
32519if { (ac_try="$ac_compile"
32520case "(($ac_try" in
32521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32522  *) ac_try_echo=$ac_try;;
32523esac
32524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32525  (eval "$ac_compile") 2>conftest.er1
32526  ac_status=$?
32527  grep -v '^ *+' conftest.er1 >conftest.err
32528  rm -f conftest.er1
32529  cat conftest.err >&5
32530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32531  (exit $ac_status); } &&
32532	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32533  { (case "(($ac_try" in
32534  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32535  *) ac_try_echo=$ac_try;;
32536esac
32537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32538  (eval "$ac_try") 2>&5
32539  ac_status=$?
32540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32541  (exit $ac_status); }; } &&
32542	 { ac_try='test -s conftest.$ac_objext'
32543  { (case "(($ac_try" in
32544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32545  *) ac_try_echo=$ac_try;;
32546esac
32547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32548  (eval "$ac_try") 2>&5
32549  ac_status=$?
32550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32551  (exit $ac_status); }; }; then
32552  ac_cv_func_isinf_in_math_h=yes
32553else
32554  echo "$as_me: failed program was:" >&5
32555sed 's/^/| /' conftest.$ac_ext >&5
32556
32557	ac_cv_func_isinf_in_math_h=no
32558fi
32559
32560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32561  ac_ext=c
32562ac_cpp='$CPP $CPPFLAGS'
32563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32565ac_compiler_gnu=$ac_cv_c_compiler_gnu
32566
32567fi
32568{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32569echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32570
32571if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32572
32573cat >>confdefs.h <<\_ACEOF
32574#define HAVE_ISINF_IN_MATH_H 1
32575_ACEOF
32576
32577fi
32578
32579{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32580echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32581if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32582  echo $ECHO_N "(cached) $ECHO_C" >&6
32583else
32584  ac_ext=cpp
32585ac_cpp='$CXXCPP $CPPFLAGS'
32586ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32587ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32588ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32589
32590   cat >conftest.$ac_ext <<_ACEOF
32591/* confdefs.h.  */
32592_ACEOF
32593cat confdefs.h >>conftest.$ac_ext
32594cat >>conftest.$ac_ext <<_ACEOF
32595/* end confdefs.h.  */
32596#include <cmath>
32597int
32598main ()
32599{
32600float f; isinf(f);
32601  ;
32602  return 0;
32603}
32604_ACEOF
32605rm -f conftest.$ac_objext
32606if { (ac_try="$ac_compile"
32607case "(($ac_try" in
32608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32609  *) ac_try_echo=$ac_try;;
32610esac
32611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32612  (eval "$ac_compile") 2>conftest.er1
32613  ac_status=$?
32614  grep -v '^ *+' conftest.er1 >conftest.err
32615  rm -f conftest.er1
32616  cat conftest.err >&5
32617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32618  (exit $ac_status); } &&
32619	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32620  { (case "(($ac_try" in
32621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32622  *) ac_try_echo=$ac_try;;
32623esac
32624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32625  (eval "$ac_try") 2>&5
32626  ac_status=$?
32627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32628  (exit $ac_status); }; } &&
32629	 { ac_try='test -s conftest.$ac_objext'
32630  { (case "(($ac_try" in
32631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32632  *) ac_try_echo=$ac_try;;
32633esac
32634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32635  (eval "$ac_try") 2>&5
32636  ac_status=$?
32637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32638  (exit $ac_status); }; }; then
32639  ac_cv_func_isinf_in_cmath=yes
32640else
32641  echo "$as_me: failed program was:" >&5
32642sed 's/^/| /' conftest.$ac_ext >&5
32643
32644	ac_cv_func_isinf_in_cmath=no
32645fi
32646
32647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32648  ac_ext=c
32649ac_cpp='$CPP $CPPFLAGS'
32650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32652ac_compiler_gnu=$ac_cv_c_compiler_gnu
32653
32654fi
32655{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32656echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32657
32658if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32659
32660cat >>confdefs.h <<\_ACEOF
32661#define HAVE_ISINF_IN_CMATH 1
32662_ACEOF
32663
32664fi
32665
32666{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32667echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32668if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32669  echo $ECHO_N "(cached) $ECHO_C" >&6
32670else
32671  ac_ext=cpp
32672ac_cpp='$CXXCPP $CPPFLAGS'
32673ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32674ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32675ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32676
32677   cat >conftest.$ac_ext <<_ACEOF
32678/* confdefs.h.  */
32679_ACEOF
32680cat confdefs.h >>conftest.$ac_ext
32681cat >>conftest.$ac_ext <<_ACEOF
32682/* end confdefs.h.  */
32683#include <cmath>
32684int
32685main ()
32686{
32687float f; std::isinf(f)}
32688  ;
32689  return 0;
32690}
32691_ACEOF
32692rm -f conftest.$ac_objext
32693if { (ac_try="$ac_compile"
32694case "(($ac_try" in
32695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32696  *) ac_try_echo=$ac_try;;
32697esac
32698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32699  (eval "$ac_compile") 2>conftest.er1
32700  ac_status=$?
32701  grep -v '^ *+' conftest.er1 >conftest.err
32702  rm -f conftest.er1
32703  cat conftest.err >&5
32704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32705  (exit $ac_status); } &&
32706	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32707  { (case "(($ac_try" in
32708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32709  *) ac_try_echo=$ac_try;;
32710esac
32711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32712  (eval "$ac_try") 2>&5
32713  ac_status=$?
32714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32715  (exit $ac_status); }; } &&
32716	 { ac_try='test -s conftest.$ac_objext'
32717  { (case "(($ac_try" in
32718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32719  *) ac_try_echo=$ac_try;;
32720esac
32721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32722  (eval "$ac_try") 2>&5
32723  ac_status=$?
32724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32725  (exit $ac_status); }; }; then
32726  ac_cv_func_std_isinf_in_cmath=yes
32727else
32728  echo "$as_me: failed program was:" >&5
32729sed 's/^/| /' conftest.$ac_ext >&5
32730
32731	ac_cv_func_std_isinf_in_cmath=no
32732fi
32733
32734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32735  ac_ext=c
32736ac_cpp='$CPP $CPPFLAGS'
32737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32739ac_compiler_gnu=$ac_cv_c_compiler_gnu
32740
32741fi
32742{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32743echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
32744
32745if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
32746
32747cat >>confdefs.h <<\_ACEOF
32748#define HAVE_STD_ISINF_IN_CMATH 1
32749_ACEOF
32750
32751fi
32752
32753{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32754echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
32755if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32756  echo $ECHO_N "(cached) $ECHO_C" >&6
32757else
32758  ac_ext=cpp
32759ac_cpp='$CXXCPP $CPPFLAGS'
32760ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32761ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32762ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32763
32764   cat >conftest.$ac_ext <<_ACEOF
32765/* confdefs.h.  */
32766_ACEOF
32767cat confdefs.h >>conftest.$ac_ext
32768cat >>conftest.$ac_ext <<_ACEOF
32769/* end confdefs.h.  */
32770#include <ieeefp.h>
32771int
32772main ()
32773{
32774float f; finite(f);
32775  ;
32776  return 0;
32777}
32778_ACEOF
32779rm -f conftest.$ac_objext
32780if { (ac_try="$ac_compile"
32781case "(($ac_try" in
32782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32783  *) ac_try_echo=$ac_try;;
32784esac
32785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32786  (eval "$ac_compile") 2>conftest.er1
32787  ac_status=$?
32788  grep -v '^ *+' conftest.er1 >conftest.err
32789  rm -f conftest.er1
32790  cat conftest.err >&5
32791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32792  (exit $ac_status); } &&
32793	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32794  { (case "(($ac_try" in
32795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32796  *) ac_try_echo=$ac_try;;
32797esac
32798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32799  (eval "$ac_try") 2>&5
32800  ac_status=$?
32801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32802  (exit $ac_status); }; } &&
32803	 { ac_try='test -s conftest.$ac_objext'
32804  { (case "(($ac_try" in
32805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32806  *) ac_try_echo=$ac_try;;
32807esac
32808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32809  (eval "$ac_try") 2>&5
32810  ac_status=$?
32811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32812  (exit $ac_status); }; }; then
32813  ac_cv_func_finite_in_ieeefp_h=yes
32814else
32815  echo "$as_me: failed program was:" >&5
32816sed 's/^/| /' conftest.$ac_ext >&5
32817
32818	ac_cv_func_finite_in_ieeefp_h=no
32819fi
32820
32821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32822  ac_ext=c
32823ac_cpp='$CPP $CPPFLAGS'
32824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32826ac_compiler_gnu=$ac_cv_c_compiler_gnu
32827
32828fi
32829{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32830echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
32831
32832if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
32833
32834cat >>confdefs.h <<\_ACEOF
32835#define HAVE_FINITE_IN_IEEEFP_H 1
32836_ACEOF
32837
32838fi
32839
32840
32841
32842if test "$llvm_cv_platform_type" = "Unix" ; then
32843
32844
32845for ac_header in stdlib.h unistd.h
32846do
32847as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32848if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32849  { echo "$as_me:$LINENO: checking for $ac_header" >&5
32850echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32851if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32852  echo $ECHO_N "(cached) $ECHO_C" >&6
32853fi
32854ac_res=`eval echo '${'$as_ac_Header'}'`
32855	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32856echo "${ECHO_T}$ac_res" >&6; }
32857else
32858  # Is the header compilable?
32859{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
32860echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32861cat >conftest.$ac_ext <<_ACEOF
32862/* confdefs.h.  */
32863_ACEOF
32864cat confdefs.h >>conftest.$ac_ext
32865cat >>conftest.$ac_ext <<_ACEOF
32866/* end confdefs.h.  */
32867$ac_includes_default
32868#include <$ac_header>
32869_ACEOF
32870rm -f conftest.$ac_objext
32871if { (ac_try="$ac_compile"
32872case "(($ac_try" in
32873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32874  *) ac_try_echo=$ac_try;;
32875esac
32876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32877  (eval "$ac_compile") 2>conftest.er1
32878  ac_status=$?
32879  grep -v '^ *+' conftest.er1 >conftest.err
32880  rm -f conftest.er1
32881  cat conftest.err >&5
32882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32883  (exit $ac_status); } &&
32884	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32885  { (case "(($ac_try" in
32886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32887  *) ac_try_echo=$ac_try;;
32888esac
32889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32890  (eval "$ac_try") 2>&5
32891  ac_status=$?
32892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32893  (exit $ac_status); }; } &&
32894	 { ac_try='test -s conftest.$ac_objext'
32895  { (case "(($ac_try" in
32896  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32897  *) ac_try_echo=$ac_try;;
32898esac
32899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32900  (eval "$ac_try") 2>&5
32901  ac_status=$?
32902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32903  (exit $ac_status); }; }; then
32904  ac_header_compiler=yes
32905else
32906  echo "$as_me: failed program was:" >&5
32907sed 's/^/| /' conftest.$ac_ext >&5
32908
32909	ac_header_compiler=no
32910fi
32911
32912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32913{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32914echo "${ECHO_T}$ac_header_compiler" >&6; }
32915
32916# Is the header present?
32917{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
32918echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32919cat >conftest.$ac_ext <<_ACEOF
32920/* confdefs.h.  */
32921_ACEOF
32922cat confdefs.h >>conftest.$ac_ext
32923cat >>conftest.$ac_ext <<_ACEOF
32924/* end confdefs.h.  */
32925#include <$ac_header>
32926_ACEOF
32927if { (ac_try="$ac_cpp conftest.$ac_ext"
32928case "(($ac_try" in
32929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32930  *) ac_try_echo=$ac_try;;
32931esac
32932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32933  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32934  ac_status=$?
32935  grep -v '^ *+' conftest.er1 >conftest.err
32936  rm -f conftest.er1
32937  cat conftest.err >&5
32938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32939  (exit $ac_status); } >/dev/null; then
32940  if test -s conftest.err; then
32941    ac_cpp_err=$ac_c_preproc_warn_flag
32942    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32943  else
32944    ac_cpp_err=
32945  fi
32946else
32947  ac_cpp_err=yes
32948fi
32949if test -z "$ac_cpp_err"; then
32950  ac_header_preproc=yes
32951else
32952  echo "$as_me: failed program was:" >&5
32953sed 's/^/| /' conftest.$ac_ext >&5
32954
32955  ac_header_preproc=no
32956fi
32957
32958rm -f conftest.err conftest.$ac_ext
32959{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32960echo "${ECHO_T}$ac_header_preproc" >&6; }
32961
32962# So?  What about this header?
32963case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32964  yes:no: )
32965    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32966echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32967    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32968echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32969    ac_header_preproc=yes
32970    ;;
32971  no:yes:* )
32972    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32973echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32974    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32975echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32976    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32977echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32978    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32979echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32980    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32981echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32982    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32983echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32984    ( cat <<\_ASBOX
32985## ----------------------------------- ##
32986## Report this to llvmbugs@cs.uiuc.edu ##
32987## ----------------------------------- ##
32988_ASBOX
32989     ) | sed "s/^/$as_me: WARNING:     /" >&2
32990    ;;
32991esac
32992{ echo "$as_me:$LINENO: checking for $ac_header" >&5
32993echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32994if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32995  echo $ECHO_N "(cached) $ECHO_C" >&6
32996else
32997  eval "$as_ac_Header=\$ac_header_preproc"
32998fi
32999ac_res=`eval echo '${'$as_ac_Header'}'`
33000	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33001echo "${ECHO_T}$ac_res" >&6; }
33002
33003fi
33004if test `eval echo '${'$as_ac_Header'}'` = yes; then
33005  cat >>confdefs.h <<_ACEOF
33006#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33007_ACEOF
33008
33009fi
33010
33011done
33012
33013
33014for ac_func in getpagesize
33015do
33016as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33017{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33018echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33019if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33020  echo $ECHO_N "(cached) $ECHO_C" >&6
33021else
33022  cat >conftest.$ac_ext <<_ACEOF
33023/* confdefs.h.  */
33024_ACEOF
33025cat confdefs.h >>conftest.$ac_ext
33026cat >>conftest.$ac_ext <<_ACEOF
33027/* end confdefs.h.  */
33028/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33029   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33030#define $ac_func innocuous_$ac_func
33031
33032/* System header to define __stub macros and hopefully few prototypes,
33033    which can conflict with char $ac_func (); below.
33034    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33035    <limits.h> exists even on freestanding compilers.  */
33036
33037#ifdef __STDC__
33038# include <limits.h>
33039#else
33040# include <assert.h>
33041#endif
33042
33043#undef $ac_func
33044
33045/* Override any GCC internal prototype to avoid an error.
33046   Use char because int might match the return type of a GCC
33047   builtin and then its argument prototype would still apply.  */
33048#ifdef __cplusplus
33049extern "C"
33050#endif
33051char $ac_func ();
33052/* The GNU C library defines this for functions which it implements
33053    to always fail with ENOSYS.  Some functions are actually named
33054    something starting with __ and the normal name is an alias.  */
33055#if defined __stub_$ac_func || defined __stub___$ac_func
33056choke me
33057#endif
33058
33059int
33060main ()
33061{
33062return $ac_func ();
33063  ;
33064  return 0;
33065}
33066_ACEOF
33067rm -f conftest.$ac_objext conftest$ac_exeext
33068if { (ac_try="$ac_link"
33069case "(($ac_try" in
33070  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33071  *) ac_try_echo=$ac_try;;
33072esac
33073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33074  (eval "$ac_link") 2>conftest.er1
33075  ac_status=$?
33076  grep -v '^ *+' conftest.er1 >conftest.err
33077  rm -f conftest.er1
33078  cat conftest.err >&5
33079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33080  (exit $ac_status); } &&
33081	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33082  { (case "(($ac_try" in
33083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33084  *) ac_try_echo=$ac_try;;
33085esac
33086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33087  (eval "$ac_try") 2>&5
33088  ac_status=$?
33089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33090  (exit $ac_status); }; } &&
33091	 { ac_try='test -s conftest$ac_exeext'
33092  { (case "(($ac_try" in
33093  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33094  *) ac_try_echo=$ac_try;;
33095esac
33096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33097  (eval "$ac_try") 2>&5
33098  ac_status=$?
33099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33100  (exit $ac_status); }; }; then
33101  eval "$as_ac_var=yes"
33102else
33103  echo "$as_me: failed program was:" >&5
33104sed 's/^/| /' conftest.$ac_ext >&5
33105
33106	eval "$as_ac_var=no"
33107fi
33108
33109rm -f core conftest.err conftest.$ac_objext \
33110      conftest$ac_exeext conftest.$ac_ext
33111fi
33112ac_res=`eval echo '${'$as_ac_var'}'`
33113	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33114echo "${ECHO_T}$ac_res" >&6; }
33115if test `eval echo '${'$as_ac_var'}'` = yes; then
33116  cat >>confdefs.h <<_ACEOF
33117#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33118_ACEOF
33119
33120fi
33121done
33122
33123{ echo "$as_me:$LINENO: checking for working mmap" >&5
33124echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33125if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33126  echo $ECHO_N "(cached) $ECHO_C" >&6
33127else
33128  if test "$cross_compiling" = yes; then
33129  ac_cv_func_mmap_fixed_mapped=no
33130else
33131  cat >conftest.$ac_ext <<_ACEOF
33132/* confdefs.h.  */
33133_ACEOF
33134cat confdefs.h >>conftest.$ac_ext
33135cat >>conftest.$ac_ext <<_ACEOF
33136/* end confdefs.h.  */
33137$ac_includes_default
33138/* malloc might have been renamed as rpl_malloc. */
33139#undef malloc
33140
33141/* Thanks to Mike Haertel and Jim Avera for this test.
33142   Here is a matrix of mmap possibilities:
33143	mmap private not fixed
33144	mmap private fixed at somewhere currently unmapped
33145	mmap private fixed at somewhere already mapped
33146	mmap shared not fixed
33147	mmap shared fixed at somewhere currently unmapped
33148	mmap shared fixed at somewhere already mapped
33149   For private mappings, we should verify that changes cannot be read()
33150   back from the file, nor mmap's back from the file at a different
33151   address.  (There have been systems where private was not correctly
33152   implemented like the infamous i386 svr4.0, and systems where the
33153   VM page cache was not coherent with the file system buffer cache
33154   like early versions of FreeBSD and possibly contemporary NetBSD.)
33155   For shared mappings, we should conversely verify that changes get
33156   propagated back to all the places they're supposed to be.
33157
33158   Grep wants private fixed already mapped.
33159   The main things grep needs to know about mmap are:
33160   * does it exist and is it safe to write into the mmap'd area
33161   * how to use it (BSD variants)  */
33162
33163#include <fcntl.h>
33164#include <sys/mman.h>
33165
33166#if !STDC_HEADERS && !HAVE_STDLIB_H
33167char *malloc ();
33168#endif
33169
33170/* This mess was copied from the GNU getpagesize.h.  */
33171#if !HAVE_GETPAGESIZE
33172/* Assume that all systems that can run configure have sys/param.h.  */
33173# if !HAVE_SYS_PARAM_H
33174#  define HAVE_SYS_PARAM_H 1
33175# endif
33176
33177# ifdef _SC_PAGESIZE
33178#  define getpagesize() sysconf(_SC_PAGESIZE)
33179# else /* no _SC_PAGESIZE */
33180#  if HAVE_SYS_PARAM_H
33181#   include <sys/param.h>
33182#   ifdef EXEC_PAGESIZE
33183#    define getpagesize() EXEC_PAGESIZE
33184#   else /* no EXEC_PAGESIZE */
33185#    ifdef NBPG
33186#     define getpagesize() NBPG * CLSIZE
33187#     ifndef CLSIZE
33188#      define CLSIZE 1
33189#     endif /* no CLSIZE */
33190#    else /* no NBPG */
33191#     ifdef NBPC
33192#      define getpagesize() NBPC
33193#     else /* no NBPC */
33194#      ifdef PAGESIZE
33195#       define getpagesize() PAGESIZE
33196#      endif /* PAGESIZE */
33197#     endif /* no NBPC */
33198#    endif /* no NBPG */
33199#   endif /* no EXEC_PAGESIZE */
33200#  else /* no HAVE_SYS_PARAM_H */
33201#   define getpagesize() 8192	/* punt totally */
33202#  endif /* no HAVE_SYS_PARAM_H */
33203# endif /* no _SC_PAGESIZE */
33204
33205#endif /* no HAVE_GETPAGESIZE */
33206
33207int
33208main ()
33209{
33210  char *data, *data2, *data3;
33211  int i, pagesize;
33212  int fd;
33213
33214  pagesize = getpagesize ();
33215
33216  /* First, make a file with some known garbage in it. */
33217  data = (char *) malloc (pagesize);
33218  if (!data)
33219    return 1;
33220  for (i = 0; i < pagesize; ++i)
33221    *(data + i) = rand ();
33222  umask (0);
33223  fd = creat ("conftest.mmap", 0600);
33224  if (fd < 0)
33225    return 1;
33226  if (write (fd, data, pagesize) != pagesize)
33227    return 1;
33228  close (fd);
33229
33230  /* Next, try to mmap the file at a fixed address which already has
33231     something else allocated at it.  If we can, also make sure that
33232     we see the same garbage.  */
33233  fd = open ("conftest.mmap", O_RDWR);
33234  if (fd < 0)
33235    return 1;
33236  data2 = (char *) malloc (2 * pagesize);
33237  if (!data2)
33238    return 1;
33239  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33240  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33241		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
33242    return 1;
33243  for (i = 0; i < pagesize; ++i)
33244    if (*(data + i) != *(data2 + i))
33245      return 1;
33246
33247  /* Finally, make sure that changes to the mapped area do not
33248     percolate back to the file as seen by read().  (This is a bug on
33249     some variants of i386 svr4.0.)  */
33250  for (i = 0; i < pagesize; ++i)
33251    *(data2 + i) = *(data2 + i) + 1;
33252  data3 = (char *) malloc (pagesize);
33253  if (!data3)
33254    return 1;
33255  if (read (fd, data3, pagesize) != pagesize)
33256    return 1;
33257  for (i = 0; i < pagesize; ++i)
33258    if (*(data + i) != *(data3 + i))
33259      return 1;
33260  close (fd);
33261  return 0;
33262}
33263_ACEOF
33264rm -f conftest$ac_exeext
33265if { (ac_try="$ac_link"
33266case "(($ac_try" in
33267  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33268  *) ac_try_echo=$ac_try;;
33269esac
33270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33271  (eval "$ac_link") 2>&5
33272  ac_status=$?
33273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33274  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33275  { (case "(($ac_try" in
33276  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33277  *) ac_try_echo=$ac_try;;
33278esac
33279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33280  (eval "$ac_try") 2>&5
33281  ac_status=$?
33282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33283  (exit $ac_status); }; }; then
33284  ac_cv_func_mmap_fixed_mapped=yes
33285else
33286  echo "$as_me: program exited with status $ac_status" >&5
33287echo "$as_me: failed program was:" >&5
33288sed 's/^/| /' conftest.$ac_ext >&5
33289
33290( exit $ac_status )
33291ac_cv_func_mmap_fixed_mapped=no
33292fi
33293rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33294fi
33295
33296
33297fi
33298{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33299echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33300if test $ac_cv_func_mmap_fixed_mapped = yes; then
33301
33302cat >>confdefs.h <<\_ACEOF
33303#define HAVE_MMAP 1
33304_ACEOF
33305
33306fi
33307rm -f conftest.mmap
33308
33309  { echo "$as_me:$LINENO: checking for mmap of files" >&5
33310echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33311if test "${ac_cv_func_mmap_file+set}" = set; then
33312  echo $ECHO_N "(cached) $ECHO_C" >&6
33313else
33314   ac_ext=c
33315ac_cpp='$CPP $CPPFLAGS'
33316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33318ac_compiler_gnu=$ac_cv_c_compiler_gnu
33319
33320  if test "$cross_compiling" = yes; then
33321  ac_cv_func_mmap_file=no
33322else
33323  cat >conftest.$ac_ext <<_ACEOF
33324
33325    /* confdefs.h.  */
33326_ACEOF
33327cat confdefs.h >>conftest.$ac_ext
33328cat >>conftest.$ac_ext <<_ACEOF
33329/* end confdefs.h.  */
33330
33331#include <sys/types.h>
33332#include <sys/mman.h>
33333#include <fcntl.h>
33334
33335int
33336main ()
33337{
33338
33339  int fd;
33340  fd = creat ("foo",0777);
33341  fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33342  unlink ("foo");
33343  return (fd != (int) MAP_FAILED);
33344  ;
33345  return 0;
33346}
33347_ACEOF
33348rm -f conftest$ac_exeext
33349if { (ac_try="$ac_link"
33350case "(($ac_try" in
33351  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33352  *) ac_try_echo=$ac_try;;
33353esac
33354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33355  (eval "$ac_link") 2>&5
33356  ac_status=$?
33357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33358  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33359  { (case "(($ac_try" in
33360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33361  *) ac_try_echo=$ac_try;;
33362esac
33363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33364  (eval "$ac_try") 2>&5
33365  ac_status=$?
33366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33367  (exit $ac_status); }; }; then
33368  ac_cv_func_mmap_file=yes
33369else
33370  echo "$as_me: program exited with status $ac_status" >&5
33371echo "$as_me: failed program was:" >&5
33372sed 's/^/| /' conftest.$ac_ext >&5
33373
33374( exit $ac_status )
33375ac_cv_func_mmap_file=no
33376fi
33377rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33378fi
33379
33380
33381  ac_ext=c
33382ac_cpp='$CPP $CPPFLAGS'
33383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33385ac_compiler_gnu=$ac_cv_c_compiler_gnu
33386
33387
33388fi
33389{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33390echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33391if test "$ac_cv_func_mmap_file" = yes; then
33392
33393cat >>confdefs.h <<\_ACEOF
33394#define HAVE_MMAP_FILE
33395_ACEOF
33396
33397   MMAP_FILE=yes
33398
33399fi
33400
33401  { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33402echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33403if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33404  echo $ECHO_N "(cached) $ECHO_C" >&6
33405else
33406  if test "$llvm_cv_os_type" = "Interix" ; then
33407   ac_cv_need_dev_zero_for_mmap=yes
33408 else
33409   ac_cv_need_dev_zero_for_mmap=no
33410 fi
33411
33412fi
33413{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33414echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33415if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33416
33417cat >>confdefs.h <<\_ACEOF
33418#define NEED_DEV_ZERO_FOR_MMAP 1
33419_ACEOF
33420
33421fi
33422
33423  if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33424  then
33425    { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33426echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33427  fi
33428  if test "$ac_cv_func_mmap_file" = "no"
33429  then
33430    { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33431echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33432  fi
33433fi
33434
33435
33436{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33437echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33438if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33439  echo $ECHO_N "(cached) $ECHO_C" >&6
33440else
33441  llvm_cv_llvmgcc_sanity="no"
33442if test -x "$LLVMGCC" ; then
33443  cp /dev/null conftest.c
33444  "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33445      grep 'target datalayout =' > /dev/null 2>&1
33446  if test $? -eq 0 ; then
33447    llvm_cv_llvmgcc_sanity="yes"
33448  fi
33449  rm conftest.c
33450fi
33451fi
33452{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33453echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33454
33455if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33456  { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33457echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
33458  llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33459  LLVMCC1=$llvmcc1path
33460
33461  llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33462  LLVMCC1PLUS=$llvmcc1pluspath
33463
33464  llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33465  LLVMGCCDIR=$llvmgccdir
33466
33467  llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33468  LLVMGCCLIBEXEC=$llvmgcclibexec
33469
33470  llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33471  llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33472  LLVMGCC_VERSION=$llvmgccversion
33473
33474  LLVMGCC_MAJVERS=$llvmgccmajvers
33475
33476  llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
33477  LLVMGCC_LANGS=$llvmgcclangs
33478
33479  { echo "$as_me:$LINENO: result: ok" >&5
33480echo "${ECHO_T}ok" >&6; }
33481fi
33482
33483SHLIBEXT=$libltdl_cv_shlibext
33484
33485
33486# Translate the various configuration directories and other basic
33487# information into substitutions that will end up in Makefile.config.in
33488# that these configured values can be used by the makefiles
33489if test "${prefix}" = "NONE" ; then
33490  prefix="/usr/local"
33491fi
33492eval LLVM_PREFIX="${prefix}";
33493eval LLVM_BINDIR="${prefix}/bin";
33494eval LLVM_LIBDIR="${prefix}/lib";
33495eval LLVM_DATADIR="${prefix}/share/llvm";
33496eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33497eval LLVM_ETCDIR="${prefix}/etc/llvm";
33498eval LLVM_INCLUDEDIR="${prefix}/include";
33499eval LLVM_INFODIR="${prefix}/info";
33500eval LLVM_MANDIR="${prefix}/man";
33501LLVM_CONFIGTIME=`date`
33502
33503
33504
33505
33506
33507
33508
33509
33510
33511
33512
33513# Place the various directores into the config.h file as #defines so that we
33514# can know about the installation paths within LLVM.
33515
33516cat >>confdefs.h <<_ACEOF
33517#define LLVM_PREFIX "$LLVM_PREFIX"
33518_ACEOF
33519
33520
33521cat >>confdefs.h <<_ACEOF
33522#define LLVM_BINDIR "$LLVM_BINDIR"
33523_ACEOF
33524
33525
33526cat >>confdefs.h <<_ACEOF
33527#define LLVM_LIBDIR "$LLVM_LIBDIR"
33528_ACEOF
33529
33530
33531cat >>confdefs.h <<_ACEOF
33532#define LLVM_DATADIR "$LLVM_DATADIR"
33533_ACEOF
33534
33535
33536cat >>confdefs.h <<_ACEOF
33537#define LLVM_DATADIR "$LLVM_DOCSDIR"
33538_ACEOF
33539
33540
33541cat >>confdefs.h <<_ACEOF
33542#define LLVM_ETCDIR "$LLVM_ETCDIR"
33543_ACEOF
33544
33545
33546cat >>confdefs.h <<_ACEOF
33547#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33548_ACEOF
33549
33550
33551cat >>confdefs.h <<_ACEOF
33552#define LLVM_INFODIR "$LLVM_INFODIR"
33553_ACEOF
33554
33555
33556cat >>confdefs.h <<_ACEOF
33557#define LLVM_MANDIR "$LLVM_MANDIR"
33558_ACEOF
33559
33560
33561cat >>confdefs.h <<_ACEOF
33562#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33563_ACEOF
33564
33565
33566
33567ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
33568
33569ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
33570
33571ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
33572
33573ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
33574
33575ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
33576
33577
33578ac_config_files="$ac_config_files Makefile.config"
33579
33580
33581ac_config_files="$ac_config_files llvm.spec"
33582
33583
33584ac_config_files="$ac_config_files docs/doxygen.cfg"
33585
33586
33587ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
33588
33589
33590ac_config_commands="$ac_config_commands setup"
33591
33592ac_config_commands="$ac_config_commands Makefile"
33593
33594
33595ac_config_commands="$ac_config_commands Makefile.common"
33596
33597
33598ac_config_commands="$ac_config_commands examples/Makefile"
33599
33600
33601ac_config_commands="$ac_config_commands lib/Makefile"
33602
33603
33604ac_config_commands="$ac_config_commands runtime/Makefile"
33605
33606
33607ac_config_commands="$ac_config_commands test/Makefile"
33608
33609
33610ac_config_commands="$ac_config_commands test/Makefile.tests"
33611
33612
33613ac_config_commands="$ac_config_commands tools/Makefile"
33614
33615
33616ac_config_commands="$ac_config_commands utils/Makefile"
33617
33618
33619ac_config_commands="$ac_config_commands projects/Makefile"
33620
33621
33622
33623cat >confcache <<\_ACEOF
33624# This file is a shell script that caches the results of configure
33625# tests run on this system so they can be shared between configure
33626# scripts and configure runs, see configure's option --config-cache.
33627# It is not useful on other systems.  If it contains results you don't
33628# want to keep, you may remove or edit it.
33629#
33630# config.status only pays attention to the cache file if you give it
33631# the --recheck option to rerun configure.
33632#
33633# `ac_cv_env_foo' variables (set or unset) will be overridden when
33634# loading this file, other *unset* `ac_cv_foo' will be assigned the
33635# following values.
33636
33637_ACEOF
33638
33639# The following way of writing the cache mishandles newlines in values,
33640# but we know of no workaround that is simple, portable, and efficient.
33641# So, we kill variables containing newlines.
33642# Ultrix sh set writes to stderr and can't be redirected directly,
33643# and sets the high bit in the cache file unless we assign to the vars.
33644(
33645  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33646    eval ac_val=\$$ac_var
33647    case $ac_val in #(
33648    *${as_nl}*)
33649      case $ac_var in #(
33650      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33651echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33652      esac
33653      case $ac_var in #(
33654      _ | IFS | as_nl) ;; #(
33655      *) $as_unset $ac_var ;;
33656      esac ;;
33657    esac
33658  done
33659
33660  (set) 2>&1 |
33661    case $as_nl`(ac_space=' '; set) 2>&1` in #(
33662    *${as_nl}ac_space=\ *)
33663      # `set' does not quote correctly, so add quotes (double-quote
33664      # substitution turns \\\\ into \\, and sed turns \\ into \).
33665      sed -n \
33666	"s/'/'\\\\''/g;
33667	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33668      ;; #(
33669    *)
33670      # `set' quotes correctly as required by POSIX, so do not add quotes.
33671      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33672      ;;
33673    esac |
33674    sort
33675) |
33676  sed '
33677     /^ac_cv_env_/b end
33678     t clear
33679     :clear
33680     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33681     t end
33682     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33683     :end' >>confcache
33684if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33685  if test -w "$cache_file"; then
33686    test "x$cache_file" != "x/dev/null" &&
33687      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33688echo "$as_me: updating cache $cache_file" >&6;}
33689    cat confcache >$cache_file
33690  else
33691    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33692echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33693  fi
33694fi
33695rm -f confcache
33696
33697test "x$prefix" = xNONE && prefix=$ac_default_prefix
33698# Let make expand exec_prefix.
33699test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33700
33701DEFS=-DHAVE_CONFIG_H
33702
33703ac_libobjs=
33704ac_ltlibobjs=
33705for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33706  # 1. Remove the extension, and $U if already installed.
33707  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33708  ac_i=`echo "$ac_i" | sed "$ac_script"`
33709  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
33710  #    will be set to the directory where LIBOBJS objects are built.
33711  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33712  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
33713done
33714LIBOBJS=$ac_libobjs
33715
33716LTLIBOBJS=$ac_ltlibobjs
33717
33718
33719if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
33720  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
33721Usually this means the macro was only invoked conditionally." >&5
33722echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
33723Usually this means the macro was only invoked conditionally." >&2;}
33724   { (exit 1); exit 1; }; }
33725fi
33726if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33727  { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33728Usually this means the macro was only invoked conditionally." >&5
33729echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33730Usually this means the macro was only invoked conditionally." >&2;}
33731   { (exit 1); exit 1; }; }
33732fi
33733
33734: ${CONFIG_STATUS=./config.status}
33735ac_clean_files_save=$ac_clean_files
33736ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33737{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33738echo "$as_me: creating $CONFIG_STATUS" >&6;}
33739cat >$CONFIG_STATUS <<_ACEOF
33740#! $SHELL
33741# Generated by $as_me.
33742# Run this file to recreate the current configuration.
33743# Compiler output produced by configure, useful for debugging
33744# configure, is in config.log if it exists.
33745
33746debug=false
33747ac_cs_recheck=false
33748ac_cs_silent=false
33749SHELL=\${CONFIG_SHELL-$SHELL}
33750_ACEOF
33751
33752cat >>$CONFIG_STATUS <<\_ACEOF
33753## --------------------- ##
33754## M4sh Initialization.  ##
33755## --------------------- ##
33756
33757# Be Bourne compatible
33758if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33759  emulate sh
33760  NULLCMD=:
33761  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33762  # is contrary to our usage.  Disable this feature.
33763  alias -g '${1+"$@"}'='"$@"'
33764  setopt NO_GLOB_SUBST
33765else
33766  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
33767fi
33768BIN_SH=xpg4; export BIN_SH # for Tru64
33769DUALCASE=1; export DUALCASE # for MKS sh
33770
33771
33772# PATH needs CR
33773# Avoid depending upon Character Ranges.
33774as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33775as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33776as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33777as_cr_digits='0123456789'
33778as_cr_alnum=$as_cr_Letters$as_cr_digits
33779
33780# The user is always right.
33781if test "${PATH_SEPARATOR+set}" != set; then
33782  echo "#! /bin/sh" >conf$$.sh
33783  echo  "exit 0"   >>conf$$.sh
33784  chmod +x conf$$.sh
33785  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33786    PATH_SEPARATOR=';'
33787  else
33788    PATH_SEPARATOR=:
33789  fi
33790  rm -f conf$$.sh
33791fi
33792
33793# Support unset when possible.
33794if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33795  as_unset=unset
33796else
33797  as_unset=false
33798fi
33799
33800
33801# IFS
33802# We need space, tab and new line, in precisely that order.  Quoting is
33803# there to prevent editors from complaining about space-tab.
33804# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33805# splitting by setting IFS to empty value.)
33806as_nl='
33807'
33808IFS=" ""	$as_nl"
33809
33810# Find who we are.  Look in the path if we contain no directory separator.
33811case $0 in
33812  *[\\/]* ) as_myself=$0 ;;
33813  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33814for as_dir in $PATH
33815do
33816  IFS=$as_save_IFS
33817  test -z "$as_dir" && as_dir=.
33818  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33819done
33820IFS=$as_save_IFS
33821
33822     ;;
33823esac
33824# We did not find ourselves, most probably we were run as `sh COMMAND'
33825# in which case we are not to be found in the path.
33826if test "x$as_myself" = x; then
33827  as_myself=$0
33828fi
33829if test ! -f "$as_myself"; then
33830  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33831  { (exit 1); exit 1; }
33832fi
33833
33834# Work around bugs in pre-3.0 UWIN ksh.
33835for as_var in ENV MAIL MAILPATH
33836do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33837done
33838PS1='$ '
33839PS2='> '
33840PS4='+ '
33841
33842# NLS nuisances.
33843for as_var in \
33844  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33845  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33846  LC_TELEPHONE LC_TIME
33847do
33848  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33849    eval $as_var=C; export $as_var
33850  else
33851    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33852  fi
33853done
33854
33855# Required to use basename.
33856if expr a : '\(a\)' >/dev/null 2>&1 &&
33857   test "X`expr 00001 : '.*\(...\)'`" = X001; then
33858  as_expr=expr
33859else
33860  as_expr=false
33861fi
33862
33863if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33864  as_basename=basename
33865else
33866  as_basename=false
33867fi
33868
33869
33870# Name of the executable.
33871as_me=`$as_basename -- "$0" ||
33872$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33873	 X"$0" : 'X\(//\)$' \| \
33874	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33875echo X/"$0" |
33876    sed '/^.*\/\([^/][^/]*\)\/*$/{
33877	    s//\1/
33878	    q
33879	  }
33880	  /^X\/\(\/\/\)$/{
33881	    s//\1/
33882	    q
33883	  }
33884	  /^X\/\(\/\).*/{
33885	    s//\1/
33886	    q
33887	  }
33888	  s/.*/./; q'`
33889
33890# CDPATH.
33891$as_unset CDPATH
33892
33893
33894
33895  as_lineno_1=$LINENO
33896  as_lineno_2=$LINENO
33897  test "x$as_lineno_1" != "x$as_lineno_2" &&
33898  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
33899
33900  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33901  # uniformly replaced by the line number.  The first 'sed' inserts a
33902  # line-number line after each line using $LINENO; the second 'sed'
33903  # does the real work.  The second script uses 'N' to pair each
33904  # line-number line with the line containing $LINENO, and appends
33905  # trailing '-' during substitution so that $LINENO is not a special
33906  # case at line end.
33907  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33908  # scripts with optimization help from Paolo Bonzini.  Blame Lee
33909  # E. McMahon (1931-1989) for sed's syntax.  :-)
33910  sed -n '
33911    p
33912    /[$]LINENO/=
33913  ' <$as_myself |
33914    sed '
33915      s/[$]LINENO.*/&-/
33916      t lineno
33917      b
33918      :lineno
33919      N
33920      :loop
33921      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
33922      t loop
33923      s/-\n.*//
33924    ' >$as_me.lineno &&
33925  chmod +x "$as_me.lineno" ||
33926    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
33927   { (exit 1); exit 1; }; }
33928
33929  # Don't try to exec as it changes $[0], causing all sort of problems
33930  # (the dirname of $[0] is not the place where we might find the
33931  # original and so on.  Autoconf is especially sensitive to this).
33932  . "./$as_me.lineno"
33933  # Exit status is that of the last command.
33934  exit
33935}
33936
33937
33938if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33939  as_dirname=dirname
33940else
33941  as_dirname=false
33942fi
33943
33944ECHO_C= ECHO_N= ECHO_T=
33945case `echo -n x` in
33946-n*)
33947  case `echo 'x\c'` in
33948  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
33949  *)   ECHO_C='\c';;
33950  esac;;
33951*)
33952  ECHO_N='-n';;
33953esac
33954
33955if expr a : '\(a\)' >/dev/null 2>&1 &&
33956   test "X`expr 00001 : '.*\(...\)'`" = X001; then
33957  as_expr=expr
33958else
33959  as_expr=false
33960fi
33961
33962rm -f conf$$ conf$$.exe conf$$.file
33963if test -d conf$$.dir; then
33964  rm -f conf$$.dir/conf$$.file
33965else
33966  rm -f conf$$.dir
33967  mkdir conf$$.dir
33968fi
33969echo >conf$$.file
33970if ln -s conf$$.file conf$$ 2>/dev/null; then
33971  as_ln_s='ln -s'
33972  # ... but there are two gotchas:
33973  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33974  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33975  # In both cases, we have to default to `cp -p'.
33976  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33977    as_ln_s='cp -p'
33978elif ln conf$$.file conf$$ 2>/dev/null; then
33979  as_ln_s=ln
33980else
33981  as_ln_s='cp -p'
33982fi
33983rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33984rmdir conf$$.dir 2>/dev/null
33985
33986if mkdir -p . 2>/dev/null; then
33987  as_mkdir_p=:
33988else
33989  test -d ./-p && rmdir ./-p
33990  as_mkdir_p=false
33991fi
33992
33993# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
33994# systems may use methods other than mode bits to determine executability.
33995cat >conf$$.file <<_ASEOF
33996#! /bin/sh
33997exit 0
33998_ASEOF
33999chmod +x conf$$.file
34000if test -x conf$$.file >/dev/null 2>&1; then
34001  as_executable_p="test -x"
34002else
34003  as_executable_p=:
34004fi
34005rm -f conf$$.file
34006
34007# Sed expression to map a string onto a valid CPP name.
34008as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34009
34010# Sed expression to map a string onto a valid variable name.
34011as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34012
34013
34014exec 6>&1
34015
34016# Save the log message, to keep $[0] and so on meaningful, and to
34017# report actual input values of CONFIG_FILES etc. instead of their
34018# values after options handling.
34019ac_log="
34020This file was extended by llvm $as_me 2.1cvs, which was
34021generated by GNU Autoconf 2.60.  Invocation command line was
34022
34023  CONFIG_FILES    = $CONFIG_FILES
34024  CONFIG_HEADERS  = $CONFIG_HEADERS
34025  CONFIG_LINKS    = $CONFIG_LINKS
34026  CONFIG_COMMANDS = $CONFIG_COMMANDS
34027  $ $0 $@
34028
34029on `(hostname || uname -n) 2>/dev/null | sed 1q`
34030"
34031
34032_ACEOF
34033
34034cat >>$CONFIG_STATUS <<_ACEOF
34035# Files that config.status was made for.
34036config_files="$ac_config_files"
34037config_headers="$ac_config_headers"
34038config_commands="$ac_config_commands"
34039
34040_ACEOF
34041
34042cat >>$CONFIG_STATUS <<\_ACEOF
34043ac_cs_usage="\
34044\`$as_me' instantiates files from templates according to the
34045current configuration.
34046
34047Usage: $0 [OPTIONS] [FILE]...
34048
34049  -h, --help       print this help, then exit
34050  -V, --version    print version number, then exit
34051  -q, --quiet      do not print progress messages
34052  -d, --debug      don't remove temporary files
34053      --recheck    update $as_me by reconfiguring in the same conditions
34054  --file=FILE[:TEMPLATE]
34055		   instantiate the configuration file FILE
34056  --header=FILE[:TEMPLATE]
34057		   instantiate the configuration header FILE
34058
34059Configuration files:
34060$config_files
34061
34062Configuration headers:
34063$config_headers
34064
34065Configuration commands:
34066$config_commands
34067
34068Report bugs to <bug-autoconf@gnu.org>."
34069
34070_ACEOF
34071cat >>$CONFIG_STATUS <<_ACEOF
34072ac_cs_version="\\
34073llvm config.status 2.1cvs
34074configured by $0, generated by GNU Autoconf 2.60,
34075  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34076
34077Copyright (C) 2006 Free Software Foundation, Inc.
34078This config.status script is free software; the Free Software Foundation
34079gives unlimited permission to copy, distribute and modify it."
34080
34081ac_pwd='$ac_pwd'
34082srcdir='$srcdir'
34083INSTALL='$INSTALL'
34084_ACEOF
34085
34086cat >>$CONFIG_STATUS <<\_ACEOF
34087# If no file are specified by the user, then we need to provide default
34088# value.  By we need to know if files were specified by the user.
34089ac_need_defaults=:
34090while test $# != 0
34091do
34092  case $1 in
34093  --*=*)
34094    ac_option=`expr "X$1" : 'X\([^=]*\)='`
34095    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34096    ac_shift=:
34097    ;;
34098  *)
34099    ac_option=$1
34100    ac_optarg=$2
34101    ac_shift=shift
34102    ;;
34103  esac
34104
34105  case $ac_option in
34106  # Handling of the options.
34107  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34108    ac_cs_recheck=: ;;
34109  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34110    echo "$ac_cs_version"; exit ;;
34111  --debug | --debu | --deb | --de | --d | -d )
34112    debug=: ;;
34113  --file | --fil | --fi | --f )
34114    $ac_shift
34115    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34116    ac_need_defaults=false;;
34117  --header | --heade | --head | --hea )
34118    $ac_shift
34119    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34120    ac_need_defaults=false;;
34121  --he | --h)
34122    # Conflict between --help and --header
34123    { echo "$as_me: error: ambiguous option: $1
34124Try \`$0 --help' for more information." >&2
34125   { (exit 1); exit 1; }; };;
34126  --help | --hel | -h )
34127    echo "$ac_cs_usage"; exit ;;
34128  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34129  | -silent | --silent | --silen | --sile | --sil | --si | --s)
34130    ac_cs_silent=: ;;
34131
34132  # This is an error.
34133  -*) { echo "$as_me: error: unrecognized option: $1
34134Try \`$0 --help' for more information." >&2
34135   { (exit 1); exit 1; }; } ;;
34136
34137  *) ac_config_targets="$ac_config_targets $1"
34138     ac_need_defaults=false ;;
34139
34140  esac
34141  shift
34142done
34143
34144ac_configure_extra_args=
34145
34146if $ac_cs_silent; then
34147  exec 6>/dev/null
34148  ac_configure_extra_args="$ac_configure_extra_args --silent"
34149fi
34150
34151_ACEOF
34152cat >>$CONFIG_STATUS <<_ACEOF
34153if \$ac_cs_recheck; then
34154  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34155  CONFIG_SHELL=$SHELL
34156  export CONFIG_SHELL
34157  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34158fi
34159
34160_ACEOF
34161cat >>$CONFIG_STATUS <<\_ACEOF
34162exec 5>>config.log
34163{
34164  echo
34165  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34166## Running $as_me. ##
34167_ASBOX
34168  echo "$ac_log"
34169} >&5
34170
34171_ACEOF
34172cat >>$CONFIG_STATUS <<_ACEOF
34173#
34174# INIT-COMMANDS
34175#
34176llvm_src="${srcdir}"
34177
34178_ACEOF
34179
34180cat >>$CONFIG_STATUS <<\_ACEOF
34181
34182# Handling of arguments.
34183for ac_config_target in $ac_config_targets
34184do
34185  case $ac_config_target in
34186    "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34187    "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34188    "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34189    "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34190    "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34191    "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34192    "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34193    "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34194    "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34195    "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34196    "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34197    "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34198    "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34199    "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34200    "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34201    "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34202    "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34203    "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34204    "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34205    "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34206
34207  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34208echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34209   { (exit 1); exit 1; }; };;
34210  esac
34211done
34212
34213
34214# If the user did not use the arguments to specify the items to instantiate,
34215# then the envvar interface is used.  Set only those that are not.
34216# We use the long form for the default assignment because of an extremely
34217# bizarre bug on SunOS 4.1.3.
34218if $ac_need_defaults; then
34219  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34220  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34221  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34222fi
34223
34224# Have a temporary directory for convenience.  Make it in the build tree
34225# simply because there is no reason against having it here, and in addition,
34226# creating and moving files from /tmp can sometimes cause problems.
34227# Hook for its removal unless debugging.
34228# Note that there is a small window in which the directory will not be cleaned:
34229# after its creation but before its name has been assigned to `$tmp'.
34230$debug ||
34231{
34232  tmp=
34233  trap 'exit_status=$?
34234  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34235' 0
34236  trap '{ (exit 1); exit 1; }' 1 2 13 15
34237}
34238# Create a (secure) tmp directory for tmp files.
34239
34240{
34241  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34242  test -n "$tmp" && test -d "$tmp"
34243}  ||
34244{
34245  tmp=./conf$$-$RANDOM
34246  (umask 077 && mkdir "$tmp")
34247} ||
34248{
34249   echo "$me: cannot create a temporary directory in ." >&2
34250   { (exit 1); exit 1; }
34251}
34252
34253#
34254# Set up the sed scripts for CONFIG_FILES section.
34255#
34256
34257# No need to generate the scripts if there are no CONFIG_FILES.
34258# This happens for instance when ./config.status config.h
34259if test -n "$CONFIG_FILES"; then
34260
34261_ACEOF
34262
34263
34264
34265ac_delim='%!_!# '
34266for ac_last_try in false false false false false :; do
34267  cat >conf$$subs.sed <<_ACEOF
34268SHELL!$SHELL$ac_delim
34269PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34270PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34271PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34272PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34273PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34274PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34275exec_prefix!$exec_prefix$ac_delim
34276prefix!$prefix$ac_delim
34277program_transform_name!$program_transform_name$ac_delim
34278bindir!$bindir$ac_delim
34279sbindir!$sbindir$ac_delim
34280libexecdir!$libexecdir$ac_delim
34281datarootdir!$datarootdir$ac_delim
34282datadir!$datadir$ac_delim
34283sysconfdir!$sysconfdir$ac_delim
34284sharedstatedir!$sharedstatedir$ac_delim
34285localstatedir!$localstatedir$ac_delim
34286includedir!$includedir$ac_delim
34287oldincludedir!$oldincludedir$ac_delim
34288docdir!$docdir$ac_delim
34289infodir!$infodir$ac_delim
34290htmldir!$htmldir$ac_delim
34291dvidir!$dvidir$ac_delim
34292pdfdir!$pdfdir$ac_delim
34293psdir!$psdir$ac_delim
34294libdir!$libdir$ac_delim
34295localedir!$localedir$ac_delim
34296mandir!$mandir$ac_delim
34297DEFS!$DEFS$ac_delim
34298ECHO_C!$ECHO_C$ac_delim
34299ECHO_N!$ECHO_N$ac_delim
34300ECHO_T!$ECHO_T$ac_delim
34301LIBS!$LIBS$ac_delim
34302build_alias!$build_alias$ac_delim
34303host_alias!$host_alias$ac_delim
34304target_alias!$target_alias$ac_delim
34305LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34306subdirs!$subdirs$ac_delim
34307build!$build$ac_delim
34308build_cpu!$build_cpu$ac_delim
34309build_vendor!$build_vendor$ac_delim
34310build_os!$build_os$ac_delim
34311host!$host$ac_delim
34312host_cpu!$host_cpu$ac_delim
34313host_vendor!$host_vendor$ac_delim
34314host_os!$host_os$ac_delim
34315target!$target$ac_delim
34316target_cpu!$target_cpu$ac_delim
34317target_vendor!$target_vendor$ac_delim
34318target_os!$target_os$ac_delim
34319OS!$OS$ac_delim
34320LINKALL!$LINKALL$ac_delim
34321NOLINKALL!$NOLINKALL$ac_delim
34322LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34323LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34324ARCH!$ARCH$ac_delim
34325ENDIAN!$ENDIAN$ac_delim
34326CC!$CC$ac_delim
34327CFLAGS!$CFLAGS$ac_delim
34328LDFLAGS!$LDFLAGS$ac_delim
34329CPPFLAGS!$CPPFLAGS$ac_delim
34330ac_ct_CC!$ac_ct_CC$ac_delim
34331EXEEXT!$EXEEXT$ac_delim
34332OBJEXT!$OBJEXT$ac_delim
34333CPP!$CPP$ac_delim
34334GREP!$GREP$ac_delim
34335EGREP!$EGREP$ac_delim
34336LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34337BUILD_CC!$BUILD_CC$ac_delim
34338BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34339CVSBUILD!$CVSBUILD$ac_delim
34340ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34341DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34342DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34343JIT!$JIT$ac_delim
34344TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34345ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34346ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34347ENABLE_PIC!$ENABLE_PIC$ac_delim
34348TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34349ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34350EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34351CXX!$CXX$ac_delim
34352CXXFLAGS!$CXXFLAGS$ac_delim
34353ac_ct_CXX!$ac_ct_CXX$ac_delim
34354LEX!$LEX$ac_delim
34355LEXLIB!$LEXLIB$ac_delim
34356LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34357FLEX!$FLEX$ac_delim
34358YACC!$YACC$ac_delim
34359YFLAGS!$YFLAGS$ac_delim
34360BISON!$BISON$ac_delim
34361NM!$NM$ac_delim
34362ifGNUmake!$ifGNUmake$ac_delim
34363LN_S!$LN_S$ac_delim
34364CMP!$CMP$ac_delim
34365_ACEOF
34366
34367  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34368    break
34369  elif $ac_last_try; then
34370    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34371echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34372   { (exit 1); exit 1; }; }
34373  else
34374    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34375  fi
34376done
34377
34378ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34379if test -n "$ac_eof"; then
34380  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34381  ac_eof=`expr $ac_eof + 1`
34382fi
34383
34384cat >>$CONFIG_STATUS <<_ACEOF
34385cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34386/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34387_ACEOF
34388sed '
34389s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34390s/^/s,@/; s/!/@,|#_!!_#|/
34391:n
34392t n
34393s/'"$ac_delim"'$/,g/; t
34394s/$/\\/; p
34395N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34396' >>$CONFIG_STATUS <conf$$subs.sed
34397rm -f conf$$subs.sed
34398cat >>$CONFIG_STATUS <<_ACEOF
34399CEOF$ac_eof
34400_ACEOF
34401
34402
34403ac_delim='%!_!# '
34404for ac_last_try in false false false false false :; do
34405  cat >conf$$subs.sed <<_ACEOF
34406CP!$CP$ac_delim
34407DATE!$DATE$ac_delim
34408FIND!$FIND$ac_delim
34409MKDIR!$MKDIR$ac_delim
34410MV!$MV$ac_delim
34411RANLIB!$RANLIB$ac_delim
34412RM!$RM$ac_delim
34413SED!$SED$ac_delim
34414TAR!$TAR$ac_delim
34415BINPWD!$BINPWD$ac_delim
34416GRAPHVIZ!$GRAPHVIZ$ac_delim
34417DOT!$DOT$ac_delim
34418GV!$GV$ac_delim
34419DOTTY!$DOTTY$ac_delim
34420PERL!$PERL$ac_delim
34421HAVE_PERL!$HAVE_PERL$ac_delim
34422INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34423INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34424INSTALL_DATA!$INSTALL_DATA$ac_delim
34425BZIP2!$BZIP2$ac_delim
34426DOXYGEN!$DOXYGEN$ac_delim
34427GROFF!$GROFF$ac_delim
34428GZIP!$GZIP$ac_delim
34429POD2HTML!$POD2HTML$ac_delim
34430POD2MAN!$POD2MAN$ac_delim
34431RUNTEST!$RUNTEST$ac_delim
34432TCLSH!$TCLSH$ac_delim
34433ZIP!$ZIP$ac_delim
34434INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34435INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34436CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34437CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34438LIBADD_DL!$LIBADD_DL$ac_delim
34439ECHO!$ECHO$ac_delim
34440AR!$AR$ac_delim
34441STRIP!$STRIP$ac_delim
34442CXXCPP!$CXXCPP$ac_delim
34443F77!$F77$ac_delim
34444FFLAGS!$FFLAGS$ac_delim
34445ac_ct_F77!$ac_ct_F77$ac_delim
34446LIBTOOL!$LIBTOOL$ac_delim
34447ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34448LLVMGCC!$LLVMGCC$ac_delim
34449LLVMGXX!$LLVMGXX$ac_delim
34450USE_UDIS86!$USE_UDIS86$ac_delim
34451HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
34452HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
34453ALLOCA!$ALLOCA$ac_delim
34454MMAP_FILE!$MMAP_FILE$ac_delim
34455LLVMCC1!$LLVMCC1$ac_delim
34456LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34457LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34458LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
34459LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34460LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34461LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
34462SHLIBEXT!$SHLIBEXT$ac_delim
34463LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34464LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34465LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34466LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34467LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34468LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34469LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34470LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34471LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34472LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34473LIBOBJS!$LIBOBJS$ac_delim
34474LTLIBOBJS!$LTLIBOBJS$ac_delim
34475_ACEOF
34476
34477  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 69; then
34478    break
34479  elif $ac_last_try; then
34480    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34481echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34482   { (exit 1); exit 1; }; }
34483  else
34484    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34485  fi
34486done
34487
34488ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34489if test -n "$ac_eof"; then
34490  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34491  ac_eof=`expr $ac_eof + 1`
34492fi
34493
34494cat >>$CONFIG_STATUS <<_ACEOF
34495cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34496/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34497_ACEOF
34498sed '
34499s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34500s/^/s,@/; s/!/@,|#_!!_#|/
34501:n
34502t n
34503s/'"$ac_delim"'$/,g/; t
34504s/$/\\/; p
34505N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34506' >>$CONFIG_STATUS <conf$$subs.sed
34507rm -f conf$$subs.sed
34508cat >>$CONFIG_STATUS <<_ACEOF
34509:end
34510s/|#_!!_#|//g
34511CEOF$ac_eof
34512_ACEOF
34513
34514
34515# VPATH may cause trouble with some makes, so we remove $(srcdir),
34516# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34517# trailing colons and then remove the whole line if VPATH becomes empty
34518# (actually we leave an empty line to preserve line numbers).
34519if test "x$srcdir" = x.; then
34520  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
34521s/:*\$(srcdir):*/:/
34522s/:*\${srcdir}:*/:/
34523s/:*@srcdir@:*/:/
34524s/^\([^=]*=[	 ]*\):*/\1/
34525s/:*$//
34526s/^[^=]*=[	 ]*$//
34527}'
34528fi
34529
34530cat >>$CONFIG_STATUS <<\_ACEOF
34531fi # test -n "$CONFIG_FILES"
34532
34533
34534for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
34535do
34536  case $ac_tag in
34537  :[FHLC]) ac_mode=$ac_tag; continue;;
34538  esac
34539  case $ac_mode$ac_tag in
34540  :[FHL]*:*);;
34541  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34542echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34543   { (exit 1); exit 1; }; };;
34544  :[FH]-) ac_tag=-:-;;
34545  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34546  esac
34547  ac_save_IFS=$IFS
34548  IFS=:
34549  set x $ac_tag
34550  IFS=$ac_save_IFS
34551  shift
34552  ac_file=$1
34553  shift
34554
34555  case $ac_mode in
34556  :L) ac_source=$1;;
34557  :[FH])
34558    ac_file_inputs=
34559    for ac_f
34560    do
34561      case $ac_f in
34562      -) ac_f="$tmp/stdin";;
34563      *) # Look for the file first in the build tree, then in the source tree
34564	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
34565	 # because $ac_f cannot contain `:'.
34566	 test -f "$ac_f" ||
34567	   case $ac_f in
34568	   [\\/$]*) false;;
34569	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34570	   esac ||
34571	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34572echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34573   { (exit 1); exit 1; }; };;
34574      esac
34575      ac_file_inputs="$ac_file_inputs $ac_f"
34576    done
34577
34578    # Let's still pretend it is `configure' which instantiates (i.e., don't
34579    # use $as_me), people would be surprised to read:
34580    #    /* config.h.  Generated by config.status.  */
34581    configure_input="Generated from "`IFS=:
34582	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34583    if test x"$ac_file" != x-; then
34584      configure_input="$ac_file.  $configure_input"
34585      { echo "$as_me:$LINENO: creating $ac_file" >&5
34586echo "$as_me: creating $ac_file" >&6;}
34587    fi
34588
34589    case $ac_tag in
34590    *:-:* | *:-) cat >"$tmp/stdin";;
34591    esac
34592    ;;
34593  esac
34594
34595  ac_dir=`$as_dirname -- "$ac_file" ||
34596$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34597	 X"$ac_file" : 'X\(//\)[^/]' \| \
34598	 X"$ac_file" : 'X\(//\)$' \| \
34599	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34600echo X"$ac_file" |
34601    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34602	    s//\1/
34603	    q
34604	  }
34605	  /^X\(\/\/\)[^/].*/{
34606	    s//\1/
34607	    q
34608	  }
34609	  /^X\(\/\/\)$/{
34610	    s//\1/
34611	    q
34612	  }
34613	  /^X\(\/\).*/{
34614	    s//\1/
34615	    q
34616	  }
34617	  s/.*/./; q'`
34618  { as_dir="$ac_dir"
34619  case $as_dir in #(
34620  -*) as_dir=./$as_dir;;
34621  esac
34622  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34623    as_dirs=
34624    while :; do
34625      case $as_dir in #(
34626      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34627      *) as_qdir=$as_dir;;
34628      esac
34629      as_dirs="'$as_qdir' $as_dirs"
34630      as_dir=`$as_dirname -- "$as_dir" ||
34631$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34632	 X"$as_dir" : 'X\(//\)[^/]' \| \
34633	 X"$as_dir" : 'X\(//\)$' \| \
34634	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34635echo X"$as_dir" |
34636    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34637	    s//\1/
34638	    q
34639	  }
34640	  /^X\(\/\/\)[^/].*/{
34641	    s//\1/
34642	    q
34643	  }
34644	  /^X\(\/\/\)$/{
34645	    s//\1/
34646	    q
34647	  }
34648	  /^X\(\/\).*/{
34649	    s//\1/
34650	    q
34651	  }
34652	  s/.*/./; q'`
34653      test -d "$as_dir" && break
34654    done
34655    test -z "$as_dirs" || eval "mkdir $as_dirs"
34656  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34657echo "$as_me: error: cannot create directory $as_dir" >&2;}
34658   { (exit 1); exit 1; }; }; }
34659  ac_builddir=.
34660
34661case "$ac_dir" in
34662.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34663*)
34664  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34665  # A ".." for each directory in $ac_dir_suffix.
34666  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34667  case $ac_top_builddir_sub in
34668  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34669  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34670  esac ;;
34671esac
34672ac_abs_top_builddir=$ac_pwd
34673ac_abs_builddir=$ac_pwd$ac_dir_suffix
34674# for backward compatibility:
34675ac_top_builddir=$ac_top_build_prefix
34676
34677case $srcdir in
34678  .)  # We are building in place.
34679    ac_srcdir=.
34680    ac_top_srcdir=$ac_top_builddir_sub
34681    ac_abs_top_srcdir=$ac_pwd ;;
34682  [\\/]* | ?:[\\/]* )  # Absolute name.
34683    ac_srcdir=$srcdir$ac_dir_suffix;
34684    ac_top_srcdir=$srcdir
34685    ac_abs_top_srcdir=$srcdir ;;
34686  *) # Relative name.
34687    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34688    ac_top_srcdir=$ac_top_build_prefix$srcdir
34689    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34690esac
34691ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34692
34693
34694  case $ac_mode in
34695  :F)
34696  #
34697  # CONFIG_FILE
34698  #
34699
34700  case $INSTALL in
34701  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34702  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34703  esac
34704_ACEOF
34705
34706cat >>$CONFIG_STATUS <<\_ACEOF
34707# If the template does not know about datarootdir, expand it.
34708# FIXME: This hack should be removed a few years after 2.60.
34709ac_datarootdir_hack=; ac_datarootdir_seen=
34710
34711case `sed -n '/datarootdir/ {
34712  p
34713  q
34714}
34715/@datadir@/p
34716/@docdir@/p
34717/@infodir@/p
34718/@localedir@/p
34719/@mandir@/p
34720' $ac_file_inputs` in
34721*datarootdir*) ac_datarootdir_seen=yes;;
34722*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34723  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34724echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34725_ACEOF
34726cat >>$CONFIG_STATUS <<_ACEOF
34727  ac_datarootdir_hack='
34728  s&@datadir@&$datadir&g
34729  s&@docdir@&$docdir&g
34730  s&@infodir@&$infodir&g
34731  s&@localedir@&$localedir&g
34732  s&@mandir@&$mandir&g
34733    s&\\\${datarootdir}&$datarootdir&g' ;;
34734esac
34735_ACEOF
34736
34737# Neutralize VPATH when `$srcdir' = `.'.
34738# Shell code in configure.ac might set extrasub.
34739# FIXME: do we really want to maintain this feature?
34740cat >>$CONFIG_STATUS <<_ACEOF
34741  sed "$ac_vpsub
34742$extrasub
34743_ACEOF
34744cat >>$CONFIG_STATUS <<\_ACEOF
34745:t
34746/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34747s&@configure_input@&$configure_input&;t t
34748s&@top_builddir@&$ac_top_builddir_sub&;t t
34749s&@srcdir@&$ac_srcdir&;t t
34750s&@abs_srcdir@&$ac_abs_srcdir&;t t
34751s&@top_srcdir@&$ac_top_srcdir&;t t
34752s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34753s&@builddir@&$ac_builddir&;t t
34754s&@abs_builddir@&$ac_abs_builddir&;t t
34755s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34756s&@INSTALL@&$ac_INSTALL&;t t
34757$ac_datarootdir_hack
34758" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
34759
34760test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34761  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34762  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34763  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34764which seems to be undefined.  Please make sure it is defined." >&5
34765echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34766which seems to be undefined.  Please make sure it is defined." >&2;}
34767
34768  rm -f "$tmp/stdin"
34769  case $ac_file in
34770  -) cat "$tmp/out"; rm -f "$tmp/out";;
34771  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
34772  esac
34773 ;;
34774  :H)
34775  #
34776  # CONFIG_HEADER
34777  #
34778_ACEOF
34779
34780# Transform confdefs.h into a sed script `conftest.defines', that
34781# substitutes the proper values into config.h.in to produce config.h.
34782rm -f conftest.defines conftest.tail
34783# First, append a space to every undef/define line, to ease matching.
34784echo 's/$/ /' >conftest.defines
34785# Then, protect against being on the right side of a sed subst, or in
34786# an unquoted here document, in config.status.  If some macros were
34787# called several times there might be several #defines for the same
34788# symbol, which is useless.  But do not sort them, since the last
34789# AC_DEFINE must be honored.
34790ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34791# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34792# NAME is the cpp macro being defined, VALUE is the value it is being given.
34793# PARAMS is the parameter list in the macro definition--in most cases, it's
34794# just an empty string.
34795ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
34796ac_dB='\\)[	 (].*,\\1define\\2'
34797ac_dC=' '
34798ac_dD=' ,'
34799
34800uniq confdefs.h |
34801  sed -n '
34802	t rset
34803	:rset
34804	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
34805	t ok
34806	d
34807	:ok
34808	s/[\\&,]/\\&/g
34809	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34810	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34811  ' >>conftest.defines
34812
34813# Remove the space that was appended to ease matching.
34814# Then replace #undef with comments.  This is necessary, for
34815# example, in the case of _POSIX_SOURCE, which is predefined and required
34816# on some systems where configure will not decide to define it.
34817# (The regexp can be short, since the line contains either #define or #undef.)
34818echo 's/ $//
34819s,^[	 #]*u.*,/* & */,' >>conftest.defines
34820
34821# Break up conftest.defines:
34822ac_max_sed_lines=50
34823
34824# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34825# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34826# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34827# et cetera.
34828ac_in='$ac_file_inputs'
34829ac_out='"$tmp/out1"'
34830ac_nxt='"$tmp/out2"'
34831
34832while :
34833do
34834  # Write a here document:
34835    cat >>$CONFIG_STATUS <<_ACEOF
34836    # First, check the format of the line:
34837    cat >"\$tmp/defines.sed" <<\\CEOF
34838/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
34839/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
34840b
34841:def
34842_ACEOF
34843  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
34844  echo 'CEOF
34845    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34846  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
34847  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
34848  grep . conftest.tail >/dev/null || break
34849  rm -f conftest.defines
34850  mv conftest.tail conftest.defines
34851done
34852rm -f conftest.defines conftest.tail
34853
34854echo "ac_result=$ac_in" >>$CONFIG_STATUS
34855cat >>$CONFIG_STATUS <<\_ACEOF
34856  if test x"$ac_file" != x-; then
34857    echo "/* $configure_input  */" >"$tmp/config.h"
34858    cat "$ac_result" >>"$tmp/config.h"
34859    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
34860      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34861echo "$as_me: $ac_file is unchanged" >&6;}
34862    else
34863      rm -f $ac_file
34864      mv "$tmp/config.h" $ac_file
34865    fi
34866  else
34867    echo "/* $configure_input  */"
34868    cat "$ac_result"
34869  fi
34870  rm -f "$tmp/out12"
34871 ;;
34872
34873  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
34874echo "$as_me: executing $ac_file commands" >&6;}
34875 ;;
34876  esac
34877
34878
34879  case $ac_file$ac_mode in
34880    "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
34881   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
34882    "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
34883   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
34884    "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
34885   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
34886    "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
34887   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
34888    "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
34889   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
34890    "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
34891   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
34892    "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
34893   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
34894    "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
34895   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
34896    "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
34897   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
34898    "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
34899   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
34900
34901  esac
34902done # for ac_tag
34903
34904
34905{ (exit 0); exit 0; }
34906_ACEOF
34907chmod +x $CONFIG_STATUS
34908ac_clean_files=$ac_clean_files_save
34909
34910
34911# configure is writing to config.log, and then calls config.status.
34912# config.status does its own redirection, appending to config.log.
34913# Unfortunately, on DOS this fails, as config.log is still kept open
34914# by configure, so config.status won't be able to write to it; its
34915# output is simply discarded.  So we exec the FD to /dev/null,
34916# effectively closing config.log, so it can be properly (re)opened and
34917# appended to by config.status.  When coming back to configure, we
34918# need to make the FD available again.
34919if test "$no_create" != yes; then
34920  ac_cs_success=:
34921  ac_config_status_args=
34922  test "$silent" = yes &&
34923    ac_config_status_args="$ac_config_status_args --quiet"
34924  exec 5>/dev/null
34925  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34926  exec 5>>config.log
34927  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34928  # would make configure fail if this is the last instruction.
34929  $ac_cs_success || { (exit 1); exit 1; }
34930fi
34931
34932#
34933# CONFIG_SUBDIRS section.
34934#
34935if test "$no_recursion" != yes; then
34936
34937  # Remove --cache-file and --srcdir arguments so they do not pile up.
34938  ac_sub_configure_args=
34939  ac_prev=
34940  eval "set x $ac_configure_args"
34941  shift
34942  for ac_arg
34943  do
34944    if test -n "$ac_prev"; then
34945      ac_prev=
34946      continue
34947    fi
34948    case $ac_arg in
34949    -cache-file | --cache-file | --cache-fil | --cache-fi \
34950    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34951      ac_prev=cache_file ;;
34952    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34953    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34954    | --c=*)
34955      ;;
34956    --config-cache | -C)
34957      ;;
34958    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34959      ac_prev=srcdir ;;
34960    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34961      ;;
34962    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34963      ac_prev=prefix ;;
34964    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34965      ;;
34966    *)
34967      case $ac_arg in
34968      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34969      esac
34970      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
34971    esac
34972  done
34973
34974  # Always prepend --prefix to ensure using the same prefix
34975  # in subdir configurations.
34976  ac_arg="--prefix=$prefix"
34977  case $ac_arg in
34978  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34979  esac
34980  ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
34981
34982  ac_popdir=`pwd`
34983  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34984
34985    # Do not complain, so a configure script can configure whichever
34986    # parts of a large source tree are present.
34987    test -d "$srcdir/$ac_dir" || continue
34988
34989    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34990    echo "$as_me:$LINENO: $ac_msg" >&5
34991    echo "$ac_msg" >&6
34992    { as_dir="$ac_dir"
34993  case $as_dir in #(
34994  -*) as_dir=./$as_dir;;
34995  esac
34996  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34997    as_dirs=
34998    while :; do
34999      case $as_dir in #(
35000      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35001      *) as_qdir=$as_dir;;
35002      esac
35003      as_dirs="'$as_qdir' $as_dirs"
35004      as_dir=`$as_dirname -- "$as_dir" ||
35005$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35006	 X"$as_dir" : 'X\(//\)[^/]' \| \
35007	 X"$as_dir" : 'X\(//\)$' \| \
35008	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35009echo X"$as_dir" |
35010    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35011	    s//\1/
35012	    q
35013	  }
35014	  /^X\(\/\/\)[^/].*/{
35015	    s//\1/
35016	    q
35017	  }
35018	  /^X\(\/\/\)$/{
35019	    s//\1/
35020	    q
35021	  }
35022	  /^X\(\/\).*/{
35023	    s//\1/
35024	    q
35025	  }
35026	  s/.*/./; q'`
35027      test -d "$as_dir" && break
35028    done
35029    test -z "$as_dirs" || eval "mkdir $as_dirs"
35030  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35031echo "$as_me: error: cannot create directory $as_dir" >&2;}
35032   { (exit 1); exit 1; }; }; }
35033    ac_builddir=.
35034
35035case "$ac_dir" in
35036.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35037*)
35038  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35039  # A ".." for each directory in $ac_dir_suffix.
35040  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35041  case $ac_top_builddir_sub in
35042  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35043  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35044  esac ;;
35045esac
35046ac_abs_top_builddir=$ac_pwd
35047ac_abs_builddir=$ac_pwd$ac_dir_suffix
35048# for backward compatibility:
35049ac_top_builddir=$ac_top_build_prefix
35050
35051case $srcdir in
35052  .)  # We are building in place.
35053    ac_srcdir=.
35054    ac_top_srcdir=$ac_top_builddir_sub
35055    ac_abs_top_srcdir=$ac_pwd ;;
35056  [\\/]* | ?:[\\/]* )  # Absolute name.
35057    ac_srcdir=$srcdir$ac_dir_suffix;
35058    ac_top_srcdir=$srcdir
35059    ac_abs_top_srcdir=$srcdir ;;
35060  *) # Relative name.
35061    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35062    ac_top_srcdir=$ac_top_build_prefix$srcdir
35063    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35064esac
35065ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35066
35067
35068    cd "$ac_dir"
35069
35070    # Check for guested configure; otherwise get Cygnus style configure.
35071    if test -f "$ac_srcdir/configure.gnu"; then
35072      ac_sub_configure=$ac_srcdir/configure.gnu
35073    elif test -f "$ac_srcdir/configure"; then
35074      ac_sub_configure=$ac_srcdir/configure
35075    elif test -f "$ac_srcdir/configure.in"; then
35076      # This should be Cygnus configure.
35077      ac_sub_configure=$ac_aux_dir/configure
35078    else
35079      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35080echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35081      ac_sub_configure=
35082    fi
35083
35084    # The recursion is here.
35085    if test -n "$ac_sub_configure"; then
35086      # Make the cache file name correct relative to the subdirectory.
35087      case $cache_file in
35088      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35089      *) # Relative name.
35090	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35091      esac
35092
35093      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35094echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35095      # The eval makes quoting arguments work.
35096      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35097	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35098	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35099echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35100   { (exit 1); exit 1; }; }
35101    fi
35102
35103    cd "$ac_popdir"
35104  done
35105fi
35106
35107
35108