1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.60-MirPorts-2.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15  emulate sh
16  NULLCMD=:
17  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18  # is contrary to our usage.  Disable this feature.
19  alias -g '${1+"$@"}'='"$@"'
20  setopt NO_GLOB_SUBST
21else
22  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
23fi
24BIN_SH=xpg4; export BIN_SH # for Tru64
25DUALCASE=1; export DUALCASE # for MKS sh
26
27
28# PATH needs CR
29# Avoid depending upon Character Ranges.
30as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33as_cr_digits='0123456789'
34as_cr_alnum=$as_cr_Letters$as_cr_digits
35
36# The user is always right.
37if test "${PATH_SEPARATOR+set}" != set; then
38  echo "#! /bin/sh" >conf$$.sh
39  echo  "exit 0"   >>conf$$.sh
40  chmod +x conf$$.sh
41  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42    PATH_SEPARATOR=';'
43  else
44    PATH_SEPARATOR=:
45  fi
46  rm -f conf$$.sh
47fi
48
49# Support unset when possible.
50if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51  as_unset=unset
52else
53  as_unset=false
54fi
55
56
57# IFS
58# We need space, tab and new line, in precisely that order.  Quoting is
59# there to prevent editors from complaining about space-tab.
60# (If _AS_PATH_WALK were called with IFS unset, it would disable word
61# splitting by setting IFS to empty value.)
62as_nl='
63'
64IFS=" ""	$as_nl"
65
66# Find who we are.  Look in the path if we contain no directory separator.
67case $0 in
68  *[\\/]* ) as_myself=$0 ;;
69  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70for as_dir in $PATH
71do
72  IFS=$as_save_IFS
73  test -z "$as_dir" && as_dir=.
74  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
75done
76IFS=$as_save_IFS
77
78     ;;
79esac
80# We did not find ourselves, most probably we were run as `sh COMMAND'
81# in which case we are not to be found in the path.
82if test "x$as_myself" = x; then
83  as_myself=$0
84fi
85if test ! -f "$as_myself"; then
86  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
87  { (exit 1); exit 1; }
88fi
89
90# Work around bugs in pre-3.0 UWIN ksh.
91for as_var in ENV MAIL MAILPATH
92do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
93done
94PS1='$ '
95PS2='> '
96PS4='+ '
97
98# NLS nuisances.
99for as_var in \
100  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
102  LC_TELEPHONE LC_TIME
103do
104  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105    eval $as_var=C; export $as_var
106  else
107    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
108  fi
109done
110
111# Required to use basename.
112if expr a : '\(a\)' >/dev/null 2>&1 &&
113   test "X`expr 00001 : '.*\(...\)'`" = X001; then
114  as_expr=expr
115else
116  as_expr=false
117fi
118
119if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
120  as_basename=basename
121else
122  as_basename=false
123fi
124
125
126# Name of the executable.
127as_me=`$as_basename -- "$0" ||
128$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129	 X"$0" : 'X\(//\)$' \| \
130	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
131echo X/"$0" |
132    sed '/^.*\/\([^/][^/]*\)\/*$/{
133	    s//\1/
134	    q
135	  }
136	  /^X\/\(\/\/\)$/{
137	    s//\1/
138	    q
139	  }
140	  /^X\/\(\/\).*/{
141	    s//\1/
142	    q
143	  }
144	  s/.*/./; q'`
145
146# CDPATH.
147$as_unset CDPATH
148
149
150if test "x$CONFIG_SHELL" = x; then
151  if (eval ":") 2>/dev/null; then
152  as_have_required=yes
153else
154  as_have_required=no
155fi
156
157  if test $as_have_required = yes && 	 (eval ":
158(as_func_return () {
159  (exit \$1)
160}
161as_func_success () {
162  as_func_return 0
163}
164as_func_failure () {
165  as_func_return 1
166}
167as_func_ret_success () {
168  return 0
169}
170as_func_ret_failure () {
171  return 1
172}
173
174exitcode=0
175if as_func_success; then
176  :
177else
178  exitcode=1
179  echo as_func_success failed.
180fi
181
182if as_func_failure; then
183  exitcode=1
184  echo as_func_failure succeeded.
185fi
186
187if as_func_ret_success; then
188  :
189else
190  exitcode=1
191  echo as_func_ret_success failed.
192fi
193
194if as_func_ret_failure; then
195  exitcode=1
196  echo as_func_ret_failure succeeded.
197fi
198
199if (set x; as_func_ret_success y && test x = \"\$1\" ); then
200  :
201else
202  exitcode=1
203  echo positional parameters were not saved.
204fi
205
206test \$exitcode = 0) || { (exit 1); exit 1; }
207
208(
209  as_lineno_1=\$LINENO
210  as_lineno_2=\$LINENO
211  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213") 2> /dev/null; then
214  :
215else
216  as_candidate_shells=
217    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  case $as_dir in
223	 /*)
224	   for as_base in sh bash ksh sh5; do
225	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
226	   done;;
227       esac
228done
229IFS=$as_save_IFS
230
231
232      for as_shell in $as_candidate_shells $SHELL; do
233	 # Try only shells that exist, to save several forks.
234	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235		{ ("$as_shell") 2> /dev/null <<\_ASEOF
236# Be Bourne compatible
237if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
238  emulate sh
239  NULLCMD=:
240  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241  # is contrary to our usage.  Disable this feature.
242  alias -g '${1+"$@"}'='"$@"'
243  setopt NO_GLOB_SUBST
244else
245  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
246fi
247BIN_SH=xpg4; export BIN_SH # for Tru64
248DUALCASE=1; export DUALCASE # for MKS sh
249
250:
251_ASEOF
252}; then
253  CONFIG_SHELL=$as_shell
254	       as_have_required=yes
255	       if { "$as_shell" 2> /dev/null <<\_ASEOF
256# Be Bourne compatible
257if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
258  emulate sh
259  NULLCMD=:
260  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261  # is contrary to our usage.  Disable this feature.
262  alias -g '${1+"$@"}'='"$@"'
263  setopt NO_GLOB_SUBST
264else
265  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
266fi
267BIN_SH=xpg4; export BIN_SH # for Tru64
268DUALCASE=1; export DUALCASE # for MKS sh
269
270:
271(as_func_return () {
272  (exit $1)
273}
274as_func_success () {
275  as_func_return 0
276}
277as_func_failure () {
278  as_func_return 1
279}
280as_func_ret_success () {
281  return 0
282}
283as_func_ret_failure () {
284  return 1
285}
286
287exitcode=0
288if as_func_success; then
289  :
290else
291  exitcode=1
292  echo as_func_success failed.
293fi
294
295if as_func_failure; then
296  exitcode=1
297  echo as_func_failure succeeded.
298fi
299
300if as_func_ret_success; then
301  :
302else
303  exitcode=1
304  echo as_func_ret_success failed.
305fi
306
307if as_func_ret_failure; then
308  exitcode=1
309  echo as_func_ret_failure succeeded.
310fi
311
312if ( set x; as_func_ret_success y && test x = "$1" ); then
313  :
314else
315  exitcode=1
316  echo positional parameters were not saved.
317fi
318
319test $exitcode = 0) || { (exit 1); exit 1; }
320
321(
322  as_lineno_1=$LINENO
323  as_lineno_2=$LINENO
324  test "x$as_lineno_1" != "x$as_lineno_2" &&
325  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
326
327_ASEOF
328}; then
329  break
330fi
331
332fi
333
334      done
335
336      if test "x$CONFIG_SHELL" != x; then
337  for as_var in BASH_ENV ENV
338        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
339        done
340        export CONFIG_SHELL
341        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
342fi
343
344
345    if test $as_have_required = no; then
346  echo This script requires a shell more modern than all the
347      echo shells that I found on your system.  Please install a
348      echo modern shell, or manually run the script under such a
349      echo shell if you do have one.
350      { (exit 1); exit 1; }
351fi
352
353
354fi
355
356fi
357
358
359
360(eval "as_func_return () {
361  (exit \$1)
362}
363as_func_success () {
364  as_func_return 0
365}
366as_func_failure () {
367  as_func_return 1
368}
369as_func_ret_success () {
370  return 0
371}
372as_func_ret_failure () {
373  return 1
374}
375
376exitcode=0
377if as_func_success; then
378  :
379else
380  exitcode=1
381  echo as_func_success failed.
382fi
383
384if as_func_failure; then
385  exitcode=1
386  echo as_func_failure succeeded.
387fi
388
389if as_func_ret_success; then
390  :
391else
392  exitcode=1
393  echo as_func_ret_success failed.
394fi
395
396if as_func_ret_failure; then
397  exitcode=1
398  echo as_func_ret_failure succeeded.
399fi
400
401if (set x; as_func_ret_success y && test x = \"\$1\" ); then
402  :
403else
404  exitcode=1
405  echo positional parameters were not saved.
406fi
407
408test \$exitcode = 0") || {
409  echo No shell found that supports shell functions.
410  echo Please tell autoconf@gnu.org about your system,
411  echo including any error possibly output before this
412  echo message
413}
414
415
416
417  as_lineno_1=$LINENO
418  as_lineno_2=$LINENO
419  test "x$as_lineno_1" != "x$as_lineno_2" &&
420  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
421
422  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423  # uniformly replaced by the line number.  The first 'sed' inserts a
424  # line-number line after each line using $LINENO; the second 'sed'
425  # does the real work.  The second script uses 'N' to pair each
426  # line-number line with the line containing $LINENO, and appends
427  # trailing '-' during substitution so that $LINENO is not a special
428  # case at line end.
429  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430  # scripts with optimization help from Paolo Bonzini.  Blame Lee
431  # E. McMahon (1931-1989) for sed's syntax.  :-)
432  sed -n '
433    p
434    /[$]LINENO/=
435  ' <$as_myself |
436    sed '
437      s/[$]LINENO.*/&-/
438      t lineno
439      b
440      :lineno
441      N
442      :loop
443      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444      t loop
445      s/-\n.*//
446    ' >$as_me.lineno &&
447  chmod +x "$as_me.lineno" ||
448    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449   { (exit 1); exit 1; }; }
450
451  # Don't try to exec as it changes $[0], causing all sort of problems
452  # (the dirname of $[0] is not the place where we might find the
453  # original and so on.  Autoconf is especially sensitive to this).
454  . "./$as_me.lineno"
455  # Exit status is that of the last command.
456  exit
457}
458
459
460if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461  as_dirname=dirname
462else
463  as_dirname=false
464fi
465
466ECHO_C= ECHO_N= ECHO_T=
467case `echo -n x` in
468-n*)
469  case `echo 'x\c'` in
470  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
471  *)   ECHO_C='\c';;
472  esac;;
473*)
474  ECHO_N='-n';;
475esac
476
477if expr a : '\(a\)' >/dev/null 2>&1 &&
478   test "X`expr 00001 : '.*\(...\)'`" = X001; then
479  as_expr=expr
480else
481  as_expr=false
482fi
483
484rm -f conf$$ conf$$.exe conf$$.file
485if test -d conf$$.dir; then
486  rm -f conf$$.dir/conf$$.file
487else
488  rm -f conf$$.dir
489  mkdir conf$$.dir
490fi
491echo >conf$$.file
492if ln -s conf$$.file conf$$ 2>/dev/null; then
493  as_ln_s='ln -s'
494  # ... but there are two gotchas:
495  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497  # In both cases, we have to default to `cp -p'.
498  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499    as_ln_s='cp -p'
500elif ln conf$$.file conf$$ 2>/dev/null; then
501  as_ln_s=ln
502else
503  as_ln_s='cp -p'
504fi
505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506rmdir conf$$.dir 2>/dev/null
507
508if mkdir -p . 2>/dev/null; then
509  as_mkdir_p=:
510else
511  test -d ./-p && rmdir ./-p
512  as_mkdir_p=false
513fi
514
515# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
516# systems may use methods other than mode bits to determine executability.
517cat >conf$$.file <<_ASEOF
518#! /bin/sh
519exit 0
520_ASEOF
521chmod +x conf$$.file
522if test -x conf$$.file >/dev/null 2>&1; then
523  as_executable_p="test -x"
524else
525  as_executable_p=:
526fi
527rm -f conf$$.file
528
529# Sed expression to map a string onto a valid CPP name.
530as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531
532# Sed expression to map a string onto a valid variable name.
533as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534
535
536
537
538
539# Check that we are running under the correct shell.
540SHELL=${CONFIG_SHELL-/bin/sh}
541
542case X$ECHO in
543X*--fallback-echo)
544  # Remove one level of quotation (which was required for Make).
545  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
546  ;;
547esac
548
549echo=${ECHO-echo}
550if test "X$1" = X--no-reexec; then
551  # Discard the --no-reexec flag, and continue.
552  shift
553elif test "X$1" = X--fallback-echo; then
554  # Avoid inline document here, it may be left over
555  :
556elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
557  # Yippee, $echo works!
558  :
559else
560  # Restart under the correct shell.
561  exec $SHELL "$0" --no-reexec ${1+"$@"}
562fi
563
564if test "X$1" = X--fallback-echo; then
565  # used as fallback echo
566  shift
567  cat <<EOF
568$*
569EOF
570  exit 0
571fi
572
573# The HP-UX ksh and POSIX shell print the target directory to stdout
574# if CDPATH is set.
575(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
576
577if test -z "$ECHO"; then
578if test "X${echo_test_string+set}" != Xset; then
579# find a string as large as possible, as long as the shell can cope with it
580  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
581    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
582    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
583       echo_test_string=`eval $cmd` &&
584       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
585    then
586      break
587    fi
588  done
589fi
590
591if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
592   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
593   test "X$echo_testing_string" = "X$echo_test_string"; then
594  :
595else
596  # The Solaris, AIX, and Digital Unix default echo programs unquote
597  # backslashes.  This makes it impossible to quote backslashes using
598  #   echo "$something" | sed 's/\\/\\\\/g'
599  #
600  # So, first we look for a working echo in the user's PATH.
601
602  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
603  for dir in $PATH /usr/ucb; do
604    IFS="$lt_save_ifs"
605    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
606       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
607       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
608       test "X$echo_testing_string" = "X$echo_test_string"; then
609      echo="$dir/echo"
610      break
611    fi
612  done
613  IFS="$lt_save_ifs"
614
615  if test "X$echo" = Xecho; then
616    # We didn't find a better echo, so look for alternatives.
617    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
618       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
619       test "X$echo_testing_string" = "X$echo_test_string"; then
620      # This shell has a builtin print -r that does the trick.
621      echo='print -r'
622    elif test -f ${MKSH:-/bin/mksh} &&
623	 test "X$CONFIG_SHELL" != X${MKSH:-/bin/mksh}; then
624      # If we have mksh, try running configure again with it.
625      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
626      export ORIGINAL_CONFIG_SHELL
627      CONFIG_SHELL=${MKSH:-/bin/mksh}
628      export CONFIG_SHELL
629      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
630    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
631	 test "X$CONFIG_SHELL" != X/bin/ksh; then
632      # If we have ksh, try running configure again with it.
633      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
634      export ORIGINAL_CONFIG_SHELL
635      CONFIG_SHELL=/bin/ksh
636      export CONFIG_SHELL
637      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
638    else
639      # Try using printf.
640      echo='printf %s\n'
641      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
642	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
643	 test "X$echo_testing_string" = "X$echo_test_string"; then
644	# Cool, printf works
645	:
646      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
647	   test "X$echo_testing_string" = 'X\t' &&
648	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
649	   test "X$echo_testing_string" = "X$echo_test_string"; then
650	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
651	export CONFIG_SHELL
652	SHELL="$CONFIG_SHELL"
653	export SHELL
654	echo="$CONFIG_SHELL $0 --fallback-echo"
655      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
656	   test "X$echo_testing_string" = 'X\t' &&
657	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
658	   test "X$echo_testing_string" = "X$echo_test_string"; then
659	echo="$CONFIG_SHELL $0 --fallback-echo"
660      else
661	# maybe with a smaller string...
662	prev=:
663
664	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
665	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
666	  then
667	    break
668	  fi
669	  prev="$cmd"
670	done
671
672	if test "$prev" != 'sed 50q "$0"'; then
673	  echo_test_string=`eval $prev`
674	  export echo_test_string
675	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
676	else
677	  # Oops.  We lost completely, so just stick with echo.
678	  echo=echo
679	fi
680      fi
681    fi
682  fi
683fi
684fi
685
686# Copy echo and quote the copy suitably for passing to libtool from
687# the Makefile, instead of quoting the original, which is used later.
688ECHO=$echo
689if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
690   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
691fi
692
693
694
695
696tagnames=${tagnames+${tagnames},}CXX
697
698tagnames=${tagnames+${tagnames},}F77
699
700exec 7<&0 </dev/null 6>&1
701
702# Name of the host.
703# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
704# so uname gets run too.
705ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
706
707#
708# Initializations.
709#
710ac_default_prefix=/usr/local
711ac_clean_files=
712ac_config_libobj_dir=.
713LIBOBJS=
714cross_compiling=no
715subdirs=
716MFLAGS=
717MAKEFLAGS=
718SHELL=${CONFIG_SHELL-/bin/sh}
719
720# Identity of this package.
721PACKAGE_NAME=
722PACKAGE_TARNAME=
723PACKAGE_VERSION=
724PACKAGE_STRING=
725PACKAGE_BUGREPORT=
726
727ac_unique_file="libbfd.c"
728# Factoring default headers for most tests.
729ac_includes_default="\
730#include <stdio.h>
731#if HAVE_SYS_TYPES_H
732# include <sys/types.h>
733#endif
734#if HAVE_SYS_STAT_H
735# include <sys/stat.h>
736#endif
737#if STDC_HEADERS
738# include <stdlib.h>
739# include <stddef.h>
740#else
741# if HAVE_STDLIB_H
742#  include <stdlib.h>
743# endif
744#endif
745#if HAVE_STRING_H
746# if !STDC_HEADERS && HAVE_MEMORY_H
747#  include <memory.h>
748# endif
749# include <string.h>
750#endif
751#if HAVE_STRINGS_H
752# include <strings.h>
753#endif
754#if HAVE_INTTYPES_H
755# include <inttypes.h>
756#endif
757#if HAVE_STDINT_H
758# include <stdint.h>
759#endif
760#if HAVE_UNISTD_H
761# include <unistd.h>
762#endif"
763
764ac_subst_vars='SHELL
765PATH_SEPARATOR
766PACKAGE_NAME
767PACKAGE_TARNAME
768PACKAGE_VERSION
769PACKAGE_STRING
770PACKAGE_BUGREPORT
771exec_prefix
772prefix
773program_transform_name
774bindir
775sbindir
776libexecdir
777datarootdir
778datadir
779sysconfdir
780sharedstatedir
781localstatedir
782includedir
783oldincludedir
784docdir
785infodir
786htmldir
787dvidir
788pdfdir
789psdir
790libdir
791localedir
792mandir
793DEFS
794ECHO_C
795ECHO_N
796ECHO_T
797LIBS
798build_alias
799host_alias
800target_alias
801build
802build_cpu
803build_vendor
804build_os
805host
806host_cpu
807host_vendor
808host_os
809target
810target_cpu
811target_vendor
812target_os
813CC
814CFLAGS
815LDFLAGS
816CPPFLAGS
817ac_ct_CC
818EXEEXT
819OBJEXT
820INSTALL_PROGRAM
821INSTALL_SCRIPT
822INSTALL_DATA
823CYGPATH_W
824PACKAGE
825VERSION
826ACLOCAL
827AUTOCONF
828AUTOMAKE
829AUTOHEADER
830MAKEINFO
831install_sh
832STRIP
833INSTALL_STRIP_PROGRAM
834mkdir_p
835AWK
836SET_MAKE
837am__leading_dot
838AMTAR
839am__tar
840am__untar
841DEPDIR
842am__include
843am__quote
844AMDEP_TRUE
845AMDEP_FALSE
846AMDEPBACKSLASH
847CCDEPMODE
848am__fastdepCC_TRUE
849am__fastdepCC_FALSE
850AR
851RANLIB
852SED
853GREP
854EGREP
855LN_S
856ECHO
857CPP
858CXX
859CXXFLAGS
860ac_ct_CXX
861CXXDEPMODE
862am__fastdepCXX_TRUE
863am__fastdepCXX_FALSE
864CXXCPP
865F77
866FFLAGS
867ac_ct_F77
868LIBTOOL
869WARN_CFLAGS
870NO_WERROR
871MAINTAINER_MODE_TRUE
872MAINTAINER_MODE_FALSE
873MAINT
874INSTALL_LIBBFD_TRUE
875INSTALL_LIBBFD_FALSE
876host_noncanonical
877target_noncanonical
878bfdlibdir
879bfdincludedir
880HDEFINES
881BFD_HOST_64BIT_LONG
882BFD_HOST_LONG_LONG
883BFD_HOST_64_BIT_DEFINED
884BFD_HOST_64_BIT
885BFD_HOST_U_64_BIT
886CC_FOR_BUILD
887EXEEXT_FOR_BUILD
888COREFILE
889COREFLAG
890WIN32LDFLAGS
891WIN32LIBADD
892TDEFINES
893wordsize
894bfd_libs
895all_backends
896bfd_backends
897bfd_machines
898bfd_default_target_size
899bfd_file_ptr
900bfd_ufile_ptr
901tdefaults
902LIBOBJS
903LTLIBOBJS'
904ac_subst_files=''
905      ac_precious_vars='build_alias
906host_alias
907target_alias
908CC
909CFLAGS
910LDFLAGS
911CPPFLAGS
912CPP
913CXX
914CXXFLAGS
915CCC
916CXXCPP
917F77
918FFLAGS'
919
920
921# Initialize some variables set by options.
922ac_init_help=
923ac_init_version=false
924# The variables have the same names as the options, with
925# dashes changed to underlines.
926cache_file=/dev/null
927exec_prefix=NONE
928no_create=
929no_recursion=
930prefix=NONE
931program_prefix=NONE
932program_suffix=NONE
933program_transform_name=s,x,x,
934silent=
935site=
936srcdir=
937verbose=
938x_includes=NONE
939x_libraries=NONE
940
941# Installation directory options.
942# These are left unexpanded so users can "make install exec_prefix=/foo"
943# and all the variables that are supposed to be based on exec_prefix
944# by default will actually change.
945# Use braces instead of parens because sh, perl, etc. also accept them.
946# (The list follows the same order as the GNU Coding Standards.)
947bindir='${exec_prefix}/bin'
948sbindir='${exec_prefix}/sbin'
949libexecdir='${exec_prefix}/libexec'
950datarootdir='${prefix}/share'
951datadir='${datarootdir}'
952sysconfdir='${prefix}/etc'
953sharedstatedir='${prefix}/com'
954localstatedir='${prefix}/var'
955includedir='${prefix}/include'
956oldincludedir='/usr/include'
957docdir='${datarootdir}/doc/${PACKAGE}'
958infodir='${datarootdir}/info'
959htmldir='${docdir}'
960dvidir='${docdir}'
961pdfdir='${docdir}'
962psdir='${docdir}'
963libdir='${exec_prefix}/lib'
964localedir='${datarootdir}/locale'
965mandir='${datarootdir}/man'
966
967ac_prev=
968ac_dashdash=
969for ac_option
970do
971  # If the previous option needs an argument, assign it.
972  if test -n "$ac_prev"; then
973    eval $ac_prev=\$ac_option
974    ac_prev=
975    continue
976  fi
977
978  case $ac_option in
979  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
980  *)	ac_optarg=yes ;;
981  esac
982
983  # Accept the important Cygnus configure options, so we can diagnose typos.
984
985  case $ac_dashdash$ac_option in
986  --)
987    ac_dashdash=yes ;;
988
989  -bindir | --bindir | --bindi | --bind | --bin | --bi)
990    ac_prev=bindir ;;
991  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
992    bindir=$ac_optarg ;;
993
994  -build | --build | --buil | --bui | --bu)
995    ac_prev=build_alias ;;
996  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
997    build_alias=$ac_optarg ;;
998
999  -cache-file | --cache-file | --cache-fil | --cache-fi \
1000  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1001    ac_prev=cache_file ;;
1002  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1003  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1004    cache_file=$ac_optarg ;;
1005
1006  --config-cache | -C)
1007    cache_file=config.cache ;;
1008
1009  -datadir | --datadir | --datadi | --datad)
1010    ac_prev=datadir ;;
1011  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1012    datadir=$ac_optarg ;;
1013
1014  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1015  | --dataroo | --dataro | --datar)
1016    ac_prev=datarootdir ;;
1017  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1018  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1019    datarootdir=$ac_optarg ;;
1020
1021  -disable-* | --disable-*)
1022    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1023    # Reject names that are not valid shell variable names.
1024    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1025      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1026   { (exit 1); exit 1; }; }
1027    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1028    eval enable_$ac_feature=no ;;
1029
1030  -docdir | --docdir | --docdi | --doc | --do)
1031    ac_prev=docdir ;;
1032  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1033    docdir=$ac_optarg ;;
1034
1035  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1036    ac_prev=dvidir ;;
1037  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1038    dvidir=$ac_optarg ;;
1039
1040  -enable-* | --enable-*)
1041    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1042    # Reject names that are not valid shell variable names.
1043    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1044      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1045   { (exit 1); exit 1; }; }
1046    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1047    eval enable_$ac_feature=\$ac_optarg ;;
1048
1049  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1050  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1051  | --exec | --exe | --ex)
1052    ac_prev=exec_prefix ;;
1053  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1054  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1055  | --exec=* | --exe=* | --ex=*)
1056    exec_prefix=$ac_optarg ;;
1057
1058  -gas | --gas | --ga | --g)
1059    # Obsolete; use --with-gas.
1060    with_gas=yes ;;
1061
1062  -help | --help | --hel | --he | -h)
1063    ac_init_help=long ;;
1064  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1065    ac_init_help=recursive ;;
1066  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1067    ac_init_help=short ;;
1068
1069  -host | --host | --hos | --ho)
1070    ac_prev=host_alias ;;
1071  -host=* | --host=* | --hos=* | --ho=*)
1072    host_alias=$ac_optarg ;;
1073
1074  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1075    ac_prev=htmldir ;;
1076  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1077  | --ht=*)
1078    htmldir=$ac_optarg ;;
1079
1080  -includedir | --includedir | --includedi | --included | --include \
1081  | --includ | --inclu | --incl | --inc)
1082    ac_prev=includedir ;;
1083  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1084  | --includ=* | --inclu=* | --incl=* | --inc=*)
1085    includedir=$ac_optarg ;;
1086
1087  -infodir | --infodir | --infodi | --infod | --info | --inf)
1088    ac_prev=infodir ;;
1089  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1090    infodir=$ac_optarg ;;
1091
1092  -libdir | --libdir | --libdi | --libd)
1093    ac_prev=libdir ;;
1094  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1095    libdir=$ac_optarg ;;
1096
1097  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1098  | --libexe | --libex | --libe)
1099    ac_prev=libexecdir ;;
1100  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1101  | --libexe=* | --libex=* | --libe=*)
1102    libexecdir=$ac_optarg ;;
1103
1104  -localedir | --localedir | --localedi | --localed | --locale)
1105    ac_prev=localedir ;;
1106  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1107    localedir=$ac_optarg ;;
1108
1109  -localstatedir | --localstatedir | --localstatedi | --localstated \
1110  | --localstate | --localstat | --localsta | --localst | --locals)
1111    ac_prev=localstatedir ;;
1112  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1113  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1114    localstatedir=$ac_optarg ;;
1115
1116  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1117    ac_prev=mandir ;;
1118  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1119    mandir=$ac_optarg ;;
1120
1121  -nfp | --nfp | --nf)
1122    # Obsolete; use --without-fp.
1123    with_fp=no ;;
1124
1125  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1126  | --no-cr | --no-c | -n)
1127    no_create=yes ;;
1128
1129  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1130  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1131    no_recursion=yes ;;
1132
1133  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1134  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1135  | --oldin | --oldi | --old | --ol | --o)
1136    ac_prev=oldincludedir ;;
1137  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1138  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1139  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1140    oldincludedir=$ac_optarg ;;
1141
1142  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1143    ac_prev=prefix ;;
1144  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1145    prefix=$ac_optarg ;;
1146
1147  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1148  | --program-pre | --program-pr | --program-p)
1149    ac_prev=program_prefix ;;
1150  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1151  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1152    program_prefix=$ac_optarg ;;
1153
1154  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1155  | --program-suf | --program-su | --program-s)
1156    ac_prev=program_suffix ;;
1157  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1158  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1159    program_suffix=$ac_optarg ;;
1160
1161  -program-transform-name | --program-transform-name \
1162  | --program-transform-nam | --program-transform-na \
1163  | --program-transform-n | --program-transform- \
1164  | --program-transform | --program-transfor \
1165  | --program-transfo | --program-transf \
1166  | --program-trans | --program-tran \
1167  | --progr-tra | --program-tr | --program-t)
1168    ac_prev=program_transform_name ;;
1169  -program-transform-name=* | --program-transform-name=* \
1170  | --program-transform-nam=* | --program-transform-na=* \
1171  | --program-transform-n=* | --program-transform-=* \
1172  | --program-transform=* | --program-transfor=* \
1173  | --program-transfo=* | --program-transf=* \
1174  | --program-trans=* | --program-tran=* \
1175  | --progr-tra=* | --program-tr=* | --program-t=*)
1176    program_transform_name=$ac_optarg ;;
1177
1178  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1179    ac_prev=pdfdir ;;
1180  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1181    pdfdir=$ac_optarg ;;
1182
1183  -psdir | --psdir | --psdi | --psd | --ps)
1184    ac_prev=psdir ;;
1185  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1186    psdir=$ac_optarg ;;
1187
1188  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1189  | -silent | --silent | --silen | --sile | --sil)
1190    silent=yes ;;
1191
1192  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1193    ac_prev=sbindir ;;
1194  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1195  | --sbi=* | --sb=*)
1196    sbindir=$ac_optarg ;;
1197
1198  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1199  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1200  | --sharedst | --shareds | --shared | --share | --shar \
1201  | --sha | --sh)
1202    ac_prev=sharedstatedir ;;
1203  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1204  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1205  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1206  | --sha=* | --sh=*)
1207    sharedstatedir=$ac_optarg ;;
1208
1209  -site | --site | --sit)
1210    ac_prev=site ;;
1211  -site=* | --site=* | --sit=*)
1212    site=$ac_optarg ;;
1213
1214  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1215    ac_prev=srcdir ;;
1216  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1217    srcdir=$ac_optarg ;;
1218
1219  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1220  | --syscon | --sysco | --sysc | --sys | --sy)
1221    ac_prev=sysconfdir ;;
1222  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1223  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1224    sysconfdir=$ac_optarg ;;
1225
1226  -target | --target | --targe | --targ | --tar | --ta | --t)
1227    ac_prev=target_alias ;;
1228  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1229    target_alias=$ac_optarg ;;
1230
1231  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1232    verbose=yes ;;
1233
1234  -version | --version | --versio | --versi | --vers | -V)
1235    ac_init_version=: ;;
1236
1237  -with-* | --with-*)
1238    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1239    # Reject names that are not valid shell variable names.
1240    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1241      { echo "$as_me: error: invalid package name: $ac_package" >&2
1242   { (exit 1); exit 1; }; }
1243    ac_package=`echo $ac_package| sed 's/-/_/g'`
1244    eval with_$ac_package=\$ac_optarg ;;
1245
1246  -without-* | --without-*)
1247    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1248    # Reject names that are not valid shell variable names.
1249    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1250      { echo "$as_me: error: invalid package name: $ac_package" >&2
1251   { (exit 1); exit 1; }; }
1252    ac_package=`echo $ac_package | sed 's/-/_/g'`
1253    eval with_$ac_package=no ;;
1254
1255  --x)
1256    # Obsolete; use --with-x.
1257    with_x=yes ;;
1258
1259  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1260  | --x-incl | --x-inc | --x-in | --x-i)
1261    ac_prev=x_includes ;;
1262  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1263  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1264    x_includes=$ac_optarg ;;
1265
1266  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1267  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1268    ac_prev=x_libraries ;;
1269  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1270  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1271    x_libraries=$ac_optarg ;;
1272
1273  -*) { echo "$as_me: error: unrecognized option: $ac_option
1274Try \`$0 --help' for more information." >&2
1275   { (exit 1); exit 1; }; }
1276    ;;
1277
1278  *=*)
1279    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1280    # Reject names that are not valid shell variable names.
1281    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1282      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1283   { (exit 1); exit 1; }; }
1284    eval $ac_envvar=\$ac_optarg
1285    export $ac_envvar ;;
1286
1287  *)
1288    # FIXME: should be removed in autoconf 3.0.
1289    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1290    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1291      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1292    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1293    ;;
1294
1295  esac
1296done
1297
1298if test -n "$ac_prev"; then
1299  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1300  { echo "$as_me: error: missing argument to $ac_option" >&2
1301   { (exit 1); exit 1; }; }
1302fi
1303
1304# Be sure to have absolute directory names.
1305for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1306		datadir sysconfdir sharedstatedir localstatedir includedir \
1307		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1308		libdir localedir mandir
1309do
1310  eval ac_val=\$$ac_var
1311  case $ac_val in
1312    [\\/$]* | ?:[\\/]* )  continue;;
1313    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1314  esac
1315  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1316   { (exit 1); exit 1; }; }
1317done
1318
1319# There might be people who depend on the old broken behavior: `$host'
1320# used to hold the argument of --host etc.
1321# FIXME: To remove some day.
1322build=$build_alias
1323host=$host_alias
1324target=$target_alias
1325
1326# FIXME: To remove some day.
1327if test "x$host_alias" != x; then
1328  if test "x$build_alias" = x; then
1329    cross_compiling=maybe
1330    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1331    If a cross compiler is detected then cross compile mode will be used." >&2
1332  elif test "x$build_alias" != "x$host_alias"; then
1333    cross_compiling=yes
1334  fi
1335fi
1336
1337ac_tool_prefix=
1338test -n "$host_alias" && ac_tool_prefix=$host_alias-
1339
1340test "$silent" = yes && exec 6>/dev/null
1341
1342
1343ac_pwd=`pwd` && test -n "$ac_pwd" &&
1344ac_ls_di=`ls -di .` &&
1345ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1346  { echo "$as_me: error: Working directory cannot be determined" >&2
1347   { (exit 1); exit 1; }; }
1348test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1349  { echo "$as_me: error: pwd does not report name of working directory" >&2
1350   { (exit 1); exit 1; }; }
1351
1352
1353# Find the source files, if location was not specified.
1354if test -z "$srcdir"; then
1355  ac_srcdir_defaulted=yes
1356  # Try the directory containing this script, then the parent directory.
1357  ac_confdir=`$as_dirname -- "$0" ||
1358$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1359	 X"$0" : 'X\(//\)[^/]' \| \
1360	 X"$0" : 'X\(//\)$' \| \
1361	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1362echo X"$0" |
1363    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1364	    s//\1/
1365	    q
1366	  }
1367	  /^X\(\/\/\)[^/].*/{
1368	    s//\1/
1369	    q
1370	  }
1371	  /^X\(\/\/\)$/{
1372	    s//\1/
1373	    q
1374	  }
1375	  /^X\(\/\).*/{
1376	    s//\1/
1377	    q
1378	  }
1379	  s/.*/./; q'`
1380  srcdir=$ac_confdir
1381  if test ! -r "$srcdir/$ac_unique_file"; then
1382    srcdir=..
1383  fi
1384else
1385  ac_srcdir_defaulted=no
1386fi
1387if test ! -r "$srcdir/$ac_unique_file"; then
1388  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1389  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1390   { (exit 1); exit 1; }; }
1391fi
1392ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1393ac_abs_confdir=`(
1394	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1395   { (exit 1); exit 1; }; }
1396	pwd)`
1397# When building in place, set srcdir=.
1398if test "$ac_abs_confdir" = "$ac_pwd"; then
1399  srcdir=.
1400fi
1401# Remove unnecessary trailing slashes from srcdir.
1402# Double slashes in file names in object file debugging info
1403# mess up M-x gdb in Emacs.
1404case $srcdir in
1405*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1406esac
1407for ac_var in $ac_precious_vars; do
1408  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1409  eval ac_env_${ac_var}_value=\$${ac_var}
1410  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1411  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1412done
1413
1414#
1415# Report the --help message.
1416#
1417if test "$ac_init_help" = "long"; then
1418  # Omit some internal or obsolete options to make the list less imposing.
1419  # This message is too long to be a string in the A/UX 3.1 sh.
1420  cat <<_ACEOF
1421\`configure' configures this package to adapt to many kinds of systems.
1422
1423Usage: $0 [OPTION]... [VAR=VALUE]...
1424
1425To assign environment variables (e.g., CC, CFLAGS...), specify them as
1426VAR=VALUE.  See below for descriptions of some of the useful variables.
1427
1428Defaults for the options are specified in brackets.
1429
1430Configuration:
1431  -h, --help              display this help and exit
1432      --help=short        display options specific to this package
1433      --help=recursive    display the short help of all the included packages
1434  -V, --version           display version information and exit
1435  -q, --quiet, --silent   do not print \`checking...' messages
1436      --cache-file=FILE   cache test results in FILE [disabled]
1437  -C, --config-cache      alias for \`--cache-file=config.cache'
1438  -n, --no-create         do not create output files
1439      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1440
1441Installation directories:
1442  --prefix=PREFIX         install architecture-independent files in PREFIX
1443			  [$ac_default_prefix]
1444  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1445			  [PREFIX]
1446
1447By default, \`make install' will install all the files in
1448\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1449an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1450for instance \`--prefix=\$HOME'.
1451
1452For better control, use the options below.
1453
1454Fine tuning of the installation directories:
1455  --bindir=DIR           user executables [EPREFIX/bin]
1456  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1457  --libexecdir=DIR       program executables [EPREFIX/libexec]
1458  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1459  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1460  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1461  --libdir=DIR           object code libraries [EPREFIX/lib]
1462  --includedir=DIR       C header files [PREFIX/include]
1463  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1464  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1465  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1466  --infodir=DIR          info documentation [DATAROOTDIR/info]
1467  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1468  --mandir=DIR           man documentation [DATAROOTDIR/man]
1469  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1470  --htmldir=DIR          html documentation [DOCDIR]
1471  --dvidir=DIR           dvi documentation [DOCDIR]
1472  --pdfdir=DIR           pdf documentation [DOCDIR]
1473  --psdir=DIR            ps documentation [DOCDIR]
1474_ACEOF
1475
1476  cat <<\_ACEOF
1477
1478Program names:
1479  --program-prefix=PREFIX            prepend PREFIX to installed program names
1480  --program-suffix=SUFFIX            append SUFFIX to installed program names
1481  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1482
1483System types:
1484  --build=BUILD     configure for building on BUILD [guessed]
1485  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1486  --target=TARGET   configure for building compilers for TARGET [HOST]
1487_ACEOF
1488fi
1489
1490if test -n "$ac_init_help"; then
1491
1492  cat <<\_ACEOF
1493
1494Optional Features:
1495  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1496  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1497  --disable-dependency-tracking  speeds up one-time build
1498  --enable-dependency-tracking   do not reject slow dependency extractors
1499  --enable-shared[=PKGS]  build shared libraries [default=no]
1500  --enable-static[=PKGS]  build static libraries [default=yes]
1501  --enable-fast-install[=PKGS]
1502                          optimize for fast installation [default=yes]
1503  --disable-libtool-lock  avoid locking (might break parallel builds)
1504  --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
1505  --enable-targets        alternative target configurations
1506  --enable-commonbfdlib   build shared BFD/opcodes/libiberty library
1507  --enable-secureplt      Default to creating read-only plt entries
1508  --enable-werror    treat compile warnings as errors
1509  --enable-build-warnings Enable build-time compiler warnings
1510  --enable-maintainer-mode  enable make rules and dependencies not useful
1511			  (and sometimes confusing) to the casual installer
1512  --enable-install-libbfd controls installation of libbfd and related headers
1513
1514Optional Packages:
1515  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1516  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1517  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1518  --with-pic              try to use only PIC/non-PIC objects [default=use
1519                          both]
1520  --with-tags[=TAGS]      include additional configurations [automatic]
1521  --with-mmap             try using mmap for BFD input files if available
1522
1523Some influential environment variables:
1524  CC          C compiler command
1525  CFLAGS      C compiler flags
1526  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1527              nonstandard directory <lib dir>
1528  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1529              you have headers in a nonstandard directory <include dir>
1530  CPP         C preprocessor
1531  CXX         C++ compiler command
1532  CXXFLAGS    C++ compiler flags
1533  CXXCPP      C++ preprocessor
1534  F77         Fortran 77 compiler command
1535  FFLAGS      Fortran 77 compiler flags
1536
1537Use these variables to override the choices made by `configure' or to help
1538it to find libraries and programs with nonstandard names/locations.
1539
1540_ACEOF
1541ac_status=$?
1542fi
1543
1544if test "$ac_init_help" = "recursive"; then
1545  # If there are subdirs, report their specific --help.
1546  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1547    test -d "$ac_dir" || continue
1548    ac_builddir=.
1549
1550case "$ac_dir" in
1551.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552*)
1553  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1554  # A ".." for each directory in $ac_dir_suffix.
1555  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1556  case $ac_top_builddir_sub in
1557  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1559  esac ;;
1560esac
1561ac_abs_top_builddir=$ac_pwd
1562ac_abs_builddir=$ac_pwd$ac_dir_suffix
1563# for backward compatibility:
1564ac_top_builddir=$ac_top_build_prefix
1565
1566case $srcdir in
1567  .)  # We are building in place.
1568    ac_srcdir=.
1569    ac_top_srcdir=$ac_top_builddir_sub
1570    ac_abs_top_srcdir=$ac_pwd ;;
1571  [\\/]* | ?:[\\/]* )  # Absolute name.
1572    ac_srcdir=$srcdir$ac_dir_suffix;
1573    ac_top_srcdir=$srcdir
1574    ac_abs_top_srcdir=$srcdir ;;
1575  *) # Relative name.
1576    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1577    ac_top_srcdir=$ac_top_build_prefix$srcdir
1578    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1579esac
1580ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1581
1582    cd "$ac_dir" || { ac_status=$?; continue; }
1583    # Check for guested configure.
1584    if test -f "$ac_srcdir/configure.gnu"; then
1585      echo &&
1586      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1587    elif test -f "$ac_srcdir/configure"; then
1588      echo &&
1589      $SHELL "$ac_srcdir/configure" --help=recursive
1590    else
1591      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1592    fi || ac_status=$?
1593    cd "$ac_pwd" || { ac_status=$?; break; }
1594  done
1595fi
1596
1597test -n "$ac_init_help" && exit $ac_status
1598if $ac_init_version; then
1599  cat <<\_ACEOF
1600configure
1601generated by GNU Autoconf 2.60-MirPorts-2
1602
1603Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16042002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1605This configure script is free software; the Free Software Foundation
1606gives unlimited permission to copy, distribute and modify it.
1607_ACEOF
1608  exit
1609fi
1610cat >config.log <<_ACEOF
1611This file contains any messages produced by compilers while
1612running configure, to aid debugging if configure makes a mistake.
1613
1614It was created by $as_me, which was
1615generated by GNU Autoconf 2.60-MirPorts-2.  Invocation command line was
1616
1617  $ $0 $@
1618
1619_ACEOF
1620exec 5>>config.log
1621{
1622cat <<_ASUNAME
1623## --------- ##
1624## Platform. ##
1625## --------- ##
1626
1627hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1628uname -m = `(uname -m) 2>/dev/null || echo unknown`
1629uname -r = `(uname -r) 2>/dev/null || echo unknown`
1630uname -s = `(uname -s) 2>/dev/null || echo unknown`
1631uname -v = `(uname -v) 2>/dev/null || echo unknown`
1632
1633/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1634/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1635
1636/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1637/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1638/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1639/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1640/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1641/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1642/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1643
1644_ASUNAME
1645
1646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647for as_dir in $PATH
1648do
1649  IFS=$as_save_IFS
1650  test -z "$as_dir" && as_dir=.
1651  echo "PATH: $as_dir"
1652done
1653IFS=$as_save_IFS
1654
1655} >&5
1656
1657cat >&5 <<_ACEOF
1658
1659
1660## ----------- ##
1661## Core tests. ##
1662## ----------- ##
1663
1664_ACEOF
1665
1666
1667# Keep a trace of the command line.
1668# Strip out --no-create and --no-recursion so they do not pile up.
1669# Strip out --silent because we don't want to record it for future runs.
1670# Also quote any args containing shell meta-characters.
1671# Make two passes to allow for proper duplicate-argument suppression.
1672ac_configure_args=
1673ac_configure_args0=
1674ac_configure_args1=
1675ac_must_keep_next=false
1676for ac_pass in 1 2
1677do
1678  for ac_arg
1679  do
1680    case $ac_arg in
1681    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1682    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1683    | -silent | --silent | --silen | --sile | --sil)
1684      continue ;;
1685    *\'*)
1686      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1687    esac
1688    case $ac_pass in
1689    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1690    2)
1691      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1692      if test $ac_must_keep_next = true; then
1693	ac_must_keep_next=false # Got value, back to normal.
1694      else
1695	case $ac_arg in
1696	  *=* | --config-cache | -C | -disable-* | --disable-* \
1697	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1698	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1699	  | -with-* | --with-* | -without-* | --without-* | --x)
1700	    case "$ac_configure_args0 " in
1701	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1702	    esac
1703	    ;;
1704	  -* ) ac_must_keep_next=true ;;
1705	esac
1706      fi
1707      ac_configure_args="$ac_configure_args '$ac_arg'"
1708      ;;
1709    esac
1710  done
1711done
1712$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1713$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1714
1715# When interrupted or exit'd, cleanup temporary files, and complete
1716# config.log.  We remove comments because anyway the quotes in there
1717# would cause problems or look ugly.
1718# WARNING: Use '\'' to represent an apostrophe within the trap.
1719# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1720trap 'exit_status=$?
1721  # Save into config.log some information that might help in debugging.
1722  {
1723    echo
1724
1725    cat <<\_ASBOX
1726## ---------------- ##
1727## Cache variables. ##
1728## ---------------- ##
1729_ASBOX
1730    echo
1731    # The following way of writing the cache mishandles newlines in values,
1732(
1733  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1734    eval ac_val=\$$ac_var
1735    case $ac_val in #(
1736    *${as_nl}*)
1737      case $ac_var in #(
1738      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1739echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1740      esac
1741      case $ac_var in #(
1742      _ | IFS | as_nl) ;; #(
1743      *) $as_unset $ac_var ;;
1744      esac ;;
1745    esac
1746  done
1747  (set) 2>&1 |
1748    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1749    *${as_nl}ac_space=\ *)
1750      sed -n \
1751	"s/'\''/'\''\\\\'\'''\''/g;
1752	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1753      ;; #(
1754    *)
1755      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1756      ;;
1757    esac |
1758    sort
1759)
1760    echo
1761
1762    cat <<\_ASBOX
1763## ----------------- ##
1764## Output variables. ##
1765## ----------------- ##
1766_ASBOX
1767    echo
1768    for ac_var in $ac_subst_vars
1769    do
1770      eval ac_val=\$$ac_var
1771      case $ac_val in
1772      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1773      esac
1774      echo "$ac_var='\''$ac_val'\''"
1775    done | sort
1776    echo
1777
1778    if test -n "$ac_subst_files"; then
1779      cat <<\_ASBOX
1780## ------------------- ##
1781## File substitutions. ##
1782## ------------------- ##
1783_ASBOX
1784      echo
1785      for ac_var in $ac_subst_files
1786      do
1787	eval ac_val=\$$ac_var
1788	case $ac_val in
1789	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1790	esac
1791	echo "$ac_var='\''$ac_val'\''"
1792      done | sort
1793      echo
1794    fi
1795
1796    if test -s confdefs.h; then
1797      cat <<\_ASBOX
1798## ----------- ##
1799## confdefs.h. ##
1800## ----------- ##
1801_ASBOX
1802      echo
1803      cat confdefs.h
1804      echo
1805    fi
1806    test "$ac_signal" != 0 &&
1807      echo "$as_me: caught signal $ac_signal"
1808    echo "$as_me: exit $exit_status"
1809  } >&5
1810  rm -f core *.core core.conftest.* &&
1811    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1812    exit $exit_status
1813' 0
1814for ac_signal in 1 2 13 15; do
1815  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1816done
1817ac_signal=0
1818
1819# confdefs.h avoids OS command line length limits that DEFS can exceed.
1820rm -f -r conftest* confdefs.h
1821
1822# Predefined preprocessor variables.
1823
1824cat >>confdefs.h <<_ACEOF
1825#define PACKAGE_NAME "$PACKAGE_NAME"
1826_ACEOF
1827
1828
1829cat >>confdefs.h <<_ACEOF
1830#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1831_ACEOF
1832
1833
1834cat >>confdefs.h <<_ACEOF
1835#define PACKAGE_VERSION "$PACKAGE_VERSION"
1836_ACEOF
1837
1838
1839cat >>confdefs.h <<_ACEOF
1840#define PACKAGE_STRING "$PACKAGE_STRING"
1841_ACEOF
1842
1843
1844cat >>confdefs.h <<_ACEOF
1845#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1846_ACEOF
1847
1848
1849# Let the site file select an alternate cache file if it wants to.
1850# Prefer explicitly selected file to automatically selected ones.
1851if test -n "$CONFIG_SITE"; then
1852  set x "$CONFIG_SITE"
1853elif test "x$prefix" != xNONE; then
1854  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1855else
1856  set x "$ac_default_prefix/share/config.site" \
1857	"$ac_default_prefix/etc/config.site"
1858fi
1859shift
1860for ac_site_file
1861do
1862  if test -r "$ac_site_file"; then
1863    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1864echo "$as_me: loading site script $ac_site_file" >&6;}
1865    sed 's/^/| /' "$ac_site_file" >&5
1866    . "$ac_site_file"
1867  fi
1868done
1869
1870if test -r "$cache_file"; then
1871  # Some versions of bash will fail to source /dev/null (special
1872  # files actually), so we avoid doing that.
1873  if test -f "$cache_file"; then
1874    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1875echo "$as_me: loading cache $cache_file" >&6;}
1876    case $cache_file in
1877      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1878      *)                      . "./$cache_file";;
1879    esac
1880  fi
1881else
1882  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1883echo "$as_me: creating cache $cache_file" >&6;}
1884  >$cache_file
1885fi
1886
1887# Check that the precious variables saved in the cache have kept the same
1888# value.
1889ac_cache_corrupted=false
1890for ac_var in $ac_precious_vars; do
1891  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1892  eval ac_new_set=\$ac_env_${ac_var}_set
1893  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1894  eval ac_new_val=\$ac_env_${ac_var}_value
1895  case $ac_old_set,$ac_new_set in
1896    set,)
1897      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1898echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1899      ac_cache_corrupted=: ;;
1900    ,set)
1901      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1902echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1903      ac_cache_corrupted=: ;;
1904    ,);;
1905    *)
1906      if test "x$ac_old_val" != "x$ac_new_val"; then
1907	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1908echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1909	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1910echo "$as_me:   former value:  $ac_old_val" >&2;}
1911	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1912echo "$as_me:   current value: $ac_new_val" >&2;}
1913	ac_cache_corrupted=:
1914      fi;;
1915  esac
1916  # Pass precious variables to config.status.
1917  if test "$ac_new_set" = set; then
1918    case $ac_new_val in
1919    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1920    *) ac_arg=$ac_var=$ac_new_val ;;
1921    esac
1922    case " $ac_configure_args " in
1923      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1924      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1925    esac
1926  fi
1927done
1928if $ac_cache_corrupted; then
1929  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1930echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1931  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1932echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1933   { (exit 1); exit 1; }; }
1934fi
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952ac_ext=c
1953ac_cpp='$CPP $CPPFLAGS'
1954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1956ac_compiler_gnu=$ac_cv_c_compiler_gnu
1957
1958
1959
1960
1961ac_aux_dir=
1962for ac_dir in $GNUSYSTEM_AUX_DIR "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1963  if test -f "$ac_dir/install-sh"; then
1964    ac_aux_dir=$ac_dir
1965    ac_install_sh="$ac_aux_dir/install-sh -c"
1966    break
1967  elif test -f "$ac_dir/install.sh"; then
1968    ac_aux_dir=$ac_dir
1969    ac_install_sh="$ac_aux_dir/install.sh -c"
1970    break
1971  elif test -f "$ac_dir/shtool"; then
1972    ac_aux_dir=$ac_dir
1973    ac_install_sh="$ac_aux_dir/shtool install -c"
1974    break
1975  fi
1976done
1977if test -z "$ac_aux_dir"; then
1978  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1979echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1980   { (exit 1); exit 1; }; }
1981fi
1982
1983# These three variables are undocumented and unsupported,
1984# and are intended to be withdrawn in a future Autoconf release.
1985# They can cause serious problems if a builder's source tree is in a directory
1986# whose full name contains unusual characters.
1987ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1988ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1989ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1990
1991
1992# Make sure we can run config.sub.
1993$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1994  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1995echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1996   { (exit 1); exit 1; }; }
1997
1998{ echo "$as_me:$LINENO: checking build system type" >&5
1999echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2000if test "${ac_cv_build+set}" = set; then
2001  echo $ECHO_N "(cached) $ECHO_C" >&6
2002else
2003  ac_build_alias=$build_alias
2004test "x$ac_build_alias" = x &&
2005  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2006test "x$ac_build_alias" = x &&
2007  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2008echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2009   { (exit 1); exit 1; }; }
2010ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2011  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2012echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2013   { (exit 1); exit 1; }; }
2014
2015fi
2016{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2017echo "${ECHO_T}$ac_cv_build" >&6; }
2018case $ac_cv_build in
2019*-*-*) ;;
2020*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2021echo "$as_me: error: invalid value of canonical build" >&2;}
2022   { (exit 1); exit 1; }; };;
2023esac
2024build=$ac_cv_build
2025ac_save_IFS=$IFS; IFS='-'
2026set x $ac_cv_build
2027shift
2028build_cpu=$1
2029build_vendor=$2
2030shift; shift
2031# Remember, the first character of IFS is used to create $*,
2032# except with old shells:
2033build_os=$*
2034IFS=$ac_save_IFS
2035case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2036
2037
2038{ echo "$as_me:$LINENO: checking host system type" >&5
2039echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2040if test "${ac_cv_host+set}" = set; then
2041  echo $ECHO_N "(cached) $ECHO_C" >&6
2042else
2043  if test "x$host_alias" = x; then
2044  ac_cv_host=$ac_cv_build
2045else
2046  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2047    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2048echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2049   { (exit 1); exit 1; }; }
2050fi
2051
2052fi
2053{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2054echo "${ECHO_T}$ac_cv_host" >&6; }
2055case $ac_cv_host in
2056*-*-*) ;;
2057*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2058echo "$as_me: error: invalid value of canonical host" >&2;}
2059   { (exit 1); exit 1; }; };;
2060esac
2061host=$ac_cv_host
2062ac_save_IFS=$IFS; IFS='-'
2063set x $ac_cv_host
2064shift
2065host_cpu=$1
2066host_vendor=$2
2067shift; shift
2068# Remember, the first character of IFS is used to create $*,
2069# except with old shells:
2070host_os=$*
2071IFS=$ac_save_IFS
2072case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2073
2074
2075{ echo "$as_me:$LINENO: checking target system type" >&5
2076echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2077if test "${ac_cv_target+set}" = set; then
2078  echo $ECHO_N "(cached) $ECHO_C" >&6
2079else
2080  if test "x$target_alias" = x; then
2081  ac_cv_target=$ac_cv_host
2082else
2083  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2084    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2085echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2086   { (exit 1); exit 1; }; }
2087fi
2088
2089fi
2090{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2091echo "${ECHO_T}$ac_cv_target" >&6; }
2092case $ac_cv_target in
2093*-*-*) ;;
2094*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2095echo "$as_me: error: invalid value of canonical target" >&2;}
2096   { (exit 1); exit 1; }; };;
2097esac
2098target=$ac_cv_target
2099ac_save_IFS=$IFS; IFS='-'
2100set x $ac_cv_target
2101shift
2102target_cpu=$1
2103target_vendor=$2
2104shift; shift
2105# Remember, the first character of IFS is used to create $*,
2106# except with old shells:
2107target_os=$*
2108IFS=$ac_save_IFS
2109case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2110
2111
2112# The aliases save the names the user supplied, while $host etc.
2113# will get canonicalized.
2114test -n "$target_alias" &&
2115  test "$program_prefix$program_suffix$program_transform_name" = \
2116    NONENONEs,x,x, &&
2117  program_prefix=${target_alias}-
2118ac_ext=c
2119ac_cpp='$CPP $CPPFLAGS'
2120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2122ac_compiler_gnu=$ac_cv_c_compiler_gnu
2123if test -n "$ac_tool_prefix"; then
2124  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2125set dummy ${ac_tool_prefix}gcc; ac_word=$2
2126{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2128if test "${ac_cv_prog_CC+set}" = set; then
2129  echo $ECHO_N "(cached) $ECHO_C" >&6
2130else
2131  if test -n "$CC"; then
2132  ac_cv_prog_CC="$CC" # Let the user override the test.
2133else
2134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135for as_dir in $PATH
2136do
2137  IFS=$as_save_IFS
2138  test -z "$as_dir" && as_dir=.
2139  for ac_exec_ext in '' $ac_executable_extensions; do
2140  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2141    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2142    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2143    break 2
2144  fi
2145done
2146done
2147IFS=$as_save_IFS
2148
2149fi
2150fi
2151CC=$ac_cv_prog_CC
2152if test -n "$CC"; then
2153  { echo "$as_me:$LINENO: result: $CC" >&5
2154echo "${ECHO_T}$CC" >&6; }
2155else
2156  { echo "$as_me:$LINENO: result: no" >&5
2157echo "${ECHO_T}no" >&6; }
2158fi
2159
2160
2161fi
2162if test -z "$ac_cv_prog_CC"; then
2163  ac_ct_CC=$CC
2164  # Extract the first word of "gcc", so it can be a program name with args.
2165set dummy gcc; ac_word=$2
2166{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2168if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2169  echo $ECHO_N "(cached) $ECHO_C" >&6
2170else
2171  if test -n "$ac_ct_CC"; then
2172  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2173else
2174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2175for as_dir in $PATH
2176do
2177  IFS=$as_save_IFS
2178  test -z "$as_dir" && as_dir=.
2179  for ac_exec_ext in '' $ac_executable_extensions; do
2180  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2181    ac_cv_prog_ac_ct_CC="gcc"
2182    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2183    break 2
2184  fi
2185done
2186done
2187IFS=$as_save_IFS
2188
2189fi
2190fi
2191ac_ct_CC=$ac_cv_prog_ac_ct_CC
2192if test -n "$ac_ct_CC"; then
2193  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2194echo "${ECHO_T}$ac_ct_CC" >&6; }
2195else
2196  { echo "$as_me:$LINENO: result: no" >&5
2197echo "${ECHO_T}no" >&6; }
2198fi
2199
2200  if test "x$ac_ct_CC" = x; then
2201    CC=""
2202  else
2203    case $cross_compiling:$ac_tool_warned in
2204yes:)
2205{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2206whose name does not start with the host triplet.  If you think this
2207configuration is useful to you, please write to autoconf@gnu.org." >&5
2208echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2209whose name does not start with the host triplet.  If you think this
2210configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2211ac_tool_warned=yes ;;
2212esac
2213    CC=$ac_ct_CC
2214  fi
2215else
2216  CC="$ac_cv_prog_CC"
2217fi
2218
2219if test -z "$CC"; then
2220          if test -n "$ac_tool_prefix"; then
2221    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2222set dummy ${ac_tool_prefix}cc; ac_word=$2
2223{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2225if test "${ac_cv_prog_CC+set}" = set; then
2226  echo $ECHO_N "(cached) $ECHO_C" >&6
2227else
2228  if test -n "$CC"; then
2229  ac_cv_prog_CC="$CC" # Let the user override the test.
2230else
2231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2232for as_dir in $PATH
2233do
2234  IFS=$as_save_IFS
2235  test -z "$as_dir" && as_dir=.
2236  for ac_exec_ext in '' $ac_executable_extensions; do
2237  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2238    ac_cv_prog_CC="${ac_tool_prefix}cc"
2239    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2240    break 2
2241  fi
2242done
2243done
2244IFS=$as_save_IFS
2245
2246fi
2247fi
2248CC=$ac_cv_prog_CC
2249if test -n "$CC"; then
2250  { echo "$as_me:$LINENO: result: $CC" >&5
2251echo "${ECHO_T}$CC" >&6; }
2252else
2253  { echo "$as_me:$LINENO: result: no" >&5
2254echo "${ECHO_T}no" >&6; }
2255fi
2256
2257
2258  fi
2259fi
2260if test -z "$CC"; then
2261  # Extract the first word of "cc", so it can be a program name with args.
2262set dummy cc; ac_word=$2
2263{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2265if test "${ac_cv_prog_CC+set}" = set; then
2266  echo $ECHO_N "(cached) $ECHO_C" >&6
2267else
2268  if test -n "$CC"; then
2269  ac_cv_prog_CC="$CC" # Let the user override the test.
2270else
2271  ac_prog_rejected=no
2272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273for as_dir in $PATH
2274do
2275  IFS=$as_save_IFS
2276  test -z "$as_dir" && as_dir=.
2277  for ac_exec_ext in '' $ac_executable_extensions; do
2278  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2279    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2280       ac_prog_rejected=yes
2281       continue
2282     fi
2283    ac_cv_prog_CC="cc"
2284    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2285    break 2
2286  fi
2287done
2288done
2289IFS=$as_save_IFS
2290
2291if test $ac_prog_rejected = yes; then
2292  # We found a bogon in the path, so make sure we never use it.
2293  set dummy $ac_cv_prog_CC
2294  shift
2295  if test $# != 0; then
2296    # We chose a different compiler from the bogus one.
2297    # However, it has the same basename, so the bogon will be chosen
2298    # first if we set CC to just the basename; use the full file name.
2299    shift
2300    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2301  fi
2302fi
2303fi
2304fi
2305CC=$ac_cv_prog_CC
2306if test -n "$CC"; then
2307  { echo "$as_me:$LINENO: result: $CC" >&5
2308echo "${ECHO_T}$CC" >&6; }
2309else
2310  { echo "$as_me:$LINENO: result: no" >&5
2311echo "${ECHO_T}no" >&6; }
2312fi
2313
2314
2315fi
2316if test -z "$CC"; then
2317  if test -n "$ac_tool_prefix"; then
2318  for ac_prog in cl.exe
2319  do
2320    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2321set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2322{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2324if test "${ac_cv_prog_CC+set}" = set; then
2325  echo $ECHO_N "(cached) $ECHO_C" >&6
2326else
2327  if test -n "$CC"; then
2328  ac_cv_prog_CC="$CC" # Let the user override the test.
2329else
2330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331for as_dir in $PATH
2332do
2333  IFS=$as_save_IFS
2334  test -z "$as_dir" && as_dir=.
2335  for ac_exec_ext in '' $ac_executable_extensions; do
2336  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2337    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2338    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2339    break 2
2340  fi
2341done
2342done
2343IFS=$as_save_IFS
2344
2345fi
2346fi
2347CC=$ac_cv_prog_CC
2348if test -n "$CC"; then
2349  { echo "$as_me:$LINENO: result: $CC" >&5
2350echo "${ECHO_T}$CC" >&6; }
2351else
2352  { echo "$as_me:$LINENO: result: no" >&5
2353echo "${ECHO_T}no" >&6; }
2354fi
2355
2356
2357    test -n "$CC" && break
2358  done
2359fi
2360if test -z "$CC"; then
2361  ac_ct_CC=$CC
2362  for ac_prog in cl.exe
2363do
2364  # Extract the first word of "$ac_prog", so it can be a program name with args.
2365set dummy $ac_prog; ac_word=$2
2366{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2367echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2368if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2369  echo $ECHO_N "(cached) $ECHO_C" >&6
2370else
2371  if test -n "$ac_ct_CC"; then
2372  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2373else
2374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375for as_dir in $PATH
2376do
2377  IFS=$as_save_IFS
2378  test -z "$as_dir" && as_dir=.
2379  for ac_exec_ext in '' $ac_executable_extensions; do
2380  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2381    ac_cv_prog_ac_ct_CC="$ac_prog"
2382    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2383    break 2
2384  fi
2385done
2386done
2387IFS=$as_save_IFS
2388
2389fi
2390fi
2391ac_ct_CC=$ac_cv_prog_ac_ct_CC
2392if test -n "$ac_ct_CC"; then
2393  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2394echo "${ECHO_T}$ac_ct_CC" >&6; }
2395else
2396  { echo "$as_me:$LINENO: result: no" >&5
2397echo "${ECHO_T}no" >&6; }
2398fi
2399
2400
2401  test -n "$ac_ct_CC" && break
2402done
2403
2404  if test "x$ac_ct_CC" = x; then
2405    CC=""
2406  else
2407    case $cross_compiling:$ac_tool_warned in
2408yes:)
2409{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2410whose name does not start with the host triplet.  If you think this
2411configuration is useful to you, please write to autoconf@gnu.org." >&5
2412echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2413whose name does not start with the host triplet.  If you think this
2414configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2415ac_tool_warned=yes ;;
2416esac
2417    CC=$ac_ct_CC
2418  fi
2419fi
2420
2421fi
2422
2423
2424test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2425See \`config.log' for more details." >&5
2426echo "$as_me: error: no acceptable C compiler found in \$PATH
2427See \`config.log' for more details." >&2;}
2428   { (exit 1); exit 1; }; }
2429
2430# Provide some information about the compiler.
2431echo "$as_me:$LINENO: checking for C compiler version" >&5
2432ac_compiler=`set X $ac_compile; echo $2`
2433{ (ac_try="$ac_compiler --version >&5"
2434case "(($ac_try" in
2435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2436  *) ac_try_echo=$ac_try;;
2437esac
2438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2439  (eval "$ac_compiler --version >&5") 2>&5
2440  ac_status=$?
2441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442  (exit $ac_status); }
2443{ (ac_try="$ac_compiler -v >&5"
2444case "(($ac_try" in
2445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2446  *) ac_try_echo=$ac_try;;
2447esac
2448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2449  (eval "$ac_compiler -v >&5") 2>&5
2450  ac_status=$?
2451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452  (exit $ac_status); }
2453{ (ac_try="$ac_compiler -V >&5"
2454case "(($ac_try" in
2455  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2456  *) ac_try_echo=$ac_try;;
2457esac
2458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2459  (eval "$ac_compiler -V >&5") 2>&5
2460  ac_status=$?
2461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462  (exit $ac_status); }
2463
2464cat >conftest.$ac_ext <<_ACEOF
2465/* confdefs.h.  */
2466_ACEOF
2467cat confdefs.h >>conftest.$ac_ext
2468cat >>conftest.$ac_ext <<_ACEOF
2469/* end confdefs.h.  */
2470
2471int
2472main ()
2473{
2474
2475  ;
2476  return 0;
2477}
2478_ACEOF
2479ac_clean_files_save=$ac_clean_files
2480ac_clean_files="$ac_clean_files a.out a.exe b.out"
2481# Try to create an executable without -o first, disregard a.out.
2482# It will help us diagnose broken compilers, and finding out an intuition
2483# of exeext.
2484{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2485echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2486ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2487#
2488# List of possible output files, starting from the most likely.
2489# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2490# only as a last resort.  b.out is created by i960 compilers.
2491ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2492#
2493# The IRIX 6 linker writes into existing files which may not be
2494# executable, retaining their permissions.  Remove them first so a
2495# subsequent execution test works.
2496ac_rmfiles=
2497for ac_file in $ac_files
2498do
2499  case $ac_file in
2500    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2501    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2502  esac
2503done
2504rm -f $ac_rmfiles
2505
2506if { (ac_try="$ac_link_default"
2507case "(($ac_try" in
2508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2509  *) ac_try_echo=$ac_try;;
2510esac
2511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2512  (eval "$ac_link_default") 2>&5
2513  ac_status=$?
2514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515  (exit $ac_status); }; then
2516  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2517# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2518# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2519# so that the user can short-circuit this test for compilers unknown to
2520# Autoconf.
2521for ac_file in $ac_files
2522do
2523  test -f "$ac_file" || continue
2524  case $ac_file in
2525    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2526	;;
2527    [ab].out )
2528	# We found the default executable, but exeext='' is most
2529	# certainly right.
2530	break;;
2531    *.* )
2532        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2533	then :; else
2534	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2535	fi
2536	# We set ac_cv_exeext here because the later test for it is not
2537	# safe: cross compilers may not add the suffix if given an `-o'
2538	# argument, so we may need to know it at that point already.
2539	# Even if this section looks crufty: it has the advantage of
2540	# actually working.
2541	break;;
2542    * )
2543	break;;
2544  esac
2545done
2546test "$ac_cv_exeext" = no && ac_cv_exeext=
2547
2548else
2549  echo "$as_me: failed program was:" >&5
2550sed 's/^/| /' conftest.$ac_ext >&5
2551
2552{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2553See \`config.log' for more details." >&5
2554echo "$as_me: error: C compiler cannot create executables
2555See \`config.log' for more details." >&2;}
2556   { (exit 77); exit 77; }; }
2557fi
2558
2559ac_exeext=$ac_cv_exeext
2560{ echo "$as_me:$LINENO: result: $ac_file" >&5
2561echo "${ECHO_T}$ac_file" >&6; }
2562
2563# Check that the compiler produces executables we can run.  If not, either
2564# the compiler is broken, or we cross compile.
2565{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2566echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2567# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2568# If not cross compiling, check that we can run a simple program.
2569if test "$cross_compiling" != yes; then
2570  if { ac_try='./$ac_file'
2571  { (case "(($ac_try" in
2572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2573  *) ac_try_echo=$ac_try;;
2574esac
2575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2576  (eval "$ac_try") 2>&5
2577  ac_status=$?
2578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579  (exit $ac_status); }; }; then
2580    cross_compiling=no
2581  else
2582    if test "$cross_compiling" = maybe; then
2583	cross_compiling=yes
2584    else
2585	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2586If you meant to cross compile, use \`--host'.
2587See \`config.log' for more details." >&5
2588echo "$as_me: error: cannot run C compiled programs.
2589If you meant to cross compile, use \`--host'.
2590See \`config.log' for more details." >&2;}
2591   { (exit 1); exit 1; }; }
2592    fi
2593  fi
2594fi
2595{ echo "$as_me:$LINENO: result: yes" >&5
2596echo "${ECHO_T}yes" >&6; }
2597
2598rm -f a.out a.exe conftest$ac_cv_exeext b.out
2599ac_clean_files=$ac_clean_files_save
2600# Check that the compiler produces executables we can run.  If not, either
2601# the compiler is broken, or we cross compile.
2602{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2603echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2604{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2605echo "${ECHO_T}$cross_compiling" >&6; }
2606
2607{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2608echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2609if { (ac_try="$ac_link"
2610case "(($ac_try" in
2611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2612  *) ac_try_echo=$ac_try;;
2613esac
2614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2615  (eval "$ac_link") 2>&5
2616  ac_status=$?
2617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618  (exit $ac_status); }; then
2619  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2620# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2621# work properly (i.e., refer to `conftest.exe'), while it won't with
2622# `rm'.
2623for ac_file in conftest.exe conftest conftest.*; do
2624  test -f "$ac_file" || continue
2625  case $ac_file in
2626    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2627    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2628	  break;;
2629    * ) break;;
2630  esac
2631done
2632else
2633  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2634See \`config.log' for more details." >&5
2635echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2636See \`config.log' for more details." >&2;}
2637   { (exit 1); exit 1; }; }
2638fi
2639
2640rm -f conftest$ac_cv_exeext
2641{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2642echo "${ECHO_T}$ac_cv_exeext" >&6; }
2643
2644rm -f conftest.$ac_ext
2645EXEEXT=$ac_cv_exeext
2646ac_exeext=$EXEEXT
2647{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2648echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2649if test "${ac_cv_objext+set}" = set; then
2650  echo $ECHO_N "(cached) $ECHO_C" >&6
2651else
2652  cat >conftest.$ac_ext <<_ACEOF
2653/* confdefs.h.  */
2654_ACEOF
2655cat confdefs.h >>conftest.$ac_ext
2656cat >>conftest.$ac_ext <<_ACEOF
2657/* end confdefs.h.  */
2658
2659int
2660main ()
2661{
2662
2663  ;
2664  return 0;
2665}
2666_ACEOF
2667rm -f conftest.o conftest.obj
2668if { (ac_try="$ac_compile"
2669case "(($ac_try" in
2670  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2671  *) ac_try_echo=$ac_try;;
2672esac
2673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2674  (eval "$ac_compile") 2>&5
2675  ac_status=$?
2676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677  (exit $ac_status); }; then
2678  for ac_file in conftest.o conftest.obj conftest.*; do
2679  test -f "$ac_file" || continue;
2680  case $ac_file in
2681    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2682    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2683       break;;
2684  esac
2685done
2686else
2687  echo "$as_me: failed program was:" >&5
2688sed 's/^/| /' conftest.$ac_ext >&5
2689
2690{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2691See \`config.log' for more details." >&5
2692echo "$as_me: error: cannot compute suffix of object files: cannot compile
2693See \`config.log' for more details." >&2;}
2694   { (exit 1); exit 1; }; }
2695fi
2696
2697rm -f conftest.$ac_cv_objext conftest.$ac_ext
2698fi
2699{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2700echo "${ECHO_T}$ac_cv_objext" >&6; }
2701OBJEXT=$ac_cv_objext
2702ac_objext=$OBJEXT
2703{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2704echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2705if test "${ac_cv_c_compiler_gnu+set}" = set; then
2706  echo $ECHO_N "(cached) $ECHO_C" >&6
2707else
2708  cat >conftest.$ac_ext <<_ACEOF
2709/* confdefs.h.  */
2710_ACEOF
2711cat confdefs.h >>conftest.$ac_ext
2712cat >>conftest.$ac_ext <<_ACEOF
2713/* end confdefs.h.  */
2714
2715int
2716main ()
2717{
2718#ifndef __GNUC__
2719       choke me
2720#endif
2721
2722  ;
2723  return 0;
2724}
2725_ACEOF
2726rm -f conftest.$ac_objext
2727if { (ac_try="$ac_compile"
2728case "(($ac_try" in
2729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730  *) ac_try_echo=$ac_try;;
2731esac
2732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733  (eval "$ac_compile") 2>conftest.er1
2734  ac_status=$?
2735  grep -v '^ *+' conftest.er1 >conftest.err
2736  rm -f conftest.er1
2737  cat conftest.err >&5
2738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739  (exit $ac_status); } &&
2740	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2741  { (case "(($ac_try" in
2742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743  *) ac_try_echo=$ac_try;;
2744esac
2745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2746  (eval "$ac_try") 2>&5
2747  ac_status=$?
2748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749  (exit $ac_status); }; } &&
2750	 { ac_try='test -s conftest.$ac_objext'
2751  { (case "(($ac_try" in
2752  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2753  *) ac_try_echo=$ac_try;;
2754esac
2755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2756  (eval "$ac_try") 2>&5
2757  ac_status=$?
2758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759  (exit $ac_status); }; }; then
2760  ac_compiler_gnu=yes
2761else
2762  echo "$as_me: failed program was:" >&5
2763sed 's/^/| /' conftest.$ac_ext >&5
2764
2765	ac_compiler_gnu=no
2766fi
2767
2768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2769ac_cv_c_compiler_gnu=$ac_compiler_gnu
2770
2771fi
2772{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2773echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2774GCC=`test $ac_compiler_gnu = yes && echo yes`
2775ac_test_CFLAGS=${CFLAGS+set}
2776ac_save_CFLAGS=$CFLAGS
2777{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2778echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2779if test "${ac_cv_prog_cc_g+set}" = set; then
2780  echo $ECHO_N "(cached) $ECHO_C" >&6
2781else
2782  ac_save_c_werror_flag=$ac_c_werror_flag
2783   ac_c_werror_flag=yes
2784   ac_cv_prog_cc_g=no
2785   CFLAGS="-g"
2786   cat >conftest.$ac_ext <<_ACEOF
2787/* confdefs.h.  */
2788_ACEOF
2789cat confdefs.h >>conftest.$ac_ext
2790cat >>conftest.$ac_ext <<_ACEOF
2791/* end confdefs.h.  */
2792
2793int
2794main ()
2795{
2796
2797  ;
2798  return 0;
2799}
2800_ACEOF
2801rm -f conftest.$ac_objext
2802if { (ac_try="$ac_compile"
2803case "(($ac_try" in
2804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805  *) ac_try_echo=$ac_try;;
2806esac
2807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2808  (eval "$ac_compile") 2>conftest.er1
2809  ac_status=$?
2810  grep -v '^ *+' conftest.er1 >conftest.err
2811  rm -f conftest.er1
2812  cat conftest.err >&5
2813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814  (exit $ac_status); } &&
2815	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2816  { (case "(($ac_try" in
2817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818  *) ac_try_echo=$ac_try;;
2819esac
2820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2821  (eval "$ac_try") 2>&5
2822  ac_status=$?
2823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824  (exit $ac_status); }; } &&
2825	 { ac_try='test -s conftest.$ac_objext'
2826  { (case "(($ac_try" in
2827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2828  *) ac_try_echo=$ac_try;;
2829esac
2830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2831  (eval "$ac_try") 2>&5
2832  ac_status=$?
2833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834  (exit $ac_status); }; }; then
2835  ac_cv_prog_cc_g=yes
2836else
2837  echo "$as_me: failed program was:" >&5
2838sed 's/^/| /' conftest.$ac_ext >&5
2839
2840	CFLAGS=""
2841      cat >conftest.$ac_ext <<_ACEOF
2842/* confdefs.h.  */
2843_ACEOF
2844cat confdefs.h >>conftest.$ac_ext
2845cat >>conftest.$ac_ext <<_ACEOF
2846/* end confdefs.h.  */
2847
2848int
2849main ()
2850{
2851
2852  ;
2853  return 0;
2854}
2855_ACEOF
2856rm -f conftest.$ac_objext
2857if { (ac_try="$ac_compile"
2858case "(($ac_try" in
2859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2860  *) ac_try_echo=$ac_try;;
2861esac
2862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2863  (eval "$ac_compile") 2>conftest.er1
2864  ac_status=$?
2865  grep -v '^ *+' conftest.er1 >conftest.err
2866  rm -f conftest.er1
2867  cat conftest.err >&5
2868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869  (exit $ac_status); } &&
2870	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2871  { (case "(($ac_try" in
2872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873  *) ac_try_echo=$ac_try;;
2874esac
2875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2876  (eval "$ac_try") 2>&5
2877  ac_status=$?
2878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879  (exit $ac_status); }; } &&
2880	 { ac_try='test -s conftest.$ac_objext'
2881  { (case "(($ac_try" in
2882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883  *) ac_try_echo=$ac_try;;
2884esac
2885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2886  (eval "$ac_try") 2>&5
2887  ac_status=$?
2888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889  (exit $ac_status); }; }; then
2890  :
2891else
2892  echo "$as_me: failed program was:" >&5
2893sed 's/^/| /' conftest.$ac_ext >&5
2894
2895	ac_c_werror_flag=$ac_save_c_werror_flag
2896	 CFLAGS="-g"
2897	 cat >conftest.$ac_ext <<_ACEOF
2898/* confdefs.h.  */
2899_ACEOF
2900cat confdefs.h >>conftest.$ac_ext
2901cat >>conftest.$ac_ext <<_ACEOF
2902/* end confdefs.h.  */
2903
2904int
2905main ()
2906{
2907
2908  ;
2909  return 0;
2910}
2911_ACEOF
2912rm -f conftest.$ac_objext
2913if { (ac_try="$ac_compile"
2914case "(($ac_try" in
2915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916  *) ac_try_echo=$ac_try;;
2917esac
2918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2919  (eval "$ac_compile") 2>conftest.er1
2920  ac_status=$?
2921  grep -v '^ *+' conftest.er1 >conftest.err
2922  rm -f conftest.er1
2923  cat conftest.err >&5
2924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925  (exit $ac_status); } &&
2926	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2927  { (case "(($ac_try" in
2928  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929  *) ac_try_echo=$ac_try;;
2930esac
2931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2932  (eval "$ac_try") 2>&5
2933  ac_status=$?
2934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935  (exit $ac_status); }; } &&
2936	 { ac_try='test -s conftest.$ac_objext'
2937  { (case "(($ac_try" in
2938  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939  *) ac_try_echo=$ac_try;;
2940esac
2941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942  (eval "$ac_try") 2>&5
2943  ac_status=$?
2944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945  (exit $ac_status); }; }; then
2946  ac_cv_prog_cc_g=yes
2947else
2948  echo "$as_me: failed program was:" >&5
2949sed 's/^/| /' conftest.$ac_ext >&5
2950
2951
2952fi
2953
2954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2955fi
2956
2957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2958fi
2959
2960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2961   ac_c_werror_flag=$ac_save_c_werror_flag
2962fi
2963{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2964echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2965if test "$ac_test_CFLAGS" = set; then
2966  CFLAGS=$ac_save_CFLAGS
2967elif test $ac_cv_prog_cc_g = yes; then
2968  if test "$GCC" = yes; then
2969    CFLAGS="-g -O2"
2970  else
2971    CFLAGS="-g"
2972  fi
2973else
2974  if test "$GCC" = yes; then
2975    CFLAGS="-O2"
2976  else
2977    CFLAGS=
2978  fi
2979fi
2980{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2981echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2982if test "${ac_cv_prog_cc_c89+set}" = set; then
2983  echo $ECHO_N "(cached) $ECHO_C" >&6
2984else
2985  ac_cv_prog_cc_c89=no
2986ac_save_CC=$CC
2987cat >conftest.$ac_ext <<_ACEOF
2988/* confdefs.h.  */
2989_ACEOF
2990cat confdefs.h >>conftest.$ac_ext
2991cat >>conftest.$ac_ext <<_ACEOF
2992/* end confdefs.h.  */
2993#include <stdarg.h>
2994#include <stdio.h>
2995#include <sys/types.h>
2996#include <sys/stat.h>
2997/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2998struct buf { int x; };
2999FILE * (*rcsopen) (struct buf *, struct stat *, int);
3000static char *e (p, i)
3001     char **p;
3002     int i;
3003{
3004  return p[i];
3005}
3006static char *f (char * (*g) (char **, int), char **p, ...)
3007{
3008  char *s;
3009  va_list v;
3010  va_start (v,p);
3011  s = g (p, va_arg (v,int));
3012  va_end (v);
3013  return s;
3014}
3015
3016/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3017   function prototypes and stuff, but not '\xHH' hex character constants.
3018   These don't provoke an error unfortunately, instead are silently treated
3019   as 'x'.  The following induces an error, until -std is added to get
3020   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3021   array size at least.  It's necessary to write '\x00'==0 to get something
3022   that's true only with -std.  */
3023int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3024
3025/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3026   inside strings and character constants.  */
3027#define FOO(x) 'x'
3028int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3029
3030int test (int i, double x);
3031struct s1 {int (*f) (int a);};
3032struct s2 {int (*f) (double a);};
3033int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3034int argc;
3035char **argv;
3036int
3037main ()
3038{
3039return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3040  ;
3041  return 0;
3042}
3043_ACEOF
3044for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3045	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3046do
3047  CC="$ac_save_CC $ac_arg"
3048  rm -f conftest.$ac_objext
3049if { (ac_try="$ac_compile"
3050case "(($ac_try" in
3051  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052  *) ac_try_echo=$ac_try;;
3053esac
3054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055  (eval "$ac_compile") 2>conftest.er1
3056  ac_status=$?
3057  grep -v '^ *+' conftest.er1 >conftest.err
3058  rm -f conftest.er1
3059  cat conftest.err >&5
3060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061  (exit $ac_status); } &&
3062	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3063  { (case "(($ac_try" in
3064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065  *) ac_try_echo=$ac_try;;
3066esac
3067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068  (eval "$ac_try") 2>&5
3069  ac_status=$?
3070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071  (exit $ac_status); }; } &&
3072	 { ac_try='test -s conftest.$ac_objext'
3073  { (case "(($ac_try" in
3074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075  *) ac_try_echo=$ac_try;;
3076esac
3077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3078  (eval "$ac_try") 2>&5
3079  ac_status=$?
3080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081  (exit $ac_status); }; }; then
3082  ac_cv_prog_cc_c89=$ac_arg
3083else
3084  echo "$as_me: failed program was:" >&5
3085sed 's/^/| /' conftest.$ac_ext >&5
3086
3087
3088fi
3089
3090rm -f core conftest.err conftest.$ac_objext
3091  test "x$ac_cv_prog_cc_c89" != "xno" && break
3092done
3093rm -f conftest.$ac_ext
3094CC=$ac_save_CC
3095
3096fi
3097# AC_CACHE_VAL
3098case "x$ac_cv_prog_cc_c89" in
3099  x)
3100    { echo "$as_me:$LINENO: result: none needed" >&5
3101echo "${ECHO_T}none needed" >&6; } ;;
3102  xno)
3103    { echo "$as_me:$LINENO: result: unsupported" >&5
3104echo "${ECHO_T}unsupported" >&6; } ;;
3105  *)
3106    CC="$CC $ac_cv_prog_cc_c89"
3107    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3108echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3109esac
3110
3111
3112ac_ext=c
3113ac_cpp='$CPP $CPPFLAGS'
3114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3116ac_compiler_gnu=$ac_cv_c_compiler_gnu
3117
3118
3119{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
3120echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3121if test "${ac_cv_search_strerror+set}" = set; then
3122  echo $ECHO_N "(cached) $ECHO_C" >&6
3123else
3124  ac_func_search_save_LIBS=$LIBS
3125cat >conftest.$ac_ext <<_ACEOF
3126/* confdefs.h.  */
3127_ACEOF
3128cat confdefs.h >>conftest.$ac_ext
3129cat >>conftest.$ac_ext <<_ACEOF
3130/* end confdefs.h.  */
3131
3132/* Override any GCC internal prototype to avoid an error.
3133   Use char because int might match the return type of a GCC
3134   builtin and then its argument prototype would still apply.  */
3135#ifdef __cplusplus
3136extern "C"
3137#endif
3138char strerror ();
3139int
3140main ()
3141{
3142return strerror ();
3143  ;
3144  return 0;
3145}
3146_ACEOF
3147for ac_lib in '' cposix; do
3148  if test -z "$ac_lib"; then
3149    ac_res="none required"
3150  else
3151    ac_res=-l$ac_lib
3152    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3153  fi
3154  rm -f conftest.$ac_objext conftest$ac_exeext
3155if { (ac_try="$ac_link"
3156case "(($ac_try" in
3157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158  *) ac_try_echo=$ac_try;;
3159esac
3160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161  (eval "$ac_link") 2>conftest.er1
3162  ac_status=$?
3163  grep -v '^ *+' conftest.er1 >conftest.err
3164  rm -f conftest.er1
3165  cat conftest.err >&5
3166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167  (exit $ac_status); } &&
3168	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3169  { (case "(($ac_try" in
3170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171  *) ac_try_echo=$ac_try;;
3172esac
3173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3174  (eval "$ac_try") 2>&5
3175  ac_status=$?
3176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177  (exit $ac_status); }; } &&
3178	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
3188  ac_cv_search_strerror=$ac_res
3189else
3190  echo "$as_me: failed program was:" >&5
3191sed 's/^/| /' conftest.$ac_ext >&5
3192
3193
3194fi
3195
3196rm -f core conftest.err conftest.$ac_objext \
3197      conftest$ac_exeext
3198  if test "${ac_cv_search_strerror+set}" = set; then
3199  break
3200fi
3201done
3202if test "${ac_cv_search_strerror+set}" = set; then
3203  :
3204else
3205  ac_cv_search_strerror=no
3206fi
3207rm conftest.$ac_ext
3208LIBS=$ac_func_search_save_LIBS
3209fi
3210{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3211echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3212ac_res=$ac_cv_search_strerror
3213if test "$ac_res" != no; then
3214  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3215
3216fi
3217
3218
3219am__api_version="1.9"
3220# Find a good install program.  We prefer a C program (faster),
3221# so one script is as good as another.  But avoid the broken or
3222# incompatible versions:
3223# SysV /etc/install, /usr/sbin/install
3224# SunOS /usr/etc/install
3225# IRIX /sbin/install
3226# AIX /bin/install
3227# AmigaOS /C/install, which installs bootblocks on floppy discs
3228# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3229# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3230# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3231# OS/2's system install, which has a completely different semantic
3232# ./install, which can be erroneously created by make from ./install.sh.
3233{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3234echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3235if test -z "$INSTALL"; then
3236if test "${ac_cv_path_install+set}" = set; then
3237  echo $ECHO_N "(cached) $ECHO_C" >&6
3238else
3239  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240for as_dir in $PATH
3241do
3242  IFS=$as_save_IFS
3243  test -z "$as_dir" && as_dir=.
3244  # Account for people who put trailing slashes in PATH elements.
3245case $as_dir/ in
3246  ./ | .// | /cC/* | \
3247  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3248  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3249  /usr/ucb/* ) ;;
3250  *)
3251    # OSF1 and SCO ODT 3.0 have their own names for install.
3252    # Don't use installbsd from OSF since it installs stuff as root
3253    # by default.
3254    for ac_prog in ginstall scoinst install; do
3255      for ac_exec_ext in '' $ac_executable_extensions; do
3256	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
3257	  if test $ac_prog = install &&
3258	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3259	    # AIX install.  It has an incompatible calling convention.
3260	    :
3261	  elif test $ac_prog = install &&
3262	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3263	    # program-specific install script used by HP pwplus--don't use.
3264	    :
3265	  else
3266	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3267	    break 3
3268	  fi
3269	fi
3270      done
3271    done
3272    ;;
3273esac
3274done
3275IFS=$as_save_IFS
3276
3277
3278fi
3279  if test "${ac_cv_path_install+set}" = set; then
3280    INSTALL=$ac_cv_path_install
3281  else
3282    # As a last resort, use the slow shell script.  Don't cache a
3283    # value for INSTALL within a source directory, because that will
3284    # break other packages using the cache if that directory is
3285    # removed, or if the value is a relative name.
3286    INSTALL="$SHELL $ac_install_sh"
3287  fi
3288fi
3289{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3290echo "${ECHO_T}$INSTALL" >&6; }
3291
3292# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3293# It thinks the first close brace ends the variable substitution.
3294test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3295
3296test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3297
3298test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3299
3300{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3301echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
3302# Just in case
3303sleep 1
3304echo timestamp > conftest.file
3305# Do `set' in a subshell so we don't clobber the current shell's
3306# arguments.  Must try -L first in case configure is actually a
3307# symlink; some systems play weird games with the mod time of symlinks
3308# (eg FreeBSD returns the mod time of the symlink's containing
3309# directory).
3310if (
3311   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3312   if test "$*" = "X"; then
3313      # -L didn't work.
3314      set X `ls -t $srcdir/configure conftest.file`
3315   fi
3316   rm -f conftest.file
3317   if test "$*" != "X $srcdir/configure conftest.file" \
3318      && test "$*" != "X conftest.file $srcdir/configure"; then
3319
3320      # If neither matched, then we have a broken ls.  This can happen
3321      # if, for instance, CONFIG_SHELL is bash and it inherits a
3322      # broken ls alias from the environment.  This has actually
3323      # happened.  Such a system could not be considered "sane".
3324      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3325alias in your environment" >&5
3326echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3327alias in your environment" >&2;}
3328   { (exit 1); exit 1; }; }
3329   fi
3330
3331   test "$2" = conftest.file
3332   )
3333then
3334   # Ok.
3335   :
3336else
3337   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3338Check your system clock" >&5
3339echo "$as_me: error: newly created file is older than distributed files!
3340Check your system clock" >&2;}
3341   { (exit 1); exit 1; }; }
3342fi
3343{ echo "$as_me:$LINENO: result: yes" >&5
3344echo "${ECHO_T}yes" >&6; }
3345test "$program_prefix" != NONE &&
3346  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3347# Use a double $ so make ignores it.
3348test "$program_suffix" != NONE &&
3349  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3350# Double any \ or $.  echo might interpret backslashes.
3351# By default was `s,x,x', remove it if useless.
3352cat <<\_ACEOF >conftest.sed
3353s/[\\$]/&&/g;s/;s,x,x,$//
3354_ACEOF
3355program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3356rm -f conftest.sed
3357
3358# expand $ac_aux_dir to an absolute path
3359am_aux_dir=`cd $ac_aux_dir && pwd`
3360
3361test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3362# Use eval to expand $SHELL
3363if eval "$MISSING --run true"; then
3364  am_missing_run="$MISSING --run "
3365else
3366  am_missing_run=
3367  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3368echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3369fi
3370
3371if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3372  # We used to keeping the `.' as first argument, in order to
3373  # allow $(mkdir_p) to be used without argument.  As in
3374  #   $(mkdir_p) $(somedir)
3375  # where $(somedir) is conditionally defined.  However this is wrong
3376  # for two reasons:
3377  #  1. if the package is installed by a user who cannot write `.'
3378  #     make install will fail,
3379  #  2. the above comment should most certainly read
3380  #     $(mkdir_p) $(DESTDIR)$(somedir)
3381  #     so it does not work when $(somedir) is undefined and
3382  #     $(DESTDIR) is not.
3383  #  To support the latter case, we have to write
3384  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3385  #  so the `.' trick is pointless.
3386  mkdir_p='mkdir -p --'
3387else
3388  # On NextStep and OpenStep, the `mkdir' command does not
3389  # recognize any option.  It will interpret all options as
3390  # directories to create, and then abort because `.' already
3391  # exists.
3392  for d in ./-p ./--version;
3393  do
3394    test -d $d && rmdir $d
3395  done
3396  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3397  if test -f "$ac_aux_dir/mkinstalldirs"; then
3398    mkdir_p='$(mkinstalldirs)'
3399  else
3400    mkdir_p='$(install_sh) -d'
3401  fi
3402fi
3403
3404for ac_prog in gawk mawk nawk awk
3405do
3406  # Extract the first word of "$ac_prog", so it can be a program name with args.
3407set dummy $ac_prog; ac_word=$2
3408{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3410if test "${ac_cv_prog_AWK+set}" = set; then
3411  echo $ECHO_N "(cached) $ECHO_C" >&6
3412else
3413  if test -n "$AWK"; then
3414  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3415else
3416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417for as_dir in $PATH
3418do
3419  IFS=$as_save_IFS
3420  test -z "$as_dir" && as_dir=.
3421  for ac_exec_ext in '' $ac_executable_extensions; do
3422  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3423    ac_cv_prog_AWK="$ac_prog"
3424    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3425    break 2
3426  fi
3427done
3428done
3429IFS=$as_save_IFS
3430
3431fi
3432fi
3433AWK=$ac_cv_prog_AWK
3434if test -n "$AWK"; then
3435  { echo "$as_me:$LINENO: result: $AWK" >&5
3436echo "${ECHO_T}$AWK" >&6; }
3437else
3438  { echo "$as_me:$LINENO: result: no" >&5
3439echo "${ECHO_T}no" >&6; }
3440fi
3441
3442
3443  test -n "$AWK" && break
3444done
3445
3446{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3447echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3448set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3449if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3450  echo $ECHO_N "(cached) $ECHO_C" >&6
3451else
3452  cat >conftest.make <<\_ACEOF
3453SHELL = /bin/sh
3454all:
3455	@echo '@@@%%%=$(MAKE)=@@@%%%'
3456_ACEOF
3457# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3458case `${MAKE-make} -f conftest.make 2>/dev/null` in
3459  *@@@%%%=?*=@@@%%%*)
3460    eval ac_cv_prog_make_${ac_make}_set=yes;;
3461  *)
3462    eval ac_cv_prog_make_${ac_make}_set=no;;
3463esac
3464rm -f conftest.make
3465fi
3466if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3467  { echo "$as_me:$LINENO: result: yes" >&5
3468echo "${ECHO_T}yes" >&6; }
3469  SET_MAKE=
3470else
3471  { echo "$as_me:$LINENO: result: no" >&5
3472echo "${ECHO_T}no" >&6; }
3473  SET_MAKE="MAKE=${MAKE-make}"
3474fi
3475
3476rm -rf .tst 2>/dev/null
3477mkdir .tst 2>/dev/null
3478if test -d .tst; then
3479  am__leading_dot=.
3480else
3481  am__leading_dot=_
3482fi
3483rmdir .tst 2>/dev/null
3484
3485DEPDIR="${am__leading_dot}deps"
3486
3487ac_config_commands="$ac_config_commands depfiles"
3488
3489
3490am_make=${MAKE-make}
3491cat > confinc << 'END'
3492am__doit:
3493	@echo done
3494.PHONY: am__doit
3495END
3496# If we don't find an include directive, just comment out the code.
3497{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3498echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3499am__include="#"
3500am__quote=
3501_am_result=none
3502# First try GNU make style include.
3503echo "include confinc" > confmf
3504# We grep out `Entering directory' and `Leaving directory'
3505# messages which can occur if `w' ends up in MAKEFLAGS.
3506# In particular we don't look at `^make:' because GNU make might
3507# be invoked under some other name (usually "gmake"), in which
3508# case it prints its new name instead of `make'.
3509if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3510   am__include=include
3511   am__quote=
3512   _am_result=GNU
3513fi
3514# Now try BSD make style include.
3515if test "$am__include" = "#"; then
3516   echo '.include "confinc"' > confmf
3517   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3518      am__include=.include
3519      am__quote="\""
3520      _am_result=BSD
3521   fi
3522fi
3523
3524
3525{ echo "$as_me:$LINENO: result: $_am_result" >&5
3526echo "${ECHO_T}$_am_result" >&6; }
3527rm -f confinc confmf
3528
3529# Check whether --enable-dependency-tracking was given.
3530if test "${enable_dependency_tracking+set}" = set; then
3531  enableval=$enable_dependency_tracking;
3532fi
3533
3534if test "x$enable_dependency_tracking" != xno; then
3535  am_depcomp="$ac_aux_dir/depcomp"
3536  AMDEPBACKSLASH='\'
3537fi
3538
3539
3540if test "x$enable_dependency_tracking" != xno; then
3541  AMDEP_TRUE=
3542  AMDEP_FALSE='#'
3543else
3544  AMDEP_TRUE='#'
3545  AMDEP_FALSE=
3546fi
3547
3548
3549
3550# test to see if srcdir already configured
3551if test "`cd $srcdir && pwd`" != "`pwd`" &&
3552   test -f $srcdir/config.status; then
3553  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3554echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3555   { (exit 1); exit 1; }; }
3556fi
3557
3558# test whether we have cygpath
3559if test -z "$CYGPATH_W"; then
3560  if (cygpath --version) >/dev/null 2>/dev/null; then
3561    CYGPATH_W='cygpath -w'
3562  else
3563    CYGPATH_W=echo
3564  fi
3565fi
3566
3567
3568# Define the identity of the package.
3569 PACKAGE=bfd
3570 VERSION=050707
3571
3572
3573cat >>confdefs.h <<_ACEOF
3574#define PACKAGE "$PACKAGE"
3575_ACEOF
3576
3577
3578cat >>confdefs.h <<_ACEOF
3579#define VERSION "$VERSION"
3580_ACEOF
3581
3582# Some tools Automake needs.
3583
3584ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3585
3586
3587AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3588
3589
3590AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3591
3592
3593AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3594
3595
3596MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3597
3598install_sh=${install_sh-"$am_aux_dir/install-sh"}
3599
3600# Installed binaries are usually stripped using `strip' when the user
3601# run `make install-strip'.  However `strip' might not be the right
3602# tool to use in cross-compilation environments, therefore Automake
3603# will honor the `STRIP' environment variable to overrule this program.
3604if test "$cross_compiling" != no; then
3605  if test -n "$ac_tool_prefix"; then
3606  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3607set dummy ${ac_tool_prefix}strip; ac_word=$2
3608{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3610if test "${ac_cv_prog_STRIP+set}" = set; then
3611  echo $ECHO_N "(cached) $ECHO_C" >&6
3612else
3613  if test -n "$STRIP"; then
3614  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3615else
3616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617for as_dir in $PATH
3618do
3619  IFS=$as_save_IFS
3620  test -z "$as_dir" && as_dir=.
3621  for ac_exec_ext in '' $ac_executable_extensions; do
3622  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3623    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3624    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3625    break 2
3626  fi
3627done
3628done
3629IFS=$as_save_IFS
3630
3631fi
3632fi
3633STRIP=$ac_cv_prog_STRIP
3634if test -n "$STRIP"; then
3635  { echo "$as_me:$LINENO: result: $STRIP" >&5
3636echo "${ECHO_T}$STRIP" >&6; }
3637else
3638  { echo "$as_me:$LINENO: result: no" >&5
3639echo "${ECHO_T}no" >&6; }
3640fi
3641
3642
3643fi
3644if test -z "$ac_cv_prog_STRIP"; then
3645  ac_ct_STRIP=$STRIP
3646  # Extract the first word of "strip", so it can be a program name with args.
3647set dummy strip; ac_word=$2
3648{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3650if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3651  echo $ECHO_N "(cached) $ECHO_C" >&6
3652else
3653  if test -n "$ac_ct_STRIP"; then
3654  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3655else
3656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657for as_dir in $PATH
3658do
3659  IFS=$as_save_IFS
3660  test -z "$as_dir" && as_dir=.
3661  for ac_exec_ext in '' $ac_executable_extensions; do
3662  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3663    ac_cv_prog_ac_ct_STRIP="strip"
3664    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3665    break 2
3666  fi
3667done
3668done
3669IFS=$as_save_IFS
3670
3671fi
3672fi
3673ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3674if test -n "$ac_ct_STRIP"; then
3675  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3676echo "${ECHO_T}$ac_ct_STRIP" >&6; }
3677else
3678  { echo "$as_me:$LINENO: result: no" >&5
3679echo "${ECHO_T}no" >&6; }
3680fi
3681
3682  if test "x$ac_ct_STRIP" = x; then
3683    STRIP=":"
3684  else
3685    case $cross_compiling:$ac_tool_warned in
3686yes:)
3687{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3688whose name does not start with the host triplet.  If you think this
3689configuration is useful to you, please write to autoconf@gnu.org." >&5
3690echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3691whose name does not start with the host triplet.  If you think this
3692configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3693ac_tool_warned=yes ;;
3694esac
3695    STRIP=$ac_ct_STRIP
3696  fi
3697else
3698  STRIP="$ac_cv_prog_STRIP"
3699fi
3700
3701fi
3702INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3703
3704# We need awk for the "check" target.  The system "awk" is bad on
3705# some platforms.
3706# Always define AMTAR for backward compatibility.
3707
3708AMTAR=${AMTAR-"${am_missing_run}tar"}
3709
3710am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3711
3712
3713
3714
3715depcc="$CC"   am_compiler_list=
3716
3717{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3718echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3719if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3720  echo $ECHO_N "(cached) $ECHO_C" >&6
3721else
3722  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3723  # We make a subdir and do the tests there.  Otherwise we can end up
3724  # making bogus files that we don't know about and never remove.  For
3725  # instance it was reported that on HP-UX the gcc test will end up
3726  # making a dummy file named `D' -- because `-MD' means `put the output
3727  # in D'.
3728  mkdir conftest.dir
3729  # Copy depcomp to subdir because otherwise we won't find it if we're
3730  # using a relative directory.
3731  cp "$am_depcomp" conftest.dir
3732  cd conftest.dir
3733  # We will build objects and dependencies in a subdirectory because
3734  # it helps to detect inapplicable dependency modes.  For instance
3735  # both Tru64's cc and ICC support -MD to output dependencies as a
3736  # side effect of compilation, but ICC will put the dependencies in
3737  # the current directory while Tru64 will put them in the object
3738  # directory.
3739  mkdir sub
3740
3741  am_cv_CC_dependencies_compiler_type=none
3742  if test "$am_compiler_list" = ""; then
3743     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3744  fi
3745  for depmode in $am_compiler_list; do
3746    # Setup a source with many dependencies, because some compilers
3747    # like to wrap large dependency lists on column 80 (with \), and
3748    # we should not choose a depcomp mode which is confused by this.
3749    #
3750    # We need to recreate these files for each test, as the compiler may
3751    # overwrite some of them when testing with obscure command lines.
3752    # This happens at least with the AIX C compiler.
3753    : > sub/conftest.c
3754    for i in 1 2 3 4 5 6; do
3755      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3756      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3757      # Solaris 8's {/usr,}/bin/sh.
3758      touch sub/conftst$i.h
3759    done
3760    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3761
3762    case $depmode in
3763    nosideeffect)
3764      # after this tag, mechanisms are not by side-effect, so they'll
3765      # only be used when explicitly requested
3766      if test "x$enable_dependency_tracking" = xyes; then
3767	continue
3768      else
3769	break
3770      fi
3771      ;;
3772    none) break ;;
3773    esac
3774    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3775    # mode.  It turns out that the SunPro C++ compiler does not properly
3776    # handle `-M -o', and we need to detect this.
3777    if depmode=$depmode \
3778       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3779       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3780       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3781         >/dev/null 2>conftest.err &&
3782       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3783       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3784       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3785      # icc doesn't choke on unknown options, it will just issue warnings
3786      # or remarks (even with -Werror).  So we grep stderr for any message
3787      # that says an option was ignored or not supported.
3788      # When given -MP, icc 7.0 and 7.1 complain thusly:
3789      #   icc: Command line warning: ignoring option '-M'; no argument required
3790      # The diagnosis changed in icc 8.0:
3791      #   icc: Command line remark: option '-MP' not supported
3792      if (grep 'ignoring option' conftest.err ||
3793          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3794        am_cv_CC_dependencies_compiler_type=$depmode
3795        break
3796      fi
3797    fi
3798  done
3799
3800  cd ..
3801  rm -rf conftest.dir
3802else
3803  am_cv_CC_dependencies_compiler_type=none
3804fi
3805
3806fi
3807{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3808echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3809CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3810
3811
3812
3813if
3814  test "x$enable_dependency_tracking" != xno \
3815  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3816  am__fastdepCC_TRUE=
3817  am__fastdepCC_FALSE='#'
3818else
3819  am__fastdepCC_TRUE='#'
3820  am__fastdepCC_FALSE=
3821fi
3822
3823
3824
3825
3826if test -n "$ac_tool_prefix"; then
3827  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3828set dummy ${ac_tool_prefix}ar; ac_word=$2
3829{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3831if test "${ac_cv_prog_AR+set}" = set; then
3832  echo $ECHO_N "(cached) $ECHO_C" >&6
3833else
3834  if test -n "$AR"; then
3835  ac_cv_prog_AR="$AR" # Let the user override the test.
3836else
3837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838for as_dir in $PATH
3839do
3840  IFS=$as_save_IFS
3841  test -z "$as_dir" && as_dir=.
3842  for ac_exec_ext in '' $ac_executable_extensions; do
3843  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3844    ac_cv_prog_AR="${ac_tool_prefix}ar"
3845    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3846    break 2
3847  fi
3848done
3849done
3850IFS=$as_save_IFS
3851
3852fi
3853fi
3854AR=$ac_cv_prog_AR
3855if test -n "$AR"; then
3856  { echo "$as_me:$LINENO: result: $AR" >&5
3857echo "${ECHO_T}$AR" >&6; }
3858else
3859  { echo "$as_me:$LINENO: result: no" >&5
3860echo "${ECHO_T}no" >&6; }
3861fi
3862
3863
3864fi
3865if test -z "$ac_cv_prog_AR"; then
3866  ac_ct_AR=$AR
3867  # Extract the first word of "ar", so it can be a program name with args.
3868set dummy ar; ac_word=$2
3869{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3871if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3872  echo $ECHO_N "(cached) $ECHO_C" >&6
3873else
3874  if test -n "$ac_ct_AR"; then
3875  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3876else
3877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878for as_dir in $PATH
3879do
3880  IFS=$as_save_IFS
3881  test -z "$as_dir" && as_dir=.
3882  for ac_exec_ext in '' $ac_executable_extensions; do
3883  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3884    ac_cv_prog_ac_ct_AR="ar"
3885    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3886    break 2
3887  fi
3888done
3889done
3890IFS=$as_save_IFS
3891
3892fi
3893fi
3894ac_ct_AR=$ac_cv_prog_ac_ct_AR
3895if test -n "$ac_ct_AR"; then
3896  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3897echo "${ECHO_T}$ac_ct_AR" >&6; }
3898else
3899  { echo "$as_me:$LINENO: result: no" >&5
3900echo "${ECHO_T}no" >&6; }
3901fi
3902
3903  if test "x$ac_ct_AR" = x; then
3904    AR=""
3905  else
3906    case $cross_compiling:$ac_tool_warned in
3907yes:)
3908{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3909whose name does not start with the host triplet.  If you think this
3910configuration is useful to you, please write to autoconf@gnu.org." >&5
3911echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3912whose name does not start with the host triplet.  If you think this
3913configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3914ac_tool_warned=yes ;;
3915esac
3916    AR=$ac_ct_AR
3917  fi
3918else
3919  AR="$ac_cv_prog_AR"
3920fi
3921
3922if test -n "$ac_tool_prefix"; then
3923  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3924set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3925{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3927if test "${ac_cv_prog_RANLIB+set}" = set; then
3928  echo $ECHO_N "(cached) $ECHO_C" >&6
3929else
3930  if test -n "$RANLIB"; then
3931  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3932else
3933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934for as_dir in $PATH
3935do
3936  IFS=$as_save_IFS
3937  test -z "$as_dir" && as_dir=.
3938  for ac_exec_ext in '' $ac_executable_extensions; do
3939  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3940    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3941    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3942    break 2
3943  fi
3944done
3945done
3946IFS=$as_save_IFS
3947
3948fi
3949fi
3950RANLIB=$ac_cv_prog_RANLIB
3951if test -n "$RANLIB"; then
3952  { echo "$as_me:$LINENO: result: $RANLIB" >&5
3953echo "${ECHO_T}$RANLIB" >&6; }
3954else
3955  { echo "$as_me:$LINENO: result: no" >&5
3956echo "${ECHO_T}no" >&6; }
3957fi
3958
3959
3960fi
3961if test -z "$ac_cv_prog_RANLIB"; then
3962  ac_ct_RANLIB=$RANLIB
3963  # Extract the first word of "ranlib", so it can be a program name with args.
3964set dummy ranlib; ac_word=$2
3965{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3967if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3968  echo $ECHO_N "(cached) $ECHO_C" >&6
3969else
3970  if test -n "$ac_ct_RANLIB"; then
3971  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3972else
3973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974for as_dir in $PATH
3975do
3976  IFS=$as_save_IFS
3977  test -z "$as_dir" && as_dir=.
3978  for ac_exec_ext in '' $ac_executable_extensions; do
3979  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3980    ac_cv_prog_ac_ct_RANLIB="ranlib"
3981    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3982    break 2
3983  fi
3984done
3985done
3986IFS=$as_save_IFS
3987
3988fi
3989fi
3990ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3991if test -n "$ac_ct_RANLIB"; then
3992  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3993echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3994else
3995  { echo "$as_me:$LINENO: result: no" >&5
3996echo "${ECHO_T}no" >&6; }
3997fi
3998
3999  if test "x$ac_ct_RANLIB" = x; then
4000    RANLIB=":"
4001  else
4002    case $cross_compiling:$ac_tool_warned in
4003yes:)
4004{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4005whose name does not start with the host triplet.  If you think this
4006configuration is useful to you, please write to autoconf@gnu.org." >&5
4007echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4008whose name does not start with the host triplet.  If you think this
4009configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4010ac_tool_warned=yes ;;
4011esac
4012    RANLIB=$ac_ct_RANLIB
4013  fi
4014else
4015  RANLIB="$ac_cv_prog_RANLIB"
4016fi
4017
4018
4019# Check whether --enable-shared was given.
4020if test "${enable_shared+set}" = set; then
4021  enableval=$enable_shared; p=${PACKAGE-default}
4022    case $enableval in
4023    yes) enable_shared=yes ;;
4024    no) enable_shared=no ;;
4025    *)
4026      enable_shared=no
4027      # Look at the argument we got.  We use all the common list separators.
4028      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4029      for pkg in $enableval; do
4030	IFS="$lt_save_ifs"
4031	if test "X$pkg" = "X$p"; then
4032	  enable_shared=yes
4033	fi
4034      done
4035      IFS="$lt_save_ifs"
4036      ;;
4037    esac
4038else
4039  enable_shared=no
4040fi
4041
4042
4043
4044
4045
4046cat >>confdefs.h <<\_ACEOF
4047#define _GNU_SOURCE 1
4048_ACEOF
4049
4050
4051# Check whether --enable-static was given.
4052if test "${enable_static+set}" = set; then
4053  enableval=$enable_static; p=${PACKAGE-default}
4054    case $enableval in
4055    yes) enable_static=yes ;;
4056    no) enable_static=no ;;
4057    *)
4058     enable_static=no
4059      # Look at the argument we got.  We use all the common list separators.
4060      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4061      for pkg in $enableval; do
4062	IFS="$lt_save_ifs"
4063	if test "X$pkg" = "X$p"; then
4064	  enable_static=yes
4065	fi
4066      done
4067      IFS="$lt_save_ifs"
4068      ;;
4069    esac
4070else
4071  enable_static=yes
4072fi
4073
4074
4075# Check whether --enable-fast-install was given.
4076if test "${enable_fast_install+set}" = set; then
4077  enableval=$enable_fast_install; p=${PACKAGE-default}
4078    case $enableval in
4079    yes) enable_fast_install=yes ;;
4080    no) enable_fast_install=no ;;
4081    *)
4082      enable_fast_install=no
4083      # Look at the argument we got.  We use all the common list separators.
4084      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4085      for pkg in $enableval; do
4086	IFS="$lt_save_ifs"
4087	if test "X$pkg" = "X$p"; then
4088	  enable_fast_install=yes
4089	fi
4090      done
4091      IFS="$lt_save_ifs"
4092      ;;
4093    esac
4094else
4095  enable_fast_install=yes
4096fi
4097
4098
4099{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4100echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4101if test "${lt_cv_path_SED+set}" = set; then
4102  echo $ECHO_N "(cached) $ECHO_C" >&6
4103else
4104  # Loop through the user's path and test for sed and gsed.
4105# Then use that list of seds as ones to test for truncation.
4106test -z "$as_executable_p" && as_executable_p="test -f"
4107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108for as_dir in $PATH
4109do
4110  IFS=$as_save_IFS
4111  test -z "$as_dir" && as_dir=.
4112  for lt_ac_prog in sed gsed; do
4113    for ac_exec_ext in '' $ac_executable_extensions; do
4114      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4115	lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4116      fi
4117    done
4118  done
4119done
4120IFS=$as_save_IFS
4121lt_ac_max=0
4122lt_ac_count=0
4123# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4124# along with /bin/sed that truncates output.
4125for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4126  test ! -f $lt_ac_sed && continue
4127  cat /dev/null > conftest.in
4128  lt_ac_count=0
4129  echo ${ECHO_N-$ac_n} "0123456789$ECHO_C" >conftest.in
4130  # Check for GNU sed and select it if it is found.
4131  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4132    lt_cv_path_SED=$lt_ac_sed
4133    break
4134  fi
4135  while true; do
4136    cat conftest.in conftest.in >conftest.tmp
4137    mv conftest.tmp conftest.in
4138    cp conftest.in conftest.nl
4139    echo >>conftest.nl
4140    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4141    cmp -s conftest.out conftest.nl || break
4142    # 10000 chars as input seems more than enough
4143    test $lt_ac_count -gt 10 && break
4144    lt_ac_count=`expr $lt_ac_count + 1`
4145    if test $lt_ac_count -gt $lt_ac_max; then
4146      lt_ac_max=$lt_ac_count
4147      lt_cv_path_SED=$lt_ac_sed
4148    fi
4149  done
4150done
4151
4152fi
4153
4154lt_cv_path_SED=${lt_cv_path_SED:-$SED}
4155SED=$lt_cv_path_SED
4156
4157{ echo "$as_me:$LINENO: result: $SED" >&5
4158echo "${ECHO_T}$SED" >&6; }
4159
4160{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4161echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4162if test "${ac_cv_path_GREP+set}" = set; then
4163  echo $ECHO_N "(cached) $ECHO_C" >&6
4164else
4165  # Extract the first word of "grep ggrep" to use in msg output
4166if test -z "$GREP"; then
4167set dummy grep ggrep; ac_prog_name=$2
4168if test "${ac_cv_path_GREP+set}" = set; then
4169  echo $ECHO_N "(cached) $ECHO_C" >&6
4170else
4171  ac_path_GREP_found=false
4172# Loop through the user's path and test for each of PROGNAME-LIST
4173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4175do
4176  IFS=$as_save_IFS
4177  test -z "$as_dir" && as_dir=.
4178  for ac_prog in grep ggrep; do
4179  for ac_exec_ext in '' $ac_executable_extensions; do
4180    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4181    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4182    # Check for GNU ac_path_GREP and select it if it is found.
4183  # Check for GNU $ac_path_GREP
4184case `"$ac_path_GREP" --version 2>&1` in
4185*GNU*)
4186  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4187*)
4188  ac_count=0
4189  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4190  while :
4191  do
4192    cat "conftest.in" "conftest.in" >"conftest.tmp"
4193    mv "conftest.tmp" "conftest.in"
4194    cp "conftest.in" "conftest.nl"
4195    echo 'GREP' >> "conftest.nl"
4196    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4197    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4198    ac_count=`expr $ac_count + 1`
4199    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4200      # Best one so far, save it but keep looking for a better one
4201      ac_cv_path_GREP="$ac_path_GREP"
4202      ac_path_GREP_max=$ac_count
4203    fi
4204    # 10*(2^10) chars as input seems more than enough
4205    test $ac_count -gt 10 && break
4206  done
4207  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4208esac
4209
4210
4211    $ac_path_GREP_found && break 3
4212  done
4213done
4214
4215done
4216IFS=$as_save_IFS
4217
4218
4219fi
4220
4221GREP="$ac_cv_path_GREP"
4222if test -z "$GREP"; then
4223  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4224echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4225   { (exit 1); exit 1; }; }
4226fi
4227
4228else
4229  ac_cv_path_GREP=$GREP
4230fi
4231
4232
4233fi
4234{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4235echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4236 GREP="$ac_cv_path_GREP"
4237
4238
4239{ echo "$as_me:$LINENO: checking for egrep" >&5
4240echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4241if test "${ac_cv_path_EGREP+set}" = set; then
4242  echo $ECHO_N "(cached) $ECHO_C" >&6
4243else
4244  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4245   then ac_cv_path_EGREP="$GREP -E"
4246   else
4247     # Extract the first word of "egrep" to use in msg output
4248if test -z "$EGREP"; then
4249set dummy egrep; ac_prog_name=$2
4250if test "${ac_cv_path_EGREP+set}" = set; then
4251  echo $ECHO_N "(cached) $ECHO_C" >&6
4252else
4253  ac_path_EGREP_found=false
4254# Loop through the user's path and test for each of PROGNAME-LIST
4255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4257do
4258  IFS=$as_save_IFS
4259  test -z "$as_dir" && as_dir=.
4260  for ac_prog in egrep; do
4261  for ac_exec_ext in '' $ac_executable_extensions; do
4262    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4263    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4264    # Check for GNU ac_path_EGREP and select it if it is found.
4265  # Check for GNU $ac_path_EGREP
4266case `"$ac_path_EGREP" --version 2>&1` in
4267*GNU*)
4268  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4269*)
4270  ac_count=0
4271  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4272  while :
4273  do
4274    cat "conftest.in" "conftest.in" >"conftest.tmp"
4275    mv "conftest.tmp" "conftest.in"
4276    cp "conftest.in" "conftest.nl"
4277    echo 'EGREP' >> "conftest.nl"
4278    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4279    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4280    ac_count=`expr $ac_count + 1`
4281    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4282      # Best one so far, save it but keep looking for a better one
4283      ac_cv_path_EGREP="$ac_path_EGREP"
4284      ac_path_EGREP_max=$ac_count
4285    fi
4286    # 10*(2^10) chars as input seems more than enough
4287    test $ac_count -gt 10 && break
4288  done
4289  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4290esac
4291
4292
4293    $ac_path_EGREP_found && break 3
4294  done
4295done
4296
4297done
4298IFS=$as_save_IFS
4299
4300
4301fi
4302
4303EGREP="$ac_cv_path_EGREP"
4304if test -z "$EGREP"; then
4305  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4306echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4307   { (exit 1); exit 1; }; }
4308fi
4309
4310else
4311  ac_cv_path_EGREP=$EGREP
4312fi
4313
4314
4315   fi
4316fi
4317{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4318echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4319 EGREP="$ac_cv_path_EGREP"
4320
4321
4322
4323# Check whether --with-gnu-ld was given.
4324if test "${with_gnu_ld+set}" = set; then
4325  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4326else
4327  with_gnu_ld=no
4328fi
4329
4330ac_prog=ld
4331if test "$GCC" = yes; then
4332  # Check if gcc -print-prog-name=ld gives a path.
4333  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4334echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4335  case $host in
4336  *-*-mingw*)
4337    # gcc leaves a trailing carriage return which upsets mingw
4338    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4339  *)
4340    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4341  esac
4342  case $ac_prog in
4343    # Accept absolute paths.
4344    [\\/]* | ?:[\\/]*)
4345      re_direlt='/[^/][^/]*/\.\./'
4346      # Canonicalize the pathname of ld
4347      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4348      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4349	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4350      done
4351      test -z "$LD" && LD="$ac_prog"
4352      ;;
4353  "")
4354    # If it fails, then pretend we aren't using GCC.
4355    ac_prog=ld
4356    ;;
4357  *)
4358    # If it is relative, then search for the first ld in PATH.
4359    with_gnu_ld=unknown
4360    ;;
4361  esac
4362elif test "$with_gnu_ld" = yes; then
4363  { echo "$as_me:$LINENO: checking for GNU ld" >&5
4364echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4365else
4366  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4367echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4368fi
4369if test "${lt_cv_path_LD+set}" = set; then
4370  echo $ECHO_N "(cached) $ECHO_C" >&6
4371else
4372  if test -z "$LD"; then
4373  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4374  for ac_dir in $PATH; do
4375    IFS="$lt_save_ifs"
4376    test -z "$ac_dir" && ac_dir=.
4377    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4378      lt_cv_path_LD="$ac_dir/$ac_prog"
4379      # Check to see if the program is GNU ld.  I'd rather use --version,
4380      # but apparently some variants of GNU ld only accept -v.
4381      # Break only if it was the GNU/non-GNU ld that we prefer.
4382      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4383      *GNU* | *'with BFD'*)
4384	test "$with_gnu_ld" != no && break
4385	;;
4386      *)
4387	test "$with_gnu_ld" != yes && break
4388	;;
4389      esac
4390    fi
4391  done
4392  IFS="$lt_save_ifs"
4393else
4394  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4395fi
4396fi
4397
4398LD="$lt_cv_path_LD"
4399if test -n "$LD"; then
4400  { echo "$as_me:$LINENO: result: $LD" >&5
4401echo "${ECHO_T}$LD" >&6; }
4402else
4403  { echo "$as_me:$LINENO: result: no" >&5
4404echo "${ECHO_T}no" >&6; }
4405fi
4406test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4407echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4408   { (exit 1); exit 1; }; }
4409{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4410echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4411if test "${lt_cv_prog_gnu_ld+set}" = set; then
4412  echo $ECHO_N "(cached) $ECHO_C" >&6
4413else
4414  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4415case `$LD -v 2>&1 </dev/null` in
4416*GNU* | *'with BFD'*)
4417  lt_cv_prog_gnu_ld=yes
4418  ;;
4419*)
4420  lt_cv_prog_gnu_ld=no
4421  ;;
4422esac
4423fi
4424{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4425echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4426with_gnu_ld=$lt_cv_prog_gnu_ld
4427
4428
4429{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4430echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4431if test "${lt_cv_ld_reload_flag+set}" = set; then
4432  echo $ECHO_N "(cached) $ECHO_C" >&6
4433else
4434  lt_cv_ld_reload_flag='-r'
4435fi
4436{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4437echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4438reload_flag=$lt_cv_ld_reload_flag
4439case $reload_flag in
4440"" | " "*) ;;
4441*) reload_flag=" $reload_flag" ;;
4442esac
4443reload_cmds='$LD$reload_flag -o $output$reload_objs'
4444case $host_os in
4445  darwin*)
4446    if test "$GCC" = yes; then
4447      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4448    else
4449      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4450    fi
4451    ;;
4452esac
4453
4454{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4455echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4456if test "${lt_cv_path_NM+set}" = set; then
4457  echo $ECHO_N "(cached) $ECHO_C" >&6
4458else
4459  if test -n "$NM"; then
4460  # Let the user override the test.
4461  lt_cv_path_NM="$NM"
4462else
4463  lt_nm_to_check="${ac_tool_prefix}nm"
4464  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4465    lt_nm_to_check="$lt_nm_to_check nm"
4466  fi
4467  for lt_tmp_nm in $lt_nm_to_check; do
4468    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4469    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4470      IFS="$lt_save_ifs"
4471      test -z "$ac_dir" && ac_dir=.
4472      tmp_nm="$ac_dir/$lt_tmp_nm"
4473      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4474	# Check to see if the nm accepts a BSD-compat flag.
4475	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4476	#   nm: unknown option "B" ignored
4477	# Tru64's nm complains that /dev/null is an invalid object file
4478	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4479	*/dev/null* | *'Invalid file or object type'*)
4480	  lt_cv_path_NM="$tmp_nm -B"
4481	  break
4482	  ;;
4483	*)
4484	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4485	  */dev/null*)
4486	    lt_cv_path_NM="$tmp_nm -p"
4487	    break
4488	    ;;
4489	  *)
4490	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4491	    continue # so that we can try to find one that supports BSD flags
4492	    ;;
4493	  esac
4494	  ;;
4495	esac
4496      fi
4497    done
4498    IFS="$lt_save_ifs"
4499  done
4500  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4501fi
4502fi
4503{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4504echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4505NM="$lt_cv_path_NM"
4506
4507{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4508echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4509LN_S=$as_ln_s
4510if test "$LN_S" = "ln -s"; then
4511  { echo "$as_me:$LINENO: result: yes" >&5
4512echo "${ECHO_T}yes" >&6; }
4513else
4514  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4515echo "${ECHO_T}no, using $LN_S" >&6; }
4516fi
4517
4518{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4519echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4520if test "${lt_cv_deplibs_check_method+set}" = set; then
4521  echo $ECHO_N "(cached) $ECHO_C" >&6
4522else
4523  lt_cv_file_magic_cmd='$MAGIC_CMD'
4524lt_cv_file_magic_test_file=
4525lt_cv_deplibs_check_method='unknown'
4526# Need to set the preceding variable on all platforms that support
4527# interlibrary dependencies.
4528# 'none' -- dependencies not supported.
4529# 'unknown' -- same as none, but documents that we really don't know.
4530# 'pass_all' -- all dependencies passed with no checks.
4531# 'test_compile' -- check by making test program.
4532# 'file_magic [[regex]]' -- check by looking for files in library path
4533# which responds to the $file_magic_cmd with a given extended regex.
4534# If you have 'file' or equivalent on your system and you're not sure
4535# whether 'pass_all' will *always* work, you probably want this one.
4536
4537case $host_os in
4538aix4* | aix5*)
4539  lt_cv_deplibs_check_method=pass_all
4540  ;;
4541
4542beos*)
4543  lt_cv_deplibs_check_method=pass_all
4544  ;;
4545
4546bsdi[45]*)
4547  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4548  lt_cv_file_magic_cmd='/usr/bin/file -L'
4549  lt_cv_file_magic_test_file=/shlib/libc.so
4550  ;;
4551
4552cygwin*)
4553  # func_win32_libid is a shell function defined in ltmain.sh
4554  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4555  lt_cv_file_magic_cmd='func_win32_libid'
4556  ;;
4557
4558mingw* | pw32*)
4559  # Base MSYS/MinGW do not provide the 'file' command needed by
4560  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4561  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4562  lt_cv_file_magic_cmd='$OBJDUMP -f'
4563  ;;
4564
4565darwin* | rhapsody*)
4566  lt_cv_deplibs_check_method=pass_all
4567  ;;
4568
4569freebsd* | kfreebsd*-gnu | dragonfly*)
4570  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4571    case $host_cpu in
4572    i*86 )
4573      # Not sure whether the presence of OpenBSD here was a mistake.
4574      # Let's accept both of them until this is cleared up.
4575      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4576      lt_cv_file_magic_cmd=/usr/bin/file
4577      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4578      ;;
4579    esac
4580  else
4581    lt_cv_deplibs_check_method=pass_all
4582  fi
4583  ;;
4584
4585gnu*)
4586  lt_cv_deplibs_check_method=pass_all
4587  ;;
4588
4589hpux10.20* | hpux11*)
4590  lt_cv_file_magic_cmd=/usr/bin/file
4591  case $host_cpu in
4592  ia64*)
4593    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4594    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4595    ;;
4596  hppa*64*)
4597    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]'
4598    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4599    ;;
4600  *)
4601    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4602    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4603    ;;
4604  esac
4605  ;;
4606
4607interix3*)
4608  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4609  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4610  ;;
4611
4612irix5* | irix6* | nonstopux*)
4613  case $LD in
4614  *-32|*"-32 ") libmagic=32-bit;;
4615  *-n32|*"-n32 ") libmagic=N32;;
4616  *-64|*"-64 ") libmagic=64-bit;;
4617  *) libmagic=never-match;;
4618  esac
4619  lt_cv_deplibs_check_method=pass_all
4620  ;;
4621
4622# This must be Linux ELF.
4623linux*)
4624  lt_cv_deplibs_check_method=pass_all
4625  ;;
4626
4627mirbsd*)
4628  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4629  ;;
4630
4631netbsd*)
4632  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4633    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4634  else
4635    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4636  fi
4637  ;;
4638
4639newos6*)
4640  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4641  lt_cv_file_magic_cmd=/usr/bin/file
4642  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4643  ;;
4644
4645nto-qnx*)
4646  lt_cv_deplibs_check_method=unknown
4647  ;;
4648
4649openbsd*)
4650  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4651    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4652  else
4653    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4654  fi
4655  ;;
4656
4657osf3* | osf4* | osf5*)
4658  lt_cv_deplibs_check_method=pass_all
4659  ;;
4660
4661rdos*)
4662  lt_cv_deplibs_check_method=pass_all
4663  ;;
4664
4665solaris*)
4666  lt_cv_deplibs_check_method=pass_all
4667  ;;
4668
4669sysv4 | sysv4.3*)
4670  case $host_vendor in
4671  motorola)
4672    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]'
4673    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4674    ;;
4675  ncr)
4676    lt_cv_deplibs_check_method=pass_all
4677    ;;
4678  sequent)
4679    lt_cv_file_magic_cmd='/bin/file'
4680    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4681    ;;
4682  sni)
4683    lt_cv_file_magic_cmd='/bin/file'
4684    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4685    lt_cv_file_magic_test_file=/lib/libc.so
4686    ;;
4687  siemens)
4688    lt_cv_deplibs_check_method=pass_all
4689    ;;
4690  pc)
4691    lt_cv_deplibs_check_method=pass_all
4692    ;;
4693  esac
4694  ;;
4695
4696sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4697  lt_cv_deplibs_check_method=pass_all
4698  ;;
4699esac
4700
4701fi
4702{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4703echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4704file_magic_cmd=$lt_cv_file_magic_cmd
4705deplibs_check_method=$lt_cv_deplibs_check_method
4706test -z "$deplibs_check_method" && deplibs_check_method=unknown
4707
4708
4709
4710
4711# If no C compiler was specified, use CC.
4712LTCC=${LTCC-"$CC"}
4713
4714# If no C compiler flags were specified, use CFLAGS.
4715LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4716
4717# Allow CC to be a program name with arguments.
4718compiler=$CC
4719
4720# The user is always right.
4721if test "${PATH_SEPARATOR+set}" != set; then
4722  echo "#! /bin/sh" >conf$$.sh
4723  echo  "exit 0"   >>conf$$.sh
4724  chmod +x conf$$.sh
4725  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4726    PATH_SEPARATOR=';'
4727  else
4728    PATH_SEPARATOR=:
4729  fi
4730  rm -f conf$$.sh
4731fi
4732
4733# Check whether --enable-libtool-lock was given.
4734if test "${enable_libtool_lock+set}" = set; then
4735  enableval=$enable_libtool_lock;
4736fi
4737
4738test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4739
4740# Some flags need to be propagated to the compiler or linker for good
4741# libtool support.
4742case $host in
4743ia64-*-hpux*)
4744  # Find out which ABI we are using.
4745  echo 'int i;' > conftest.$ac_ext
4746  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4747  (eval $ac_compile) 2>&5
4748  ac_status=$?
4749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750  (exit $ac_status); }; then
4751    case `/usr/bin/file conftest.$ac_objext` in
4752    *ELF-32*)
4753      HPUX_IA64_MODE="32"
4754      ;;
4755    *ELF-64*)
4756      HPUX_IA64_MODE="64"
4757      ;;
4758    esac
4759  fi
4760  rm -rf conftest*
4761  ;;
4762*-*-irix6*)
4763  # Find out which ABI we are using.
4764  echo '#line 4764 "configure"' > conftest.$ac_ext
4765  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4766  (eval $ac_compile) 2>&5
4767  ac_status=$?
4768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769  (exit $ac_status); }; then
4770   if test "$lt_cv_prog_gnu_ld" = yes; then
4771    case `/usr/bin/file conftest.$ac_objext` in
4772    *32-bit*)
4773      LD="${LD-ld} -melf32bsmip"
4774      ;;
4775    *N32*)
4776      LD="${LD-ld} -melf32bmipn32"
4777      ;;
4778    *64-bit*)
4779      LD="${LD-ld} -melf64bmip"
4780      ;;
4781    esac
4782   else
4783    case `/usr/bin/file conftest.$ac_objext` in
4784    *32-bit*)
4785      LD="${LD-ld} -32"
4786      ;;
4787    *N32*)
4788      LD="${LD-ld} -n32"
4789      ;;
4790    *64-bit*)
4791      LD="${LD-ld} -64"
4792      ;;
4793    esac
4794   fi
4795  fi
4796  rm -rf conftest*
4797  ;;
4798
4799x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4800  # Find out which ABI we are using.
4801  echo 'int i;' > conftest.$ac_ext
4802  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4803  (eval $ac_compile) 2>&5
4804  ac_status=$?
4805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806  (exit $ac_status); }; then
4807    case `/usr/bin/file conftest.o` in
4808    *32-bit*)
4809      case $host in
4810	x86_64-*linux*)
4811	  LD="${LD-ld} -m elf_i386"
4812	  ;;
4813	ppc64-*linux*|powerpc64-*linux*)
4814	  LD="${LD-ld} -m elf32ppclinux"
4815	  ;;
4816	s390x-*linux*)
4817	  LD="${LD-ld} -m elf_s390"
4818	  ;;
4819	sparc64-*linux*)
4820	  LD="${LD-ld} -m elf32_sparc"
4821	  ;;
4822      esac
4823      ;;
4824    *64-bit*)
4825      case $host in
4826	x86_64-*linux*)
4827	  LD="${LD-ld} -m elf_x86_64"
4828	  ;;
4829	ppc*-*linux*|powerpc*-*linux*)
4830	  LD="${LD-ld} -m elf64ppc"
4831	  ;;
4832	s390*-*linux*)
4833	  LD="${LD-ld} -m elf64_s390"
4834	  ;;
4835	sparc*-*linux*)
4836	  LD="${LD-ld} -m elf64_sparc"
4837	  ;;
4838      esac
4839      ;;
4840    esac
4841  fi
4842  rm -rf conftest*
4843  ;;
4844
4845*-*-sco3.2v5*)
4846  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4847  SAVE_CFLAGS="$CFLAGS"
4848  CFLAGS="$CFLAGS -belf"
4849  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4850echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4851if test "${lt_cv_cc_needs_belf+set}" = set; then
4852  echo $ECHO_N "(cached) $ECHO_C" >&6
4853else
4854  ac_ext=c
4855ac_cpp='$CPP $CPPFLAGS'
4856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4858ac_compiler_gnu=$ac_cv_c_compiler_gnu
4859
4860     cat >conftest.$ac_ext <<_ACEOF
4861/* confdefs.h.  */
4862_ACEOF
4863cat confdefs.h >>conftest.$ac_ext
4864cat >>conftest.$ac_ext <<_ACEOF
4865/* end confdefs.h.  */
4866
4867int
4868main ()
4869{
4870
4871  ;
4872  return 0;
4873}
4874_ACEOF
4875rm -f conftest.$ac_objext conftest$ac_exeext
4876if { (ac_try="$ac_link"
4877case "(($ac_try" in
4878  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4879  *) ac_try_echo=$ac_try;;
4880esac
4881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4882  (eval "$ac_link") 2>conftest.er1
4883  ac_status=$?
4884  grep -v '^ *+' conftest.er1 >conftest.err
4885  rm -f conftest.er1
4886  cat conftest.err >&5
4887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888  (exit $ac_status); } &&
4889	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4890  { (case "(($ac_try" in
4891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4892  *) ac_try_echo=$ac_try;;
4893esac
4894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4895  (eval "$ac_try") 2>&5
4896  ac_status=$?
4897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898  (exit $ac_status); }; } &&
4899	 { ac_try='test -s conftest$ac_exeext'
4900  { (case "(($ac_try" in
4901  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4902  *) ac_try_echo=$ac_try;;
4903esac
4904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4905  (eval "$ac_try") 2>&5
4906  ac_status=$?
4907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908  (exit $ac_status); }; }; then
4909  lt_cv_cc_needs_belf=yes
4910else
4911  echo "$as_me: failed program was:" >&5
4912sed 's/^/| /' conftest.$ac_ext >&5
4913
4914	lt_cv_cc_needs_belf=no
4915fi
4916
4917rm -f core conftest.err conftest.$ac_objext \
4918      conftest$ac_exeext conftest.$ac_ext
4919     ac_ext=c
4920ac_cpp='$CPP $CPPFLAGS'
4921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4923ac_compiler_gnu=$ac_cv_c_compiler_gnu
4924
4925fi
4926{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4927echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4928  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4929    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4930    CFLAGS="$SAVE_CFLAGS"
4931  fi
4932  ;;
4933sparc*-*solaris*)
4934  # Find out which ABI we are using.
4935  echo 'int i;' > conftest.$ac_ext
4936  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4937  (eval $ac_compile) 2>&5
4938  ac_status=$?
4939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940  (exit $ac_status); }; then
4941    case `/usr/bin/file conftest.o` in
4942    *64-bit*)
4943      case $lt_cv_prog_gnu_ld in
4944      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4945      *)    LD="${LD-ld} -64" ;;
4946      esac
4947      ;;
4948    esac
4949  fi
4950  rm -rf conftest*
4951  ;;
4952
4953
4954esac
4955
4956need_locks="$enable_libtool_lock"
4957
4958
4959ac_ext=c
4960ac_cpp='$CPP $CPPFLAGS'
4961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4963ac_compiler_gnu=$ac_cv_c_compiler_gnu
4964{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4965echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4966# On Suns, sometimes $CPP names a directory.
4967if test -n "$CPP" && test -d "$CPP"; then
4968  CPP=
4969fi
4970if test -z "$CPP"; then
4971  if test "${ac_cv_prog_CPP+set}" = set; then
4972  echo $ECHO_N "(cached) $ECHO_C" >&6
4973else
4974      # Double quotes because CPP needs to be expanded
4975    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4976    do
4977      ac_preproc_ok=false
4978for ac_c_preproc_warn_flag in '' yes
4979do
4980  # Use a header file that comes with gcc, so configuring glibc
4981  # with a fresh cross-compiler works.
4982  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4983  # <limits.h> exists even on freestanding compilers.
4984  # On the NeXT, cc -E runs the code through the compiler's parser,
4985  # not just through cpp. "Syntax error" is here to catch this case.
4986  cat >conftest.$ac_ext <<_ACEOF
4987/* confdefs.h.  */
4988_ACEOF
4989cat confdefs.h >>conftest.$ac_ext
4990cat >>conftest.$ac_ext <<_ACEOF
4991/* end confdefs.h.  */
4992#ifdef __STDC__
4993# include <limits.h>
4994#else
4995# include <assert.h>
4996#endif
4997		     Syntax error
4998_ACEOF
4999if { (ac_try="$ac_cpp conftest.$ac_ext"
5000case "(($ac_try" in
5001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5002  *) ac_try_echo=$ac_try;;
5003esac
5004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5005  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5006  ac_status=$?
5007  grep -v '^ *+' conftest.er1 >conftest.err
5008  rm -f conftest.er1
5009  cat conftest.err >&5
5010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011  (exit $ac_status); } >/dev/null; then
5012  if test -s conftest.err; then
5013    ac_cpp_err=$ac_c_preproc_warn_flag
5014    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5015  else
5016    ac_cpp_err=
5017  fi
5018else
5019  ac_cpp_err=yes
5020fi
5021if test -z "$ac_cpp_err"; then
5022  :
5023else
5024  echo "$as_me: failed program was:" >&5
5025sed 's/^/| /' conftest.$ac_ext >&5
5026
5027  # Broken: fails on valid input.
5028continue
5029fi
5030
5031rm -f conftest.err conftest.$ac_ext
5032
5033  # OK, works on sane cases.  Now check whether nonexistent headers
5034  # can be detected and how.
5035  cat >conftest.$ac_ext <<_ACEOF
5036/* confdefs.h.  */
5037_ACEOF
5038cat confdefs.h >>conftest.$ac_ext
5039cat >>conftest.$ac_ext <<_ACEOF
5040/* end confdefs.h.  */
5041#include <ac_nonexistent.h>
5042_ACEOF
5043if { (ac_try="$ac_cpp conftest.$ac_ext"
5044case "(($ac_try" in
5045  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5046  *) ac_try_echo=$ac_try;;
5047esac
5048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5049  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5050  ac_status=$?
5051  grep -v '^ *+' conftest.er1 >conftest.err
5052  rm -f conftest.er1
5053  cat conftest.err >&5
5054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055  (exit $ac_status); } >/dev/null; then
5056  if test -s conftest.err; then
5057    ac_cpp_err=$ac_c_preproc_warn_flag
5058    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5059  else
5060    ac_cpp_err=
5061  fi
5062else
5063  ac_cpp_err=yes
5064fi
5065if test -z "$ac_cpp_err"; then
5066  # Broken: success on invalid input.
5067continue
5068else
5069  echo "$as_me: failed program was:" >&5
5070sed 's/^/| /' conftest.$ac_ext >&5
5071
5072  # Passes both tests.
5073ac_preproc_ok=:
5074break
5075fi
5076
5077rm -f conftest.err conftest.$ac_ext
5078
5079done
5080# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5081rm -f conftest.err conftest.$ac_ext
5082if $ac_preproc_ok; then
5083  break
5084fi
5085
5086    done
5087    ac_cv_prog_CPP=$CPP
5088
5089fi
5090  CPP=$ac_cv_prog_CPP
5091else
5092  ac_cv_prog_CPP=$CPP
5093fi
5094{ echo "$as_me:$LINENO: result: $CPP" >&5
5095echo "${ECHO_T}$CPP" >&6; }
5096ac_preproc_ok=false
5097for ac_c_preproc_warn_flag in '' yes
5098do
5099  # Use a header file that comes with gcc, so configuring glibc
5100  # with a fresh cross-compiler works.
5101  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5102  # <limits.h> exists even on freestanding compilers.
5103  # On the NeXT, cc -E runs the code through the compiler's parser,
5104  # not just through cpp. "Syntax error" is here to catch this case.
5105  cat >conftest.$ac_ext <<_ACEOF
5106/* confdefs.h.  */
5107_ACEOF
5108cat confdefs.h >>conftest.$ac_ext
5109cat >>conftest.$ac_ext <<_ACEOF
5110/* end confdefs.h.  */
5111#ifdef __STDC__
5112# include <limits.h>
5113#else
5114# include <assert.h>
5115#endif
5116		     Syntax error
5117_ACEOF
5118if { (ac_try="$ac_cpp conftest.$ac_ext"
5119case "(($ac_try" in
5120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5121  *) ac_try_echo=$ac_try;;
5122esac
5123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5124  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5125  ac_status=$?
5126  grep -v '^ *+' conftest.er1 >conftest.err
5127  rm -f conftest.er1
5128  cat conftest.err >&5
5129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130  (exit $ac_status); } >/dev/null; then
5131  if test -s conftest.err; then
5132    ac_cpp_err=$ac_c_preproc_warn_flag
5133    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5134  else
5135    ac_cpp_err=
5136  fi
5137else
5138  ac_cpp_err=yes
5139fi
5140if test -z "$ac_cpp_err"; then
5141  :
5142else
5143  echo "$as_me: failed program was:" >&5
5144sed 's/^/| /' conftest.$ac_ext >&5
5145
5146  # Broken: fails on valid input.
5147continue
5148fi
5149
5150rm -f conftest.err conftest.$ac_ext
5151
5152  # OK, works on sane cases.  Now check whether nonexistent headers
5153  # can be detected and how.
5154  cat >conftest.$ac_ext <<_ACEOF
5155/* confdefs.h.  */
5156_ACEOF
5157cat confdefs.h >>conftest.$ac_ext
5158cat >>conftest.$ac_ext <<_ACEOF
5159/* end confdefs.h.  */
5160#include <ac_nonexistent.h>
5161_ACEOF
5162if { (ac_try="$ac_cpp conftest.$ac_ext"
5163case "(($ac_try" in
5164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5165  *) ac_try_echo=$ac_try;;
5166esac
5167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5168  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5169  ac_status=$?
5170  grep -v '^ *+' conftest.er1 >conftest.err
5171  rm -f conftest.er1
5172  cat conftest.err >&5
5173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174  (exit $ac_status); } >/dev/null; then
5175  if test -s conftest.err; then
5176    ac_cpp_err=$ac_c_preproc_warn_flag
5177    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5178  else
5179    ac_cpp_err=
5180  fi
5181else
5182  ac_cpp_err=yes
5183fi
5184if test -z "$ac_cpp_err"; then
5185  # Broken: success on invalid input.
5186continue
5187else
5188  echo "$as_me: failed program was:" >&5
5189sed 's/^/| /' conftest.$ac_ext >&5
5190
5191  # Passes both tests.
5192ac_preproc_ok=:
5193break
5194fi
5195
5196rm -f conftest.err conftest.$ac_ext
5197
5198done
5199# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5200rm -f conftest.err conftest.$ac_ext
5201if $ac_preproc_ok; then
5202  :
5203else
5204  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5205See \`config.log' for more details." >&5
5206echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5207See \`config.log' for more details." >&2;}
5208   { (exit 1); exit 1; }; }
5209fi
5210
5211ac_ext=c
5212ac_cpp='$CPP $CPPFLAGS'
5213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5215ac_compiler_gnu=$ac_cv_c_compiler_gnu
5216
5217
5218{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5219echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5220if test "${ac_cv_header_stdc+set}" = set; then
5221  echo $ECHO_N "(cached) $ECHO_C" >&6
5222else
5223  cat >conftest.$ac_ext <<_ACEOF
5224/* confdefs.h.  */
5225_ACEOF
5226cat confdefs.h >>conftest.$ac_ext
5227cat >>conftest.$ac_ext <<_ACEOF
5228/* end confdefs.h.  */
5229#include <stdlib.h>
5230#include <stdarg.h>
5231#include <string.h>
5232#include <float.h>
5233
5234int
5235main ()
5236{
5237
5238  ;
5239  return 0;
5240}
5241_ACEOF
5242rm -f conftest.$ac_objext
5243if { (ac_try="$ac_compile"
5244case "(($ac_try" in
5245  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5246  *) ac_try_echo=$ac_try;;
5247esac
5248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5249  (eval "$ac_compile") 2>conftest.er1
5250  ac_status=$?
5251  grep -v '^ *+' conftest.er1 >conftest.err
5252  rm -f conftest.er1
5253  cat conftest.err >&5
5254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255  (exit $ac_status); } &&
5256	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5257  { (case "(($ac_try" in
5258  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5259  *) ac_try_echo=$ac_try;;
5260esac
5261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5262  (eval "$ac_try") 2>&5
5263  ac_status=$?
5264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265  (exit $ac_status); }; } &&
5266	 { ac_try='test -s conftest.$ac_objext'
5267  { (case "(($ac_try" in
5268  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5269  *) ac_try_echo=$ac_try;;
5270esac
5271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5272  (eval "$ac_try") 2>&5
5273  ac_status=$?
5274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275  (exit $ac_status); }; }; then
5276  ac_cv_header_stdc=yes
5277else
5278  echo "$as_me: failed program was:" >&5
5279sed 's/^/| /' conftest.$ac_ext >&5
5280
5281	ac_cv_header_stdc=no
5282fi
5283
5284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5285
5286if test $ac_cv_header_stdc = yes; then
5287  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5288  cat >conftest.$ac_ext <<_ACEOF
5289/* confdefs.h.  */
5290_ACEOF
5291cat confdefs.h >>conftest.$ac_ext
5292cat >>conftest.$ac_ext <<_ACEOF
5293/* end confdefs.h.  */
5294#include <string.h>
5295
5296_ACEOF
5297if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5298  $EGREP "memchr" >/dev/null 2>&1; then
5299  :
5300else
5301  ac_cv_header_stdc=no
5302fi
5303rm -f conftest*
5304
5305fi
5306
5307if test $ac_cv_header_stdc = yes; then
5308  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5309  cat >conftest.$ac_ext <<_ACEOF
5310/* confdefs.h.  */
5311_ACEOF
5312cat confdefs.h >>conftest.$ac_ext
5313cat >>conftest.$ac_ext <<_ACEOF
5314/* end confdefs.h.  */
5315#include <stdlib.h>
5316
5317_ACEOF
5318if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5319  $EGREP "free" >/dev/null 2>&1; then
5320  :
5321else
5322  ac_cv_header_stdc=no
5323fi
5324rm -f conftest*
5325
5326fi
5327
5328if test $ac_cv_header_stdc = yes; then
5329  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5330  if test "$cross_compiling" = yes; then
5331  :
5332else
5333  cat >conftest.$ac_ext <<_ACEOF
5334/* confdefs.h.  */
5335_ACEOF
5336cat confdefs.h >>conftest.$ac_ext
5337cat >>conftest.$ac_ext <<_ACEOF
5338/* end confdefs.h.  */
5339#include <ctype.h>
5340#include <stdlib.h>
5341#if ((' ' & 0x0FF) == 0x020)
5342# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5343# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5344#else
5345# define ISLOWER(c) \
5346		   (('a' <= (c) && (c) <= 'i') \
5347		     || ('j' <= (c) && (c) <= 'r') \
5348		     || ('s' <= (c) && (c) <= 'z'))
5349# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5350#endif
5351
5352#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5353int
5354main ()
5355{
5356  int i;
5357  for (i = 0; i < 256; i++)
5358    if (XOR (islower (i), ISLOWER (i))
5359	|| toupper (i) != TOUPPER (i))
5360      return 2;
5361  return 0;
5362}
5363_ACEOF
5364rm -f conftest$ac_exeext
5365if { (ac_try="$ac_link"
5366case "(($ac_try" in
5367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5368  *) ac_try_echo=$ac_try;;
5369esac
5370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5371  (eval "$ac_link") 2>&5
5372  ac_status=$?
5373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5375  { (case "(($ac_try" in
5376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377  *) ac_try_echo=$ac_try;;
5378esac
5379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5380  (eval "$ac_try") 2>&5
5381  ac_status=$?
5382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383  (exit $ac_status); }; }; then
5384  :
5385else
5386  echo "$as_me: program exited with status $ac_status" >&5
5387echo "$as_me: failed program was:" >&5
5388sed 's/^/| /' conftest.$ac_ext >&5
5389
5390( exit $ac_status )
5391ac_cv_header_stdc=no
5392fi
5393rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5394fi
5395
5396
5397fi
5398fi
5399{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5400echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5401if test $ac_cv_header_stdc = yes; then
5402
5403cat >>confdefs.h <<\_ACEOF
5404#define STDC_HEADERS 1
5405_ACEOF
5406
5407fi
5408
5409# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5420		  inttypes.h stdint.h unistd.h
5421do
5422as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5423{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5424echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5425if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5426  echo $ECHO_N "(cached) $ECHO_C" >&6
5427else
5428  cat >conftest.$ac_ext <<_ACEOF
5429/* confdefs.h.  */
5430_ACEOF
5431cat confdefs.h >>conftest.$ac_ext
5432cat >>conftest.$ac_ext <<_ACEOF
5433/* end confdefs.h.  */
5434$ac_includes_default
5435
5436#include <$ac_header>
5437_ACEOF
5438rm -f conftest.$ac_objext
5439if { (ac_try="$ac_compile"
5440case "(($ac_try" in
5441  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5442  *) ac_try_echo=$ac_try;;
5443esac
5444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5445  (eval "$ac_compile") 2>conftest.er1
5446  ac_status=$?
5447  grep -v '^ *+' conftest.er1 >conftest.err
5448  rm -f conftest.er1
5449  cat conftest.err >&5
5450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451  (exit $ac_status); } &&
5452	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5453  { (case "(($ac_try" in
5454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5455  *) ac_try_echo=$ac_try;;
5456esac
5457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5458  (eval "$ac_try") 2>&5
5459  ac_status=$?
5460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461  (exit $ac_status); }; } &&
5462	 { ac_try='test -s conftest.$ac_objext'
5463  { (case "(($ac_try" in
5464  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5465  *) ac_try_echo=$ac_try;;
5466esac
5467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5468  (eval "$ac_try") 2>&5
5469  ac_status=$?
5470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471  (exit $ac_status); }; }; then
5472  eval "$as_ac_Header=yes"
5473else
5474  echo "$as_me: failed program was:" >&5
5475sed 's/^/| /' conftest.$ac_ext >&5
5476
5477	eval "$as_ac_Header=no"
5478fi
5479
5480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5481fi
5482ac_res=`eval echo '${'$as_ac_Header'}'`
5483	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5484echo "${ECHO_T}$ac_res" >&6; }
5485if test `eval echo '${'$as_ac_Header'}'` = yes; then
5486  cat >>confdefs.h <<_ACEOF
5487#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5488_ACEOF
5489
5490fi
5491
5492done
5493
5494
5495
5496for ac_header in dlfcn.h
5497do
5498as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5499if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5500  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5501echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5502if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5503  echo $ECHO_N "(cached) $ECHO_C" >&6
5504fi
5505ac_res=`eval echo '${'$as_ac_Header'}'`
5506	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5507echo "${ECHO_T}$ac_res" >&6; }
5508else
5509  # Is the header compilable?
5510{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5511echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5512cat >conftest.$ac_ext <<_ACEOF
5513/* confdefs.h.  */
5514_ACEOF
5515cat confdefs.h >>conftest.$ac_ext
5516cat >>conftest.$ac_ext <<_ACEOF
5517/* end confdefs.h.  */
5518$ac_includes_default
5519#include <$ac_header>
5520_ACEOF
5521rm -f conftest.$ac_objext
5522if { (ac_try="$ac_compile"
5523case "(($ac_try" in
5524  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5525  *) ac_try_echo=$ac_try;;
5526esac
5527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5528  (eval "$ac_compile") 2>conftest.er1
5529  ac_status=$?
5530  grep -v '^ *+' conftest.er1 >conftest.err
5531  rm -f conftest.er1
5532  cat conftest.err >&5
5533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534  (exit $ac_status); } &&
5535	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5536  { (case "(($ac_try" in
5537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5538  *) ac_try_echo=$ac_try;;
5539esac
5540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5541  (eval "$ac_try") 2>&5
5542  ac_status=$?
5543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544  (exit $ac_status); }; } &&
5545	 { ac_try='test -s conftest.$ac_objext'
5546  { (case "(($ac_try" in
5547  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5548  *) ac_try_echo=$ac_try;;
5549esac
5550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5551  (eval "$ac_try") 2>&5
5552  ac_status=$?
5553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554  (exit $ac_status); }; }; then
5555  ac_header_compiler=yes
5556else
5557  echo "$as_me: failed program was:" >&5
5558sed 's/^/| /' conftest.$ac_ext >&5
5559
5560	ac_header_compiler=no
5561fi
5562
5563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5564{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5565echo "${ECHO_T}$ac_header_compiler" >&6; }
5566
5567# Is the header present?
5568{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5569echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5570cat >conftest.$ac_ext <<_ACEOF
5571/* confdefs.h.  */
5572_ACEOF
5573cat confdefs.h >>conftest.$ac_ext
5574cat >>conftest.$ac_ext <<_ACEOF
5575/* end confdefs.h.  */
5576#include <$ac_header>
5577_ACEOF
5578if { (ac_try="$ac_cpp conftest.$ac_ext"
5579case "(($ac_try" in
5580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5581  *) ac_try_echo=$ac_try;;
5582esac
5583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5584  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5585  ac_status=$?
5586  grep -v '^ *+' conftest.er1 >conftest.err
5587  rm -f conftest.er1
5588  cat conftest.err >&5
5589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590  (exit $ac_status); } >/dev/null; then
5591  if test -s conftest.err; then
5592    ac_cpp_err=$ac_c_preproc_warn_flag
5593    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5594  else
5595    ac_cpp_err=
5596  fi
5597else
5598  ac_cpp_err=yes
5599fi
5600if test -z "$ac_cpp_err"; then
5601  ac_header_preproc=yes
5602else
5603  echo "$as_me: failed program was:" >&5
5604sed 's/^/| /' conftest.$ac_ext >&5
5605
5606  ac_header_preproc=no
5607fi
5608
5609rm -f conftest.err conftest.$ac_ext
5610{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5611echo "${ECHO_T}$ac_header_preproc" >&6; }
5612
5613# So?  What about this header?
5614case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5615  yes:no: )
5616    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5617echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5618    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5619echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5620    ac_header_preproc=yes
5621    ;;
5622  no:yes:* )
5623    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5624echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5625    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5626echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5627    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5628echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5629    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5630echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5631    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5632echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5633    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5634echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5635
5636    ;;
5637esac
5638{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5639echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5640if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5641  echo $ECHO_N "(cached) $ECHO_C" >&6
5642else
5643  eval "$as_ac_Header=\$ac_header_preproc"
5644fi
5645ac_res=`eval echo '${'$as_ac_Header'}'`
5646	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5647echo "${ECHO_T}$ac_res" >&6; }
5648
5649fi
5650if test `eval echo '${'$as_ac_Header'}'` = yes; then
5651  cat >>confdefs.h <<_ACEOF
5652#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5653_ACEOF
5654
5655fi
5656
5657done
5658
5659ac_ext=cpp
5660ac_cpp='$CXXCPP $CPPFLAGS'
5661ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5662ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5663ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5664if test -z "$CXX"; then
5665  if test -n "$CCC"; then
5666    CXX=$CCC
5667  else
5668    if test -n "$ac_tool_prefix"; then
5669  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5670  do
5671    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5672set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5673{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5675if test "${ac_cv_prog_CXX+set}" = set; then
5676  echo $ECHO_N "(cached) $ECHO_C" >&6
5677else
5678  if test -n "$CXX"; then
5679  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5680else
5681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682for as_dir in $PATH
5683do
5684  IFS=$as_save_IFS
5685  test -z "$as_dir" && as_dir=.
5686  for ac_exec_ext in '' $ac_executable_extensions; do
5687  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5688    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5689    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5690    break 2
5691  fi
5692done
5693done
5694IFS=$as_save_IFS
5695
5696fi
5697fi
5698CXX=$ac_cv_prog_CXX
5699if test -n "$CXX"; then
5700  { echo "$as_me:$LINENO: result: $CXX" >&5
5701echo "${ECHO_T}$CXX" >&6; }
5702else
5703  { echo "$as_me:$LINENO: result: no" >&5
5704echo "${ECHO_T}no" >&6; }
5705fi
5706
5707
5708    test -n "$CXX" && break
5709  done
5710fi
5711if test -z "$CXX"; then
5712  ac_ct_CXX=$CXX
5713  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5714do
5715  # Extract the first word of "$ac_prog", so it can be a program name with args.
5716set dummy $ac_prog; ac_word=$2
5717{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5719if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5720  echo $ECHO_N "(cached) $ECHO_C" >&6
5721else
5722  if test -n "$ac_ct_CXX"; then
5723  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5724else
5725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726for as_dir in $PATH
5727do
5728  IFS=$as_save_IFS
5729  test -z "$as_dir" && as_dir=.
5730  for ac_exec_ext in '' $ac_executable_extensions; do
5731  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5732    ac_cv_prog_ac_ct_CXX="$ac_prog"
5733    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5734    break 2
5735  fi
5736done
5737done
5738IFS=$as_save_IFS
5739
5740fi
5741fi
5742ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5743if test -n "$ac_ct_CXX"; then
5744  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5745echo "${ECHO_T}$ac_ct_CXX" >&6; }
5746else
5747  { echo "$as_me:$LINENO: result: no" >&5
5748echo "${ECHO_T}no" >&6; }
5749fi
5750
5751
5752  test -n "$ac_ct_CXX" && break
5753done
5754
5755  if test "x$ac_ct_CXX" = x; then
5756    CXX="g++"
5757  else
5758    case $cross_compiling:$ac_tool_warned in
5759yes:)
5760{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5761whose name does not start with the host triplet.  If you think this
5762configuration is useful to you, please write to autoconf@gnu.org." >&5
5763echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5764whose name does not start with the host triplet.  If you think this
5765configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5766ac_tool_warned=yes ;;
5767esac
5768    CXX=$ac_ct_CXX
5769  fi
5770fi
5771
5772  fi
5773fi
5774# Provide some information about the compiler.
5775echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5776ac_compiler=`set X $ac_compile; echo $2`
5777{ (ac_try="$ac_compiler --version >&5"
5778case "(($ac_try" in
5779  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5780  *) ac_try_echo=$ac_try;;
5781esac
5782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5783  (eval "$ac_compiler --version >&5") 2>&5
5784  ac_status=$?
5785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786  (exit $ac_status); }
5787{ (ac_try="$ac_compiler -v >&5"
5788case "(($ac_try" in
5789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5790  *) ac_try_echo=$ac_try;;
5791esac
5792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5793  (eval "$ac_compiler -v >&5") 2>&5
5794  ac_status=$?
5795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796  (exit $ac_status); }
5797{ (ac_try="$ac_compiler -V >&5"
5798case "(($ac_try" in
5799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5800  *) ac_try_echo=$ac_try;;
5801esac
5802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5803  (eval "$ac_compiler -V >&5") 2>&5
5804  ac_status=$?
5805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806  (exit $ac_status); }
5807
5808{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5809echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5810if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5811  echo $ECHO_N "(cached) $ECHO_C" >&6
5812else
5813  cat >conftest.$ac_ext <<_ACEOF
5814/* confdefs.h.  */
5815_ACEOF
5816cat confdefs.h >>conftest.$ac_ext
5817cat >>conftest.$ac_ext <<_ACEOF
5818/* end confdefs.h.  */
5819
5820int
5821main ()
5822{
5823#ifndef __GNUC__
5824       choke me
5825#endif
5826
5827  ;
5828  return 0;
5829}
5830_ACEOF
5831rm -f conftest.$ac_objext
5832if { (ac_try="$ac_compile"
5833case "(($ac_try" in
5834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5835  *) ac_try_echo=$ac_try;;
5836esac
5837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5838  (eval "$ac_compile") 2>conftest.er1
5839  ac_status=$?
5840  grep -v '^ *+' conftest.er1 >conftest.err
5841  rm -f conftest.er1
5842  cat conftest.err >&5
5843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844  (exit $ac_status); } &&
5845	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5846  { (case "(($ac_try" in
5847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5848  *) ac_try_echo=$ac_try;;
5849esac
5850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5851  (eval "$ac_try") 2>&5
5852  ac_status=$?
5853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854  (exit $ac_status); }; } &&
5855	 { ac_try='test -s conftest.$ac_objext'
5856  { (case "(($ac_try" in
5857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5858  *) ac_try_echo=$ac_try;;
5859esac
5860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5861  (eval "$ac_try") 2>&5
5862  ac_status=$?
5863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864  (exit $ac_status); }; }; then
5865  ac_compiler_gnu=yes
5866else
5867  echo "$as_me: failed program was:" >&5
5868sed 's/^/| /' conftest.$ac_ext >&5
5869
5870	ac_compiler_gnu=no
5871fi
5872
5873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5874ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5875
5876fi
5877{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5878echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5879GXX=`test $ac_compiler_gnu = yes && echo yes`
5880ac_test_CXXFLAGS=${CXXFLAGS+set}
5881ac_save_CXXFLAGS=$CXXFLAGS
5882{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5883echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5884if test "${ac_cv_prog_cxx_g+set}" = set; then
5885  echo $ECHO_N "(cached) $ECHO_C" >&6
5886else
5887  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5888   ac_cxx_werror_flag=yes
5889   ac_cv_prog_cxx_g=no
5890   CXXFLAGS="-g"
5891   cat >conftest.$ac_ext <<_ACEOF
5892/* confdefs.h.  */
5893_ACEOF
5894cat confdefs.h >>conftest.$ac_ext
5895cat >>conftest.$ac_ext <<_ACEOF
5896/* end confdefs.h.  */
5897
5898int
5899main ()
5900{
5901
5902  ;
5903  return 0;
5904}
5905_ACEOF
5906rm -f conftest.$ac_objext
5907if { (ac_try="$ac_compile"
5908case "(($ac_try" in
5909  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5910  *) ac_try_echo=$ac_try;;
5911esac
5912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5913  (eval "$ac_compile") 2>conftest.er1
5914  ac_status=$?
5915  grep -v '^ *+' conftest.er1 >conftest.err
5916  rm -f conftest.er1
5917  cat conftest.err >&5
5918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919  (exit $ac_status); } &&
5920	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5921  { (case "(($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_try") 2>&5
5927  ac_status=$?
5928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929  (exit $ac_status); }; } &&
5930	 { ac_try='test -s conftest.$ac_objext'
5931  { (case "(($ac_try" in
5932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5933  *) ac_try_echo=$ac_try;;
5934esac
5935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5936  (eval "$ac_try") 2>&5
5937  ac_status=$?
5938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939  (exit $ac_status); }; }; then
5940  ac_cv_prog_cxx_g=yes
5941else
5942  echo "$as_me: failed program was:" >&5
5943sed 's/^/| /' conftest.$ac_ext >&5
5944
5945	CXXFLAGS=""
5946      cat >conftest.$ac_ext <<_ACEOF
5947/* confdefs.h.  */
5948_ACEOF
5949cat confdefs.h >>conftest.$ac_ext
5950cat >>conftest.$ac_ext <<_ACEOF
5951/* end confdefs.h.  */
5952
5953int
5954main ()
5955{
5956
5957  ;
5958  return 0;
5959}
5960_ACEOF
5961rm -f conftest.$ac_objext
5962if { (ac_try="$ac_compile"
5963case "(($ac_try" in
5964  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5965  *) ac_try_echo=$ac_try;;
5966esac
5967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5968  (eval "$ac_compile") 2>conftest.er1
5969  ac_status=$?
5970  grep -v '^ *+' conftest.er1 >conftest.err
5971  rm -f conftest.er1
5972  cat conftest.err >&5
5973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974  (exit $ac_status); } &&
5975	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5976  { (case "(($ac_try" in
5977  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978  *) ac_try_echo=$ac_try;;
5979esac
5980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5981  (eval "$ac_try") 2>&5
5982  ac_status=$?
5983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984  (exit $ac_status); }; } &&
5985	 { ac_try='test -s conftest.$ac_objext'
5986  { (case "(($ac_try" in
5987  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5988  *) ac_try_echo=$ac_try;;
5989esac
5990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5991  (eval "$ac_try") 2>&5
5992  ac_status=$?
5993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994  (exit $ac_status); }; }; then
5995  :
5996else
5997  echo "$as_me: failed program was:" >&5
5998sed 's/^/| /' conftest.$ac_ext >&5
5999
6000	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6001	 CXXFLAGS="-g"
6002	 cat >conftest.$ac_ext <<_ACEOF
6003/* confdefs.h.  */
6004_ACEOF
6005cat confdefs.h >>conftest.$ac_ext
6006cat >>conftest.$ac_ext <<_ACEOF
6007/* end confdefs.h.  */
6008
6009int
6010main ()
6011{
6012
6013  ;
6014  return 0;
6015}
6016_ACEOF
6017rm -f conftest.$ac_objext
6018if { (ac_try="$ac_compile"
6019case "(($ac_try" in
6020  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6021  *) ac_try_echo=$ac_try;;
6022esac
6023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6024  (eval "$ac_compile") 2>conftest.er1
6025  ac_status=$?
6026  grep -v '^ *+' conftest.er1 >conftest.err
6027  rm -f conftest.er1
6028  cat conftest.err >&5
6029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030  (exit $ac_status); } &&
6031	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6032  { (case "(($ac_try" in
6033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6034  *) ac_try_echo=$ac_try;;
6035esac
6036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6037  (eval "$ac_try") 2>&5
6038  ac_status=$?
6039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040  (exit $ac_status); }; } &&
6041	 { ac_try='test -s conftest.$ac_objext'
6042  { (case "(($ac_try" in
6043  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6044  *) ac_try_echo=$ac_try;;
6045esac
6046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6047  (eval "$ac_try") 2>&5
6048  ac_status=$?
6049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050  (exit $ac_status); }; }; then
6051  ac_cv_prog_cxx_g=yes
6052else
6053  echo "$as_me: failed program was:" >&5
6054sed 's/^/| /' conftest.$ac_ext >&5
6055
6056
6057fi
6058
6059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6060fi
6061
6062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6063fi
6064
6065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6066   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6067fi
6068{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6069echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6070if test "$ac_test_CXXFLAGS" = set; then
6071  CXXFLAGS=$ac_save_CXXFLAGS
6072elif test $ac_cv_prog_cxx_g = yes; then
6073  if test "$GXX" = yes; then
6074    CXXFLAGS="-g -O2"
6075  else
6076    CXXFLAGS="-g"
6077  fi
6078else
6079  if test "$GXX" = yes; then
6080    CXXFLAGS="-O2"
6081  else
6082    CXXFLAGS=
6083  fi
6084fi
6085ac_ext=cpp
6086ac_cpp='$CXXCPP $CPPFLAGS'
6087ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6088ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6089ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6090
6091depcc="$CXX"  am_compiler_list=
6092
6093{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6094echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6095if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6096  echo $ECHO_N "(cached) $ECHO_C" >&6
6097else
6098  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6099  # We make a subdir and do the tests there.  Otherwise we can end up
6100  # making bogus files that we don't know about and never remove.  For
6101  # instance it was reported that on HP-UX the gcc test will end up
6102  # making a dummy file named `D' -- because `-MD' means `put the output
6103  # in D'.
6104  mkdir conftest.dir
6105  # Copy depcomp to subdir because otherwise we won't find it if we're
6106  # using a relative directory.
6107  cp "$am_depcomp" conftest.dir
6108  cd conftest.dir
6109  # We will build objects and dependencies in a subdirectory because
6110  # it helps to detect inapplicable dependency modes.  For instance
6111  # both Tru64's cc and ICC support -MD to output dependencies as a
6112  # side effect of compilation, but ICC will put the dependencies in
6113  # the current directory while Tru64 will put them in the object
6114  # directory.
6115  mkdir sub
6116
6117  am_cv_CXX_dependencies_compiler_type=none
6118  if test "$am_compiler_list" = ""; then
6119     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6120  fi
6121  for depmode in $am_compiler_list; do
6122    # Setup a source with many dependencies, because some compilers
6123    # like to wrap large dependency lists on column 80 (with \), and
6124    # we should not choose a depcomp mode which is confused by this.
6125    #
6126    # We need to recreate these files for each test, as the compiler may
6127    # overwrite some of them when testing with obscure command lines.
6128    # This happens at least with the AIX C compiler.
6129    : > sub/conftest.c
6130    for i in 1 2 3 4 5 6; do
6131      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6132      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6133      # Solaris 8's {/usr,}/bin/sh.
6134      touch sub/conftst$i.h
6135    done
6136    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6137
6138    case $depmode in
6139    nosideeffect)
6140      # after this tag, mechanisms are not by side-effect, so they'll
6141      # only be used when explicitly requested
6142      if test "x$enable_dependency_tracking" = xyes; then
6143	continue
6144      else
6145	break
6146      fi
6147      ;;
6148    none) break ;;
6149    esac
6150    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6151    # mode.  It turns out that the SunPro C++ compiler does not properly
6152    # handle `-M -o', and we need to detect this.
6153    if depmode=$depmode \
6154       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6155       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6156       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6157         >/dev/null 2>conftest.err &&
6158       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6159       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6160       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6161      # icc doesn't choke on unknown options, it will just issue warnings
6162      # or remarks (even with -Werror).  So we grep stderr for any message
6163      # that says an option was ignored or not supported.
6164      # When given -MP, icc 7.0 and 7.1 complain thusly:
6165      #   icc: Command line warning: ignoring option '-M'; no argument required
6166      # The diagnosis changed in icc 8.0:
6167      #   icc: Command line remark: option '-MP' not supported
6168      if (grep 'ignoring option' conftest.err ||
6169          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6170        am_cv_CXX_dependencies_compiler_type=$depmode
6171        break
6172      fi
6173    fi
6174  done
6175
6176  cd ..
6177  rm -rf conftest.dir
6178else
6179  am_cv_CXX_dependencies_compiler_type=none
6180fi
6181
6182fi
6183{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6184echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6185CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6186
6187
6188
6189if
6190  test "x$enable_dependency_tracking" != xno \
6191  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6192  am__fastdepCXX_TRUE=
6193  am__fastdepCXX_FALSE='#'
6194else
6195  am__fastdepCXX_TRUE='#'
6196  am__fastdepCXX_FALSE=
6197fi
6198
6199
6200
6201
6202
6203if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6204    test x"$CXX" != x"false" &&
6205    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6206    (test "X$CXX" != "Xg++"))) ; then
6207  ac_ext=cpp
6208ac_cpp='$CXXCPP $CPPFLAGS'
6209ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6210ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6211ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6212{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6213echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6214if test -z "$CXXCPP"; then
6215  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6216  echo $ECHO_N "(cached) $ECHO_C" >&6
6217else
6218      # Double quotes because CXXCPP needs to be expanded
6219    for CXXCPP in "$CXX -E" "$CC -E" "/usr/libexec/cpp" "/lib/cpp"
6220    do
6221      ac_preproc_ok=false
6222for ac_cxx_preproc_warn_flag in '' yes
6223do
6224  # Use a header file that comes with gcc, so configuring glibc
6225  # with a fresh cross-compiler works.
6226  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6227  # <limits.h> exists even on freestanding compilers.
6228  # On the NeXT, cc -E runs the code through the compiler's parser,
6229  # not just through cpp. "Syntax error" is here to catch this case.
6230  cat >conftest.$ac_ext <<_ACEOF
6231/* confdefs.h.  */
6232_ACEOF
6233cat confdefs.h >>conftest.$ac_ext
6234cat >>conftest.$ac_ext <<_ACEOF
6235/* end confdefs.h.  */
6236#ifdef __STDC__
6237# include <limits.h>
6238#else
6239# include <assert.h>
6240#endif
6241		     Syntax error
6242_ACEOF
6243if { (ac_try="$ac_cpp conftest.$ac_ext"
6244case "(($ac_try" in
6245  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6246  *) ac_try_echo=$ac_try;;
6247esac
6248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6249  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6250  ac_status=$?
6251  grep -v '^ *+' conftest.er1 >conftest.err
6252  rm -f conftest.er1
6253  cat conftest.err >&5
6254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255  (exit $ac_status); } >/dev/null; then
6256  if test -s conftest.err; then
6257    ac_cpp_err=$ac_cxx_preproc_warn_flag
6258    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6259  else
6260    ac_cpp_err=
6261  fi
6262else
6263  ac_cpp_err=yes
6264fi
6265if test -z "$ac_cpp_err"; then
6266  :
6267else
6268  echo "$as_me: failed program was:" >&5
6269sed 's/^/| /' conftest.$ac_ext >&5
6270
6271  # Broken: fails on valid input.
6272continue
6273fi
6274
6275rm -f conftest.err conftest.$ac_ext
6276
6277  # OK, works on sane cases.  Now check whether nonexistent headers
6278  # can be detected and how.
6279  cat >conftest.$ac_ext <<_ACEOF
6280/* confdefs.h.  */
6281_ACEOF
6282cat confdefs.h >>conftest.$ac_ext
6283cat >>conftest.$ac_ext <<_ACEOF
6284/* end confdefs.h.  */
6285#include <ac_nonexistent.h>
6286_ACEOF
6287if { (ac_try="$ac_cpp conftest.$ac_ext"
6288case "(($ac_try" in
6289  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6290  *) ac_try_echo=$ac_try;;
6291esac
6292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6293  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6294  ac_status=$?
6295  grep -v '^ *+' conftest.er1 >conftest.err
6296  rm -f conftest.er1
6297  cat conftest.err >&5
6298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299  (exit $ac_status); } >/dev/null; then
6300  if test -s conftest.err; then
6301    ac_cpp_err=$ac_cxx_preproc_warn_flag
6302    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6303  else
6304    ac_cpp_err=
6305  fi
6306else
6307  ac_cpp_err=yes
6308fi
6309if test -z "$ac_cpp_err"; then
6310  # Broken: success on invalid input.
6311continue
6312else
6313  echo "$as_me: failed program was:" >&5
6314sed 's/^/| /' conftest.$ac_ext >&5
6315
6316  # Passes both tests.
6317ac_preproc_ok=:
6318break
6319fi
6320
6321rm -f conftest.err conftest.$ac_ext
6322
6323done
6324# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6325rm -f conftest.err conftest.$ac_ext
6326if $ac_preproc_ok; then
6327  break
6328fi
6329
6330    done
6331    ac_cv_prog_CXXCPP=$CXXCPP
6332
6333fi
6334  CXXCPP=$ac_cv_prog_CXXCPP
6335else
6336  ac_cv_prog_CXXCPP=$CXXCPP
6337fi
6338{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6339echo "${ECHO_T}$CXXCPP" >&6; }
6340ac_preproc_ok=false
6341for ac_cxx_preproc_warn_flag in '' yes
6342do
6343  # Use a header file that comes with gcc, so configuring glibc
6344  # with a fresh cross-compiler works.
6345  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6346  # <limits.h> exists even on freestanding compilers.
6347  # On the NeXT, cc -E runs the code through the compiler's parser,
6348  # not just through cpp. "Syntax error" is here to catch this case.
6349  cat >conftest.$ac_ext <<_ACEOF
6350/* confdefs.h.  */
6351_ACEOF
6352cat confdefs.h >>conftest.$ac_ext
6353cat >>conftest.$ac_ext <<_ACEOF
6354/* end confdefs.h.  */
6355#ifdef __STDC__
6356# include <limits.h>
6357#else
6358# include <assert.h>
6359#endif
6360		     Syntax error
6361_ACEOF
6362if { (ac_try="$ac_cpp conftest.$ac_ext"
6363case "(($ac_try" in
6364  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6365  *) ac_try_echo=$ac_try;;
6366esac
6367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6368  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6369  ac_status=$?
6370  grep -v '^ *+' conftest.er1 >conftest.err
6371  rm -f conftest.er1
6372  cat conftest.err >&5
6373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374  (exit $ac_status); } >/dev/null; then
6375  if test -s conftest.err; then
6376    ac_cpp_err=$ac_cxx_preproc_warn_flag
6377    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6378  else
6379    ac_cpp_err=
6380  fi
6381else
6382  ac_cpp_err=yes
6383fi
6384if test -z "$ac_cpp_err"; then
6385  :
6386else
6387  echo "$as_me: failed program was:" >&5
6388sed 's/^/| /' conftest.$ac_ext >&5
6389
6390  # Broken: fails on valid input.
6391continue
6392fi
6393
6394rm -f conftest.err conftest.$ac_ext
6395
6396  # OK, works on sane cases.  Now check whether nonexistent headers
6397  # can be detected and how.
6398  cat >conftest.$ac_ext <<_ACEOF
6399/* confdefs.h.  */
6400_ACEOF
6401cat confdefs.h >>conftest.$ac_ext
6402cat >>conftest.$ac_ext <<_ACEOF
6403/* end confdefs.h.  */
6404#include <ac_nonexistent.h>
6405_ACEOF
6406if { (ac_try="$ac_cpp conftest.$ac_ext"
6407case "(($ac_try" in
6408  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6409  *) ac_try_echo=$ac_try;;
6410esac
6411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6412  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6413  ac_status=$?
6414  grep -v '^ *+' conftest.er1 >conftest.err
6415  rm -f conftest.er1
6416  cat conftest.err >&5
6417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418  (exit $ac_status); } >/dev/null; then
6419  if test -s conftest.err; then
6420    ac_cpp_err=$ac_cxx_preproc_warn_flag
6421    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6422  else
6423    ac_cpp_err=
6424  fi
6425else
6426  ac_cpp_err=yes
6427fi
6428if test -z "$ac_cpp_err"; then
6429  # Broken: success on invalid input.
6430continue
6431else
6432  echo "$as_me: failed program was:" >&5
6433sed 's/^/| /' conftest.$ac_ext >&5
6434
6435  # Passes both tests.
6436ac_preproc_ok=:
6437break
6438fi
6439
6440rm -f conftest.err conftest.$ac_ext
6441
6442done
6443# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6444rm -f conftest.err conftest.$ac_ext
6445if $ac_preproc_ok; then
6446  :
6447else
6448  { echo "$as_me:$LINENO: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
6449echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
6450fi
6451
6452ac_ext=c
6453ac_cpp='$CPP $CPPFLAGS'
6454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6456ac_compiler_gnu=$ac_cv_c_compiler_gnu
6457
6458fi
6459
6460ac_ext=f
6461ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6462ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6463ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6464if test -n "$ac_tool_prefix"; then
6465  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
6466  do
6467    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6468set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6469{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6471if test "${ac_cv_prog_F77+set}" = set; then
6472  echo $ECHO_N "(cached) $ECHO_C" >&6
6473else
6474  if test -n "$F77"; then
6475  ac_cv_prog_F77="$F77" # Let the user override the test.
6476else
6477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478for as_dir in $PATH
6479do
6480  IFS=$as_save_IFS
6481  test -z "$as_dir" && as_dir=.
6482  for ac_exec_ext in '' $ac_executable_extensions; do
6483  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6484    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6485    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6486    break 2
6487  fi
6488done
6489done
6490IFS=$as_save_IFS
6491
6492fi
6493fi
6494F77=$ac_cv_prog_F77
6495if test -n "$F77"; then
6496  { echo "$as_me:$LINENO: result: $F77" >&5
6497echo "${ECHO_T}$F77" >&6; }
6498else
6499  { echo "$as_me:$LINENO: result: no" >&5
6500echo "${ECHO_T}no" >&6; }
6501fi
6502
6503
6504    test -n "$F77" && break
6505  done
6506fi
6507if test -z "$F77"; then
6508  ac_ct_F77=$F77
6509  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
6510do
6511  # Extract the first word of "$ac_prog", so it can be a program name with args.
6512set dummy $ac_prog; ac_word=$2
6513{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6515if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6516  echo $ECHO_N "(cached) $ECHO_C" >&6
6517else
6518  if test -n "$ac_ct_F77"; then
6519  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6520else
6521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522for as_dir in $PATH
6523do
6524  IFS=$as_save_IFS
6525  test -z "$as_dir" && as_dir=.
6526  for ac_exec_ext in '' $ac_executable_extensions; do
6527  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6528    ac_cv_prog_ac_ct_F77="$ac_prog"
6529    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6530    break 2
6531  fi
6532done
6533done
6534IFS=$as_save_IFS
6535
6536fi
6537fi
6538ac_ct_F77=$ac_cv_prog_ac_ct_F77
6539if test -n "$ac_ct_F77"; then
6540  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6541echo "${ECHO_T}$ac_ct_F77" >&6; }
6542else
6543  { echo "$as_me:$LINENO: result: no" >&5
6544echo "${ECHO_T}no" >&6; }
6545fi
6546
6547
6548  test -n "$ac_ct_F77" && break
6549done
6550
6551  if test "x$ac_ct_F77" = x; then
6552    F77=""
6553  else
6554    case $cross_compiling:$ac_tool_warned in
6555yes:)
6556{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6557whose name does not start with the host triplet.  If you think this
6558configuration is useful to you, please write to autoconf@gnu.org." >&5
6559echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6560whose name does not start with the host triplet.  If you think this
6561configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6562ac_tool_warned=yes ;;
6563esac
6564    F77=$ac_ct_F77
6565  fi
6566fi
6567
6568
6569# Provide some information about the compiler.
6570echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6571ac_compiler=`set X $ac_compile; echo $2`
6572{ (ac_try="$ac_compiler --version >&5"
6573case "(($ac_try" in
6574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6575  *) ac_try_echo=$ac_try;;
6576esac
6577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6578  (eval "$ac_compiler --version >&5") 2>&5
6579  ac_status=$?
6580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581  (exit $ac_status); }
6582{ (ac_try="$ac_compiler -v >&5"
6583case "(($ac_try" in
6584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6585  *) ac_try_echo=$ac_try;;
6586esac
6587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6588  (eval "$ac_compiler -v >&5") 2>&5
6589  ac_status=$?
6590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591  (exit $ac_status); }
6592{ (ac_try="$ac_compiler -V >&5"
6593case "(($ac_try" in
6594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6595  *) ac_try_echo=$ac_try;;
6596esac
6597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6598  (eval "$ac_compiler -V >&5") 2>&5
6599  ac_status=$?
6600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601  (exit $ac_status); }
6602rm -f a.out
6603
6604# If we don't use `.F' as extension, the preprocessor is not run on the
6605# input file.  (Note that this only needs to work for GNU compilers.)
6606ac_save_ext=$ac_ext
6607ac_ext=F
6608{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6609echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6610if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6611  echo $ECHO_N "(cached) $ECHO_C" >&6
6612else
6613  cat >conftest.$ac_ext <<_ACEOF
6614      program main
6615#ifndef __GNUC__
6616       choke me
6617#endif
6618
6619      end
6620_ACEOF
6621rm -f conftest.$ac_objext
6622if { (ac_try="$ac_compile"
6623case "(($ac_try" in
6624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6625  *) ac_try_echo=$ac_try;;
6626esac
6627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6628  (eval "$ac_compile") 2>conftest.er1
6629  ac_status=$?
6630  grep -v '^ *+' conftest.er1 >conftest.err
6631  rm -f conftest.er1
6632  cat conftest.err >&5
6633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634  (exit $ac_status); } &&
6635	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6636  { (case "(($ac_try" in
6637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6638  *) ac_try_echo=$ac_try;;
6639esac
6640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6641  (eval "$ac_try") 2>&5
6642  ac_status=$?
6643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644  (exit $ac_status); }; } &&
6645	 { ac_try='test -s conftest.$ac_objext'
6646  { (case "(($ac_try" in
6647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6648  *) ac_try_echo=$ac_try;;
6649esac
6650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6651  (eval "$ac_try") 2>&5
6652  ac_status=$?
6653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654  (exit $ac_status); }; }; then
6655  ac_compiler_gnu=yes
6656else
6657  echo "$as_me: failed program was:" >&5
6658sed 's/^/| /' conftest.$ac_ext >&5
6659
6660	ac_compiler_gnu=no
6661fi
6662
6663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6664ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6665
6666fi
6667{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6668echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6669ac_ext=$ac_save_ext
6670ac_test_FFLAGS=${FFLAGS+set}
6671ac_save_FFLAGS=$FFLAGS
6672FFLAGS=
6673{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6674echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6675if test "${ac_cv_prog_f77_g+set}" = set; then
6676  echo $ECHO_N "(cached) $ECHO_C" >&6
6677else
6678  FFLAGS=-g
6679cat >conftest.$ac_ext <<_ACEOF
6680      program main
6681
6682      end
6683_ACEOF
6684rm -f conftest.$ac_objext
6685if { (ac_try="$ac_compile"
6686case "(($ac_try" in
6687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6688  *) ac_try_echo=$ac_try;;
6689esac
6690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6691  (eval "$ac_compile") 2>conftest.er1
6692  ac_status=$?
6693  grep -v '^ *+' conftest.er1 >conftest.err
6694  rm -f conftest.er1
6695  cat conftest.err >&5
6696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697  (exit $ac_status); } &&
6698	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6699  { (case "(($ac_try" in
6700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6701  *) ac_try_echo=$ac_try;;
6702esac
6703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6704  (eval "$ac_try") 2>&5
6705  ac_status=$?
6706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707  (exit $ac_status); }; } &&
6708	 { ac_try='test -s conftest.$ac_objext'
6709  { (case "(($ac_try" in
6710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6711  *) ac_try_echo=$ac_try;;
6712esac
6713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6714  (eval "$ac_try") 2>&5
6715  ac_status=$?
6716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717  (exit $ac_status); }; }; then
6718  ac_cv_prog_f77_g=yes
6719else
6720  echo "$as_me: failed program was:" >&5
6721sed 's/^/| /' conftest.$ac_ext >&5
6722
6723	ac_cv_prog_f77_g=no
6724fi
6725
6726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6727
6728fi
6729{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6730echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6731if test "$ac_test_FFLAGS" = set; then
6732  FFLAGS=$ac_save_FFLAGS
6733elif test $ac_cv_prog_f77_g = yes; then
6734  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6735    FFLAGS="-g -O2"
6736  else
6737    FFLAGS="-g"
6738  fi
6739else
6740  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6741    FFLAGS="-O2"
6742  else
6743    FFLAGS=
6744  fi
6745fi
6746
6747G77=`test $ac_compiler_gnu = yes && echo yes`
6748ac_ext=c
6749ac_cpp='$CPP $CPPFLAGS'
6750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6752ac_compiler_gnu=$ac_cv_c_compiler_gnu
6753
6754
6755# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6756
6757# find the maximum length of command line arguments
6758{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6759echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6760if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6761  echo $ECHO_N "(cached) $ECHO_C" >&6
6762else
6763    i=0
6764  teststring="ABCD"
6765
6766  case $build_os in
6767  msdosdjgpp*)
6768    # On DJGPP, this test can blow up pretty badly due to problems in libc
6769    # (any single argument exceeding 2000 bytes causes a buffer overrun
6770    # during glob expansion).  Even if it were fixed, the result of this
6771    # check would be larger than it should be.
6772    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6773    ;;
6774
6775  gnu*)
6776    # Under GNU Hurd, this test is not required because there is
6777    # no limit to the length of command line arguments.
6778    # Libtool will interpret -1 as no limit whatsoever
6779    lt_cv_sys_max_cmd_len=-1;
6780    ;;
6781
6782  cygwin* | mingw*)
6783    # On Win9x/ME, this test blows up -- it succeeds, but takes
6784    # about 5 minutes as the teststring grows exponentially.
6785    # Worse, since 9x/ME are not pre-emptively multitasking,
6786    # you end up with a "frozen" computer, even though with patience
6787    # the test eventually succeeds (with a max line length of 256k).
6788    # Instead, let's just punt: use the minimum linelength reported by
6789    # all of the supported platforms: 8192 (on NT/2K/XP).
6790    lt_cv_sys_max_cmd_len=8192;
6791    ;;
6792
6793  amigaos*)
6794    # On AmigaOS with pdksh, this test takes hours, literally.
6795    # So we just punt and use a minimum line length of 8192.
6796    lt_cv_sys_max_cmd_len=8192;
6797    ;;
6798
6799  darwin* | dragonfly* | freebsd* | mirbsd* | netbsd* | openbsd*)
6800    # This has been around since 386BSD, at least.  Likely further.
6801    if test -x /sbin/sysctl; then
6802      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6803    elif test -x /usr/sbin/sysctl; then
6804      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6805    else
6806      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6807    fi
6808    # And add a safety zone
6809    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6810    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6811    ;;
6812
6813  interix*)
6814    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6815    lt_cv_sys_max_cmd_len=196608
6816    ;;
6817
6818  osf*)
6819    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6820    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6821    # nice to cause kernel panics so lets avoid the loop below.
6822    # First set a reasonable default.
6823    lt_cv_sys_max_cmd_len=16384
6824    #
6825    if test -x /sbin/sysconfig; then
6826      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6827	*1*) lt_cv_sys_max_cmd_len=-1 ;;
6828      esac
6829    fi
6830    ;;
6831  sco3.2v5*)
6832    lt_cv_sys_max_cmd_len=102400
6833    ;;
6834  sysv5* | sco5v6* | sysv4.2uw2*)
6835    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6836    if test -n "$kargmax"; then
6837      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6838    else
6839      lt_cv_sys_max_cmd_len=32768
6840    fi
6841    ;;
6842  *)
6843    # If test is not a shell built-in, we'll probably end up computing a
6844    # maximum length that is only half of the actual maximum length, but
6845    # we can't tell.
6846    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6847    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6848	       = "XX$teststring") >/dev/null 2>&1 &&
6849	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
6850	    lt_cv_sys_max_cmd_len=$new_result &&
6851	    test $i != 17 # 1/2 MB should be enough
6852    do
6853      i=`expr $i + 1`
6854      teststring=$teststring$teststring
6855    done
6856    teststring=
6857    # Add a significant safety factor because C++ compilers can tack on massive
6858    # amounts of additional arguments before passing them to the linker.
6859    # It appears as though 1/2 is a usable value.
6860    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6861    ;;
6862  esac
6863
6864fi
6865
6866if test -n $lt_cv_sys_max_cmd_len ; then
6867  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6868echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6869else
6870  { echo "$as_me:$LINENO: result: none" >&5
6871echo "${ECHO_T}none" >&6; }
6872fi
6873
6874
6875
6876
6877# Check for command to grab the raw symbol name followed by C symbol from nm.
6878{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6879echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6880if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6881  echo $ECHO_N "(cached) $ECHO_C" >&6
6882else
6883
6884# These are sane defaults that work on at least a few old systems.
6885# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6886
6887# Character class describing NM global symbol codes.
6888symcode='[BCDEGRST]'
6889
6890# Regexp to match symbols that can be accessed directly from C.
6891sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6892
6893# Transform an extracted symbol line into a proper C declaration
6894lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6895
6896# Transform an extracted symbol line into symbol name and symbol address
6897lt_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'"
6898
6899# Define system-specific variables.
6900case $host_os in
6901aix*)
6902  symcode='[BCDT]'
6903  ;;
6904cygwin* | mingw* | pw32*)
6905  symcode='[ABCDGISTW]'
6906  ;;
6907hpux*) # Its linker distinguishes data from code symbols
6908  if test "$host_cpu" = ia64; then
6909    symcode='[ABCDEGRST]'
6910  fi
6911  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6912  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'"
6913  ;;
6914linux*)
6915  if test "$host_cpu" = ia64; then
6916    symcode='[ABCDGIRSTW]'
6917    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6918    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'"
6919  fi
6920  ;;
6921irix* | nonstopux*)
6922  symcode='[BCDEGRST]'
6923  ;;
6924osf*)
6925  symcode='[BCDEGQRST]'
6926  ;;
6927solaris*)
6928  symcode='[BDRT]'
6929  ;;
6930sco3.2v5*)
6931  symcode='[DT]'
6932  ;;
6933sysv4.2uw2*)
6934  symcode='[DT]'
6935  ;;
6936sysv5* | sco5v6* | unixware* | OpenUNIX*)
6937  symcode='[ABDT]'
6938  ;;
6939sysv4)
6940  symcode='[DFNSTU]'
6941  ;;
6942esac
6943
6944# Handle CRLF in mingw tool chain
6945opt_cr=
6946case $build_os in
6947mingw*)
6948  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6949  ;;
6950esac
6951
6952# If we're using GNU nm, then use its standard symbol codes.
6953case `$NM -V 2>&1` in
6954*GNU* | *'with BFD'*)
6955  symcode='[ABCDGIRSTW]' ;;
6956esac
6957
6958# Try without a prefix undercore, then with it.
6959for ac_symprfx in "" "_"; do
6960
6961  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6962  symxfrm="\\1 $ac_symprfx\\2 \\2"
6963
6964  # Write the raw and C identifiers.
6965  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6966
6967  # Check to see that the pipe works correctly.
6968  pipe_works=no
6969
6970  rm -f conftest*
6971  cat > conftest.$ac_ext <<EOF
6972#ifdef __cplusplus
6973extern "C" {
6974#endif
6975char nm_test_var;
6976void nm_test_func(){}
6977#ifdef __cplusplus
6978}
6979#endif
6980int main(){nm_test_var='a';nm_test_func();return(0);}
6981EOF
6982
6983  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6984  (eval $ac_compile) 2>&5
6985  ac_status=$?
6986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987  (exit $ac_status); }; then
6988    # Now try to grab the symbols.
6989    nlist=conftest.nm
6990    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6991  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6992  ac_status=$?
6993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994  (exit $ac_status); } && test -s "$nlist"; then
6995      # Try sorting and uniquifying the output.
6996      if sort "$nlist" | uniq > "$nlist"T; then
6997	mv -f "$nlist"T "$nlist"
6998      else
6999	rm -f "$nlist"T
7000      fi
7001
7002      # Make sure that we snagged all the symbols we need.
7003      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7004	if grep ' nm_test_func$' "$nlist" >/dev/null; then
7005	  cat <<EOF > conftest.$ac_ext
7006#ifdef __cplusplus
7007extern "C" {
7008#endif
7009
7010EOF
7011	  # Now generate the symbol file.
7012	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7013
7014	  cat <<EOF >> conftest.$ac_ext
7015#if defined (__STDC__) && __STDC__
7016# define lt_ptr_t void *
7017#else
7018# define lt_ptr_t char *
7019# define const
7020#endif
7021
7022/* The mapping between symbol names and symbols. */
7023const struct {
7024  const char *name;
7025  lt_ptr_t address;
7026}
7027lt_preloaded_symbols[] =
7028{
7029EOF
7030	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7031	  cat <<\EOF >> conftest.$ac_ext
7032  {0, (lt_ptr_t) 0}
7033};
7034
7035#ifdef __cplusplus
7036}
7037#endif
7038EOF
7039	  # Now try linking the two files.
7040	  mv conftest.$ac_objext conftstm.$ac_objext
7041	  lt_save_LIBS="$LIBS"
7042	  lt_save_CFLAGS="$CFLAGS"
7043	  LIBS="conftstm.$ac_objext"
7044	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7045	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7046  (eval $ac_link) 2>&5
7047  ac_status=$?
7048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7050	    pipe_works=yes
7051	  fi
7052	  LIBS="$lt_save_LIBS"
7053	  CFLAGS="$lt_save_CFLAGS"
7054	else
7055	  echo "cannot find nm_test_func in $nlist" >&5
7056	fi
7057      else
7058	echo "cannot find nm_test_var in $nlist" >&5
7059      fi
7060    else
7061      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7062    fi
7063  else
7064    echo "$progname: failed program was:" >&5
7065    cat conftest.$ac_ext >&5
7066  fi
7067  rm -f conftest* conftst*
7068
7069  # Do not use the global_symbol_pipe unless it works.
7070  if test "$pipe_works" = yes; then
7071    break
7072  else
7073    lt_cv_sys_global_symbol_pipe=
7074  fi
7075done
7076
7077fi
7078
7079if test -z "$lt_cv_sys_global_symbol_pipe"; then
7080  lt_cv_sys_global_symbol_to_cdecl=
7081fi
7082if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7083  { echo "$as_me:$LINENO: result: failed" >&5
7084echo "${ECHO_T}failed" >&6; }
7085else
7086  { echo "$as_me:$LINENO: result: ok" >&5
7087echo "${ECHO_T}ok" >&6; }
7088fi
7089
7090{ echo "$as_me:$LINENO: checking for objdir" >&5
7091echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7092if test "${lt_cv_objdir+set}" = set; then
7093  echo $ECHO_N "(cached) $ECHO_C" >&6
7094else
7095  rm -f .libs 2>/dev/null
7096mkdir .libs 2>/dev/null
7097if test -d .libs; then
7098  lt_cv_objdir=.libs
7099else
7100  # MS-DOS does not allow filenames that begin with a dot.
7101  lt_cv_objdir=_libs
7102fi
7103rmdir .libs 2>/dev/null
7104fi
7105{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7106echo "${ECHO_T}$lt_cv_objdir" >&6; }
7107objdir=$lt_cv_objdir
7108
7109
7110
7111
7112
7113case $host_os in
7114aix3*)
7115  # AIX sometimes has problems with the GCC collect2 program.  For some
7116  # reason, if we set the COLLECT_NAMES environment variable, the problems
7117  # vanish in a puff of smoke.
7118  if test "X${COLLECT_NAMES+set}" != Xset; then
7119    COLLECT_NAMES=
7120    export COLLECT_NAMES
7121  fi
7122  ;;
7123esac
7124
7125# Sed substitution that helps us do robust quoting.  It backslashifies
7126# metacharacters that are still active within double-quoted strings.
7127Xsed='sed -e 1s/^X//'
7128sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7129
7130# Same as above, but do not quote variable references.
7131double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7132
7133# Sed substitution to delay expansion of an escaped shell variable in a
7134# double_quote_subst'ed string.
7135delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7136
7137# Sed substitution to avoid accidental globbing in evaled expressions
7138no_glob_subst='s/\*/\\\*/g'
7139
7140# Constants:
7141rm="rm -f"
7142
7143# Global variables:
7144default_ofile=libtool
7145can_build_shared=yes
7146
7147# All known linkers require a '.a' archive for static linking (except MSVC,
7148# which needs '.lib').
7149libext=a
7150ltmain="$ac_aux_dir/ltmain.sh"
7151ofile="$default_ofile"
7152with_gnu_ld="$lt_cv_prog_gnu_ld"
7153
7154if test -n "$ac_tool_prefix"; then
7155  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7156set dummy ${ac_tool_prefix}ar; ac_word=$2
7157{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7159if test "${ac_cv_prog_AR+set}" = set; then
7160  echo $ECHO_N "(cached) $ECHO_C" >&6
7161else
7162  if test -n "$AR"; then
7163  ac_cv_prog_AR="$AR" # Let the user override the test.
7164else
7165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166for as_dir in $PATH
7167do
7168  IFS=$as_save_IFS
7169  test -z "$as_dir" && as_dir=.
7170  for ac_exec_ext in '' $ac_executable_extensions; do
7171  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7172    ac_cv_prog_AR="${ac_tool_prefix}ar"
7173    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7174    break 2
7175  fi
7176done
7177done
7178IFS=$as_save_IFS
7179
7180fi
7181fi
7182AR=$ac_cv_prog_AR
7183if test -n "$AR"; then
7184  { echo "$as_me:$LINENO: result: $AR" >&5
7185echo "${ECHO_T}$AR" >&6; }
7186else
7187  { echo "$as_me:$LINENO: result: no" >&5
7188echo "${ECHO_T}no" >&6; }
7189fi
7190
7191
7192fi
7193if test -z "$ac_cv_prog_AR"; then
7194  ac_ct_AR=$AR
7195  # Extract the first word of "ar", so it can be a program name with args.
7196set dummy ar; ac_word=$2
7197{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7199if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7200  echo $ECHO_N "(cached) $ECHO_C" >&6
7201else
7202  if test -n "$ac_ct_AR"; then
7203  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7204else
7205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206for as_dir in $PATH
7207do
7208  IFS=$as_save_IFS
7209  test -z "$as_dir" && as_dir=.
7210  for ac_exec_ext in '' $ac_executable_extensions; do
7211  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7212    ac_cv_prog_ac_ct_AR="ar"
7213    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7214    break 2
7215  fi
7216done
7217done
7218IFS=$as_save_IFS
7219
7220fi
7221fi
7222ac_ct_AR=$ac_cv_prog_ac_ct_AR
7223if test -n "$ac_ct_AR"; then
7224  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7225echo "${ECHO_T}$ac_ct_AR" >&6; }
7226else
7227  { echo "$as_me:$LINENO: result: no" >&5
7228echo "${ECHO_T}no" >&6; }
7229fi
7230
7231  if test "x$ac_ct_AR" = x; then
7232    AR="false"
7233  else
7234    case $cross_compiling:$ac_tool_warned in
7235yes:)
7236{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7237whose name does not start with the host triplet.  If you think this
7238configuration is useful to you, please write to autoconf@gnu.org." >&5
7239echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7240whose name does not start with the host triplet.  If you think this
7241configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7242ac_tool_warned=yes ;;
7243esac
7244    AR=$ac_ct_AR
7245  fi
7246else
7247  AR="$ac_cv_prog_AR"
7248fi
7249
7250if test -n "$ac_tool_prefix"; then
7251  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7252set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7253{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7255if test "${ac_cv_prog_RANLIB+set}" = set; then
7256  echo $ECHO_N "(cached) $ECHO_C" >&6
7257else
7258  if test -n "$RANLIB"; then
7259  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7260else
7261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262for as_dir in $PATH
7263do
7264  IFS=$as_save_IFS
7265  test -z "$as_dir" && as_dir=.
7266  for ac_exec_ext in '' $ac_executable_extensions; do
7267  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7268    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7269    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7270    break 2
7271  fi
7272done
7273done
7274IFS=$as_save_IFS
7275
7276fi
7277fi
7278RANLIB=$ac_cv_prog_RANLIB
7279if test -n "$RANLIB"; then
7280  { echo "$as_me:$LINENO: result: $RANLIB" >&5
7281echo "${ECHO_T}$RANLIB" >&6; }
7282else
7283  { echo "$as_me:$LINENO: result: no" >&5
7284echo "${ECHO_T}no" >&6; }
7285fi
7286
7287
7288fi
7289if test -z "$ac_cv_prog_RANLIB"; then
7290  ac_ct_RANLIB=$RANLIB
7291  # Extract the first word of "ranlib", so it can be a program name with args.
7292set dummy ranlib; ac_word=$2
7293{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7295if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7296  echo $ECHO_N "(cached) $ECHO_C" >&6
7297else
7298  if test -n "$ac_ct_RANLIB"; then
7299  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7300else
7301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302for as_dir in $PATH
7303do
7304  IFS=$as_save_IFS
7305  test -z "$as_dir" && as_dir=.
7306  for ac_exec_ext in '' $ac_executable_extensions; do
7307  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7308    ac_cv_prog_ac_ct_RANLIB="ranlib"
7309    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7310    break 2
7311  fi
7312done
7313done
7314IFS=$as_save_IFS
7315
7316fi
7317fi
7318ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7319if test -n "$ac_ct_RANLIB"; then
7320  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7321echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7322else
7323  { echo "$as_me:$LINENO: result: no" >&5
7324echo "${ECHO_T}no" >&6; }
7325fi
7326
7327  if test "x$ac_ct_RANLIB" = x; then
7328    RANLIB=":"
7329  else
7330    case $cross_compiling:$ac_tool_warned in
7331yes:)
7332{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7333whose name does not start with the host triplet.  If you think this
7334configuration is useful to you, please write to autoconf@gnu.org." >&5
7335echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7336whose name does not start with the host triplet.  If you think this
7337configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7338ac_tool_warned=yes ;;
7339esac
7340    RANLIB=$ac_ct_RANLIB
7341  fi
7342else
7343  RANLIB="$ac_cv_prog_RANLIB"
7344fi
7345
7346if test -n "$ac_tool_prefix"; then
7347  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7348set dummy ${ac_tool_prefix}strip; ac_word=$2
7349{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7351if test "${ac_cv_prog_STRIP+set}" = set; then
7352  echo $ECHO_N "(cached) $ECHO_C" >&6
7353else
7354  if test -n "$STRIP"; then
7355  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7356else
7357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358for as_dir in $PATH
7359do
7360  IFS=$as_save_IFS
7361  test -z "$as_dir" && as_dir=.
7362  for ac_exec_ext in '' $ac_executable_extensions; do
7363  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7364    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7365    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7366    break 2
7367  fi
7368done
7369done
7370IFS=$as_save_IFS
7371
7372fi
7373fi
7374STRIP=$ac_cv_prog_STRIP
7375if test -n "$STRIP"; then
7376  { echo "$as_me:$LINENO: result: $STRIP" >&5
7377echo "${ECHO_T}$STRIP" >&6; }
7378else
7379  { echo "$as_me:$LINENO: result: no" >&5
7380echo "${ECHO_T}no" >&6; }
7381fi
7382
7383
7384fi
7385if test -z "$ac_cv_prog_STRIP"; then
7386  ac_ct_STRIP=$STRIP
7387  # Extract the first word of "strip", so it can be a program name with args.
7388set dummy strip; ac_word=$2
7389{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7391if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7392  echo $ECHO_N "(cached) $ECHO_C" >&6
7393else
7394  if test -n "$ac_ct_STRIP"; then
7395  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7396else
7397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398for as_dir in $PATH
7399do
7400  IFS=$as_save_IFS
7401  test -z "$as_dir" && as_dir=.
7402  for ac_exec_ext in '' $ac_executable_extensions; do
7403  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7404    ac_cv_prog_ac_ct_STRIP="strip"
7405    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7406    break 2
7407  fi
7408done
7409done
7410IFS=$as_save_IFS
7411
7412fi
7413fi
7414ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7415if test -n "$ac_ct_STRIP"; then
7416  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7417echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7418else
7419  { echo "$as_me:$LINENO: result: no" >&5
7420echo "${ECHO_T}no" >&6; }
7421fi
7422
7423  if test "x$ac_ct_STRIP" = x; then
7424    STRIP=":"
7425  else
7426    case $cross_compiling:$ac_tool_warned in
7427yes:)
7428{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7429whose name does not start with the host triplet.  If you think this
7430configuration is useful to you, please write to autoconf@gnu.org." >&5
7431echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7432whose name does not start with the host triplet.  If you think this
7433configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7434ac_tool_warned=yes ;;
7435esac
7436    STRIP=$ac_ct_STRIP
7437  fi
7438else
7439  STRIP="$ac_cv_prog_STRIP"
7440fi
7441
7442
7443old_CC="$CC"
7444old_CFLAGS="$CFLAGS"
7445
7446# Set sane defaults for various variables
7447test -z "$AR" && AR=ar
7448test -z "$AR_FLAGS" && AR_FLAGS=cru
7449test -z "$AS" && AS=as
7450test -z "$CC" && CC=cc
7451test -z "$LTCC" && LTCC=$CC
7452test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7453test -z "$DLLTOOL" && DLLTOOL=dlltool
7454test -z "$LD" && LD=ld
7455test -z "$LN_S" && LN_S="ln -s"
7456test -z "$MAGIC_CMD" && MAGIC_CMD=file
7457test -z "$NM" && NM=nm
7458test -z "$SED" && SED=sed
7459test -z "$OBJDUMP" && OBJDUMP=objdump
7460test -z "$RANLIB" && RANLIB=:
7461test -z "$STRIP" && STRIP=:
7462test -z "$ac_objext" && ac_objext=o
7463
7464# Determine commands to create old-style static archives.
7465old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7466old_postinstall_cmds='chmod 644 $oldlib'
7467old_postuninstall_cmds=
7468
7469_lt_gnu_ar=no
7470case $host_os in
7471mirbsd*)
7472  _lt_gnu_ar=yes
7473  ;;
7474esac
7475
7476test $_lt_gnu_ar = no && if test -n "$RANLIB"; then
7477  case $host_os in
7478  openbsd*)
7479    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7480    ;;
7481  *)
7482    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7483    ;;
7484  esac
7485  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7486fi
7487
7488for cc_temp in $compiler""; do
7489  case $cc_temp in
7490    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7491    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7492    \-*) ;;
7493    *) break;;
7494  esac
7495done
7496cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7497
7498
7499# Only perform the check for file, if the check method requires it
7500case $deplibs_check_method in
7501file_magic*)
7502  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7503    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7504echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7505if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7506  echo $ECHO_N "(cached) $ECHO_C" >&6
7507else
7508  case $MAGIC_CMD in
7509[\\/*] |  ?:[\\/]*)
7510  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7511  ;;
7512*)
7513  lt_save_MAGIC_CMD="$MAGIC_CMD"
7514  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7515  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7516  for ac_dir in $ac_dummy; do
7517    IFS="$lt_save_ifs"
7518    test -z "$ac_dir" && ac_dir=.
7519    if test -f $ac_dir/${ac_tool_prefix}file; then
7520      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7521      if test -n "$file_magic_test_file"; then
7522	case $deplibs_check_method in
7523	"file_magic "*)
7524	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7525	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7526	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7527	    $EGREP "$file_magic_regex" > /dev/null; then
7528	    :
7529	  else
7530	    cat <<EOF 1>&2
7531
7532*** Warning: the command libtool uses to detect shared libraries,
7533*** $file_magic_cmd, produces output that libtool cannot recognize.
7534*** The result is that libtool may fail to recognize shared libraries
7535*** as such.  This will affect the creation of libtool libraries that
7536*** depend on shared libraries, but programs linked with such libtool
7537*** libraries will work regardless of this problem.  Nevertheless, you
7538*** may want to report the problem to your system manager and/or to
7539*** bug-libtool@gnu.org
7540
7541EOF
7542	  fi ;;
7543	esac
7544      fi
7545      break
7546    fi
7547  done
7548  IFS="$lt_save_ifs"
7549  MAGIC_CMD="$lt_save_MAGIC_CMD"
7550  ;;
7551esac
7552fi
7553
7554MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7555if test -n "$MAGIC_CMD"; then
7556  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7557echo "${ECHO_T}$MAGIC_CMD" >&6; }
7558else
7559  { echo "$as_me:$LINENO: result: no" >&5
7560echo "${ECHO_T}no" >&6; }
7561fi
7562
7563if test -z "$lt_cv_path_MAGIC_CMD"; then
7564  if test -n "$ac_tool_prefix"; then
7565    { echo "$as_me:$LINENO: checking for file" >&5
7566echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7567if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7568  echo $ECHO_N "(cached) $ECHO_C" >&6
7569else
7570  case $MAGIC_CMD in
7571[\\/*] |  ?:[\\/]*)
7572  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7573  ;;
7574*)
7575  lt_save_MAGIC_CMD="$MAGIC_CMD"
7576  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7577  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7578  for ac_dir in $ac_dummy; do
7579    IFS="$lt_save_ifs"
7580    test -z "$ac_dir" && ac_dir=.
7581    if test -f $ac_dir/file; then
7582      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7583      if test -n "$file_magic_test_file"; then
7584	case $deplibs_check_method in
7585	"file_magic "*)
7586	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7587	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7588	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7589	    $EGREP "$file_magic_regex" > /dev/null; then
7590	    :
7591	  else
7592	    cat <<EOF 1>&2
7593
7594*** Warning: the command libtool uses to detect shared libraries,
7595*** $file_magic_cmd, produces output that libtool cannot recognize.
7596*** The result is that libtool may fail to recognize shared libraries
7597*** as such.  This will affect the creation of libtool libraries that
7598*** depend on shared libraries, but programs linked with such libtool
7599*** libraries will work regardless of this problem.  Nevertheless, you
7600*** may want to report the problem to your system manager and/or to
7601*** bug-libtool@gnu.org
7602
7603EOF
7604	  fi ;;
7605	esac
7606      fi
7607      break
7608    fi
7609  done
7610  IFS="$lt_save_ifs"
7611  MAGIC_CMD="$lt_save_MAGIC_CMD"
7612  ;;
7613esac
7614fi
7615
7616MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7617if test -n "$MAGIC_CMD"; then
7618  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7619echo "${ECHO_T}$MAGIC_CMD" >&6; }
7620else
7621  { echo "$as_me:$LINENO: result: no" >&5
7622echo "${ECHO_T}no" >&6; }
7623fi
7624
7625  else
7626    MAGIC_CMD=:
7627  fi
7628fi
7629
7630  fi
7631  ;;
7632esac
7633
7634enable_dlopen=no
7635enable_win32_dll=no
7636
7637# Check whether --enable-libtool-lock was given.
7638if test "${enable_libtool_lock+set}" = set; then
7639  enableval=$enable_libtool_lock;
7640fi
7641
7642test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7643
7644
7645# Check whether --with-pic was given.
7646if test "${with_pic+set}" = set; then
7647  withval=$with_pic; pic_mode="$withval"
7648else
7649  pic_mode=default
7650fi
7651
7652test -z "$pic_mode" && pic_mode=default
7653
7654# Use C for the default configuration in the libtool script
7655tagname=
7656lt_save_CC="$CC"
7657ac_ext=c
7658ac_cpp='$CPP $CPPFLAGS'
7659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7661ac_compiler_gnu=$ac_cv_c_compiler_gnu
7662
7663
7664# Source file extension for C test sources.
7665ac_ext=c
7666
7667# Object file extension for compiled C test sources.
7668objext=o
7669objext=$objext
7670
7671# Code to be used in simple compile tests
7672lt_simple_compile_test_code="int some_variable = 0;\n"
7673
7674# Code to be used in simple link tests
7675lt_simple_link_test_code='int main(){return(0);}\n'
7676
7677
7678# If no C compiler was specified, use CC.
7679LTCC=${LTCC-"$CC"}
7680
7681# If no C compiler flags were specified, use CFLAGS.
7682LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7683
7684# Allow CC to be a program name with arguments.
7685compiler=$CC
7686
7687
7688# save warnings/boilerplate of simple test code
7689ac_outfile=conftest.$ac_objext
7690printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7691eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7692_lt_compiler_boilerplate=`cat conftest.err`
7693$rm conftest*
7694
7695ac_outfile=conftest.$ac_objext
7696printf "$lt_simple_link_test_code" >conftest.$ac_ext
7697eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7698_lt_linker_boilerplate=`cat conftest.err`
7699$rm conftest*
7700
7701
7702## CAVEAT EMPTOR:
7703## There is no encapsulation within the following macros, do not change
7704## the running order or otherwise move them around unless you know exactly
7705## what you are doing...
7706
7707lt_prog_compiler_no_builtin_flag=
7708
7709if test "$GCC" = yes; then
7710  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7711
7712
7713{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7714echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7715if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7716  echo $ECHO_N "(cached) $ECHO_C" >&6
7717else
7718  lt_cv_prog_compiler_rtti_exceptions=no
7719  ac_outfile=conftest.$ac_objext
7720   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7721   lt_compiler_flag="-fno-rtti -fno-exceptions"
7722   # Insert the option either (1) after the last *FLAGS variable, or
7723   # (2) before a word containing "conftest.", or (3) at the end.
7724   # Note that $ac_compile itself does not contain backslashes and begins
7725   # with a dollar sign (not a hyphen), so the echo should work correctly.
7726   # The option is referenced via a variable to avoid confusing sed.
7727   lt_compile=`echo "$ac_compile" | $SED \
7728   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7729   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7730   -e 's:$: $lt_compiler_flag:'`
7731   (eval echo "\"\$as_me:7731: $lt_compile\"" >&5)
7732   (eval "$lt_compile" 2>conftest.err)
7733   ac_status=$?
7734   cat conftest.err >&5
7735   echo "$as_me:7735: \$? = $ac_status" >&5
7736   if (exit $ac_status) && test -s "$ac_outfile"; then
7737     # The compiler can only warn and ignore the option if not recognized
7738     # So say no if there are warnings other than the usual output.
7739     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7740     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7741     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7742       lt_cv_prog_compiler_rtti_exceptions=yes
7743     fi
7744   fi
7745   $rm conftest*
7746
7747fi
7748{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7749echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7750
7751if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7752    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7753else
7754    :
7755fi
7756
7757fi
7758
7759lt_prog_compiler_wl=
7760lt_prog_compiler_pic=
7761lt_prog_compiler_static=
7762
7763{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7764echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7765
7766  if test "$GCC" = yes; then
7767    lt_prog_compiler_wl='-Wl,'
7768    lt_prog_compiler_static='-static'
7769
7770    case $host_os in
7771      aix*)
7772      # All AIX code is PIC.
7773      if test "$host_cpu" = ia64; then
7774	# AIX 5 now supports IA64 processor
7775	lt_prog_compiler_static='-Bstatic'
7776      fi
7777      ;;
7778
7779    amigaos*)
7780      # FIXME: we need at least 68020 code to build shared libraries, but
7781      # adding the '-m68020' flag to GCC prevents building anything better,
7782      # like '-m68040'.
7783      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7784      ;;
7785
7786    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7787      # PIC is the default for these OSes.
7788      ;;
7789
7790    mingw* | cygwin* | pw32* | os2*)
7791      # This hack is so that the source file can tell whether it is being
7792      # built for inclusion in a dll (and should export symbols for example).
7793      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7794      # (--disable-auto-import) libraries
7795      lt_prog_compiler_pic='-DDLL_EXPORT'
7796      ;;
7797
7798    darwin* | rhapsody*)
7799      # PIC is the default on this platform
7800      # Common symbols not allowed in MH_DYLIB files
7801      lt_prog_compiler_pic='-fno-common'
7802      ;;
7803
7804    interix3*)
7805      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7806      # Instead, we relocate shared libraries at runtime.
7807      ;;
7808
7809    msdosdjgpp*)
7810      # Just because we use GCC doesn't mean we suddenly get shared libraries
7811      # on systems that don't support them.
7812      lt_prog_compiler_can_build_shared=no
7813      enable_shared=no
7814      ;;
7815
7816    sysv4*MP*)
7817      if test -d /usr/nec; then
7818	lt_prog_compiler_pic=-Kconform_pic
7819      fi
7820      ;;
7821
7822    hpux*)
7823      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7824      # not for PA HP-UX.
7825      case $host_cpu in
7826      hppa*64*|ia64*)
7827	# +Z the default
7828	;;
7829      *)
7830	lt_prog_compiler_pic='-fPIC'
7831	;;
7832      esac
7833      ;;
7834
7835    *)
7836      lt_prog_compiler_pic='-fPIC'
7837      ;;
7838    esac
7839  else
7840    # PORTME Check for flag to pass linker flags through the system compiler.
7841    case $host_os in
7842    aix*)
7843      lt_prog_compiler_wl='-Wl,'
7844      if test "$host_cpu" = ia64; then
7845	# AIX 5 now supports IA64 processor
7846	lt_prog_compiler_static='-Bstatic'
7847      else
7848	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7849      fi
7850      ;;
7851      darwin*)
7852	# PIC is the default on this platform
7853	# Common symbols not allowed in MH_DYLIB files
7854	case $cc_basename in
7855	xlc*)
7856	  lt_prog_compiler_pic='-qnocommon'
7857	  lt_prog_compiler_wl='-Wl,'
7858	  ;;
7859	esac
7860	;;
7861
7862    mingw* | cygwin* | pw32* | os2*)
7863      # This hack is so that the source file can tell whether it is being
7864      # built for inclusion in a dll (and should export symbols for example).
7865      lt_prog_compiler_pic='-DDLL_EXPORT'
7866      ;;
7867
7868    hpux9* | hpux10* | hpux11*)
7869      lt_prog_compiler_wl='-Wl,'
7870      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7871      # not for PA HP-UX.
7872      case $host_cpu in
7873      hppa*64*|ia64*)
7874	# +Z the default
7875	;;
7876      *)
7877	lt_prog_compiler_pic='+Z'
7878	;;
7879      esac
7880      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7881      lt_prog_compiler_static='${wl}-a ${wl}archive'
7882      ;;
7883
7884    irix5* | irix6* | nonstopux*)
7885      lt_prog_compiler_wl='-Wl,'
7886      # PIC (with -KPIC) is the default.
7887      lt_prog_compiler_static='-non_shared'
7888      ;;
7889
7890    newsos6)
7891      lt_prog_compiler_pic='-KPIC'
7892      lt_prog_compiler_static='-Bstatic'
7893      ;;
7894
7895    linux*)
7896      case $cc_basename in
7897      icc* | ecc*)
7898	lt_prog_compiler_wl='-Wl,'
7899	lt_prog_compiler_pic='-KPIC'
7900	lt_prog_compiler_static='-static'
7901	;;
7902      pgcc* | pgf77* | pgf90* | pgf95*)
7903	# Portland Group compilers (*not* the Pentium gcc compiler,
7904	# which looks to be a dead project)
7905	lt_prog_compiler_wl='-Wl,'
7906	lt_prog_compiler_pic='-fpic'
7907	lt_prog_compiler_static='-Bstatic'
7908	;;
7909      ccc*)
7910        lt_prog_compiler_wl='-Wl,'
7911        # All Alpha code is PIC.
7912        lt_prog_compiler_static='-non_shared'
7913        ;;
7914      *)
7915        case `$CC -V 2>&1 | sed 5q` in
7916	*Sun\ C*)
7917	  # Sun C 5.9
7918	  lt_prog_compiler_pic='-KPIC'
7919	  lt_prog_compiler_static='-Bstatic'
7920	  lt_prog_compiler_wl='-Wl,'
7921	  ;;
7922	*Sun\ F*)
7923	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7924	  lt_prog_compiler_pic='-KPIC'
7925	  lt_prog_compiler_static='-Bstatic'
7926	  lt_prog_compiler_wl=''
7927	  ;;
7928	esac
7929	;;
7930      esac
7931      ;;
7932
7933    osf3* | osf4* | osf5*)
7934      lt_prog_compiler_wl='-Wl,'
7935      # All OSF/1 code is PIC.
7936      lt_prog_compiler_static='-non_shared'
7937      ;;
7938
7939    rdos*)
7940      lt_prog_compiler_static='-non_shared'
7941      ;;
7942
7943    solaris*)
7944      lt_prog_compiler_pic='-KPIC'
7945      lt_prog_compiler_static='-Bstatic'
7946      case $cc_basename in
7947      f77* | f90* | f95*)
7948	lt_prog_compiler_wl='-Qoption ld ';;
7949      *)
7950	lt_prog_compiler_wl='-Wl,';;
7951      esac
7952      ;;
7953
7954    sunos4*)
7955      lt_prog_compiler_wl='-Qoption ld '
7956      lt_prog_compiler_pic='-PIC'
7957      lt_prog_compiler_static='-Bstatic'
7958      ;;
7959
7960    sysv4 | sysv4.2uw2* | sysv4.3*)
7961      lt_prog_compiler_wl='-Wl,'
7962      lt_prog_compiler_pic='-KPIC'
7963      lt_prog_compiler_static='-Bstatic'
7964      ;;
7965
7966    sysv4*MP*)
7967      if test -d /usr/nec ;then
7968	lt_prog_compiler_pic='-Kconform_pic'
7969	lt_prog_compiler_static='-Bstatic'
7970      fi
7971      ;;
7972
7973    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7974      lt_prog_compiler_wl='-Wl,'
7975      lt_prog_compiler_pic='-KPIC'
7976      lt_prog_compiler_static='-Bstatic'
7977      ;;
7978
7979    unicos*)
7980      lt_prog_compiler_wl='-Wl,'
7981      lt_prog_compiler_can_build_shared=no
7982      ;;
7983
7984    uts4*)
7985      lt_prog_compiler_pic='-pic'
7986      lt_prog_compiler_static='-Bstatic'
7987      ;;
7988
7989    *)
7990      lt_prog_compiler_can_build_shared=no
7991      ;;
7992    esac
7993  fi
7994
7995{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7996echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7997
7998#
7999# Check to make sure the PIC flag actually works.
8000#
8001if test -n "$lt_prog_compiler_pic"; then
8002
8003{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8004echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8005if test "${lt_prog_compiler_pic_works+set}" = set; then
8006  echo $ECHO_N "(cached) $ECHO_C" >&6
8007else
8008  lt_prog_compiler_pic_works=no
8009  ac_outfile=conftest.$ac_objext
8010   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8011   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8012   # Insert the option either (1) after the last *FLAGS variable, or
8013   # (2) before a word containing "conftest.", or (3) at the end.
8014   # Note that $ac_compile itself does not contain backslashes and begins
8015   # with a dollar sign (not a hyphen), so the echo should work correctly.
8016   # The option is referenced via a variable to avoid confusing sed.
8017   lt_compile=`echo "$ac_compile" | $SED \
8018   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8019   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8020   -e 's:$: $lt_compiler_flag:'`
8021   (eval echo "\"\$as_me:8021: $lt_compile\"" >&5)
8022   (eval "$lt_compile" 2>conftest.err)
8023   ac_status=$?
8024   cat conftest.err >&5
8025   echo "$as_me:8025: \$? = $ac_status" >&5
8026   if (exit $ac_status) && test -s "$ac_outfile"; then
8027     # The compiler can only warn and ignore the option if not recognized
8028     # So say no if there are warnings other than the usual output.
8029     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8030     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8031     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8032       lt_prog_compiler_pic_works=yes
8033     fi
8034   fi
8035   $rm conftest*
8036
8037fi
8038{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8039echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8040
8041if test x"$lt_prog_compiler_pic_works" = xyes; then
8042    case $lt_prog_compiler_pic in
8043     "" | " "*) ;;
8044     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8045     esac
8046else
8047    lt_prog_compiler_pic=
8048     lt_prog_compiler_can_build_shared=no
8049fi
8050
8051fi
8052case $host_os in
8053  # For platforms which do not support PIC, -DPIC is meaningless:
8054  *djgpp*)
8055    lt_prog_compiler_pic=
8056    ;;
8057  *)
8058    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8059    ;;
8060esac
8061
8062#
8063# Check to make sure the static flag actually works.
8064#
8065wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8066{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8067echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8068if test "${lt_prog_compiler_static_works+set}" = set; then
8069  echo $ECHO_N "(cached) $ECHO_C" >&6
8070else
8071  lt_prog_compiler_static_works=no
8072   save_LDFLAGS="$LDFLAGS"
8073   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8074   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8075   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8076     # The linker can only warn and ignore the option if not recognized
8077     # So say no if there are warnings
8078     if test -s conftest.err; then
8079       # Append any errors to the config.log.
8080       cat conftest.err 1>&5
8081       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8082       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8083       if diff conftest.exp conftest.er2 >/dev/null; then
8084	 lt_prog_compiler_static_works=yes
8085       fi
8086     else
8087       lt_prog_compiler_static_works=yes
8088     fi
8089   fi
8090   $rm conftest*
8091   LDFLAGS="$save_LDFLAGS"
8092
8093fi
8094{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8095echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8096
8097if test x"$lt_prog_compiler_static_works" = xyes; then
8098    :
8099else
8100    lt_prog_compiler_static=
8101fi
8102
8103
8104{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8105echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8106if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8107  echo $ECHO_N "(cached) $ECHO_C" >&6
8108else
8109  lt_cv_prog_compiler_c_o=no
8110   $rm -r conftest 2>/dev/null
8111   mkdir conftest
8112   cd conftest
8113   mkdir out
8114   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8115
8116   lt_compiler_flag="-o out/conftest2.$ac_objext"
8117   # Insert the option either (1) after the last *FLAGS variable, or
8118   # (2) before a word containing "conftest.", or (3) at the end.
8119   # Note that $ac_compile itself does not contain backslashes and begins
8120   # with a dollar sign (not a hyphen), so the echo should work correctly.
8121   lt_compile=`echo "$ac_compile" | $SED \
8122   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8123   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8124   -e 's:$: $lt_compiler_flag:'`
8125   (eval echo "\"\$as_me:8125: $lt_compile\"" >&5)
8126   (eval "$lt_compile" 2>out/conftest.err)
8127   ac_status=$?
8128   cat out/conftest.err >&5
8129   echo "$as_me:8129: \$? = $ac_status" >&5
8130   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8131   then
8132     # The compiler can only warn and ignore the option if not recognized
8133     # So say no if there are warnings
8134     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8135     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8136     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8137       lt_cv_prog_compiler_c_o=yes
8138     fi
8139   fi
8140   chmod u+w . 2>&5
8141   $rm conftest*
8142   # SGI C++ compiler will create directory out/ii_files/ for
8143   # template instantiation
8144   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8145   $rm out/* && rmdir out
8146   cd ..
8147   rmdir conftest
8148   $rm conftest*
8149
8150fi
8151{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8152echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8153
8154
8155hard_links="nottested"
8156if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8157  # do not overwrite the value of need_locks provided by the user
8158  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8159echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8160  hard_links=yes
8161  $rm conftest*
8162  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8163  touch conftest.a
8164  ln conftest.a conftest.b 2>&5 || hard_links=no
8165  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8166  { echo "$as_me:$LINENO: result: $hard_links" >&5
8167echo "${ECHO_T}$hard_links" >&6; }
8168  if test "$hard_links" = no; then
8169    { echo "$as_me:$LINENO: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8170echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8171    need_locks=warn
8172  fi
8173else
8174  need_locks=no
8175fi
8176
8177{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8178echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8179
8180  runpath_var=
8181  allow_undefined_flag=
8182  enable_shared_with_static_runtimes=no
8183  archive_cmds=
8184  archive_expsym_cmds=
8185  old_archive_From_new_cmds=
8186  old_archive_from_expsyms_cmds=
8187  export_dynamic_flag_spec=
8188  whole_archive_flag_spec=
8189  thread_safe_flag_spec=
8190  hardcode_libdir_flag_spec=
8191  hardcode_libdir_flag_spec_ld=
8192  hardcode_libdir_separator=
8193  hardcode_direct=no
8194  hardcode_minus_L=no
8195  hardcode_shlibpath_var=unsupported
8196  link_all_deplibs=unknown
8197  hardcode_automatic=no
8198  module_cmds=
8199  module_expsym_cmds=
8200  always_export_symbols=no
8201  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8202  # include_expsyms should be a list of space-separated symbols to be *always*
8203  # included in the symbol list
8204  include_expsyms=
8205  # exclude_expsyms can be an extended regexp of symbols to exclude
8206  # it will be wrapped by ' (' and ')$', so one must not match beginning or
8207  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8208  # as well as any symbol that contains 'd'.
8209  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8210  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8211  # platforms (ab)use it in PIC code, but their linkers get confused if
8212  # the symbol is explicitly referenced.  Since portable code cannot
8213  # rely on this symbol name, it's probably fine to never include it in
8214  # preloaded symbol tables.
8215  extract_expsyms_cmds=
8216  # Just being paranoid about ensuring that cc_basename is set.
8217  for cc_temp in $compiler""; do
8218  case $cc_temp in
8219    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8220    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8221    \-*) ;;
8222    *) break;;
8223  esac
8224done
8225cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8226
8227  case $host_os in
8228  cygwin* | mingw* | pw32*)
8229    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8230    # When not using gcc, we currently assume that we are using
8231    # Microsoft Visual C++.
8232    if test "$GCC" != yes; then
8233      with_gnu_ld=no
8234    fi
8235    ;;
8236  interix*)
8237    # we just hope/assume this is gcc and not c89 (= MSVC++)
8238    with_gnu_ld=yes
8239    ;;
8240  mirbsd*)
8241    with_gnu_ld=yes
8242    ;;
8243  openbsd*)
8244    with_gnu_ld=no
8245    ;;
8246  esac
8247
8248  ld_shlibs=yes
8249  if test "$with_gnu_ld" = yes; then
8250    # If archive_cmds runs LD, not CC, wlarc should be empty
8251    wlarc='${wl}'
8252
8253    # Set some defaults for GNU ld with shared library support. These
8254    # are reset later if shared libraries are not supported. Putting them
8255    # here allows them to be overridden if necessary.
8256    runpath_var=LD_RUN_PATH
8257    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8258    export_dynamic_flag_spec='${wl}--export-dynamic'
8259    # ancient GNU ld didn't support --whole-archive et. al.
8260    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8261	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8262      else
8263	whole_archive_flag_spec=
8264    fi
8265    supports_anon_versioning=no
8266    case `$LD -v 2>/dev/null` in
8267      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8268      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8269      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8270      *\ 2.11.*) ;; # other 2.11 versions
8271      *) supports_anon_versioning=yes ;;
8272    esac
8273
8274    # See if GNU ld supports shared libraries.
8275    case $host_os in
8276    aix3* | aix4* | aix5*)
8277      # On AIX/PPC, the GNU linker is very broken
8278      if test "$host_cpu" != ia64; then
8279	ld_shlibs=no
8280	cat <<EOF 1>&2
8281
8282*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8283*** to be unable to reliably create shared libraries on AIX.
8284*** Therefore, libtool is disabling shared libraries support.  If you
8285*** really care for shared libraries, you may want to modify your PATH
8286*** so that a non-GNU linker is found, and then restart.
8287
8288EOF
8289      fi
8290      ;;
8291
8292    amigaos*)
8293      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)'
8294      hardcode_libdir_flag_spec='-L$libdir'
8295      hardcode_minus_L=yes
8296
8297      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8298      # that the semantics of dynamic libraries on AmigaOS, at least up
8299      # to version 4, is to share data among multiple programs linked
8300      # with the same dynamic library.  Since this doesn't match the
8301      # behavior of shared libraries on other platforms, we can't use
8302      # them.
8303      ld_shlibs=no
8304      ;;
8305
8306    beos*)
8307      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8308	allow_undefined_flag=unsupported
8309	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8310	# support --undefined.  This deserves some investigation.  FIXME
8311	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8312      else
8313	ld_shlibs=no
8314      fi
8315      ;;
8316
8317    cygwin* | mingw* | pw32*)
8318      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8319      # as there is no search path for DLLs.
8320      hardcode_libdir_flag_spec='-L$libdir'
8321      allow_undefined_flag=unsupported
8322      always_export_symbols=no
8323      enable_shared_with_static_runtimes=yes
8324      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8325
8326      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8327	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8328	# If the export-symbols file already is a .def file (1st line
8329	# is EXPORTS), use it as is; otherwise, prepend...
8330	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8331	  cp $export_symbols $output_objdir/$soname.def;
8332	else
8333	  echo EXPORTS > $output_objdir/$soname.def;
8334	  cat $export_symbols >> $output_objdir/$soname.def;
8335	fi~
8336	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8337      else
8338	ld_shlibs=no
8339      fi
8340      ;;
8341
8342    interix3*)
8343      hardcode_direct=no
8344      hardcode_shlibpath_var=no
8345      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8346      export_dynamic_flag_spec='${wl}-E'
8347      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8348      # Instead, shared libraries are loaded at an image base (0x10000000 by
8349      # default) and relocated if they conflict, which is a slow very memory
8350      # consuming and fragmenting process.  To avoid this, we pick a random,
8351      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8352      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8353      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8354      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'
8355      ;;
8356
8357    linux*)
8358      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8359	tmp_addflag=
8360	case $cc_basename,$host_cpu in
8361	pgcc*)				# Portland Group C compiler
8362	  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'
8363	  tmp_addflag=' $pic_flag'
8364	  ;;
8365	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8366	  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'
8367	  tmp_addflag=' $pic_flag -Mnomain' ;;
8368	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8369	  tmp_addflag=' -i_dynamic' ;;
8370	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8371	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8372	ifc* | ifort*)			# Intel Fortran compiler
8373	  tmp_addflag=' -nofor_main' ;;
8374	esac
8375	case `$CC -V 2>&1 | sed 5q` in
8376	*Sun\ C*)			# Sun C 5.9
8377	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive /dev/null'
8378	  tmp_sharedflag='-G' ;;
8379	*Sun\ F*)			# Sun Fortran 8.3
8380	  tmp_sharedflag='-G' ;;
8381	*)
8382	  tmp_sharedflag='-shared' ;;
8383	esac
8384	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8385
8386	if test $supports_anon_versioning = yes; then
8387	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8388  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8389  $echo "local: *; };" >> $output_objdir/$libname.ver~
8390	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8391	fi
8392      else
8393	ld_shlibs=no
8394      fi
8395      ;;
8396
8397    mirbsd*)
8398      hardcode_direct=yes
8399      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags -o $lib'
8400      archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
8401      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8402      export_dynamic_flag_spec='${wl}-E'
8403      ;;
8404
8405    netbsd*)
8406      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8407	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8408	wlarc=
8409      else
8410	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8411	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8412      fi
8413      ;;
8414
8415    solaris*)
8416      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8417	ld_shlibs=no
8418	cat <<EOF 1>&2
8419
8420*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8421*** create shared libraries on Solaris systems.  Therefore, libtool
8422*** is disabling shared libraries support.  We urge you to upgrade GNU
8423*** binutils to release 2.9.1 or newer.  Another option is to modify
8424*** your PATH or compiler configuration so that the native linker is
8425*** used, and then restart.
8426
8427EOF
8428      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8429	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8430	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8431      else
8432	ld_shlibs=no
8433      fi
8434      ;;
8435
8436    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8437      case `$LD -v 2>&1` in
8438	*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8439	ld_shlibs=no
8440	cat <<_LT_EOF 1>&2
8441
8442*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8443*** reliably create shared libraries on SCO systems.  Therefore, libtool
8444*** is disabling shared libraries support.  We urge you to upgrade GNU
8445*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8446*** your PATH or compiler configuration so that the native linker is
8447*** used, and then restart.
8448
8449_LT_EOF
8450	;;
8451	*)
8452	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8453	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8454	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8455	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8456	  else
8457	    ld_shlibs=no
8458	  fi
8459	;;
8460      esac
8461      ;;
8462
8463    sunos4*)
8464      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8465      wlarc=
8466      hardcode_direct=yes
8467      hardcode_shlibpath_var=no
8468      ;;
8469
8470    *)
8471      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8472	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8473	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8474      else
8475	ld_shlibs=no
8476      fi
8477      ;;
8478    esac
8479
8480    if test "$ld_shlibs" = no; then
8481      runpath_var=
8482      hardcode_libdir_flag_spec=
8483      export_dynamic_flag_spec=
8484      whole_archive_flag_spec=
8485    fi
8486  else
8487    # PORTME fill in a description of your system's linker (not GNU ld)
8488    case $host_os in
8489    aix3*)
8490      allow_undefined_flag=unsupported
8491      always_export_symbols=yes
8492      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'
8493      # Note: this linker hardcodes the directories in LIBPATH if there
8494      # are no directories specified by -L.
8495      hardcode_minus_L=yes
8496      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8497	# Neither direct hardcoding nor static linking is supported with a
8498	# broken collect2.
8499	hardcode_direct=unsupported
8500      fi
8501      ;;
8502
8503    aix4* | aix5*)
8504      if test "$host_cpu" = ia64; then
8505	# On IA64, the linker does run time linking by default, so we don't
8506	# have to do anything special.
8507	aix_use_runtimelinking=no
8508	exp_sym_flag='-Bexport'
8509	no_entry_flag=""
8510      else
8511	# If we're using GNU nm, then we don't want the "-C" option.
8512	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8513	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8514	  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'
8515	else
8516	  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'
8517	fi
8518	aix_use_runtimelinking=no
8519
8520	# Test if we are trying to use run time linking or normal
8521	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8522	# need to do runtime linking.
8523	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8524	  for ld_flag in $LDFLAGS; do
8525	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8526	    aix_use_runtimelinking=yes
8527	    break
8528	  fi
8529	  done
8530	  ;;
8531	esac
8532
8533	exp_sym_flag='-bexport'
8534	no_entry_flag='-bnoentry'
8535      fi
8536
8537      # When large executables or shared objects are built, AIX ld can
8538      # have problems creating the table of contents.  If linking a library
8539      # or program results in "error TOC overflow" add -mminimal-toc to
8540      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8541      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8542
8543      archive_cmds=''
8544      hardcode_direct=yes
8545      hardcode_libdir_separator=':'
8546      link_all_deplibs=yes
8547
8548      if test "$GCC" = yes; then
8549	case $host_os in aix4.[012]|aix4.[012].*)
8550	# We only want to do this on AIX 4.2 and lower, the check
8551	# below for broken collect2 doesn't work under 4.3+
8552	  collect2name=`${CC} -print-prog-name=collect2`
8553	  if test -f "$collect2name" && \
8554	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8555	  then
8556  	  # We have reworked collect2
8557  	  :
8558	  else
8559	    # We have old collect2
8560	    hardcode_direct=unsupported
8561	    # It fails to find uninstalled libraries when the uninstalled
8562	    # path is not listed in the libpath.  Setting hardcode_minus_L
8563	    # to unsupported forces relinking
8564	    hardcode_minus_L=yes
8565	    hardcode_libdir_flag_spec='-L$libdir'
8566	    hardcode_libdir_separator=
8567	  fi
8568	  ;;
8569	esac
8570	shared_flag='-shared'
8571	if test "$aix_use_runtimelinking" = yes; then
8572	  shared_flag="$shared_flag "'${wl}-G'
8573	fi
8574      else
8575	# not using gcc
8576	if test "$host_cpu" = ia64; then
8577	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8578	# chokes on -Wl,-G. The following line is correct:
8579	  shared_flag='-G'
8580	else
8581	  if test "$aix_use_runtimelinking" = yes; then
8582	    shared_flag='${wl}-G'
8583	  else
8584	    shared_flag='${wl}-bM:SRE'
8585	  fi
8586	fi
8587      fi
8588
8589      # It seems that -bexpall does not export symbols beginning with
8590      # underscore (_), so it is better to generate a list of symbols to export.
8591      always_export_symbols=yes
8592      if test "$aix_use_runtimelinking" = yes; then
8593	# Warning - without using the other runtime loading flags (-brtl),
8594	# -berok will link without error, but may produce a broken library.
8595	allow_undefined_flag='-berok'
8596       # Determine the default libpath from the value encoded in an empty executable.
8597       aix_libpath="/usr/lib:/lib"
8598
8599       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8600	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"
8601       else
8602	if test "$host_cpu" = ia64; then
8603	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8604	  allow_undefined_flag="-z nodefs"
8605	  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"
8606	else
8607	 # Determine the default libpath from the value encoded in an empty executable.
8608	 aix_libpath="/usr/lib:/lib"
8609
8610	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8611	  # Warning - without using the other run time loading flags,
8612	  # -berok will link without error, but may produce a broken library.
8613	  no_undefined_flag=' ${wl}-bernotok'
8614	  allow_undefined_flag=' ${wl}-berok'
8615	  # Exported symbols can be pulled into shared objects from archives
8616	  whole_archive_flag_spec='$convenience'
8617	  archive_cmds_need_lc=yes
8618	  # This is similar to how AIX traditionally builds its shared libraries.
8619	  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'
8620	fi
8621      fi
8622      ;;
8623
8624    amigaos*)
8625      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)'
8626      hardcode_libdir_flag_spec='-L$libdir'
8627      hardcode_minus_L=yes
8628      # see comment about different semantics on the GNU ld section
8629      ld_shlibs=no
8630      ;;
8631
8632    bsdi[45]*)
8633      export_dynamic_flag_spec=-rdynamic
8634      ;;
8635
8636    cygwin* | mingw* | pw32*)
8637      # When not using gcc, we currently assume that we are using
8638      # Microsoft Visual C++.
8639      # hardcode_libdir_flag_spec is actually meaningless, as there is
8640      # no search path for DLLs.
8641      hardcode_libdir_flag_spec=' '
8642      allow_undefined_flag=unsupported
8643      # Tell ltmain to make .lib files, not .a files.
8644      libext=lib
8645      # Tell ltmain to make .dll files, not .so files.
8646      shrext_cmds=".dll"
8647      # FIXME: Setting linknames here is a bad hack.
8648      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8649      # The linker will automatically build a .lib file if we build a DLL.
8650      old_archive_From_new_cmds='true'
8651      # FIXME: Should let the user specify the lib program.
8652      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8653      fix_srcfile_path='`cygpath -w "$srcfile"`'
8654      enable_shared_with_static_runtimes=yes
8655      ;;
8656
8657    darwin* | rhapsody*)
8658      case $host_os in
8659      rhapsody* | darwin1.[012])
8660	allow_undefined_flag='${wl}-undefined ${wl}suppress'
8661	;;
8662      *) # Darwin 1.3 on
8663	if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8664	  allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8665	else
8666	  case ${MACOSX_DEPLOYMENT_TARGET} in
8667	  10.[012])
8668	    allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8669	    ;;
8670	  10.*)
8671	    allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8672	    ;;
8673	  esac
8674	fi
8675	;;
8676      esac
8677      archive_cmds_need_lc=no
8678      hardcode_direct=no
8679      hardcode_automatic=yes
8680      hardcode_shlibpath_var=unsupported
8681      whole_archive_flag_spec=''
8682      link_all_deplibs=yes
8683    if test "$GCC" = yes ; then
8684	output_verbose_link_cmd='echo'
8685	archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8686      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8687      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8688      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}'
8689      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}'
8690    else
8691      case $cc_basename in
8692      xlc*)
8693	output_verbose_link_cmd='echo'
8694	archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8695	module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8696	# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8697	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}'
8698	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}'
8699	;;
8700      *)
8701	ld_shlibs=no
8702	;;
8703      esac
8704    fi
8705    ;;
8706
8707    dgux*)
8708      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8709      hardcode_libdir_flag_spec='-L$libdir'
8710      hardcode_shlibpath_var=no
8711      ;;
8712
8713    freebsd1*)
8714      ld_shlibs=no
8715      ;;
8716
8717    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8718    # support.  Future versions do this automatically, but an explicit c++rt0.o
8719    # does not break anything, and helps significantly (at the cost of a little
8720    # extra space).
8721    freebsd2.2*)
8722      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8723      hardcode_libdir_flag_spec='-R$libdir'
8724      hardcode_direct=yes
8725      hardcode_shlibpath_var=no
8726      ;;
8727
8728    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8729    freebsd2*)
8730      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8731      hardcode_direct=yes
8732      hardcode_minus_L=yes
8733      hardcode_shlibpath_var=no
8734      ;;
8735
8736    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8737    freebsd* | kfreebsd*-gnu | dragonfly*)
8738      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8739      hardcode_libdir_flag_spec='-R$libdir'
8740      hardcode_direct=yes
8741      hardcode_shlibpath_var=no
8742      ;;
8743
8744    hpux9*)
8745      if test "$GCC" = yes; then
8746	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'
8747      else
8748	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'
8749      fi
8750      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8751      hardcode_libdir_separator=:
8752      hardcode_direct=yes
8753
8754      # hardcode_minus_L: Not really in the search PATH,
8755      # but as the default location of the library.
8756      hardcode_minus_L=yes
8757      export_dynamic_flag_spec='${wl}-E'
8758      ;;
8759
8760    hpux10*)
8761      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8762	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8763      else
8764	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8765      fi
8766      if test "$with_gnu_ld" = no; then
8767	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8768	hardcode_libdir_separator=:
8769
8770	hardcode_direct=yes
8771	export_dynamic_flag_spec='${wl}-E'
8772
8773	# hardcode_minus_L: Not really in the search PATH,
8774	# but as the default location of the library.
8775	hardcode_minus_L=yes
8776      fi
8777      ;;
8778
8779    hpux11*)
8780      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8781	case $host_cpu in
8782	hppa*64*)
8783	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8784	  ;;
8785	ia64*)
8786	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8787	  ;;
8788	*)
8789	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8790	  ;;
8791	esac
8792      else
8793	case $host_cpu in
8794	hppa*64*)
8795	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8796	  ;;
8797	ia64*)
8798	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8799	  ;;
8800	*)
8801	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8802	  ;;
8803	esac
8804      fi
8805      if test "$with_gnu_ld" = no; then
8806	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8807	hardcode_libdir_separator=:
8808
8809	case $host_cpu in
8810	hppa*64*|ia64*)
8811	  hardcode_libdir_flag_spec_ld='+b $libdir'
8812	  hardcode_direct=no
8813	  hardcode_shlibpath_var=no
8814	  ;;
8815	*)
8816	  hardcode_direct=yes
8817	  export_dynamic_flag_spec='${wl}-E'
8818
8819	  # hardcode_minus_L: Not really in the search PATH,
8820	  # but as the default location of the library.
8821	  hardcode_minus_L=yes
8822	  ;;
8823	esac
8824      fi
8825      ;;
8826
8827    irix5* | irix6* | nonstopux*)
8828      if test "$GCC" = yes; then
8829	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'
8830      else
8831	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'
8832	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8833      fi
8834      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8835      hardcode_libdir_separator=:
8836      link_all_deplibs=yes
8837      ;;
8838
8839    netbsd*)
8840      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8841	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8842      else
8843	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8844      fi
8845      hardcode_libdir_flag_spec='-R$libdir'
8846      hardcode_direct=yes
8847      hardcode_shlibpath_var=no
8848      ;;
8849
8850    newsos6)
8851      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8852      hardcode_direct=yes
8853      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8854      hardcode_libdir_separator=:
8855      hardcode_shlibpath_var=no
8856      ;;
8857
8858    openbsd*)
8859      hardcode_direct=yes
8860      hardcode_shlibpath_var=no
8861      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8862	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags -o $lib'
8863	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
8864	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8865	export_dynamic_flag_spec='${wl}-E'
8866      else
8867	case $host_os in
8868	openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8869	  archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8870	  hardcode_libdir_flag_spec='-R$libdir'
8871	  ;;
8872	*)
8873	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8874	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8875	  ;;
8876	esac
8877      fi
8878      ;;
8879
8880    os2*)
8881      hardcode_libdir_flag_spec='-L$libdir'
8882      hardcode_minus_L=yes
8883      allow_undefined_flag=unsupported
8884      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'
8885      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8886      ;;
8887
8888    osf3*)
8889      if test "$GCC" = yes; then
8890	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8891	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'
8892      else
8893	allow_undefined_flag=' -expect_unresolved \*'
8894	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'
8895      fi
8896      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8897      hardcode_libdir_separator=:
8898      ;;
8899
8900    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8901      if test "$GCC" = yes; then
8902	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8903	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'
8904	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8905      else
8906	allow_undefined_flag=' -expect_unresolved \*'
8907	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'
8908	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8909	$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'
8910
8911	# Both c and cxx compiler support -rpath directly
8912	hardcode_libdir_flag_spec='-rpath $libdir'
8913      fi
8914      hardcode_libdir_separator=:
8915      ;;
8916
8917    solaris*)
8918      no_undefined_flag=' -z text'
8919      if test "$GCC" = yes; then
8920	wlarc='${wl}'
8921	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8922	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8923	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8924      else
8925	wlarc=''
8926	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8927	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8928	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8929      fi
8930      hardcode_libdir_flag_spec='-R$libdir'
8931      hardcode_shlibpath_var=no
8932      case $host_os in
8933      solaris2.[0-5] | solaris2.[0-5].*) ;;
8934      *)
8935	# The compiler driver will combine and reorder linker options,
8936	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8937	# but is careful enough not to reorder.
8938 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8939	if test "$GCC" = yes; then
8940	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8941	else
8942	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8943	fi
8944	;;
8945      esac
8946      link_all_deplibs=yes
8947      ;;
8948
8949    sunos4*)
8950      if test "x$host_vendor" = xsequent; then
8951	# Use $CC to link under sequent, because it throws in some extra .o
8952	# files that make .init and .fini sections work.
8953	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8954      else
8955	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8956      fi
8957      hardcode_libdir_flag_spec='-L$libdir'
8958      hardcode_direct=yes
8959      hardcode_minus_L=yes
8960      hardcode_shlibpath_var=no
8961      ;;
8962
8963    sysv4)
8964      case $host_vendor in
8965	sni)
8966	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8967	  hardcode_direct=yes # is this really true???
8968	;;
8969	siemens)
8970	  ## LD is ld it makes a PLAMLIB
8971	  ## CC just makes a GrossModule.
8972	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8973	  reload_cmds='$CC -r -o $output$reload_objs'
8974	  hardcode_direct=no
8975	;;
8976	motorola)
8977	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8978	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8979	;;
8980      esac
8981      runpath_var='LD_RUN_PATH'
8982      hardcode_shlibpath_var=no
8983      ;;
8984
8985    sysv4.3*)
8986      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8987      hardcode_shlibpath_var=no
8988      export_dynamic_flag_spec='-Bexport'
8989      ;;
8990
8991    sysv4*MP*)
8992      if test -d /usr/nec; then
8993	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8994	hardcode_shlibpath_var=no
8995	runpath_var=LD_RUN_PATH
8996	hardcode_runpath_var=yes
8997	ld_shlibs=yes
8998      fi
8999      ;;
9000
9001    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9002      no_undefined_flag='${wl}-z,text'
9003      archive_cmds_need_lc=no
9004      hardcode_shlibpath_var=no
9005      runpath_var='LD_RUN_PATH'
9006
9007      if test "$GCC" = yes; then
9008	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9009	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9010      else
9011	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9012	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9013      fi
9014      ;;
9015
9016    sysv5* | sco3.2v5* | sco5v6*)
9017      # Note: We can NOT use -z defs as we might desire, because we do not
9018      # link with -lc, and that would cause any symbols used from libc to
9019      # always be unresolved, which means just about no library would
9020      # ever link correctly.  If we're not using GNU ld we use -z text
9021      # though, which does catch some bad symbols but isn't as heavy-handed
9022      # as -z defs.
9023      no_undefined_flag='${wl}-z,text'
9024      allow_undefined_flag='${wl}-z,nodefs'
9025      archive_cmds_need_lc=no
9026      hardcode_shlibpath_var=no
9027      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9028      hardcode_libdir_separator=':'
9029      link_all_deplibs=yes
9030      export_dynamic_flag_spec='${wl}-Bexport'
9031      runpath_var='LD_RUN_PATH'
9032
9033      if test "$GCC" = yes; then
9034	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9035	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9036      else
9037	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9038	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9039      fi
9040      ;;
9041
9042    uts4*)
9043      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9044      hardcode_libdir_flag_spec='-L$libdir'
9045      hardcode_shlibpath_var=no
9046      ;;
9047
9048    *)
9049      ld_shlibs=no
9050      ;;
9051    esac
9052  fi
9053
9054{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9055echo "${ECHO_T}$ld_shlibs" >&6; }
9056test "$ld_shlibs" = no && can_build_shared=no
9057
9058#
9059# Do we need to explicitly link libc?
9060#
9061case "x$archive_cmds_need_lc" in
9062x|xyes)
9063  # Assume -lc should be added
9064  archive_cmds_need_lc=yes
9065
9066  if test "$enable_shared" = yes && test "$GCC" = yes; then
9067    case $archive_cmds in
9068    *'~'*)
9069      # FIXME: we may have to deal with multi-command sequences.
9070      ;;
9071    '$CC '*)
9072      # Test whether the compiler implicitly links with -lc since on some
9073      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9074      # to ld, don't add -lc before -lgcc.
9075      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9076echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9077      $rm conftest*
9078      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9079
9080      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9081  (eval $ac_compile) 2>&5
9082  ac_status=$?
9083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084  (exit $ac_status); } 2>conftest.err; then
9085	soname=conftest
9086	lib=conftest
9087	libobjs=conftest.$ac_objext
9088	deplibs=
9089	wl=$lt_prog_compiler_wl
9090	pic_flag=$lt_prog_compiler_pic
9091	compiler_flags=-v
9092	linker_flags=-v
9093	verstring=
9094	output_objdir=.
9095	libname=conftest
9096	lt_save_allow_undefined_flag=$allow_undefined_flag
9097	allow_undefined_flag=
9098	if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9099  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9100  ac_status=$?
9101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102  (exit $ac_status); }
9103	then
9104	  archive_cmds_need_lc=no
9105	else
9106	  archive_cmds_need_lc=yes
9107	fi
9108	allow_undefined_flag=$lt_save_allow_undefined_flag
9109      else
9110	cat conftest.err 1>&5
9111      fi
9112      $rm conftest*
9113      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9114echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9115      ;;
9116    esac
9117  fi
9118  ;;
9119esac
9120
9121{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9122echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9123library_names_spec=
9124libname_spec='lib$name'
9125soname_spec=
9126shrext_cmds=".so"
9127postinstall_cmds=
9128postuninstall_cmds=
9129finish_cmds=
9130finish_eval=
9131shlibpath_var=
9132shlibpath_overrides_runpath=unknown
9133version_type=none
9134dynamic_linker="$host_os ld.so"
9135sys_lib_dlsearch_path_spec="/lib /usr/lib"
9136if test "$GCC" = yes; then
9137  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9138  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9139    # if the path contains ";" then we assume it to be the separator
9140    # otherwise default to the standard path separator (i.e. ":") - it is
9141    # assumed that no part of a normal pathname contains ";" but that should
9142    # okay in the real world where ";" in dirpaths is itself problematic.
9143    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9144  else
9145    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9146  fi
9147else
9148  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9149fi
9150tmp="$sys_lib_search_path_spec"
9151sys_lib_search_path_spec=
9152sp=
9153for i in $tmp
9154do
9155  test -d $i && sys_lib_search_path_spec="$sys_lib_search_path_spec$sp$i"
9156  sp=" "
9157done
9158
9159need_lib_prefix=unknown
9160hardcode_into_libs=no
9161
9162# when you set need_version to no, make sure it does not cause -set_version
9163# flags to be left without arguments
9164need_version=unknown
9165
9166case $host_os in
9167aix3*)
9168  version_type=linux
9169  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9170  shlibpath_var=LIBPATH
9171
9172  # AIX 3 has no versioning support, so we append a major version to the name.
9173  soname_spec='${libname}${release}${shared_ext}$major'
9174  ;;
9175
9176aix4* | aix5*)
9177  version_type=linux
9178  need_lib_prefix=no
9179  need_version=no
9180  hardcode_into_libs=yes
9181  if test "$host_cpu" = ia64; then
9182    # AIX 5 supports IA64
9183    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9184    shlibpath_var=LD_LIBRARY_PATH
9185  else
9186    # With GCC up to 2.95.x, collect2 would create an import file
9187    # for dependence libraries.  The import file would start with
9188    # the line '#! .'.  This would cause the generated library to
9189    # depend on '.', always an invalid library.  This was fixed in
9190    # development snapshots of GCC prior to 3.0.
9191    case $host_os in
9192      aix4 | aix4.[01] | aix4.[01].*)
9193      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9194	   echo ' yes '
9195	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9196	:
9197      else
9198	can_build_shared=no
9199      fi
9200      ;;
9201    esac
9202    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9203    # soname into executable. Probably we can add versioning support to
9204    # collect2, so additional links can be useful in future.
9205    if test "$aix_use_runtimelinking" = yes; then
9206      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9207      # instead of lib<name>.a to let people know that these are not
9208      # typical AIX shared libraries.
9209      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9210    else
9211      # We preserve .a as extension for shared libraries through AIX4.2
9212      # and later when we are not doing run time linking.
9213      library_names_spec='${libname}${release}.a $libname.a'
9214      soname_spec='${libname}${release}${shared_ext}$major'
9215    fi
9216    shlibpath_var=LIBPATH
9217  fi
9218  ;;
9219
9220amigaos*)
9221  library_names_spec='$libname.ixlibrary $libname.a'
9222  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9223  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'
9224  ;;
9225
9226beos*)
9227  library_names_spec='${libname}${shared_ext}'
9228  dynamic_linker="$host_os ld.so"
9229  shlibpath_var=LIBRARY_PATH
9230  ;;
9231
9232bsdi[45]*)
9233  version_type=linux
9234  need_version=no
9235  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9236  soname_spec='${libname}${release}${shared_ext}$major'
9237  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9238  shlibpath_var=LD_LIBRARY_PATH
9239  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9240  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9241  # the default ld.so.conf also contains /usr/contrib/lib and
9242  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9243  # libtool to hard-code these into programs
9244  ;;
9245
9246cygwin* | mingw* | pw32*)
9247  version_type=windows
9248  shrext_cmds=".dll"
9249  need_version=no
9250  need_lib_prefix=no
9251
9252  case $GCC,$host_os in
9253  yes,cygwin* | yes,mingw* | yes,pw32*)
9254    library_names_spec='$libname.dll.a'
9255    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9256    postinstall_cmds='base_file=`basename \${file}`~
9257      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9258      dldir=$destdir/`dirname \$dlpath`~
9259      test -d \$dldir || mkdir -p \$dldir~
9260      $install_prog $dir/$dlname \$dldir/$dlname~
9261      chmod a+x \$dldir/$dlname'
9262    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9263      dlpath=$dir/\$dldll~
9264       $rm \$dlpath'
9265    shlibpath_overrides_runpath=yes
9266
9267    case $host_os in
9268    cygwin*)
9269      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9270      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9271      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9272      ;;
9273    mingw*)
9274      # MinGW DLLs use traditional 'lib' prefix
9275      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9276      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9277      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9278	# It is most probably a Windows format PATH printed by
9279	# mingw gcc, but we are running on Cygwin. Gcc prints its search
9280	# path with ; separators, and with drive letters. We can handle the
9281	# drive letters (cygwin fileutils understands them), so leave them,
9282	# especially as we might pass files found there to a mingw objdump,
9283	# which wouldn't understand a cygwinified path. Ahh.
9284	sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9285      else
9286	sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9287      fi
9288      ;;
9289    pw32*)
9290      # pw32 DLLs use 'pw' prefix rather than 'lib'
9291      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9292      ;;
9293    esac
9294    ;;
9295
9296  *)
9297    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9298    ;;
9299  esac
9300  dynamic_linker='Win32 ld.exe'
9301  # FIXME: first we should search . and the directory the executable is in
9302  shlibpath_var=PATH
9303  ;;
9304
9305darwin* | rhapsody*)
9306  dynamic_linker="$host_os dyld"
9307  version_type=darwin
9308  need_lib_prefix=no
9309  need_version=no
9310  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9311  soname_spec='${libname}${release}${major}$shared_ext'
9312  shlibpath_overrides_runpath=yes
9313  shlibpath_var=DYLD_LIBRARY_PATH
9314  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9315  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9316  if test "$GCC" = yes; then
9317    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"`
9318  else
9319    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9320  fi
9321  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9322  ;;
9323
9324dgux*)
9325  version_type=linux
9326  need_lib_prefix=no
9327  need_version=no
9328  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9329  soname_spec='${libname}${release}${shared_ext}$major'
9330  shlibpath_var=LD_LIBRARY_PATH
9331  ;;
9332
9333freebsd1*)
9334  dynamic_linker=no
9335  ;;
9336
9337kfreebsd*-gnu)
9338  version_type=linux
9339  need_lib_prefix=no
9340  need_version=no
9341  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9342  soname_spec='${libname}${release}${shared_ext}$major'
9343  shlibpath_var=LD_LIBRARY_PATH
9344  shlibpath_overrides_runpath=no
9345  hardcode_into_libs=yes
9346  dynamic_linker='GNU ld.so'
9347  ;;
9348
9349freebsd* | dragonfly*)
9350  # DragonFly does not have aout.  When/if they implement a new
9351  # versioning mechanism, adjust this.
9352  if test -x /usr/bin/objformat; then
9353    objformat=`/usr/bin/objformat`
9354  else
9355    case $host_os in
9356    freebsd[123]*) objformat=aout ;;
9357    *) objformat=elf ;;
9358    esac
9359  fi
9360  version_type=freebsd-$objformat
9361  case $version_type in
9362    freebsd-elf*)
9363      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9364      need_version=no
9365      need_lib_prefix=no
9366      ;;
9367    freebsd-*)
9368      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9369      need_version=yes
9370      ;;
9371  esac
9372  shlibpath_var=LD_LIBRARY_PATH
9373  case $host_os in
9374  freebsd2*)
9375    shlibpath_overrides_runpath=yes
9376    ;;
9377  freebsd3.[01]* | freebsdelf3.[01]*)
9378    shlibpath_overrides_runpath=yes
9379    hardcode_into_libs=yes
9380    ;;
9381  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9382  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9383    shlibpath_overrides_runpath=no
9384    hardcode_into_libs=yes
9385    ;;
9386  *) # from 4.6 on, and DragonFly
9387    shlibpath_overrides_runpath=yes
9388    hardcode_into_libs=yes
9389    ;;
9390  esac
9391  ;;
9392
9393gnu*)
9394  version_type=linux
9395  need_lib_prefix=no
9396  need_version=no
9397  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9398  soname_spec='${libname}${release}${shared_ext}$major'
9399  shlibpath_var=LD_LIBRARY_PATH
9400  hardcode_into_libs=yes
9401  ;;
9402
9403hpux9* | hpux10* | hpux11*)
9404  # Give a soname corresponding to the major version so that dld.sl refuses to
9405  # link against other versions.
9406  version_type=sunos
9407  need_lib_prefix=no
9408  need_version=no
9409  case $host_cpu in
9410  ia64*)
9411    shrext_cmds='.so'
9412    hardcode_into_libs=yes
9413    dynamic_linker="$host_os dld.so"
9414    shlibpath_var=LD_LIBRARY_PATH
9415    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9416    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9417    soname_spec='${libname}${release}${shared_ext}$major'
9418    if test "X$HPUX_IA64_MODE" = X32; then
9419      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9420    else
9421      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9422    fi
9423    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9424    ;;
9425   hppa*64*)
9426     shrext_cmds='.sl'
9427     hardcode_into_libs=yes
9428     dynamic_linker="$host_os dld.sl"
9429     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9430     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9431     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9432     soname_spec='${libname}${release}${shared_ext}$major'
9433     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9434     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9435     ;;
9436   *)
9437    shrext_cmds='.sl'
9438    dynamic_linker="$host_os dld.sl"
9439    shlibpath_var=SHLIB_PATH
9440    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9441    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9442    soname_spec='${libname}${release}${shared_ext}$major'
9443    ;;
9444  esac
9445  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9446  postinstall_cmds='chmod 555 $lib'
9447  ;;
9448
9449interix3*)
9450  version_type=linux
9451  need_lib_prefix=no
9452  need_version=no
9453  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9454  soname_spec='${libname}${release}${shared_ext}$major'
9455  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9456  shlibpath_var=LD_LIBRARY_PATH
9457  shlibpath_overrides_runpath=no
9458  hardcode_into_libs=yes
9459  ;;
9460
9461irix5* | irix6* | nonstopux*)
9462  case $host_os in
9463    nonstopux*) version_type=nonstopux ;;
9464    *)
9465	if test "$lt_cv_prog_gnu_ld" = yes; then
9466		version_type=linux
9467	else
9468		version_type=irix
9469	fi ;;
9470  esac
9471  need_lib_prefix=no
9472  need_version=no
9473  soname_spec='${libname}${release}${shared_ext}$major'
9474  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9475  case $host_os in
9476  irix5* | nonstopux*)
9477    libsuff= shlibsuff=
9478    ;;
9479  *)
9480    case $LD in # libtool.m4 will add one of these switches to LD
9481    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9482      libsuff= shlibsuff= libmagic=32-bit;;
9483    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9484      libsuff=32 shlibsuff=N32 libmagic=N32;;
9485    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9486      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9487    *) libsuff= shlibsuff= libmagic=never-match;;
9488    esac
9489    ;;
9490  esac
9491  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9492  shlibpath_overrides_runpath=no
9493  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9494  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9495  hardcode_into_libs=yes
9496  ;;
9497
9498# No shared lib support for Linux oldld, aout, or coff.
9499linux*oldld* | linux*aout* | linux*coff*)
9500  dynamic_linker=no
9501  ;;
9502
9503# This must be Linux ELF.
9504linux*)
9505  version_type=linux
9506  need_lib_prefix=no
9507  need_version=no
9508  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9509  soname_spec='${libname}${release}${shared_ext}$major'
9510  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9511  shlibpath_var=LD_LIBRARY_PATH
9512  shlibpath_overrides_runpath=no
9513  # This implies no fast_install, which is unacceptable.
9514  # Some rework will be needed to allow for fast_install
9515  # before this can be enabled.
9516  hardcode_into_libs=yes
9517
9518  # Append ld.so.conf contents to the search path
9519  if test -f /etc/ld.so.conf; then
9520    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9521    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9522  fi
9523
9524  # We used to test for /lib/ld.so.1 and disable shared libraries on
9525  # powerpc, because MkLinux only supported shared libraries with the
9526  # GNU dynamic linker.  Since this was broken with cross compilers,
9527  # most powerpc-linux boxes support dynamic linking these days and
9528  # people can always --disable-shared, the test was removed, and we
9529  # assume the GNU/Linux dynamic linker is in use.
9530  dynamic_linker='GNU/Linux ld.so'
9531  ;;
9532
9533mirbsd*)
9534  version_type=linux
9535  sys_lib_dlsearch_path_spec="/usr/lib"
9536  need_lib_prefix=no
9537  need_version=no
9538  library_names_spec='${libname}${release}${shared_ext}$versuffix2 ${libname}${shared_ext}$versuffix2'
9539  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9540  shlibpath_var=LD_LIBRARY_PATH
9541  shlibpath_overrides_runpath=yes
9542  ;;
9543
9544knetbsd*-gnu)
9545  version_type=linux
9546  need_lib_prefix=no
9547  need_version=no
9548  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9549  soname_spec='${libname}${release}${shared_ext}$major'
9550  shlibpath_var=LD_LIBRARY_PATH
9551  shlibpath_overrides_runpath=no
9552  hardcode_into_libs=yes
9553  dynamic_linker='GNU ld.so'
9554  ;;
9555
9556netbsd*)
9557  version_type=sunos
9558  need_lib_prefix=no
9559  need_version=no
9560  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9561    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9562    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9563    dynamic_linker='NetBSD (a.out) ld.so'
9564  else
9565    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9566    soname_spec='${libname}${release}${shared_ext}$major'
9567    dynamic_linker='NetBSD ld.elf_so'
9568  fi
9569  shlibpath_var=LD_LIBRARY_PATH
9570  shlibpath_overrides_runpath=yes
9571  hardcode_into_libs=yes
9572  ;;
9573
9574newsos6)
9575  version_type=linux
9576  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9577  shlibpath_var=LD_LIBRARY_PATH
9578  shlibpath_overrides_runpath=yes
9579  ;;
9580
9581nto-qnx*)
9582  version_type=linux
9583  need_lib_prefix=no
9584  need_version=no
9585  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9586  soname_spec='${libname}${release}${shared_ext}$major'
9587  shlibpath_var=LD_LIBRARY_PATH
9588  shlibpath_overrides_runpath=yes
9589  ;;
9590
9591openbsd*)
9592  version_type=linux
9593  sys_lib_dlsearch_path_spec="/usr/lib"
9594  need_lib_prefix=no
9595  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9596  case $host_os in
9597    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9598    *)                         need_version=no  ;;
9599  esac
9600  library_names_spec='${libname}${release}${shared_ext}$versuffix2 ${libname}${shared_ext}$versuffix2'
9601  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9602  shlibpath_var=LD_LIBRARY_PATH
9603  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9604    case $host_os in
9605      openbsd2.[89] | openbsd2.[89].*)
9606	shlibpath_overrides_runpath=no
9607	;;
9608      *)
9609	shlibpath_overrides_runpath=yes
9610	;;
9611      esac
9612  else
9613    shlibpath_overrides_runpath=yes
9614  fi
9615  ;;
9616
9617os2*)
9618  libname_spec='$name'
9619  shrext_cmds=".dll"
9620  need_lib_prefix=no
9621  library_names_spec='$libname${shared_ext} $libname.a'
9622  dynamic_linker='OS/2 ld.exe'
9623  shlibpath_var=LIBPATH
9624  ;;
9625
9626osf3* | osf4* | osf5*)
9627  version_type=osf
9628  need_lib_prefix=no
9629  need_version=no
9630  soname_spec='${libname}${release}${shared_ext}$major'
9631  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9632  shlibpath_var=LD_LIBRARY_PATH
9633  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9634  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9635  ;;
9636
9637rdos*)
9638  dynamic_linker=no
9639  ;;
9640
9641solaris*)
9642  version_type=linux
9643  need_lib_prefix=no
9644  need_version=no
9645  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9646  soname_spec='${libname}${release}${shared_ext}$major'
9647  shlibpath_var=LD_LIBRARY_PATH
9648  shlibpath_overrides_runpath=yes
9649  hardcode_into_libs=yes
9650  # ldd complains unless libraries are executable
9651  postinstall_cmds='chmod +x $lib'
9652  ;;
9653
9654sunos4*)
9655  version_type=sunos
9656  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9657  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9658  shlibpath_var=LD_LIBRARY_PATH
9659  shlibpath_overrides_runpath=yes
9660  if test "$with_gnu_ld" = yes; then
9661    need_lib_prefix=no
9662  fi
9663  need_version=yes
9664  ;;
9665
9666sysv4 | sysv4.3*)
9667  version_type=linux
9668  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9669  soname_spec='${libname}${release}${shared_ext}$major'
9670  shlibpath_var=LD_LIBRARY_PATH
9671  case $host_vendor in
9672    sni)
9673      shlibpath_overrides_runpath=no
9674      need_lib_prefix=no
9675      export_dynamic_flag_spec='${wl}-Blargedynsym'
9676      runpath_var=LD_RUN_PATH
9677      ;;
9678    siemens)
9679      need_lib_prefix=no
9680      ;;
9681    motorola)
9682      need_lib_prefix=no
9683      need_version=no
9684      shlibpath_overrides_runpath=no
9685      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9686      ;;
9687  esac
9688  ;;
9689
9690sysv4*MP*)
9691  if test -d /usr/nec ;then
9692    version_type=linux
9693    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9694    soname_spec='$libname${shared_ext}.$major'
9695    shlibpath_var=LD_LIBRARY_PATH
9696  fi
9697  ;;
9698
9699sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9700  version_type=freebsd-elf
9701  need_lib_prefix=no
9702  need_version=no
9703  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9704  soname_spec='${libname}${release}${shared_ext}$major'
9705  shlibpath_var=LD_LIBRARY_PATH
9706  hardcode_into_libs=yes
9707  if test "$with_gnu_ld" = yes; then
9708    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9709    shlibpath_overrides_runpath=no
9710  else
9711    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9712    shlibpath_overrides_runpath=yes
9713    case $host_os in
9714      sco3.2v5*)
9715	sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9716	;;
9717    esac
9718  fi
9719  sys_lib_dlsearch_path_spec='/usr/lib'
9720  ;;
9721
9722uts4*)
9723  version_type=linux
9724  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9725  soname_spec='${libname}${release}${shared_ext}$major'
9726  shlibpath_var=LD_LIBRARY_PATH
9727  ;;
9728
9729*)
9730  dynamic_linker=no
9731  ;;
9732esac
9733{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9734echo "${ECHO_T}$dynamic_linker" >&6; }
9735test "$dynamic_linker" = no && can_build_shared=no
9736
9737variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9738if test "$GCC" = yes; then
9739  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9740fi
9741
9742{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9743echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9744hardcode_action=
9745if test -n "$hardcode_libdir_flag_spec" || \
9746   test -n "$runpath_var" || \
9747   test "X$hardcode_automatic" = "Xyes" ; then
9748
9749  # We can hardcode non-existant directories.
9750  if test "$hardcode_direct" != no &&
9751     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9752     # have to relink, otherwise we might link with an installed library
9753     # when we should be linking with a yet-to-be-installed one
9754     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9755     test "$hardcode_minus_L" != no; then
9756    # Linking always hardcodes the temporary library directory.
9757    hardcode_action=relink
9758  else
9759    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9760    hardcode_action=immediate
9761  fi
9762else
9763  # We cannot hardcode anything, or else we can only hardcode existing
9764  # directories.
9765  hardcode_action=unsupported
9766fi
9767{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9768echo "${ECHO_T}$hardcode_action" >&6; }
9769
9770if test "$hardcode_action" = relink; then
9771  # Fast installation is not supported
9772  enable_fast_install=no
9773elif test "$shlibpath_overrides_runpath" = yes ||
9774     test "$enable_shared" = no; then
9775  # Fast installation is not necessary
9776  enable_fast_install=needless
9777fi
9778
9779striplib=
9780old_striplib=
9781{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9782echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9783if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9784  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9785  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9786  { echo "$as_me:$LINENO: result: yes" >&5
9787echo "${ECHO_T}yes" >&6; }
9788else
9789# FIXME - insert some real tests, host_os isn't really good enough
9790  case $host_os in
9791  darwin*)
9792    if test -n "$STRIP" ; then
9793      striplib="$STRIP -x"
9794      { echo "$as_me:$LINENO: result: yes" >&5
9795echo "${ECHO_T}yes" >&6; }
9796    else
9797      { echo "$as_me:$LINENO: result: no" >&5
9798echo "${ECHO_T}no" >&6; }
9799    fi
9800    ;;
9801  *)
9802    { echo "$as_me:$LINENO: result: no" >&5
9803echo "${ECHO_T}no" >&6; }
9804    ;;
9805  esac
9806fi
9807
9808if test "x$enable_dlopen" != xyes; then
9809  enable_dlopen=unknown
9810  enable_dlopen_self=unknown
9811  enable_dlopen_self_static=unknown
9812else
9813  lt_cv_dlopen=no
9814  lt_cv_dlopen_libs=
9815
9816  case $host_os in
9817  beos*)
9818    lt_cv_dlopen="load_add_on"
9819    lt_cv_dlopen_libs=
9820    lt_cv_dlopen_self=yes
9821    ;;
9822
9823  mingw* | pw32*)
9824    lt_cv_dlopen="LoadLibrary"
9825    lt_cv_dlopen_libs=
9826   ;;
9827
9828  cygwin*)
9829    lt_cv_dlopen="dlopen"
9830    lt_cv_dlopen_libs=
9831   ;;
9832
9833  darwin*)
9834  # if libdl is installed we need to link against it
9835    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9836echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9837if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9838  echo $ECHO_N "(cached) $ECHO_C" >&6
9839else
9840  ac_check_lib_save_LIBS=$LIBS
9841LIBS="-ldl  $LIBS"
9842cat >conftest.$ac_ext <<_ACEOF
9843/* confdefs.h.  */
9844_ACEOF
9845cat confdefs.h >>conftest.$ac_ext
9846cat >>conftest.$ac_ext <<_ACEOF
9847/* end confdefs.h.  */
9848
9849/* Override any GCC internal prototype to avoid an error.
9850   Use char because int might match the return type of a GCC
9851   builtin and then its argument prototype would still apply.  */
9852#ifdef __cplusplus
9853extern "C"
9854#endif
9855char dlopen ();
9856int
9857main ()
9858{
9859return dlopen ();
9860  ;
9861  return 0;
9862}
9863_ACEOF
9864rm -f conftest.$ac_objext conftest$ac_exeext
9865if { (ac_try="$ac_link"
9866case "(($ac_try" in
9867  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9868  *) ac_try_echo=$ac_try;;
9869esac
9870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9871  (eval "$ac_link") 2>conftest.er1
9872  ac_status=$?
9873  grep -v '^ *+' conftest.er1 >conftest.err
9874  rm -f conftest.er1
9875  cat conftest.err >&5
9876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877  (exit $ac_status); } &&
9878	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9879  { (case "(($ac_try" in
9880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9881  *) ac_try_echo=$ac_try;;
9882esac
9883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9884  (eval "$ac_try") 2>&5
9885  ac_status=$?
9886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887  (exit $ac_status); }; } &&
9888	 { ac_try='test -s conftest$ac_exeext'
9889  { (case "(($ac_try" in
9890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891  *) ac_try_echo=$ac_try;;
9892esac
9893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894  (eval "$ac_try") 2>&5
9895  ac_status=$?
9896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897  (exit $ac_status); }; }; then
9898  ac_cv_lib_dl_dlopen=yes
9899else
9900  echo "$as_me: failed program was:" >&5
9901sed 's/^/| /' conftest.$ac_ext >&5
9902
9903	ac_cv_lib_dl_dlopen=no
9904fi
9905
9906rm -f core conftest.err conftest.$ac_objext \
9907      conftest$ac_exeext conftest.$ac_ext
9908LIBS=$ac_check_lib_save_LIBS
9909fi
9910{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9911echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9912if test $ac_cv_lib_dl_dlopen = yes; then
9913  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9914else
9915
9916    lt_cv_dlopen="dyld"
9917    lt_cv_dlopen_libs=
9918    lt_cv_dlopen_self=yes
9919
9920fi
9921
9922   ;;
9923
9924  *)
9925    { echo "$as_me:$LINENO: checking for shl_load" >&5
9926echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9927if test "${ac_cv_func_shl_load+set}" = set; then
9928  echo $ECHO_N "(cached) $ECHO_C" >&6
9929else
9930  cat >conftest.$ac_ext <<_ACEOF
9931/* confdefs.h.  */
9932_ACEOF
9933cat confdefs.h >>conftest.$ac_ext
9934cat >>conftest.$ac_ext <<_ACEOF
9935/* end confdefs.h.  */
9936/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9937   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9938#define shl_load innocuous_shl_load
9939
9940/* System header to define __stub macros and hopefully few prototypes,
9941    which can conflict with char shl_load (); below.
9942    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9943    <limits.h> exists even on freestanding compilers.  */
9944
9945#ifdef __STDC__
9946# include <limits.h>
9947#else
9948# include <assert.h>
9949#endif
9950
9951#undef shl_load
9952
9953/* Override any GCC internal prototype to avoid an error.
9954   Use char because int might match the return type of a GCC
9955   builtin and then its argument prototype would still apply.  */
9956#ifdef __cplusplus
9957extern "C"
9958#endif
9959char shl_load ();
9960/* The GNU C library defines this for functions which it implements
9961    to always fail with ENOSYS.  Some functions are actually named
9962    something starting with __ and the normal name is an alias.  */
9963#if defined __stub_shl_load || defined __stub___shl_load
9964choke me
9965#endif
9966
9967int
9968main ()
9969{
9970return shl_load ();
9971  ;
9972  return 0;
9973}
9974_ACEOF
9975rm -f conftest.$ac_objext conftest$ac_exeext
9976if { (ac_try="$ac_link"
9977case "(($ac_try" in
9978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9979  *) ac_try_echo=$ac_try;;
9980esac
9981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9982  (eval "$ac_link") 2>conftest.er1
9983  ac_status=$?
9984  grep -v '^ *+' conftest.er1 >conftest.err
9985  rm -f conftest.er1
9986  cat conftest.err >&5
9987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988  (exit $ac_status); } &&
9989	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9990  { (case "(($ac_try" in
9991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9992  *) ac_try_echo=$ac_try;;
9993esac
9994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9995  (eval "$ac_try") 2>&5
9996  ac_status=$?
9997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998  (exit $ac_status); }; } &&
9999	 { ac_try='test -s conftest$ac_exeext'
10000  { (case "(($ac_try" in
10001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10002  *) ac_try_echo=$ac_try;;
10003esac
10004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10005  (eval "$ac_try") 2>&5
10006  ac_status=$?
10007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008  (exit $ac_status); }; }; then
10009  ac_cv_func_shl_load=yes
10010else
10011  echo "$as_me: failed program was:" >&5
10012sed 's/^/| /' conftest.$ac_ext >&5
10013
10014	ac_cv_func_shl_load=no
10015fi
10016
10017rm -f core conftest.err conftest.$ac_objext \
10018      conftest$ac_exeext conftest.$ac_ext
10019fi
10020{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10021echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10022if test $ac_cv_func_shl_load = yes; then
10023  lt_cv_dlopen="shl_load"
10024else
10025  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10026echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10027if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10028  echo $ECHO_N "(cached) $ECHO_C" >&6
10029else
10030  ac_check_lib_save_LIBS=$LIBS
10031LIBS="-ldld  $LIBS"
10032cat >conftest.$ac_ext <<_ACEOF
10033/* confdefs.h.  */
10034_ACEOF
10035cat confdefs.h >>conftest.$ac_ext
10036cat >>conftest.$ac_ext <<_ACEOF
10037/* end confdefs.h.  */
10038
10039/* Override any GCC internal prototype to avoid an error.
10040   Use char because int might match the return type of a GCC
10041   builtin and then its argument prototype would still apply.  */
10042#ifdef __cplusplus
10043extern "C"
10044#endif
10045char shl_load ();
10046int
10047main ()
10048{
10049return shl_load ();
10050  ;
10051  return 0;
10052}
10053_ACEOF
10054rm -f conftest.$ac_objext conftest$ac_exeext
10055if { (ac_try="$ac_link"
10056case "(($ac_try" in
10057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10058  *) ac_try_echo=$ac_try;;
10059esac
10060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10061  (eval "$ac_link") 2>conftest.er1
10062  ac_status=$?
10063  grep -v '^ *+' conftest.er1 >conftest.err
10064  rm -f conftest.er1
10065  cat conftest.err >&5
10066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067  (exit $ac_status); } &&
10068	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10069  { (case "(($ac_try" in
10070  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10071  *) ac_try_echo=$ac_try;;
10072esac
10073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10074  (eval "$ac_try") 2>&5
10075  ac_status=$?
10076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077  (exit $ac_status); }; } &&
10078	 { ac_try='test -s conftest$ac_exeext'
10079  { (case "(($ac_try" in
10080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10081  *) ac_try_echo=$ac_try;;
10082esac
10083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10084  (eval "$ac_try") 2>&5
10085  ac_status=$?
10086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087  (exit $ac_status); }; }; then
10088  ac_cv_lib_dld_shl_load=yes
10089else
10090  echo "$as_me: failed program was:" >&5
10091sed 's/^/| /' conftest.$ac_ext >&5
10092
10093	ac_cv_lib_dld_shl_load=no
10094fi
10095
10096rm -f core conftest.err conftest.$ac_objext \
10097      conftest$ac_exeext conftest.$ac_ext
10098LIBS=$ac_check_lib_save_LIBS
10099fi
10100{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10101echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10102if test $ac_cv_lib_dld_shl_load = yes; then
10103  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10104else
10105  { echo "$as_me:$LINENO: checking for dlopen" >&5
10106echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10107if test "${ac_cv_func_dlopen+set}" = set; then
10108  echo $ECHO_N "(cached) $ECHO_C" >&6
10109else
10110  cat >conftest.$ac_ext <<_ACEOF
10111/* confdefs.h.  */
10112_ACEOF
10113cat confdefs.h >>conftest.$ac_ext
10114cat >>conftest.$ac_ext <<_ACEOF
10115/* end confdefs.h.  */
10116/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10117   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10118#define dlopen innocuous_dlopen
10119
10120/* System header to define __stub macros and hopefully few prototypes,
10121    which can conflict with char dlopen (); below.
10122    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10123    <limits.h> exists even on freestanding compilers.  */
10124
10125#ifdef __STDC__
10126# include <limits.h>
10127#else
10128# include <assert.h>
10129#endif
10130
10131#undef dlopen
10132
10133/* Override any GCC internal prototype to avoid an error.
10134   Use char because int might match the return type of a GCC
10135   builtin and then its argument prototype would still apply.  */
10136#ifdef __cplusplus
10137extern "C"
10138#endif
10139char dlopen ();
10140/* The GNU C library defines this for functions which it implements
10141    to always fail with ENOSYS.  Some functions are actually named
10142    something starting with __ and the normal name is an alias.  */
10143#if defined __stub_dlopen || defined __stub___dlopen
10144choke me
10145#endif
10146
10147int
10148main ()
10149{
10150return dlopen ();
10151  ;
10152  return 0;
10153}
10154_ACEOF
10155rm -f conftest.$ac_objext conftest$ac_exeext
10156if { (ac_try="$ac_link"
10157case "(($ac_try" in
10158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10159  *) ac_try_echo=$ac_try;;
10160esac
10161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10162  (eval "$ac_link") 2>conftest.er1
10163  ac_status=$?
10164  grep -v '^ *+' conftest.er1 >conftest.err
10165  rm -f conftest.er1
10166  cat conftest.err >&5
10167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168  (exit $ac_status); } &&
10169	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10170  { (case "(($ac_try" in
10171  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172  *) ac_try_echo=$ac_try;;
10173esac
10174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10175  (eval "$ac_try") 2>&5
10176  ac_status=$?
10177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178  (exit $ac_status); }; } &&
10179	 { ac_try='test -s conftest$ac_exeext'
10180  { (case "(($ac_try" in
10181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10182  *) ac_try_echo=$ac_try;;
10183esac
10184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10185  (eval "$ac_try") 2>&5
10186  ac_status=$?
10187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188  (exit $ac_status); }; }; then
10189  ac_cv_func_dlopen=yes
10190else
10191  echo "$as_me: failed program was:" >&5
10192sed 's/^/| /' conftest.$ac_ext >&5
10193
10194	ac_cv_func_dlopen=no
10195fi
10196
10197rm -f core conftest.err conftest.$ac_objext \
10198      conftest$ac_exeext conftest.$ac_ext
10199fi
10200{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10201echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10202if test $ac_cv_func_dlopen = yes; then
10203  lt_cv_dlopen="dlopen"
10204else
10205  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10206echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10207if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10208  echo $ECHO_N "(cached) $ECHO_C" >&6
10209else
10210  ac_check_lib_save_LIBS=$LIBS
10211LIBS="-ldl  $LIBS"
10212cat >conftest.$ac_ext <<_ACEOF
10213/* confdefs.h.  */
10214_ACEOF
10215cat confdefs.h >>conftest.$ac_ext
10216cat >>conftest.$ac_ext <<_ACEOF
10217/* end confdefs.h.  */
10218
10219/* Override any GCC internal prototype to avoid an error.
10220   Use char because int might match the return type of a GCC
10221   builtin and then its argument prototype would still apply.  */
10222#ifdef __cplusplus
10223extern "C"
10224#endif
10225char dlopen ();
10226int
10227main ()
10228{
10229return dlopen ();
10230  ;
10231  return 0;
10232}
10233_ACEOF
10234rm -f conftest.$ac_objext conftest$ac_exeext
10235if { (ac_try="$ac_link"
10236case "(($ac_try" in
10237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10238  *) ac_try_echo=$ac_try;;
10239esac
10240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10241  (eval "$ac_link") 2>conftest.er1
10242  ac_status=$?
10243  grep -v '^ *+' conftest.er1 >conftest.err
10244  rm -f conftest.er1
10245  cat conftest.err >&5
10246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247  (exit $ac_status); } &&
10248	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10249  { (case "(($ac_try" in
10250  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10251  *) ac_try_echo=$ac_try;;
10252esac
10253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10254  (eval "$ac_try") 2>&5
10255  ac_status=$?
10256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257  (exit $ac_status); }; } &&
10258	 { ac_try='test -s conftest$ac_exeext'
10259  { (case "(($ac_try" in
10260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10261  *) ac_try_echo=$ac_try;;
10262esac
10263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10264  (eval "$ac_try") 2>&5
10265  ac_status=$?
10266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267  (exit $ac_status); }; }; then
10268  ac_cv_lib_dl_dlopen=yes
10269else
10270  echo "$as_me: failed program was:" >&5
10271sed 's/^/| /' conftest.$ac_ext >&5
10272
10273	ac_cv_lib_dl_dlopen=no
10274fi
10275
10276rm -f core conftest.err conftest.$ac_objext \
10277      conftest$ac_exeext conftest.$ac_ext
10278LIBS=$ac_check_lib_save_LIBS
10279fi
10280{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10281echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10282if test $ac_cv_lib_dl_dlopen = yes; then
10283  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10284else
10285  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10286echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10287if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10288  echo $ECHO_N "(cached) $ECHO_C" >&6
10289else
10290  ac_check_lib_save_LIBS=$LIBS
10291LIBS="-lsvld  $LIBS"
10292cat >conftest.$ac_ext <<_ACEOF
10293/* confdefs.h.  */
10294_ACEOF
10295cat confdefs.h >>conftest.$ac_ext
10296cat >>conftest.$ac_ext <<_ACEOF
10297/* end confdefs.h.  */
10298
10299/* Override any GCC internal prototype to avoid an error.
10300   Use char because int might match the return type of a GCC
10301   builtin and then its argument prototype would still apply.  */
10302#ifdef __cplusplus
10303extern "C"
10304#endif
10305char dlopen ();
10306int
10307main ()
10308{
10309return dlopen ();
10310  ;
10311  return 0;
10312}
10313_ACEOF
10314rm -f conftest.$ac_objext conftest$ac_exeext
10315if { (ac_try="$ac_link"
10316case "(($ac_try" in
10317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10318  *) ac_try_echo=$ac_try;;
10319esac
10320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10321  (eval "$ac_link") 2>conftest.er1
10322  ac_status=$?
10323  grep -v '^ *+' conftest.er1 >conftest.err
10324  rm -f conftest.er1
10325  cat conftest.err >&5
10326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327  (exit $ac_status); } &&
10328	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10329  { (case "(($ac_try" in
10330  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10331  *) ac_try_echo=$ac_try;;
10332esac
10333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10334  (eval "$ac_try") 2>&5
10335  ac_status=$?
10336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337  (exit $ac_status); }; } &&
10338	 { ac_try='test -s conftest$ac_exeext'
10339  { (case "(($ac_try" in
10340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10341  *) ac_try_echo=$ac_try;;
10342esac
10343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10344  (eval "$ac_try") 2>&5
10345  ac_status=$?
10346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347  (exit $ac_status); }; }; then
10348  ac_cv_lib_svld_dlopen=yes
10349else
10350  echo "$as_me: failed program was:" >&5
10351sed 's/^/| /' conftest.$ac_ext >&5
10352
10353	ac_cv_lib_svld_dlopen=no
10354fi
10355
10356rm -f core conftest.err conftest.$ac_objext \
10357      conftest$ac_exeext conftest.$ac_ext
10358LIBS=$ac_check_lib_save_LIBS
10359fi
10360{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10361echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10362if test $ac_cv_lib_svld_dlopen = yes; then
10363  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10364else
10365  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10366echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10367if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10368  echo $ECHO_N "(cached) $ECHO_C" >&6
10369else
10370  ac_check_lib_save_LIBS=$LIBS
10371LIBS="-ldld  $LIBS"
10372cat >conftest.$ac_ext <<_ACEOF
10373/* confdefs.h.  */
10374_ACEOF
10375cat confdefs.h >>conftest.$ac_ext
10376cat >>conftest.$ac_ext <<_ACEOF
10377/* end confdefs.h.  */
10378
10379/* Override any GCC internal prototype to avoid an error.
10380   Use char because int might match the return type of a GCC
10381   builtin and then its argument prototype would still apply.  */
10382#ifdef __cplusplus
10383extern "C"
10384#endif
10385char dld_link ();
10386int
10387main ()
10388{
10389return dld_link ();
10390  ;
10391  return 0;
10392}
10393_ACEOF
10394rm -f conftest.$ac_objext conftest$ac_exeext
10395if { (ac_try="$ac_link"
10396case "(($ac_try" in
10397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10398  *) ac_try_echo=$ac_try;;
10399esac
10400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10401  (eval "$ac_link") 2>conftest.er1
10402  ac_status=$?
10403  grep -v '^ *+' conftest.er1 >conftest.err
10404  rm -f conftest.er1
10405  cat conftest.err >&5
10406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407  (exit $ac_status); } &&
10408	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10409  { (case "(($ac_try" in
10410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10411  *) ac_try_echo=$ac_try;;
10412esac
10413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10414  (eval "$ac_try") 2>&5
10415  ac_status=$?
10416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417  (exit $ac_status); }; } &&
10418	 { ac_try='test -s conftest$ac_exeext'
10419  { (case "(($ac_try" in
10420  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10421  *) ac_try_echo=$ac_try;;
10422esac
10423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10424  (eval "$ac_try") 2>&5
10425  ac_status=$?
10426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427  (exit $ac_status); }; }; then
10428  ac_cv_lib_dld_dld_link=yes
10429else
10430  echo "$as_me: failed program was:" >&5
10431sed 's/^/| /' conftest.$ac_ext >&5
10432
10433	ac_cv_lib_dld_dld_link=no
10434fi
10435
10436rm -f core conftest.err conftest.$ac_objext \
10437      conftest$ac_exeext conftest.$ac_ext
10438LIBS=$ac_check_lib_save_LIBS
10439fi
10440{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10441echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10442if test $ac_cv_lib_dld_dld_link = yes; then
10443  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10444fi
10445
10446
10447fi
10448
10449
10450fi
10451
10452
10453fi
10454
10455
10456fi
10457
10458
10459fi
10460
10461    ;;
10462  esac
10463
10464  if test "x$lt_cv_dlopen" != xno; then
10465    enable_dlopen=yes
10466  else
10467    enable_dlopen=no
10468  fi
10469
10470  case $lt_cv_dlopen in
10471  dlopen)
10472    save_CPPFLAGS="$CPPFLAGS"
10473    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10474
10475    save_LDFLAGS="$LDFLAGS"
10476    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10477
10478    save_LIBS="$LIBS"
10479    LIBS="$lt_cv_dlopen_libs $LIBS"
10480
10481    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10482echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10483if test "${lt_cv_dlopen_self+set}" = set; then
10484  echo $ECHO_N "(cached) $ECHO_C" >&6
10485else
10486  	  if test "$cross_compiling" = yes; then :
10487  lt_cv_dlopen_self=cross
10488else
10489  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10490  lt_status=$lt_dlunknown
10491  cat > conftest.$ac_ext <<EOF
10492#line 10492 "configure"
10493#include "confdefs.h"
10494
10495#if HAVE_DLFCN_H
10496#include <dlfcn.h>
10497#endif
10498
10499#include <stdio.h>
10500
10501#ifdef RTLD_GLOBAL
10502#  define LT_DLGLOBAL		RTLD_GLOBAL
10503#else
10504#  ifdef DL_GLOBAL
10505#    define LT_DLGLOBAL		DL_GLOBAL
10506#  else
10507#    define LT_DLGLOBAL		0
10508#  endif
10509#endif
10510
10511/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10512   find out it does not work in some platform. */
10513#ifndef LT_DLLAZY_OR_NOW
10514#  ifdef RTLD_LAZY
10515#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10516#  else
10517#    ifdef DL_LAZY
10518#      define LT_DLLAZY_OR_NOW		DL_LAZY
10519#    else
10520#      ifdef RTLD_NOW
10521#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10522#      else
10523#        ifdef DL_NOW
10524#          define LT_DLLAZY_OR_NOW	DL_NOW
10525#        else
10526#          define LT_DLLAZY_OR_NOW	0
10527#        endif
10528#      endif
10529#    endif
10530#  endif
10531#endif
10532
10533#ifdef __cplusplus
10534extern "C" void exit (int);
10535#endif
10536
10537void fnord() { int i=42;}
10538int main ()
10539{
10540  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10541  int status = $lt_dlunknown;
10542
10543  if (self)
10544    {
10545      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10546      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10547      /* dlclose (self); */
10548    }
10549  else
10550    puts (dlerror ());
10551
10552    exit (status);
10553}
10554EOF
10555  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10556  (eval $ac_link) 2>&5
10557  ac_status=$?
10558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10560    (./conftest; exit; ) >&5 2>/dev/null
10561    lt_status=$?
10562    case x$lt_status in
10563      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10564      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10565      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10566    esac
10567  else :
10568    # compilation failed
10569    lt_cv_dlopen_self=no
10570  fi
10571fi
10572rm -fr conftest*
10573
10574
10575fi
10576{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10577echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10578
10579    if test "x$lt_cv_dlopen_self" = xyes; then
10580      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10581      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10582echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10583if test "${lt_cv_dlopen_self_static+set}" = set; then
10584  echo $ECHO_N "(cached) $ECHO_C" >&6
10585else
10586  	  if test "$cross_compiling" = yes; then :
10587  lt_cv_dlopen_self_static=cross
10588else
10589  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10590  lt_status=$lt_dlunknown
10591  cat > conftest.$ac_ext <<EOF
10592#line 10592 "configure"
10593#include "confdefs.h"
10594
10595#if HAVE_DLFCN_H
10596#include <dlfcn.h>
10597#endif
10598
10599#include <stdio.h>
10600
10601#ifdef RTLD_GLOBAL
10602#  define LT_DLGLOBAL		RTLD_GLOBAL
10603#else
10604#  ifdef DL_GLOBAL
10605#    define LT_DLGLOBAL		DL_GLOBAL
10606#  else
10607#    define LT_DLGLOBAL		0
10608#  endif
10609#endif
10610
10611/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10612   find out it does not work in some platform. */
10613#ifndef LT_DLLAZY_OR_NOW
10614#  ifdef RTLD_LAZY
10615#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10616#  else
10617#    ifdef DL_LAZY
10618#      define LT_DLLAZY_OR_NOW		DL_LAZY
10619#    else
10620#      ifdef RTLD_NOW
10621#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10622#      else
10623#        ifdef DL_NOW
10624#          define LT_DLLAZY_OR_NOW	DL_NOW
10625#        else
10626#          define LT_DLLAZY_OR_NOW	0
10627#        endif
10628#      endif
10629#    endif
10630#  endif
10631#endif
10632
10633#ifdef __cplusplus
10634extern "C" void exit (int);
10635#endif
10636
10637void fnord() { int i=42;}
10638int main ()
10639{
10640  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10641  int status = $lt_dlunknown;
10642
10643  if (self)
10644    {
10645      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10646      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10647      /* dlclose (self); */
10648    }
10649  else
10650    puts (dlerror ());
10651
10652    exit (status);
10653}
10654EOF
10655  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10656  (eval $ac_link) 2>&5
10657  ac_status=$?
10658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10660    (./conftest; exit; ) >&5 2>/dev/null
10661    lt_status=$?
10662    case x$lt_status in
10663      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10664      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10665      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10666    esac
10667  else :
10668    # compilation failed
10669    lt_cv_dlopen_self_static=no
10670  fi
10671fi
10672rm -fr conftest*
10673
10674
10675fi
10676{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10677echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10678    fi
10679
10680    CPPFLAGS="$save_CPPFLAGS"
10681    LDFLAGS="$save_LDFLAGS"
10682    LIBS="$save_LIBS"
10683    ;;
10684  esac
10685
10686  case $lt_cv_dlopen_self in
10687  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10688  *) enable_dlopen_self=unknown ;;
10689  esac
10690
10691  case $lt_cv_dlopen_self_static in
10692  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10693  *) enable_dlopen_self_static=unknown ;;
10694  esac
10695fi
10696
10697
10698# Report which library types will actually be built
10699{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10700echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10701{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10702echo "${ECHO_T}$can_build_shared" >&6; }
10703
10704{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10705echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10706test "$can_build_shared" = "no" && enable_shared=no
10707
10708# On AIX, shared libraries and static libraries use the same namespace, and
10709# are all built from PIC.
10710case $host_os in
10711aix3*)
10712  test "$enable_shared" = yes && enable_static=no
10713  if test -n "$RANLIB"; then
10714    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10715    postinstall_cmds='$RANLIB $lib'
10716  fi
10717  ;;
10718
10719aix4* | aix5*)
10720  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10721    test "$enable_shared" = yes && enable_static=no
10722  fi
10723    ;;
10724esac
10725{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10726echo "${ECHO_T}$enable_shared" >&6; }
10727
10728{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10729echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10730# Make sure either enable_shared or enable_static is yes.
10731test "$enable_shared" = yes || enable_static=yes
10732{ echo "$as_me:$LINENO: result: $enable_static" >&5
10733echo "${ECHO_T}$enable_static" >&6; }
10734
10735# The else clause should only fire when bootstrapping the
10736# libtool distribution, otherwise you forgot to ship ltmain.sh
10737# with your package, and you will get complaints that there are
10738# no rules to generate ltmain.sh.
10739if test -f "$ltmain"; then
10740  # See if we are running on zsh, and set the options which allow our commands through
10741  # without removal of \ escapes.
10742  if test -n "${ZSH_VERSION+set}" ; then
10743    setopt NO_GLOB_SUBST
10744  fi
10745  # Now quote all the things that may contain metacharacters while being
10746  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10747  # variables and quote the copies for generation of the libtool script.
10748  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10749    SED SHELL STRIP \
10750    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10751    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10752    deplibs_check_method reload_flag reload_cmds need_locks \
10753    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10754    lt_cv_sys_global_symbol_to_c_name_address \
10755    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10756    old_postinstall_cmds old_postuninstall_cmds \
10757    compiler \
10758    CC \
10759    LD \
10760    lt_prog_compiler_wl \
10761    lt_prog_compiler_pic \
10762    lt_prog_compiler_static \
10763    lt_prog_compiler_no_builtin_flag \
10764    export_dynamic_flag_spec \
10765    thread_safe_flag_spec \
10766    whole_archive_flag_spec \
10767    enable_shared_with_static_runtimes \
10768    old_archive_cmds \
10769    old_archive_from_new_cmds \
10770    predep_objects \
10771    postdep_objects \
10772    predeps \
10773    postdeps \
10774    compiler_lib_search_path \
10775    archive_cmds \
10776    archive_expsym_cmds \
10777    postinstall_cmds \
10778    postuninstall_cmds \
10779    old_archive_from_expsyms_cmds \
10780    allow_undefined_flag \
10781    no_undefined_flag \
10782    export_symbols_cmds \
10783    hardcode_libdir_flag_spec \
10784    hardcode_libdir_flag_spec_ld \
10785    hardcode_libdir_separator \
10786    hardcode_automatic \
10787    module_cmds \
10788    module_expsym_cmds \
10789    lt_cv_prog_compiler_c_o \
10790    exclude_expsyms \
10791    include_expsyms; do
10792
10793    case $var in
10794    old_archive_cmds | \
10795    old_archive_from_new_cmds | \
10796    archive_cmds | \
10797    archive_expsym_cmds | \
10798    module_cmds | \
10799    module_expsym_cmds | \
10800    old_archive_from_expsyms_cmds | \
10801    export_symbols_cmds | \
10802    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10803    postinstall_cmds | postuninstall_cmds | \
10804    old_postinstall_cmds | old_postuninstall_cmds | \
10805    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10806      # Double-quote double-evaled strings.
10807      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10808      ;;
10809    *)
10810      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10811      ;;
10812    esac
10813  done
10814
10815  case $lt_echo in
10816  *'\$0 --fallback-echo"')
10817    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10818    ;;
10819  esac
10820
10821cfgfile="${ofile}T"
10822  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10823  $rm -f "$cfgfile"
10824  echo "$as_me:10824: creating $ofile" >&5
10825  echo "$as_me: creating $ofile" >&6
10826
10827  cat <<__EOF__ >> "$cfgfile"
10828#! $SHELL
10829
10830# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10831# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10832# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10833#
10834# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
10835# Free Software Foundation, Inc.
10836#
10837# This file is part of MirLibtool, by The MirOS Project.
10838# It is derived from GNU Libtool:
10839# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10840#
10841# This program is free software; you can redistribute it and/or modify
10842# it under the terms of the GNU General Public License as published by
10843# the Free Software Foundation; either version 2 of the License, or
10844# (at your option) any later version.
10845#
10846# This program is distributed in the hope that it will be useful, but
10847# WITHOUT ANY WARRANTY; without even the implied warranty of
10848# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10849# General Public License for more details.
10850#
10851# You should have received a copy of the GNU General Public License
10852# along with this program; if not, write to the Free Software
10853# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10854#
10855# As a special exception to the GNU General Public License, if you
10856# distribute this file as part of a program that contains a
10857# configuration script generated by Autoconf, you may include it under
10858# the same distribution terms that you use for the rest of that program.
10859
10860# A sed program that does not truncate output.
10861SED=$lt_SED
10862
10863# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10864Xsed="$SED -e 1s/^X//"
10865
10866# The HP-UX ksh and POSIX shell print the target directory to stdout
10867# if CDPATH is set.
10868(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10869
10870# The names of the tagged configurations supported by this script.
10871available_tags=
10872
10873# ### BEGIN LIBTOOL CONFIG
10874
10875# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10876
10877# Shell to use when invoking shell scripts.
10878SHELL=$lt_SHELL
10879
10880# Whether or not to build shared libraries.
10881build_libtool_libs=$enable_shared
10882
10883# Whether or not to build static libraries.
10884build_old_libs=$enable_static
10885
10886# Whether or not to add -lc for building shared libraries.
10887build_libtool_need_lc=$archive_cmds_need_lc
10888
10889# Whether or not to disallow shared libs when runtime libs are static
10890allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10891
10892# Whether or not to optimize for fast installation.
10893fast_install=$enable_fast_install
10894
10895# The host system.
10896host_alias=$host_alias
10897host=$host
10898host_os=$host_os
10899
10900# The build system.
10901build_alias=$build_alias
10902build=$build
10903build_os=$build_os
10904
10905# An echo program that does not interpret backslashes.
10906echo=$lt_echo
10907
10908# The archiver.
10909AR=$lt_AR
10910AR_FLAGS=$lt_AR_FLAGS
10911
10912# A C compiler.
10913LTCC=$lt_LTCC
10914
10915# LTCC compiler flags.
10916LTCFLAGS=$lt_LTCFLAGS
10917
10918# A language-specific compiler.
10919CC=$lt_compiler
10920
10921# Is the compiler the GNU C compiler?
10922with_gcc=$GCC
10923
10924# An ERE matcher.
10925EGREP=$lt_EGREP
10926
10927# The linker used to build libraries.
10928LD=$lt_LD
10929
10930# Whether we need hard or soft links.
10931LN_S=$lt_LN_S
10932
10933# A BSD-compatible nm program.
10934NM=$lt_NM
10935
10936# A symbol stripping program
10937STRIP=$lt_STRIP
10938
10939# Used to examine libraries when file_magic_cmd begins "file"
10940MAGIC_CMD=$MAGIC_CMD
10941
10942# Used on cygwin: DLL creation program.
10943DLLTOOL="$DLLTOOL"
10944
10945# Used on cygwin: object dumper.
10946OBJDUMP="$OBJDUMP"
10947
10948# Used on cygwin: assembler.
10949AS="$AS"
10950
10951# The name of the directory that contains temporary libtool files.
10952objdir=$objdir
10953
10954# How to create reloadable object files.
10955reload_flag=$lt_reload_flag
10956reload_cmds=$lt_reload_cmds
10957
10958# How to pass a linker flag through the compiler.
10959wl=$lt_lt_prog_compiler_wl
10960
10961# Object file suffix (normally "o").
10962objext="$ac_objext"
10963
10964# Old archive suffix (normally "a").
10965libext="$libext"
10966
10967# Shared library suffix (normally ".so").
10968shrext_cmds='$shrext_cmds'
10969
10970# Executable file suffix (normally "").
10971exeext="$exeext"
10972
10973# Additional compiler flags for building library objects.
10974pic_flag=$lt_lt_prog_compiler_pic
10975pic_mode=$pic_mode
10976
10977# What is the maximum length of a command?
10978max_cmd_len=$lt_cv_sys_max_cmd_len
10979
10980# Does compiler simultaneously support -c and -o options?
10981compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10982
10983# Must we lock files when doing compilation?
10984need_locks=$lt_need_locks
10985
10986# Do we need the lib prefix for modules?
10987need_lib_prefix=$need_lib_prefix
10988
10989# Do we need a version for libraries?
10990need_version=$need_version
10991
10992# Whether dlopen is supported.
10993dlopen_support=$enable_dlopen
10994
10995# Whether dlopen of programs is supported.
10996dlopen_self=$enable_dlopen_self
10997
10998# Whether dlopen of statically linked programs is supported.
10999dlopen_self_static=$enable_dlopen_self_static
11000
11001# Compiler flag to prevent dynamic linking.
11002link_static_flag=$lt_lt_prog_compiler_static
11003
11004# Compiler flag to turn off builtin functions.
11005no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11006
11007# Compiler flag to allow reflexive dlopens.
11008export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11009
11010# Compiler flag to generate shared objects directly from archives.
11011whole_archive_flag_spec=$lt_whole_archive_flag_spec
11012
11013# Compiler flag to generate thread-safe objects.
11014thread_safe_flag_spec=$lt_thread_safe_flag_spec
11015
11016# Library versioning type.
11017version_type=$version_type
11018
11019# Format of library name prefix.
11020libname_spec=$lt_libname_spec
11021
11022# List of archive names.  First name is the real one, the rest are links.
11023# The last name is the one that the linker finds with -lNAME.
11024library_names_spec=$lt_library_names_spec
11025
11026# The coded name of the library, if different from the real name.
11027soname_spec=$lt_soname_spec
11028
11029# Commands used to build and install an old-style archive.
11030RANLIB=$lt_RANLIB
11031old_archive_cmds=$lt_old_archive_cmds
11032old_postinstall_cmds=$lt_old_postinstall_cmds
11033old_postuninstall_cmds=$lt_old_postuninstall_cmds
11034
11035# Create an old-style archive from a shared archive.
11036old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11037
11038# Create a temporary old-style archive to link instead of a shared archive.
11039old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11040
11041# Commands used to build and install a shared archive.
11042archive_cmds=$lt_archive_cmds
11043archive_expsym_cmds=$lt_archive_expsym_cmds
11044postinstall_cmds=$lt_postinstall_cmds
11045postuninstall_cmds=$lt_postuninstall_cmds
11046
11047# Commands used to build a loadable module (assumed same as above if empty)
11048module_cmds=$lt_module_cmds
11049module_expsym_cmds=$lt_module_expsym_cmds
11050
11051# Commands to strip libraries.
11052old_striplib=$lt_old_striplib
11053striplib=$lt_striplib
11054
11055# Dependencies to place before the objects being linked to create a
11056# shared library.
11057predep_objects=$lt_predep_objects
11058
11059# Dependencies to place after the objects being linked to create a
11060# shared library.
11061postdep_objects=$lt_postdep_objects
11062
11063# Dependencies to place before the objects being linked to create a
11064# shared library.
11065predeps=$lt_predeps
11066
11067# Dependencies to place after the objects being linked to create a
11068# shared library.
11069postdeps=$lt_postdeps
11070
11071# The library search path used internally by the compiler when linking
11072# a shared library.
11073compiler_lib_search_path=$lt_compiler_lib_search_path
11074
11075# Method to check whether dependent libraries are shared objects.
11076deplibs_check_method=$lt_deplibs_check_method
11077
11078# Command to use when deplibs_check_method == file_magic.
11079file_magic_cmd=$lt_file_magic_cmd
11080
11081# Flag that allows shared libraries with undefined symbols to be built.
11082allow_undefined_flag=$lt_allow_undefined_flag
11083
11084# Flag that forces no undefined symbols.
11085no_undefined_flag=$lt_no_undefined_flag
11086
11087# Commands used to finish a libtool library installation in a directory.
11088finish_cmds=$lt_finish_cmds
11089
11090# Same as above, but a single script fragment to be evaled but not shown.
11091finish_eval=$lt_finish_eval
11092
11093# Take the output of nm and produce a listing of raw symbols and C names.
11094global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11095
11096# Transform the output of nm in a proper C declaration
11097global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11098
11099# Transform the output of nm in a C name address pair
11100global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11101
11102# This is the shared library runtime path variable.
11103runpath_var=$runpath_var
11104
11105# This is the shared library path variable.
11106shlibpath_var=$shlibpath_var
11107
11108# Is shlibpath searched before the hard-coded library search path?
11109shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11110
11111# How to hardcode a shared library path into an executable.
11112hardcode_action=$hardcode_action
11113
11114# Whether we should hardcode library paths into libraries.
11115hardcode_into_libs=$hardcode_into_libs
11116
11117# Flag to hardcode \$libdir into a binary during linking.
11118# This must work even if \$libdir does not exist.
11119hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11120
11121# If ld is used when linking, flag to hardcode \$libdir into
11122# a binary during linking. This must work even if \$libdir does
11123# not exist.
11124hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11125
11126# Whether we need a single -rpath flag with a separated argument.
11127hardcode_libdir_separator=$lt_hardcode_libdir_separator
11128
11129# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11130# resulting binary.
11131hardcode_direct=$hardcode_direct
11132
11133# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11134# resulting binary.
11135hardcode_minus_L=$hardcode_minus_L
11136
11137# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11138# the resulting binary.
11139hardcode_shlibpath_var=$hardcode_shlibpath_var
11140
11141# Set to yes if building a shared library automatically hardcodes DIR into the library
11142# and all subsequent libraries and executables linked against it.
11143hardcode_automatic=$hardcode_automatic
11144
11145# Variables whose values should be saved in libtool wrapper scripts and
11146# restored at relink time.
11147variables_saved_for_relink="$variables_saved_for_relink"
11148
11149# Whether libtool must link a program against all its dependency libraries.
11150link_all_deplibs=$link_all_deplibs
11151
11152# Compile-time system search path for libraries
11153sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11154
11155# Run-time system search path for libraries
11156sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11157
11158# Fix the shell variable \$srcfile for the compiler.
11159fix_srcfile_path="$fix_srcfile_path"
11160
11161# Set to yes if exported symbols are required.
11162always_export_symbols=$always_export_symbols
11163
11164# The commands to list exported symbols.
11165export_symbols_cmds=$lt_export_symbols_cmds
11166
11167# The commands to extract the exported symbol list from a shared archive.
11168extract_expsyms_cmds=$lt_extract_expsyms_cmds
11169
11170# Symbols that should not be listed in the preloaded symbols.
11171exclude_expsyms=$lt_exclude_expsyms
11172
11173# Symbols that must always be exported.
11174include_expsyms=$lt_include_expsyms
11175
11176# ### END LIBTOOL CONFIG
11177
11178__EOF__
11179
11180
11181  case $host_os in
11182  aix3*)
11183    cat <<\EOF >> "$cfgfile"
11184
11185# AIX sometimes has problems with the GCC collect2 program.  For some
11186# reason, if we set the COLLECT_NAMES environment variable, the problems
11187# vanish in a puff of smoke.
11188if test "X${COLLECT_NAMES+set}" != Xset; then
11189  COLLECT_NAMES=
11190  export COLLECT_NAMES
11191fi
11192EOF
11193    ;;
11194  esac
11195
11196  # We use sed instead of cat because bash on DJGPP gets confused if
11197  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11198  # text mode, it properly converts lines to CR/LF.  This bash problem
11199  # is reportedly fixed, but why not run on old versions too?
11200  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11201
11202  mv -f "$cfgfile" "$ofile" || \
11203    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11204  chmod +x "$ofile"
11205
11206else
11207  # If there is no Makefile yet, we rely on a make rule to execute
11208  # 'config.status --recheck' to rerun these tests and create the
11209  # libtool script then.
11210  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11211  if test -f "$ltmain_in"; then
11212    test -f Makefile && make "$ltmain"
11213  fi
11214fi
11215
11216
11217ac_ext=c
11218ac_cpp='$CPP $CPPFLAGS'
11219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11221ac_compiler_gnu=$ac_cv_c_compiler_gnu
11222
11223CC="$lt_save_CC"
11224
11225
11226# Check whether --with-tags was given.
11227if test "${with_tags+set}" = set; then
11228  withval=$with_tags; tagnames="$withval"
11229fi
11230
11231
11232if test -f "$ltmain" && test -n "$tagnames"; then
11233  if test ! -f "${ofile}"; then
11234    { echo "$as_me:$LINENO: WARNING: output file '$ofile' does not exist" >&5
11235echo "$as_me: WARNING: output file '$ofile' does not exist" >&2;}
11236  fi
11237
11238  if test -z "$LTCC"; then
11239    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11240    if test -z "$LTCC"; then
11241      { echo "$as_me:$LINENO: WARNING: output file '$ofile' does not look like a libtool script" >&5
11242echo "$as_me: WARNING: output file '$ofile' does not look like a libtool script" >&2;}
11243    else
11244      { echo "$as_me:$LINENO: WARNING: using 'LTCC=$LTCC', extracted from '$ofile'" >&5
11245echo "$as_me: WARNING: using 'LTCC=$LTCC', extracted from '$ofile'" >&2;}
11246    fi
11247  fi
11248  if test -z "$LTCFLAGS"; then
11249    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11250  fi
11251
11252  # Extract list of available tagged configurations in $ofile.
11253  # Note that this assumes the entire list is on one line.
11254  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11255
11256  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11257  for tagname in $tagnames; do
11258    IFS="$lt_save_ifs"
11259    # Check whether tagname contains only valid characters
11260    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11261    "") ;;
11262    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11263echo "$as_me: error: invalid tag name: $tagname" >&2;}
11264   { (exit 1); exit 1; }; }
11265	;;
11266    esac
11267
11268    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11269    then
11270      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11271echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11272   { (exit 1); exit 1; }; }
11273    fi
11274
11275    # Update the list of available tags.
11276    if test -n "$tagname"; then
11277      echo appending configuration tag \"$tagname\" to $ofile
11278
11279      case $tagname in
11280      CXX)
11281	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11282	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11283	    (test "X$CXX" != "Xg++"))) ; then
11284	  ac_ext=cpp
11285ac_cpp='$CXXCPP $CPPFLAGS'
11286ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11287ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11288ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11289
11290
11291
11292
11293
11294
11295archive_cmds_need_lc_CXX=no
11296allow_undefined_flag_CXX=
11297always_export_symbols_CXX=no
11298archive_expsym_cmds_CXX=
11299export_dynamic_flag_spec_CXX=
11300hardcode_direct_CXX=no
11301hardcode_libdir_flag_spec_CXX=
11302hardcode_libdir_flag_spec_ld_CXX=
11303hardcode_libdir_separator_CXX=
11304hardcode_minus_L_CXX=no
11305hardcode_shlibpath_var_CXX=unsupported
11306hardcode_automatic_CXX=no
11307module_cmds_CXX=
11308module_expsym_cmds_CXX=
11309link_all_deplibs_CXX=unknown
11310old_archive_cmds_CXX=$old_archive_cmds
11311no_undefined_flag_CXX=
11312whole_archive_flag_spec_CXX=
11313enable_shared_with_static_runtimes_CXX=no
11314
11315# Dependencies to place before and after the object being linked:
11316predep_objects_CXX=
11317postdep_objects_CXX=
11318predeps_CXX=
11319postdeps_CXX=
11320compiler_lib_search_path_CXX=
11321
11322# Source file extension for C++ test sources.
11323ac_ext=cpp
11324
11325# Object file extension for compiled C++ test sources.
11326objext=o
11327objext_CXX=$objext
11328
11329# Code to be used in simple compile tests
11330lt_simple_compile_test_code="int some_variable = 0;\n"
11331
11332# Code to be used in simple link tests
11333lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11334
11335# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11336
11337# If no C compiler was specified, use CC.
11338LTCC=${LTCC-"$CC"}
11339
11340# If no C compiler flags were specified, use CFLAGS.
11341LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11342
11343# Allow CC to be a program name with arguments.
11344compiler=$CC
11345
11346
11347# save warnings/boilerplate of simple test code
11348ac_outfile=conftest.$ac_objext
11349printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11350eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11351_lt_compiler_boilerplate=`cat conftest.err`
11352$rm conftest*
11353
11354ac_outfile=conftest.$ac_objext
11355printf "$lt_simple_link_test_code" >conftest.$ac_ext
11356eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11357_lt_linker_boilerplate=`cat conftest.err`
11358$rm conftest*
11359
11360
11361# Allow CC to be a program name with arguments.
11362lt_save_CC=$CC
11363lt_save_LD=$LD
11364lt_save_GCC=$GCC
11365GCC=$GXX
11366lt_save_with_gnu_ld=$with_gnu_ld
11367lt_save_path_LD=$lt_cv_path_LD
11368if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11369  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11370else
11371  $as_unset lt_cv_prog_gnu_ld
11372fi
11373if test -n "${lt_cv_path_LDCXX+set}"; then
11374  lt_cv_path_LD=$lt_cv_path_LDCXX
11375else
11376  $as_unset lt_cv_path_LD
11377fi
11378test -z "${LDCXX+set}" || LD=$LDCXX
11379CC=${CXX-"c++"}
11380compiler=$CC
11381compiler_CXX=$CC
11382for cc_temp in $compiler""; do
11383  case $cc_temp in
11384    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11385    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11386    \-*) ;;
11387    *) break;;
11388  esac
11389done
11390cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11391
11392
11393# We don't want -fno-exception wen compiling C++ code, so set the
11394# no_builtin_flag separately
11395if test "$GXX" = yes; then
11396  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11397else
11398  lt_prog_compiler_no_builtin_flag_CXX=
11399fi
11400
11401if test "$GXX" = yes; then
11402  # Set up default GNU C++ configuration
11403
11404
11405# Check whether --with-gnu-ld was given.
11406if test "${with_gnu_ld+set}" = set; then
11407  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11408else
11409  with_gnu_ld=no
11410fi
11411
11412ac_prog=ld
11413if test "$GCC" = yes; then
11414  # Check if gcc -print-prog-name=ld gives a path.
11415  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11416echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11417  case $host in
11418  *-*-mingw*)
11419    # gcc leaves a trailing carriage return which upsets mingw
11420    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11421  *)
11422    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11423  esac
11424  case $ac_prog in
11425    # Accept absolute paths.
11426    [\\/]* | ?:[\\/]*)
11427      re_direlt='/[^/][^/]*/\.\./'
11428      # Canonicalize the pathname of ld
11429      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11430      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11431	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11432      done
11433      test -z "$LD" && LD="$ac_prog"
11434      ;;
11435  "")
11436    # If it fails, then pretend we aren't using GCC.
11437    ac_prog=ld
11438    ;;
11439  *)
11440    # If it is relative, then search for the first ld in PATH.
11441    with_gnu_ld=unknown
11442    ;;
11443  esac
11444elif test "$with_gnu_ld" = yes; then
11445  { echo "$as_me:$LINENO: checking for GNU ld" >&5
11446echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11447else
11448  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11449echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11450fi
11451if test "${lt_cv_path_LD+set}" = set; then
11452  echo $ECHO_N "(cached) $ECHO_C" >&6
11453else
11454  if test -z "$LD"; then
11455  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11456  for ac_dir in $PATH; do
11457    IFS="$lt_save_ifs"
11458    test -z "$ac_dir" && ac_dir=.
11459    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11460      lt_cv_path_LD="$ac_dir/$ac_prog"
11461      # Check to see if the program is GNU ld.  I'd rather use --version,
11462      # but apparently some variants of GNU ld only accept -v.
11463      # Break only if it was the GNU/non-GNU ld that we prefer.
11464      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11465      *GNU* | *'with BFD'*)
11466	test "$with_gnu_ld" != no && break
11467	;;
11468      *)
11469	test "$with_gnu_ld" != yes && break
11470	;;
11471      esac
11472    fi
11473  done
11474  IFS="$lt_save_ifs"
11475else
11476  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11477fi
11478fi
11479
11480LD="$lt_cv_path_LD"
11481if test -n "$LD"; then
11482  { echo "$as_me:$LINENO: result: $LD" >&5
11483echo "${ECHO_T}$LD" >&6; }
11484else
11485  { echo "$as_me:$LINENO: result: no" >&5
11486echo "${ECHO_T}no" >&6; }
11487fi
11488test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11489echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11490   { (exit 1); exit 1; }; }
11491{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11492echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11493if test "${lt_cv_prog_gnu_ld+set}" = set; then
11494  echo $ECHO_N "(cached) $ECHO_C" >&6
11495else
11496  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11497case `$LD -v 2>&1 </dev/null` in
11498*GNU* | *'with BFD'*)
11499  lt_cv_prog_gnu_ld=yes
11500  ;;
11501*)
11502  lt_cv_prog_gnu_ld=no
11503  ;;
11504esac
11505fi
11506{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11507echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11508with_gnu_ld=$lt_cv_prog_gnu_ld
11509
11510
11511
11512  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11513  # archiving commands below assume that GNU ld is being used.
11514  if test "$with_gnu_ld" = yes; then
11515    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11516    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'
11517
11518    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11519    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11520
11521    # If archive_cmds runs LD, not CC, wlarc should be empty
11522    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11523    #     investigate it a little bit more. (MM)
11524    wlarc='${wl}'
11525
11526    # ancient GNU ld didn't support --whole-archive et. al.
11527    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11528	grep 'no-whole-archive' > /dev/null; then
11529      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11530    else
11531      whole_archive_flag_spec_CXX=
11532    fi
11533  else
11534    with_gnu_ld=no
11535    wlarc=
11536
11537    # A generic and very simple default shared library creation
11538    # command for GNU C++ for the case where it uses the native
11539    # linker, instead of GNU ld.  If possible, this setting should
11540    # overridden to take advantage of the native linker features on
11541    # the platform it is being used on.
11542    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11543  fi
11544
11545  # Commands to make compiler produce verbose output that lists
11546  # what "hidden" libraries, object files and flags are used when
11547  # linking a shared library.
11548  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11549
11550else
11551  GXX=no
11552  with_gnu_ld=no
11553  wlarc=
11554fi
11555
11556# PORTME: fill in a description of your system's C++ link characteristics
11557{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11558echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11559ld_shlibs_CXX=yes
11560case $host_os in
11561  aix3*)
11562    # FIXME: insert proper C++ library support
11563    ld_shlibs_CXX=no
11564    ;;
11565  aix4* | aix5*)
11566    if test "$host_cpu" = ia64; then
11567      # On IA64, the linker does run time linking by default, so we don't
11568      # have to do anything special.
11569      aix_use_runtimelinking=no
11570      exp_sym_flag='-Bexport'
11571      no_entry_flag=""
11572    else
11573      aix_use_runtimelinking=no
11574
11575      # Test if we are trying to use run time linking or normal
11576      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11577      # need to do runtime linking.
11578      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11579	for ld_flag in $LDFLAGS; do
11580	  case $ld_flag in
11581	  *-brtl*)
11582	    aix_use_runtimelinking=yes
11583	    break
11584	    ;;
11585	  esac
11586	done
11587	;;
11588      esac
11589
11590      exp_sym_flag='-bexport'
11591      no_entry_flag='-bnoentry'
11592    fi
11593
11594    # When large executables or shared objects are built, AIX ld can
11595    # have problems creating the table of contents.  If linking a library
11596    # or program results in "error TOC overflow" add -mminimal-toc to
11597    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11598    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11599
11600    archive_cmds_CXX=''
11601    hardcode_direct_CXX=yes
11602    hardcode_libdir_separator_CXX=':'
11603    link_all_deplibs_CXX=yes
11604
11605    if test "$GXX" = yes; then
11606      case $host_os in aix4.[012]|aix4.[012].*)
11607      # We only want to do this on AIX 4.2 and lower, the check
11608      # below for broken collect2 doesn't work under 4.3+
11609	collect2name=`${CC} -print-prog-name=collect2`
11610	if test -f "$collect2name" && \
11611	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11612	then
11613	  # We have reworked collect2
11614	  :
11615	else
11616	  # We have old collect2
11617	  hardcode_direct_CXX=unsupported
11618	  # It fails to find uninstalled libraries when the uninstalled
11619	  # path is not listed in the libpath.  Setting hardcode_minus_L
11620	  # to unsupported forces relinking
11621	  hardcode_minus_L_CXX=yes
11622	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11623	  hardcode_libdir_separator_CXX=
11624	fi
11625	;;
11626      esac
11627      shared_flag='-shared'
11628      if test "$aix_use_runtimelinking" = yes; then
11629	shared_flag="$shared_flag "'${wl}-G'
11630      fi
11631    else
11632      # not using gcc
11633      if test "$host_cpu" = ia64; then
11634	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11635	# chokes on -Wl,-G. The following line is correct:
11636	shared_flag='-G'
11637      else
11638	if test "$aix_use_runtimelinking" = yes; then
11639	  shared_flag='${wl}-G'
11640	else
11641	  shared_flag='${wl}-bM:SRE'
11642	fi
11643      fi
11644    fi
11645
11646    # It seems that -bexpall does not export symbols beginning with
11647    # underscore (_), so it is better to generate a list of symbols to export.
11648    always_export_symbols_CXX=yes
11649    if test "$aix_use_runtimelinking" = yes; then
11650      # Warning - without using the other runtime loading flags (-brtl),
11651      # -berok will link without error, but may produce a broken library.
11652      allow_undefined_flag_CXX='-berok'
11653      # Determine the default libpath from the value encoded in an empty executable.
11654      aix_libpath="/usr/lib:/lib"
11655
11656      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11657
11658      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"
11659     else
11660      if test "$host_cpu" = ia64; then
11661	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11662	allow_undefined_flag_CXX="-z nodefs"
11663	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"
11664      else
11665	# Determine the default libpath from the value encoded in an empty executable.
11666	aix_libpath="/usr/lib:/lib"
11667
11668	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11669	# Warning - without using the other run time loading flags,
11670	# -berok will link without error, but may produce a broken library.
11671	no_undefined_flag_CXX=' ${wl}-bernotok'
11672	allow_undefined_flag_CXX=' ${wl}-berok'
11673	# Exported symbols can be pulled into shared objects from archives
11674	whole_archive_flag_spec_CXX='$convenience'
11675	archive_cmds_need_lc_CXX=yes
11676	# This is similar to how AIX traditionally builds its shared libraries.
11677	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'
11678      fi
11679    fi
11680    ;;
11681
11682  beos*)
11683    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11684      allow_undefined_flag_CXX=unsupported
11685      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11686      # support --undefined.  This deserves some investigation.  FIXME
11687      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11688    else
11689      ld_shlibs_CXX=no
11690    fi
11691    ;;
11692
11693  chorus*)
11694    case $cc_basename in
11695      *)
11696	# FIXME: insert proper C++ library support
11697	ld_shlibs_CXX=no
11698	;;
11699    esac
11700    ;;
11701
11702  cygwin* | mingw* | pw32*)
11703    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11704    # as there is no search path for DLLs.
11705    hardcode_libdir_flag_spec_CXX='-L$libdir'
11706    allow_undefined_flag_CXX=unsupported
11707    always_export_symbols_CXX=no
11708    enable_shared_with_static_runtimes_CXX=yes
11709
11710    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11711      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'
11712      # If the export-symbols file already is a .def file (1st line
11713      # is EXPORTS), use it as is; otherwise, prepend...
11714      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11715	cp $export_symbols $output_objdir/$soname.def;
11716      else
11717	echo EXPORTS > $output_objdir/$soname.def;
11718	cat $export_symbols >> $output_objdir/$soname.def;
11719      fi~
11720      $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'
11721    else
11722      ld_shlibs_CXX=no
11723    fi
11724  ;;
11725      darwin* | rhapsody*)
11726	case $host_os in
11727	rhapsody* | darwin1.[012])
11728	  allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11729	  ;;
11730	*) # Darwin 1.3 on
11731	  if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11732	    allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11733	  else
11734	    case ${MACOSX_DEPLOYMENT_TARGET} in
11735	    10.[012])
11736	      allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11737	      ;;
11738	    10.*)
11739	      allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11740	      ;;
11741	    esac
11742	  fi
11743	  ;;
11744	esac
11745	archive_cmds_need_lc_CXX=no
11746	hardcode_direct_CXX=no
11747	hardcode_automatic_CXX=yes
11748	hardcode_shlibpath_var_CXX=unsupported
11749	whole_archive_flag_spec_CXX=''
11750	link_all_deplibs_CXX=yes
11751
11752    if test "$GXX" = yes ; then
11753      lt_int_apple_cc_single_mod=no
11754      output_verbose_link_cmd='echo'
11755      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11756	lt_int_apple_cc_single_mod=yes
11757      fi
11758      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11759	archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11760      else
11761	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'
11762      fi
11763      module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11764      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11765      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11766	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}'
11767      else
11768	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}'
11769      fi
11770      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}'
11771    else
11772      case $cc_basename in
11773      xlc*)
11774	output_verbose_link_cmd='echo'
11775	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'
11776	module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11777	# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11778	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}'
11779	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}'
11780	;;
11781      *)
11782	ld_shlibs_CXX=no
11783	;;
11784      esac
11785      fi
11786      ;;
11787
11788  dgux*)
11789    case $cc_basename in
11790      ec++*)
11791	# FIXME: insert proper C++ library support
11792	ld_shlibs_CXX=no
11793	;;
11794      ghcx*)
11795	# Green Hills C++ Compiler
11796	# FIXME: insert proper C++ library support
11797	ld_shlibs_CXX=no
11798	;;
11799      *)
11800	# FIXME: insert proper C++ library support
11801	ld_shlibs_CXX=no
11802	;;
11803    esac
11804    ;;
11805  freebsd[12]*)
11806    # C++ shared libraries reported to be fairly broken before switch to ELF
11807    ld_shlibs_CXX=no
11808    ;;
11809  freebsd-elf*)
11810    archive_cmds_need_lc_CXX=no
11811    ;;
11812  freebsd* | kfreebsd*-gnu | dragonfly*)
11813    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11814    # conventions
11815    ld_shlibs_CXX=yes
11816    ;;
11817  gnu*)
11818    ;;
11819  hpux9*)
11820    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11821    hardcode_libdir_separator_CXX=:
11822    export_dynamic_flag_spec_CXX='${wl}-E'
11823    hardcode_direct_CXX=yes
11824    hardcode_minus_L_CXX=yes # Not in the search PATH,
11825				# but as the default
11826				# location of the library.
11827
11828    case $cc_basename in
11829    CC*)
11830      # FIXME: insert proper C++ library support
11831      ld_shlibs_CXX=no
11832      ;;
11833    aCC*)
11834      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'
11835      # Commands to make compiler produce verbose output that lists
11836      # what "hidden" libraries, object files and flags are used when
11837      # linking a shared library.
11838      #
11839      # There doesn't appear to be a way to prevent this compiler from
11840      # explicitly linking system object files so we need to strip them
11841      # from the output so that they don't get included in the library
11842      # dependencies.
11843      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'
11844      ;;
11845    *)
11846      if test "$GXX" = yes; then
11847	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'
11848      else
11849	# FIXME: insert proper C++ library support
11850	ld_shlibs_CXX=no
11851      fi
11852      ;;
11853    esac
11854    ;;
11855  hpux10*|hpux11*)
11856    if test $with_gnu_ld = no; then
11857      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11858      hardcode_libdir_separator_CXX=:
11859
11860      case $host_cpu in
11861      hppa*64*|ia64*)
11862	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11863	;;
11864      *)
11865	export_dynamic_flag_spec_CXX='${wl}-E'
11866	;;
11867      esac
11868    fi
11869    case $host_cpu in
11870    hppa*64*|ia64*)
11871      hardcode_direct_CXX=no
11872      hardcode_shlibpath_var_CXX=no
11873      ;;
11874    *)
11875      hardcode_direct_CXX=yes
11876      hardcode_minus_L_CXX=yes # Not in the search PATH,
11877					      # but as the default
11878					      # location of the library.
11879      ;;
11880    esac
11881
11882    case $cc_basename in
11883      CC*)
11884	# FIXME: insert proper C++ library support
11885	ld_shlibs_CXX=no
11886	;;
11887      aCC*)
11888	case $host_cpu in
11889	hppa*64*)
11890	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11891	  ;;
11892	ia64*)
11893	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11894	  ;;
11895	*)
11896	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11897	  ;;
11898	esac
11899	# Commands to make compiler produce verbose output that lists
11900	# what "hidden" libraries, object files and flags are used when
11901	# linking a shared library.
11902	#
11903	# There doesn't appear to be a way to prevent this compiler from
11904	# explicitly linking system object files so we need to strip them
11905	# from the output so that they don't get included in the library
11906	# dependencies.
11907	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'
11908	;;
11909      *)
11910	if test "$GXX" = yes; then
11911	  if test $with_gnu_ld = no; then
11912	    case $host_cpu in
11913	    hppa*64*)
11914	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11915	      ;;
11916	    ia64*)
11917	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11918	      ;;
11919	    *)
11920	      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'
11921	      ;;
11922	    esac
11923	  fi
11924	else
11925	  # FIXME: insert proper C++ library support
11926	  ld_shlibs_CXX=no
11927	fi
11928	;;
11929    esac
11930    ;;
11931  interix3*)
11932    hardcode_direct_CXX=no
11933    hardcode_shlibpath_var_CXX=no
11934    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11935    export_dynamic_flag_spec_CXX='${wl}-E'
11936    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11937    # Instead, shared libraries are loaded at an image base (0x10000000 by
11938    # default) and relocated if they conflict, which is a slow very memory
11939    # consuming and fragmenting process.  To avoid this, we pick a random,
11940    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11941    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11942    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'
11943    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'
11944    ;;
11945  irix5* | irix6*)
11946    case $cc_basename in
11947      CC*)
11948	# SGI C++
11949	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'
11950
11951	# Archives containing C++ object files must be created using
11952	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11953	# necessary to make sure instantiated templates are included
11954	# in the archive.
11955	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11956	;;
11957      *)
11958	if test "$GXX" = yes; then
11959	  if test "$with_gnu_ld" = no; then
11960	    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'
11961	  else
11962	    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'
11963	  fi
11964	fi
11965	link_all_deplibs_CXX=yes
11966	;;
11967    esac
11968    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11969    hardcode_libdir_separator_CXX=:
11970    ;;
11971  linux*)
11972    case $cc_basename in
11973      KCC*)
11974	# Kuck and Associates, Inc. (KAI) C++ Compiler
11975
11976	# KCC will only create a shared library if the output file
11977	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11978	# to its proper name (with version) after linking.
11979	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'
11980	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'
11981	# Commands to make compiler produce verbose output that lists
11982	# what "hidden" libraries, object files and flags are used when
11983	# linking a shared library.
11984	#
11985	# There doesn't appear to be a way to prevent this compiler from
11986	# explicitly linking system object files so we need to strip them
11987	# from the output so that they don't get included in the library
11988	# dependencies.
11989	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'
11990
11991	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11992	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11993
11994	# Archives containing C++ object files must be created using
11995	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11996	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11997	;;
11998      icpc*)
11999	# Intel C++
12000	with_gnu_ld=yes
12001	# version 8.0 and above of icpc choke on multiply defined symbols
12002	# if we add $predep_objects and $postdep_objects, however 7.1 and
12003	# earlier do not add the objects themselves.
12004	case `$CC -V 2>&1` in
12005	*"Version 7."*)
12006	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12007	  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'
12008	  ;;
12009	*)  # Version 8.0 or newer
12010	  tmp_idyn=
12011	  case $host_cpu in
12012	    ia64*) tmp_idyn=' -i_dynamic';;
12013	  esac
12014	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12015	  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'
12016	  ;;
12017	esac
12018	archive_cmds_need_lc_CXX=no
12019	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12020	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12021	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12022	;;
12023      pgCC*)
12024	# Portland Group C++ compiler
12025	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12026	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'
12027
12028	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12029	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12030	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'
12031	;;
12032      cxx*)
12033	# Compaq C++
12034	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12035	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'
12036
12037	runpath_var=LD_RUN_PATH
12038	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12039	hardcode_libdir_separator_CXX=:
12040
12041	# Commands to make compiler produce verbose output that lists
12042	# what "hidden" libraries, object files and flags are used when
12043	# linking a shared library.
12044	#
12045	# There doesn't appear to be a way to prevent this compiler from
12046	# explicitly linking system object files so we need to strip them
12047	# from the output so that they don't get included in the library
12048	# dependencies.
12049	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'
12050	;;
12051      *)
12052	case `$CC -V 2>&1 | sed 5q` in
12053	*Sun\ C*)
12054	  # Sun C++ 5.9
12055	  no_undefined_flag_CXX=' -zdefs'
12056	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12057	  archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12058	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12059	  whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12060
12061	  # Not sure whether something based on
12062	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12063	  # would be better.
12064	  output_verbose_link_cmd='echo'
12065
12066	  # Archives containing C++ object files must be created using
12067	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12068	  # necessary to make sure instantiated templates are included
12069	  # in the archive.
12070	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12071	  ;;
12072	esac
12073	;;
12074    esac
12075    ;;
12076  lynxos*)
12077    # FIXME: insert proper C++ library support
12078    ld_shlibs_CXX=no
12079    ;;
12080  m88k*)
12081    # FIXME: insert proper C++ library support
12082    ld_shlibs_CXX=no
12083    ;;
12084  mirbsd*)
12085    hardcode_direct_CXX=yes
12086    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12087    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12088    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12089    export_dynamic_flag_spec_CXX='${wl}-E'
12090    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12091    output_verbose_link_cmd='echo'
12092    ;;
12093  mvs*)
12094    case $cc_basename in
12095      cxx*)
12096	# FIXME: insert proper C++ library support
12097	ld_shlibs_CXX=no
12098	;;
12099      *)
12100	# FIXME: insert proper C++ library support
12101	ld_shlibs_CXX=no
12102	;;
12103    esac
12104    ;;
12105  netbsd*)
12106    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12107      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12108      wlarc=
12109      hardcode_libdir_flag_spec_CXX='-R$libdir'
12110      hardcode_direct_CXX=yes
12111      hardcode_shlibpath_var_CXX=no
12112    fi
12113    # Workaround some broken pre-1.5 toolchains
12114    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12115    ;;
12116  openbsd2*)
12117    # C++ shared libraries are fairly broken
12118    ld_shlibs_CXX=no
12119    ;;
12120  openbsd*)
12121    hardcode_direct_CXX=yes
12122    hardcode_shlibpath_var_CXX=no
12123    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12124    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12125    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12126      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12127      export_dynamic_flag_spec_CXX='${wl}-E'
12128      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12129    fi
12130    output_verbose_link_cmd='echo'
12131    ;;
12132  osf3*)
12133    case $cc_basename in
12134      KCC*)
12135	# Kuck and Associates, Inc. (KAI) C++ Compiler
12136
12137	# KCC will only create a shared library if the output file
12138	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12139	# to its proper name (with version) after linking.
12140	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'
12141
12142	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12143	hardcode_libdir_separator_CXX=:
12144
12145	# Archives containing C++ object files must be created using
12146	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12147	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12148
12149	;;
12150      RCC*)
12151	# Rational C++ 2.4.1
12152	# FIXME: insert proper C++ library support
12153	ld_shlibs_CXX=no
12154	;;
12155      cxx*)
12156	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12157	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'
12158
12159	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12160	hardcode_libdir_separator_CXX=:
12161
12162	# Commands to make compiler produce verbose output that lists
12163	# what "hidden" libraries, object files and flags are used when
12164	# linking a shared library.
12165	#
12166	# There doesn't appear to be a way to prevent this compiler from
12167	# explicitly linking system object files so we need to strip them
12168	# from the output so that they don't get included in the library
12169	# dependencies.
12170	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'
12171	;;
12172      *)
12173	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12174	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12175	  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'
12176
12177	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12178	  hardcode_libdir_separator_CXX=:
12179
12180	  # Commands to make compiler produce verbose output that lists
12181	  # what "hidden" libraries, object files and flags are used when
12182	  # linking a shared library.
12183	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12184
12185	else
12186	  # FIXME: insert proper C++ library support
12187	  ld_shlibs_CXX=no
12188	fi
12189	;;
12190    esac
12191    ;;
12192  osf4* | osf5*)
12193    case $cc_basename in
12194      KCC*)
12195	# Kuck and Associates, Inc. (KAI) C++ Compiler
12196
12197	# KCC will only create a shared library if the output file
12198	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12199	# to its proper name (with version) after linking.
12200	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'
12201
12202	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12203	hardcode_libdir_separator_CXX=:
12204
12205	# Archives containing C++ object files must be created using
12206	# the KAI C++ compiler.
12207	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12208	;;
12209      RCC*)
12210	# Rational C++ 2.4.1
12211	# FIXME: insert proper C++ library support
12212	ld_shlibs_CXX=no
12213	;;
12214      cxx*)
12215	allow_undefined_flag_CXX=' -expect_unresolved \*'
12216	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'
12217	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12218	  echo "-hidden">> $lib.exp~
12219	  $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~
12220	  $rm $lib.exp'
12221
12222	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12223	hardcode_libdir_separator_CXX=:
12224
12225	# Commands to make compiler produce verbose output that lists
12226	# what "hidden" libraries, object files and flags are used when
12227	# linking a shared library.
12228	#
12229	# There doesn't appear to be a way to prevent this compiler from
12230	# explicitly linking system object files so we need to strip them
12231	# from the output so that they don't get included in the library
12232	# dependencies.
12233	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'
12234	;;
12235      *)
12236	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12237	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12238	 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'
12239
12240	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12241	  hardcode_libdir_separator_CXX=:
12242
12243	  # Commands to make compiler produce verbose output that lists
12244	  # what "hidden" libraries, object files and flags are used when
12245	  # linking a shared library.
12246	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12247
12248	else
12249	  # FIXME: insert proper C++ library support
12250	  ld_shlibs_CXX=no
12251	fi
12252	;;
12253    esac
12254    ;;
12255  psos*)
12256    # FIXME: insert proper C++ library support
12257    ld_shlibs_CXX=no
12258    ;;
12259  sunos4*)
12260    case $cc_basename in
12261      CC*)
12262	# Sun C++ 4.x
12263	# FIXME: insert proper C++ library support
12264	ld_shlibs_CXX=no
12265	;;
12266      lcc*)
12267	# Lucid
12268	# FIXME: insert proper C++ library support
12269	ld_shlibs_CXX=no
12270	;;
12271      *)
12272	# FIXME: insert proper C++ library support
12273	ld_shlibs_CXX=no
12274	;;
12275    esac
12276    ;;
12277  solaris*)
12278    case $cc_basename in
12279      CC*)
12280	# Sun C++ 4.2, 5.x and Centerline C++
12281	archive_cmds_need_lc_CXX=yes
12282	no_undefined_flag_CXX=' -zdefs'
12283	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12284	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12285	$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'
12286
12287	hardcode_libdir_flag_spec_CXX='-R$libdir'
12288	hardcode_shlibpath_var_CXX=no
12289	case $host_os in
12290	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12291	  *)
12292	    # The compiler driver will combine and reorder linker options,
12293	    # but understands `-z linker_flag'.
12294	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12295	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12296	    ;;
12297	esac
12298	link_all_deplibs_CXX=yes
12299
12300	output_verbose_link_cmd='echo'
12301
12302	# Archives containing C++ object files must be created using
12303	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12304	# necessary to make sure instantiated templates are included
12305	# in the archive.
12306	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12307	;;
12308      gcx*)
12309	# Green Hills C++ Compiler
12310	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12311
12312	# The C++ compiler must be used to create the archive.
12313	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12314	;;
12315      *)
12316	# GNU C++ compiler with Solaris linker
12317	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12318	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12319	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12320	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12321	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12322		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12323
12324	    # Commands to make compiler produce verbose output that lists
12325	    # what "hidden" libraries, object files and flags are used when
12326	    # linking a shared library.
12327	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12328	  else
12329	    # g++ 2.7 appears to require '-G' NOT '-shared' on this
12330	    # platform.
12331	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12332	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12333		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12334
12335	    # Commands to make compiler produce verbose output that lists
12336	    # what "hidden" libraries, object files and flags are used when
12337	    # linking a shared library.
12338	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12339	  fi
12340
12341	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12342	  case $host_os in
12343	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12344	  *)
12345	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12346	    ;;
12347	  esac
12348	fi
12349	;;
12350    esac
12351    ;;
12352  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12353    no_undefined_flag_CXX='${wl}-z,text'
12354    archive_cmds_need_lc_CXX=no
12355    hardcode_shlibpath_var_CXX=no
12356    runpath_var='LD_RUN_PATH'
12357
12358    case $cc_basename in
12359      CC*)
12360	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12361	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12362	;;
12363      *)
12364	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12365	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12366	;;
12367    esac
12368    ;;
12369  sysv5* | sco3.2v5* | sco5v6*)
12370    # Note: We can NOT use -z defs as we might desire, because we do not
12371    # link with -lc, and that would cause any symbols used from libc to
12372    # always be unresolved, which means just about no library would
12373    # ever link correctly.  If we're not using GNU ld we use -z text
12374    # though, which does catch some bad symbols but isn't as heavy-handed
12375    # as -z defs.
12376    # For security reasons, it is highly recommended that you always
12377    # use absolute paths for naming shared libraries, and exclude the
12378    # DT_RUNPATH tag from executables and libraries.  But doing so
12379    # requires that you compile everything twice, which is a pain.
12380    # So that behaviour is only enabled if SCOABSPATH is set to a
12381    # non-empty value in the environment.  Most likely only useful for
12382    # creating official distributions of packages.
12383    # This is a hack until libtool officially supports absolute path
12384    # names for shared libraries.
12385    no_undefined_flag_CXX='${wl}-z,text'
12386    allow_undefined_flag_CXX='${wl}-z,nodefs'
12387    archive_cmds_need_lc_CXX=no
12388    hardcode_shlibpath_var_CXX=no
12389    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12390    hardcode_libdir_separator_CXX=':'
12391    link_all_deplibs_CXX=yes
12392    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12393    runpath_var='LD_RUN_PATH'
12394
12395    case $cc_basename in
12396      CC*)
12397	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12398	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12399	;;
12400      *)
12401	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12402	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12403	;;
12404    esac
12405    ;;
12406  tandem*)
12407    case $cc_basename in
12408      NCC*)
12409	# NonStop-UX NCC 3.20
12410	# FIXME: insert proper C++ library support
12411	ld_shlibs_CXX=no
12412	;;
12413      *)
12414	# FIXME: insert proper C++ library support
12415	ld_shlibs_CXX=no
12416	;;
12417    esac
12418    ;;
12419  vxworks*)
12420    # FIXME: insert proper C++ library support
12421    ld_shlibs_CXX=no
12422    ;;
12423  *)
12424    # FIXME: insert proper C++ library support
12425    ld_shlibs_CXX=no
12426    ;;
12427esac
12428{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12429echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12430test "$ld_shlibs_CXX" = no && can_build_shared=no
12431
12432GCC_CXX="$GXX"
12433LD_CXX="$LD"
12434
12435## CAVEAT EMPTOR:
12436## There is no encapsulation within the following macros, do not change
12437## the running order or otherwise move them around unless you know exactly
12438## what you are doing...
12439
12440cat > conftest.$ac_ext <<EOF
12441class Foo
12442{
12443public:
12444  Foo (void) { a = 0; }
12445private:
12446  int a;
12447};
12448EOF
12449
12450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12451  (eval $ac_compile) 2>&5
12452  ac_status=$?
12453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454  (exit $ac_status); }; then
12455  # Parse the compiler output and extract the necessary
12456  # objects, libraries and library flags.
12457
12458  # Sentinel used to keep track of whether or not we are before
12459  # the conftest object file.
12460  pre_test_object_deps_done=no
12461
12462  # The '*' in the case matches for architectures that use 'case' in
12463  # $output_verbose_cmd can trigger glob expansion during the loop
12464  # eval without this substitution.
12465  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12466
12467  for p in `eval $output_verbose_link_cmd`; do
12468    case $p in
12469
12470    -L* | -R* | -l*)
12471       # Some compilers place space between "-{L,R}" and the path.
12472       # Remove the space.
12473       if test $p = "-L" \
12474	  || test $p = "-R"; then
12475	 prev=$p
12476	 continue
12477       else
12478	 prev=
12479       fi
12480
12481       if test "$pre_test_object_deps_done" = no; then
12482	 case $p in
12483	 -L* | -R*)
12484	   # Internal compiler library paths should come after those
12485	   # provided the user.  The postdeps already come after the
12486	   # user supplied libs so there is no need to process them.
12487	   if test -z "$compiler_lib_search_path_CXX"; then
12488	     compiler_lib_search_path_CXX="${prev}${p}"
12489	   else
12490	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12491	   fi
12492	   ;;
12493	 # The "-l" case would never come before the object being
12494	 # linked, so don't bother handling this case.
12495	 esac
12496       else
12497	 if test -z "$postdeps_CXX"; then
12498	   postdeps_CXX="${prev}${p}"
12499	 else
12500	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12501	 fi
12502       fi
12503       ;;
12504
12505    *.$objext)
12506       # This assumes that the test object file only shows up
12507       # once in the compiler output.
12508       if test "$p" = "conftest.$objext"; then
12509	 pre_test_object_deps_done=yes
12510	 continue
12511       fi
12512
12513       if test "$pre_test_object_deps_done" = no; then
12514	 if test -z "$predep_objects_CXX"; then
12515	   predep_objects_CXX="$p"
12516	 else
12517	   predep_objects_CXX="$predep_objects_CXX $p"
12518	 fi
12519       else
12520	 if test -z "$postdep_objects_CXX"; then
12521	   postdep_objects_CXX="$p"
12522	 else
12523	   postdep_objects_CXX="$postdep_objects_CXX $p"
12524	 fi
12525       fi
12526       ;;
12527
12528    *) ;; # Ignore the rest.
12529
12530    esac
12531  done
12532
12533  # Clean up.
12534  rm -f a.out a.exe
12535else
12536  echo "libtool.m4: error: problem compiling CXX test program"
12537fi
12538
12539$rm -f confest.$objext
12540
12541# PORTME: override above test on systems where it is broken
12542case $host_os in
12543interix3*)
12544  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12545  # hack all around it, let's just trust "g++" to DTRT.
12546  predep_objects_CXX=
12547  postdep_objects_CXX=
12548  postdeps_CXX=
12549  ;;
12550
12551linux*)
12552  case `$CC -V 2>&1 | sed 5q` in
12553  *Sun\ C*)
12554    # Sun C++ 5.9
12555    postdeps_CXX='-lCstd -lCrun'
12556    ;;
12557  esac
12558  ;;
12559
12560solaris*)
12561  case $cc_basename in
12562  CC*)
12563    # Adding this requires a known-good setup of shared libraries for
12564    # Sun compiler versions before 5.6, else PIC objects from an old
12565    # archive will be linked into the output, leading to subtle bugs.
12566    postdeps_CXX='-lCstd -lCrun'
12567    ;;
12568  esac
12569  ;;
12570esac
12571
12572
12573case " $postdeps_CXX " in
12574*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12575esac
12576
12577lt_prog_compiler_wl_CXX=
12578lt_prog_compiler_pic_CXX=
12579lt_prog_compiler_static_CXX=
12580
12581{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12582echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12583
12584  # C++ specific cases for pic, static, wl, etc.
12585  if test "$GXX" = yes; then
12586    lt_prog_compiler_wl_CXX='-Wl,'
12587    lt_prog_compiler_static_CXX='-static'
12588
12589    case $host_os in
12590    aix*)
12591      # All AIX code is PIC.
12592      if test "$host_cpu" = ia64; then
12593	# AIX 5 now supports IA64 processor
12594	lt_prog_compiler_static_CXX='-Bstatic'
12595      fi
12596      ;;
12597    amigaos*)
12598      # FIXME: we need at least 68020 code to build shared libraries, but
12599      # adding the '-m68020' flag to GCC prevents building anything better,
12600      # like '-m68040'.
12601      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12602      ;;
12603    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12604      # PIC is the default for these OSes.
12605      ;;
12606    mingw* | cygwin* | os2* | pw32*)
12607      # This hack is so that the source file can tell whether it is being
12608      # built for inclusion in a dll (and should export symbols for example).
12609      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12610      # (--disable-auto-import) libraries
12611      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12612      ;;
12613    darwin* | rhapsody*)
12614      # PIC is the default on this platform
12615      # Common symbols not allowed in MH_DYLIB files
12616      lt_prog_compiler_pic_CXX='-fno-common'
12617      ;;
12618    *djgpp*)
12619      # DJGPP does not support shared libraries at all
12620      lt_prog_compiler_pic_CXX=
12621      ;;
12622    interix3*)
12623      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12624      # Instead, we relocate shared libraries at runtime.
12625      ;;
12626    sysv4*MP*)
12627      if test -d /usr/nec; then
12628	lt_prog_compiler_pic_CXX=-Kconform_pic
12629      fi
12630      ;;
12631    hpux*)
12632      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12633      # not for PA HP-UX.
12634      case $host_cpu in
12635      hppa*64*|ia64*)
12636	;;
12637      *)
12638	lt_prog_compiler_pic_CXX='-fPIC'
12639	;;
12640      esac
12641      ;;
12642    *)
12643      lt_prog_compiler_pic_CXX='-fPIC'
12644      ;;
12645    esac
12646  else
12647    case $host_os in
12648      aix4* | aix5*)
12649	# All AIX code is PIC.
12650	if test "$host_cpu" = ia64; then
12651	  # AIX 5 now supports IA64 processor
12652	  lt_prog_compiler_static_CXX='-Bstatic'
12653	else
12654	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12655	fi
12656	;;
12657      chorus*)
12658	case $cc_basename in
12659	cxch68*)
12660	  # Green Hills C++ Compiler
12661	  # _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"
12662	  ;;
12663	esac
12664	;;
12665       darwin*)
12666	 # PIC is the default on this platform
12667	 # Common symbols not allowed in MH_DYLIB files
12668	 case $cc_basename in
12669	   xlc*)
12670	   lt_prog_compiler_pic_CXX='-qnocommon'
12671	   lt_prog_compiler_wl_CXX='-Wl,'
12672	   ;;
12673	 esac
12674       ;;
12675      dgux*)
12676	case $cc_basename in
12677	  ec++*)
12678	    lt_prog_compiler_pic_CXX='-KPIC'
12679	    ;;
12680	  ghcx*)
12681	    # Green Hills C++ Compiler
12682	    lt_prog_compiler_pic_CXX='-pic'
12683	    ;;
12684	  *)
12685	    ;;
12686	esac
12687	;;
12688      freebsd* | kfreebsd*-gnu | dragonfly*)
12689	# FreeBSD uses GNU C++
12690	;;
12691      hpux9* | hpux10* | hpux11*)
12692	case $cc_basename in
12693	  CC*)
12694	    lt_prog_compiler_wl_CXX='-Wl,'
12695	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12696	    if test "$host_cpu" != ia64; then
12697	      lt_prog_compiler_pic_CXX='+Z'
12698	    fi
12699	    ;;
12700	  aCC*)
12701	    lt_prog_compiler_wl_CXX='-Wl,'
12702	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12703	    case $host_cpu in
12704	    hppa*64*|ia64*)
12705	      # +Z the default
12706	      ;;
12707	    *)
12708	      lt_prog_compiler_pic_CXX='+Z'
12709	      ;;
12710	    esac
12711	    ;;
12712	  *)
12713	    ;;
12714	esac
12715	;;
12716      interix*)
12717	# This is c89, which is MS Visual C++ (no shared libs)
12718	# Anyone wants to do a port? (Not for MirPorts though.)
12719	;;
12720      irix5* | irix6* | nonstopux*)
12721	case $cc_basename in
12722	  CC*)
12723	    lt_prog_compiler_wl_CXX='-Wl,'
12724	    lt_prog_compiler_static_CXX='-non_shared'
12725	    # CC pic flag -KPIC is the default.
12726	    ;;
12727	  *)
12728	    ;;
12729	esac
12730	;;
12731      linux*)
12732	case $cc_basename in
12733	  KCC*)
12734	    # KAI C++ Compiler
12735	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12736	    lt_prog_compiler_pic_CXX='-fPIC'
12737	    ;;
12738	  icpc* | ecpc*)
12739	    # Intel C++
12740	    lt_prog_compiler_wl_CXX='-Wl,'
12741	    lt_prog_compiler_pic_CXX='-KPIC'
12742	    lt_prog_compiler_static_CXX='-static'
12743	    ;;
12744	  pgCC*)
12745	    # Portland Group C++ compiler.
12746	    lt_prog_compiler_wl_CXX='-Wl,'
12747	    lt_prog_compiler_pic_CXX='-fpic'
12748	    lt_prog_compiler_static_CXX='-Bstatic'
12749	    ;;
12750	  cxx*)
12751	    # Compaq C++
12752	    # Make sure the PIC flag is empty.  It appears that all Alpha
12753	    # Linux and Compaq Tru64 Unix objects are PIC.
12754	    lt_prog_compiler_pic_CXX=
12755	    lt_prog_compiler_static_CXX='-non_shared'
12756	    ;;
12757	  *)
12758	    case `$CC -V 2>&1 | sed 5q` in
12759	    *Sun\ C*)
12760	      # Sun C++ 5.9
12761	      lt_prog_compiler_pic_CXX='-KPIC'
12762	      lt_prog_compiler_static_CXX='-Bstatic'
12763	      lt_prog_compiler_wl_CXX='-Qoption ld '
12764	      ;;
12765	    esac
12766	    ;;
12767	esac
12768	;;
12769      lynxos*)
12770	;;
12771      m88k*)
12772	;;
12773      mvs*)
12774	case $cc_basename in
12775	  cxx*)
12776	    lt_prog_compiler_pic_CXX='-W c,exportall'
12777	    ;;
12778	  *)
12779	    ;;
12780	esac
12781	;;
12782      netbsd*)
12783	;;
12784      osf3* | osf4* | osf5*)
12785	case $cc_basename in
12786	  KCC*)
12787	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12788	    ;;
12789	  RCC*)
12790	    # Rational C++ 2.4.1
12791	    lt_prog_compiler_pic_CXX='-pic'
12792	    ;;
12793	  cxx*)
12794	    # Digital/Compaq C++
12795	    lt_prog_compiler_wl_CXX='-Wl,'
12796	    # Make sure the PIC flag is empty.  It appears that all Alpha
12797	    # Linux and Compaq Tru64 Unix objects are PIC.
12798	    lt_prog_compiler_pic_CXX=
12799	    lt_prog_compiler_static_CXX='-non_shared'
12800	    ;;
12801	  *)
12802	    ;;
12803	esac
12804	;;
12805      psos*)
12806	;;
12807      solaris*)
12808	case $cc_basename in
12809	  CC*)
12810	    # Sun C++ 4.2, 5.x and Centerline C++
12811	    lt_prog_compiler_pic_CXX='-KPIC'
12812	    lt_prog_compiler_static_CXX='-Bstatic'
12813	    lt_prog_compiler_wl_CXX='-Qoption ld '
12814	    ;;
12815	  gcx*)
12816	    # Green Hills C++ Compiler
12817	    lt_prog_compiler_pic_CXX='-PIC'
12818	    ;;
12819	  *)
12820	    ;;
12821	esac
12822	;;
12823      sunos4*)
12824	case $cc_basename in
12825	  CC*)
12826	    # Sun C++ 4.x
12827	    lt_prog_compiler_pic_CXX='-pic'
12828	    lt_prog_compiler_static_CXX='-Bstatic'
12829	    ;;
12830	  lcc*)
12831	    # Lucid
12832	    lt_prog_compiler_pic_CXX='-pic'
12833	    ;;
12834	  *)
12835	    ;;
12836	esac
12837	;;
12838      tandem*)
12839	case $cc_basename in
12840	  NCC*)
12841	    # NonStop-UX NCC 3.20
12842	    lt_prog_compiler_pic_CXX='-KPIC'
12843	    ;;
12844	  *)
12845	    ;;
12846	esac
12847	;;
12848      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12849	case $cc_basename in
12850	  CC*)
12851	    lt_prog_compiler_wl_CXX='-Wl,'
12852	    lt_prog_compiler_pic_CXX='-KPIC'
12853	    lt_prog_compiler_static_CXX='-Bstatic'
12854	    ;;
12855	esac
12856	;;
12857      vxworks*)
12858	;;
12859      *)
12860	lt_prog_compiler_can_build_shared_CXX=no
12861	;;
12862    esac
12863  fi
12864
12865{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12866echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12867
12868#
12869# Check to make sure the PIC flag actually works.
12870#
12871if test -n "$lt_prog_compiler_pic_CXX"; then
12872
12873{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12874echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12875if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12876  echo $ECHO_N "(cached) $ECHO_C" >&6
12877else
12878  lt_prog_compiler_pic_works_CXX=no
12879  ac_outfile=conftest.$ac_objext
12880   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12881   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12882   # Insert the option either (1) after the last *FLAGS variable, or
12883   # (2) before a word containing "conftest.", or (3) at the end.
12884   # Note that $ac_compile itself does not contain backslashes and begins
12885   # with a dollar sign (not a hyphen), so the echo should work correctly.
12886   # The option is referenced via a variable to avoid confusing sed.
12887   lt_compile=`echo "$ac_compile" | $SED \
12888   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12889   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12890   -e 's:$: $lt_compiler_flag:'`
12891   (eval echo "\"\$as_me:12891: $lt_compile\"" >&5)
12892   (eval "$lt_compile" 2>conftest.err)
12893   ac_status=$?
12894   cat conftest.err >&5
12895   echo "$as_me:12895: \$? = $ac_status" >&5
12896   if (exit $ac_status) && test -s "$ac_outfile"; then
12897     # The compiler can only warn and ignore the option if not recognized
12898     # So say no if there are warnings other than the usual output.
12899     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12900     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12901     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12902       lt_prog_compiler_pic_works_CXX=yes
12903     fi
12904   fi
12905   $rm conftest*
12906
12907fi
12908{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12909echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12910
12911if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12912    case $lt_prog_compiler_pic_CXX in
12913     "" | " "*) ;;
12914     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12915     esac
12916else
12917    lt_prog_compiler_pic_CXX=
12918     lt_prog_compiler_can_build_shared_CXX=no
12919fi
12920
12921fi
12922case $host_os in
12923  # For platforms which do not support PIC, -DPIC is meaningless:
12924  *djgpp*)
12925    lt_prog_compiler_pic_CXX=
12926    ;;
12927  *)
12928    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12929    ;;
12930esac
12931
12932#
12933# Check to make sure the static flag actually works.
12934#
12935wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12936{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12937echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12938if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12939  echo $ECHO_N "(cached) $ECHO_C" >&6
12940else
12941  lt_prog_compiler_static_works_CXX=no
12942   save_LDFLAGS="$LDFLAGS"
12943   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12944   printf "$lt_simple_link_test_code" > conftest.$ac_ext
12945   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12946     # The linker can only warn and ignore the option if not recognized
12947     # So say no if there are warnings
12948     if test -s conftest.err; then
12949       # Append any errors to the config.log.
12950       cat conftest.err 1>&5
12951       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12952       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12953       if diff conftest.exp conftest.er2 >/dev/null; then
12954	 lt_prog_compiler_static_works_CXX=yes
12955       fi
12956     else
12957       lt_prog_compiler_static_works_CXX=yes
12958     fi
12959   fi
12960   $rm conftest*
12961   LDFLAGS="$save_LDFLAGS"
12962
12963fi
12964{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12965echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12966
12967if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12968    :
12969else
12970    lt_prog_compiler_static_CXX=
12971fi
12972
12973
12974{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12975echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12976if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12977  echo $ECHO_N "(cached) $ECHO_C" >&6
12978else
12979  lt_cv_prog_compiler_c_o_CXX=no
12980   $rm -r conftest 2>/dev/null
12981   mkdir conftest
12982   cd conftest
12983   mkdir out
12984   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12985
12986   lt_compiler_flag="-o out/conftest2.$ac_objext"
12987   # Insert the option either (1) after the last *FLAGS variable, or
12988   # (2) before a word containing "conftest.", or (3) at the end.
12989   # Note that $ac_compile itself does not contain backslashes and begins
12990   # with a dollar sign (not a hyphen), so the echo should work correctly.
12991   lt_compile=`echo "$ac_compile" | $SED \
12992   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12993   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12994   -e 's:$: $lt_compiler_flag:'`
12995   (eval echo "\"\$as_me:12995: $lt_compile\"" >&5)
12996   (eval "$lt_compile" 2>out/conftest.err)
12997   ac_status=$?
12998   cat out/conftest.err >&5
12999   echo "$as_me:12999: \$? = $ac_status" >&5
13000   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13001   then
13002     # The compiler can only warn and ignore the option if not recognized
13003     # So say no if there are warnings
13004     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13005     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13006     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13007       lt_cv_prog_compiler_c_o_CXX=yes
13008     fi
13009   fi
13010   chmod u+w . 2>&5
13011   $rm conftest*
13012   # SGI C++ compiler will create directory out/ii_files/ for
13013   # template instantiation
13014   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13015   $rm out/* && rmdir out
13016   cd ..
13017   rmdir conftest
13018   $rm conftest*
13019
13020fi
13021{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13022echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13023
13024
13025hard_links="nottested"
13026if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13027  # do not overwrite the value of need_locks provided by the user
13028  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13029echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13030  hard_links=yes
13031  $rm conftest*
13032  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13033  touch conftest.a
13034  ln conftest.a conftest.b 2>&5 || hard_links=no
13035  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13036  { echo "$as_me:$LINENO: result: $hard_links" >&5
13037echo "${ECHO_T}$hard_links" >&6; }
13038  if test "$hard_links" = no; then
13039    { echo "$as_me:$LINENO: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
13040echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
13041    need_locks=warn
13042  fi
13043else
13044  need_locks=no
13045fi
13046
13047{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13048echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13049
13050  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13051  case $host_os in
13052  aix4* | aix5*)
13053    # If we're using GNU nm, then we don't want the "-C" option.
13054    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13055    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13056      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'
13057    else
13058      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'
13059    fi
13060    ;;
13061  pw32*)
13062    export_symbols_cmds_CXX="$ltdll_cmds"
13063  ;;
13064  cygwin* | mingw*)
13065    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'
13066  ;;
13067  *)
13068    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13069  ;;
13070  esac
13071
13072{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13073echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13074test "$ld_shlibs_CXX" = no && can_build_shared=no
13075
13076#
13077# Do we need to explicitly link libc?
13078#
13079case "x$archive_cmds_need_lc_CXX" in
13080x|xyes)
13081  # Assume -lc should be added
13082  archive_cmds_need_lc_CXX=yes
13083
13084  if test "$enable_shared" = yes && test "$GCC" = yes; then
13085    case $archive_cmds_CXX in
13086    *'~'*)
13087      # FIXME: we may have to deal with multi-command sequences.
13088      ;;
13089    '$CC '*)
13090      # Test whether the compiler implicitly links with -lc since on some
13091      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13092      # to ld, don't add -lc before -lgcc.
13093      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13094echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13095      $rm conftest*
13096      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13097
13098      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13099  (eval $ac_compile) 2>&5
13100  ac_status=$?
13101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102  (exit $ac_status); } 2>conftest.err; then
13103	soname=conftest
13104	lib=conftest
13105	libobjs=conftest.$ac_objext
13106	deplibs=
13107	wl=$lt_prog_compiler_wl_CXX
13108	pic_flag=$lt_prog_compiler_pic_CXX
13109	compiler_flags=-v
13110	linker_flags=-v
13111	verstring=
13112	output_objdir=.
13113	libname=conftest
13114	lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13115	allow_undefined_flag_CXX=
13116	if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13117  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13118  ac_status=$?
13119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120  (exit $ac_status); }
13121	then
13122	  archive_cmds_need_lc_CXX=no
13123	else
13124	  archive_cmds_need_lc_CXX=yes
13125	fi
13126	allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13127      else
13128	cat conftest.err 1>&5
13129      fi
13130      $rm conftest*
13131      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13132echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13133      ;;
13134    esac
13135  fi
13136  ;;
13137esac
13138
13139{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13140echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13141library_names_spec=
13142libname_spec='lib$name'
13143soname_spec=
13144shrext_cmds=".so"
13145postinstall_cmds=
13146postuninstall_cmds=
13147finish_cmds=
13148finish_eval=
13149shlibpath_var=
13150shlibpath_overrides_runpath=unknown
13151version_type=none
13152dynamic_linker="$host_os ld.so"
13153sys_lib_dlsearch_path_spec="/lib /usr/lib"
13154if test "$GCC" = yes; then
13155  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13156  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13157    # if the path contains ";" then we assume it to be the separator
13158    # otherwise default to the standard path separator (i.e. ":") - it is
13159    # assumed that no part of a normal pathname contains ";" but that should
13160    # okay in the real world where ";" in dirpaths is itself problematic.
13161    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13162  else
13163    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13164  fi
13165else
13166  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13167fi
13168tmp="$sys_lib_search_path_spec"
13169sys_lib_search_path_spec=
13170sp=
13171for i in $tmp
13172do
13173  test -d $i && sys_lib_search_path_spec="$sys_lib_search_path_spec$sp$i"
13174  sp=" "
13175done
13176
13177need_lib_prefix=unknown
13178hardcode_into_libs=no
13179
13180# when you set need_version to no, make sure it does not cause -set_version
13181# flags to be left without arguments
13182need_version=unknown
13183
13184case $host_os in
13185aix3*)
13186  version_type=linux
13187  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13188  shlibpath_var=LIBPATH
13189
13190  # AIX 3 has no versioning support, so we append a major version to the name.
13191  soname_spec='${libname}${release}${shared_ext}$major'
13192  ;;
13193
13194aix4* | aix5*)
13195  version_type=linux
13196  need_lib_prefix=no
13197  need_version=no
13198  hardcode_into_libs=yes
13199  if test "$host_cpu" = ia64; then
13200    # AIX 5 supports IA64
13201    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13202    shlibpath_var=LD_LIBRARY_PATH
13203  else
13204    # With GCC up to 2.95.x, collect2 would create an import file
13205    # for dependence libraries.  The import file would start with
13206    # the line '#! .'.  This would cause the generated library to
13207    # depend on '.', always an invalid library.  This was fixed in
13208    # development snapshots of GCC prior to 3.0.
13209    case $host_os in
13210      aix4 | aix4.[01] | aix4.[01].*)
13211      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13212	   echo ' yes '
13213	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13214	:
13215      else
13216	can_build_shared=no
13217      fi
13218      ;;
13219    esac
13220    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13221    # soname into executable. Probably we can add versioning support to
13222    # collect2, so additional links can be useful in future.
13223    if test "$aix_use_runtimelinking" = yes; then
13224      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13225      # instead of lib<name>.a to let people know that these are not
13226      # typical AIX shared libraries.
13227      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13228    else
13229      # We preserve .a as extension for shared libraries through AIX4.2
13230      # and later when we are not doing run time linking.
13231      library_names_spec='${libname}${release}.a $libname.a'
13232      soname_spec='${libname}${release}${shared_ext}$major'
13233    fi
13234    shlibpath_var=LIBPATH
13235  fi
13236  ;;
13237
13238amigaos*)
13239  library_names_spec='$libname.ixlibrary $libname.a'
13240  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13241  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'
13242  ;;
13243
13244beos*)
13245  library_names_spec='${libname}${shared_ext}'
13246  dynamic_linker="$host_os ld.so"
13247  shlibpath_var=LIBRARY_PATH
13248  ;;
13249
13250bsdi[45]*)
13251  version_type=linux
13252  need_version=no
13253  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13254  soname_spec='${libname}${release}${shared_ext}$major'
13255  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13256  shlibpath_var=LD_LIBRARY_PATH
13257  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13258  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13259  # the default ld.so.conf also contains /usr/contrib/lib and
13260  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13261  # libtool to hard-code these into programs
13262  ;;
13263
13264cygwin* | mingw* | pw32*)
13265  version_type=windows
13266  shrext_cmds=".dll"
13267  need_version=no
13268  need_lib_prefix=no
13269
13270  case $GCC,$host_os in
13271  yes,cygwin* | yes,mingw* | yes,pw32*)
13272    library_names_spec='$libname.dll.a'
13273    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13274    postinstall_cmds='base_file=`basename \${file}`~
13275      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13276      dldir=$destdir/`dirname \$dlpath`~
13277      test -d \$dldir || mkdir -p \$dldir~
13278      $install_prog $dir/$dlname \$dldir/$dlname~
13279      chmod a+x \$dldir/$dlname'
13280    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13281      dlpath=$dir/\$dldll~
13282       $rm \$dlpath'
13283    shlibpath_overrides_runpath=yes
13284
13285    case $host_os in
13286    cygwin*)
13287      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13288      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13289      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13290      ;;
13291    mingw*)
13292      # MinGW DLLs use traditional 'lib' prefix
13293      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13294      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13295      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13296	# It is most probably a Windows format PATH printed by
13297	# mingw gcc, but we are running on Cygwin. Gcc prints its search
13298	# path with ; separators, and with drive letters. We can handle the
13299	# drive letters (cygwin fileutils understands them), so leave them,
13300	# especially as we might pass files found there to a mingw objdump,
13301	# which wouldn't understand a cygwinified path. Ahh.
13302	sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13303      else
13304	sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13305      fi
13306      ;;
13307    pw32*)
13308      # pw32 DLLs use 'pw' prefix rather than 'lib'
13309      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13310      ;;
13311    esac
13312    ;;
13313
13314  *)
13315    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13316    ;;
13317  esac
13318  dynamic_linker='Win32 ld.exe'
13319  # FIXME: first we should search . and the directory the executable is in
13320  shlibpath_var=PATH
13321  ;;
13322
13323darwin* | rhapsody*)
13324  dynamic_linker="$host_os dyld"
13325  version_type=darwin
13326  need_lib_prefix=no
13327  need_version=no
13328  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13329  soname_spec='${libname}${release}${major}$shared_ext'
13330  shlibpath_overrides_runpath=yes
13331  shlibpath_var=DYLD_LIBRARY_PATH
13332  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13333  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13334  if test "$GCC" = yes; then
13335    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"`
13336  else
13337    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13338  fi
13339  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13340  ;;
13341
13342dgux*)
13343  version_type=linux
13344  need_lib_prefix=no
13345  need_version=no
13346  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13347  soname_spec='${libname}${release}${shared_ext}$major'
13348  shlibpath_var=LD_LIBRARY_PATH
13349  ;;
13350
13351freebsd1*)
13352  dynamic_linker=no
13353  ;;
13354
13355kfreebsd*-gnu)
13356  version_type=linux
13357  need_lib_prefix=no
13358  need_version=no
13359  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13360  soname_spec='${libname}${release}${shared_ext}$major'
13361  shlibpath_var=LD_LIBRARY_PATH
13362  shlibpath_overrides_runpath=no
13363  hardcode_into_libs=yes
13364  dynamic_linker='GNU ld.so'
13365  ;;
13366
13367freebsd* | dragonfly*)
13368  # DragonFly does not have aout.  When/if they implement a new
13369  # versioning mechanism, adjust this.
13370  if test -x /usr/bin/objformat; then
13371    objformat=`/usr/bin/objformat`
13372  else
13373    case $host_os in
13374    freebsd[123]*) objformat=aout ;;
13375    *) objformat=elf ;;
13376    esac
13377  fi
13378  version_type=freebsd-$objformat
13379  case $version_type in
13380    freebsd-elf*)
13381      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13382      need_version=no
13383      need_lib_prefix=no
13384      ;;
13385    freebsd-*)
13386      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13387      need_version=yes
13388      ;;
13389  esac
13390  shlibpath_var=LD_LIBRARY_PATH
13391  case $host_os in
13392  freebsd2*)
13393    shlibpath_overrides_runpath=yes
13394    ;;
13395  freebsd3.[01]* | freebsdelf3.[01]*)
13396    shlibpath_overrides_runpath=yes
13397    hardcode_into_libs=yes
13398    ;;
13399  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13400  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13401    shlibpath_overrides_runpath=no
13402    hardcode_into_libs=yes
13403    ;;
13404  *) # from 4.6 on, and DragonFly
13405    shlibpath_overrides_runpath=yes
13406    hardcode_into_libs=yes
13407    ;;
13408  esac
13409  ;;
13410
13411gnu*)
13412  version_type=linux
13413  need_lib_prefix=no
13414  need_version=no
13415  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13416  soname_spec='${libname}${release}${shared_ext}$major'
13417  shlibpath_var=LD_LIBRARY_PATH
13418  hardcode_into_libs=yes
13419  ;;
13420
13421hpux9* | hpux10* | hpux11*)
13422  # Give a soname corresponding to the major version so that dld.sl refuses to
13423  # link against other versions.
13424  version_type=sunos
13425  need_lib_prefix=no
13426  need_version=no
13427  case $host_cpu in
13428  ia64*)
13429    shrext_cmds='.so'
13430    hardcode_into_libs=yes
13431    dynamic_linker="$host_os dld.so"
13432    shlibpath_var=LD_LIBRARY_PATH
13433    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13434    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13435    soname_spec='${libname}${release}${shared_ext}$major'
13436    if test "X$HPUX_IA64_MODE" = X32; then
13437      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13438    else
13439      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13440    fi
13441    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13442    ;;
13443   hppa*64*)
13444     shrext_cmds='.sl'
13445     hardcode_into_libs=yes
13446     dynamic_linker="$host_os dld.sl"
13447     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13448     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13449     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13450     soname_spec='${libname}${release}${shared_ext}$major'
13451     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13452     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13453     ;;
13454   *)
13455    shrext_cmds='.sl'
13456    dynamic_linker="$host_os dld.sl"
13457    shlibpath_var=SHLIB_PATH
13458    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13459    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13460    soname_spec='${libname}${release}${shared_ext}$major'
13461    ;;
13462  esac
13463  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13464  postinstall_cmds='chmod 555 $lib'
13465  ;;
13466
13467interix3*)
13468  version_type=linux
13469  need_lib_prefix=no
13470  need_version=no
13471  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13472  soname_spec='${libname}${release}${shared_ext}$major'
13473  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13474  shlibpath_var=LD_LIBRARY_PATH
13475  shlibpath_overrides_runpath=no
13476  hardcode_into_libs=yes
13477  ;;
13478
13479irix5* | irix6* | nonstopux*)
13480  case $host_os in
13481    nonstopux*) version_type=nonstopux ;;
13482    *)
13483	if test "$lt_cv_prog_gnu_ld" = yes; then
13484		version_type=linux
13485	else
13486		version_type=irix
13487	fi ;;
13488  esac
13489  need_lib_prefix=no
13490  need_version=no
13491  soname_spec='${libname}${release}${shared_ext}$major'
13492  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13493  case $host_os in
13494  irix5* | nonstopux*)
13495    libsuff= shlibsuff=
13496    ;;
13497  *)
13498    case $LD in # libtool.m4 will add one of these switches to LD
13499    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13500      libsuff= shlibsuff= libmagic=32-bit;;
13501    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13502      libsuff=32 shlibsuff=N32 libmagic=N32;;
13503    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13504      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13505    *) libsuff= shlibsuff= libmagic=never-match;;
13506    esac
13507    ;;
13508  esac
13509  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13510  shlibpath_overrides_runpath=no
13511  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13512  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13513  hardcode_into_libs=yes
13514  ;;
13515
13516# No shared lib support for Linux oldld, aout, or coff.
13517linux*oldld* | linux*aout* | linux*coff*)
13518  dynamic_linker=no
13519  ;;
13520
13521# This must be Linux ELF.
13522linux*)
13523  version_type=linux
13524  need_lib_prefix=no
13525  need_version=no
13526  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13527  soname_spec='${libname}${release}${shared_ext}$major'
13528  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13529  shlibpath_var=LD_LIBRARY_PATH
13530  shlibpath_overrides_runpath=no
13531  # This implies no fast_install, which is unacceptable.
13532  # Some rework will be needed to allow for fast_install
13533  # before this can be enabled.
13534  hardcode_into_libs=yes
13535
13536  # Append ld.so.conf contents to the search path
13537  if test -f /etc/ld.so.conf; then
13538    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13539    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13540  fi
13541
13542  # We used to test for /lib/ld.so.1 and disable shared libraries on
13543  # powerpc, because MkLinux only supported shared libraries with the
13544  # GNU dynamic linker.  Since this was broken with cross compilers,
13545  # most powerpc-linux boxes support dynamic linking these days and
13546  # people can always --disable-shared, the test was removed, and we
13547  # assume the GNU/Linux dynamic linker is in use.
13548  dynamic_linker='GNU/Linux ld.so'
13549  ;;
13550
13551mirbsd*)
13552  version_type=linux
13553  sys_lib_dlsearch_path_spec="/usr/lib"
13554  need_lib_prefix=no
13555  need_version=no
13556  library_names_spec='${libname}${release}${shared_ext}$versuffix2 ${libname}${shared_ext}$versuffix2'
13557  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13558  shlibpath_var=LD_LIBRARY_PATH
13559  shlibpath_overrides_runpath=yes
13560  ;;
13561
13562knetbsd*-gnu)
13563  version_type=linux
13564  need_lib_prefix=no
13565  need_version=no
13566  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13567  soname_spec='${libname}${release}${shared_ext}$major'
13568  shlibpath_var=LD_LIBRARY_PATH
13569  shlibpath_overrides_runpath=no
13570  hardcode_into_libs=yes
13571  dynamic_linker='GNU ld.so'
13572  ;;
13573
13574netbsd*)
13575  version_type=sunos
13576  need_lib_prefix=no
13577  need_version=no
13578  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13579    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13580    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13581    dynamic_linker='NetBSD (a.out) ld.so'
13582  else
13583    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13584    soname_spec='${libname}${release}${shared_ext}$major'
13585    dynamic_linker='NetBSD ld.elf_so'
13586  fi
13587  shlibpath_var=LD_LIBRARY_PATH
13588  shlibpath_overrides_runpath=yes
13589  hardcode_into_libs=yes
13590  ;;
13591
13592newsos6)
13593  version_type=linux
13594  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13595  shlibpath_var=LD_LIBRARY_PATH
13596  shlibpath_overrides_runpath=yes
13597  ;;
13598
13599nto-qnx*)
13600  version_type=linux
13601  need_lib_prefix=no
13602  need_version=no
13603  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13604  soname_spec='${libname}${release}${shared_ext}$major'
13605  shlibpath_var=LD_LIBRARY_PATH
13606  shlibpath_overrides_runpath=yes
13607  ;;
13608
13609openbsd*)
13610  version_type=linux
13611  sys_lib_dlsearch_path_spec="/usr/lib"
13612  need_lib_prefix=no
13613  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13614  case $host_os in
13615    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13616    *)                         need_version=no  ;;
13617  esac
13618  library_names_spec='${libname}${release}${shared_ext}$versuffix2 ${libname}${shared_ext}$versuffix2'
13619  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13620  shlibpath_var=LD_LIBRARY_PATH
13621  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13622    case $host_os in
13623      openbsd2.[89] | openbsd2.[89].*)
13624	shlibpath_overrides_runpath=no
13625	;;
13626      *)
13627	shlibpath_overrides_runpath=yes
13628	;;
13629      esac
13630  else
13631    shlibpath_overrides_runpath=yes
13632  fi
13633  ;;
13634
13635os2*)
13636  libname_spec='$name'
13637  shrext_cmds=".dll"
13638  need_lib_prefix=no
13639  library_names_spec='$libname${shared_ext} $libname.a'
13640  dynamic_linker='OS/2 ld.exe'
13641  shlibpath_var=LIBPATH
13642  ;;
13643
13644osf3* | osf4* | osf5*)
13645  version_type=osf
13646  need_lib_prefix=no
13647  need_version=no
13648  soname_spec='${libname}${release}${shared_ext}$major'
13649  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13650  shlibpath_var=LD_LIBRARY_PATH
13651  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13652  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13653  ;;
13654
13655rdos*)
13656  dynamic_linker=no
13657  ;;
13658
13659solaris*)
13660  version_type=linux
13661  need_lib_prefix=no
13662  need_version=no
13663  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13664  soname_spec='${libname}${release}${shared_ext}$major'
13665  shlibpath_var=LD_LIBRARY_PATH
13666  shlibpath_overrides_runpath=yes
13667  hardcode_into_libs=yes
13668  # ldd complains unless libraries are executable
13669  postinstall_cmds='chmod +x $lib'
13670  ;;
13671
13672sunos4*)
13673  version_type=sunos
13674  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13675  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13676  shlibpath_var=LD_LIBRARY_PATH
13677  shlibpath_overrides_runpath=yes
13678  if test "$with_gnu_ld" = yes; then
13679    need_lib_prefix=no
13680  fi
13681  need_version=yes
13682  ;;
13683
13684sysv4 | sysv4.3*)
13685  version_type=linux
13686  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13687  soname_spec='${libname}${release}${shared_ext}$major'
13688  shlibpath_var=LD_LIBRARY_PATH
13689  case $host_vendor in
13690    sni)
13691      shlibpath_overrides_runpath=no
13692      need_lib_prefix=no
13693      export_dynamic_flag_spec='${wl}-Blargedynsym'
13694      runpath_var=LD_RUN_PATH
13695      ;;
13696    siemens)
13697      need_lib_prefix=no
13698      ;;
13699    motorola)
13700      need_lib_prefix=no
13701      need_version=no
13702      shlibpath_overrides_runpath=no
13703      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13704      ;;
13705  esac
13706  ;;
13707
13708sysv4*MP*)
13709  if test -d /usr/nec ;then
13710    version_type=linux
13711    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13712    soname_spec='$libname${shared_ext}.$major'
13713    shlibpath_var=LD_LIBRARY_PATH
13714  fi
13715  ;;
13716
13717sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13718  version_type=freebsd-elf
13719  need_lib_prefix=no
13720  need_version=no
13721  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13722  soname_spec='${libname}${release}${shared_ext}$major'
13723  shlibpath_var=LD_LIBRARY_PATH
13724  hardcode_into_libs=yes
13725  if test "$with_gnu_ld" = yes; then
13726    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13727    shlibpath_overrides_runpath=no
13728  else
13729    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13730    shlibpath_overrides_runpath=yes
13731    case $host_os in
13732      sco3.2v5*)
13733	sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13734	;;
13735    esac
13736  fi
13737  sys_lib_dlsearch_path_spec='/usr/lib'
13738  ;;
13739
13740uts4*)
13741  version_type=linux
13742  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13743  soname_spec='${libname}${release}${shared_ext}$major'
13744  shlibpath_var=LD_LIBRARY_PATH
13745  ;;
13746
13747*)
13748  dynamic_linker=no
13749  ;;
13750esac
13751{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13752echo "${ECHO_T}$dynamic_linker" >&6; }
13753test "$dynamic_linker" = no && can_build_shared=no
13754
13755variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13756if test "$GCC" = yes; then
13757  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13758fi
13759
13760{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13761echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13762hardcode_action_CXX=
13763if test -n "$hardcode_libdir_flag_spec_CXX" || \
13764   test -n "$runpath_var_CXX" || \
13765   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13766
13767  # We can hardcode non-existant directories.
13768  if test "$hardcode_direct_CXX" != no &&
13769     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13770     # have to relink, otherwise we might link with an installed library
13771     # when we should be linking with a yet-to-be-installed one
13772     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13773     test "$hardcode_minus_L_CXX" != no; then
13774    # Linking always hardcodes the temporary library directory.
13775    hardcode_action_CXX=relink
13776  else
13777    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13778    hardcode_action_CXX=immediate
13779  fi
13780else
13781  # We cannot hardcode anything, or else we can only hardcode existing
13782  # directories.
13783  hardcode_action_CXX=unsupported
13784fi
13785{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13786echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13787
13788if test "$hardcode_action_CXX" = relink; then
13789  # Fast installation is not supported
13790  enable_fast_install=no
13791elif test "$shlibpath_overrides_runpath" = yes ||
13792     test "$enable_shared" = no; then
13793  # Fast installation is not necessary
13794  enable_fast_install=needless
13795fi
13796
13797
13798# The else clause should only fire when bootstrapping the
13799# libtool distribution, otherwise you forgot to ship ltmain.sh
13800# with your package, and you will get complaints that there are
13801# no rules to generate ltmain.sh.
13802if test -f "$ltmain"; then
13803  # See if we are running on zsh, and set the options which allow our commands through
13804  # without removal of \ escapes.
13805  if test -n "${ZSH_VERSION+set}" ; then
13806    setopt NO_GLOB_SUBST
13807  fi
13808  # Now quote all the things that may contain metacharacters while being
13809  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13810  # variables and quote the copies for generation of the libtool script.
13811  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13812    SED SHELL STRIP \
13813    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13814    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13815    deplibs_check_method reload_flag reload_cmds need_locks \
13816    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13817    lt_cv_sys_global_symbol_to_c_name_address \
13818    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13819    old_postinstall_cmds old_postuninstall_cmds \
13820    compiler_CXX \
13821    CC_CXX \
13822    LD_CXX \
13823    lt_prog_compiler_wl_CXX \
13824    lt_prog_compiler_pic_CXX \
13825    lt_prog_compiler_static_CXX \
13826    lt_prog_compiler_no_builtin_flag_CXX \
13827    export_dynamic_flag_spec_CXX \
13828    thread_safe_flag_spec_CXX \
13829    whole_archive_flag_spec_CXX \
13830    enable_shared_with_static_runtimes_CXX \
13831    old_archive_cmds_CXX \
13832    old_archive_from_new_cmds_CXX \
13833    predep_objects_CXX \
13834    postdep_objects_CXX \
13835    predeps_CXX \
13836    postdeps_CXX \
13837    compiler_lib_search_path_CXX \
13838    archive_cmds_CXX \
13839    archive_expsym_cmds_CXX \
13840    postinstall_cmds_CXX \
13841    postuninstall_cmds_CXX \
13842    old_archive_from_expsyms_cmds_CXX \
13843    allow_undefined_flag_CXX \
13844    no_undefined_flag_CXX \
13845    export_symbols_cmds_CXX \
13846    hardcode_libdir_flag_spec_CXX \
13847    hardcode_libdir_flag_spec_ld_CXX \
13848    hardcode_libdir_separator_CXX \
13849    hardcode_automatic_CXX \
13850    module_cmds_CXX \
13851    module_expsym_cmds_CXX \
13852    lt_cv_prog_compiler_c_o_CXX \
13853    exclude_expsyms_CXX \
13854    include_expsyms_CXX; do
13855
13856    case $var in
13857    old_archive_cmds_CXX | \
13858    old_archive_from_new_cmds_CXX | \
13859    archive_cmds_CXX | \
13860    archive_expsym_cmds_CXX | \
13861    module_cmds_CXX | \
13862    module_expsym_cmds_CXX | \
13863    old_archive_from_expsyms_cmds_CXX | \
13864    export_symbols_cmds_CXX | \
13865    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13866    postinstall_cmds | postuninstall_cmds | \
13867    old_postinstall_cmds | old_postuninstall_cmds | \
13868    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13869      # Double-quote double-evaled strings.
13870      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13871      ;;
13872    *)
13873      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13874      ;;
13875    esac
13876  done
13877
13878  case $lt_echo in
13879  *'\$0 --fallback-echo"')
13880    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13881    ;;
13882  esac
13883
13884cfgfile="$ofile"
13885
13886  cat <<__EOF__ >> "$cfgfile"
13887# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13888
13889# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13890
13891# Shell to use when invoking shell scripts.
13892SHELL=$lt_SHELL
13893
13894# Whether or not to build shared libraries.
13895build_libtool_libs=$enable_shared
13896
13897# Whether or not to build static libraries.
13898build_old_libs=$enable_static
13899
13900# Whether or not to add -lc for building shared libraries.
13901build_libtool_need_lc=$archive_cmds_need_lc_CXX
13902
13903# Whether or not to disallow shared libs when runtime libs are static
13904allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13905
13906# Whether or not to optimize for fast installation.
13907fast_install=$enable_fast_install
13908
13909# The host system.
13910host_alias=$host_alias
13911host=$host
13912host_os=$host_os
13913
13914# The build system.
13915build_alias=$build_alias
13916build=$build
13917build_os=$build_os
13918
13919# An echo program that does not interpret backslashes.
13920echo=$lt_echo
13921
13922# The archiver.
13923AR=$lt_AR
13924AR_FLAGS=$lt_AR_FLAGS
13925
13926# A C compiler.
13927LTCC=$lt_LTCC
13928
13929# LTCC compiler flags.
13930LTCFLAGS=$lt_LTCFLAGS
13931
13932# A language-specific compiler.
13933CC=$lt_compiler_CXX
13934
13935# Is the compiler the GNU C compiler?
13936with_gcc=$GCC_CXX
13937
13938# An ERE matcher.
13939EGREP=$lt_EGREP
13940
13941# The linker used to build libraries.
13942LD=$lt_LD_CXX
13943
13944# Whether we need hard or soft links.
13945LN_S=$lt_LN_S
13946
13947# A BSD-compatible nm program.
13948NM=$lt_NM
13949
13950# A symbol stripping program
13951STRIP=$lt_STRIP
13952
13953# Used to examine libraries when file_magic_cmd begins "file"
13954MAGIC_CMD=$MAGIC_CMD
13955
13956# Used on cygwin: DLL creation program.
13957DLLTOOL="$DLLTOOL"
13958
13959# Used on cygwin: object dumper.
13960OBJDUMP="$OBJDUMP"
13961
13962# Used on cygwin: assembler.
13963AS="$AS"
13964
13965# The name of the directory that contains temporary libtool files.
13966objdir=$objdir
13967
13968# How to create reloadable object files.
13969reload_flag=$lt_reload_flag
13970reload_cmds=$lt_reload_cmds
13971
13972# How to pass a linker flag through the compiler.
13973wl=$lt_lt_prog_compiler_wl_CXX
13974
13975# Object file suffix (normally "o").
13976objext="$ac_objext"
13977
13978# Old archive suffix (normally "a").
13979libext="$libext"
13980
13981# Shared library suffix (normally ".so").
13982shrext_cmds='$shrext_cmds'
13983
13984# Executable file suffix (normally "").
13985exeext="$exeext"
13986
13987# Additional compiler flags for building library objects.
13988pic_flag=$lt_lt_prog_compiler_pic_CXX
13989pic_mode=$pic_mode
13990
13991# What is the maximum length of a command?
13992max_cmd_len=$lt_cv_sys_max_cmd_len
13993
13994# Does compiler simultaneously support -c and -o options?
13995compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13996
13997# Must we lock files when doing compilation?
13998need_locks=$lt_need_locks
13999
14000# Do we need the lib prefix for modules?
14001need_lib_prefix=$need_lib_prefix
14002
14003# Do we need a version for libraries?
14004need_version=$need_version
14005
14006# Whether dlopen is supported.
14007dlopen_support=$enable_dlopen
14008
14009# Whether dlopen of programs is supported.
14010dlopen_self=$enable_dlopen_self
14011
14012# Whether dlopen of statically linked programs is supported.
14013dlopen_self_static=$enable_dlopen_self_static
14014
14015# Compiler flag to prevent dynamic linking.
14016link_static_flag=$lt_lt_prog_compiler_static_CXX
14017
14018# Compiler flag to turn off builtin functions.
14019no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14020
14021# Compiler flag to allow reflexive dlopens.
14022export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14023
14024# Compiler flag to generate shared objects directly from archives.
14025whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14026
14027# Compiler flag to generate thread-safe objects.
14028thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14029
14030# Library versioning type.
14031version_type=$version_type
14032
14033# Format of library name prefix.
14034libname_spec=$lt_libname_spec
14035
14036# List of archive names.  First name is the real one, the rest are links.
14037# The last name is the one that the linker finds with -lNAME.
14038library_names_spec=$lt_library_names_spec
14039
14040# The coded name of the library, if different from the real name.
14041soname_spec=$lt_soname_spec
14042
14043# Commands used to build and install an old-style archive.
14044RANLIB=$lt_RANLIB
14045old_archive_cmds=$lt_old_archive_cmds_CXX
14046old_postinstall_cmds=$lt_old_postinstall_cmds
14047old_postuninstall_cmds=$lt_old_postuninstall_cmds
14048
14049# Create an old-style archive from a shared archive.
14050old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14051
14052# Create a temporary old-style archive to link instead of a shared archive.
14053old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14054
14055# Commands used to build and install a shared archive.
14056archive_cmds=$lt_archive_cmds_CXX
14057archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14058postinstall_cmds=$lt_postinstall_cmds
14059postuninstall_cmds=$lt_postuninstall_cmds
14060
14061# Commands used to build a loadable module (assumed same as above if empty)
14062module_cmds=$lt_module_cmds_CXX
14063module_expsym_cmds=$lt_module_expsym_cmds_CXX
14064
14065# Commands to strip libraries.
14066old_striplib=$lt_old_striplib
14067striplib=$lt_striplib
14068
14069# Dependencies to place before the objects being linked to create a
14070# shared library.
14071predep_objects=$lt_predep_objects_CXX
14072
14073# Dependencies to place after the objects being linked to create a
14074# shared library.
14075postdep_objects=$lt_postdep_objects_CXX
14076
14077# Dependencies to place before the objects being linked to create a
14078# shared library.
14079predeps=$lt_predeps_CXX
14080
14081# Dependencies to place after the objects being linked to create a
14082# shared library.
14083postdeps=$lt_postdeps_CXX
14084
14085# The library search path used internally by the compiler when linking
14086# a shared library.
14087compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14088
14089# Method to check whether dependent libraries are shared objects.
14090deplibs_check_method=$lt_deplibs_check_method
14091
14092# Command to use when deplibs_check_method == file_magic.
14093file_magic_cmd=$lt_file_magic_cmd
14094
14095# Flag that allows shared libraries with undefined symbols to be built.
14096allow_undefined_flag=$lt_allow_undefined_flag_CXX
14097
14098# Flag that forces no undefined symbols.
14099no_undefined_flag=$lt_no_undefined_flag_CXX
14100
14101# Commands used to finish a libtool library installation in a directory.
14102finish_cmds=$lt_finish_cmds
14103
14104# Same as above, but a single script fragment to be evaled but not shown.
14105finish_eval=$lt_finish_eval
14106
14107# Take the output of nm and produce a listing of raw symbols and C names.
14108global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14109
14110# Transform the output of nm in a proper C declaration
14111global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14112
14113# Transform the output of nm in a C name address pair
14114global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14115
14116# This is the shared library runtime path variable.
14117runpath_var=$runpath_var
14118
14119# This is the shared library path variable.
14120shlibpath_var=$shlibpath_var
14121
14122# Is shlibpath searched before the hard-coded library search path?
14123shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14124
14125# How to hardcode a shared library path into an executable.
14126hardcode_action=$hardcode_action_CXX
14127
14128# Whether we should hardcode library paths into libraries.
14129hardcode_into_libs=$hardcode_into_libs
14130
14131# Flag to hardcode \$libdir into a binary during linking.
14132# This must work even if \$libdir does not exist.
14133hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14134
14135# If ld is used when linking, flag to hardcode \$libdir into
14136# a binary during linking. This must work even if \$libdir does
14137# not exist.
14138hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14139
14140# Whether we need a single -rpath flag with a separated argument.
14141hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14142
14143# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14144# resulting binary.
14145hardcode_direct=$hardcode_direct_CXX
14146
14147# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14148# resulting binary.
14149hardcode_minus_L=$hardcode_minus_L_CXX
14150
14151# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14152# the resulting binary.
14153hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14154
14155# Set to yes if building a shared library automatically hardcodes DIR into the library
14156# and all subsequent libraries and executables linked against it.
14157hardcode_automatic=$hardcode_automatic_CXX
14158
14159# Variables whose values should be saved in libtool wrapper scripts and
14160# restored at relink time.
14161variables_saved_for_relink="$variables_saved_for_relink"
14162
14163# Whether libtool must link a program against all its dependency libraries.
14164link_all_deplibs=$link_all_deplibs_CXX
14165
14166# Compile-time system search path for libraries
14167sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14168
14169# Run-time system search path for libraries
14170sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14171
14172# Fix the shell variable \$srcfile for the compiler.
14173fix_srcfile_path="$fix_srcfile_path_CXX"
14174
14175# Set to yes if exported symbols are required.
14176always_export_symbols=$always_export_symbols_CXX
14177
14178# The commands to list exported symbols.
14179export_symbols_cmds=$lt_export_symbols_cmds_CXX
14180
14181# The commands to extract the exported symbol list from a shared archive.
14182extract_expsyms_cmds=$lt_extract_expsyms_cmds
14183
14184# Symbols that should not be listed in the preloaded symbols.
14185exclude_expsyms=$lt_exclude_expsyms_CXX
14186
14187# Symbols that must always be exported.
14188include_expsyms=$lt_include_expsyms_CXX
14189
14190# ### END LIBTOOL TAG CONFIG: $tagname
14191
14192__EOF__
14193
14194
14195else
14196  # If there is no Makefile yet, we rely on a make rule to execute
14197  # 'config.status --recheck' to rerun these tests and create the
14198  # libtool script then.
14199  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14200  if test -f "$ltmain_in"; then
14201    test -f Makefile && make "$ltmain"
14202  fi
14203fi
14204
14205
14206ac_ext=c
14207ac_cpp='$CPP $CPPFLAGS'
14208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14210ac_compiler_gnu=$ac_cv_c_compiler_gnu
14211
14212CC=$lt_save_CC
14213LDCXX=$LD
14214LD=$lt_save_LD
14215GCC=$lt_save_GCC
14216with_gnu_ldcxx=$with_gnu_ld
14217with_gnu_ld=$lt_save_with_gnu_ld
14218lt_cv_path_LDCXX=$lt_cv_path_LD
14219lt_cv_path_LD=$lt_save_path_LD
14220lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14221lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14222
14223	else
14224	  tagname=""
14225	fi
14226	;;
14227
14228      F77)
14229	if test -n "$F77" && test "X$F77" != "Xno"; then
14230
14231
14232
14233ac_ext=f
14234ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14235ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14236ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14237
14238
14239archive_cmds_need_lc_F77=no
14240allow_undefined_flag_F77=
14241always_export_symbols_F77=no
14242archive_expsym_cmds_F77=
14243export_dynamic_flag_spec_F77=
14244hardcode_direct_F77=no
14245hardcode_libdir_flag_spec_F77=
14246hardcode_libdir_flag_spec_ld_F77=
14247hardcode_libdir_separator_F77=
14248hardcode_minus_L_F77=no
14249hardcode_automatic_F77=no
14250module_cmds_F77=
14251module_expsym_cmds_F77=
14252link_all_deplibs_F77=unknown
14253old_archive_cmds_F77=$old_archive_cmds
14254no_undefined_flag_F77=
14255whole_archive_flag_spec_F77=
14256enable_shared_with_static_runtimes_F77=no
14257
14258# Source file extension for f77 test sources.
14259ac_ext=f
14260
14261# Object file extension for compiled f77 test sources.
14262objext=o
14263objext_F77=$objext
14264
14265# Code to be used in simple compile tests
14266lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14267
14268# Code to be used in simple link tests
14269lt_simple_link_test_code="      program t\n      end\n"
14270
14271# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14272
14273# If no C compiler was specified, use CC.
14274LTCC=${LTCC-"$CC"}
14275
14276# If no C compiler flags were specified, use CFLAGS.
14277LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14278
14279# Allow CC to be a program name with arguments.
14280compiler=$CC
14281
14282
14283# save warnings/boilerplate of simple test code
14284ac_outfile=conftest.$ac_objext
14285printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14286eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14287_lt_compiler_boilerplate=`cat conftest.err`
14288$rm conftest*
14289
14290ac_outfile=conftest.$ac_objext
14291printf "$lt_simple_link_test_code" >conftest.$ac_ext
14292eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14293_lt_linker_boilerplate=`cat conftest.err`
14294$rm conftest*
14295
14296
14297# Allow CC to be a program name with arguments.
14298lt_save_CC="$CC"
14299CC=${F77-"f77"}
14300compiler=$CC
14301compiler_F77=$CC
14302for cc_temp in $compiler""; do
14303  case $cc_temp in
14304    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14305    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14306    \-*) ;;
14307    *) break;;
14308  esac
14309done
14310cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14311
14312
14313{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14314echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14315{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14316echo "${ECHO_T}$can_build_shared" >&6; }
14317
14318{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14319echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14320test "$can_build_shared" = "no" && enable_shared=no
14321
14322# On AIX, shared libraries and static libraries use the same namespace, and
14323# are all built from PIC.
14324case $host_os in
14325aix3*)
14326  test "$enable_shared" = yes && enable_static=no
14327  if test -n "$RANLIB"; then
14328    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14329    postinstall_cmds='$RANLIB $lib'
14330  fi
14331  ;;
14332aix4* | aix5*)
14333  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14334    test "$enable_shared" = yes && enable_static=no
14335  fi
14336  ;;
14337esac
14338{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14339echo "${ECHO_T}$enable_shared" >&6; }
14340
14341{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14342echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14343# Make sure either enable_shared or enable_static is yes.
14344test "$enable_shared" = yes || enable_static=yes
14345{ echo "$as_me:$LINENO: result: $enable_static" >&5
14346echo "${ECHO_T}$enable_static" >&6; }
14347
14348GCC_F77="$G77"
14349LD_F77="$LD"
14350
14351lt_prog_compiler_wl_F77=
14352lt_prog_compiler_pic_F77=
14353lt_prog_compiler_static_F77=
14354
14355{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14356echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14357
14358  if test "$GCC" = yes; then
14359    lt_prog_compiler_wl_F77='-Wl,'
14360    lt_prog_compiler_static_F77='-static'
14361
14362    case $host_os in
14363      aix*)
14364      # All AIX code is PIC.
14365      if test "$host_cpu" = ia64; then
14366	# AIX 5 now supports IA64 processor
14367	lt_prog_compiler_static_F77='-Bstatic'
14368      fi
14369      ;;
14370
14371    amigaos*)
14372      # FIXME: we need at least 68020 code to build shared libraries, but
14373      # adding the '-m68020' flag to GCC prevents building anything better,
14374      # like '-m68040'.
14375      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14376      ;;
14377
14378    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14379      # PIC is the default for these OSes.
14380      ;;
14381
14382    mingw* | cygwin* | pw32* | os2*)
14383      # This hack is so that the source file can tell whether it is being
14384      # built for inclusion in a dll (and should export symbols for example).
14385      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14386      # (--disable-auto-import) libraries
14387      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14388      ;;
14389
14390    darwin* | rhapsody*)
14391      # PIC is the default on this platform
14392      # Common symbols not allowed in MH_DYLIB files
14393      lt_prog_compiler_pic_F77='-fno-common'
14394      ;;
14395
14396    interix3*)
14397      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14398      # Instead, we relocate shared libraries at runtime.
14399      ;;
14400
14401    msdosdjgpp*)
14402      # Just because we use GCC doesn't mean we suddenly get shared libraries
14403      # on systems that don't support them.
14404      lt_prog_compiler_can_build_shared_F77=no
14405      enable_shared=no
14406      ;;
14407
14408    sysv4*MP*)
14409      if test -d /usr/nec; then
14410	lt_prog_compiler_pic_F77=-Kconform_pic
14411      fi
14412      ;;
14413
14414    hpux*)
14415      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14416      # not for PA HP-UX.
14417      case $host_cpu in
14418      hppa*64*|ia64*)
14419	# +Z the default
14420	;;
14421      *)
14422	lt_prog_compiler_pic_F77='-fPIC'
14423	;;
14424      esac
14425      ;;
14426
14427    *)
14428      lt_prog_compiler_pic_F77='-fPIC'
14429      ;;
14430    esac
14431  else
14432    # PORTME Check for flag to pass linker flags through the system compiler.
14433    case $host_os in
14434    aix*)
14435      lt_prog_compiler_wl_F77='-Wl,'
14436      if test "$host_cpu" = ia64; then
14437	# AIX 5 now supports IA64 processor
14438	lt_prog_compiler_static_F77='-Bstatic'
14439      else
14440	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14441      fi
14442      ;;
14443      darwin*)
14444	# PIC is the default on this platform
14445	# Common symbols not allowed in MH_DYLIB files
14446	case $cc_basename in
14447	xlc*)
14448	  lt_prog_compiler_pic_F77='-qnocommon'
14449	  lt_prog_compiler_wl_F77='-Wl,'
14450	  ;;
14451	esac
14452	;;
14453
14454    mingw* | cygwin* | pw32* | os2*)
14455      # This hack is so that the source file can tell whether it is being
14456      # built for inclusion in a dll (and should export symbols for example).
14457      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14458      ;;
14459
14460    hpux9* | hpux10* | hpux11*)
14461      lt_prog_compiler_wl_F77='-Wl,'
14462      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14463      # not for PA HP-UX.
14464      case $host_cpu in
14465      hppa*64*|ia64*)
14466	# +Z the default
14467	;;
14468      *)
14469	lt_prog_compiler_pic_F77='+Z'
14470	;;
14471      esac
14472      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14473      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14474      ;;
14475
14476    irix5* | irix6* | nonstopux*)
14477      lt_prog_compiler_wl_F77='-Wl,'
14478      # PIC (with -KPIC) is the default.
14479      lt_prog_compiler_static_F77='-non_shared'
14480      ;;
14481
14482    newsos6)
14483      lt_prog_compiler_pic_F77='-KPIC'
14484      lt_prog_compiler_static_F77='-Bstatic'
14485      ;;
14486
14487    linux*)
14488      case $cc_basename in
14489      icc* | ecc*)
14490	lt_prog_compiler_wl_F77='-Wl,'
14491	lt_prog_compiler_pic_F77='-KPIC'
14492	lt_prog_compiler_static_F77='-static'
14493	;;
14494      pgcc* | pgf77* | pgf90* | pgf95*)
14495	# Portland Group compilers (*not* the Pentium gcc compiler,
14496	# which looks to be a dead project)
14497	lt_prog_compiler_wl_F77='-Wl,'
14498	lt_prog_compiler_pic_F77='-fpic'
14499	lt_prog_compiler_static_F77='-Bstatic'
14500	;;
14501      ccc*)
14502        lt_prog_compiler_wl_F77='-Wl,'
14503        # All Alpha code is PIC.
14504        lt_prog_compiler_static_F77='-non_shared'
14505        ;;
14506      *)
14507        case `$CC -V 2>&1 | sed 5q` in
14508	*Sun\ C*)
14509	  # Sun C 5.9
14510	  lt_prog_compiler_pic_F77='-KPIC'
14511	  lt_prog_compiler_static_F77='-Bstatic'
14512	  lt_prog_compiler_wl_F77='-Wl,'
14513	  ;;
14514	*Sun\ F*)
14515	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14516	  lt_prog_compiler_pic_F77='-KPIC'
14517	  lt_prog_compiler_static_F77='-Bstatic'
14518	  lt_prog_compiler_wl_F77=''
14519	  ;;
14520	esac
14521	;;
14522      esac
14523      ;;
14524
14525    osf3* | osf4* | osf5*)
14526      lt_prog_compiler_wl_F77='-Wl,'
14527      # All OSF/1 code is PIC.
14528      lt_prog_compiler_static_F77='-non_shared'
14529      ;;
14530
14531    rdos*)
14532      lt_prog_compiler_static_F77='-non_shared'
14533      ;;
14534
14535    solaris*)
14536      lt_prog_compiler_pic_F77='-KPIC'
14537      lt_prog_compiler_static_F77='-Bstatic'
14538      case $cc_basename in
14539      f77* | f90* | f95*)
14540	lt_prog_compiler_wl_F77='-Qoption ld ';;
14541      *)
14542	lt_prog_compiler_wl_F77='-Wl,';;
14543      esac
14544      ;;
14545
14546    sunos4*)
14547      lt_prog_compiler_wl_F77='-Qoption ld '
14548      lt_prog_compiler_pic_F77='-PIC'
14549      lt_prog_compiler_static_F77='-Bstatic'
14550      ;;
14551
14552    sysv4 | sysv4.2uw2* | sysv4.3*)
14553      lt_prog_compiler_wl_F77='-Wl,'
14554      lt_prog_compiler_pic_F77='-KPIC'
14555      lt_prog_compiler_static_F77='-Bstatic'
14556      ;;
14557
14558    sysv4*MP*)
14559      if test -d /usr/nec ;then
14560	lt_prog_compiler_pic_F77='-Kconform_pic'
14561	lt_prog_compiler_static_F77='-Bstatic'
14562      fi
14563      ;;
14564
14565    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14566      lt_prog_compiler_wl_F77='-Wl,'
14567      lt_prog_compiler_pic_F77='-KPIC'
14568      lt_prog_compiler_static_F77='-Bstatic'
14569      ;;
14570
14571    unicos*)
14572      lt_prog_compiler_wl_F77='-Wl,'
14573      lt_prog_compiler_can_build_shared_F77=no
14574      ;;
14575
14576    uts4*)
14577      lt_prog_compiler_pic_F77='-pic'
14578      lt_prog_compiler_static_F77='-Bstatic'
14579      ;;
14580
14581    *)
14582      lt_prog_compiler_can_build_shared_F77=no
14583      ;;
14584    esac
14585  fi
14586
14587{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14588echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14589
14590#
14591# Check to make sure the PIC flag actually works.
14592#
14593if test -n "$lt_prog_compiler_pic_F77"; then
14594
14595{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14596echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14597if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14598  echo $ECHO_N "(cached) $ECHO_C" >&6
14599else
14600  lt_prog_compiler_pic_works_F77=no
14601  ac_outfile=conftest.$ac_objext
14602   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14603   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14604   # Insert the option either (1) after the last *FLAGS variable, or
14605   # (2) before a word containing "conftest.", or (3) at the end.
14606   # Note that $ac_compile itself does not contain backslashes and begins
14607   # with a dollar sign (not a hyphen), so the echo should work correctly.
14608   # The option is referenced via a variable to avoid confusing sed.
14609   lt_compile=`echo "$ac_compile" | $SED \
14610   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14611   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14612   -e 's:$: $lt_compiler_flag:'`
14613   (eval echo "\"\$as_me:14613: $lt_compile\"" >&5)
14614   (eval "$lt_compile" 2>conftest.err)
14615   ac_status=$?
14616   cat conftest.err >&5
14617   echo "$as_me:14617: \$? = $ac_status" >&5
14618   if (exit $ac_status) && test -s "$ac_outfile"; then
14619     # The compiler can only warn and ignore the option if not recognized
14620     # So say no if there are warnings other than the usual output.
14621     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14622     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14623     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14624       lt_prog_compiler_pic_works_F77=yes
14625     fi
14626   fi
14627   $rm conftest*
14628
14629fi
14630{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14631echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14632
14633if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14634    case $lt_prog_compiler_pic_F77 in
14635     "" | " "*) ;;
14636     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14637     esac
14638else
14639    lt_prog_compiler_pic_F77=
14640     lt_prog_compiler_can_build_shared_F77=no
14641fi
14642
14643fi
14644case $host_os in
14645  # For platforms which do not support PIC, -DPIC is meaningless:
14646  *djgpp*)
14647    lt_prog_compiler_pic_F77=
14648    ;;
14649  *)
14650    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14651    ;;
14652esac
14653
14654#
14655# Check to make sure the static flag actually works.
14656#
14657wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14658{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14659echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14660if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14661  echo $ECHO_N "(cached) $ECHO_C" >&6
14662else
14663  lt_prog_compiler_static_works_F77=no
14664   save_LDFLAGS="$LDFLAGS"
14665   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14666   printf "$lt_simple_link_test_code" > conftest.$ac_ext
14667   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14668     # The linker can only warn and ignore the option if not recognized
14669     # So say no if there are warnings
14670     if test -s conftest.err; then
14671       # Append any errors to the config.log.
14672       cat conftest.err 1>&5
14673       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14674       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14675       if diff conftest.exp conftest.er2 >/dev/null; then
14676	 lt_prog_compiler_static_works_F77=yes
14677       fi
14678     else
14679       lt_prog_compiler_static_works_F77=yes
14680     fi
14681   fi
14682   $rm conftest*
14683   LDFLAGS="$save_LDFLAGS"
14684
14685fi
14686{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14687echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14688
14689if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14690    :
14691else
14692    lt_prog_compiler_static_F77=
14693fi
14694
14695
14696{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14697echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14698if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14699  echo $ECHO_N "(cached) $ECHO_C" >&6
14700else
14701  lt_cv_prog_compiler_c_o_F77=no
14702   $rm -r conftest 2>/dev/null
14703   mkdir conftest
14704   cd conftest
14705   mkdir out
14706   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14707
14708   lt_compiler_flag="-o out/conftest2.$ac_objext"
14709   # Insert the option either (1) after the last *FLAGS variable, or
14710   # (2) before a word containing "conftest.", or (3) at the end.
14711   # Note that $ac_compile itself does not contain backslashes and begins
14712   # with a dollar sign (not a hyphen), so the echo should work correctly.
14713   lt_compile=`echo "$ac_compile" | $SED \
14714   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14715   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14716   -e 's:$: $lt_compiler_flag:'`
14717   (eval echo "\"\$as_me:14717: $lt_compile\"" >&5)
14718   (eval "$lt_compile" 2>out/conftest.err)
14719   ac_status=$?
14720   cat out/conftest.err >&5
14721   echo "$as_me:14721: \$? = $ac_status" >&5
14722   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14723   then
14724     # The compiler can only warn and ignore the option if not recognized
14725     # So say no if there are warnings
14726     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14727     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14728     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14729       lt_cv_prog_compiler_c_o_F77=yes
14730     fi
14731   fi
14732   chmod u+w . 2>&5
14733   $rm conftest*
14734   # SGI C++ compiler will create directory out/ii_files/ for
14735   # template instantiation
14736   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14737   $rm out/* && rmdir out
14738   cd ..
14739   rmdir conftest
14740   $rm conftest*
14741
14742fi
14743{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14744echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14745
14746
14747hard_links="nottested"
14748if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14749  # do not overwrite the value of need_locks provided by the user
14750  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14751echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14752  hard_links=yes
14753  $rm conftest*
14754  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14755  touch conftest.a
14756  ln conftest.a conftest.b 2>&5 || hard_links=no
14757  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14758  { echo "$as_me:$LINENO: result: $hard_links" >&5
14759echo "${ECHO_T}$hard_links" >&6; }
14760  if test "$hard_links" = no; then
14761    { echo "$as_me:$LINENO: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
14762echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
14763    need_locks=warn
14764  fi
14765else
14766  need_locks=no
14767fi
14768
14769{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14770echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14771
14772  runpath_var=
14773  allow_undefined_flag_F77=
14774  enable_shared_with_static_runtimes_F77=no
14775  archive_cmds_F77=
14776  archive_expsym_cmds_F77=
14777  old_archive_From_new_cmds_F77=
14778  old_archive_from_expsyms_cmds_F77=
14779  export_dynamic_flag_spec_F77=
14780  whole_archive_flag_spec_F77=
14781  thread_safe_flag_spec_F77=
14782  hardcode_libdir_flag_spec_F77=
14783  hardcode_libdir_flag_spec_ld_F77=
14784  hardcode_libdir_separator_F77=
14785  hardcode_direct_F77=no
14786  hardcode_minus_L_F77=no
14787  hardcode_shlibpath_var_F77=unsupported
14788  link_all_deplibs_F77=unknown
14789  hardcode_automatic_F77=no
14790  module_cmds_F77=
14791  module_expsym_cmds_F77=
14792  always_export_symbols_F77=no
14793  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14794  # include_expsyms should be a list of space-separated symbols to be *always*
14795  # included in the symbol list
14796  include_expsyms_F77=
14797  # exclude_expsyms can be an extended regexp of symbols to exclude
14798  # it will be wrapped by ' (' and ')$', so one must not match beginning or
14799  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
14800  # as well as any symbol that contains 'd'.
14801  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14802  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14803  # platforms (ab)use it in PIC code, but their linkers get confused if
14804  # the symbol is explicitly referenced.  Since portable code cannot
14805  # rely on this symbol name, it's probably fine to never include it in
14806  # preloaded symbol tables.
14807  extract_expsyms_cmds=
14808  # Just being paranoid about ensuring that cc_basename is set.
14809  for cc_temp in $compiler""; do
14810  case $cc_temp in
14811    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14812    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14813    \-*) ;;
14814    *) break;;
14815  esac
14816done
14817cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14818
14819  case $host_os in
14820  cygwin* | mingw* | pw32*)
14821    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14822    # When not using gcc, we currently assume that we are using
14823    # Microsoft Visual C++.
14824    if test "$GCC" != yes; then
14825      with_gnu_ld=no
14826    fi
14827    ;;
14828  interix*)
14829    # we just hope/assume this is gcc and not c89 (= MSVC++)
14830    with_gnu_ld=yes
14831    ;;
14832  mirbsd*)
14833    with_gnu_ld=yes
14834    ;;
14835  openbsd*)
14836    with_gnu_ld=no
14837    ;;
14838  esac
14839
14840  ld_shlibs_F77=yes
14841  if test "$with_gnu_ld" = yes; then
14842    # If archive_cmds runs LD, not CC, wlarc should be empty
14843    wlarc='${wl}'
14844
14845    # Set some defaults for GNU ld with shared library support. These
14846    # are reset later if shared libraries are not supported. Putting them
14847    # here allows them to be overridden if necessary.
14848    runpath_var=LD_RUN_PATH
14849    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14850    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14851    # ancient GNU ld didn't support --whole-archive et. al.
14852    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14853	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14854      else
14855	whole_archive_flag_spec_F77=
14856    fi
14857    supports_anon_versioning=no
14858    case `$LD -v 2>/dev/null` in
14859      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14860      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14861      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14862      *\ 2.11.*) ;; # other 2.11 versions
14863      *) supports_anon_versioning=yes ;;
14864    esac
14865
14866    # See if GNU ld supports shared libraries.
14867    case $host_os in
14868    aix3* | aix4* | aix5*)
14869      # On AIX/PPC, the GNU linker is very broken
14870      if test "$host_cpu" != ia64; then
14871	ld_shlibs_F77=no
14872	cat <<EOF 1>&2
14873
14874*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14875*** to be unable to reliably create shared libraries on AIX.
14876*** Therefore, libtool is disabling shared libraries support.  If you
14877*** really care for shared libraries, you may want to modify your PATH
14878*** so that a non-GNU linker is found, and then restart.
14879
14880EOF
14881      fi
14882      ;;
14883
14884    amigaos*)
14885      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)'
14886      hardcode_libdir_flag_spec_F77='-L$libdir'
14887      hardcode_minus_L_F77=yes
14888
14889      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14890      # that the semantics of dynamic libraries on AmigaOS, at least up
14891      # to version 4, is to share data among multiple programs linked
14892      # with the same dynamic library.  Since this doesn't match the
14893      # behavior of shared libraries on other platforms, we can't use
14894      # them.
14895      ld_shlibs_F77=no
14896      ;;
14897
14898    beos*)
14899      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14900	allow_undefined_flag_F77=unsupported
14901	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14902	# support --undefined.  This deserves some investigation.  FIXME
14903	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14904      else
14905	ld_shlibs_F77=no
14906      fi
14907      ;;
14908
14909    cygwin* | mingw* | pw32*)
14910      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14911      # as there is no search path for DLLs.
14912      hardcode_libdir_flag_spec_F77='-L$libdir'
14913      allow_undefined_flag_F77=unsupported
14914      always_export_symbols_F77=no
14915      enable_shared_with_static_runtimes_F77=yes
14916      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14917
14918      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14919	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14920	# If the export-symbols file already is a .def file (1st line
14921	# is EXPORTS), use it as is; otherwise, prepend...
14922	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14923	  cp $export_symbols $output_objdir/$soname.def;
14924	else
14925	  echo EXPORTS > $output_objdir/$soname.def;
14926	  cat $export_symbols >> $output_objdir/$soname.def;
14927	fi~
14928	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14929      else
14930	ld_shlibs_F77=no
14931      fi
14932      ;;
14933
14934    interix3*)
14935      hardcode_direct_F77=no
14936      hardcode_shlibpath_var_F77=no
14937      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14938      export_dynamic_flag_spec_F77='${wl}-E'
14939      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14940      # Instead, shared libraries are loaded at an image base (0x10000000 by
14941      # default) and relocated if they conflict, which is a slow very memory
14942      # consuming and fragmenting process.  To avoid this, we pick a random,
14943      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14944      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14945      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'
14946      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'
14947      ;;
14948
14949    linux*)
14950      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14951	tmp_addflag=
14952	case $cc_basename,$host_cpu in
14953	pgcc*)				# Portland Group C compiler
14954	  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'
14955	  tmp_addflag=' $pic_flag'
14956	  ;;
14957	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14958	  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'
14959	  tmp_addflag=' $pic_flag -Mnomain' ;;
14960	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14961	  tmp_addflag=' -i_dynamic' ;;
14962	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14963	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14964	ifc* | ifort*)			# Intel Fortran compiler
14965	  tmp_addflag=' -nofor_main' ;;
14966	esac
14967	case `$CC -V 2>&1 | sed 5q` in
14968	*Sun\ C*)			# Sun C 5.9
14969	  whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive /dev/null'
14970	  tmp_sharedflag='-G' ;;
14971	*Sun\ F*)			# Sun Fortran 8.3
14972	  tmp_sharedflag='-G' ;;
14973	*)
14974	  tmp_sharedflag='-shared' ;;
14975	esac
14976	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14977
14978	if test $supports_anon_versioning = yes; then
14979	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14980  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14981  $echo "local: *; };" >> $output_objdir/$libname.ver~
14982	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14983	fi
14984      else
14985	ld_shlibs_F77=no
14986      fi
14987      ;;
14988
14989    mirbsd*)
14990      hardcode_direct_F77=yes
14991      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags -o $lib'
14992      archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14993      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14994      export_dynamic_flag_spec_F77='${wl}-E'
14995      ;;
14996
14997    netbsd*)
14998      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14999	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15000	wlarc=
15001      else
15002	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15003	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15004      fi
15005      ;;
15006
15007    solaris*)
15008      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15009	ld_shlibs_F77=no
15010	cat <<EOF 1>&2
15011
15012*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15013*** create shared libraries on Solaris systems.  Therefore, libtool
15014*** is disabling shared libraries support.  We urge you to upgrade GNU
15015*** binutils to release 2.9.1 or newer.  Another option is to modify
15016*** your PATH or compiler configuration so that the native linker is
15017*** used, and then restart.
15018
15019EOF
15020      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15021	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15022	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15023      else
15024	ld_shlibs_F77=no
15025      fi
15026      ;;
15027
15028    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15029      case `$LD -v 2>&1` in
15030	*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15031	ld_shlibs_F77=no
15032	cat <<_LT_EOF 1>&2
15033
15034*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15035*** reliably create shared libraries on SCO systems.  Therefore, libtool
15036*** is disabling shared libraries support.  We urge you to upgrade GNU
15037*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15038*** your PATH or compiler configuration so that the native linker is
15039*** used, and then restart.
15040
15041_LT_EOF
15042	;;
15043	*)
15044	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15045	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15046	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15047	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15048	  else
15049	    ld_shlibs_F77=no
15050	  fi
15051	;;
15052      esac
15053      ;;
15054
15055    sunos4*)
15056      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15057      wlarc=
15058      hardcode_direct_F77=yes
15059      hardcode_shlibpath_var_F77=no
15060      ;;
15061
15062    *)
15063      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15064	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15065	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15066      else
15067	ld_shlibs_F77=no
15068      fi
15069      ;;
15070    esac
15071
15072    if test "$ld_shlibs_F77" = no; then
15073      runpath_var=
15074      hardcode_libdir_flag_spec_F77=
15075      export_dynamic_flag_spec_F77=
15076      whole_archive_flag_spec_F77=
15077    fi
15078  else
15079    # PORTME fill in a description of your system's linker (not GNU ld)
15080    case $host_os in
15081    aix3*)
15082      allow_undefined_flag_F77=unsupported
15083      always_export_symbols_F77=yes
15084      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'
15085      # Note: this linker hardcodes the directories in LIBPATH if there
15086      # are no directories specified by -L.
15087      hardcode_minus_L_F77=yes
15088      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15089	# Neither direct hardcoding nor static linking is supported with a
15090	# broken collect2.
15091	hardcode_direct_F77=unsupported
15092      fi
15093      ;;
15094
15095    aix4* | aix5*)
15096      if test "$host_cpu" = ia64; then
15097	# On IA64, the linker does run time linking by default, so we don't
15098	# have to do anything special.
15099	aix_use_runtimelinking=no
15100	exp_sym_flag='-Bexport'
15101	no_entry_flag=""
15102      else
15103	# If we're using GNU nm, then we don't want the "-C" option.
15104	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15105	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15106	  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'
15107	else
15108	  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'
15109	fi
15110	aix_use_runtimelinking=no
15111
15112	# Test if we are trying to use run time linking or normal
15113	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15114	# need to do runtime linking.
15115	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15116	  for ld_flag in $LDFLAGS; do
15117	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15118	    aix_use_runtimelinking=yes
15119	    break
15120	  fi
15121	  done
15122	  ;;
15123	esac
15124
15125	exp_sym_flag='-bexport'
15126	no_entry_flag='-bnoentry'
15127      fi
15128
15129      # When large executables or shared objects are built, AIX ld can
15130      # have problems creating the table of contents.  If linking a library
15131      # or program results in "error TOC overflow" add -mminimal-toc to
15132      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15133      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15134
15135      archive_cmds_F77=''
15136      hardcode_direct_F77=yes
15137      hardcode_libdir_separator_F77=':'
15138      link_all_deplibs_F77=yes
15139
15140      if test "$GCC" = yes; then
15141	case $host_os in aix4.[012]|aix4.[012].*)
15142	# We only want to do this on AIX 4.2 and lower, the check
15143	# below for broken collect2 doesn't work under 4.3+
15144	  collect2name=`${CC} -print-prog-name=collect2`
15145	  if test -f "$collect2name" && \
15146	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15147	  then
15148  	  # We have reworked collect2
15149  	  :
15150	  else
15151	    # We have old collect2
15152	    hardcode_direct_F77=unsupported
15153	    # It fails to find uninstalled libraries when the uninstalled
15154	    # path is not listed in the libpath.  Setting hardcode_minus_L
15155	    # to unsupported forces relinking
15156	    hardcode_minus_L_F77=yes
15157	    hardcode_libdir_flag_spec_F77='-L$libdir'
15158	    hardcode_libdir_separator_F77=
15159	  fi
15160	  ;;
15161	esac
15162	shared_flag='-shared'
15163	if test "$aix_use_runtimelinking" = yes; then
15164	  shared_flag="$shared_flag "'${wl}-G'
15165	fi
15166      else
15167	# not using gcc
15168	if test "$host_cpu" = ia64; then
15169	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15170	# chokes on -Wl,-G. The following line is correct:
15171	  shared_flag='-G'
15172	else
15173	  if test "$aix_use_runtimelinking" = yes; then
15174	    shared_flag='${wl}-G'
15175	  else
15176	    shared_flag='${wl}-bM:SRE'
15177	  fi
15178	fi
15179      fi
15180
15181      # It seems that -bexpall does not export symbols beginning with
15182      # underscore (_), so it is better to generate a list of symbols to export.
15183      always_export_symbols_F77=yes
15184      if test "$aix_use_runtimelinking" = yes; then
15185	# Warning - without using the other runtime loading flags (-brtl),
15186	# -berok will link without error, but may produce a broken library.
15187	allow_undefined_flag_F77='-berok'
15188       # Determine the default libpath from the value encoded in an empty executable.
15189       aix_libpath="/usr/lib:/lib"
15190
15191       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15192	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"
15193       else
15194	if test "$host_cpu" = ia64; then
15195	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15196	  allow_undefined_flag_F77="-z nodefs"
15197	  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"
15198	else
15199	 # Determine the default libpath from the value encoded in an empty executable.
15200	 aix_libpath="/usr/lib:/lib"
15201
15202	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15203	  # Warning - without using the other run time loading flags,
15204	  # -berok will link without error, but may produce a broken library.
15205	  no_undefined_flag_F77=' ${wl}-bernotok'
15206	  allow_undefined_flag_F77=' ${wl}-berok'
15207	  # Exported symbols can be pulled into shared objects from archives
15208	  whole_archive_flag_spec_F77='$convenience'
15209	  archive_cmds_need_lc_F77=yes
15210	  # This is similar to how AIX traditionally builds its shared libraries.
15211	  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'
15212	fi
15213      fi
15214      ;;
15215
15216    amigaos*)
15217      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)'
15218      hardcode_libdir_flag_spec_F77='-L$libdir'
15219      hardcode_minus_L_F77=yes
15220      # see comment about different semantics on the GNU ld section
15221      ld_shlibs_F77=no
15222      ;;
15223
15224    bsdi[45]*)
15225      export_dynamic_flag_spec_F77=-rdynamic
15226      ;;
15227
15228    cygwin* | mingw* | pw32*)
15229      # When not using gcc, we currently assume that we are using
15230      # Microsoft Visual C++.
15231      # hardcode_libdir_flag_spec is actually meaningless, as there is
15232      # no search path for DLLs.
15233      hardcode_libdir_flag_spec_F77=' '
15234      allow_undefined_flag_F77=unsupported
15235      # Tell ltmain to make .lib files, not .a files.
15236      libext=lib
15237      # Tell ltmain to make .dll files, not .so files.
15238      shrext_cmds=".dll"
15239      # FIXME: Setting linknames here is a bad hack.
15240      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15241      # The linker will automatically build a .lib file if we build a DLL.
15242      old_archive_From_new_cmds_F77='true'
15243      # FIXME: Should let the user specify the lib program.
15244      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15245      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15246      enable_shared_with_static_runtimes_F77=yes
15247      ;;
15248
15249    darwin* | rhapsody*)
15250      case $host_os in
15251      rhapsody* | darwin1.[012])
15252	allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15253	;;
15254      *) # Darwin 1.3 on
15255	if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15256	  allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15257	else
15258	  case ${MACOSX_DEPLOYMENT_TARGET} in
15259	  10.[012])
15260	    allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15261	    ;;
15262	  10.*)
15263	    allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15264	    ;;
15265	  esac
15266	fi
15267	;;
15268      esac
15269      archive_cmds_need_lc_F77=no
15270      hardcode_direct_F77=no
15271      hardcode_automatic_F77=yes
15272      hardcode_shlibpath_var_F77=unsupported
15273      whole_archive_flag_spec_F77=''
15274      link_all_deplibs_F77=yes
15275    if test "$GCC" = yes ; then
15276	output_verbose_link_cmd='echo'
15277	archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15278      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15279      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15280      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}'
15281      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}'
15282    else
15283      case $cc_basename in
15284      xlc*)
15285	output_verbose_link_cmd='echo'
15286	archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15287	module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15288	# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15289	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}'
15290	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}'
15291	;;
15292      *)
15293	ld_shlibs_F77=no
15294	;;
15295      esac
15296    fi
15297    ;;
15298
15299    dgux*)
15300      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15301      hardcode_libdir_flag_spec_F77='-L$libdir'
15302      hardcode_shlibpath_var_F77=no
15303      ;;
15304
15305    freebsd1*)
15306      ld_shlibs_F77=no
15307      ;;
15308
15309    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15310    # support.  Future versions do this automatically, but an explicit c++rt0.o
15311    # does not break anything, and helps significantly (at the cost of a little
15312    # extra space).
15313    freebsd2.2*)
15314      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15315      hardcode_libdir_flag_spec_F77='-R$libdir'
15316      hardcode_direct_F77=yes
15317      hardcode_shlibpath_var_F77=no
15318      ;;
15319
15320    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15321    freebsd2*)
15322      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15323      hardcode_direct_F77=yes
15324      hardcode_minus_L_F77=yes
15325      hardcode_shlibpath_var_F77=no
15326      ;;
15327
15328    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15329    freebsd* | kfreebsd*-gnu | dragonfly*)
15330      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15331      hardcode_libdir_flag_spec_F77='-R$libdir'
15332      hardcode_direct_F77=yes
15333      hardcode_shlibpath_var_F77=no
15334      ;;
15335
15336    hpux9*)
15337      if test "$GCC" = yes; then
15338	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'
15339      else
15340	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'
15341      fi
15342      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15343      hardcode_libdir_separator_F77=:
15344      hardcode_direct_F77=yes
15345
15346      # hardcode_minus_L: Not really in the search PATH,
15347      # but as the default location of the library.
15348      hardcode_minus_L_F77=yes
15349      export_dynamic_flag_spec_F77='${wl}-E'
15350      ;;
15351
15352    hpux10*)
15353      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15354	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15355      else
15356	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15357      fi
15358      if test "$with_gnu_ld" = no; then
15359	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15360	hardcode_libdir_separator_F77=:
15361
15362	hardcode_direct_F77=yes
15363	export_dynamic_flag_spec_F77='${wl}-E'
15364
15365	# hardcode_minus_L: Not really in the search PATH,
15366	# but as the default location of the library.
15367	hardcode_minus_L_F77=yes
15368      fi
15369      ;;
15370
15371    hpux11*)
15372      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15373	case $host_cpu in
15374	hppa*64*)
15375	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15376	  ;;
15377	ia64*)
15378	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15379	  ;;
15380	*)
15381	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15382	  ;;
15383	esac
15384      else
15385	case $host_cpu in
15386	hppa*64*)
15387	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15388	  ;;
15389	ia64*)
15390	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15391	  ;;
15392	*)
15393	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15394	  ;;
15395	esac
15396      fi
15397      if test "$with_gnu_ld" = no; then
15398	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15399	hardcode_libdir_separator_F77=:
15400
15401	case $host_cpu in
15402	hppa*64*|ia64*)
15403	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15404	  hardcode_direct_F77=no
15405	  hardcode_shlibpath_var_F77=no
15406	  ;;
15407	*)
15408	  hardcode_direct_F77=yes
15409	  export_dynamic_flag_spec_F77='${wl}-E'
15410
15411	  # hardcode_minus_L: Not really in the search PATH,
15412	  # but as the default location of the library.
15413	  hardcode_minus_L_F77=yes
15414	  ;;
15415	esac
15416      fi
15417      ;;
15418
15419    irix5* | irix6* | nonstopux*)
15420      if test "$GCC" = yes; then
15421	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'
15422      else
15423	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'
15424	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15425      fi
15426      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15427      hardcode_libdir_separator_F77=:
15428      link_all_deplibs_F77=yes
15429      ;;
15430
15431    netbsd*)
15432      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15433	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15434      else
15435	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15436      fi
15437      hardcode_libdir_flag_spec_F77='-R$libdir'
15438      hardcode_direct_F77=yes
15439      hardcode_shlibpath_var_F77=no
15440      ;;
15441
15442    newsos6)
15443      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15444      hardcode_direct_F77=yes
15445      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15446      hardcode_libdir_separator_F77=:
15447      hardcode_shlibpath_var_F77=no
15448      ;;
15449
15450    openbsd*)
15451      hardcode_direct_F77=yes
15452      hardcode_shlibpath_var_F77=no
15453      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15454	archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags -o $lib'
15455	archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15456	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15457	export_dynamic_flag_spec_F77='${wl}-E'
15458      else
15459	case $host_os in
15460	openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15461	  archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15462	  hardcode_libdir_flag_spec_F77='-R$libdir'
15463	  ;;
15464	*)
15465	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15466	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15467	  ;;
15468	esac
15469      fi
15470      ;;
15471
15472    os2*)
15473      hardcode_libdir_flag_spec_F77='-L$libdir'
15474      hardcode_minus_L_F77=yes
15475      allow_undefined_flag_F77=unsupported
15476      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'
15477      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15478      ;;
15479
15480    osf3*)
15481      if test "$GCC" = yes; then
15482	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15483	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'
15484      else
15485	allow_undefined_flag_F77=' -expect_unresolved \*'
15486	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'
15487      fi
15488      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15489      hardcode_libdir_separator_F77=:
15490      ;;
15491
15492    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15493      if test "$GCC" = yes; then
15494	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15495	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'
15496	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15497      else
15498	allow_undefined_flag_F77=' -expect_unresolved \*'
15499	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'
15500	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~
15501	$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'
15502
15503	# Both c and cxx compiler support -rpath directly
15504	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15505      fi
15506      hardcode_libdir_separator_F77=:
15507      ;;
15508
15509    solaris*)
15510      no_undefined_flag_F77=' -z text'
15511      if test "$GCC" = yes; then
15512	wlarc='${wl}'
15513	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15514	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15515	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15516      else
15517	wlarc=''
15518	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15519	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15520	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15521      fi
15522      hardcode_libdir_flag_spec_F77='-R$libdir'
15523      hardcode_shlibpath_var_F77=no
15524      case $host_os in
15525      solaris2.[0-5] | solaris2.[0-5].*) ;;
15526      *)
15527	# The compiler driver will combine and reorder linker options,
15528	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15529	# but is careful enough not to reorder.
15530 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15531	if test "$GCC" = yes; then
15532	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15533	else
15534	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15535	fi
15536	;;
15537      esac
15538      link_all_deplibs_F77=yes
15539      ;;
15540
15541    sunos4*)
15542      if test "x$host_vendor" = xsequent; then
15543	# Use $CC to link under sequent, because it throws in some extra .o
15544	# files that make .init and .fini sections work.
15545	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15546      else
15547	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15548      fi
15549      hardcode_libdir_flag_spec_F77='-L$libdir'
15550      hardcode_direct_F77=yes
15551      hardcode_minus_L_F77=yes
15552      hardcode_shlibpath_var_F77=no
15553      ;;
15554
15555    sysv4)
15556      case $host_vendor in
15557	sni)
15558	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15559	  hardcode_direct_F77=yes # is this really true???
15560	;;
15561	siemens)
15562	  ## LD is ld it makes a PLAMLIB
15563	  ## CC just makes a GrossModule.
15564	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15565	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15566	  hardcode_direct_F77=no
15567	;;
15568	motorola)
15569	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15570	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15571	;;
15572      esac
15573      runpath_var='LD_RUN_PATH'
15574      hardcode_shlibpath_var_F77=no
15575      ;;
15576
15577    sysv4.3*)
15578      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15579      hardcode_shlibpath_var_F77=no
15580      export_dynamic_flag_spec_F77='-Bexport'
15581      ;;
15582
15583    sysv4*MP*)
15584      if test -d /usr/nec; then
15585	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15586	hardcode_shlibpath_var_F77=no
15587	runpath_var=LD_RUN_PATH
15588	hardcode_runpath_var=yes
15589	ld_shlibs_F77=yes
15590      fi
15591      ;;
15592
15593    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15594      no_undefined_flag_F77='${wl}-z,text'
15595      archive_cmds_need_lc_F77=no
15596      hardcode_shlibpath_var_F77=no
15597      runpath_var='LD_RUN_PATH'
15598
15599      if test "$GCC" = yes; then
15600	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15601	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15602      else
15603	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15604	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15605      fi
15606      ;;
15607
15608    sysv5* | sco3.2v5* | sco5v6*)
15609      # Note: We can NOT use -z defs as we might desire, because we do not
15610      # link with -lc, and that would cause any symbols used from libc to
15611      # always be unresolved, which means just about no library would
15612      # ever link correctly.  If we're not using GNU ld we use -z text
15613      # though, which does catch some bad symbols but isn't as heavy-handed
15614      # as -z defs.
15615      no_undefined_flag_F77='${wl}-z,text'
15616      allow_undefined_flag_F77='${wl}-z,nodefs'
15617      archive_cmds_need_lc_F77=no
15618      hardcode_shlibpath_var_F77=no
15619      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15620      hardcode_libdir_separator_F77=':'
15621      link_all_deplibs_F77=yes
15622      export_dynamic_flag_spec_F77='${wl}-Bexport'
15623      runpath_var='LD_RUN_PATH'
15624
15625      if test "$GCC" = yes; then
15626	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15627	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15628      else
15629	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15630	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15631      fi
15632      ;;
15633
15634    uts4*)
15635      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15636      hardcode_libdir_flag_spec_F77='-L$libdir'
15637      hardcode_shlibpath_var_F77=no
15638      ;;
15639
15640    *)
15641      ld_shlibs_F77=no
15642      ;;
15643    esac
15644  fi
15645
15646{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15647echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15648test "$ld_shlibs_F77" = no && can_build_shared=no
15649
15650#
15651# Do we need to explicitly link libc?
15652#
15653case "x$archive_cmds_need_lc_F77" in
15654x|xyes)
15655  # Assume -lc should be added
15656  archive_cmds_need_lc_F77=yes
15657
15658  if test "$enable_shared" = yes && test "$GCC" = yes; then
15659    case $archive_cmds_F77 in
15660    *'~'*)
15661      # FIXME: we may have to deal with multi-command sequences.
15662      ;;
15663    '$CC '*)
15664      # Test whether the compiler implicitly links with -lc since on some
15665      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15666      # to ld, don't add -lc before -lgcc.
15667      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15668echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15669      $rm conftest*
15670      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15671
15672      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15673  (eval $ac_compile) 2>&5
15674  ac_status=$?
15675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676  (exit $ac_status); } 2>conftest.err; then
15677	soname=conftest
15678	lib=conftest
15679	libobjs=conftest.$ac_objext
15680	deplibs=
15681	wl=$lt_prog_compiler_wl_F77
15682	pic_flag=$lt_prog_compiler_pic_F77
15683	compiler_flags=-v
15684	linker_flags=-v
15685	verstring=
15686	output_objdir=.
15687	libname=conftest
15688	lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15689	allow_undefined_flag_F77=
15690	if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15691  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15692  ac_status=$?
15693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694  (exit $ac_status); }
15695	then
15696	  archive_cmds_need_lc_F77=no
15697	else
15698	  archive_cmds_need_lc_F77=yes
15699	fi
15700	allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15701      else
15702	cat conftest.err 1>&5
15703      fi
15704      $rm conftest*
15705      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15706echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15707      ;;
15708    esac
15709  fi
15710  ;;
15711esac
15712
15713{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15714echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15715library_names_spec=
15716libname_spec='lib$name'
15717soname_spec=
15718shrext_cmds=".so"
15719postinstall_cmds=
15720postuninstall_cmds=
15721finish_cmds=
15722finish_eval=
15723shlibpath_var=
15724shlibpath_overrides_runpath=unknown
15725version_type=none
15726dynamic_linker="$host_os ld.so"
15727sys_lib_dlsearch_path_spec="/lib /usr/lib"
15728if test "$GCC" = yes; then
15729  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15730  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15731    # if the path contains ";" then we assume it to be the separator
15732    # otherwise default to the standard path separator (i.e. ":") - it is
15733    # assumed that no part of a normal pathname contains ";" but that should
15734    # okay in the real world where ";" in dirpaths is itself problematic.
15735    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15736  else
15737    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15738  fi
15739else
15740  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15741fi
15742tmp="$sys_lib_search_path_spec"
15743sys_lib_search_path_spec=
15744sp=
15745for i in $tmp
15746do
15747  test -d $i && sys_lib_search_path_spec="$sys_lib_search_path_spec$sp$i"
15748  sp=" "
15749done
15750
15751need_lib_prefix=unknown
15752hardcode_into_libs=no
15753
15754# when you set need_version to no, make sure it does not cause -set_version
15755# flags to be left without arguments
15756need_version=unknown
15757
15758case $host_os in
15759aix3*)
15760  version_type=linux
15761  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15762  shlibpath_var=LIBPATH
15763
15764  # AIX 3 has no versioning support, so we append a major version to the name.
15765  soname_spec='${libname}${release}${shared_ext}$major'
15766  ;;
15767
15768aix4* | aix5*)
15769  version_type=linux
15770  need_lib_prefix=no
15771  need_version=no
15772  hardcode_into_libs=yes
15773  if test "$host_cpu" = ia64; then
15774    # AIX 5 supports IA64
15775    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15776    shlibpath_var=LD_LIBRARY_PATH
15777  else
15778    # With GCC up to 2.95.x, collect2 would create an import file
15779    # for dependence libraries.  The import file would start with
15780    # the line '#! .'.  This would cause the generated library to
15781    # depend on '.', always an invalid library.  This was fixed in
15782    # development snapshots of GCC prior to 3.0.
15783    case $host_os in
15784      aix4 | aix4.[01] | aix4.[01].*)
15785      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15786	   echo ' yes '
15787	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15788	:
15789      else
15790	can_build_shared=no
15791      fi
15792      ;;
15793    esac
15794    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15795    # soname into executable. Probably we can add versioning support to
15796    # collect2, so additional links can be useful in future.
15797    if test "$aix_use_runtimelinking" = yes; then
15798      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15799      # instead of lib<name>.a to let people know that these are not
15800      # typical AIX shared libraries.
15801      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15802    else
15803      # We preserve .a as extension for shared libraries through AIX4.2
15804      # and later when we are not doing run time linking.
15805      library_names_spec='${libname}${release}.a $libname.a'
15806      soname_spec='${libname}${release}${shared_ext}$major'
15807    fi
15808    shlibpath_var=LIBPATH
15809  fi
15810  ;;
15811
15812amigaos*)
15813  library_names_spec='$libname.ixlibrary $libname.a'
15814  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15815  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'
15816  ;;
15817
15818beos*)
15819  library_names_spec='${libname}${shared_ext}'
15820  dynamic_linker="$host_os ld.so"
15821  shlibpath_var=LIBRARY_PATH
15822  ;;
15823
15824bsdi[45]*)
15825  version_type=linux
15826  need_version=no
15827  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15828  soname_spec='${libname}${release}${shared_ext}$major'
15829  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15830  shlibpath_var=LD_LIBRARY_PATH
15831  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15832  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15833  # the default ld.so.conf also contains /usr/contrib/lib and
15834  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15835  # libtool to hard-code these into programs
15836  ;;
15837
15838cygwin* | mingw* | pw32*)
15839  version_type=windows
15840  shrext_cmds=".dll"
15841  need_version=no
15842  need_lib_prefix=no
15843
15844  case $GCC,$host_os in
15845  yes,cygwin* | yes,mingw* | yes,pw32*)
15846    library_names_spec='$libname.dll.a'
15847    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15848    postinstall_cmds='base_file=`basename \${file}`~
15849      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15850      dldir=$destdir/`dirname \$dlpath`~
15851      test -d \$dldir || mkdir -p \$dldir~
15852      $install_prog $dir/$dlname \$dldir/$dlname~
15853      chmod a+x \$dldir/$dlname'
15854    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15855      dlpath=$dir/\$dldll~
15856       $rm \$dlpath'
15857    shlibpath_overrides_runpath=yes
15858
15859    case $host_os in
15860    cygwin*)
15861      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15862      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15863      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15864      ;;
15865    mingw*)
15866      # MinGW DLLs use traditional 'lib' prefix
15867      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15868      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15869      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15870	# It is most probably a Windows format PATH printed by
15871	# mingw gcc, but we are running on Cygwin. Gcc prints its search
15872	# path with ; separators, and with drive letters. We can handle the
15873	# drive letters (cygwin fileutils understands them), so leave them,
15874	# especially as we might pass files found there to a mingw objdump,
15875	# which wouldn't understand a cygwinified path. Ahh.
15876	sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15877      else
15878	sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15879      fi
15880      ;;
15881    pw32*)
15882      # pw32 DLLs use 'pw' prefix rather than 'lib'
15883      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15884      ;;
15885    esac
15886    ;;
15887
15888  *)
15889    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15890    ;;
15891  esac
15892  dynamic_linker='Win32 ld.exe'
15893  # FIXME: first we should search . and the directory the executable is in
15894  shlibpath_var=PATH
15895  ;;
15896
15897darwin* | rhapsody*)
15898  dynamic_linker="$host_os dyld"
15899  version_type=darwin
15900  need_lib_prefix=no
15901  need_version=no
15902  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15903  soname_spec='${libname}${release}${major}$shared_ext'
15904  shlibpath_overrides_runpath=yes
15905  shlibpath_var=DYLD_LIBRARY_PATH
15906  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15907  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15908  if test "$GCC" = yes; then
15909    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"`
15910  else
15911    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15912  fi
15913  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15914  ;;
15915
15916dgux*)
15917  version_type=linux
15918  need_lib_prefix=no
15919  need_version=no
15920  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15921  soname_spec='${libname}${release}${shared_ext}$major'
15922  shlibpath_var=LD_LIBRARY_PATH
15923  ;;
15924
15925freebsd1*)
15926  dynamic_linker=no
15927  ;;
15928
15929kfreebsd*-gnu)
15930  version_type=linux
15931  need_lib_prefix=no
15932  need_version=no
15933  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15934  soname_spec='${libname}${release}${shared_ext}$major'
15935  shlibpath_var=LD_LIBRARY_PATH
15936  shlibpath_overrides_runpath=no
15937  hardcode_into_libs=yes
15938  dynamic_linker='GNU ld.so'
15939  ;;
15940
15941freebsd* | dragonfly*)
15942  # DragonFly does not have aout.  When/if they implement a new
15943  # versioning mechanism, adjust this.
15944  if test -x /usr/bin/objformat; then
15945    objformat=`/usr/bin/objformat`
15946  else
15947    case $host_os in
15948    freebsd[123]*) objformat=aout ;;
15949    *) objformat=elf ;;
15950    esac
15951  fi
15952  version_type=freebsd-$objformat
15953  case $version_type in
15954    freebsd-elf*)
15955      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15956      need_version=no
15957      need_lib_prefix=no
15958      ;;
15959    freebsd-*)
15960      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15961      need_version=yes
15962      ;;
15963  esac
15964  shlibpath_var=LD_LIBRARY_PATH
15965  case $host_os in
15966  freebsd2*)
15967    shlibpath_overrides_runpath=yes
15968    ;;
15969  freebsd3.[01]* | freebsdelf3.[01]*)
15970    shlibpath_overrides_runpath=yes
15971    hardcode_into_libs=yes
15972    ;;
15973  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15974  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15975    shlibpath_overrides_runpath=no
15976    hardcode_into_libs=yes
15977    ;;
15978  *) # from 4.6 on, and DragonFly
15979    shlibpath_overrides_runpath=yes
15980    hardcode_into_libs=yes
15981    ;;
15982  esac
15983  ;;
15984
15985gnu*)
15986  version_type=linux
15987  need_lib_prefix=no
15988  need_version=no
15989  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15990  soname_spec='${libname}${release}${shared_ext}$major'
15991  shlibpath_var=LD_LIBRARY_PATH
15992  hardcode_into_libs=yes
15993  ;;
15994
15995hpux9* | hpux10* | hpux11*)
15996  # Give a soname corresponding to the major version so that dld.sl refuses to
15997  # link against other versions.
15998  version_type=sunos
15999  need_lib_prefix=no
16000  need_version=no
16001  case $host_cpu in
16002  ia64*)
16003    shrext_cmds='.so'
16004    hardcode_into_libs=yes
16005    dynamic_linker="$host_os dld.so"
16006    shlibpath_var=LD_LIBRARY_PATH
16007    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16008    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16009    soname_spec='${libname}${release}${shared_ext}$major'
16010    if test "X$HPUX_IA64_MODE" = X32; then
16011      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16012    else
16013      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16014    fi
16015    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16016    ;;
16017   hppa*64*)
16018     shrext_cmds='.sl'
16019     hardcode_into_libs=yes
16020     dynamic_linker="$host_os dld.sl"
16021     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16022     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16023     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16024     soname_spec='${libname}${release}${shared_ext}$major'
16025     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16026     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16027     ;;
16028   *)
16029    shrext_cmds='.sl'
16030    dynamic_linker="$host_os dld.sl"
16031    shlibpath_var=SHLIB_PATH
16032    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16033    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16034    soname_spec='${libname}${release}${shared_ext}$major'
16035    ;;
16036  esac
16037  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16038  postinstall_cmds='chmod 555 $lib'
16039  ;;
16040
16041interix3*)
16042  version_type=linux
16043  need_lib_prefix=no
16044  need_version=no
16045  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16046  soname_spec='${libname}${release}${shared_ext}$major'
16047  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16048  shlibpath_var=LD_LIBRARY_PATH
16049  shlibpath_overrides_runpath=no
16050  hardcode_into_libs=yes
16051  ;;
16052
16053irix5* | irix6* | nonstopux*)
16054  case $host_os in
16055    nonstopux*) version_type=nonstopux ;;
16056    *)
16057	if test "$lt_cv_prog_gnu_ld" = yes; then
16058		version_type=linux
16059	else
16060		version_type=irix
16061	fi ;;
16062  esac
16063  need_lib_prefix=no
16064  need_version=no
16065  soname_spec='${libname}${release}${shared_ext}$major'
16066  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16067  case $host_os in
16068  irix5* | nonstopux*)
16069    libsuff= shlibsuff=
16070    ;;
16071  *)
16072    case $LD in # libtool.m4 will add one of these switches to LD
16073    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16074      libsuff= shlibsuff= libmagic=32-bit;;
16075    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16076      libsuff=32 shlibsuff=N32 libmagic=N32;;
16077    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16078      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16079    *) libsuff= shlibsuff= libmagic=never-match;;
16080    esac
16081    ;;
16082  esac
16083  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16084  shlibpath_overrides_runpath=no
16085  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16086  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16087  hardcode_into_libs=yes
16088  ;;
16089
16090# No shared lib support for Linux oldld, aout, or coff.
16091linux*oldld* | linux*aout* | linux*coff*)
16092  dynamic_linker=no
16093  ;;
16094
16095# This must be Linux ELF.
16096linux*)
16097  version_type=linux
16098  need_lib_prefix=no
16099  need_version=no
16100  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16101  soname_spec='${libname}${release}${shared_ext}$major'
16102  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16103  shlibpath_var=LD_LIBRARY_PATH
16104  shlibpath_overrides_runpath=no
16105  # This implies no fast_install, which is unacceptable.
16106  # Some rework will be needed to allow for fast_install
16107  # before this can be enabled.
16108  hardcode_into_libs=yes
16109
16110  # Append ld.so.conf contents to the search path
16111  if test -f /etc/ld.so.conf; then
16112    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16113    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16114  fi
16115
16116  # We used to test for /lib/ld.so.1 and disable shared libraries on
16117  # powerpc, because MkLinux only supported shared libraries with the
16118  # GNU dynamic linker.  Since this was broken with cross compilers,
16119  # most powerpc-linux boxes support dynamic linking these days and
16120  # people can always --disable-shared, the test was removed, and we
16121  # assume the GNU/Linux dynamic linker is in use.
16122  dynamic_linker='GNU/Linux ld.so'
16123  ;;
16124
16125mirbsd*)
16126  version_type=linux
16127  sys_lib_dlsearch_path_spec="/usr/lib"
16128  need_lib_prefix=no
16129  need_version=no
16130  library_names_spec='${libname}${release}${shared_ext}$versuffix2 ${libname}${shared_ext}$versuffix2'
16131  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16132  shlibpath_var=LD_LIBRARY_PATH
16133  shlibpath_overrides_runpath=yes
16134  ;;
16135
16136knetbsd*-gnu)
16137  version_type=linux
16138  need_lib_prefix=no
16139  need_version=no
16140  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16141  soname_spec='${libname}${release}${shared_ext}$major'
16142  shlibpath_var=LD_LIBRARY_PATH
16143  shlibpath_overrides_runpath=no
16144  hardcode_into_libs=yes
16145  dynamic_linker='GNU ld.so'
16146  ;;
16147
16148netbsd*)
16149  version_type=sunos
16150  need_lib_prefix=no
16151  need_version=no
16152  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16153    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16154    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16155    dynamic_linker='NetBSD (a.out) ld.so'
16156  else
16157    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16158    soname_spec='${libname}${release}${shared_ext}$major'
16159    dynamic_linker='NetBSD ld.elf_so'
16160  fi
16161  shlibpath_var=LD_LIBRARY_PATH
16162  shlibpath_overrides_runpath=yes
16163  hardcode_into_libs=yes
16164  ;;
16165
16166newsos6)
16167  version_type=linux
16168  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16169  shlibpath_var=LD_LIBRARY_PATH
16170  shlibpath_overrides_runpath=yes
16171  ;;
16172
16173nto-qnx*)
16174  version_type=linux
16175  need_lib_prefix=no
16176  need_version=no
16177  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16178  soname_spec='${libname}${release}${shared_ext}$major'
16179  shlibpath_var=LD_LIBRARY_PATH
16180  shlibpath_overrides_runpath=yes
16181  ;;
16182
16183openbsd*)
16184  version_type=linux
16185  sys_lib_dlsearch_path_spec="/usr/lib"
16186  need_lib_prefix=no
16187  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16188  case $host_os in
16189    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16190    *)                         need_version=no  ;;
16191  esac
16192  library_names_spec='${libname}${release}${shared_ext}$versuffix2 ${libname}${shared_ext}$versuffix2'
16193  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16194  shlibpath_var=LD_LIBRARY_PATH
16195  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16196    case $host_os in
16197      openbsd2.[89] | openbsd2.[89].*)
16198	shlibpath_overrides_runpath=no
16199	;;
16200      *)
16201	shlibpath_overrides_runpath=yes
16202	;;
16203      esac
16204  else
16205    shlibpath_overrides_runpath=yes
16206  fi
16207  ;;
16208
16209os2*)
16210  libname_spec='$name'
16211  shrext_cmds=".dll"
16212  need_lib_prefix=no
16213  library_names_spec='$libname${shared_ext} $libname.a'
16214  dynamic_linker='OS/2 ld.exe'
16215  shlibpath_var=LIBPATH
16216  ;;
16217
16218osf3* | osf4* | osf5*)
16219  version_type=osf
16220  need_lib_prefix=no
16221  need_version=no
16222  soname_spec='${libname}${release}${shared_ext}$major'
16223  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16224  shlibpath_var=LD_LIBRARY_PATH
16225  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16226  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16227  ;;
16228
16229rdos*)
16230  dynamic_linker=no
16231  ;;
16232
16233solaris*)
16234  version_type=linux
16235  need_lib_prefix=no
16236  need_version=no
16237  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16238  soname_spec='${libname}${release}${shared_ext}$major'
16239  shlibpath_var=LD_LIBRARY_PATH
16240  shlibpath_overrides_runpath=yes
16241  hardcode_into_libs=yes
16242  # ldd complains unless libraries are executable
16243  postinstall_cmds='chmod +x $lib'
16244  ;;
16245
16246sunos4*)
16247  version_type=sunos
16248  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16249  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16250  shlibpath_var=LD_LIBRARY_PATH
16251  shlibpath_overrides_runpath=yes
16252  if test "$with_gnu_ld" = yes; then
16253    need_lib_prefix=no
16254  fi
16255  need_version=yes
16256  ;;
16257
16258sysv4 | sysv4.3*)
16259  version_type=linux
16260  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16261  soname_spec='${libname}${release}${shared_ext}$major'
16262  shlibpath_var=LD_LIBRARY_PATH
16263  case $host_vendor in
16264    sni)
16265      shlibpath_overrides_runpath=no
16266      need_lib_prefix=no
16267      export_dynamic_flag_spec='${wl}-Blargedynsym'
16268      runpath_var=LD_RUN_PATH
16269      ;;
16270    siemens)
16271      need_lib_prefix=no
16272      ;;
16273    motorola)
16274      need_lib_prefix=no
16275      need_version=no
16276      shlibpath_overrides_runpath=no
16277      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16278      ;;
16279  esac
16280  ;;
16281
16282sysv4*MP*)
16283  if test -d /usr/nec ;then
16284    version_type=linux
16285    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16286    soname_spec='$libname${shared_ext}.$major'
16287    shlibpath_var=LD_LIBRARY_PATH
16288  fi
16289  ;;
16290
16291sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16292  version_type=freebsd-elf
16293  need_lib_prefix=no
16294  need_version=no
16295  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16296  soname_spec='${libname}${release}${shared_ext}$major'
16297  shlibpath_var=LD_LIBRARY_PATH
16298  hardcode_into_libs=yes
16299  if test "$with_gnu_ld" = yes; then
16300    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16301    shlibpath_overrides_runpath=no
16302  else
16303    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16304    shlibpath_overrides_runpath=yes
16305    case $host_os in
16306      sco3.2v5*)
16307	sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16308	;;
16309    esac
16310  fi
16311  sys_lib_dlsearch_path_spec='/usr/lib'
16312  ;;
16313
16314uts4*)
16315  version_type=linux
16316  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16317  soname_spec='${libname}${release}${shared_ext}$major'
16318  shlibpath_var=LD_LIBRARY_PATH
16319  ;;
16320
16321*)
16322  dynamic_linker=no
16323  ;;
16324esac
16325{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16326echo "${ECHO_T}$dynamic_linker" >&6; }
16327test "$dynamic_linker" = no && can_build_shared=no
16328
16329variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16330if test "$GCC" = yes; then
16331  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16332fi
16333
16334{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16335echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16336hardcode_action_F77=
16337if test -n "$hardcode_libdir_flag_spec_F77" || \
16338   test -n "$runpath_var_F77" || \
16339   test "X$hardcode_automatic_F77" = "Xyes" ; then
16340
16341  # We can hardcode non-existant directories.
16342  if test "$hardcode_direct_F77" != no &&
16343     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16344     # have to relink, otherwise we might link with an installed library
16345     # when we should be linking with a yet-to-be-installed one
16346     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16347     test "$hardcode_minus_L_F77" != no; then
16348    # Linking always hardcodes the temporary library directory.
16349    hardcode_action_F77=relink
16350  else
16351    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16352    hardcode_action_F77=immediate
16353  fi
16354else
16355  # We cannot hardcode anything, or else we can only hardcode existing
16356  # directories.
16357  hardcode_action_F77=unsupported
16358fi
16359{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16360echo "${ECHO_T}$hardcode_action_F77" >&6; }
16361
16362if test "$hardcode_action_F77" = relink; then
16363  # Fast installation is not supported
16364  enable_fast_install=no
16365elif test "$shlibpath_overrides_runpath" = yes ||
16366     test "$enable_shared" = no; then
16367  # Fast installation is not necessary
16368  enable_fast_install=needless
16369fi
16370
16371
16372# The else clause should only fire when bootstrapping the
16373# libtool distribution, otherwise you forgot to ship ltmain.sh
16374# with your package, and you will get complaints that there are
16375# no rules to generate ltmain.sh.
16376if test -f "$ltmain"; then
16377  # See if we are running on zsh, and set the options which allow our commands through
16378  # without removal of \ escapes.
16379  if test -n "${ZSH_VERSION+set}" ; then
16380    setopt NO_GLOB_SUBST
16381  fi
16382  # Now quote all the things that may contain metacharacters while being
16383  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16384  # variables and quote the copies for generation of the libtool script.
16385  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16386    SED SHELL STRIP \
16387    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16388    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16389    deplibs_check_method reload_flag reload_cmds need_locks \
16390    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16391    lt_cv_sys_global_symbol_to_c_name_address \
16392    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16393    old_postinstall_cmds old_postuninstall_cmds \
16394    compiler_F77 \
16395    CC_F77 \
16396    LD_F77 \
16397    lt_prog_compiler_wl_F77 \
16398    lt_prog_compiler_pic_F77 \
16399    lt_prog_compiler_static_F77 \
16400    lt_prog_compiler_no_builtin_flag_F77 \
16401    export_dynamic_flag_spec_F77 \
16402    thread_safe_flag_spec_F77 \
16403    whole_archive_flag_spec_F77 \
16404    enable_shared_with_static_runtimes_F77 \
16405    old_archive_cmds_F77 \
16406    old_archive_from_new_cmds_F77 \
16407    predep_objects_F77 \
16408    postdep_objects_F77 \
16409    predeps_F77 \
16410    postdeps_F77 \
16411    compiler_lib_search_path_F77 \
16412    archive_cmds_F77 \
16413    archive_expsym_cmds_F77 \
16414    postinstall_cmds_F77 \
16415    postuninstall_cmds_F77 \
16416    old_archive_from_expsyms_cmds_F77 \
16417    allow_undefined_flag_F77 \
16418    no_undefined_flag_F77 \
16419    export_symbols_cmds_F77 \
16420    hardcode_libdir_flag_spec_F77 \
16421    hardcode_libdir_flag_spec_ld_F77 \
16422    hardcode_libdir_separator_F77 \
16423    hardcode_automatic_F77 \
16424    module_cmds_F77 \
16425    module_expsym_cmds_F77 \
16426    lt_cv_prog_compiler_c_o_F77 \
16427    exclude_expsyms_F77 \
16428    include_expsyms_F77; do
16429
16430    case $var in
16431    old_archive_cmds_F77 | \
16432    old_archive_from_new_cmds_F77 | \
16433    archive_cmds_F77 | \
16434    archive_expsym_cmds_F77 | \
16435    module_cmds_F77 | \
16436    module_expsym_cmds_F77 | \
16437    old_archive_from_expsyms_cmds_F77 | \
16438    export_symbols_cmds_F77 | \
16439    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16440    postinstall_cmds | postuninstall_cmds | \
16441    old_postinstall_cmds | old_postuninstall_cmds | \
16442    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16443      # Double-quote double-evaled strings.
16444      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16445      ;;
16446    *)
16447      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16448      ;;
16449    esac
16450  done
16451
16452  case $lt_echo in
16453  *'\$0 --fallback-echo"')
16454    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16455    ;;
16456  esac
16457
16458cfgfile="$ofile"
16459
16460  cat <<__EOF__ >> "$cfgfile"
16461# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16462
16463# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16464
16465# Shell to use when invoking shell scripts.
16466SHELL=$lt_SHELL
16467
16468# Whether or not to build shared libraries.
16469build_libtool_libs=$enable_shared
16470
16471# Whether or not to build static libraries.
16472build_old_libs=$enable_static
16473
16474# Whether or not to add -lc for building shared libraries.
16475build_libtool_need_lc=$archive_cmds_need_lc_F77
16476
16477# Whether or not to disallow shared libs when runtime libs are static
16478allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16479
16480# Whether or not to optimize for fast installation.
16481fast_install=$enable_fast_install
16482
16483# The host system.
16484host_alias=$host_alias
16485host=$host
16486host_os=$host_os
16487
16488# The build system.
16489build_alias=$build_alias
16490build=$build
16491build_os=$build_os
16492
16493# An echo program that does not interpret backslashes.
16494echo=$lt_echo
16495
16496# The archiver.
16497AR=$lt_AR
16498AR_FLAGS=$lt_AR_FLAGS
16499
16500# A C compiler.
16501LTCC=$lt_LTCC
16502
16503# LTCC compiler flags.
16504LTCFLAGS=$lt_LTCFLAGS
16505
16506# A language-specific compiler.
16507CC=$lt_compiler_F77
16508
16509# Is the compiler the GNU C compiler?
16510with_gcc=$GCC_F77
16511
16512# An ERE matcher.
16513EGREP=$lt_EGREP
16514
16515# The linker used to build libraries.
16516LD=$lt_LD_F77
16517
16518# Whether we need hard or soft links.
16519LN_S=$lt_LN_S
16520
16521# A BSD-compatible nm program.
16522NM=$lt_NM
16523
16524# A symbol stripping program
16525STRIP=$lt_STRIP
16526
16527# Used to examine libraries when file_magic_cmd begins "file"
16528MAGIC_CMD=$MAGIC_CMD
16529
16530# Used on cygwin: DLL creation program.
16531DLLTOOL="$DLLTOOL"
16532
16533# Used on cygwin: object dumper.
16534OBJDUMP="$OBJDUMP"
16535
16536# Used on cygwin: assembler.
16537AS="$AS"
16538
16539# The name of the directory that contains temporary libtool files.
16540objdir=$objdir
16541
16542# How to create reloadable object files.
16543reload_flag=$lt_reload_flag
16544reload_cmds=$lt_reload_cmds
16545
16546# How to pass a linker flag through the compiler.
16547wl=$lt_lt_prog_compiler_wl_F77
16548
16549# Object file suffix (normally "o").
16550objext="$ac_objext"
16551
16552# Old archive suffix (normally "a").
16553libext="$libext"
16554
16555# Shared library suffix (normally ".so").
16556shrext_cmds='$shrext_cmds'
16557
16558# Executable file suffix (normally "").
16559exeext="$exeext"
16560
16561# Additional compiler flags for building library objects.
16562pic_flag=$lt_lt_prog_compiler_pic_F77
16563pic_mode=$pic_mode
16564
16565# What is the maximum length of a command?
16566max_cmd_len=$lt_cv_sys_max_cmd_len
16567
16568# Does compiler simultaneously support -c and -o options?
16569compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16570
16571# Must we lock files when doing compilation?
16572need_locks=$lt_need_locks
16573
16574# Do we need the lib prefix for modules?
16575need_lib_prefix=$need_lib_prefix
16576
16577# Do we need a version for libraries?
16578need_version=$need_version
16579
16580# Whether dlopen is supported.
16581dlopen_support=$enable_dlopen
16582
16583# Whether dlopen of programs is supported.
16584dlopen_self=$enable_dlopen_self
16585
16586# Whether dlopen of statically linked programs is supported.
16587dlopen_self_static=$enable_dlopen_self_static
16588
16589# Compiler flag to prevent dynamic linking.
16590link_static_flag=$lt_lt_prog_compiler_static_F77
16591
16592# Compiler flag to turn off builtin functions.
16593no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16594
16595# Compiler flag to allow reflexive dlopens.
16596export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16597
16598# Compiler flag to generate shared objects directly from archives.
16599whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16600
16601# Compiler flag to generate thread-safe objects.
16602thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16603
16604# Library versioning type.
16605version_type=$version_type
16606
16607# Format of library name prefix.
16608libname_spec=$lt_libname_spec
16609
16610# List of archive names.  First name is the real one, the rest are links.
16611# The last name is the one that the linker finds with -lNAME.
16612library_names_spec=$lt_library_names_spec
16613
16614# The coded name of the library, if different from the real name.
16615soname_spec=$lt_soname_spec
16616
16617# Commands used to build and install an old-style archive.
16618RANLIB=$lt_RANLIB
16619old_archive_cmds=$lt_old_archive_cmds_F77
16620old_postinstall_cmds=$lt_old_postinstall_cmds
16621old_postuninstall_cmds=$lt_old_postuninstall_cmds
16622
16623# Create an old-style archive from a shared archive.
16624old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16625
16626# Create a temporary old-style archive to link instead of a shared archive.
16627old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16628
16629# Commands used to build and install a shared archive.
16630archive_cmds=$lt_archive_cmds_F77
16631archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16632postinstall_cmds=$lt_postinstall_cmds
16633postuninstall_cmds=$lt_postuninstall_cmds
16634
16635# Commands used to build a loadable module (assumed same as above if empty)
16636module_cmds=$lt_module_cmds_F77
16637module_expsym_cmds=$lt_module_expsym_cmds_F77
16638
16639# Commands to strip libraries.
16640old_striplib=$lt_old_striplib
16641striplib=$lt_striplib
16642
16643# Dependencies to place before the objects being linked to create a
16644# shared library.
16645predep_objects=$lt_predep_objects_F77
16646
16647# Dependencies to place after the objects being linked to create a
16648# shared library.
16649postdep_objects=$lt_postdep_objects_F77
16650
16651# Dependencies to place before the objects being linked to create a
16652# shared library.
16653predeps=$lt_predeps_F77
16654
16655# Dependencies to place after the objects being linked to create a
16656# shared library.
16657postdeps=$lt_postdeps_F77
16658
16659# The library search path used internally by the compiler when linking
16660# a shared library.
16661compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16662
16663# Method to check whether dependent libraries are shared objects.
16664deplibs_check_method=$lt_deplibs_check_method
16665
16666# Command to use when deplibs_check_method == file_magic.
16667file_magic_cmd=$lt_file_magic_cmd
16668
16669# Flag that allows shared libraries with undefined symbols to be built.
16670allow_undefined_flag=$lt_allow_undefined_flag_F77
16671
16672# Flag that forces no undefined symbols.
16673no_undefined_flag=$lt_no_undefined_flag_F77
16674
16675# Commands used to finish a libtool library installation in a directory.
16676finish_cmds=$lt_finish_cmds
16677
16678# Same as above, but a single script fragment to be evaled but not shown.
16679finish_eval=$lt_finish_eval
16680
16681# Take the output of nm and produce a listing of raw symbols and C names.
16682global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16683
16684# Transform the output of nm in a proper C declaration
16685global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16686
16687# Transform the output of nm in a C name address pair
16688global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16689
16690# This is the shared library runtime path variable.
16691runpath_var=$runpath_var
16692
16693# This is the shared library path variable.
16694shlibpath_var=$shlibpath_var
16695
16696# Is shlibpath searched before the hard-coded library search path?
16697shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16698
16699# How to hardcode a shared library path into an executable.
16700hardcode_action=$hardcode_action_F77
16701
16702# Whether we should hardcode library paths into libraries.
16703hardcode_into_libs=$hardcode_into_libs
16704
16705# Flag to hardcode \$libdir into a binary during linking.
16706# This must work even if \$libdir does not exist.
16707hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16708
16709# If ld is used when linking, flag to hardcode \$libdir into
16710# a binary during linking. This must work even if \$libdir does
16711# not exist.
16712hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16713
16714# Whether we need a single -rpath flag with a separated argument.
16715hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16716
16717# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16718# resulting binary.
16719hardcode_direct=$hardcode_direct_F77
16720
16721# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16722# resulting binary.
16723hardcode_minus_L=$hardcode_minus_L_F77
16724
16725# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16726# the resulting binary.
16727hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16728
16729# Set to yes if building a shared library automatically hardcodes DIR into the library
16730# and all subsequent libraries and executables linked against it.
16731hardcode_automatic=$hardcode_automatic_F77
16732
16733# Variables whose values should be saved in libtool wrapper scripts and
16734# restored at relink time.
16735variables_saved_for_relink="$variables_saved_for_relink"
16736
16737# Whether libtool must link a program against all its dependency libraries.
16738link_all_deplibs=$link_all_deplibs_F77
16739
16740# Compile-time system search path for libraries
16741sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16742
16743# Run-time system search path for libraries
16744sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16745
16746# Fix the shell variable \$srcfile for the compiler.
16747fix_srcfile_path="$fix_srcfile_path_F77"
16748
16749# Set to yes if exported symbols are required.
16750always_export_symbols=$always_export_symbols_F77
16751
16752# The commands to list exported symbols.
16753export_symbols_cmds=$lt_export_symbols_cmds_F77
16754
16755# The commands to extract the exported symbol list from a shared archive.
16756extract_expsyms_cmds=$lt_extract_expsyms_cmds
16757
16758# Symbols that should not be listed in the preloaded symbols.
16759exclude_expsyms=$lt_exclude_expsyms_F77
16760
16761# Symbols that must always be exported.
16762include_expsyms=$lt_include_expsyms_F77
16763
16764# ### END LIBTOOL TAG CONFIG: $tagname
16765
16766__EOF__
16767
16768
16769else
16770  # If there is no Makefile yet, we rely on a make rule to execute
16771  # 'config.status --recheck' to rerun these tests and create the
16772  # libtool script then.
16773  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16774  if test -f "$ltmain_in"; then
16775    test -f Makefile && make "$ltmain"
16776  fi
16777fi
16778
16779
16780ac_ext=c
16781ac_cpp='$CPP $CPPFLAGS'
16782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16784ac_compiler_gnu=$ac_cv_c_compiler_gnu
16785
16786CC="$lt_save_CC"
16787
16788	else
16789	  tagname=""
16790	fi
16791	;;
16792
16793      GCJ)
16794	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16795
16796
16797# Source file extension for Java test sources.
16798ac_ext=java
16799
16800# Object file extension for compiled Java test sources.
16801objext=o
16802objext_GCJ=$objext
16803
16804# Code to be used in simple compile tests
16805lt_simple_compile_test_code="class foo {}\n"
16806
16807# Code to be used in simple link tests
16808lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16809
16810# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16811
16812# If no C compiler was specified, use CC.
16813LTCC=${LTCC-"$CC"}
16814
16815# If no C compiler flags were specified, use CFLAGS.
16816LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16817
16818# Allow CC to be a program name with arguments.
16819compiler=$CC
16820
16821
16822# save warnings/boilerplate of simple test code
16823ac_outfile=conftest.$ac_objext
16824printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16825eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16826_lt_compiler_boilerplate=`cat conftest.err`
16827$rm conftest*
16828
16829ac_outfile=conftest.$ac_objext
16830printf "$lt_simple_link_test_code" >conftest.$ac_ext
16831eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16832_lt_linker_boilerplate=`cat conftest.err`
16833$rm conftest*
16834
16835
16836# Allow CC to be a program name with arguments.
16837lt_save_CC="$CC"
16838CC=${GCJ-"gcj"}
16839compiler=$CC
16840compiler_GCJ=$CC
16841for cc_temp in $compiler""; do
16842  case $cc_temp in
16843    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16844    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16845    \-*) ;;
16846    *) break;;
16847  esac
16848done
16849cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16850
16851
16852# GCJ did not exist at the time GCC didn't implicitly link libc in.
16853archive_cmds_need_lc_GCJ=no
16854
16855old_archive_cmds_GCJ=$old_archive_cmds
16856
16857## CAVEAT EMPTOR:
16858## There is no encapsulation within the following macros, do not change
16859## the running order or otherwise move them around unless you know exactly
16860## what you are doing...
16861
16862lt_prog_compiler_no_builtin_flag_GCJ=
16863
16864if test "$GCC" = yes; then
16865  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16866
16867
16868{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16869echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16870if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16871  echo $ECHO_N "(cached) $ECHO_C" >&6
16872else
16873  lt_cv_prog_compiler_rtti_exceptions=no
16874  ac_outfile=conftest.$ac_objext
16875   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16876   lt_compiler_flag="-fno-rtti -fno-exceptions"
16877   # Insert the option either (1) after the last *FLAGS variable, or
16878   # (2) before a word containing "conftest.", or (3) at the end.
16879   # Note that $ac_compile itself does not contain backslashes and begins
16880   # with a dollar sign (not a hyphen), so the echo should work correctly.
16881   # The option is referenced via a variable to avoid confusing sed.
16882   lt_compile=`echo "$ac_compile" | $SED \
16883   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16884   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16885   -e 's:$: $lt_compiler_flag:'`
16886   (eval echo "\"\$as_me:16886: $lt_compile\"" >&5)
16887   (eval "$lt_compile" 2>conftest.err)
16888   ac_status=$?
16889   cat conftest.err >&5
16890   echo "$as_me:16890: \$? = $ac_status" >&5
16891   if (exit $ac_status) && test -s "$ac_outfile"; then
16892     # The compiler can only warn and ignore the option if not recognized
16893     # So say no if there are warnings other than the usual output.
16894     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16895     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16896     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16897       lt_cv_prog_compiler_rtti_exceptions=yes
16898     fi
16899   fi
16900   $rm conftest*
16901
16902fi
16903{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16904echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16905
16906if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16907    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16908else
16909    :
16910fi
16911
16912fi
16913
16914lt_prog_compiler_wl_GCJ=
16915lt_prog_compiler_pic_GCJ=
16916lt_prog_compiler_static_GCJ=
16917
16918{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16919echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16920
16921  if test "$GCC" = yes; then
16922    lt_prog_compiler_wl_GCJ='-Wl,'
16923    lt_prog_compiler_static_GCJ='-static'
16924
16925    case $host_os in
16926      aix*)
16927      # All AIX code is PIC.
16928      if test "$host_cpu" = ia64; then
16929	# AIX 5 now supports IA64 processor
16930	lt_prog_compiler_static_GCJ='-Bstatic'
16931      fi
16932      ;;
16933
16934    amigaos*)
16935      # FIXME: we need at least 68020 code to build shared libraries, but
16936      # adding the '-m68020' flag to GCC prevents building anything better,
16937      # like '-m68040'.
16938      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16939      ;;
16940
16941    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16942      # PIC is the default for these OSes.
16943      ;;
16944
16945    mingw* | cygwin* | pw32* | os2*)
16946      # This hack is so that the source file can tell whether it is being
16947      # built for inclusion in a dll (and should export symbols for example).
16948      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16949      # (--disable-auto-import) libraries
16950      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16951      ;;
16952
16953    darwin* | rhapsody*)
16954      # PIC is the default on this platform
16955      # Common symbols not allowed in MH_DYLIB files
16956      lt_prog_compiler_pic_GCJ='-fno-common'
16957      ;;
16958
16959    interix3*)
16960      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16961      # Instead, we relocate shared libraries at runtime.
16962      ;;
16963
16964    msdosdjgpp*)
16965      # Just because we use GCC doesn't mean we suddenly get shared libraries
16966      # on systems that don't support them.
16967      lt_prog_compiler_can_build_shared_GCJ=no
16968      enable_shared=no
16969      ;;
16970
16971    sysv4*MP*)
16972      if test -d /usr/nec; then
16973	lt_prog_compiler_pic_GCJ=-Kconform_pic
16974      fi
16975      ;;
16976
16977    hpux*)
16978      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16979      # not for PA HP-UX.
16980      case $host_cpu in
16981      hppa*64*|ia64*)
16982	# +Z the default
16983	;;
16984      *)
16985	lt_prog_compiler_pic_GCJ='-fPIC'
16986	;;
16987      esac
16988      ;;
16989
16990    *)
16991      lt_prog_compiler_pic_GCJ='-fPIC'
16992      ;;
16993    esac
16994  else
16995    # PORTME Check for flag to pass linker flags through the system compiler.
16996    case $host_os in
16997    aix*)
16998      lt_prog_compiler_wl_GCJ='-Wl,'
16999      if test "$host_cpu" = ia64; then
17000	# AIX 5 now supports IA64 processor
17001	lt_prog_compiler_static_GCJ='-Bstatic'
17002      else
17003	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17004      fi
17005      ;;
17006      darwin*)
17007	# PIC is the default on this platform
17008	# Common symbols not allowed in MH_DYLIB files
17009	case $cc_basename in
17010	xlc*)
17011	  lt_prog_compiler_pic_GCJ='-qnocommon'
17012	  lt_prog_compiler_wl_GCJ='-Wl,'
17013	  ;;
17014	esac
17015	;;
17016
17017    mingw* | cygwin* | pw32* | os2*)
17018      # This hack is so that the source file can tell whether it is being
17019      # built for inclusion in a dll (and should export symbols for example).
17020      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17021      ;;
17022
17023    hpux9* | hpux10* | hpux11*)
17024      lt_prog_compiler_wl_GCJ='-Wl,'
17025      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17026      # not for PA HP-UX.
17027      case $host_cpu in
17028      hppa*64*|ia64*)
17029	# +Z the default
17030	;;
17031      *)
17032	lt_prog_compiler_pic_GCJ='+Z'
17033	;;
17034      esac
17035      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17036      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17037      ;;
17038
17039    irix5* | irix6* | nonstopux*)
17040      lt_prog_compiler_wl_GCJ='-Wl,'
17041      # PIC (with -KPIC) is the default.
17042      lt_prog_compiler_static_GCJ='-non_shared'
17043      ;;
17044
17045    newsos6)
17046      lt_prog_compiler_pic_GCJ='-KPIC'
17047      lt_prog_compiler_static_GCJ='-Bstatic'
17048      ;;
17049
17050    linux*)
17051      case $cc_basename in
17052      icc* | ecc*)
17053	lt_prog_compiler_wl_GCJ='-Wl,'
17054	lt_prog_compiler_pic_GCJ='-KPIC'
17055	lt_prog_compiler_static_GCJ='-static'
17056	;;
17057      pgcc* | pgf77* | pgf90* | pgf95*)
17058	# Portland Group compilers (*not* the Pentium gcc compiler,
17059	# which looks to be a dead project)
17060	lt_prog_compiler_wl_GCJ='-Wl,'
17061	lt_prog_compiler_pic_GCJ='-fpic'
17062	lt_prog_compiler_static_GCJ='-Bstatic'
17063	;;
17064      ccc*)
17065        lt_prog_compiler_wl_GCJ='-Wl,'
17066        # All Alpha code is PIC.
17067        lt_prog_compiler_static_GCJ='-non_shared'
17068        ;;
17069      *)
17070        case `$CC -V 2>&1 | sed 5q` in
17071	*Sun\ C*)
17072	  # Sun C 5.9
17073	  lt_prog_compiler_pic_GCJ='-KPIC'
17074	  lt_prog_compiler_static_GCJ='-Bstatic'
17075	  lt_prog_compiler_wl_GCJ='-Wl,'
17076	  ;;
17077	*Sun\ F*)
17078	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
17079	  lt_prog_compiler_pic_GCJ='-KPIC'
17080	  lt_prog_compiler_static_GCJ='-Bstatic'
17081	  lt_prog_compiler_wl_GCJ=''
17082	  ;;
17083	esac
17084	;;
17085      esac
17086      ;;
17087
17088    osf3* | osf4* | osf5*)
17089      lt_prog_compiler_wl_GCJ='-Wl,'
17090      # All OSF/1 code is PIC.
17091      lt_prog_compiler_static_GCJ='-non_shared'
17092      ;;
17093
17094    rdos*)
17095      lt_prog_compiler_static_GCJ='-non_shared'
17096      ;;
17097
17098    solaris*)
17099      lt_prog_compiler_pic_GCJ='-KPIC'
17100      lt_prog_compiler_static_GCJ='-Bstatic'
17101      case $cc_basename in
17102      f77* | f90* | f95*)
17103	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17104      *)
17105	lt_prog_compiler_wl_GCJ='-Wl,';;
17106      esac
17107      ;;
17108
17109    sunos4*)
17110      lt_prog_compiler_wl_GCJ='-Qoption ld '
17111      lt_prog_compiler_pic_GCJ='-PIC'
17112      lt_prog_compiler_static_GCJ='-Bstatic'
17113      ;;
17114
17115    sysv4 | sysv4.2uw2* | sysv4.3*)
17116      lt_prog_compiler_wl_GCJ='-Wl,'
17117      lt_prog_compiler_pic_GCJ='-KPIC'
17118      lt_prog_compiler_static_GCJ='-Bstatic'
17119      ;;
17120
17121    sysv4*MP*)
17122      if test -d /usr/nec ;then
17123	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17124	lt_prog_compiler_static_GCJ='-Bstatic'
17125      fi
17126      ;;
17127
17128    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17129      lt_prog_compiler_wl_GCJ='-Wl,'
17130      lt_prog_compiler_pic_GCJ='-KPIC'
17131      lt_prog_compiler_static_GCJ='-Bstatic'
17132      ;;
17133
17134    unicos*)
17135      lt_prog_compiler_wl_GCJ='-Wl,'
17136      lt_prog_compiler_can_build_shared_GCJ=no
17137      ;;
17138
17139    uts4*)
17140      lt_prog_compiler_pic_GCJ='-pic'
17141      lt_prog_compiler_static_GCJ='-Bstatic'
17142      ;;
17143
17144    *)
17145      lt_prog_compiler_can_build_shared_GCJ=no
17146      ;;
17147    esac
17148  fi
17149
17150{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17151echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17152
17153#
17154# Check to make sure the PIC flag actually works.
17155#
17156if test -n "$lt_prog_compiler_pic_GCJ"; then
17157
17158{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17159echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17160if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17161  echo $ECHO_N "(cached) $ECHO_C" >&6
17162else
17163  lt_prog_compiler_pic_works_GCJ=no
17164  ac_outfile=conftest.$ac_objext
17165   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17166   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17167   # Insert the option either (1) after the last *FLAGS variable, or
17168   # (2) before a word containing "conftest.", or (3) at the end.
17169   # Note that $ac_compile itself does not contain backslashes and begins
17170   # with a dollar sign (not a hyphen), so the echo should work correctly.
17171   # The option is referenced via a variable to avoid confusing sed.
17172   lt_compile=`echo "$ac_compile" | $SED \
17173   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17174   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17175   -e 's:$: $lt_compiler_flag:'`
17176   (eval echo "\"\$as_me:17176: $lt_compile\"" >&5)
17177   (eval "$lt_compile" 2>conftest.err)
17178   ac_status=$?
17179   cat conftest.err >&5
17180   echo "$as_me:17180: \$? = $ac_status" >&5
17181   if (exit $ac_status) && test -s "$ac_outfile"; then
17182     # The compiler can only warn and ignore the option if not recognized
17183     # So say no if there are warnings other than the usual output.
17184     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17185     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17186     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17187       lt_prog_compiler_pic_works_GCJ=yes
17188     fi
17189   fi
17190   $rm conftest*
17191
17192fi
17193{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17194echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17195
17196if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17197    case $lt_prog_compiler_pic_GCJ in
17198     "" | " "*) ;;
17199     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17200     esac
17201else
17202    lt_prog_compiler_pic_GCJ=
17203     lt_prog_compiler_can_build_shared_GCJ=no
17204fi
17205
17206fi
17207case $host_os in
17208  # For platforms which do not support PIC, -DPIC is meaningless:
17209  *djgpp*)
17210    lt_prog_compiler_pic_GCJ=
17211    ;;
17212  *)
17213    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17214    ;;
17215esac
17216
17217#
17218# Check to make sure the static flag actually works.
17219#
17220wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17221{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17222echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17223if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17224  echo $ECHO_N "(cached) $ECHO_C" >&6
17225else
17226  lt_prog_compiler_static_works_GCJ=no
17227   save_LDFLAGS="$LDFLAGS"
17228   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17229   printf "$lt_simple_link_test_code" > conftest.$ac_ext
17230   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17231     # The linker can only warn and ignore the option if not recognized
17232     # So say no if there are warnings
17233     if test -s conftest.err; then
17234       # Append any errors to the config.log.
17235       cat conftest.err 1>&5
17236       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17237       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17238       if diff conftest.exp conftest.er2 >/dev/null; then
17239	 lt_prog_compiler_static_works_GCJ=yes
17240       fi
17241     else
17242       lt_prog_compiler_static_works_GCJ=yes
17243     fi
17244   fi
17245   $rm conftest*
17246   LDFLAGS="$save_LDFLAGS"
17247
17248fi
17249{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17250echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17251
17252if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17253    :
17254else
17255    lt_prog_compiler_static_GCJ=
17256fi
17257
17258
17259{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17260echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17261if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17262  echo $ECHO_N "(cached) $ECHO_C" >&6
17263else
17264  lt_cv_prog_compiler_c_o_GCJ=no
17265   $rm -r conftest 2>/dev/null
17266   mkdir conftest
17267   cd conftest
17268   mkdir out
17269   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17270
17271   lt_compiler_flag="-o out/conftest2.$ac_objext"
17272   # Insert the option either (1) after the last *FLAGS variable, or
17273   # (2) before a word containing "conftest.", or (3) at the end.
17274   # Note that $ac_compile itself does not contain backslashes and begins
17275   # with a dollar sign (not a hyphen), so the echo should work correctly.
17276   lt_compile=`echo "$ac_compile" | $SED \
17277   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17278   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17279   -e 's:$: $lt_compiler_flag:'`
17280   (eval echo "\"\$as_me:17280: $lt_compile\"" >&5)
17281   (eval "$lt_compile" 2>out/conftest.err)
17282   ac_status=$?
17283   cat out/conftest.err >&5
17284   echo "$as_me:17284: \$? = $ac_status" >&5
17285   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17286   then
17287     # The compiler can only warn and ignore the option if not recognized
17288     # So say no if there are warnings
17289     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17290     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17291     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17292       lt_cv_prog_compiler_c_o_GCJ=yes
17293     fi
17294   fi
17295   chmod u+w . 2>&5
17296   $rm conftest*
17297   # SGI C++ compiler will create directory out/ii_files/ for
17298   # template instantiation
17299   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17300   $rm out/* && rmdir out
17301   cd ..
17302   rmdir conftest
17303   $rm conftest*
17304
17305fi
17306{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17307echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17308
17309
17310hard_links="nottested"
17311if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17312  # do not overwrite the value of need_locks provided by the user
17313  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17314echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17315  hard_links=yes
17316  $rm conftest*
17317  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17318  touch conftest.a
17319  ln conftest.a conftest.b 2>&5 || hard_links=no
17320  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17321  { echo "$as_me:$LINENO: result: $hard_links" >&5
17322echo "${ECHO_T}$hard_links" >&6; }
17323  if test "$hard_links" = no; then
17324    { echo "$as_me:$LINENO: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17325echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17326    need_locks=warn
17327  fi
17328else
17329  need_locks=no
17330fi
17331
17332{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17333echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17334
17335  runpath_var=
17336  allow_undefined_flag_GCJ=
17337  enable_shared_with_static_runtimes_GCJ=no
17338  archive_cmds_GCJ=
17339  archive_expsym_cmds_GCJ=
17340  old_archive_From_new_cmds_GCJ=
17341  old_archive_from_expsyms_cmds_GCJ=
17342  export_dynamic_flag_spec_GCJ=
17343  whole_archive_flag_spec_GCJ=
17344  thread_safe_flag_spec_GCJ=
17345  hardcode_libdir_flag_spec_GCJ=
17346  hardcode_libdir_flag_spec_ld_GCJ=
17347  hardcode_libdir_separator_GCJ=
17348  hardcode_direct_GCJ=no
17349  hardcode_minus_L_GCJ=no
17350  hardcode_shlibpath_var_GCJ=unsupported
17351  link_all_deplibs_GCJ=unknown
17352  hardcode_automatic_GCJ=no
17353  module_cmds_GCJ=
17354  module_expsym_cmds_GCJ=
17355  always_export_symbols_GCJ=no
17356  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17357  # include_expsyms should be a list of space-separated symbols to be *always*
17358  # included in the symbol list
17359  include_expsyms_GCJ=
17360  # exclude_expsyms can be an extended regexp of symbols to exclude
17361  # it will be wrapped by ' (' and ')$', so one must not match beginning or
17362  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
17363  # as well as any symbol that contains 'd'.
17364  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17365  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17366  # platforms (ab)use it in PIC code, but their linkers get confused if
17367  # the symbol is explicitly referenced.  Since portable code cannot
17368  # rely on this symbol name, it's probably fine to never include it in
17369  # preloaded symbol tables.
17370  extract_expsyms_cmds=
17371  # Just being paranoid about ensuring that cc_basename is set.
17372  for cc_temp in $compiler""; do
17373  case $cc_temp in
17374    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17375    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17376    \-*) ;;
17377    *) break;;
17378  esac
17379done
17380cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17381
17382  case $host_os in
17383  cygwin* | mingw* | pw32*)
17384    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17385    # When not using gcc, we currently assume that we are using
17386    # Microsoft Visual C++.
17387    if test "$GCC" != yes; then
17388      with_gnu_ld=no
17389    fi
17390    ;;
17391  interix*)
17392    # we just hope/assume this is gcc and not c89 (= MSVC++)
17393    with_gnu_ld=yes
17394    ;;
17395  mirbsd*)
17396    with_gnu_ld=yes
17397    ;;
17398  openbsd*)
17399    with_gnu_ld=no
17400    ;;
17401  esac
17402
17403  ld_shlibs_GCJ=yes
17404  if test "$with_gnu_ld" = yes; then
17405    # If archive_cmds runs LD, not CC, wlarc should be empty
17406    wlarc='${wl}'
17407
17408    # Set some defaults for GNU ld with shared library support. These
17409    # are reset later if shared libraries are not supported. Putting them
17410    # here allows them to be overridden if necessary.
17411    runpath_var=LD_RUN_PATH
17412    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17413    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17414    # ancient GNU ld didn't support --whole-archive et. al.
17415    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17416	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17417      else
17418	whole_archive_flag_spec_GCJ=
17419    fi
17420    supports_anon_versioning=no
17421    case `$LD -v 2>/dev/null` in
17422      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17423      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17424      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17425      *\ 2.11.*) ;; # other 2.11 versions
17426      *) supports_anon_versioning=yes ;;
17427    esac
17428
17429    # See if GNU ld supports shared libraries.
17430    case $host_os in
17431    aix3* | aix4* | aix5*)
17432      # On AIX/PPC, the GNU linker is very broken
17433      if test "$host_cpu" != ia64; then
17434	ld_shlibs_GCJ=no
17435	cat <<EOF 1>&2
17436
17437*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17438*** to be unable to reliably create shared libraries on AIX.
17439*** Therefore, libtool is disabling shared libraries support.  If you
17440*** really care for shared libraries, you may want to modify your PATH
17441*** so that a non-GNU linker is found, and then restart.
17442
17443EOF
17444      fi
17445      ;;
17446
17447    amigaos*)
17448      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)'
17449      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17450      hardcode_minus_L_GCJ=yes
17451
17452      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17453      # that the semantics of dynamic libraries on AmigaOS, at least up
17454      # to version 4, is to share data among multiple programs linked
17455      # with the same dynamic library.  Since this doesn't match the
17456      # behavior of shared libraries on other platforms, we can't use
17457      # them.
17458      ld_shlibs_GCJ=no
17459      ;;
17460
17461    beos*)
17462      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17463	allow_undefined_flag_GCJ=unsupported
17464	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17465	# support --undefined.  This deserves some investigation.  FIXME
17466	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17467      else
17468	ld_shlibs_GCJ=no
17469      fi
17470      ;;
17471
17472    cygwin* | mingw* | pw32*)
17473      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17474      # as there is no search path for DLLs.
17475      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17476      allow_undefined_flag_GCJ=unsupported
17477      always_export_symbols_GCJ=no
17478      enable_shared_with_static_runtimes_GCJ=yes
17479      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17480
17481      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17482	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17483	# If the export-symbols file already is a .def file (1st line
17484	# is EXPORTS), use it as is; otherwise, prepend...
17485	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17486	  cp $export_symbols $output_objdir/$soname.def;
17487	else
17488	  echo EXPORTS > $output_objdir/$soname.def;
17489	  cat $export_symbols >> $output_objdir/$soname.def;
17490	fi~
17491	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17492      else
17493	ld_shlibs_GCJ=no
17494      fi
17495      ;;
17496
17497    interix3*)
17498      hardcode_direct_GCJ=no
17499      hardcode_shlibpath_var_GCJ=no
17500      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17501      export_dynamic_flag_spec_GCJ='${wl}-E'
17502      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17503      # Instead, shared libraries are loaded at an image base (0x10000000 by
17504      # default) and relocated if they conflict, which is a slow very memory
17505      # consuming and fragmenting process.  To avoid this, we pick a random,
17506      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17507      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17508      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'
17509      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'
17510      ;;
17511
17512    linux*)
17513      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17514	tmp_addflag=
17515	case $cc_basename,$host_cpu in
17516	pgcc*)				# Portland Group C compiler
17517	  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'
17518	  tmp_addflag=' $pic_flag'
17519	  ;;
17520	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17521	  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'
17522	  tmp_addflag=' $pic_flag -Mnomain' ;;
17523	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17524	  tmp_addflag=' -i_dynamic' ;;
17525	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17526	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17527	ifc* | ifort*)			# Intel Fortran compiler
17528	  tmp_addflag=' -nofor_main' ;;
17529	esac
17530	case `$CC -V 2>&1 | sed 5q` in
17531	*Sun\ C*)			# Sun C 5.9
17532	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive /dev/null'
17533	  tmp_sharedflag='-G' ;;
17534	*Sun\ F*)			# Sun Fortran 8.3
17535	  tmp_sharedflag='-G' ;;
17536	*)
17537	  tmp_sharedflag='-shared' ;;
17538	esac
17539	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17540
17541	if test $supports_anon_versioning = yes; then
17542	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17543  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17544  $echo "local: *; };" >> $output_objdir/$libname.ver~
17545	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17546	fi
17547      else
17548	ld_shlibs_GCJ=no
17549      fi
17550      ;;
17551
17552    mirbsd*)
17553      hardcode_direct_GCJ=yes
17554      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags -o $lib'
17555      archive_expsym_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17556      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17557      export_dynamic_flag_spec_GCJ='${wl}-E'
17558      ;;
17559
17560    netbsd*)
17561      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17562	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17563	wlarc=
17564      else
17565	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17566	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17567      fi
17568      ;;
17569
17570    solaris*)
17571      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17572	ld_shlibs_GCJ=no
17573	cat <<EOF 1>&2
17574
17575*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17576*** create shared libraries on Solaris systems.  Therefore, libtool
17577*** is disabling shared libraries support.  We urge you to upgrade GNU
17578*** binutils to release 2.9.1 or newer.  Another option is to modify
17579*** your PATH or compiler configuration so that the native linker is
17580*** used, and then restart.
17581
17582EOF
17583      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17584	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17585	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17586      else
17587	ld_shlibs_GCJ=no
17588      fi
17589      ;;
17590
17591    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17592      case `$LD -v 2>&1` in
17593	*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17594	ld_shlibs_GCJ=no
17595	cat <<_LT_EOF 1>&2
17596
17597*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17598*** reliably create shared libraries on SCO systems.  Therefore, libtool
17599*** is disabling shared libraries support.  We urge you to upgrade GNU
17600*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17601*** your PATH or compiler configuration so that the native linker is
17602*** used, and then restart.
17603
17604_LT_EOF
17605	;;
17606	*)
17607	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17608	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17609	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17610	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17611	  else
17612	    ld_shlibs_GCJ=no
17613	  fi
17614	;;
17615      esac
17616      ;;
17617
17618    sunos4*)
17619      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17620      wlarc=
17621      hardcode_direct_GCJ=yes
17622      hardcode_shlibpath_var_GCJ=no
17623      ;;
17624
17625    *)
17626      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17627	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17628	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17629      else
17630	ld_shlibs_GCJ=no
17631      fi
17632      ;;
17633    esac
17634
17635    if test "$ld_shlibs_GCJ" = no; then
17636      runpath_var=
17637      hardcode_libdir_flag_spec_GCJ=
17638      export_dynamic_flag_spec_GCJ=
17639      whole_archive_flag_spec_GCJ=
17640    fi
17641  else
17642    # PORTME fill in a description of your system's linker (not GNU ld)
17643    case $host_os in
17644    aix3*)
17645      allow_undefined_flag_GCJ=unsupported
17646      always_export_symbols_GCJ=yes
17647      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'
17648      # Note: this linker hardcodes the directories in LIBPATH if there
17649      # are no directories specified by -L.
17650      hardcode_minus_L_GCJ=yes
17651      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17652	# Neither direct hardcoding nor static linking is supported with a
17653	# broken collect2.
17654	hardcode_direct_GCJ=unsupported
17655      fi
17656      ;;
17657
17658    aix4* | aix5*)
17659      if test "$host_cpu" = ia64; then
17660	# On IA64, the linker does run time linking by default, so we don't
17661	# have to do anything special.
17662	aix_use_runtimelinking=no
17663	exp_sym_flag='-Bexport'
17664	no_entry_flag=""
17665      else
17666	# If we're using GNU nm, then we don't want the "-C" option.
17667	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17668	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17669	  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'
17670	else
17671	  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'
17672	fi
17673	aix_use_runtimelinking=no
17674
17675	# Test if we are trying to use run time linking or normal
17676	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17677	# need to do runtime linking.
17678	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17679	  for ld_flag in $LDFLAGS; do
17680	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17681	    aix_use_runtimelinking=yes
17682	    break
17683	  fi
17684	  done
17685	  ;;
17686	esac
17687
17688	exp_sym_flag='-bexport'
17689	no_entry_flag='-bnoentry'
17690      fi
17691
17692      # When large executables or shared objects are built, AIX ld can
17693      # have problems creating the table of contents.  If linking a library
17694      # or program results in "error TOC overflow" add -mminimal-toc to
17695      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17696      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17697
17698      archive_cmds_GCJ=''
17699      hardcode_direct_GCJ=yes
17700      hardcode_libdir_separator_GCJ=':'
17701      link_all_deplibs_GCJ=yes
17702
17703      if test "$GCC" = yes; then
17704	case $host_os in aix4.[012]|aix4.[012].*)
17705	# We only want to do this on AIX 4.2 and lower, the check
17706	# below for broken collect2 doesn't work under 4.3+
17707	  collect2name=`${CC} -print-prog-name=collect2`
17708	  if test -f "$collect2name" && \
17709	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17710	  then
17711  	  # We have reworked collect2
17712  	  :
17713	  else
17714	    # We have old collect2
17715	    hardcode_direct_GCJ=unsupported
17716	    # It fails to find uninstalled libraries when the uninstalled
17717	    # path is not listed in the libpath.  Setting hardcode_minus_L
17718	    # to unsupported forces relinking
17719	    hardcode_minus_L_GCJ=yes
17720	    hardcode_libdir_flag_spec_GCJ='-L$libdir'
17721	    hardcode_libdir_separator_GCJ=
17722	  fi
17723	  ;;
17724	esac
17725	shared_flag='-shared'
17726	if test "$aix_use_runtimelinking" = yes; then
17727	  shared_flag="$shared_flag "'${wl}-G'
17728	fi
17729      else
17730	# not using gcc
17731	if test "$host_cpu" = ia64; then
17732	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17733	# chokes on -Wl,-G. The following line is correct:
17734	  shared_flag='-G'
17735	else
17736	  if test "$aix_use_runtimelinking" = yes; then
17737	    shared_flag='${wl}-G'
17738	  else
17739	    shared_flag='${wl}-bM:SRE'
17740	  fi
17741	fi
17742      fi
17743
17744      # It seems that -bexpall does not export symbols beginning with
17745      # underscore (_), so it is better to generate a list of symbols to export.
17746      always_export_symbols_GCJ=yes
17747      if test "$aix_use_runtimelinking" = yes; then
17748	# Warning - without using the other runtime loading flags (-brtl),
17749	# -berok will link without error, but may produce a broken library.
17750	allow_undefined_flag_GCJ='-berok'
17751       # Determine the default libpath from the value encoded in an empty executable.
17752       aix_libpath="/usr/lib:/lib"
17753
17754       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17755	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"
17756       else
17757	if test "$host_cpu" = ia64; then
17758	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17759	  allow_undefined_flag_GCJ="-z nodefs"
17760	  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"
17761	else
17762	 # Determine the default libpath from the value encoded in an empty executable.
17763	 aix_libpath="/usr/lib:/lib"
17764
17765	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17766	  # Warning - without using the other run time loading flags,
17767	  # -berok will link without error, but may produce a broken library.
17768	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17769	  allow_undefined_flag_GCJ=' ${wl}-berok'
17770	  # Exported symbols can be pulled into shared objects from archives
17771	  whole_archive_flag_spec_GCJ='$convenience'
17772	  archive_cmds_need_lc_GCJ=yes
17773	  # This is similar to how AIX traditionally builds its shared libraries.
17774	  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'
17775	fi
17776      fi
17777      ;;
17778
17779    amigaos*)
17780      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)'
17781      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17782      hardcode_minus_L_GCJ=yes
17783      # see comment about different semantics on the GNU ld section
17784      ld_shlibs_GCJ=no
17785      ;;
17786
17787    bsdi[45]*)
17788      export_dynamic_flag_spec_GCJ=-rdynamic
17789      ;;
17790
17791    cygwin* | mingw* | pw32*)
17792      # When not using gcc, we currently assume that we are using
17793      # Microsoft Visual C++.
17794      # hardcode_libdir_flag_spec is actually meaningless, as there is
17795      # no search path for DLLs.
17796      hardcode_libdir_flag_spec_GCJ=' '
17797      allow_undefined_flag_GCJ=unsupported
17798      # Tell ltmain to make .lib files, not .a files.
17799      libext=lib
17800      # Tell ltmain to make .dll files, not .so files.
17801      shrext_cmds=".dll"
17802      # FIXME: Setting linknames here is a bad hack.
17803      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17804      # The linker will automatically build a .lib file if we build a DLL.
17805      old_archive_From_new_cmds_GCJ='true'
17806      # FIXME: Should let the user specify the lib program.
17807      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17808      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17809      enable_shared_with_static_runtimes_GCJ=yes
17810      ;;
17811
17812    darwin* | rhapsody*)
17813      case $host_os in
17814      rhapsody* | darwin1.[012])
17815	allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17816	;;
17817      *) # Darwin 1.3 on
17818	if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17819	  allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17820	else
17821	  case ${MACOSX_DEPLOYMENT_TARGET} in
17822	  10.[012])
17823	    allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17824	    ;;
17825	  10.*)
17826	    allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17827	    ;;
17828	  esac
17829	fi
17830	;;
17831      esac
17832      archive_cmds_need_lc_GCJ=no
17833      hardcode_direct_GCJ=no
17834      hardcode_automatic_GCJ=yes
17835      hardcode_shlibpath_var_GCJ=unsupported
17836      whole_archive_flag_spec_GCJ=''
17837      link_all_deplibs_GCJ=yes
17838    if test "$GCC" = yes ; then
17839	output_verbose_link_cmd='echo'
17840	archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17841      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17842      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17843      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}'
17844      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}'
17845    else
17846      case $cc_basename in
17847      xlc*)
17848	output_verbose_link_cmd='echo'
17849	archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17850	module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17851	# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17852	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}'
17853	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}'
17854	;;
17855      *)
17856	ld_shlibs_GCJ=no
17857	;;
17858      esac
17859    fi
17860    ;;
17861
17862    dgux*)
17863      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17864      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17865      hardcode_shlibpath_var_GCJ=no
17866      ;;
17867
17868    freebsd1*)
17869      ld_shlibs_GCJ=no
17870      ;;
17871
17872    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17873    # support.  Future versions do this automatically, but an explicit c++rt0.o
17874    # does not break anything, and helps significantly (at the cost of a little
17875    # extra space).
17876    freebsd2.2*)
17877      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17878      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17879      hardcode_direct_GCJ=yes
17880      hardcode_shlibpath_var_GCJ=no
17881      ;;
17882
17883    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17884    freebsd2*)
17885      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17886      hardcode_direct_GCJ=yes
17887      hardcode_minus_L_GCJ=yes
17888      hardcode_shlibpath_var_GCJ=no
17889      ;;
17890
17891    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17892    freebsd* | kfreebsd*-gnu | dragonfly*)
17893      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17894      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17895      hardcode_direct_GCJ=yes
17896      hardcode_shlibpath_var_GCJ=no
17897      ;;
17898
17899    hpux9*)
17900      if test "$GCC" = yes; then
17901	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'
17902      else
17903	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'
17904      fi
17905      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17906      hardcode_libdir_separator_GCJ=:
17907      hardcode_direct_GCJ=yes
17908
17909      # hardcode_minus_L: Not really in the search PATH,
17910      # but as the default location of the library.
17911      hardcode_minus_L_GCJ=yes
17912      export_dynamic_flag_spec_GCJ='${wl}-E'
17913      ;;
17914
17915    hpux10*)
17916      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17917	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17918      else
17919	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17920      fi
17921      if test "$with_gnu_ld" = no; then
17922	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17923	hardcode_libdir_separator_GCJ=:
17924
17925	hardcode_direct_GCJ=yes
17926	export_dynamic_flag_spec_GCJ='${wl}-E'
17927
17928	# hardcode_minus_L: Not really in the search PATH,
17929	# but as the default location of the library.
17930	hardcode_minus_L_GCJ=yes
17931      fi
17932      ;;
17933
17934    hpux11*)
17935      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17936	case $host_cpu in
17937	hppa*64*)
17938	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17939	  ;;
17940	ia64*)
17941	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17942	  ;;
17943	*)
17944	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17945	  ;;
17946	esac
17947      else
17948	case $host_cpu in
17949	hppa*64*)
17950	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17951	  ;;
17952	ia64*)
17953	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17954	  ;;
17955	*)
17956	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17957	  ;;
17958	esac
17959      fi
17960      if test "$with_gnu_ld" = no; then
17961	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17962	hardcode_libdir_separator_GCJ=:
17963
17964	case $host_cpu in
17965	hppa*64*|ia64*)
17966	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17967	  hardcode_direct_GCJ=no
17968	  hardcode_shlibpath_var_GCJ=no
17969	  ;;
17970	*)
17971	  hardcode_direct_GCJ=yes
17972	  export_dynamic_flag_spec_GCJ='${wl}-E'
17973
17974	  # hardcode_minus_L: Not really in the search PATH,
17975	  # but as the default location of the library.
17976	  hardcode_minus_L_GCJ=yes
17977	  ;;
17978	esac
17979      fi
17980      ;;
17981
17982    irix5* | irix6* | nonstopux*)
17983      if test "$GCC" = yes; then
17984	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'
17985      else
17986	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'
17987	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17988      fi
17989      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17990      hardcode_libdir_separator_GCJ=:
17991      link_all_deplibs_GCJ=yes
17992      ;;
17993
17994    netbsd*)
17995      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17996	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17997      else
17998	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17999      fi
18000      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18001      hardcode_direct_GCJ=yes
18002      hardcode_shlibpath_var_GCJ=no
18003      ;;
18004
18005    newsos6)
18006      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18007      hardcode_direct_GCJ=yes
18008      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18009      hardcode_libdir_separator_GCJ=:
18010      hardcode_shlibpath_var_GCJ=no
18011      ;;
18012
18013    openbsd*)
18014      hardcode_direct_GCJ=yes
18015      hardcode_shlibpath_var_GCJ=no
18016      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18017	archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags -o $lib'
18018	archive_expsym_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18019	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18020	export_dynamic_flag_spec_GCJ='${wl}-E'
18021      else
18022	case $host_os in
18023	openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18024	  archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18025	  hardcode_libdir_flag_spec_GCJ='-R$libdir'
18026	  ;;
18027	*)
18028	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18029	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18030	  ;;
18031	esac
18032      fi
18033      ;;
18034
18035    os2*)
18036      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18037      hardcode_minus_L_GCJ=yes
18038      allow_undefined_flag_GCJ=unsupported
18039      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'
18040      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18041      ;;
18042
18043    osf3*)
18044      if test "$GCC" = yes; then
18045	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18046	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'
18047      else
18048	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18049	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'
18050      fi
18051      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18052      hardcode_libdir_separator_GCJ=:
18053      ;;
18054
18055    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18056      if test "$GCC" = yes; then
18057	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18058	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'
18059	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18060      else
18061	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18062	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'
18063	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~
18064	$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'
18065
18066	# Both c and cxx compiler support -rpath directly
18067	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18068      fi
18069      hardcode_libdir_separator_GCJ=:
18070      ;;
18071
18072    solaris*)
18073      no_undefined_flag_GCJ=' -z text'
18074      if test "$GCC" = yes; then
18075	wlarc='${wl}'
18076	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18077	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18078	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18079      else
18080	wlarc=''
18081	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18082	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18083	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18084      fi
18085      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18086      hardcode_shlibpath_var_GCJ=no
18087      case $host_os in
18088      solaris2.[0-5] | solaris2.[0-5].*) ;;
18089      *)
18090	# The compiler driver will combine and reorder linker options,
18091	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18092	# but is careful enough not to reorder.
18093 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18094	if test "$GCC" = yes; then
18095	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18096	else
18097	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18098	fi
18099	;;
18100      esac
18101      link_all_deplibs_GCJ=yes
18102      ;;
18103
18104    sunos4*)
18105      if test "x$host_vendor" = xsequent; then
18106	# Use $CC to link under sequent, because it throws in some extra .o
18107	# files that make .init and .fini sections work.
18108	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18109      else
18110	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18111      fi
18112      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18113      hardcode_direct_GCJ=yes
18114      hardcode_minus_L_GCJ=yes
18115      hardcode_shlibpath_var_GCJ=no
18116      ;;
18117
18118    sysv4)
18119      case $host_vendor in
18120	sni)
18121	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18122	  hardcode_direct_GCJ=yes # is this really true???
18123	;;
18124	siemens)
18125	  ## LD is ld it makes a PLAMLIB
18126	  ## CC just makes a GrossModule.
18127	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18128	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18129	  hardcode_direct_GCJ=no
18130	;;
18131	motorola)
18132	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18133	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18134	;;
18135      esac
18136      runpath_var='LD_RUN_PATH'
18137      hardcode_shlibpath_var_GCJ=no
18138      ;;
18139
18140    sysv4.3*)
18141      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18142      hardcode_shlibpath_var_GCJ=no
18143      export_dynamic_flag_spec_GCJ='-Bexport'
18144      ;;
18145
18146    sysv4*MP*)
18147      if test -d /usr/nec; then
18148	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18149	hardcode_shlibpath_var_GCJ=no
18150	runpath_var=LD_RUN_PATH
18151	hardcode_runpath_var=yes
18152	ld_shlibs_GCJ=yes
18153      fi
18154      ;;
18155
18156    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18157      no_undefined_flag_GCJ='${wl}-z,text'
18158      archive_cmds_need_lc_GCJ=no
18159      hardcode_shlibpath_var_GCJ=no
18160      runpath_var='LD_RUN_PATH'
18161
18162      if test "$GCC" = yes; then
18163	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18164	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18165      else
18166	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18167	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18168      fi
18169      ;;
18170
18171    sysv5* | sco3.2v5* | sco5v6*)
18172      # Note: We can NOT use -z defs as we might desire, because we do not
18173      # link with -lc, and that would cause any symbols used from libc to
18174      # always be unresolved, which means just about no library would
18175      # ever link correctly.  If we're not using GNU ld we use -z text
18176      # though, which does catch some bad symbols but isn't as heavy-handed
18177      # as -z defs.
18178      no_undefined_flag_GCJ='${wl}-z,text'
18179      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18180      archive_cmds_need_lc_GCJ=no
18181      hardcode_shlibpath_var_GCJ=no
18182      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18183      hardcode_libdir_separator_GCJ=':'
18184      link_all_deplibs_GCJ=yes
18185      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18186      runpath_var='LD_RUN_PATH'
18187
18188      if test "$GCC" = yes; then
18189	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18190	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18191      else
18192	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18193	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18194      fi
18195      ;;
18196
18197    uts4*)
18198      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18199      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18200      hardcode_shlibpath_var_GCJ=no
18201      ;;
18202
18203    *)
18204      ld_shlibs_GCJ=no
18205      ;;
18206    esac
18207  fi
18208
18209{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18210echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18211test "$ld_shlibs_GCJ" = no && can_build_shared=no
18212
18213#
18214# Do we need to explicitly link libc?
18215#
18216case "x$archive_cmds_need_lc_GCJ" in
18217x|xyes)
18218  # Assume -lc should be added
18219  archive_cmds_need_lc_GCJ=yes
18220
18221  if test "$enable_shared" = yes && test "$GCC" = yes; then
18222    case $archive_cmds_GCJ in
18223    *'~'*)
18224      # FIXME: we may have to deal with multi-command sequences.
18225      ;;
18226    '$CC '*)
18227      # Test whether the compiler implicitly links with -lc since on some
18228      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18229      # to ld, don't add -lc before -lgcc.
18230      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18231echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18232      $rm conftest*
18233      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18234
18235      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18236  (eval $ac_compile) 2>&5
18237  ac_status=$?
18238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239  (exit $ac_status); } 2>conftest.err; then
18240	soname=conftest
18241	lib=conftest
18242	libobjs=conftest.$ac_objext
18243	deplibs=
18244	wl=$lt_prog_compiler_wl_GCJ
18245	pic_flag=$lt_prog_compiler_pic_GCJ
18246	compiler_flags=-v
18247	linker_flags=-v
18248	verstring=
18249	output_objdir=.
18250	libname=conftest
18251	lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18252	allow_undefined_flag_GCJ=
18253	if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18254  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18255  ac_status=$?
18256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257  (exit $ac_status); }
18258	then
18259	  archive_cmds_need_lc_GCJ=no
18260	else
18261	  archive_cmds_need_lc_GCJ=yes
18262	fi
18263	allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18264      else
18265	cat conftest.err 1>&5
18266      fi
18267      $rm conftest*
18268      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18269echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18270      ;;
18271    esac
18272  fi
18273  ;;
18274esac
18275
18276{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18277echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18278library_names_spec=
18279libname_spec='lib$name'
18280soname_spec=
18281shrext_cmds=".so"
18282postinstall_cmds=
18283postuninstall_cmds=
18284finish_cmds=
18285finish_eval=
18286shlibpath_var=
18287shlibpath_overrides_runpath=unknown
18288version_type=none
18289dynamic_linker="$host_os ld.so"
18290sys_lib_dlsearch_path_spec="/lib /usr/lib"
18291if test "$GCC" = yes; then
18292  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18293  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18294    # if the path contains ";" then we assume it to be the separator
18295    # otherwise default to the standard path separator (i.e. ":") - it is
18296    # assumed that no part of a normal pathname contains ";" but that should
18297    # okay in the real world where ";" in dirpaths is itself problematic.
18298    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18299  else
18300    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18301  fi
18302else
18303  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18304fi
18305tmp="$sys_lib_search_path_spec"
18306sys_lib_search_path_spec=
18307sp=
18308for i in $tmp
18309do
18310  test -d $i && sys_lib_search_path_spec="$sys_lib_search_path_spec$sp$i"
18311  sp=" "
18312done
18313
18314need_lib_prefix=unknown
18315hardcode_into_libs=no
18316
18317# when you set need_version to no, make sure it does not cause -set_version
18318# flags to be left without arguments
18319need_version=unknown
18320
18321case $host_os in
18322aix3*)
18323  version_type=linux
18324  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18325  shlibpath_var=LIBPATH
18326
18327  # AIX 3 has no versioning support, so we append a major version to the name.
18328  soname_spec='${libname}${release}${shared_ext}$major'
18329  ;;
18330
18331aix4* | aix5*)
18332  version_type=linux
18333  need_lib_prefix=no
18334  need_version=no
18335  hardcode_into_libs=yes
18336  if test "$host_cpu" = ia64; then
18337    # AIX 5 supports IA64
18338    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18339    shlibpath_var=LD_LIBRARY_PATH
18340  else
18341    # With GCC up to 2.95.x, collect2 would create an import file
18342    # for dependence libraries.  The import file would start with
18343    # the line '#! .'.  This would cause the generated library to
18344    # depend on '.', always an invalid library.  This was fixed in
18345    # development snapshots of GCC prior to 3.0.
18346    case $host_os in
18347      aix4 | aix4.[01] | aix4.[01].*)
18348      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18349	   echo ' yes '
18350	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18351	:
18352      else
18353	can_build_shared=no
18354      fi
18355      ;;
18356    esac
18357    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18358    # soname into executable. Probably we can add versioning support to
18359    # collect2, so additional links can be useful in future.
18360    if test "$aix_use_runtimelinking" = yes; then
18361      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18362      # instead of lib<name>.a to let people know that these are not
18363      # typical AIX shared libraries.
18364      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18365    else
18366      # We preserve .a as extension for shared libraries through AIX4.2
18367      # and later when we are not doing run time linking.
18368      library_names_spec='${libname}${release}.a $libname.a'
18369      soname_spec='${libname}${release}${shared_ext}$major'
18370    fi
18371    shlibpath_var=LIBPATH
18372  fi
18373  ;;
18374
18375amigaos*)
18376  library_names_spec='$libname.ixlibrary $libname.a'
18377  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18378  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'
18379  ;;
18380
18381beos*)
18382  library_names_spec='${libname}${shared_ext}'
18383  dynamic_linker="$host_os ld.so"
18384  shlibpath_var=LIBRARY_PATH
18385  ;;
18386
18387bsdi[45]*)
18388  version_type=linux
18389  need_version=no
18390  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18391  soname_spec='${libname}${release}${shared_ext}$major'
18392  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18393  shlibpath_var=LD_LIBRARY_PATH
18394  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18395  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18396  # the default ld.so.conf also contains /usr/contrib/lib and
18397  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18398  # libtool to hard-code these into programs
18399  ;;
18400
18401cygwin* | mingw* | pw32*)
18402  version_type=windows
18403  shrext_cmds=".dll"
18404  need_version=no
18405  need_lib_prefix=no
18406
18407  case $GCC,$host_os in
18408  yes,cygwin* | yes,mingw* | yes,pw32*)
18409    library_names_spec='$libname.dll.a'
18410    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18411    postinstall_cmds='base_file=`basename \${file}`~
18412      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18413      dldir=$destdir/`dirname \$dlpath`~
18414      test -d \$dldir || mkdir -p \$dldir~
18415      $install_prog $dir/$dlname \$dldir/$dlname~
18416      chmod a+x \$dldir/$dlname'
18417    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18418      dlpath=$dir/\$dldll~
18419       $rm \$dlpath'
18420    shlibpath_overrides_runpath=yes
18421
18422    case $host_os in
18423    cygwin*)
18424      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18425      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18426      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18427      ;;
18428    mingw*)
18429      # MinGW DLLs use traditional 'lib' prefix
18430      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18431      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18432      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18433	# It is most probably a Windows format PATH printed by
18434	# mingw gcc, but we are running on Cygwin. Gcc prints its search
18435	# path with ; separators, and with drive letters. We can handle the
18436	# drive letters (cygwin fileutils understands them), so leave them,
18437	# especially as we might pass files found there to a mingw objdump,
18438	# which wouldn't understand a cygwinified path. Ahh.
18439	sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18440      else
18441	sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18442      fi
18443      ;;
18444    pw32*)
18445      # pw32 DLLs use 'pw' prefix rather than 'lib'
18446      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18447      ;;
18448    esac
18449    ;;
18450
18451  *)
18452    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18453    ;;
18454  esac
18455  dynamic_linker='Win32 ld.exe'
18456  # FIXME: first we should search . and the directory the executable is in
18457  shlibpath_var=PATH
18458  ;;
18459
18460darwin* | rhapsody*)
18461  dynamic_linker="$host_os dyld"
18462  version_type=darwin
18463  need_lib_prefix=no
18464  need_version=no
18465  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18466  soname_spec='${libname}${release}${major}$shared_ext'
18467  shlibpath_overrides_runpath=yes
18468  shlibpath_var=DYLD_LIBRARY_PATH
18469  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18470  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18471  if test "$GCC" = yes; then
18472    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"`
18473  else
18474    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18475  fi
18476  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18477  ;;
18478
18479dgux*)
18480  version_type=linux
18481  need_lib_prefix=no
18482  need_version=no
18483  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18484  soname_spec='${libname}${release}${shared_ext}$major'
18485  shlibpath_var=LD_LIBRARY_PATH
18486  ;;
18487
18488freebsd1*)
18489  dynamic_linker=no
18490  ;;
18491
18492kfreebsd*-gnu)
18493  version_type=linux
18494  need_lib_prefix=no
18495  need_version=no
18496  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18497  soname_spec='${libname}${release}${shared_ext}$major'
18498  shlibpath_var=LD_LIBRARY_PATH
18499  shlibpath_overrides_runpath=no
18500  hardcode_into_libs=yes
18501  dynamic_linker='GNU ld.so'
18502  ;;
18503
18504freebsd* | dragonfly*)
18505  # DragonFly does not have aout.  When/if they implement a new
18506  # versioning mechanism, adjust this.
18507  if test -x /usr/bin/objformat; then
18508    objformat=`/usr/bin/objformat`
18509  else
18510    case $host_os in
18511    freebsd[123]*) objformat=aout ;;
18512    *) objformat=elf ;;
18513    esac
18514  fi
18515  version_type=freebsd-$objformat
18516  case $version_type in
18517    freebsd-elf*)
18518      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18519      need_version=no
18520      need_lib_prefix=no
18521      ;;
18522    freebsd-*)
18523      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18524      need_version=yes
18525      ;;
18526  esac
18527  shlibpath_var=LD_LIBRARY_PATH
18528  case $host_os in
18529  freebsd2*)
18530    shlibpath_overrides_runpath=yes
18531    ;;
18532  freebsd3.[01]* | freebsdelf3.[01]*)
18533    shlibpath_overrides_runpath=yes
18534    hardcode_into_libs=yes
18535    ;;
18536  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18537  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18538    shlibpath_overrides_runpath=no
18539    hardcode_into_libs=yes
18540    ;;
18541  *) # from 4.6 on, and DragonFly
18542    shlibpath_overrides_runpath=yes
18543    hardcode_into_libs=yes
18544    ;;
18545  esac
18546  ;;
18547
18548gnu*)
18549  version_type=linux
18550  need_lib_prefix=no
18551  need_version=no
18552  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18553  soname_spec='${libname}${release}${shared_ext}$major'
18554  shlibpath_var=LD_LIBRARY_PATH
18555  hardcode_into_libs=yes
18556  ;;
18557
18558hpux9* | hpux10* | hpux11*)
18559  # Give a soname corresponding to the major version so that dld.sl refuses to
18560  # link against other versions.
18561  version_type=sunos
18562  need_lib_prefix=no
18563  need_version=no
18564  case $host_cpu in
18565  ia64*)
18566    shrext_cmds='.so'
18567    hardcode_into_libs=yes
18568    dynamic_linker="$host_os dld.so"
18569    shlibpath_var=LD_LIBRARY_PATH
18570    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18571    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18572    soname_spec='${libname}${release}${shared_ext}$major'
18573    if test "X$HPUX_IA64_MODE" = X32; then
18574      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18575    else
18576      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18577    fi
18578    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18579    ;;
18580   hppa*64*)
18581     shrext_cmds='.sl'
18582     hardcode_into_libs=yes
18583     dynamic_linker="$host_os dld.sl"
18584     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18585     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18586     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18587     soname_spec='${libname}${release}${shared_ext}$major'
18588     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18589     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18590     ;;
18591   *)
18592    shrext_cmds='.sl'
18593    dynamic_linker="$host_os dld.sl"
18594    shlibpath_var=SHLIB_PATH
18595    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18596    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18597    soname_spec='${libname}${release}${shared_ext}$major'
18598    ;;
18599  esac
18600  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18601  postinstall_cmds='chmod 555 $lib'
18602  ;;
18603
18604interix3*)
18605  version_type=linux
18606  need_lib_prefix=no
18607  need_version=no
18608  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18609  soname_spec='${libname}${release}${shared_ext}$major'
18610  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18611  shlibpath_var=LD_LIBRARY_PATH
18612  shlibpath_overrides_runpath=no
18613  hardcode_into_libs=yes
18614  ;;
18615
18616irix5* | irix6* | nonstopux*)
18617  case $host_os in
18618    nonstopux*) version_type=nonstopux ;;
18619    *)
18620	if test "$lt_cv_prog_gnu_ld" = yes; then
18621		version_type=linux
18622	else
18623		version_type=irix
18624	fi ;;
18625  esac
18626  need_lib_prefix=no
18627  need_version=no
18628  soname_spec='${libname}${release}${shared_ext}$major'
18629  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18630  case $host_os in
18631  irix5* | nonstopux*)
18632    libsuff= shlibsuff=
18633    ;;
18634  *)
18635    case $LD in # libtool.m4 will add one of these switches to LD
18636    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18637      libsuff= shlibsuff= libmagic=32-bit;;
18638    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18639      libsuff=32 shlibsuff=N32 libmagic=N32;;
18640    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18641      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18642    *) libsuff= shlibsuff= libmagic=never-match;;
18643    esac
18644    ;;
18645  esac
18646  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18647  shlibpath_overrides_runpath=no
18648  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18649  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18650  hardcode_into_libs=yes
18651  ;;
18652
18653# No shared lib support for Linux oldld, aout, or coff.
18654linux*oldld* | linux*aout* | linux*coff*)
18655  dynamic_linker=no
18656  ;;
18657
18658# This must be Linux ELF.
18659linux*)
18660  version_type=linux
18661  need_lib_prefix=no
18662  need_version=no
18663  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18664  soname_spec='${libname}${release}${shared_ext}$major'
18665  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18666  shlibpath_var=LD_LIBRARY_PATH
18667  shlibpath_overrides_runpath=no
18668  # This implies no fast_install, which is unacceptable.
18669  # Some rework will be needed to allow for fast_install
18670  # before this can be enabled.
18671  hardcode_into_libs=yes
18672
18673  # Append ld.so.conf contents to the search path
18674  if test -f /etc/ld.so.conf; then
18675    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18676    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18677  fi
18678
18679  # We used to test for /lib/ld.so.1 and disable shared libraries on
18680  # powerpc, because MkLinux only supported shared libraries with the
18681  # GNU dynamic linker.  Since this was broken with cross compilers,
18682  # most powerpc-linux boxes support dynamic linking these days and
18683  # people can always --disable-shared, the test was removed, and we
18684  # assume the GNU/Linux dynamic linker is in use.
18685  dynamic_linker='GNU/Linux ld.so'
18686  ;;
18687
18688mirbsd*)
18689  version_type=linux
18690  sys_lib_dlsearch_path_spec="/usr/lib"
18691  need_lib_prefix=no
18692  need_version=no
18693  library_names_spec='${libname}${release}${shared_ext}$versuffix2 ${libname}${shared_ext}$versuffix2'
18694  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18695  shlibpath_var=LD_LIBRARY_PATH
18696  shlibpath_overrides_runpath=yes
18697  ;;
18698
18699knetbsd*-gnu)
18700  version_type=linux
18701  need_lib_prefix=no
18702  need_version=no
18703  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18704  soname_spec='${libname}${release}${shared_ext}$major'
18705  shlibpath_var=LD_LIBRARY_PATH
18706  shlibpath_overrides_runpath=no
18707  hardcode_into_libs=yes
18708  dynamic_linker='GNU ld.so'
18709  ;;
18710
18711netbsd*)
18712  version_type=sunos
18713  need_lib_prefix=no
18714  need_version=no
18715  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18716    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18717    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18718    dynamic_linker='NetBSD (a.out) ld.so'
18719  else
18720    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18721    soname_spec='${libname}${release}${shared_ext}$major'
18722    dynamic_linker='NetBSD ld.elf_so'
18723  fi
18724  shlibpath_var=LD_LIBRARY_PATH
18725  shlibpath_overrides_runpath=yes
18726  hardcode_into_libs=yes
18727  ;;
18728
18729newsos6)
18730  version_type=linux
18731  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18732  shlibpath_var=LD_LIBRARY_PATH
18733  shlibpath_overrides_runpath=yes
18734  ;;
18735
18736nto-qnx*)
18737  version_type=linux
18738  need_lib_prefix=no
18739  need_version=no
18740  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18741  soname_spec='${libname}${release}${shared_ext}$major'
18742  shlibpath_var=LD_LIBRARY_PATH
18743  shlibpath_overrides_runpath=yes
18744  ;;
18745
18746openbsd*)
18747  version_type=linux
18748  sys_lib_dlsearch_path_spec="/usr/lib"
18749  need_lib_prefix=no
18750  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18751  case $host_os in
18752    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18753    *)                         need_version=no  ;;
18754  esac
18755  library_names_spec='${libname}${release}${shared_ext}$versuffix2 ${libname}${shared_ext}$versuffix2'
18756  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18757  shlibpath_var=LD_LIBRARY_PATH
18758  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18759    case $host_os in
18760      openbsd2.[89] | openbsd2.[89].*)
18761	shlibpath_overrides_runpath=no
18762	;;
18763      *)
18764	shlibpath_overrides_runpath=yes
18765	;;
18766      esac
18767  else
18768    shlibpath_overrides_runpath=yes
18769  fi
18770  ;;
18771
18772os2*)
18773  libname_spec='$name'
18774  shrext_cmds=".dll"
18775  need_lib_prefix=no
18776  library_names_spec='$libname${shared_ext} $libname.a'
18777  dynamic_linker='OS/2 ld.exe'
18778  shlibpath_var=LIBPATH
18779  ;;
18780
18781osf3* | osf4* | osf5*)
18782  version_type=osf
18783  need_lib_prefix=no
18784  need_version=no
18785  soname_spec='${libname}${release}${shared_ext}$major'
18786  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18787  shlibpath_var=LD_LIBRARY_PATH
18788  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18789  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18790  ;;
18791
18792rdos*)
18793  dynamic_linker=no
18794  ;;
18795
18796solaris*)
18797  version_type=linux
18798  need_lib_prefix=no
18799  need_version=no
18800  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18801  soname_spec='${libname}${release}${shared_ext}$major'
18802  shlibpath_var=LD_LIBRARY_PATH
18803  shlibpath_overrides_runpath=yes
18804  hardcode_into_libs=yes
18805  # ldd complains unless libraries are executable
18806  postinstall_cmds='chmod +x $lib'
18807  ;;
18808
18809sunos4*)
18810  version_type=sunos
18811  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18812  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18813  shlibpath_var=LD_LIBRARY_PATH
18814  shlibpath_overrides_runpath=yes
18815  if test "$with_gnu_ld" = yes; then
18816    need_lib_prefix=no
18817  fi
18818  need_version=yes
18819  ;;
18820
18821sysv4 | sysv4.3*)
18822  version_type=linux
18823  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18824  soname_spec='${libname}${release}${shared_ext}$major'
18825  shlibpath_var=LD_LIBRARY_PATH
18826  case $host_vendor in
18827    sni)
18828      shlibpath_overrides_runpath=no
18829      need_lib_prefix=no
18830      export_dynamic_flag_spec='${wl}-Blargedynsym'
18831      runpath_var=LD_RUN_PATH
18832      ;;
18833    siemens)
18834      need_lib_prefix=no
18835      ;;
18836    motorola)
18837      need_lib_prefix=no
18838      need_version=no
18839      shlibpath_overrides_runpath=no
18840      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18841      ;;
18842  esac
18843  ;;
18844
18845sysv4*MP*)
18846  if test -d /usr/nec ;then
18847    version_type=linux
18848    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18849    soname_spec='$libname${shared_ext}.$major'
18850    shlibpath_var=LD_LIBRARY_PATH
18851  fi
18852  ;;
18853
18854sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18855  version_type=freebsd-elf
18856  need_lib_prefix=no
18857  need_version=no
18858  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18859  soname_spec='${libname}${release}${shared_ext}$major'
18860  shlibpath_var=LD_LIBRARY_PATH
18861  hardcode_into_libs=yes
18862  if test "$with_gnu_ld" = yes; then
18863    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18864    shlibpath_overrides_runpath=no
18865  else
18866    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18867    shlibpath_overrides_runpath=yes
18868    case $host_os in
18869      sco3.2v5*)
18870	sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18871	;;
18872    esac
18873  fi
18874  sys_lib_dlsearch_path_spec='/usr/lib'
18875  ;;
18876
18877uts4*)
18878  version_type=linux
18879  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18880  soname_spec='${libname}${release}${shared_ext}$major'
18881  shlibpath_var=LD_LIBRARY_PATH
18882  ;;
18883
18884*)
18885  dynamic_linker=no
18886  ;;
18887esac
18888{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18889echo "${ECHO_T}$dynamic_linker" >&6; }
18890test "$dynamic_linker" = no && can_build_shared=no
18891
18892variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18893if test "$GCC" = yes; then
18894  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18895fi
18896
18897{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18898echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18899hardcode_action_GCJ=
18900if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18901   test -n "$runpath_var_GCJ" || \
18902   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18903
18904  # We can hardcode non-existant directories.
18905  if test "$hardcode_direct_GCJ" != no &&
18906     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18907     # have to relink, otherwise we might link with an installed library
18908     # when we should be linking with a yet-to-be-installed one
18909     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18910     test "$hardcode_minus_L_GCJ" != no; then
18911    # Linking always hardcodes the temporary library directory.
18912    hardcode_action_GCJ=relink
18913  else
18914    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18915    hardcode_action_GCJ=immediate
18916  fi
18917else
18918  # We cannot hardcode anything, or else we can only hardcode existing
18919  # directories.
18920  hardcode_action_GCJ=unsupported
18921fi
18922{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18923echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18924
18925if test "$hardcode_action_GCJ" = relink; then
18926  # Fast installation is not supported
18927  enable_fast_install=no
18928elif test "$shlibpath_overrides_runpath" = yes ||
18929     test "$enable_shared" = no; then
18930  # Fast installation is not necessary
18931  enable_fast_install=needless
18932fi
18933
18934
18935# The else clause should only fire when bootstrapping the
18936# libtool distribution, otherwise you forgot to ship ltmain.sh
18937# with your package, and you will get complaints that there are
18938# no rules to generate ltmain.sh.
18939if test -f "$ltmain"; then
18940  # See if we are running on zsh, and set the options which allow our commands through
18941  # without removal of \ escapes.
18942  if test -n "${ZSH_VERSION+set}" ; then
18943    setopt NO_GLOB_SUBST
18944  fi
18945  # Now quote all the things that may contain metacharacters while being
18946  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18947  # variables and quote the copies for generation of the libtool script.
18948  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18949    SED SHELL STRIP \
18950    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18951    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18952    deplibs_check_method reload_flag reload_cmds need_locks \
18953    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18954    lt_cv_sys_global_symbol_to_c_name_address \
18955    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18956    old_postinstall_cmds old_postuninstall_cmds \
18957    compiler_GCJ \
18958    CC_GCJ \
18959    LD_GCJ \
18960    lt_prog_compiler_wl_GCJ \
18961    lt_prog_compiler_pic_GCJ \
18962    lt_prog_compiler_static_GCJ \
18963    lt_prog_compiler_no_builtin_flag_GCJ \
18964    export_dynamic_flag_spec_GCJ \
18965    thread_safe_flag_spec_GCJ \
18966    whole_archive_flag_spec_GCJ \
18967    enable_shared_with_static_runtimes_GCJ \
18968    old_archive_cmds_GCJ \
18969    old_archive_from_new_cmds_GCJ \
18970    predep_objects_GCJ \
18971    postdep_objects_GCJ \
18972    predeps_GCJ \
18973    postdeps_GCJ \
18974    compiler_lib_search_path_GCJ \
18975    archive_cmds_GCJ \
18976    archive_expsym_cmds_GCJ \
18977    postinstall_cmds_GCJ \
18978    postuninstall_cmds_GCJ \
18979    old_archive_from_expsyms_cmds_GCJ \
18980    allow_undefined_flag_GCJ \
18981    no_undefined_flag_GCJ \
18982    export_symbols_cmds_GCJ \
18983    hardcode_libdir_flag_spec_GCJ \
18984    hardcode_libdir_flag_spec_ld_GCJ \
18985    hardcode_libdir_separator_GCJ \
18986    hardcode_automatic_GCJ \
18987    module_cmds_GCJ \
18988    module_expsym_cmds_GCJ \
18989    lt_cv_prog_compiler_c_o_GCJ \
18990    exclude_expsyms_GCJ \
18991    include_expsyms_GCJ; do
18992
18993    case $var in
18994    old_archive_cmds_GCJ | \
18995    old_archive_from_new_cmds_GCJ | \
18996    archive_cmds_GCJ | \
18997    archive_expsym_cmds_GCJ | \
18998    module_cmds_GCJ | \
18999    module_expsym_cmds_GCJ | \
19000    old_archive_from_expsyms_cmds_GCJ | \
19001    export_symbols_cmds_GCJ | \
19002    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19003    postinstall_cmds | postuninstall_cmds | \
19004    old_postinstall_cmds | old_postuninstall_cmds | \
19005    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19006      # Double-quote double-evaled strings.
19007      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19008      ;;
19009    *)
19010      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19011      ;;
19012    esac
19013  done
19014
19015  case $lt_echo in
19016  *'\$0 --fallback-echo"')
19017    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19018    ;;
19019  esac
19020
19021cfgfile="$ofile"
19022
19023  cat <<__EOF__ >> "$cfgfile"
19024# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19025
19026# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19027
19028# Shell to use when invoking shell scripts.
19029SHELL=$lt_SHELL
19030
19031# Whether or not to build shared libraries.
19032build_libtool_libs=$enable_shared
19033
19034# Whether or not to build static libraries.
19035build_old_libs=$enable_static
19036
19037# Whether or not to add -lc for building shared libraries.
19038build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19039
19040# Whether or not to disallow shared libs when runtime libs are static
19041allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19042
19043# Whether or not to optimize for fast installation.
19044fast_install=$enable_fast_install
19045
19046# The host system.
19047host_alias=$host_alias
19048host=$host
19049host_os=$host_os
19050
19051# The build system.
19052build_alias=$build_alias
19053build=$build
19054build_os=$build_os
19055
19056# An echo program that does not interpret backslashes.
19057echo=$lt_echo
19058
19059# The archiver.
19060AR=$lt_AR
19061AR_FLAGS=$lt_AR_FLAGS
19062
19063# A C compiler.
19064LTCC=$lt_LTCC
19065
19066# LTCC compiler flags.
19067LTCFLAGS=$lt_LTCFLAGS
19068
19069# A language-specific compiler.
19070CC=$lt_compiler_GCJ
19071
19072# Is the compiler the GNU C compiler?
19073with_gcc=$GCC_GCJ
19074
19075# An ERE matcher.
19076EGREP=$lt_EGREP
19077
19078# The linker used to build libraries.
19079LD=$lt_LD_GCJ
19080
19081# Whether we need hard or soft links.
19082LN_S=$lt_LN_S
19083
19084# A BSD-compatible nm program.
19085NM=$lt_NM
19086
19087# A symbol stripping program
19088STRIP=$lt_STRIP
19089
19090# Used to examine libraries when file_magic_cmd begins "file"
19091MAGIC_CMD=$MAGIC_CMD
19092
19093# Used on cygwin: DLL creation program.
19094DLLTOOL="$DLLTOOL"
19095
19096# Used on cygwin: object dumper.
19097OBJDUMP="$OBJDUMP"
19098
19099# Used on cygwin: assembler.
19100AS="$AS"
19101
19102# The name of the directory that contains temporary libtool files.
19103objdir=$objdir
19104
19105# How to create reloadable object files.
19106reload_flag=$lt_reload_flag
19107reload_cmds=$lt_reload_cmds
19108
19109# How to pass a linker flag through the compiler.
19110wl=$lt_lt_prog_compiler_wl_GCJ
19111
19112# Object file suffix (normally "o").
19113objext="$ac_objext"
19114
19115# Old archive suffix (normally "a").
19116libext="$libext"
19117
19118# Shared library suffix (normally ".so").
19119shrext_cmds='$shrext_cmds'
19120
19121# Executable file suffix (normally "").
19122exeext="$exeext"
19123
19124# Additional compiler flags for building library objects.
19125pic_flag=$lt_lt_prog_compiler_pic_GCJ
19126pic_mode=$pic_mode
19127
19128# What is the maximum length of a command?
19129max_cmd_len=$lt_cv_sys_max_cmd_len
19130
19131# Does compiler simultaneously support -c and -o options?
19132compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19133
19134# Must we lock files when doing compilation?
19135need_locks=$lt_need_locks
19136
19137# Do we need the lib prefix for modules?
19138need_lib_prefix=$need_lib_prefix
19139
19140# Do we need a version for libraries?
19141need_version=$need_version
19142
19143# Whether dlopen is supported.
19144dlopen_support=$enable_dlopen
19145
19146# Whether dlopen of programs is supported.
19147dlopen_self=$enable_dlopen_self
19148
19149# Whether dlopen of statically linked programs is supported.
19150dlopen_self_static=$enable_dlopen_self_static
19151
19152# Compiler flag to prevent dynamic linking.
19153link_static_flag=$lt_lt_prog_compiler_static_GCJ
19154
19155# Compiler flag to turn off builtin functions.
19156no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19157
19158# Compiler flag to allow reflexive dlopens.
19159export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19160
19161# Compiler flag to generate shared objects directly from archives.
19162whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19163
19164# Compiler flag to generate thread-safe objects.
19165thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19166
19167# Library versioning type.
19168version_type=$version_type
19169
19170# Format of library name prefix.
19171libname_spec=$lt_libname_spec
19172
19173# List of archive names.  First name is the real one, the rest are links.
19174# The last name is the one that the linker finds with -lNAME.
19175library_names_spec=$lt_library_names_spec
19176
19177# The coded name of the library, if different from the real name.
19178soname_spec=$lt_soname_spec
19179
19180# Commands used to build and install an old-style archive.
19181RANLIB=$lt_RANLIB
19182old_archive_cmds=$lt_old_archive_cmds_GCJ
19183old_postinstall_cmds=$lt_old_postinstall_cmds
19184old_postuninstall_cmds=$lt_old_postuninstall_cmds
19185
19186# Create an old-style archive from a shared archive.
19187old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19188
19189# Create a temporary old-style archive to link instead of a shared archive.
19190old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19191
19192# Commands used to build and install a shared archive.
19193archive_cmds=$lt_archive_cmds_GCJ
19194archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19195postinstall_cmds=$lt_postinstall_cmds
19196postuninstall_cmds=$lt_postuninstall_cmds
19197
19198# Commands used to build a loadable module (assumed same as above if empty)
19199module_cmds=$lt_module_cmds_GCJ
19200module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19201
19202# Commands to strip libraries.
19203old_striplib=$lt_old_striplib
19204striplib=$lt_striplib
19205
19206# Dependencies to place before the objects being linked to create a
19207# shared library.
19208predep_objects=$lt_predep_objects_GCJ
19209
19210# Dependencies to place after the objects being linked to create a
19211# shared library.
19212postdep_objects=$lt_postdep_objects_GCJ
19213
19214# Dependencies to place before the objects being linked to create a
19215# shared library.
19216predeps=$lt_predeps_GCJ
19217
19218# Dependencies to place after the objects being linked to create a
19219# shared library.
19220postdeps=$lt_postdeps_GCJ
19221
19222# The library search path used internally by the compiler when linking
19223# a shared library.
19224compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19225
19226# Method to check whether dependent libraries are shared objects.
19227deplibs_check_method=$lt_deplibs_check_method
19228
19229# Command to use when deplibs_check_method == file_magic.
19230file_magic_cmd=$lt_file_magic_cmd
19231
19232# Flag that allows shared libraries with undefined symbols to be built.
19233allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19234
19235# Flag that forces no undefined symbols.
19236no_undefined_flag=$lt_no_undefined_flag_GCJ
19237
19238# Commands used to finish a libtool library installation in a directory.
19239finish_cmds=$lt_finish_cmds
19240
19241# Same as above, but a single script fragment to be evaled but not shown.
19242finish_eval=$lt_finish_eval
19243
19244# Take the output of nm and produce a listing of raw symbols and C names.
19245global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19246
19247# Transform the output of nm in a proper C declaration
19248global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19249
19250# Transform the output of nm in a C name address pair
19251global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19252
19253# This is the shared library runtime path variable.
19254runpath_var=$runpath_var
19255
19256# This is the shared library path variable.
19257shlibpath_var=$shlibpath_var
19258
19259# Is shlibpath searched before the hard-coded library search path?
19260shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19261
19262# How to hardcode a shared library path into an executable.
19263hardcode_action=$hardcode_action_GCJ
19264
19265# Whether we should hardcode library paths into libraries.
19266hardcode_into_libs=$hardcode_into_libs
19267
19268# Flag to hardcode \$libdir into a binary during linking.
19269# This must work even if \$libdir does not exist.
19270hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19271
19272# If ld is used when linking, flag to hardcode \$libdir into
19273# a binary during linking. This must work even if \$libdir does
19274# not exist.
19275hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19276
19277# Whether we need a single -rpath flag with a separated argument.
19278hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19279
19280# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19281# resulting binary.
19282hardcode_direct=$hardcode_direct_GCJ
19283
19284# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19285# resulting binary.
19286hardcode_minus_L=$hardcode_minus_L_GCJ
19287
19288# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19289# the resulting binary.
19290hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19291
19292# Set to yes if building a shared library automatically hardcodes DIR into the library
19293# and all subsequent libraries and executables linked against it.
19294hardcode_automatic=$hardcode_automatic_GCJ
19295
19296# Variables whose values should be saved in libtool wrapper scripts and
19297# restored at relink time.
19298variables_saved_for_relink="$variables_saved_for_relink"
19299
19300# Whether libtool must link a program against all its dependency libraries.
19301link_all_deplibs=$link_all_deplibs_GCJ
19302
19303# Compile-time system search path for libraries
19304sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19305
19306# Run-time system search path for libraries
19307sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19308
19309# Fix the shell variable \$srcfile for the compiler.
19310fix_srcfile_path="$fix_srcfile_path_GCJ"
19311
19312# Set to yes if exported symbols are required.
19313always_export_symbols=$always_export_symbols_GCJ
19314
19315# The commands to list exported symbols.
19316export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19317
19318# The commands to extract the exported symbol list from a shared archive.
19319extract_expsyms_cmds=$lt_extract_expsyms_cmds
19320
19321# Symbols that should not be listed in the preloaded symbols.
19322exclude_expsyms=$lt_exclude_expsyms_GCJ
19323
19324# Symbols that must always be exported.
19325include_expsyms=$lt_include_expsyms_GCJ
19326
19327# ### END LIBTOOL TAG CONFIG: $tagname
19328
19329__EOF__
19330
19331
19332else
19333  # If there is no Makefile yet, we rely on a make rule to execute
19334  # 'config.status --recheck' to rerun these tests and create the
19335  # libtool script then.
19336  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19337  if test -f "$ltmain_in"; then
19338    test -f Makefile && make "$ltmain"
19339  fi
19340fi
19341
19342
19343ac_ext=c
19344ac_cpp='$CPP $CPPFLAGS'
19345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19347ac_compiler_gnu=$ac_cv_c_compiler_gnu
19348
19349CC="$lt_save_CC"
19350
19351	else
19352	  tagname=""
19353	fi
19354	;;
19355
19356      RC)
19357
19358
19359# Source file extension for RC test sources.
19360ac_ext=rc
19361
19362# Object file extension for compiled RC test sources.
19363objext=o
19364objext_RC=$objext
19365
19366# Code to be used in simple compile tests
19367lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19368
19369# Code to be used in simple link tests
19370lt_simple_link_test_code="$lt_simple_compile_test_code"
19371
19372# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19373
19374# If no C compiler was specified, use CC.
19375LTCC=${LTCC-"$CC"}
19376
19377# If no C compiler flags were specified, use CFLAGS.
19378LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19379
19380# Allow CC to be a program name with arguments.
19381compiler=$CC
19382
19383
19384# save warnings/boilerplate of simple test code
19385ac_outfile=conftest.$ac_objext
19386printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19387eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19388_lt_compiler_boilerplate=`cat conftest.err`
19389$rm conftest*
19390
19391ac_outfile=conftest.$ac_objext
19392printf "$lt_simple_link_test_code" >conftest.$ac_ext
19393eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19394_lt_linker_boilerplate=`cat conftest.err`
19395$rm conftest*
19396
19397
19398# Allow CC to be a program name with arguments.
19399lt_save_CC="$CC"
19400CC=${RC-"windres"}
19401compiler=$CC
19402compiler_RC=$CC
19403for cc_temp in $compiler""; do
19404  case $cc_temp in
19405    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19406    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19407    \-*) ;;
19408    *) break;;
19409  esac
19410done
19411cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19412
19413lt_cv_prog_compiler_c_o_RC=yes
19414
19415# The else clause should only fire when bootstrapping the
19416# libtool distribution, otherwise you forgot to ship ltmain.sh
19417# with your package, and you will get complaints that there are
19418# no rules to generate ltmain.sh.
19419if test -f "$ltmain"; then
19420  # See if we are running on zsh, and set the options which allow our commands through
19421  # without removal of \ escapes.
19422  if test -n "${ZSH_VERSION+set}" ; then
19423    setopt NO_GLOB_SUBST
19424  fi
19425  # Now quote all the things that may contain metacharacters while being
19426  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19427  # variables and quote the copies for generation of the libtool script.
19428  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19429    SED SHELL STRIP \
19430    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19431    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19432    deplibs_check_method reload_flag reload_cmds need_locks \
19433    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19434    lt_cv_sys_global_symbol_to_c_name_address \
19435    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19436    old_postinstall_cmds old_postuninstall_cmds \
19437    compiler_RC \
19438    CC_RC \
19439    LD_RC \
19440    lt_prog_compiler_wl_RC \
19441    lt_prog_compiler_pic_RC \
19442    lt_prog_compiler_static_RC \
19443    lt_prog_compiler_no_builtin_flag_RC \
19444    export_dynamic_flag_spec_RC \
19445    thread_safe_flag_spec_RC \
19446    whole_archive_flag_spec_RC \
19447    enable_shared_with_static_runtimes_RC \
19448    old_archive_cmds_RC \
19449    old_archive_from_new_cmds_RC \
19450    predep_objects_RC \
19451    postdep_objects_RC \
19452    predeps_RC \
19453    postdeps_RC \
19454    compiler_lib_search_path_RC \
19455    archive_cmds_RC \
19456    archive_expsym_cmds_RC \
19457    postinstall_cmds_RC \
19458    postuninstall_cmds_RC \
19459    old_archive_from_expsyms_cmds_RC \
19460    allow_undefined_flag_RC \
19461    no_undefined_flag_RC \
19462    export_symbols_cmds_RC \
19463    hardcode_libdir_flag_spec_RC \
19464    hardcode_libdir_flag_spec_ld_RC \
19465    hardcode_libdir_separator_RC \
19466    hardcode_automatic_RC \
19467    module_cmds_RC \
19468    module_expsym_cmds_RC \
19469    lt_cv_prog_compiler_c_o_RC \
19470    exclude_expsyms_RC \
19471    include_expsyms_RC; do
19472
19473    case $var in
19474    old_archive_cmds_RC | \
19475    old_archive_from_new_cmds_RC | \
19476    archive_cmds_RC | \
19477    archive_expsym_cmds_RC | \
19478    module_cmds_RC | \
19479    module_expsym_cmds_RC | \
19480    old_archive_from_expsyms_cmds_RC | \
19481    export_symbols_cmds_RC | \
19482    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19483    postinstall_cmds | postuninstall_cmds | \
19484    old_postinstall_cmds | old_postuninstall_cmds | \
19485    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19486      # Double-quote double-evaled strings.
19487      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19488      ;;
19489    *)
19490      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19491      ;;
19492    esac
19493  done
19494
19495  case $lt_echo in
19496  *'\$0 --fallback-echo"')
19497    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19498    ;;
19499  esac
19500
19501cfgfile="$ofile"
19502
19503  cat <<__EOF__ >> "$cfgfile"
19504# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19505
19506# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19507
19508# Shell to use when invoking shell scripts.
19509SHELL=$lt_SHELL
19510
19511# Whether or not to build shared libraries.
19512build_libtool_libs=$enable_shared
19513
19514# Whether or not to build static libraries.
19515build_old_libs=$enable_static
19516
19517# Whether or not to add -lc for building shared libraries.
19518build_libtool_need_lc=$archive_cmds_need_lc_RC
19519
19520# Whether or not to disallow shared libs when runtime libs are static
19521allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19522
19523# Whether or not to optimize for fast installation.
19524fast_install=$enable_fast_install
19525
19526# The host system.
19527host_alias=$host_alias
19528host=$host
19529host_os=$host_os
19530
19531# The build system.
19532build_alias=$build_alias
19533build=$build
19534build_os=$build_os
19535
19536# An echo program that does not interpret backslashes.
19537echo=$lt_echo
19538
19539# The archiver.
19540AR=$lt_AR
19541AR_FLAGS=$lt_AR_FLAGS
19542
19543# A C compiler.
19544LTCC=$lt_LTCC
19545
19546# LTCC compiler flags.
19547LTCFLAGS=$lt_LTCFLAGS
19548
19549# A language-specific compiler.
19550CC=$lt_compiler_RC
19551
19552# Is the compiler the GNU C compiler?
19553with_gcc=$GCC_RC
19554
19555# An ERE matcher.
19556EGREP=$lt_EGREP
19557
19558# The linker used to build libraries.
19559LD=$lt_LD_RC
19560
19561# Whether we need hard or soft links.
19562LN_S=$lt_LN_S
19563
19564# A BSD-compatible nm program.
19565NM=$lt_NM
19566
19567# A symbol stripping program
19568STRIP=$lt_STRIP
19569
19570# Used to examine libraries when file_magic_cmd begins "file"
19571MAGIC_CMD=$MAGIC_CMD
19572
19573# Used on cygwin: DLL creation program.
19574DLLTOOL="$DLLTOOL"
19575
19576# Used on cygwin: object dumper.
19577OBJDUMP="$OBJDUMP"
19578
19579# Used on cygwin: assembler.
19580AS="$AS"
19581
19582# The name of the directory that contains temporary libtool files.
19583objdir=$objdir
19584
19585# How to create reloadable object files.
19586reload_flag=$lt_reload_flag
19587reload_cmds=$lt_reload_cmds
19588
19589# How to pass a linker flag through the compiler.
19590wl=$lt_lt_prog_compiler_wl_RC
19591
19592# Object file suffix (normally "o").
19593objext="$ac_objext"
19594
19595# Old archive suffix (normally "a").
19596libext="$libext"
19597
19598# Shared library suffix (normally ".so").
19599shrext_cmds='$shrext_cmds'
19600
19601# Executable file suffix (normally "").
19602exeext="$exeext"
19603
19604# Additional compiler flags for building library objects.
19605pic_flag=$lt_lt_prog_compiler_pic_RC
19606pic_mode=$pic_mode
19607
19608# What is the maximum length of a command?
19609max_cmd_len=$lt_cv_sys_max_cmd_len
19610
19611# Does compiler simultaneously support -c and -o options?
19612compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19613
19614# Must we lock files when doing compilation?
19615need_locks=$lt_need_locks
19616
19617# Do we need the lib prefix for modules?
19618need_lib_prefix=$need_lib_prefix
19619
19620# Do we need a version for libraries?
19621need_version=$need_version
19622
19623# Whether dlopen is supported.
19624dlopen_support=$enable_dlopen
19625
19626# Whether dlopen of programs is supported.
19627dlopen_self=$enable_dlopen_self
19628
19629# Whether dlopen of statically linked programs is supported.
19630dlopen_self_static=$enable_dlopen_self_static
19631
19632# Compiler flag to prevent dynamic linking.
19633link_static_flag=$lt_lt_prog_compiler_static_RC
19634
19635# Compiler flag to turn off builtin functions.
19636no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19637
19638# Compiler flag to allow reflexive dlopens.
19639export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19640
19641# Compiler flag to generate shared objects directly from archives.
19642whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19643
19644# Compiler flag to generate thread-safe objects.
19645thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19646
19647# Library versioning type.
19648version_type=$version_type
19649
19650# Format of library name prefix.
19651libname_spec=$lt_libname_spec
19652
19653# List of archive names.  First name is the real one, the rest are links.
19654# The last name is the one that the linker finds with -lNAME.
19655library_names_spec=$lt_library_names_spec
19656
19657# The coded name of the library, if different from the real name.
19658soname_spec=$lt_soname_spec
19659
19660# Commands used to build and install an old-style archive.
19661RANLIB=$lt_RANLIB
19662old_archive_cmds=$lt_old_archive_cmds_RC
19663old_postinstall_cmds=$lt_old_postinstall_cmds
19664old_postuninstall_cmds=$lt_old_postuninstall_cmds
19665
19666# Create an old-style archive from a shared archive.
19667old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19668
19669# Create a temporary old-style archive to link instead of a shared archive.
19670old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19671
19672# Commands used to build and install a shared archive.
19673archive_cmds=$lt_archive_cmds_RC
19674archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19675postinstall_cmds=$lt_postinstall_cmds
19676postuninstall_cmds=$lt_postuninstall_cmds
19677
19678# Commands used to build a loadable module (assumed same as above if empty)
19679module_cmds=$lt_module_cmds_RC
19680module_expsym_cmds=$lt_module_expsym_cmds_RC
19681
19682# Commands to strip libraries.
19683old_striplib=$lt_old_striplib
19684striplib=$lt_striplib
19685
19686# Dependencies to place before the objects being linked to create a
19687# shared library.
19688predep_objects=$lt_predep_objects_RC
19689
19690# Dependencies to place after the objects being linked to create a
19691# shared library.
19692postdep_objects=$lt_postdep_objects_RC
19693
19694# Dependencies to place before the objects being linked to create a
19695# shared library.
19696predeps=$lt_predeps_RC
19697
19698# Dependencies to place after the objects being linked to create a
19699# shared library.
19700postdeps=$lt_postdeps_RC
19701
19702# The library search path used internally by the compiler when linking
19703# a shared library.
19704compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19705
19706# Method to check whether dependent libraries are shared objects.
19707deplibs_check_method=$lt_deplibs_check_method
19708
19709# Command to use when deplibs_check_method == file_magic.
19710file_magic_cmd=$lt_file_magic_cmd
19711
19712# Flag that allows shared libraries with undefined symbols to be built.
19713allow_undefined_flag=$lt_allow_undefined_flag_RC
19714
19715# Flag that forces no undefined symbols.
19716no_undefined_flag=$lt_no_undefined_flag_RC
19717
19718# Commands used to finish a libtool library installation in a directory.
19719finish_cmds=$lt_finish_cmds
19720
19721# Same as above, but a single script fragment to be evaled but not shown.
19722finish_eval=$lt_finish_eval
19723
19724# Take the output of nm and produce a listing of raw symbols and C names.
19725global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19726
19727# Transform the output of nm in a proper C declaration
19728global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19729
19730# Transform the output of nm in a C name address pair
19731global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19732
19733# This is the shared library runtime path variable.
19734runpath_var=$runpath_var
19735
19736# This is the shared library path variable.
19737shlibpath_var=$shlibpath_var
19738
19739# Is shlibpath searched before the hard-coded library search path?
19740shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19741
19742# How to hardcode a shared library path into an executable.
19743hardcode_action=$hardcode_action_RC
19744
19745# Whether we should hardcode library paths into libraries.
19746hardcode_into_libs=$hardcode_into_libs
19747
19748# Flag to hardcode \$libdir into a binary during linking.
19749# This must work even if \$libdir does not exist.
19750hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19751
19752# If ld is used when linking, flag to hardcode \$libdir into
19753# a binary during linking. This must work even if \$libdir does
19754# not exist.
19755hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19756
19757# Whether we need a single -rpath flag with a separated argument.
19758hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19759
19760# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19761# resulting binary.
19762hardcode_direct=$hardcode_direct_RC
19763
19764# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19765# resulting binary.
19766hardcode_minus_L=$hardcode_minus_L_RC
19767
19768# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19769# the resulting binary.
19770hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19771
19772# Set to yes if building a shared library automatically hardcodes DIR into the library
19773# and all subsequent libraries and executables linked against it.
19774hardcode_automatic=$hardcode_automatic_RC
19775
19776# Variables whose values should be saved in libtool wrapper scripts and
19777# restored at relink time.
19778variables_saved_for_relink="$variables_saved_for_relink"
19779
19780# Whether libtool must link a program against all its dependency libraries.
19781link_all_deplibs=$link_all_deplibs_RC
19782
19783# Compile-time system search path for libraries
19784sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19785
19786# Run-time system search path for libraries
19787sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19788
19789# Fix the shell variable \$srcfile for the compiler.
19790fix_srcfile_path="$fix_srcfile_path_RC"
19791
19792# Set to yes if exported symbols are required.
19793always_export_symbols=$always_export_symbols_RC
19794
19795# The commands to list exported symbols.
19796export_symbols_cmds=$lt_export_symbols_cmds_RC
19797
19798# The commands to extract the exported symbol list from a shared archive.
19799extract_expsyms_cmds=$lt_extract_expsyms_cmds
19800
19801# Symbols that should not be listed in the preloaded symbols.
19802exclude_expsyms=$lt_exclude_expsyms_RC
19803
19804# Symbols that must always be exported.
19805include_expsyms=$lt_include_expsyms_RC
19806
19807# ### END LIBTOOL TAG CONFIG: $tagname
19808
19809__EOF__
19810
19811
19812else
19813  # If there is no Makefile yet, we rely on a make rule to execute
19814  # 'config.status --recheck' to rerun these tests and create the
19815  # libtool script then.
19816  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19817  if test -f "$ltmain_in"; then
19818    test -f Makefile && make "$ltmain"
19819  fi
19820fi
19821
19822
19823ac_ext=c
19824ac_cpp='$CPP $CPPFLAGS'
19825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19827ac_compiler_gnu=$ac_cv_c_compiler_gnu
19828
19829CC="$lt_save_CC"
19830
19831	;;
19832
19833      *)
19834	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19835echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19836   { (exit 1); exit 1; }; }
19837	;;
19838      esac
19839
19840      # Append the new tag name to the list of available tags.
19841      if test -n "$tagname" ; then
19842      available_tags="$available_tags $tagname"
19843    fi
19844    fi
19845  done
19846  IFS="$lt_save_ifs"
19847
19848  # Now substitute the updated list of available tags.
19849  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19850    mv "${ofile}T" "$ofile"
19851    chmod +x "$ofile"
19852  else
19853    rm -f "${ofile}T"
19854    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19855echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19856   { (exit 1); exit 1; }; }
19857  fi
19858fi
19859
19860
19861
19862# This can be used to rebuild libtool when needed
19863LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19864
19865# Always use our own libtool.
19866LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19867
19868# Prevent multiple expansion
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886
19887
19888
19889
19890
19891
19892
19893
19894# Check whether --enable-64-bit-bfd was given.
19895if test "${enable_64_bit_bfd+set}" = set; then
19896  enableval=$enable_64_bit_bfd; case "${enableval}" in
19897  yes)  want64=true  ;;
19898  no)   want64=false ;;
19899  *)    { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
19900echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
19901   { (exit 1); exit 1; }; } ;;
19902esac
19903else
19904  want64=false
19905fi
19906# Check whether --enable-targets was given.
19907if test "${enable_targets+set}" = set; then
19908  enableval=$enable_targets; case "${enableval}" in
19909  yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
19910echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
19911   { (exit 1); exit 1; }; }
19912            ;;
19913  no)       enable_targets= ;;
19914  *)        enable_targets=$enableval ;;
19915esac
19916fi
19917# Check whether --enable-commonbfdlib was given.
19918if test "${enable_commonbfdlib+set}" = set; then
19919  enableval=$enable_commonbfdlib; case "${enableval}" in
19920  yes) commonbfdlib=true ;;
19921  no)  commonbfdlib=false ;;
19922  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
19923echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
19924   { (exit 1); exit 1; }; } ;;
19925esac
19926fi
19927
19928# Check whether --with-mmap was given.
19929if test "${with_mmap+set}" = set; then
19930  withval=$with_mmap; case "${withval}" in
19931  yes)  want_mmap=true ;;
19932  no)   want_mmap=false ;;
19933  *)    { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
19934echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
19935   { (exit 1); exit 1; }; } ;;
19936esac
19937else
19938  want_mmap=false
19939fi
19940
19941# Check whether --enable-secureplt was given.
19942if test "${enable_secureplt+set}" = set; then
19943  enableval=$enable_secureplt; case "${enableval}" in
19944  yes)  use_secureplt=true  ;;
19945  no)   use_secureplt=false ;;
19946  *)    { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
19947echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
19948   { (exit 1); exit 1; }; } ;;
19949esac
19950else
19951  use_secureplt=false
19952fi
19953if test $use_secureplt = true; then
19954
19955cat >>confdefs.h <<\_ACEOF
19956#define USE_SECUREPLT 1
19957_ACEOF
19958
19959fi
19960
19961
19962WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
19963
19964# Check whether --enable-werror was given.
19965if test "${enable_werror+set}" = set; then
19966  enableval=$enable_werror; case "${enableval}" in
19967     yes | y) ERROR_ON_WARNING="yes" ;;
19968     no | n)  ERROR_ON_WARNING="no" ;;
19969     *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
19970echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
19971   { (exit 1); exit 1; }; } ;;
19972   esac
19973fi
19974
19975
19976# Enable -Werror by default when using gcc
19977if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
19978    ERROR_ON_WARNING=yes
19979fi
19980
19981NO_WERROR=
19982if test "${ERROR_ON_WARNING}" = yes ; then
19983    WARN_CFLAGS="$WARN_CFLAGS -Werror"
19984    NO_WERROR="-Wno-error"
19985fi
19986
19987# Check whether --enable-build-warnings was given.
19988if test "${enable_build_warnings+set}" = set; then
19989  enableval=$enable_build_warnings; case "${enableval}" in
19990  yes)	;;
19991  no)	WARN_CFLAGS="-w";;
19992  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
19993        WARN_CFLAGS="${WARN_CFLAGS} ${t}";;
19994  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
19995        WARN_CFLAGS="${t} ${WARN_CFLAGS}";;
19996  *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19997esac
19998fi
19999
20000
20001if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
20002  echo "Setting warning flags = $WARN_CFLAGS" 6>&1
20003fi
20004
20005
20006
20007
20008
20009ac_config_headers="$ac_config_headers config.h:config.in"
20010
20011
20012if test -z "$target" ; then
20013    { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
20014echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
20015   { (exit 1); exit 1; }; }
20016fi
20017
20018{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
20019echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
20020    # Check whether --enable-maintainer-mode was given.
20021if test "${enable_maintainer_mode+set}" = set; then
20022  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20023else
20024  USE_MAINTAINER_MODE=no
20025fi
20026
20027  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
20028echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
20029
20030
20031if test $USE_MAINTAINER_MODE = yes; then
20032  MAINTAINER_MODE_TRUE=
20033  MAINTAINER_MODE_FALSE='#'
20034else
20035  MAINTAINER_MODE_TRUE='#'
20036  MAINTAINER_MODE_FALSE=
20037fi
20038
20039  MAINT=$MAINTAINER_MODE_TRUE
20040
20041
20042 case ${build_alias} in
20043  "") build_noncanonical=${build} ;;
20044  *) build_noncanonical=${build_alias} ;;
20045esac
20046
20047 case ${host_alias} in
20048  "") host_noncanonical=${build_noncanonical} ;;
20049  *) host_noncanonical=${host_alias} ;;
20050esac
20051
20052 case ${target_alias} in
20053  "") target_noncanonical=${host_noncanonical} ;;
20054  *) target_noncanonical=${target_alias} ;;
20055esac
20056
20057{ echo "$as_me:$LINENO: checking whether to install libbfd" >&5
20058echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6; }
20059  # Check whether --enable-install-libbfd was given.
20060if test "${enable_install_libbfd+set}" = set; then
20061  enableval=$enable_install_libbfd; install_libbfd_p=$enableval
20062else
20063  if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
20064        install_libbfd_p=yes
20065      else
20066        install_libbfd_p=no
20067      fi
20068fi
20069
20070  { echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
20071echo "${ECHO_T}$install_libbfd_p" >&6; }
20072
20073
20074if test $install_libbfd_p = yes; then
20075  INSTALL_LIBBFD_TRUE=
20076  INSTALL_LIBBFD_FALSE='#'
20077else
20078  INSTALL_LIBBFD_TRUE='#'
20079  INSTALL_LIBBFD_FALSE=
20080fi
20081
20082  # Need _noncanonical variables for this.
20083
20084
20085
20086
20087  # libbfd.a is a host library containing target dependent code
20088  bfdlibdir='$(libdir)'
20089  bfdincludedir='$(includedir)'
20090  if test "${host}" != "${target}"; then
20091    bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
20092    bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
20093  fi
20094
20095
20096
20097
20098
20099
20100host64=false
20101target64=false
20102bfd_default_target_size=32
20103
20104# host stuff:
20105
20106ac_ext=c
20107ac_cpp='$CPP $CPPFLAGS'
20108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20110ac_compiler_gnu=$ac_cv_c_compiler_gnu
20111if test -n "$ac_tool_prefix"; then
20112  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
20113set dummy ${ac_tool_prefix}gcc; ac_word=$2
20114{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20116if test "${ac_cv_prog_CC+set}" = set; then
20117  echo $ECHO_N "(cached) $ECHO_C" >&6
20118else
20119  if test -n "$CC"; then
20120  ac_cv_prog_CC="$CC" # Let the user override the test.
20121else
20122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20123for as_dir in $PATH
20124do
20125  IFS=$as_save_IFS
20126  test -z "$as_dir" && as_dir=.
20127  for ac_exec_ext in '' $ac_executable_extensions; do
20128  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20129    ac_cv_prog_CC="${ac_tool_prefix}gcc"
20130    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20131    break 2
20132  fi
20133done
20134done
20135IFS=$as_save_IFS
20136
20137fi
20138fi
20139CC=$ac_cv_prog_CC
20140if test -n "$CC"; then
20141  { echo "$as_me:$LINENO: result: $CC" >&5
20142echo "${ECHO_T}$CC" >&6; }
20143else
20144  { echo "$as_me:$LINENO: result: no" >&5
20145echo "${ECHO_T}no" >&6; }
20146fi
20147
20148
20149fi
20150if test -z "$ac_cv_prog_CC"; then
20151  ac_ct_CC=$CC
20152  # Extract the first word of "gcc", so it can be a program name with args.
20153set dummy gcc; ac_word=$2
20154{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20156if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20157  echo $ECHO_N "(cached) $ECHO_C" >&6
20158else
20159  if test -n "$ac_ct_CC"; then
20160  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20161else
20162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20163for as_dir in $PATH
20164do
20165  IFS=$as_save_IFS
20166  test -z "$as_dir" && as_dir=.
20167  for ac_exec_ext in '' $ac_executable_extensions; do
20168  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20169    ac_cv_prog_ac_ct_CC="gcc"
20170    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20171    break 2
20172  fi
20173done
20174done
20175IFS=$as_save_IFS
20176
20177fi
20178fi
20179ac_ct_CC=$ac_cv_prog_ac_ct_CC
20180if test -n "$ac_ct_CC"; then
20181  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20182echo "${ECHO_T}$ac_ct_CC" >&6; }
20183else
20184  { echo "$as_me:$LINENO: result: no" >&5
20185echo "${ECHO_T}no" >&6; }
20186fi
20187
20188  if test "x$ac_ct_CC" = x; then
20189    CC=""
20190  else
20191    case $cross_compiling:$ac_tool_warned in
20192yes:)
20193{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20194whose name does not start with the host triplet.  If you think this
20195configuration is useful to you, please write to autoconf@gnu.org." >&5
20196echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20197whose name does not start with the host triplet.  If you think this
20198configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20199ac_tool_warned=yes ;;
20200esac
20201    CC=$ac_ct_CC
20202  fi
20203else
20204  CC="$ac_cv_prog_CC"
20205fi
20206
20207if test -z "$CC"; then
20208          if test -n "$ac_tool_prefix"; then
20209    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20210set dummy ${ac_tool_prefix}cc; ac_word=$2
20211{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20213if test "${ac_cv_prog_CC+set}" = set; then
20214  echo $ECHO_N "(cached) $ECHO_C" >&6
20215else
20216  if test -n "$CC"; then
20217  ac_cv_prog_CC="$CC" # Let the user override the test.
20218else
20219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20220for as_dir in $PATH
20221do
20222  IFS=$as_save_IFS
20223  test -z "$as_dir" && as_dir=.
20224  for ac_exec_ext in '' $ac_executable_extensions; do
20225  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20226    ac_cv_prog_CC="${ac_tool_prefix}cc"
20227    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20228    break 2
20229  fi
20230done
20231done
20232IFS=$as_save_IFS
20233
20234fi
20235fi
20236CC=$ac_cv_prog_CC
20237if test -n "$CC"; then
20238  { echo "$as_me:$LINENO: result: $CC" >&5
20239echo "${ECHO_T}$CC" >&6; }
20240else
20241  { echo "$as_me:$LINENO: result: no" >&5
20242echo "${ECHO_T}no" >&6; }
20243fi
20244
20245
20246  fi
20247fi
20248if test -z "$CC"; then
20249  # Extract the first word of "cc", so it can be a program name with args.
20250set dummy cc; ac_word=$2
20251{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20253if test "${ac_cv_prog_CC+set}" = set; then
20254  echo $ECHO_N "(cached) $ECHO_C" >&6
20255else
20256  if test -n "$CC"; then
20257  ac_cv_prog_CC="$CC" # Let the user override the test.
20258else
20259  ac_prog_rejected=no
20260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20261for as_dir in $PATH
20262do
20263  IFS=$as_save_IFS
20264  test -z "$as_dir" && as_dir=.
20265  for ac_exec_ext in '' $ac_executable_extensions; do
20266  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20267    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20268       ac_prog_rejected=yes
20269       continue
20270     fi
20271    ac_cv_prog_CC="cc"
20272    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20273    break 2
20274  fi
20275done
20276done
20277IFS=$as_save_IFS
20278
20279if test $ac_prog_rejected = yes; then
20280  # We found a bogon in the path, so make sure we never use it.
20281  set dummy $ac_cv_prog_CC
20282  shift
20283  if test $# != 0; then
20284    # We chose a different compiler from the bogus one.
20285    # However, it has the same basename, so the bogon will be chosen
20286    # first if we set CC to just the basename; use the full file name.
20287    shift
20288    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20289  fi
20290fi
20291fi
20292fi
20293CC=$ac_cv_prog_CC
20294if test -n "$CC"; then
20295  { echo "$as_me:$LINENO: result: $CC" >&5
20296echo "${ECHO_T}$CC" >&6; }
20297else
20298  { echo "$as_me:$LINENO: result: no" >&5
20299echo "${ECHO_T}no" >&6; }
20300fi
20301
20302
20303fi
20304if test -z "$CC"; then
20305  if test -n "$ac_tool_prefix"; then
20306  for ac_prog in cl.exe
20307  do
20308    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20309set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20310{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20312if test "${ac_cv_prog_CC+set}" = set; then
20313  echo $ECHO_N "(cached) $ECHO_C" >&6
20314else
20315  if test -n "$CC"; then
20316  ac_cv_prog_CC="$CC" # Let the user override the test.
20317else
20318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20319for as_dir in $PATH
20320do
20321  IFS=$as_save_IFS
20322  test -z "$as_dir" && as_dir=.
20323  for ac_exec_ext in '' $ac_executable_extensions; do
20324  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20325    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20326    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20327    break 2
20328  fi
20329done
20330done
20331IFS=$as_save_IFS
20332
20333fi
20334fi
20335CC=$ac_cv_prog_CC
20336if test -n "$CC"; then
20337  { echo "$as_me:$LINENO: result: $CC" >&5
20338echo "${ECHO_T}$CC" >&6; }
20339else
20340  { echo "$as_me:$LINENO: result: no" >&5
20341echo "${ECHO_T}no" >&6; }
20342fi
20343
20344
20345    test -n "$CC" && break
20346  done
20347fi
20348if test -z "$CC"; then
20349  ac_ct_CC=$CC
20350  for ac_prog in cl.exe
20351do
20352  # Extract the first word of "$ac_prog", so it can be a program name with args.
20353set dummy $ac_prog; ac_word=$2
20354{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20356if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20357  echo $ECHO_N "(cached) $ECHO_C" >&6
20358else
20359  if test -n "$ac_ct_CC"; then
20360  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20361else
20362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20363for as_dir in $PATH
20364do
20365  IFS=$as_save_IFS
20366  test -z "$as_dir" && as_dir=.
20367  for ac_exec_ext in '' $ac_executable_extensions; do
20368  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20369    ac_cv_prog_ac_ct_CC="$ac_prog"
20370    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20371    break 2
20372  fi
20373done
20374done
20375IFS=$as_save_IFS
20376
20377fi
20378fi
20379ac_ct_CC=$ac_cv_prog_ac_ct_CC
20380if test -n "$ac_ct_CC"; then
20381  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20382echo "${ECHO_T}$ac_ct_CC" >&6; }
20383else
20384  { echo "$as_me:$LINENO: result: no" >&5
20385echo "${ECHO_T}no" >&6; }
20386fi
20387
20388
20389  test -n "$ac_ct_CC" && break
20390done
20391
20392  if test "x$ac_ct_CC" = x; then
20393    CC=""
20394  else
20395    case $cross_compiling:$ac_tool_warned in
20396yes:)
20397{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20398whose name does not start with the host triplet.  If you think this
20399configuration is useful to you, please write to autoconf@gnu.org." >&5
20400echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20401whose name does not start with the host triplet.  If you think this
20402configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20403ac_tool_warned=yes ;;
20404esac
20405    CC=$ac_ct_CC
20406  fi
20407fi
20408
20409fi
20410
20411
20412test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20413See \`config.log' for more details." >&5
20414echo "$as_me: error: no acceptable C compiler found in \$PATH
20415See \`config.log' for more details." >&2;}
20416   { (exit 1); exit 1; }; }
20417
20418# Provide some information about the compiler.
20419echo "$as_me:$LINENO: checking for C compiler version" >&5
20420ac_compiler=`set X $ac_compile; echo $2`
20421{ (ac_try="$ac_compiler --version >&5"
20422case "(($ac_try" in
20423  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20424  *) ac_try_echo=$ac_try;;
20425esac
20426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20427  (eval "$ac_compiler --version >&5") 2>&5
20428  ac_status=$?
20429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430  (exit $ac_status); }
20431{ (ac_try="$ac_compiler -v >&5"
20432case "(($ac_try" in
20433  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20434  *) ac_try_echo=$ac_try;;
20435esac
20436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20437  (eval "$ac_compiler -v >&5") 2>&5
20438  ac_status=$?
20439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440  (exit $ac_status); }
20441{ (ac_try="$ac_compiler -V >&5"
20442case "(($ac_try" in
20443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20444  *) ac_try_echo=$ac_try;;
20445esac
20446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20447  (eval "$ac_compiler -V >&5") 2>&5
20448  ac_status=$?
20449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450  (exit $ac_status); }
20451
20452{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20453echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
20454if test "${ac_cv_c_compiler_gnu+set}" = set; then
20455  echo $ECHO_N "(cached) $ECHO_C" >&6
20456else
20457  cat >conftest.$ac_ext <<_ACEOF
20458/* confdefs.h.  */
20459_ACEOF
20460cat confdefs.h >>conftest.$ac_ext
20461cat >>conftest.$ac_ext <<_ACEOF
20462/* end confdefs.h.  */
20463
20464int
20465main ()
20466{
20467#ifndef __GNUC__
20468       choke me
20469#endif
20470
20471  ;
20472  return 0;
20473}
20474_ACEOF
20475rm -f conftest.$ac_objext
20476if { (ac_try="$ac_compile"
20477case "(($ac_try" in
20478  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20479  *) ac_try_echo=$ac_try;;
20480esac
20481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20482  (eval "$ac_compile") 2>conftest.er1
20483  ac_status=$?
20484  grep -v '^ *+' conftest.er1 >conftest.err
20485  rm -f conftest.er1
20486  cat conftest.err >&5
20487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488  (exit $ac_status); } &&
20489	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20490  { (case "(($ac_try" in
20491  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20492  *) ac_try_echo=$ac_try;;
20493esac
20494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20495  (eval "$ac_try") 2>&5
20496  ac_status=$?
20497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498  (exit $ac_status); }; } &&
20499	 { ac_try='test -s conftest.$ac_objext'
20500  { (case "(($ac_try" in
20501  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20502  *) ac_try_echo=$ac_try;;
20503esac
20504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20505  (eval "$ac_try") 2>&5
20506  ac_status=$?
20507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508  (exit $ac_status); }; }; then
20509  ac_compiler_gnu=yes
20510else
20511  echo "$as_me: failed program was:" >&5
20512sed 's/^/| /' conftest.$ac_ext >&5
20513
20514	ac_compiler_gnu=no
20515fi
20516
20517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20518ac_cv_c_compiler_gnu=$ac_compiler_gnu
20519
20520fi
20521{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20522echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
20523GCC=`test $ac_compiler_gnu = yes && echo yes`
20524ac_test_CFLAGS=${CFLAGS+set}
20525ac_save_CFLAGS=$CFLAGS
20526{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20527echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
20528if test "${ac_cv_prog_cc_g+set}" = set; then
20529  echo $ECHO_N "(cached) $ECHO_C" >&6
20530else
20531  ac_save_c_werror_flag=$ac_c_werror_flag
20532   ac_c_werror_flag=yes
20533   ac_cv_prog_cc_g=no
20534   CFLAGS="-g"
20535   cat >conftest.$ac_ext <<_ACEOF
20536/* confdefs.h.  */
20537_ACEOF
20538cat confdefs.h >>conftest.$ac_ext
20539cat >>conftest.$ac_ext <<_ACEOF
20540/* end confdefs.h.  */
20541
20542int
20543main ()
20544{
20545
20546  ;
20547  return 0;
20548}
20549_ACEOF
20550rm -f conftest.$ac_objext
20551if { (ac_try="$ac_compile"
20552case "(($ac_try" in
20553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20554  *) ac_try_echo=$ac_try;;
20555esac
20556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20557  (eval "$ac_compile") 2>conftest.er1
20558  ac_status=$?
20559  grep -v '^ *+' conftest.er1 >conftest.err
20560  rm -f conftest.er1
20561  cat conftest.err >&5
20562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563  (exit $ac_status); } &&
20564	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20565  { (case "(($ac_try" in
20566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20567  *) ac_try_echo=$ac_try;;
20568esac
20569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20570  (eval "$ac_try") 2>&5
20571  ac_status=$?
20572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573  (exit $ac_status); }; } &&
20574	 { ac_try='test -s conftest.$ac_objext'
20575  { (case "(($ac_try" in
20576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20577  *) ac_try_echo=$ac_try;;
20578esac
20579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20580  (eval "$ac_try") 2>&5
20581  ac_status=$?
20582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583  (exit $ac_status); }; }; then
20584  ac_cv_prog_cc_g=yes
20585else
20586  echo "$as_me: failed program was:" >&5
20587sed 's/^/| /' conftest.$ac_ext >&5
20588
20589	CFLAGS=""
20590      cat >conftest.$ac_ext <<_ACEOF
20591/* confdefs.h.  */
20592_ACEOF
20593cat confdefs.h >>conftest.$ac_ext
20594cat >>conftest.$ac_ext <<_ACEOF
20595/* end confdefs.h.  */
20596
20597int
20598main ()
20599{
20600
20601  ;
20602  return 0;
20603}
20604_ACEOF
20605rm -f conftest.$ac_objext
20606if { (ac_try="$ac_compile"
20607case "(($ac_try" in
20608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20609  *) ac_try_echo=$ac_try;;
20610esac
20611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20612  (eval "$ac_compile") 2>conftest.er1
20613  ac_status=$?
20614  grep -v '^ *+' conftest.er1 >conftest.err
20615  rm -f conftest.er1
20616  cat conftest.err >&5
20617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618  (exit $ac_status); } &&
20619	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20620  { (case "(($ac_try" in
20621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20622  *) ac_try_echo=$ac_try;;
20623esac
20624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20625  (eval "$ac_try") 2>&5
20626  ac_status=$?
20627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628  (exit $ac_status); }; } &&
20629	 { ac_try='test -s conftest.$ac_objext'
20630  { (case "(($ac_try" in
20631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20632  *) ac_try_echo=$ac_try;;
20633esac
20634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20635  (eval "$ac_try") 2>&5
20636  ac_status=$?
20637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638  (exit $ac_status); }; }; then
20639  :
20640else
20641  echo "$as_me: failed program was:" >&5
20642sed 's/^/| /' conftest.$ac_ext >&5
20643
20644	ac_c_werror_flag=$ac_save_c_werror_flag
20645	 CFLAGS="-g"
20646	 cat >conftest.$ac_ext <<_ACEOF
20647/* confdefs.h.  */
20648_ACEOF
20649cat confdefs.h >>conftest.$ac_ext
20650cat >>conftest.$ac_ext <<_ACEOF
20651/* end confdefs.h.  */
20652
20653int
20654main ()
20655{
20656
20657  ;
20658  return 0;
20659}
20660_ACEOF
20661rm -f conftest.$ac_objext
20662if { (ac_try="$ac_compile"
20663case "(($ac_try" in
20664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20665  *) ac_try_echo=$ac_try;;
20666esac
20667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20668  (eval "$ac_compile") 2>conftest.er1
20669  ac_status=$?
20670  grep -v '^ *+' conftest.er1 >conftest.err
20671  rm -f conftest.er1
20672  cat conftest.err >&5
20673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674  (exit $ac_status); } &&
20675	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20676  { (case "(($ac_try" in
20677  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20678  *) ac_try_echo=$ac_try;;
20679esac
20680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20681  (eval "$ac_try") 2>&5
20682  ac_status=$?
20683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684  (exit $ac_status); }; } &&
20685	 { ac_try='test -s conftest.$ac_objext'
20686  { (case "(($ac_try" in
20687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20688  *) ac_try_echo=$ac_try;;
20689esac
20690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20691  (eval "$ac_try") 2>&5
20692  ac_status=$?
20693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694  (exit $ac_status); }; }; then
20695  ac_cv_prog_cc_g=yes
20696else
20697  echo "$as_me: failed program was:" >&5
20698sed 's/^/| /' conftest.$ac_ext >&5
20699
20700
20701fi
20702
20703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20704fi
20705
20706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20707fi
20708
20709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20710   ac_c_werror_flag=$ac_save_c_werror_flag
20711fi
20712{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20713echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
20714if test "$ac_test_CFLAGS" = set; then
20715  CFLAGS=$ac_save_CFLAGS
20716elif test $ac_cv_prog_cc_g = yes; then
20717  if test "$GCC" = yes; then
20718    CFLAGS="-g -O2"
20719  else
20720    CFLAGS="-g"
20721  fi
20722else
20723  if test "$GCC" = yes; then
20724    CFLAGS="-O2"
20725  else
20726    CFLAGS=
20727  fi
20728fi
20729{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20730echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20731if test "${ac_cv_prog_cc_c89+set}" = set; then
20732  echo $ECHO_N "(cached) $ECHO_C" >&6
20733else
20734  ac_cv_prog_cc_c89=no
20735ac_save_CC=$CC
20736cat >conftest.$ac_ext <<_ACEOF
20737/* confdefs.h.  */
20738_ACEOF
20739cat confdefs.h >>conftest.$ac_ext
20740cat >>conftest.$ac_ext <<_ACEOF
20741/* end confdefs.h.  */
20742#include <stdarg.h>
20743#include <stdio.h>
20744#include <sys/types.h>
20745#include <sys/stat.h>
20746/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20747struct buf { int x; };
20748FILE * (*rcsopen) (struct buf *, struct stat *, int);
20749static char *e (p, i)
20750     char **p;
20751     int i;
20752{
20753  return p[i];
20754}
20755static char *f (char * (*g) (char **, int), char **p, ...)
20756{
20757  char *s;
20758  va_list v;
20759  va_start (v,p);
20760  s = g (p, va_arg (v,int));
20761  va_end (v);
20762  return s;
20763}
20764
20765/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20766   function prototypes and stuff, but not '\xHH' hex character constants.
20767   These don't provoke an error unfortunately, instead are silently treated
20768   as 'x'.  The following induces an error, until -std is added to get
20769   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20770   array size at least.  It's necessary to write '\x00'==0 to get something
20771   that's true only with -std.  */
20772int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20773
20774/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20775   inside strings and character constants.  */
20776#define FOO(x) 'x'
20777int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20778
20779int test (int i, double x);
20780struct s1 {int (*f) (int a);};
20781struct s2 {int (*f) (double a);};
20782int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20783int argc;
20784char **argv;
20785int
20786main ()
20787{
20788return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20789  ;
20790  return 0;
20791}
20792_ACEOF
20793for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20794	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20795do
20796  CC="$ac_save_CC $ac_arg"
20797  rm -f conftest.$ac_objext
20798if { (ac_try="$ac_compile"
20799case "(($ac_try" in
20800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20801  *) ac_try_echo=$ac_try;;
20802esac
20803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20804  (eval "$ac_compile") 2>conftest.er1
20805  ac_status=$?
20806  grep -v '^ *+' conftest.er1 >conftest.err
20807  rm -f conftest.er1
20808  cat conftest.err >&5
20809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810  (exit $ac_status); } &&
20811	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20812  { (case "(($ac_try" in
20813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20814  *) ac_try_echo=$ac_try;;
20815esac
20816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20817  (eval "$ac_try") 2>&5
20818  ac_status=$?
20819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820  (exit $ac_status); }; } &&
20821	 { ac_try='test -s conftest.$ac_objext'
20822  { (case "(($ac_try" in
20823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20824  *) ac_try_echo=$ac_try;;
20825esac
20826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20827  (eval "$ac_try") 2>&5
20828  ac_status=$?
20829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830  (exit $ac_status); }; }; then
20831  ac_cv_prog_cc_c89=$ac_arg
20832else
20833  echo "$as_me: failed program was:" >&5
20834sed 's/^/| /' conftest.$ac_ext >&5
20835
20836
20837fi
20838
20839rm -f core conftest.err conftest.$ac_objext
20840  test "x$ac_cv_prog_cc_c89" != "xno" && break
20841done
20842rm -f conftest.$ac_ext
20843CC=$ac_save_CC
20844
20845fi
20846# AC_CACHE_VAL
20847case "x$ac_cv_prog_cc_c89" in
20848  x)
20849    { echo "$as_me:$LINENO: result: none needed" >&5
20850echo "${ECHO_T}none needed" >&6; } ;;
20851  xno)
20852    { echo "$as_me:$LINENO: result: unsupported" >&5
20853echo "${ECHO_T}unsupported" >&6; } ;;
20854  *)
20855    CC="$CC $ac_cv_prog_cc_c89"
20856    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20857echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20858esac
20859
20860
20861ac_ext=c
20862ac_cpp='$CPP $CPPFLAGS'
20863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20865ac_compiler_gnu=$ac_cv_c_compiler_gnu
20866
20867
20868# Permit host specific settings.
20869. ${srcdir}/configure.host
20870
20871
20872# Find a good install program.  We prefer a C program (faster),
20873# so one script is as good as another.  But avoid the broken or
20874# incompatible versions:
20875# SysV /etc/install, /usr/sbin/install
20876# SunOS /usr/etc/install
20877# IRIX /sbin/install
20878# AIX /bin/install
20879# AmigaOS /C/install, which installs bootblocks on floppy discs
20880# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
20881# AFS /usr/afsws/bin/install, which mishandles nonexistent args
20882# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
20883# OS/2's system install, which has a completely different semantic
20884# ./install, which can be erroneously created by make from ./install.sh.
20885{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
20886echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
20887if test -z "$INSTALL"; then
20888if test "${ac_cv_path_install+set}" = set; then
20889  echo $ECHO_N "(cached) $ECHO_C" >&6
20890else
20891  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20892for as_dir in $PATH
20893do
20894  IFS=$as_save_IFS
20895  test -z "$as_dir" && as_dir=.
20896  # Account for people who put trailing slashes in PATH elements.
20897case $as_dir/ in
20898  ./ | .// | /cC/* | \
20899  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
20900  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
20901  /usr/ucb/* ) ;;
20902  *)
20903    # OSF1 and SCO ODT 3.0 have their own names for install.
20904    # Don't use installbsd from OSF since it installs stuff as root
20905    # by default.
20906    for ac_prog in ginstall scoinst install; do
20907      for ac_exec_ext in '' $ac_executable_extensions; do
20908	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
20909	  if test $ac_prog = install &&
20910	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20911	    # AIX install.  It has an incompatible calling convention.
20912	    :
20913	  elif test $ac_prog = install &&
20914	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20915	    # program-specific install script used by HP pwplus--don't use.
20916	    :
20917	  else
20918	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
20919	    break 3
20920	  fi
20921	fi
20922      done
20923    done
20924    ;;
20925esac
20926done
20927IFS=$as_save_IFS
20928
20929
20930fi
20931  if test "${ac_cv_path_install+set}" = set; then
20932    INSTALL=$ac_cv_path_install
20933  else
20934    # As a last resort, use the slow shell script.  Don't cache a
20935    # value for INSTALL within a source directory, because that will
20936    # break other packages using the cache if that directory is
20937    # removed, or if the value is a relative name.
20938    INSTALL="$SHELL $ac_install_sh"
20939  fi
20940fi
20941{ echo "$as_me:$LINENO: result: $INSTALL" >&5
20942echo "${ECHO_T}$INSTALL" >&6; }
20943
20944# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20945# It thinks the first close brace ends the variable substitution.
20946test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
20947
20948test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
20949
20950test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20951
20952
20953BFD_HOST_64BIT_LONG=0
20954BFD_HOST_LONG_LONG=0
20955BFD_HOST_64_BIT_DEFINED=0
20956BFD_HOST_64_BIT=
20957BFD_HOST_U_64_BIT=
20958
20959{ echo "$as_me:$LINENO: checking for long long" >&5
20960echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
20961if test "${bfd_cv_has_long_long+set}" = set; then
20962  echo $ECHO_N "(cached) $ECHO_C" >&6
20963else
20964  cat >conftest.$ac_ext <<_ACEOF
20965/* confdefs.h.  */
20966_ACEOF
20967cat confdefs.h >>conftest.$ac_ext
20968cat >>conftest.$ac_ext <<_ACEOF
20969/* end confdefs.h.  */
20970
20971int
20972main ()
20973{
20974unsigned long long ll = 18446744073709551615ULL;
20975  ;
20976  return 0;
20977}
20978_ACEOF
20979rm -f conftest.$ac_objext
20980if { (ac_try="$ac_compile"
20981case "(($ac_try" in
20982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20983  *) ac_try_echo=$ac_try;;
20984esac
20985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20986  (eval "$ac_compile") 2>conftest.er1
20987  ac_status=$?
20988  grep -v '^ *+' conftest.er1 >conftest.err
20989  rm -f conftest.er1
20990  cat conftest.err >&5
20991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992  (exit $ac_status); } &&
20993	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20994  { (case "(($ac_try" in
20995  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20996  *) ac_try_echo=$ac_try;;
20997esac
20998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20999  (eval "$ac_try") 2>&5
21000  ac_status=$?
21001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002  (exit $ac_status); }; } &&
21003	 { ac_try='test -s conftest.$ac_objext'
21004  { (case "(($ac_try" in
21005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21006  *) ac_try_echo=$ac_try;;
21007esac
21008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21009  (eval "$ac_try") 2>&5
21010  ac_status=$?
21011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012  (exit $ac_status); }; }; then
21013  bfd_cv_has_long_long=yes
21014else
21015  echo "$as_me: failed program was:" >&5
21016sed 's/^/| /' conftest.$ac_ext >&5
21017
21018	bfd_cv_has_long_long=no
21019fi
21020
21021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21022fi
21023
21024{ echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
21025echo "${ECHO_T}$bfd_cv_has_long_long" >&6; }
21026if test $bfd_cv_has_long_long = yes; then
21027  BFD_HOST_LONG_LONG=1
21028  { echo "$as_me:$LINENO: checking for long long" >&5
21029echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
21030if test "${ac_cv_type_long_long+set}" = set; then
21031  echo $ECHO_N "(cached) $ECHO_C" >&6
21032else
21033  cat >conftest.$ac_ext <<_ACEOF
21034/* confdefs.h.  */
21035_ACEOF
21036cat confdefs.h >>conftest.$ac_ext
21037cat >>conftest.$ac_ext <<_ACEOF
21038/* end confdefs.h.  */
21039$ac_includes_default
21040typedef long long ac__type_new_;
21041int
21042main ()
21043{
21044if ((ac__type_new_ *) 0)
21045  return 0;
21046if (sizeof (ac__type_new_))
21047  return 0;
21048  ;
21049  return 0;
21050}
21051_ACEOF
21052rm -f conftest.$ac_objext
21053if { (ac_try="$ac_compile"
21054case "(($ac_try" in
21055  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21056  *) ac_try_echo=$ac_try;;
21057esac
21058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21059  (eval "$ac_compile") 2>conftest.er1
21060  ac_status=$?
21061  grep -v '^ *+' conftest.er1 >conftest.err
21062  rm -f conftest.er1
21063  cat conftest.err >&5
21064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065  (exit $ac_status); } &&
21066	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21067  { (case "(($ac_try" in
21068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21069  *) ac_try_echo=$ac_try;;
21070esac
21071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21072  (eval "$ac_try") 2>&5
21073  ac_status=$?
21074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075  (exit $ac_status); }; } &&
21076	 { ac_try='test -s conftest.$ac_objext'
21077  { (case "(($ac_try" in
21078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21079  *) ac_try_echo=$ac_try;;
21080esac
21081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21082  (eval "$ac_try") 2>&5
21083  ac_status=$?
21084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085  (exit $ac_status); }; }; then
21086  ac_cv_type_long_long=yes
21087else
21088  echo "$as_me: failed program was:" >&5
21089sed 's/^/| /' conftest.$ac_ext >&5
21090
21091	ac_cv_type_long_long=no
21092fi
21093
21094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21095fi
21096{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21097echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
21098
21099{ echo "$as_me:$LINENO: checking size of long long" >&5
21100echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
21101if test "${ac_cv_sizeof_long_long+set}" = set; then
21102  echo $ECHO_N "(cached) $ECHO_C" >&6
21103else
21104  if test "$ac_cv_type_long_long" = yes; then
21105  # The cast to long int works around a bug in the HP C Compiler
21106  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21107  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21108  # This bug is HP SR number 8606223364.
21109  if test "$cross_compiling" = yes; then
21110  # Depending upon the size, compute the lo and hi bounds.
21111cat >conftest.$ac_ext <<_ACEOF
21112/* confdefs.h.  */
21113_ACEOF
21114cat confdefs.h >>conftest.$ac_ext
21115cat >>conftest.$ac_ext <<_ACEOF
21116/* end confdefs.h.  */
21117$ac_includes_default
21118		   typedef long long ac__type_sizeof_;
21119int
21120main ()
21121{
21122static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21123test_array [0] = 0
21124
21125  ;
21126  return 0;
21127}
21128_ACEOF
21129rm -f conftest.$ac_objext
21130if { (ac_try="$ac_compile"
21131case "(($ac_try" in
21132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21133  *) ac_try_echo=$ac_try;;
21134esac
21135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21136  (eval "$ac_compile") 2>conftest.er1
21137  ac_status=$?
21138  grep -v '^ *+' conftest.er1 >conftest.err
21139  rm -f conftest.er1
21140  cat conftest.err >&5
21141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142  (exit $ac_status); } &&
21143	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21144  { (case "(($ac_try" in
21145  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21146  *) ac_try_echo=$ac_try;;
21147esac
21148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21149  (eval "$ac_try") 2>&5
21150  ac_status=$?
21151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152  (exit $ac_status); }; } &&
21153	 { ac_try='test -s conftest.$ac_objext'
21154  { (case "(($ac_try" in
21155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21156  *) ac_try_echo=$ac_try;;
21157esac
21158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21159  (eval "$ac_try") 2>&5
21160  ac_status=$?
21161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162  (exit $ac_status); }; }; then
21163  ac_lo=0 ac_mid=0
21164  while :; do
21165    cat >conftest.$ac_ext <<_ACEOF
21166/* confdefs.h.  */
21167_ACEOF
21168cat confdefs.h >>conftest.$ac_ext
21169cat >>conftest.$ac_ext <<_ACEOF
21170/* end confdefs.h.  */
21171$ac_includes_default
21172		   typedef long long ac__type_sizeof_;
21173int
21174main ()
21175{
21176static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21177test_array [0] = 0
21178
21179  ;
21180  return 0;
21181}
21182_ACEOF
21183rm -f conftest.$ac_objext
21184if { (ac_try="$ac_compile"
21185case "(($ac_try" in
21186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21187  *) ac_try_echo=$ac_try;;
21188esac
21189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21190  (eval "$ac_compile") 2>conftest.er1
21191  ac_status=$?
21192  grep -v '^ *+' conftest.er1 >conftest.err
21193  rm -f conftest.er1
21194  cat conftest.err >&5
21195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196  (exit $ac_status); } &&
21197	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21198  { (case "(($ac_try" in
21199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21200  *) ac_try_echo=$ac_try;;
21201esac
21202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21203  (eval "$ac_try") 2>&5
21204  ac_status=$?
21205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206  (exit $ac_status); }; } &&
21207	 { ac_try='test -s conftest.$ac_objext'
21208  { (case "(($ac_try" in
21209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21210  *) ac_try_echo=$ac_try;;
21211esac
21212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21213  (eval "$ac_try") 2>&5
21214  ac_status=$?
21215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216  (exit $ac_status); }; }; then
21217  ac_hi=$ac_mid; break
21218else
21219  echo "$as_me: failed program was:" >&5
21220sed 's/^/| /' conftest.$ac_ext >&5
21221
21222	ac_lo=`expr $ac_mid + 1`
21223			if test $ac_lo -le $ac_mid; then
21224			  ac_lo= ac_hi=
21225			  break
21226			fi
21227			ac_mid=`expr 2 '*' $ac_mid + 1`
21228fi
21229
21230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21231  done
21232else
21233  echo "$as_me: failed program was:" >&5
21234sed 's/^/| /' conftest.$ac_ext >&5
21235
21236	cat >conftest.$ac_ext <<_ACEOF
21237/* confdefs.h.  */
21238_ACEOF
21239cat confdefs.h >>conftest.$ac_ext
21240cat >>conftest.$ac_ext <<_ACEOF
21241/* end confdefs.h.  */
21242$ac_includes_default
21243		   typedef long long ac__type_sizeof_;
21244int
21245main ()
21246{
21247static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21248test_array [0] = 0
21249
21250  ;
21251  return 0;
21252}
21253_ACEOF
21254rm -f conftest.$ac_objext
21255if { (ac_try="$ac_compile"
21256case "(($ac_try" in
21257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21258  *) ac_try_echo=$ac_try;;
21259esac
21260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21261  (eval "$ac_compile") 2>conftest.er1
21262  ac_status=$?
21263  grep -v '^ *+' conftest.er1 >conftest.err
21264  rm -f conftest.er1
21265  cat conftest.err >&5
21266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21267  (exit $ac_status); } &&
21268	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21269  { (case "(($ac_try" in
21270  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21271  *) ac_try_echo=$ac_try;;
21272esac
21273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21274  (eval "$ac_try") 2>&5
21275  ac_status=$?
21276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21277  (exit $ac_status); }; } &&
21278	 { ac_try='test -s conftest.$ac_objext'
21279  { (case "(($ac_try" in
21280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21281  *) ac_try_echo=$ac_try;;
21282esac
21283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21284  (eval "$ac_try") 2>&5
21285  ac_status=$?
21286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287  (exit $ac_status); }; }; then
21288  ac_hi=-1 ac_mid=-1
21289  while :; do
21290    cat >conftest.$ac_ext <<_ACEOF
21291/* confdefs.h.  */
21292_ACEOF
21293cat confdefs.h >>conftest.$ac_ext
21294cat >>conftest.$ac_ext <<_ACEOF
21295/* end confdefs.h.  */
21296$ac_includes_default
21297		   typedef long long ac__type_sizeof_;
21298int
21299main ()
21300{
21301static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21302test_array [0] = 0
21303
21304  ;
21305  return 0;
21306}
21307_ACEOF
21308rm -f conftest.$ac_objext
21309if { (ac_try="$ac_compile"
21310case "(($ac_try" in
21311  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21312  *) ac_try_echo=$ac_try;;
21313esac
21314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21315  (eval "$ac_compile") 2>conftest.er1
21316  ac_status=$?
21317  grep -v '^ *+' conftest.er1 >conftest.err
21318  rm -f conftest.er1
21319  cat conftest.err >&5
21320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321  (exit $ac_status); } &&
21322	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21323  { (case "(($ac_try" in
21324  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21325  *) ac_try_echo=$ac_try;;
21326esac
21327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21328  (eval "$ac_try") 2>&5
21329  ac_status=$?
21330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331  (exit $ac_status); }; } &&
21332	 { ac_try='test -s conftest.$ac_objext'
21333  { (case "(($ac_try" in
21334  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21335  *) ac_try_echo=$ac_try;;
21336esac
21337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21338  (eval "$ac_try") 2>&5
21339  ac_status=$?
21340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341  (exit $ac_status); }; }; then
21342  ac_lo=$ac_mid; break
21343else
21344  echo "$as_me: failed program was:" >&5
21345sed 's/^/| /' conftest.$ac_ext >&5
21346
21347	ac_hi=`expr '(' $ac_mid ')' - 1`
21348			if test $ac_mid -le $ac_hi; then
21349			  ac_lo= ac_hi=
21350			  break
21351			fi
21352			ac_mid=`expr 2 '*' $ac_mid`
21353fi
21354
21355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21356  done
21357else
21358  echo "$as_me: failed program was:" >&5
21359sed 's/^/| /' conftest.$ac_ext >&5
21360
21361	ac_lo= ac_hi=
21362fi
21363
21364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21365fi
21366
21367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21368# Binary search between lo and hi bounds.
21369while test "x$ac_lo" != "x$ac_hi"; do
21370  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21371  cat >conftest.$ac_ext <<_ACEOF
21372/* confdefs.h.  */
21373_ACEOF
21374cat confdefs.h >>conftest.$ac_ext
21375cat >>conftest.$ac_ext <<_ACEOF
21376/* end confdefs.h.  */
21377$ac_includes_default
21378		   typedef long long ac__type_sizeof_;
21379int
21380main ()
21381{
21382static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21383test_array [0] = 0
21384
21385  ;
21386  return 0;
21387}
21388_ACEOF
21389rm -f conftest.$ac_objext
21390if { (ac_try="$ac_compile"
21391case "(($ac_try" in
21392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21393  *) ac_try_echo=$ac_try;;
21394esac
21395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21396  (eval "$ac_compile") 2>conftest.er1
21397  ac_status=$?
21398  grep -v '^ *+' conftest.er1 >conftest.err
21399  rm -f conftest.er1
21400  cat conftest.err >&5
21401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402  (exit $ac_status); } &&
21403	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21404  { (case "(($ac_try" in
21405  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21406  *) ac_try_echo=$ac_try;;
21407esac
21408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21409  (eval "$ac_try") 2>&5
21410  ac_status=$?
21411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412  (exit $ac_status); }; } &&
21413	 { ac_try='test -s conftest.$ac_objext'
21414  { (case "(($ac_try" in
21415  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21416  *) ac_try_echo=$ac_try;;
21417esac
21418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21419  (eval "$ac_try") 2>&5
21420  ac_status=$?
21421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422  (exit $ac_status); }; }; then
21423  ac_hi=$ac_mid
21424else
21425  echo "$as_me: failed program was:" >&5
21426sed 's/^/| /' conftest.$ac_ext >&5
21427
21428	ac_lo=`expr '(' $ac_mid ')' + 1`
21429fi
21430
21431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21432done
21433case $ac_lo in
21434?*) ac_cv_sizeof_long_long=$ac_lo;;
21435'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21436See \`config.log' for more details." >&5
21437echo "$as_me: error: cannot compute sizeof (long long)
21438See \`config.log' for more details." >&2;}
21439   { (exit 77); exit 77; }; } ;;
21440esac
21441else
21442  cat >conftest.$ac_ext <<_ACEOF
21443/* confdefs.h.  */
21444_ACEOF
21445cat confdefs.h >>conftest.$ac_ext
21446cat >>conftest.$ac_ext <<_ACEOF
21447/* end confdefs.h.  */
21448$ac_includes_default
21449		   typedef long long ac__type_sizeof_;
21450static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21451static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21452#include <stdio.h>
21453#include <stdlib.h>
21454int
21455main ()
21456{
21457
21458  FILE *f = fopen ("conftest.val", "w");
21459  if (! f)
21460    return 1;
21461  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21462    {
21463      long int i = longval ();
21464      if (i != ((long int) (sizeof (ac__type_sizeof_))))
21465	return 1;
21466      fprintf (f, "%ld\n", i);
21467    }
21468  else
21469    {
21470      unsigned long int i = ulongval ();
21471      if (i != ((long int) (sizeof (ac__type_sizeof_))))
21472	return 1;
21473      fprintf (f, "%lu\n", i);
21474    }
21475  return ferror (f) || fclose (f) != 0;
21476
21477  ;
21478  return 0;
21479}
21480_ACEOF
21481rm -f conftest$ac_exeext
21482if { (ac_try="$ac_link"
21483case "(($ac_try" in
21484  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21485  *) ac_try_echo=$ac_try;;
21486esac
21487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21488  (eval "$ac_link") 2>&5
21489  ac_status=$?
21490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21492  { (case "(($ac_try" in
21493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21494  *) ac_try_echo=$ac_try;;
21495esac
21496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21497  (eval "$ac_try") 2>&5
21498  ac_status=$?
21499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500  (exit $ac_status); }; }; then
21501  ac_cv_sizeof_long_long=`cat conftest.val`
21502else
21503  echo "$as_me: program exited with status $ac_status" >&5
21504echo "$as_me: failed program was:" >&5
21505sed 's/^/| /' conftest.$ac_ext >&5
21506
21507( exit $ac_status )
21508{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21509See \`config.log' for more details." >&5
21510echo "$as_me: error: cannot compute sizeof (long long)
21511See \`config.log' for more details." >&2;}
21512   { (exit 77); exit 77; }; }
21513fi
21514rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21515fi
21516rm -f conftest.val
21517else
21518  ac_cv_sizeof_long_long=0
21519fi
21520fi
21521{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21522echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
21523cat >>confdefs.h <<_ACEOF
21524#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21525_ACEOF
21526
21527
21528fi
21529
21530{ echo "$as_me:$LINENO: checking for long" >&5
21531echo $ECHO_N "checking for long... $ECHO_C" >&6; }
21532if test "${ac_cv_type_long+set}" = set; then
21533  echo $ECHO_N "(cached) $ECHO_C" >&6
21534else
21535  cat >conftest.$ac_ext <<_ACEOF
21536/* confdefs.h.  */
21537_ACEOF
21538cat confdefs.h >>conftest.$ac_ext
21539cat >>conftest.$ac_ext <<_ACEOF
21540/* end confdefs.h.  */
21541$ac_includes_default
21542typedef long ac__type_new_;
21543int
21544main ()
21545{
21546if ((ac__type_new_ *) 0)
21547  return 0;
21548if (sizeof (ac__type_new_))
21549  return 0;
21550  ;
21551  return 0;
21552}
21553_ACEOF
21554rm -f conftest.$ac_objext
21555if { (ac_try="$ac_compile"
21556case "(($ac_try" in
21557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21558  *) ac_try_echo=$ac_try;;
21559esac
21560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21561  (eval "$ac_compile") 2>conftest.er1
21562  ac_status=$?
21563  grep -v '^ *+' conftest.er1 >conftest.err
21564  rm -f conftest.er1
21565  cat conftest.err >&5
21566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21567  (exit $ac_status); } &&
21568	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21569  { (case "(($ac_try" in
21570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21571  *) ac_try_echo=$ac_try;;
21572esac
21573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21574  (eval "$ac_try") 2>&5
21575  ac_status=$?
21576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577  (exit $ac_status); }; } &&
21578	 { ac_try='test -s conftest.$ac_objext'
21579  { (case "(($ac_try" in
21580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21581  *) ac_try_echo=$ac_try;;
21582esac
21583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21584  (eval "$ac_try") 2>&5
21585  ac_status=$?
21586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587  (exit $ac_status); }; }; then
21588  ac_cv_type_long=yes
21589else
21590  echo "$as_me: failed program was:" >&5
21591sed 's/^/| /' conftest.$ac_ext >&5
21592
21593	ac_cv_type_long=no
21594fi
21595
21596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21597fi
21598{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
21599echo "${ECHO_T}$ac_cv_type_long" >&6; }
21600
21601{ echo "$as_me:$LINENO: checking size of long" >&5
21602echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
21603if test "${ac_cv_sizeof_long+set}" = set; then
21604  echo $ECHO_N "(cached) $ECHO_C" >&6
21605else
21606  if test "$ac_cv_type_long" = yes; then
21607  # The cast to long int works around a bug in the HP C Compiler
21608  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21609  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21610  # This bug is HP SR number 8606223364.
21611  if test "$cross_compiling" = yes; then
21612  # Depending upon the size, compute the lo and hi bounds.
21613cat >conftest.$ac_ext <<_ACEOF
21614/* confdefs.h.  */
21615_ACEOF
21616cat confdefs.h >>conftest.$ac_ext
21617cat >>conftest.$ac_ext <<_ACEOF
21618/* end confdefs.h.  */
21619$ac_includes_default
21620		   typedef long ac__type_sizeof_;
21621int
21622main ()
21623{
21624static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21625test_array [0] = 0
21626
21627  ;
21628  return 0;
21629}
21630_ACEOF
21631rm -f conftest.$ac_objext
21632if { (ac_try="$ac_compile"
21633case "(($ac_try" in
21634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21635  *) ac_try_echo=$ac_try;;
21636esac
21637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21638  (eval "$ac_compile") 2>conftest.er1
21639  ac_status=$?
21640  grep -v '^ *+' conftest.er1 >conftest.err
21641  rm -f conftest.er1
21642  cat conftest.err >&5
21643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644  (exit $ac_status); } &&
21645	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21646  { (case "(($ac_try" in
21647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21648  *) ac_try_echo=$ac_try;;
21649esac
21650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21651  (eval "$ac_try") 2>&5
21652  ac_status=$?
21653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21654  (exit $ac_status); }; } &&
21655	 { ac_try='test -s conftest.$ac_objext'
21656  { (case "(($ac_try" in
21657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21658  *) ac_try_echo=$ac_try;;
21659esac
21660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21661  (eval "$ac_try") 2>&5
21662  ac_status=$?
21663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21664  (exit $ac_status); }; }; then
21665  ac_lo=0 ac_mid=0
21666  while :; do
21667    cat >conftest.$ac_ext <<_ACEOF
21668/* confdefs.h.  */
21669_ACEOF
21670cat confdefs.h >>conftest.$ac_ext
21671cat >>conftest.$ac_ext <<_ACEOF
21672/* end confdefs.h.  */
21673$ac_includes_default
21674		   typedef long ac__type_sizeof_;
21675int
21676main ()
21677{
21678static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21679test_array [0] = 0
21680
21681  ;
21682  return 0;
21683}
21684_ACEOF
21685rm -f conftest.$ac_objext
21686if { (ac_try="$ac_compile"
21687case "(($ac_try" in
21688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21689  *) ac_try_echo=$ac_try;;
21690esac
21691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21692  (eval "$ac_compile") 2>conftest.er1
21693  ac_status=$?
21694  grep -v '^ *+' conftest.er1 >conftest.err
21695  rm -f conftest.er1
21696  cat conftest.err >&5
21697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698  (exit $ac_status); } &&
21699	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21700  { (case "(($ac_try" in
21701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21702  *) ac_try_echo=$ac_try;;
21703esac
21704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21705  (eval "$ac_try") 2>&5
21706  ac_status=$?
21707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708  (exit $ac_status); }; } &&
21709	 { ac_try='test -s conftest.$ac_objext'
21710  { (case "(($ac_try" in
21711  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21712  *) ac_try_echo=$ac_try;;
21713esac
21714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21715  (eval "$ac_try") 2>&5
21716  ac_status=$?
21717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718  (exit $ac_status); }; }; then
21719  ac_hi=$ac_mid; break
21720else
21721  echo "$as_me: failed program was:" >&5
21722sed 's/^/| /' conftest.$ac_ext >&5
21723
21724	ac_lo=`expr $ac_mid + 1`
21725			if test $ac_lo -le $ac_mid; then
21726			  ac_lo= ac_hi=
21727			  break
21728			fi
21729			ac_mid=`expr 2 '*' $ac_mid + 1`
21730fi
21731
21732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21733  done
21734else
21735  echo "$as_me: failed program was:" >&5
21736sed 's/^/| /' conftest.$ac_ext >&5
21737
21738	cat >conftest.$ac_ext <<_ACEOF
21739/* confdefs.h.  */
21740_ACEOF
21741cat confdefs.h >>conftest.$ac_ext
21742cat >>conftest.$ac_ext <<_ACEOF
21743/* end confdefs.h.  */
21744$ac_includes_default
21745		   typedef long ac__type_sizeof_;
21746int
21747main ()
21748{
21749static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21750test_array [0] = 0
21751
21752  ;
21753  return 0;
21754}
21755_ACEOF
21756rm -f conftest.$ac_objext
21757if { (ac_try="$ac_compile"
21758case "(($ac_try" in
21759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21760  *) ac_try_echo=$ac_try;;
21761esac
21762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21763  (eval "$ac_compile") 2>conftest.er1
21764  ac_status=$?
21765  grep -v '^ *+' conftest.er1 >conftest.err
21766  rm -f conftest.er1
21767  cat conftest.err >&5
21768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769  (exit $ac_status); } &&
21770	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21771  { (case "(($ac_try" in
21772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21773  *) ac_try_echo=$ac_try;;
21774esac
21775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21776  (eval "$ac_try") 2>&5
21777  ac_status=$?
21778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21779  (exit $ac_status); }; } &&
21780	 { ac_try='test -s conftest.$ac_objext'
21781  { (case "(($ac_try" in
21782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21783  *) ac_try_echo=$ac_try;;
21784esac
21785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21786  (eval "$ac_try") 2>&5
21787  ac_status=$?
21788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789  (exit $ac_status); }; }; then
21790  ac_hi=-1 ac_mid=-1
21791  while :; do
21792    cat >conftest.$ac_ext <<_ACEOF
21793/* confdefs.h.  */
21794_ACEOF
21795cat confdefs.h >>conftest.$ac_ext
21796cat >>conftest.$ac_ext <<_ACEOF
21797/* end confdefs.h.  */
21798$ac_includes_default
21799		   typedef long ac__type_sizeof_;
21800int
21801main ()
21802{
21803static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21804test_array [0] = 0
21805
21806  ;
21807  return 0;
21808}
21809_ACEOF
21810rm -f conftest.$ac_objext
21811if { (ac_try="$ac_compile"
21812case "(($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_compile") 2>conftest.er1
21818  ac_status=$?
21819  grep -v '^ *+' conftest.er1 >conftest.err
21820  rm -f conftest.er1
21821  cat conftest.err >&5
21822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21823  (exit $ac_status); } &&
21824	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21825  { (case "(($ac_try" in
21826  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21827  *) ac_try_echo=$ac_try;;
21828esac
21829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21830  (eval "$ac_try") 2>&5
21831  ac_status=$?
21832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833  (exit $ac_status); }; } &&
21834	 { ac_try='test -s conftest.$ac_objext'
21835  { (case "(($ac_try" in
21836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21837  *) ac_try_echo=$ac_try;;
21838esac
21839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21840  (eval "$ac_try") 2>&5
21841  ac_status=$?
21842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843  (exit $ac_status); }; }; then
21844  ac_lo=$ac_mid; break
21845else
21846  echo "$as_me: failed program was:" >&5
21847sed 's/^/| /' conftest.$ac_ext >&5
21848
21849	ac_hi=`expr '(' $ac_mid ')' - 1`
21850			if test $ac_mid -le $ac_hi; then
21851			  ac_lo= ac_hi=
21852			  break
21853			fi
21854			ac_mid=`expr 2 '*' $ac_mid`
21855fi
21856
21857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21858  done
21859else
21860  echo "$as_me: failed program was:" >&5
21861sed 's/^/| /' conftest.$ac_ext >&5
21862
21863	ac_lo= ac_hi=
21864fi
21865
21866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21867fi
21868
21869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21870# Binary search between lo and hi bounds.
21871while test "x$ac_lo" != "x$ac_hi"; do
21872  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21873  cat >conftest.$ac_ext <<_ACEOF
21874/* confdefs.h.  */
21875_ACEOF
21876cat confdefs.h >>conftest.$ac_ext
21877cat >>conftest.$ac_ext <<_ACEOF
21878/* end confdefs.h.  */
21879$ac_includes_default
21880		   typedef long ac__type_sizeof_;
21881int
21882main ()
21883{
21884static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21885test_array [0] = 0
21886
21887  ;
21888  return 0;
21889}
21890_ACEOF
21891rm -f conftest.$ac_objext
21892if { (ac_try="$ac_compile"
21893case "(($ac_try" in
21894  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21895  *) ac_try_echo=$ac_try;;
21896esac
21897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21898  (eval "$ac_compile") 2>conftest.er1
21899  ac_status=$?
21900  grep -v '^ *+' conftest.er1 >conftest.err
21901  rm -f conftest.er1
21902  cat conftest.err >&5
21903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21904  (exit $ac_status); } &&
21905	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21906  { (case "(($ac_try" in
21907  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21908  *) ac_try_echo=$ac_try;;
21909esac
21910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21911  (eval "$ac_try") 2>&5
21912  ac_status=$?
21913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914  (exit $ac_status); }; } &&
21915	 { ac_try='test -s conftest.$ac_objext'
21916  { (case "(($ac_try" in
21917  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21918  *) ac_try_echo=$ac_try;;
21919esac
21920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21921  (eval "$ac_try") 2>&5
21922  ac_status=$?
21923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924  (exit $ac_status); }; }; then
21925  ac_hi=$ac_mid
21926else
21927  echo "$as_me: failed program was:" >&5
21928sed 's/^/| /' conftest.$ac_ext >&5
21929
21930	ac_lo=`expr '(' $ac_mid ')' + 1`
21931fi
21932
21933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21934done
21935case $ac_lo in
21936?*) ac_cv_sizeof_long=$ac_lo;;
21937'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21938See \`config.log' for more details." >&5
21939echo "$as_me: error: cannot compute sizeof (long)
21940See \`config.log' for more details." >&2;}
21941   { (exit 77); exit 77; }; } ;;
21942esac
21943else
21944  cat >conftest.$ac_ext <<_ACEOF
21945/* confdefs.h.  */
21946_ACEOF
21947cat confdefs.h >>conftest.$ac_ext
21948cat >>conftest.$ac_ext <<_ACEOF
21949/* end confdefs.h.  */
21950$ac_includes_default
21951		   typedef long ac__type_sizeof_;
21952static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21953static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21954#include <stdio.h>
21955#include <stdlib.h>
21956int
21957main ()
21958{
21959
21960  FILE *f = fopen ("conftest.val", "w");
21961  if (! f)
21962    return 1;
21963  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21964    {
21965      long int i = longval ();
21966      if (i != ((long int) (sizeof (ac__type_sizeof_))))
21967	return 1;
21968      fprintf (f, "%ld\n", i);
21969    }
21970  else
21971    {
21972      unsigned long int i = ulongval ();
21973      if (i != ((long int) (sizeof (ac__type_sizeof_))))
21974	return 1;
21975      fprintf (f, "%lu\n", i);
21976    }
21977  return ferror (f) || fclose (f) != 0;
21978
21979  ;
21980  return 0;
21981}
21982_ACEOF
21983rm -f conftest$ac_exeext
21984if { (ac_try="$ac_link"
21985case "(($ac_try" in
21986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21987  *) ac_try_echo=$ac_try;;
21988esac
21989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21990  (eval "$ac_link") 2>&5
21991  ac_status=$?
21992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21994  { (case "(($ac_try" in
21995  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21996  *) ac_try_echo=$ac_try;;
21997esac
21998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21999  (eval "$ac_try") 2>&5
22000  ac_status=$?
22001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22002  (exit $ac_status); }; }; then
22003  ac_cv_sizeof_long=`cat conftest.val`
22004else
22005  echo "$as_me: program exited with status $ac_status" >&5
22006echo "$as_me: failed program was:" >&5
22007sed 's/^/| /' conftest.$ac_ext >&5
22008
22009( exit $ac_status )
22010{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22011See \`config.log' for more details." >&5
22012echo "$as_me: error: cannot compute sizeof (long)
22013See \`config.log' for more details." >&2;}
22014   { (exit 77); exit 77; }; }
22015fi
22016rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22017fi
22018rm -f conftest.val
22019else
22020  ac_cv_sizeof_long=0
22021fi
22022fi
22023{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
22024echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
22025cat >>confdefs.h <<_ACEOF
22026#define SIZEOF_LONG $ac_cv_sizeof_long
22027_ACEOF
22028
22029
22030if test "x${ac_cv_sizeof_long}" = "x8"; then
22031  host64=true
22032  BFD_HOST_64BIT_LONG=1
22033  test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
22034  test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
22035elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
22036  test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
22037  test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
22038fi
22039
22040if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
22041  BFD_HOST_64_BIT_DEFINED=1
22042  BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
22043  BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
22044fi
22045
22046
22047
22048
22049
22050
22051
22052# Put a plausible default for CC_FOR_BUILD in Makefile.
22053if test -z "$CC_FOR_BUILD"; then
22054  if test "x$cross_compiling" = "xno"; then
22055    CC_FOR_BUILD='$(CC)'
22056  else
22057    CC_FOR_BUILD='$(HOSTCC)'
22058  fi
22059fi
22060
22061# Also set EXEEXT_FOR_BUILD.
22062if test "x$cross_compiling" = "xno"; then
22063  EXEEXT_FOR_BUILD='$(EXEEXT)'
22064else
22065  { echo "$as_me:$LINENO: checking for build system executable suffix" >&5
22066echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6; }
22067if test "${bfd_cv_build_exeext+set}" = set; then
22068  echo $ECHO_N "(cached) $ECHO_C" >&6
22069else
22070  rm -f conftest*
22071     echo 'int main () { return 0; }' > conftest.c
22072     bfd_cv_build_exeext=
22073     ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
22074     for file in conftest.*; do
22075       case $file in
22076       *.c | *.o | *.obj | *.ilk | *.pdb) ;;
22077       *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
22078       esac
22079     done
22080     rm -f conftest*
22081     test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
22082fi
22083{ echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
22084echo "${ECHO_T}$bfd_cv_build_exeext" >&6; }
22085  EXEEXT_FOR_BUILD=""
22086  test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
22087fi
22088
22089
22090
22091
22092
22093
22094
22095
22096for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
22097do
22098as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22099if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22100  { echo "$as_me:$LINENO: checking for $ac_header" >&5
22101echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22102if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22103  echo $ECHO_N "(cached) $ECHO_C" >&6
22104fi
22105ac_res=`eval echo '${'$as_ac_Header'}'`
22106	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22107echo "${ECHO_T}$ac_res" >&6; }
22108else
22109  # Is the header compilable?
22110{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22111echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22112cat >conftest.$ac_ext <<_ACEOF
22113/* confdefs.h.  */
22114_ACEOF
22115cat confdefs.h >>conftest.$ac_ext
22116cat >>conftest.$ac_ext <<_ACEOF
22117/* end confdefs.h.  */
22118$ac_includes_default
22119#include <$ac_header>
22120_ACEOF
22121rm -f conftest.$ac_objext
22122if { (ac_try="$ac_compile"
22123case "(($ac_try" in
22124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22125  *) ac_try_echo=$ac_try;;
22126esac
22127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22128  (eval "$ac_compile") 2>conftest.er1
22129  ac_status=$?
22130  grep -v '^ *+' conftest.er1 >conftest.err
22131  rm -f conftest.er1
22132  cat conftest.err >&5
22133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134  (exit $ac_status); } &&
22135	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22136  { (case "(($ac_try" in
22137  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22138  *) ac_try_echo=$ac_try;;
22139esac
22140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22141  (eval "$ac_try") 2>&5
22142  ac_status=$?
22143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144  (exit $ac_status); }; } &&
22145	 { ac_try='test -s conftest.$ac_objext'
22146  { (case "(($ac_try" in
22147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22148  *) ac_try_echo=$ac_try;;
22149esac
22150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22151  (eval "$ac_try") 2>&5
22152  ac_status=$?
22153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22154  (exit $ac_status); }; }; then
22155  ac_header_compiler=yes
22156else
22157  echo "$as_me: failed program was:" >&5
22158sed 's/^/| /' conftest.$ac_ext >&5
22159
22160	ac_header_compiler=no
22161fi
22162
22163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22164{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22165echo "${ECHO_T}$ac_header_compiler" >&6; }
22166
22167# Is the header present?
22168{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22169echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22170cat >conftest.$ac_ext <<_ACEOF
22171/* confdefs.h.  */
22172_ACEOF
22173cat confdefs.h >>conftest.$ac_ext
22174cat >>conftest.$ac_ext <<_ACEOF
22175/* end confdefs.h.  */
22176#include <$ac_header>
22177_ACEOF
22178if { (ac_try="$ac_cpp conftest.$ac_ext"
22179case "(($ac_try" in
22180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22181  *) ac_try_echo=$ac_try;;
22182esac
22183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22184  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22185  ac_status=$?
22186  grep -v '^ *+' conftest.er1 >conftest.err
22187  rm -f conftest.er1
22188  cat conftest.err >&5
22189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22190  (exit $ac_status); } >/dev/null; then
22191  if test -s conftest.err; then
22192    ac_cpp_err=$ac_c_preproc_warn_flag
22193    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22194  else
22195    ac_cpp_err=
22196  fi
22197else
22198  ac_cpp_err=yes
22199fi
22200if test -z "$ac_cpp_err"; then
22201  ac_header_preproc=yes
22202else
22203  echo "$as_me: failed program was:" >&5
22204sed 's/^/| /' conftest.$ac_ext >&5
22205
22206  ac_header_preproc=no
22207fi
22208
22209rm -f conftest.err conftest.$ac_ext
22210{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22211echo "${ECHO_T}$ac_header_preproc" >&6; }
22212
22213# So?  What about this header?
22214case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22215  yes:no: )
22216    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22217echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22218    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22219echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22220    ac_header_preproc=yes
22221    ;;
22222  no:yes:* )
22223    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22224echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22225    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22226echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22227    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22228echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22229    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22230echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22231    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22232echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22233    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22234echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22235
22236    ;;
22237esac
22238{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22239echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22240if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22241  echo $ECHO_N "(cached) $ECHO_C" >&6
22242else
22243  eval "$as_ac_Header=\$ac_header_preproc"
22244fi
22245ac_res=`eval echo '${'$as_ac_Header'}'`
22246	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22247echo "${ECHO_T}$ac_res" >&6; }
22248
22249fi
22250if test `eval echo '${'$as_ac_Header'}'` = yes; then
22251  cat >>confdefs.h <<_ACEOF
22252#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22253_ACEOF
22254
22255fi
22256
22257done
22258
22259
22260
22261
22262for ac_header in fcntl.h sys/file.h sys/time.h
22263do
22264as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22265if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22266  { echo "$as_me:$LINENO: checking for $ac_header" >&5
22267echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22268if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22269  echo $ECHO_N "(cached) $ECHO_C" >&6
22270fi
22271ac_res=`eval echo '${'$as_ac_Header'}'`
22272	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22273echo "${ECHO_T}$ac_res" >&6; }
22274else
22275  # Is the header compilable?
22276{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22277echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22278cat >conftest.$ac_ext <<_ACEOF
22279/* confdefs.h.  */
22280_ACEOF
22281cat confdefs.h >>conftest.$ac_ext
22282cat >>conftest.$ac_ext <<_ACEOF
22283/* end confdefs.h.  */
22284$ac_includes_default
22285#include <$ac_header>
22286_ACEOF
22287rm -f conftest.$ac_objext
22288if { (ac_try="$ac_compile"
22289case "(($ac_try" in
22290  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22291  *) ac_try_echo=$ac_try;;
22292esac
22293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22294  (eval "$ac_compile") 2>conftest.er1
22295  ac_status=$?
22296  grep -v '^ *+' conftest.er1 >conftest.err
22297  rm -f conftest.er1
22298  cat conftest.err >&5
22299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22300  (exit $ac_status); } &&
22301	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22302  { (case "(($ac_try" in
22303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22304  *) ac_try_echo=$ac_try;;
22305esac
22306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22307  (eval "$ac_try") 2>&5
22308  ac_status=$?
22309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310  (exit $ac_status); }; } &&
22311	 { ac_try='test -s conftest.$ac_objext'
22312  { (case "(($ac_try" in
22313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22314  *) ac_try_echo=$ac_try;;
22315esac
22316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22317  (eval "$ac_try") 2>&5
22318  ac_status=$?
22319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320  (exit $ac_status); }; }; then
22321  ac_header_compiler=yes
22322else
22323  echo "$as_me: failed program was:" >&5
22324sed 's/^/| /' conftest.$ac_ext >&5
22325
22326	ac_header_compiler=no
22327fi
22328
22329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22330{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22331echo "${ECHO_T}$ac_header_compiler" >&6; }
22332
22333# Is the header present?
22334{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22335echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22336cat >conftest.$ac_ext <<_ACEOF
22337/* confdefs.h.  */
22338_ACEOF
22339cat confdefs.h >>conftest.$ac_ext
22340cat >>conftest.$ac_ext <<_ACEOF
22341/* end confdefs.h.  */
22342#include <$ac_header>
22343_ACEOF
22344if { (ac_try="$ac_cpp conftest.$ac_ext"
22345case "(($ac_try" in
22346  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22347  *) ac_try_echo=$ac_try;;
22348esac
22349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22350  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22351  ac_status=$?
22352  grep -v '^ *+' conftest.er1 >conftest.err
22353  rm -f conftest.er1
22354  cat conftest.err >&5
22355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22356  (exit $ac_status); } >/dev/null; then
22357  if test -s conftest.err; then
22358    ac_cpp_err=$ac_c_preproc_warn_flag
22359    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22360  else
22361    ac_cpp_err=
22362  fi
22363else
22364  ac_cpp_err=yes
22365fi
22366if test -z "$ac_cpp_err"; then
22367  ac_header_preproc=yes
22368else
22369  echo "$as_me: failed program was:" >&5
22370sed 's/^/| /' conftest.$ac_ext >&5
22371
22372  ac_header_preproc=no
22373fi
22374
22375rm -f conftest.err conftest.$ac_ext
22376{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22377echo "${ECHO_T}$ac_header_preproc" >&6; }
22378
22379# So?  What about this header?
22380case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22381  yes:no: )
22382    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22383echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22384    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22385echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22386    ac_header_preproc=yes
22387    ;;
22388  no:yes:* )
22389    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22390echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22391    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22392echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22393    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22394echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22395    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22396echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22397    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22398echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22399    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22400echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22401
22402    ;;
22403esac
22404{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22405echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22406if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22407  echo $ECHO_N "(cached) $ECHO_C" >&6
22408else
22409  eval "$as_ac_Header=\$ac_header_preproc"
22410fi
22411ac_res=`eval echo '${'$as_ac_Header'}'`
22412	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22413echo "${ECHO_T}$ac_res" >&6; }
22414
22415fi
22416if test `eval echo '${'$as_ac_Header'}'` = yes; then
22417  cat >>confdefs.h <<_ACEOF
22418#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22419_ACEOF
22420
22421fi
22422
22423done
22424
22425{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22426echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
22427if test "${ac_cv_header_time+set}" = set; then
22428  echo $ECHO_N "(cached) $ECHO_C" >&6
22429else
22430  cat >conftest.$ac_ext <<_ACEOF
22431/* confdefs.h.  */
22432_ACEOF
22433cat confdefs.h >>conftest.$ac_ext
22434cat >>conftest.$ac_ext <<_ACEOF
22435/* end confdefs.h.  */
22436#include <sys/types.h>
22437#include <sys/time.h>
22438#include <time.h>
22439
22440int
22441main ()
22442{
22443if ((struct tm *) 0)
22444return 0;
22445  ;
22446  return 0;
22447}
22448_ACEOF
22449rm -f conftest.$ac_objext
22450if { (ac_try="$ac_compile"
22451case "(($ac_try" in
22452  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22453  *) ac_try_echo=$ac_try;;
22454esac
22455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22456  (eval "$ac_compile") 2>conftest.er1
22457  ac_status=$?
22458  grep -v '^ *+' conftest.er1 >conftest.err
22459  rm -f conftest.er1
22460  cat conftest.err >&5
22461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462  (exit $ac_status); } &&
22463	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22464  { (case "(($ac_try" in
22465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22466  *) ac_try_echo=$ac_try;;
22467esac
22468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22469  (eval "$ac_try") 2>&5
22470  ac_status=$?
22471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22472  (exit $ac_status); }; } &&
22473	 { ac_try='test -s conftest.$ac_objext'
22474  { (case "(($ac_try" in
22475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22476  *) ac_try_echo=$ac_try;;
22477esac
22478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22479  (eval "$ac_try") 2>&5
22480  ac_status=$?
22481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22482  (exit $ac_status); }; }; then
22483  ac_cv_header_time=yes
22484else
22485  echo "$as_me: failed program was:" >&5
22486sed 's/^/| /' conftest.$ac_ext >&5
22487
22488	ac_cv_header_time=no
22489fi
22490
22491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22492fi
22493{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22494echo "${ECHO_T}$ac_cv_header_time" >&6; }
22495if test $ac_cv_header_time = yes; then
22496
22497cat >>confdefs.h <<\_ACEOF
22498#define TIME_WITH_SYS_TIME 1
22499_ACEOF
22500
22501fi
22502
22503
22504
22505
22506
22507
22508ac_header_dirent=no
22509for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22510  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22511{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22512echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
22513if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22514  echo $ECHO_N "(cached) $ECHO_C" >&6
22515else
22516  cat >conftest.$ac_ext <<_ACEOF
22517/* confdefs.h.  */
22518_ACEOF
22519cat confdefs.h >>conftest.$ac_ext
22520cat >>conftest.$ac_ext <<_ACEOF
22521/* end confdefs.h.  */
22522#include <sys/types.h>
22523#include <$ac_hdr>
22524
22525int
22526main ()
22527{
22528if ((DIR *) 0)
22529return 0;
22530  ;
22531  return 0;
22532}
22533_ACEOF
22534rm -f conftest.$ac_objext
22535if { (ac_try="$ac_compile"
22536case "(($ac_try" in
22537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22538  *) ac_try_echo=$ac_try;;
22539esac
22540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22541  (eval "$ac_compile") 2>conftest.er1
22542  ac_status=$?
22543  grep -v '^ *+' conftest.er1 >conftest.err
22544  rm -f conftest.er1
22545  cat conftest.err >&5
22546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22547  (exit $ac_status); } &&
22548	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22549  { (case "(($ac_try" in
22550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22551  *) ac_try_echo=$ac_try;;
22552esac
22553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22554  (eval "$ac_try") 2>&5
22555  ac_status=$?
22556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557  (exit $ac_status); }; } &&
22558	 { ac_try='test -s conftest.$ac_objext'
22559  { (case "(($ac_try" in
22560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22561  *) ac_try_echo=$ac_try;;
22562esac
22563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22564  (eval "$ac_try") 2>&5
22565  ac_status=$?
22566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567  (exit $ac_status); }; }; then
22568  eval "$as_ac_Header=yes"
22569else
22570  echo "$as_me: failed program was:" >&5
22571sed 's/^/| /' conftest.$ac_ext >&5
22572
22573	eval "$as_ac_Header=no"
22574fi
22575
22576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22577fi
22578ac_res=`eval echo '${'$as_ac_Header'}'`
22579	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22580echo "${ECHO_T}$ac_res" >&6; }
22581if test `eval echo '${'$as_ac_Header'}'` = yes; then
22582  cat >>confdefs.h <<_ACEOF
22583#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22584_ACEOF
22585
22586ac_header_dirent=$ac_hdr; break
22587fi
22588
22589done
22590# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22591if test $ac_header_dirent = dirent.h; then
22592  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22593echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22594if test "${ac_cv_search_opendir+set}" = set; then
22595  echo $ECHO_N "(cached) $ECHO_C" >&6
22596else
22597  ac_func_search_save_LIBS=$LIBS
22598cat >conftest.$ac_ext <<_ACEOF
22599/* confdefs.h.  */
22600_ACEOF
22601cat confdefs.h >>conftest.$ac_ext
22602cat >>conftest.$ac_ext <<_ACEOF
22603/* end confdefs.h.  */
22604
22605/* Override any GCC internal prototype to avoid an error.
22606   Use char because int might match the return type of a GCC
22607   builtin and then its argument prototype would still apply.  */
22608#ifdef __cplusplus
22609extern "C"
22610#endif
22611char opendir ();
22612int
22613main ()
22614{
22615return opendir ();
22616  ;
22617  return 0;
22618}
22619_ACEOF
22620for ac_lib in '' dir; do
22621  if test -z "$ac_lib"; then
22622    ac_res="none required"
22623  else
22624    ac_res=-l$ac_lib
22625    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22626  fi
22627  rm -f conftest.$ac_objext conftest$ac_exeext
22628if { (ac_try="$ac_link"
22629case "(($ac_try" in
22630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22631  *) ac_try_echo=$ac_try;;
22632esac
22633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22634  (eval "$ac_link") 2>conftest.er1
22635  ac_status=$?
22636  grep -v '^ *+' conftest.er1 >conftest.err
22637  rm -f conftest.er1
22638  cat conftest.err >&5
22639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22640  (exit $ac_status); } &&
22641	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22642  { (case "(($ac_try" in
22643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22644  *) ac_try_echo=$ac_try;;
22645esac
22646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22647  (eval "$ac_try") 2>&5
22648  ac_status=$?
22649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22650  (exit $ac_status); }; } &&
22651	 { ac_try='test -s conftest$ac_exeext'
22652  { (case "(($ac_try" in
22653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22654  *) ac_try_echo=$ac_try;;
22655esac
22656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22657  (eval "$ac_try") 2>&5
22658  ac_status=$?
22659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22660  (exit $ac_status); }; }; then
22661  ac_cv_search_opendir=$ac_res
22662else
22663  echo "$as_me: failed program was:" >&5
22664sed 's/^/| /' conftest.$ac_ext >&5
22665
22666
22667fi
22668
22669rm -f core conftest.err conftest.$ac_objext \
22670      conftest$ac_exeext
22671  if test "${ac_cv_search_opendir+set}" = set; then
22672  break
22673fi
22674done
22675if test "${ac_cv_search_opendir+set}" = set; then
22676  :
22677else
22678  ac_cv_search_opendir=no
22679fi
22680rm conftest.$ac_ext
22681LIBS=$ac_func_search_save_LIBS
22682fi
22683{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22684echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22685ac_res=$ac_cv_search_opendir
22686if test "$ac_res" != no; then
22687  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22688
22689fi
22690
22691else
22692  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22693echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22694if test "${ac_cv_search_opendir+set}" = set; then
22695  echo $ECHO_N "(cached) $ECHO_C" >&6
22696else
22697  ac_func_search_save_LIBS=$LIBS
22698cat >conftest.$ac_ext <<_ACEOF
22699/* confdefs.h.  */
22700_ACEOF
22701cat confdefs.h >>conftest.$ac_ext
22702cat >>conftest.$ac_ext <<_ACEOF
22703/* end confdefs.h.  */
22704
22705/* Override any GCC internal prototype to avoid an error.
22706   Use char because int might match the return type of a GCC
22707   builtin and then its argument prototype would still apply.  */
22708#ifdef __cplusplus
22709extern "C"
22710#endif
22711char opendir ();
22712int
22713main ()
22714{
22715return opendir ();
22716  ;
22717  return 0;
22718}
22719_ACEOF
22720for ac_lib in '' x; do
22721  if test -z "$ac_lib"; then
22722    ac_res="none required"
22723  else
22724    ac_res=-l$ac_lib
22725    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22726  fi
22727  rm -f conftest.$ac_objext conftest$ac_exeext
22728if { (ac_try="$ac_link"
22729case "(($ac_try" in
22730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22731  *) ac_try_echo=$ac_try;;
22732esac
22733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22734  (eval "$ac_link") 2>conftest.er1
22735  ac_status=$?
22736  grep -v '^ *+' conftest.er1 >conftest.err
22737  rm -f conftest.er1
22738  cat conftest.err >&5
22739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22740  (exit $ac_status); } &&
22741	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22742  { (case "(($ac_try" in
22743  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22744  *) ac_try_echo=$ac_try;;
22745esac
22746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22747  (eval "$ac_try") 2>&5
22748  ac_status=$?
22749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750  (exit $ac_status); }; } &&
22751	 { ac_try='test -s conftest$ac_exeext'
22752  { (case "(($ac_try" in
22753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22754  *) ac_try_echo=$ac_try;;
22755esac
22756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22757  (eval "$ac_try") 2>&5
22758  ac_status=$?
22759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22760  (exit $ac_status); }; }; then
22761  ac_cv_search_opendir=$ac_res
22762else
22763  echo "$as_me: failed program was:" >&5
22764sed 's/^/| /' conftest.$ac_ext >&5
22765
22766
22767fi
22768
22769rm -f core conftest.err conftest.$ac_objext \
22770      conftest$ac_exeext
22771  if test "${ac_cv_search_opendir+set}" = set; then
22772  break
22773fi
22774done
22775if test "${ac_cv_search_opendir+set}" = set; then
22776  :
22777else
22778  ac_cv_search_opendir=no
22779fi
22780rm conftest.$ac_ext
22781LIBS=$ac_func_search_save_LIBS
22782fi
22783{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22784echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22785ac_res=$ac_cv_search_opendir
22786if test "$ac_res" != no; then
22787  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22788
22789fi
22790
22791fi
22792
22793{ echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
22794echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6; }
22795if test "${gcc_cv_header_string+set}" = set; then
22796  echo $ECHO_N "(cached) $ECHO_C" >&6
22797else
22798  cat >conftest.$ac_ext <<_ACEOF
22799/* confdefs.h.  */
22800_ACEOF
22801cat confdefs.h >>conftest.$ac_ext
22802cat >>conftest.$ac_ext <<_ACEOF
22803/* end confdefs.h.  */
22804#include <string.h>
22805#include <strings.h>
22806int
22807main ()
22808{
22809
22810  ;
22811  return 0;
22812}
22813_ACEOF
22814rm -f conftest.$ac_objext
22815if { (ac_try="$ac_compile"
22816case "(($ac_try" in
22817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22818  *) ac_try_echo=$ac_try;;
22819esac
22820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22821  (eval "$ac_compile") 2>conftest.er1
22822  ac_status=$?
22823  grep -v '^ *+' conftest.er1 >conftest.err
22824  rm -f conftest.er1
22825  cat conftest.err >&5
22826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22827  (exit $ac_status); } &&
22828	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22829  { (case "(($ac_try" in
22830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22831  *) ac_try_echo=$ac_try;;
22832esac
22833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22834  (eval "$ac_try") 2>&5
22835  ac_status=$?
22836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22837  (exit $ac_status); }; } &&
22838	 { ac_try='test -s conftest.$ac_objext'
22839  { (case "(($ac_try" in
22840  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22841  *) ac_try_echo=$ac_try;;
22842esac
22843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22844  (eval "$ac_try") 2>&5
22845  ac_status=$?
22846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22847  (exit $ac_status); }; }; then
22848  gcc_cv_header_string=yes
22849else
22850  echo "$as_me: failed program was:" >&5
22851sed 's/^/| /' conftest.$ac_ext >&5
22852
22853	gcc_cv_header_string=no
22854fi
22855
22856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22857fi
22858{ echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
22859echo "${ECHO_T}$gcc_cv_header_string" >&6; }
22860if test $gcc_cv_header_string = yes; then
22861
22862cat >>confdefs.h <<\_ACEOF
22863#define STRING_WITH_STRINGS 1
22864_ACEOF
22865
22866fi
22867
22868
22869
22870
22871
22872
22873
22874
22875for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
22876do
22877as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22878{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22879echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22880if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22881  echo $ECHO_N "(cached) $ECHO_C" >&6
22882else
22883  cat >conftest.$ac_ext <<_ACEOF
22884/* confdefs.h.  */
22885_ACEOF
22886cat confdefs.h >>conftest.$ac_ext
22887cat >>conftest.$ac_ext <<_ACEOF
22888/* end confdefs.h.  */
22889/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22890   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22891#define $ac_func innocuous_$ac_func
22892
22893/* System header to define __stub macros and hopefully few prototypes,
22894    which can conflict with char $ac_func (); below.
22895    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22896    <limits.h> exists even on freestanding compilers.  */
22897
22898#ifdef __STDC__
22899# include <limits.h>
22900#else
22901# include <assert.h>
22902#endif
22903
22904#undef $ac_func
22905
22906/* Override any GCC internal prototype to avoid an error.
22907   Use char because int might match the return type of a GCC
22908   builtin and then its argument prototype would still apply.  */
22909#ifdef __cplusplus
22910extern "C"
22911#endif
22912char $ac_func ();
22913/* The GNU C library defines this for functions which it implements
22914    to always fail with ENOSYS.  Some functions are actually named
22915    something starting with __ and the normal name is an alias.  */
22916#if defined __stub_$ac_func || defined __stub___$ac_func
22917choke me
22918#endif
22919
22920int
22921main ()
22922{
22923return $ac_func ();
22924  ;
22925  return 0;
22926}
22927_ACEOF
22928rm -f conftest.$ac_objext conftest$ac_exeext
22929if { (ac_try="$ac_link"
22930case "(($ac_try" in
22931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22932  *) ac_try_echo=$ac_try;;
22933esac
22934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22935  (eval "$ac_link") 2>conftest.er1
22936  ac_status=$?
22937  grep -v '^ *+' conftest.er1 >conftest.err
22938  rm -f conftest.er1
22939  cat conftest.err >&5
22940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22941  (exit $ac_status); } &&
22942	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22943  { (case "(($ac_try" in
22944  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22945  *) ac_try_echo=$ac_try;;
22946esac
22947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22948  (eval "$ac_try") 2>&5
22949  ac_status=$?
22950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22951  (exit $ac_status); }; } &&
22952	 { ac_try='test -s conftest$ac_exeext'
22953  { (case "(($ac_try" in
22954  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22955  *) ac_try_echo=$ac_try;;
22956esac
22957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22958  (eval "$ac_try") 2>&5
22959  ac_status=$?
22960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22961  (exit $ac_status); }; }; then
22962  eval "$as_ac_var=yes"
22963else
22964  echo "$as_me: failed program was:" >&5
22965sed 's/^/| /' conftest.$ac_ext >&5
22966
22967	eval "$as_ac_var=no"
22968fi
22969
22970rm -f core conftest.err conftest.$ac_objext \
22971      conftest$ac_exeext conftest.$ac_ext
22972fi
22973ac_res=`eval echo '${'$as_ac_var'}'`
22974	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22975echo "${ECHO_T}$ac_res" >&6; }
22976if test `eval echo '${'$as_ac_var'}'` = yes; then
22977  cat >>confdefs.h <<_ACEOF
22978#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22979_ACEOF
22980
22981fi
22982done
22983
22984
22985for ac_func in strtoull
22986do
22987as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22988{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22989echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22990if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22991  echo $ECHO_N "(cached) $ECHO_C" >&6
22992else
22993  cat >conftest.$ac_ext <<_ACEOF
22994/* confdefs.h.  */
22995_ACEOF
22996cat confdefs.h >>conftest.$ac_ext
22997cat >>conftest.$ac_ext <<_ACEOF
22998/* end confdefs.h.  */
22999/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23000   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23001#define $ac_func innocuous_$ac_func
23002
23003/* System header to define __stub macros and hopefully few prototypes,
23004    which can conflict with char $ac_func (); below.
23005    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23006    <limits.h> exists even on freestanding compilers.  */
23007
23008#ifdef __STDC__
23009# include <limits.h>
23010#else
23011# include <assert.h>
23012#endif
23013
23014#undef $ac_func
23015
23016/* Override any GCC internal prototype to avoid an error.
23017   Use char because int might match the return type of a GCC
23018   builtin and then its argument prototype would still apply.  */
23019#ifdef __cplusplus
23020extern "C"
23021#endif
23022char $ac_func ();
23023/* The GNU C library defines this for functions which it implements
23024    to always fail with ENOSYS.  Some functions are actually named
23025    something starting with __ and the normal name is an alias.  */
23026#if defined __stub_$ac_func || defined __stub___$ac_func
23027choke me
23028#endif
23029
23030int
23031main ()
23032{
23033return $ac_func ();
23034  ;
23035  return 0;
23036}
23037_ACEOF
23038rm -f conftest.$ac_objext conftest$ac_exeext
23039if { (ac_try="$ac_link"
23040case "(($ac_try" in
23041  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23042  *) ac_try_echo=$ac_try;;
23043esac
23044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23045  (eval "$ac_link") 2>conftest.er1
23046  ac_status=$?
23047  grep -v '^ *+' conftest.er1 >conftest.err
23048  rm -f conftest.er1
23049  cat conftest.err >&5
23050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051  (exit $ac_status); } &&
23052	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23053  { (case "(($ac_try" in
23054  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23055  *) ac_try_echo=$ac_try;;
23056esac
23057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23058  (eval "$ac_try") 2>&5
23059  ac_status=$?
23060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23061  (exit $ac_status); }; } &&
23062	 { ac_try='test -s conftest$ac_exeext'
23063  { (case "(($ac_try" in
23064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23065  *) ac_try_echo=$ac_try;;
23066esac
23067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23068  (eval "$ac_try") 2>&5
23069  ac_status=$?
23070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23071  (exit $ac_status); }; }; then
23072  eval "$as_ac_var=yes"
23073else
23074  echo "$as_me: failed program was:" >&5
23075sed 's/^/| /' conftest.$ac_ext >&5
23076
23077	eval "$as_ac_var=no"
23078fi
23079
23080rm -f core conftest.err conftest.$ac_objext \
23081      conftest$ac_exeext conftest.$ac_ext
23082fi
23083ac_res=`eval echo '${'$as_ac_var'}'`
23084	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23085echo "${ECHO_T}$ac_res" >&6; }
23086if test `eval echo '${'$as_ac_var'}'` = yes; then
23087  cat >>confdefs.h <<_ACEOF
23088#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23089_ACEOF
23090
23091fi
23092done
23093
23094
23095{ echo "$as_me:$LINENO: checking whether basename is declared" >&5
23096echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6; }
23097if test "${ac_cv_have_decl_basename+set}" = set; then
23098  echo $ECHO_N "(cached) $ECHO_C" >&6
23099else
23100  cat >conftest.$ac_ext <<_ACEOF
23101/* confdefs.h.  */
23102_ACEOF
23103cat confdefs.h >>conftest.$ac_ext
23104cat >>conftest.$ac_ext <<_ACEOF
23105/* end confdefs.h.  */
23106$ac_includes_default
23107int
23108main ()
23109{
23110#ifndef basename
23111  char *p = (char *) basename;
23112  return !p;
23113#endif
23114
23115  ;
23116  return 0;
23117}
23118_ACEOF
23119rm -f conftest.$ac_objext
23120if { (ac_try="$ac_compile"
23121case "(($ac_try" in
23122  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23123  *) ac_try_echo=$ac_try;;
23124esac
23125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23126  (eval "$ac_compile") 2>conftest.er1
23127  ac_status=$?
23128  grep -v '^ *+' conftest.er1 >conftest.err
23129  rm -f conftest.er1
23130  cat conftest.err >&5
23131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23132  (exit $ac_status); } &&
23133	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23134  { (case "(($ac_try" in
23135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23136  *) ac_try_echo=$ac_try;;
23137esac
23138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23139  (eval "$ac_try") 2>&5
23140  ac_status=$?
23141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142  (exit $ac_status); }; } &&
23143	 { ac_try='test -s conftest.$ac_objext'
23144  { (case "(($ac_try" in
23145  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23146  *) ac_try_echo=$ac_try;;
23147esac
23148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23149  (eval "$ac_try") 2>&5
23150  ac_status=$?
23151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152  (exit $ac_status); }; }; then
23153  ac_cv_have_decl_basename=yes
23154else
23155  echo "$as_me: failed program was:" >&5
23156sed 's/^/| /' conftest.$ac_ext >&5
23157
23158	ac_cv_have_decl_basename=no
23159fi
23160
23161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23162fi
23163{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
23164echo "${ECHO_T}$ac_cv_have_decl_basename" >&6; }
23165if test $ac_cv_have_decl_basename = yes; then
23166
23167cat >>confdefs.h <<_ACEOF
23168#define HAVE_DECL_BASENAME 1
23169_ACEOF
23170
23171
23172else
23173  cat >>confdefs.h <<_ACEOF
23174#define HAVE_DECL_BASENAME 0
23175_ACEOF
23176
23177
23178fi
23179
23180
23181{ echo "$as_me:$LINENO: checking whether ftello is declared" >&5
23182echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6; }
23183if test "${ac_cv_have_decl_ftello+set}" = set; then
23184  echo $ECHO_N "(cached) $ECHO_C" >&6
23185else
23186  cat >conftest.$ac_ext <<_ACEOF
23187/* confdefs.h.  */
23188_ACEOF
23189cat confdefs.h >>conftest.$ac_ext
23190cat >>conftest.$ac_ext <<_ACEOF
23191/* end confdefs.h.  */
23192$ac_includes_default
23193int
23194main ()
23195{
23196#ifndef ftello
23197  char *p = (char *) ftello;
23198  return !p;
23199#endif
23200
23201  ;
23202  return 0;
23203}
23204_ACEOF
23205rm -f conftest.$ac_objext
23206if { (ac_try="$ac_compile"
23207case "(($ac_try" in
23208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23209  *) ac_try_echo=$ac_try;;
23210esac
23211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23212  (eval "$ac_compile") 2>conftest.er1
23213  ac_status=$?
23214  grep -v '^ *+' conftest.er1 >conftest.err
23215  rm -f conftest.er1
23216  cat conftest.err >&5
23217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218  (exit $ac_status); } &&
23219	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23220  { (case "(($ac_try" in
23221  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23222  *) ac_try_echo=$ac_try;;
23223esac
23224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23225  (eval "$ac_try") 2>&5
23226  ac_status=$?
23227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23228  (exit $ac_status); }; } &&
23229	 { ac_try='test -s conftest.$ac_objext'
23230  { (case "(($ac_try" in
23231  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23232  *) ac_try_echo=$ac_try;;
23233esac
23234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23235  (eval "$ac_try") 2>&5
23236  ac_status=$?
23237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23238  (exit $ac_status); }; }; then
23239  ac_cv_have_decl_ftello=yes
23240else
23241  echo "$as_me: failed program was:" >&5
23242sed 's/^/| /' conftest.$ac_ext >&5
23243
23244	ac_cv_have_decl_ftello=no
23245fi
23246
23247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23248fi
23249{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
23250echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6; }
23251if test $ac_cv_have_decl_ftello = yes; then
23252
23253cat >>confdefs.h <<_ACEOF
23254#define HAVE_DECL_FTELLO 1
23255_ACEOF
23256
23257
23258else
23259  cat >>confdefs.h <<_ACEOF
23260#define HAVE_DECL_FTELLO 0
23261_ACEOF
23262
23263
23264fi
23265
23266
23267{ echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
23268echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6; }
23269if test "${ac_cv_have_decl_ftello64+set}" = set; then
23270  echo $ECHO_N "(cached) $ECHO_C" >&6
23271else
23272  cat >conftest.$ac_ext <<_ACEOF
23273/* confdefs.h.  */
23274_ACEOF
23275cat confdefs.h >>conftest.$ac_ext
23276cat >>conftest.$ac_ext <<_ACEOF
23277/* end confdefs.h.  */
23278$ac_includes_default
23279int
23280main ()
23281{
23282#ifndef ftello64
23283  char *p = (char *) ftello64;
23284  return !p;
23285#endif
23286
23287  ;
23288  return 0;
23289}
23290_ACEOF
23291rm -f conftest.$ac_objext
23292if { (ac_try="$ac_compile"
23293case "(($ac_try" in
23294  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23295  *) ac_try_echo=$ac_try;;
23296esac
23297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23298  (eval "$ac_compile") 2>conftest.er1
23299  ac_status=$?
23300  grep -v '^ *+' conftest.er1 >conftest.err
23301  rm -f conftest.er1
23302  cat conftest.err >&5
23303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23304  (exit $ac_status); } &&
23305	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23306  { (case "(($ac_try" in
23307  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23308  *) ac_try_echo=$ac_try;;
23309esac
23310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23311  (eval "$ac_try") 2>&5
23312  ac_status=$?
23313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23314  (exit $ac_status); }; } &&
23315	 { ac_try='test -s conftest.$ac_objext'
23316  { (case "(($ac_try" in
23317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23318  *) ac_try_echo=$ac_try;;
23319esac
23320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23321  (eval "$ac_try") 2>&5
23322  ac_status=$?
23323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23324  (exit $ac_status); }; }; then
23325  ac_cv_have_decl_ftello64=yes
23326else
23327  echo "$as_me: failed program was:" >&5
23328sed 's/^/| /' conftest.$ac_ext >&5
23329
23330	ac_cv_have_decl_ftello64=no
23331fi
23332
23333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23334fi
23335{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
23336echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6; }
23337if test $ac_cv_have_decl_ftello64 = yes; then
23338
23339cat >>confdefs.h <<_ACEOF
23340#define HAVE_DECL_FTELLO64 1
23341_ACEOF
23342
23343
23344else
23345  cat >>confdefs.h <<_ACEOF
23346#define HAVE_DECL_FTELLO64 0
23347_ACEOF
23348
23349
23350fi
23351
23352
23353{ echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
23354echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6; }
23355if test "${ac_cv_have_decl_fseeko+set}" = set; then
23356  echo $ECHO_N "(cached) $ECHO_C" >&6
23357else
23358  cat >conftest.$ac_ext <<_ACEOF
23359/* confdefs.h.  */
23360_ACEOF
23361cat confdefs.h >>conftest.$ac_ext
23362cat >>conftest.$ac_ext <<_ACEOF
23363/* end confdefs.h.  */
23364$ac_includes_default
23365int
23366main ()
23367{
23368#ifndef fseeko
23369  char *p = (char *) fseeko;
23370  return !p;
23371#endif
23372
23373  ;
23374  return 0;
23375}
23376_ACEOF
23377rm -f conftest.$ac_objext
23378if { (ac_try="$ac_compile"
23379case "(($ac_try" in
23380  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23381  *) ac_try_echo=$ac_try;;
23382esac
23383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23384  (eval "$ac_compile") 2>conftest.er1
23385  ac_status=$?
23386  grep -v '^ *+' conftest.er1 >conftest.err
23387  rm -f conftest.er1
23388  cat conftest.err >&5
23389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390  (exit $ac_status); } &&
23391	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23392  { (case "(($ac_try" in
23393  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23394  *) ac_try_echo=$ac_try;;
23395esac
23396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23397  (eval "$ac_try") 2>&5
23398  ac_status=$?
23399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400  (exit $ac_status); }; } &&
23401	 { ac_try='test -s conftest.$ac_objext'
23402  { (case "(($ac_try" in
23403  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23404  *) ac_try_echo=$ac_try;;
23405esac
23406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23407  (eval "$ac_try") 2>&5
23408  ac_status=$?
23409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410  (exit $ac_status); }; }; then
23411  ac_cv_have_decl_fseeko=yes
23412else
23413  echo "$as_me: failed program was:" >&5
23414sed 's/^/| /' conftest.$ac_ext >&5
23415
23416	ac_cv_have_decl_fseeko=no
23417fi
23418
23419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23420fi
23421{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
23422echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6; }
23423if test $ac_cv_have_decl_fseeko = yes; then
23424
23425cat >>confdefs.h <<_ACEOF
23426#define HAVE_DECL_FSEEKO 1
23427_ACEOF
23428
23429
23430else
23431  cat >>confdefs.h <<_ACEOF
23432#define HAVE_DECL_FSEEKO 0
23433_ACEOF
23434
23435
23436fi
23437
23438
23439{ echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
23440echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6; }
23441if test "${ac_cv_have_decl_fseeko64+set}" = set; then
23442  echo $ECHO_N "(cached) $ECHO_C" >&6
23443else
23444  cat >conftest.$ac_ext <<_ACEOF
23445/* confdefs.h.  */
23446_ACEOF
23447cat confdefs.h >>conftest.$ac_ext
23448cat >>conftest.$ac_ext <<_ACEOF
23449/* end confdefs.h.  */
23450$ac_includes_default
23451int
23452main ()
23453{
23454#ifndef fseeko64
23455  char *p = (char *) fseeko64;
23456  return !p;
23457#endif
23458
23459  ;
23460  return 0;
23461}
23462_ACEOF
23463rm -f conftest.$ac_objext
23464if { (ac_try="$ac_compile"
23465case "(($ac_try" in
23466  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23467  *) ac_try_echo=$ac_try;;
23468esac
23469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23470  (eval "$ac_compile") 2>conftest.er1
23471  ac_status=$?
23472  grep -v '^ *+' conftest.er1 >conftest.err
23473  rm -f conftest.er1
23474  cat conftest.err >&5
23475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23476  (exit $ac_status); } &&
23477	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23478  { (case "(($ac_try" in
23479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23480  *) ac_try_echo=$ac_try;;
23481esac
23482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23483  (eval "$ac_try") 2>&5
23484  ac_status=$?
23485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23486  (exit $ac_status); }; } &&
23487	 { ac_try='test -s conftest.$ac_objext'
23488  { (case "(($ac_try" in
23489  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23490  *) ac_try_echo=$ac_try;;
23491esac
23492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23493  (eval "$ac_try") 2>&5
23494  ac_status=$?
23495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23496  (exit $ac_status); }; }; then
23497  ac_cv_have_decl_fseeko64=yes
23498else
23499  echo "$as_me: failed program was:" >&5
23500sed 's/^/| /' conftest.$ac_ext >&5
23501
23502	ac_cv_have_decl_fseeko64=no
23503fi
23504
23505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23506fi
23507{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
23508echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6; }
23509if test $ac_cv_have_decl_fseeko64 = yes; then
23510
23511cat >>confdefs.h <<_ACEOF
23512#define HAVE_DECL_FSEEKO64 1
23513_ACEOF
23514
23515
23516else
23517  cat >>confdefs.h <<_ACEOF
23518#define HAVE_DECL_FSEEKO64 0
23519_ACEOF
23520
23521
23522fi
23523
23524
23525
23526
23527case "${host}" in
23528*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
23529
23530cat >>confdefs.h <<\_ACEOF
23531#define USE_BINARY_FOPEN 1
23532_ACEOF
23533 ;;
23534esac
23535
23536{ echo "$as_me:$LINENO: checking whether ffs is declared" >&5
23537echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6; }
23538if test "${ac_cv_have_decl_ffs+set}" = set; then
23539  echo $ECHO_N "(cached) $ECHO_C" >&6
23540else
23541  cat >conftest.$ac_ext <<_ACEOF
23542/* confdefs.h.  */
23543_ACEOF
23544cat confdefs.h >>conftest.$ac_ext
23545cat >>conftest.$ac_ext <<_ACEOF
23546/* end confdefs.h.  */
23547$ac_includes_default
23548int
23549main ()
23550{
23551#ifndef ffs
23552  char *p = (char *) ffs;
23553  return !p;
23554#endif
23555
23556  ;
23557  return 0;
23558}
23559_ACEOF
23560rm -f conftest.$ac_objext
23561if { (ac_try="$ac_compile"
23562case "(($ac_try" in
23563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23564  *) ac_try_echo=$ac_try;;
23565esac
23566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23567  (eval "$ac_compile") 2>conftest.er1
23568  ac_status=$?
23569  grep -v '^ *+' conftest.er1 >conftest.err
23570  rm -f conftest.er1
23571  cat conftest.err >&5
23572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23573  (exit $ac_status); } &&
23574	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23575  { (case "(($ac_try" in
23576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23577  *) ac_try_echo=$ac_try;;
23578esac
23579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23580  (eval "$ac_try") 2>&5
23581  ac_status=$?
23582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23583  (exit $ac_status); }; } &&
23584	 { ac_try='test -s conftest.$ac_objext'
23585  { (case "(($ac_try" in
23586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23587  *) ac_try_echo=$ac_try;;
23588esac
23589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23590  (eval "$ac_try") 2>&5
23591  ac_status=$?
23592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23593  (exit $ac_status); }; }; then
23594  ac_cv_have_decl_ffs=yes
23595else
23596  echo "$as_me: failed program was:" >&5
23597sed 's/^/| /' conftest.$ac_ext >&5
23598
23599	ac_cv_have_decl_ffs=no
23600fi
23601
23602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23603fi
23604{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
23605echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6; }
23606if test $ac_cv_have_decl_ffs = yes; then
23607
23608cat >>confdefs.h <<_ACEOF
23609#define HAVE_DECL_FFS 1
23610_ACEOF
23611
23612
23613else
23614  cat >>confdefs.h <<_ACEOF
23615#define HAVE_DECL_FFS 0
23616_ACEOF
23617
23618
23619fi
23620
23621
23622{ echo "$as_me:$LINENO: checking whether free is declared" >&5
23623echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6; }
23624if test "${ac_cv_have_decl_free+set}" = set; then
23625  echo $ECHO_N "(cached) $ECHO_C" >&6
23626else
23627  cat >conftest.$ac_ext <<_ACEOF
23628/* confdefs.h.  */
23629_ACEOF
23630cat confdefs.h >>conftest.$ac_ext
23631cat >>conftest.$ac_ext <<_ACEOF
23632/* end confdefs.h.  */
23633$ac_includes_default
23634int
23635main ()
23636{
23637#ifndef free
23638  char *p = (char *) free;
23639  return !p;
23640#endif
23641
23642  ;
23643  return 0;
23644}
23645_ACEOF
23646rm -f conftest.$ac_objext
23647if { (ac_try="$ac_compile"
23648case "(($ac_try" in
23649  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23650  *) ac_try_echo=$ac_try;;
23651esac
23652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23653  (eval "$ac_compile") 2>conftest.er1
23654  ac_status=$?
23655  grep -v '^ *+' conftest.er1 >conftest.err
23656  rm -f conftest.er1
23657  cat conftest.err >&5
23658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659  (exit $ac_status); } &&
23660	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23661  { (case "(($ac_try" in
23662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23663  *) ac_try_echo=$ac_try;;
23664esac
23665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23666  (eval "$ac_try") 2>&5
23667  ac_status=$?
23668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23669  (exit $ac_status); }; } &&
23670	 { ac_try='test -s conftest.$ac_objext'
23671  { (case "(($ac_try" in
23672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23673  *) ac_try_echo=$ac_try;;
23674esac
23675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23676  (eval "$ac_try") 2>&5
23677  ac_status=$?
23678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23679  (exit $ac_status); }; }; then
23680  ac_cv_have_decl_free=yes
23681else
23682  echo "$as_me: failed program was:" >&5
23683sed 's/^/| /' conftest.$ac_ext >&5
23684
23685	ac_cv_have_decl_free=no
23686fi
23687
23688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23689fi
23690{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
23691echo "${ECHO_T}$ac_cv_have_decl_free" >&6; }
23692if test $ac_cv_have_decl_free = yes; then
23693
23694cat >>confdefs.h <<_ACEOF
23695#define HAVE_DECL_FREE 1
23696_ACEOF
23697
23698
23699else
23700  cat >>confdefs.h <<_ACEOF
23701#define HAVE_DECL_FREE 0
23702_ACEOF
23703
23704
23705fi
23706
23707
23708{ echo "$as_me:$LINENO: checking whether getenv is declared" >&5
23709echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; }
23710if test "${ac_cv_have_decl_getenv+set}" = set; then
23711  echo $ECHO_N "(cached) $ECHO_C" >&6
23712else
23713  cat >conftest.$ac_ext <<_ACEOF
23714/* confdefs.h.  */
23715_ACEOF
23716cat confdefs.h >>conftest.$ac_ext
23717cat >>conftest.$ac_ext <<_ACEOF
23718/* end confdefs.h.  */
23719$ac_includes_default
23720int
23721main ()
23722{
23723#ifndef getenv
23724  char *p = (char *) getenv;
23725  return !p;
23726#endif
23727
23728  ;
23729  return 0;
23730}
23731_ACEOF
23732rm -f conftest.$ac_objext
23733if { (ac_try="$ac_compile"
23734case "(($ac_try" in
23735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23736  *) ac_try_echo=$ac_try;;
23737esac
23738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23739  (eval "$ac_compile") 2>conftest.er1
23740  ac_status=$?
23741  grep -v '^ *+' conftest.er1 >conftest.err
23742  rm -f conftest.er1
23743  cat conftest.err >&5
23744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745  (exit $ac_status); } &&
23746	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23747  { (case "(($ac_try" in
23748  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23749  *) ac_try_echo=$ac_try;;
23750esac
23751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23752  (eval "$ac_try") 2>&5
23753  ac_status=$?
23754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23755  (exit $ac_status); }; } &&
23756	 { ac_try='test -s conftest.$ac_objext'
23757  { (case "(($ac_try" in
23758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23759  *) ac_try_echo=$ac_try;;
23760esac
23761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23762  (eval "$ac_try") 2>&5
23763  ac_status=$?
23764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23765  (exit $ac_status); }; }; then
23766  ac_cv_have_decl_getenv=yes
23767else
23768  echo "$as_me: failed program was:" >&5
23769sed 's/^/| /' conftest.$ac_ext >&5
23770
23771	ac_cv_have_decl_getenv=no
23772fi
23773
23774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23775fi
23776{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
23777echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; }
23778if test $ac_cv_have_decl_getenv = yes; then
23779
23780cat >>confdefs.h <<_ACEOF
23781#define HAVE_DECL_GETENV 1
23782_ACEOF
23783
23784
23785else
23786  cat >>confdefs.h <<_ACEOF
23787#define HAVE_DECL_GETENV 0
23788_ACEOF
23789
23790
23791fi
23792
23793
23794{ echo "$as_me:$LINENO: checking whether malloc is declared" >&5
23795echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6; }
23796if test "${ac_cv_have_decl_malloc+set}" = set; then
23797  echo $ECHO_N "(cached) $ECHO_C" >&6
23798else
23799  cat >conftest.$ac_ext <<_ACEOF
23800/* confdefs.h.  */
23801_ACEOF
23802cat confdefs.h >>conftest.$ac_ext
23803cat >>conftest.$ac_ext <<_ACEOF
23804/* end confdefs.h.  */
23805$ac_includes_default
23806int
23807main ()
23808{
23809#ifndef malloc
23810  char *p = (char *) malloc;
23811  return !p;
23812#endif
23813
23814  ;
23815  return 0;
23816}
23817_ACEOF
23818rm -f conftest.$ac_objext
23819if { (ac_try="$ac_compile"
23820case "(($ac_try" in
23821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23822  *) ac_try_echo=$ac_try;;
23823esac
23824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23825  (eval "$ac_compile") 2>conftest.er1
23826  ac_status=$?
23827  grep -v '^ *+' conftest.er1 >conftest.err
23828  rm -f conftest.er1
23829  cat conftest.err >&5
23830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23831  (exit $ac_status); } &&
23832	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23833  { (case "(($ac_try" in
23834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23835  *) ac_try_echo=$ac_try;;
23836esac
23837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23838  (eval "$ac_try") 2>&5
23839  ac_status=$?
23840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23841  (exit $ac_status); }; } &&
23842	 { ac_try='test -s conftest.$ac_objext'
23843  { (case "(($ac_try" in
23844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23845  *) ac_try_echo=$ac_try;;
23846esac
23847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23848  (eval "$ac_try") 2>&5
23849  ac_status=$?
23850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23851  (exit $ac_status); }; }; then
23852  ac_cv_have_decl_malloc=yes
23853else
23854  echo "$as_me: failed program was:" >&5
23855sed 's/^/| /' conftest.$ac_ext >&5
23856
23857	ac_cv_have_decl_malloc=no
23858fi
23859
23860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23861fi
23862{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
23863echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6; }
23864if test $ac_cv_have_decl_malloc = yes; then
23865
23866cat >>confdefs.h <<_ACEOF
23867#define HAVE_DECL_MALLOC 1
23868_ACEOF
23869
23870
23871else
23872  cat >>confdefs.h <<_ACEOF
23873#define HAVE_DECL_MALLOC 0
23874_ACEOF
23875
23876
23877fi
23878
23879
23880{ echo "$as_me:$LINENO: checking whether realloc is declared" >&5
23881echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6; }
23882if test "${ac_cv_have_decl_realloc+set}" = set; then
23883  echo $ECHO_N "(cached) $ECHO_C" >&6
23884else
23885  cat >conftest.$ac_ext <<_ACEOF
23886/* confdefs.h.  */
23887_ACEOF
23888cat confdefs.h >>conftest.$ac_ext
23889cat >>conftest.$ac_ext <<_ACEOF
23890/* end confdefs.h.  */
23891$ac_includes_default
23892int
23893main ()
23894{
23895#ifndef realloc
23896  char *p = (char *) realloc;
23897  return !p;
23898#endif
23899
23900  ;
23901  return 0;
23902}
23903_ACEOF
23904rm -f conftest.$ac_objext
23905if { (ac_try="$ac_compile"
23906case "(($ac_try" in
23907  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23908  *) ac_try_echo=$ac_try;;
23909esac
23910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23911  (eval "$ac_compile") 2>conftest.er1
23912  ac_status=$?
23913  grep -v '^ *+' conftest.er1 >conftest.err
23914  rm -f conftest.er1
23915  cat conftest.err >&5
23916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23917  (exit $ac_status); } &&
23918	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23919  { (case "(($ac_try" in
23920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23921  *) ac_try_echo=$ac_try;;
23922esac
23923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23924  (eval "$ac_try") 2>&5
23925  ac_status=$?
23926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23927  (exit $ac_status); }; } &&
23928	 { ac_try='test -s conftest.$ac_objext'
23929  { (case "(($ac_try" in
23930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23931  *) ac_try_echo=$ac_try;;
23932esac
23933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23934  (eval "$ac_try") 2>&5
23935  ac_status=$?
23936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23937  (exit $ac_status); }; }; then
23938  ac_cv_have_decl_realloc=yes
23939else
23940  echo "$as_me: failed program was:" >&5
23941sed 's/^/| /' conftest.$ac_ext >&5
23942
23943	ac_cv_have_decl_realloc=no
23944fi
23945
23946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23947fi
23948{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
23949echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6; }
23950if test $ac_cv_have_decl_realloc = yes; then
23951
23952cat >>confdefs.h <<_ACEOF
23953#define HAVE_DECL_REALLOC 1
23954_ACEOF
23955
23956
23957else
23958  cat >>confdefs.h <<_ACEOF
23959#define HAVE_DECL_REALLOC 0
23960_ACEOF
23961
23962
23963fi
23964
23965
23966{ echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
23967echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6; }
23968if test "${ac_cv_have_decl_stpcpy+set}" = set; then
23969  echo $ECHO_N "(cached) $ECHO_C" >&6
23970else
23971  cat >conftest.$ac_ext <<_ACEOF
23972/* confdefs.h.  */
23973_ACEOF
23974cat confdefs.h >>conftest.$ac_ext
23975cat >>conftest.$ac_ext <<_ACEOF
23976/* end confdefs.h.  */
23977$ac_includes_default
23978int
23979main ()
23980{
23981#ifndef stpcpy
23982  char *p = (char *) stpcpy;
23983  return !p;
23984#endif
23985
23986  ;
23987  return 0;
23988}
23989_ACEOF
23990rm -f conftest.$ac_objext
23991if { (ac_try="$ac_compile"
23992case "(($ac_try" in
23993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23994  *) ac_try_echo=$ac_try;;
23995esac
23996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23997  (eval "$ac_compile") 2>conftest.er1
23998  ac_status=$?
23999  grep -v '^ *+' conftest.er1 >conftest.err
24000  rm -f conftest.er1
24001  cat conftest.err >&5
24002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24003  (exit $ac_status); } &&
24004	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24005  { (case "(($ac_try" in
24006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24007  *) ac_try_echo=$ac_try;;
24008esac
24009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24010  (eval "$ac_try") 2>&5
24011  ac_status=$?
24012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24013  (exit $ac_status); }; } &&
24014	 { ac_try='test -s conftest.$ac_objext'
24015  { (case "(($ac_try" in
24016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24017  *) ac_try_echo=$ac_try;;
24018esac
24019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24020  (eval "$ac_try") 2>&5
24021  ac_status=$?
24022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24023  (exit $ac_status); }; }; then
24024  ac_cv_have_decl_stpcpy=yes
24025else
24026  echo "$as_me: failed program was:" >&5
24027sed 's/^/| /' conftest.$ac_ext >&5
24028
24029	ac_cv_have_decl_stpcpy=no
24030fi
24031
24032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24033fi
24034{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
24035echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6; }
24036if test $ac_cv_have_decl_stpcpy = yes; then
24037
24038cat >>confdefs.h <<_ACEOF
24039#define HAVE_DECL_STPCPY 1
24040_ACEOF
24041
24042
24043else
24044  cat >>confdefs.h <<_ACEOF
24045#define HAVE_DECL_STPCPY 0
24046_ACEOF
24047
24048
24049fi
24050
24051
24052{ echo "$as_me:$LINENO: checking whether strstr is declared" >&5
24053echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6; }
24054if test "${ac_cv_have_decl_strstr+set}" = set; then
24055  echo $ECHO_N "(cached) $ECHO_C" >&6
24056else
24057  cat >conftest.$ac_ext <<_ACEOF
24058/* confdefs.h.  */
24059_ACEOF
24060cat confdefs.h >>conftest.$ac_ext
24061cat >>conftest.$ac_ext <<_ACEOF
24062/* end confdefs.h.  */
24063$ac_includes_default
24064int
24065main ()
24066{
24067#ifndef strstr
24068  char *p = (char *) strstr;
24069  return !p;
24070#endif
24071
24072  ;
24073  return 0;
24074}
24075_ACEOF
24076rm -f conftest.$ac_objext
24077if { (ac_try="$ac_compile"
24078case "(($ac_try" in
24079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24080  *) ac_try_echo=$ac_try;;
24081esac
24082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24083  (eval "$ac_compile") 2>conftest.er1
24084  ac_status=$?
24085  grep -v '^ *+' conftest.er1 >conftest.err
24086  rm -f conftest.er1
24087  cat conftest.err >&5
24088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24089  (exit $ac_status); } &&
24090	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24091  { (case "(($ac_try" in
24092  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24093  *) ac_try_echo=$ac_try;;
24094esac
24095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24096  (eval "$ac_try") 2>&5
24097  ac_status=$?
24098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24099  (exit $ac_status); }; } &&
24100	 { ac_try='test -s conftest.$ac_objext'
24101  { (case "(($ac_try" in
24102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24103  *) ac_try_echo=$ac_try;;
24104esac
24105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24106  (eval "$ac_try") 2>&5
24107  ac_status=$?
24108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24109  (exit $ac_status); }; }; then
24110  ac_cv_have_decl_strstr=yes
24111else
24112  echo "$as_me: failed program was:" >&5
24113sed 's/^/| /' conftest.$ac_ext >&5
24114
24115	ac_cv_have_decl_strstr=no
24116fi
24117
24118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24119fi
24120{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
24121echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6; }
24122if test $ac_cv_have_decl_strstr = yes; then
24123
24124cat >>confdefs.h <<_ACEOF
24125#define HAVE_DECL_STRSTR 1
24126_ACEOF
24127
24128
24129else
24130  cat >>confdefs.h <<_ACEOF
24131#define HAVE_DECL_STRSTR 0
24132_ACEOF
24133
24134
24135fi
24136
24137
24138{ echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
24139echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
24140if test "${ac_cv_have_decl_snprintf+set}" = set; then
24141  echo $ECHO_N "(cached) $ECHO_C" >&6
24142else
24143  cat >conftest.$ac_ext <<_ACEOF
24144/* confdefs.h.  */
24145_ACEOF
24146cat confdefs.h >>conftest.$ac_ext
24147cat >>conftest.$ac_ext <<_ACEOF
24148/* end confdefs.h.  */
24149$ac_includes_default
24150int
24151main ()
24152{
24153#ifndef snprintf
24154  char *p = (char *) snprintf;
24155  return !p;
24156#endif
24157
24158  ;
24159  return 0;
24160}
24161_ACEOF
24162rm -f conftest.$ac_objext
24163if { (ac_try="$ac_compile"
24164case "(($ac_try" in
24165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24166  *) ac_try_echo=$ac_try;;
24167esac
24168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24169  (eval "$ac_compile") 2>conftest.er1
24170  ac_status=$?
24171  grep -v '^ *+' conftest.er1 >conftest.err
24172  rm -f conftest.er1
24173  cat conftest.err >&5
24174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24175  (exit $ac_status); } &&
24176	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24177  { (case "(($ac_try" in
24178  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24179  *) ac_try_echo=$ac_try;;
24180esac
24181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24182  (eval "$ac_try") 2>&5
24183  ac_status=$?
24184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24185  (exit $ac_status); }; } &&
24186	 { ac_try='test -s conftest.$ac_objext'
24187  { (case "(($ac_try" in
24188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24189  *) ac_try_echo=$ac_try;;
24190esac
24191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24192  (eval "$ac_try") 2>&5
24193  ac_status=$?
24194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24195  (exit $ac_status); }; }; then
24196  ac_cv_have_decl_snprintf=yes
24197else
24198  echo "$as_me: failed program was:" >&5
24199sed 's/^/| /' conftest.$ac_ext >&5
24200
24201	ac_cv_have_decl_snprintf=no
24202fi
24203
24204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24205fi
24206{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
24207echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
24208if test $ac_cv_have_decl_snprintf = yes; then
24209
24210cat >>confdefs.h <<_ACEOF
24211#define HAVE_DECL_SNPRINTF 1
24212_ACEOF
24213
24214
24215else
24216  cat >>confdefs.h <<_ACEOF
24217#define HAVE_DECL_SNPRINTF 0
24218_ACEOF
24219
24220
24221fi
24222
24223
24224{ echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
24225echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
24226if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
24227  echo $ECHO_N "(cached) $ECHO_C" >&6
24228else
24229  cat >conftest.$ac_ext <<_ACEOF
24230/* confdefs.h.  */
24231_ACEOF
24232cat confdefs.h >>conftest.$ac_ext
24233cat >>conftest.$ac_ext <<_ACEOF
24234/* end confdefs.h.  */
24235$ac_includes_default
24236int
24237main ()
24238{
24239#ifndef vsnprintf
24240  char *p = (char *) vsnprintf;
24241  return !p;
24242#endif
24243
24244  ;
24245  return 0;
24246}
24247_ACEOF
24248rm -f conftest.$ac_objext
24249if { (ac_try="$ac_compile"
24250case "(($ac_try" in
24251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24252  *) ac_try_echo=$ac_try;;
24253esac
24254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24255  (eval "$ac_compile") 2>conftest.er1
24256  ac_status=$?
24257  grep -v '^ *+' conftest.er1 >conftest.err
24258  rm -f conftest.er1
24259  cat conftest.err >&5
24260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24261  (exit $ac_status); } &&
24262	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24263  { (case "(($ac_try" in
24264  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24265  *) ac_try_echo=$ac_try;;
24266esac
24267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24268  (eval "$ac_try") 2>&5
24269  ac_status=$?
24270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24271  (exit $ac_status); }; } &&
24272	 { ac_try='test -s conftest.$ac_objext'
24273  { (case "(($ac_try" in
24274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24275  *) ac_try_echo=$ac_try;;
24276esac
24277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24278  (eval "$ac_try") 2>&5
24279  ac_status=$?
24280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24281  (exit $ac_status); }; }; then
24282  ac_cv_have_decl_vsnprintf=yes
24283else
24284  echo "$as_me: failed program was:" >&5
24285sed 's/^/| /' conftest.$ac_ext >&5
24286
24287	ac_cv_have_decl_vsnprintf=no
24288fi
24289
24290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24291fi
24292{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
24293echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
24294if test $ac_cv_have_decl_vsnprintf = yes; then
24295
24296cat >>confdefs.h <<_ACEOF
24297#define HAVE_DECL_VSNPRINTF 1
24298_ACEOF
24299
24300
24301else
24302  cat >>confdefs.h <<_ACEOF
24303#define HAVE_DECL_VSNPRINTF 0
24304_ACEOF
24305
24306
24307fi
24308
24309
24310
24311# If we are configured native, pick a core file support file.
24312COREFILE=
24313COREFLAG=
24314TRAD_HEADER=
24315if test "${target}" = "${host}"; then
24316  case "${host}" in
24317  alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
24318	COREFILE=''
24319	;;
24320  alpha*-*-linux-*)
24321	COREFILE=trad-core.lo
24322	TRAD_HEADER='"hosts/alphalinux.h"'
24323	;;
24324  alpha*-*-netbsd* | alpha*-*-openbsd*)
24325	COREFILE=netbsd-core.lo
24326	;;
24327  alpha*-*-*)		COREFILE=osf-core.lo ;;
24328  arm-*-freebsd* | arm-*-kfreebsd*-gnu)
24329			COREFILE='' ;;
24330  arm-*-netbsd*)	COREFILE=netbsd-core.lo ;;
24331  arm-*-riscix)		COREFILE=trad-core.lo ;;
24332  hppa*-*-hpux*)	COREFILE=hpux-core.lo ;;
24333  hppa*-*-hiux*)	COREFILE=hpux-core.lo ;;
24334  hppa*-*-mpeix*)	COREFILE=hpux-core.lo ;;
24335  hppa*-*-bsd*)		COREFILE="hpux-core.lo hppabsd-core.lo"
24336			COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
24337  hppa*-*-netbsd* | hppa*-*-openbsd*)
24338	COREFILE=netbsd-core.lo
24339	;;
24340
24341  i370-*-*)
24342	COREFILE=trad-core.lo
24343	TRAD_HEADER='"hosts/i370linux.h"'
24344	;;
24345
24346  i386-*-mirbsd*)
24347	COREFILE=netbsd-core.lo
24348	;;
24349
24350  i[3-7]86-sequent-bsd*)
24351	COREFILE=trad-core.lo
24352	TRAD_HEADER='"hosts/symmetry.h"'
24353	;;
24354  i[3-7]86-sequent-sysv4*) ;;
24355  i[3-7]86-sequent-sysv*)
24356	COREFILE=trad-core.lo
24357	TRAD_HEADER='"hosts/symmetry.h"'
24358	;;
24359  i[3-7]86-*-bsdi)
24360	COREFILE=
24361	;;
24362  i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.* | i[3-7]86-*-freebsd*aout*)
24363	COREFILE=trad-core.lo
24364	TRAD_HEADER='"hosts/i386bsd.h"'
24365	;;
24366  i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
24367	COREFILE=''
24368	TRAD_HEADER='"hosts/i386bsd.h"'
24369	;;
24370  i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
24371	COREFILE=netbsd-core.lo
24372	;;
24373  i[3-7]86-esix-sysv3*)
24374	COREFILE=trad-core.lo
24375	TRAD_HEADER='"hosts/esix.h"'
24376	;;
24377  i[3-7]86-*-sco3.2v5*)
24378	COREFILE=sco5-core.lo
24379	;;
24380  i[3-7]86-*-sco* | i[3-7]86-*-isc*)
24381	COREFILE=trad-core.lo
24382	TRAD_HEADER='"hosts/i386sco.h"'
24383	;;
24384  i[3-7]86-*-mach3*)
24385	COREFILE=trad-core.lo
24386	TRAD_HEADER='"hosts/i386mach3.h"'
24387	;;
24388  i[3-7]86-*-linux-*)
24389	COREFILE=trad-core.lo
24390	TRAD_HEADER='"hosts/i386linux.h"'
24391	;;
24392  i[3-7]86-*-isc*)	COREFILE=trad-core.lo ;;
24393  i[3-7]86-*-aix*)	COREFILE=aix386-core.lo ;;
24394  i860-*-mach3* | i860-*-osf1*)
24395	COREFILE=trad-core.lo
24396	TRAD_HEADER='"hosts/i860mach3.h"'
24397	;;
24398  mips-*-netbsd* | mips*-*-openbsd*)
24399	COREFILE=netbsd-core.lo
24400	;;
24401  mips-dec-*)
24402	COREFILE=trad-core.lo
24403	TRAD_HEADER='"hosts/decstation.h"'
24404	;;
24405  mips-sgi-irix4*)	COREFILE=irix-core.lo ;;
24406  mips-sgi-irix5*)	COREFILE=irix-core.lo ;;
24407  mips-sgi-irix6*)	COREFILE=irix-core.lo ;;
24408  mips-*-sysv4*)	;;
24409  mips-*-sysv* | mips-*-riscos*)
24410	COREFILE=trad-core.lo
24411	TRAD_HEADER='"hosts/riscos.h"'
24412	;;
24413  mips-sony-bsd*)
24414	COREFILE=trad-core.lo
24415	TRAD_HEADER='"hosts/news-mips.h"'
24416	;;
24417  m68*-bull*-sysv*)
24418	COREFILE=trad-core.lo
24419	TRAD_HEADER='"hosts/dpx2.h"'
24420	;;
24421  m68*-hp-hpux*)	COREFILE=hpux-core.lo ;;
24422  m68*-hp-bsd*)
24423	COREFILE=trad-core.lo
24424	TRAD_HEADER='"hosts/hp300bsd.h"'
24425	;;
24426  m68*-*-linux-*)
24427	COREFILE=trad-core.lo
24428	TRAD_HEADER='"hosts/m68klinux.h"'
24429	;;
24430  m68*-motorola-sysv*)
24431	COREFILE=trad-core.lo
24432	TRAD_HEADER='"hosts/delta68.h"'
24433	;;
24434  m68*-sony-*)
24435	COREFILE=trad-core.lo
24436	TRAD_HEADER='"hosts/news.h"'
24437	;;
24438  m68*-*-netbsd* | m68*-*-openbsd*)
24439	COREFILE=netbsd-core.lo
24440	;;
24441  m68*-apple-aux*)
24442	COREFILE=trad-core.lo
24443	TRAD_HEADER='"hosts/m68kaux.h"'
24444	;;
24445  m88*-*-sysv4*)
24446	;;
24447  m88*-motorola-sysv*)
24448	COREFILE=ptrace-core.lo
24449	;;
24450  m88*-*-mach3*)
24451	COREFILE=trad-core.lo
24452	TRAD_HEADER='"hosts/m88kmach3.h"'
24453	;;
24454  m88*-*-openbsd*)
24455	COREFILE=netbsd-core.lo
24456	;;
24457  ns32k-pc532-mach)
24458	COREFILE=trad-core.lo
24459	TRAD_HEADER='"hosts/pc532mach.h"'
24460	;;
24461  ns32k-*-netbsd* | ns32k-*-openbsd*)
24462	COREFILE=netbsd-core.lo
24463	;;
24464  rs6000-*-lynx*)
24465  	COREFILE=lynx-core.lo
24466	;;
24467  rs6000-*-aix5.* | powerpc-*-aix5.*)
24468        COREFILE=rs6000-core.lo
24469	COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
24470	;;
24471  rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
24472        COREFILE=rs6000-core.lo
24473	COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
24474	# Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
24475	# have c_impl as a member of struct core_dumpx
24476	{ echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
24477echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6; }
24478	cat >conftest.$ac_ext <<_ACEOF
24479/* confdefs.h.  */
24480_ACEOF
24481cat confdefs.h >>conftest.$ac_ext
24482cat >>conftest.$ac_ext <<_ACEOF
24483/* end confdefs.h.  */
24484#include <core.h>
24485int
24486main ()
24487{
24488struct core_dumpx c; c.c_impl = 0;
24489  ;
24490  return 0;
24491}
24492_ACEOF
24493rm -f conftest.$ac_objext
24494if { (ac_try="$ac_compile"
24495case "(($ac_try" in
24496  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24497  *) ac_try_echo=$ac_try;;
24498esac
24499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24500  (eval "$ac_compile") 2>conftest.er1
24501  ac_status=$?
24502  grep -v '^ *+' conftest.er1 >conftest.err
24503  rm -f conftest.er1
24504  cat conftest.err >&5
24505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24506  (exit $ac_status); } &&
24507	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24508  { (case "(($ac_try" in
24509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24510  *) ac_try_echo=$ac_try;;
24511esac
24512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24513  (eval "$ac_try") 2>&5
24514  ac_status=$?
24515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24516  (exit $ac_status); }; } &&
24517	 { ac_try='test -s conftest.$ac_objext'
24518  { (case "(($ac_try" in
24519  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24520  *) ac_try_echo=$ac_try;;
24521esac
24522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24523  (eval "$ac_try") 2>&5
24524  ac_status=$?
24525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24526  (exit $ac_status); }; }; then
24527
24528cat >>confdefs.h <<\_ACEOF
24529#define HAVE_ST_C_IMPL 1
24530_ACEOF
24531
24532	  { echo "$as_me:$LINENO: result: yes" >&5
24533echo "${ECHO_T}yes" >&6; }
24534else
24535  echo "$as_me: failed program was:" >&5
24536sed 's/^/| /' conftest.$ac_ext >&5
24537
24538	{ echo "$as_me:$LINENO: result: no" >&5
24539echo "${ECHO_T}no" >&6; }
24540fi
24541
24542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24543	;;
24544  rs6000-*-aix4*)	COREFILE=rs6000-core.lo ;;
24545  rs6000-*-*)		COREFILE=rs6000-core.lo ;;
24546  powerpc-*-aix4*)	COREFILE=rs6000-core.lo ;;
24547  powerpc-*-aix*)	COREFILE=rs6000-core.lo ;;
24548  powerpc-*-beos*)	;;
24549  powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
24550		        COREFILE='' ;;
24551  powerpc-*-netbsd*)	COREFILE=netbsd-core.lo ;;
24552  powerpc-*-*bsd*)	COREFILE=netbsd-core.lo ;;
24553  s390*-*-*)            COREFILE=trad-core.lo ;;
24554  sh*-*-netbsd*)	COREFILE=netbsd-core.lo ;;
24555  sparc-*-mirbsd* | sparc-*-netbsd* | sparc*-*-openbsd*)
24556	COREFILE=netbsd-core.lo
24557	;;
24558  tahoe-*-*)
24559	COREFILE=trad-core.lo
24560	TRAD_HEADER='"hosts/tahoe.h"'
24561	;;
24562  vax-*-netbsd* | vax-*-openbsd*)
24563  	COREFILE=netbsd-core.lo
24564	;;
24565  vax-*-ultrix2*)
24566	COREFILE=trad-core.lo
24567	TRAD_HEADER='"hosts/vaxult2.h"'
24568	;;
24569  vax-*-ultrix*)
24570	COREFILE=trad-core.lo
24571	TRAD_HEADER='"hosts/vaxult2.h"'
24572	;;
24573  vax-*-linux-*)
24574	COREFILE=trad-core.lo
24575	TRAD_HEADER='"hosts/vaxlinux.h"'
24576	;;
24577  vax-*-*)
24578	COREFILE=trad-core.lo
24579	TRAD_HEADER='"hosts/vaxbsd.h"'
24580	;;
24581  x86_64-*-netbsd* | x86_64-*-openbsd*)
24582	COREFILE=netbsd-core.lo
24583	;;
24584  esac
24585
24586  case "$COREFILE" in
24587  aix386-core.lo)	COREFLAG=-DAIX386_CORE ;;
24588  hppabsd-core.lo)	COREFLAG=-DHPPABSD_CORE ;;
24589  hpux-core.lo)		COREFLAG=-DHPUX_CORE ;;
24590  irix-core.lo)		COREFLAG=-DIRIX_CORE ;;
24591  lynx-core.lo)		COREFLAG=-DLYNX_CORE ;;
24592  netbsd-core.lo)	COREFLAG=-DNETBSD_CORE ;;
24593  osf-core.lo)		COREFLAG=-DOSF_CORE ;;
24594  ptrace-core.lo)	COREFLAG=-DPTRACE_CORE ;;
24595  rs6000-core.lo)	COREFLAG="$COREFLAG -DAIX_CORE" ;;
24596  sco5-core.lo)		COREFLAG="$COREFLAG -DSCO5_CORE" ;;
24597  trad-core.lo)		COREFLAG="$COREFLAG -DTRAD_CORE" ;;
24598  esac
24599
24600  # ELF corefile support has several flavors, but all of
24601  # them use something called <sys/procfs.h>
24602
24603for ac_header in sys/procfs.h
24604do
24605as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24606if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24607  { echo "$as_me:$LINENO: checking for $ac_header" >&5
24608echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24609if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24610  echo $ECHO_N "(cached) $ECHO_C" >&6
24611fi
24612ac_res=`eval echo '${'$as_ac_Header'}'`
24613	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24614echo "${ECHO_T}$ac_res" >&6; }
24615else
24616  # Is the header compilable?
24617{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
24618echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24619cat >conftest.$ac_ext <<_ACEOF
24620/* confdefs.h.  */
24621_ACEOF
24622cat confdefs.h >>conftest.$ac_ext
24623cat >>conftest.$ac_ext <<_ACEOF
24624/* end confdefs.h.  */
24625$ac_includes_default
24626#include <$ac_header>
24627_ACEOF
24628rm -f conftest.$ac_objext
24629if { (ac_try="$ac_compile"
24630case "(($ac_try" in
24631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24632  *) ac_try_echo=$ac_try;;
24633esac
24634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24635  (eval "$ac_compile") 2>conftest.er1
24636  ac_status=$?
24637  grep -v '^ *+' conftest.er1 >conftest.err
24638  rm -f conftest.er1
24639  cat conftest.err >&5
24640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24641  (exit $ac_status); } &&
24642	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24643  { (case "(($ac_try" in
24644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24645  *) ac_try_echo=$ac_try;;
24646esac
24647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24648  (eval "$ac_try") 2>&5
24649  ac_status=$?
24650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651  (exit $ac_status); }; } &&
24652	 { ac_try='test -s conftest.$ac_objext'
24653  { (case "(($ac_try" in
24654  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24655  *) ac_try_echo=$ac_try;;
24656esac
24657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24658  (eval "$ac_try") 2>&5
24659  ac_status=$?
24660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661  (exit $ac_status); }; }; then
24662  ac_header_compiler=yes
24663else
24664  echo "$as_me: failed program was:" >&5
24665sed 's/^/| /' conftest.$ac_ext >&5
24666
24667	ac_header_compiler=no
24668fi
24669
24670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24671{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24672echo "${ECHO_T}$ac_header_compiler" >&6; }
24673
24674# Is the header present?
24675{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
24676echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24677cat >conftest.$ac_ext <<_ACEOF
24678/* confdefs.h.  */
24679_ACEOF
24680cat confdefs.h >>conftest.$ac_ext
24681cat >>conftest.$ac_ext <<_ACEOF
24682/* end confdefs.h.  */
24683#include <$ac_header>
24684_ACEOF
24685if { (ac_try="$ac_cpp conftest.$ac_ext"
24686case "(($ac_try" in
24687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24688  *) ac_try_echo=$ac_try;;
24689esac
24690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24691  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24692  ac_status=$?
24693  grep -v '^ *+' conftest.er1 >conftest.err
24694  rm -f conftest.er1
24695  cat conftest.err >&5
24696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24697  (exit $ac_status); } >/dev/null; then
24698  if test -s conftest.err; then
24699    ac_cpp_err=$ac_c_preproc_warn_flag
24700    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24701  else
24702    ac_cpp_err=
24703  fi
24704else
24705  ac_cpp_err=yes
24706fi
24707if test -z "$ac_cpp_err"; then
24708  ac_header_preproc=yes
24709else
24710  echo "$as_me: failed program was:" >&5
24711sed 's/^/| /' conftest.$ac_ext >&5
24712
24713  ac_header_preproc=no
24714fi
24715
24716rm -f conftest.err conftest.$ac_ext
24717{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24718echo "${ECHO_T}$ac_header_preproc" >&6; }
24719
24720# So?  What about this header?
24721case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24722  yes:no: )
24723    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24724echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24725    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24726echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24727    ac_header_preproc=yes
24728    ;;
24729  no:yes:* )
24730    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24731echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24732    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24733echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24734    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24735echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24736    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24737echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24738    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24739echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24740    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24741echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24742
24743    ;;
24744esac
24745{ echo "$as_me:$LINENO: checking for $ac_header" >&5
24746echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24747if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24748  echo $ECHO_N "(cached) $ECHO_C" >&6
24749else
24750  eval "$as_ac_Header=\$ac_header_preproc"
24751fi
24752ac_res=`eval echo '${'$as_ac_Header'}'`
24753	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24754echo "${ECHO_T}$ac_res" >&6; }
24755
24756fi
24757if test `eval echo '${'$as_ac_Header'}'` = yes; then
24758  cat >>confdefs.h <<_ACEOF
24759#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24760_ACEOF
24761
24762fi
24763
24764done
24765
24766  if test "$ac_cv_header_sys_procfs_h" = yes; then
24767    { echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
24768echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6; }
24769 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
24770  echo $ECHO_N "(cached) $ECHO_C" >&6
24771else
24772  cat >conftest.$ac_ext <<_ACEOF
24773/* confdefs.h.  */
24774_ACEOF
24775cat confdefs.h >>conftest.$ac_ext
24776cat >>conftest.$ac_ext <<_ACEOF
24777/* end confdefs.h.  */
24778
24779#define _SYSCALL32
24780#include <sys/procfs.h>
24781int
24782main ()
24783{
24784prstatus_t avar
24785  ;
24786  return 0;
24787}
24788_ACEOF
24789rm -f conftest.$ac_objext
24790if { (ac_try="$ac_compile"
24791case "(($ac_try" in
24792  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24793  *) ac_try_echo=$ac_try;;
24794esac
24795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24796  (eval "$ac_compile") 2>conftest.er1
24797  ac_status=$?
24798  grep -v '^ *+' conftest.er1 >conftest.err
24799  rm -f conftest.er1
24800  cat conftest.err >&5
24801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24802  (exit $ac_status); } &&
24803	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24804  { (case "(($ac_try" in
24805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24806  *) ac_try_echo=$ac_try;;
24807esac
24808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24809  (eval "$ac_try") 2>&5
24810  ac_status=$?
24811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24812  (exit $ac_status); }; } &&
24813	 { ac_try='test -s conftest.$ac_objext'
24814  { (case "(($ac_try" in
24815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24816  *) ac_try_echo=$ac_try;;
24817esac
24818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24819  (eval "$ac_try") 2>&5
24820  ac_status=$?
24821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24822  (exit $ac_status); }; }; then
24823  bfd_cv_have_sys_procfs_type_prstatus_t=yes
24824else
24825  echo "$as_me: failed program was:" >&5
24826sed 's/^/| /' conftest.$ac_ext >&5
24827
24828	bfd_cv_have_sys_procfs_type_prstatus_t=no
24829
24830fi
24831
24832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24833fi
24834
24835 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
24836
24837cat >>confdefs.h <<\_ACEOF
24838#define HAVE_PRSTATUS_T 1
24839_ACEOF
24840
24841 fi
24842 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
24843echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6; }
24844
24845    { echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
24846echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6; }
24847 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
24848  echo $ECHO_N "(cached) $ECHO_C" >&6
24849else
24850  cat >conftest.$ac_ext <<_ACEOF
24851/* confdefs.h.  */
24852_ACEOF
24853cat confdefs.h >>conftest.$ac_ext
24854cat >>conftest.$ac_ext <<_ACEOF
24855/* end confdefs.h.  */
24856
24857#define _SYSCALL32
24858#include <sys/procfs.h>
24859int
24860main ()
24861{
24862prstatus32_t avar
24863  ;
24864  return 0;
24865}
24866_ACEOF
24867rm -f conftest.$ac_objext
24868if { (ac_try="$ac_compile"
24869case "(($ac_try" in
24870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24871  *) ac_try_echo=$ac_try;;
24872esac
24873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24874  (eval "$ac_compile") 2>conftest.er1
24875  ac_status=$?
24876  grep -v '^ *+' conftest.er1 >conftest.err
24877  rm -f conftest.er1
24878  cat conftest.err >&5
24879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24880  (exit $ac_status); } &&
24881	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24882  { (case "(($ac_try" in
24883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24884  *) ac_try_echo=$ac_try;;
24885esac
24886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24887  (eval "$ac_try") 2>&5
24888  ac_status=$?
24889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24890  (exit $ac_status); }; } &&
24891	 { ac_try='test -s conftest.$ac_objext'
24892  { (case "(($ac_try" in
24893  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24894  *) ac_try_echo=$ac_try;;
24895esac
24896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24897  (eval "$ac_try") 2>&5
24898  ac_status=$?
24899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24900  (exit $ac_status); }; }; then
24901  bfd_cv_have_sys_procfs_type_prstatus32_t=yes
24902else
24903  echo "$as_me: failed program was:" >&5
24904sed 's/^/| /' conftest.$ac_ext >&5
24905
24906	bfd_cv_have_sys_procfs_type_prstatus32_t=no
24907
24908fi
24909
24910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24911fi
24912
24913 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
24914
24915cat >>confdefs.h <<\_ACEOF
24916#define HAVE_PRSTATUS32_T 1
24917_ACEOF
24918
24919 fi
24920 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
24921echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6; }
24922
24923    { echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
24924echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6; }
24925 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
24926  echo $ECHO_N "(cached) $ECHO_C" >&6
24927else
24928  cat >conftest.$ac_ext <<_ACEOF
24929/* confdefs.h.  */
24930_ACEOF
24931cat confdefs.h >>conftest.$ac_ext
24932cat >>conftest.$ac_ext <<_ACEOF
24933/* end confdefs.h.  */
24934
24935#define _SYSCALL32
24936#include <sys/procfs.h>
24937int
24938main ()
24939{
24940prstatus_t avar; void* aref = (void*) &avar.pr_who
24941  ;
24942  return 0;
24943}
24944_ACEOF
24945rm -f conftest.$ac_objext
24946if { (ac_try="$ac_compile"
24947case "(($ac_try" in
24948  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24949  *) ac_try_echo=$ac_try;;
24950esac
24951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24952  (eval "$ac_compile") 2>conftest.er1
24953  ac_status=$?
24954  grep -v '^ *+' conftest.er1 >conftest.err
24955  rm -f conftest.er1
24956  cat conftest.err >&5
24957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24958  (exit $ac_status); } &&
24959	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24960  { (case "(($ac_try" in
24961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24962  *) ac_try_echo=$ac_try;;
24963esac
24964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24965  (eval "$ac_try") 2>&5
24966  ac_status=$?
24967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24968  (exit $ac_status); }; } &&
24969	 { ac_try='test -s conftest.$ac_objext'
24970  { (case "(($ac_try" in
24971  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24972  *) ac_try_echo=$ac_try;;
24973esac
24974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24975  (eval "$ac_try") 2>&5
24976  ac_status=$?
24977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24978  (exit $ac_status); }; }; then
24979  bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
24980else
24981  echo "$as_me: failed program was:" >&5
24982sed 's/^/| /' conftest.$ac_ext >&5
24983
24984	bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
24985
24986fi
24987
24988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24989fi
24990
24991 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
24992
24993cat >>confdefs.h <<\_ACEOF
24994#define HAVE_PRSTATUS_T_PR_WHO 1
24995_ACEOF
24996
24997 fi
24998 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
24999echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6; }
25000
25001    { echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
25002echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6; }
25003 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
25004  echo $ECHO_N "(cached) $ECHO_C" >&6
25005else
25006  cat >conftest.$ac_ext <<_ACEOF
25007/* confdefs.h.  */
25008_ACEOF
25009cat confdefs.h >>conftest.$ac_ext
25010cat >>conftest.$ac_ext <<_ACEOF
25011/* end confdefs.h.  */
25012
25013#define _SYSCALL32
25014#include <sys/procfs.h>
25015int
25016main ()
25017{
25018prstatus32_t avar; void* aref = (void*) &avar.pr_who
25019  ;
25020  return 0;
25021}
25022_ACEOF
25023rm -f conftest.$ac_objext
25024if { (ac_try="$ac_compile"
25025case "(($ac_try" in
25026  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25027  *) ac_try_echo=$ac_try;;
25028esac
25029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25030  (eval "$ac_compile") 2>conftest.er1
25031  ac_status=$?
25032  grep -v '^ *+' conftest.er1 >conftest.err
25033  rm -f conftest.er1
25034  cat conftest.err >&5
25035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036  (exit $ac_status); } &&
25037	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25038  { (case "(($ac_try" in
25039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25040  *) ac_try_echo=$ac_try;;
25041esac
25042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25043  (eval "$ac_try") 2>&5
25044  ac_status=$?
25045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25046  (exit $ac_status); }; } &&
25047	 { ac_try='test -s conftest.$ac_objext'
25048  { (case "(($ac_try" in
25049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25050  *) ac_try_echo=$ac_try;;
25051esac
25052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25053  (eval "$ac_try") 2>&5
25054  ac_status=$?
25055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25056  (exit $ac_status); }; }; then
25057  bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
25058else
25059  echo "$as_me: failed program was:" >&5
25060sed 's/^/| /' conftest.$ac_ext >&5
25061
25062	bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
25063
25064fi
25065
25066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25067fi
25068
25069 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
25070
25071cat >>confdefs.h <<\_ACEOF
25072#define HAVE_PRSTATUS32_T_PR_WHO 1
25073_ACEOF
25074
25075 fi
25076 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
25077echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6; }
25078
25079    { echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
25080echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6; }
25081 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
25082  echo $ECHO_N "(cached) $ECHO_C" >&6
25083else
25084  cat >conftest.$ac_ext <<_ACEOF
25085/* confdefs.h.  */
25086_ACEOF
25087cat confdefs.h >>conftest.$ac_ext
25088cat >>conftest.$ac_ext <<_ACEOF
25089/* end confdefs.h.  */
25090
25091#define _SYSCALL32
25092#include <sys/procfs.h>
25093int
25094main ()
25095{
25096pstatus_t avar
25097  ;
25098  return 0;
25099}
25100_ACEOF
25101rm -f conftest.$ac_objext
25102if { (ac_try="$ac_compile"
25103case "(($ac_try" in
25104  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25105  *) ac_try_echo=$ac_try;;
25106esac
25107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25108  (eval "$ac_compile") 2>conftest.er1
25109  ac_status=$?
25110  grep -v '^ *+' conftest.er1 >conftest.err
25111  rm -f conftest.er1
25112  cat conftest.err >&5
25113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25114  (exit $ac_status); } &&
25115	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25116  { (case "(($ac_try" in
25117  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25118  *) ac_try_echo=$ac_try;;
25119esac
25120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25121  (eval "$ac_try") 2>&5
25122  ac_status=$?
25123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25124  (exit $ac_status); }; } &&
25125	 { ac_try='test -s conftest.$ac_objext'
25126  { (case "(($ac_try" in
25127  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25128  *) ac_try_echo=$ac_try;;
25129esac
25130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25131  (eval "$ac_try") 2>&5
25132  ac_status=$?
25133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25134  (exit $ac_status); }; }; then
25135  bfd_cv_have_sys_procfs_type_pstatus_t=yes
25136else
25137  echo "$as_me: failed program was:" >&5
25138sed 's/^/| /' conftest.$ac_ext >&5
25139
25140	bfd_cv_have_sys_procfs_type_pstatus_t=no
25141
25142fi
25143
25144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25145fi
25146
25147 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
25148
25149cat >>confdefs.h <<\_ACEOF
25150#define HAVE_PSTATUS_T 1
25151_ACEOF
25152
25153 fi
25154 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
25155echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
25156
25157    { echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
25158echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6; }
25159 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
25160  echo $ECHO_N "(cached) $ECHO_C" >&6
25161else
25162  cat >conftest.$ac_ext <<_ACEOF
25163/* confdefs.h.  */
25164_ACEOF
25165cat confdefs.h >>conftest.$ac_ext
25166cat >>conftest.$ac_ext <<_ACEOF
25167/* end confdefs.h.  */
25168
25169#define _SYSCALL32
25170#include <sys/procfs.h>
25171int
25172main ()
25173{
25174pxstatus_t avar
25175  ;
25176  return 0;
25177}
25178_ACEOF
25179rm -f conftest.$ac_objext
25180if { (ac_try="$ac_compile"
25181case "(($ac_try" in
25182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25183  *) ac_try_echo=$ac_try;;
25184esac
25185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25186  (eval "$ac_compile") 2>conftest.er1
25187  ac_status=$?
25188  grep -v '^ *+' conftest.er1 >conftest.err
25189  rm -f conftest.er1
25190  cat conftest.err >&5
25191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25192  (exit $ac_status); } &&
25193	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25194  { (case "(($ac_try" in
25195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25196  *) ac_try_echo=$ac_try;;
25197esac
25198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25199  (eval "$ac_try") 2>&5
25200  ac_status=$?
25201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25202  (exit $ac_status); }; } &&
25203	 { ac_try='test -s conftest.$ac_objext'
25204  { (case "(($ac_try" in
25205  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25206  *) ac_try_echo=$ac_try;;
25207esac
25208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25209  (eval "$ac_try") 2>&5
25210  ac_status=$?
25211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212  (exit $ac_status); }; }; then
25213  bfd_cv_have_sys_procfs_type_pxstatus_t=yes
25214else
25215  echo "$as_me: failed program was:" >&5
25216sed 's/^/| /' conftest.$ac_ext >&5
25217
25218	bfd_cv_have_sys_procfs_type_pxstatus_t=no
25219
25220fi
25221
25222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25223fi
25224
25225 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
25226
25227cat >>confdefs.h <<\_ACEOF
25228#define HAVE_PXSTATUS_T 1
25229_ACEOF
25230
25231 fi
25232 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
25233echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6; }
25234
25235    { echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
25236echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6; }
25237 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
25238  echo $ECHO_N "(cached) $ECHO_C" >&6
25239else
25240  cat >conftest.$ac_ext <<_ACEOF
25241/* confdefs.h.  */
25242_ACEOF
25243cat confdefs.h >>conftest.$ac_ext
25244cat >>conftest.$ac_ext <<_ACEOF
25245/* end confdefs.h.  */
25246
25247#define _SYSCALL32
25248#include <sys/procfs.h>
25249int
25250main ()
25251{
25252pstatus32_t avar
25253  ;
25254  return 0;
25255}
25256_ACEOF
25257rm -f conftest.$ac_objext
25258if { (ac_try="$ac_compile"
25259case "(($ac_try" in
25260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25261  *) ac_try_echo=$ac_try;;
25262esac
25263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25264  (eval "$ac_compile") 2>conftest.er1
25265  ac_status=$?
25266  grep -v '^ *+' conftest.er1 >conftest.err
25267  rm -f conftest.er1
25268  cat conftest.err >&5
25269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25270  (exit $ac_status); } &&
25271	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25272  { (case "(($ac_try" in
25273  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25274  *) ac_try_echo=$ac_try;;
25275esac
25276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25277  (eval "$ac_try") 2>&5
25278  ac_status=$?
25279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25280  (exit $ac_status); }; } &&
25281	 { ac_try='test -s conftest.$ac_objext'
25282  { (case "(($ac_try" in
25283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25284  *) ac_try_echo=$ac_try;;
25285esac
25286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25287  (eval "$ac_try") 2>&5
25288  ac_status=$?
25289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25290  (exit $ac_status); }; }; then
25291  bfd_cv_have_sys_procfs_type_pstatus32_t=yes
25292else
25293  echo "$as_me: failed program was:" >&5
25294sed 's/^/| /' conftest.$ac_ext >&5
25295
25296	bfd_cv_have_sys_procfs_type_pstatus32_t=no
25297
25298fi
25299
25300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25301fi
25302
25303 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
25304
25305cat >>confdefs.h <<\_ACEOF
25306#define HAVE_PSTATUS32_T 1
25307_ACEOF
25308
25309 fi
25310 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
25311echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6; }
25312
25313    { echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
25314echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6; }
25315 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
25316  echo $ECHO_N "(cached) $ECHO_C" >&6
25317else
25318  cat >conftest.$ac_ext <<_ACEOF
25319/* confdefs.h.  */
25320_ACEOF
25321cat confdefs.h >>conftest.$ac_ext
25322cat >>conftest.$ac_ext <<_ACEOF
25323/* end confdefs.h.  */
25324
25325#define _SYSCALL32
25326#include <sys/procfs.h>
25327int
25328main ()
25329{
25330prpsinfo_t avar
25331  ;
25332  return 0;
25333}
25334_ACEOF
25335rm -f conftest.$ac_objext
25336if { (ac_try="$ac_compile"
25337case "(($ac_try" in
25338  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25339  *) ac_try_echo=$ac_try;;
25340esac
25341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25342  (eval "$ac_compile") 2>conftest.er1
25343  ac_status=$?
25344  grep -v '^ *+' conftest.er1 >conftest.err
25345  rm -f conftest.er1
25346  cat conftest.err >&5
25347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25348  (exit $ac_status); } &&
25349	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25350  { (case "(($ac_try" in
25351  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25352  *) ac_try_echo=$ac_try;;
25353esac
25354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25355  (eval "$ac_try") 2>&5
25356  ac_status=$?
25357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25358  (exit $ac_status); }; } &&
25359	 { ac_try='test -s conftest.$ac_objext'
25360  { (case "(($ac_try" in
25361  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25362  *) ac_try_echo=$ac_try;;
25363esac
25364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25365  (eval "$ac_try") 2>&5
25366  ac_status=$?
25367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25368  (exit $ac_status); }; }; then
25369  bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
25370else
25371  echo "$as_me: failed program was:" >&5
25372sed 's/^/| /' conftest.$ac_ext >&5
25373
25374	bfd_cv_have_sys_procfs_type_prpsinfo_t=no
25375
25376fi
25377
25378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25379fi
25380
25381 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
25382
25383cat >>confdefs.h <<\_ACEOF
25384#define HAVE_PRPSINFO_T 1
25385_ACEOF
25386
25387 fi
25388 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
25389echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6; }
25390
25391    { echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
25392echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6; }
25393 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
25394  echo $ECHO_N "(cached) $ECHO_C" >&6
25395else
25396  cat >conftest.$ac_ext <<_ACEOF
25397/* confdefs.h.  */
25398_ACEOF
25399cat confdefs.h >>conftest.$ac_ext
25400cat >>conftest.$ac_ext <<_ACEOF
25401/* end confdefs.h.  */
25402
25403#define _SYSCALL32
25404#include <sys/procfs.h>
25405int
25406main ()
25407{
25408prpsinfo32_t avar
25409  ;
25410  return 0;
25411}
25412_ACEOF
25413rm -f conftest.$ac_objext
25414if { (ac_try="$ac_compile"
25415case "(($ac_try" in
25416  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25417  *) ac_try_echo=$ac_try;;
25418esac
25419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25420  (eval "$ac_compile") 2>conftest.er1
25421  ac_status=$?
25422  grep -v '^ *+' conftest.er1 >conftest.err
25423  rm -f conftest.er1
25424  cat conftest.err >&5
25425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25426  (exit $ac_status); } &&
25427	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25428  { (case "(($ac_try" in
25429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25430  *) ac_try_echo=$ac_try;;
25431esac
25432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25433  (eval "$ac_try") 2>&5
25434  ac_status=$?
25435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25436  (exit $ac_status); }; } &&
25437	 { ac_try='test -s conftest.$ac_objext'
25438  { (case "(($ac_try" in
25439  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25440  *) ac_try_echo=$ac_try;;
25441esac
25442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25443  (eval "$ac_try") 2>&5
25444  ac_status=$?
25445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25446  (exit $ac_status); }; }; then
25447  bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
25448else
25449  echo "$as_me: failed program was:" >&5
25450sed 's/^/| /' conftest.$ac_ext >&5
25451
25452	bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
25453
25454fi
25455
25456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25457fi
25458
25459 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
25460
25461cat >>confdefs.h <<\_ACEOF
25462#define HAVE_PRPSINFO32_T 1
25463_ACEOF
25464
25465 fi
25466 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
25467echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6; }
25468
25469    { echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
25470echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6; }
25471 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
25472  echo $ECHO_N "(cached) $ECHO_C" >&6
25473else
25474  cat >conftest.$ac_ext <<_ACEOF
25475/* confdefs.h.  */
25476_ACEOF
25477cat confdefs.h >>conftest.$ac_ext
25478cat >>conftest.$ac_ext <<_ACEOF
25479/* end confdefs.h.  */
25480
25481#define _SYSCALL32
25482#include <sys/procfs.h>
25483int
25484main ()
25485{
25486psinfo_t avar
25487  ;
25488  return 0;
25489}
25490_ACEOF
25491rm -f conftest.$ac_objext
25492if { (ac_try="$ac_compile"
25493case "(($ac_try" in
25494  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25495  *) ac_try_echo=$ac_try;;
25496esac
25497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25498  (eval "$ac_compile") 2>conftest.er1
25499  ac_status=$?
25500  grep -v '^ *+' conftest.er1 >conftest.err
25501  rm -f conftest.er1
25502  cat conftest.err >&5
25503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25504  (exit $ac_status); } &&
25505	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25506  { (case "(($ac_try" in
25507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25508  *) ac_try_echo=$ac_try;;
25509esac
25510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25511  (eval "$ac_try") 2>&5
25512  ac_status=$?
25513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25514  (exit $ac_status); }; } &&
25515	 { ac_try='test -s conftest.$ac_objext'
25516  { (case "(($ac_try" in
25517  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25518  *) ac_try_echo=$ac_try;;
25519esac
25520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25521  (eval "$ac_try") 2>&5
25522  ac_status=$?
25523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25524  (exit $ac_status); }; }; then
25525  bfd_cv_have_sys_procfs_type_psinfo_t=yes
25526else
25527  echo "$as_me: failed program was:" >&5
25528sed 's/^/| /' conftest.$ac_ext >&5
25529
25530	bfd_cv_have_sys_procfs_type_psinfo_t=no
25531
25532fi
25533
25534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25535fi
25536
25537 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
25538
25539cat >>confdefs.h <<\_ACEOF
25540#define HAVE_PSINFO_T 1
25541_ACEOF
25542
25543 fi
25544 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
25545echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6; }
25546
25547    { echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
25548echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6; }
25549 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
25550  echo $ECHO_N "(cached) $ECHO_C" >&6
25551else
25552  cat >conftest.$ac_ext <<_ACEOF
25553/* confdefs.h.  */
25554_ACEOF
25555cat confdefs.h >>conftest.$ac_ext
25556cat >>conftest.$ac_ext <<_ACEOF
25557/* end confdefs.h.  */
25558
25559#define _SYSCALL32
25560#include <sys/procfs.h>
25561int
25562main ()
25563{
25564psinfo32_t avar
25565  ;
25566  return 0;
25567}
25568_ACEOF
25569rm -f conftest.$ac_objext
25570if { (ac_try="$ac_compile"
25571case "(($ac_try" in
25572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25573  *) ac_try_echo=$ac_try;;
25574esac
25575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25576  (eval "$ac_compile") 2>conftest.er1
25577  ac_status=$?
25578  grep -v '^ *+' conftest.er1 >conftest.err
25579  rm -f conftest.er1
25580  cat conftest.err >&5
25581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25582  (exit $ac_status); } &&
25583	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25584  { (case "(($ac_try" in
25585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25586  *) ac_try_echo=$ac_try;;
25587esac
25588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25589  (eval "$ac_try") 2>&5
25590  ac_status=$?
25591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25592  (exit $ac_status); }; } &&
25593	 { ac_try='test -s conftest.$ac_objext'
25594  { (case "(($ac_try" in
25595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25596  *) ac_try_echo=$ac_try;;
25597esac
25598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25599  (eval "$ac_try") 2>&5
25600  ac_status=$?
25601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25602  (exit $ac_status); }; }; then
25603  bfd_cv_have_sys_procfs_type_psinfo32_t=yes
25604else
25605  echo "$as_me: failed program was:" >&5
25606sed 's/^/| /' conftest.$ac_ext >&5
25607
25608	bfd_cv_have_sys_procfs_type_psinfo32_t=no
25609
25610fi
25611
25612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25613fi
25614
25615 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
25616
25617cat >>confdefs.h <<\_ACEOF
25618#define HAVE_PSINFO32_T 1
25619_ACEOF
25620
25621 fi
25622 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
25623echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6; }
25624
25625    { echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
25626echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6; }
25627 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
25628  echo $ECHO_N "(cached) $ECHO_C" >&6
25629else
25630  cat >conftest.$ac_ext <<_ACEOF
25631/* confdefs.h.  */
25632_ACEOF
25633cat confdefs.h >>conftest.$ac_ext
25634cat >>conftest.$ac_ext <<_ACEOF
25635/* end confdefs.h.  */
25636
25637#define _SYSCALL32
25638#include <sys/procfs.h>
25639int
25640main ()
25641{
25642lwpstatus_t avar
25643  ;
25644  return 0;
25645}
25646_ACEOF
25647rm -f conftest.$ac_objext
25648if { (ac_try="$ac_compile"
25649case "(($ac_try" in
25650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25651  *) ac_try_echo=$ac_try;;
25652esac
25653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25654  (eval "$ac_compile") 2>conftest.er1
25655  ac_status=$?
25656  grep -v '^ *+' conftest.er1 >conftest.err
25657  rm -f conftest.er1
25658  cat conftest.err >&5
25659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25660  (exit $ac_status); } &&
25661	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25662  { (case "(($ac_try" in
25663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25664  *) ac_try_echo=$ac_try;;
25665esac
25666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25667  (eval "$ac_try") 2>&5
25668  ac_status=$?
25669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25670  (exit $ac_status); }; } &&
25671	 { ac_try='test -s conftest.$ac_objext'
25672  { (case "(($ac_try" in
25673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25674  *) ac_try_echo=$ac_try;;
25675esac
25676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25677  (eval "$ac_try") 2>&5
25678  ac_status=$?
25679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25680  (exit $ac_status); }; }; then
25681  bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
25682else
25683  echo "$as_me: failed program was:" >&5
25684sed 's/^/| /' conftest.$ac_ext >&5
25685
25686	bfd_cv_have_sys_procfs_type_lwpstatus_t=no
25687
25688fi
25689
25690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25691fi
25692
25693 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
25694
25695cat >>confdefs.h <<\_ACEOF
25696#define HAVE_LWPSTATUS_T 1
25697_ACEOF
25698
25699 fi
25700 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
25701echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6; }
25702
25703    { echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
25704echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6; }
25705 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
25706  echo $ECHO_N "(cached) $ECHO_C" >&6
25707else
25708  cat >conftest.$ac_ext <<_ACEOF
25709/* confdefs.h.  */
25710_ACEOF
25711cat confdefs.h >>conftest.$ac_ext
25712cat >>conftest.$ac_ext <<_ACEOF
25713/* end confdefs.h.  */
25714
25715#define _SYSCALL32
25716#include <sys/procfs.h>
25717int
25718main ()
25719{
25720lwpxstatus_t avar
25721  ;
25722  return 0;
25723}
25724_ACEOF
25725rm -f conftest.$ac_objext
25726if { (ac_try="$ac_compile"
25727case "(($ac_try" in
25728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25729  *) ac_try_echo=$ac_try;;
25730esac
25731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25732  (eval "$ac_compile") 2>conftest.er1
25733  ac_status=$?
25734  grep -v '^ *+' conftest.er1 >conftest.err
25735  rm -f conftest.er1
25736  cat conftest.err >&5
25737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25738  (exit $ac_status); } &&
25739	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25740  { (case "(($ac_try" in
25741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25742  *) ac_try_echo=$ac_try;;
25743esac
25744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25745  (eval "$ac_try") 2>&5
25746  ac_status=$?
25747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25748  (exit $ac_status); }; } &&
25749	 { ac_try='test -s conftest.$ac_objext'
25750  { (case "(($ac_try" in
25751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25752  *) ac_try_echo=$ac_try;;
25753esac
25754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25755  (eval "$ac_try") 2>&5
25756  ac_status=$?
25757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25758  (exit $ac_status); }; }; then
25759  bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
25760else
25761  echo "$as_me: failed program was:" >&5
25762sed 's/^/| /' conftest.$ac_ext >&5
25763
25764	bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
25765
25766fi
25767
25768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25769fi
25770
25771 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
25772
25773cat >>confdefs.h <<\_ACEOF
25774#define HAVE_LWPXSTATUS_T 1
25775_ACEOF
25776
25777 fi
25778 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
25779echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6; }
25780
25781    { echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
25782echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6; }
25783 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
25784  echo $ECHO_N "(cached) $ECHO_C" >&6
25785else
25786  cat >conftest.$ac_ext <<_ACEOF
25787/* confdefs.h.  */
25788_ACEOF
25789cat confdefs.h >>conftest.$ac_ext
25790cat >>conftest.$ac_ext <<_ACEOF
25791/* end confdefs.h.  */
25792
25793#define _SYSCALL32
25794#include <sys/procfs.h>
25795int
25796main ()
25797{
25798lwpstatus_t avar; void* aref = (void*) &avar.pr_context
25799  ;
25800  return 0;
25801}
25802_ACEOF
25803rm -f conftest.$ac_objext
25804if { (ac_try="$ac_compile"
25805case "(($ac_try" in
25806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25807  *) ac_try_echo=$ac_try;;
25808esac
25809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25810  (eval "$ac_compile") 2>conftest.er1
25811  ac_status=$?
25812  grep -v '^ *+' conftest.er1 >conftest.err
25813  rm -f conftest.er1
25814  cat conftest.err >&5
25815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25816  (exit $ac_status); } &&
25817	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25818  { (case "(($ac_try" in
25819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25820  *) ac_try_echo=$ac_try;;
25821esac
25822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25823  (eval "$ac_try") 2>&5
25824  ac_status=$?
25825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25826  (exit $ac_status); }; } &&
25827	 { ac_try='test -s conftest.$ac_objext'
25828  { (case "(($ac_try" in
25829  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25830  *) ac_try_echo=$ac_try;;
25831esac
25832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25833  (eval "$ac_try") 2>&5
25834  ac_status=$?
25835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25836  (exit $ac_status); }; }; then
25837  bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
25838else
25839  echo "$as_me: failed program was:" >&5
25840sed 's/^/| /' conftest.$ac_ext >&5
25841
25842	bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
25843
25844fi
25845
25846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25847fi
25848
25849 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
25850
25851cat >>confdefs.h <<\_ACEOF
25852#define HAVE_LWPSTATUS_T_PR_CONTEXT 1
25853_ACEOF
25854
25855 fi
25856 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
25857echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6; }
25858
25859    { echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
25860echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6; }
25861 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
25862  echo $ECHO_N "(cached) $ECHO_C" >&6
25863else
25864  cat >conftest.$ac_ext <<_ACEOF
25865/* confdefs.h.  */
25866_ACEOF
25867cat confdefs.h >>conftest.$ac_ext
25868cat >>conftest.$ac_ext <<_ACEOF
25869/* end confdefs.h.  */
25870
25871#define _SYSCALL32
25872#include <sys/procfs.h>
25873int
25874main ()
25875{
25876lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
25877  ;
25878  return 0;
25879}
25880_ACEOF
25881rm -f conftest.$ac_objext
25882if { (ac_try="$ac_compile"
25883case "(($ac_try" in
25884  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25885  *) ac_try_echo=$ac_try;;
25886esac
25887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25888  (eval "$ac_compile") 2>conftest.er1
25889  ac_status=$?
25890  grep -v '^ *+' conftest.er1 >conftest.err
25891  rm -f conftest.er1
25892  cat conftest.err >&5
25893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25894  (exit $ac_status); } &&
25895	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25896  { (case "(($ac_try" in
25897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25898  *) ac_try_echo=$ac_try;;
25899esac
25900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25901  (eval "$ac_try") 2>&5
25902  ac_status=$?
25903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25904  (exit $ac_status); }; } &&
25905	 { ac_try='test -s conftest.$ac_objext'
25906  { (case "(($ac_try" in
25907  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25908  *) ac_try_echo=$ac_try;;
25909esac
25910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25911  (eval "$ac_try") 2>&5
25912  ac_status=$?
25913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25914  (exit $ac_status); }; }; then
25915  bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
25916else
25917  echo "$as_me: failed program was:" >&5
25918sed 's/^/| /' conftest.$ac_ext >&5
25919
25920	bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
25921
25922fi
25923
25924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25925fi
25926
25927 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
25928
25929cat >>confdefs.h <<\_ACEOF
25930#define HAVE_LWPSTATUS_T_PR_REG 1
25931_ACEOF
25932
25933 fi
25934 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
25935echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6; }
25936
25937    { echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
25938echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6; }
25939 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
25940  echo $ECHO_N "(cached) $ECHO_C" >&6
25941else
25942  cat >conftest.$ac_ext <<_ACEOF
25943/* confdefs.h.  */
25944_ACEOF
25945cat confdefs.h >>conftest.$ac_ext
25946cat >>conftest.$ac_ext <<_ACEOF
25947/* end confdefs.h.  */
25948
25949#define _SYSCALL32
25950#include <sys/procfs.h>
25951int
25952main ()
25953{
25954win32_pstatus_t avar
25955  ;
25956  return 0;
25957}
25958_ACEOF
25959rm -f conftest.$ac_objext
25960if { (ac_try="$ac_compile"
25961case "(($ac_try" in
25962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25963  *) ac_try_echo=$ac_try;;
25964esac
25965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25966  (eval "$ac_compile") 2>conftest.er1
25967  ac_status=$?
25968  grep -v '^ *+' conftest.er1 >conftest.err
25969  rm -f conftest.er1
25970  cat conftest.err >&5
25971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25972  (exit $ac_status); } &&
25973	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25974  { (case "(($ac_try" in
25975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25976  *) ac_try_echo=$ac_try;;
25977esac
25978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25979  (eval "$ac_try") 2>&5
25980  ac_status=$?
25981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25982  (exit $ac_status); }; } &&
25983	 { ac_try='test -s conftest.$ac_objext'
25984  { (case "(($ac_try" in
25985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25986  *) ac_try_echo=$ac_try;;
25987esac
25988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25989  (eval "$ac_try") 2>&5
25990  ac_status=$?
25991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25992  (exit $ac_status); }; }; then
25993  bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
25994else
25995  echo "$as_me: failed program was:" >&5
25996sed 's/^/| /' conftest.$ac_ext >&5
25997
25998	bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
25999
26000fi
26001
26002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26003fi
26004
26005 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
26006
26007cat >>confdefs.h <<\_ACEOF
26008#define HAVE_WIN32_PSTATUS_T 1
26009_ACEOF
26010
26011 fi
26012 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
26013echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6; }
26014
26015  fi
26016fi
26017
26018
26019if test -n "$TRAD_HEADER"; then
26020
26021cat >>confdefs.h <<_ACEOF
26022#define TRAD_HEADER $TRAD_HEADER
26023_ACEOF
26024
26025fi
26026
26027# Horrible hacks to build DLLs on Windows.
26028WIN32LDFLAGS=
26029WIN32LIBADD=
26030case "${host}" in
26031*-*-cygwin*)
26032  if test "$enable_shared" = "yes"; then
26033    WIN32LDFLAGS="-no-undefined"
26034    WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
26035  fi
26036  ;;
26037*-*-linux*)
26038  # We borrow WIN32LIBADD so that the shared libbfd won't depend on
26039  # libiberty.a.
26040  case "${host}" in
26041  mips*-*-linux*)
26042    # Linux/MIPS uses PIC by default.
26043    if test "$enable_shared" = "yes"; then
26044      WIN32LIBADD="-L../libiberty -liberty"
26045    fi
26046    ;;
26047  *)
26048    x=`sed -n -e 's/^[ 	]*PICFLAG[ 	]*=[ 	]*//p' < ../libiberty/Makefile | sed -n '$p'`
26049    if test -n "$x"; then
26050      WIN32LIBADD="-L../libiberty/pic -liberty"
26051    fi
26052  ;;
26053  esac
26054  ;;
26055esac
26056
26057
26058
26059# target stuff:
26060
26061# Canonicalize the secondary target names.
26062if test -n "$enable_targets" ; then
26063    for targ in `echo $enable_targets | sed 's/,/ /g'`
26064    do
26065	result=`$ac_config_sub $targ 2>/dev/null`
26066	if test -n "$result" ; then
26067	    canon_targets="$canon_targets $result"
26068	else
26069	    # Allow targets that config.sub doesn't recognize, like "all".
26070	    canon_targets="$canon_targets $targ"
26071	fi
26072    done
26073fi
26074
26075all_targets=false
26076defvec=
26077selvecs=
26078assocvecs=
26079selarchs=
26080TDEFINES=
26081for targ in $target $canon_targets
26082do
26083    if test "x$targ" = "xall"; then
26084        all_targets=true
26085	assocvecs="$assocvecs $targ_defvec $targ_selvecs"
26086    else
26087	. $srcdir/config.bfd
26088	if test "x$targ" = "x$target"; then
26089	    defvec=$targ_defvec
26090	fi
26091	selvecs="$selvecs $targ_defvec $targ_selvecs"
26092	selarchs="$selarchs $targ_archs"
26093	TDEFINES="$TDEFINES $targ_cflags"
26094    fi
26095done
26096
26097
26098# This processing still needs to be done if we're to decide properly whether
26099# 64-bit support needs to be compiled in.  Currently, it will be included if
26100# the default or any other explicitly requested target requires it; it
26101# will not be included on a 32-bit host if no 64-bit target is requested, and
26102# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
26103# used.
26104
26105# uniq the default and selected vectors in all the configured targets.
26106f=""
26107for i in $selvecs ; do
26108    case " $f " in
26109    *" $i "*) ;;
26110    *) f="$f $i" ;;
26111    esac
26112done
26113selvecs="$f"
26114
26115
26116# uniq the associated vectors in all the configured targets.
26117f=""
26118for i in $assocvecs ; do
26119    case " $f " in
26120    *" $i "*) ;;
26121    *) f="$f $i" ;;
26122    esac
26123done
26124assocvecs="$f"
26125
26126
26127# uniq the architectures in all the configured targets.
26128f=""
26129for i in $selarchs ; do
26130    case " $f " in
26131    *" $i "*) ;;
26132    *) f="$f $i" ;;
26133    esac
26134done
26135selarchs="$f"
26136
26137# Target backend .o files.
26138tb=
26139
26140elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
26141
26142for vec in $selvecs
26143do
26144    target_size=32
26145    case "$vec" in
26146    # This list is alphabetized to make it easy to compare
26147    # with the two vector lists in targets.c.  For the same reason,
26148    # use one entry per line, even though this leads to long lines.
26149    a29kcoff_big_vec)		tb="$tb coff-a29k.lo cofflink.lo" ;;
26150    a_out_adobe_vec)		tb="$tb aout-adobe.lo aout32.lo" ;;
26151    aix5coff64_vec)		tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
26152    aout0_big_vec)		tb="$tb aout0.lo aout32.lo" ;;
26153    aout_arm_big_vec)		tb="$tb aout-arm.lo aout32.lo" ;;
26154    aout_arm_little_vec)	tb="$tb aout-arm.lo aout32.lo" ;;
26155    apollocoff_vec)		tb="$tb coff-apollo.lo" ;;
26156    arm_epoc_pe_big_vec)	tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
26157    arm_epoc_pe_little_vec)	tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
26158    arm_epoc_pei_big_vec)	tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
26159    arm_epoc_pei_little_vec)	tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
26160    armcoff_big_vec)		tb="$tb coff-arm.lo cofflink.lo " ;;
26161    armcoff_little_vec)		tb="$tb coff-arm.lo cofflink.lo " ;;
26162    armnetbsd_vec)		tb="$tb armnetbsd.lo aout32.lo" ;;
26163    armpe_big_vec)		tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
26164    armpe_little_vec)		tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
26165    armpei_big_vec)		tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
26166    armpei_little_vec)		tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
26167    b_out_vec_big_host)		tb="$tb bout.lo aout32.lo" ;;
26168    b_out_vec_little_host)	tb="$tb bout.lo aout32.lo" ;;
26169    bfd_efi_app_ia32_vec)	tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
26170    bfd_efi_app_ia64_vec)	tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
26171    bfd_elf32_am33lin_vec)	tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
26172    bfd_elf32_avr_vec)		tb="$tb elf32-avr.lo elf32.lo $elf" ;;
26173    bfd_elf32_big_generic_vec) 	tb="$tb elf32-gen.lo elf32.lo $elf" ;;
26174    bfd_elf32_bigarc_vec)	tb="$tb elf32-arc.lo elf32.lo $elf" ;;
26175    bfd_elf32_bigarm_vec)	tb="$tb elf32-arm.lo elf32.lo $elf" ;;
26176    bfd_elf32_bigarm_symbian_vec)
26177                                tb="$tb elf32-arm.lo elf32.lo $elf" ;;
26178    bfd_elf32_bigarm_vxworks_vec)
26179                                tb="$tb elf32-arm.lo elf32.lo $elf" ;;
26180    bfd_elf32_bigmips_vec) 	tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
26181    bfd_elf32_cr16c_vec)	tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
26182    bfd_elf32_cris_vec)		tb="$tb elf32-cris.lo elf32.lo $elf" ;;
26183    bfd_elf32_crx_vec)          tb="$tb elf32-crx.lo elf32.lo $elf" ;;
26184    bfd_elf32_d10v_vec)		tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
26185    bfd_elf32_d30v_vec)		tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
26186    bfd_elf32_dlx_big_vec)	tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
26187    bfd_elf32_fr30_vec)		tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
26188    bfd_elf32_frv_vec)		tb="$tb elf32-frv.lo elf32.lo $elf" ;;
26189    bfd_elf32_frvfdpic_vec)	tb="$tb elf32-frv.lo elf32.lo $elf" ;;
26190    bfd_elf32_h8300_vec)	tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
26191    bfd_elf32_hppa_linux_vec)	tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
26192    bfd_elf32_hppa_nbsd_vec)	tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
26193    bfd_elf32_hppa_vec)		tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
26194    bfd_elf32_i370_vec)		tb="$tb elf32-i370.lo elf32.lo $elf" ;;
26195    bfd_elf32_i386_freebsd_vec)	tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
26196    bfd_elf32_i386_vxworks_vec)	tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
26197    bfd_elf32_i386_vec)		tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
26198    bfd_elf32_i860_little_vec)	tb="$tb elf32-i860.lo elf32.lo $elf" ;;
26199    bfd_elf32_i860_vec)		tb="$tb elf32-i860.lo elf32.lo $elf" ;;
26200    bfd_elf32_i960_vec)		tb="$tb elf32-i960.lo elf32.lo $elf" ;;
26201    bfd_elf32_ia64_big_vec)	tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
26202    bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
26203    bfd_elf32_ip2k_vec)		tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
26204    bfd_elf32_iq2000_vec)       tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
26205    bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
26206    bfd_elf32_littlearc_vec)	tb="$tb elf32-arc.lo elf32.lo $elf" ;;
26207    bfd_elf32_littlearm_symbian_vec)
26208                                tb="$tb elf32-arm.lo elf32.lo $elf" ;;
26209    bfd_elf32_littlearm_vxworks_vec)
26210                                tb="$tb elf32-arm.lo elf32.lo $elf" ;;
26211    bfd_elf32_littlearm_vec)	tb="$tb elf32-arm.lo elf32.lo $elf" ;;
26212    bfd_elf32_littlemips_vec) 	tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
26213    bfd_elf32_m32r_vec)		tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
26214    bfd_elf32_m32rle_vec)       tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
26215    bfd_elf32_m32rlin_vec)      tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
26216    bfd_elf32_m32rlelin_vec)    tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
26217    bfd_elf32_m68hc11_vec)	tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
26218    bfd_elf32_m68hc12_vec)	tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
26219    bfd_elf32_m68k_vec)		tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
26220    bfd_elf32_m88k_vec)		tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
26221    bfd_elf32_mcore_big_vec)	tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
26222    bfd_elf32_mcore_little_vec)	tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
26223    bfd_elf32_mn10200_vec)	tb="$tb elf-m10200.lo elf32.lo $elf" ;;
26224    bfd_elf32_mn10300_vec)	tb="$tb elf-m10300.lo elf32.lo $elf" ;;
26225    bfd_elf32_ms1_vec)          tb="$tb elf32-ms1.lo elf32.lo $elf" ;;
26226    bfd_elf32_msp430_vec)	tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
26227    bfd_elf32_nbigmips_vec)	tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
26228    bfd_elf32_nlittlemips_vec)	tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
26229    bfd_elf32_ntradbigmips_vec)	tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
26230    bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
26231    bfd_elf32_openrisc_vec)	tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
26232    bfd_elf32_or32_big_vec)	tb="$tb elf32-or32.lo elf32.lo $elf" ;;
26233    bfd_elf32_pj_vec)           tb="$tb elf32-pj.lo elf32.lo $elf";;
26234    bfd_elf32_pjl_vec)          tb="$tb elf32-pj.lo elf32.lo $elf";;
26235    bfd_elf32_powerpc_vec)	tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
26236    bfd_elf32_powerpcle_vec)	tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
26237    bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
26238    bfd_elf32_s390_vec)		tb="$tb elf32-s390.lo elf32.lo $elf" ;;
26239    # FIXME: We include cofflink.lo not because it's needed for
26240    # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
26241    # which needs it but does not list it.  Should be fixed in right place.
26242    bfd_elf32_sh64_vec)		tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
26243    bfd_elf32_sh64l_vec)	tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
26244    bfd_elf32_sh64lin_vec)	tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
26245    bfd_elf32_sh64blin_vec)	tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
26246    bfd_elf32_sh64lnbsd_vec)	tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
26247    bfd_elf32_sh64nbsd_vec)	tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
26248    bfd_elf32_sh_vec)		tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
26249    bfd_elf32_shblin_vec)	tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
26250    bfd_elf32_shl_vec)		tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
26251    bfd_elf32_shl_symbian_vec)	tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf32.lo $elf coff-sh.lo" ;;
26252    bfd_elf32_shlin_vec)	tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
26253    bfd_elf32_shlnbsd_vec)	tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
26254    bfd_elf32_shnbsd_vec)	tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
26255    bfd_elf32_sparc_vec)	tb="$tb elf32-sparc.lo elfxx-sparc.lo elf32.lo $elf" ;;
26256    bfd_elf32_tradbigmips_vec)  tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
26257    bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
26258    bfd_elf32_us_cris_vec)	tb="$tb elf32-cris.lo elf32.lo $elf" ;;
26259    bfd_elf32_v850_vec)		tb="$tb elf32-v850.lo elf32.lo $elf" ;;
26260    bfd_elf32_vax_vec)		tb="$tb elf32-vax.lo elf32.lo $elf" ;;
26261    bfd_elf32_xstormy16_vec)	tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
26262    bfd_elf32_xtensa_le_vec)	tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
26263    bfd_elf32_xtensa_be_vec)	tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
26264    bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
26265    bfd_elf64_alpha_vec)	tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
26266    bfd_elf64_big_generic_vec) 	tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
26267    bfd_elf64_bigmips_vec) 	tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
26268    bfd_elf64_hppa_linux_vec)	tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
26269    bfd_elf64_hppa_vec)		tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
26270    bfd_elf64_ia64_big_vec)	tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
26271    bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
26272    bfd_elf64_ia64_little_vec)	tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
26273    bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
26274    bfd_elf64_littlemips_vec) 	tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
26275    bfd_elf64_mmix_vec) 	tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
26276    bfd_elf64_powerpc_vec)	tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
26277    bfd_elf64_powerpcle_vec)	tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
26278    bfd_elf64_s390_vec)		tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
26279    bfd_elf64_sh64_vec)		tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
26280    bfd_elf64_sh64l_vec)	tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
26281    bfd_elf64_sh64lin_vec)	tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
26282    bfd_elf64_sh64blin_vec)	tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
26283    bfd_elf64_sh64lnbsd_vec)	tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
26284    bfd_elf64_sh64nbsd_vec)	tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
26285    bfd_elf64_sparc_vec)	tb="$tb elf64-sparc.lo elfxx-sparc.lo elf64.lo $elf"; target_size=64 ;;
26286    bfd_elf64_tradbigmips_vec)	tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
26287    bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
26288    bfd_elf64_x86_64_vec)	tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
26289    bfd_mmo_vec)		tb="$tb mmo.lo" target_size=64 ;;
26290    bfd_powerpc_pe_vec)         tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
26291    bfd_powerpc_pei_vec)        tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
26292    bfd_powerpcle_pe_vec)       tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
26293    bfd_powerpcle_pei_vec)      tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
26294    cris_aout_vec)		tb="$tb aout-cris.lo" ;;
26295    demo_64_vec)		tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
26296    ecoff_big_vec)		tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
26297    ecoff_biglittle_vec)	tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
26298    ecoff_little_vec)		tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
26299    ecoffalpha_little_vec)	tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
26300    go32coff_vec)		tb="$tb coff-go32.lo cofflink.lo" ;;
26301    go32stubbedcoff_vec)	tb="$tb coff-stgo32.lo cofflink.lo" ;;
26302    h8300coff_vec)		tb="$tb coff-h8300.lo reloc16.lo" ;;
26303    h8500coff_vec)		tb="$tb coff-h8500.lo reloc16.lo" ;;
26304    host_aout_vec)		tb="$tb host-aout.lo aout32.lo" ;;
26305    hp300bsd_vec)		tb="$tb hp300bsd.lo aout32.lo" ;;
26306    hp300hpux_vec)		tb="$tb hp300hpux.lo aout32.lo" ;;
26307    i386aout_vec)		tb="$tb i386aout.lo aout32.lo" ;;
26308    i386bsd_vec)		tb="$tb i386bsd.lo aout32.lo" ;;
26309    i386coff_vec)		tb="$tb coff-i386.lo cofflink.lo" ;;
26310    i386dynix_vec)		tb="$tb i386dynix.lo aout32.lo" ;;
26311    i386freebsd_vec)		tb="$tb i386freebsd.lo aout32.lo" ;;
26312    i386linux_vec)		tb="$tb i386linux.lo aout32.lo" ;;
26313    i386lynx_aout_vec)		tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
26314    i386lynx_coff_vec)		tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
26315    i386mach3_vec)		tb="$tb i386mach3.lo aout32.lo" ;;
26316    i386msdos_vec)		tb="$tb i386msdos.lo" ;;
26317    i386netbsd_vec)		tb="$tb i386netbsd.lo aout32.lo" ;;
26318    i386os9k_vec)		tb="$tb i386os9k.lo aout32.lo" ;;
26319    i386pe_vec)			tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
26320    i386pei_vec)		tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
26321    i860coff_vec)		tb="$tb coff-i860.lo cofflink.lo" ;;
26322    icoff_big_vec)		tb="$tb coff-i960.lo cofflink.lo" ;;
26323    icoff_little_vec)		tb="$tb coff-i960.lo cofflink.lo" ;;
26324    ieee_vec)			tb="$tb ieee.lo" ;;
26325    m68k4knetbsd_vec)		tb="$tb m68k4knetbsd.lo aout32.lo" ;;
26326    m68kaux_coff_vec)		tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
26327    m68kcoff_vec)		tb="$tb coff-m68k.lo cofflink.lo" ;;
26328    m68kcoffun_vec)		tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
26329    m68klinux_vec)		tb="$tb m68klinux.lo aout32.lo" ;;
26330    m68klynx_aout_vec)		tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
26331    m68klynx_coff_vec)		tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
26332    m68knetbsd_vec)		tb="$tb m68knetbsd.lo aout32.lo" ;;
26333    m68ksysvcoff_vec)		tb="$tb coff-svm68k.lo cofflink.lo" ;;
26334    m88kbcs_vec)		tb="$tb coff-m88k.lo" ;;
26335    m88kmach3_vec)		tb="$tb m88kmach3.lo aout32.lo" ;;
26336    m88kopenbsd_vec)		tb="$tb m88kopenbsd.lo aout32.lo" ;;
26337    maxqcoff_vec)               tb="$tb coff-maxq.lo" ;;
26338    mach_o_be_vec)              tb="$tb mach-o.lo" ;;
26339    mach_o_le_vec)              tb="$tb mach-o.lo" ;;
26340    mach_o_fat_vec)             tb="$tb mach-o.lo" ;;
26341    mcore_pe_big_vec)		tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
26342    mcore_pe_little_vec)	tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
26343    mcore_pei_big_vec)		tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
26344    mcore_pei_little_vec)	tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
26345    mipslpe_vec)		tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
26346    mipslpei_vec)		tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
26347    newsos3_vec)		tb="$tb newsos3.lo aout32.lo" ;;
26348    nlm32_alpha_vec)		tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
26349    nlm32_i386_vec)		tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
26350    nlm32_powerpc_vec)		tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
26351    nlm32_sparc_vec)		tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
26352    or32coff_big_vec)		tb="$tb coff-or32.lo cofflink.lo" ;;
26353    pc532machaout_vec)		tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
26354    pc532netbsd_vec)		tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
26355    pef_vec)                    tb="$tb pef.lo" ;;
26356    pef_xlib_vec)               tb="$tb pef.lo" ;;
26357    pdp11_aout_vec)		tb="$tb pdp11.lo" ;;
26358    pmac_xcoff_vec)		tb="$tb coff-rs6000.lo xcofflink.lo" ;;
26359    ppcboot_vec)		tb="$tb ppcboot.lo" ;;
26360    riscix_vec)			tb="$tb aout32.lo riscix.lo" ;;
26361    rs6000coff64_vec)		tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
26362    rs6000coff_vec)		tb="$tb coff-rs6000.lo xcofflink.lo" ;;
26363    shcoff_small_vec)		tb="$tb coff-sh.lo cofflink.lo" ;;
26364    shcoff_vec)			tb="$tb coff-sh.lo cofflink.lo" ;;
26365    shlcoff_small_vec)		tb="$tb coff-sh.lo cofflink.lo" ;;
26366    shlcoff_vec)		tb="$tb coff-sh.lo cofflink.lo" ;;
26367    shlpe_vec)			tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
26368    shlpei_vec)			tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
26369    som_vec)			tb="$tb som.lo" ;;
26370    sparccoff_vec)		tb="$tb coff-sparc.lo" ;;
26371    sparcle_aout_vec)		tb="$tb aout-sparcle.lo aout32.lo" ;;
26372    sparclinux_vec)		tb="$tb sparclinux.lo aout32.lo" ;;
26373    sparclynx_aout_vec)		tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
26374    sparclynx_coff_vec)		tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
26375    sparcnetbsd_vec)		tb="$tb sparcnetbsd.lo aout32.lo" ;;
26376    sunos_big_vec)		tb="$tb sunos.lo aout32.lo" ;;
26377    sym_vec)                    tb="$tb xsym.lo" ;;
26378    tic30_aout_vec)		tb="$tb aout-tic30.lo" ;;
26379    tic30_coff_vec)		tb="$tb coff-tic30.lo" ;;
26380    tic4x_coff0_vec)            tb="$tb coff-tic4x.lo" ;;
26381    tic4x_coff0_beh_vec)        tb="$tb coff-tic4x.lo" ;;
26382    tic4x_coff1_vec)            tb="$tb coff-tic4x.lo" ;;
26383    tic4x_coff1_beh_vec)        tb="$tb coff-tic4x.lo" ;;
26384    tic4x_coff2_vec)            tb="$tb coff-tic4x.lo" ;;
26385    tic4x_coff2_beh_vec)        tb="$tb coff-tic4x.lo" ;;
26386    tic54x_coff0_beh_vec)	tb="$tb coff-tic54x.lo" ;;
26387    tic54x_coff0_vec)		tb="$tb coff-tic54x.lo" ;;
26388    tic54x_coff1_beh_vec)	tb="$tb coff-tic54x.lo" ;;
26389    tic54x_coff1_vec)		tb="$tb coff-tic54x.lo" ;;
26390    tic54x_coff2_beh_vec)	tb="$tb coff-tic54x.lo" ;;
26391    tic54x_coff2_vec)		tb="$tb coff-tic54x.lo" ;;
26392    tic80coff_vec)		tb="$tb coff-tic80.lo cofflink.lo" ;;
26393    vaxnetbsd_vec)		tb="$tb vaxnetbsd.lo aout32.lo" ;;
26394    vax1knetbsd_vec)		tb="$tb vax1knetbsd.lo aout32.lo" ;;
26395    vaxbsd_vec)			tb="$tb vaxbsd.lo aout32.lo" ;;
26396    versados_vec)		tb="$tb versados.lo" ;;
26397    vms_alpha_vec)		tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
26398    vms_vax_vec)		tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
26399    w65_vec)			tb="$tb coff-w65.lo reloc16.lo" ;;
26400    we32kcoff_vec)		tb="$tb coff-we32k.lo" ;;
26401    z8kcoff_vec)		tb="$tb coff-z8k.lo reloc16.lo" ;;
26402
26403    # These appear out of order in targets.c
26404    srec_vec)			tb="$tb srec.lo" ;;
26405    symbolsrec_vec)		tb="$tb srec.lo" ;;
26406    tekhex_vec)			tb="$tb tekhex.lo" ;;
26407    cisco_core_big_vec)		tb="$tb cisco-core.lo" ;;
26408    cisco_core_little_vec)	tb="$tb cisco-core.lo" ;;
26409
26410    "")			;;
26411    *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
26412echo "$as_me: error: *** unknown target vector $vec" >&2;}
26413   { (exit 1); exit 1; }; } ;;
26414    esac
26415
26416    if test ${target_size} = 64; then
26417	target64=true
26418    fi
26419    if test x"${vec}" = x"${defvec}"; then
26420	bfd_default_target_size=${target_size}
26421    fi
26422done
26423
26424# Target architecture .o files.
26425# A couple of CPUs use shorter file names to avoid problems on DOS
26426# filesystems.
26427ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
26428
26429# Weed out duplicate .o files.
26430f=""
26431for i in $tb ; do
26432    case " $f " in
26433    *" $i "*) ;;
26434    *) f="$f $i" ;;
26435    esac
26436done
26437tb="$f"
26438
26439f=""
26440for i in $ta ; do
26441    case " $f " in
26442    *" $i "*) ;;
26443    *) f="$f $i" ;;
26444    esac
26445done
26446ta="$f"
26447
26448bfd_backends="$tb"
26449bfd_machines="$ta"
26450
26451if test x${all_targets} = xtrue ; then
26452  bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
26453  bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
26454  selvecs=
26455  havevecs=
26456  selarchs=
26457  test -n "$assocvecs" &&
26458    assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
26459else	# all_targets is true
26460  # Only set these if they will be nonempty, for the clever echo.
26461  havevecs=
26462  assocvecs=
26463  test -n "$selvecs" &&
26464    havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
26465  test -n "$selvecs" &&
26466    selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
26467  test -n "$selarchs" &&
26468    selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
26469fi	# all_targets is true
26470
26471case ${host64}-${target64}-${want64} in
26472  *true*)
26473    wordsize=64
26474    bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
26475    all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
26476    if test $BFD_HOST_64_BIT_DEFINED = 0; then
26477      { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
26478echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
26479      { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
26480echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
26481    fi
26482    if test -n "$GCC" ; then
26483       bad_64bit_gcc=no;
26484       { echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
26485echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6; }
26486       # Add more tests for gcc versions with non-working 64-bit support here.
26487       cat >conftest.$ac_ext <<_ACEOF
26488/* confdefs.h.  */
26489_ACEOF
26490cat confdefs.h >>conftest.$ac_ext
26491cat >>conftest.$ac_ext <<_ACEOF
26492/* end confdefs.h.  */
26493:__GNUC__:__GNUC_MINOR__:__i386__:
26494_ACEOF
26495if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26496  $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
26497  bad_64bit_gcc=yes;
26498		    { echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
26499echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6; }
26500else
26501  { echo "$as_me:$LINENO: result: no" >&5
26502echo "${ECHO_T}no" >&6; }
26503fi
26504rm -f conftest*
26505
26506       if test $bad_64bit_gcc = yes ; then
26507	 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
26508echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
26509   { (exit 1); exit 1; }; }
26510       fi
26511    fi
26512    ;;
26513  false-false-false)
26514    wordsize=32
26515    bfd_libs='$(BFD32_LIBS)'
26516    all_backends='$(BFD32_BACKENDS)'
26517    ;;
26518esac
26519
26520
26521
26522
26523
26524
26525
26526
26527# Determine the host dependant file_ptr a.k.a. off_t type.  In order
26528# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
26529# fseeko, long.  This assumes that sizeof off_t is .ge. sizeof long.
26530# Hopefully a reasonable assumption since fseeko et.al. should be
26531# upward compatible.
26532
26533
26534
26535
26536for ac_func in ftello ftello64 fseeko fseeko64
26537do
26538as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26539{ echo "$as_me:$LINENO: checking for $ac_func" >&5
26540echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26541if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26542  echo $ECHO_N "(cached) $ECHO_C" >&6
26543else
26544  cat >conftest.$ac_ext <<_ACEOF
26545/* confdefs.h.  */
26546_ACEOF
26547cat confdefs.h >>conftest.$ac_ext
26548cat >>conftest.$ac_ext <<_ACEOF
26549/* end confdefs.h.  */
26550/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26551   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26552#define $ac_func innocuous_$ac_func
26553
26554/* System header to define __stub macros and hopefully few prototypes,
26555    which can conflict with char $ac_func (); below.
26556    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26557    <limits.h> exists even on freestanding compilers.  */
26558
26559#ifdef __STDC__
26560# include <limits.h>
26561#else
26562# include <assert.h>
26563#endif
26564
26565#undef $ac_func
26566
26567/* Override any GCC internal prototype to avoid an error.
26568   Use char because int might match the return type of a GCC
26569   builtin and then its argument prototype would still apply.  */
26570#ifdef __cplusplus
26571extern "C"
26572#endif
26573char $ac_func ();
26574/* The GNU C library defines this for functions which it implements
26575    to always fail with ENOSYS.  Some functions are actually named
26576    something starting with __ and the normal name is an alias.  */
26577#if defined __stub_$ac_func || defined __stub___$ac_func
26578choke me
26579#endif
26580
26581int
26582main ()
26583{
26584return $ac_func ();
26585  ;
26586  return 0;
26587}
26588_ACEOF
26589rm -f conftest.$ac_objext conftest$ac_exeext
26590if { (ac_try="$ac_link"
26591case "(($ac_try" in
26592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26593  *) ac_try_echo=$ac_try;;
26594esac
26595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26596  (eval "$ac_link") 2>conftest.er1
26597  ac_status=$?
26598  grep -v '^ *+' conftest.er1 >conftest.err
26599  rm -f conftest.er1
26600  cat conftest.err >&5
26601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26602  (exit $ac_status); } &&
26603	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26604  { (case "(($ac_try" in
26605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26606  *) ac_try_echo=$ac_try;;
26607esac
26608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26609  (eval "$ac_try") 2>&5
26610  ac_status=$?
26611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26612  (exit $ac_status); }; } &&
26613	 { ac_try='test -s conftest$ac_exeext'
26614  { (case "(($ac_try" in
26615  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26616  *) ac_try_echo=$ac_try;;
26617esac
26618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26619  (eval "$ac_try") 2>&5
26620  ac_status=$?
26621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26622  (exit $ac_status); }; }; then
26623  eval "$as_ac_var=yes"
26624else
26625  echo "$as_me: failed program was:" >&5
26626sed 's/^/| /' conftest.$ac_ext >&5
26627
26628	eval "$as_ac_var=no"
26629fi
26630
26631rm -f core conftest.err conftest.$ac_objext \
26632      conftest$ac_exeext conftest.$ac_ext
26633fi
26634ac_res=`eval echo '${'$as_ac_var'}'`
26635	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26636echo "${ECHO_T}$ac_res" >&6; }
26637if test `eval echo '${'$as_ac_var'}'` = yes; then
26638  cat >>confdefs.h <<_ACEOF
26639#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26640_ACEOF
26641
26642fi
26643done
26644
26645if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
26646    { echo "$as_me:$LINENO: checking for off_t" >&5
26647echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
26648if test "${ac_cv_type_off_t+set}" = set; then
26649  echo $ECHO_N "(cached) $ECHO_C" >&6
26650else
26651  cat >conftest.$ac_ext <<_ACEOF
26652/* confdefs.h.  */
26653_ACEOF
26654cat confdefs.h >>conftest.$ac_ext
26655cat >>conftest.$ac_ext <<_ACEOF
26656/* end confdefs.h.  */
26657$ac_includes_default
26658typedef off_t ac__type_new_;
26659int
26660main ()
26661{
26662if ((ac__type_new_ *) 0)
26663  return 0;
26664if (sizeof (ac__type_new_))
26665  return 0;
26666  ;
26667  return 0;
26668}
26669_ACEOF
26670rm -f conftest.$ac_objext
26671if { (ac_try="$ac_compile"
26672case "(($ac_try" in
26673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26674  *) ac_try_echo=$ac_try;;
26675esac
26676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26677  (eval "$ac_compile") 2>conftest.er1
26678  ac_status=$?
26679  grep -v '^ *+' conftest.er1 >conftest.err
26680  rm -f conftest.er1
26681  cat conftest.err >&5
26682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26683  (exit $ac_status); } &&
26684	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26685  { (case "(($ac_try" in
26686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26687  *) ac_try_echo=$ac_try;;
26688esac
26689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26690  (eval "$ac_try") 2>&5
26691  ac_status=$?
26692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26693  (exit $ac_status); }; } &&
26694	 { ac_try='test -s conftest.$ac_objext'
26695  { (case "(($ac_try" in
26696  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26697  *) ac_try_echo=$ac_try;;
26698esac
26699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26700  (eval "$ac_try") 2>&5
26701  ac_status=$?
26702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26703  (exit $ac_status); }; }; then
26704  ac_cv_type_off_t=yes
26705else
26706  echo "$as_me: failed program was:" >&5
26707sed 's/^/| /' conftest.$ac_ext >&5
26708
26709	ac_cv_type_off_t=no
26710fi
26711
26712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26713fi
26714{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
26715echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
26716
26717{ echo "$as_me:$LINENO: checking size of off_t" >&5
26718echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
26719if test "${ac_cv_sizeof_off_t+set}" = set; then
26720  echo $ECHO_N "(cached) $ECHO_C" >&6
26721else
26722  if test "$ac_cv_type_off_t" = yes; then
26723  # The cast to long int works around a bug in the HP C Compiler
26724  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26725  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26726  # This bug is HP SR number 8606223364.
26727  if test "$cross_compiling" = yes; then
26728  # Depending upon the size, compute the lo and hi bounds.
26729cat >conftest.$ac_ext <<_ACEOF
26730/* confdefs.h.  */
26731_ACEOF
26732cat confdefs.h >>conftest.$ac_ext
26733cat >>conftest.$ac_ext <<_ACEOF
26734/* end confdefs.h.  */
26735$ac_includes_default
26736		   typedef off_t ac__type_sizeof_;
26737int
26738main ()
26739{
26740static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26741test_array [0] = 0
26742
26743  ;
26744  return 0;
26745}
26746_ACEOF
26747rm -f conftest.$ac_objext
26748if { (ac_try="$ac_compile"
26749case "(($ac_try" in
26750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26751  *) ac_try_echo=$ac_try;;
26752esac
26753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26754  (eval "$ac_compile") 2>conftest.er1
26755  ac_status=$?
26756  grep -v '^ *+' conftest.er1 >conftest.err
26757  rm -f conftest.er1
26758  cat conftest.err >&5
26759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26760  (exit $ac_status); } &&
26761	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26762  { (case "(($ac_try" in
26763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26764  *) ac_try_echo=$ac_try;;
26765esac
26766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26767  (eval "$ac_try") 2>&5
26768  ac_status=$?
26769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26770  (exit $ac_status); }; } &&
26771	 { ac_try='test -s conftest.$ac_objext'
26772  { (case "(($ac_try" in
26773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26774  *) ac_try_echo=$ac_try;;
26775esac
26776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26777  (eval "$ac_try") 2>&5
26778  ac_status=$?
26779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26780  (exit $ac_status); }; }; then
26781  ac_lo=0 ac_mid=0
26782  while :; do
26783    cat >conftest.$ac_ext <<_ACEOF
26784/* confdefs.h.  */
26785_ACEOF
26786cat confdefs.h >>conftest.$ac_ext
26787cat >>conftest.$ac_ext <<_ACEOF
26788/* end confdefs.h.  */
26789$ac_includes_default
26790		   typedef off_t ac__type_sizeof_;
26791int
26792main ()
26793{
26794static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26795test_array [0] = 0
26796
26797  ;
26798  return 0;
26799}
26800_ACEOF
26801rm -f conftest.$ac_objext
26802if { (ac_try="$ac_compile"
26803case "(($ac_try" in
26804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26805  *) ac_try_echo=$ac_try;;
26806esac
26807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26808  (eval "$ac_compile") 2>conftest.er1
26809  ac_status=$?
26810  grep -v '^ *+' conftest.er1 >conftest.err
26811  rm -f conftest.er1
26812  cat conftest.err >&5
26813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26814  (exit $ac_status); } &&
26815	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26816  { (case "(($ac_try" in
26817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26818  *) ac_try_echo=$ac_try;;
26819esac
26820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26821  (eval "$ac_try") 2>&5
26822  ac_status=$?
26823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26824  (exit $ac_status); }; } &&
26825	 { ac_try='test -s conftest.$ac_objext'
26826  { (case "(($ac_try" in
26827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26828  *) ac_try_echo=$ac_try;;
26829esac
26830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26831  (eval "$ac_try") 2>&5
26832  ac_status=$?
26833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26834  (exit $ac_status); }; }; then
26835  ac_hi=$ac_mid; break
26836else
26837  echo "$as_me: failed program was:" >&5
26838sed 's/^/| /' conftest.$ac_ext >&5
26839
26840	ac_lo=`expr $ac_mid + 1`
26841			if test $ac_lo -le $ac_mid; then
26842			  ac_lo= ac_hi=
26843			  break
26844			fi
26845			ac_mid=`expr 2 '*' $ac_mid + 1`
26846fi
26847
26848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26849  done
26850else
26851  echo "$as_me: failed program was:" >&5
26852sed 's/^/| /' conftest.$ac_ext >&5
26853
26854	cat >conftest.$ac_ext <<_ACEOF
26855/* confdefs.h.  */
26856_ACEOF
26857cat confdefs.h >>conftest.$ac_ext
26858cat >>conftest.$ac_ext <<_ACEOF
26859/* end confdefs.h.  */
26860$ac_includes_default
26861		   typedef off_t ac__type_sizeof_;
26862int
26863main ()
26864{
26865static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26866test_array [0] = 0
26867
26868  ;
26869  return 0;
26870}
26871_ACEOF
26872rm -f conftest.$ac_objext
26873if { (ac_try="$ac_compile"
26874case "(($ac_try" in
26875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26876  *) ac_try_echo=$ac_try;;
26877esac
26878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26879  (eval "$ac_compile") 2>conftest.er1
26880  ac_status=$?
26881  grep -v '^ *+' conftest.er1 >conftest.err
26882  rm -f conftest.er1
26883  cat conftest.err >&5
26884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26885  (exit $ac_status); } &&
26886	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26887  { (case "(($ac_try" in
26888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26889  *) ac_try_echo=$ac_try;;
26890esac
26891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26892  (eval "$ac_try") 2>&5
26893  ac_status=$?
26894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26895  (exit $ac_status); }; } &&
26896	 { ac_try='test -s conftest.$ac_objext'
26897  { (case "(($ac_try" in
26898  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26899  *) ac_try_echo=$ac_try;;
26900esac
26901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26902  (eval "$ac_try") 2>&5
26903  ac_status=$?
26904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26905  (exit $ac_status); }; }; then
26906  ac_hi=-1 ac_mid=-1
26907  while :; do
26908    cat >conftest.$ac_ext <<_ACEOF
26909/* confdefs.h.  */
26910_ACEOF
26911cat confdefs.h >>conftest.$ac_ext
26912cat >>conftest.$ac_ext <<_ACEOF
26913/* end confdefs.h.  */
26914$ac_includes_default
26915		   typedef off_t ac__type_sizeof_;
26916int
26917main ()
26918{
26919static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26920test_array [0] = 0
26921
26922  ;
26923  return 0;
26924}
26925_ACEOF
26926rm -f conftest.$ac_objext
26927if { (ac_try="$ac_compile"
26928case "(($ac_try" in
26929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26930  *) ac_try_echo=$ac_try;;
26931esac
26932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26933  (eval "$ac_compile") 2>conftest.er1
26934  ac_status=$?
26935  grep -v '^ *+' conftest.er1 >conftest.err
26936  rm -f conftest.er1
26937  cat conftest.err >&5
26938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26939  (exit $ac_status); } &&
26940	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26941  { (case "(($ac_try" in
26942  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26943  *) ac_try_echo=$ac_try;;
26944esac
26945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26946  (eval "$ac_try") 2>&5
26947  ac_status=$?
26948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26949  (exit $ac_status); }; } &&
26950	 { ac_try='test -s conftest.$ac_objext'
26951  { (case "(($ac_try" in
26952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26953  *) ac_try_echo=$ac_try;;
26954esac
26955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26956  (eval "$ac_try") 2>&5
26957  ac_status=$?
26958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26959  (exit $ac_status); }; }; then
26960  ac_lo=$ac_mid; break
26961else
26962  echo "$as_me: failed program was:" >&5
26963sed 's/^/| /' conftest.$ac_ext >&5
26964
26965	ac_hi=`expr '(' $ac_mid ')' - 1`
26966			if test $ac_mid -le $ac_hi; then
26967			  ac_lo= ac_hi=
26968			  break
26969			fi
26970			ac_mid=`expr 2 '*' $ac_mid`
26971fi
26972
26973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26974  done
26975else
26976  echo "$as_me: failed program was:" >&5
26977sed 's/^/| /' conftest.$ac_ext >&5
26978
26979	ac_lo= ac_hi=
26980fi
26981
26982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26983fi
26984
26985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26986# Binary search between lo and hi bounds.
26987while test "x$ac_lo" != "x$ac_hi"; do
26988  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26989  cat >conftest.$ac_ext <<_ACEOF
26990/* confdefs.h.  */
26991_ACEOF
26992cat confdefs.h >>conftest.$ac_ext
26993cat >>conftest.$ac_ext <<_ACEOF
26994/* end confdefs.h.  */
26995$ac_includes_default
26996		   typedef off_t ac__type_sizeof_;
26997int
26998main ()
26999{
27000static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27001test_array [0] = 0
27002
27003  ;
27004  return 0;
27005}
27006_ACEOF
27007rm -f conftest.$ac_objext
27008if { (ac_try="$ac_compile"
27009case "(($ac_try" in
27010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27011  *) ac_try_echo=$ac_try;;
27012esac
27013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27014  (eval "$ac_compile") 2>conftest.er1
27015  ac_status=$?
27016  grep -v '^ *+' conftest.er1 >conftest.err
27017  rm -f conftest.er1
27018  cat conftest.err >&5
27019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27020  (exit $ac_status); } &&
27021	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27022  { (case "(($ac_try" in
27023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27024  *) ac_try_echo=$ac_try;;
27025esac
27026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27027  (eval "$ac_try") 2>&5
27028  ac_status=$?
27029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030  (exit $ac_status); }; } &&
27031	 { ac_try='test -s conftest.$ac_objext'
27032  { (case "(($ac_try" in
27033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27034  *) ac_try_echo=$ac_try;;
27035esac
27036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27037  (eval "$ac_try") 2>&5
27038  ac_status=$?
27039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27040  (exit $ac_status); }; }; then
27041  ac_hi=$ac_mid
27042else
27043  echo "$as_me: failed program was:" >&5
27044sed 's/^/| /' conftest.$ac_ext >&5
27045
27046	ac_lo=`expr '(' $ac_mid ')' + 1`
27047fi
27048
27049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27050done
27051case $ac_lo in
27052?*) ac_cv_sizeof_off_t=$ac_lo;;
27053'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
27054See \`config.log' for more details." >&5
27055echo "$as_me: error: cannot compute sizeof (off_t)
27056See \`config.log' for more details." >&2;}
27057   { (exit 77); exit 77; }; } ;;
27058esac
27059else
27060  cat >conftest.$ac_ext <<_ACEOF
27061/* confdefs.h.  */
27062_ACEOF
27063cat confdefs.h >>conftest.$ac_ext
27064cat >>conftest.$ac_ext <<_ACEOF
27065/* end confdefs.h.  */
27066$ac_includes_default
27067		   typedef off_t ac__type_sizeof_;
27068static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27069static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27070#include <stdio.h>
27071#include <stdlib.h>
27072int
27073main ()
27074{
27075
27076  FILE *f = fopen ("conftest.val", "w");
27077  if (! f)
27078    return 1;
27079  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27080    {
27081      long int i = longval ();
27082      if (i != ((long int) (sizeof (ac__type_sizeof_))))
27083	return 1;
27084      fprintf (f, "%ld\n", i);
27085    }
27086  else
27087    {
27088      unsigned long int i = ulongval ();
27089      if (i != ((long int) (sizeof (ac__type_sizeof_))))
27090	return 1;
27091      fprintf (f, "%lu\n", i);
27092    }
27093  return ferror (f) || fclose (f) != 0;
27094
27095  ;
27096  return 0;
27097}
27098_ACEOF
27099rm -f conftest$ac_exeext
27100if { (ac_try="$ac_link"
27101case "(($ac_try" in
27102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27103  *) ac_try_echo=$ac_try;;
27104esac
27105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27106  (eval "$ac_link") 2>&5
27107  ac_status=$?
27108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27109  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27110  { (case "(($ac_try" in
27111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27112  *) ac_try_echo=$ac_try;;
27113esac
27114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27115  (eval "$ac_try") 2>&5
27116  ac_status=$?
27117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27118  (exit $ac_status); }; }; then
27119  ac_cv_sizeof_off_t=`cat conftest.val`
27120else
27121  echo "$as_me: program exited with status $ac_status" >&5
27122echo "$as_me: failed program was:" >&5
27123sed 's/^/| /' conftest.$ac_ext >&5
27124
27125( exit $ac_status )
27126{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
27127See \`config.log' for more details." >&5
27128echo "$as_me: error: cannot compute sizeof (off_t)
27129See \`config.log' for more details." >&2;}
27130   { (exit 77); exit 77; }; }
27131fi
27132rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27133fi
27134rm -f conftest.val
27135else
27136  ac_cv_sizeof_off_t=0
27137fi
27138fi
27139{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
27140echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
27141cat >>confdefs.h <<_ACEOF
27142#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
27143_ACEOF
27144
27145
27146fi
27147{ echo "$as_me:$LINENO: checking file_ptr type" >&5
27148echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6; }
27149bfd_file_ptr="long"
27150bfd_ufile_ptr="unsigned long"
27151if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
27152	-o x"${ac_cv_sizeof_off_t}" = x8; then
27153    bfd_file_ptr=BFD_HOST_64_BIT
27154    bfd_ufile_ptr=BFD_HOST_U_64_BIT
27155fi
27156{ echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
27157echo "${ECHO_T}$bfd_file_ptr" >&6; }
27158
27159
27160
27161
27162tdefaults=""
27163test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
27164test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
27165test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
27166test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
27167test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
27168
27169
27170
27171
27172for ac_header in stdlib.h unistd.h
27173do
27174as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27175if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27176  { echo "$as_me:$LINENO: checking for $ac_header" >&5
27177echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27178if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27179  echo $ECHO_N "(cached) $ECHO_C" >&6
27180fi
27181ac_res=`eval echo '${'$as_ac_Header'}'`
27182	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27183echo "${ECHO_T}$ac_res" >&6; }
27184else
27185  # Is the header compilable?
27186{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27187echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27188cat >conftest.$ac_ext <<_ACEOF
27189/* confdefs.h.  */
27190_ACEOF
27191cat confdefs.h >>conftest.$ac_ext
27192cat >>conftest.$ac_ext <<_ACEOF
27193/* end confdefs.h.  */
27194$ac_includes_default
27195#include <$ac_header>
27196_ACEOF
27197rm -f conftest.$ac_objext
27198if { (ac_try="$ac_compile"
27199case "(($ac_try" in
27200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27201  *) ac_try_echo=$ac_try;;
27202esac
27203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27204  (eval "$ac_compile") 2>conftest.er1
27205  ac_status=$?
27206  grep -v '^ *+' conftest.er1 >conftest.err
27207  rm -f conftest.er1
27208  cat conftest.err >&5
27209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27210  (exit $ac_status); } &&
27211	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27212  { (case "(($ac_try" in
27213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27214  *) ac_try_echo=$ac_try;;
27215esac
27216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27217  (eval "$ac_try") 2>&5
27218  ac_status=$?
27219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27220  (exit $ac_status); }; } &&
27221	 { ac_try='test -s conftest.$ac_objext'
27222  { (case "(($ac_try" in
27223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27224  *) ac_try_echo=$ac_try;;
27225esac
27226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27227  (eval "$ac_try") 2>&5
27228  ac_status=$?
27229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27230  (exit $ac_status); }; }; then
27231  ac_header_compiler=yes
27232else
27233  echo "$as_me: failed program was:" >&5
27234sed 's/^/| /' conftest.$ac_ext >&5
27235
27236	ac_header_compiler=no
27237fi
27238
27239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27240{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27241echo "${ECHO_T}$ac_header_compiler" >&6; }
27242
27243# Is the header present?
27244{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27245echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27246cat >conftest.$ac_ext <<_ACEOF
27247/* confdefs.h.  */
27248_ACEOF
27249cat confdefs.h >>conftest.$ac_ext
27250cat >>conftest.$ac_ext <<_ACEOF
27251/* end confdefs.h.  */
27252#include <$ac_header>
27253_ACEOF
27254if { (ac_try="$ac_cpp conftest.$ac_ext"
27255case "(($ac_try" in
27256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27257  *) ac_try_echo=$ac_try;;
27258esac
27259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27260  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27261  ac_status=$?
27262  grep -v '^ *+' conftest.er1 >conftest.err
27263  rm -f conftest.er1
27264  cat conftest.err >&5
27265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266  (exit $ac_status); } >/dev/null; then
27267  if test -s conftest.err; then
27268    ac_cpp_err=$ac_c_preproc_warn_flag
27269    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27270  else
27271    ac_cpp_err=
27272  fi
27273else
27274  ac_cpp_err=yes
27275fi
27276if test -z "$ac_cpp_err"; then
27277  ac_header_preproc=yes
27278else
27279  echo "$as_me: failed program was:" >&5
27280sed 's/^/| /' conftest.$ac_ext >&5
27281
27282  ac_header_preproc=no
27283fi
27284
27285rm -f conftest.err conftest.$ac_ext
27286{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27287echo "${ECHO_T}$ac_header_preproc" >&6; }
27288
27289# So?  What about this header?
27290case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27291  yes:no: )
27292    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27293echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27294    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27295echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27296    ac_header_preproc=yes
27297    ;;
27298  no:yes:* )
27299    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27300echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27301    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27302echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27303    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27304echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27305    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27306echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27307    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27308echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27309    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27310echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27311
27312    ;;
27313esac
27314{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27315echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27316if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27317  echo $ECHO_N "(cached) $ECHO_C" >&6
27318else
27319  eval "$as_ac_Header=\$ac_header_preproc"
27320fi
27321ac_res=`eval echo '${'$as_ac_Header'}'`
27322	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27323echo "${ECHO_T}$ac_res" >&6; }
27324
27325fi
27326if test `eval echo '${'$as_ac_Header'}'` = yes; then
27327  cat >>confdefs.h <<_ACEOF
27328#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27329_ACEOF
27330
27331fi
27332
27333done
27334
27335
27336for ac_func in getpagesize
27337do
27338as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27339{ echo "$as_me:$LINENO: checking for $ac_func" >&5
27340echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27341if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27342  echo $ECHO_N "(cached) $ECHO_C" >&6
27343else
27344  cat >conftest.$ac_ext <<_ACEOF
27345/* confdefs.h.  */
27346_ACEOF
27347cat confdefs.h >>conftest.$ac_ext
27348cat >>conftest.$ac_ext <<_ACEOF
27349/* end confdefs.h.  */
27350/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27351   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27352#define $ac_func innocuous_$ac_func
27353
27354/* System header to define __stub macros and hopefully few prototypes,
27355    which can conflict with char $ac_func (); below.
27356    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27357    <limits.h> exists even on freestanding compilers.  */
27358
27359#ifdef __STDC__
27360# include <limits.h>
27361#else
27362# include <assert.h>
27363#endif
27364
27365#undef $ac_func
27366
27367/* Override any GCC internal prototype to avoid an error.
27368   Use char because int might match the return type of a GCC
27369   builtin and then its argument prototype would still apply.  */
27370#ifdef __cplusplus
27371extern "C"
27372#endif
27373char $ac_func ();
27374/* The GNU C library defines this for functions which it implements
27375    to always fail with ENOSYS.  Some functions are actually named
27376    something starting with __ and the normal name is an alias.  */
27377#if defined __stub_$ac_func || defined __stub___$ac_func
27378choke me
27379#endif
27380
27381int
27382main ()
27383{
27384return $ac_func ();
27385  ;
27386  return 0;
27387}
27388_ACEOF
27389rm -f conftest.$ac_objext conftest$ac_exeext
27390if { (ac_try="$ac_link"
27391case "(($ac_try" in
27392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27393  *) ac_try_echo=$ac_try;;
27394esac
27395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27396  (eval "$ac_link") 2>conftest.er1
27397  ac_status=$?
27398  grep -v '^ *+' conftest.er1 >conftest.err
27399  rm -f conftest.er1
27400  cat conftest.err >&5
27401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402  (exit $ac_status); } &&
27403	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27404  { (case "(($ac_try" in
27405  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27406  *) ac_try_echo=$ac_try;;
27407esac
27408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27409  (eval "$ac_try") 2>&5
27410  ac_status=$?
27411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27412  (exit $ac_status); }; } &&
27413	 { ac_try='test -s conftest$ac_exeext'
27414  { (case "(($ac_try" in
27415  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27416  *) ac_try_echo=$ac_try;;
27417esac
27418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27419  (eval "$ac_try") 2>&5
27420  ac_status=$?
27421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27422  (exit $ac_status); }; }; then
27423  eval "$as_ac_var=yes"
27424else
27425  echo "$as_me: failed program was:" >&5
27426sed 's/^/| /' conftest.$ac_ext >&5
27427
27428	eval "$as_ac_var=no"
27429fi
27430
27431rm -f core conftest.err conftest.$ac_objext \
27432      conftest$ac_exeext conftest.$ac_ext
27433fi
27434ac_res=`eval echo '${'$as_ac_var'}'`
27435	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27436echo "${ECHO_T}$ac_res" >&6; }
27437if test `eval echo '${'$as_ac_var'}'` = yes; then
27438  cat >>confdefs.h <<_ACEOF
27439#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27440_ACEOF
27441
27442fi
27443done
27444
27445{ echo "$as_me:$LINENO: checking for working mmap" >&5
27446echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
27447if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
27448  echo $ECHO_N "(cached) $ECHO_C" >&6
27449else
27450  if test "$cross_compiling" = yes; then
27451  ac_cv_func_mmap_fixed_mapped=no
27452else
27453  cat >conftest.$ac_ext <<_ACEOF
27454/* confdefs.h.  */
27455_ACEOF
27456cat confdefs.h >>conftest.$ac_ext
27457cat >>conftest.$ac_ext <<_ACEOF
27458/* end confdefs.h.  */
27459$ac_includes_default
27460/* malloc might have been renamed as rpl_malloc. */
27461#undef malloc
27462
27463/* Thanks to Mike Haertel and Jim Avera for this test.
27464   Here is a matrix of mmap possibilities:
27465	mmap private not fixed
27466	mmap private fixed at somewhere currently unmapped
27467	mmap private fixed at somewhere already mapped
27468	mmap shared not fixed
27469	mmap shared fixed at somewhere currently unmapped
27470	mmap shared fixed at somewhere already mapped
27471   For private mappings, we should verify that changes cannot be read()
27472   back from the file, nor mmap's back from the file at a different
27473   address.  (There have been systems where private was not correctly
27474   implemented like the infamous i386 svr4.0, and systems where the
27475   VM page cache was not coherent with the file system buffer cache
27476   like early versions of FreeBSD and possibly contemporary NetBSD.)
27477   For shared mappings, we should conversely verify that changes get
27478   propagated back to all the places they're supposed to be.
27479
27480   Grep wants private fixed already mapped.
27481   The main things grep needs to know about mmap are:
27482   * does it exist and is it safe to write into the mmap'd area
27483   * how to use it (BSD variants)  */
27484
27485#include <fcntl.h>
27486#include <sys/mman.h>
27487
27488#if !STDC_HEADERS && !HAVE_STDLIB_H
27489char *malloc ();
27490#endif
27491
27492/* This mess was copied from the GNU getpagesize.h.  */
27493#if !HAVE_GETPAGESIZE
27494/* Assume that all systems that can run configure have sys/param.h.  */
27495# if !HAVE_SYS_PARAM_H
27496#  define HAVE_SYS_PARAM_H 1
27497# endif
27498
27499# ifdef _SC_PAGESIZE
27500#  define getpagesize() sysconf(_SC_PAGESIZE)
27501# else /* no _SC_PAGESIZE */
27502#  if HAVE_SYS_PARAM_H
27503#   include <sys/param.h>
27504#   ifdef EXEC_PAGESIZE
27505#    define getpagesize() EXEC_PAGESIZE
27506#   else /* no EXEC_PAGESIZE */
27507#    ifdef NBPG
27508#     define getpagesize() NBPG * CLSIZE
27509#     ifndef CLSIZE
27510#      define CLSIZE 1
27511#     endif /* no CLSIZE */
27512#    else /* no NBPG */
27513#     ifdef NBPC
27514#      define getpagesize() NBPC
27515#     else /* no NBPC */
27516#      ifdef PAGESIZE
27517#       define getpagesize() PAGESIZE
27518#      endif /* PAGESIZE */
27519#     endif /* no NBPC */
27520#    endif /* no NBPG */
27521#   endif /* no EXEC_PAGESIZE */
27522#  else /* no HAVE_SYS_PARAM_H */
27523#   define getpagesize() 8192	/* punt totally */
27524#  endif /* no HAVE_SYS_PARAM_H */
27525# endif /* no _SC_PAGESIZE */
27526
27527#endif /* no HAVE_GETPAGESIZE */
27528
27529int
27530main ()
27531{
27532  char *data, *data2, *data3;
27533  int i, pagesize;
27534  int fd;
27535
27536  pagesize = getpagesize ();
27537
27538  /* First, make a file with some known garbage in it. */
27539  data = (char *) malloc (pagesize);
27540  if (!data)
27541    return 1;
27542  for (i = 0; i < pagesize; ++i)
27543    *(data + i) = rand ();
27544  umask (0);
27545  fd = creat ("conftest.mmap", 0600);
27546  if (fd < 0)
27547    return 1;
27548  if (write (fd, data, pagesize) != pagesize)
27549    return 1;
27550  close (fd);
27551
27552  /* Next, try to mmap the file at a fixed address which already has
27553     something else allocated at it.  If we can, also make sure that
27554     we see the same garbage.  */
27555  fd = open ("conftest.mmap", O_RDWR);
27556  if (fd < 0)
27557    return 1;
27558  data2 = (char *) malloc (2 * pagesize);
27559  if (!data2)
27560    return 1;
27561  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
27562  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
27563		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
27564    return 1;
27565  for (i = 0; i < pagesize; ++i)
27566    if (*(data + i) != *(data2 + i))
27567      return 1;
27568
27569  /* Finally, make sure that changes to the mapped area do not
27570     percolate back to the file as seen by read().  (This is a bug on
27571     some variants of i386 svr4.0.)  */
27572  for (i = 0; i < pagesize; ++i)
27573    *(data2 + i) = *(data2 + i) + 1;
27574  data3 = (char *) malloc (pagesize);
27575  if (!data3)
27576    return 1;
27577  if (read (fd, data3, pagesize) != pagesize)
27578    return 1;
27579  for (i = 0; i < pagesize; ++i)
27580    if (*(data + i) != *(data3 + i))
27581      return 1;
27582  close (fd);
27583  return 0;
27584}
27585_ACEOF
27586rm -f conftest$ac_exeext
27587if { (ac_try="$ac_link"
27588case "(($ac_try" in
27589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27590  *) ac_try_echo=$ac_try;;
27591esac
27592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27593  (eval "$ac_link") 2>&5
27594  ac_status=$?
27595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27596  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27597  { (case "(($ac_try" in
27598  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27599  *) ac_try_echo=$ac_try;;
27600esac
27601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27602  (eval "$ac_try") 2>&5
27603  ac_status=$?
27604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27605  (exit $ac_status); }; }; then
27606  ac_cv_func_mmap_fixed_mapped=yes
27607else
27608  echo "$as_me: program exited with status $ac_status" >&5
27609echo "$as_me: failed program was:" >&5
27610sed 's/^/| /' conftest.$ac_ext >&5
27611
27612( exit $ac_status )
27613ac_cv_func_mmap_fixed_mapped=no
27614fi
27615rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27616fi
27617
27618
27619fi
27620{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
27621echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
27622if test $ac_cv_func_mmap_fixed_mapped = yes; then
27623
27624cat >>confdefs.h <<\_ACEOF
27625#define HAVE_MMAP 1
27626_ACEOF
27627
27628fi
27629rm -f conftest.mmap
27630
27631
27632
27633for ac_func in madvise mprotect
27634do
27635as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27636{ echo "$as_me:$LINENO: checking for $ac_func" >&5
27637echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27638if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27639  echo $ECHO_N "(cached) $ECHO_C" >&6
27640else
27641  cat >conftest.$ac_ext <<_ACEOF
27642/* confdefs.h.  */
27643_ACEOF
27644cat confdefs.h >>conftest.$ac_ext
27645cat >>conftest.$ac_ext <<_ACEOF
27646/* end confdefs.h.  */
27647/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27648   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27649#define $ac_func innocuous_$ac_func
27650
27651/* System header to define __stub macros and hopefully few prototypes,
27652    which can conflict with char $ac_func (); below.
27653    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27654    <limits.h> exists even on freestanding compilers.  */
27655
27656#ifdef __STDC__
27657# include <limits.h>
27658#else
27659# include <assert.h>
27660#endif
27661
27662#undef $ac_func
27663
27664/* Override any GCC internal prototype to avoid an error.
27665   Use char because int might match the return type of a GCC
27666   builtin and then its argument prototype would still apply.  */
27667#ifdef __cplusplus
27668extern "C"
27669#endif
27670char $ac_func ();
27671/* The GNU C library defines this for functions which it implements
27672    to always fail with ENOSYS.  Some functions are actually named
27673    something starting with __ and the normal name is an alias.  */
27674#if defined __stub_$ac_func || defined __stub___$ac_func
27675choke me
27676#endif
27677
27678int
27679main ()
27680{
27681return $ac_func ();
27682  ;
27683  return 0;
27684}
27685_ACEOF
27686rm -f conftest.$ac_objext conftest$ac_exeext
27687if { (ac_try="$ac_link"
27688case "(($ac_try" in
27689  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27690  *) ac_try_echo=$ac_try;;
27691esac
27692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27693  (eval "$ac_link") 2>conftest.er1
27694  ac_status=$?
27695  grep -v '^ *+' conftest.er1 >conftest.err
27696  rm -f conftest.er1
27697  cat conftest.err >&5
27698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27699  (exit $ac_status); } &&
27700	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27701  { (case "(($ac_try" in
27702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27703  *) ac_try_echo=$ac_try;;
27704esac
27705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27706  (eval "$ac_try") 2>&5
27707  ac_status=$?
27708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27709  (exit $ac_status); }; } &&
27710	 { ac_try='test -s conftest$ac_exeext'
27711  { (case "(($ac_try" in
27712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27713  *) ac_try_echo=$ac_try;;
27714esac
27715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27716  (eval "$ac_try") 2>&5
27717  ac_status=$?
27718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27719  (exit $ac_status); }; }; then
27720  eval "$as_ac_var=yes"
27721else
27722  echo "$as_me: failed program was:" >&5
27723sed 's/^/| /' conftest.$ac_ext >&5
27724
27725	eval "$as_ac_var=no"
27726fi
27727
27728rm -f core conftest.err conftest.$ac_objext \
27729      conftest$ac_exeext conftest.$ac_ext
27730fi
27731ac_res=`eval echo '${'$as_ac_var'}'`
27732	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27733echo "${ECHO_T}$ac_res" >&6; }
27734if test `eval echo '${'$as_ac_var'}'` = yes; then
27735  cat >>confdefs.h <<_ACEOF
27736#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27737_ACEOF
27738
27739fi
27740done
27741
27742case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
27743  true+yes )
27744cat >>confdefs.h <<\_ACEOF
27745#define USE_MMAP 1
27746_ACEOF
27747 ;;
27748esac
27749
27750rm -f doc/config.status
27751ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h"
27752
27753cat >confcache <<\_ACEOF
27754# This file is a shell script that caches the results of configure
27755# tests run on this system so they can be shared between configure
27756# scripts and configure runs, see configure's option --config-cache.
27757# It is not useful on other systems.  If it contains results you don't
27758# want to keep, you may remove or edit it.
27759#
27760# config.status only pays attention to the cache file if you give it
27761# the --recheck option to rerun configure.
27762#
27763# `ac_cv_env_foo' variables (set or unset) will be overridden when
27764# loading this file, other *unset* `ac_cv_foo' will be assigned the
27765# following values.
27766
27767_ACEOF
27768
27769# The following way of writing the cache mishandles newlines in values,
27770# but we know of no workaround that is simple, portable, and efficient.
27771# So, we kill variables containing newlines.
27772# Ultrix sh set writes to stderr and can't be redirected directly,
27773# and sets the high bit in the cache file unless we assign to the vars.
27774(
27775  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27776    eval ac_val=\$$ac_var
27777    case $ac_val in #(
27778    *${as_nl}*)
27779      case $ac_var in #(
27780      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27781echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27782      esac
27783      case $ac_var in #(
27784      _ | IFS | as_nl) ;; #(
27785      *) $as_unset $ac_var ;;
27786      esac ;;
27787    esac
27788  done
27789
27790  (set) 2>&1 |
27791    case $as_nl`(ac_space=' '; set) 2>&1` in #(
27792    *${as_nl}ac_space=\ *)
27793      # `set' does not quote correctly, so add quotes (double-quote
27794      # substitution turns \\\\ into \\, and sed turns \\ into \).
27795      sed -n \
27796	"s/'/'\\\\''/g;
27797	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27798      ;; #(
27799    *)
27800      # `set' quotes correctly as required by POSIX, so do not add quotes.
27801      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27802      ;;
27803    esac |
27804    sort
27805) |
27806  sed '
27807     /^ac_cv_env_/b end
27808     t clear
27809     :clear
27810     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27811     t end
27812     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27813     :end' >>confcache
27814if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27815  if test -w "$cache_file"; then
27816    test "x$cache_file" != "x/dev/null" &&
27817      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27818echo "$as_me: updating cache $cache_file" >&6;}
27819    cat confcache >$cache_file
27820  else
27821    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27822echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27823  fi
27824fi
27825rm -f confcache
27826
27827test "x$prefix" = xNONE && prefix=$ac_default_prefix
27828# Let make expand exec_prefix.
27829test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27830
27831DEFS=-DHAVE_CONFIG_H
27832
27833ac_libobjs=
27834ac_ltlibobjs=
27835for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27836  # 1. Remove the extension, and $U if already installed.
27837  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27838  ac_i=`echo "$ac_i" | sed "$ac_script"`
27839  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
27840  #    will be set to the directory where LIBOBJS objects are built.
27841  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27842  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27843done
27844LIBOBJS=$ac_libobjs
27845
27846LTLIBOBJS=$ac_ltlibobjs
27847
27848
27849if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27850  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27851Usually this means the macro was only invoked conditionally." >&5
27852echo "$as_me: error: conditional \"AMDEP\" was never defined.
27853Usually this means the macro was only invoked conditionally." >&2;}
27854   { (exit 1); exit 1; }; }
27855fi
27856if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27857  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27858Usually this means the macro was only invoked conditionally." >&5
27859echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27860Usually this means the macro was only invoked conditionally." >&2;}
27861   { (exit 1); exit 1; }; }
27862fi
27863if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27864  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27865Usually this means the macro was only invoked conditionally." >&5
27866echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27867Usually this means the macro was only invoked conditionally." >&2;}
27868   { (exit 1); exit 1; }; }
27869fi
27870if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27871  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
27872Usually this means the macro was only invoked conditionally." >&5
27873echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
27874Usually this means the macro was only invoked conditionally." >&2;}
27875   { (exit 1); exit 1; }; }
27876fi
27877if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
27878  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
27879Usually this means the macro was only invoked conditionally." >&5
27880echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
27881Usually this means the macro was only invoked conditionally." >&2;}
27882   { (exit 1); exit 1; }; }
27883fi
27884
27885: ${CONFIG_STATUS=./config.status}
27886ac_clean_files_save=$ac_clean_files
27887ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27888{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27889echo "$as_me: creating $CONFIG_STATUS" >&6;}
27890cat >$CONFIG_STATUS <<_ACEOF
27891#! $SHELL
27892# Generated by $as_me.
27893# Run this file to recreate the current configuration.
27894# Compiler output produced by configure, useful for debugging
27895# configure, is in config.log if it exists.
27896
27897debug=false
27898ac_cs_recheck=false
27899ac_cs_silent=false
27900SHELL=\${CONFIG_SHELL-$SHELL}
27901_ACEOF
27902
27903cat >>$CONFIG_STATUS <<\_ACEOF
27904## --------------------- ##
27905## M4sh Initialization.  ##
27906## --------------------- ##
27907
27908# Be Bourne compatible
27909if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27910  emulate sh
27911  NULLCMD=:
27912  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27913  # is contrary to our usage.  Disable this feature.
27914  alias -g '${1+"$@"}'='"$@"'
27915  setopt NO_GLOB_SUBST
27916else
27917  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27918fi
27919BIN_SH=xpg4; export BIN_SH # for Tru64
27920DUALCASE=1; export DUALCASE # for MKS sh
27921
27922
27923# PATH needs CR
27924# Avoid depending upon Character Ranges.
27925as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27926as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27927as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27928as_cr_digits='0123456789'
27929as_cr_alnum=$as_cr_Letters$as_cr_digits
27930
27931# The user is always right.
27932if test "${PATH_SEPARATOR+set}" != set; then
27933  echo "#! /bin/sh" >conf$$.sh
27934  echo  "exit 0"   >>conf$$.sh
27935  chmod +x conf$$.sh
27936  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27937    PATH_SEPARATOR=';'
27938  else
27939    PATH_SEPARATOR=:
27940  fi
27941  rm -f conf$$.sh
27942fi
27943
27944# Support unset when possible.
27945if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27946  as_unset=unset
27947else
27948  as_unset=false
27949fi
27950
27951
27952# IFS
27953# We need space, tab and new line, in precisely that order.  Quoting is
27954# there to prevent editors from complaining about space-tab.
27955# (If _AS_PATH_WALK were called with IFS unset, it would disable word
27956# splitting by setting IFS to empty value.)
27957as_nl='
27958'
27959IFS=" ""	$as_nl"
27960
27961# Find who we are.  Look in the path if we contain no directory separator.
27962case $0 in
27963  *[\\/]* ) as_myself=$0 ;;
27964  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27965for as_dir in $PATH
27966do
27967  IFS=$as_save_IFS
27968  test -z "$as_dir" && as_dir=.
27969  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27970done
27971IFS=$as_save_IFS
27972
27973     ;;
27974esac
27975# We did not find ourselves, most probably we were run as `sh COMMAND'
27976# in which case we are not to be found in the path.
27977if test "x$as_myself" = x; then
27978  as_myself=$0
27979fi
27980if test ! -f "$as_myself"; then
27981  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27982  { (exit 1); exit 1; }
27983fi
27984
27985# Work around bugs in pre-3.0 UWIN ksh.
27986for as_var in ENV MAIL MAILPATH
27987do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27988done
27989PS1='$ '
27990PS2='> '
27991PS4='+ '
27992
27993# NLS nuisances.
27994for as_var in \
27995  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27996  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27997  LC_TELEPHONE LC_TIME
27998do
27999  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28000    eval $as_var=C; export $as_var
28001  else
28002    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28003  fi
28004done
28005
28006# Required to use basename.
28007if expr a : '\(a\)' >/dev/null 2>&1 &&
28008   test "X`expr 00001 : '.*\(...\)'`" = X001; then
28009  as_expr=expr
28010else
28011  as_expr=false
28012fi
28013
28014if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28015  as_basename=basename
28016else
28017  as_basename=false
28018fi
28019
28020
28021# Name of the executable.
28022as_me=`$as_basename -- "$0" ||
28023$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28024	 X"$0" : 'X\(//\)$' \| \
28025	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28026echo X/"$0" |
28027    sed '/^.*\/\([^/][^/]*\)\/*$/{
28028	    s//\1/
28029	    q
28030	  }
28031	  /^X\/\(\/\/\)$/{
28032	    s//\1/
28033	    q
28034	  }
28035	  /^X\/\(\/\).*/{
28036	    s//\1/
28037	    q
28038	  }
28039	  s/.*/./; q'`
28040
28041# CDPATH.
28042$as_unset CDPATH
28043
28044
28045
28046  as_lineno_1=$LINENO
28047  as_lineno_2=$LINENO
28048  test "x$as_lineno_1" != "x$as_lineno_2" &&
28049  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
28050
28051  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28052  # uniformly replaced by the line number.  The first 'sed' inserts a
28053  # line-number line after each line using $LINENO; the second 'sed'
28054  # does the real work.  The second script uses 'N' to pair each
28055  # line-number line with the line containing $LINENO, and appends
28056  # trailing '-' during substitution so that $LINENO is not a special
28057  # case at line end.
28058  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28059  # scripts with optimization help from Paolo Bonzini.  Blame Lee
28060  # E. McMahon (1931-1989) for sed's syntax.  :-)
28061  sed -n '
28062    p
28063    /[$]LINENO/=
28064  ' <$as_myself |
28065    sed '
28066      s/[$]LINENO.*/&-/
28067      t lineno
28068      b
28069      :lineno
28070      N
28071      :loop
28072      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
28073      t loop
28074      s/-\n.*//
28075    ' >$as_me.lineno &&
28076  chmod +x "$as_me.lineno" ||
28077    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
28078   { (exit 1); exit 1; }; }
28079
28080  # Don't try to exec as it changes $[0], causing all sort of problems
28081  # (the dirname of $[0] is not the place where we might find the
28082  # original and so on.  Autoconf is especially sensitive to this).
28083  . "./$as_me.lineno"
28084  # Exit status is that of the last command.
28085  exit
28086}
28087
28088
28089if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28090  as_dirname=dirname
28091else
28092  as_dirname=false
28093fi
28094
28095ECHO_C= ECHO_N= ECHO_T=
28096case `echo -n x` in
28097-n*)
28098  case `echo 'x\c'` in
28099  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
28100  *)   ECHO_C='\c';;
28101  esac;;
28102*)
28103  ECHO_N='-n';;
28104esac
28105
28106if expr a : '\(a\)' >/dev/null 2>&1 &&
28107   test "X`expr 00001 : '.*\(...\)'`" = X001; then
28108  as_expr=expr
28109else
28110  as_expr=false
28111fi
28112
28113rm -f conf$$ conf$$.exe conf$$.file
28114if test -d conf$$.dir; then
28115  rm -f conf$$.dir/conf$$.file
28116else
28117  rm -f conf$$.dir
28118  mkdir conf$$.dir
28119fi
28120echo >conf$$.file
28121if ln -s conf$$.file conf$$ 2>/dev/null; then
28122  as_ln_s='ln -s'
28123  # ... but there are two gotchas:
28124  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28125  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28126  # In both cases, we have to default to `cp -p'.
28127  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28128    as_ln_s='cp -p'
28129elif ln conf$$.file conf$$ 2>/dev/null; then
28130  as_ln_s=ln
28131else
28132  as_ln_s='cp -p'
28133fi
28134rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28135rmdir conf$$.dir 2>/dev/null
28136
28137if mkdir -p . 2>/dev/null; then
28138  as_mkdir_p=:
28139else
28140  test -d ./-p && rmdir ./-p
28141  as_mkdir_p=false
28142fi
28143
28144# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
28145# systems may use methods other than mode bits to determine executability.
28146cat >conf$$.file <<_ASEOF
28147#! /bin/sh
28148exit 0
28149_ASEOF
28150chmod +x conf$$.file
28151if test -x conf$$.file >/dev/null 2>&1; then
28152  as_executable_p="test -x"
28153else
28154  as_executable_p=:
28155fi
28156rm -f conf$$.file
28157
28158# Sed expression to map a string onto a valid CPP name.
28159as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28160
28161# Sed expression to map a string onto a valid variable name.
28162as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28163
28164
28165exec 6>&1
28166
28167# Save the log message, to keep $[0] and so on meaningful, and to
28168# report actual input values of CONFIG_FILES etc. instead of their
28169# values after options handling.
28170ac_log="
28171This file was extended by $as_me, which was
28172generated by GNU Autoconf 2.60-MirPorts-2.  Invocation command line was
28173
28174  CONFIG_FILES    = $CONFIG_FILES
28175  CONFIG_HEADERS  = $CONFIG_HEADERS
28176  CONFIG_LINKS    = $CONFIG_LINKS
28177  CONFIG_COMMANDS = $CONFIG_COMMANDS
28178  $ $0 $@
28179
28180on `(hostname || uname -n) 2>/dev/null | sed 1q`
28181"
28182
28183_ACEOF
28184
28185cat >>$CONFIG_STATUS <<_ACEOF
28186# Files that config.status was made for.
28187config_files="$ac_config_files"
28188config_headers="$ac_config_headers"
28189config_commands="$ac_config_commands"
28190
28191_ACEOF
28192
28193cat >>$CONFIG_STATUS <<\_ACEOF
28194ac_cs_usage="\
28195\`$as_me' instantiates files from templates according to the
28196current configuration.
28197
28198Usage: $0 [OPTIONS] [FILE]...
28199
28200  -h, --help       print this help, then exit
28201  -V, --version    print version number, then exit
28202  -q, --quiet      do not print progress messages
28203  -d, --debug      don't remove temporary files
28204      --recheck    update $as_me by reconfiguring in the same conditions
28205  --file=FILE[:TEMPLATE]
28206		   instantiate the configuration file FILE
28207  --header=FILE[:TEMPLATE]
28208		   instantiate the configuration header FILE
28209
28210Configuration files:
28211$config_files
28212
28213Configuration headers:
28214$config_headers
28215
28216Configuration commands:
28217$config_commands
28218
28219Report bugs to <bug-autoconf@gnu.org>."
28220
28221_ACEOF
28222cat >>$CONFIG_STATUS <<_ACEOF
28223ac_cs_version="\\
28224config.status
28225configured by $0, generated by GNU Autoconf 2.60-MirPorts-2,
28226  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28227
28228Copyright (C) 2006 Free Software Foundation, Inc.
28229This config.status script is free software; the Free Software Foundation
28230gives unlimited permission to copy, distribute and modify it."
28231
28232ac_pwd='$ac_pwd'
28233srcdir='$srcdir'
28234INSTALL='$INSTALL'
28235_ACEOF
28236
28237cat >>$CONFIG_STATUS <<\_ACEOF
28238# If no file are specified by the user, then we need to provide default
28239# value.  By we need to know if files were specified by the user.
28240ac_need_defaults=:
28241while test $# != 0
28242do
28243  case $1 in
28244  --*=*)
28245    ac_option=`expr "X$1" : 'X\([^=]*\)='`
28246    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28247    ac_shift=:
28248    ;;
28249  *)
28250    ac_option=$1
28251    ac_optarg=$2
28252    ac_shift=shift
28253    ;;
28254  esac
28255
28256  case $ac_option in
28257  # Handling of the options.
28258  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28259    ac_cs_recheck=: ;;
28260  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28261    echo "$ac_cs_version"; exit ;;
28262  --debug | --debu | --deb | --de | --d | -d )
28263    debug=: ;;
28264  --file | --fil | --fi | --f )
28265    $ac_shift
28266    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28267    ac_need_defaults=false;;
28268  --header | --heade | --head | --hea )
28269    $ac_shift
28270    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28271    ac_need_defaults=false;;
28272  --he | --h)
28273    # Conflict between --help and --header
28274    { echo "$as_me: error: ambiguous option: $1
28275Try \`$0 --help' for more information." >&2
28276   { (exit 1); exit 1; }; };;
28277  --help | --hel | -h )
28278    echo "$ac_cs_usage"; exit ;;
28279  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28280  | -silent | --silent | --silen | --sile | --sil | --si | --s)
28281    ac_cs_silent=: ;;
28282
28283  # This is an error.
28284  -*) { echo "$as_me: error: unrecognized option: $1
28285Try \`$0 --help' for more information." >&2
28286   { (exit 1); exit 1; }; } ;;
28287
28288  *) ac_config_targets="$ac_config_targets $1"
28289     ac_need_defaults=false ;;
28290
28291  esac
28292  shift
28293done
28294
28295ac_configure_extra_args=
28296
28297if $ac_cs_silent; then
28298  exec 6>/dev/null
28299  ac_configure_extra_args="$ac_configure_extra_args --silent"
28300fi
28301
28302_ACEOF
28303cat >>$CONFIG_STATUS <<_ACEOF
28304if \$ac_cs_recheck; then
28305  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28306  CONFIG_SHELL=$SHELL
28307  export CONFIG_SHELL
28308  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28309fi
28310
28311_ACEOF
28312cat >>$CONFIG_STATUS <<\_ACEOF
28313exec 5>>config.log
28314{
28315  echo
28316  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28317## Running $as_me. ##
28318_ASBOX
28319  echo "$ac_log"
28320} >&5
28321
28322_ACEOF
28323cat >>$CONFIG_STATUS <<_ACEOF
28324#
28325# INIT-COMMANDS
28326#
28327AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28328
28329_ACEOF
28330
28331cat >>$CONFIG_STATUS <<\_ACEOF
28332
28333# Handling of arguments.
28334for ac_config_target in $ac_config_targets
28335do
28336  case $ac_config_target in
28337    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28338    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
28339    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28340    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
28341    "bfd-in3.h") CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
28342
28343  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28344echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28345   { (exit 1); exit 1; }; };;
28346  esac
28347done
28348
28349
28350# If the user did not use the arguments to specify the items to instantiate,
28351# then the envvar interface is used.  Set only those that are not.
28352# We use the long form for the default assignment because of an extremely
28353# bizarre bug on SunOS 4.1.3.
28354if $ac_need_defaults; then
28355  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28356  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28357  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28358fi
28359
28360# Have a temporary directory for convenience.  Make it in the build tree
28361# simply because there is no reason against having it here, and in addition,
28362# creating and moving files from /tmp can sometimes cause problems.
28363# Hook for its removal unless debugging.
28364# Note that there is a small window in which the directory will not be cleaned:
28365# after its creation but before its name has been assigned to `$tmp'.
28366$debug ||
28367{
28368  tmp=
28369  trap 'exit_status=$?
28370  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28371' 0
28372  trap '{ (exit 1); exit 1; }' 1 2 13 15
28373}
28374# Create a (secure) tmp directory for tmp files.
28375
28376{
28377  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28378  test -n "$tmp" && test -d "$tmp"
28379}  ||
28380{
28381  tmp=./conf$$-$RANDOM
28382  (umask 077 && mkdir "$tmp")
28383} ||
28384{
28385   echo "$me: cannot create a temporary directory in ." >&2
28386   { (exit 1); exit 1; }
28387}
28388
28389#
28390# Set up the sed scripts for CONFIG_FILES section.
28391#
28392
28393# No need to generate the scripts if there are no CONFIG_FILES.
28394# This happens for instance when ./config.status config.h
28395if test -n "$CONFIG_FILES"; then
28396
28397_ACEOF
28398
28399
28400
28401ac_delim='%!_!# '
28402for ac_last_try in false false false false false :; do
28403  cat >conf$$subs.sed <<_ACEOF
28404SHELL!$SHELL$ac_delim
28405PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
28406PACKAGE_NAME!$PACKAGE_NAME$ac_delim
28407PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
28408PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
28409PACKAGE_STRING!$PACKAGE_STRING$ac_delim
28410PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
28411exec_prefix!$exec_prefix$ac_delim
28412prefix!$prefix$ac_delim
28413program_transform_name!$program_transform_name$ac_delim
28414bindir!$bindir$ac_delim
28415sbindir!$sbindir$ac_delim
28416libexecdir!$libexecdir$ac_delim
28417datarootdir!$datarootdir$ac_delim
28418datadir!$datadir$ac_delim
28419sysconfdir!$sysconfdir$ac_delim
28420sharedstatedir!$sharedstatedir$ac_delim
28421localstatedir!$localstatedir$ac_delim
28422includedir!$includedir$ac_delim
28423oldincludedir!$oldincludedir$ac_delim
28424docdir!$docdir$ac_delim
28425infodir!$infodir$ac_delim
28426htmldir!$htmldir$ac_delim
28427dvidir!$dvidir$ac_delim
28428pdfdir!$pdfdir$ac_delim
28429psdir!$psdir$ac_delim
28430libdir!$libdir$ac_delim
28431localedir!$localedir$ac_delim
28432mandir!$mandir$ac_delim
28433DEFS!$DEFS$ac_delim
28434ECHO_C!$ECHO_C$ac_delim
28435ECHO_N!$ECHO_N$ac_delim
28436ECHO_T!$ECHO_T$ac_delim
28437LIBS!$LIBS$ac_delim
28438build_alias!$build_alias$ac_delim
28439host_alias!$host_alias$ac_delim
28440target_alias!$target_alias$ac_delim
28441build!$build$ac_delim
28442build_cpu!$build_cpu$ac_delim
28443build_vendor!$build_vendor$ac_delim
28444build_os!$build_os$ac_delim
28445host!$host$ac_delim
28446host_cpu!$host_cpu$ac_delim
28447host_vendor!$host_vendor$ac_delim
28448host_os!$host_os$ac_delim
28449target!$target$ac_delim
28450target_cpu!$target_cpu$ac_delim
28451target_vendor!$target_vendor$ac_delim
28452target_os!$target_os$ac_delim
28453CC!$CC$ac_delim
28454CFLAGS!$CFLAGS$ac_delim
28455LDFLAGS!$LDFLAGS$ac_delim
28456CPPFLAGS!$CPPFLAGS$ac_delim
28457ac_ct_CC!$ac_ct_CC$ac_delim
28458EXEEXT!$EXEEXT$ac_delim
28459OBJEXT!$OBJEXT$ac_delim
28460INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
28461INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
28462INSTALL_DATA!$INSTALL_DATA$ac_delim
28463CYGPATH_W!$CYGPATH_W$ac_delim
28464PACKAGE!$PACKAGE$ac_delim
28465VERSION!$VERSION$ac_delim
28466ACLOCAL!$ACLOCAL$ac_delim
28467AUTOCONF!$AUTOCONF$ac_delim
28468AUTOMAKE!$AUTOMAKE$ac_delim
28469AUTOHEADER!$AUTOHEADER$ac_delim
28470MAKEINFO!$MAKEINFO$ac_delim
28471install_sh!$install_sh$ac_delim
28472STRIP!$STRIP$ac_delim
28473INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
28474mkdir_p!$mkdir_p$ac_delim
28475AWK!$AWK$ac_delim
28476SET_MAKE!$SET_MAKE$ac_delim
28477am__leading_dot!$am__leading_dot$ac_delim
28478AMTAR!$AMTAR$ac_delim
28479am__tar!$am__tar$ac_delim
28480am__untar!$am__untar$ac_delim
28481DEPDIR!$DEPDIR$ac_delim
28482am__include!$am__include$ac_delim
28483am__quote!$am__quote$ac_delim
28484AMDEP_TRUE!$AMDEP_TRUE$ac_delim
28485AMDEP_FALSE!$AMDEP_FALSE$ac_delim
28486AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
28487CCDEPMODE!$CCDEPMODE$ac_delim
28488am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
28489am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
28490AR!$AR$ac_delim
28491RANLIB!$RANLIB$ac_delim
28492SED!$SED$ac_delim
28493GREP!$GREP$ac_delim
28494EGREP!$EGREP$ac_delim
28495LN_S!$LN_S$ac_delim
28496ECHO!$ECHO$ac_delim
28497CPP!$CPP$ac_delim
28498CXX!$CXX$ac_delim
28499CXXFLAGS!$CXXFLAGS$ac_delim
28500ac_ct_CXX!$ac_ct_CXX$ac_delim
28501_ACEOF
28502
28503  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
28504    break
28505  elif $ac_last_try; then
28506    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28507echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28508   { (exit 1); exit 1; }; }
28509  else
28510    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28511  fi
28512done
28513
28514ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28515if test -n "$ac_eof"; then
28516  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28517  ac_eof=`expr $ac_eof + 1`
28518fi
28519
28520cat >>$CONFIG_STATUS <<_ACEOF
28521cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
28522/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28523_ACEOF
28524sed '
28525s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28526s/^/s,@/; s/!/@,|#_!!_#|/
28527:n
28528t n
28529s/'"$ac_delim"'$/,g/; t
28530s/$/\\/; p
28531N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28532' >>$CONFIG_STATUS <conf$$subs.sed
28533rm -f conf$$subs.sed
28534cat >>$CONFIG_STATUS <<_ACEOF
28535CEOF$ac_eof
28536_ACEOF
28537
28538
28539ac_delim='%!_!# '
28540for ac_last_try in false false false false false :; do
28541  cat >conf$$subs.sed <<_ACEOF
28542CXXDEPMODE!$CXXDEPMODE$ac_delim
28543am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
28544am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
28545CXXCPP!$CXXCPP$ac_delim
28546F77!$F77$ac_delim
28547FFLAGS!$FFLAGS$ac_delim
28548ac_ct_F77!$ac_ct_F77$ac_delim
28549LIBTOOL!$LIBTOOL$ac_delim
28550WARN_CFLAGS!$WARN_CFLAGS$ac_delim
28551NO_WERROR!$NO_WERROR$ac_delim
28552MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
28553MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
28554MAINT!$MAINT$ac_delim
28555INSTALL_LIBBFD_TRUE!$INSTALL_LIBBFD_TRUE$ac_delim
28556INSTALL_LIBBFD_FALSE!$INSTALL_LIBBFD_FALSE$ac_delim
28557host_noncanonical!$host_noncanonical$ac_delim
28558target_noncanonical!$target_noncanonical$ac_delim
28559bfdlibdir!$bfdlibdir$ac_delim
28560bfdincludedir!$bfdincludedir$ac_delim
28561HDEFINES!$HDEFINES$ac_delim
28562BFD_HOST_64BIT_LONG!$BFD_HOST_64BIT_LONG$ac_delim
28563BFD_HOST_LONG_LONG!$BFD_HOST_LONG_LONG$ac_delim
28564BFD_HOST_64_BIT_DEFINED!$BFD_HOST_64_BIT_DEFINED$ac_delim
28565BFD_HOST_64_BIT!$BFD_HOST_64_BIT$ac_delim
28566BFD_HOST_U_64_BIT!$BFD_HOST_U_64_BIT$ac_delim
28567CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
28568EXEEXT_FOR_BUILD!$EXEEXT_FOR_BUILD$ac_delim
28569COREFILE!$COREFILE$ac_delim
28570COREFLAG!$COREFLAG$ac_delim
28571WIN32LDFLAGS!$WIN32LDFLAGS$ac_delim
28572WIN32LIBADD!$WIN32LIBADD$ac_delim
28573TDEFINES!$TDEFINES$ac_delim
28574wordsize!$wordsize$ac_delim
28575bfd_libs!$bfd_libs$ac_delim
28576all_backends!$all_backends$ac_delim
28577bfd_backends!$bfd_backends$ac_delim
28578bfd_machines!$bfd_machines$ac_delim
28579bfd_default_target_size!$bfd_default_target_size$ac_delim
28580bfd_file_ptr!$bfd_file_ptr$ac_delim
28581bfd_ufile_ptr!$bfd_ufile_ptr$ac_delim
28582tdefaults!$tdefaults$ac_delim
28583LIBOBJS!$LIBOBJS$ac_delim
28584LTLIBOBJS!$LTLIBOBJS$ac_delim
28585_ACEOF
28586
28587  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 43; then
28588    break
28589  elif $ac_last_try; then
28590    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28591echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28592   { (exit 1); exit 1; }; }
28593  else
28594    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28595  fi
28596done
28597
28598ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28599if test -n "$ac_eof"; then
28600  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28601  ac_eof=`expr $ac_eof + 1`
28602fi
28603
28604cat >>$CONFIG_STATUS <<_ACEOF
28605cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
28606/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
28607_ACEOF
28608sed '
28609s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28610s/^/s,@/; s/!/@,|#_!!_#|/
28611:n
28612t n
28613s/'"$ac_delim"'$/,g/; t
28614s/$/\\/; p
28615N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28616' >>$CONFIG_STATUS <conf$$subs.sed
28617rm -f conf$$subs.sed
28618cat >>$CONFIG_STATUS <<_ACEOF
28619:end
28620s/|#_!!_#|//g
28621CEOF$ac_eof
28622_ACEOF
28623
28624
28625# VPATH may cause trouble with some makes, so we remove $(srcdir),
28626# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28627# trailing colons and then remove the whole line if VPATH becomes empty
28628# (actually we leave an empty line to preserve line numbers).
28629if test "x$srcdir" = x.; then
28630  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
28631s/:*\$(srcdir):*/:/
28632s/:*\${srcdir}:*/:/
28633s/:*@srcdir@:*/:/
28634s/^\([^=]*=[	 ]*\):*/\1/
28635s/:*$//
28636s/^[^=]*=[	 ]*$//
28637}'
28638fi
28639
28640cat >>$CONFIG_STATUS <<\_ACEOF
28641fi # test -n "$CONFIG_FILES"
28642
28643
28644for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
28645do
28646  case $ac_tag in
28647  :[FHLC]) ac_mode=$ac_tag; continue;;
28648  esac
28649  case $ac_mode$ac_tag in
28650  :[FHL]*:*);;
28651  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
28652echo "$as_me: error: Invalid tag $ac_tag." >&2;}
28653   { (exit 1); exit 1; }; };;
28654  :[FH]-) ac_tag=-:-;;
28655  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28656  esac
28657  ac_save_IFS=$IFS
28658  IFS=:
28659  set x $ac_tag
28660  IFS=$ac_save_IFS
28661  shift
28662  ac_file=$1
28663  shift
28664
28665  case $ac_mode in
28666  :L) ac_source=$1;;
28667  :[FH])
28668    ac_file_inputs=
28669    for ac_f
28670    do
28671      case $ac_f in
28672      -) ac_f="$tmp/stdin";;
28673      *) # Look for the file first in the build tree, then in the source tree
28674	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
28675	 # because $ac_f cannot contain `:'.
28676	 test -f "$ac_f" ||
28677	   case $ac_f in
28678	   [\\/$]*) false;;
28679	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28680	   esac ||
28681	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
28682echo "$as_me: error: cannot find input file: $ac_f" >&2;}
28683   { (exit 1); exit 1; }; };;
28684      esac
28685      ac_file_inputs="$ac_file_inputs $ac_f"
28686    done
28687
28688    # Let's still pretend it is `configure' which instantiates (i.e., don't
28689    # use $as_me), people would be surprised to read:
28690    #    /* config.h.  Generated by config.status.  */
28691    configure_input="Generated from "`IFS=:
28692	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
28693    if test x"$ac_file" != x-; then
28694      configure_input="$ac_file.  $configure_input"
28695      { echo "$as_me:$LINENO: creating $ac_file" >&5
28696echo "$as_me: creating $ac_file" >&6;}
28697    fi
28698
28699    case $ac_tag in
28700    *:-:* | *:-) cat >"$tmp/stdin";;
28701    esac
28702    ;;
28703  esac
28704
28705  ac_dir=`$as_dirname -- "$ac_file" ||
28706$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28707	 X"$ac_file" : 'X\(//\)[^/]' \| \
28708	 X"$ac_file" : 'X\(//\)$' \| \
28709	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28710echo X"$ac_file" |
28711    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28712	    s//\1/
28713	    q
28714	  }
28715	  /^X\(\/\/\)[^/].*/{
28716	    s//\1/
28717	    q
28718	  }
28719	  /^X\(\/\/\)$/{
28720	    s//\1/
28721	    q
28722	  }
28723	  /^X\(\/\).*/{
28724	    s//\1/
28725	    q
28726	  }
28727	  s/.*/./; q'`
28728  { as_dir="$ac_dir"
28729  case $as_dir in #(
28730  -*) as_dir=./$as_dir;;
28731  esac
28732  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28733    as_dirs=
28734    while :; do
28735      case $as_dir in #(
28736      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28737      *) as_qdir=$as_dir;;
28738      esac
28739      as_dirs="'$as_qdir' $as_dirs"
28740      as_dir=`$as_dirname -- "$as_dir" ||
28741$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28742	 X"$as_dir" : 'X\(//\)[^/]' \| \
28743	 X"$as_dir" : 'X\(//\)$' \| \
28744	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28745echo X"$as_dir" |
28746    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28747	    s//\1/
28748	    q
28749	  }
28750	  /^X\(\/\/\)[^/].*/{
28751	    s//\1/
28752	    q
28753	  }
28754	  /^X\(\/\/\)$/{
28755	    s//\1/
28756	    q
28757	  }
28758	  /^X\(\/\).*/{
28759	    s//\1/
28760	    q
28761	  }
28762	  s/.*/./; q'`
28763      test -d "$as_dir" && break
28764    done
28765    test -z "$as_dirs" || eval "mkdir $as_dirs"
28766  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28767echo "$as_me: error: cannot create directory $as_dir" >&2;}
28768   { (exit 1); exit 1; }; }; }
28769  ac_builddir=.
28770
28771case "$ac_dir" in
28772.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28773*)
28774  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28775  # A ".." for each directory in $ac_dir_suffix.
28776  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28777  case $ac_top_builddir_sub in
28778  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28779  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28780  esac ;;
28781esac
28782ac_abs_top_builddir=$ac_pwd
28783ac_abs_builddir=$ac_pwd$ac_dir_suffix
28784# for backward compatibility:
28785ac_top_builddir=$ac_top_build_prefix
28786
28787case $srcdir in
28788  .)  # We are building in place.
28789    ac_srcdir=.
28790    ac_top_srcdir=$ac_top_builddir_sub
28791    ac_abs_top_srcdir=$ac_pwd ;;
28792  [\\/]* | ?:[\\/]* )  # Absolute name.
28793    ac_srcdir=$srcdir$ac_dir_suffix;
28794    ac_top_srcdir=$srcdir
28795    ac_abs_top_srcdir=$srcdir ;;
28796  *) # Relative name.
28797    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28798    ac_top_srcdir=$ac_top_build_prefix$srcdir
28799    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28800esac
28801ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28802
28803
28804  case $ac_mode in
28805  :F)
28806  #
28807  # CONFIG_FILE
28808  #
28809
28810  case $INSTALL in
28811  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28812  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28813  esac
28814_ACEOF
28815
28816cat >>$CONFIG_STATUS <<\_ACEOF
28817# If the template does not know about datarootdir, expand it.
28818# FIXME: This hack should be removed a few years after 2.60.
28819ac_datarootdir_hack=; ac_datarootdir_seen=
28820
28821case `sed -n '/datarootdir/ {
28822  p
28823  q
28824}
28825/@datadir@/p
28826/@docdir@/p
28827/@infodir@/p
28828/@localedir@/p
28829/@mandir@/p
28830' $ac_file_inputs` in
28831*datarootdir*) ac_datarootdir_seen=yes;;
28832*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28833  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28834echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28835_ACEOF
28836cat >>$CONFIG_STATUS <<_ACEOF
28837  ac_datarootdir_hack='
28838  s&@datadir@&$datadir&g
28839  s&@docdir@&$docdir&g
28840  s&@infodir@&$infodir&g
28841  s&@localedir@&$localedir&g
28842  s&@mandir@&$mandir&g
28843    s&\\\${datarootdir}&$datarootdir&g' ;;
28844esac
28845_ACEOF
28846
28847# Neutralize VPATH when `$srcdir' = `.'.
28848# Shell code in configure.ac might set extrasub.
28849# FIXME: do we really want to maintain this feature?
28850cat >>$CONFIG_STATUS <<_ACEOF
28851  sed "$ac_vpsub
28852$extrasub
28853_ACEOF
28854cat >>$CONFIG_STATUS <<\_ACEOF
28855:t
28856/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28857s&@configure_input@&$configure_input&;t t
28858s&@top_builddir@&$ac_top_builddir_sub&;t t
28859s&@srcdir@&$ac_srcdir&;t t
28860s&@abs_srcdir@&$ac_abs_srcdir&;t t
28861s&@top_srcdir@&$ac_top_srcdir&;t t
28862s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28863s&@builddir@&$ac_builddir&;t t
28864s&@abs_builddir@&$ac_abs_builddir&;t t
28865s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28866s&@INSTALL@&$ac_INSTALL&;t t
28867$ac_datarootdir_hack
28868" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
28869
28870test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28871  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28872  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28873  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28874which seems to be undefined.  Please make sure it is defined." >&5
28875echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28876which seems to be undefined.  Please make sure it is defined." >&2;}
28877
28878  rm -f "$tmp/stdin"
28879  case $ac_file in
28880  -) cat "$tmp/out"; rm -f "$tmp/out";;
28881  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28882  esac
28883 ;;
28884  :H)
28885  #
28886  # CONFIG_HEADER
28887  #
28888_ACEOF
28889
28890# Transform confdefs.h into a sed script `conftest.defines', that
28891# substitutes the proper values into config.h.in to produce config.h.
28892rm -f conftest.defines conftest.tail
28893# First, append a space to every undef/define line, to ease matching.
28894echo 's/$/ /' >conftest.defines
28895# Then, protect against being on the right side of a sed subst, or in
28896# an unquoted here document, in config.status.  If some macros were
28897# called several times there might be several #defines for the same
28898# symbol, which is useless.  But do not sort them, since the last
28899# AC_DEFINE must be honored.
28900ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28901# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28902# NAME is the cpp macro being defined, VALUE is the value it is being given.
28903# PARAMS is the parameter list in the macro definition--in most cases, it's
28904# just an empty string.
28905ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
28906ac_dB='\\)[	 (].*,\\1define\\2'
28907ac_dC=' '
28908ac_dD=' ,'
28909
28910uniq confdefs.h |
28911  sed -n '
28912	t rset
28913	:rset
28914	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
28915	t ok
28916	d
28917	:ok
28918	s/[\\&,]/\\&/g
28919	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28920	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28921  ' >>conftest.defines
28922
28923# Remove the space that was appended to ease matching.
28924# Then replace #undef with comments.  This is necessary, for
28925# example, in the case of _POSIX_SOURCE, which is predefined and required
28926# on some systems where configure will not decide to define it.
28927# (The regexp can be short, since the line contains either #define or #undef.)
28928echo 's/ $//
28929s,^[	 #]*u.*,/* & */,' >>conftest.defines
28930
28931# Break up conftest.defines:
28932ac_max_sed_lines=50
28933
28934# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28935# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28936# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28937# et cetera.
28938ac_in='$ac_file_inputs'
28939ac_out='"$tmp/out1"'
28940ac_nxt='"$tmp/out2"'
28941
28942while :
28943do
28944  # Write a here document:
28945    cat >>$CONFIG_STATUS <<_ACEOF
28946    # First, check the format of the line:
28947    cat >"\$tmp/defines.sed" <<\\CEOF
28948/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
28949/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
28950b
28951:def
28952_ACEOF
28953  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
28954  echo 'CEOF
28955    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28956  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
28957  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
28958  grep . conftest.tail >/dev/null || break
28959  rm -f conftest.defines
28960  mv conftest.tail conftest.defines
28961done
28962rm -f conftest.defines conftest.tail
28963
28964echo "ac_result=$ac_in" >>$CONFIG_STATUS
28965cat >>$CONFIG_STATUS <<\_ACEOF
28966  if test x"$ac_file" != x-; then
28967    echo "/* $configure_input  */" >"$tmp/config.h"
28968    cat "$ac_result" >>"$tmp/config.h"
28969    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
28970      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28971echo "$as_me: $ac_file is unchanged" >&6;}
28972    else
28973      rm -f $ac_file
28974      mv "$tmp/config.h" $ac_file
28975    fi
28976  else
28977    echo "/* $configure_input  */"
28978    cat "$ac_result"
28979  fi
28980  rm -f "$tmp/out12"
28981# Compute $ac_file's index in $config_headers.
28982_am_stamp_count=1
28983for _am_header in $config_headers :; do
28984  case $_am_header in
28985    $ac_file | $ac_file:* )
28986      break ;;
28987    * )
28988      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28989  esac
28990done
28991echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
28992$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28993	 X$ac_file : 'X\(//\)[^/]' \| \
28994	 X$ac_file : 'X\(//\)$' \| \
28995	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
28996echo X$ac_file |
28997    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28998	    s//\1/
28999	    q
29000	  }
29001	  /^X\(\/\/\)[^/].*/{
29002	    s//\1/
29003	    q
29004	  }
29005	  /^X\(\/\/\)$/{
29006	    s//\1/
29007	    q
29008	  }
29009	  /^X\(\/\).*/{
29010	    s//\1/
29011	    q
29012	  }
29013	  s/.*/./; q'`/stamp-h$_am_stamp_count
29014 ;;
29015
29016  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
29017echo "$as_me: executing $ac_file commands" >&6;}
29018 ;;
29019  esac
29020
29021
29022  case $ac_file$ac_mode in
29023    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
29024  # Strip MF so we end up with the name of the file.
29025  mf=`echo "$mf" | sed -e 's/:.*$//'`
29026  # Check whether this is an Automake generated Makefile or not.
29027  # We used to match only the files named `Makefile.in', but
29028  # some people rename them; so instead we look at the file content.
29029  # Grep'ing the first line is not enough: some people post-process
29030  # each Makefile.in and add a new line on top of each file to say so.
29031  # So let's grep whole file.
29032  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
29033    dirpart=`$as_dirname -- "$mf" ||
29034$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29035	 X"$mf" : 'X\(//\)[^/]' \| \
29036	 X"$mf" : 'X\(//\)$' \| \
29037	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
29038echo X"$mf" |
29039    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29040	    s//\1/
29041	    q
29042	  }
29043	  /^X\(\/\/\)[^/].*/{
29044	    s//\1/
29045	    q
29046	  }
29047	  /^X\(\/\/\)$/{
29048	    s//\1/
29049	    q
29050	  }
29051	  /^X\(\/\).*/{
29052	    s//\1/
29053	    q
29054	  }
29055	  s/.*/./; q'`
29056  else
29057    continue
29058  fi
29059  # Extract the definition of DEPDIR, am__include, and am__quote
29060  # from the Makefile without running `make'.
29061  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29062  test -z "$DEPDIR" && continue
29063  am__include=`sed -n 's/^am__include = //p' < "$mf"`
29064  test -z "am__include" && continue
29065  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29066  # When using ansi2knr, U may be empty or an underscore; expand it
29067  U=`sed -n 's/^U = //p' < "$mf"`
29068  # Find all dependency output files, they are included files with
29069  # $(DEPDIR) in their names.  We invoke sed twice because it is the
29070  # simplest approach to changing $(DEPDIR) to its actual value in the
29071  # expansion.
29072  for file in `sed -n "
29073    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29074       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29075    # Make sure the directory exists.
29076    test -f "$dirpart/$file" && continue
29077    fdir=`$as_dirname -- "$file" ||
29078$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29079	 X"$file" : 'X\(//\)[^/]' \| \
29080	 X"$file" : 'X\(//\)$' \| \
29081	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
29082echo X"$file" |
29083    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29084	    s//\1/
29085	    q
29086	  }
29087	  /^X\(\/\/\)[^/].*/{
29088	    s//\1/
29089	    q
29090	  }
29091	  /^X\(\/\/\)$/{
29092	    s//\1/
29093	    q
29094	  }
29095	  /^X\(\/\).*/{
29096	    s//\1/
29097	    q
29098	  }
29099	  s/.*/./; q'`
29100    { as_dir=$dirpart/$fdir
29101  case $as_dir in #(
29102  -*) as_dir=./$as_dir;;
29103  esac
29104  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29105    as_dirs=
29106    while :; do
29107      case $as_dir in #(
29108      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
29109      *) as_qdir=$as_dir;;
29110      esac
29111      as_dirs="'$as_qdir' $as_dirs"
29112      as_dir=`$as_dirname -- "$as_dir" ||
29113$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29114	 X"$as_dir" : 'X\(//\)[^/]' \| \
29115	 X"$as_dir" : 'X\(//\)$' \| \
29116	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29117echo X"$as_dir" |
29118    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29119	    s//\1/
29120	    q
29121	  }
29122	  /^X\(\/\/\)[^/].*/{
29123	    s//\1/
29124	    q
29125	  }
29126	  /^X\(\/\/\)$/{
29127	    s//\1/
29128	    q
29129	  }
29130	  /^X\(\/\).*/{
29131	    s//\1/
29132	    q
29133	  }
29134	  s/.*/./; q'`
29135      test -d "$as_dir" && break
29136    done
29137    test -z "$as_dirs" || eval "mkdir $as_dirs"
29138  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29139echo "$as_me: error: cannot create directory $as_dir" >&2;}
29140   { (exit 1); exit 1; }; }; }
29141    # echo "creating $dirpart/$file"
29142    echo '# dummy' > "$dirpart/$file"
29143  done
29144done
29145 ;;
29146
29147  esac
29148done # for ac_tag
29149
29150
29151{ (exit 0); exit 0; }
29152_ACEOF
29153chmod +x $CONFIG_STATUS
29154ac_clean_files=$ac_clean_files_save
29155
29156
29157# configure is writing to config.log, and then calls config.status.
29158# config.status does its own redirection, appending to config.log.
29159# Unfortunately, on DOS this fails, as config.log is still kept open
29160# by configure, so config.status won't be able to write to it; its
29161# output is simply discarded.  So we exec the FD to /dev/null,
29162# effectively closing config.log, so it can be properly (re)opened and
29163# appended to by config.status.  When coming back to configure, we
29164# need to make the FD available again.
29165if test "$no_create" != yes; then
29166  ac_cs_success=:
29167  ac_config_status_args=
29168  test "$silent" = yes &&
29169    ac_config_status_args="$ac_config_status_args --quiet"
29170  exec 5>/dev/null
29171  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29172  exec 5>>config.log
29173  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29174  # would make configure fail if this is the last instruction.
29175  $ac_cs_success || { (exit 1); exit 1; }
29176fi
29177
29178