• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for open-vcdiff 0.7.
4#
5# Report bugs to <opensource@google.com>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44  echo "#! /bin/sh" >conf$$.sh
45  echo  "exit 0"   >>conf$$.sh
46  chmod +x conf$$.sh
47  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48    PATH_SEPARATOR=';'
49  else
50    PATH_SEPARATOR=:
51  fi
52  rm -f conf$$.sh
53fi
54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57  as_unset=unset
58else
59  as_unset=false
60fi
61
62
63# IFS
64# We need space, tab and new line, in precisely that order.  Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" ""	$as_nl"
71
72# Find who we are.  Look in the path if we contain no directory separator.
73case $0 in
74  *[\\/]* ) as_myself=$0 ;;
75  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78  IFS=$as_save_IFS
79  test -z "$as_dir" && as_dir=.
80  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84     ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89  as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93  { (exit 1); exit 1; }
94fi
95
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108  LC_TELEPHONE LC_TIME
109do
110  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111    eval $as_var=C; export $as_var
112  else
113    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114  fi
115done
116
117# Required to use basename.
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119   test "X`expr 00001 : '.*\(...\)'`" = X001; then
120  as_expr=expr
121else
122  as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126  as_basename=basename
127else
128  as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135	 X"$0" : 'X\(//\)$' \| \
136	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137echo X/"$0" |
138    sed '/^.*\/\([^/][^/]*\)\/*$/{
139	    s//\1/
140	    q
141	  }
142	  /^X\/\(\/\/\)$/{
143	    s//\1/
144	    q
145	  }
146	  /^X\/\(\/\).*/{
147	    s//\1/
148	    q
149	  }
150	  s/.*/./; q'`
151
152# CDPATH.
153$as_unset CDPATH
154
155
156if test "x$CONFIG_SHELL" = x; then
157  if (eval ":") 2>/dev/null; then
158  as_have_required=yes
159else
160  as_have_required=no
161fi
162
163  if test $as_have_required = yes && 	 (eval ":
164(as_func_return () {
165  (exit \$1)
166}
167as_func_success () {
168  as_func_return 0
169}
170as_func_failure () {
171  as_func_return 1
172}
173as_func_ret_success () {
174  return 0
175}
176as_func_ret_failure () {
177  return 1
178}
179
180exitcode=0
181if as_func_success; then
182  :
183else
184  exitcode=1
185  echo as_func_success failed.
186fi
187
188if as_func_failure; then
189  exitcode=1
190  echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194  :
195else
196  exitcode=1
197  echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201  exitcode=1
202  echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206  :
207else
208  exitcode=1
209  echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215  as_lineno_1=\$LINENO
216  as_lineno_2=\$LINENO
217  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220  :
221else
222  as_candidate_shells=
223    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226  IFS=$as_save_IFS
227  test -z "$as_dir" && as_dir=.
228  case $as_dir in
229	 /*)
230	   for as_base in sh bash ksh sh5; do
231	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232	   done;;
233       esac
234done
235IFS=$as_save_IFS
236
237
238      for as_shell in $as_candidate_shells $SHELL; do
239	 # Try only shells that exist, to save several forks.
240	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241		{ ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243  emulate sh
244  NULLCMD=:
245  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246  # is contrary to our usage.  Disable this feature.
247  alias -g '${1+"$@"}'='"$@"'
248  setopt NO_GLOB_SUBST
249else
250  case `(set -o) 2>/dev/null` in
251  *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260  CONFIG_SHELL=$as_shell
261	       as_have_required=yes
262	       if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264  emulate sh
265  NULLCMD=:
266  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267  # is contrary to our usage.  Disable this feature.
268  alias -g '${1+"$@"}'='"$@"'
269  setopt NO_GLOB_SUBST
270else
271  case `(set -o) 2>/dev/null` in
272  *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280  (exit $1)
281}
282as_func_success () {
283  as_func_return 0
284}
285as_func_failure () {
286  as_func_return 1
287}
288as_func_ret_success () {
289  return 0
290}
291as_func_ret_failure () {
292  return 1
293}
294
295exitcode=0
296if as_func_success; then
297  :
298else
299  exitcode=1
300  echo as_func_success failed.
301fi
302
303if as_func_failure; then
304  exitcode=1
305  echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309  :
310else
311  exitcode=1
312  echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316  exitcode=1
317  echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321  :
322else
323  exitcode=1
324  echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
330  as_lineno_1=$LINENO
331  as_lineno_2=$LINENO
332  test "x$as_lineno_1" != "x$as_lineno_2" &&
333  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337  break
338fi
339
340fi
341
342      done
343
344      if test "x$CONFIG_SHELL" != x; then
345  for as_var in BASH_ENV ENV
346        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347        done
348        export CONFIG_SHELL
349        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353    if test $as_have_required = no; then
354  echo This script requires a shell more modern than all the
355      echo shells that I found on your system.  Please install a
356      echo modern shell, or manually run the script under such a
357      echo shell if you do have one.
358      { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369  (exit \$1)
370}
371as_func_success () {
372  as_func_return 0
373}
374as_func_failure () {
375  as_func_return 1
376}
377as_func_ret_success () {
378  return 0
379}
380as_func_ret_failure () {
381  return 1
382}
383
384exitcode=0
385if as_func_success; then
386  :
387else
388  exitcode=1
389  echo as_func_success failed.
390fi
391
392if as_func_failure; then
393  exitcode=1
394  echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398  :
399else
400  exitcode=1
401  echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405  exitcode=1
406  echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410  :
411else
412  exitcode=1
413  echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417  echo No shell found that supports shell functions.
418  echo Please tell autoconf@gnu.org about your system,
419  echo including any error possibly output before this
420  echo message
421}
422
423
424
425  as_lineno_1=$LINENO
426  as_lineno_2=$LINENO
427  test "x$as_lineno_1" != "x$as_lineno_2" &&
428  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431  # uniformly replaced by the line number.  The first 'sed' inserts a
432  # line-number line after each line using $LINENO; the second 'sed'
433  # does the real work.  The second script uses 'N' to pair each
434  # line-number line with the line containing $LINENO, and appends
435  # trailing '-' during substitution so that $LINENO is not a special
436  # case at line end.
437  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438  # scripts with optimization help from Paolo Bonzini.  Blame Lee
439  # E. McMahon (1931-1989) for sed's syntax.  :-)
440  sed -n '
441    p
442    /[$]LINENO/=
443  ' <$as_myself |
444    sed '
445      s/[$]LINENO.*/&-/
446      t lineno
447      b
448      :lineno
449      N
450      :loop
451      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452      t loop
453      s/-\n.*//
454    ' >$as_me.lineno &&
455  chmod +x "$as_me.lineno" ||
456    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457   { (exit 1); exit 1; }; }
458
459  # Don't try to exec as it changes $[0], causing all sort of problems
460  # (the dirname of $[0] is not the place where we might find the
461  # original and so on.  Autoconf is especially sensitive to this).
462  . "./$as_me.lineno"
463  # Exit status is that of the last command.
464  exit
465}
466
467
468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469  as_dirname=dirname
470else
471  as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477  case `echo 'x\c'` in
478  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
479  *)   ECHO_C='\c';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485if expr a : '\(a\)' >/dev/null 2>&1 &&
486   test "X`expr 00001 : '.*\(...\)'`" = X001; then
487  as_expr=expr
488else
489  as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
493if test -d conf$$.dir; then
494  rm -f conf$$.dir/conf$$.file
495else
496  rm -f conf$$.dir
497  mkdir conf$$.dir
498fi
499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
501  as_ln_s='ln -s'
502  # ... but there are two gotchas:
503  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505  # In both cases, we have to default to `cp -p'.
506  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507    as_ln_s='cp -p'
508elif ln conf$$.file conf$$ 2>/dev/null; then
509  as_ln_s=ln
510else
511  as_ln_s='cp -p'
512fi
513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
515
516if mkdir -p . 2>/dev/null; then
517  as_mkdir_p=:
518else
519  test -d ./-p && rmdir ./-p
520  as_mkdir_p=false
521fi
522
523if test -x / >/dev/null 2>&1; then
524  as_test_x='test -x'
525else
526  if ls -dL / >/dev/null 2>&1; then
527    as_ls_L_option=L
528  else
529    as_ls_L_option=
530  fi
531  as_test_x='
532    eval sh -c '\''
533      if test -d "$1"; then
534        test -d "$1/.";
535      else
536	case $1 in
537        -*)set "./$1";;
538	esac;
539	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540	???[sx]*):;;*)false;;esac;fi
541    '\'' sh
542  '
543fi
544as_executable_p=$as_test_x
545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555# Check that we are running under the correct shell.
556SHELL=${CONFIG_SHELL-/bin/sh}
557
558case X$ECHO in
559X*--fallback-echo)
560  # Remove one level of quotation (which was required for Make).
561  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562  ;;
563esac
564
565echo=${ECHO-echo}
566if test "X$1" = X--no-reexec; then
567  # Discard the --no-reexec flag, and continue.
568  shift
569elif test "X$1" = X--fallback-echo; then
570  # Avoid inline document here, it may be left over
571  :
572elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573  # Yippee, $echo works!
574  :
575else
576  # Restart under the correct shell.
577  exec $SHELL "$0" --no-reexec ${1+"$@"}
578fi
579
580if test "X$1" = X--fallback-echo; then
581  # used as fallback echo
582  shift
583  cat <<EOF
584$*
585EOF
586  exit 0
587fi
588
589# The HP-UX ksh and POSIX shell print the target directory to stdout
590# if CDPATH is set.
591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593if test -z "$ECHO"; then
594if test "X${echo_test_string+set}" != Xset; then
595# find a string as large as possible, as long as the shell can cope with it
596  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599       echo_test_string=`eval $cmd` &&
600       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601    then
602      break
603    fi
604  done
605fi
606
607if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609   test "X$echo_testing_string" = "X$echo_test_string"; then
610  :
611else
612  # The Solaris, AIX, and Digital Unix default echo programs unquote
613  # backslashes.  This makes it impossible to quote backslashes using
614  #   echo "$something" | sed 's/\\/\\\\/g'
615  #
616  # So, first we look for a working echo in the user's PATH.
617
618  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619  for dir in $PATH /usr/ucb; do
620    IFS="$lt_save_ifs"
621    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624       test "X$echo_testing_string" = "X$echo_test_string"; then
625      echo="$dir/echo"
626      break
627    fi
628  done
629  IFS="$lt_save_ifs"
630
631  if test "X$echo" = Xecho; then
632    # We didn't find a better echo, so look for alternatives.
633    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635       test "X$echo_testing_string" = "X$echo_test_string"; then
636      # This shell has a builtin print -r that does the trick.
637      echo='print -r'
638    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639	 test "X$CONFIG_SHELL" != X/bin/ksh; then
640      # If we have ksh, try running configure again with it.
641      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642      export ORIGINAL_CONFIG_SHELL
643      CONFIG_SHELL=/bin/ksh
644      export CONFIG_SHELL
645      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646    else
647      # Try using printf.
648      echo='printf %s\n'
649      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651	 test "X$echo_testing_string" = "X$echo_test_string"; then
652	# Cool, printf works
653	:
654      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655	   test "X$echo_testing_string" = 'X\t' &&
656	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657	   test "X$echo_testing_string" = "X$echo_test_string"; then
658	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659	export CONFIG_SHELL
660	SHELL="$CONFIG_SHELL"
661	export SHELL
662	echo="$CONFIG_SHELL $0 --fallback-echo"
663      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664	   test "X$echo_testing_string" = 'X\t' &&
665	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666	   test "X$echo_testing_string" = "X$echo_test_string"; then
667	echo="$CONFIG_SHELL $0 --fallback-echo"
668      else
669	# maybe with a smaller string...
670	prev=:
671
672	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674	  then
675	    break
676	  fi
677	  prev="$cmd"
678	done
679
680	if test "$prev" != 'sed 50q "$0"'; then
681	  echo_test_string=`eval $prev`
682	  export echo_test_string
683	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684	else
685	  # Oops.  We lost completely, so just stick with echo.
686	  echo=echo
687	fi
688      fi
689    fi
690  fi
691fi
692fi
693
694# Copy echo and quote the copy suitably for passing to libtool from
695# the Makefile, instead of quoting the original, which is used later.
696ECHO=$echo
697if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699fi
700
701
702
703
704tagnames=${tagnames+${tagnames},}CXX
705
706tagnames=${tagnames+${tagnames},}F77
707
708exec 7<&0 </dev/null 6>&1
709
710# Name of the host.
711# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712# so uname gets run too.
713ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715#
716# Initializations.
717#
718ac_default_prefix=/usr/local
719ac_clean_files=
720ac_config_libobj_dir=.
721LIBOBJS=
722cross_compiling=no
723subdirs=
724MFLAGS=
725MAKEFLAGS=
726SHELL=${CONFIG_SHELL-/bin/sh}
727
728# Identity of this package.
729PACKAGE_NAME='open-vcdiff'
730PACKAGE_TARNAME='open-vcdiff'
731PACKAGE_VERSION='0.7'
732PACKAGE_STRING='open-vcdiff 0.7'
733PACKAGE_BUGREPORT='opensource@google.com'
734
735ac_unique_file="README"
736# Factoring default headers for most tests.
737ac_includes_default="\
738#include <stdio.h>
739#ifdef HAVE_SYS_TYPES_H
740# include <sys/types.h>
741#endif
742#ifdef HAVE_SYS_STAT_H
743# include <sys/stat.h>
744#endif
745#ifdef STDC_HEADERS
746# include <stdlib.h>
747# include <stddef.h>
748#else
749# ifdef HAVE_STDLIB_H
750#  include <stdlib.h>
751# endif
752#endif
753#ifdef HAVE_STRING_H
754# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755#  include <memory.h>
756# endif
757# include <string.h>
758#endif
759#ifdef HAVE_STRINGS_H
760# include <strings.h>
761#endif
762#ifdef HAVE_INTTYPES_H
763# include <inttypes.h>
764#endif
765#ifdef HAVE_STDINT_H
766# include <stdint.h>
767#endif
768#ifdef HAVE_UNISTD_H
769# include <unistd.h>
770#endif"
771
772ac_subst_vars='SHELL
773PATH_SEPARATOR
774PACKAGE_NAME
775PACKAGE_TARNAME
776PACKAGE_VERSION
777PACKAGE_STRING
778PACKAGE_BUGREPORT
779exec_prefix
780prefix
781program_transform_name
782bindir
783sbindir
784libexecdir
785datarootdir
786datadir
787sysconfdir
788sharedstatedir
789localstatedir
790includedir
791oldincludedir
792docdir
793infodir
794htmldir
795dvidir
796pdfdir
797psdir
798libdir
799localedir
800mandir
801DEFS
802ECHO_C
803ECHO_N
804ECHO_T
805LIBS
806build_alias
807host_alias
808target_alias
809INSTALL_PROGRAM
810INSTALL_SCRIPT
811INSTALL_DATA
812am__isrc
813CYGPATH_W
814PACKAGE
815VERSION
816ACLOCAL
817AUTOCONF
818AUTOMAKE
819AUTOHEADER
820MAKEINFO
821install_sh
822STRIP
823INSTALL_STRIP_PROGRAM
824mkdir_p
825AWK
826SET_MAKE
827am__leading_dot
828AMTAR
829am__tar
830am__untar
831CC
832CFLAGS
833LDFLAGS
834CPPFLAGS
835ac_ct_CC
836EXEEXT
837OBJEXT
838DEPDIR
839am__include
840am__quote
841AMDEP_TRUE
842AMDEP_FALSE
843AMDEPBACKSLASH
844CCDEPMODE
845am__fastdepCC_TRUE
846am__fastdepCC_FALSE
847CPP
848CXX
849CXXFLAGS
850ac_ct_CXX
851CXXDEPMODE
852am__fastdepCXX_TRUE
853am__fastdepCXX_FALSE
854GCC_TRUE
855GCC_FALSE
856build
857build_cpu
858build_vendor
859build_os
860host
861host_cpu
862host_vendor
863host_os
864SED
865GREP
866EGREP
867LN_S
868ECHO
869AR
870RANLIB
871DSYMUTIL
872NMEDIT
873CXXCPP
874F77
875FFLAGS
876ac_ct_F77
877LIBTOOL
878LIBTOOL_DEPS
879LIBSTDCXX_LA_LINKER_FLAG
880LIBOBJS
881LTLIBOBJS'
882ac_subst_files=''
883      ac_precious_vars='build_alias
884host_alias
885target_alias
886CC
887CFLAGS
888LDFLAGS
889LIBS
890CPPFLAGS
891CPP
892CXX
893CXXFLAGS
894CCC
895CXXCPP
896F77
897FFLAGS'
898
899
900# Initialize some variables set by options.
901ac_init_help=
902ac_init_version=false
903# The variables have the same names as the options, with
904# dashes changed to underlines.
905cache_file=/dev/null
906exec_prefix=NONE
907no_create=
908no_recursion=
909prefix=NONE
910program_prefix=NONE
911program_suffix=NONE
912program_transform_name=s,x,x,
913silent=
914site=
915srcdir=
916verbose=
917x_includes=NONE
918x_libraries=NONE
919
920# Installation directory options.
921# These are left unexpanded so users can "make install exec_prefix=/foo"
922# and all the variables that are supposed to be based on exec_prefix
923# by default will actually change.
924# Use braces instead of parens because sh, perl, etc. also accept them.
925# (The list follows the same order as the GNU Coding Standards.)
926bindir='${exec_prefix}/bin'
927sbindir='${exec_prefix}/sbin'
928libexecdir='${exec_prefix}/libexec'
929datarootdir='${prefix}/share'
930datadir='${datarootdir}'
931sysconfdir='${prefix}/etc'
932sharedstatedir='${prefix}/com'
933localstatedir='${prefix}/var'
934includedir='${prefix}/include'
935oldincludedir='/usr/include'
936docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
937infodir='${datarootdir}/info'
938htmldir='${docdir}'
939dvidir='${docdir}'
940pdfdir='${docdir}'
941psdir='${docdir}'
942libdir='${exec_prefix}/lib'
943localedir='${datarootdir}/locale'
944mandir='${datarootdir}/man'
945
946ac_prev=
947ac_dashdash=
948for ac_option
949do
950  # If the previous option needs an argument, assign it.
951  if test -n "$ac_prev"; then
952    eval $ac_prev=\$ac_option
953    ac_prev=
954    continue
955  fi
956
957  case $ac_option in
958  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
959  *)	ac_optarg=yes ;;
960  esac
961
962  # Accept the important Cygnus configure options, so we can diagnose typos.
963
964  case $ac_dashdash$ac_option in
965  --)
966    ac_dashdash=yes ;;
967
968  -bindir | --bindir | --bindi | --bind | --bin | --bi)
969    ac_prev=bindir ;;
970  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
971    bindir=$ac_optarg ;;
972
973  -build | --build | --buil | --bui | --bu)
974    ac_prev=build_alias ;;
975  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
976    build_alias=$ac_optarg ;;
977
978  -cache-file | --cache-file | --cache-fil | --cache-fi \
979  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
980    ac_prev=cache_file ;;
981  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
982  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
983    cache_file=$ac_optarg ;;
984
985  --config-cache | -C)
986    cache_file=config.cache ;;
987
988  -datadir | --datadir | --datadi | --datad)
989    ac_prev=datadir ;;
990  -datadir=* | --datadir=* | --datadi=* | --datad=*)
991    datadir=$ac_optarg ;;
992
993  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
994  | --dataroo | --dataro | --datar)
995    ac_prev=datarootdir ;;
996  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
997  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
998    datarootdir=$ac_optarg ;;
999
1000  -disable-* | --disable-*)
1001    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1002    # Reject names that are not valid shell variable names.
1003    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1004      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1005   { (exit 1); exit 1; }; }
1006    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1007    eval enable_$ac_feature=no ;;
1008
1009  -docdir | --docdir | --docdi | --doc | --do)
1010    ac_prev=docdir ;;
1011  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1012    docdir=$ac_optarg ;;
1013
1014  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1015    ac_prev=dvidir ;;
1016  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1017    dvidir=$ac_optarg ;;
1018
1019  -enable-* | --enable-*)
1020    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1021    # Reject names that are not valid shell variable names.
1022    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1023      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1024   { (exit 1); exit 1; }; }
1025    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1026    eval enable_$ac_feature=\$ac_optarg ;;
1027
1028  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1029  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1030  | --exec | --exe | --ex)
1031    ac_prev=exec_prefix ;;
1032  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1033  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1034  | --exec=* | --exe=* | --ex=*)
1035    exec_prefix=$ac_optarg ;;
1036
1037  -gas | --gas | --ga | --g)
1038    # Obsolete; use --with-gas.
1039    with_gas=yes ;;
1040
1041  -help | --help | --hel | --he | -h)
1042    ac_init_help=long ;;
1043  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1044    ac_init_help=recursive ;;
1045  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1046    ac_init_help=short ;;
1047
1048  -host | --host | --hos | --ho)
1049    ac_prev=host_alias ;;
1050  -host=* | --host=* | --hos=* | --ho=*)
1051    host_alias=$ac_optarg ;;
1052
1053  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1054    ac_prev=htmldir ;;
1055  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1056  | --ht=*)
1057    htmldir=$ac_optarg ;;
1058
1059  -includedir | --includedir | --includedi | --included | --include \
1060  | --includ | --inclu | --incl | --inc)
1061    ac_prev=includedir ;;
1062  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1063  | --includ=* | --inclu=* | --incl=* | --inc=*)
1064    includedir=$ac_optarg ;;
1065
1066  -infodir | --infodir | --infodi | --infod | --info | --inf)
1067    ac_prev=infodir ;;
1068  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1069    infodir=$ac_optarg ;;
1070
1071  -libdir | --libdir | --libdi | --libd)
1072    ac_prev=libdir ;;
1073  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1074    libdir=$ac_optarg ;;
1075
1076  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1077  | --libexe | --libex | --libe)
1078    ac_prev=libexecdir ;;
1079  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1080  | --libexe=* | --libex=* | --libe=*)
1081    libexecdir=$ac_optarg ;;
1082
1083  -localedir | --localedir | --localedi | --localed | --locale)
1084    ac_prev=localedir ;;
1085  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1086    localedir=$ac_optarg ;;
1087
1088  -localstatedir | --localstatedir | --localstatedi | --localstated \
1089  | --localstate | --localstat | --localsta | --localst | --locals)
1090    ac_prev=localstatedir ;;
1091  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1092  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1093    localstatedir=$ac_optarg ;;
1094
1095  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1096    ac_prev=mandir ;;
1097  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1098    mandir=$ac_optarg ;;
1099
1100  -nfp | --nfp | --nf)
1101    # Obsolete; use --without-fp.
1102    with_fp=no ;;
1103
1104  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1105  | --no-cr | --no-c | -n)
1106    no_create=yes ;;
1107
1108  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1109  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1110    no_recursion=yes ;;
1111
1112  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1113  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1114  | --oldin | --oldi | --old | --ol | --o)
1115    ac_prev=oldincludedir ;;
1116  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1117  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1118  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1119    oldincludedir=$ac_optarg ;;
1120
1121  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1122    ac_prev=prefix ;;
1123  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1124    prefix=$ac_optarg ;;
1125
1126  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1127  | --program-pre | --program-pr | --program-p)
1128    ac_prev=program_prefix ;;
1129  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1130  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1131    program_prefix=$ac_optarg ;;
1132
1133  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1134  | --program-suf | --program-su | --program-s)
1135    ac_prev=program_suffix ;;
1136  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1137  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1138    program_suffix=$ac_optarg ;;
1139
1140  -program-transform-name | --program-transform-name \
1141  | --program-transform-nam | --program-transform-na \
1142  | --program-transform-n | --program-transform- \
1143  | --program-transform | --program-transfor \
1144  | --program-transfo | --program-transf \
1145  | --program-trans | --program-tran \
1146  | --progr-tra | --program-tr | --program-t)
1147    ac_prev=program_transform_name ;;
1148  -program-transform-name=* | --program-transform-name=* \
1149  | --program-transform-nam=* | --program-transform-na=* \
1150  | --program-transform-n=* | --program-transform-=* \
1151  | --program-transform=* | --program-transfor=* \
1152  | --program-transfo=* | --program-transf=* \
1153  | --program-trans=* | --program-tran=* \
1154  | --progr-tra=* | --program-tr=* | --program-t=*)
1155    program_transform_name=$ac_optarg ;;
1156
1157  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1158    ac_prev=pdfdir ;;
1159  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1160    pdfdir=$ac_optarg ;;
1161
1162  -psdir | --psdir | --psdi | --psd | --ps)
1163    ac_prev=psdir ;;
1164  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1165    psdir=$ac_optarg ;;
1166
1167  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1168  | -silent | --silent | --silen | --sile | --sil)
1169    silent=yes ;;
1170
1171  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1172    ac_prev=sbindir ;;
1173  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1174  | --sbi=* | --sb=*)
1175    sbindir=$ac_optarg ;;
1176
1177  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1178  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1179  | --sharedst | --shareds | --shared | --share | --shar \
1180  | --sha | --sh)
1181    ac_prev=sharedstatedir ;;
1182  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1183  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1184  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1185  | --sha=* | --sh=*)
1186    sharedstatedir=$ac_optarg ;;
1187
1188  -site | --site | --sit)
1189    ac_prev=site ;;
1190  -site=* | --site=* | --sit=*)
1191    site=$ac_optarg ;;
1192
1193  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1194    ac_prev=srcdir ;;
1195  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1196    srcdir=$ac_optarg ;;
1197
1198  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1199  | --syscon | --sysco | --sysc | --sys | --sy)
1200    ac_prev=sysconfdir ;;
1201  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1202  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1203    sysconfdir=$ac_optarg ;;
1204
1205  -target | --target | --targe | --targ | --tar | --ta | --t)
1206    ac_prev=target_alias ;;
1207  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1208    target_alias=$ac_optarg ;;
1209
1210  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1211    verbose=yes ;;
1212
1213  -version | --version | --versio | --versi | --vers | -V)
1214    ac_init_version=: ;;
1215
1216  -with-* | --with-*)
1217    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1218    # Reject names that are not valid shell variable names.
1219    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1220      { echo "$as_me: error: invalid package name: $ac_package" >&2
1221   { (exit 1); exit 1; }; }
1222    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1223    eval with_$ac_package=\$ac_optarg ;;
1224
1225  -without-* | --without-*)
1226    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1227    # Reject names that are not valid shell variable names.
1228    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1229      { echo "$as_me: error: invalid package name: $ac_package" >&2
1230   { (exit 1); exit 1; }; }
1231    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1232    eval with_$ac_package=no ;;
1233
1234  --x)
1235    # Obsolete; use --with-x.
1236    with_x=yes ;;
1237
1238  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1239  | --x-incl | --x-inc | --x-in | --x-i)
1240    ac_prev=x_includes ;;
1241  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1242  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1243    x_includes=$ac_optarg ;;
1244
1245  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1246  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1247    ac_prev=x_libraries ;;
1248  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1249  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1250    x_libraries=$ac_optarg ;;
1251
1252  -*) { echo "$as_me: error: unrecognized option: $ac_option
1253Try \`$0 --help' for more information." >&2
1254   { (exit 1); exit 1; }; }
1255    ;;
1256
1257  *=*)
1258    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1259    # Reject names that are not valid shell variable names.
1260    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1261      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1262   { (exit 1); exit 1; }; }
1263    eval $ac_envvar=\$ac_optarg
1264    export $ac_envvar ;;
1265
1266  *)
1267    # FIXME: should be removed in autoconf 3.0.
1268    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1269    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1270      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1271    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1272    ;;
1273
1274  esac
1275done
1276
1277if test -n "$ac_prev"; then
1278  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1279  { echo "$as_me: error: missing argument to $ac_option" >&2
1280   { (exit 1); exit 1; }; }
1281fi
1282
1283# Be sure to have absolute directory names.
1284for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1285		datadir sysconfdir sharedstatedir localstatedir includedir \
1286		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1287		libdir localedir mandir
1288do
1289  eval ac_val=\$$ac_var
1290  case $ac_val in
1291    [\\/$]* | ?:[\\/]* )  continue;;
1292    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1293  esac
1294  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1295   { (exit 1); exit 1; }; }
1296done
1297
1298# There might be people who depend on the old broken behavior: `$host'
1299# used to hold the argument of --host etc.
1300# FIXME: To remove some day.
1301build=$build_alias
1302host=$host_alias
1303target=$target_alias
1304
1305# FIXME: To remove some day.
1306if test "x$host_alias" != x; then
1307  if test "x$build_alias" = x; then
1308    cross_compiling=maybe
1309    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1310    If a cross compiler is detected then cross compile mode will be used." >&2
1311  elif test "x$build_alias" != "x$host_alias"; then
1312    cross_compiling=yes
1313  fi
1314fi
1315
1316ac_tool_prefix=
1317test -n "$host_alias" && ac_tool_prefix=$host_alias-
1318
1319test "$silent" = yes && exec 6>/dev/null
1320
1321
1322ac_pwd=`pwd` && test -n "$ac_pwd" &&
1323ac_ls_di=`ls -di .` &&
1324ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1325  { echo "$as_me: error: Working directory cannot be determined" >&2
1326   { (exit 1); exit 1; }; }
1327test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1328  { echo "$as_me: error: pwd does not report name of working directory" >&2
1329   { (exit 1); exit 1; }; }
1330
1331
1332# Find the source files, if location was not specified.
1333if test -z "$srcdir"; then
1334  ac_srcdir_defaulted=yes
1335  # Try the directory containing this script, then the parent directory.
1336  ac_confdir=`$as_dirname -- "$0" ||
1337$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338	 X"$0" : 'X\(//\)[^/]' \| \
1339	 X"$0" : 'X\(//\)$' \| \
1340	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1341echo X"$0" |
1342    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343	    s//\1/
1344	    q
1345	  }
1346	  /^X\(\/\/\)[^/].*/{
1347	    s//\1/
1348	    q
1349	  }
1350	  /^X\(\/\/\)$/{
1351	    s//\1/
1352	    q
1353	  }
1354	  /^X\(\/\).*/{
1355	    s//\1/
1356	    q
1357	  }
1358	  s/.*/./; q'`
1359  srcdir=$ac_confdir
1360  if test ! -r "$srcdir/$ac_unique_file"; then
1361    srcdir=..
1362  fi
1363else
1364  ac_srcdir_defaulted=no
1365fi
1366if test ! -r "$srcdir/$ac_unique_file"; then
1367  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1368  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1369   { (exit 1); exit 1; }; }
1370fi
1371ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1372ac_abs_confdir=`(
1373	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1374   { (exit 1); exit 1; }; }
1375	pwd)`
1376# When building in place, set srcdir=.
1377if test "$ac_abs_confdir" = "$ac_pwd"; then
1378  srcdir=.
1379fi
1380# Remove unnecessary trailing slashes from srcdir.
1381# Double slashes in file names in object file debugging info
1382# mess up M-x gdb in Emacs.
1383case $srcdir in
1384*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1385esac
1386for ac_var in $ac_precious_vars; do
1387  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1388  eval ac_env_${ac_var}_value=\$${ac_var}
1389  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1390  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1391done
1392
1393#
1394# Report the --help message.
1395#
1396if test "$ac_init_help" = "long"; then
1397  # Omit some internal or obsolete options to make the list less imposing.
1398  # This message is too long to be a string in the A/UX 3.1 sh.
1399  cat <<_ACEOF
1400\`configure' configures open-vcdiff 0.7 to adapt to many kinds of systems.
1401
1402Usage: $0 [OPTION]... [VAR=VALUE]...
1403
1404To assign environment variables (e.g., CC, CFLAGS...), specify them as
1405VAR=VALUE.  See below for descriptions of some of the useful variables.
1406
1407Defaults for the options are specified in brackets.
1408
1409Configuration:
1410  -h, --help              display this help and exit
1411      --help=short        display options specific to this package
1412      --help=recursive    display the short help of all the included packages
1413  -V, --version           display version information and exit
1414  -q, --quiet, --silent   do not print \`checking...' messages
1415      --cache-file=FILE   cache test results in FILE [disabled]
1416  -C, --config-cache      alias for \`--cache-file=config.cache'
1417  -n, --no-create         do not create output files
1418      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1419
1420Installation directories:
1421  --prefix=PREFIX         install architecture-independent files in PREFIX
1422			  [$ac_default_prefix]
1423  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1424			  [PREFIX]
1425
1426By default, \`make install' will install all the files in
1427\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1428an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1429for instance \`--prefix=\$HOME'.
1430
1431For better control, use the options below.
1432
1433Fine tuning of the installation directories:
1434  --bindir=DIR           user executables [EPREFIX/bin]
1435  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1436  --libexecdir=DIR       program executables [EPREFIX/libexec]
1437  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1438  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1439  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1440  --libdir=DIR           object code libraries [EPREFIX/lib]
1441  --includedir=DIR       C header files [PREFIX/include]
1442  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1443  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1444  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1445  --infodir=DIR          info documentation [DATAROOTDIR/info]
1446  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1447  --mandir=DIR           man documentation [DATAROOTDIR/man]
1448  --docdir=DIR           documentation root [DATAROOTDIR/doc/open-vcdiff]
1449  --htmldir=DIR          html documentation [DOCDIR]
1450  --dvidir=DIR           dvi documentation [DOCDIR]
1451  --pdfdir=DIR           pdf documentation [DOCDIR]
1452  --psdir=DIR            ps documentation [DOCDIR]
1453_ACEOF
1454
1455  cat <<\_ACEOF
1456
1457Program names:
1458  --program-prefix=PREFIX            prepend PREFIX to installed program names
1459  --program-suffix=SUFFIX            append SUFFIX to installed program names
1460  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1461
1462System types:
1463  --build=BUILD     configure for building on BUILD [guessed]
1464  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1465_ACEOF
1466fi
1467
1468if test -n "$ac_init_help"; then
1469  case $ac_init_help in
1470     short | recursive ) echo "Configuration of open-vcdiff 0.7:";;
1471   esac
1472  cat <<\_ACEOF
1473
1474Optional Features:
1475  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1476  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1477  --disable-dependency-tracking  speeds up one-time build
1478  --enable-dependency-tracking   do not reject slow dependency extractors
1479  --enable-fast-install[=PKGS]
1480                          optimize for fast installation [default=no]
1481  --enable-shared[=PKGS]  build shared libraries [default=yes]
1482  --enable-static[=PKGS]  build static libraries [default=yes]
1483  --disable-libtool-lock  avoid locking (might break parallel builds)
1484
1485Optional Packages:
1486  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1487  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1488  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1489  --with-pic              try to use only PIC/non-PIC objects [default=use
1490                          both]
1491  --with-tags[=TAGS]      include additional configurations [automatic]
1492
1493Some influential environment variables:
1494  CC          C compiler command
1495  CFLAGS      C compiler flags
1496  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1497              nonstandard directory <lib dir>
1498  LIBS        libraries to pass to the linker, e.g. -l<library>
1499  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1500              you have headers in a nonstandard directory <include dir>
1501  CPP         C preprocessor
1502  CXX         C++ compiler command
1503  CXXFLAGS    C++ compiler flags
1504  CXXCPP      C++ preprocessor
1505  F77         Fortran 77 compiler command
1506  FFLAGS      Fortran 77 compiler flags
1507
1508Use these variables to override the choices made by `configure' or to help
1509it to find libraries and programs with nonstandard names/locations.
1510
1511Report bugs to <opensource@google.com>.
1512_ACEOF
1513ac_status=$?
1514fi
1515
1516if test "$ac_init_help" = "recursive"; then
1517  # If there are subdirs, report their specific --help.
1518  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1519    test -d "$ac_dir" || continue
1520    ac_builddir=.
1521
1522case "$ac_dir" in
1523.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524*)
1525  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1526  # A ".." for each directory in $ac_dir_suffix.
1527  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1528  case $ac_top_builddir_sub in
1529  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1531  esac ;;
1532esac
1533ac_abs_top_builddir=$ac_pwd
1534ac_abs_builddir=$ac_pwd$ac_dir_suffix
1535# for backward compatibility:
1536ac_top_builddir=$ac_top_build_prefix
1537
1538case $srcdir in
1539  .)  # We are building in place.
1540    ac_srcdir=.
1541    ac_top_srcdir=$ac_top_builddir_sub
1542    ac_abs_top_srcdir=$ac_pwd ;;
1543  [\\/]* | ?:[\\/]* )  # Absolute name.
1544    ac_srcdir=$srcdir$ac_dir_suffix;
1545    ac_top_srcdir=$srcdir
1546    ac_abs_top_srcdir=$srcdir ;;
1547  *) # Relative name.
1548    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1549    ac_top_srcdir=$ac_top_build_prefix$srcdir
1550    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1551esac
1552ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1553
1554    cd "$ac_dir" || { ac_status=$?; continue; }
1555    # Check for guested configure.
1556    if test -f "$ac_srcdir/configure.gnu"; then
1557      echo &&
1558      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1559    elif test -f "$ac_srcdir/configure"; then
1560      echo &&
1561      $SHELL "$ac_srcdir/configure" --help=recursive
1562    else
1563      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1564    fi || ac_status=$?
1565    cd "$ac_pwd" || { ac_status=$?; break; }
1566  done
1567fi
1568
1569test -n "$ac_init_help" && exit $ac_status
1570if $ac_init_version; then
1571  cat <<\_ACEOF
1572open-vcdiff configure 0.7
1573generated by GNU Autoconf 2.61
1574
1575Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15762002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1577This configure script is free software; the Free Software Foundation
1578gives unlimited permission to copy, distribute and modify it.
1579_ACEOF
1580  exit
1581fi
1582cat >config.log <<_ACEOF
1583This file contains any messages produced by compilers while
1584running configure, to aid debugging if configure makes a mistake.
1585
1586It was created by open-vcdiff $as_me 0.7, which was
1587generated by GNU Autoconf 2.61.  Invocation command line was
1588
1589  $ $0 $@
1590
1591_ACEOF
1592exec 5>>config.log
1593{
1594cat <<_ASUNAME
1595## --------- ##
1596## Platform. ##
1597## --------- ##
1598
1599hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1600uname -m = `(uname -m) 2>/dev/null || echo unknown`
1601uname -r = `(uname -r) 2>/dev/null || echo unknown`
1602uname -s = `(uname -s) 2>/dev/null || echo unknown`
1603uname -v = `(uname -v) 2>/dev/null || echo unknown`
1604
1605/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1606/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1607
1608/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1609/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1610/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1611/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1612/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1613/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1614/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1615
1616_ASUNAME
1617
1618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619for as_dir in $PATH
1620do
1621  IFS=$as_save_IFS
1622  test -z "$as_dir" && as_dir=.
1623  echo "PATH: $as_dir"
1624done
1625IFS=$as_save_IFS
1626
1627} >&5
1628
1629cat >&5 <<_ACEOF
1630
1631
1632## ----------- ##
1633## Core tests. ##
1634## ----------- ##
1635
1636_ACEOF
1637
1638
1639# Keep a trace of the command line.
1640# Strip out --no-create and --no-recursion so they do not pile up.
1641# Strip out --silent because we don't want to record it for future runs.
1642# Also quote any args containing shell meta-characters.
1643# Make two passes to allow for proper duplicate-argument suppression.
1644ac_configure_args=
1645ac_configure_args0=
1646ac_configure_args1=
1647ac_must_keep_next=false
1648for ac_pass in 1 2
1649do
1650  for ac_arg
1651  do
1652    case $ac_arg in
1653    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1654    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1655    | -silent | --silent | --silen | --sile | --sil)
1656      continue ;;
1657    *\'*)
1658      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1659    esac
1660    case $ac_pass in
1661    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1662    2)
1663      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1664      if test $ac_must_keep_next = true; then
1665	ac_must_keep_next=false # Got value, back to normal.
1666      else
1667	case $ac_arg in
1668	  *=* | --config-cache | -C | -disable-* | --disable-* \
1669	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1670	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1671	  | -with-* | --with-* | -without-* | --without-* | --x)
1672	    case "$ac_configure_args0 " in
1673	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1674	    esac
1675	    ;;
1676	  -* ) ac_must_keep_next=true ;;
1677	esac
1678      fi
1679      ac_configure_args="$ac_configure_args '$ac_arg'"
1680      ;;
1681    esac
1682  done
1683done
1684$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1685$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1686
1687# When interrupted or exit'd, cleanup temporary files, and complete
1688# config.log.  We remove comments because anyway the quotes in there
1689# would cause problems or look ugly.
1690# WARNING: Use '\'' to represent an apostrophe within the trap.
1691# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1692trap 'exit_status=$?
1693  # Save into config.log some information that might help in debugging.
1694  {
1695    echo
1696
1697    cat <<\_ASBOX
1698## ---------------- ##
1699## Cache variables. ##
1700## ---------------- ##
1701_ASBOX
1702    echo
1703    # The following way of writing the cache mishandles newlines in values,
1704(
1705  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1706    eval ac_val=\$$ac_var
1707    case $ac_val in #(
1708    *${as_nl}*)
1709      case $ac_var in #(
1710      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1711echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1712      esac
1713      case $ac_var in #(
1714      _ | IFS | as_nl) ;; #(
1715      *) $as_unset $ac_var ;;
1716      esac ;;
1717    esac
1718  done
1719  (set) 2>&1 |
1720    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1721    *${as_nl}ac_space=\ *)
1722      sed -n \
1723	"s/'\''/'\''\\\\'\'''\''/g;
1724	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1725      ;; #(
1726    *)
1727      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1728      ;;
1729    esac |
1730    sort
1731)
1732    echo
1733
1734    cat <<\_ASBOX
1735## ----------------- ##
1736## Output variables. ##
1737## ----------------- ##
1738_ASBOX
1739    echo
1740    for ac_var in $ac_subst_vars
1741    do
1742      eval ac_val=\$$ac_var
1743      case $ac_val in
1744      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1745      esac
1746      echo "$ac_var='\''$ac_val'\''"
1747    done | sort
1748    echo
1749
1750    if test -n "$ac_subst_files"; then
1751      cat <<\_ASBOX
1752## ------------------- ##
1753## File substitutions. ##
1754## ------------------- ##
1755_ASBOX
1756      echo
1757      for ac_var in $ac_subst_files
1758      do
1759	eval ac_val=\$$ac_var
1760	case $ac_val in
1761	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1762	esac
1763	echo "$ac_var='\''$ac_val'\''"
1764      done | sort
1765      echo
1766    fi
1767
1768    if test -s confdefs.h; then
1769      cat <<\_ASBOX
1770## ----------- ##
1771## confdefs.h. ##
1772## ----------- ##
1773_ASBOX
1774      echo
1775      cat confdefs.h
1776      echo
1777    fi
1778    test "$ac_signal" != 0 &&
1779      echo "$as_me: caught signal $ac_signal"
1780    echo "$as_me: exit $exit_status"
1781  } >&5
1782  rm -f core *.core core.conftest.* &&
1783    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1784    exit $exit_status
1785' 0
1786for ac_signal in 1 2 13 15; do
1787  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1788done
1789ac_signal=0
1790
1791# confdefs.h avoids OS command line length limits that DEFS can exceed.
1792rm -f -r conftest* confdefs.h
1793
1794# Predefined preprocessor variables.
1795
1796cat >>confdefs.h <<_ACEOF
1797#define PACKAGE_NAME "$PACKAGE_NAME"
1798_ACEOF
1799
1800
1801cat >>confdefs.h <<_ACEOF
1802#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1803_ACEOF
1804
1805
1806cat >>confdefs.h <<_ACEOF
1807#define PACKAGE_VERSION "$PACKAGE_VERSION"
1808_ACEOF
1809
1810
1811cat >>confdefs.h <<_ACEOF
1812#define PACKAGE_STRING "$PACKAGE_STRING"
1813_ACEOF
1814
1815
1816cat >>confdefs.h <<_ACEOF
1817#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1818_ACEOF
1819
1820
1821# Let the site file select an alternate cache file if it wants to.
1822# Prefer explicitly selected file to automatically selected ones.
1823if test -n "$CONFIG_SITE"; then
1824  set x "$CONFIG_SITE"
1825elif test "x$prefix" != xNONE; then
1826  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1827else
1828  set x "$ac_default_prefix/share/config.site" \
1829	"$ac_default_prefix/etc/config.site"
1830fi
1831shift
1832for ac_site_file
1833do
1834  if test -r "$ac_site_file"; then
1835    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1836echo "$as_me: loading site script $ac_site_file" >&6;}
1837    sed 's/^/| /' "$ac_site_file" >&5
1838    . "$ac_site_file"
1839  fi
1840done
1841
1842if test -r "$cache_file"; then
1843  # Some versions of bash will fail to source /dev/null (special
1844  # files actually), so we avoid doing that.
1845  if test -f "$cache_file"; then
1846    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1847echo "$as_me: loading cache $cache_file" >&6;}
1848    case $cache_file in
1849      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1850      *)                      . "./$cache_file";;
1851    esac
1852  fi
1853else
1854  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1855echo "$as_me: creating cache $cache_file" >&6;}
1856  >$cache_file
1857fi
1858
1859# Check that the precious variables saved in the cache have kept the same
1860# value.
1861ac_cache_corrupted=false
1862for ac_var in $ac_precious_vars; do
1863  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1864  eval ac_new_set=\$ac_env_${ac_var}_set
1865  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1866  eval ac_new_val=\$ac_env_${ac_var}_value
1867  case $ac_old_set,$ac_new_set in
1868    set,)
1869      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1870echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1871      ac_cache_corrupted=: ;;
1872    ,set)
1873      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1874echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1875      ac_cache_corrupted=: ;;
1876    ,);;
1877    *)
1878      if test "x$ac_old_val" != "x$ac_new_val"; then
1879	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1880echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1881	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1882echo "$as_me:   former value:  $ac_old_val" >&2;}
1883	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1884echo "$as_me:   current value: $ac_new_val" >&2;}
1885	ac_cache_corrupted=:
1886      fi;;
1887  esac
1888  # Pass precious variables to config.status.
1889  if test "$ac_new_set" = set; then
1890    case $ac_new_val in
1891    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1892    *) ac_arg=$ac_var=$ac_new_val ;;
1893    esac
1894    case " $ac_configure_args " in
1895      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1896      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1897    esac
1898  fi
1899done
1900if $ac_cache_corrupted; then
1901  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1902echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1903  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1904echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1905   { (exit 1); exit 1; }; }
1906fi
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932ac_ext=c
1933ac_cpp='$CPP $CPPFLAGS'
1934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1936ac_compiler_gnu=$ac_cv_c_compiler_gnu
1937
1938
1939
1940am__api_version='1.10'
1941
1942ac_aux_dir=
1943for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1944  if test -f "$ac_dir/install-sh"; then
1945    ac_aux_dir=$ac_dir
1946    ac_install_sh="$ac_aux_dir/install-sh -c"
1947    break
1948  elif test -f "$ac_dir/install.sh"; then
1949    ac_aux_dir=$ac_dir
1950    ac_install_sh="$ac_aux_dir/install.sh -c"
1951    break
1952  elif test -f "$ac_dir/shtool"; then
1953    ac_aux_dir=$ac_dir
1954    ac_install_sh="$ac_aux_dir/shtool install -c"
1955    break
1956  fi
1957done
1958if test -z "$ac_aux_dir"; then
1959  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1960echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1961   { (exit 1); exit 1; }; }
1962fi
1963
1964# These three variables are undocumented and unsupported,
1965# and are intended to be withdrawn in a future Autoconf release.
1966# They can cause serious problems if a builder's source tree is in a directory
1967# whose full name contains unusual characters.
1968ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1969ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1970ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1971
1972
1973# Find a good install program.  We prefer a C program (faster),
1974# so one script is as good as another.  But avoid the broken or
1975# incompatible versions:
1976# SysV /etc/install, /usr/sbin/install
1977# SunOS /usr/etc/install
1978# IRIX /sbin/install
1979# AIX /bin/install
1980# AmigaOS /C/install, which installs bootblocks on floppy discs
1981# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1982# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1983# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1984# OS/2's system install, which has a completely different semantic
1985# ./install, which can be erroneously created by make from ./install.sh.
1986{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1987echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1988if test -z "$INSTALL"; then
1989if test "${ac_cv_path_install+set}" = set; then
1990  echo $ECHO_N "(cached) $ECHO_C" >&6
1991else
1992  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993for as_dir in $PATH
1994do
1995  IFS=$as_save_IFS
1996  test -z "$as_dir" && as_dir=.
1997  # Account for people who put trailing slashes in PATH elements.
1998case $as_dir/ in
1999  ./ | .// | /cC/* | \
2000  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2001  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2002  /usr/ucb/* ) ;;
2003  *)
2004    # OSF1 and SCO ODT 3.0 have their own names for install.
2005    # Don't use installbsd from OSF since it installs stuff as root
2006    # by default.
2007    for ac_prog in ginstall scoinst install; do
2008      for ac_exec_ext in '' $ac_executable_extensions; do
2009	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2010	  if test $ac_prog = install &&
2011	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2012	    # AIX install.  It has an incompatible calling convention.
2013	    :
2014	  elif test $ac_prog = install &&
2015	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2016	    # program-specific install script used by HP pwplus--don't use.
2017	    :
2018	  else
2019	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2020	    break 3
2021	  fi
2022	fi
2023      done
2024    done
2025    ;;
2026esac
2027done
2028IFS=$as_save_IFS
2029
2030
2031fi
2032  if test "${ac_cv_path_install+set}" = set; then
2033    INSTALL=$ac_cv_path_install
2034  else
2035    # As a last resort, use the slow shell script.  Don't cache a
2036    # value for INSTALL within a source directory, because that will
2037    # break other packages using the cache if that directory is
2038    # removed, or if the value is a relative name.
2039    INSTALL=$ac_install_sh
2040  fi
2041fi
2042{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2043echo "${ECHO_T}$INSTALL" >&6; }
2044
2045# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2046# It thinks the first close brace ends the variable substitution.
2047test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2048
2049test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2050
2051test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2052
2053{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2054echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2055# Just in case
2056sleep 1
2057echo timestamp > conftest.file
2058# Do `set' in a subshell so we don't clobber the current shell's
2059# arguments.  Must try -L first in case configure is actually a
2060# symlink; some systems play weird games with the mod time of symlinks
2061# (eg FreeBSD returns the mod time of the symlink's containing
2062# directory).
2063if (
2064   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2065   if test "$*" = "X"; then
2066      # -L didn't work.
2067      set X `ls -t $srcdir/configure conftest.file`
2068   fi
2069   rm -f conftest.file
2070   if test "$*" != "X $srcdir/configure conftest.file" \
2071      && test "$*" != "X conftest.file $srcdir/configure"; then
2072
2073      # If neither matched, then we have a broken ls.  This can happen
2074      # if, for instance, CONFIG_SHELL is bash and it inherits a
2075      # broken ls alias from the environment.  This has actually
2076      # happened.  Such a system could not be considered "sane".
2077      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2078alias in your environment" >&5
2079echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2080alias in your environment" >&2;}
2081   { (exit 1); exit 1; }; }
2082   fi
2083
2084   test "$2" = conftest.file
2085   )
2086then
2087   # Ok.
2088   :
2089else
2090   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2091Check your system clock" >&5
2092echo "$as_me: error: newly created file is older than distributed files!
2093Check your system clock" >&2;}
2094   { (exit 1); exit 1; }; }
2095fi
2096{ echo "$as_me:$LINENO: result: yes" >&5
2097echo "${ECHO_T}yes" >&6; }
2098test "$program_prefix" != NONE &&
2099  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2100# Use a double $ so make ignores it.
2101test "$program_suffix" != NONE &&
2102  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2103# Double any \ or $.  echo might interpret backslashes.
2104# By default was `s,x,x', remove it if useless.
2105cat <<\_ACEOF >conftest.sed
2106s/[\\$]/&&/g;s/;s,x,x,$//
2107_ACEOF
2108program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2109rm -f conftest.sed
2110
2111# expand $ac_aux_dir to an absolute path
2112am_aux_dir=`cd $ac_aux_dir && pwd`
2113
2114test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2115# Use eval to expand $SHELL
2116if eval "$MISSING --run true"; then
2117  am_missing_run="$MISSING --run "
2118else
2119  am_missing_run=
2120  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2121echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2122fi
2123
2124{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2125echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2126if test -z "$MKDIR_P"; then
2127  if test "${ac_cv_path_mkdir+set}" = set; then
2128  echo $ECHO_N "(cached) $ECHO_C" >&6
2129else
2130  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2131for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2132do
2133  IFS=$as_save_IFS
2134  test -z "$as_dir" && as_dir=.
2135  for ac_prog in mkdir gmkdir; do
2136	 for ac_exec_ext in '' $ac_executable_extensions; do
2137	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2138	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2139	     'mkdir (GNU coreutils) '* | \
2140	     'mkdir (coreutils) '* | \
2141	     'mkdir (fileutils) '4.1*)
2142	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2143	       break 3;;
2144	   esac
2145	 done
2146       done
2147done
2148IFS=$as_save_IFS
2149
2150fi
2151
2152  if test "${ac_cv_path_mkdir+set}" = set; then
2153    MKDIR_P="$ac_cv_path_mkdir -p"
2154  else
2155    # As a last resort, use the slow shell script.  Don't cache a
2156    # value for MKDIR_P within a source directory, because that will
2157    # break other packages using the cache if that directory is
2158    # removed, or if the value is a relative name.
2159    test -d ./--version && rmdir ./--version
2160    MKDIR_P="$ac_install_sh -d"
2161  fi
2162fi
2163{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2164echo "${ECHO_T}$MKDIR_P" >&6; }
2165
2166mkdir_p="$MKDIR_P"
2167case $mkdir_p in
2168  [\\/$]* | ?:[\\/]*) ;;
2169  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2170esac
2171
2172for ac_prog in gawk mawk nawk awk
2173do
2174  # Extract the first word of "$ac_prog", so it can be a program name with args.
2175set dummy $ac_prog; ac_word=$2
2176{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2178if test "${ac_cv_prog_AWK+set}" = set; then
2179  echo $ECHO_N "(cached) $ECHO_C" >&6
2180else
2181  if test -n "$AWK"; then
2182  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2183else
2184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185for as_dir in $PATH
2186do
2187  IFS=$as_save_IFS
2188  test -z "$as_dir" && as_dir=.
2189  for ac_exec_ext in '' $ac_executable_extensions; do
2190  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2191    ac_cv_prog_AWK="$ac_prog"
2192    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193    break 2
2194  fi
2195done
2196done
2197IFS=$as_save_IFS
2198
2199fi
2200fi
2201AWK=$ac_cv_prog_AWK
2202if test -n "$AWK"; then
2203  { echo "$as_me:$LINENO: result: $AWK" >&5
2204echo "${ECHO_T}$AWK" >&6; }
2205else
2206  { echo "$as_me:$LINENO: result: no" >&5
2207echo "${ECHO_T}no" >&6; }
2208fi
2209
2210
2211  test -n "$AWK" && break
2212done
2213
2214{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2215echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2216set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2217if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2218  echo $ECHO_N "(cached) $ECHO_C" >&6
2219else
2220  cat >conftest.make <<\_ACEOF
2221SHELL = /bin/sh
2222all:
2223	@echo '@@@%%%=$(MAKE)=@@@%%%'
2224_ACEOF
2225# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2226case `${MAKE-make} -f conftest.make 2>/dev/null` in
2227  *@@@%%%=?*=@@@%%%*)
2228    eval ac_cv_prog_make_${ac_make}_set=yes;;
2229  *)
2230    eval ac_cv_prog_make_${ac_make}_set=no;;
2231esac
2232rm -f conftest.make
2233fi
2234if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2235  { echo "$as_me:$LINENO: result: yes" >&5
2236echo "${ECHO_T}yes" >&6; }
2237  SET_MAKE=
2238else
2239  { echo "$as_me:$LINENO: result: no" >&5
2240echo "${ECHO_T}no" >&6; }
2241  SET_MAKE="MAKE=${MAKE-make}"
2242fi
2243
2244rm -rf .tst 2>/dev/null
2245mkdir .tst 2>/dev/null
2246if test -d .tst; then
2247  am__leading_dot=.
2248else
2249  am__leading_dot=_
2250fi
2251rmdir .tst 2>/dev/null
2252
2253if test "`cd $srcdir && pwd`" != "`pwd`"; then
2254  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2255  # is not polluted with repeated "-I."
2256  am__isrc=' -I$(srcdir)'
2257  # test to see if srcdir already configured
2258  if test -f $srcdir/config.status; then
2259    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2260echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2261   { (exit 1); exit 1; }; }
2262  fi
2263fi
2264
2265# test whether we have cygpath
2266if test -z "$CYGPATH_W"; then
2267  if (cygpath --version) >/dev/null 2>/dev/null; then
2268    CYGPATH_W='cygpath -w'
2269  else
2270    CYGPATH_W=echo
2271  fi
2272fi
2273
2274
2275# Define the identity of the package.
2276 PACKAGE='open-vcdiff'
2277 VERSION='0.7'
2278
2279
2280cat >>confdefs.h <<_ACEOF
2281#define PACKAGE "$PACKAGE"
2282_ACEOF
2283
2284
2285cat >>confdefs.h <<_ACEOF
2286#define VERSION "$VERSION"
2287_ACEOF
2288
2289# Some tools Automake needs.
2290
2291ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2292
2293
2294AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2295
2296
2297AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2298
2299
2300AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2301
2302
2303MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2304
2305install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2306
2307# Installed binaries are usually stripped using `strip' when the user
2308# run `make install-strip'.  However `strip' might not be the right
2309# tool to use in cross-compilation environments, therefore Automake
2310# will honor the `STRIP' environment variable to overrule this program.
2311if test "$cross_compiling" != no; then
2312  if test -n "$ac_tool_prefix"; then
2313  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2314set dummy ${ac_tool_prefix}strip; ac_word=$2
2315{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2317if test "${ac_cv_prog_STRIP+set}" = set; then
2318  echo $ECHO_N "(cached) $ECHO_C" >&6
2319else
2320  if test -n "$STRIP"; then
2321  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2322else
2323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324for as_dir in $PATH
2325do
2326  IFS=$as_save_IFS
2327  test -z "$as_dir" && as_dir=.
2328  for ac_exec_ext in '' $ac_executable_extensions; do
2329  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2330    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2331    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2332    break 2
2333  fi
2334done
2335done
2336IFS=$as_save_IFS
2337
2338fi
2339fi
2340STRIP=$ac_cv_prog_STRIP
2341if test -n "$STRIP"; then
2342  { echo "$as_me:$LINENO: result: $STRIP" >&5
2343echo "${ECHO_T}$STRIP" >&6; }
2344else
2345  { echo "$as_me:$LINENO: result: no" >&5
2346echo "${ECHO_T}no" >&6; }
2347fi
2348
2349
2350fi
2351if test -z "$ac_cv_prog_STRIP"; then
2352  ac_ct_STRIP=$STRIP
2353  # Extract the first word of "strip", so it can be a program name with args.
2354set dummy strip; ac_word=$2
2355{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2357if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2358  echo $ECHO_N "(cached) $ECHO_C" >&6
2359else
2360  if test -n "$ac_ct_STRIP"; then
2361  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2362else
2363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364for as_dir in $PATH
2365do
2366  IFS=$as_save_IFS
2367  test -z "$as_dir" && as_dir=.
2368  for ac_exec_ext in '' $ac_executable_extensions; do
2369  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2370    ac_cv_prog_ac_ct_STRIP="strip"
2371    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2372    break 2
2373  fi
2374done
2375done
2376IFS=$as_save_IFS
2377
2378fi
2379fi
2380ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2381if test -n "$ac_ct_STRIP"; then
2382  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2383echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2384else
2385  { echo "$as_me:$LINENO: result: no" >&5
2386echo "${ECHO_T}no" >&6; }
2387fi
2388
2389  if test "x$ac_ct_STRIP" = x; then
2390    STRIP=":"
2391  else
2392    case $cross_compiling:$ac_tool_warned in
2393yes:)
2394{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2395whose name does not start with the host triplet.  If you think this
2396configuration is useful to you, please write to autoconf@gnu.org." >&5
2397echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2398whose name does not start with the host triplet.  If you think this
2399configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2400ac_tool_warned=yes ;;
2401esac
2402    STRIP=$ac_ct_STRIP
2403  fi
2404else
2405  STRIP="$ac_cv_prog_STRIP"
2406fi
2407
2408fi
2409INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2410
2411# We need awk for the "check" target.  The system "awk" is bad on
2412# some platforms.
2413# Always define AMTAR for backward compatibility.
2414
2415AMTAR=${AMTAR-"${am_missing_run}tar"}
2416
2417am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2418
2419
2420
2421
2422
2423ac_config_headers="$ac_config_headers src/config.h"
2424
2425
2426# Checks for programs.
2427ac_ext=c
2428ac_cpp='$CPP $CPPFLAGS'
2429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2431ac_compiler_gnu=$ac_cv_c_compiler_gnu
2432if test -n "$ac_tool_prefix"; then
2433  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2434set dummy ${ac_tool_prefix}gcc; ac_word=$2
2435{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2437if test "${ac_cv_prog_CC+set}" = set; then
2438  echo $ECHO_N "(cached) $ECHO_C" >&6
2439else
2440  if test -n "$CC"; then
2441  ac_cv_prog_CC="$CC" # Let the user override the test.
2442else
2443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444for as_dir in $PATH
2445do
2446  IFS=$as_save_IFS
2447  test -z "$as_dir" && as_dir=.
2448  for ac_exec_ext in '' $ac_executable_extensions; do
2449  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2450    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2451    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2452    break 2
2453  fi
2454done
2455done
2456IFS=$as_save_IFS
2457
2458fi
2459fi
2460CC=$ac_cv_prog_CC
2461if test -n "$CC"; then
2462  { echo "$as_me:$LINENO: result: $CC" >&5
2463echo "${ECHO_T}$CC" >&6; }
2464else
2465  { echo "$as_me:$LINENO: result: no" >&5
2466echo "${ECHO_T}no" >&6; }
2467fi
2468
2469
2470fi
2471if test -z "$ac_cv_prog_CC"; then
2472  ac_ct_CC=$CC
2473  # Extract the first word of "gcc", so it can be a program name with args.
2474set dummy gcc; ac_word=$2
2475{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2477if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2478  echo $ECHO_N "(cached) $ECHO_C" >&6
2479else
2480  if test -n "$ac_ct_CC"; then
2481  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2482else
2483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484for as_dir in $PATH
2485do
2486  IFS=$as_save_IFS
2487  test -z "$as_dir" && as_dir=.
2488  for ac_exec_ext in '' $ac_executable_extensions; do
2489  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2490    ac_cv_prog_ac_ct_CC="gcc"
2491    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2492    break 2
2493  fi
2494done
2495done
2496IFS=$as_save_IFS
2497
2498fi
2499fi
2500ac_ct_CC=$ac_cv_prog_ac_ct_CC
2501if test -n "$ac_ct_CC"; then
2502  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2503echo "${ECHO_T}$ac_ct_CC" >&6; }
2504else
2505  { echo "$as_me:$LINENO: result: no" >&5
2506echo "${ECHO_T}no" >&6; }
2507fi
2508
2509  if test "x$ac_ct_CC" = x; then
2510    CC=""
2511  else
2512    case $cross_compiling:$ac_tool_warned in
2513yes:)
2514{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2515whose name does not start with the host triplet.  If you think this
2516configuration is useful to you, please write to autoconf@gnu.org." >&5
2517echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2518whose name does not start with the host triplet.  If you think this
2519configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2520ac_tool_warned=yes ;;
2521esac
2522    CC=$ac_ct_CC
2523  fi
2524else
2525  CC="$ac_cv_prog_CC"
2526fi
2527
2528if test -z "$CC"; then
2529          if test -n "$ac_tool_prefix"; then
2530    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2531set dummy ${ac_tool_prefix}cc; ac_word=$2
2532{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2534if test "${ac_cv_prog_CC+set}" = set; then
2535  echo $ECHO_N "(cached) $ECHO_C" >&6
2536else
2537  if test -n "$CC"; then
2538  ac_cv_prog_CC="$CC" # Let the user override the test.
2539else
2540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541for as_dir in $PATH
2542do
2543  IFS=$as_save_IFS
2544  test -z "$as_dir" && as_dir=.
2545  for ac_exec_ext in '' $ac_executable_extensions; do
2546  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2547    ac_cv_prog_CC="${ac_tool_prefix}cc"
2548    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2549    break 2
2550  fi
2551done
2552done
2553IFS=$as_save_IFS
2554
2555fi
2556fi
2557CC=$ac_cv_prog_CC
2558if test -n "$CC"; then
2559  { echo "$as_me:$LINENO: result: $CC" >&5
2560echo "${ECHO_T}$CC" >&6; }
2561else
2562  { echo "$as_me:$LINENO: result: no" >&5
2563echo "${ECHO_T}no" >&6; }
2564fi
2565
2566
2567  fi
2568fi
2569if test -z "$CC"; then
2570  # Extract the first word of "cc", so it can be a program name with args.
2571set dummy cc; ac_word=$2
2572{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2574if test "${ac_cv_prog_CC+set}" = set; then
2575  echo $ECHO_N "(cached) $ECHO_C" >&6
2576else
2577  if test -n "$CC"; then
2578  ac_cv_prog_CC="$CC" # Let the user override the test.
2579else
2580  ac_prog_rejected=no
2581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582for as_dir in $PATH
2583do
2584  IFS=$as_save_IFS
2585  test -z "$as_dir" && as_dir=.
2586  for ac_exec_ext in '' $ac_executable_extensions; do
2587  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2588    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2589       ac_prog_rejected=yes
2590       continue
2591     fi
2592    ac_cv_prog_CC="cc"
2593    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2594    break 2
2595  fi
2596done
2597done
2598IFS=$as_save_IFS
2599
2600if test $ac_prog_rejected = yes; then
2601  # We found a bogon in the path, so make sure we never use it.
2602  set dummy $ac_cv_prog_CC
2603  shift
2604  if test $# != 0; then
2605    # We chose a different compiler from the bogus one.
2606    # However, it has the same basename, so the bogon will be chosen
2607    # first if we set CC to just the basename; use the full file name.
2608    shift
2609    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2610  fi
2611fi
2612fi
2613fi
2614CC=$ac_cv_prog_CC
2615if test -n "$CC"; then
2616  { echo "$as_me:$LINENO: result: $CC" >&5
2617echo "${ECHO_T}$CC" >&6; }
2618else
2619  { echo "$as_me:$LINENO: result: no" >&5
2620echo "${ECHO_T}no" >&6; }
2621fi
2622
2623
2624fi
2625if test -z "$CC"; then
2626  if test -n "$ac_tool_prefix"; then
2627  for ac_prog in cl.exe
2628  do
2629    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2630set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2631{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2633if test "${ac_cv_prog_CC+set}" = set; then
2634  echo $ECHO_N "(cached) $ECHO_C" >&6
2635else
2636  if test -n "$CC"; then
2637  ac_cv_prog_CC="$CC" # Let the user override the test.
2638else
2639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640for as_dir in $PATH
2641do
2642  IFS=$as_save_IFS
2643  test -z "$as_dir" && as_dir=.
2644  for ac_exec_ext in '' $ac_executable_extensions; do
2645  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2646    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2647    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2648    break 2
2649  fi
2650done
2651done
2652IFS=$as_save_IFS
2653
2654fi
2655fi
2656CC=$ac_cv_prog_CC
2657if test -n "$CC"; then
2658  { echo "$as_me:$LINENO: result: $CC" >&5
2659echo "${ECHO_T}$CC" >&6; }
2660else
2661  { echo "$as_me:$LINENO: result: no" >&5
2662echo "${ECHO_T}no" >&6; }
2663fi
2664
2665
2666    test -n "$CC" && break
2667  done
2668fi
2669if test -z "$CC"; then
2670  ac_ct_CC=$CC
2671  for ac_prog in cl.exe
2672do
2673  # Extract the first word of "$ac_prog", so it can be a program name with args.
2674set dummy $ac_prog; ac_word=$2
2675{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2677if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2678  echo $ECHO_N "(cached) $ECHO_C" >&6
2679else
2680  if test -n "$ac_ct_CC"; then
2681  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2682else
2683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684for as_dir in $PATH
2685do
2686  IFS=$as_save_IFS
2687  test -z "$as_dir" && as_dir=.
2688  for ac_exec_ext in '' $ac_executable_extensions; do
2689  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2690    ac_cv_prog_ac_ct_CC="$ac_prog"
2691    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2692    break 2
2693  fi
2694done
2695done
2696IFS=$as_save_IFS
2697
2698fi
2699fi
2700ac_ct_CC=$ac_cv_prog_ac_ct_CC
2701if test -n "$ac_ct_CC"; then
2702  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2703echo "${ECHO_T}$ac_ct_CC" >&6; }
2704else
2705  { echo "$as_me:$LINENO: result: no" >&5
2706echo "${ECHO_T}no" >&6; }
2707fi
2708
2709
2710  test -n "$ac_ct_CC" && break
2711done
2712
2713  if test "x$ac_ct_CC" = x; then
2714    CC=""
2715  else
2716    case $cross_compiling:$ac_tool_warned in
2717yes:)
2718{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2719whose name does not start with the host triplet.  If you think this
2720configuration is useful to you, please write to autoconf@gnu.org." >&5
2721echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2722whose name does not start with the host triplet.  If you think this
2723configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2724ac_tool_warned=yes ;;
2725esac
2726    CC=$ac_ct_CC
2727  fi
2728fi
2729
2730fi
2731
2732
2733test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2734See \`config.log' for more details." >&5
2735echo "$as_me: error: no acceptable C compiler found in \$PATH
2736See \`config.log' for more details." >&2;}
2737   { (exit 1); exit 1; }; }
2738
2739# Provide some information about the compiler.
2740echo "$as_me:$LINENO: checking for C compiler version" >&5
2741ac_compiler=`set X $ac_compile; echo $2`
2742{ (ac_try="$ac_compiler --version >&5"
2743case "(($ac_try" in
2744  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745  *) ac_try_echo=$ac_try;;
2746esac
2747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748  (eval "$ac_compiler --version >&5") 2>&5
2749  ac_status=$?
2750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751  (exit $ac_status); }
2752{ (ac_try="$ac_compiler -v >&5"
2753case "(($ac_try" in
2754  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2755  *) ac_try_echo=$ac_try;;
2756esac
2757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2758  (eval "$ac_compiler -v >&5") 2>&5
2759  ac_status=$?
2760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761  (exit $ac_status); }
2762{ (ac_try="$ac_compiler -V >&5"
2763case "(($ac_try" in
2764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2765  *) ac_try_echo=$ac_try;;
2766esac
2767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2768  (eval "$ac_compiler -V >&5") 2>&5
2769  ac_status=$?
2770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771  (exit $ac_status); }
2772
2773cat >conftest.$ac_ext <<_ACEOF
2774/* confdefs.h.  */
2775_ACEOF
2776cat confdefs.h >>conftest.$ac_ext
2777cat >>conftest.$ac_ext <<_ACEOF
2778/* end confdefs.h.  */
2779
2780int
2781main ()
2782{
2783
2784  ;
2785  return 0;
2786}
2787_ACEOF
2788ac_clean_files_save=$ac_clean_files
2789ac_clean_files="$ac_clean_files a.out a.exe b.out"
2790# Try to create an executable without -o first, disregard a.out.
2791# It will help us diagnose broken compilers, and finding out an intuition
2792# of exeext.
2793{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2794echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2795ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2796#
2797# List of possible output files, starting from the most likely.
2798# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2799# only as a last resort.  b.out is created by i960 compilers.
2800ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2801#
2802# The IRIX 6 linker writes into existing files which may not be
2803# executable, retaining their permissions.  Remove them first so a
2804# subsequent execution test works.
2805ac_rmfiles=
2806for ac_file in $ac_files
2807do
2808  case $ac_file in
2809    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2810    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2811  esac
2812done
2813rm -f $ac_rmfiles
2814
2815if { (ac_try="$ac_link_default"
2816case "(($ac_try" in
2817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818  *) ac_try_echo=$ac_try;;
2819esac
2820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2821  (eval "$ac_link_default") 2>&5
2822  ac_status=$?
2823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824  (exit $ac_status); }; then
2825  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2826# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2827# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2828# so that the user can short-circuit this test for compilers unknown to
2829# Autoconf.
2830for ac_file in $ac_files ''
2831do
2832  test -f "$ac_file" || continue
2833  case $ac_file in
2834    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2835	;;
2836    [ab].out )
2837	# We found the default executable, but exeext='' is most
2838	# certainly right.
2839	break;;
2840    *.* )
2841        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2842	then :; else
2843	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2844	fi
2845	# We set ac_cv_exeext here because the later test for it is not
2846	# safe: cross compilers may not add the suffix if given an `-o'
2847	# argument, so we may need to know it at that point already.
2848	# Even if this section looks crufty: it has the advantage of
2849	# actually working.
2850	break;;
2851    * )
2852	break;;
2853  esac
2854done
2855test "$ac_cv_exeext" = no && ac_cv_exeext=
2856
2857else
2858  ac_file=''
2859fi
2860
2861{ echo "$as_me:$LINENO: result: $ac_file" >&5
2862echo "${ECHO_T}$ac_file" >&6; }
2863if test -z "$ac_file"; then
2864  echo "$as_me: failed program was:" >&5
2865sed 's/^/| /' conftest.$ac_ext >&5
2866
2867{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2868See \`config.log' for more details." >&5
2869echo "$as_me: error: C compiler cannot create executables
2870See \`config.log' for more details." >&2;}
2871   { (exit 77); exit 77; }; }
2872fi
2873
2874ac_exeext=$ac_cv_exeext
2875
2876# Check that the compiler produces executables we can run.  If not, either
2877# the compiler is broken, or we cross compile.
2878{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2879echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2880# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2881# If not cross compiling, check that we can run a simple program.
2882if test "$cross_compiling" != yes; then
2883  if { ac_try='./$ac_file'
2884  { (case "(($ac_try" in
2885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886  *) ac_try_echo=$ac_try;;
2887esac
2888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889  (eval "$ac_try") 2>&5
2890  ac_status=$?
2891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892  (exit $ac_status); }; }; then
2893    cross_compiling=no
2894  else
2895    if test "$cross_compiling" = maybe; then
2896	cross_compiling=yes
2897    else
2898	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2899If you meant to cross compile, use \`--host'.
2900See \`config.log' for more details." >&5
2901echo "$as_me: error: cannot run C compiled programs.
2902If you meant to cross compile, use \`--host'.
2903See \`config.log' for more details." >&2;}
2904   { (exit 1); exit 1; }; }
2905    fi
2906  fi
2907fi
2908{ echo "$as_me:$LINENO: result: yes" >&5
2909echo "${ECHO_T}yes" >&6; }
2910
2911rm -f a.out a.exe conftest$ac_cv_exeext b.out
2912ac_clean_files=$ac_clean_files_save
2913# Check that the compiler produces executables we can run.  If not, either
2914# the compiler is broken, or we cross compile.
2915{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2916echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2917{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2918echo "${ECHO_T}$cross_compiling" >&6; }
2919
2920{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2921echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2922if { (ac_try="$ac_link"
2923case "(($ac_try" in
2924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925  *) ac_try_echo=$ac_try;;
2926esac
2927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2928  (eval "$ac_link") 2>&5
2929  ac_status=$?
2930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931  (exit $ac_status); }; then
2932  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2933# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2934# work properly (i.e., refer to `conftest.exe'), while it won't with
2935# `rm'.
2936for ac_file in conftest.exe conftest conftest.*; do
2937  test -f "$ac_file" || continue
2938  case $ac_file in
2939    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2940    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2941	  break;;
2942    * ) break;;
2943  esac
2944done
2945else
2946  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2947See \`config.log' for more details." >&5
2948echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2949See \`config.log' for more details." >&2;}
2950   { (exit 1); exit 1; }; }
2951fi
2952
2953rm -f conftest$ac_cv_exeext
2954{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2955echo "${ECHO_T}$ac_cv_exeext" >&6; }
2956
2957rm -f conftest.$ac_ext
2958EXEEXT=$ac_cv_exeext
2959ac_exeext=$EXEEXT
2960{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2961echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2962if test "${ac_cv_objext+set}" = set; then
2963  echo $ECHO_N "(cached) $ECHO_C" >&6
2964else
2965  cat >conftest.$ac_ext <<_ACEOF
2966/* confdefs.h.  */
2967_ACEOF
2968cat confdefs.h >>conftest.$ac_ext
2969cat >>conftest.$ac_ext <<_ACEOF
2970/* end confdefs.h.  */
2971
2972int
2973main ()
2974{
2975
2976  ;
2977  return 0;
2978}
2979_ACEOF
2980rm -f conftest.o conftest.obj
2981if { (ac_try="$ac_compile"
2982case "(($ac_try" in
2983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984  *) ac_try_echo=$ac_try;;
2985esac
2986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987  (eval "$ac_compile") 2>&5
2988  ac_status=$?
2989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990  (exit $ac_status); }; then
2991  for ac_file in conftest.o conftest.obj conftest.*; do
2992  test -f "$ac_file" || continue;
2993  case $ac_file in
2994    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2995    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2996       break;;
2997  esac
2998done
2999else
3000  echo "$as_me: failed program was:" >&5
3001sed 's/^/| /' conftest.$ac_ext >&5
3002
3003{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3004See \`config.log' for more details." >&5
3005echo "$as_me: error: cannot compute suffix of object files: cannot compile
3006See \`config.log' for more details." >&2;}
3007   { (exit 1); exit 1; }; }
3008fi
3009
3010rm -f conftest.$ac_cv_objext conftest.$ac_ext
3011fi
3012{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3013echo "${ECHO_T}$ac_cv_objext" >&6; }
3014OBJEXT=$ac_cv_objext
3015ac_objext=$OBJEXT
3016{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3017echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3018if test "${ac_cv_c_compiler_gnu+set}" = set; then
3019  echo $ECHO_N "(cached) $ECHO_C" >&6
3020else
3021  cat >conftest.$ac_ext <<_ACEOF
3022/* confdefs.h.  */
3023_ACEOF
3024cat confdefs.h >>conftest.$ac_ext
3025cat >>conftest.$ac_ext <<_ACEOF
3026/* end confdefs.h.  */
3027
3028int
3029main ()
3030{
3031#ifndef __GNUC__
3032       choke me
3033#endif
3034
3035  ;
3036  return 0;
3037}
3038_ACEOF
3039rm -f conftest.$ac_objext
3040if { (ac_try="$ac_compile"
3041case "(($ac_try" in
3042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043  *) ac_try_echo=$ac_try;;
3044esac
3045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046  (eval "$ac_compile") 2>conftest.er1
3047  ac_status=$?
3048  grep -v '^ *+' conftest.er1 >conftest.err
3049  rm -f conftest.er1
3050  cat conftest.err >&5
3051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052  (exit $ac_status); } && {
3053	 test -z "$ac_c_werror_flag" ||
3054	 test ! -s conftest.err
3055       } && test -s conftest.$ac_objext; then
3056  ac_compiler_gnu=yes
3057else
3058  echo "$as_me: failed program was:" >&5
3059sed 's/^/| /' conftest.$ac_ext >&5
3060
3061	ac_compiler_gnu=no
3062fi
3063
3064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3065ac_cv_c_compiler_gnu=$ac_compiler_gnu
3066
3067fi
3068{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3069echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3070GCC=`test $ac_compiler_gnu = yes && echo yes`
3071ac_test_CFLAGS=${CFLAGS+set}
3072ac_save_CFLAGS=$CFLAGS
3073{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3074echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3075if test "${ac_cv_prog_cc_g+set}" = set; then
3076  echo $ECHO_N "(cached) $ECHO_C" >&6
3077else
3078  ac_save_c_werror_flag=$ac_c_werror_flag
3079   ac_c_werror_flag=yes
3080   ac_cv_prog_cc_g=no
3081   CFLAGS="-g"
3082   cat >conftest.$ac_ext <<_ACEOF
3083/* confdefs.h.  */
3084_ACEOF
3085cat confdefs.h >>conftest.$ac_ext
3086cat >>conftest.$ac_ext <<_ACEOF
3087/* end confdefs.h.  */
3088
3089int
3090main ()
3091{
3092
3093  ;
3094  return 0;
3095}
3096_ACEOF
3097rm -f conftest.$ac_objext
3098if { (ac_try="$ac_compile"
3099case "(($ac_try" in
3100  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101  *) ac_try_echo=$ac_try;;
3102esac
3103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104  (eval "$ac_compile") 2>conftest.er1
3105  ac_status=$?
3106  grep -v '^ *+' conftest.er1 >conftest.err
3107  rm -f conftest.er1
3108  cat conftest.err >&5
3109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110  (exit $ac_status); } && {
3111	 test -z "$ac_c_werror_flag" ||
3112	 test ! -s conftest.err
3113       } && test -s conftest.$ac_objext; then
3114  ac_cv_prog_cc_g=yes
3115else
3116  echo "$as_me: failed program was:" >&5
3117sed 's/^/| /' conftest.$ac_ext >&5
3118
3119	CFLAGS=""
3120      cat >conftest.$ac_ext <<_ACEOF
3121/* confdefs.h.  */
3122_ACEOF
3123cat confdefs.h >>conftest.$ac_ext
3124cat >>conftest.$ac_ext <<_ACEOF
3125/* end confdefs.h.  */
3126
3127int
3128main ()
3129{
3130
3131  ;
3132  return 0;
3133}
3134_ACEOF
3135rm -f conftest.$ac_objext
3136if { (ac_try="$ac_compile"
3137case "(($ac_try" in
3138  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139  *) ac_try_echo=$ac_try;;
3140esac
3141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142  (eval "$ac_compile") 2>conftest.er1
3143  ac_status=$?
3144  grep -v '^ *+' conftest.er1 >conftest.err
3145  rm -f conftest.er1
3146  cat conftest.err >&5
3147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148  (exit $ac_status); } && {
3149	 test -z "$ac_c_werror_flag" ||
3150	 test ! -s conftest.err
3151       } && test -s conftest.$ac_objext; then
3152  :
3153else
3154  echo "$as_me: failed program was:" >&5
3155sed 's/^/| /' conftest.$ac_ext >&5
3156
3157	ac_c_werror_flag=$ac_save_c_werror_flag
3158	 CFLAGS="-g"
3159	 cat >conftest.$ac_ext <<_ACEOF
3160/* confdefs.h.  */
3161_ACEOF
3162cat confdefs.h >>conftest.$ac_ext
3163cat >>conftest.$ac_ext <<_ACEOF
3164/* end confdefs.h.  */
3165
3166int
3167main ()
3168{
3169
3170  ;
3171  return 0;
3172}
3173_ACEOF
3174rm -f conftest.$ac_objext
3175if { (ac_try="$ac_compile"
3176case "(($ac_try" in
3177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178  *) ac_try_echo=$ac_try;;
3179esac
3180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181  (eval "$ac_compile") 2>conftest.er1
3182  ac_status=$?
3183  grep -v '^ *+' conftest.er1 >conftest.err
3184  rm -f conftest.er1
3185  cat conftest.err >&5
3186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187  (exit $ac_status); } && {
3188	 test -z "$ac_c_werror_flag" ||
3189	 test ! -s conftest.err
3190       } && test -s conftest.$ac_objext; then
3191  ac_cv_prog_cc_g=yes
3192else
3193  echo "$as_me: failed program was:" >&5
3194sed 's/^/| /' conftest.$ac_ext >&5
3195
3196
3197fi
3198
3199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200fi
3201
3202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203fi
3204
3205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206   ac_c_werror_flag=$ac_save_c_werror_flag
3207fi
3208{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3209echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3210if test "$ac_test_CFLAGS" = set; then
3211  CFLAGS=$ac_save_CFLAGS
3212elif test $ac_cv_prog_cc_g = yes; then
3213  if test "$GCC" = yes; then
3214    CFLAGS="-g -O2"
3215  else
3216    CFLAGS="-g"
3217  fi
3218else
3219  if test "$GCC" = yes; then
3220    CFLAGS="-O2"
3221  else
3222    CFLAGS=
3223  fi
3224fi
3225{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3226echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3227if test "${ac_cv_prog_cc_c89+set}" = set; then
3228  echo $ECHO_N "(cached) $ECHO_C" >&6
3229else
3230  ac_cv_prog_cc_c89=no
3231ac_save_CC=$CC
3232cat >conftest.$ac_ext <<_ACEOF
3233/* confdefs.h.  */
3234_ACEOF
3235cat confdefs.h >>conftest.$ac_ext
3236cat >>conftest.$ac_ext <<_ACEOF
3237/* end confdefs.h.  */
3238#include <stdarg.h>
3239#include <stdio.h>
3240#include <sys/types.h>
3241#include <sys/stat.h>
3242/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3243struct buf { int x; };
3244FILE * (*rcsopen) (struct buf *, struct stat *, int);
3245static char *e (p, i)
3246     char **p;
3247     int i;
3248{
3249  return p[i];
3250}
3251static char *f (char * (*g) (char **, int), char **p, ...)
3252{
3253  char *s;
3254  va_list v;
3255  va_start (v,p);
3256  s = g (p, va_arg (v,int));
3257  va_end (v);
3258  return s;
3259}
3260
3261/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3262   function prototypes and stuff, but not '\xHH' hex character constants.
3263   These don't provoke an error unfortunately, instead are silently treated
3264   as 'x'.  The following induces an error, until -std is added to get
3265   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3266   array size at least.  It's necessary to write '\x00'==0 to get something
3267   that's true only with -std.  */
3268int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3269
3270/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3271   inside strings and character constants.  */
3272#define FOO(x) 'x'
3273int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3274
3275int test (int i, double x);
3276struct s1 {int (*f) (int a);};
3277struct s2 {int (*f) (double a);};
3278int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3279int argc;
3280char **argv;
3281int
3282main ()
3283{
3284return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3285  ;
3286  return 0;
3287}
3288_ACEOF
3289for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3290	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3291do
3292  CC="$ac_save_CC $ac_arg"
3293  rm -f conftest.$ac_objext
3294if { (ac_try="$ac_compile"
3295case "(($ac_try" in
3296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297  *) ac_try_echo=$ac_try;;
3298esac
3299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300  (eval "$ac_compile") 2>conftest.er1
3301  ac_status=$?
3302  grep -v '^ *+' conftest.er1 >conftest.err
3303  rm -f conftest.er1
3304  cat conftest.err >&5
3305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306  (exit $ac_status); } && {
3307	 test -z "$ac_c_werror_flag" ||
3308	 test ! -s conftest.err
3309       } && test -s conftest.$ac_objext; then
3310  ac_cv_prog_cc_c89=$ac_arg
3311else
3312  echo "$as_me: failed program was:" >&5
3313sed 's/^/| /' conftest.$ac_ext >&5
3314
3315
3316fi
3317
3318rm -f core conftest.err conftest.$ac_objext
3319  test "x$ac_cv_prog_cc_c89" != "xno" && break
3320done
3321rm -f conftest.$ac_ext
3322CC=$ac_save_CC
3323
3324fi
3325# AC_CACHE_VAL
3326case "x$ac_cv_prog_cc_c89" in
3327  x)
3328    { echo "$as_me:$LINENO: result: none needed" >&5
3329echo "${ECHO_T}none needed" >&6; } ;;
3330  xno)
3331    { echo "$as_me:$LINENO: result: unsupported" >&5
3332echo "${ECHO_T}unsupported" >&6; } ;;
3333  *)
3334    CC="$CC $ac_cv_prog_cc_c89"
3335    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3336echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3337esac
3338
3339
3340ac_ext=c
3341ac_cpp='$CPP $CPPFLAGS'
3342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3344ac_compiler_gnu=$ac_cv_c_compiler_gnu
3345DEPDIR="${am__leading_dot}deps"
3346
3347ac_config_commands="$ac_config_commands depfiles"
3348
3349
3350am_make=${MAKE-make}
3351cat > confinc << 'END'
3352am__doit:
3353	@echo done
3354.PHONY: am__doit
3355END
3356# If we don't find an include directive, just comment out the code.
3357{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3358echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3359am__include="#"
3360am__quote=
3361_am_result=none
3362# First try GNU make style include.
3363echo "include confinc" > confmf
3364# We grep out `Entering directory' and `Leaving directory'
3365# messages which can occur if `w' ends up in MAKEFLAGS.
3366# In particular we don't look at `^make:' because GNU make might
3367# be invoked under some other name (usually "gmake"), in which
3368# case it prints its new name instead of `make'.
3369if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3370   am__include=include
3371   am__quote=
3372   _am_result=GNU
3373fi
3374# Now try BSD make style include.
3375if test "$am__include" = "#"; then
3376   echo '.include "confinc"' > confmf
3377   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3378      am__include=.include
3379      am__quote="\""
3380      _am_result=BSD
3381   fi
3382fi
3383
3384
3385{ echo "$as_me:$LINENO: result: $_am_result" >&5
3386echo "${ECHO_T}$_am_result" >&6; }
3387rm -f confinc confmf
3388
3389# Check whether --enable-dependency-tracking was given.
3390if test "${enable_dependency_tracking+set}" = set; then
3391  enableval=$enable_dependency_tracking;
3392fi
3393
3394if test "x$enable_dependency_tracking" != xno; then
3395  am_depcomp="$ac_aux_dir/depcomp"
3396  AMDEPBACKSLASH='\'
3397fi
3398 if test "x$enable_dependency_tracking" != xno; then
3399  AMDEP_TRUE=
3400  AMDEP_FALSE='#'
3401else
3402  AMDEP_TRUE='#'
3403  AMDEP_FALSE=
3404fi
3405
3406
3407
3408depcc="$CC"   am_compiler_list=
3409
3410{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3411echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3412if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3413  echo $ECHO_N "(cached) $ECHO_C" >&6
3414else
3415  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3416  # We make a subdir and do the tests there.  Otherwise we can end up
3417  # making bogus files that we don't know about and never remove.  For
3418  # instance it was reported that on HP-UX the gcc test will end up
3419  # making a dummy file named `D' -- because `-MD' means `put the output
3420  # in D'.
3421  mkdir conftest.dir
3422  # Copy depcomp to subdir because otherwise we won't find it if we're
3423  # using a relative directory.
3424  cp "$am_depcomp" conftest.dir
3425  cd conftest.dir
3426  # We will build objects and dependencies in a subdirectory because
3427  # it helps to detect inapplicable dependency modes.  For instance
3428  # both Tru64's cc and ICC support -MD to output dependencies as a
3429  # side effect of compilation, but ICC will put the dependencies in
3430  # the current directory while Tru64 will put them in the object
3431  # directory.
3432  mkdir sub
3433
3434  am_cv_CC_dependencies_compiler_type=none
3435  if test "$am_compiler_list" = ""; then
3436     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3437  fi
3438  for depmode in $am_compiler_list; do
3439    # Setup a source with many dependencies, because some compilers
3440    # like to wrap large dependency lists on column 80 (with \), and
3441    # we should not choose a depcomp mode which is confused by this.
3442    #
3443    # We need to recreate these files for each test, as the compiler may
3444    # overwrite some of them when testing with obscure command lines.
3445    # This happens at least with the AIX C compiler.
3446    : > sub/conftest.c
3447    for i in 1 2 3 4 5 6; do
3448      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3449      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3450      # Solaris 8's {/usr,}/bin/sh.
3451      touch sub/conftst$i.h
3452    done
3453    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3454
3455    case $depmode in
3456    nosideeffect)
3457      # after this tag, mechanisms are not by side-effect, so they'll
3458      # only be used when explicitly requested
3459      if test "x$enable_dependency_tracking" = xyes; then
3460	continue
3461      else
3462	break
3463      fi
3464      ;;
3465    none) break ;;
3466    esac
3467    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3468    # mode.  It turns out that the SunPro C++ compiler does not properly
3469    # handle `-M -o', and we need to detect this.
3470    if depmode=$depmode \
3471       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3472       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3473       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3474         >/dev/null 2>conftest.err &&
3475       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3476       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3477       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3478       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3479      # icc doesn't choke on unknown options, it will just issue warnings
3480      # or remarks (even with -Werror).  So we grep stderr for any message
3481      # that says an option was ignored or not supported.
3482      # When given -MP, icc 7.0 and 7.1 complain thusly:
3483      #   icc: Command line warning: ignoring option '-M'; no argument required
3484      # The diagnosis changed in icc 8.0:
3485      #   icc: Command line remark: option '-MP' not supported
3486      if (grep 'ignoring option' conftest.err ||
3487          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3488        am_cv_CC_dependencies_compiler_type=$depmode
3489        break
3490      fi
3491    fi
3492  done
3493
3494  cd ..
3495  rm -rf conftest.dir
3496else
3497  am_cv_CC_dependencies_compiler_type=none
3498fi
3499
3500fi
3501{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3502echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3503CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3504
3505 if
3506  test "x$enable_dependency_tracking" != xno \
3507  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3508  am__fastdepCC_TRUE=
3509  am__fastdepCC_FALSE='#'
3510else
3511  am__fastdepCC_TRUE='#'
3512  am__fastdepCC_FALSE=
3513fi
3514
3515
3516ac_ext=c
3517ac_cpp='$CPP $CPPFLAGS'
3518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3520ac_compiler_gnu=$ac_cv_c_compiler_gnu
3521{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3522echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3523# On Suns, sometimes $CPP names a directory.
3524if test -n "$CPP" && test -d "$CPP"; then
3525  CPP=
3526fi
3527if test -z "$CPP"; then
3528  if test "${ac_cv_prog_CPP+set}" = set; then
3529  echo $ECHO_N "(cached) $ECHO_C" >&6
3530else
3531      # Double quotes because CPP needs to be expanded
3532    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3533    do
3534      ac_preproc_ok=false
3535for ac_c_preproc_warn_flag in '' yes
3536do
3537  # Use a header file that comes with gcc, so configuring glibc
3538  # with a fresh cross-compiler works.
3539  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3540  # <limits.h> exists even on freestanding compilers.
3541  # On the NeXT, cc -E runs the code through the compiler's parser,
3542  # not just through cpp. "Syntax error" is here to catch this case.
3543  cat >conftest.$ac_ext <<_ACEOF
3544/* confdefs.h.  */
3545_ACEOF
3546cat confdefs.h >>conftest.$ac_ext
3547cat >>conftest.$ac_ext <<_ACEOF
3548/* end confdefs.h.  */
3549#ifdef __STDC__
3550# include <limits.h>
3551#else
3552# include <assert.h>
3553#endif
3554		     Syntax error
3555_ACEOF
3556if { (ac_try="$ac_cpp conftest.$ac_ext"
3557case "(($ac_try" in
3558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559  *) ac_try_echo=$ac_try;;
3560esac
3561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3563  ac_status=$?
3564  grep -v '^ *+' conftest.er1 >conftest.err
3565  rm -f conftest.er1
3566  cat conftest.err >&5
3567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568  (exit $ac_status); } >/dev/null && {
3569	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3570	 test ! -s conftest.err
3571       }; then
3572  :
3573else
3574  echo "$as_me: failed program was:" >&5
3575sed 's/^/| /' conftest.$ac_ext >&5
3576
3577  # Broken: fails on valid input.
3578continue
3579fi
3580
3581rm -f conftest.err conftest.$ac_ext
3582
3583  # OK, works on sane cases.  Now check whether nonexistent headers
3584  # can be detected and how.
3585  cat >conftest.$ac_ext <<_ACEOF
3586/* confdefs.h.  */
3587_ACEOF
3588cat confdefs.h >>conftest.$ac_ext
3589cat >>conftest.$ac_ext <<_ACEOF
3590/* end confdefs.h.  */
3591#include <ac_nonexistent.h>
3592_ACEOF
3593if { (ac_try="$ac_cpp conftest.$ac_ext"
3594case "(($ac_try" in
3595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596  *) ac_try_echo=$ac_try;;
3597esac
3598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3599  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3600  ac_status=$?
3601  grep -v '^ *+' conftest.er1 >conftest.err
3602  rm -f conftest.er1
3603  cat conftest.err >&5
3604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605  (exit $ac_status); } >/dev/null && {
3606	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3607	 test ! -s conftest.err
3608       }; then
3609  # Broken: success on invalid input.
3610continue
3611else
3612  echo "$as_me: failed program was:" >&5
3613sed 's/^/| /' conftest.$ac_ext >&5
3614
3615  # Passes both tests.
3616ac_preproc_ok=:
3617break
3618fi
3619
3620rm -f conftest.err conftest.$ac_ext
3621
3622done
3623# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3624rm -f conftest.err conftest.$ac_ext
3625if $ac_preproc_ok; then
3626  break
3627fi
3628
3629    done
3630    ac_cv_prog_CPP=$CPP
3631
3632fi
3633  CPP=$ac_cv_prog_CPP
3634else
3635  ac_cv_prog_CPP=$CPP
3636fi
3637{ echo "$as_me:$LINENO: result: $CPP" >&5
3638echo "${ECHO_T}$CPP" >&6; }
3639ac_preproc_ok=false
3640for ac_c_preproc_warn_flag in '' yes
3641do
3642  # Use a header file that comes with gcc, so configuring glibc
3643  # with a fresh cross-compiler works.
3644  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3645  # <limits.h> exists even on freestanding compilers.
3646  # On the NeXT, cc -E runs the code through the compiler's parser,
3647  # not just through cpp. "Syntax error" is here to catch this case.
3648  cat >conftest.$ac_ext <<_ACEOF
3649/* confdefs.h.  */
3650_ACEOF
3651cat confdefs.h >>conftest.$ac_ext
3652cat >>conftest.$ac_ext <<_ACEOF
3653/* end confdefs.h.  */
3654#ifdef __STDC__
3655# include <limits.h>
3656#else
3657# include <assert.h>
3658#endif
3659		     Syntax error
3660_ACEOF
3661if { (ac_try="$ac_cpp conftest.$ac_ext"
3662case "(($ac_try" in
3663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664  *) ac_try_echo=$ac_try;;
3665esac
3666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3667  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3668  ac_status=$?
3669  grep -v '^ *+' conftest.er1 >conftest.err
3670  rm -f conftest.er1
3671  cat conftest.err >&5
3672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673  (exit $ac_status); } >/dev/null && {
3674	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3675	 test ! -s conftest.err
3676       }; then
3677  :
3678else
3679  echo "$as_me: failed program was:" >&5
3680sed 's/^/| /' conftest.$ac_ext >&5
3681
3682  # Broken: fails on valid input.
3683continue
3684fi
3685
3686rm -f conftest.err conftest.$ac_ext
3687
3688  # OK, works on sane cases.  Now check whether nonexistent headers
3689  # can be detected and how.
3690  cat >conftest.$ac_ext <<_ACEOF
3691/* confdefs.h.  */
3692_ACEOF
3693cat confdefs.h >>conftest.$ac_ext
3694cat >>conftest.$ac_ext <<_ACEOF
3695/* end confdefs.h.  */
3696#include <ac_nonexistent.h>
3697_ACEOF
3698if { (ac_try="$ac_cpp conftest.$ac_ext"
3699case "(($ac_try" in
3700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701  *) ac_try_echo=$ac_try;;
3702esac
3703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3704  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3705  ac_status=$?
3706  grep -v '^ *+' conftest.er1 >conftest.err
3707  rm -f conftest.er1
3708  cat conftest.err >&5
3709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710  (exit $ac_status); } >/dev/null && {
3711	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3712	 test ! -s conftest.err
3713       }; then
3714  # Broken: success on invalid input.
3715continue
3716else
3717  echo "$as_me: failed program was:" >&5
3718sed 's/^/| /' conftest.$ac_ext >&5
3719
3720  # Passes both tests.
3721ac_preproc_ok=:
3722break
3723fi
3724
3725rm -f conftest.err conftest.$ac_ext
3726
3727done
3728# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3729rm -f conftest.err conftest.$ac_ext
3730if $ac_preproc_ok; then
3731  :
3732else
3733  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3734See \`config.log' for more details." >&5
3735echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3736See \`config.log' for more details." >&2;}
3737   { (exit 1); exit 1; }; }
3738fi
3739
3740ac_ext=c
3741ac_cpp='$CPP $CPPFLAGS'
3742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3744ac_compiler_gnu=$ac_cv_c_compiler_gnu
3745
3746ac_ext=cpp
3747ac_cpp='$CXXCPP $CPPFLAGS'
3748ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3749ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3750ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3751if test -z "$CXX"; then
3752  if test -n "$CCC"; then
3753    CXX=$CCC
3754  else
3755    if test -n "$ac_tool_prefix"; then
3756  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3757  do
3758    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3759set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3760{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3762if test "${ac_cv_prog_CXX+set}" = set; then
3763  echo $ECHO_N "(cached) $ECHO_C" >&6
3764else
3765  if test -n "$CXX"; then
3766  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3767else
3768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769for as_dir in $PATH
3770do
3771  IFS=$as_save_IFS
3772  test -z "$as_dir" && as_dir=.
3773  for ac_exec_ext in '' $ac_executable_extensions; do
3774  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3775    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3776    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3777    break 2
3778  fi
3779done
3780done
3781IFS=$as_save_IFS
3782
3783fi
3784fi
3785CXX=$ac_cv_prog_CXX
3786if test -n "$CXX"; then
3787  { echo "$as_me:$LINENO: result: $CXX" >&5
3788echo "${ECHO_T}$CXX" >&6; }
3789else
3790  { echo "$as_me:$LINENO: result: no" >&5
3791echo "${ECHO_T}no" >&6; }
3792fi
3793
3794
3795    test -n "$CXX" && break
3796  done
3797fi
3798if test -z "$CXX"; then
3799  ac_ct_CXX=$CXX
3800  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3801do
3802  # Extract the first word of "$ac_prog", so it can be a program name with args.
3803set dummy $ac_prog; ac_word=$2
3804{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3806if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3807  echo $ECHO_N "(cached) $ECHO_C" >&6
3808else
3809  if test -n "$ac_ct_CXX"; then
3810  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3811else
3812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813for as_dir in $PATH
3814do
3815  IFS=$as_save_IFS
3816  test -z "$as_dir" && as_dir=.
3817  for ac_exec_ext in '' $ac_executable_extensions; do
3818  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3819    ac_cv_prog_ac_ct_CXX="$ac_prog"
3820    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3821    break 2
3822  fi
3823done
3824done
3825IFS=$as_save_IFS
3826
3827fi
3828fi
3829ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3830if test -n "$ac_ct_CXX"; then
3831  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3832echo "${ECHO_T}$ac_ct_CXX" >&6; }
3833else
3834  { echo "$as_me:$LINENO: result: no" >&5
3835echo "${ECHO_T}no" >&6; }
3836fi
3837
3838
3839  test -n "$ac_ct_CXX" && break
3840done
3841
3842  if test "x$ac_ct_CXX" = x; then
3843    CXX="g++"
3844  else
3845    case $cross_compiling:$ac_tool_warned in
3846yes:)
3847{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3848whose name does not start with the host triplet.  If you think this
3849configuration is useful to you, please write to autoconf@gnu.org." >&5
3850echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3851whose name does not start with the host triplet.  If you think this
3852configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3853ac_tool_warned=yes ;;
3854esac
3855    CXX=$ac_ct_CXX
3856  fi
3857fi
3858
3859  fi
3860fi
3861# Provide some information about the compiler.
3862echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3863ac_compiler=`set X $ac_compile; echo $2`
3864{ (ac_try="$ac_compiler --version >&5"
3865case "(($ac_try" in
3866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3867  *) ac_try_echo=$ac_try;;
3868esac
3869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3870  (eval "$ac_compiler --version >&5") 2>&5
3871  ac_status=$?
3872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873  (exit $ac_status); }
3874{ (ac_try="$ac_compiler -v >&5"
3875case "(($ac_try" in
3876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877  *) ac_try_echo=$ac_try;;
3878esac
3879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3880  (eval "$ac_compiler -v >&5") 2>&5
3881  ac_status=$?
3882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883  (exit $ac_status); }
3884{ (ac_try="$ac_compiler -V >&5"
3885case "(($ac_try" in
3886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887  *) ac_try_echo=$ac_try;;
3888esac
3889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3890  (eval "$ac_compiler -V >&5") 2>&5
3891  ac_status=$?
3892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893  (exit $ac_status); }
3894
3895{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3896echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3897if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3898  echo $ECHO_N "(cached) $ECHO_C" >&6
3899else
3900  cat >conftest.$ac_ext <<_ACEOF
3901/* confdefs.h.  */
3902_ACEOF
3903cat confdefs.h >>conftest.$ac_ext
3904cat >>conftest.$ac_ext <<_ACEOF
3905/* end confdefs.h.  */
3906
3907int
3908main ()
3909{
3910#ifndef __GNUC__
3911       choke me
3912#endif
3913
3914  ;
3915  return 0;
3916}
3917_ACEOF
3918rm -f conftest.$ac_objext
3919if { (ac_try="$ac_compile"
3920case "(($ac_try" in
3921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922  *) ac_try_echo=$ac_try;;
3923esac
3924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3925  (eval "$ac_compile") 2>conftest.er1
3926  ac_status=$?
3927  grep -v '^ *+' conftest.er1 >conftest.err
3928  rm -f conftest.er1
3929  cat conftest.err >&5
3930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931  (exit $ac_status); } && {
3932	 test -z "$ac_cxx_werror_flag" ||
3933	 test ! -s conftest.err
3934       } && test -s conftest.$ac_objext; then
3935  ac_compiler_gnu=yes
3936else
3937  echo "$as_me: failed program was:" >&5
3938sed 's/^/| /' conftest.$ac_ext >&5
3939
3940	ac_compiler_gnu=no
3941fi
3942
3943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3944ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3945
3946fi
3947{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3948echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3949GXX=`test $ac_compiler_gnu = yes && echo yes`
3950ac_test_CXXFLAGS=${CXXFLAGS+set}
3951ac_save_CXXFLAGS=$CXXFLAGS
3952{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3953echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3954if test "${ac_cv_prog_cxx_g+set}" = set; then
3955  echo $ECHO_N "(cached) $ECHO_C" >&6
3956else
3957  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3958   ac_cxx_werror_flag=yes
3959   ac_cv_prog_cxx_g=no
3960   CXXFLAGS="-g"
3961   cat >conftest.$ac_ext <<_ACEOF
3962/* confdefs.h.  */
3963_ACEOF
3964cat confdefs.h >>conftest.$ac_ext
3965cat >>conftest.$ac_ext <<_ACEOF
3966/* end confdefs.h.  */
3967
3968int
3969main ()
3970{
3971
3972  ;
3973  return 0;
3974}
3975_ACEOF
3976rm -f conftest.$ac_objext
3977if { (ac_try="$ac_compile"
3978case "(($ac_try" in
3979  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3980  *) ac_try_echo=$ac_try;;
3981esac
3982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3983  (eval "$ac_compile") 2>conftest.er1
3984  ac_status=$?
3985  grep -v '^ *+' conftest.er1 >conftest.err
3986  rm -f conftest.er1
3987  cat conftest.err >&5
3988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989  (exit $ac_status); } && {
3990	 test -z "$ac_cxx_werror_flag" ||
3991	 test ! -s conftest.err
3992       } && test -s conftest.$ac_objext; then
3993  ac_cv_prog_cxx_g=yes
3994else
3995  echo "$as_me: failed program was:" >&5
3996sed 's/^/| /' conftest.$ac_ext >&5
3997
3998	CXXFLAGS=""
3999      cat >conftest.$ac_ext <<_ACEOF
4000/* confdefs.h.  */
4001_ACEOF
4002cat confdefs.h >>conftest.$ac_ext
4003cat >>conftest.$ac_ext <<_ACEOF
4004/* end confdefs.h.  */
4005
4006int
4007main ()
4008{
4009
4010  ;
4011  return 0;
4012}
4013_ACEOF
4014rm -f conftest.$ac_objext
4015if { (ac_try="$ac_compile"
4016case "(($ac_try" in
4017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018  *) ac_try_echo=$ac_try;;
4019esac
4020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4021  (eval "$ac_compile") 2>conftest.er1
4022  ac_status=$?
4023  grep -v '^ *+' conftest.er1 >conftest.err
4024  rm -f conftest.er1
4025  cat conftest.err >&5
4026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027  (exit $ac_status); } && {
4028	 test -z "$ac_cxx_werror_flag" ||
4029	 test ! -s conftest.err
4030       } && test -s conftest.$ac_objext; then
4031  :
4032else
4033  echo "$as_me: failed program was:" >&5
4034sed 's/^/| /' conftest.$ac_ext >&5
4035
4036	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4037	 CXXFLAGS="-g"
4038	 cat >conftest.$ac_ext <<_ACEOF
4039/* confdefs.h.  */
4040_ACEOF
4041cat confdefs.h >>conftest.$ac_ext
4042cat >>conftest.$ac_ext <<_ACEOF
4043/* end confdefs.h.  */
4044
4045int
4046main ()
4047{
4048
4049  ;
4050  return 0;
4051}
4052_ACEOF
4053rm -f conftest.$ac_objext
4054if { (ac_try="$ac_compile"
4055case "(($ac_try" in
4056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057  *) ac_try_echo=$ac_try;;
4058esac
4059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4060  (eval "$ac_compile") 2>conftest.er1
4061  ac_status=$?
4062  grep -v '^ *+' conftest.er1 >conftest.err
4063  rm -f conftest.er1
4064  cat conftest.err >&5
4065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066  (exit $ac_status); } && {
4067	 test -z "$ac_cxx_werror_flag" ||
4068	 test ! -s conftest.err
4069       } && test -s conftest.$ac_objext; then
4070  ac_cv_prog_cxx_g=yes
4071else
4072  echo "$as_me: failed program was:" >&5
4073sed 's/^/| /' conftest.$ac_ext >&5
4074
4075
4076fi
4077
4078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4079fi
4080
4081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4082fi
4083
4084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4085   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4086fi
4087{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4088echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4089if test "$ac_test_CXXFLAGS" = set; then
4090  CXXFLAGS=$ac_save_CXXFLAGS
4091elif test $ac_cv_prog_cxx_g = yes; then
4092  if test "$GXX" = yes; then
4093    CXXFLAGS="-g -O2"
4094  else
4095    CXXFLAGS="-g"
4096  fi
4097else
4098  if test "$GXX" = yes; then
4099    CXXFLAGS="-O2"
4100  else
4101    CXXFLAGS=
4102  fi
4103fi
4104ac_ext=c
4105ac_cpp='$CPP $CPPFLAGS'
4106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4108ac_compiler_gnu=$ac_cv_c_compiler_gnu
4109
4110depcc="$CXX"  am_compiler_list=
4111
4112{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4113echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4114if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4115  echo $ECHO_N "(cached) $ECHO_C" >&6
4116else
4117  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4118  # We make a subdir and do the tests there.  Otherwise we can end up
4119  # making bogus files that we don't know about and never remove.  For
4120  # instance it was reported that on HP-UX the gcc test will end up
4121  # making a dummy file named `D' -- because `-MD' means `put the output
4122  # in D'.
4123  mkdir conftest.dir
4124  # Copy depcomp to subdir because otherwise we won't find it if we're
4125  # using a relative directory.
4126  cp "$am_depcomp" conftest.dir
4127  cd conftest.dir
4128  # We will build objects and dependencies in a subdirectory because
4129  # it helps to detect inapplicable dependency modes.  For instance
4130  # both Tru64's cc and ICC support -MD to output dependencies as a
4131  # side effect of compilation, but ICC will put the dependencies in
4132  # the current directory while Tru64 will put them in the object
4133  # directory.
4134  mkdir sub
4135
4136  am_cv_CXX_dependencies_compiler_type=none
4137  if test "$am_compiler_list" = ""; then
4138     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4139  fi
4140  for depmode in $am_compiler_list; do
4141    # Setup a source with many dependencies, because some compilers
4142    # like to wrap large dependency lists on column 80 (with \), and
4143    # we should not choose a depcomp mode which is confused by this.
4144    #
4145    # We need to recreate these files for each test, as the compiler may
4146    # overwrite some of them when testing with obscure command lines.
4147    # This happens at least with the AIX C compiler.
4148    : > sub/conftest.c
4149    for i in 1 2 3 4 5 6; do
4150      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4151      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4152      # Solaris 8's {/usr,}/bin/sh.
4153      touch sub/conftst$i.h
4154    done
4155    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4156
4157    case $depmode in
4158    nosideeffect)
4159      # after this tag, mechanisms are not by side-effect, so they'll
4160      # only be used when explicitly requested
4161      if test "x$enable_dependency_tracking" = xyes; then
4162	continue
4163      else
4164	break
4165      fi
4166      ;;
4167    none) break ;;
4168    esac
4169    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4170    # mode.  It turns out that the SunPro C++ compiler does not properly
4171    # handle `-M -o', and we need to detect this.
4172    if depmode=$depmode \
4173       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4174       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4175       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4176         >/dev/null 2>conftest.err &&
4177       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4178       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4179       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4180       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4181      # icc doesn't choke on unknown options, it will just issue warnings
4182      # or remarks (even with -Werror).  So we grep stderr for any message
4183      # that says an option was ignored or not supported.
4184      # When given -MP, icc 7.0 and 7.1 complain thusly:
4185      #   icc: Command line warning: ignoring option '-M'; no argument required
4186      # The diagnosis changed in icc 8.0:
4187      #   icc: Command line remark: option '-MP' not supported
4188      if (grep 'ignoring option' conftest.err ||
4189          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4190        am_cv_CXX_dependencies_compiler_type=$depmode
4191        break
4192      fi
4193    fi
4194  done
4195
4196  cd ..
4197  rm -rf conftest.dir
4198else
4199  am_cv_CXX_dependencies_compiler_type=none
4200fi
4201
4202fi
4203{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4204echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4205CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4206
4207 if
4208  test "x$enable_dependency_tracking" != xno \
4209  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4210  am__fastdepCXX_TRUE=
4211  am__fastdepCXX_FALSE='#'
4212else
4213  am__fastdepCXX_TRUE='#'
4214  am__fastdepCXX_FALSE=
4215fi
4216
4217
4218 if test "$GCC" = yes; then
4219  GCC_TRUE=
4220  GCC_FALSE='#'
4221else
4222  GCC_TRUE='#'
4223  GCC_FALSE=
4224fi
4225   # let the Makefile know if we're gcc
4226# Make sure we can run config.sub.
4227$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4228  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4229echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4230   { (exit 1); exit 1; }; }
4231
4232{ echo "$as_me:$LINENO: checking build system type" >&5
4233echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4234if test "${ac_cv_build+set}" = set; then
4235  echo $ECHO_N "(cached) $ECHO_C" >&6
4236else
4237  ac_build_alias=$build_alias
4238test "x$ac_build_alias" = x &&
4239  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4240test "x$ac_build_alias" = x &&
4241  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4242echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4243   { (exit 1); exit 1; }; }
4244ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4245  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4246echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4247   { (exit 1); exit 1; }; }
4248
4249fi
4250{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4251echo "${ECHO_T}$ac_cv_build" >&6; }
4252case $ac_cv_build in
4253*-*-*) ;;
4254*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4255echo "$as_me: error: invalid value of canonical build" >&2;}
4256   { (exit 1); exit 1; }; };;
4257esac
4258build=$ac_cv_build
4259ac_save_IFS=$IFS; IFS='-'
4260set x $ac_cv_build
4261shift
4262build_cpu=$1
4263build_vendor=$2
4264shift; shift
4265# Remember, the first character of IFS is used to create $*,
4266# except with old shells:
4267build_os=$*
4268IFS=$ac_save_IFS
4269case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4270
4271
4272{ echo "$as_me:$LINENO: checking host system type" >&5
4273echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4274if test "${ac_cv_host+set}" = set; then
4275  echo $ECHO_N "(cached) $ECHO_C" >&6
4276else
4277  if test "x$host_alias" = x; then
4278  ac_cv_host=$ac_cv_build
4279else
4280  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4281    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4282echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4283   { (exit 1); exit 1; }; }
4284fi
4285
4286fi
4287{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4288echo "${ECHO_T}$ac_cv_host" >&6; }
4289case $ac_cv_host in
4290*-*-*) ;;
4291*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4292echo "$as_me: error: invalid value of canonical host" >&2;}
4293   { (exit 1); exit 1; }; };;
4294esac
4295host=$ac_cv_host
4296ac_save_IFS=$IFS; IFS='-'
4297set x $ac_cv_host
4298shift
4299host_cpu=$1
4300host_vendor=$2
4301shift; shift
4302# Remember, the first character of IFS is used to create $*,
4303# except with old shells:
4304host_os=$*
4305IFS=$ac_save_IFS
4306case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4307
4308
4309
4310# Issue #21:  Fail to test on MinGW 5.1.4
4311# Disabling fast install keeps libtool from creating wrapper scripts around
4312# the executables it builds.  Such scripts have caused failures on MinGW.
4313# Using this option means an extra link step is executed during "make install".
4314# Check whether --enable-fast-install was given.
4315if test "${enable_fast_install+set}" = set; then
4316  enableval=$enable_fast_install; p=${PACKAGE-default}
4317    case $enableval in
4318    yes) enable_fast_install=yes ;;
4319    no) enable_fast_install=no ;;
4320    *)
4321      enable_fast_install=no
4322      # Look at the argument we got.  We use all the common list separators.
4323      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4324      for pkg in $enableval; do
4325	IFS="$lt_save_ifs"
4326	if test "X$pkg" = "X$p"; then
4327	  enable_fast_install=yes
4328	fi
4329      done
4330      IFS="$lt_save_ifs"
4331      ;;
4332    esac
4333else
4334  enable_fast_install=no
4335fi
4336
4337
4338
4339
4340# Check whether --enable-shared was given.
4341if test "${enable_shared+set}" = set; then
4342  enableval=$enable_shared; p=${PACKAGE-default}
4343    case $enableval in
4344    yes) enable_shared=yes ;;
4345    no) enable_shared=no ;;
4346    *)
4347      enable_shared=no
4348      # Look at the argument we got.  We use all the common list separators.
4349      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4350      for pkg in $enableval; do
4351	IFS="$lt_save_ifs"
4352	if test "X$pkg" = "X$p"; then
4353	  enable_shared=yes
4354	fi
4355      done
4356      IFS="$lt_save_ifs"
4357      ;;
4358    esac
4359else
4360  enable_shared=yes
4361fi
4362
4363
4364# Check whether --enable-static was given.
4365if test "${enable_static+set}" = set; then
4366  enableval=$enable_static; p=${PACKAGE-default}
4367    case $enableval in
4368    yes) enable_static=yes ;;
4369    no) enable_static=no ;;
4370    *)
4371     enable_static=no
4372      # Look at the argument we got.  We use all the common list separators.
4373      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4374      for pkg in $enableval; do
4375	IFS="$lt_save_ifs"
4376	if test "X$pkg" = "X$p"; then
4377	  enable_static=yes
4378	fi
4379      done
4380      IFS="$lt_save_ifs"
4381      ;;
4382    esac
4383else
4384  enable_static=yes
4385fi
4386
4387
4388{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4389echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4390if test "${lt_cv_path_SED+set}" = set; then
4391  echo $ECHO_N "(cached) $ECHO_C" >&6
4392else
4393  # Loop through the user's path and test for sed and gsed.
4394# Then use that list of sed's as ones to test for truncation.
4395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396for as_dir in $PATH
4397do
4398  IFS=$as_save_IFS
4399  test -z "$as_dir" && as_dir=.
4400  for lt_ac_prog in sed gsed; do
4401    for ac_exec_ext in '' $ac_executable_extensions; do
4402      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4403        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4404      fi
4405    done
4406  done
4407done
4408IFS=$as_save_IFS
4409lt_ac_max=0
4410lt_ac_count=0
4411# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4412# along with /bin/sed that truncates output.
4413for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4414  test ! -f $lt_ac_sed && continue
4415  cat /dev/null > conftest.in
4416  lt_ac_count=0
4417  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4418  # Check for GNU sed and select it if it is found.
4419  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4420    lt_cv_path_SED=$lt_ac_sed
4421    break
4422  fi
4423  while true; do
4424    cat conftest.in conftest.in >conftest.tmp
4425    mv conftest.tmp conftest.in
4426    cp conftest.in conftest.nl
4427    echo >>conftest.nl
4428    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4429    cmp -s conftest.out conftest.nl || break
4430    # 10000 chars as input seems more than enough
4431    test $lt_ac_count -gt 10 && break
4432    lt_ac_count=`expr $lt_ac_count + 1`
4433    if test $lt_ac_count -gt $lt_ac_max; then
4434      lt_ac_max=$lt_ac_count
4435      lt_cv_path_SED=$lt_ac_sed
4436    fi
4437  done
4438done
4439
4440fi
4441
4442SED=$lt_cv_path_SED
4443
4444{ echo "$as_me:$LINENO: result: $SED" >&5
4445echo "${ECHO_T}$SED" >&6; }
4446
4447{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4448echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4449if test "${ac_cv_path_GREP+set}" = set; then
4450  echo $ECHO_N "(cached) $ECHO_C" >&6
4451else
4452  # Extract the first word of "grep ggrep" to use in msg output
4453if test -z "$GREP"; then
4454set dummy grep ggrep; ac_prog_name=$2
4455if test "${ac_cv_path_GREP+set}" = set; then
4456  echo $ECHO_N "(cached) $ECHO_C" >&6
4457else
4458  ac_path_GREP_found=false
4459# Loop through the user's path and test for each of PROGNAME-LIST
4460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4462do
4463  IFS=$as_save_IFS
4464  test -z "$as_dir" && as_dir=.
4465  for ac_prog in grep ggrep; do
4466  for ac_exec_ext in '' $ac_executable_extensions; do
4467    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4468    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4469    # Check for GNU ac_path_GREP and select it if it is found.
4470  # Check for GNU $ac_path_GREP
4471case `"$ac_path_GREP" --version 2>&1` in
4472*GNU*)
4473  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4474*)
4475  ac_count=0
4476  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4477  while :
4478  do
4479    cat "conftest.in" "conftest.in" >"conftest.tmp"
4480    mv "conftest.tmp" "conftest.in"
4481    cp "conftest.in" "conftest.nl"
4482    echo 'GREP' >> "conftest.nl"
4483    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4484    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4485    ac_count=`expr $ac_count + 1`
4486    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4487      # Best one so far, save it but keep looking for a better one
4488      ac_cv_path_GREP="$ac_path_GREP"
4489      ac_path_GREP_max=$ac_count
4490    fi
4491    # 10*(2^10) chars as input seems more than enough
4492    test $ac_count -gt 10 && break
4493  done
4494  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4495esac
4496
4497
4498    $ac_path_GREP_found && break 3
4499  done
4500done
4501
4502done
4503IFS=$as_save_IFS
4504
4505
4506fi
4507
4508GREP="$ac_cv_path_GREP"
4509if test -z "$GREP"; then
4510  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4511echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4512   { (exit 1); exit 1; }; }
4513fi
4514
4515else
4516  ac_cv_path_GREP=$GREP
4517fi
4518
4519
4520fi
4521{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4522echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4523 GREP="$ac_cv_path_GREP"
4524
4525
4526{ echo "$as_me:$LINENO: checking for egrep" >&5
4527echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4528if test "${ac_cv_path_EGREP+set}" = set; then
4529  echo $ECHO_N "(cached) $ECHO_C" >&6
4530else
4531  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4532   then ac_cv_path_EGREP="$GREP -E"
4533   else
4534     # Extract the first word of "egrep" to use in msg output
4535if test -z "$EGREP"; then
4536set dummy egrep; ac_prog_name=$2
4537if test "${ac_cv_path_EGREP+set}" = set; then
4538  echo $ECHO_N "(cached) $ECHO_C" >&6
4539else
4540  ac_path_EGREP_found=false
4541# Loop through the user's path and test for each of PROGNAME-LIST
4542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4544do
4545  IFS=$as_save_IFS
4546  test -z "$as_dir" && as_dir=.
4547  for ac_prog in egrep; do
4548  for ac_exec_ext in '' $ac_executable_extensions; do
4549    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4550    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4551    # Check for GNU ac_path_EGREP and select it if it is found.
4552  # Check for GNU $ac_path_EGREP
4553case `"$ac_path_EGREP" --version 2>&1` in
4554*GNU*)
4555  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4556*)
4557  ac_count=0
4558  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4559  while :
4560  do
4561    cat "conftest.in" "conftest.in" >"conftest.tmp"
4562    mv "conftest.tmp" "conftest.in"
4563    cp "conftest.in" "conftest.nl"
4564    echo 'EGREP' >> "conftest.nl"
4565    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4566    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4567    ac_count=`expr $ac_count + 1`
4568    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4569      # Best one so far, save it but keep looking for a better one
4570      ac_cv_path_EGREP="$ac_path_EGREP"
4571      ac_path_EGREP_max=$ac_count
4572    fi
4573    # 10*(2^10) chars as input seems more than enough
4574    test $ac_count -gt 10 && break
4575  done
4576  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4577esac
4578
4579
4580    $ac_path_EGREP_found && break 3
4581  done
4582done
4583
4584done
4585IFS=$as_save_IFS
4586
4587
4588fi
4589
4590EGREP="$ac_cv_path_EGREP"
4591if test -z "$EGREP"; then
4592  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4593echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4594   { (exit 1); exit 1; }; }
4595fi
4596
4597else
4598  ac_cv_path_EGREP=$EGREP
4599fi
4600
4601
4602   fi
4603fi
4604{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4605echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4606 EGREP="$ac_cv_path_EGREP"
4607
4608
4609
4610# Check whether --with-gnu-ld was given.
4611if test "${with_gnu_ld+set}" = set; then
4612  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4613else
4614  with_gnu_ld=no
4615fi
4616
4617ac_prog=ld
4618if test "$GCC" = yes; then
4619  # Check if gcc -print-prog-name=ld gives a path.
4620  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4621echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4622  case $host in
4623  *-*-mingw*)
4624    # gcc leaves a trailing carriage return which upsets mingw
4625    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4626  *)
4627    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4628  esac
4629  case $ac_prog in
4630    # Accept absolute paths.
4631    [\\/]* | ?:[\\/]*)
4632      re_direlt='/[^/][^/]*/\.\./'
4633      # Canonicalize the pathname of ld
4634      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4635      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4636	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4637      done
4638      test -z "$LD" && LD="$ac_prog"
4639      ;;
4640  "")
4641    # If it fails, then pretend we aren't using GCC.
4642    ac_prog=ld
4643    ;;
4644  *)
4645    # If it is relative, then search for the first ld in PATH.
4646    with_gnu_ld=unknown
4647    ;;
4648  esac
4649elif test "$with_gnu_ld" = yes; then
4650  { echo "$as_me:$LINENO: checking for GNU ld" >&5
4651echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4652else
4653  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4654echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4655fi
4656if test "${lt_cv_path_LD+set}" = set; then
4657  echo $ECHO_N "(cached) $ECHO_C" >&6
4658else
4659  if test -z "$LD"; then
4660  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4661  for ac_dir in $PATH; do
4662    IFS="$lt_save_ifs"
4663    test -z "$ac_dir" && ac_dir=.
4664    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4665      lt_cv_path_LD="$ac_dir/$ac_prog"
4666      # Check to see if the program is GNU ld.  I'd rather use --version,
4667      # but apparently some variants of GNU ld only accept -v.
4668      # Break only if it was the GNU/non-GNU ld that we prefer.
4669      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4670      *GNU* | *'with BFD'*)
4671	test "$with_gnu_ld" != no && break
4672	;;
4673      *)
4674	test "$with_gnu_ld" != yes && break
4675	;;
4676      esac
4677    fi
4678  done
4679  IFS="$lt_save_ifs"
4680else
4681  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4682fi
4683fi
4684
4685LD="$lt_cv_path_LD"
4686if test -n "$LD"; then
4687  { echo "$as_me:$LINENO: result: $LD" >&5
4688echo "${ECHO_T}$LD" >&6; }
4689else
4690  { echo "$as_me:$LINENO: result: no" >&5
4691echo "${ECHO_T}no" >&6; }
4692fi
4693test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4694echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4695   { (exit 1); exit 1; }; }
4696{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4697echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4698if test "${lt_cv_prog_gnu_ld+set}" = set; then
4699  echo $ECHO_N "(cached) $ECHO_C" >&6
4700else
4701  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4702case `$LD -v 2>&1 </dev/null` in
4703*GNU* | *'with BFD'*)
4704  lt_cv_prog_gnu_ld=yes
4705  ;;
4706*)
4707  lt_cv_prog_gnu_ld=no
4708  ;;
4709esac
4710fi
4711{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4712echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4713with_gnu_ld=$lt_cv_prog_gnu_ld
4714
4715
4716{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4717echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4718if test "${lt_cv_ld_reload_flag+set}" = set; then
4719  echo $ECHO_N "(cached) $ECHO_C" >&6
4720else
4721  lt_cv_ld_reload_flag='-r'
4722fi
4723{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4724echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4725reload_flag=$lt_cv_ld_reload_flag
4726case $reload_flag in
4727"" | " "*) ;;
4728*) reload_flag=" $reload_flag" ;;
4729esac
4730reload_cmds='$LD$reload_flag -o $output$reload_objs'
4731case $host_os in
4732  darwin*)
4733    if test "$GCC" = yes; then
4734      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4735    else
4736      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4737    fi
4738    ;;
4739esac
4740
4741{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4742echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4743if test "${lt_cv_path_NM+set}" = set; then
4744  echo $ECHO_N "(cached) $ECHO_C" >&6
4745else
4746  if test -n "$NM"; then
4747  # Let the user override the test.
4748  lt_cv_path_NM="$NM"
4749else
4750  lt_nm_to_check="${ac_tool_prefix}nm"
4751  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4752    lt_nm_to_check="$lt_nm_to_check nm"
4753  fi
4754  for lt_tmp_nm in $lt_nm_to_check; do
4755    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4756    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4757      IFS="$lt_save_ifs"
4758      test -z "$ac_dir" && ac_dir=.
4759      tmp_nm="$ac_dir/$lt_tmp_nm"
4760      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4761	# Check to see if the nm accepts a BSD-compat flag.
4762	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4763	#   nm: unknown option "B" ignored
4764	# Tru64's nm complains that /dev/null is an invalid object file
4765	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4766	*/dev/null* | *'Invalid file or object type'*)
4767	  lt_cv_path_NM="$tmp_nm -B"
4768	  break
4769	  ;;
4770	*)
4771	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4772	  */dev/null*)
4773	    lt_cv_path_NM="$tmp_nm -p"
4774	    break
4775	    ;;
4776	  *)
4777	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4778	    continue # so that we can try to find one that supports BSD flags
4779	    ;;
4780	  esac
4781	  ;;
4782	esac
4783      fi
4784    done
4785    IFS="$lt_save_ifs"
4786  done
4787  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4788fi
4789fi
4790{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4791echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4792NM="$lt_cv_path_NM"
4793
4794{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4795echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4796LN_S=$as_ln_s
4797if test "$LN_S" = "ln -s"; then
4798  { echo "$as_me:$LINENO: result: yes" >&5
4799echo "${ECHO_T}yes" >&6; }
4800else
4801  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4802echo "${ECHO_T}no, using $LN_S" >&6; }
4803fi
4804
4805{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4806echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4807if test "${lt_cv_deplibs_check_method+set}" = set; then
4808  echo $ECHO_N "(cached) $ECHO_C" >&6
4809else
4810  lt_cv_file_magic_cmd='$MAGIC_CMD'
4811lt_cv_file_magic_test_file=
4812lt_cv_deplibs_check_method='unknown'
4813# Need to set the preceding variable on all platforms that support
4814# interlibrary dependencies.
4815# 'none' -- dependencies not supported.
4816# `unknown' -- same as none, but documents that we really don't know.
4817# 'pass_all' -- all dependencies passed with no checks.
4818# 'test_compile' -- check by making test program.
4819# 'file_magic [[regex]]' -- check by looking for files in library path
4820# which responds to the $file_magic_cmd with a given extended regex.
4821# If you have `file' or equivalent on your system and you're not sure
4822# whether `pass_all' will *always* work, you probably want this one.
4823
4824case $host_os in
4825aix[4-9]*)
4826  lt_cv_deplibs_check_method=pass_all
4827  ;;
4828
4829beos*)
4830  lt_cv_deplibs_check_method=pass_all
4831  ;;
4832
4833bsdi[45]*)
4834  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4835  lt_cv_file_magic_cmd='/usr/bin/file -L'
4836  lt_cv_file_magic_test_file=/shlib/libc.so
4837  ;;
4838
4839cygwin*)
4840  # func_win32_libid is a shell function defined in ltmain.sh
4841  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4842  lt_cv_file_magic_cmd='func_win32_libid'
4843  ;;
4844
4845mingw* | pw32*)
4846  # Base MSYS/MinGW do not provide the 'file' command needed by
4847  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4848  # unless we find 'file', for example because we are cross-compiling.
4849  if ( file / ) >/dev/null 2>&1; then
4850    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4851    lt_cv_file_magic_cmd='func_win32_libid'
4852  else
4853    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4854    lt_cv_file_magic_cmd='$OBJDUMP -f'
4855  fi
4856  ;;
4857
4858darwin* | rhapsody*)
4859  lt_cv_deplibs_check_method=pass_all
4860  ;;
4861
4862freebsd* | dragonfly*)
4863  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4864    case $host_cpu in
4865    i*86 )
4866      # Not sure whether the presence of OpenBSD here was a mistake.
4867      # Let's accept both of them until this is cleared up.
4868      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4869      lt_cv_file_magic_cmd=/usr/bin/file
4870      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4871      ;;
4872    esac
4873  else
4874    lt_cv_deplibs_check_method=pass_all
4875  fi
4876  ;;
4877
4878gnu*)
4879  lt_cv_deplibs_check_method=pass_all
4880  ;;
4881
4882hpux10.20* | hpux11*)
4883  lt_cv_file_magic_cmd=/usr/bin/file
4884  case $host_cpu in
4885  ia64*)
4886    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4887    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4888    ;;
4889  hppa*64*)
4890    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]'
4891    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4892    ;;
4893  *)
4894    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4895    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4896    ;;
4897  esac
4898  ;;
4899
4900interix[3-9]*)
4901  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4902  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4903  ;;
4904
4905irix5* | irix6* | nonstopux*)
4906  case $LD in
4907  *-32|*"-32 ") libmagic=32-bit;;
4908  *-n32|*"-n32 ") libmagic=N32;;
4909  *-64|*"-64 ") libmagic=64-bit;;
4910  *) libmagic=never-match;;
4911  esac
4912  lt_cv_deplibs_check_method=pass_all
4913  ;;
4914
4915# This must be Linux ELF.
4916linux* | k*bsd*-gnu)
4917  lt_cv_deplibs_check_method=pass_all
4918  ;;
4919
4920netbsd* | netbsdelf*-gnu)
4921  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4922    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4923  else
4924    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4925  fi
4926  ;;
4927
4928newos6*)
4929  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4930  lt_cv_file_magic_cmd=/usr/bin/file
4931  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4932  ;;
4933
4934nto-qnx*)
4935  lt_cv_deplibs_check_method=unknown
4936  ;;
4937
4938openbsd*)
4939  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4940    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4941  else
4942    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4943  fi
4944  ;;
4945
4946osf3* | osf4* | osf5*)
4947  lt_cv_deplibs_check_method=pass_all
4948  ;;
4949
4950rdos*)
4951  lt_cv_deplibs_check_method=pass_all
4952  ;;
4953
4954solaris*)
4955  lt_cv_deplibs_check_method=pass_all
4956  ;;
4957
4958sysv4 | sysv4.3*)
4959  case $host_vendor in
4960  motorola)
4961    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]'
4962    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4963    ;;
4964  ncr)
4965    lt_cv_deplibs_check_method=pass_all
4966    ;;
4967  sequent)
4968    lt_cv_file_magic_cmd='/bin/file'
4969    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4970    ;;
4971  sni)
4972    lt_cv_file_magic_cmd='/bin/file'
4973    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4974    lt_cv_file_magic_test_file=/lib/libc.so
4975    ;;
4976  siemens)
4977    lt_cv_deplibs_check_method=pass_all
4978    ;;
4979  pc)
4980    lt_cv_deplibs_check_method=pass_all
4981    ;;
4982  esac
4983  ;;
4984
4985sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4986  lt_cv_deplibs_check_method=pass_all
4987  ;;
4988esac
4989
4990fi
4991{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4992echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4993file_magic_cmd=$lt_cv_file_magic_cmd
4994deplibs_check_method=$lt_cv_deplibs_check_method
4995test -z "$deplibs_check_method" && deplibs_check_method=unknown
4996
4997
4998
4999
5000# If no C compiler was specified, use CC.
5001LTCC=${LTCC-"$CC"}
5002
5003# If no C compiler flags were specified, use CFLAGS.
5004LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5005
5006# Allow CC to be a program name with arguments.
5007compiler=$CC
5008
5009
5010# Check whether --enable-libtool-lock was given.
5011if test "${enable_libtool_lock+set}" = set; then
5012  enableval=$enable_libtool_lock;
5013fi
5014
5015test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5016
5017# Some flags need to be propagated to the compiler or linker for good
5018# libtool support.
5019case $host in
5020ia64-*-hpux*)
5021  # Find out which ABI we are using.
5022  echo 'int i;' > conftest.$ac_ext
5023  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5024  (eval $ac_compile) 2>&5
5025  ac_status=$?
5026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027  (exit $ac_status); }; then
5028    case `/usr/bin/file conftest.$ac_objext` in
5029    *ELF-32*)
5030      HPUX_IA64_MODE="32"
5031      ;;
5032    *ELF-64*)
5033      HPUX_IA64_MODE="64"
5034      ;;
5035    esac
5036  fi
5037  rm -rf conftest*
5038  ;;
5039*-*-irix6*)
5040  # Find out which ABI we are using.
5041  echo '#line 5041 "configure"' > conftest.$ac_ext
5042  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5043  (eval $ac_compile) 2>&5
5044  ac_status=$?
5045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046  (exit $ac_status); }; then
5047   if test "$lt_cv_prog_gnu_ld" = yes; then
5048    case `/usr/bin/file conftest.$ac_objext` in
5049    *32-bit*)
5050      LD="${LD-ld} -melf32bsmip"
5051      ;;
5052    *N32*)
5053      LD="${LD-ld} -melf32bmipn32"
5054      ;;
5055    *64-bit*)
5056      LD="${LD-ld} -melf64bmip"
5057      ;;
5058    esac
5059   else
5060    case `/usr/bin/file conftest.$ac_objext` in
5061    *32-bit*)
5062      LD="${LD-ld} -32"
5063      ;;
5064    *N32*)
5065      LD="${LD-ld} -n32"
5066      ;;
5067    *64-bit*)
5068      LD="${LD-ld} -64"
5069      ;;
5070    esac
5071   fi
5072  fi
5073  rm -rf conftest*
5074  ;;
5075
5076x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5077s390*-*linux*|sparc*-*linux*)
5078  # Find out which ABI we are using.
5079  echo 'int i;' > conftest.$ac_ext
5080  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5081  (eval $ac_compile) 2>&5
5082  ac_status=$?
5083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084  (exit $ac_status); }; then
5085    case `/usr/bin/file conftest.o` in
5086    *32-bit*)
5087      case $host in
5088        x86_64-*kfreebsd*-gnu)
5089          LD="${LD-ld} -m elf_i386_fbsd"
5090          ;;
5091        x86_64-*linux*)
5092          LD="${LD-ld} -m elf_i386"
5093          ;;
5094        ppc64-*linux*|powerpc64-*linux*)
5095          LD="${LD-ld} -m elf32ppclinux"
5096          ;;
5097        s390x-*linux*)
5098          LD="${LD-ld} -m elf_s390"
5099          ;;
5100        sparc64-*linux*)
5101          LD="${LD-ld} -m elf32_sparc"
5102          ;;
5103      esac
5104      ;;
5105    *64-bit*)
5106      case $host in
5107        x86_64-*kfreebsd*-gnu)
5108          LD="${LD-ld} -m elf_x86_64_fbsd"
5109          ;;
5110        x86_64-*linux*)
5111          LD="${LD-ld} -m elf_x86_64"
5112          ;;
5113        ppc*-*linux*|powerpc*-*linux*)
5114          LD="${LD-ld} -m elf64ppc"
5115          ;;
5116        s390*-*linux*)
5117          LD="${LD-ld} -m elf64_s390"
5118          ;;
5119        sparc*-*linux*)
5120          LD="${LD-ld} -m elf64_sparc"
5121          ;;
5122      esac
5123      ;;
5124    esac
5125  fi
5126  rm -rf conftest*
5127  ;;
5128
5129*-*-sco3.2v5*)
5130  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5131  SAVE_CFLAGS="$CFLAGS"
5132  CFLAGS="$CFLAGS -belf"
5133  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5134echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5135if test "${lt_cv_cc_needs_belf+set}" = set; then
5136  echo $ECHO_N "(cached) $ECHO_C" >&6
5137else
5138  ac_ext=c
5139ac_cpp='$CPP $CPPFLAGS'
5140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5142ac_compiler_gnu=$ac_cv_c_compiler_gnu
5143
5144     cat >conftest.$ac_ext <<_ACEOF
5145/* confdefs.h.  */
5146_ACEOF
5147cat confdefs.h >>conftest.$ac_ext
5148cat >>conftest.$ac_ext <<_ACEOF
5149/* end confdefs.h.  */
5150
5151int
5152main ()
5153{
5154
5155  ;
5156  return 0;
5157}
5158_ACEOF
5159rm -f conftest.$ac_objext conftest$ac_exeext
5160if { (ac_try="$ac_link"
5161case "(($ac_try" in
5162  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5163  *) ac_try_echo=$ac_try;;
5164esac
5165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5166  (eval "$ac_link") 2>conftest.er1
5167  ac_status=$?
5168  grep -v '^ *+' conftest.er1 >conftest.err
5169  rm -f conftest.er1
5170  cat conftest.err >&5
5171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172  (exit $ac_status); } && {
5173	 test -z "$ac_c_werror_flag" ||
5174	 test ! -s conftest.err
5175       } && test -s conftest$ac_exeext &&
5176       $as_test_x conftest$ac_exeext; then
5177  lt_cv_cc_needs_belf=yes
5178else
5179  echo "$as_me: failed program was:" >&5
5180sed 's/^/| /' conftest.$ac_ext >&5
5181
5182	lt_cv_cc_needs_belf=no
5183fi
5184
5185rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5186      conftest$ac_exeext conftest.$ac_ext
5187     ac_ext=c
5188ac_cpp='$CPP $CPPFLAGS'
5189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5191ac_compiler_gnu=$ac_cv_c_compiler_gnu
5192
5193fi
5194{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5195echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5196  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5197    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5198    CFLAGS="$SAVE_CFLAGS"
5199  fi
5200  ;;
5201sparc*-*solaris*)
5202  # Find out which ABI we are using.
5203  echo 'int i;' > conftest.$ac_ext
5204  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5205  (eval $ac_compile) 2>&5
5206  ac_status=$?
5207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208  (exit $ac_status); }; then
5209    case `/usr/bin/file conftest.o` in
5210    *64-bit*)
5211      case $lt_cv_prog_gnu_ld in
5212      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5213      *)
5214        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5215	  LD="${LD-ld} -64"
5216	fi
5217	;;
5218      esac
5219      ;;
5220    esac
5221  fi
5222  rm -rf conftest*
5223  ;;
5224
5225
5226esac
5227
5228need_locks="$enable_libtool_lock"
5229
5230
5231
5232{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5233echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5234if test "${ac_cv_header_stdc+set}" = set; then
5235  echo $ECHO_N "(cached) $ECHO_C" >&6
5236else
5237  cat >conftest.$ac_ext <<_ACEOF
5238/* confdefs.h.  */
5239_ACEOF
5240cat confdefs.h >>conftest.$ac_ext
5241cat >>conftest.$ac_ext <<_ACEOF
5242/* end confdefs.h.  */
5243#include <stdlib.h>
5244#include <stdarg.h>
5245#include <string.h>
5246#include <float.h>
5247
5248int
5249main ()
5250{
5251
5252  ;
5253  return 0;
5254}
5255_ACEOF
5256rm -f conftest.$ac_objext
5257if { (ac_try="$ac_compile"
5258case "(($ac_try" in
5259  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5260  *) ac_try_echo=$ac_try;;
5261esac
5262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5263  (eval "$ac_compile") 2>conftest.er1
5264  ac_status=$?
5265  grep -v '^ *+' conftest.er1 >conftest.err
5266  rm -f conftest.er1
5267  cat conftest.err >&5
5268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269  (exit $ac_status); } && {
5270	 test -z "$ac_c_werror_flag" ||
5271	 test ! -s conftest.err
5272       } && test -s conftest.$ac_objext; then
5273  ac_cv_header_stdc=yes
5274else
5275  echo "$as_me: failed program was:" >&5
5276sed 's/^/| /' conftest.$ac_ext >&5
5277
5278	ac_cv_header_stdc=no
5279fi
5280
5281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5282
5283if test $ac_cv_header_stdc = yes; then
5284  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5285  cat >conftest.$ac_ext <<_ACEOF
5286/* confdefs.h.  */
5287_ACEOF
5288cat confdefs.h >>conftest.$ac_ext
5289cat >>conftest.$ac_ext <<_ACEOF
5290/* end confdefs.h.  */
5291#include <string.h>
5292
5293_ACEOF
5294if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5295  $EGREP "memchr" >/dev/null 2>&1; then
5296  :
5297else
5298  ac_cv_header_stdc=no
5299fi
5300rm -f conftest*
5301
5302fi
5303
5304if test $ac_cv_header_stdc = yes; then
5305  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5306  cat >conftest.$ac_ext <<_ACEOF
5307/* confdefs.h.  */
5308_ACEOF
5309cat confdefs.h >>conftest.$ac_ext
5310cat >>conftest.$ac_ext <<_ACEOF
5311/* end confdefs.h.  */
5312#include <stdlib.h>
5313
5314_ACEOF
5315if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5316  $EGREP "free" >/dev/null 2>&1; then
5317  :
5318else
5319  ac_cv_header_stdc=no
5320fi
5321rm -f conftest*
5322
5323fi
5324
5325if test $ac_cv_header_stdc = yes; then
5326  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5327  if test "$cross_compiling" = yes; then
5328  :
5329else
5330  cat >conftest.$ac_ext <<_ACEOF
5331/* confdefs.h.  */
5332_ACEOF
5333cat confdefs.h >>conftest.$ac_ext
5334cat >>conftest.$ac_ext <<_ACEOF
5335/* end confdefs.h.  */
5336#include <ctype.h>
5337#include <stdlib.h>
5338#if ((' ' & 0x0FF) == 0x020)
5339# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5340# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5341#else
5342# define ISLOWER(c) \
5343		   (('a' <= (c) && (c) <= 'i') \
5344		     || ('j' <= (c) && (c) <= 'r') \
5345		     || ('s' <= (c) && (c) <= 'z'))
5346# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5347#endif
5348
5349#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5350int
5351main ()
5352{
5353  int i;
5354  for (i = 0; i < 256; i++)
5355    if (XOR (islower (i), ISLOWER (i))
5356	|| toupper (i) != TOUPPER (i))
5357      return 2;
5358  return 0;
5359}
5360_ACEOF
5361rm -f conftest$ac_exeext
5362if { (ac_try="$ac_link"
5363case "(($ac_try" in
5364  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5365  *) ac_try_echo=$ac_try;;
5366esac
5367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5368  (eval "$ac_link") 2>&5
5369  ac_status=$?
5370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5372  { (case "(($ac_try" in
5373  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5374  *) ac_try_echo=$ac_try;;
5375esac
5376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5377  (eval "$ac_try") 2>&5
5378  ac_status=$?
5379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380  (exit $ac_status); }; }; then
5381  :
5382else
5383  echo "$as_me: program exited with status $ac_status" >&5
5384echo "$as_me: failed program was:" >&5
5385sed 's/^/| /' conftest.$ac_ext >&5
5386
5387( exit $ac_status )
5388ac_cv_header_stdc=no
5389fi
5390rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5391fi
5392
5393
5394fi
5395fi
5396{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5397echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5398if test $ac_cv_header_stdc = yes; then
5399
5400cat >>confdefs.h <<\_ACEOF
5401#define STDC_HEADERS 1
5402_ACEOF
5403
5404fi
5405
5406# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5417		  inttypes.h stdint.h unistd.h
5418do
5419as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5420{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5421echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5422if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5423  echo $ECHO_N "(cached) $ECHO_C" >&6
5424else
5425  cat >conftest.$ac_ext <<_ACEOF
5426/* confdefs.h.  */
5427_ACEOF
5428cat confdefs.h >>conftest.$ac_ext
5429cat >>conftest.$ac_ext <<_ACEOF
5430/* end confdefs.h.  */
5431$ac_includes_default
5432
5433#include <$ac_header>
5434_ACEOF
5435rm -f conftest.$ac_objext
5436if { (ac_try="$ac_compile"
5437case "(($ac_try" in
5438  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5439  *) ac_try_echo=$ac_try;;
5440esac
5441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5442  (eval "$ac_compile") 2>conftest.er1
5443  ac_status=$?
5444  grep -v '^ *+' conftest.er1 >conftest.err
5445  rm -f conftest.er1
5446  cat conftest.err >&5
5447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448  (exit $ac_status); } && {
5449	 test -z "$ac_c_werror_flag" ||
5450	 test ! -s conftest.err
5451       } && test -s conftest.$ac_objext; then
5452  eval "$as_ac_Header=yes"
5453else
5454  echo "$as_me: failed program was:" >&5
5455sed 's/^/| /' conftest.$ac_ext >&5
5456
5457	eval "$as_ac_Header=no"
5458fi
5459
5460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5461fi
5462ac_res=`eval echo '${'$as_ac_Header'}'`
5463	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5464echo "${ECHO_T}$ac_res" >&6; }
5465if test `eval echo '${'$as_ac_Header'}'` = yes; then
5466  cat >>confdefs.h <<_ACEOF
5467#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5468_ACEOF
5469
5470fi
5471
5472done
5473
5474
5475
5476for ac_header in dlfcn.h
5477do
5478as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5479if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5480  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5481echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5482if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5483  echo $ECHO_N "(cached) $ECHO_C" >&6
5484fi
5485ac_res=`eval echo '${'$as_ac_Header'}'`
5486	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5487echo "${ECHO_T}$ac_res" >&6; }
5488else
5489  # Is the header compilable?
5490{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5491echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5492cat >conftest.$ac_ext <<_ACEOF
5493/* confdefs.h.  */
5494_ACEOF
5495cat confdefs.h >>conftest.$ac_ext
5496cat >>conftest.$ac_ext <<_ACEOF
5497/* end confdefs.h.  */
5498$ac_includes_default
5499#include <$ac_header>
5500_ACEOF
5501rm -f conftest.$ac_objext
5502if { (ac_try="$ac_compile"
5503case "(($ac_try" in
5504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5505  *) ac_try_echo=$ac_try;;
5506esac
5507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5508  (eval "$ac_compile") 2>conftest.er1
5509  ac_status=$?
5510  grep -v '^ *+' conftest.er1 >conftest.err
5511  rm -f conftest.er1
5512  cat conftest.err >&5
5513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514  (exit $ac_status); } && {
5515	 test -z "$ac_c_werror_flag" ||
5516	 test ! -s conftest.err
5517       } && test -s conftest.$ac_objext; then
5518  ac_header_compiler=yes
5519else
5520  echo "$as_me: failed program was:" >&5
5521sed 's/^/| /' conftest.$ac_ext >&5
5522
5523	ac_header_compiler=no
5524fi
5525
5526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5527{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5528echo "${ECHO_T}$ac_header_compiler" >&6; }
5529
5530# Is the header present?
5531{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5532echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5533cat >conftest.$ac_ext <<_ACEOF
5534/* confdefs.h.  */
5535_ACEOF
5536cat confdefs.h >>conftest.$ac_ext
5537cat >>conftest.$ac_ext <<_ACEOF
5538/* end confdefs.h.  */
5539#include <$ac_header>
5540_ACEOF
5541if { (ac_try="$ac_cpp conftest.$ac_ext"
5542case "(($ac_try" in
5543  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5544  *) ac_try_echo=$ac_try;;
5545esac
5546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5547  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5548  ac_status=$?
5549  grep -v '^ *+' conftest.er1 >conftest.err
5550  rm -f conftest.er1
5551  cat conftest.err >&5
5552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553  (exit $ac_status); } >/dev/null && {
5554	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5555	 test ! -s conftest.err
5556       }; then
5557  ac_header_preproc=yes
5558else
5559  echo "$as_me: failed program was:" >&5
5560sed 's/^/| /' conftest.$ac_ext >&5
5561
5562  ac_header_preproc=no
5563fi
5564
5565rm -f conftest.err conftest.$ac_ext
5566{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5567echo "${ECHO_T}$ac_header_preproc" >&6; }
5568
5569# So?  What about this header?
5570case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5571  yes:no: )
5572    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5573echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5574    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5575echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5576    ac_header_preproc=yes
5577    ;;
5578  no:yes:* )
5579    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5580echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5581    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5582echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5583    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5584echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5585    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5586echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5587    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5588echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5589    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5590echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5591    ( cat <<\_ASBOX
5592## ------------------------------------ ##
5593## Report this to opensource@google.com ##
5594## ------------------------------------ ##
5595_ASBOX
5596     ) | sed "s/^/$as_me: WARNING:     /" >&2
5597    ;;
5598esac
5599{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5600echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5601if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5602  echo $ECHO_N "(cached) $ECHO_C" >&6
5603else
5604  eval "$as_ac_Header=\$ac_header_preproc"
5605fi
5606ac_res=`eval echo '${'$as_ac_Header'}'`
5607	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5608echo "${ECHO_T}$ac_res" >&6; }
5609
5610fi
5611if test `eval echo '${'$as_ac_Header'}'` = yes; then
5612  cat >>confdefs.h <<_ACEOF
5613#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5614_ACEOF
5615
5616fi
5617
5618done
5619
5620
5621
5622if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5623    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5624    (test "X$CXX" != "Xg++"))) ; then
5625  ac_ext=cpp
5626ac_cpp='$CXXCPP $CPPFLAGS'
5627ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5628ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5629ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5630{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5631echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5632if test -z "$CXXCPP"; then
5633  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5634  echo $ECHO_N "(cached) $ECHO_C" >&6
5635else
5636      # Double quotes because CXXCPP needs to be expanded
5637    for CXXCPP in "$CXX -E" "/lib/cpp"
5638    do
5639      ac_preproc_ok=false
5640for ac_cxx_preproc_warn_flag in '' yes
5641do
5642  # Use a header file that comes with gcc, so configuring glibc
5643  # with a fresh cross-compiler works.
5644  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5645  # <limits.h> exists even on freestanding compilers.
5646  # On the NeXT, cc -E runs the code through the compiler's parser,
5647  # not just through cpp. "Syntax error" is here to catch this case.
5648  cat >conftest.$ac_ext <<_ACEOF
5649/* confdefs.h.  */
5650_ACEOF
5651cat confdefs.h >>conftest.$ac_ext
5652cat >>conftest.$ac_ext <<_ACEOF
5653/* end confdefs.h.  */
5654#ifdef __STDC__
5655# include <limits.h>
5656#else
5657# include <assert.h>
5658#endif
5659		     Syntax error
5660_ACEOF
5661if { (ac_try="$ac_cpp conftest.$ac_ext"
5662case "(($ac_try" in
5663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5664  *) ac_try_echo=$ac_try;;
5665esac
5666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5667  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5668  ac_status=$?
5669  grep -v '^ *+' conftest.er1 >conftest.err
5670  rm -f conftest.er1
5671  cat conftest.err >&5
5672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673  (exit $ac_status); } >/dev/null && {
5674	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5675	 test ! -s conftest.err
5676       }; then
5677  :
5678else
5679  echo "$as_me: failed program was:" >&5
5680sed 's/^/| /' conftest.$ac_ext >&5
5681
5682  # Broken: fails on valid input.
5683continue
5684fi
5685
5686rm -f conftest.err conftest.$ac_ext
5687
5688  # OK, works on sane cases.  Now check whether nonexistent headers
5689  # can be detected and how.
5690  cat >conftest.$ac_ext <<_ACEOF
5691/* confdefs.h.  */
5692_ACEOF
5693cat confdefs.h >>conftest.$ac_ext
5694cat >>conftest.$ac_ext <<_ACEOF
5695/* end confdefs.h.  */
5696#include <ac_nonexistent.h>
5697_ACEOF
5698if { (ac_try="$ac_cpp conftest.$ac_ext"
5699case "(($ac_try" in
5700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5701  *) ac_try_echo=$ac_try;;
5702esac
5703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5704  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5705  ac_status=$?
5706  grep -v '^ *+' conftest.er1 >conftest.err
5707  rm -f conftest.er1
5708  cat conftest.err >&5
5709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710  (exit $ac_status); } >/dev/null && {
5711	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5712	 test ! -s conftest.err
5713       }; then
5714  # Broken: success on invalid input.
5715continue
5716else
5717  echo "$as_me: failed program was:" >&5
5718sed 's/^/| /' conftest.$ac_ext >&5
5719
5720  # Passes both tests.
5721ac_preproc_ok=:
5722break
5723fi
5724
5725rm -f conftest.err conftest.$ac_ext
5726
5727done
5728# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5729rm -f conftest.err conftest.$ac_ext
5730if $ac_preproc_ok; then
5731  break
5732fi
5733
5734    done
5735    ac_cv_prog_CXXCPP=$CXXCPP
5736
5737fi
5738  CXXCPP=$ac_cv_prog_CXXCPP
5739else
5740  ac_cv_prog_CXXCPP=$CXXCPP
5741fi
5742{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5743echo "${ECHO_T}$CXXCPP" >&6; }
5744ac_preproc_ok=false
5745for ac_cxx_preproc_warn_flag in '' yes
5746do
5747  # Use a header file that comes with gcc, so configuring glibc
5748  # with a fresh cross-compiler works.
5749  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5750  # <limits.h> exists even on freestanding compilers.
5751  # On the NeXT, cc -E runs the code through the compiler's parser,
5752  # not just through cpp. "Syntax error" is here to catch this case.
5753  cat >conftest.$ac_ext <<_ACEOF
5754/* confdefs.h.  */
5755_ACEOF
5756cat confdefs.h >>conftest.$ac_ext
5757cat >>conftest.$ac_ext <<_ACEOF
5758/* end confdefs.h.  */
5759#ifdef __STDC__
5760# include <limits.h>
5761#else
5762# include <assert.h>
5763#endif
5764		     Syntax error
5765_ACEOF
5766if { (ac_try="$ac_cpp conftest.$ac_ext"
5767case "(($ac_try" in
5768  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5769  *) ac_try_echo=$ac_try;;
5770esac
5771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5772  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5773  ac_status=$?
5774  grep -v '^ *+' conftest.er1 >conftest.err
5775  rm -f conftest.er1
5776  cat conftest.err >&5
5777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778  (exit $ac_status); } >/dev/null && {
5779	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5780	 test ! -s conftest.err
5781       }; then
5782  :
5783else
5784  echo "$as_me: failed program was:" >&5
5785sed 's/^/| /' conftest.$ac_ext >&5
5786
5787  # Broken: fails on valid input.
5788continue
5789fi
5790
5791rm -f conftest.err conftest.$ac_ext
5792
5793  # OK, works on sane cases.  Now check whether nonexistent headers
5794  # can be detected and how.
5795  cat >conftest.$ac_ext <<_ACEOF
5796/* confdefs.h.  */
5797_ACEOF
5798cat confdefs.h >>conftest.$ac_ext
5799cat >>conftest.$ac_ext <<_ACEOF
5800/* end confdefs.h.  */
5801#include <ac_nonexistent.h>
5802_ACEOF
5803if { (ac_try="$ac_cpp conftest.$ac_ext"
5804case "(($ac_try" in
5805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5806  *) ac_try_echo=$ac_try;;
5807esac
5808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5809  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5810  ac_status=$?
5811  grep -v '^ *+' conftest.er1 >conftest.err
5812  rm -f conftest.er1
5813  cat conftest.err >&5
5814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815  (exit $ac_status); } >/dev/null && {
5816	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5817	 test ! -s conftest.err
5818       }; then
5819  # Broken: success on invalid input.
5820continue
5821else
5822  echo "$as_me: failed program was:" >&5
5823sed 's/^/| /' conftest.$ac_ext >&5
5824
5825  # Passes both tests.
5826ac_preproc_ok=:
5827break
5828fi
5829
5830rm -f conftest.err conftest.$ac_ext
5831
5832done
5833# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5834rm -f conftest.err conftest.$ac_ext
5835if $ac_preproc_ok; then
5836  :
5837else
5838  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5839See \`config.log' for more details." >&5
5840echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5841See \`config.log' for more details." >&2;}
5842   { (exit 1); exit 1; }; }
5843fi
5844
5845ac_ext=cpp
5846ac_cpp='$CXXCPP $CPPFLAGS'
5847ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5848ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5849ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5850
5851fi
5852
5853
5854ac_ext=f
5855ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5856ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5857ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5858if test -n "$ac_tool_prefix"; then
5859  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5860  do
5861    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5862set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5863{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5865if test "${ac_cv_prog_F77+set}" = set; then
5866  echo $ECHO_N "(cached) $ECHO_C" >&6
5867else
5868  if test -n "$F77"; then
5869  ac_cv_prog_F77="$F77" # Let the user override the test.
5870else
5871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872for as_dir in $PATH
5873do
5874  IFS=$as_save_IFS
5875  test -z "$as_dir" && as_dir=.
5876  for ac_exec_ext in '' $ac_executable_extensions; do
5877  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5878    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5879    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5880    break 2
5881  fi
5882done
5883done
5884IFS=$as_save_IFS
5885
5886fi
5887fi
5888F77=$ac_cv_prog_F77
5889if test -n "$F77"; then
5890  { echo "$as_me:$LINENO: result: $F77" >&5
5891echo "${ECHO_T}$F77" >&6; }
5892else
5893  { echo "$as_me:$LINENO: result: no" >&5
5894echo "${ECHO_T}no" >&6; }
5895fi
5896
5897
5898    test -n "$F77" && break
5899  done
5900fi
5901if test -z "$F77"; then
5902  ac_ct_F77=$F77
5903  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5904do
5905  # Extract the first word of "$ac_prog", so it can be a program name with args.
5906set dummy $ac_prog; ac_word=$2
5907{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5909if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5910  echo $ECHO_N "(cached) $ECHO_C" >&6
5911else
5912  if test -n "$ac_ct_F77"; then
5913  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5914else
5915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916for as_dir in $PATH
5917do
5918  IFS=$as_save_IFS
5919  test -z "$as_dir" && as_dir=.
5920  for ac_exec_ext in '' $ac_executable_extensions; do
5921  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5922    ac_cv_prog_ac_ct_F77="$ac_prog"
5923    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5924    break 2
5925  fi
5926done
5927done
5928IFS=$as_save_IFS
5929
5930fi
5931fi
5932ac_ct_F77=$ac_cv_prog_ac_ct_F77
5933if test -n "$ac_ct_F77"; then
5934  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5935echo "${ECHO_T}$ac_ct_F77" >&6; }
5936else
5937  { echo "$as_me:$LINENO: result: no" >&5
5938echo "${ECHO_T}no" >&6; }
5939fi
5940
5941
5942  test -n "$ac_ct_F77" && break
5943done
5944
5945  if test "x$ac_ct_F77" = x; then
5946    F77=""
5947  else
5948    case $cross_compiling:$ac_tool_warned in
5949yes:)
5950{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5951whose name does not start with the host triplet.  If you think this
5952configuration is useful to you, please write to autoconf@gnu.org." >&5
5953echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5954whose name does not start with the host triplet.  If you think this
5955configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5956ac_tool_warned=yes ;;
5957esac
5958    F77=$ac_ct_F77
5959  fi
5960fi
5961
5962
5963# Provide some information about the compiler.
5964echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5965ac_compiler=`set X $ac_compile; echo $2`
5966{ (ac_try="$ac_compiler --version >&5"
5967case "(($ac_try" in
5968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5969  *) ac_try_echo=$ac_try;;
5970esac
5971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5972  (eval "$ac_compiler --version >&5") 2>&5
5973  ac_status=$?
5974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975  (exit $ac_status); }
5976{ (ac_try="$ac_compiler -v >&5"
5977case "(($ac_try" in
5978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979  *) ac_try_echo=$ac_try;;
5980esac
5981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982  (eval "$ac_compiler -v >&5") 2>&5
5983  ac_status=$?
5984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985  (exit $ac_status); }
5986{ (ac_try="$ac_compiler -V >&5"
5987case "(($ac_try" in
5988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5989  *) ac_try_echo=$ac_try;;
5990esac
5991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5992  (eval "$ac_compiler -V >&5") 2>&5
5993  ac_status=$?
5994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995  (exit $ac_status); }
5996rm -f a.out
5997
5998# If we don't use `.F' as extension, the preprocessor is not run on the
5999# input file.  (Note that this only needs to work for GNU compilers.)
6000ac_save_ext=$ac_ext
6001ac_ext=F
6002{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6003echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6004if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6005  echo $ECHO_N "(cached) $ECHO_C" >&6
6006else
6007  cat >conftest.$ac_ext <<_ACEOF
6008      program main
6009#ifndef __GNUC__
6010       choke me
6011#endif
6012
6013      end
6014_ACEOF
6015rm -f conftest.$ac_objext
6016if { (ac_try="$ac_compile"
6017case "(($ac_try" in
6018  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6019  *) ac_try_echo=$ac_try;;
6020esac
6021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6022  (eval "$ac_compile") 2>conftest.er1
6023  ac_status=$?
6024  grep -v '^ *+' conftest.er1 >conftest.err
6025  rm -f conftest.er1
6026  cat conftest.err >&5
6027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028  (exit $ac_status); } && {
6029	 test -z "$ac_f77_werror_flag" ||
6030	 test ! -s conftest.err
6031       } && test -s conftest.$ac_objext; then
6032  ac_compiler_gnu=yes
6033else
6034  echo "$as_me: failed program was:" >&5
6035sed 's/^/| /' conftest.$ac_ext >&5
6036
6037	ac_compiler_gnu=no
6038fi
6039
6040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6041ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6042
6043fi
6044{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6045echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6046ac_ext=$ac_save_ext
6047ac_test_FFLAGS=${FFLAGS+set}
6048ac_save_FFLAGS=$FFLAGS
6049FFLAGS=
6050{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6051echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6052if test "${ac_cv_prog_f77_g+set}" = set; then
6053  echo $ECHO_N "(cached) $ECHO_C" >&6
6054else
6055  FFLAGS=-g
6056cat >conftest.$ac_ext <<_ACEOF
6057      program main
6058
6059      end
6060_ACEOF
6061rm -f conftest.$ac_objext
6062if { (ac_try="$ac_compile"
6063case "(($ac_try" in
6064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6065  *) ac_try_echo=$ac_try;;
6066esac
6067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6068  (eval "$ac_compile") 2>conftest.er1
6069  ac_status=$?
6070  grep -v '^ *+' conftest.er1 >conftest.err
6071  rm -f conftest.er1
6072  cat conftest.err >&5
6073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074  (exit $ac_status); } && {
6075	 test -z "$ac_f77_werror_flag" ||
6076	 test ! -s conftest.err
6077       } && test -s conftest.$ac_objext; then
6078  ac_cv_prog_f77_g=yes
6079else
6080  echo "$as_me: failed program was:" >&5
6081sed 's/^/| /' conftest.$ac_ext >&5
6082
6083	ac_cv_prog_f77_g=no
6084fi
6085
6086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6087
6088fi
6089{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6090echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6091if test "$ac_test_FFLAGS" = set; then
6092  FFLAGS=$ac_save_FFLAGS
6093elif test $ac_cv_prog_f77_g = yes; then
6094  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6095    FFLAGS="-g -O2"
6096  else
6097    FFLAGS="-g"
6098  fi
6099else
6100  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6101    FFLAGS="-O2"
6102  else
6103    FFLAGS=
6104  fi
6105fi
6106
6107G77=`test $ac_compiler_gnu = yes && echo yes`
6108ac_ext=c
6109ac_cpp='$CPP $CPPFLAGS'
6110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6112ac_compiler_gnu=$ac_cv_c_compiler_gnu
6113
6114
6115
6116# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6117# find the maximum length of command line arguments
6118{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6119echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6120if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6121  echo $ECHO_N "(cached) $ECHO_C" >&6
6122else
6123    i=0
6124  teststring="ABCD"
6125
6126  case $build_os in
6127  msdosdjgpp*)
6128    # On DJGPP, this test can blow up pretty badly due to problems in libc
6129    # (any single argument exceeding 2000 bytes causes a buffer overrun
6130    # during glob expansion).  Even if it were fixed, the result of this
6131    # check would be larger than it should be.
6132    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6133    ;;
6134
6135  gnu*)
6136    # Under GNU Hurd, this test is not required because there is
6137    # no limit to the length of command line arguments.
6138    # Libtool will interpret -1 as no limit whatsoever
6139    lt_cv_sys_max_cmd_len=-1;
6140    ;;
6141
6142  cygwin* | mingw*)
6143    # On Win9x/ME, this test blows up -- it succeeds, but takes
6144    # about 5 minutes as the teststring grows exponentially.
6145    # Worse, since 9x/ME are not pre-emptively multitasking,
6146    # you end up with a "frozen" computer, even though with patience
6147    # the test eventually succeeds (with a max line length of 256k).
6148    # Instead, let's just punt: use the minimum linelength reported by
6149    # all of the supported platforms: 8192 (on NT/2K/XP).
6150    lt_cv_sys_max_cmd_len=8192;
6151    ;;
6152
6153  amigaos*)
6154    # On AmigaOS with pdksh, this test takes hours, literally.
6155    # So we just punt and use a minimum line length of 8192.
6156    lt_cv_sys_max_cmd_len=8192;
6157    ;;
6158
6159  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6160    # This has been around since 386BSD, at least.  Likely further.
6161    if test -x /sbin/sysctl; then
6162      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6163    elif test -x /usr/sbin/sysctl; then
6164      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6165    else
6166      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6167    fi
6168    # And add a safety zone
6169    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6170    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6171    ;;
6172
6173  interix*)
6174    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6175    lt_cv_sys_max_cmd_len=196608
6176    ;;
6177
6178  osf*)
6179    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6180    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6181    # nice to cause kernel panics so lets avoid the loop below.
6182    # First set a reasonable default.
6183    lt_cv_sys_max_cmd_len=16384
6184    #
6185    if test -x /sbin/sysconfig; then
6186      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6187        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6188      esac
6189    fi
6190    ;;
6191  sco3.2v5*)
6192    lt_cv_sys_max_cmd_len=102400
6193    ;;
6194  sysv5* | sco5v6* | sysv4.2uw2*)
6195    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6196    if test -n "$kargmax"; then
6197      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6198    else
6199      lt_cv_sys_max_cmd_len=32768
6200    fi
6201    ;;
6202  *)
6203    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6204    if test -n "$lt_cv_sys_max_cmd_len"; then
6205      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6206      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6207    else
6208      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6209      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6210	       = "XX$teststring") >/dev/null 2>&1 &&
6211	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6212	      lt_cv_sys_max_cmd_len=$new_result &&
6213	      test $i != 17 # 1/2 MB should be enough
6214      do
6215        i=`expr $i + 1`
6216        teststring=$teststring$teststring
6217      done
6218      teststring=
6219      # Add a significant safety factor because C++ compilers can tack on massive
6220      # amounts of additional arguments before passing them to the linker.
6221      # It appears as though 1/2 is a usable value.
6222      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6223    fi
6224    ;;
6225  esac
6226
6227fi
6228
6229if test -n $lt_cv_sys_max_cmd_len ; then
6230  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6231echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6232else
6233  { echo "$as_me:$LINENO: result: none" >&5
6234echo "${ECHO_T}none" >&6; }
6235fi
6236
6237
6238
6239
6240
6241# Check for command to grab the raw symbol name followed by C symbol from nm.
6242{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6243echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6244if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6245  echo $ECHO_N "(cached) $ECHO_C" >&6
6246else
6247
6248# These are sane defaults that work on at least a few old systems.
6249# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6250
6251# Character class describing NM global symbol codes.
6252symcode='[BCDEGRST]'
6253
6254# Regexp to match symbols that can be accessed directly from C.
6255sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6256
6257# Transform an extracted symbol line into a proper C declaration
6258lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6259
6260# Transform an extracted symbol line into symbol name and symbol address
6261lt_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'"
6262
6263# Define system-specific variables.
6264case $host_os in
6265aix*)
6266  symcode='[BCDT]'
6267  ;;
6268cygwin* | mingw* | pw32*)
6269  symcode='[ABCDGISTW]'
6270  ;;
6271hpux*) # Its linker distinguishes data from code symbols
6272  if test "$host_cpu" = ia64; then
6273    symcode='[ABCDEGRST]'
6274  fi
6275  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6276  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'"
6277  ;;
6278linux* | k*bsd*-gnu)
6279  if test "$host_cpu" = ia64; then
6280    symcode='[ABCDGIRSTW]'
6281    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6282    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'"
6283  fi
6284  ;;
6285irix* | nonstopux*)
6286  symcode='[BCDEGRST]'
6287  ;;
6288osf*)
6289  symcode='[BCDEGQRST]'
6290  ;;
6291solaris*)
6292  symcode='[BDRT]'
6293  ;;
6294sco3.2v5*)
6295  symcode='[DT]'
6296  ;;
6297sysv4.2uw2*)
6298  symcode='[DT]'
6299  ;;
6300sysv5* | sco5v6* | unixware* | OpenUNIX*)
6301  symcode='[ABDT]'
6302  ;;
6303sysv4)
6304  symcode='[DFNSTU]'
6305  ;;
6306esac
6307
6308# Handle CRLF in mingw tool chain
6309opt_cr=
6310case $build_os in
6311mingw*)
6312  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6313  ;;
6314esac
6315
6316# If we're using GNU nm, then use its standard symbol codes.
6317case `$NM -V 2>&1` in
6318*GNU* | *'with BFD'*)
6319  symcode='[ABCDGIRSTW]' ;;
6320esac
6321
6322# Try without a prefix undercore, then with it.
6323for ac_symprfx in "" "_"; do
6324
6325  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6326  symxfrm="\\1 $ac_symprfx\\2 \\2"
6327
6328  # Write the raw and C identifiers.
6329  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6330
6331  # Check to see that the pipe works correctly.
6332  pipe_works=no
6333
6334  rm -f conftest*
6335  cat > conftest.$ac_ext <<EOF
6336#ifdef __cplusplus
6337extern "C" {
6338#endif
6339char nm_test_var;
6340void nm_test_func(){}
6341#ifdef __cplusplus
6342}
6343#endif
6344int main(){nm_test_var='a';nm_test_func();return(0);}
6345EOF
6346
6347  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6348  (eval $ac_compile) 2>&5
6349  ac_status=$?
6350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351  (exit $ac_status); }; then
6352    # Now try to grab the symbols.
6353    nlist=conftest.nm
6354    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6355  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6356  ac_status=$?
6357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358  (exit $ac_status); } && test -s "$nlist"; then
6359      # Try sorting and uniquifying the output.
6360      if sort "$nlist" | uniq > "$nlist"T; then
6361	mv -f "$nlist"T "$nlist"
6362      else
6363	rm -f "$nlist"T
6364      fi
6365
6366      # Make sure that we snagged all the symbols we need.
6367      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6368	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6369	  cat <<EOF > conftest.$ac_ext
6370#ifdef __cplusplus
6371extern "C" {
6372#endif
6373
6374EOF
6375	  # Now generate the symbol file.
6376	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6377
6378	  cat <<EOF >> conftest.$ac_ext
6379#if defined (__STDC__) && __STDC__
6380# define lt_ptr_t void *
6381#else
6382# define lt_ptr_t char *
6383# define const
6384#endif
6385
6386/* The mapping between symbol names and symbols. */
6387const struct {
6388  const char *name;
6389  lt_ptr_t address;
6390}
6391lt_preloaded_symbols[] =
6392{
6393EOF
6394	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6395	  cat <<\EOF >> conftest.$ac_ext
6396  {0, (lt_ptr_t) 0}
6397};
6398
6399#ifdef __cplusplus
6400}
6401#endif
6402EOF
6403	  # Now try linking the two files.
6404	  mv conftest.$ac_objext conftstm.$ac_objext
6405	  lt_save_LIBS="$LIBS"
6406	  lt_save_CFLAGS="$CFLAGS"
6407	  LIBS="conftstm.$ac_objext"
6408	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6409	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6410  (eval $ac_link) 2>&5
6411  ac_status=$?
6412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6414	    pipe_works=yes
6415	  fi
6416	  LIBS="$lt_save_LIBS"
6417	  CFLAGS="$lt_save_CFLAGS"
6418	else
6419	  echo "cannot find nm_test_func in $nlist" >&5
6420	fi
6421      else
6422	echo "cannot find nm_test_var in $nlist" >&5
6423      fi
6424    else
6425      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6426    fi
6427  else
6428    echo "$progname: failed program was:" >&5
6429    cat conftest.$ac_ext >&5
6430  fi
6431  rm -rf conftest* conftst*
6432
6433  # Do not use the global_symbol_pipe unless it works.
6434  if test "$pipe_works" = yes; then
6435    break
6436  else
6437    lt_cv_sys_global_symbol_pipe=
6438  fi
6439done
6440
6441fi
6442
6443if test -z "$lt_cv_sys_global_symbol_pipe"; then
6444  lt_cv_sys_global_symbol_to_cdecl=
6445fi
6446if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6447  { echo "$as_me:$LINENO: result: failed" >&5
6448echo "${ECHO_T}failed" >&6; }
6449else
6450  { echo "$as_me:$LINENO: result: ok" >&5
6451echo "${ECHO_T}ok" >&6; }
6452fi
6453
6454{ echo "$as_me:$LINENO: checking for objdir" >&5
6455echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6456if test "${lt_cv_objdir+set}" = set; then
6457  echo $ECHO_N "(cached) $ECHO_C" >&6
6458else
6459  rm -f .libs 2>/dev/null
6460mkdir .libs 2>/dev/null
6461if test -d .libs; then
6462  lt_cv_objdir=.libs
6463else
6464  # MS-DOS does not allow filenames that begin with a dot.
6465  lt_cv_objdir=_libs
6466fi
6467rmdir .libs 2>/dev/null
6468fi
6469{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6470echo "${ECHO_T}$lt_cv_objdir" >&6; }
6471objdir=$lt_cv_objdir
6472
6473
6474
6475
6476
6477case $host_os in
6478aix3*)
6479  # AIX sometimes has problems with the GCC collect2 program.  For some
6480  # reason, if we set the COLLECT_NAMES environment variable, the problems
6481  # vanish in a puff of smoke.
6482  if test "X${COLLECT_NAMES+set}" != Xset; then
6483    COLLECT_NAMES=
6484    export COLLECT_NAMES
6485  fi
6486  ;;
6487esac
6488
6489# Sed substitution that helps us do robust quoting.  It backslashifies
6490# metacharacters that are still active within double-quoted strings.
6491Xsed='sed -e 1s/^X//'
6492sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6493
6494# Same as above, but do not quote variable references.
6495double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6496
6497# Sed substitution to delay expansion of an escaped shell variable in a
6498# double_quote_subst'ed string.
6499delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6500
6501# Sed substitution to avoid accidental globbing in evaled expressions
6502no_glob_subst='s/\*/\\\*/g'
6503
6504# Constants:
6505rm="rm -f"
6506
6507# Global variables:
6508default_ofile=libtool
6509can_build_shared=yes
6510
6511# All known linkers require a `.a' archive for static linking (except MSVC,
6512# which needs '.lib').
6513libext=a
6514ltmain="$ac_aux_dir/ltmain.sh"
6515ofile="$default_ofile"
6516with_gnu_ld="$lt_cv_prog_gnu_ld"
6517
6518if test -n "$ac_tool_prefix"; then
6519  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6520set dummy ${ac_tool_prefix}ar; ac_word=$2
6521{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6523if test "${ac_cv_prog_AR+set}" = set; then
6524  echo $ECHO_N "(cached) $ECHO_C" >&6
6525else
6526  if test -n "$AR"; then
6527  ac_cv_prog_AR="$AR" # Let the user override the test.
6528else
6529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530for as_dir in $PATH
6531do
6532  IFS=$as_save_IFS
6533  test -z "$as_dir" && as_dir=.
6534  for ac_exec_ext in '' $ac_executable_extensions; do
6535  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6536    ac_cv_prog_AR="${ac_tool_prefix}ar"
6537    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6538    break 2
6539  fi
6540done
6541done
6542IFS=$as_save_IFS
6543
6544fi
6545fi
6546AR=$ac_cv_prog_AR
6547if test -n "$AR"; then
6548  { echo "$as_me:$LINENO: result: $AR" >&5
6549echo "${ECHO_T}$AR" >&6; }
6550else
6551  { echo "$as_me:$LINENO: result: no" >&5
6552echo "${ECHO_T}no" >&6; }
6553fi
6554
6555
6556fi
6557if test -z "$ac_cv_prog_AR"; then
6558  ac_ct_AR=$AR
6559  # Extract the first word of "ar", so it can be a program name with args.
6560set dummy ar; ac_word=$2
6561{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6563if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6564  echo $ECHO_N "(cached) $ECHO_C" >&6
6565else
6566  if test -n "$ac_ct_AR"; then
6567  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6568else
6569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570for as_dir in $PATH
6571do
6572  IFS=$as_save_IFS
6573  test -z "$as_dir" && as_dir=.
6574  for ac_exec_ext in '' $ac_executable_extensions; do
6575  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6576    ac_cv_prog_ac_ct_AR="ar"
6577    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6578    break 2
6579  fi
6580done
6581done
6582IFS=$as_save_IFS
6583
6584fi
6585fi
6586ac_ct_AR=$ac_cv_prog_ac_ct_AR
6587if test -n "$ac_ct_AR"; then
6588  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6589echo "${ECHO_T}$ac_ct_AR" >&6; }
6590else
6591  { echo "$as_me:$LINENO: result: no" >&5
6592echo "${ECHO_T}no" >&6; }
6593fi
6594
6595  if test "x$ac_ct_AR" = x; then
6596    AR="false"
6597  else
6598    case $cross_compiling:$ac_tool_warned in
6599yes:)
6600{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6601whose name does not start with the host triplet.  If you think this
6602configuration is useful to you, please write to autoconf@gnu.org." >&5
6603echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6604whose name does not start with the host triplet.  If you think this
6605configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6606ac_tool_warned=yes ;;
6607esac
6608    AR=$ac_ct_AR
6609  fi
6610else
6611  AR="$ac_cv_prog_AR"
6612fi
6613
6614if test -n "$ac_tool_prefix"; then
6615  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6616set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6617{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6619if test "${ac_cv_prog_RANLIB+set}" = set; then
6620  echo $ECHO_N "(cached) $ECHO_C" >&6
6621else
6622  if test -n "$RANLIB"; then
6623  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6624else
6625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626for as_dir in $PATH
6627do
6628  IFS=$as_save_IFS
6629  test -z "$as_dir" && as_dir=.
6630  for ac_exec_ext in '' $ac_executable_extensions; do
6631  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6632    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6633    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6634    break 2
6635  fi
6636done
6637done
6638IFS=$as_save_IFS
6639
6640fi
6641fi
6642RANLIB=$ac_cv_prog_RANLIB
6643if test -n "$RANLIB"; then
6644  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6645echo "${ECHO_T}$RANLIB" >&6; }
6646else
6647  { echo "$as_me:$LINENO: result: no" >&5
6648echo "${ECHO_T}no" >&6; }
6649fi
6650
6651
6652fi
6653if test -z "$ac_cv_prog_RANLIB"; then
6654  ac_ct_RANLIB=$RANLIB
6655  # Extract the first word of "ranlib", so it can be a program name with args.
6656set dummy ranlib; ac_word=$2
6657{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6659if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6660  echo $ECHO_N "(cached) $ECHO_C" >&6
6661else
6662  if test -n "$ac_ct_RANLIB"; then
6663  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6664else
6665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666for as_dir in $PATH
6667do
6668  IFS=$as_save_IFS
6669  test -z "$as_dir" && as_dir=.
6670  for ac_exec_ext in '' $ac_executable_extensions; do
6671  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6672    ac_cv_prog_ac_ct_RANLIB="ranlib"
6673    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6674    break 2
6675  fi
6676done
6677done
6678IFS=$as_save_IFS
6679
6680fi
6681fi
6682ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6683if test -n "$ac_ct_RANLIB"; then
6684  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6685echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6686else
6687  { echo "$as_me:$LINENO: result: no" >&5
6688echo "${ECHO_T}no" >&6; }
6689fi
6690
6691  if test "x$ac_ct_RANLIB" = x; then
6692    RANLIB=":"
6693  else
6694    case $cross_compiling:$ac_tool_warned in
6695yes:)
6696{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6697whose name does not start with the host triplet.  If you think this
6698configuration is useful to you, please write to autoconf@gnu.org." >&5
6699echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6700whose name does not start with the host triplet.  If you think this
6701configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6702ac_tool_warned=yes ;;
6703esac
6704    RANLIB=$ac_ct_RANLIB
6705  fi
6706else
6707  RANLIB="$ac_cv_prog_RANLIB"
6708fi
6709
6710if test -n "$ac_tool_prefix"; then
6711  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6712set dummy ${ac_tool_prefix}strip; ac_word=$2
6713{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6715if test "${ac_cv_prog_STRIP+set}" = set; then
6716  echo $ECHO_N "(cached) $ECHO_C" >&6
6717else
6718  if test -n "$STRIP"; then
6719  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6720else
6721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722for as_dir in $PATH
6723do
6724  IFS=$as_save_IFS
6725  test -z "$as_dir" && as_dir=.
6726  for ac_exec_ext in '' $ac_executable_extensions; do
6727  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6728    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6729    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6730    break 2
6731  fi
6732done
6733done
6734IFS=$as_save_IFS
6735
6736fi
6737fi
6738STRIP=$ac_cv_prog_STRIP
6739if test -n "$STRIP"; then
6740  { echo "$as_me:$LINENO: result: $STRIP" >&5
6741echo "${ECHO_T}$STRIP" >&6; }
6742else
6743  { echo "$as_me:$LINENO: result: no" >&5
6744echo "${ECHO_T}no" >&6; }
6745fi
6746
6747
6748fi
6749if test -z "$ac_cv_prog_STRIP"; then
6750  ac_ct_STRIP=$STRIP
6751  # Extract the first word of "strip", so it can be a program name with args.
6752set dummy strip; ac_word=$2
6753{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6755if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6756  echo $ECHO_N "(cached) $ECHO_C" >&6
6757else
6758  if test -n "$ac_ct_STRIP"; then
6759  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6760else
6761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762for as_dir in $PATH
6763do
6764  IFS=$as_save_IFS
6765  test -z "$as_dir" && as_dir=.
6766  for ac_exec_ext in '' $ac_executable_extensions; do
6767  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6768    ac_cv_prog_ac_ct_STRIP="strip"
6769    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6770    break 2
6771  fi
6772done
6773done
6774IFS=$as_save_IFS
6775
6776fi
6777fi
6778ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6779if test -n "$ac_ct_STRIP"; then
6780  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6781echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6782else
6783  { echo "$as_me:$LINENO: result: no" >&5
6784echo "${ECHO_T}no" >&6; }
6785fi
6786
6787  if test "x$ac_ct_STRIP" = x; then
6788    STRIP=":"
6789  else
6790    case $cross_compiling:$ac_tool_warned in
6791yes:)
6792{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6793whose name does not start with the host triplet.  If you think this
6794configuration is useful to you, please write to autoconf@gnu.org." >&5
6795echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6796whose name does not start with the host triplet.  If you think this
6797configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6798ac_tool_warned=yes ;;
6799esac
6800    STRIP=$ac_ct_STRIP
6801  fi
6802else
6803  STRIP="$ac_cv_prog_STRIP"
6804fi
6805
6806
6807old_CC="$CC"
6808old_CFLAGS="$CFLAGS"
6809
6810# Set sane defaults for various variables
6811test -z "$AR" && AR=ar
6812test -z "$AR_FLAGS" && AR_FLAGS=cru
6813test -z "$AS" && AS=as
6814test -z "$CC" && CC=cc
6815test -z "$LTCC" && LTCC=$CC
6816test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6817test -z "$DLLTOOL" && DLLTOOL=dlltool
6818test -z "$LD" && LD=ld
6819test -z "$LN_S" && LN_S="ln -s"
6820test -z "$MAGIC_CMD" && MAGIC_CMD=file
6821test -z "$NM" && NM=nm
6822test -z "$SED" && SED=sed
6823test -z "$OBJDUMP" && OBJDUMP=objdump
6824test -z "$RANLIB" && RANLIB=:
6825test -z "$STRIP" && STRIP=:
6826test -z "$ac_objext" && ac_objext=o
6827
6828# Determine commands to create old-style static archives.
6829old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6830old_postinstall_cmds='chmod 644 $oldlib'
6831old_postuninstall_cmds=
6832
6833if test -n "$RANLIB"; then
6834  case $host_os in
6835  openbsd*)
6836    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6837    ;;
6838  *)
6839    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6840    ;;
6841  esac
6842  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6843fi
6844
6845for cc_temp in $compiler""; do
6846  case $cc_temp in
6847    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6848    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6849    \-*) ;;
6850    *) break;;
6851  esac
6852done
6853cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6854
6855
6856# Only perform the check for file, if the check method requires it
6857case $deplibs_check_method in
6858file_magic*)
6859  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6860    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6861echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6862if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6863  echo $ECHO_N "(cached) $ECHO_C" >&6
6864else
6865  case $MAGIC_CMD in
6866[\\/*] |  ?:[\\/]*)
6867  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6868  ;;
6869*)
6870  lt_save_MAGIC_CMD="$MAGIC_CMD"
6871  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6872  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6873  for ac_dir in $ac_dummy; do
6874    IFS="$lt_save_ifs"
6875    test -z "$ac_dir" && ac_dir=.
6876    if test -f $ac_dir/${ac_tool_prefix}file; then
6877      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6878      if test -n "$file_magic_test_file"; then
6879	case $deplibs_check_method in
6880	"file_magic "*)
6881	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6882	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6883	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6884	    $EGREP "$file_magic_regex" > /dev/null; then
6885	    :
6886	  else
6887	    cat <<EOF 1>&2
6888
6889*** Warning: the command libtool uses to detect shared libraries,
6890*** $file_magic_cmd, produces output that libtool cannot recognize.
6891*** The result is that libtool may fail to recognize shared libraries
6892*** as such.  This will affect the creation of libtool libraries that
6893*** depend on shared libraries, but programs linked with such libtool
6894*** libraries will work regardless of this problem.  Nevertheless, you
6895*** may want to report the problem to your system manager and/or to
6896*** bug-libtool@gnu.org
6897
6898EOF
6899	  fi ;;
6900	esac
6901      fi
6902      break
6903    fi
6904  done
6905  IFS="$lt_save_ifs"
6906  MAGIC_CMD="$lt_save_MAGIC_CMD"
6907  ;;
6908esac
6909fi
6910
6911MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6912if test -n "$MAGIC_CMD"; then
6913  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6914echo "${ECHO_T}$MAGIC_CMD" >&6; }
6915else
6916  { echo "$as_me:$LINENO: result: no" >&5
6917echo "${ECHO_T}no" >&6; }
6918fi
6919
6920if test -z "$lt_cv_path_MAGIC_CMD"; then
6921  if test -n "$ac_tool_prefix"; then
6922    { echo "$as_me:$LINENO: checking for file" >&5
6923echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6924if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6925  echo $ECHO_N "(cached) $ECHO_C" >&6
6926else
6927  case $MAGIC_CMD in
6928[\\/*] |  ?:[\\/]*)
6929  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6930  ;;
6931*)
6932  lt_save_MAGIC_CMD="$MAGIC_CMD"
6933  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6934  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6935  for ac_dir in $ac_dummy; do
6936    IFS="$lt_save_ifs"
6937    test -z "$ac_dir" && ac_dir=.
6938    if test -f $ac_dir/file; then
6939      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6940      if test -n "$file_magic_test_file"; then
6941	case $deplibs_check_method in
6942	"file_magic "*)
6943	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6944	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6945	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6946	    $EGREP "$file_magic_regex" > /dev/null; then
6947	    :
6948	  else
6949	    cat <<EOF 1>&2
6950
6951*** Warning: the command libtool uses to detect shared libraries,
6952*** $file_magic_cmd, produces output that libtool cannot recognize.
6953*** The result is that libtool may fail to recognize shared libraries
6954*** as such.  This will affect the creation of libtool libraries that
6955*** depend on shared libraries, but programs linked with such libtool
6956*** libraries will work regardless of this problem.  Nevertheless, you
6957*** may want to report the problem to your system manager and/or to
6958*** bug-libtool@gnu.org
6959
6960EOF
6961	  fi ;;
6962	esac
6963      fi
6964      break
6965    fi
6966  done
6967  IFS="$lt_save_ifs"
6968  MAGIC_CMD="$lt_save_MAGIC_CMD"
6969  ;;
6970esac
6971fi
6972
6973MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6974if test -n "$MAGIC_CMD"; then
6975  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6976echo "${ECHO_T}$MAGIC_CMD" >&6; }
6977else
6978  { echo "$as_me:$LINENO: result: no" >&5
6979echo "${ECHO_T}no" >&6; }
6980fi
6981
6982  else
6983    MAGIC_CMD=:
6984  fi
6985fi
6986
6987  fi
6988  ;;
6989esac
6990
6991
6992  case $host_os in
6993    rhapsody* | darwin*)
6994    if test -n "$ac_tool_prefix"; then
6995  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6996set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6997{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6999if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7000  echo $ECHO_N "(cached) $ECHO_C" >&6
7001else
7002  if test -n "$DSYMUTIL"; then
7003  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7004else
7005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006for as_dir in $PATH
7007do
7008  IFS=$as_save_IFS
7009  test -z "$as_dir" && as_dir=.
7010  for ac_exec_ext in '' $ac_executable_extensions; do
7011  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7012    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7013    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7014    break 2
7015  fi
7016done
7017done
7018IFS=$as_save_IFS
7019
7020fi
7021fi
7022DSYMUTIL=$ac_cv_prog_DSYMUTIL
7023if test -n "$DSYMUTIL"; then
7024  { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7025echo "${ECHO_T}$DSYMUTIL" >&6; }
7026else
7027  { echo "$as_me:$LINENO: result: no" >&5
7028echo "${ECHO_T}no" >&6; }
7029fi
7030
7031
7032fi
7033if test -z "$ac_cv_prog_DSYMUTIL"; then
7034  ac_ct_DSYMUTIL=$DSYMUTIL
7035  # Extract the first word of "dsymutil", so it can be a program name with args.
7036set dummy dsymutil; ac_word=$2
7037{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7039if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7040  echo $ECHO_N "(cached) $ECHO_C" >&6
7041else
7042  if test -n "$ac_ct_DSYMUTIL"; then
7043  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7044else
7045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046for as_dir in $PATH
7047do
7048  IFS=$as_save_IFS
7049  test -z "$as_dir" && as_dir=.
7050  for ac_exec_ext in '' $ac_executable_extensions; do
7051  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7052    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7053    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7054    break 2
7055  fi
7056done
7057done
7058IFS=$as_save_IFS
7059
7060fi
7061fi
7062ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7063if test -n "$ac_ct_DSYMUTIL"; then
7064  { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7065echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7066else
7067  { echo "$as_me:$LINENO: result: no" >&5
7068echo "${ECHO_T}no" >&6; }
7069fi
7070
7071  if test "x$ac_ct_DSYMUTIL" = x; then
7072    DSYMUTIL=":"
7073  else
7074    case $cross_compiling:$ac_tool_warned in
7075yes:)
7076{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7077whose name does not start with the host triplet.  If you think this
7078configuration is useful to you, please write to autoconf@gnu.org." >&5
7079echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7080whose name does not start with the host triplet.  If you think this
7081configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7082ac_tool_warned=yes ;;
7083esac
7084    DSYMUTIL=$ac_ct_DSYMUTIL
7085  fi
7086else
7087  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7088fi
7089
7090    if test -n "$ac_tool_prefix"; then
7091  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7092set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7093{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7095if test "${ac_cv_prog_NMEDIT+set}" = set; then
7096  echo $ECHO_N "(cached) $ECHO_C" >&6
7097else
7098  if test -n "$NMEDIT"; then
7099  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7100else
7101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102for as_dir in $PATH
7103do
7104  IFS=$as_save_IFS
7105  test -z "$as_dir" && as_dir=.
7106  for ac_exec_ext in '' $ac_executable_extensions; do
7107  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7108    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7109    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7110    break 2
7111  fi
7112done
7113done
7114IFS=$as_save_IFS
7115
7116fi
7117fi
7118NMEDIT=$ac_cv_prog_NMEDIT
7119if test -n "$NMEDIT"; then
7120  { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7121echo "${ECHO_T}$NMEDIT" >&6; }
7122else
7123  { echo "$as_me:$LINENO: result: no" >&5
7124echo "${ECHO_T}no" >&6; }
7125fi
7126
7127
7128fi
7129if test -z "$ac_cv_prog_NMEDIT"; then
7130  ac_ct_NMEDIT=$NMEDIT
7131  # Extract the first word of "nmedit", so it can be a program name with args.
7132set dummy nmedit; ac_word=$2
7133{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7135if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7136  echo $ECHO_N "(cached) $ECHO_C" >&6
7137else
7138  if test -n "$ac_ct_NMEDIT"; then
7139  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7140else
7141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142for as_dir in $PATH
7143do
7144  IFS=$as_save_IFS
7145  test -z "$as_dir" && as_dir=.
7146  for ac_exec_ext in '' $ac_executable_extensions; do
7147  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7148    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7149    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7150    break 2
7151  fi
7152done
7153done
7154IFS=$as_save_IFS
7155
7156fi
7157fi
7158ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7159if test -n "$ac_ct_NMEDIT"; then
7160  { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7161echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7162else
7163  { echo "$as_me:$LINENO: result: no" >&5
7164echo "${ECHO_T}no" >&6; }
7165fi
7166
7167  if test "x$ac_ct_NMEDIT" = x; then
7168    NMEDIT=":"
7169  else
7170    case $cross_compiling:$ac_tool_warned in
7171yes:)
7172{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7173whose name does not start with the host triplet.  If you think this
7174configuration is useful to you, please write to autoconf@gnu.org." >&5
7175echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7176whose name does not start with the host triplet.  If you think this
7177configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7178ac_tool_warned=yes ;;
7179esac
7180    NMEDIT=$ac_ct_NMEDIT
7181  fi
7182else
7183  NMEDIT="$ac_cv_prog_NMEDIT"
7184fi
7185
7186
7187    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7188echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7189if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7190  echo $ECHO_N "(cached) $ECHO_C" >&6
7191else
7192  lt_cv_apple_cc_single_mod=no
7193      if test -z "${LT_MULTI_MODULE}"; then
7194   # By default we will add the -single_module flag. You can override
7195   # by either setting the environment variable LT_MULTI_MODULE
7196   # non-empty at configure time, or by adding -multi_module to the
7197   # link flags.
7198   echo "int foo(void){return 1;}" > conftest.c
7199   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7200     -dynamiclib ${wl}-single_module conftest.c
7201   if test -f libconftest.dylib; then
7202     lt_cv_apple_cc_single_mod=yes
7203     rm -rf libconftest.dylib*
7204   fi
7205   rm conftest.c
7206      fi
7207fi
7208{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7209echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7210    { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7211echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7212if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7213  echo $ECHO_N "(cached) $ECHO_C" >&6
7214else
7215  lt_cv_ld_exported_symbols_list=no
7216      save_LDFLAGS=$LDFLAGS
7217      echo "_main" > conftest.sym
7218      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7219      cat >conftest.$ac_ext <<_ACEOF
7220/* confdefs.h.  */
7221_ACEOF
7222cat confdefs.h >>conftest.$ac_ext
7223cat >>conftest.$ac_ext <<_ACEOF
7224/* end confdefs.h.  */
7225
7226int
7227main ()
7228{
7229
7230  ;
7231  return 0;
7232}
7233_ACEOF
7234rm -f conftest.$ac_objext conftest$ac_exeext
7235if { (ac_try="$ac_link"
7236case "(($ac_try" in
7237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7238  *) ac_try_echo=$ac_try;;
7239esac
7240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7241  (eval "$ac_link") 2>conftest.er1
7242  ac_status=$?
7243  grep -v '^ *+' conftest.er1 >conftest.err
7244  rm -f conftest.er1
7245  cat conftest.err >&5
7246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247  (exit $ac_status); } && {
7248	 test -z "$ac_c_werror_flag" ||
7249	 test ! -s conftest.err
7250       } && test -s conftest$ac_exeext &&
7251       $as_test_x conftest$ac_exeext; then
7252  lt_cv_ld_exported_symbols_list=yes
7253else
7254  echo "$as_me: failed program was:" >&5
7255sed 's/^/| /' conftest.$ac_ext >&5
7256
7257	lt_cv_ld_exported_symbols_list=no
7258fi
7259
7260rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7261      conftest$ac_exeext conftest.$ac_ext
7262   LDFLAGS="$save_LDFLAGS"
7263
7264fi
7265{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7266echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7267    case $host_os in
7268    rhapsody* | darwin1.[0123])
7269      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7270    darwin1.*)
7271     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7272    darwin*)
7273      # if running on 10.5 or later, the deployment target defaults
7274      # to the OS version, if on x86, and 10.4, the deployment
7275      # target defaults to 10.4. Don't you love it?
7276      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7277   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7278     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7279   10.[012]*)
7280     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7281   10.*)
7282     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7283      esac
7284    ;;
7285  esac
7286    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7287      _lt_dar_single_mod='$single_module'
7288    fi
7289    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7290      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7291    else
7292      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7293    fi
7294    if test "$DSYMUTIL" != ":"; then
7295      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7296    else
7297      _lt_dsymutil=
7298    fi
7299    ;;
7300  esac
7301
7302
7303enable_dlopen=no
7304enable_win32_dll=no
7305
7306# Check whether --enable-libtool-lock was given.
7307if test "${enable_libtool_lock+set}" = set; then
7308  enableval=$enable_libtool_lock;
7309fi
7310
7311test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7312
7313
7314# Check whether --with-pic was given.
7315if test "${with_pic+set}" = set; then
7316  withval=$with_pic; pic_mode="$withval"
7317else
7318  pic_mode=default
7319fi
7320
7321test -z "$pic_mode" && pic_mode=default
7322
7323# Use C for the default configuration in the libtool script
7324tagname=
7325lt_save_CC="$CC"
7326ac_ext=c
7327ac_cpp='$CPP $CPPFLAGS'
7328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7330ac_compiler_gnu=$ac_cv_c_compiler_gnu
7331
7332
7333# Source file extension for C test sources.
7334ac_ext=c
7335
7336# Object file extension for compiled C test sources.
7337objext=o
7338objext=$objext
7339
7340# Code to be used in simple compile tests
7341lt_simple_compile_test_code="int some_variable = 0;"
7342
7343# Code to be used in simple link tests
7344lt_simple_link_test_code='int main(){return(0);}'
7345
7346
7347# If no C compiler was specified, use CC.
7348LTCC=${LTCC-"$CC"}
7349
7350# If no C compiler flags were specified, use CFLAGS.
7351LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7352
7353# Allow CC to be a program name with arguments.
7354compiler=$CC
7355
7356
7357# save warnings/boilerplate of simple test code
7358ac_outfile=conftest.$ac_objext
7359echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7360eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7361_lt_compiler_boilerplate=`cat conftest.err`
7362$rm conftest*
7363
7364ac_outfile=conftest.$ac_objext
7365echo "$lt_simple_link_test_code" >conftest.$ac_ext
7366eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7367_lt_linker_boilerplate=`cat conftest.err`
7368$rm -r conftest*
7369
7370
7371
7372lt_prog_compiler_no_builtin_flag=
7373
7374if test "$GCC" = yes; then
7375  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7376
7377
7378{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7379echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7380if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7381  echo $ECHO_N "(cached) $ECHO_C" >&6
7382else
7383  lt_cv_prog_compiler_rtti_exceptions=no
7384  ac_outfile=conftest.$ac_objext
7385   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7386   lt_compiler_flag="-fno-rtti -fno-exceptions"
7387   # Insert the option either (1) after the last *FLAGS variable, or
7388   # (2) before a word containing "conftest.", or (3) at the end.
7389   # Note that $ac_compile itself does not contain backslashes and begins
7390   # with a dollar sign (not a hyphen), so the echo should work correctly.
7391   # The option is referenced via a variable to avoid confusing sed.
7392   lt_compile=`echo "$ac_compile" | $SED \
7393   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7394   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7395   -e 's:$: $lt_compiler_flag:'`
7396   (eval echo "\"\$as_me:7396: $lt_compile\"" >&5)
7397   (eval "$lt_compile" 2>conftest.err)
7398   ac_status=$?
7399   cat conftest.err >&5
7400   echo "$as_me:7400: \$? = $ac_status" >&5
7401   if (exit $ac_status) && test -s "$ac_outfile"; then
7402     # The compiler can only warn and ignore the option if not recognized
7403     # So say no if there are warnings other than the usual output.
7404     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7405     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7406     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7407       lt_cv_prog_compiler_rtti_exceptions=yes
7408     fi
7409   fi
7410   $rm conftest*
7411
7412fi
7413{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7414echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7415
7416if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7417    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7418else
7419    :
7420fi
7421
7422fi
7423
7424lt_prog_compiler_wl=
7425lt_prog_compiler_pic=
7426lt_prog_compiler_static=
7427
7428{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7429echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7430
7431  if test "$GCC" = yes; then
7432    lt_prog_compiler_wl='-Wl,'
7433    lt_prog_compiler_static='-static'
7434
7435    case $host_os in
7436      aix*)
7437      # All AIX code is PIC.
7438      if test "$host_cpu" = ia64; then
7439	# AIX 5 now supports IA64 processor
7440	lt_prog_compiler_static='-Bstatic'
7441      fi
7442      ;;
7443
7444    amigaos*)
7445      # FIXME: we need at least 68020 code to build shared libraries, but
7446      # adding the `-m68020' flag to GCC prevents building anything better,
7447      # like `-m68040'.
7448      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7449      ;;
7450
7451    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7452      # PIC is the default for these OSes.
7453      ;;
7454
7455    mingw* | cygwin* | pw32* | os2*)
7456      # This hack is so that the source file can tell whether it is being
7457      # built for inclusion in a dll (and should export symbols for example).
7458      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7459      # (--disable-auto-import) libraries
7460      lt_prog_compiler_pic='-DDLL_EXPORT'
7461      ;;
7462
7463    darwin* | rhapsody*)
7464      # PIC is the default on this platform
7465      # Common symbols not allowed in MH_DYLIB files
7466      lt_prog_compiler_pic='-fno-common'
7467      ;;
7468
7469    interix[3-9]*)
7470      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7471      # Instead, we relocate shared libraries at runtime.
7472      ;;
7473
7474    msdosdjgpp*)
7475      # Just because we use GCC doesn't mean we suddenly get shared libraries
7476      # on systems that don't support them.
7477      lt_prog_compiler_can_build_shared=no
7478      enable_shared=no
7479      ;;
7480
7481    sysv4*MP*)
7482      if test -d /usr/nec; then
7483	lt_prog_compiler_pic=-Kconform_pic
7484      fi
7485      ;;
7486
7487    hpux*)
7488      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7489      # not for PA HP-UX.
7490      case $host_cpu in
7491      hppa*64*|ia64*)
7492	# +Z the default
7493	;;
7494      *)
7495	lt_prog_compiler_pic='-fPIC'
7496	;;
7497      esac
7498      ;;
7499
7500    *)
7501      lt_prog_compiler_pic='-fPIC'
7502      ;;
7503    esac
7504  else
7505    # PORTME Check for flag to pass linker flags through the system compiler.
7506    case $host_os in
7507    aix*)
7508      lt_prog_compiler_wl='-Wl,'
7509      if test "$host_cpu" = ia64; then
7510	# AIX 5 now supports IA64 processor
7511	lt_prog_compiler_static='-Bstatic'
7512      else
7513	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7514      fi
7515      ;;
7516      darwin*)
7517        # PIC is the default on this platform
7518        # Common symbols not allowed in MH_DYLIB files
7519       case $cc_basename in
7520         xlc*)
7521         lt_prog_compiler_pic='-qnocommon'
7522         lt_prog_compiler_wl='-Wl,'
7523         ;;
7524       esac
7525       ;;
7526
7527    mingw* | cygwin* | pw32* | os2*)
7528      # This hack is so that the source file can tell whether it is being
7529      # built for inclusion in a dll (and should export symbols for example).
7530      lt_prog_compiler_pic='-DDLL_EXPORT'
7531      ;;
7532
7533    hpux9* | hpux10* | hpux11*)
7534      lt_prog_compiler_wl='-Wl,'
7535      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7536      # not for PA HP-UX.
7537      case $host_cpu in
7538      hppa*64*|ia64*)
7539	# +Z the default
7540	;;
7541      *)
7542	lt_prog_compiler_pic='+Z'
7543	;;
7544      esac
7545      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7546      lt_prog_compiler_static='${wl}-a ${wl}archive'
7547      ;;
7548
7549    irix5* | irix6* | nonstopux*)
7550      lt_prog_compiler_wl='-Wl,'
7551      # PIC (with -KPIC) is the default.
7552      lt_prog_compiler_static='-non_shared'
7553      ;;
7554
7555    newsos6)
7556      lt_prog_compiler_pic='-KPIC'
7557      lt_prog_compiler_static='-Bstatic'
7558      ;;
7559
7560    linux* | k*bsd*-gnu)
7561      case $cc_basename in
7562      icc* | ecc*)
7563	lt_prog_compiler_wl='-Wl,'
7564	lt_prog_compiler_pic='-KPIC'
7565	lt_prog_compiler_static='-static'
7566        ;;
7567      pgcc* | pgf77* | pgf90* | pgf95*)
7568        # Portland Group compilers (*not* the Pentium gcc compiler,
7569	# which looks to be a dead project)
7570	lt_prog_compiler_wl='-Wl,'
7571	lt_prog_compiler_pic='-fpic'
7572	lt_prog_compiler_static='-Bstatic'
7573        ;;
7574      ccc*)
7575        lt_prog_compiler_wl='-Wl,'
7576        # All Alpha code is PIC.
7577        lt_prog_compiler_static='-non_shared'
7578        ;;
7579      *)
7580        case `$CC -V 2>&1 | sed 5q` in
7581	*Sun\ C*)
7582	  # Sun C 5.9
7583	  lt_prog_compiler_pic='-KPIC'
7584	  lt_prog_compiler_static='-Bstatic'
7585	  lt_prog_compiler_wl='-Wl,'
7586	  ;;
7587	*Sun\ F*)
7588	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7589	  lt_prog_compiler_pic='-KPIC'
7590	  lt_prog_compiler_static='-Bstatic'
7591	  lt_prog_compiler_wl=''
7592	  ;;
7593	esac
7594	;;
7595      esac
7596      ;;
7597
7598    osf3* | osf4* | osf5*)
7599      lt_prog_compiler_wl='-Wl,'
7600      # All OSF/1 code is PIC.
7601      lt_prog_compiler_static='-non_shared'
7602      ;;
7603
7604    rdos*)
7605      lt_prog_compiler_static='-non_shared'
7606      ;;
7607
7608    solaris*)
7609      lt_prog_compiler_pic='-KPIC'
7610      lt_prog_compiler_static='-Bstatic'
7611      case $cc_basename in
7612      f77* | f90* | f95*)
7613	lt_prog_compiler_wl='-Qoption ld ';;
7614      *)
7615	lt_prog_compiler_wl='-Wl,';;
7616      esac
7617      ;;
7618
7619    sunos4*)
7620      lt_prog_compiler_wl='-Qoption ld '
7621      lt_prog_compiler_pic='-PIC'
7622      lt_prog_compiler_static='-Bstatic'
7623      ;;
7624
7625    sysv4 | sysv4.2uw2* | sysv4.3*)
7626      lt_prog_compiler_wl='-Wl,'
7627      lt_prog_compiler_pic='-KPIC'
7628      lt_prog_compiler_static='-Bstatic'
7629      ;;
7630
7631    sysv4*MP*)
7632      if test -d /usr/nec ;then
7633	lt_prog_compiler_pic='-Kconform_pic'
7634	lt_prog_compiler_static='-Bstatic'
7635      fi
7636      ;;
7637
7638    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7639      lt_prog_compiler_wl='-Wl,'
7640      lt_prog_compiler_pic='-KPIC'
7641      lt_prog_compiler_static='-Bstatic'
7642      ;;
7643
7644    unicos*)
7645      lt_prog_compiler_wl='-Wl,'
7646      lt_prog_compiler_can_build_shared=no
7647      ;;
7648
7649    uts4*)
7650      lt_prog_compiler_pic='-pic'
7651      lt_prog_compiler_static='-Bstatic'
7652      ;;
7653
7654    *)
7655      lt_prog_compiler_can_build_shared=no
7656      ;;
7657    esac
7658  fi
7659
7660{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7661echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7662
7663#
7664# Check to make sure the PIC flag actually works.
7665#
7666if test -n "$lt_prog_compiler_pic"; then
7667
7668{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7669echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7670if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7671  echo $ECHO_N "(cached) $ECHO_C" >&6
7672else
7673  lt_cv_prog_compiler_pic_works=no
7674  ac_outfile=conftest.$ac_objext
7675   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7676   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7677   # Insert the option either (1) after the last *FLAGS variable, or
7678   # (2) before a word containing "conftest.", or (3) at the end.
7679   # Note that $ac_compile itself does not contain backslashes and begins
7680   # with a dollar sign (not a hyphen), so the echo should work correctly.
7681   # The option is referenced via a variable to avoid confusing sed.
7682   lt_compile=`echo "$ac_compile" | $SED \
7683   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7684   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7685   -e 's:$: $lt_compiler_flag:'`
7686   (eval echo "\"\$as_me:7686: $lt_compile\"" >&5)
7687   (eval "$lt_compile" 2>conftest.err)
7688   ac_status=$?
7689   cat conftest.err >&5
7690   echo "$as_me:7690: \$? = $ac_status" >&5
7691   if (exit $ac_status) && test -s "$ac_outfile"; then
7692     # The compiler can only warn and ignore the option if not recognized
7693     # So say no if there are warnings other than the usual output.
7694     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7695     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7696     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7697       lt_cv_prog_compiler_pic_works=yes
7698     fi
7699   fi
7700   $rm conftest*
7701
7702fi
7703{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7704echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7705
7706if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7707    case $lt_prog_compiler_pic in
7708     "" | " "*) ;;
7709     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7710     esac
7711else
7712    lt_prog_compiler_pic=
7713     lt_prog_compiler_can_build_shared=no
7714fi
7715
7716fi
7717case $host_os in
7718  # For platforms which do not support PIC, -DPIC is meaningless:
7719  *djgpp*)
7720    lt_prog_compiler_pic=
7721    ;;
7722  *)
7723    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7724    ;;
7725esac
7726
7727#
7728# Check to make sure the static flag actually works.
7729#
7730wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7731{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7732echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7733if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7734  echo $ECHO_N "(cached) $ECHO_C" >&6
7735else
7736  lt_cv_prog_compiler_static_works=no
7737   save_LDFLAGS="$LDFLAGS"
7738   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7739   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7740   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7741     # The linker can only warn and ignore the option if not recognized
7742     # So say no if there are warnings
7743     if test -s conftest.err; then
7744       # Append any errors to the config.log.
7745       cat conftest.err 1>&5
7746       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7747       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7748       if diff conftest.exp conftest.er2 >/dev/null; then
7749         lt_cv_prog_compiler_static_works=yes
7750       fi
7751     else
7752       lt_cv_prog_compiler_static_works=yes
7753     fi
7754   fi
7755   $rm -r conftest*
7756   LDFLAGS="$save_LDFLAGS"
7757
7758fi
7759{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7760echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7761
7762if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7763    :
7764else
7765    lt_prog_compiler_static=
7766fi
7767
7768
7769{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7770echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7771if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7772  echo $ECHO_N "(cached) $ECHO_C" >&6
7773else
7774  lt_cv_prog_compiler_c_o=no
7775   $rm -r conftest 2>/dev/null
7776   mkdir conftest
7777   cd conftest
7778   mkdir out
7779   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7780
7781   lt_compiler_flag="-o out/conftest2.$ac_objext"
7782   # Insert the option either (1) after the last *FLAGS variable, or
7783   # (2) before a word containing "conftest.", or (3) at the end.
7784   # Note that $ac_compile itself does not contain backslashes and begins
7785   # with a dollar sign (not a hyphen), so the echo should work correctly.
7786   lt_compile=`echo "$ac_compile" | $SED \
7787   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7788   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7789   -e 's:$: $lt_compiler_flag:'`
7790   (eval echo "\"\$as_me:7790: $lt_compile\"" >&5)
7791   (eval "$lt_compile" 2>out/conftest.err)
7792   ac_status=$?
7793   cat out/conftest.err >&5
7794   echo "$as_me:7794: \$? = $ac_status" >&5
7795   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7796   then
7797     # The compiler can only warn and ignore the option if not recognized
7798     # So say no if there are warnings
7799     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7800     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7801     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7802       lt_cv_prog_compiler_c_o=yes
7803     fi
7804   fi
7805   chmod u+w . 2>&5
7806   $rm conftest*
7807   # SGI C++ compiler will create directory out/ii_files/ for
7808   # template instantiation
7809   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7810   $rm out/* && rmdir out
7811   cd ..
7812   rmdir conftest
7813   $rm conftest*
7814
7815fi
7816{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7817echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7818
7819
7820hard_links="nottested"
7821if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7822  # do not overwrite the value of need_locks provided by the user
7823  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7824echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7825  hard_links=yes
7826  $rm conftest*
7827  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7828  touch conftest.a
7829  ln conftest.a conftest.b 2>&5 || hard_links=no
7830  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7831  { echo "$as_me:$LINENO: result: $hard_links" >&5
7832echo "${ECHO_T}$hard_links" >&6; }
7833  if test "$hard_links" = no; then
7834    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7835echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7836    need_locks=warn
7837  fi
7838else
7839  need_locks=no
7840fi
7841
7842{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7843echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7844
7845  runpath_var=
7846  allow_undefined_flag=
7847  enable_shared_with_static_runtimes=no
7848  archive_cmds=
7849  archive_expsym_cmds=
7850  old_archive_From_new_cmds=
7851  old_archive_from_expsyms_cmds=
7852  export_dynamic_flag_spec=
7853  whole_archive_flag_spec=
7854  thread_safe_flag_spec=
7855  hardcode_libdir_flag_spec=
7856  hardcode_libdir_flag_spec_ld=
7857  hardcode_libdir_separator=
7858  hardcode_direct=no
7859  hardcode_minus_L=no
7860  hardcode_shlibpath_var=unsupported
7861  link_all_deplibs=unknown
7862  hardcode_automatic=no
7863  module_cmds=
7864  module_expsym_cmds=
7865  always_export_symbols=no
7866  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7867  # include_expsyms should be a list of space-separated symbols to be *always*
7868  # included in the symbol list
7869  include_expsyms=
7870  # exclude_expsyms can be an extended regexp of symbols to exclude
7871  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7872  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7873  # as well as any symbol that contains `d'.
7874  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7875  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7876  # platforms (ab)use it in PIC code, but their linkers get confused if
7877  # the symbol is explicitly referenced.  Since portable code cannot
7878  # rely on this symbol name, it's probably fine to never include it in
7879  # preloaded symbol tables.
7880  # Exclude shared library initialization/finalization symbols.
7881  extract_expsyms_cmds=
7882  # Just being paranoid about ensuring that cc_basename is set.
7883  for cc_temp in $compiler""; do
7884  case $cc_temp in
7885    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7886    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7887    \-*) ;;
7888    *) break;;
7889  esac
7890done
7891cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7892
7893  case $host_os in
7894  cygwin* | mingw* | pw32*)
7895    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7896    # When not using gcc, we currently assume that we are using
7897    # Microsoft Visual C++.
7898    if test "$GCC" != yes; then
7899      with_gnu_ld=no
7900    fi
7901    ;;
7902  interix*)
7903    # we just hope/assume this is gcc and not c89 (= MSVC++)
7904    with_gnu_ld=yes
7905    ;;
7906  openbsd*)
7907    with_gnu_ld=no
7908    ;;
7909  esac
7910
7911  ld_shlibs=yes
7912  if test "$with_gnu_ld" = yes; then
7913    # If archive_cmds runs LD, not CC, wlarc should be empty
7914    wlarc='${wl}'
7915
7916    # Set some defaults for GNU ld with shared library support. These
7917    # are reset later if shared libraries are not supported. Putting them
7918    # here allows them to be overridden if necessary.
7919    runpath_var=LD_RUN_PATH
7920    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7921    export_dynamic_flag_spec='${wl}--export-dynamic'
7922    # ancient GNU ld didn't support --whole-archive et. al.
7923    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7924	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7925      else
7926  	whole_archive_flag_spec=
7927    fi
7928    supports_anon_versioning=no
7929    case `$LD -v 2>/dev/null` in
7930      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7931      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7932      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7933      *\ 2.11.*) ;; # other 2.11 versions
7934      *) supports_anon_versioning=yes ;;
7935    esac
7936
7937    # See if GNU ld supports shared libraries.
7938    case $host_os in
7939    aix[3-9]*)
7940      # On AIX/PPC, the GNU linker is very broken
7941      if test "$host_cpu" != ia64; then
7942	ld_shlibs=no
7943	cat <<EOF 1>&2
7944
7945*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7946*** to be unable to reliably create shared libraries on AIX.
7947*** Therefore, libtool is disabling shared libraries support.  If you
7948*** really care for shared libraries, you may want to modify your PATH
7949*** so that a non-GNU linker is found, and then restart.
7950
7951EOF
7952      fi
7953      ;;
7954
7955    amigaos*)
7956      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)'
7957      hardcode_libdir_flag_spec='-L$libdir'
7958      hardcode_minus_L=yes
7959
7960      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7961      # that the semantics of dynamic libraries on AmigaOS, at least up
7962      # to version 4, is to share data among multiple programs linked
7963      # with the same dynamic library.  Since this doesn't match the
7964      # behavior of shared libraries on other platforms, we can't use
7965      # them.
7966      ld_shlibs=no
7967      ;;
7968
7969    beos*)
7970      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7971	allow_undefined_flag=unsupported
7972	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7973	# support --undefined.  This deserves some investigation.  FIXME
7974	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7975      else
7976	ld_shlibs=no
7977      fi
7978      ;;
7979
7980    cygwin* | mingw* | pw32*)
7981      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7982      # as there is no search path for DLLs.
7983      hardcode_libdir_flag_spec='-L$libdir'
7984      allow_undefined_flag=unsupported
7985      always_export_symbols=no
7986      enable_shared_with_static_runtimes=yes
7987      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7988
7989      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7990        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7991	# If the export-symbols file already is a .def file (1st line
7992	# is EXPORTS), use it as is; otherwise, prepend...
7993	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7994	  cp $export_symbols $output_objdir/$soname.def;
7995	else
7996	  echo EXPORTS > $output_objdir/$soname.def;
7997	  cat $export_symbols >> $output_objdir/$soname.def;
7998	fi~
7999	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8000      else
8001	ld_shlibs=no
8002      fi
8003      ;;
8004
8005    interix[3-9]*)
8006      hardcode_direct=no
8007      hardcode_shlibpath_var=no
8008      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8009      export_dynamic_flag_spec='${wl}-E'
8010      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8011      # Instead, shared libraries are loaded at an image base (0x10000000 by
8012      # default) and relocated if they conflict, which is a slow very memory
8013      # consuming and fragmenting process.  To avoid this, we pick a random,
8014      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8015      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8016      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8017      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'
8018      ;;
8019
8020    gnu* | linux* | k*bsd*-gnu)
8021      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8022	tmp_addflag=
8023	case $cc_basename,$host_cpu in
8024	pgcc*)				# Portland Group C compiler
8025	  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'
8026	  tmp_addflag=' $pic_flag'
8027	  ;;
8028	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8029	  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'
8030	  tmp_addflag=' $pic_flag -Mnomain' ;;
8031	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8032	  tmp_addflag=' -i_dynamic' ;;
8033	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8034	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8035	ifc* | ifort*)			# Intel Fortran compiler
8036	  tmp_addflag=' -nofor_main' ;;
8037	esac
8038	case `$CC -V 2>&1 | sed 5q` in
8039	*Sun\ C*)			# Sun C 5.9
8040	  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'
8041	  tmp_sharedflag='-G' ;;
8042	*Sun\ F*)			# Sun Fortran 8.3
8043	  tmp_sharedflag='-G' ;;
8044	*)
8045	  tmp_sharedflag='-shared' ;;
8046	esac
8047	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8048
8049	if test $supports_anon_versioning = yes; then
8050	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8051  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8052  $echo "local: *; };" >> $output_objdir/$libname.ver~
8053	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8054	fi
8055	link_all_deplibs=no
8056      else
8057	ld_shlibs=no
8058      fi
8059      ;;
8060
8061    netbsd* | netbsdelf*-gnu)
8062      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8063	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8064	wlarc=
8065      else
8066	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8067	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8068      fi
8069      ;;
8070
8071    solaris*)
8072      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8073	ld_shlibs=no
8074	cat <<EOF 1>&2
8075
8076*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8077*** create shared libraries on Solaris systems.  Therefore, libtool
8078*** is disabling shared libraries support.  We urge you to upgrade GNU
8079*** binutils to release 2.9.1 or newer.  Another option is to modify
8080*** your PATH or compiler configuration so that the native linker is
8081*** used, and then restart.
8082
8083EOF
8084      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8085	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8086	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8087      else
8088	ld_shlibs=no
8089      fi
8090      ;;
8091
8092    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8093      case `$LD -v 2>&1` in
8094        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8095	ld_shlibs=no
8096	cat <<_LT_EOF 1>&2
8097
8098*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8099*** reliably create shared libraries on SCO systems.  Therefore, libtool
8100*** is disabling shared libraries support.  We urge you to upgrade GNU
8101*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8102*** your PATH or compiler configuration so that the native linker is
8103*** used, and then restart.
8104
8105_LT_EOF
8106	;;
8107	*)
8108	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8109	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8110	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8111	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8112	  else
8113	    ld_shlibs=no
8114	  fi
8115	;;
8116      esac
8117      ;;
8118
8119    sunos4*)
8120      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8121      wlarc=
8122      hardcode_direct=yes
8123      hardcode_shlibpath_var=no
8124      ;;
8125
8126    *)
8127      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8128	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8129	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8130      else
8131	ld_shlibs=no
8132      fi
8133      ;;
8134    esac
8135
8136    if test "$ld_shlibs" = no; then
8137      runpath_var=
8138      hardcode_libdir_flag_spec=
8139      export_dynamic_flag_spec=
8140      whole_archive_flag_spec=
8141    fi
8142  else
8143    # PORTME fill in a description of your system's linker (not GNU ld)
8144    case $host_os in
8145    aix3*)
8146      allow_undefined_flag=unsupported
8147      always_export_symbols=yes
8148      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'
8149      # Note: this linker hardcodes the directories in LIBPATH if there
8150      # are no directories specified by -L.
8151      hardcode_minus_L=yes
8152      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8153	# Neither direct hardcoding nor static linking is supported with a
8154	# broken collect2.
8155	hardcode_direct=unsupported
8156      fi
8157      ;;
8158
8159    aix[4-9]*)
8160      if test "$host_cpu" = ia64; then
8161	# On IA64, the linker does run time linking by default, so we don't
8162	# have to do anything special.
8163	aix_use_runtimelinking=no
8164	exp_sym_flag='-Bexport'
8165	no_entry_flag=""
8166      else
8167	# If we're using GNU nm, then we don't want the "-C" option.
8168	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8169	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8170	  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'
8171	else
8172	  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'
8173	fi
8174	aix_use_runtimelinking=no
8175
8176	# Test if we are trying to use run time linking or normal
8177	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8178	# need to do runtime linking.
8179	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8180	  for ld_flag in $LDFLAGS; do
8181  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8182  	    aix_use_runtimelinking=yes
8183  	    break
8184  	  fi
8185	  done
8186	  ;;
8187	esac
8188
8189	exp_sym_flag='-bexport'
8190	no_entry_flag='-bnoentry'
8191      fi
8192
8193      # When large executables or shared objects are built, AIX ld can
8194      # have problems creating the table of contents.  If linking a library
8195      # or program results in "error TOC overflow" add -mminimal-toc to
8196      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8197      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8198
8199      archive_cmds=''
8200      hardcode_direct=yes
8201      hardcode_libdir_separator=':'
8202      link_all_deplibs=yes
8203
8204      if test "$GCC" = yes; then
8205	case $host_os in aix4.[012]|aix4.[012].*)
8206	# We only want to do this on AIX 4.2 and lower, the check
8207	# below for broken collect2 doesn't work under 4.3+
8208	  collect2name=`${CC} -print-prog-name=collect2`
8209	  if test -f "$collect2name" && \
8210  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8211	  then
8212  	  # We have reworked collect2
8213  	  :
8214	  else
8215  	  # We have old collect2
8216  	  hardcode_direct=unsupported
8217  	  # It fails to find uninstalled libraries when the uninstalled
8218  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8219  	  # to unsupported forces relinking
8220  	  hardcode_minus_L=yes
8221  	  hardcode_libdir_flag_spec='-L$libdir'
8222  	  hardcode_libdir_separator=
8223	  fi
8224	  ;;
8225	esac
8226	shared_flag='-shared'
8227	if test "$aix_use_runtimelinking" = yes; then
8228	  shared_flag="$shared_flag "'${wl}-G'
8229	fi
8230      else
8231	# not using gcc
8232	if test "$host_cpu" = ia64; then
8233  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8234  	# chokes on -Wl,-G. The following line is correct:
8235	  shared_flag='-G'
8236	else
8237	  if test "$aix_use_runtimelinking" = yes; then
8238	    shared_flag='${wl}-G'
8239	  else
8240	    shared_flag='${wl}-bM:SRE'
8241	  fi
8242	fi
8243      fi
8244
8245      # It seems that -bexpall does not export symbols beginning with
8246      # underscore (_), so it is better to generate a list of symbols to export.
8247      always_export_symbols=yes
8248      if test "$aix_use_runtimelinking" = yes; then
8249	# Warning - without using the other runtime loading flags (-brtl),
8250	# -berok will link without error, but may produce a broken library.
8251	allow_undefined_flag='-berok'
8252       # Determine the default libpath from the value encoded in an empty executable.
8253       cat >conftest.$ac_ext <<_ACEOF
8254/* confdefs.h.  */
8255_ACEOF
8256cat confdefs.h >>conftest.$ac_ext
8257cat >>conftest.$ac_ext <<_ACEOF
8258/* end confdefs.h.  */
8259
8260int
8261main ()
8262{
8263
8264  ;
8265  return 0;
8266}
8267_ACEOF
8268rm -f conftest.$ac_objext conftest$ac_exeext
8269if { (ac_try="$ac_link"
8270case "(($ac_try" in
8271  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8272  *) ac_try_echo=$ac_try;;
8273esac
8274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8275  (eval "$ac_link") 2>conftest.er1
8276  ac_status=$?
8277  grep -v '^ *+' conftest.er1 >conftest.err
8278  rm -f conftest.er1
8279  cat conftest.err >&5
8280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281  (exit $ac_status); } && {
8282	 test -z "$ac_c_werror_flag" ||
8283	 test ! -s conftest.err
8284       } && test -s conftest$ac_exeext &&
8285       $as_test_x conftest$ac_exeext; then
8286
8287lt_aix_libpath_sed='
8288    /Import File Strings/,/^$/ {
8289	/^0/ {
8290	    s/^0  *\(.*\)$/\1/
8291	    p
8292	}
8293    }'
8294aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8295# Check for a 64-bit object if we didn't find anything.
8296if test -z "$aix_libpath"; then
8297  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8298fi
8299else
8300  echo "$as_me: failed program was:" >&5
8301sed 's/^/| /' conftest.$ac_ext >&5
8302
8303
8304fi
8305
8306rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8307      conftest$ac_exeext conftest.$ac_ext
8308if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8309
8310       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8311	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"
8312       else
8313	if test "$host_cpu" = ia64; then
8314	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8315	  allow_undefined_flag="-z nodefs"
8316	  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"
8317	else
8318	 # Determine the default libpath from the value encoded in an empty executable.
8319	 cat >conftest.$ac_ext <<_ACEOF
8320/* confdefs.h.  */
8321_ACEOF
8322cat confdefs.h >>conftest.$ac_ext
8323cat >>conftest.$ac_ext <<_ACEOF
8324/* end confdefs.h.  */
8325
8326int
8327main ()
8328{
8329
8330  ;
8331  return 0;
8332}
8333_ACEOF
8334rm -f conftest.$ac_objext conftest$ac_exeext
8335if { (ac_try="$ac_link"
8336case "(($ac_try" in
8337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8338  *) ac_try_echo=$ac_try;;
8339esac
8340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8341  (eval "$ac_link") 2>conftest.er1
8342  ac_status=$?
8343  grep -v '^ *+' conftest.er1 >conftest.err
8344  rm -f conftest.er1
8345  cat conftest.err >&5
8346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347  (exit $ac_status); } && {
8348	 test -z "$ac_c_werror_flag" ||
8349	 test ! -s conftest.err
8350       } && test -s conftest$ac_exeext &&
8351       $as_test_x conftest$ac_exeext; then
8352
8353lt_aix_libpath_sed='
8354    /Import File Strings/,/^$/ {
8355	/^0/ {
8356	    s/^0  *\(.*\)$/\1/
8357	    p
8358	}
8359    }'
8360aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8361# Check for a 64-bit object if we didn't find anything.
8362if test -z "$aix_libpath"; then
8363  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8364fi
8365else
8366  echo "$as_me: failed program was:" >&5
8367sed 's/^/| /' conftest.$ac_ext >&5
8368
8369
8370fi
8371
8372rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8373      conftest$ac_exeext conftest.$ac_ext
8374if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8375
8376	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8377	  # Warning - without using the other run time loading flags,
8378	  # -berok will link without error, but may produce a broken library.
8379	  no_undefined_flag=' ${wl}-bernotok'
8380	  allow_undefined_flag=' ${wl}-berok'
8381	  # Exported symbols can be pulled into shared objects from archives
8382	  whole_archive_flag_spec='$convenience'
8383	  archive_cmds_need_lc=yes
8384	  # This is similar to how AIX traditionally builds its shared libraries.
8385	  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'
8386	fi
8387      fi
8388      ;;
8389
8390    amigaos*)
8391      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)'
8392      hardcode_libdir_flag_spec='-L$libdir'
8393      hardcode_minus_L=yes
8394      # see comment about different semantics on the GNU ld section
8395      ld_shlibs=no
8396      ;;
8397
8398    bsdi[45]*)
8399      export_dynamic_flag_spec=-rdynamic
8400      ;;
8401
8402    cygwin* | mingw* | pw32*)
8403      # When not using gcc, we currently assume that we are using
8404      # Microsoft Visual C++.
8405      # hardcode_libdir_flag_spec is actually meaningless, as there is
8406      # no search path for DLLs.
8407      hardcode_libdir_flag_spec=' '
8408      allow_undefined_flag=unsupported
8409      # Tell ltmain to make .lib files, not .a files.
8410      libext=lib
8411      # Tell ltmain to make .dll files, not .so files.
8412      shrext_cmds=".dll"
8413      # FIXME: Setting linknames here is a bad hack.
8414      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8415      # The linker will automatically build a .lib file if we build a DLL.
8416      old_archive_From_new_cmds='true'
8417      # FIXME: Should let the user specify the lib program.
8418      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8419      fix_srcfile_path='`cygpath -w "$srcfile"`'
8420      enable_shared_with_static_runtimes=yes
8421      ;;
8422
8423    darwin* | rhapsody*)
8424      case $host_os in
8425        rhapsody* | darwin1.[012])
8426         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8427         ;;
8428       *) # Darwin 1.3 on
8429         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8430           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8431         else
8432           case ${MACOSX_DEPLOYMENT_TARGET} in
8433             10.[012])
8434               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8435               ;;
8436             10.*)
8437               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8438               ;;
8439           esac
8440         fi
8441         ;;
8442      esac
8443      archive_cmds_need_lc=no
8444      hardcode_direct=no
8445      hardcode_automatic=yes
8446      hardcode_shlibpath_var=unsupported
8447      whole_archive_flag_spec=''
8448      link_all_deplibs=yes
8449    if test "$GCC" = yes ; then
8450    	output_verbose_link_cmd='echo'
8451        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8452        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8453        archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8454        module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8455    else
8456      case $cc_basename in
8457        xlc*)
8458         output_verbose_link_cmd='echo'
8459         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8460         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8461          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8462         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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8463          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}'
8464          ;;
8465       *)
8466         ld_shlibs=no
8467          ;;
8468      esac
8469    fi
8470      ;;
8471
8472    dgux*)
8473      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8474      hardcode_libdir_flag_spec='-L$libdir'
8475      hardcode_shlibpath_var=no
8476      ;;
8477
8478    freebsd1*)
8479      ld_shlibs=no
8480      ;;
8481
8482    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8483    # support.  Future versions do this automatically, but an explicit c++rt0.o
8484    # does not break anything, and helps significantly (at the cost of a little
8485    # extra space).
8486    freebsd2.2*)
8487      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8488      hardcode_libdir_flag_spec='-R$libdir'
8489      hardcode_direct=yes
8490      hardcode_shlibpath_var=no
8491      ;;
8492
8493    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8494    freebsd2*)
8495      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8496      hardcode_direct=yes
8497      hardcode_minus_L=yes
8498      hardcode_shlibpath_var=no
8499      ;;
8500
8501    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8502    freebsd* | dragonfly*)
8503      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8504      hardcode_libdir_flag_spec='-R$libdir'
8505      hardcode_direct=yes
8506      hardcode_shlibpath_var=no
8507      ;;
8508
8509    hpux9*)
8510      if test "$GCC" = yes; then
8511	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'
8512      else
8513	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'
8514      fi
8515      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8516      hardcode_libdir_separator=:
8517      hardcode_direct=yes
8518
8519      # hardcode_minus_L: Not really in the search PATH,
8520      # but as the default location of the library.
8521      hardcode_minus_L=yes
8522      export_dynamic_flag_spec='${wl}-E'
8523      ;;
8524
8525    hpux10*)
8526      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8527	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8528      else
8529	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8530      fi
8531      if test "$with_gnu_ld" = no; then
8532	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8533	hardcode_libdir_separator=:
8534
8535	hardcode_direct=yes
8536	export_dynamic_flag_spec='${wl}-E'
8537
8538	# hardcode_minus_L: Not really in the search PATH,
8539	# but as the default location of the library.
8540	hardcode_minus_L=yes
8541      fi
8542      ;;
8543
8544    hpux11*)
8545      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8546	case $host_cpu in
8547	hppa*64*)
8548	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8549	  ;;
8550	ia64*)
8551	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8552	  ;;
8553	*)
8554	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8555	  ;;
8556	esac
8557      else
8558	case $host_cpu in
8559	hppa*64*)
8560	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8561	  ;;
8562	ia64*)
8563	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8564	  ;;
8565	*)
8566	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8567	  ;;
8568	esac
8569      fi
8570      if test "$with_gnu_ld" = no; then
8571	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8572	hardcode_libdir_separator=:
8573
8574	case $host_cpu in
8575	hppa*64*|ia64*)
8576	  hardcode_libdir_flag_spec_ld='+b $libdir'
8577	  hardcode_direct=no
8578	  hardcode_shlibpath_var=no
8579	  ;;
8580	*)
8581	  hardcode_direct=yes
8582	  export_dynamic_flag_spec='${wl}-E'
8583
8584	  # hardcode_minus_L: Not really in the search PATH,
8585	  # but as the default location of the library.
8586	  hardcode_minus_L=yes
8587	  ;;
8588	esac
8589      fi
8590      ;;
8591
8592    irix5* | irix6* | nonstopux*)
8593      if test "$GCC" = yes; then
8594	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'
8595      else
8596	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'
8597	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8598      fi
8599      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8600      hardcode_libdir_separator=:
8601      link_all_deplibs=yes
8602      ;;
8603
8604    netbsd* | netbsdelf*-gnu)
8605      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8606	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8607      else
8608	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8609      fi
8610      hardcode_libdir_flag_spec='-R$libdir'
8611      hardcode_direct=yes
8612      hardcode_shlibpath_var=no
8613      ;;
8614
8615    newsos6)
8616      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8617      hardcode_direct=yes
8618      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8619      hardcode_libdir_separator=:
8620      hardcode_shlibpath_var=no
8621      ;;
8622
8623    openbsd*)
8624      if test -f /usr/libexec/ld.so; then
8625	hardcode_direct=yes
8626	hardcode_shlibpath_var=no
8627	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8628	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8629	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8630	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8631	  export_dynamic_flag_spec='${wl}-E'
8632	else
8633	  case $host_os in
8634	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8635	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8636	     hardcode_libdir_flag_spec='-R$libdir'
8637	     ;;
8638	   *)
8639	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8640	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8641	     ;;
8642	  esac
8643        fi
8644      else
8645	ld_shlibs=no
8646      fi
8647      ;;
8648
8649    os2*)
8650      hardcode_libdir_flag_spec='-L$libdir'
8651      hardcode_minus_L=yes
8652      allow_undefined_flag=unsupported
8653      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'
8654      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8655      ;;
8656
8657    osf3*)
8658      if test "$GCC" = yes; then
8659	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8660	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'
8661      else
8662	allow_undefined_flag=' -expect_unresolved \*'
8663	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'
8664      fi
8665      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8666      hardcode_libdir_separator=:
8667      ;;
8668
8669    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8670      if test "$GCC" = yes; then
8671	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8672	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'
8673	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8674      else
8675	allow_undefined_flag=' -expect_unresolved \*'
8676	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'
8677	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8678	$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'
8679
8680	# Both c and cxx compiler support -rpath directly
8681	hardcode_libdir_flag_spec='-rpath $libdir'
8682      fi
8683      hardcode_libdir_separator=:
8684      ;;
8685
8686    solaris*)
8687      no_undefined_flag=' -z text'
8688      if test "$GCC" = yes; then
8689	wlarc='${wl}'
8690	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8691	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8692	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8693      else
8694	wlarc=''
8695	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8696	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8697  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8698      fi
8699      hardcode_libdir_flag_spec='-R$libdir'
8700      hardcode_shlibpath_var=no
8701      case $host_os in
8702      solaris2.[0-5] | solaris2.[0-5].*) ;;
8703      *)
8704	# The compiler driver will combine and reorder linker options,
8705	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8706	# but is careful enough not to reorder.
8707 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8708	if test "$GCC" = yes; then
8709	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8710	else
8711	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8712	fi
8713	;;
8714      esac
8715      link_all_deplibs=yes
8716      ;;
8717
8718    sunos4*)
8719      if test "x$host_vendor" = xsequent; then
8720	# Use $CC to link under sequent, because it throws in some extra .o
8721	# files that make .init and .fini sections work.
8722	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8723      else
8724	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8725      fi
8726      hardcode_libdir_flag_spec='-L$libdir'
8727      hardcode_direct=yes
8728      hardcode_minus_L=yes
8729      hardcode_shlibpath_var=no
8730      ;;
8731
8732    sysv4)
8733      case $host_vendor in
8734	sni)
8735	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8736	  hardcode_direct=yes # is this really true???
8737	;;
8738	siemens)
8739	  ## LD is ld it makes a PLAMLIB
8740	  ## CC just makes a GrossModule.
8741	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8742	  reload_cmds='$CC -r -o $output$reload_objs'
8743	  hardcode_direct=no
8744        ;;
8745	motorola)
8746	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8747	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8748	;;
8749      esac
8750      runpath_var='LD_RUN_PATH'
8751      hardcode_shlibpath_var=no
8752      ;;
8753
8754    sysv4.3*)
8755      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8756      hardcode_shlibpath_var=no
8757      export_dynamic_flag_spec='-Bexport'
8758      ;;
8759
8760    sysv4*MP*)
8761      if test -d /usr/nec; then
8762	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8763	hardcode_shlibpath_var=no
8764	runpath_var=LD_RUN_PATH
8765	hardcode_runpath_var=yes
8766	ld_shlibs=yes
8767      fi
8768      ;;
8769
8770    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8771      no_undefined_flag='${wl}-z,text'
8772      archive_cmds_need_lc=no
8773      hardcode_shlibpath_var=no
8774      runpath_var='LD_RUN_PATH'
8775
8776      if test "$GCC" = yes; then
8777	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8778	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8779      else
8780	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8781	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8782      fi
8783      ;;
8784
8785    sysv5* | sco3.2v5* | sco5v6*)
8786      # Note: We can NOT use -z defs as we might desire, because we do not
8787      # link with -lc, and that would cause any symbols used from libc to
8788      # always be unresolved, which means just about no library would
8789      # ever link correctly.  If we're not using GNU ld we use -z text
8790      # though, which does catch some bad symbols but isn't as heavy-handed
8791      # as -z defs.
8792      no_undefined_flag='${wl}-z,text'
8793      allow_undefined_flag='${wl}-z,nodefs'
8794      archive_cmds_need_lc=no
8795      hardcode_shlibpath_var=no
8796      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8797      hardcode_libdir_separator=':'
8798      link_all_deplibs=yes
8799      export_dynamic_flag_spec='${wl}-Bexport'
8800      runpath_var='LD_RUN_PATH'
8801
8802      if test "$GCC" = yes; then
8803	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8804	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8805      else
8806	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8807	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8808      fi
8809      ;;
8810
8811    uts4*)
8812      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8813      hardcode_libdir_flag_spec='-L$libdir'
8814      hardcode_shlibpath_var=no
8815      ;;
8816
8817    *)
8818      ld_shlibs=no
8819      ;;
8820    esac
8821  fi
8822
8823{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8824echo "${ECHO_T}$ld_shlibs" >&6; }
8825test "$ld_shlibs" = no && can_build_shared=no
8826
8827#
8828# Do we need to explicitly link libc?
8829#
8830case "x$archive_cmds_need_lc" in
8831x|xyes)
8832  # Assume -lc should be added
8833  archive_cmds_need_lc=yes
8834
8835  if test "$enable_shared" = yes && test "$GCC" = yes; then
8836    case $archive_cmds in
8837    *'~'*)
8838      # FIXME: we may have to deal with multi-command sequences.
8839      ;;
8840    '$CC '*)
8841      # Test whether the compiler implicitly links with -lc since on some
8842      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8843      # to ld, don't add -lc before -lgcc.
8844      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8845echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8846      $rm conftest*
8847      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8848
8849      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8850  (eval $ac_compile) 2>&5
8851  ac_status=$?
8852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853  (exit $ac_status); } 2>conftest.err; then
8854        soname=conftest
8855        lib=conftest
8856        libobjs=conftest.$ac_objext
8857        deplibs=
8858        wl=$lt_prog_compiler_wl
8859	pic_flag=$lt_prog_compiler_pic
8860        compiler_flags=-v
8861        linker_flags=-v
8862        verstring=
8863        output_objdir=.
8864        libname=conftest
8865        lt_save_allow_undefined_flag=$allow_undefined_flag
8866        allow_undefined_flag=
8867        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8868  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8869  ac_status=$?
8870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871  (exit $ac_status); }
8872        then
8873	  archive_cmds_need_lc=no
8874        else
8875	  archive_cmds_need_lc=yes
8876        fi
8877        allow_undefined_flag=$lt_save_allow_undefined_flag
8878      else
8879        cat conftest.err 1>&5
8880      fi
8881      $rm conftest*
8882      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8883echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8884      ;;
8885    esac
8886  fi
8887  ;;
8888esac
8889
8890{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8891echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8892library_names_spec=
8893libname_spec='lib$name'
8894soname_spec=
8895shrext_cmds=".so"
8896postinstall_cmds=
8897postuninstall_cmds=
8898finish_cmds=
8899finish_eval=
8900shlibpath_var=
8901shlibpath_overrides_runpath=unknown
8902version_type=none
8903dynamic_linker="$host_os ld.so"
8904sys_lib_dlsearch_path_spec="/lib /usr/lib"
8905
8906if test "$GCC" = yes; then
8907  case $host_os in
8908    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8909    *) lt_awk_arg="/^libraries:/" ;;
8910  esac
8911  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8912  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8913    # if the path contains ";" then we assume it to be the separator
8914    # otherwise default to the standard path separator (i.e. ":") - it is
8915    # assumed that no part of a normal pathname contains ";" but that should
8916    # okay in the real world where ";" in dirpaths is itself problematic.
8917    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8918  else
8919    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8920  fi
8921  # Ok, now we have the path, separated by spaces, we can step through it
8922  # and add multilib dir if necessary.
8923  lt_tmp_lt_search_path_spec=
8924  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8925  for lt_sys_path in $lt_search_path_spec; do
8926    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8927      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8928    else
8929      test -d "$lt_sys_path" && \
8930	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8931    fi
8932  done
8933  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8934BEGIN {RS=" "; FS="/|\n";} {
8935  lt_foo="";
8936  lt_count=0;
8937  for (lt_i = NF; lt_i > 0; lt_i--) {
8938    if ($lt_i != "" && $lt_i != ".") {
8939      if ($lt_i == "..") {
8940        lt_count++;
8941      } else {
8942        if (lt_count == 0) {
8943          lt_foo="/" $lt_i lt_foo;
8944        } else {
8945          lt_count--;
8946        }
8947      }
8948    }
8949  }
8950  if (lt_foo != "") { lt_freq[lt_foo]++; }
8951  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8952}'`
8953  sys_lib_search_path_spec=`echo $lt_search_path_spec`
8954else
8955  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8956fi
8957need_lib_prefix=unknown
8958hardcode_into_libs=no
8959
8960# when you set need_version to no, make sure it does not cause -set_version
8961# flags to be left without arguments
8962need_version=unknown
8963
8964case $host_os in
8965aix3*)
8966  version_type=linux
8967  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8968  shlibpath_var=LIBPATH
8969
8970  # AIX 3 has no versioning support, so we append a major version to the name.
8971  soname_spec='${libname}${release}${shared_ext}$major'
8972  ;;
8973
8974aix[4-9]*)
8975  version_type=linux
8976  need_lib_prefix=no
8977  need_version=no
8978  hardcode_into_libs=yes
8979  if test "$host_cpu" = ia64; then
8980    # AIX 5 supports IA64
8981    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8982    shlibpath_var=LD_LIBRARY_PATH
8983  else
8984    # With GCC up to 2.95.x, collect2 would create an import file
8985    # for dependence libraries.  The import file would start with
8986    # the line `#! .'.  This would cause the generated library to
8987    # depend on `.', always an invalid library.  This was fixed in
8988    # development snapshots of GCC prior to 3.0.
8989    case $host_os in
8990      aix4 | aix4.[01] | aix4.[01].*)
8991      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8992	   echo ' yes '
8993	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8994	:
8995      else
8996	can_build_shared=no
8997      fi
8998      ;;
8999    esac
9000    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9001    # soname into executable. Probably we can add versioning support to
9002    # collect2, so additional links can be useful in future.
9003    if test "$aix_use_runtimelinking" = yes; then
9004      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9005      # instead of lib<name>.a to let people know that these are not
9006      # typical AIX shared libraries.
9007      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9008    else
9009      # We preserve .a as extension for shared libraries through AIX4.2
9010      # and later when we are not doing run time linking.
9011      library_names_spec='${libname}${release}.a $libname.a'
9012      soname_spec='${libname}${release}${shared_ext}$major'
9013    fi
9014    shlibpath_var=LIBPATH
9015  fi
9016  ;;
9017
9018amigaos*)
9019  library_names_spec='$libname.ixlibrary $libname.a'
9020  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9021  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'
9022  ;;
9023
9024beos*)
9025  library_names_spec='${libname}${shared_ext}'
9026  dynamic_linker="$host_os ld.so"
9027  shlibpath_var=LIBRARY_PATH
9028  ;;
9029
9030bsdi[45]*)
9031  version_type=linux
9032  need_version=no
9033  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9034  soname_spec='${libname}${release}${shared_ext}$major'
9035  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9036  shlibpath_var=LD_LIBRARY_PATH
9037  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9038  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9039  # the default ld.so.conf also contains /usr/contrib/lib and
9040  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9041  # libtool to hard-code these into programs
9042  ;;
9043
9044cygwin* | mingw* | pw32*)
9045  version_type=windows
9046  shrext_cmds=".dll"
9047  need_version=no
9048  need_lib_prefix=no
9049
9050  case $GCC,$host_os in
9051  yes,cygwin* | yes,mingw* | yes,pw32*)
9052    library_names_spec='$libname.dll.a'
9053    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9054    postinstall_cmds='base_file=`basename \${file}`~
9055      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9056      dldir=$destdir/`dirname \$dlpath`~
9057      test -d \$dldir || mkdir -p \$dldir~
9058      $install_prog $dir/$dlname \$dldir/$dlname~
9059      chmod a+x \$dldir/$dlname'
9060    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9061      dlpath=$dir/\$dldll~
9062       $rm \$dlpath'
9063    shlibpath_overrides_runpath=yes
9064
9065    case $host_os in
9066    cygwin*)
9067      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9068      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9069      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9070      ;;
9071    mingw*)
9072      # MinGW DLLs use traditional 'lib' prefix
9073      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9074      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9075      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9076        # It is most probably a Windows format PATH printed by
9077        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9078        # path with ; separators, and with drive letters. We can handle the
9079        # drive letters (cygwin fileutils understands them), so leave them,
9080        # especially as we might pass files found there to a mingw objdump,
9081        # which wouldn't understand a cygwinified path. Ahh.
9082        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9083      else
9084        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9085      fi
9086      ;;
9087    pw32*)
9088      # pw32 DLLs use 'pw' prefix rather than 'lib'
9089      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9090      ;;
9091    esac
9092    ;;
9093
9094  *)
9095    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9096    ;;
9097  esac
9098  dynamic_linker='Win32 ld.exe'
9099  # FIXME: first we should search . and the directory the executable is in
9100  shlibpath_var=PATH
9101  ;;
9102
9103darwin* | rhapsody*)
9104  dynamic_linker="$host_os dyld"
9105  version_type=darwin
9106  need_lib_prefix=no
9107  need_version=no
9108  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9109  soname_spec='${libname}${release}${major}$shared_ext'
9110  shlibpath_overrides_runpath=yes
9111  shlibpath_var=DYLD_LIBRARY_PATH
9112  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9113
9114  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9115  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9116  ;;
9117
9118dgux*)
9119  version_type=linux
9120  need_lib_prefix=no
9121  need_version=no
9122  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9123  soname_spec='${libname}${release}${shared_ext}$major'
9124  shlibpath_var=LD_LIBRARY_PATH
9125  ;;
9126
9127freebsd1*)
9128  dynamic_linker=no
9129  ;;
9130
9131freebsd* | dragonfly*)
9132  # DragonFly does not have aout.  When/if they implement a new
9133  # versioning mechanism, adjust this.
9134  if test -x /usr/bin/objformat; then
9135    objformat=`/usr/bin/objformat`
9136  else
9137    case $host_os in
9138    freebsd[123]*) objformat=aout ;;
9139    *) objformat=elf ;;
9140    esac
9141  fi
9142  version_type=freebsd-$objformat
9143  case $version_type in
9144    freebsd-elf*)
9145      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9146      need_version=no
9147      need_lib_prefix=no
9148      ;;
9149    freebsd-*)
9150      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9151      need_version=yes
9152      ;;
9153  esac
9154  shlibpath_var=LD_LIBRARY_PATH
9155  case $host_os in
9156  freebsd2*)
9157    shlibpath_overrides_runpath=yes
9158    ;;
9159  freebsd3.[01]* | freebsdelf3.[01]*)
9160    shlibpath_overrides_runpath=yes
9161    hardcode_into_libs=yes
9162    ;;
9163  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9164  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9165    shlibpath_overrides_runpath=no
9166    hardcode_into_libs=yes
9167    ;;
9168  *) # from 4.6 on, and DragonFly
9169    shlibpath_overrides_runpath=yes
9170    hardcode_into_libs=yes
9171    ;;
9172  esac
9173  ;;
9174
9175gnu*)
9176  version_type=linux
9177  need_lib_prefix=no
9178  need_version=no
9179  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9180  soname_spec='${libname}${release}${shared_ext}$major'
9181  shlibpath_var=LD_LIBRARY_PATH
9182  hardcode_into_libs=yes
9183  ;;
9184
9185hpux9* | hpux10* | hpux11*)
9186  # Give a soname corresponding to the major version so that dld.sl refuses to
9187  # link against other versions.
9188  version_type=sunos
9189  need_lib_prefix=no
9190  need_version=no
9191  case $host_cpu in
9192  ia64*)
9193    shrext_cmds='.so'
9194    hardcode_into_libs=yes
9195    dynamic_linker="$host_os dld.so"
9196    shlibpath_var=LD_LIBRARY_PATH
9197    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9198    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9199    soname_spec='${libname}${release}${shared_ext}$major'
9200    if test "X$HPUX_IA64_MODE" = X32; then
9201      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9202    else
9203      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9204    fi
9205    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9206    ;;
9207   hppa*64*)
9208     shrext_cmds='.sl'
9209     hardcode_into_libs=yes
9210     dynamic_linker="$host_os dld.sl"
9211     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9212     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9213     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9214     soname_spec='${libname}${release}${shared_ext}$major'
9215     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9216     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9217     ;;
9218   *)
9219    shrext_cmds='.sl'
9220    dynamic_linker="$host_os dld.sl"
9221    shlibpath_var=SHLIB_PATH
9222    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9223    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9224    soname_spec='${libname}${release}${shared_ext}$major'
9225    ;;
9226  esac
9227  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9228  postinstall_cmds='chmod 555 $lib'
9229  ;;
9230
9231interix[3-9]*)
9232  version_type=linux
9233  need_lib_prefix=no
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  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9238  shlibpath_var=LD_LIBRARY_PATH
9239  shlibpath_overrides_runpath=no
9240  hardcode_into_libs=yes
9241  ;;
9242
9243irix5* | irix6* | nonstopux*)
9244  case $host_os in
9245    nonstopux*) version_type=nonstopux ;;
9246    *)
9247	if test "$lt_cv_prog_gnu_ld" = yes; then
9248		version_type=linux
9249	else
9250		version_type=irix
9251	fi ;;
9252  esac
9253  need_lib_prefix=no
9254  need_version=no
9255  soname_spec='${libname}${release}${shared_ext}$major'
9256  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9257  case $host_os in
9258  irix5* | nonstopux*)
9259    libsuff= shlibsuff=
9260    ;;
9261  *)
9262    case $LD in # libtool.m4 will add one of these switches to LD
9263    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9264      libsuff= shlibsuff= libmagic=32-bit;;
9265    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9266      libsuff=32 shlibsuff=N32 libmagic=N32;;
9267    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9268      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9269    *) libsuff= shlibsuff= libmagic=never-match;;
9270    esac
9271    ;;
9272  esac
9273  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9274  shlibpath_overrides_runpath=no
9275  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9276  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9277  hardcode_into_libs=yes
9278  ;;
9279
9280# No shared lib support for Linux oldld, aout, or coff.
9281linux*oldld* | linux*aout* | linux*coff*)
9282  dynamic_linker=no
9283  ;;
9284
9285# This must be Linux ELF.
9286linux* | k*bsd*-gnu)
9287  version_type=linux
9288  need_lib_prefix=no
9289  need_version=no
9290  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9291  soname_spec='${libname}${release}${shared_ext}$major'
9292  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9293  shlibpath_var=LD_LIBRARY_PATH
9294  shlibpath_overrides_runpath=no
9295  # This implies no fast_install, which is unacceptable.
9296  # Some rework will be needed to allow for fast_install
9297  # before this can be enabled.
9298  hardcode_into_libs=yes
9299
9300  # Append ld.so.conf contents to the search path
9301  if test -f /etc/ld.so.conf; then
9302    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/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9303    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9304  fi
9305
9306  # We used to test for /lib/ld.so.1 and disable shared libraries on
9307  # powerpc, because MkLinux only supported shared libraries with the
9308  # GNU dynamic linker.  Since this was broken with cross compilers,
9309  # most powerpc-linux boxes support dynamic linking these days and
9310  # people can always --disable-shared, the test was removed, and we
9311  # assume the GNU/Linux dynamic linker is in use.
9312  dynamic_linker='GNU/Linux ld.so'
9313  ;;
9314
9315netbsdelf*-gnu)
9316  version_type=linux
9317  need_lib_prefix=no
9318  need_version=no
9319  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9320  soname_spec='${libname}${release}${shared_ext}$major'
9321  shlibpath_var=LD_LIBRARY_PATH
9322  shlibpath_overrides_runpath=no
9323  hardcode_into_libs=yes
9324  dynamic_linker='NetBSD ld.elf_so'
9325  ;;
9326
9327netbsd*)
9328  version_type=sunos
9329  need_lib_prefix=no
9330  need_version=no
9331  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9332    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9333    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9334    dynamic_linker='NetBSD (a.out) ld.so'
9335  else
9336    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9337    soname_spec='${libname}${release}${shared_ext}$major'
9338    dynamic_linker='NetBSD ld.elf_so'
9339  fi
9340  shlibpath_var=LD_LIBRARY_PATH
9341  shlibpath_overrides_runpath=yes
9342  hardcode_into_libs=yes
9343  ;;
9344
9345newsos6)
9346  version_type=linux
9347  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9348  shlibpath_var=LD_LIBRARY_PATH
9349  shlibpath_overrides_runpath=yes
9350  ;;
9351
9352nto-qnx*)
9353  version_type=linux
9354  need_lib_prefix=no
9355  need_version=no
9356  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9357  soname_spec='${libname}${release}${shared_ext}$major'
9358  shlibpath_var=LD_LIBRARY_PATH
9359  shlibpath_overrides_runpath=yes
9360  ;;
9361
9362openbsd*)
9363  version_type=sunos
9364  sys_lib_dlsearch_path_spec="/usr/lib"
9365  need_lib_prefix=no
9366  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9367  case $host_os in
9368    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9369    *)                         need_version=no  ;;
9370  esac
9371  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9372  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9373  shlibpath_var=LD_LIBRARY_PATH
9374  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9375    case $host_os in
9376      openbsd2.[89] | openbsd2.[89].*)
9377	shlibpath_overrides_runpath=no
9378	;;
9379      *)
9380	shlibpath_overrides_runpath=yes
9381	;;
9382      esac
9383  else
9384    shlibpath_overrides_runpath=yes
9385  fi
9386  ;;
9387
9388os2*)
9389  libname_spec='$name'
9390  shrext_cmds=".dll"
9391  need_lib_prefix=no
9392  library_names_spec='$libname${shared_ext} $libname.a'
9393  dynamic_linker='OS/2 ld.exe'
9394  shlibpath_var=LIBPATH
9395  ;;
9396
9397osf3* | osf4* | osf5*)
9398  version_type=osf
9399  need_lib_prefix=no
9400  need_version=no
9401  soname_spec='${libname}${release}${shared_ext}$major'
9402  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9403  shlibpath_var=LD_LIBRARY_PATH
9404  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9405  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9406  ;;
9407
9408rdos*)
9409  dynamic_linker=no
9410  ;;
9411
9412solaris*)
9413  version_type=linux
9414  need_lib_prefix=no
9415  need_version=no
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  shlibpath_var=LD_LIBRARY_PATH
9419  shlibpath_overrides_runpath=yes
9420  hardcode_into_libs=yes
9421  # ldd complains unless libraries are executable
9422  postinstall_cmds='chmod +x $lib'
9423  ;;
9424
9425sunos4*)
9426  version_type=sunos
9427  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9428  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9429  shlibpath_var=LD_LIBRARY_PATH
9430  shlibpath_overrides_runpath=yes
9431  if test "$with_gnu_ld" = yes; then
9432    need_lib_prefix=no
9433  fi
9434  need_version=yes
9435  ;;
9436
9437sysv4 | sysv4.3*)
9438  version_type=linux
9439  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9440  soname_spec='${libname}${release}${shared_ext}$major'
9441  shlibpath_var=LD_LIBRARY_PATH
9442  case $host_vendor in
9443    sni)
9444      shlibpath_overrides_runpath=no
9445      need_lib_prefix=no
9446      export_dynamic_flag_spec='${wl}-Blargedynsym'
9447      runpath_var=LD_RUN_PATH
9448      ;;
9449    siemens)
9450      need_lib_prefix=no
9451      ;;
9452    motorola)
9453      need_lib_prefix=no
9454      need_version=no
9455      shlibpath_overrides_runpath=no
9456      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9457      ;;
9458  esac
9459  ;;
9460
9461sysv4*MP*)
9462  if test -d /usr/nec ;then
9463    version_type=linux
9464    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9465    soname_spec='$libname${shared_ext}.$major'
9466    shlibpath_var=LD_LIBRARY_PATH
9467  fi
9468  ;;
9469
9470sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9471  version_type=freebsd-elf
9472  need_lib_prefix=no
9473  need_version=no
9474  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9475  soname_spec='${libname}${release}${shared_ext}$major'
9476  shlibpath_var=LD_LIBRARY_PATH
9477  hardcode_into_libs=yes
9478  if test "$with_gnu_ld" = yes; then
9479    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9480    shlibpath_overrides_runpath=no
9481  else
9482    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9483    shlibpath_overrides_runpath=yes
9484    case $host_os in
9485      sco3.2v5*)
9486        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9487	;;
9488    esac
9489  fi
9490  sys_lib_dlsearch_path_spec='/usr/lib'
9491  ;;
9492
9493uts4*)
9494  version_type=linux
9495  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9496  soname_spec='${libname}${release}${shared_ext}$major'
9497  shlibpath_var=LD_LIBRARY_PATH
9498  ;;
9499
9500*)
9501  dynamic_linker=no
9502  ;;
9503esac
9504{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9505echo "${ECHO_T}$dynamic_linker" >&6; }
9506test "$dynamic_linker" = no && can_build_shared=no
9507
9508if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9509  echo $ECHO_N "(cached) $ECHO_C" >&6
9510else
9511  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9512fi
9513
9514sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9515if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9516  echo $ECHO_N "(cached) $ECHO_C" >&6
9517else
9518  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9519fi
9520
9521sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9522
9523variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9524if test "$GCC" = yes; then
9525  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9526fi
9527
9528{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9529echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9530hardcode_action=
9531if test -n "$hardcode_libdir_flag_spec" || \
9532   test -n "$runpath_var" || \
9533   test "X$hardcode_automatic" = "Xyes" ; then
9534
9535  # We can hardcode non-existant directories.
9536  if test "$hardcode_direct" != no &&
9537     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9538     # have to relink, otherwise we might link with an installed library
9539     # when we should be linking with a yet-to-be-installed one
9540     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9541     test "$hardcode_minus_L" != no; then
9542    # Linking always hardcodes the temporary library directory.
9543    hardcode_action=relink
9544  else
9545    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9546    hardcode_action=immediate
9547  fi
9548else
9549  # We cannot hardcode anything, or else we can only hardcode existing
9550  # directories.
9551  hardcode_action=unsupported
9552fi
9553{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9554echo "${ECHO_T}$hardcode_action" >&6; }
9555
9556if test "$hardcode_action" = relink; then
9557  # Fast installation is not supported
9558  enable_fast_install=no
9559elif test "$shlibpath_overrides_runpath" = yes ||
9560     test "$enable_shared" = no; then
9561  # Fast installation is not necessary
9562  enable_fast_install=needless
9563fi
9564
9565striplib=
9566old_striplib=
9567{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9568echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9569if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9570  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9571  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9572  { echo "$as_me:$LINENO: result: yes" >&5
9573echo "${ECHO_T}yes" >&6; }
9574else
9575# FIXME - insert some real tests, host_os isn't really good enough
9576  case $host_os in
9577   darwin*)
9578       if test -n "$STRIP" ; then
9579         striplib="$STRIP -x"
9580         old_striplib="$STRIP -S"
9581         { echo "$as_me:$LINENO: result: yes" >&5
9582echo "${ECHO_T}yes" >&6; }
9583       else
9584  { echo "$as_me:$LINENO: result: no" >&5
9585echo "${ECHO_T}no" >&6; }
9586fi
9587       ;;
9588   *)
9589  { echo "$as_me:$LINENO: result: no" >&5
9590echo "${ECHO_T}no" >&6; }
9591    ;;
9592  esac
9593fi
9594
9595if test "x$enable_dlopen" != xyes; then
9596  enable_dlopen=unknown
9597  enable_dlopen_self=unknown
9598  enable_dlopen_self_static=unknown
9599else
9600  lt_cv_dlopen=no
9601  lt_cv_dlopen_libs=
9602
9603  case $host_os in
9604  beos*)
9605    lt_cv_dlopen="load_add_on"
9606    lt_cv_dlopen_libs=
9607    lt_cv_dlopen_self=yes
9608    ;;
9609
9610  mingw* | pw32*)
9611    lt_cv_dlopen="LoadLibrary"
9612    lt_cv_dlopen_libs=
9613   ;;
9614
9615  cygwin*)
9616    lt_cv_dlopen="dlopen"
9617    lt_cv_dlopen_libs=
9618   ;;
9619
9620  darwin*)
9621  # if libdl is installed we need to link against it
9622    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9623echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9624if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9625  echo $ECHO_N "(cached) $ECHO_C" >&6
9626else
9627  ac_check_lib_save_LIBS=$LIBS
9628LIBS="-ldl  $LIBS"
9629cat >conftest.$ac_ext <<_ACEOF
9630/* confdefs.h.  */
9631_ACEOF
9632cat confdefs.h >>conftest.$ac_ext
9633cat >>conftest.$ac_ext <<_ACEOF
9634/* end confdefs.h.  */
9635
9636/* Override any GCC internal prototype to avoid an error.
9637   Use char because int might match the return type of a GCC
9638   builtin and then its argument prototype would still apply.  */
9639#ifdef __cplusplus
9640extern "C"
9641#endif
9642char dlopen ();
9643int
9644main ()
9645{
9646return dlopen ();
9647  ;
9648  return 0;
9649}
9650_ACEOF
9651rm -f conftest.$ac_objext conftest$ac_exeext
9652if { (ac_try="$ac_link"
9653case "(($ac_try" in
9654  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9655  *) ac_try_echo=$ac_try;;
9656esac
9657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9658  (eval "$ac_link") 2>conftest.er1
9659  ac_status=$?
9660  grep -v '^ *+' conftest.er1 >conftest.err
9661  rm -f conftest.er1
9662  cat conftest.err >&5
9663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664  (exit $ac_status); } && {
9665	 test -z "$ac_c_werror_flag" ||
9666	 test ! -s conftest.err
9667       } && test -s conftest$ac_exeext &&
9668       $as_test_x conftest$ac_exeext; then
9669  ac_cv_lib_dl_dlopen=yes
9670else
9671  echo "$as_me: failed program was:" >&5
9672sed 's/^/| /' conftest.$ac_ext >&5
9673
9674	ac_cv_lib_dl_dlopen=no
9675fi
9676
9677rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9678      conftest$ac_exeext conftest.$ac_ext
9679LIBS=$ac_check_lib_save_LIBS
9680fi
9681{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9682echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9683if test $ac_cv_lib_dl_dlopen = yes; then
9684  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9685else
9686
9687    lt_cv_dlopen="dyld"
9688    lt_cv_dlopen_libs=
9689    lt_cv_dlopen_self=yes
9690
9691fi
9692
9693   ;;
9694
9695  *)
9696    { echo "$as_me:$LINENO: checking for shl_load" >&5
9697echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9698if test "${ac_cv_func_shl_load+set}" = set; then
9699  echo $ECHO_N "(cached) $ECHO_C" >&6
9700else
9701  cat >conftest.$ac_ext <<_ACEOF
9702/* confdefs.h.  */
9703_ACEOF
9704cat confdefs.h >>conftest.$ac_ext
9705cat >>conftest.$ac_ext <<_ACEOF
9706/* end confdefs.h.  */
9707/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9708   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9709#define shl_load innocuous_shl_load
9710
9711/* System header to define __stub macros and hopefully few prototypes,
9712    which can conflict with char shl_load (); below.
9713    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9714    <limits.h> exists even on freestanding compilers.  */
9715
9716#ifdef __STDC__
9717# include <limits.h>
9718#else
9719# include <assert.h>
9720#endif
9721
9722#undef shl_load
9723
9724/* Override any GCC internal prototype to avoid an error.
9725   Use char because int might match the return type of a GCC
9726   builtin and then its argument prototype would still apply.  */
9727#ifdef __cplusplus
9728extern "C"
9729#endif
9730char shl_load ();
9731/* The GNU C library defines this for functions which it implements
9732    to always fail with ENOSYS.  Some functions are actually named
9733    something starting with __ and the normal name is an alias.  */
9734#if defined __stub_shl_load || defined __stub___shl_load
9735choke me
9736#endif
9737
9738int
9739main ()
9740{
9741return shl_load ();
9742  ;
9743  return 0;
9744}
9745_ACEOF
9746rm -f conftest.$ac_objext conftest$ac_exeext
9747if { (ac_try="$ac_link"
9748case "(($ac_try" in
9749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9750  *) ac_try_echo=$ac_try;;
9751esac
9752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9753  (eval "$ac_link") 2>conftest.er1
9754  ac_status=$?
9755  grep -v '^ *+' conftest.er1 >conftest.err
9756  rm -f conftest.er1
9757  cat conftest.err >&5
9758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759  (exit $ac_status); } && {
9760	 test -z "$ac_c_werror_flag" ||
9761	 test ! -s conftest.err
9762       } && test -s conftest$ac_exeext &&
9763       $as_test_x conftest$ac_exeext; then
9764  ac_cv_func_shl_load=yes
9765else
9766  echo "$as_me: failed program was:" >&5
9767sed 's/^/| /' conftest.$ac_ext >&5
9768
9769	ac_cv_func_shl_load=no
9770fi
9771
9772rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9773      conftest$ac_exeext conftest.$ac_ext
9774fi
9775{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9776echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9777if test $ac_cv_func_shl_load = yes; then
9778  lt_cv_dlopen="shl_load"
9779else
9780  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9781echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9782if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9783  echo $ECHO_N "(cached) $ECHO_C" >&6
9784else
9785  ac_check_lib_save_LIBS=$LIBS
9786LIBS="-ldld  $LIBS"
9787cat >conftest.$ac_ext <<_ACEOF
9788/* confdefs.h.  */
9789_ACEOF
9790cat confdefs.h >>conftest.$ac_ext
9791cat >>conftest.$ac_ext <<_ACEOF
9792/* end confdefs.h.  */
9793
9794/* Override any GCC internal prototype to avoid an error.
9795   Use char because int might match the return type of a GCC
9796   builtin and then its argument prototype would still apply.  */
9797#ifdef __cplusplus
9798extern "C"
9799#endif
9800char shl_load ();
9801int
9802main ()
9803{
9804return shl_load ();
9805  ;
9806  return 0;
9807}
9808_ACEOF
9809rm -f conftest.$ac_objext conftest$ac_exeext
9810if { (ac_try="$ac_link"
9811case "(($ac_try" in
9812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9813  *) ac_try_echo=$ac_try;;
9814esac
9815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9816  (eval "$ac_link") 2>conftest.er1
9817  ac_status=$?
9818  grep -v '^ *+' conftest.er1 >conftest.err
9819  rm -f conftest.er1
9820  cat conftest.err >&5
9821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822  (exit $ac_status); } && {
9823	 test -z "$ac_c_werror_flag" ||
9824	 test ! -s conftest.err
9825       } && test -s conftest$ac_exeext &&
9826       $as_test_x conftest$ac_exeext; then
9827  ac_cv_lib_dld_shl_load=yes
9828else
9829  echo "$as_me: failed program was:" >&5
9830sed 's/^/| /' conftest.$ac_ext >&5
9831
9832	ac_cv_lib_dld_shl_load=no
9833fi
9834
9835rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9836      conftest$ac_exeext conftest.$ac_ext
9837LIBS=$ac_check_lib_save_LIBS
9838fi
9839{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9840echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9841if test $ac_cv_lib_dld_shl_load = yes; then
9842  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9843else
9844  { echo "$as_me:$LINENO: checking for dlopen" >&5
9845echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9846if test "${ac_cv_func_dlopen+set}" = set; then
9847  echo $ECHO_N "(cached) $ECHO_C" >&6
9848else
9849  cat >conftest.$ac_ext <<_ACEOF
9850/* confdefs.h.  */
9851_ACEOF
9852cat confdefs.h >>conftest.$ac_ext
9853cat >>conftest.$ac_ext <<_ACEOF
9854/* end confdefs.h.  */
9855/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9856   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9857#define dlopen innocuous_dlopen
9858
9859/* System header to define __stub macros and hopefully few prototypes,
9860    which can conflict with char dlopen (); below.
9861    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9862    <limits.h> exists even on freestanding compilers.  */
9863
9864#ifdef __STDC__
9865# include <limits.h>
9866#else
9867# include <assert.h>
9868#endif
9869
9870#undef dlopen
9871
9872/* Override any GCC internal prototype to avoid an error.
9873   Use char because int might match the return type of a GCC
9874   builtin and then its argument prototype would still apply.  */
9875#ifdef __cplusplus
9876extern "C"
9877#endif
9878char dlopen ();
9879/* The GNU C library defines this for functions which it implements
9880    to always fail with ENOSYS.  Some functions are actually named
9881    something starting with __ and the normal name is an alias.  */
9882#if defined __stub_dlopen || defined __stub___dlopen
9883choke me
9884#endif
9885
9886int
9887main ()
9888{
9889return dlopen ();
9890  ;
9891  return 0;
9892}
9893_ACEOF
9894rm -f conftest.$ac_objext conftest$ac_exeext
9895if { (ac_try="$ac_link"
9896case "(($ac_try" in
9897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9898  *) ac_try_echo=$ac_try;;
9899esac
9900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9901  (eval "$ac_link") 2>conftest.er1
9902  ac_status=$?
9903  grep -v '^ *+' conftest.er1 >conftest.err
9904  rm -f conftest.er1
9905  cat conftest.err >&5
9906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907  (exit $ac_status); } && {
9908	 test -z "$ac_c_werror_flag" ||
9909	 test ! -s conftest.err
9910       } && test -s conftest$ac_exeext &&
9911       $as_test_x conftest$ac_exeext; then
9912  ac_cv_func_dlopen=yes
9913else
9914  echo "$as_me: failed program was:" >&5
9915sed 's/^/| /' conftest.$ac_ext >&5
9916
9917	ac_cv_func_dlopen=no
9918fi
9919
9920rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9921      conftest$ac_exeext conftest.$ac_ext
9922fi
9923{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9924echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9925if test $ac_cv_func_dlopen = yes; then
9926  lt_cv_dlopen="dlopen"
9927else
9928  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9929echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9930if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9931  echo $ECHO_N "(cached) $ECHO_C" >&6
9932else
9933  ac_check_lib_save_LIBS=$LIBS
9934LIBS="-ldl  $LIBS"
9935cat >conftest.$ac_ext <<_ACEOF
9936/* confdefs.h.  */
9937_ACEOF
9938cat confdefs.h >>conftest.$ac_ext
9939cat >>conftest.$ac_ext <<_ACEOF
9940/* end confdefs.h.  */
9941
9942/* Override any GCC internal prototype to avoid an error.
9943   Use char because int might match the return type of a GCC
9944   builtin and then its argument prototype would still apply.  */
9945#ifdef __cplusplus
9946extern "C"
9947#endif
9948char dlopen ();
9949int
9950main ()
9951{
9952return dlopen ();
9953  ;
9954  return 0;
9955}
9956_ACEOF
9957rm -f conftest.$ac_objext conftest$ac_exeext
9958if { (ac_try="$ac_link"
9959case "(($ac_try" in
9960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9961  *) ac_try_echo=$ac_try;;
9962esac
9963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9964  (eval "$ac_link") 2>conftest.er1
9965  ac_status=$?
9966  grep -v '^ *+' conftest.er1 >conftest.err
9967  rm -f conftest.er1
9968  cat conftest.err >&5
9969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970  (exit $ac_status); } && {
9971	 test -z "$ac_c_werror_flag" ||
9972	 test ! -s conftest.err
9973       } && test -s conftest$ac_exeext &&
9974       $as_test_x conftest$ac_exeext; then
9975  ac_cv_lib_dl_dlopen=yes
9976else
9977  echo "$as_me: failed program was:" >&5
9978sed 's/^/| /' conftest.$ac_ext >&5
9979
9980	ac_cv_lib_dl_dlopen=no
9981fi
9982
9983rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9984      conftest$ac_exeext conftest.$ac_ext
9985LIBS=$ac_check_lib_save_LIBS
9986fi
9987{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9988echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9989if test $ac_cv_lib_dl_dlopen = yes; then
9990  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9991else
9992  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9993echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9994if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9995  echo $ECHO_N "(cached) $ECHO_C" >&6
9996else
9997  ac_check_lib_save_LIBS=$LIBS
9998LIBS="-lsvld  $LIBS"
9999cat >conftest.$ac_ext <<_ACEOF
10000/* confdefs.h.  */
10001_ACEOF
10002cat confdefs.h >>conftest.$ac_ext
10003cat >>conftest.$ac_ext <<_ACEOF
10004/* end confdefs.h.  */
10005
10006/* Override any GCC internal prototype to avoid an error.
10007   Use char because int might match the return type of a GCC
10008   builtin and then its argument prototype would still apply.  */
10009#ifdef __cplusplus
10010extern "C"
10011#endif
10012char dlopen ();
10013int
10014main ()
10015{
10016return dlopen ();
10017  ;
10018  return 0;
10019}
10020_ACEOF
10021rm -f conftest.$ac_objext conftest$ac_exeext
10022if { (ac_try="$ac_link"
10023case "(($ac_try" in
10024  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10025  *) ac_try_echo=$ac_try;;
10026esac
10027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10028  (eval "$ac_link") 2>conftest.er1
10029  ac_status=$?
10030  grep -v '^ *+' conftest.er1 >conftest.err
10031  rm -f conftest.er1
10032  cat conftest.err >&5
10033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034  (exit $ac_status); } && {
10035	 test -z "$ac_c_werror_flag" ||
10036	 test ! -s conftest.err
10037       } && test -s conftest$ac_exeext &&
10038       $as_test_x conftest$ac_exeext; then
10039  ac_cv_lib_svld_dlopen=yes
10040else
10041  echo "$as_me: failed program was:" >&5
10042sed 's/^/| /' conftest.$ac_ext >&5
10043
10044	ac_cv_lib_svld_dlopen=no
10045fi
10046
10047rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10048      conftest$ac_exeext conftest.$ac_ext
10049LIBS=$ac_check_lib_save_LIBS
10050fi
10051{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10052echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10053if test $ac_cv_lib_svld_dlopen = yes; then
10054  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10055else
10056  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10057echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10058if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10059  echo $ECHO_N "(cached) $ECHO_C" >&6
10060else
10061  ac_check_lib_save_LIBS=$LIBS
10062LIBS="-ldld  $LIBS"
10063cat >conftest.$ac_ext <<_ACEOF
10064/* confdefs.h.  */
10065_ACEOF
10066cat confdefs.h >>conftest.$ac_ext
10067cat >>conftest.$ac_ext <<_ACEOF
10068/* end confdefs.h.  */
10069
10070/* Override any GCC internal prototype to avoid an error.
10071   Use char because int might match the return type of a GCC
10072   builtin and then its argument prototype would still apply.  */
10073#ifdef __cplusplus
10074extern "C"
10075#endif
10076char dld_link ();
10077int
10078main ()
10079{
10080return dld_link ();
10081  ;
10082  return 0;
10083}
10084_ACEOF
10085rm -f conftest.$ac_objext conftest$ac_exeext
10086if { (ac_try="$ac_link"
10087case "(($ac_try" in
10088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10089  *) ac_try_echo=$ac_try;;
10090esac
10091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10092  (eval "$ac_link") 2>conftest.er1
10093  ac_status=$?
10094  grep -v '^ *+' conftest.er1 >conftest.err
10095  rm -f conftest.er1
10096  cat conftest.err >&5
10097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098  (exit $ac_status); } && {
10099	 test -z "$ac_c_werror_flag" ||
10100	 test ! -s conftest.err
10101       } && test -s conftest$ac_exeext &&
10102       $as_test_x conftest$ac_exeext; then
10103  ac_cv_lib_dld_dld_link=yes
10104else
10105  echo "$as_me: failed program was:" >&5
10106sed 's/^/| /' conftest.$ac_ext >&5
10107
10108	ac_cv_lib_dld_dld_link=no
10109fi
10110
10111rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10112      conftest$ac_exeext conftest.$ac_ext
10113LIBS=$ac_check_lib_save_LIBS
10114fi
10115{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10116echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10117if test $ac_cv_lib_dld_dld_link = yes; then
10118  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10119fi
10120
10121
10122fi
10123
10124
10125fi
10126
10127
10128fi
10129
10130
10131fi
10132
10133
10134fi
10135
10136    ;;
10137  esac
10138
10139  if test "x$lt_cv_dlopen" != xno; then
10140    enable_dlopen=yes
10141  else
10142    enable_dlopen=no
10143  fi
10144
10145  case $lt_cv_dlopen in
10146  dlopen)
10147    save_CPPFLAGS="$CPPFLAGS"
10148    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10149
10150    save_LDFLAGS="$LDFLAGS"
10151    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10152
10153    save_LIBS="$LIBS"
10154    LIBS="$lt_cv_dlopen_libs $LIBS"
10155
10156    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10157echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10158if test "${lt_cv_dlopen_self+set}" = set; then
10159  echo $ECHO_N "(cached) $ECHO_C" >&6
10160else
10161  	  if test "$cross_compiling" = yes; then :
10162  lt_cv_dlopen_self=cross
10163else
10164  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10165  lt_status=$lt_dlunknown
10166  cat > conftest.$ac_ext <<EOF
10167#line 10167 "configure"
10168#include "confdefs.h"
10169
10170#if HAVE_DLFCN_H
10171#include <dlfcn.h>
10172#endif
10173
10174#include <stdio.h>
10175
10176#ifdef RTLD_GLOBAL
10177#  define LT_DLGLOBAL		RTLD_GLOBAL
10178#else
10179#  ifdef DL_GLOBAL
10180#    define LT_DLGLOBAL		DL_GLOBAL
10181#  else
10182#    define LT_DLGLOBAL		0
10183#  endif
10184#endif
10185
10186/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10187   find out it does not work in some platform. */
10188#ifndef LT_DLLAZY_OR_NOW
10189#  ifdef RTLD_LAZY
10190#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10191#  else
10192#    ifdef DL_LAZY
10193#      define LT_DLLAZY_OR_NOW		DL_LAZY
10194#    else
10195#      ifdef RTLD_NOW
10196#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10197#      else
10198#        ifdef DL_NOW
10199#          define LT_DLLAZY_OR_NOW	DL_NOW
10200#        else
10201#          define LT_DLLAZY_OR_NOW	0
10202#        endif
10203#      endif
10204#    endif
10205#  endif
10206#endif
10207
10208#ifdef __cplusplus
10209extern "C" void exit (int);
10210#endif
10211
10212void fnord() { int i=42;}
10213int main ()
10214{
10215  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10216  int status = $lt_dlunknown;
10217
10218  if (self)
10219    {
10220      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10221      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10222      /* dlclose (self); */
10223    }
10224  else
10225    puts (dlerror ());
10226
10227    exit (status);
10228}
10229EOF
10230  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10231  (eval $ac_link) 2>&5
10232  ac_status=$?
10233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10235    (./conftest; exit; ) >&5 2>/dev/null
10236    lt_status=$?
10237    case x$lt_status in
10238      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10239      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10240      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10241    esac
10242  else :
10243    # compilation failed
10244    lt_cv_dlopen_self=no
10245  fi
10246fi
10247rm -fr conftest*
10248
10249
10250fi
10251{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10252echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10253
10254    if test "x$lt_cv_dlopen_self" = xyes; then
10255      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10256      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10257echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10258if test "${lt_cv_dlopen_self_static+set}" = set; then
10259  echo $ECHO_N "(cached) $ECHO_C" >&6
10260else
10261  	  if test "$cross_compiling" = yes; then :
10262  lt_cv_dlopen_self_static=cross
10263else
10264  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10265  lt_status=$lt_dlunknown
10266  cat > conftest.$ac_ext <<EOF
10267#line 10267 "configure"
10268#include "confdefs.h"
10269
10270#if HAVE_DLFCN_H
10271#include <dlfcn.h>
10272#endif
10273
10274#include <stdio.h>
10275
10276#ifdef RTLD_GLOBAL
10277#  define LT_DLGLOBAL		RTLD_GLOBAL
10278#else
10279#  ifdef DL_GLOBAL
10280#    define LT_DLGLOBAL		DL_GLOBAL
10281#  else
10282#    define LT_DLGLOBAL		0
10283#  endif
10284#endif
10285
10286/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10287   find out it does not work in some platform. */
10288#ifndef LT_DLLAZY_OR_NOW
10289#  ifdef RTLD_LAZY
10290#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10291#  else
10292#    ifdef DL_LAZY
10293#      define LT_DLLAZY_OR_NOW		DL_LAZY
10294#    else
10295#      ifdef RTLD_NOW
10296#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10297#      else
10298#        ifdef DL_NOW
10299#          define LT_DLLAZY_OR_NOW	DL_NOW
10300#        else
10301#          define LT_DLLAZY_OR_NOW	0
10302#        endif
10303#      endif
10304#    endif
10305#  endif
10306#endif
10307
10308#ifdef __cplusplus
10309extern "C" void exit (int);
10310#endif
10311
10312void fnord() { int i=42;}
10313int main ()
10314{
10315  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10316  int status = $lt_dlunknown;
10317
10318  if (self)
10319    {
10320      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10321      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10322      /* dlclose (self); */
10323    }
10324  else
10325    puts (dlerror ());
10326
10327    exit (status);
10328}
10329EOF
10330  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10331  (eval $ac_link) 2>&5
10332  ac_status=$?
10333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10335    (./conftest; exit; ) >&5 2>/dev/null
10336    lt_status=$?
10337    case x$lt_status in
10338      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10339      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10340      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10341    esac
10342  else :
10343    # compilation failed
10344    lt_cv_dlopen_self_static=no
10345  fi
10346fi
10347rm -fr conftest*
10348
10349
10350fi
10351{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10352echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10353    fi
10354
10355    CPPFLAGS="$save_CPPFLAGS"
10356    LDFLAGS="$save_LDFLAGS"
10357    LIBS="$save_LIBS"
10358    ;;
10359  esac
10360
10361  case $lt_cv_dlopen_self in
10362  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10363  *) enable_dlopen_self=unknown ;;
10364  esac
10365
10366  case $lt_cv_dlopen_self_static in
10367  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10368  *) enable_dlopen_self_static=unknown ;;
10369  esac
10370fi
10371
10372
10373# Report which library types will actually be built
10374{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10375echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10376{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10377echo "${ECHO_T}$can_build_shared" >&6; }
10378
10379{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10380echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10381test "$can_build_shared" = "no" && enable_shared=no
10382
10383# On AIX, shared libraries and static libraries use the same namespace, and
10384# are all built from PIC.
10385case $host_os in
10386aix3*)
10387  test "$enable_shared" = yes && enable_static=no
10388  if test -n "$RANLIB"; then
10389    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10390    postinstall_cmds='$RANLIB $lib'
10391  fi
10392  ;;
10393
10394aix[4-9]*)
10395  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10396    test "$enable_shared" = yes && enable_static=no
10397  fi
10398    ;;
10399esac
10400{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10401echo "${ECHO_T}$enable_shared" >&6; }
10402
10403{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10404echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10405# Make sure either enable_shared or enable_static is yes.
10406test "$enable_shared" = yes || enable_static=yes
10407{ echo "$as_me:$LINENO: result: $enable_static" >&5
10408echo "${ECHO_T}$enable_static" >&6; }
10409
10410# The else clause should only fire when bootstrapping the
10411# libtool distribution, otherwise you forgot to ship ltmain.sh
10412# with your package, and you will get complaints that there are
10413# no rules to generate ltmain.sh.
10414if test -f "$ltmain"; then
10415  # See if we are running on zsh, and set the options which allow our commands through
10416  # without removal of \ escapes.
10417  if test -n "${ZSH_VERSION+set}" ; then
10418    setopt NO_GLOB_SUBST
10419  fi
10420  # Now quote all the things that may contain metacharacters while being
10421  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10422  # variables and quote the copies for generation of the libtool script.
10423  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10424    SED SHELL STRIP \
10425    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10426    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10427    deplibs_check_method reload_flag reload_cmds need_locks \
10428    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10429    lt_cv_sys_global_symbol_to_c_name_address \
10430    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10431    old_postinstall_cmds old_postuninstall_cmds \
10432    compiler \
10433    CC \
10434    LD \
10435    lt_prog_compiler_wl \
10436    lt_prog_compiler_pic \
10437    lt_prog_compiler_static \
10438    lt_prog_compiler_no_builtin_flag \
10439    export_dynamic_flag_spec \
10440    thread_safe_flag_spec \
10441    whole_archive_flag_spec \
10442    enable_shared_with_static_runtimes \
10443    old_archive_cmds \
10444    old_archive_from_new_cmds \
10445    predep_objects \
10446    postdep_objects \
10447    predeps \
10448    postdeps \
10449    compiler_lib_search_path \
10450    compiler_lib_search_dirs \
10451    archive_cmds \
10452    archive_expsym_cmds \
10453    postinstall_cmds \
10454    postuninstall_cmds \
10455    old_archive_from_expsyms_cmds \
10456    allow_undefined_flag \
10457    no_undefined_flag \
10458    export_symbols_cmds \
10459    hardcode_libdir_flag_spec \
10460    hardcode_libdir_flag_spec_ld \
10461    hardcode_libdir_separator \
10462    hardcode_automatic \
10463    module_cmds \
10464    module_expsym_cmds \
10465    lt_cv_prog_compiler_c_o \
10466    fix_srcfile_path \
10467    exclude_expsyms \
10468    include_expsyms; do
10469
10470    case $var in
10471    old_archive_cmds | \
10472    old_archive_from_new_cmds | \
10473    archive_cmds | \
10474    archive_expsym_cmds | \
10475    module_cmds | \
10476    module_expsym_cmds | \
10477    old_archive_from_expsyms_cmds | \
10478    export_symbols_cmds | \
10479    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10480    postinstall_cmds | postuninstall_cmds | \
10481    old_postinstall_cmds | old_postuninstall_cmds | \
10482    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10483      # Double-quote double-evaled strings.
10484      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10485      ;;
10486    *)
10487      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10488      ;;
10489    esac
10490  done
10491
10492  case $lt_echo in
10493  *'\$0 --fallback-echo"')
10494    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10495    ;;
10496  esac
10497
10498cfgfile="${ofile}T"
10499  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10500  $rm -f "$cfgfile"
10501  { echo "$as_me:$LINENO: creating $ofile" >&5
10502echo "$as_me: creating $ofile" >&6;}
10503
10504  cat <<__EOF__ >> "$cfgfile"
10505#! $SHELL
10506
10507# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10508# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10509# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10510#
10511# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10512# Free Software Foundation, Inc.
10513#
10514# This file is part of GNU Libtool:
10515# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10516#
10517# This program is free software; you can redistribute it and/or modify
10518# it under the terms of the GNU General Public License as published by
10519# the Free Software Foundation; either version 2 of the License, or
10520# (at your option) any later version.
10521#
10522# This program is distributed in the hope that it will be useful, but
10523# WITHOUT ANY WARRANTY; without even the implied warranty of
10524# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10525# General Public License for more details.
10526#
10527# You should have received a copy of the GNU General Public License
10528# along with this program; if not, write to the Free Software
10529# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10530#
10531# As a special exception to the GNU General Public License, if you
10532# distribute this file as part of a program that contains a
10533# configuration script generated by Autoconf, you may include it under
10534# the same distribution terms that you use for the rest of that program.
10535
10536# A sed program that does not truncate output.
10537SED=$lt_SED
10538
10539# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10540Xsed="$SED -e 1s/^X//"
10541
10542# The HP-UX ksh and POSIX shell print the target directory to stdout
10543# if CDPATH is set.
10544(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10545
10546# The names of the tagged configurations supported by this script.
10547available_tags=
10548
10549# ### BEGIN LIBTOOL CONFIG
10550
10551# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10552
10553# Shell to use when invoking shell scripts.
10554SHELL=$lt_SHELL
10555
10556# Whether or not to build shared libraries.
10557build_libtool_libs=$enable_shared
10558
10559# Whether or not to build static libraries.
10560build_old_libs=$enable_static
10561
10562# Whether or not to add -lc for building shared libraries.
10563build_libtool_need_lc=$archive_cmds_need_lc
10564
10565# Whether or not to disallow shared libs when runtime libs are static
10566allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10567
10568# Whether or not to optimize for fast installation.
10569fast_install=$enable_fast_install
10570
10571# The host system.
10572host_alias=$host_alias
10573host=$host
10574host_os=$host_os
10575
10576# The build system.
10577build_alias=$build_alias
10578build=$build
10579build_os=$build_os
10580
10581# An echo program that does not interpret backslashes.
10582echo=$lt_echo
10583
10584# The archiver.
10585AR=$lt_AR
10586AR_FLAGS=$lt_AR_FLAGS
10587
10588# A C compiler.
10589LTCC=$lt_LTCC
10590
10591# LTCC compiler flags.
10592LTCFLAGS=$lt_LTCFLAGS
10593
10594# A language-specific compiler.
10595CC=$lt_compiler
10596
10597# Is the compiler the GNU C compiler?
10598with_gcc=$GCC
10599
10600# An ERE matcher.
10601EGREP=$lt_EGREP
10602
10603# The linker used to build libraries.
10604LD=$lt_LD
10605
10606# Whether we need hard or soft links.
10607LN_S=$lt_LN_S
10608
10609# A BSD-compatible nm program.
10610NM=$lt_NM
10611
10612# A symbol stripping program
10613STRIP=$lt_STRIP
10614
10615# Used to examine libraries when file_magic_cmd begins "file"
10616MAGIC_CMD=$MAGIC_CMD
10617
10618# Used on cygwin: DLL creation program.
10619DLLTOOL="$DLLTOOL"
10620
10621# Used on cygwin: object dumper.
10622OBJDUMP="$OBJDUMP"
10623
10624# Used on cygwin: assembler.
10625AS="$AS"
10626
10627# The name of the directory that contains temporary libtool files.
10628objdir=$objdir
10629
10630# How to create reloadable object files.
10631reload_flag=$lt_reload_flag
10632reload_cmds=$lt_reload_cmds
10633
10634# How to pass a linker flag through the compiler.
10635wl=$lt_lt_prog_compiler_wl
10636
10637# Object file suffix (normally "o").
10638objext="$ac_objext"
10639
10640# Old archive suffix (normally "a").
10641libext="$libext"
10642
10643# Shared library suffix (normally ".so").
10644shrext_cmds='$shrext_cmds'
10645
10646# Executable file suffix (normally "").
10647exeext="$exeext"
10648
10649# Additional compiler flags for building library objects.
10650pic_flag=$lt_lt_prog_compiler_pic
10651pic_mode=$pic_mode
10652
10653# What is the maximum length of a command?
10654max_cmd_len=$lt_cv_sys_max_cmd_len
10655
10656# Does compiler simultaneously support -c and -o options?
10657compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10658
10659# Must we lock files when doing compilation?
10660need_locks=$lt_need_locks
10661
10662# Do we need the lib prefix for modules?
10663need_lib_prefix=$need_lib_prefix
10664
10665# Do we need a version for libraries?
10666need_version=$need_version
10667
10668# Whether dlopen is supported.
10669dlopen_support=$enable_dlopen
10670
10671# Whether dlopen of programs is supported.
10672dlopen_self=$enable_dlopen_self
10673
10674# Whether dlopen of statically linked programs is supported.
10675dlopen_self_static=$enable_dlopen_self_static
10676
10677# Compiler flag to prevent dynamic linking.
10678link_static_flag=$lt_lt_prog_compiler_static
10679
10680# Compiler flag to turn off builtin functions.
10681no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10682
10683# Compiler flag to allow reflexive dlopens.
10684export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10685
10686# Compiler flag to generate shared objects directly from archives.
10687whole_archive_flag_spec=$lt_whole_archive_flag_spec
10688
10689# Compiler flag to generate thread-safe objects.
10690thread_safe_flag_spec=$lt_thread_safe_flag_spec
10691
10692# Library versioning type.
10693version_type=$version_type
10694
10695# Format of library name prefix.
10696libname_spec=$lt_libname_spec
10697
10698# List of archive names.  First name is the real one, the rest are links.
10699# The last name is the one that the linker finds with -lNAME.
10700library_names_spec=$lt_library_names_spec
10701
10702# The coded name of the library, if different from the real name.
10703soname_spec=$lt_soname_spec
10704
10705# Commands used to build and install an old-style archive.
10706RANLIB=$lt_RANLIB
10707old_archive_cmds=$lt_old_archive_cmds
10708old_postinstall_cmds=$lt_old_postinstall_cmds
10709old_postuninstall_cmds=$lt_old_postuninstall_cmds
10710
10711# Create an old-style archive from a shared archive.
10712old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10713
10714# Create a temporary old-style archive to link instead of a shared archive.
10715old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10716
10717# Commands used to build and install a shared archive.
10718archive_cmds=$lt_archive_cmds
10719archive_expsym_cmds=$lt_archive_expsym_cmds
10720postinstall_cmds=$lt_postinstall_cmds
10721postuninstall_cmds=$lt_postuninstall_cmds
10722
10723# Commands used to build a loadable module (assumed same as above if empty)
10724module_cmds=$lt_module_cmds
10725module_expsym_cmds=$lt_module_expsym_cmds
10726
10727# Commands to strip libraries.
10728old_striplib=$lt_old_striplib
10729striplib=$lt_striplib
10730
10731# Dependencies to place before the objects being linked to create a
10732# shared library.
10733predep_objects=$lt_predep_objects
10734
10735# Dependencies to place after the objects being linked to create a
10736# shared library.
10737postdep_objects=$lt_postdep_objects
10738
10739# Dependencies to place before the objects being linked to create a
10740# shared library.
10741predeps=$lt_predeps
10742
10743# Dependencies to place after the objects being linked to create a
10744# shared library.
10745postdeps=$lt_postdeps
10746
10747# The directories searched by this compiler when creating a shared
10748# library
10749compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10750
10751# The library search path used internally by the compiler when linking
10752# a shared library.
10753compiler_lib_search_path=$lt_compiler_lib_search_path
10754
10755# Method to check whether dependent libraries are shared objects.
10756deplibs_check_method=$lt_deplibs_check_method
10757
10758# Command to use when deplibs_check_method == file_magic.
10759file_magic_cmd=$lt_file_magic_cmd
10760
10761# Flag that allows shared libraries with undefined symbols to be built.
10762allow_undefined_flag=$lt_allow_undefined_flag
10763
10764# Flag that forces no undefined symbols.
10765no_undefined_flag=$lt_no_undefined_flag
10766
10767# Commands used to finish a libtool library installation in a directory.
10768finish_cmds=$lt_finish_cmds
10769
10770# Same as above, but a single script fragment to be evaled but not shown.
10771finish_eval=$lt_finish_eval
10772
10773# Take the output of nm and produce a listing of raw symbols and C names.
10774global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10775
10776# Transform the output of nm in a proper C declaration
10777global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10778
10779# Transform the output of nm in a C name address pair
10780global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10781
10782# This is the shared library runtime path variable.
10783runpath_var=$runpath_var
10784
10785# This is the shared library path variable.
10786shlibpath_var=$shlibpath_var
10787
10788# Is shlibpath searched before the hard-coded library search path?
10789shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10790
10791# How to hardcode a shared library path into an executable.
10792hardcode_action=$hardcode_action
10793
10794# Whether we should hardcode library paths into libraries.
10795hardcode_into_libs=$hardcode_into_libs
10796
10797# Flag to hardcode \$libdir into a binary during linking.
10798# This must work even if \$libdir does not exist.
10799hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10800
10801# If ld is used when linking, flag to hardcode \$libdir into
10802# a binary during linking. This must work even if \$libdir does
10803# not exist.
10804hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10805
10806# Whether we need a single -rpath flag with a separated argument.
10807hardcode_libdir_separator=$lt_hardcode_libdir_separator
10808
10809# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10810# resulting binary.
10811hardcode_direct=$hardcode_direct
10812
10813# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10814# resulting binary.
10815hardcode_minus_L=$hardcode_minus_L
10816
10817# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10818# the resulting binary.
10819hardcode_shlibpath_var=$hardcode_shlibpath_var
10820
10821# Set to yes if building a shared library automatically hardcodes DIR into the library
10822# and all subsequent libraries and executables linked against it.
10823hardcode_automatic=$hardcode_automatic
10824
10825# Variables whose values should be saved in libtool wrapper scripts and
10826# restored at relink time.
10827variables_saved_for_relink="$variables_saved_for_relink"
10828
10829# Whether libtool must link a program against all its dependency libraries.
10830link_all_deplibs=$link_all_deplibs
10831
10832# Compile-time system search path for libraries
10833sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10834
10835# Run-time system search path for libraries
10836sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10837
10838# Fix the shell variable \$srcfile for the compiler.
10839fix_srcfile_path=$lt_fix_srcfile_path
10840
10841# Set to yes if exported symbols are required.
10842always_export_symbols=$always_export_symbols
10843
10844# The commands to list exported symbols.
10845export_symbols_cmds=$lt_export_symbols_cmds
10846
10847# The commands to extract the exported symbol list from a shared archive.
10848extract_expsyms_cmds=$lt_extract_expsyms_cmds
10849
10850# Symbols that should not be listed in the preloaded symbols.
10851exclude_expsyms=$lt_exclude_expsyms
10852
10853# Symbols that must always be exported.
10854include_expsyms=$lt_include_expsyms
10855
10856# ### END LIBTOOL CONFIG
10857
10858__EOF__
10859
10860
10861  case $host_os in
10862  aix3*)
10863    cat <<\EOF >> "$cfgfile"
10864
10865# AIX sometimes has problems with the GCC collect2 program.  For some
10866# reason, if we set the COLLECT_NAMES environment variable, the problems
10867# vanish in a puff of smoke.
10868if test "X${COLLECT_NAMES+set}" != Xset; then
10869  COLLECT_NAMES=
10870  export COLLECT_NAMES
10871fi
10872EOF
10873    ;;
10874  esac
10875
10876  # We use sed instead of cat because bash on DJGPP gets confused if
10877  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10878  # text mode, it properly converts lines to CR/LF.  This bash problem
10879  # is reportedly fixed, but why not run on old versions too?
10880  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10881
10882  mv -f "$cfgfile" "$ofile" || \
10883    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10884  chmod +x "$ofile"
10885
10886else
10887  # If there is no Makefile yet, we rely on a make rule to execute
10888  # `config.status --recheck' to rerun these tests and create the
10889  # libtool script then.
10890  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10891  if test -f "$ltmain_in"; then
10892    test -f Makefile && make "$ltmain"
10893  fi
10894fi
10895
10896
10897ac_ext=c
10898ac_cpp='$CPP $CPPFLAGS'
10899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10901ac_compiler_gnu=$ac_cv_c_compiler_gnu
10902
10903CC="$lt_save_CC"
10904
10905
10906# Check whether --with-tags was given.
10907if test "${with_tags+set}" = set; then
10908  withval=$with_tags; tagnames="$withval"
10909fi
10910
10911
10912if test -f "$ltmain" && test -n "$tagnames"; then
10913  if test ! -f "${ofile}"; then
10914    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10915echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10916  fi
10917
10918  if test -z "$LTCC"; then
10919    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10920    if test -z "$LTCC"; then
10921      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10922echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10923    else
10924      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10925echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10926    fi
10927  fi
10928  if test -z "$LTCFLAGS"; then
10929    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10930  fi
10931
10932  # Extract list of available tagged configurations in $ofile.
10933  # Note that this assumes the entire list is on one line.
10934  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10935
10936  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10937  for tagname in $tagnames; do
10938    IFS="$lt_save_ifs"
10939    # Check whether tagname contains only valid characters
10940    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10941    "") ;;
10942    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10943echo "$as_me: error: invalid tag name: $tagname" >&2;}
10944   { (exit 1); exit 1; }; }
10945	;;
10946    esac
10947
10948    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10949    then
10950      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10951echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10952   { (exit 1); exit 1; }; }
10953    fi
10954
10955    # Update the list of available tags.
10956    if test -n "$tagname"; then
10957      echo appending configuration tag \"$tagname\" to $ofile
10958
10959      case $tagname in
10960      CXX)
10961	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10962	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10963	    (test "X$CXX" != "Xg++"))) ; then
10964	  ac_ext=cpp
10965ac_cpp='$CXXCPP $CPPFLAGS'
10966ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10967ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10968ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10969
10970
10971
10972
10973archive_cmds_need_lc_CXX=no
10974allow_undefined_flag_CXX=
10975always_export_symbols_CXX=no
10976archive_expsym_cmds_CXX=
10977export_dynamic_flag_spec_CXX=
10978hardcode_direct_CXX=no
10979hardcode_libdir_flag_spec_CXX=
10980hardcode_libdir_flag_spec_ld_CXX=
10981hardcode_libdir_separator_CXX=
10982hardcode_minus_L_CXX=no
10983hardcode_shlibpath_var_CXX=unsupported
10984hardcode_automatic_CXX=no
10985module_cmds_CXX=
10986module_expsym_cmds_CXX=
10987link_all_deplibs_CXX=unknown
10988old_archive_cmds_CXX=$old_archive_cmds
10989no_undefined_flag_CXX=
10990whole_archive_flag_spec_CXX=
10991enable_shared_with_static_runtimes_CXX=no
10992
10993# Dependencies to place before and after the object being linked:
10994predep_objects_CXX=
10995postdep_objects_CXX=
10996predeps_CXX=
10997postdeps_CXX=
10998compiler_lib_search_path_CXX=
10999compiler_lib_search_dirs_CXX=
11000
11001# Source file extension for C++ test sources.
11002ac_ext=cpp
11003
11004# Object file extension for compiled C++ test sources.
11005objext=o
11006objext_CXX=$objext
11007
11008# Code to be used in simple compile tests
11009lt_simple_compile_test_code="int some_variable = 0;"
11010
11011# Code to be used in simple link tests
11012lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11013
11014# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11015
11016# If no C compiler was specified, use CC.
11017LTCC=${LTCC-"$CC"}
11018
11019# If no C compiler flags were specified, use CFLAGS.
11020LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11021
11022# Allow CC to be a program name with arguments.
11023compiler=$CC
11024
11025
11026# save warnings/boilerplate of simple test code
11027ac_outfile=conftest.$ac_objext
11028echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11029eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11030_lt_compiler_boilerplate=`cat conftest.err`
11031$rm conftest*
11032
11033ac_outfile=conftest.$ac_objext
11034echo "$lt_simple_link_test_code" >conftest.$ac_ext
11035eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11036_lt_linker_boilerplate=`cat conftest.err`
11037$rm -r conftest*
11038
11039
11040# Allow CC to be a program name with arguments.
11041lt_save_CC=$CC
11042lt_save_LD=$LD
11043lt_save_GCC=$GCC
11044GCC=$GXX
11045lt_save_with_gnu_ld=$with_gnu_ld
11046lt_save_path_LD=$lt_cv_path_LD
11047if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11048  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11049else
11050  $as_unset lt_cv_prog_gnu_ld
11051fi
11052if test -n "${lt_cv_path_LDCXX+set}"; then
11053  lt_cv_path_LD=$lt_cv_path_LDCXX
11054else
11055  $as_unset lt_cv_path_LD
11056fi
11057test -z "${LDCXX+set}" || LD=$LDCXX
11058CC=${CXX-"c++"}
11059compiler=$CC
11060compiler_CXX=$CC
11061for cc_temp in $compiler""; do
11062  case $cc_temp in
11063    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11064    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11065    \-*) ;;
11066    *) break;;
11067  esac
11068done
11069cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11070
11071
11072# We don't want -fno-exception wen compiling C++ code, so set the
11073# no_builtin_flag separately
11074if test "$GXX" = yes; then
11075  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11076else
11077  lt_prog_compiler_no_builtin_flag_CXX=
11078fi
11079
11080if test "$GXX" = yes; then
11081  # Set up default GNU C++ configuration
11082
11083
11084# Check whether --with-gnu-ld was given.
11085if test "${with_gnu_ld+set}" = set; then
11086  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11087else
11088  with_gnu_ld=no
11089fi
11090
11091ac_prog=ld
11092if test "$GCC" = yes; then
11093  # Check if gcc -print-prog-name=ld gives a path.
11094  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11095echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11096  case $host in
11097  *-*-mingw*)
11098    # gcc leaves a trailing carriage return which upsets mingw
11099    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11100  *)
11101    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11102  esac
11103  case $ac_prog in
11104    # Accept absolute paths.
11105    [\\/]* | ?:[\\/]*)
11106      re_direlt='/[^/][^/]*/\.\./'
11107      # Canonicalize the pathname of ld
11108      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11109      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11110	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11111      done
11112      test -z "$LD" && LD="$ac_prog"
11113      ;;
11114  "")
11115    # If it fails, then pretend we aren't using GCC.
11116    ac_prog=ld
11117    ;;
11118  *)
11119    # If it is relative, then search for the first ld in PATH.
11120    with_gnu_ld=unknown
11121    ;;
11122  esac
11123elif test "$with_gnu_ld" = yes; then
11124  { echo "$as_me:$LINENO: checking for GNU ld" >&5
11125echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11126else
11127  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11128echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11129fi
11130if test "${lt_cv_path_LD+set}" = set; then
11131  echo $ECHO_N "(cached) $ECHO_C" >&6
11132else
11133  if test -z "$LD"; then
11134  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11135  for ac_dir in $PATH; do
11136    IFS="$lt_save_ifs"
11137    test -z "$ac_dir" && ac_dir=.
11138    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11139      lt_cv_path_LD="$ac_dir/$ac_prog"
11140      # Check to see if the program is GNU ld.  I'd rather use --version,
11141      # but apparently some variants of GNU ld only accept -v.
11142      # Break only if it was the GNU/non-GNU ld that we prefer.
11143      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11144      *GNU* | *'with BFD'*)
11145	test "$with_gnu_ld" != no && break
11146	;;
11147      *)
11148	test "$with_gnu_ld" != yes && break
11149	;;
11150      esac
11151    fi
11152  done
11153  IFS="$lt_save_ifs"
11154else
11155  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11156fi
11157fi
11158
11159LD="$lt_cv_path_LD"
11160if test -n "$LD"; then
11161  { echo "$as_me:$LINENO: result: $LD" >&5
11162echo "${ECHO_T}$LD" >&6; }
11163else
11164  { echo "$as_me:$LINENO: result: no" >&5
11165echo "${ECHO_T}no" >&6; }
11166fi
11167test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11168echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11169   { (exit 1); exit 1; }; }
11170{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11171echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11172if test "${lt_cv_prog_gnu_ld+set}" = set; then
11173  echo $ECHO_N "(cached) $ECHO_C" >&6
11174else
11175  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11176case `$LD -v 2>&1 </dev/null` in
11177*GNU* | *'with BFD'*)
11178  lt_cv_prog_gnu_ld=yes
11179  ;;
11180*)
11181  lt_cv_prog_gnu_ld=no
11182  ;;
11183esac
11184fi
11185{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11186echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11187with_gnu_ld=$lt_cv_prog_gnu_ld
11188
11189
11190
11191  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11192  # archiving commands below assume that GNU ld is being used.
11193  if test "$with_gnu_ld" = yes; then
11194    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11195    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'
11196
11197    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11198    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11199
11200    # If archive_cmds runs LD, not CC, wlarc should be empty
11201    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11202    #     investigate it a little bit more. (MM)
11203    wlarc='${wl}'
11204
11205    # ancient GNU ld didn't support --whole-archive et. al.
11206    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11207	grep 'no-whole-archive' > /dev/null; then
11208      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11209    else
11210      whole_archive_flag_spec_CXX=
11211    fi
11212  else
11213    with_gnu_ld=no
11214    wlarc=
11215
11216    # A generic and very simple default shared library creation
11217    # command for GNU C++ for the case where it uses the native
11218    # linker, instead of GNU ld.  If possible, this setting should
11219    # overridden to take advantage of the native linker features on
11220    # the platform it is being used on.
11221    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11222  fi
11223
11224  # Commands to make compiler produce verbose output that lists
11225  # what "hidden" libraries, object files and flags are used when
11226  # linking a shared library.
11227  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11228
11229else
11230  GXX=no
11231  with_gnu_ld=no
11232  wlarc=
11233fi
11234
11235# PORTME: fill in a description of your system's C++ link characteristics
11236{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11237echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11238ld_shlibs_CXX=yes
11239case $host_os in
11240  aix3*)
11241    # FIXME: insert proper C++ library support
11242    ld_shlibs_CXX=no
11243    ;;
11244  aix[4-9]*)
11245    if test "$host_cpu" = ia64; then
11246      # On IA64, the linker does run time linking by default, so we don't
11247      # have to do anything special.
11248      aix_use_runtimelinking=no
11249      exp_sym_flag='-Bexport'
11250      no_entry_flag=""
11251    else
11252      aix_use_runtimelinking=no
11253
11254      # Test if we are trying to use run time linking or normal
11255      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11256      # need to do runtime linking.
11257      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11258	for ld_flag in $LDFLAGS; do
11259	  case $ld_flag in
11260	  *-brtl*)
11261	    aix_use_runtimelinking=yes
11262	    break
11263	    ;;
11264	  esac
11265	done
11266	;;
11267      esac
11268
11269      exp_sym_flag='-bexport'
11270      no_entry_flag='-bnoentry'
11271    fi
11272
11273    # When large executables or shared objects are built, AIX ld can
11274    # have problems creating the table of contents.  If linking a library
11275    # or program results in "error TOC overflow" add -mminimal-toc to
11276    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11277    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11278
11279    archive_cmds_CXX=''
11280    hardcode_direct_CXX=yes
11281    hardcode_libdir_separator_CXX=':'
11282    link_all_deplibs_CXX=yes
11283
11284    if test "$GXX" = yes; then
11285      case $host_os in aix4.[012]|aix4.[012].*)
11286      # We only want to do this on AIX 4.2 and lower, the check
11287      # below for broken collect2 doesn't work under 4.3+
11288	collect2name=`${CC} -print-prog-name=collect2`
11289	if test -f "$collect2name" && \
11290	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11291	then
11292	  # We have reworked collect2
11293	  :
11294	else
11295	  # We have old collect2
11296	  hardcode_direct_CXX=unsupported
11297	  # It fails to find uninstalled libraries when the uninstalled
11298	  # path is not listed in the libpath.  Setting hardcode_minus_L
11299	  # to unsupported forces relinking
11300	  hardcode_minus_L_CXX=yes
11301	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11302	  hardcode_libdir_separator_CXX=
11303	fi
11304	;;
11305      esac
11306      shared_flag='-shared'
11307      if test "$aix_use_runtimelinking" = yes; then
11308	shared_flag="$shared_flag "'${wl}-G'
11309      fi
11310    else
11311      # not using gcc
11312      if test "$host_cpu" = ia64; then
11313	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11314	# chokes on -Wl,-G. The following line is correct:
11315	shared_flag='-G'
11316      else
11317	if test "$aix_use_runtimelinking" = yes; then
11318	  shared_flag='${wl}-G'
11319	else
11320	  shared_flag='${wl}-bM:SRE'
11321	fi
11322      fi
11323    fi
11324
11325    # It seems that -bexpall does not export symbols beginning with
11326    # underscore (_), so it is better to generate a list of symbols to export.
11327    always_export_symbols_CXX=yes
11328    if test "$aix_use_runtimelinking" = yes; then
11329      # Warning - without using the other runtime loading flags (-brtl),
11330      # -berok will link without error, but may produce a broken library.
11331      allow_undefined_flag_CXX='-berok'
11332      # Determine the default libpath from the value encoded in an empty executable.
11333      cat >conftest.$ac_ext <<_ACEOF
11334/* confdefs.h.  */
11335_ACEOF
11336cat confdefs.h >>conftest.$ac_ext
11337cat >>conftest.$ac_ext <<_ACEOF
11338/* end confdefs.h.  */
11339
11340int
11341main ()
11342{
11343
11344  ;
11345  return 0;
11346}
11347_ACEOF
11348rm -f conftest.$ac_objext conftest$ac_exeext
11349if { (ac_try="$ac_link"
11350case "(($ac_try" in
11351  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11352  *) ac_try_echo=$ac_try;;
11353esac
11354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11355  (eval "$ac_link") 2>conftest.er1
11356  ac_status=$?
11357  grep -v '^ *+' conftest.er1 >conftest.err
11358  rm -f conftest.er1
11359  cat conftest.err >&5
11360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361  (exit $ac_status); } && {
11362	 test -z "$ac_cxx_werror_flag" ||
11363	 test ! -s conftest.err
11364       } && test -s conftest$ac_exeext &&
11365       $as_test_x conftest$ac_exeext; then
11366
11367lt_aix_libpath_sed='
11368    /Import File Strings/,/^$/ {
11369	/^0/ {
11370	    s/^0  *\(.*\)$/\1/
11371	    p
11372	}
11373    }'
11374aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11375# Check for a 64-bit object if we didn't find anything.
11376if test -z "$aix_libpath"; then
11377  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11378fi
11379else
11380  echo "$as_me: failed program was:" >&5
11381sed 's/^/| /' conftest.$ac_ext >&5
11382
11383
11384fi
11385
11386rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11387      conftest$ac_exeext conftest.$ac_ext
11388if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11389
11390      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11391
11392      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"
11393     else
11394      if test "$host_cpu" = ia64; then
11395	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11396	allow_undefined_flag_CXX="-z nodefs"
11397	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"
11398      else
11399	# Determine the default libpath from the value encoded in an empty executable.
11400	cat >conftest.$ac_ext <<_ACEOF
11401/* confdefs.h.  */
11402_ACEOF
11403cat confdefs.h >>conftest.$ac_ext
11404cat >>conftest.$ac_ext <<_ACEOF
11405/* end confdefs.h.  */
11406
11407int
11408main ()
11409{
11410
11411  ;
11412  return 0;
11413}
11414_ACEOF
11415rm -f conftest.$ac_objext conftest$ac_exeext
11416if { (ac_try="$ac_link"
11417case "(($ac_try" in
11418  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11419  *) ac_try_echo=$ac_try;;
11420esac
11421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11422  (eval "$ac_link") 2>conftest.er1
11423  ac_status=$?
11424  grep -v '^ *+' conftest.er1 >conftest.err
11425  rm -f conftest.er1
11426  cat conftest.err >&5
11427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428  (exit $ac_status); } && {
11429	 test -z "$ac_cxx_werror_flag" ||
11430	 test ! -s conftest.err
11431       } && test -s conftest$ac_exeext &&
11432       $as_test_x conftest$ac_exeext; then
11433
11434lt_aix_libpath_sed='
11435    /Import File Strings/,/^$/ {
11436	/^0/ {
11437	    s/^0  *\(.*\)$/\1/
11438	    p
11439	}
11440    }'
11441aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11442# Check for a 64-bit object if we didn't find anything.
11443if test -z "$aix_libpath"; then
11444  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11445fi
11446else
11447  echo "$as_me: failed program was:" >&5
11448sed 's/^/| /' conftest.$ac_ext >&5
11449
11450
11451fi
11452
11453rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11454      conftest$ac_exeext conftest.$ac_ext
11455if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11456
11457	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11458	# Warning - without using the other run time loading flags,
11459	# -berok will link without error, but may produce a broken library.
11460	no_undefined_flag_CXX=' ${wl}-bernotok'
11461	allow_undefined_flag_CXX=' ${wl}-berok'
11462	# Exported symbols can be pulled into shared objects from archives
11463	whole_archive_flag_spec_CXX='$convenience'
11464	archive_cmds_need_lc_CXX=yes
11465	# This is similar to how AIX traditionally builds its shared libraries.
11466	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'
11467      fi
11468    fi
11469    ;;
11470
11471  beos*)
11472    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11473      allow_undefined_flag_CXX=unsupported
11474      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11475      # support --undefined.  This deserves some investigation.  FIXME
11476      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11477    else
11478      ld_shlibs_CXX=no
11479    fi
11480    ;;
11481
11482  chorus*)
11483    case $cc_basename in
11484      *)
11485	# FIXME: insert proper C++ library support
11486	ld_shlibs_CXX=no
11487	;;
11488    esac
11489    ;;
11490
11491  cygwin* | mingw* | pw32*)
11492    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11493    # as there is no search path for DLLs.
11494    hardcode_libdir_flag_spec_CXX='-L$libdir'
11495    allow_undefined_flag_CXX=unsupported
11496    always_export_symbols_CXX=no
11497    enable_shared_with_static_runtimes_CXX=yes
11498
11499    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11500      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'
11501      # If the export-symbols file already is a .def file (1st line
11502      # is EXPORTS), use it as is; otherwise, prepend...
11503      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11504	cp $export_symbols $output_objdir/$soname.def;
11505      else
11506	echo EXPORTS > $output_objdir/$soname.def;
11507	cat $export_symbols >> $output_objdir/$soname.def;
11508      fi~
11509      $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'
11510    else
11511      ld_shlibs_CXX=no
11512    fi
11513  ;;
11514      darwin* | rhapsody*)
11515      archive_cmds_need_lc_CXX=no
11516      hardcode_direct_CXX=no
11517      hardcode_automatic_CXX=yes
11518      hardcode_shlibpath_var_CXX=unsupported
11519      whole_archive_flag_spec_CXX=''
11520      link_all_deplibs_CXX=yes
11521      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11522      if test "$GXX" = yes ; then
11523      output_verbose_link_cmd='echo'
11524      archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11525      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11526      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11527      module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11528      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11529        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${_lt_dsymutil}"
11530        archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
11531      fi
11532      else
11533      case $cc_basename in
11534        xlc*)
11535         output_verbose_link_cmd='echo'
11536          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11537          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11538          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11539          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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11540          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}'
11541          ;;
11542       *)
11543         ld_shlibs_CXX=no
11544          ;;
11545      esac
11546      fi
11547        ;;
11548
11549  dgux*)
11550    case $cc_basename in
11551      ec++*)
11552	# FIXME: insert proper C++ library support
11553	ld_shlibs_CXX=no
11554	;;
11555      ghcx*)
11556	# Green Hills C++ Compiler
11557	# FIXME: insert proper C++ library support
11558	ld_shlibs_CXX=no
11559	;;
11560      *)
11561	# FIXME: insert proper C++ library support
11562	ld_shlibs_CXX=no
11563	;;
11564    esac
11565    ;;
11566  freebsd[12]*)
11567    # C++ shared libraries reported to be fairly broken before switch to ELF
11568    ld_shlibs_CXX=no
11569    ;;
11570  freebsd-elf*)
11571    archive_cmds_need_lc_CXX=no
11572    ;;
11573  freebsd* | dragonfly*)
11574    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11575    # conventions
11576    ld_shlibs_CXX=yes
11577    ;;
11578  gnu*)
11579    ;;
11580  hpux9*)
11581    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11582    hardcode_libdir_separator_CXX=:
11583    export_dynamic_flag_spec_CXX='${wl}-E'
11584    hardcode_direct_CXX=yes
11585    hardcode_minus_L_CXX=yes # Not in the search PATH,
11586				# but as the default
11587				# location of the library.
11588
11589    case $cc_basename in
11590    CC*)
11591      # FIXME: insert proper C++ library support
11592      ld_shlibs_CXX=no
11593      ;;
11594    aCC*)
11595      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'
11596      # Commands to make compiler produce verbose output that lists
11597      # what "hidden" libraries, object files and flags are used when
11598      # linking a shared library.
11599      #
11600      # There doesn't appear to be a way to prevent this compiler from
11601      # explicitly linking system object files so we need to strip them
11602      # from the output so that they don't get included in the library
11603      # dependencies.
11604      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'
11605      ;;
11606    *)
11607      if test "$GXX" = yes; then
11608        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'
11609      else
11610        # FIXME: insert proper C++ library support
11611        ld_shlibs_CXX=no
11612      fi
11613      ;;
11614    esac
11615    ;;
11616  hpux10*|hpux11*)
11617    if test $with_gnu_ld = no; then
11618      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11619      hardcode_libdir_separator_CXX=:
11620
11621      case $host_cpu in
11622      hppa*64*|ia64*) ;;
11623      *)
11624	export_dynamic_flag_spec_CXX='${wl}-E'
11625        ;;
11626      esac
11627    fi
11628    case $host_cpu in
11629    hppa*64*|ia64*)
11630      hardcode_direct_CXX=no
11631      hardcode_shlibpath_var_CXX=no
11632      ;;
11633    *)
11634      hardcode_direct_CXX=yes
11635      hardcode_minus_L_CXX=yes # Not in the search PATH,
11636					      # but as the default
11637					      # location of the library.
11638      ;;
11639    esac
11640
11641    case $cc_basename in
11642      CC*)
11643	# FIXME: insert proper C++ library support
11644	ld_shlibs_CXX=no
11645	;;
11646      aCC*)
11647	case $host_cpu in
11648	hppa*64*)
11649	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11650	  ;;
11651	ia64*)
11652	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11653	  ;;
11654	*)
11655	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11656	  ;;
11657	esac
11658	# Commands to make compiler produce verbose output that lists
11659	# what "hidden" libraries, object files and flags are used when
11660	# linking a shared library.
11661	#
11662	# There doesn't appear to be a way to prevent this compiler from
11663	# explicitly linking system object files so we need to strip them
11664	# from the output so that they don't get included in the library
11665	# dependencies.
11666	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'
11667	;;
11668      *)
11669	if test "$GXX" = yes; then
11670	  if test $with_gnu_ld = no; then
11671	    case $host_cpu in
11672	    hppa*64*)
11673	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11674	      ;;
11675	    ia64*)
11676	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11677	      ;;
11678	    *)
11679	      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'
11680	      ;;
11681	    esac
11682	  fi
11683	else
11684	  # FIXME: insert proper C++ library support
11685	  ld_shlibs_CXX=no
11686	fi
11687	;;
11688    esac
11689    ;;
11690  interix[3-9]*)
11691    hardcode_direct_CXX=no
11692    hardcode_shlibpath_var_CXX=no
11693    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11694    export_dynamic_flag_spec_CXX='${wl}-E'
11695    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11696    # Instead, shared libraries are loaded at an image base (0x10000000 by
11697    # default) and relocated if they conflict, which is a slow very memory
11698    # consuming and fragmenting process.  To avoid this, we pick a random,
11699    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11700    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11701    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'
11702    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'
11703    ;;
11704  irix5* | irix6*)
11705    case $cc_basename in
11706      CC*)
11707	# SGI C++
11708	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'
11709
11710	# Archives containing C++ object files must be created using
11711	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11712	# necessary to make sure instantiated templates are included
11713	# in the archive.
11714	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11715	;;
11716      *)
11717	if test "$GXX" = yes; then
11718	  if test "$with_gnu_ld" = no; then
11719	    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'
11720	  else
11721	    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'
11722	  fi
11723	fi
11724	link_all_deplibs_CXX=yes
11725	;;
11726    esac
11727    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11728    hardcode_libdir_separator_CXX=:
11729    ;;
11730  linux* | k*bsd*-gnu)
11731    case $cc_basename in
11732      KCC*)
11733	# Kuck and Associates, Inc. (KAI) C++ Compiler
11734
11735	# KCC will only create a shared library if the output file
11736	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11737	# to its proper name (with version) after linking.
11738	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'
11739	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'
11740	# Commands to make compiler produce verbose output that lists
11741	# what "hidden" libraries, object files and flags are used when
11742	# linking a shared library.
11743	#
11744	# There doesn't appear to be a way to prevent this compiler from
11745	# explicitly linking system object files so we need to strip them
11746	# from the output so that they don't get included in the library
11747	# dependencies.
11748	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'
11749
11750	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11751	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11752
11753	# Archives containing C++ object files must be created using
11754	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11755	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11756	;;
11757      icpc*)
11758	# Intel C++
11759	with_gnu_ld=yes
11760	# version 8.0 and above of icpc choke on multiply defined symbols
11761	# if we add $predep_objects and $postdep_objects, however 7.1 and
11762	# earlier do not add the objects themselves.
11763	case `$CC -V 2>&1` in
11764	*"Version 7."*)
11765  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11766  	  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'
11767	  ;;
11768	*)  # Version 8.0 or newer
11769	  tmp_idyn=
11770	  case $host_cpu in
11771	    ia64*) tmp_idyn=' -i_dynamic';;
11772	  esac
11773  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11774	  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'
11775	  ;;
11776	esac
11777	archive_cmds_need_lc_CXX=no
11778	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11779	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11780	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11781	;;
11782      pgCC* | pgcpp*)
11783        # Portland Group C++ compiler
11784	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11785  	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'
11786
11787	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11788	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11789	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'
11790        ;;
11791      cxx*)
11792	# Compaq C++
11793	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11794	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'
11795
11796	runpath_var=LD_RUN_PATH
11797	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11798	hardcode_libdir_separator_CXX=:
11799
11800	# Commands to make compiler produce verbose output that lists
11801	# what "hidden" libraries, object files and flags are used when
11802	# linking a shared library.
11803	#
11804	# There doesn't appear to be a way to prevent this compiler from
11805	# explicitly linking system object files so we need to strip them
11806	# from the output so that they don't get included in the library
11807	# dependencies.
11808	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'
11809	;;
11810      *)
11811	case `$CC -V 2>&1 | sed 5q` in
11812	*Sun\ C*)
11813	  # Sun C++ 5.9
11814	  no_undefined_flag_CXX=' -zdefs'
11815	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11816	  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'
11817	  hardcode_libdir_flag_spec_CXX='-R$libdir'
11818	  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'
11819
11820	  # Not sure whether something based on
11821	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11822	  # would be better.
11823	  output_verbose_link_cmd='echo'
11824
11825	  # Archives containing C++ object files must be created using
11826	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11827	  # necessary to make sure instantiated templates are included
11828	  # in the archive.
11829	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11830	  ;;
11831	esac
11832	;;
11833    esac
11834    ;;
11835  lynxos*)
11836    # FIXME: insert proper C++ library support
11837    ld_shlibs_CXX=no
11838    ;;
11839  m88k*)
11840    # FIXME: insert proper C++ library support
11841    ld_shlibs_CXX=no
11842    ;;
11843  mvs*)
11844    case $cc_basename in
11845      cxx*)
11846	# FIXME: insert proper C++ library support
11847	ld_shlibs_CXX=no
11848	;;
11849      *)
11850	# FIXME: insert proper C++ library support
11851	ld_shlibs_CXX=no
11852	;;
11853    esac
11854    ;;
11855  netbsd* | netbsdelf*-gnu)
11856    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11857      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11858      wlarc=
11859      hardcode_libdir_flag_spec_CXX='-R$libdir'
11860      hardcode_direct_CXX=yes
11861      hardcode_shlibpath_var_CXX=no
11862    fi
11863    # Workaround some broken pre-1.5 toolchains
11864    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11865    ;;
11866  openbsd2*)
11867    # C++ shared libraries are fairly broken
11868    ld_shlibs_CXX=no
11869    ;;
11870  openbsd*)
11871    if test -f /usr/libexec/ld.so; then
11872      hardcode_direct_CXX=yes
11873      hardcode_shlibpath_var_CXX=no
11874      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11875      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11876      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11877	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11878	export_dynamic_flag_spec_CXX='${wl}-E'
11879	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11880      fi
11881      output_verbose_link_cmd='echo'
11882    else
11883      ld_shlibs_CXX=no
11884    fi
11885    ;;
11886  osf3*)
11887    case $cc_basename in
11888      KCC*)
11889	# Kuck and Associates, Inc. (KAI) C++ Compiler
11890
11891	# KCC will only create a shared library if the output file
11892	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11893	# to its proper name (with version) after linking.
11894	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'
11895
11896	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11897	hardcode_libdir_separator_CXX=:
11898
11899	# Archives containing C++ object files must be created using
11900	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11901	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11902
11903	;;
11904      RCC*)
11905	# Rational C++ 2.4.1
11906	# FIXME: insert proper C++ library support
11907	ld_shlibs_CXX=no
11908	;;
11909      cxx*)
11910	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11911	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'
11912
11913	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11914	hardcode_libdir_separator_CXX=:
11915
11916	# Commands to make compiler produce verbose output that lists
11917	# what "hidden" libraries, object files and flags are used when
11918	# linking a shared library.
11919	#
11920	# There doesn't appear to be a way to prevent this compiler from
11921	# explicitly linking system object files so we need to strip them
11922	# from the output so that they don't get included in the library
11923	# dependencies.
11924	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'
11925	;;
11926      *)
11927	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11928	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11929	  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'
11930
11931	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11932	  hardcode_libdir_separator_CXX=:
11933
11934	  # Commands to make compiler produce verbose output that lists
11935	  # what "hidden" libraries, object files and flags are used when
11936	  # linking a shared library.
11937	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11938
11939	else
11940	  # FIXME: insert proper C++ library support
11941	  ld_shlibs_CXX=no
11942	fi
11943	;;
11944    esac
11945    ;;
11946  osf4* | osf5*)
11947    case $cc_basename in
11948      KCC*)
11949	# Kuck and Associates, Inc. (KAI) C++ Compiler
11950
11951	# KCC will only create a shared library if the output file
11952	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11953	# to its proper name (with version) after linking.
11954	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'
11955
11956	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11957	hardcode_libdir_separator_CXX=:
11958
11959	# Archives containing C++ object files must be created using
11960	# the KAI C++ compiler.
11961	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11962	;;
11963      RCC*)
11964	# Rational C++ 2.4.1
11965	# FIXME: insert proper C++ library support
11966	ld_shlibs_CXX=no
11967	;;
11968      cxx*)
11969	allow_undefined_flag_CXX=' -expect_unresolved \*'
11970	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'
11971	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11972	  echo "-hidden">> $lib.exp~
11973	  $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~
11974	  $rm $lib.exp'
11975
11976	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11977	hardcode_libdir_separator_CXX=:
11978
11979	# Commands to make compiler produce verbose output that lists
11980	# what "hidden" libraries, object files and flags are used when
11981	# linking a shared library.
11982	#
11983	# There doesn't appear to be a way to prevent this compiler from
11984	# explicitly linking system object files so we need to strip them
11985	# from the output so that they don't get included in the library
11986	# dependencies.
11987	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'
11988	;;
11989      *)
11990	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11991	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11992	 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'
11993
11994	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11995	  hardcode_libdir_separator_CXX=:
11996
11997	  # Commands to make compiler produce verbose output that lists
11998	  # what "hidden" libraries, object files and flags are used when
11999	  # linking a shared library.
12000	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12001
12002	else
12003	  # FIXME: insert proper C++ library support
12004	  ld_shlibs_CXX=no
12005	fi
12006	;;
12007    esac
12008    ;;
12009  psos*)
12010    # FIXME: insert proper C++ library support
12011    ld_shlibs_CXX=no
12012    ;;
12013  sunos4*)
12014    case $cc_basename in
12015      CC*)
12016	# Sun C++ 4.x
12017	# FIXME: insert proper C++ library support
12018	ld_shlibs_CXX=no
12019	;;
12020      lcc*)
12021	# Lucid
12022	# FIXME: insert proper C++ library support
12023	ld_shlibs_CXX=no
12024	;;
12025      *)
12026	# FIXME: insert proper C++ library support
12027	ld_shlibs_CXX=no
12028	;;
12029    esac
12030    ;;
12031  solaris*)
12032    case $cc_basename in
12033      CC*)
12034	# Sun C++ 4.2, 5.x and Centerline C++
12035        archive_cmds_need_lc_CXX=yes
12036	no_undefined_flag_CXX=' -zdefs'
12037	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12038	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12039	$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'
12040
12041	hardcode_libdir_flag_spec_CXX='-R$libdir'
12042	hardcode_shlibpath_var_CXX=no
12043	case $host_os in
12044	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12045	  *)
12046	    # The compiler driver will combine and reorder linker options,
12047	    # but understands `-z linker_flag'.
12048	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12049	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12050	    ;;
12051	esac
12052	link_all_deplibs_CXX=yes
12053
12054	output_verbose_link_cmd='echo'
12055
12056	# Archives containing C++ object files must be created using
12057	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12058	# necessary to make sure instantiated templates are included
12059	# in the archive.
12060	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12061	;;
12062      gcx*)
12063	# Green Hills C++ Compiler
12064	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12065
12066	# The C++ compiler must be used to create the archive.
12067	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12068	;;
12069      *)
12070	# GNU C++ compiler with Solaris linker
12071	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12072	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12073	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12074	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12075	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12076		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12077
12078	    # Commands to make compiler produce verbose output that lists
12079	    # what "hidden" libraries, object files and flags are used when
12080	    # linking a shared library.
12081	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12082	  else
12083	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12084	    # platform.
12085	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12086	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12087		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12088
12089	    # Commands to make compiler produce verbose output that lists
12090	    # what "hidden" libraries, object files and flags are used when
12091	    # linking a shared library.
12092	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12093	  fi
12094
12095	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12096	  case $host_os in
12097	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12098	  *)
12099	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12100	    ;;
12101	  esac
12102	fi
12103	;;
12104    esac
12105    ;;
12106  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12107    no_undefined_flag_CXX='${wl}-z,text'
12108    archive_cmds_need_lc_CXX=no
12109    hardcode_shlibpath_var_CXX=no
12110    runpath_var='LD_RUN_PATH'
12111
12112    case $cc_basename in
12113      CC*)
12114	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12115	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12116	;;
12117      *)
12118	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12119	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12120	;;
12121    esac
12122    ;;
12123  sysv5* | sco3.2v5* | sco5v6*)
12124    # Note: We can NOT use -z defs as we might desire, because we do not
12125    # link with -lc, and that would cause any symbols used from libc to
12126    # always be unresolved, which means just about no library would
12127    # ever link correctly.  If we're not using GNU ld we use -z text
12128    # though, which does catch some bad symbols but isn't as heavy-handed
12129    # as -z defs.
12130    # For security reasons, it is highly recommended that you always
12131    # use absolute paths for naming shared libraries, and exclude the
12132    # DT_RUNPATH tag from executables and libraries.  But doing so
12133    # requires that you compile everything twice, which is a pain.
12134    # So that behaviour is only enabled if SCOABSPATH is set to a
12135    # non-empty value in the environment.  Most likely only useful for
12136    # creating official distributions of packages.
12137    # This is a hack until libtool officially supports absolute path
12138    # names for shared libraries.
12139    no_undefined_flag_CXX='${wl}-z,text'
12140    allow_undefined_flag_CXX='${wl}-z,nodefs'
12141    archive_cmds_need_lc_CXX=no
12142    hardcode_shlibpath_var_CXX=no
12143    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12144    hardcode_libdir_separator_CXX=':'
12145    link_all_deplibs_CXX=yes
12146    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12147    runpath_var='LD_RUN_PATH'
12148
12149    case $cc_basename in
12150      CC*)
12151	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12152	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12153	;;
12154      *)
12155	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12156	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12157	;;
12158    esac
12159    ;;
12160  tandem*)
12161    case $cc_basename in
12162      NCC*)
12163	# NonStop-UX NCC 3.20
12164	# FIXME: insert proper C++ library support
12165	ld_shlibs_CXX=no
12166	;;
12167      *)
12168	# FIXME: insert proper C++ library support
12169	ld_shlibs_CXX=no
12170	;;
12171    esac
12172    ;;
12173  vxworks*)
12174    # FIXME: insert proper C++ library support
12175    ld_shlibs_CXX=no
12176    ;;
12177  *)
12178    # FIXME: insert proper C++ library support
12179    ld_shlibs_CXX=no
12180    ;;
12181esac
12182{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12183echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12184test "$ld_shlibs_CXX" = no && can_build_shared=no
12185
12186GCC_CXX="$GXX"
12187LD_CXX="$LD"
12188
12189cat > conftest.$ac_ext <<EOF
12190class Foo
12191{
12192public:
12193  Foo (void) { a = 0; }
12194private:
12195  int a;
12196};
12197EOF
12198
12199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12200  (eval $ac_compile) 2>&5
12201  ac_status=$?
12202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203  (exit $ac_status); }; then
12204  # Parse the compiler output and extract the necessary
12205  # objects, libraries and library flags.
12206
12207  # Sentinel used to keep track of whether or not we are before
12208  # the conftest object file.
12209  pre_test_object_deps_done=no
12210
12211  # The `*' in the case matches for architectures that use `case' in
12212  # $output_verbose_cmd can trigger glob expansion during the loop
12213  # eval without this substitution.
12214  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12215
12216  for p in `eval $output_verbose_link_cmd`; do
12217    case $p in
12218
12219    -L* | -R* | -l*)
12220       # Some compilers place space between "-{L,R}" and the path.
12221       # Remove the space.
12222       if test $p = "-L" \
12223	  || test $p = "-R"; then
12224	 prev=$p
12225	 continue
12226       else
12227	 prev=
12228       fi
12229
12230       if test "$pre_test_object_deps_done" = no; then
12231	 case $p in
12232	 -L* | -R*)
12233	   # Internal compiler library paths should come after those
12234	   # provided the user.  The postdeps already come after the
12235	   # user supplied libs so there is no need to process them.
12236	   if test -z "$compiler_lib_search_path_CXX"; then
12237	     compiler_lib_search_path_CXX="${prev}${p}"
12238	   else
12239	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12240	   fi
12241	   ;;
12242	 # The "-l" case would never come before the object being
12243	 # linked, so don't bother handling this case.
12244	 esac
12245       else
12246	 if test -z "$postdeps_CXX"; then
12247	   postdeps_CXX="${prev}${p}"
12248	 else
12249	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12250	 fi
12251       fi
12252       ;;
12253
12254    *.$objext)
12255       # This assumes that the test object file only shows up
12256       # once in the compiler output.
12257       if test "$p" = "conftest.$objext"; then
12258	 pre_test_object_deps_done=yes
12259	 continue
12260       fi
12261
12262       if test "$pre_test_object_deps_done" = no; then
12263	 if test -z "$predep_objects_CXX"; then
12264	   predep_objects_CXX="$p"
12265	 else
12266	   predep_objects_CXX="$predep_objects_CXX $p"
12267	 fi
12268       else
12269	 if test -z "$postdep_objects_CXX"; then
12270	   postdep_objects_CXX="$p"
12271	 else
12272	   postdep_objects_CXX="$postdep_objects_CXX $p"
12273	 fi
12274       fi
12275       ;;
12276
12277    *) ;; # Ignore the rest.
12278
12279    esac
12280  done
12281
12282  # Clean up.
12283  rm -f a.out a.exe
12284else
12285  echo "libtool.m4: error: problem compiling CXX test program"
12286fi
12287
12288$rm -f confest.$objext
12289
12290compiler_lib_search_dirs_CXX=
12291if test -n "$compiler_lib_search_path_CXX"; then
12292  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12293fi
12294
12295# PORTME: override above test on systems where it is broken
12296case $host_os in
12297interix[3-9]*)
12298  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12299  # hack all around it, let's just trust "g++" to DTRT.
12300  predep_objects_CXX=
12301  postdep_objects_CXX=
12302  postdeps_CXX=
12303  ;;
12304
12305linux*)
12306  case `$CC -V 2>&1 | sed 5q` in
12307  *Sun\ C*)
12308    # Sun C++ 5.9
12309    #
12310    # The more standards-conforming stlport4 library is
12311    # incompatible with the Cstd library. Avoid specifying
12312    # it if it's in CXXFLAGS. Ignore libCrun as
12313    # -library=stlport4 depends on it.
12314    case " $CXX $CXXFLAGS " in
12315    *" -library=stlport4 "*)
12316      solaris_use_stlport4=yes
12317      ;;
12318    esac
12319    if test "$solaris_use_stlport4" != yes; then
12320      postdeps_CXX='-library=Cstd -library=Crun'
12321    fi
12322    ;;
12323  esac
12324  ;;
12325
12326solaris*)
12327  case $cc_basename in
12328  CC*)
12329    # The more standards-conforming stlport4 library is
12330    # incompatible with the Cstd library. Avoid specifying
12331    # it if it's in CXXFLAGS. Ignore libCrun as
12332    # -library=stlport4 depends on it.
12333    case " $CXX $CXXFLAGS " in
12334    *" -library=stlport4 "*)
12335      solaris_use_stlport4=yes
12336      ;;
12337    esac
12338
12339    # Adding this requires a known-good setup of shared libraries for
12340    # Sun compiler versions before 5.6, else PIC objects from an old
12341    # archive will be linked into the output, leading to subtle bugs.
12342    if test "$solaris_use_stlport4" != yes; then
12343      postdeps_CXX='-library=Cstd -library=Crun'
12344    fi
12345    ;;
12346  esac
12347  ;;
12348esac
12349
12350case " $postdeps_CXX " in
12351*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12352esac
12353
12354lt_prog_compiler_wl_CXX=
12355lt_prog_compiler_pic_CXX=
12356lt_prog_compiler_static_CXX=
12357
12358{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12359echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12360
12361  # C++ specific cases for pic, static, wl, etc.
12362  if test "$GXX" = yes; then
12363    lt_prog_compiler_wl_CXX='-Wl,'
12364    lt_prog_compiler_static_CXX='-static'
12365
12366    case $host_os in
12367    aix*)
12368      # All AIX code is PIC.
12369      if test "$host_cpu" = ia64; then
12370	# AIX 5 now supports IA64 processor
12371	lt_prog_compiler_static_CXX='-Bstatic'
12372      fi
12373      ;;
12374    amigaos*)
12375      # FIXME: we need at least 68020 code to build shared libraries, but
12376      # adding the `-m68020' flag to GCC prevents building anything better,
12377      # like `-m68040'.
12378      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12379      ;;
12380    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12381      # PIC is the default for these OSes.
12382      ;;
12383    mingw* | cygwin* | os2* | pw32*)
12384      # This hack is so that the source file can tell whether it is being
12385      # built for inclusion in a dll (and should export symbols for example).
12386      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12387      # (--disable-auto-import) libraries
12388      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12389      ;;
12390    darwin* | rhapsody*)
12391      # PIC is the default on this platform
12392      # Common symbols not allowed in MH_DYLIB files
12393      lt_prog_compiler_pic_CXX='-fno-common'
12394      ;;
12395    *djgpp*)
12396      # DJGPP does not support shared libraries at all
12397      lt_prog_compiler_pic_CXX=
12398      ;;
12399    interix[3-9]*)
12400      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12401      # Instead, we relocate shared libraries at runtime.
12402      ;;
12403    sysv4*MP*)
12404      if test -d /usr/nec; then
12405	lt_prog_compiler_pic_CXX=-Kconform_pic
12406      fi
12407      ;;
12408    hpux*)
12409      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12410      # not for PA HP-UX.
12411      case $host_cpu in
12412      hppa*64*|ia64*)
12413	;;
12414      *)
12415	lt_prog_compiler_pic_CXX='-fPIC'
12416	;;
12417      esac
12418      ;;
12419    *)
12420      lt_prog_compiler_pic_CXX='-fPIC'
12421      ;;
12422    esac
12423  else
12424    case $host_os in
12425      aix[4-9]*)
12426	# All AIX code is PIC.
12427	if test "$host_cpu" = ia64; then
12428	  # AIX 5 now supports IA64 processor
12429	  lt_prog_compiler_static_CXX='-Bstatic'
12430	else
12431	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12432	fi
12433	;;
12434      chorus*)
12435	case $cc_basename in
12436	cxch68*)
12437	  # Green Hills C++ Compiler
12438	  # _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"
12439	  ;;
12440	esac
12441	;;
12442       darwin*)
12443         # PIC is the default on this platform
12444         # Common symbols not allowed in MH_DYLIB files
12445         case $cc_basename in
12446           xlc*)
12447           lt_prog_compiler_pic_CXX='-qnocommon'
12448           lt_prog_compiler_wl_CXX='-Wl,'
12449           ;;
12450         esac
12451       ;;
12452      dgux*)
12453	case $cc_basename in
12454	  ec++*)
12455	    lt_prog_compiler_pic_CXX='-KPIC'
12456	    ;;
12457	  ghcx*)
12458	    # Green Hills C++ Compiler
12459	    lt_prog_compiler_pic_CXX='-pic'
12460	    ;;
12461	  *)
12462	    ;;
12463	esac
12464	;;
12465      freebsd* | dragonfly*)
12466	# FreeBSD uses GNU C++
12467	;;
12468      hpux9* | hpux10* | hpux11*)
12469	case $cc_basename in
12470	  CC*)
12471	    lt_prog_compiler_wl_CXX='-Wl,'
12472	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12473	    if test "$host_cpu" != ia64; then
12474	      lt_prog_compiler_pic_CXX='+Z'
12475	    fi
12476	    ;;
12477	  aCC*)
12478	    lt_prog_compiler_wl_CXX='-Wl,'
12479	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12480	    case $host_cpu in
12481	    hppa*64*|ia64*)
12482	      # +Z the default
12483	      ;;
12484	    *)
12485	      lt_prog_compiler_pic_CXX='+Z'
12486	      ;;
12487	    esac
12488	    ;;
12489	  *)
12490	    ;;
12491	esac
12492	;;
12493      interix*)
12494	# This is c89, which is MS Visual C++ (no shared libs)
12495	# Anyone wants to do a port?
12496	;;
12497      irix5* | irix6* | nonstopux*)
12498	case $cc_basename in
12499	  CC*)
12500	    lt_prog_compiler_wl_CXX='-Wl,'
12501	    lt_prog_compiler_static_CXX='-non_shared'
12502	    # CC pic flag -KPIC is the default.
12503	    ;;
12504	  *)
12505	    ;;
12506	esac
12507	;;
12508      linux* | k*bsd*-gnu)
12509	case $cc_basename in
12510	  KCC*)
12511	    # KAI C++ Compiler
12512	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12513	    lt_prog_compiler_pic_CXX='-fPIC'
12514	    ;;
12515	  icpc* | ecpc*)
12516	    # Intel C++
12517	    lt_prog_compiler_wl_CXX='-Wl,'
12518	    lt_prog_compiler_pic_CXX='-KPIC'
12519	    lt_prog_compiler_static_CXX='-static'
12520	    ;;
12521	  pgCC* | pgcpp*)
12522	    # Portland Group C++ compiler.
12523	    lt_prog_compiler_wl_CXX='-Wl,'
12524	    lt_prog_compiler_pic_CXX='-fpic'
12525	    lt_prog_compiler_static_CXX='-Bstatic'
12526	    ;;
12527	  cxx*)
12528	    # Compaq C++
12529	    # Make sure the PIC flag is empty.  It appears that all Alpha
12530	    # Linux and Compaq Tru64 Unix objects are PIC.
12531	    lt_prog_compiler_pic_CXX=
12532	    lt_prog_compiler_static_CXX='-non_shared'
12533	    ;;
12534	  *)
12535	    case `$CC -V 2>&1 | sed 5q` in
12536	    *Sun\ C*)
12537	      # Sun C++ 5.9
12538	      lt_prog_compiler_pic_CXX='-KPIC'
12539	      lt_prog_compiler_static_CXX='-Bstatic'
12540	      lt_prog_compiler_wl_CXX='-Qoption ld '
12541	      ;;
12542	    esac
12543	    ;;
12544	esac
12545	;;
12546      lynxos*)
12547	;;
12548      m88k*)
12549	;;
12550      mvs*)
12551	case $cc_basename in
12552	  cxx*)
12553	    lt_prog_compiler_pic_CXX='-W c,exportall'
12554	    ;;
12555	  *)
12556	    ;;
12557	esac
12558	;;
12559      netbsd* | netbsdelf*-gnu)
12560	;;
12561      osf3* | osf4* | osf5*)
12562	case $cc_basename in
12563	  KCC*)
12564	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12565	    ;;
12566	  RCC*)
12567	    # Rational C++ 2.4.1
12568	    lt_prog_compiler_pic_CXX='-pic'
12569	    ;;
12570	  cxx*)
12571	    # Digital/Compaq C++
12572	    lt_prog_compiler_wl_CXX='-Wl,'
12573	    # Make sure the PIC flag is empty.  It appears that all Alpha
12574	    # Linux and Compaq Tru64 Unix objects are PIC.
12575	    lt_prog_compiler_pic_CXX=
12576	    lt_prog_compiler_static_CXX='-non_shared'
12577	    ;;
12578	  *)
12579	    ;;
12580	esac
12581	;;
12582      psos*)
12583	;;
12584      solaris*)
12585	case $cc_basename in
12586	  CC*)
12587	    # Sun C++ 4.2, 5.x and Centerline C++
12588	    lt_prog_compiler_pic_CXX='-KPIC'
12589	    lt_prog_compiler_static_CXX='-Bstatic'
12590	    lt_prog_compiler_wl_CXX='-Qoption ld '
12591	    ;;
12592	  gcx*)
12593	    # Green Hills C++ Compiler
12594	    lt_prog_compiler_pic_CXX='-PIC'
12595	    ;;
12596	  *)
12597	    ;;
12598	esac
12599	;;
12600      sunos4*)
12601	case $cc_basename in
12602	  CC*)
12603	    # Sun C++ 4.x
12604	    lt_prog_compiler_pic_CXX='-pic'
12605	    lt_prog_compiler_static_CXX='-Bstatic'
12606	    ;;
12607	  lcc*)
12608	    # Lucid
12609	    lt_prog_compiler_pic_CXX='-pic'
12610	    ;;
12611	  *)
12612	    ;;
12613	esac
12614	;;
12615      tandem*)
12616	case $cc_basename in
12617	  NCC*)
12618	    # NonStop-UX NCC 3.20
12619	    lt_prog_compiler_pic_CXX='-KPIC'
12620	    ;;
12621	  *)
12622	    ;;
12623	esac
12624	;;
12625      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12626	case $cc_basename in
12627	  CC*)
12628	    lt_prog_compiler_wl_CXX='-Wl,'
12629	    lt_prog_compiler_pic_CXX='-KPIC'
12630	    lt_prog_compiler_static_CXX='-Bstatic'
12631	    ;;
12632	esac
12633	;;
12634      vxworks*)
12635	;;
12636      *)
12637	lt_prog_compiler_can_build_shared_CXX=no
12638	;;
12639    esac
12640  fi
12641
12642{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12643echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12644
12645#
12646# Check to make sure the PIC flag actually works.
12647#
12648if test -n "$lt_prog_compiler_pic_CXX"; then
12649
12650{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12651echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12652if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12653  echo $ECHO_N "(cached) $ECHO_C" >&6
12654else
12655  lt_cv_prog_compiler_pic_works_CXX=no
12656  ac_outfile=conftest.$ac_objext
12657   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12658   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12659   # Insert the option either (1) after the last *FLAGS variable, or
12660   # (2) before a word containing "conftest.", or (3) at the end.
12661   # Note that $ac_compile itself does not contain backslashes and begins
12662   # with a dollar sign (not a hyphen), so the echo should work correctly.
12663   # The option is referenced via a variable to avoid confusing sed.
12664   lt_compile=`echo "$ac_compile" | $SED \
12665   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12666   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12667   -e 's:$: $lt_compiler_flag:'`
12668   (eval echo "\"\$as_me:12668: $lt_compile\"" >&5)
12669   (eval "$lt_compile" 2>conftest.err)
12670   ac_status=$?
12671   cat conftest.err >&5
12672   echo "$as_me:12672: \$? = $ac_status" >&5
12673   if (exit $ac_status) && test -s "$ac_outfile"; then
12674     # The compiler can only warn and ignore the option if not recognized
12675     # So say no if there are warnings other than the usual output.
12676     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12677     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12678     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12679       lt_cv_prog_compiler_pic_works_CXX=yes
12680     fi
12681   fi
12682   $rm conftest*
12683
12684fi
12685{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12686echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12687
12688if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12689    case $lt_prog_compiler_pic_CXX in
12690     "" | " "*) ;;
12691     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12692     esac
12693else
12694    lt_prog_compiler_pic_CXX=
12695     lt_prog_compiler_can_build_shared_CXX=no
12696fi
12697
12698fi
12699case $host_os in
12700  # For platforms which do not support PIC, -DPIC is meaningless:
12701  *djgpp*)
12702    lt_prog_compiler_pic_CXX=
12703    ;;
12704  *)
12705    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12706    ;;
12707esac
12708
12709#
12710# Check to make sure the static flag actually works.
12711#
12712wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12713{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12714echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12715if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12716  echo $ECHO_N "(cached) $ECHO_C" >&6
12717else
12718  lt_cv_prog_compiler_static_works_CXX=no
12719   save_LDFLAGS="$LDFLAGS"
12720   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12721   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12722   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12723     # The linker can only warn and ignore the option if not recognized
12724     # So say no if there are warnings
12725     if test -s conftest.err; then
12726       # Append any errors to the config.log.
12727       cat conftest.err 1>&5
12728       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12729       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12730       if diff conftest.exp conftest.er2 >/dev/null; then
12731         lt_cv_prog_compiler_static_works_CXX=yes
12732       fi
12733     else
12734       lt_cv_prog_compiler_static_works_CXX=yes
12735     fi
12736   fi
12737   $rm -r conftest*
12738   LDFLAGS="$save_LDFLAGS"
12739
12740fi
12741{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12742echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12743
12744if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12745    :
12746else
12747    lt_prog_compiler_static_CXX=
12748fi
12749
12750
12751{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12752echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12753if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12754  echo $ECHO_N "(cached) $ECHO_C" >&6
12755else
12756  lt_cv_prog_compiler_c_o_CXX=no
12757   $rm -r conftest 2>/dev/null
12758   mkdir conftest
12759   cd conftest
12760   mkdir out
12761   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12762
12763   lt_compiler_flag="-o out/conftest2.$ac_objext"
12764   # Insert the option either (1) after the last *FLAGS variable, or
12765   # (2) before a word containing "conftest.", or (3) at the end.
12766   # Note that $ac_compile itself does not contain backslashes and begins
12767   # with a dollar sign (not a hyphen), so the echo should work correctly.
12768   lt_compile=`echo "$ac_compile" | $SED \
12769   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12770   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12771   -e 's:$: $lt_compiler_flag:'`
12772   (eval echo "\"\$as_me:12772: $lt_compile\"" >&5)
12773   (eval "$lt_compile" 2>out/conftest.err)
12774   ac_status=$?
12775   cat out/conftest.err >&5
12776   echo "$as_me:12776: \$? = $ac_status" >&5
12777   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12778   then
12779     # The compiler can only warn and ignore the option if not recognized
12780     # So say no if there are warnings
12781     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12782     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12783     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12784       lt_cv_prog_compiler_c_o_CXX=yes
12785     fi
12786   fi
12787   chmod u+w . 2>&5
12788   $rm conftest*
12789   # SGI C++ compiler will create directory out/ii_files/ for
12790   # template instantiation
12791   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12792   $rm out/* && rmdir out
12793   cd ..
12794   rmdir conftest
12795   $rm conftest*
12796
12797fi
12798{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12799echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12800
12801
12802hard_links="nottested"
12803if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12804  # do not overwrite the value of need_locks provided by the user
12805  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12806echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12807  hard_links=yes
12808  $rm conftest*
12809  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12810  touch conftest.a
12811  ln conftest.a conftest.b 2>&5 || hard_links=no
12812  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12813  { echo "$as_me:$LINENO: result: $hard_links" >&5
12814echo "${ECHO_T}$hard_links" >&6; }
12815  if test "$hard_links" = no; then
12816    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12817echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12818    need_locks=warn
12819  fi
12820else
12821  need_locks=no
12822fi
12823
12824{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12825echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12826
12827  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12828  case $host_os in
12829  aix[4-9]*)
12830    # If we're using GNU nm, then we don't want the "-C" option.
12831    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12832    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12833      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'
12834    else
12835      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'
12836    fi
12837    ;;
12838  pw32*)
12839    export_symbols_cmds_CXX="$ltdll_cmds"
12840  ;;
12841  cygwin* | mingw*)
12842    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'
12843  ;;
12844  linux* | k*bsd*-gnu)
12845    link_all_deplibs_CXX=no
12846  ;;
12847  *)
12848    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12849  ;;
12850  esac
12851  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12852
12853{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12854echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12855test "$ld_shlibs_CXX" = no && can_build_shared=no
12856
12857#
12858# Do we need to explicitly link libc?
12859#
12860case "x$archive_cmds_need_lc_CXX" in
12861x|xyes)
12862  # Assume -lc should be added
12863  archive_cmds_need_lc_CXX=yes
12864
12865  if test "$enable_shared" = yes && test "$GCC" = yes; then
12866    case $archive_cmds_CXX in
12867    *'~'*)
12868      # FIXME: we may have to deal with multi-command sequences.
12869      ;;
12870    '$CC '*)
12871      # Test whether the compiler implicitly links with -lc since on some
12872      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12873      # to ld, don't add -lc before -lgcc.
12874      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12875echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12876      $rm conftest*
12877      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12878
12879      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12880  (eval $ac_compile) 2>&5
12881  ac_status=$?
12882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883  (exit $ac_status); } 2>conftest.err; then
12884        soname=conftest
12885        lib=conftest
12886        libobjs=conftest.$ac_objext
12887        deplibs=
12888        wl=$lt_prog_compiler_wl_CXX
12889	pic_flag=$lt_prog_compiler_pic_CXX
12890        compiler_flags=-v
12891        linker_flags=-v
12892        verstring=
12893        output_objdir=.
12894        libname=conftest
12895        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12896        allow_undefined_flag_CXX=
12897        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12898  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12899  ac_status=$?
12900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901  (exit $ac_status); }
12902        then
12903	  archive_cmds_need_lc_CXX=no
12904        else
12905	  archive_cmds_need_lc_CXX=yes
12906        fi
12907        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12908      else
12909        cat conftest.err 1>&5
12910      fi
12911      $rm conftest*
12912      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12913echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12914      ;;
12915    esac
12916  fi
12917  ;;
12918esac
12919
12920{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12921echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12922library_names_spec=
12923libname_spec='lib$name'
12924soname_spec=
12925shrext_cmds=".so"
12926postinstall_cmds=
12927postuninstall_cmds=
12928finish_cmds=
12929finish_eval=
12930shlibpath_var=
12931shlibpath_overrides_runpath=unknown
12932version_type=none
12933dynamic_linker="$host_os ld.so"
12934sys_lib_dlsearch_path_spec="/lib /usr/lib"
12935
12936need_lib_prefix=unknown
12937hardcode_into_libs=no
12938
12939# when you set need_version to no, make sure it does not cause -set_version
12940# flags to be left without arguments
12941need_version=unknown
12942
12943case $host_os in
12944aix3*)
12945  version_type=linux
12946  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12947  shlibpath_var=LIBPATH
12948
12949  # AIX 3 has no versioning support, so we append a major version to the name.
12950  soname_spec='${libname}${release}${shared_ext}$major'
12951  ;;
12952
12953aix[4-9]*)
12954  version_type=linux
12955  need_lib_prefix=no
12956  need_version=no
12957  hardcode_into_libs=yes
12958  if test "$host_cpu" = ia64; then
12959    # AIX 5 supports IA64
12960    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12961    shlibpath_var=LD_LIBRARY_PATH
12962  else
12963    # With GCC up to 2.95.x, collect2 would create an import file
12964    # for dependence libraries.  The import file would start with
12965    # the line `#! .'.  This would cause the generated library to
12966    # depend on `.', always an invalid library.  This was fixed in
12967    # development snapshots of GCC prior to 3.0.
12968    case $host_os in
12969      aix4 | aix4.[01] | aix4.[01].*)
12970      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12971	   echo ' yes '
12972	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12973	:
12974      else
12975	can_build_shared=no
12976      fi
12977      ;;
12978    esac
12979    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12980    # soname into executable. Probably we can add versioning support to
12981    # collect2, so additional links can be useful in future.
12982    if test "$aix_use_runtimelinking" = yes; then
12983      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12984      # instead of lib<name>.a to let people know that these are not
12985      # typical AIX shared libraries.
12986      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12987    else
12988      # We preserve .a as extension for shared libraries through AIX4.2
12989      # and later when we are not doing run time linking.
12990      library_names_spec='${libname}${release}.a $libname.a'
12991      soname_spec='${libname}${release}${shared_ext}$major'
12992    fi
12993    shlibpath_var=LIBPATH
12994  fi
12995  ;;
12996
12997amigaos*)
12998  library_names_spec='$libname.ixlibrary $libname.a'
12999  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13000  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'
13001  ;;
13002
13003beos*)
13004  library_names_spec='${libname}${shared_ext}'
13005  dynamic_linker="$host_os ld.so"
13006  shlibpath_var=LIBRARY_PATH
13007  ;;
13008
13009bsdi[45]*)
13010  version_type=linux
13011  need_version=no
13012  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13013  soname_spec='${libname}${release}${shared_ext}$major'
13014  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13015  shlibpath_var=LD_LIBRARY_PATH
13016  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13017  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13018  # the default ld.so.conf also contains /usr/contrib/lib and
13019  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13020  # libtool to hard-code these into programs
13021  ;;
13022
13023cygwin* | mingw* | pw32*)
13024  version_type=windows
13025  shrext_cmds=".dll"
13026  need_version=no
13027  need_lib_prefix=no
13028
13029  case $GCC,$host_os in
13030  yes,cygwin* | yes,mingw* | yes,pw32*)
13031    library_names_spec='$libname.dll.a'
13032    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13033    postinstall_cmds='base_file=`basename \${file}`~
13034      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13035      dldir=$destdir/`dirname \$dlpath`~
13036      test -d \$dldir || mkdir -p \$dldir~
13037      $install_prog $dir/$dlname \$dldir/$dlname~
13038      chmod a+x \$dldir/$dlname'
13039    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13040      dlpath=$dir/\$dldll~
13041       $rm \$dlpath'
13042    shlibpath_overrides_runpath=yes
13043
13044    case $host_os in
13045    cygwin*)
13046      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13047      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13048      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13049      ;;
13050    mingw*)
13051      # MinGW DLLs use traditional 'lib' prefix
13052      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13053      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13054      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13055        # It is most probably a Windows format PATH printed by
13056        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13057        # path with ; separators, and with drive letters. We can handle the
13058        # drive letters (cygwin fileutils understands them), so leave them,
13059        # especially as we might pass files found there to a mingw objdump,
13060        # which wouldn't understand a cygwinified path. Ahh.
13061        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13062      else
13063        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13064      fi
13065      ;;
13066    pw32*)
13067      # pw32 DLLs use 'pw' prefix rather than 'lib'
13068      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13069      ;;
13070    esac
13071    ;;
13072
13073  *)
13074    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13075    ;;
13076  esac
13077  dynamic_linker='Win32 ld.exe'
13078  # FIXME: first we should search . and the directory the executable is in
13079  shlibpath_var=PATH
13080  ;;
13081
13082darwin* | rhapsody*)
13083  dynamic_linker="$host_os dyld"
13084  version_type=darwin
13085  need_lib_prefix=no
13086  need_version=no
13087  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13088  soname_spec='${libname}${release}${major}$shared_ext'
13089  shlibpath_overrides_runpath=yes
13090  shlibpath_var=DYLD_LIBRARY_PATH
13091  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13092
13093  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13094  ;;
13095
13096dgux*)
13097  version_type=linux
13098  need_lib_prefix=no
13099  need_version=no
13100  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13101  soname_spec='${libname}${release}${shared_ext}$major'
13102  shlibpath_var=LD_LIBRARY_PATH
13103  ;;
13104
13105freebsd1*)
13106  dynamic_linker=no
13107  ;;
13108
13109freebsd* | dragonfly*)
13110  # DragonFly does not have aout.  When/if they implement a new
13111  # versioning mechanism, adjust this.
13112  if test -x /usr/bin/objformat; then
13113    objformat=`/usr/bin/objformat`
13114  else
13115    case $host_os in
13116    freebsd[123]*) objformat=aout ;;
13117    *) objformat=elf ;;
13118    esac
13119  fi
13120  version_type=freebsd-$objformat
13121  case $version_type in
13122    freebsd-elf*)
13123      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13124      need_version=no
13125      need_lib_prefix=no
13126      ;;
13127    freebsd-*)
13128      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13129      need_version=yes
13130      ;;
13131  esac
13132  shlibpath_var=LD_LIBRARY_PATH
13133  case $host_os in
13134  freebsd2*)
13135    shlibpath_overrides_runpath=yes
13136    ;;
13137  freebsd3.[01]* | freebsdelf3.[01]*)
13138    shlibpath_overrides_runpath=yes
13139    hardcode_into_libs=yes
13140    ;;
13141  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13142  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13143    shlibpath_overrides_runpath=no
13144    hardcode_into_libs=yes
13145    ;;
13146  *) # from 4.6 on, and DragonFly
13147    shlibpath_overrides_runpath=yes
13148    hardcode_into_libs=yes
13149    ;;
13150  esac
13151  ;;
13152
13153gnu*)
13154  version_type=linux
13155  need_lib_prefix=no
13156  need_version=no
13157  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13158  soname_spec='${libname}${release}${shared_ext}$major'
13159  shlibpath_var=LD_LIBRARY_PATH
13160  hardcode_into_libs=yes
13161  ;;
13162
13163hpux9* | hpux10* | hpux11*)
13164  # Give a soname corresponding to the major version so that dld.sl refuses to
13165  # link against other versions.
13166  version_type=sunos
13167  need_lib_prefix=no
13168  need_version=no
13169  case $host_cpu in
13170  ia64*)
13171    shrext_cmds='.so'
13172    hardcode_into_libs=yes
13173    dynamic_linker="$host_os dld.so"
13174    shlibpath_var=LD_LIBRARY_PATH
13175    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13176    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13177    soname_spec='${libname}${release}${shared_ext}$major'
13178    if test "X$HPUX_IA64_MODE" = X32; then
13179      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13180    else
13181      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13182    fi
13183    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13184    ;;
13185   hppa*64*)
13186     shrext_cmds='.sl'
13187     hardcode_into_libs=yes
13188     dynamic_linker="$host_os dld.sl"
13189     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13190     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13191     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13192     soname_spec='${libname}${release}${shared_ext}$major'
13193     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13194     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13195     ;;
13196   *)
13197    shrext_cmds='.sl'
13198    dynamic_linker="$host_os dld.sl"
13199    shlibpath_var=SHLIB_PATH
13200    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13201    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13202    soname_spec='${libname}${release}${shared_ext}$major'
13203    ;;
13204  esac
13205  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13206  postinstall_cmds='chmod 555 $lib'
13207  ;;
13208
13209interix[3-9]*)
13210  version_type=linux
13211  need_lib_prefix=no
13212  need_version=no
13213  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13214  soname_spec='${libname}${release}${shared_ext}$major'
13215  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13216  shlibpath_var=LD_LIBRARY_PATH
13217  shlibpath_overrides_runpath=no
13218  hardcode_into_libs=yes
13219  ;;
13220
13221irix5* | irix6* | nonstopux*)
13222  case $host_os in
13223    nonstopux*) version_type=nonstopux ;;
13224    *)
13225	if test "$lt_cv_prog_gnu_ld" = yes; then
13226		version_type=linux
13227	else
13228		version_type=irix
13229	fi ;;
13230  esac
13231  need_lib_prefix=no
13232  need_version=no
13233  soname_spec='${libname}${release}${shared_ext}$major'
13234  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13235  case $host_os in
13236  irix5* | nonstopux*)
13237    libsuff= shlibsuff=
13238    ;;
13239  *)
13240    case $LD in # libtool.m4 will add one of these switches to LD
13241    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13242      libsuff= shlibsuff= libmagic=32-bit;;
13243    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13244      libsuff=32 shlibsuff=N32 libmagic=N32;;
13245    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13246      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13247    *) libsuff= shlibsuff= libmagic=never-match;;
13248    esac
13249    ;;
13250  esac
13251  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13252  shlibpath_overrides_runpath=no
13253  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13254  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13255  hardcode_into_libs=yes
13256  ;;
13257
13258# No shared lib support for Linux oldld, aout, or coff.
13259linux*oldld* | linux*aout* | linux*coff*)
13260  dynamic_linker=no
13261  ;;
13262
13263# This must be Linux ELF.
13264linux* | k*bsd*-gnu)
13265  version_type=linux
13266  need_lib_prefix=no
13267  need_version=no
13268  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13269  soname_spec='${libname}${release}${shared_ext}$major'
13270  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13271  shlibpath_var=LD_LIBRARY_PATH
13272  shlibpath_overrides_runpath=no
13273  # This implies no fast_install, which is unacceptable.
13274  # Some rework will be needed to allow for fast_install
13275  # before this can be enabled.
13276  hardcode_into_libs=yes
13277
13278  # Append ld.so.conf contents to the search path
13279  if test -f /etc/ld.so.conf; then
13280    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/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13281    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13282  fi
13283
13284  # We used to test for /lib/ld.so.1 and disable shared libraries on
13285  # powerpc, because MkLinux only supported shared libraries with the
13286  # GNU dynamic linker.  Since this was broken with cross compilers,
13287  # most powerpc-linux boxes support dynamic linking these days and
13288  # people can always --disable-shared, the test was removed, and we
13289  # assume the GNU/Linux dynamic linker is in use.
13290  dynamic_linker='GNU/Linux ld.so'
13291  ;;
13292
13293netbsdelf*-gnu)
13294  version_type=linux
13295  need_lib_prefix=no
13296  need_version=no
13297  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13298  soname_spec='${libname}${release}${shared_ext}$major'
13299  shlibpath_var=LD_LIBRARY_PATH
13300  shlibpath_overrides_runpath=no
13301  hardcode_into_libs=yes
13302  dynamic_linker='NetBSD ld.elf_so'
13303  ;;
13304
13305netbsd*)
13306  version_type=sunos
13307  need_lib_prefix=no
13308  need_version=no
13309  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13310    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13311    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13312    dynamic_linker='NetBSD (a.out) ld.so'
13313  else
13314    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13315    soname_spec='${libname}${release}${shared_ext}$major'
13316    dynamic_linker='NetBSD ld.elf_so'
13317  fi
13318  shlibpath_var=LD_LIBRARY_PATH
13319  shlibpath_overrides_runpath=yes
13320  hardcode_into_libs=yes
13321  ;;
13322
13323newsos6)
13324  version_type=linux
13325  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13326  shlibpath_var=LD_LIBRARY_PATH
13327  shlibpath_overrides_runpath=yes
13328  ;;
13329
13330nto-qnx*)
13331  version_type=linux
13332  need_lib_prefix=no
13333  need_version=no
13334  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13335  soname_spec='${libname}${release}${shared_ext}$major'
13336  shlibpath_var=LD_LIBRARY_PATH
13337  shlibpath_overrides_runpath=yes
13338  ;;
13339
13340openbsd*)
13341  version_type=sunos
13342  sys_lib_dlsearch_path_spec="/usr/lib"
13343  need_lib_prefix=no
13344  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13345  case $host_os in
13346    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13347    *)                         need_version=no  ;;
13348  esac
13349  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13350  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13351  shlibpath_var=LD_LIBRARY_PATH
13352  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13353    case $host_os in
13354      openbsd2.[89] | openbsd2.[89].*)
13355	shlibpath_overrides_runpath=no
13356	;;
13357      *)
13358	shlibpath_overrides_runpath=yes
13359	;;
13360      esac
13361  else
13362    shlibpath_overrides_runpath=yes
13363  fi
13364  ;;
13365
13366os2*)
13367  libname_spec='$name'
13368  shrext_cmds=".dll"
13369  need_lib_prefix=no
13370  library_names_spec='$libname${shared_ext} $libname.a'
13371  dynamic_linker='OS/2 ld.exe'
13372  shlibpath_var=LIBPATH
13373  ;;
13374
13375osf3* | osf4* | osf5*)
13376  version_type=osf
13377  need_lib_prefix=no
13378  need_version=no
13379  soname_spec='${libname}${release}${shared_ext}$major'
13380  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13381  shlibpath_var=LD_LIBRARY_PATH
13382  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13383  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13384  ;;
13385
13386rdos*)
13387  dynamic_linker=no
13388  ;;
13389
13390solaris*)
13391  version_type=linux
13392  need_lib_prefix=no
13393  need_version=no
13394  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13395  soname_spec='${libname}${release}${shared_ext}$major'
13396  shlibpath_var=LD_LIBRARY_PATH
13397  shlibpath_overrides_runpath=yes
13398  hardcode_into_libs=yes
13399  # ldd complains unless libraries are executable
13400  postinstall_cmds='chmod +x $lib'
13401  ;;
13402
13403sunos4*)
13404  version_type=sunos
13405  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13406  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13407  shlibpath_var=LD_LIBRARY_PATH
13408  shlibpath_overrides_runpath=yes
13409  if test "$with_gnu_ld" = yes; then
13410    need_lib_prefix=no
13411  fi
13412  need_version=yes
13413  ;;
13414
13415sysv4 | sysv4.3*)
13416  version_type=linux
13417  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13418  soname_spec='${libname}${release}${shared_ext}$major'
13419  shlibpath_var=LD_LIBRARY_PATH
13420  case $host_vendor in
13421    sni)
13422      shlibpath_overrides_runpath=no
13423      need_lib_prefix=no
13424      export_dynamic_flag_spec='${wl}-Blargedynsym'
13425      runpath_var=LD_RUN_PATH
13426      ;;
13427    siemens)
13428      need_lib_prefix=no
13429      ;;
13430    motorola)
13431      need_lib_prefix=no
13432      need_version=no
13433      shlibpath_overrides_runpath=no
13434      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13435      ;;
13436  esac
13437  ;;
13438
13439sysv4*MP*)
13440  if test -d /usr/nec ;then
13441    version_type=linux
13442    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13443    soname_spec='$libname${shared_ext}.$major'
13444    shlibpath_var=LD_LIBRARY_PATH
13445  fi
13446  ;;
13447
13448sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13449  version_type=freebsd-elf
13450  need_lib_prefix=no
13451  need_version=no
13452  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13453  soname_spec='${libname}${release}${shared_ext}$major'
13454  shlibpath_var=LD_LIBRARY_PATH
13455  hardcode_into_libs=yes
13456  if test "$with_gnu_ld" = yes; then
13457    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13458    shlibpath_overrides_runpath=no
13459  else
13460    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13461    shlibpath_overrides_runpath=yes
13462    case $host_os in
13463      sco3.2v5*)
13464        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13465	;;
13466    esac
13467  fi
13468  sys_lib_dlsearch_path_spec='/usr/lib'
13469  ;;
13470
13471uts4*)
13472  version_type=linux
13473  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13474  soname_spec='${libname}${release}${shared_ext}$major'
13475  shlibpath_var=LD_LIBRARY_PATH
13476  ;;
13477
13478*)
13479  dynamic_linker=no
13480  ;;
13481esac
13482{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13483echo "${ECHO_T}$dynamic_linker" >&6; }
13484test "$dynamic_linker" = no && can_build_shared=no
13485
13486if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13487  echo $ECHO_N "(cached) $ECHO_C" >&6
13488else
13489  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13490fi
13491
13492sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13493if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13494  echo $ECHO_N "(cached) $ECHO_C" >&6
13495else
13496  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13497fi
13498
13499sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13500
13501variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13502if test "$GCC" = yes; then
13503  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13504fi
13505
13506{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13507echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13508hardcode_action_CXX=
13509if test -n "$hardcode_libdir_flag_spec_CXX" || \
13510   test -n "$runpath_var_CXX" || \
13511   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13512
13513  # We can hardcode non-existant directories.
13514  if test "$hardcode_direct_CXX" != no &&
13515     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13516     # have to relink, otherwise we might link with an installed library
13517     # when we should be linking with a yet-to-be-installed one
13518     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13519     test "$hardcode_minus_L_CXX" != no; then
13520    # Linking always hardcodes the temporary library directory.
13521    hardcode_action_CXX=relink
13522  else
13523    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13524    hardcode_action_CXX=immediate
13525  fi
13526else
13527  # We cannot hardcode anything, or else we can only hardcode existing
13528  # directories.
13529  hardcode_action_CXX=unsupported
13530fi
13531{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13532echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13533
13534if test "$hardcode_action_CXX" = relink; then
13535  # Fast installation is not supported
13536  enable_fast_install=no
13537elif test "$shlibpath_overrides_runpath" = yes ||
13538     test "$enable_shared" = no; then
13539  # Fast installation is not necessary
13540  enable_fast_install=needless
13541fi
13542
13543
13544# The else clause should only fire when bootstrapping the
13545# libtool distribution, otherwise you forgot to ship ltmain.sh
13546# with your package, and you will get complaints that there are
13547# no rules to generate ltmain.sh.
13548if test -f "$ltmain"; then
13549  # See if we are running on zsh, and set the options which allow our commands through
13550  # without removal of \ escapes.
13551  if test -n "${ZSH_VERSION+set}" ; then
13552    setopt NO_GLOB_SUBST
13553  fi
13554  # Now quote all the things that may contain metacharacters while being
13555  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13556  # variables and quote the copies for generation of the libtool script.
13557  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13558    SED SHELL STRIP \
13559    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13560    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13561    deplibs_check_method reload_flag reload_cmds need_locks \
13562    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13563    lt_cv_sys_global_symbol_to_c_name_address \
13564    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13565    old_postinstall_cmds old_postuninstall_cmds \
13566    compiler_CXX \
13567    CC_CXX \
13568    LD_CXX \
13569    lt_prog_compiler_wl_CXX \
13570    lt_prog_compiler_pic_CXX \
13571    lt_prog_compiler_static_CXX \
13572    lt_prog_compiler_no_builtin_flag_CXX \
13573    export_dynamic_flag_spec_CXX \
13574    thread_safe_flag_spec_CXX \
13575    whole_archive_flag_spec_CXX \
13576    enable_shared_with_static_runtimes_CXX \
13577    old_archive_cmds_CXX \
13578    old_archive_from_new_cmds_CXX \
13579    predep_objects_CXX \
13580    postdep_objects_CXX \
13581    predeps_CXX \
13582    postdeps_CXX \
13583    compiler_lib_search_path_CXX \
13584    compiler_lib_search_dirs_CXX \
13585    archive_cmds_CXX \
13586    archive_expsym_cmds_CXX \
13587    postinstall_cmds_CXX \
13588    postuninstall_cmds_CXX \
13589    old_archive_from_expsyms_cmds_CXX \
13590    allow_undefined_flag_CXX \
13591    no_undefined_flag_CXX \
13592    export_symbols_cmds_CXX \
13593    hardcode_libdir_flag_spec_CXX \
13594    hardcode_libdir_flag_spec_ld_CXX \
13595    hardcode_libdir_separator_CXX \
13596    hardcode_automatic_CXX \
13597    module_cmds_CXX \
13598    module_expsym_cmds_CXX \
13599    lt_cv_prog_compiler_c_o_CXX \
13600    fix_srcfile_path_CXX \
13601    exclude_expsyms_CXX \
13602    include_expsyms_CXX; do
13603
13604    case $var in
13605    old_archive_cmds_CXX | \
13606    old_archive_from_new_cmds_CXX | \
13607    archive_cmds_CXX | \
13608    archive_expsym_cmds_CXX | \
13609    module_cmds_CXX | \
13610    module_expsym_cmds_CXX | \
13611    old_archive_from_expsyms_cmds_CXX | \
13612    export_symbols_cmds_CXX | \
13613    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13614    postinstall_cmds | postuninstall_cmds | \
13615    old_postinstall_cmds | old_postuninstall_cmds | \
13616    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13617      # Double-quote double-evaled strings.
13618      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13619      ;;
13620    *)
13621      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13622      ;;
13623    esac
13624  done
13625
13626  case $lt_echo in
13627  *'\$0 --fallback-echo"')
13628    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13629    ;;
13630  esac
13631
13632cfgfile="$ofile"
13633
13634  cat <<__EOF__ >> "$cfgfile"
13635# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13636
13637# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13638
13639# Shell to use when invoking shell scripts.
13640SHELL=$lt_SHELL
13641
13642# Whether or not to build shared libraries.
13643build_libtool_libs=$enable_shared
13644
13645# Whether or not to build static libraries.
13646build_old_libs=$enable_static
13647
13648# Whether or not to add -lc for building shared libraries.
13649build_libtool_need_lc=$archive_cmds_need_lc_CXX
13650
13651# Whether or not to disallow shared libs when runtime libs are static
13652allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13653
13654# Whether or not to optimize for fast installation.
13655fast_install=$enable_fast_install
13656
13657# The host system.
13658host_alias=$host_alias
13659host=$host
13660host_os=$host_os
13661
13662# The build system.
13663build_alias=$build_alias
13664build=$build
13665build_os=$build_os
13666
13667# An echo program that does not interpret backslashes.
13668echo=$lt_echo
13669
13670# The archiver.
13671AR=$lt_AR
13672AR_FLAGS=$lt_AR_FLAGS
13673
13674# A C compiler.
13675LTCC=$lt_LTCC
13676
13677# LTCC compiler flags.
13678LTCFLAGS=$lt_LTCFLAGS
13679
13680# A language-specific compiler.
13681CC=$lt_compiler_CXX
13682
13683# Is the compiler the GNU C compiler?
13684with_gcc=$GCC_CXX
13685
13686# An ERE matcher.
13687EGREP=$lt_EGREP
13688
13689# The linker used to build libraries.
13690LD=$lt_LD_CXX
13691
13692# Whether we need hard or soft links.
13693LN_S=$lt_LN_S
13694
13695# A BSD-compatible nm program.
13696NM=$lt_NM
13697
13698# A symbol stripping program
13699STRIP=$lt_STRIP
13700
13701# Used to examine libraries when file_magic_cmd begins "file"
13702MAGIC_CMD=$MAGIC_CMD
13703
13704# Used on cygwin: DLL creation program.
13705DLLTOOL="$DLLTOOL"
13706
13707# Used on cygwin: object dumper.
13708OBJDUMP="$OBJDUMP"
13709
13710# Used on cygwin: assembler.
13711AS="$AS"
13712
13713# The name of the directory that contains temporary libtool files.
13714objdir=$objdir
13715
13716# How to create reloadable object files.
13717reload_flag=$lt_reload_flag
13718reload_cmds=$lt_reload_cmds
13719
13720# How to pass a linker flag through the compiler.
13721wl=$lt_lt_prog_compiler_wl_CXX
13722
13723# Object file suffix (normally "o").
13724objext="$ac_objext"
13725
13726# Old archive suffix (normally "a").
13727libext="$libext"
13728
13729# Shared library suffix (normally ".so").
13730shrext_cmds='$shrext_cmds'
13731
13732# Executable file suffix (normally "").
13733exeext="$exeext"
13734
13735# Additional compiler flags for building library objects.
13736pic_flag=$lt_lt_prog_compiler_pic_CXX
13737pic_mode=$pic_mode
13738
13739# What is the maximum length of a command?
13740max_cmd_len=$lt_cv_sys_max_cmd_len
13741
13742# Does compiler simultaneously support -c and -o options?
13743compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13744
13745# Must we lock files when doing compilation?
13746need_locks=$lt_need_locks
13747
13748# Do we need the lib prefix for modules?
13749need_lib_prefix=$need_lib_prefix
13750
13751# Do we need a version for libraries?
13752need_version=$need_version
13753
13754# Whether dlopen is supported.
13755dlopen_support=$enable_dlopen
13756
13757# Whether dlopen of programs is supported.
13758dlopen_self=$enable_dlopen_self
13759
13760# Whether dlopen of statically linked programs is supported.
13761dlopen_self_static=$enable_dlopen_self_static
13762
13763# Compiler flag to prevent dynamic linking.
13764link_static_flag=$lt_lt_prog_compiler_static_CXX
13765
13766# Compiler flag to turn off builtin functions.
13767no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13768
13769# Compiler flag to allow reflexive dlopens.
13770export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13771
13772# Compiler flag to generate shared objects directly from archives.
13773whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13774
13775# Compiler flag to generate thread-safe objects.
13776thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13777
13778# Library versioning type.
13779version_type=$version_type
13780
13781# Format of library name prefix.
13782libname_spec=$lt_libname_spec
13783
13784# List of archive names.  First name is the real one, the rest are links.
13785# The last name is the one that the linker finds with -lNAME.
13786library_names_spec=$lt_library_names_spec
13787
13788# The coded name of the library, if different from the real name.
13789soname_spec=$lt_soname_spec
13790
13791# Commands used to build and install an old-style archive.
13792RANLIB=$lt_RANLIB
13793old_archive_cmds=$lt_old_archive_cmds_CXX
13794old_postinstall_cmds=$lt_old_postinstall_cmds
13795old_postuninstall_cmds=$lt_old_postuninstall_cmds
13796
13797# Create an old-style archive from a shared archive.
13798old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13799
13800# Create a temporary old-style archive to link instead of a shared archive.
13801old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13802
13803# Commands used to build and install a shared archive.
13804archive_cmds=$lt_archive_cmds_CXX
13805archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13806postinstall_cmds=$lt_postinstall_cmds
13807postuninstall_cmds=$lt_postuninstall_cmds
13808
13809# Commands used to build a loadable module (assumed same as above if empty)
13810module_cmds=$lt_module_cmds_CXX
13811module_expsym_cmds=$lt_module_expsym_cmds_CXX
13812
13813# Commands to strip libraries.
13814old_striplib=$lt_old_striplib
13815striplib=$lt_striplib
13816
13817# Dependencies to place before the objects being linked to create a
13818# shared library.
13819predep_objects=$lt_predep_objects_CXX
13820
13821# Dependencies to place after the objects being linked to create a
13822# shared library.
13823postdep_objects=$lt_postdep_objects_CXX
13824
13825# Dependencies to place before the objects being linked to create a
13826# shared library.
13827predeps=$lt_predeps_CXX
13828
13829# Dependencies to place after the objects being linked to create a
13830# shared library.
13831postdeps=$lt_postdeps_CXX
13832
13833# The directories searched by this compiler when creating a shared
13834# library
13835compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13836
13837# The library search path used internally by the compiler when linking
13838# a shared library.
13839compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13840
13841# Method to check whether dependent libraries are shared objects.
13842deplibs_check_method=$lt_deplibs_check_method
13843
13844# Command to use when deplibs_check_method == file_magic.
13845file_magic_cmd=$lt_file_magic_cmd
13846
13847# Flag that allows shared libraries with undefined symbols to be built.
13848allow_undefined_flag=$lt_allow_undefined_flag_CXX
13849
13850# Flag that forces no undefined symbols.
13851no_undefined_flag=$lt_no_undefined_flag_CXX
13852
13853# Commands used to finish a libtool library installation in a directory.
13854finish_cmds=$lt_finish_cmds
13855
13856# Same as above, but a single script fragment to be evaled but not shown.
13857finish_eval=$lt_finish_eval
13858
13859# Take the output of nm and produce a listing of raw symbols and C names.
13860global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13861
13862# Transform the output of nm in a proper C declaration
13863global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13864
13865# Transform the output of nm in a C name address pair
13866global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13867
13868# This is the shared library runtime path variable.
13869runpath_var=$runpath_var
13870
13871# This is the shared library path variable.
13872shlibpath_var=$shlibpath_var
13873
13874# Is shlibpath searched before the hard-coded library search path?
13875shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13876
13877# How to hardcode a shared library path into an executable.
13878hardcode_action=$hardcode_action_CXX
13879
13880# Whether we should hardcode library paths into libraries.
13881hardcode_into_libs=$hardcode_into_libs
13882
13883# Flag to hardcode \$libdir into a binary during linking.
13884# This must work even if \$libdir does not exist.
13885hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13886
13887# If ld is used when linking, flag to hardcode \$libdir into
13888# a binary during linking. This must work even if \$libdir does
13889# not exist.
13890hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13891
13892# Whether we need a single -rpath flag with a separated argument.
13893hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13894
13895# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13896# resulting binary.
13897hardcode_direct=$hardcode_direct_CXX
13898
13899# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13900# resulting binary.
13901hardcode_minus_L=$hardcode_minus_L_CXX
13902
13903# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13904# the resulting binary.
13905hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13906
13907# Set to yes if building a shared library automatically hardcodes DIR into the library
13908# and all subsequent libraries and executables linked against it.
13909hardcode_automatic=$hardcode_automatic_CXX
13910
13911# Variables whose values should be saved in libtool wrapper scripts and
13912# restored at relink time.
13913variables_saved_for_relink="$variables_saved_for_relink"
13914
13915# Whether libtool must link a program against all its dependency libraries.
13916link_all_deplibs=$link_all_deplibs_CXX
13917
13918# Compile-time system search path for libraries
13919sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13920
13921# Run-time system search path for libraries
13922sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13923
13924# Fix the shell variable \$srcfile for the compiler.
13925fix_srcfile_path=$lt_fix_srcfile_path
13926
13927# Set to yes if exported symbols are required.
13928always_export_symbols=$always_export_symbols_CXX
13929
13930# The commands to list exported symbols.
13931export_symbols_cmds=$lt_export_symbols_cmds_CXX
13932
13933# The commands to extract the exported symbol list from a shared archive.
13934extract_expsyms_cmds=$lt_extract_expsyms_cmds
13935
13936# Symbols that should not be listed in the preloaded symbols.
13937exclude_expsyms=$lt_exclude_expsyms_CXX
13938
13939# Symbols that must always be exported.
13940include_expsyms=$lt_include_expsyms_CXX
13941
13942# ### END LIBTOOL TAG CONFIG: $tagname
13943
13944__EOF__
13945
13946
13947else
13948  # If there is no Makefile yet, we rely on a make rule to execute
13949  # `config.status --recheck' to rerun these tests and create the
13950  # libtool script then.
13951  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13952  if test -f "$ltmain_in"; then
13953    test -f Makefile && make "$ltmain"
13954  fi
13955fi
13956
13957
13958ac_ext=c
13959ac_cpp='$CPP $CPPFLAGS'
13960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13962ac_compiler_gnu=$ac_cv_c_compiler_gnu
13963
13964CC=$lt_save_CC
13965LDCXX=$LD
13966LD=$lt_save_LD
13967GCC=$lt_save_GCC
13968with_gnu_ldcxx=$with_gnu_ld
13969with_gnu_ld=$lt_save_with_gnu_ld
13970lt_cv_path_LDCXX=$lt_cv_path_LD
13971lt_cv_path_LD=$lt_save_path_LD
13972lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13973lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13974
13975	else
13976	  tagname=""
13977	fi
13978	;;
13979
13980      F77)
13981	if test -n "$F77" && test "X$F77" != "Xno"; then
13982
13983ac_ext=f
13984ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13985ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13986ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13987
13988
13989archive_cmds_need_lc_F77=no
13990allow_undefined_flag_F77=
13991always_export_symbols_F77=no
13992archive_expsym_cmds_F77=
13993export_dynamic_flag_spec_F77=
13994hardcode_direct_F77=no
13995hardcode_libdir_flag_spec_F77=
13996hardcode_libdir_flag_spec_ld_F77=
13997hardcode_libdir_separator_F77=
13998hardcode_minus_L_F77=no
13999hardcode_automatic_F77=no
14000module_cmds_F77=
14001module_expsym_cmds_F77=
14002link_all_deplibs_F77=unknown
14003old_archive_cmds_F77=$old_archive_cmds
14004no_undefined_flag_F77=
14005whole_archive_flag_spec_F77=
14006enable_shared_with_static_runtimes_F77=no
14007
14008# Source file extension for f77 test sources.
14009ac_ext=f
14010
14011# Object file extension for compiled f77 test sources.
14012objext=o
14013objext_F77=$objext
14014
14015# Code to be used in simple compile tests
14016lt_simple_compile_test_code="\
14017      subroutine t
14018      return
14019      end
14020"
14021
14022# Code to be used in simple link tests
14023lt_simple_link_test_code="\
14024      program t
14025      end
14026"
14027
14028# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14029
14030# If no C compiler was specified, use CC.
14031LTCC=${LTCC-"$CC"}
14032
14033# If no C compiler flags were specified, use CFLAGS.
14034LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14035
14036# Allow CC to be a program name with arguments.
14037compiler=$CC
14038
14039
14040# save warnings/boilerplate of simple test code
14041ac_outfile=conftest.$ac_objext
14042echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14043eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14044_lt_compiler_boilerplate=`cat conftest.err`
14045$rm conftest*
14046
14047ac_outfile=conftest.$ac_objext
14048echo "$lt_simple_link_test_code" >conftest.$ac_ext
14049eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14050_lt_linker_boilerplate=`cat conftest.err`
14051$rm -r conftest*
14052
14053
14054# Allow CC to be a program name with arguments.
14055lt_save_CC="$CC"
14056CC=${F77-"f77"}
14057compiler=$CC
14058compiler_F77=$CC
14059for cc_temp in $compiler""; do
14060  case $cc_temp in
14061    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14062    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14063    \-*) ;;
14064    *) break;;
14065  esac
14066done
14067cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14068
14069
14070{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14071echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14072{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14073echo "${ECHO_T}$can_build_shared" >&6; }
14074
14075{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14076echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14077test "$can_build_shared" = "no" && enable_shared=no
14078
14079# On AIX, shared libraries and static libraries use the same namespace, and
14080# are all built from PIC.
14081case $host_os in
14082aix3*)
14083  test "$enable_shared" = yes && enable_static=no
14084  if test -n "$RANLIB"; then
14085    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14086    postinstall_cmds='$RANLIB $lib'
14087  fi
14088  ;;
14089aix[4-9]*)
14090  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14091    test "$enable_shared" = yes && enable_static=no
14092  fi
14093  ;;
14094esac
14095{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14096echo "${ECHO_T}$enable_shared" >&6; }
14097
14098{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14099echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14100# Make sure either enable_shared or enable_static is yes.
14101test "$enable_shared" = yes || enable_static=yes
14102{ echo "$as_me:$LINENO: result: $enable_static" >&5
14103echo "${ECHO_T}$enable_static" >&6; }
14104
14105GCC_F77="$G77"
14106LD_F77="$LD"
14107
14108lt_prog_compiler_wl_F77=
14109lt_prog_compiler_pic_F77=
14110lt_prog_compiler_static_F77=
14111
14112{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14113echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14114
14115  if test "$GCC" = yes; then
14116    lt_prog_compiler_wl_F77='-Wl,'
14117    lt_prog_compiler_static_F77='-static'
14118
14119    case $host_os in
14120      aix*)
14121      # All AIX code is PIC.
14122      if test "$host_cpu" = ia64; then
14123	# AIX 5 now supports IA64 processor
14124	lt_prog_compiler_static_F77='-Bstatic'
14125      fi
14126      ;;
14127
14128    amigaos*)
14129      # FIXME: we need at least 68020 code to build shared libraries, but
14130      # adding the `-m68020' flag to GCC prevents building anything better,
14131      # like `-m68040'.
14132      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14133      ;;
14134
14135    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14136      # PIC is the default for these OSes.
14137      ;;
14138
14139    mingw* | cygwin* | pw32* | os2*)
14140      # This hack is so that the source file can tell whether it is being
14141      # built for inclusion in a dll (and should export symbols for example).
14142      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14143      # (--disable-auto-import) libraries
14144      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14145      ;;
14146
14147    darwin* | rhapsody*)
14148      # PIC is the default on this platform
14149      # Common symbols not allowed in MH_DYLIB files
14150      lt_prog_compiler_pic_F77='-fno-common'
14151      ;;
14152
14153    interix[3-9]*)
14154      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14155      # Instead, we relocate shared libraries at runtime.
14156      ;;
14157
14158    msdosdjgpp*)
14159      # Just because we use GCC doesn't mean we suddenly get shared libraries
14160      # on systems that don't support them.
14161      lt_prog_compiler_can_build_shared_F77=no
14162      enable_shared=no
14163      ;;
14164
14165    sysv4*MP*)
14166      if test -d /usr/nec; then
14167	lt_prog_compiler_pic_F77=-Kconform_pic
14168      fi
14169      ;;
14170
14171    hpux*)
14172      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14173      # not for PA HP-UX.
14174      case $host_cpu in
14175      hppa*64*|ia64*)
14176	# +Z the default
14177	;;
14178      *)
14179	lt_prog_compiler_pic_F77='-fPIC'
14180	;;
14181      esac
14182      ;;
14183
14184    *)
14185      lt_prog_compiler_pic_F77='-fPIC'
14186      ;;
14187    esac
14188  else
14189    # PORTME Check for flag to pass linker flags through the system compiler.
14190    case $host_os in
14191    aix*)
14192      lt_prog_compiler_wl_F77='-Wl,'
14193      if test "$host_cpu" = ia64; then
14194	# AIX 5 now supports IA64 processor
14195	lt_prog_compiler_static_F77='-Bstatic'
14196      else
14197	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14198      fi
14199      ;;
14200      darwin*)
14201        # PIC is the default on this platform
14202        # Common symbols not allowed in MH_DYLIB files
14203       case $cc_basename in
14204         xlc*)
14205         lt_prog_compiler_pic_F77='-qnocommon'
14206         lt_prog_compiler_wl_F77='-Wl,'
14207         ;;
14208       esac
14209       ;;
14210
14211    mingw* | cygwin* | pw32* | os2*)
14212      # This hack is so that the source file can tell whether it is being
14213      # built for inclusion in a dll (and should export symbols for example).
14214      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14215      ;;
14216
14217    hpux9* | hpux10* | hpux11*)
14218      lt_prog_compiler_wl_F77='-Wl,'
14219      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14220      # not for PA HP-UX.
14221      case $host_cpu in
14222      hppa*64*|ia64*)
14223	# +Z the default
14224	;;
14225      *)
14226	lt_prog_compiler_pic_F77='+Z'
14227	;;
14228      esac
14229      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14230      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14231      ;;
14232
14233    irix5* | irix6* | nonstopux*)
14234      lt_prog_compiler_wl_F77='-Wl,'
14235      # PIC (with -KPIC) is the default.
14236      lt_prog_compiler_static_F77='-non_shared'
14237      ;;
14238
14239    newsos6)
14240      lt_prog_compiler_pic_F77='-KPIC'
14241      lt_prog_compiler_static_F77='-Bstatic'
14242      ;;
14243
14244    linux* | k*bsd*-gnu)
14245      case $cc_basename in
14246      icc* | ecc*)
14247	lt_prog_compiler_wl_F77='-Wl,'
14248	lt_prog_compiler_pic_F77='-KPIC'
14249	lt_prog_compiler_static_F77='-static'
14250        ;;
14251      pgcc* | pgf77* | pgf90* | pgf95*)
14252        # Portland Group compilers (*not* the Pentium gcc compiler,
14253	# which looks to be a dead project)
14254	lt_prog_compiler_wl_F77='-Wl,'
14255	lt_prog_compiler_pic_F77='-fpic'
14256	lt_prog_compiler_static_F77='-Bstatic'
14257        ;;
14258      ccc*)
14259        lt_prog_compiler_wl_F77='-Wl,'
14260        # All Alpha code is PIC.
14261        lt_prog_compiler_static_F77='-non_shared'
14262        ;;
14263      *)
14264        case `$CC -V 2>&1 | sed 5q` in
14265	*Sun\ C*)
14266	  # Sun C 5.9
14267	  lt_prog_compiler_pic_F77='-KPIC'
14268	  lt_prog_compiler_static_F77='-Bstatic'
14269	  lt_prog_compiler_wl_F77='-Wl,'
14270	  ;;
14271	*Sun\ F*)
14272	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14273	  lt_prog_compiler_pic_F77='-KPIC'
14274	  lt_prog_compiler_static_F77='-Bstatic'
14275	  lt_prog_compiler_wl_F77=''
14276	  ;;
14277	esac
14278	;;
14279      esac
14280      ;;
14281
14282    osf3* | osf4* | osf5*)
14283      lt_prog_compiler_wl_F77='-Wl,'
14284      # All OSF/1 code is PIC.
14285      lt_prog_compiler_static_F77='-non_shared'
14286      ;;
14287
14288    rdos*)
14289      lt_prog_compiler_static_F77='-non_shared'
14290      ;;
14291
14292    solaris*)
14293      lt_prog_compiler_pic_F77='-KPIC'
14294      lt_prog_compiler_static_F77='-Bstatic'
14295      case $cc_basename in
14296      f77* | f90* | f95*)
14297	lt_prog_compiler_wl_F77='-Qoption ld ';;
14298      *)
14299	lt_prog_compiler_wl_F77='-Wl,';;
14300      esac
14301      ;;
14302
14303    sunos4*)
14304      lt_prog_compiler_wl_F77='-Qoption ld '
14305      lt_prog_compiler_pic_F77='-PIC'
14306      lt_prog_compiler_static_F77='-Bstatic'
14307      ;;
14308
14309    sysv4 | sysv4.2uw2* | sysv4.3*)
14310      lt_prog_compiler_wl_F77='-Wl,'
14311      lt_prog_compiler_pic_F77='-KPIC'
14312      lt_prog_compiler_static_F77='-Bstatic'
14313      ;;
14314
14315    sysv4*MP*)
14316      if test -d /usr/nec ;then
14317	lt_prog_compiler_pic_F77='-Kconform_pic'
14318	lt_prog_compiler_static_F77='-Bstatic'
14319      fi
14320      ;;
14321
14322    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14323      lt_prog_compiler_wl_F77='-Wl,'
14324      lt_prog_compiler_pic_F77='-KPIC'
14325      lt_prog_compiler_static_F77='-Bstatic'
14326      ;;
14327
14328    unicos*)
14329      lt_prog_compiler_wl_F77='-Wl,'
14330      lt_prog_compiler_can_build_shared_F77=no
14331      ;;
14332
14333    uts4*)
14334      lt_prog_compiler_pic_F77='-pic'
14335      lt_prog_compiler_static_F77='-Bstatic'
14336      ;;
14337
14338    *)
14339      lt_prog_compiler_can_build_shared_F77=no
14340      ;;
14341    esac
14342  fi
14343
14344{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14345echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14346
14347#
14348# Check to make sure the PIC flag actually works.
14349#
14350if test -n "$lt_prog_compiler_pic_F77"; then
14351
14352{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14353echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14354if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14355  echo $ECHO_N "(cached) $ECHO_C" >&6
14356else
14357  lt_cv_prog_compiler_pic_works_F77=no
14358  ac_outfile=conftest.$ac_objext
14359   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14360   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14361   # Insert the option either (1) after the last *FLAGS variable, or
14362   # (2) before a word containing "conftest.", or (3) at the end.
14363   # Note that $ac_compile itself does not contain backslashes and begins
14364   # with a dollar sign (not a hyphen), so the echo should work correctly.
14365   # The option is referenced via a variable to avoid confusing sed.
14366   lt_compile=`echo "$ac_compile" | $SED \
14367   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14368   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14369   -e 's:$: $lt_compiler_flag:'`
14370   (eval echo "\"\$as_me:14370: $lt_compile\"" >&5)
14371   (eval "$lt_compile" 2>conftest.err)
14372   ac_status=$?
14373   cat conftest.err >&5
14374   echo "$as_me:14374: \$? = $ac_status" >&5
14375   if (exit $ac_status) && test -s "$ac_outfile"; then
14376     # The compiler can only warn and ignore the option if not recognized
14377     # So say no if there are warnings other than the usual output.
14378     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14379     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14380     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14381       lt_cv_prog_compiler_pic_works_F77=yes
14382     fi
14383   fi
14384   $rm conftest*
14385
14386fi
14387{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14388echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14389
14390if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14391    case $lt_prog_compiler_pic_F77 in
14392     "" | " "*) ;;
14393     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14394     esac
14395else
14396    lt_prog_compiler_pic_F77=
14397     lt_prog_compiler_can_build_shared_F77=no
14398fi
14399
14400fi
14401case $host_os in
14402  # For platforms which do not support PIC, -DPIC is meaningless:
14403  *djgpp*)
14404    lt_prog_compiler_pic_F77=
14405    ;;
14406  *)
14407    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14408    ;;
14409esac
14410
14411#
14412# Check to make sure the static flag actually works.
14413#
14414wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14415{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14416echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14417if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14418  echo $ECHO_N "(cached) $ECHO_C" >&6
14419else
14420  lt_cv_prog_compiler_static_works_F77=no
14421   save_LDFLAGS="$LDFLAGS"
14422   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14423   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14424   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14425     # The linker can only warn and ignore the option if not recognized
14426     # So say no if there are warnings
14427     if test -s conftest.err; then
14428       # Append any errors to the config.log.
14429       cat conftest.err 1>&5
14430       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14431       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14432       if diff conftest.exp conftest.er2 >/dev/null; then
14433         lt_cv_prog_compiler_static_works_F77=yes
14434       fi
14435     else
14436       lt_cv_prog_compiler_static_works_F77=yes
14437     fi
14438   fi
14439   $rm -r conftest*
14440   LDFLAGS="$save_LDFLAGS"
14441
14442fi
14443{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14444echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14445
14446if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14447    :
14448else
14449    lt_prog_compiler_static_F77=
14450fi
14451
14452
14453{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14454echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14455if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14456  echo $ECHO_N "(cached) $ECHO_C" >&6
14457else
14458  lt_cv_prog_compiler_c_o_F77=no
14459   $rm -r conftest 2>/dev/null
14460   mkdir conftest
14461   cd conftest
14462   mkdir out
14463   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14464
14465   lt_compiler_flag="-o out/conftest2.$ac_objext"
14466   # Insert the option either (1) after the last *FLAGS variable, or
14467   # (2) before a word containing "conftest.", or (3) at the end.
14468   # Note that $ac_compile itself does not contain backslashes and begins
14469   # with a dollar sign (not a hyphen), so the echo should work correctly.
14470   lt_compile=`echo "$ac_compile" | $SED \
14471   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14472   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14473   -e 's:$: $lt_compiler_flag:'`
14474   (eval echo "\"\$as_me:14474: $lt_compile\"" >&5)
14475   (eval "$lt_compile" 2>out/conftest.err)
14476   ac_status=$?
14477   cat out/conftest.err >&5
14478   echo "$as_me:14478: \$? = $ac_status" >&5
14479   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14480   then
14481     # The compiler can only warn and ignore the option if not recognized
14482     # So say no if there are warnings
14483     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14484     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14485     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14486       lt_cv_prog_compiler_c_o_F77=yes
14487     fi
14488   fi
14489   chmod u+w . 2>&5
14490   $rm conftest*
14491   # SGI C++ compiler will create directory out/ii_files/ for
14492   # template instantiation
14493   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14494   $rm out/* && rmdir out
14495   cd ..
14496   rmdir conftest
14497   $rm conftest*
14498
14499fi
14500{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14501echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14502
14503
14504hard_links="nottested"
14505if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14506  # do not overwrite the value of need_locks provided by the user
14507  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14508echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14509  hard_links=yes
14510  $rm conftest*
14511  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14512  touch conftest.a
14513  ln conftest.a conftest.b 2>&5 || hard_links=no
14514  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14515  { echo "$as_me:$LINENO: result: $hard_links" >&5
14516echo "${ECHO_T}$hard_links" >&6; }
14517  if test "$hard_links" = no; then
14518    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14519echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14520    need_locks=warn
14521  fi
14522else
14523  need_locks=no
14524fi
14525
14526{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14527echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14528
14529  runpath_var=
14530  allow_undefined_flag_F77=
14531  enable_shared_with_static_runtimes_F77=no
14532  archive_cmds_F77=
14533  archive_expsym_cmds_F77=
14534  old_archive_From_new_cmds_F77=
14535  old_archive_from_expsyms_cmds_F77=
14536  export_dynamic_flag_spec_F77=
14537  whole_archive_flag_spec_F77=
14538  thread_safe_flag_spec_F77=
14539  hardcode_libdir_flag_spec_F77=
14540  hardcode_libdir_flag_spec_ld_F77=
14541  hardcode_libdir_separator_F77=
14542  hardcode_direct_F77=no
14543  hardcode_minus_L_F77=no
14544  hardcode_shlibpath_var_F77=unsupported
14545  link_all_deplibs_F77=unknown
14546  hardcode_automatic_F77=no
14547  module_cmds_F77=
14548  module_expsym_cmds_F77=
14549  always_export_symbols_F77=no
14550  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14551  # include_expsyms should be a list of space-separated symbols to be *always*
14552  # included in the symbol list
14553  include_expsyms_F77=
14554  # exclude_expsyms can be an extended regexp of symbols to exclude
14555  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14556  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14557  # as well as any symbol that contains `d'.
14558  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14559  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14560  # platforms (ab)use it in PIC code, but their linkers get confused if
14561  # the symbol is explicitly referenced.  Since portable code cannot
14562  # rely on this symbol name, it's probably fine to never include it in
14563  # preloaded symbol tables.
14564  # Exclude shared library initialization/finalization symbols.
14565  extract_expsyms_cmds=
14566  # Just being paranoid about ensuring that cc_basename is set.
14567  for cc_temp in $compiler""; do
14568  case $cc_temp in
14569    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14570    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14571    \-*) ;;
14572    *) break;;
14573  esac
14574done
14575cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14576
14577  case $host_os in
14578  cygwin* | mingw* | pw32*)
14579    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14580    # When not using gcc, we currently assume that we are using
14581    # Microsoft Visual C++.
14582    if test "$GCC" != yes; then
14583      with_gnu_ld=no
14584    fi
14585    ;;
14586  interix*)
14587    # we just hope/assume this is gcc and not c89 (= MSVC++)
14588    with_gnu_ld=yes
14589    ;;
14590  openbsd*)
14591    with_gnu_ld=no
14592    ;;
14593  esac
14594
14595  ld_shlibs_F77=yes
14596  if test "$with_gnu_ld" = yes; then
14597    # If archive_cmds runs LD, not CC, wlarc should be empty
14598    wlarc='${wl}'
14599
14600    # Set some defaults for GNU ld with shared library support. These
14601    # are reset later if shared libraries are not supported. Putting them
14602    # here allows them to be overridden if necessary.
14603    runpath_var=LD_RUN_PATH
14604    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14605    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14606    # ancient GNU ld didn't support --whole-archive et. al.
14607    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14608	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14609      else
14610  	whole_archive_flag_spec_F77=
14611    fi
14612    supports_anon_versioning=no
14613    case `$LD -v 2>/dev/null` in
14614      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14615      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14616      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14617      *\ 2.11.*) ;; # other 2.11 versions
14618      *) supports_anon_versioning=yes ;;
14619    esac
14620
14621    # See if GNU ld supports shared libraries.
14622    case $host_os in
14623    aix[3-9]*)
14624      # On AIX/PPC, the GNU linker is very broken
14625      if test "$host_cpu" != ia64; then
14626	ld_shlibs_F77=no
14627	cat <<EOF 1>&2
14628
14629*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14630*** to be unable to reliably create shared libraries on AIX.
14631*** Therefore, libtool is disabling shared libraries support.  If you
14632*** really care for shared libraries, you may want to modify your PATH
14633*** so that a non-GNU linker is found, and then restart.
14634
14635EOF
14636      fi
14637      ;;
14638
14639    amigaos*)
14640      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)'
14641      hardcode_libdir_flag_spec_F77='-L$libdir'
14642      hardcode_minus_L_F77=yes
14643
14644      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14645      # that the semantics of dynamic libraries on AmigaOS, at least up
14646      # to version 4, is to share data among multiple programs linked
14647      # with the same dynamic library.  Since this doesn't match the
14648      # behavior of shared libraries on other platforms, we can't use
14649      # them.
14650      ld_shlibs_F77=no
14651      ;;
14652
14653    beos*)
14654      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14655	allow_undefined_flag_F77=unsupported
14656	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14657	# support --undefined.  This deserves some investigation.  FIXME
14658	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14659      else
14660	ld_shlibs_F77=no
14661      fi
14662      ;;
14663
14664    cygwin* | mingw* | pw32*)
14665      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14666      # as there is no search path for DLLs.
14667      hardcode_libdir_flag_spec_F77='-L$libdir'
14668      allow_undefined_flag_F77=unsupported
14669      always_export_symbols_F77=no
14670      enable_shared_with_static_runtimes_F77=yes
14671      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14672
14673      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14674        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14675	# If the export-symbols file already is a .def file (1st line
14676	# is EXPORTS), use it as is; otherwise, prepend...
14677	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14678	  cp $export_symbols $output_objdir/$soname.def;
14679	else
14680	  echo EXPORTS > $output_objdir/$soname.def;
14681	  cat $export_symbols >> $output_objdir/$soname.def;
14682	fi~
14683	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14684      else
14685	ld_shlibs_F77=no
14686      fi
14687      ;;
14688
14689    interix[3-9]*)
14690      hardcode_direct_F77=no
14691      hardcode_shlibpath_var_F77=no
14692      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14693      export_dynamic_flag_spec_F77='${wl}-E'
14694      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14695      # Instead, shared libraries are loaded at an image base (0x10000000 by
14696      # default) and relocated if they conflict, which is a slow very memory
14697      # consuming and fragmenting process.  To avoid this, we pick a random,
14698      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14699      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14700      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'
14701      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'
14702      ;;
14703
14704    gnu* | linux* | k*bsd*-gnu)
14705      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14706	tmp_addflag=
14707	case $cc_basename,$host_cpu in
14708	pgcc*)				# Portland Group C compiler
14709	  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'
14710	  tmp_addflag=' $pic_flag'
14711	  ;;
14712	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14713	  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'
14714	  tmp_addflag=' $pic_flag -Mnomain' ;;
14715	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14716	  tmp_addflag=' -i_dynamic' ;;
14717	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14718	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14719	ifc* | ifort*)			# Intel Fortran compiler
14720	  tmp_addflag=' -nofor_main' ;;
14721	esac
14722	case `$CC -V 2>&1 | sed 5q` in
14723	*Sun\ C*)			# Sun C 5.9
14724	  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'
14725	  tmp_sharedflag='-G' ;;
14726	*Sun\ F*)			# Sun Fortran 8.3
14727	  tmp_sharedflag='-G' ;;
14728	*)
14729	  tmp_sharedflag='-shared' ;;
14730	esac
14731	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14732
14733	if test $supports_anon_versioning = yes; then
14734	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14735  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14736  $echo "local: *; };" >> $output_objdir/$libname.ver~
14737	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14738	fi
14739	link_all_deplibs_F77=no
14740      else
14741	ld_shlibs_F77=no
14742      fi
14743      ;;
14744
14745    netbsd* | netbsdelf*-gnu)
14746      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14747	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14748	wlarc=
14749      else
14750	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14751	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14752      fi
14753      ;;
14754
14755    solaris*)
14756      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14757	ld_shlibs_F77=no
14758	cat <<EOF 1>&2
14759
14760*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14761*** create shared libraries on Solaris systems.  Therefore, libtool
14762*** is disabling shared libraries support.  We urge you to upgrade GNU
14763*** binutils to release 2.9.1 or newer.  Another option is to modify
14764*** your PATH or compiler configuration so that the native linker is
14765*** used, and then restart.
14766
14767EOF
14768      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14769	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14770	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14771      else
14772	ld_shlibs_F77=no
14773      fi
14774      ;;
14775
14776    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14777      case `$LD -v 2>&1` in
14778        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14779	ld_shlibs_F77=no
14780	cat <<_LT_EOF 1>&2
14781
14782*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14783*** reliably create shared libraries on SCO systems.  Therefore, libtool
14784*** is disabling shared libraries support.  We urge you to upgrade GNU
14785*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14786*** your PATH or compiler configuration so that the native linker is
14787*** used, and then restart.
14788
14789_LT_EOF
14790	;;
14791	*)
14792	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14793	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14794	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14795	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14796	  else
14797	    ld_shlibs_F77=no
14798	  fi
14799	;;
14800      esac
14801      ;;
14802
14803    sunos4*)
14804      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14805      wlarc=
14806      hardcode_direct_F77=yes
14807      hardcode_shlibpath_var_F77=no
14808      ;;
14809
14810    *)
14811      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14812	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14813	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14814      else
14815	ld_shlibs_F77=no
14816      fi
14817      ;;
14818    esac
14819
14820    if test "$ld_shlibs_F77" = no; then
14821      runpath_var=
14822      hardcode_libdir_flag_spec_F77=
14823      export_dynamic_flag_spec_F77=
14824      whole_archive_flag_spec_F77=
14825    fi
14826  else
14827    # PORTME fill in a description of your system's linker (not GNU ld)
14828    case $host_os in
14829    aix3*)
14830      allow_undefined_flag_F77=unsupported
14831      always_export_symbols_F77=yes
14832      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'
14833      # Note: this linker hardcodes the directories in LIBPATH if there
14834      # are no directories specified by -L.
14835      hardcode_minus_L_F77=yes
14836      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14837	# Neither direct hardcoding nor static linking is supported with a
14838	# broken collect2.
14839	hardcode_direct_F77=unsupported
14840      fi
14841      ;;
14842
14843    aix[4-9]*)
14844      if test "$host_cpu" = ia64; then
14845	# On IA64, the linker does run time linking by default, so we don't
14846	# have to do anything special.
14847	aix_use_runtimelinking=no
14848	exp_sym_flag='-Bexport'
14849	no_entry_flag=""
14850      else
14851	# If we're using GNU nm, then we don't want the "-C" option.
14852	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14853	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14854	  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'
14855	else
14856	  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'
14857	fi
14858	aix_use_runtimelinking=no
14859
14860	# Test if we are trying to use run time linking or normal
14861	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14862	# need to do runtime linking.
14863	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14864	  for ld_flag in $LDFLAGS; do
14865  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14866  	    aix_use_runtimelinking=yes
14867  	    break
14868  	  fi
14869	  done
14870	  ;;
14871	esac
14872
14873	exp_sym_flag='-bexport'
14874	no_entry_flag='-bnoentry'
14875      fi
14876
14877      # When large executables or shared objects are built, AIX ld can
14878      # have problems creating the table of contents.  If linking a library
14879      # or program results in "error TOC overflow" add -mminimal-toc to
14880      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14881      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14882
14883      archive_cmds_F77=''
14884      hardcode_direct_F77=yes
14885      hardcode_libdir_separator_F77=':'
14886      link_all_deplibs_F77=yes
14887
14888      if test "$GCC" = yes; then
14889	case $host_os in aix4.[012]|aix4.[012].*)
14890	# We only want to do this on AIX 4.2 and lower, the check
14891	# below for broken collect2 doesn't work under 4.3+
14892	  collect2name=`${CC} -print-prog-name=collect2`
14893	  if test -f "$collect2name" && \
14894  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14895	  then
14896  	  # We have reworked collect2
14897  	  :
14898	  else
14899  	  # We have old collect2
14900  	  hardcode_direct_F77=unsupported
14901  	  # It fails to find uninstalled libraries when the uninstalled
14902  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14903  	  # to unsupported forces relinking
14904  	  hardcode_minus_L_F77=yes
14905  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14906  	  hardcode_libdir_separator_F77=
14907	  fi
14908	  ;;
14909	esac
14910	shared_flag='-shared'
14911	if test "$aix_use_runtimelinking" = yes; then
14912	  shared_flag="$shared_flag "'${wl}-G'
14913	fi
14914      else
14915	# not using gcc
14916	if test "$host_cpu" = ia64; then
14917  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14918  	# chokes on -Wl,-G. The following line is correct:
14919	  shared_flag='-G'
14920	else
14921	  if test "$aix_use_runtimelinking" = yes; then
14922	    shared_flag='${wl}-G'
14923	  else
14924	    shared_flag='${wl}-bM:SRE'
14925	  fi
14926	fi
14927      fi
14928
14929      # It seems that -bexpall does not export symbols beginning with
14930      # underscore (_), so it is better to generate a list of symbols to export.
14931      always_export_symbols_F77=yes
14932      if test "$aix_use_runtimelinking" = yes; then
14933	# Warning - without using the other runtime loading flags (-brtl),
14934	# -berok will link without error, but may produce a broken library.
14935	allow_undefined_flag_F77='-berok'
14936       # Determine the default libpath from the value encoded in an empty executable.
14937       cat >conftest.$ac_ext <<_ACEOF
14938      program main
14939
14940      end
14941_ACEOF
14942rm -f conftest.$ac_objext conftest$ac_exeext
14943if { (ac_try="$ac_link"
14944case "(($ac_try" in
14945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14946  *) ac_try_echo=$ac_try;;
14947esac
14948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14949  (eval "$ac_link") 2>conftest.er1
14950  ac_status=$?
14951  grep -v '^ *+' conftest.er1 >conftest.err
14952  rm -f conftest.er1
14953  cat conftest.err >&5
14954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955  (exit $ac_status); } && {
14956	 test -z "$ac_f77_werror_flag" ||
14957	 test ! -s conftest.err
14958       } && test -s conftest$ac_exeext &&
14959       $as_test_x conftest$ac_exeext; then
14960
14961lt_aix_libpath_sed='
14962    /Import File Strings/,/^$/ {
14963	/^0/ {
14964	    s/^0  *\(.*\)$/\1/
14965	    p
14966	}
14967    }'
14968aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14969# Check for a 64-bit object if we didn't find anything.
14970if test -z "$aix_libpath"; then
14971  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14972fi
14973else
14974  echo "$as_me: failed program was:" >&5
14975sed 's/^/| /' conftest.$ac_ext >&5
14976
14977
14978fi
14979
14980rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14981      conftest$ac_exeext conftest.$ac_ext
14982if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14983
14984       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14985	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"
14986       else
14987	if test "$host_cpu" = ia64; then
14988	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14989	  allow_undefined_flag_F77="-z nodefs"
14990	  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"
14991	else
14992	 # Determine the default libpath from the value encoded in an empty executable.
14993	 cat >conftest.$ac_ext <<_ACEOF
14994      program main
14995
14996      end
14997_ACEOF
14998rm -f conftest.$ac_objext conftest$ac_exeext
14999if { (ac_try="$ac_link"
15000case "(($ac_try" in
15001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15002  *) ac_try_echo=$ac_try;;
15003esac
15004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15005  (eval "$ac_link") 2>conftest.er1
15006  ac_status=$?
15007  grep -v '^ *+' conftest.er1 >conftest.err
15008  rm -f conftest.er1
15009  cat conftest.err >&5
15010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011  (exit $ac_status); } && {
15012	 test -z "$ac_f77_werror_flag" ||
15013	 test ! -s conftest.err
15014       } && test -s conftest$ac_exeext &&
15015       $as_test_x conftest$ac_exeext; then
15016
15017lt_aix_libpath_sed='
15018    /Import File Strings/,/^$/ {
15019	/^0/ {
15020	    s/^0  *\(.*\)$/\1/
15021	    p
15022	}
15023    }'
15024aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15025# Check for a 64-bit object if we didn't find anything.
15026if test -z "$aix_libpath"; then
15027  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15028fi
15029else
15030  echo "$as_me: failed program was:" >&5
15031sed 's/^/| /' conftest.$ac_ext >&5
15032
15033
15034fi
15035
15036rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15037      conftest$ac_exeext conftest.$ac_ext
15038if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15039
15040	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15041	  # Warning - without using the other run time loading flags,
15042	  # -berok will link without error, but may produce a broken library.
15043	  no_undefined_flag_F77=' ${wl}-bernotok'
15044	  allow_undefined_flag_F77=' ${wl}-berok'
15045	  # Exported symbols can be pulled into shared objects from archives
15046	  whole_archive_flag_spec_F77='$convenience'
15047	  archive_cmds_need_lc_F77=yes
15048	  # This is similar to how AIX traditionally builds its shared libraries.
15049	  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'
15050	fi
15051      fi
15052      ;;
15053
15054    amigaos*)
15055      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)'
15056      hardcode_libdir_flag_spec_F77='-L$libdir'
15057      hardcode_minus_L_F77=yes
15058      # see comment about different semantics on the GNU ld section
15059      ld_shlibs_F77=no
15060      ;;
15061
15062    bsdi[45]*)
15063      export_dynamic_flag_spec_F77=-rdynamic
15064      ;;
15065
15066    cygwin* | mingw* | pw32*)
15067      # When not using gcc, we currently assume that we are using
15068      # Microsoft Visual C++.
15069      # hardcode_libdir_flag_spec is actually meaningless, as there is
15070      # no search path for DLLs.
15071      hardcode_libdir_flag_spec_F77=' '
15072      allow_undefined_flag_F77=unsupported
15073      # Tell ltmain to make .lib files, not .a files.
15074      libext=lib
15075      # Tell ltmain to make .dll files, not .so files.
15076      shrext_cmds=".dll"
15077      # FIXME: Setting linknames here is a bad hack.
15078      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15079      # The linker will automatically build a .lib file if we build a DLL.
15080      old_archive_From_new_cmds_F77='true'
15081      # FIXME: Should let the user specify the lib program.
15082      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15083      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15084      enable_shared_with_static_runtimes_F77=yes
15085      ;;
15086
15087    darwin* | rhapsody*)
15088      case $host_os in
15089        rhapsody* | darwin1.[012])
15090         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15091         ;;
15092       *) # Darwin 1.3 on
15093         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15094           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15095         else
15096           case ${MACOSX_DEPLOYMENT_TARGET} in
15097             10.[012])
15098               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15099               ;;
15100             10.*)
15101               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15102               ;;
15103           esac
15104         fi
15105         ;;
15106      esac
15107      archive_cmds_need_lc_F77=no
15108      hardcode_direct_F77=no
15109      hardcode_automatic_F77=yes
15110      hardcode_shlibpath_var_F77=unsupported
15111      whole_archive_flag_spec_F77=''
15112      link_all_deplibs_F77=yes
15113    if test "$GCC" = yes ; then
15114    	output_verbose_link_cmd='echo'
15115        archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15116        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15117        archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15118        module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15119    else
15120      case $cc_basename in
15121        xlc*)
15122         output_verbose_link_cmd='echo'
15123         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15124         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15125          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15126         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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15127          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}'
15128          ;;
15129       *)
15130         ld_shlibs_F77=no
15131          ;;
15132      esac
15133    fi
15134      ;;
15135
15136    dgux*)
15137      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15138      hardcode_libdir_flag_spec_F77='-L$libdir'
15139      hardcode_shlibpath_var_F77=no
15140      ;;
15141
15142    freebsd1*)
15143      ld_shlibs_F77=no
15144      ;;
15145
15146    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15147    # support.  Future versions do this automatically, but an explicit c++rt0.o
15148    # does not break anything, and helps significantly (at the cost of a little
15149    # extra space).
15150    freebsd2.2*)
15151      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15152      hardcode_libdir_flag_spec_F77='-R$libdir'
15153      hardcode_direct_F77=yes
15154      hardcode_shlibpath_var_F77=no
15155      ;;
15156
15157    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15158    freebsd2*)
15159      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15160      hardcode_direct_F77=yes
15161      hardcode_minus_L_F77=yes
15162      hardcode_shlibpath_var_F77=no
15163      ;;
15164
15165    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15166    freebsd* | dragonfly*)
15167      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15168      hardcode_libdir_flag_spec_F77='-R$libdir'
15169      hardcode_direct_F77=yes
15170      hardcode_shlibpath_var_F77=no
15171      ;;
15172
15173    hpux9*)
15174      if test "$GCC" = yes; then
15175	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'
15176      else
15177	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'
15178      fi
15179      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15180      hardcode_libdir_separator_F77=:
15181      hardcode_direct_F77=yes
15182
15183      # hardcode_minus_L: Not really in the search PATH,
15184      # but as the default location of the library.
15185      hardcode_minus_L_F77=yes
15186      export_dynamic_flag_spec_F77='${wl}-E'
15187      ;;
15188
15189    hpux10*)
15190      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15191	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15192      else
15193	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15194      fi
15195      if test "$with_gnu_ld" = no; then
15196	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15197	hardcode_libdir_separator_F77=:
15198
15199	hardcode_direct_F77=yes
15200	export_dynamic_flag_spec_F77='${wl}-E'
15201
15202	# hardcode_minus_L: Not really in the search PATH,
15203	# but as the default location of the library.
15204	hardcode_minus_L_F77=yes
15205      fi
15206      ;;
15207
15208    hpux11*)
15209      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15210	case $host_cpu in
15211	hppa*64*)
15212	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15213	  ;;
15214	ia64*)
15215	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15216	  ;;
15217	*)
15218	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15219	  ;;
15220	esac
15221      else
15222	case $host_cpu in
15223	hppa*64*)
15224	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15225	  ;;
15226	ia64*)
15227	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15228	  ;;
15229	*)
15230	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15231	  ;;
15232	esac
15233      fi
15234      if test "$with_gnu_ld" = no; then
15235	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15236	hardcode_libdir_separator_F77=:
15237
15238	case $host_cpu in
15239	hppa*64*|ia64*)
15240	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15241	  hardcode_direct_F77=no
15242	  hardcode_shlibpath_var_F77=no
15243	  ;;
15244	*)
15245	  hardcode_direct_F77=yes
15246	  export_dynamic_flag_spec_F77='${wl}-E'
15247
15248	  # hardcode_minus_L: Not really in the search PATH,
15249	  # but as the default location of the library.
15250	  hardcode_minus_L_F77=yes
15251	  ;;
15252	esac
15253      fi
15254      ;;
15255
15256    irix5* | irix6* | nonstopux*)
15257      if test "$GCC" = yes; then
15258	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'
15259      else
15260	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'
15261	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15262      fi
15263      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15264      hardcode_libdir_separator_F77=:
15265      link_all_deplibs_F77=yes
15266      ;;
15267
15268    netbsd* | netbsdelf*-gnu)
15269      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15270	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15271      else
15272	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15273      fi
15274      hardcode_libdir_flag_spec_F77='-R$libdir'
15275      hardcode_direct_F77=yes
15276      hardcode_shlibpath_var_F77=no
15277      ;;
15278
15279    newsos6)
15280      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15281      hardcode_direct_F77=yes
15282      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15283      hardcode_libdir_separator_F77=:
15284      hardcode_shlibpath_var_F77=no
15285      ;;
15286
15287    openbsd*)
15288      if test -f /usr/libexec/ld.so; then
15289	hardcode_direct_F77=yes
15290	hardcode_shlibpath_var_F77=no
15291	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15292	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15293	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15294	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15295	  export_dynamic_flag_spec_F77='${wl}-E'
15296	else
15297	  case $host_os in
15298	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15299	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15300	     hardcode_libdir_flag_spec_F77='-R$libdir'
15301	     ;;
15302	   *)
15303	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15304	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15305	     ;;
15306	  esac
15307        fi
15308      else
15309	ld_shlibs_F77=no
15310      fi
15311      ;;
15312
15313    os2*)
15314      hardcode_libdir_flag_spec_F77='-L$libdir'
15315      hardcode_minus_L_F77=yes
15316      allow_undefined_flag_F77=unsupported
15317      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'
15318      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15319      ;;
15320
15321    osf3*)
15322      if test "$GCC" = yes; then
15323	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15324	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'
15325      else
15326	allow_undefined_flag_F77=' -expect_unresolved \*'
15327	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'
15328      fi
15329      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15330      hardcode_libdir_separator_F77=:
15331      ;;
15332
15333    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15334      if test "$GCC" = yes; then
15335	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15336	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'
15337	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15338      else
15339	allow_undefined_flag_F77=' -expect_unresolved \*'
15340	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'
15341	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~
15342	$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'
15343
15344	# Both c and cxx compiler support -rpath directly
15345	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15346      fi
15347      hardcode_libdir_separator_F77=:
15348      ;;
15349
15350    solaris*)
15351      no_undefined_flag_F77=' -z text'
15352      if test "$GCC" = yes; then
15353	wlarc='${wl}'
15354	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15355	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15356	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15357      else
15358	wlarc=''
15359	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15360	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15361  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15362      fi
15363      hardcode_libdir_flag_spec_F77='-R$libdir'
15364      hardcode_shlibpath_var_F77=no
15365      case $host_os in
15366      solaris2.[0-5] | solaris2.[0-5].*) ;;
15367      *)
15368	# The compiler driver will combine and reorder linker options,
15369	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15370	# but is careful enough not to reorder.
15371 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15372	if test "$GCC" = yes; then
15373	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15374	else
15375	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15376	fi
15377	;;
15378      esac
15379      link_all_deplibs_F77=yes
15380      ;;
15381
15382    sunos4*)
15383      if test "x$host_vendor" = xsequent; then
15384	# Use $CC to link under sequent, because it throws in some extra .o
15385	# files that make .init and .fini sections work.
15386	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15387      else
15388	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15389      fi
15390      hardcode_libdir_flag_spec_F77='-L$libdir'
15391      hardcode_direct_F77=yes
15392      hardcode_minus_L_F77=yes
15393      hardcode_shlibpath_var_F77=no
15394      ;;
15395
15396    sysv4)
15397      case $host_vendor in
15398	sni)
15399	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15400	  hardcode_direct_F77=yes # is this really true???
15401	;;
15402	siemens)
15403	  ## LD is ld it makes a PLAMLIB
15404	  ## CC just makes a GrossModule.
15405	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15406	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15407	  hardcode_direct_F77=no
15408        ;;
15409	motorola)
15410	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15411	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15412	;;
15413      esac
15414      runpath_var='LD_RUN_PATH'
15415      hardcode_shlibpath_var_F77=no
15416      ;;
15417
15418    sysv4.3*)
15419      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15420      hardcode_shlibpath_var_F77=no
15421      export_dynamic_flag_spec_F77='-Bexport'
15422      ;;
15423
15424    sysv4*MP*)
15425      if test -d /usr/nec; then
15426	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15427	hardcode_shlibpath_var_F77=no
15428	runpath_var=LD_RUN_PATH
15429	hardcode_runpath_var=yes
15430	ld_shlibs_F77=yes
15431      fi
15432      ;;
15433
15434    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15435      no_undefined_flag_F77='${wl}-z,text'
15436      archive_cmds_need_lc_F77=no
15437      hardcode_shlibpath_var_F77=no
15438      runpath_var='LD_RUN_PATH'
15439
15440      if test "$GCC" = yes; then
15441	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15442	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15443      else
15444	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15445	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15446      fi
15447      ;;
15448
15449    sysv5* | sco3.2v5* | sco5v6*)
15450      # Note: We can NOT use -z defs as we might desire, because we do not
15451      # link with -lc, and that would cause any symbols used from libc to
15452      # always be unresolved, which means just about no library would
15453      # ever link correctly.  If we're not using GNU ld we use -z text
15454      # though, which does catch some bad symbols but isn't as heavy-handed
15455      # as -z defs.
15456      no_undefined_flag_F77='${wl}-z,text'
15457      allow_undefined_flag_F77='${wl}-z,nodefs'
15458      archive_cmds_need_lc_F77=no
15459      hardcode_shlibpath_var_F77=no
15460      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15461      hardcode_libdir_separator_F77=':'
15462      link_all_deplibs_F77=yes
15463      export_dynamic_flag_spec_F77='${wl}-Bexport'
15464      runpath_var='LD_RUN_PATH'
15465
15466      if test "$GCC" = yes; then
15467	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15468	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15469      else
15470	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15471	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15472      fi
15473      ;;
15474
15475    uts4*)
15476      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15477      hardcode_libdir_flag_spec_F77='-L$libdir'
15478      hardcode_shlibpath_var_F77=no
15479      ;;
15480
15481    *)
15482      ld_shlibs_F77=no
15483      ;;
15484    esac
15485  fi
15486
15487{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15488echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15489test "$ld_shlibs_F77" = no && can_build_shared=no
15490
15491#
15492# Do we need to explicitly link libc?
15493#
15494case "x$archive_cmds_need_lc_F77" in
15495x|xyes)
15496  # Assume -lc should be added
15497  archive_cmds_need_lc_F77=yes
15498
15499  if test "$enable_shared" = yes && test "$GCC" = yes; then
15500    case $archive_cmds_F77 in
15501    *'~'*)
15502      # FIXME: we may have to deal with multi-command sequences.
15503      ;;
15504    '$CC '*)
15505      # Test whether the compiler implicitly links with -lc since on some
15506      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15507      # to ld, don't add -lc before -lgcc.
15508      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15509echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15510      $rm conftest*
15511      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15512
15513      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15514  (eval $ac_compile) 2>&5
15515  ac_status=$?
15516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517  (exit $ac_status); } 2>conftest.err; then
15518        soname=conftest
15519        lib=conftest
15520        libobjs=conftest.$ac_objext
15521        deplibs=
15522        wl=$lt_prog_compiler_wl_F77
15523	pic_flag=$lt_prog_compiler_pic_F77
15524        compiler_flags=-v
15525        linker_flags=-v
15526        verstring=
15527        output_objdir=.
15528        libname=conftest
15529        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15530        allow_undefined_flag_F77=
15531        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15532  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15533  ac_status=$?
15534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535  (exit $ac_status); }
15536        then
15537	  archive_cmds_need_lc_F77=no
15538        else
15539	  archive_cmds_need_lc_F77=yes
15540        fi
15541        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15542      else
15543        cat conftest.err 1>&5
15544      fi
15545      $rm conftest*
15546      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15547echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15548      ;;
15549    esac
15550  fi
15551  ;;
15552esac
15553
15554{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15555echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15556library_names_spec=
15557libname_spec='lib$name'
15558soname_spec=
15559shrext_cmds=".so"
15560postinstall_cmds=
15561postuninstall_cmds=
15562finish_cmds=
15563finish_eval=
15564shlibpath_var=
15565shlibpath_overrides_runpath=unknown
15566version_type=none
15567dynamic_linker="$host_os ld.so"
15568sys_lib_dlsearch_path_spec="/lib /usr/lib"
15569
15570need_lib_prefix=unknown
15571hardcode_into_libs=no
15572
15573# when you set need_version to no, make sure it does not cause -set_version
15574# flags to be left without arguments
15575need_version=unknown
15576
15577case $host_os in
15578aix3*)
15579  version_type=linux
15580  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15581  shlibpath_var=LIBPATH
15582
15583  # AIX 3 has no versioning support, so we append a major version to the name.
15584  soname_spec='${libname}${release}${shared_ext}$major'
15585  ;;
15586
15587aix[4-9]*)
15588  version_type=linux
15589  need_lib_prefix=no
15590  need_version=no
15591  hardcode_into_libs=yes
15592  if test "$host_cpu" = ia64; then
15593    # AIX 5 supports IA64
15594    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15595    shlibpath_var=LD_LIBRARY_PATH
15596  else
15597    # With GCC up to 2.95.x, collect2 would create an import file
15598    # for dependence libraries.  The import file would start with
15599    # the line `#! .'.  This would cause the generated library to
15600    # depend on `.', always an invalid library.  This was fixed in
15601    # development snapshots of GCC prior to 3.0.
15602    case $host_os in
15603      aix4 | aix4.[01] | aix4.[01].*)
15604      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15605	   echo ' yes '
15606	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15607	:
15608      else
15609	can_build_shared=no
15610      fi
15611      ;;
15612    esac
15613    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15614    # soname into executable. Probably we can add versioning support to
15615    # collect2, so additional links can be useful in future.
15616    if test "$aix_use_runtimelinking" = yes; then
15617      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15618      # instead of lib<name>.a to let people know that these are not
15619      # typical AIX shared libraries.
15620      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15621    else
15622      # We preserve .a as extension for shared libraries through AIX4.2
15623      # and later when we are not doing run time linking.
15624      library_names_spec='${libname}${release}.a $libname.a'
15625      soname_spec='${libname}${release}${shared_ext}$major'
15626    fi
15627    shlibpath_var=LIBPATH
15628  fi
15629  ;;
15630
15631amigaos*)
15632  library_names_spec='$libname.ixlibrary $libname.a'
15633  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15634  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'
15635  ;;
15636
15637beos*)
15638  library_names_spec='${libname}${shared_ext}'
15639  dynamic_linker="$host_os ld.so"
15640  shlibpath_var=LIBRARY_PATH
15641  ;;
15642
15643bsdi[45]*)
15644  version_type=linux
15645  need_version=no
15646  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15647  soname_spec='${libname}${release}${shared_ext}$major'
15648  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15649  shlibpath_var=LD_LIBRARY_PATH
15650  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15651  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15652  # the default ld.so.conf also contains /usr/contrib/lib and
15653  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15654  # libtool to hard-code these into programs
15655  ;;
15656
15657cygwin* | mingw* | pw32*)
15658  version_type=windows
15659  shrext_cmds=".dll"
15660  need_version=no
15661  need_lib_prefix=no
15662
15663  case $GCC,$host_os in
15664  yes,cygwin* | yes,mingw* | yes,pw32*)
15665    library_names_spec='$libname.dll.a'
15666    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15667    postinstall_cmds='base_file=`basename \${file}`~
15668      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15669      dldir=$destdir/`dirname \$dlpath`~
15670      test -d \$dldir || mkdir -p \$dldir~
15671      $install_prog $dir/$dlname \$dldir/$dlname~
15672      chmod a+x \$dldir/$dlname'
15673    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15674      dlpath=$dir/\$dldll~
15675       $rm \$dlpath'
15676    shlibpath_overrides_runpath=yes
15677
15678    case $host_os in
15679    cygwin*)
15680      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15681      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15682      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15683      ;;
15684    mingw*)
15685      # MinGW DLLs use traditional 'lib' prefix
15686      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15687      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15688      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15689        # It is most probably a Windows format PATH printed by
15690        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15691        # path with ; separators, and with drive letters. We can handle the
15692        # drive letters (cygwin fileutils understands them), so leave them,
15693        # especially as we might pass files found there to a mingw objdump,
15694        # which wouldn't understand a cygwinified path. Ahh.
15695        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15696      else
15697        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15698      fi
15699      ;;
15700    pw32*)
15701      # pw32 DLLs use 'pw' prefix rather than 'lib'
15702      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15703      ;;
15704    esac
15705    ;;
15706
15707  *)
15708    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15709    ;;
15710  esac
15711  dynamic_linker='Win32 ld.exe'
15712  # FIXME: first we should search . and the directory the executable is in
15713  shlibpath_var=PATH
15714  ;;
15715
15716darwin* | rhapsody*)
15717  dynamic_linker="$host_os dyld"
15718  version_type=darwin
15719  need_lib_prefix=no
15720  need_version=no
15721  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15722  soname_spec='${libname}${release}${major}$shared_ext'
15723  shlibpath_overrides_runpath=yes
15724  shlibpath_var=DYLD_LIBRARY_PATH
15725  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15726
15727  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15728  ;;
15729
15730dgux*)
15731  version_type=linux
15732  need_lib_prefix=no
15733  need_version=no
15734  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15735  soname_spec='${libname}${release}${shared_ext}$major'
15736  shlibpath_var=LD_LIBRARY_PATH
15737  ;;
15738
15739freebsd1*)
15740  dynamic_linker=no
15741  ;;
15742
15743freebsd* | dragonfly*)
15744  # DragonFly does not have aout.  When/if they implement a new
15745  # versioning mechanism, adjust this.
15746  if test -x /usr/bin/objformat; then
15747    objformat=`/usr/bin/objformat`
15748  else
15749    case $host_os in
15750    freebsd[123]*) objformat=aout ;;
15751    *) objformat=elf ;;
15752    esac
15753  fi
15754  version_type=freebsd-$objformat
15755  case $version_type in
15756    freebsd-elf*)
15757      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15758      need_version=no
15759      need_lib_prefix=no
15760      ;;
15761    freebsd-*)
15762      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15763      need_version=yes
15764      ;;
15765  esac
15766  shlibpath_var=LD_LIBRARY_PATH
15767  case $host_os in
15768  freebsd2*)
15769    shlibpath_overrides_runpath=yes
15770    ;;
15771  freebsd3.[01]* | freebsdelf3.[01]*)
15772    shlibpath_overrides_runpath=yes
15773    hardcode_into_libs=yes
15774    ;;
15775  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15776  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15777    shlibpath_overrides_runpath=no
15778    hardcode_into_libs=yes
15779    ;;
15780  *) # from 4.6 on, and DragonFly
15781    shlibpath_overrides_runpath=yes
15782    hardcode_into_libs=yes
15783    ;;
15784  esac
15785  ;;
15786
15787gnu*)
15788  version_type=linux
15789  need_lib_prefix=no
15790  need_version=no
15791  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15792  soname_spec='${libname}${release}${shared_ext}$major'
15793  shlibpath_var=LD_LIBRARY_PATH
15794  hardcode_into_libs=yes
15795  ;;
15796
15797hpux9* | hpux10* | hpux11*)
15798  # Give a soname corresponding to the major version so that dld.sl refuses to
15799  # link against other versions.
15800  version_type=sunos
15801  need_lib_prefix=no
15802  need_version=no
15803  case $host_cpu in
15804  ia64*)
15805    shrext_cmds='.so'
15806    hardcode_into_libs=yes
15807    dynamic_linker="$host_os dld.so"
15808    shlibpath_var=LD_LIBRARY_PATH
15809    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15810    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15811    soname_spec='${libname}${release}${shared_ext}$major'
15812    if test "X$HPUX_IA64_MODE" = X32; then
15813      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15814    else
15815      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15816    fi
15817    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15818    ;;
15819   hppa*64*)
15820     shrext_cmds='.sl'
15821     hardcode_into_libs=yes
15822     dynamic_linker="$host_os dld.sl"
15823     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15824     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15825     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15826     soname_spec='${libname}${release}${shared_ext}$major'
15827     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15828     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15829     ;;
15830   *)
15831    shrext_cmds='.sl'
15832    dynamic_linker="$host_os dld.sl"
15833    shlibpath_var=SHLIB_PATH
15834    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15835    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15836    soname_spec='${libname}${release}${shared_ext}$major'
15837    ;;
15838  esac
15839  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15840  postinstall_cmds='chmod 555 $lib'
15841  ;;
15842
15843interix[3-9]*)
15844  version_type=linux
15845  need_lib_prefix=no
15846  need_version=no
15847  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15848  soname_spec='${libname}${release}${shared_ext}$major'
15849  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15850  shlibpath_var=LD_LIBRARY_PATH
15851  shlibpath_overrides_runpath=no
15852  hardcode_into_libs=yes
15853  ;;
15854
15855irix5* | irix6* | nonstopux*)
15856  case $host_os in
15857    nonstopux*) version_type=nonstopux ;;
15858    *)
15859	if test "$lt_cv_prog_gnu_ld" = yes; then
15860		version_type=linux
15861	else
15862		version_type=irix
15863	fi ;;
15864  esac
15865  need_lib_prefix=no
15866  need_version=no
15867  soname_spec='${libname}${release}${shared_ext}$major'
15868  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15869  case $host_os in
15870  irix5* | nonstopux*)
15871    libsuff= shlibsuff=
15872    ;;
15873  *)
15874    case $LD in # libtool.m4 will add one of these switches to LD
15875    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15876      libsuff= shlibsuff= libmagic=32-bit;;
15877    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15878      libsuff=32 shlibsuff=N32 libmagic=N32;;
15879    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15880      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15881    *) libsuff= shlibsuff= libmagic=never-match;;
15882    esac
15883    ;;
15884  esac
15885  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15886  shlibpath_overrides_runpath=no
15887  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15888  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15889  hardcode_into_libs=yes
15890  ;;
15891
15892# No shared lib support for Linux oldld, aout, or coff.
15893linux*oldld* | linux*aout* | linux*coff*)
15894  dynamic_linker=no
15895  ;;
15896
15897# This must be Linux ELF.
15898linux* | k*bsd*-gnu)
15899  version_type=linux
15900  need_lib_prefix=no
15901  need_version=no
15902  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15903  soname_spec='${libname}${release}${shared_ext}$major'
15904  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15905  shlibpath_var=LD_LIBRARY_PATH
15906  shlibpath_overrides_runpath=no
15907  # This implies no fast_install, which is unacceptable.
15908  # Some rework will be needed to allow for fast_install
15909  # before this can be enabled.
15910  hardcode_into_libs=yes
15911
15912  # Append ld.so.conf contents to the search path
15913  if test -f /etc/ld.so.conf; then
15914    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/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15915    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15916  fi
15917
15918  # We used to test for /lib/ld.so.1 and disable shared libraries on
15919  # powerpc, because MkLinux only supported shared libraries with the
15920  # GNU dynamic linker.  Since this was broken with cross compilers,
15921  # most powerpc-linux boxes support dynamic linking these days and
15922  # people can always --disable-shared, the test was removed, and we
15923  # assume the GNU/Linux dynamic linker is in use.
15924  dynamic_linker='GNU/Linux ld.so'
15925  ;;
15926
15927netbsdelf*-gnu)
15928  version_type=linux
15929  need_lib_prefix=no
15930  need_version=no
15931  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15932  soname_spec='${libname}${release}${shared_ext}$major'
15933  shlibpath_var=LD_LIBRARY_PATH
15934  shlibpath_overrides_runpath=no
15935  hardcode_into_libs=yes
15936  dynamic_linker='NetBSD ld.elf_so'
15937  ;;
15938
15939netbsd*)
15940  version_type=sunos
15941  need_lib_prefix=no
15942  need_version=no
15943  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15944    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15945    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15946    dynamic_linker='NetBSD (a.out) ld.so'
15947  else
15948    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15949    soname_spec='${libname}${release}${shared_ext}$major'
15950    dynamic_linker='NetBSD ld.elf_so'
15951  fi
15952  shlibpath_var=LD_LIBRARY_PATH
15953  shlibpath_overrides_runpath=yes
15954  hardcode_into_libs=yes
15955  ;;
15956
15957newsos6)
15958  version_type=linux
15959  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15960  shlibpath_var=LD_LIBRARY_PATH
15961  shlibpath_overrides_runpath=yes
15962  ;;
15963
15964nto-qnx*)
15965  version_type=linux
15966  need_lib_prefix=no
15967  need_version=no
15968  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15969  soname_spec='${libname}${release}${shared_ext}$major'
15970  shlibpath_var=LD_LIBRARY_PATH
15971  shlibpath_overrides_runpath=yes
15972  ;;
15973
15974openbsd*)
15975  version_type=sunos
15976  sys_lib_dlsearch_path_spec="/usr/lib"
15977  need_lib_prefix=no
15978  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15979  case $host_os in
15980    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15981    *)                         need_version=no  ;;
15982  esac
15983  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15984  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15985  shlibpath_var=LD_LIBRARY_PATH
15986  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15987    case $host_os in
15988      openbsd2.[89] | openbsd2.[89].*)
15989	shlibpath_overrides_runpath=no
15990	;;
15991      *)
15992	shlibpath_overrides_runpath=yes
15993	;;
15994      esac
15995  else
15996    shlibpath_overrides_runpath=yes
15997  fi
15998  ;;
15999
16000os2*)
16001  libname_spec='$name'
16002  shrext_cmds=".dll"
16003  need_lib_prefix=no
16004  library_names_spec='$libname${shared_ext} $libname.a'
16005  dynamic_linker='OS/2 ld.exe'
16006  shlibpath_var=LIBPATH
16007  ;;
16008
16009osf3* | osf4* | osf5*)
16010  version_type=osf
16011  need_lib_prefix=no
16012  need_version=no
16013  soname_spec='${libname}${release}${shared_ext}$major'
16014  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16015  shlibpath_var=LD_LIBRARY_PATH
16016  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16017  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16018  ;;
16019
16020rdos*)
16021  dynamic_linker=no
16022  ;;
16023
16024solaris*)
16025  version_type=linux
16026  need_lib_prefix=no
16027  need_version=no
16028  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16029  soname_spec='${libname}${release}${shared_ext}$major'
16030  shlibpath_var=LD_LIBRARY_PATH
16031  shlibpath_overrides_runpath=yes
16032  hardcode_into_libs=yes
16033  # ldd complains unless libraries are executable
16034  postinstall_cmds='chmod +x $lib'
16035  ;;
16036
16037sunos4*)
16038  version_type=sunos
16039  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16040  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16041  shlibpath_var=LD_LIBRARY_PATH
16042  shlibpath_overrides_runpath=yes
16043  if test "$with_gnu_ld" = yes; then
16044    need_lib_prefix=no
16045  fi
16046  need_version=yes
16047  ;;
16048
16049sysv4 | sysv4.3*)
16050  version_type=linux
16051  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16052  soname_spec='${libname}${release}${shared_ext}$major'
16053  shlibpath_var=LD_LIBRARY_PATH
16054  case $host_vendor in
16055    sni)
16056      shlibpath_overrides_runpath=no
16057      need_lib_prefix=no
16058      export_dynamic_flag_spec='${wl}-Blargedynsym'
16059      runpath_var=LD_RUN_PATH
16060      ;;
16061    siemens)
16062      need_lib_prefix=no
16063      ;;
16064    motorola)
16065      need_lib_prefix=no
16066      need_version=no
16067      shlibpath_overrides_runpath=no
16068      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16069      ;;
16070  esac
16071  ;;
16072
16073sysv4*MP*)
16074  if test -d /usr/nec ;then
16075    version_type=linux
16076    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16077    soname_spec='$libname${shared_ext}.$major'
16078    shlibpath_var=LD_LIBRARY_PATH
16079  fi
16080  ;;
16081
16082sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16083  version_type=freebsd-elf
16084  need_lib_prefix=no
16085  need_version=no
16086  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16087  soname_spec='${libname}${release}${shared_ext}$major'
16088  shlibpath_var=LD_LIBRARY_PATH
16089  hardcode_into_libs=yes
16090  if test "$with_gnu_ld" = yes; then
16091    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16092    shlibpath_overrides_runpath=no
16093  else
16094    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16095    shlibpath_overrides_runpath=yes
16096    case $host_os in
16097      sco3.2v5*)
16098        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16099	;;
16100    esac
16101  fi
16102  sys_lib_dlsearch_path_spec='/usr/lib'
16103  ;;
16104
16105uts4*)
16106  version_type=linux
16107  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16108  soname_spec='${libname}${release}${shared_ext}$major'
16109  shlibpath_var=LD_LIBRARY_PATH
16110  ;;
16111
16112*)
16113  dynamic_linker=no
16114  ;;
16115esac
16116{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16117echo "${ECHO_T}$dynamic_linker" >&6; }
16118test "$dynamic_linker" = no && can_build_shared=no
16119
16120if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16121  echo $ECHO_N "(cached) $ECHO_C" >&6
16122else
16123  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16124fi
16125
16126sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16127if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16128  echo $ECHO_N "(cached) $ECHO_C" >&6
16129else
16130  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16131fi
16132
16133sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16134
16135variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16136if test "$GCC" = yes; then
16137  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16138fi
16139
16140{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16141echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16142hardcode_action_F77=
16143if test -n "$hardcode_libdir_flag_spec_F77" || \
16144   test -n "$runpath_var_F77" || \
16145   test "X$hardcode_automatic_F77" = "Xyes" ; then
16146
16147  # We can hardcode non-existant directories.
16148  if test "$hardcode_direct_F77" != no &&
16149     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16150     # have to relink, otherwise we might link with an installed library
16151     # when we should be linking with a yet-to-be-installed one
16152     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16153     test "$hardcode_minus_L_F77" != no; then
16154    # Linking always hardcodes the temporary library directory.
16155    hardcode_action_F77=relink
16156  else
16157    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16158    hardcode_action_F77=immediate
16159  fi
16160else
16161  # We cannot hardcode anything, or else we can only hardcode existing
16162  # directories.
16163  hardcode_action_F77=unsupported
16164fi
16165{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16166echo "${ECHO_T}$hardcode_action_F77" >&6; }
16167
16168if test "$hardcode_action_F77" = relink; then
16169  # Fast installation is not supported
16170  enable_fast_install=no
16171elif test "$shlibpath_overrides_runpath" = yes ||
16172     test "$enable_shared" = no; then
16173  # Fast installation is not necessary
16174  enable_fast_install=needless
16175fi
16176
16177
16178# The else clause should only fire when bootstrapping the
16179# libtool distribution, otherwise you forgot to ship ltmain.sh
16180# with your package, and you will get complaints that there are
16181# no rules to generate ltmain.sh.
16182if test -f "$ltmain"; then
16183  # See if we are running on zsh, and set the options which allow our commands through
16184  # without removal of \ escapes.
16185  if test -n "${ZSH_VERSION+set}" ; then
16186    setopt NO_GLOB_SUBST
16187  fi
16188  # Now quote all the things that may contain metacharacters while being
16189  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16190  # variables and quote the copies for generation of the libtool script.
16191  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16192    SED SHELL STRIP \
16193    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16194    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16195    deplibs_check_method reload_flag reload_cmds need_locks \
16196    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16197    lt_cv_sys_global_symbol_to_c_name_address \
16198    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16199    old_postinstall_cmds old_postuninstall_cmds \
16200    compiler_F77 \
16201    CC_F77 \
16202    LD_F77 \
16203    lt_prog_compiler_wl_F77 \
16204    lt_prog_compiler_pic_F77 \
16205    lt_prog_compiler_static_F77 \
16206    lt_prog_compiler_no_builtin_flag_F77 \
16207    export_dynamic_flag_spec_F77 \
16208    thread_safe_flag_spec_F77 \
16209    whole_archive_flag_spec_F77 \
16210    enable_shared_with_static_runtimes_F77 \
16211    old_archive_cmds_F77 \
16212    old_archive_from_new_cmds_F77 \
16213    predep_objects_F77 \
16214    postdep_objects_F77 \
16215    predeps_F77 \
16216    postdeps_F77 \
16217    compiler_lib_search_path_F77 \
16218    compiler_lib_search_dirs_F77 \
16219    archive_cmds_F77 \
16220    archive_expsym_cmds_F77 \
16221    postinstall_cmds_F77 \
16222    postuninstall_cmds_F77 \
16223    old_archive_from_expsyms_cmds_F77 \
16224    allow_undefined_flag_F77 \
16225    no_undefined_flag_F77 \
16226    export_symbols_cmds_F77 \
16227    hardcode_libdir_flag_spec_F77 \
16228    hardcode_libdir_flag_spec_ld_F77 \
16229    hardcode_libdir_separator_F77 \
16230    hardcode_automatic_F77 \
16231    module_cmds_F77 \
16232    module_expsym_cmds_F77 \
16233    lt_cv_prog_compiler_c_o_F77 \
16234    fix_srcfile_path_F77 \
16235    exclude_expsyms_F77 \
16236    include_expsyms_F77; do
16237
16238    case $var in
16239    old_archive_cmds_F77 | \
16240    old_archive_from_new_cmds_F77 | \
16241    archive_cmds_F77 | \
16242    archive_expsym_cmds_F77 | \
16243    module_cmds_F77 | \
16244    module_expsym_cmds_F77 | \
16245    old_archive_from_expsyms_cmds_F77 | \
16246    export_symbols_cmds_F77 | \
16247    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16248    postinstall_cmds | postuninstall_cmds | \
16249    old_postinstall_cmds | old_postuninstall_cmds | \
16250    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16251      # Double-quote double-evaled strings.
16252      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16253      ;;
16254    *)
16255      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16256      ;;
16257    esac
16258  done
16259
16260  case $lt_echo in
16261  *'\$0 --fallback-echo"')
16262    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16263    ;;
16264  esac
16265
16266cfgfile="$ofile"
16267
16268  cat <<__EOF__ >> "$cfgfile"
16269# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16270
16271# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16272
16273# Shell to use when invoking shell scripts.
16274SHELL=$lt_SHELL
16275
16276# Whether or not to build shared libraries.
16277build_libtool_libs=$enable_shared
16278
16279# Whether or not to build static libraries.
16280build_old_libs=$enable_static
16281
16282# Whether or not to add -lc for building shared libraries.
16283build_libtool_need_lc=$archive_cmds_need_lc_F77
16284
16285# Whether or not to disallow shared libs when runtime libs are static
16286allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16287
16288# Whether or not to optimize for fast installation.
16289fast_install=$enable_fast_install
16290
16291# The host system.
16292host_alias=$host_alias
16293host=$host
16294host_os=$host_os
16295
16296# The build system.
16297build_alias=$build_alias
16298build=$build
16299build_os=$build_os
16300
16301# An echo program that does not interpret backslashes.
16302echo=$lt_echo
16303
16304# The archiver.
16305AR=$lt_AR
16306AR_FLAGS=$lt_AR_FLAGS
16307
16308# A C compiler.
16309LTCC=$lt_LTCC
16310
16311# LTCC compiler flags.
16312LTCFLAGS=$lt_LTCFLAGS
16313
16314# A language-specific compiler.
16315CC=$lt_compiler_F77
16316
16317# Is the compiler the GNU C compiler?
16318with_gcc=$GCC_F77
16319
16320# An ERE matcher.
16321EGREP=$lt_EGREP
16322
16323# The linker used to build libraries.
16324LD=$lt_LD_F77
16325
16326# Whether we need hard or soft links.
16327LN_S=$lt_LN_S
16328
16329# A BSD-compatible nm program.
16330NM=$lt_NM
16331
16332# A symbol stripping program
16333STRIP=$lt_STRIP
16334
16335# Used to examine libraries when file_magic_cmd begins "file"
16336MAGIC_CMD=$MAGIC_CMD
16337
16338# Used on cygwin: DLL creation program.
16339DLLTOOL="$DLLTOOL"
16340
16341# Used on cygwin: object dumper.
16342OBJDUMP="$OBJDUMP"
16343
16344# Used on cygwin: assembler.
16345AS="$AS"
16346
16347# The name of the directory that contains temporary libtool files.
16348objdir=$objdir
16349
16350# How to create reloadable object files.
16351reload_flag=$lt_reload_flag
16352reload_cmds=$lt_reload_cmds
16353
16354# How to pass a linker flag through the compiler.
16355wl=$lt_lt_prog_compiler_wl_F77
16356
16357# Object file suffix (normally "o").
16358objext="$ac_objext"
16359
16360# Old archive suffix (normally "a").
16361libext="$libext"
16362
16363# Shared library suffix (normally ".so").
16364shrext_cmds='$shrext_cmds'
16365
16366# Executable file suffix (normally "").
16367exeext="$exeext"
16368
16369# Additional compiler flags for building library objects.
16370pic_flag=$lt_lt_prog_compiler_pic_F77
16371pic_mode=$pic_mode
16372
16373# What is the maximum length of a command?
16374max_cmd_len=$lt_cv_sys_max_cmd_len
16375
16376# Does compiler simultaneously support -c and -o options?
16377compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16378
16379# Must we lock files when doing compilation?
16380need_locks=$lt_need_locks
16381
16382# Do we need the lib prefix for modules?
16383need_lib_prefix=$need_lib_prefix
16384
16385# Do we need a version for libraries?
16386need_version=$need_version
16387
16388# Whether dlopen is supported.
16389dlopen_support=$enable_dlopen
16390
16391# Whether dlopen of programs is supported.
16392dlopen_self=$enable_dlopen_self
16393
16394# Whether dlopen of statically linked programs is supported.
16395dlopen_self_static=$enable_dlopen_self_static
16396
16397# Compiler flag to prevent dynamic linking.
16398link_static_flag=$lt_lt_prog_compiler_static_F77
16399
16400# Compiler flag to turn off builtin functions.
16401no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16402
16403# Compiler flag to allow reflexive dlopens.
16404export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16405
16406# Compiler flag to generate shared objects directly from archives.
16407whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16408
16409# Compiler flag to generate thread-safe objects.
16410thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16411
16412# Library versioning type.
16413version_type=$version_type
16414
16415# Format of library name prefix.
16416libname_spec=$lt_libname_spec
16417
16418# List of archive names.  First name is the real one, the rest are links.
16419# The last name is the one that the linker finds with -lNAME.
16420library_names_spec=$lt_library_names_spec
16421
16422# The coded name of the library, if different from the real name.
16423soname_spec=$lt_soname_spec
16424
16425# Commands used to build and install an old-style archive.
16426RANLIB=$lt_RANLIB
16427old_archive_cmds=$lt_old_archive_cmds_F77
16428old_postinstall_cmds=$lt_old_postinstall_cmds
16429old_postuninstall_cmds=$lt_old_postuninstall_cmds
16430
16431# Create an old-style archive from a shared archive.
16432old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16433
16434# Create a temporary old-style archive to link instead of a shared archive.
16435old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16436
16437# Commands used to build and install a shared archive.
16438archive_cmds=$lt_archive_cmds_F77
16439archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16440postinstall_cmds=$lt_postinstall_cmds
16441postuninstall_cmds=$lt_postuninstall_cmds
16442
16443# Commands used to build a loadable module (assumed same as above if empty)
16444module_cmds=$lt_module_cmds_F77
16445module_expsym_cmds=$lt_module_expsym_cmds_F77
16446
16447# Commands to strip libraries.
16448old_striplib=$lt_old_striplib
16449striplib=$lt_striplib
16450
16451# Dependencies to place before the objects being linked to create a
16452# shared library.
16453predep_objects=$lt_predep_objects_F77
16454
16455# Dependencies to place after the objects being linked to create a
16456# shared library.
16457postdep_objects=$lt_postdep_objects_F77
16458
16459# Dependencies to place before the objects being linked to create a
16460# shared library.
16461predeps=$lt_predeps_F77
16462
16463# Dependencies to place after the objects being linked to create a
16464# shared library.
16465postdeps=$lt_postdeps_F77
16466
16467# The directories searched by this compiler when creating a shared
16468# library
16469compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16470
16471# The library search path used internally by the compiler when linking
16472# a shared library.
16473compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16474
16475# Method to check whether dependent libraries are shared objects.
16476deplibs_check_method=$lt_deplibs_check_method
16477
16478# Command to use when deplibs_check_method == file_magic.
16479file_magic_cmd=$lt_file_magic_cmd
16480
16481# Flag that allows shared libraries with undefined symbols to be built.
16482allow_undefined_flag=$lt_allow_undefined_flag_F77
16483
16484# Flag that forces no undefined symbols.
16485no_undefined_flag=$lt_no_undefined_flag_F77
16486
16487# Commands used to finish a libtool library installation in a directory.
16488finish_cmds=$lt_finish_cmds
16489
16490# Same as above, but a single script fragment to be evaled but not shown.
16491finish_eval=$lt_finish_eval
16492
16493# Take the output of nm and produce a listing of raw symbols and C names.
16494global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16495
16496# Transform the output of nm in a proper C declaration
16497global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16498
16499# Transform the output of nm in a C name address pair
16500global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16501
16502# This is the shared library runtime path variable.
16503runpath_var=$runpath_var
16504
16505# This is the shared library path variable.
16506shlibpath_var=$shlibpath_var
16507
16508# Is shlibpath searched before the hard-coded library search path?
16509shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16510
16511# How to hardcode a shared library path into an executable.
16512hardcode_action=$hardcode_action_F77
16513
16514# Whether we should hardcode library paths into libraries.
16515hardcode_into_libs=$hardcode_into_libs
16516
16517# Flag to hardcode \$libdir into a binary during linking.
16518# This must work even if \$libdir does not exist.
16519hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16520
16521# If ld is used when linking, flag to hardcode \$libdir into
16522# a binary during linking. This must work even if \$libdir does
16523# not exist.
16524hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16525
16526# Whether we need a single -rpath flag with a separated argument.
16527hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16528
16529# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16530# resulting binary.
16531hardcode_direct=$hardcode_direct_F77
16532
16533# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16534# resulting binary.
16535hardcode_minus_L=$hardcode_minus_L_F77
16536
16537# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16538# the resulting binary.
16539hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16540
16541# Set to yes if building a shared library automatically hardcodes DIR into the library
16542# and all subsequent libraries and executables linked against it.
16543hardcode_automatic=$hardcode_automatic_F77
16544
16545# Variables whose values should be saved in libtool wrapper scripts and
16546# restored at relink time.
16547variables_saved_for_relink="$variables_saved_for_relink"
16548
16549# Whether libtool must link a program against all its dependency libraries.
16550link_all_deplibs=$link_all_deplibs_F77
16551
16552# Compile-time system search path for libraries
16553sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16554
16555# Run-time system search path for libraries
16556sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16557
16558# Fix the shell variable \$srcfile for the compiler.
16559fix_srcfile_path=$lt_fix_srcfile_path
16560
16561# Set to yes if exported symbols are required.
16562always_export_symbols=$always_export_symbols_F77
16563
16564# The commands to list exported symbols.
16565export_symbols_cmds=$lt_export_symbols_cmds_F77
16566
16567# The commands to extract the exported symbol list from a shared archive.
16568extract_expsyms_cmds=$lt_extract_expsyms_cmds
16569
16570# Symbols that should not be listed in the preloaded symbols.
16571exclude_expsyms=$lt_exclude_expsyms_F77
16572
16573# Symbols that must always be exported.
16574include_expsyms=$lt_include_expsyms_F77
16575
16576# ### END LIBTOOL TAG CONFIG: $tagname
16577
16578__EOF__
16579
16580
16581else
16582  # If there is no Makefile yet, we rely on a make rule to execute
16583  # `config.status --recheck' to rerun these tests and create the
16584  # libtool script then.
16585  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16586  if test -f "$ltmain_in"; then
16587    test -f Makefile && make "$ltmain"
16588  fi
16589fi
16590
16591
16592ac_ext=c
16593ac_cpp='$CPP $CPPFLAGS'
16594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16596ac_compiler_gnu=$ac_cv_c_compiler_gnu
16597
16598CC="$lt_save_CC"
16599
16600	else
16601	  tagname=""
16602	fi
16603	;;
16604
16605      GCJ)
16606	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16607
16608
16609# Source file extension for Java test sources.
16610ac_ext=java
16611
16612# Object file extension for compiled Java test sources.
16613objext=o
16614objext_GCJ=$objext
16615
16616# Code to be used in simple compile tests
16617lt_simple_compile_test_code="class foo {}"
16618
16619# Code to be used in simple link tests
16620lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16621
16622# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16623
16624# If no C compiler was specified, use CC.
16625LTCC=${LTCC-"$CC"}
16626
16627# If no C compiler flags were specified, use CFLAGS.
16628LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16629
16630# Allow CC to be a program name with arguments.
16631compiler=$CC
16632
16633
16634# save warnings/boilerplate of simple test code
16635ac_outfile=conftest.$ac_objext
16636echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16637eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16638_lt_compiler_boilerplate=`cat conftest.err`
16639$rm conftest*
16640
16641ac_outfile=conftest.$ac_objext
16642echo "$lt_simple_link_test_code" >conftest.$ac_ext
16643eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16644_lt_linker_boilerplate=`cat conftest.err`
16645$rm -r conftest*
16646
16647
16648# Allow CC to be a program name with arguments.
16649lt_save_CC="$CC"
16650CC=${GCJ-"gcj"}
16651compiler=$CC
16652compiler_GCJ=$CC
16653for cc_temp in $compiler""; do
16654  case $cc_temp in
16655    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16656    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16657    \-*) ;;
16658    *) break;;
16659  esac
16660done
16661cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16662
16663
16664# GCJ did not exist at the time GCC didn't implicitly link libc in.
16665archive_cmds_need_lc_GCJ=no
16666
16667old_archive_cmds_GCJ=$old_archive_cmds
16668
16669
16670lt_prog_compiler_no_builtin_flag_GCJ=
16671
16672if test "$GCC" = yes; then
16673  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16674
16675
16676{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16677echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16678if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16679  echo $ECHO_N "(cached) $ECHO_C" >&6
16680else
16681  lt_cv_prog_compiler_rtti_exceptions=no
16682  ac_outfile=conftest.$ac_objext
16683   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16684   lt_compiler_flag="-fno-rtti -fno-exceptions"
16685   # Insert the option either (1) after the last *FLAGS variable, or
16686   # (2) before a word containing "conftest.", or (3) at the end.
16687   # Note that $ac_compile itself does not contain backslashes and begins
16688   # with a dollar sign (not a hyphen), so the echo should work correctly.
16689   # The option is referenced via a variable to avoid confusing sed.
16690   lt_compile=`echo "$ac_compile" | $SED \
16691   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16692   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16693   -e 's:$: $lt_compiler_flag:'`
16694   (eval echo "\"\$as_me:16694: $lt_compile\"" >&5)
16695   (eval "$lt_compile" 2>conftest.err)
16696   ac_status=$?
16697   cat conftest.err >&5
16698   echo "$as_me:16698: \$? = $ac_status" >&5
16699   if (exit $ac_status) && test -s "$ac_outfile"; then
16700     # The compiler can only warn and ignore the option if not recognized
16701     # So say no if there are warnings other than the usual output.
16702     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16703     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16704     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16705       lt_cv_prog_compiler_rtti_exceptions=yes
16706     fi
16707   fi
16708   $rm conftest*
16709
16710fi
16711{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16712echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16713
16714if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16715    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16716else
16717    :
16718fi
16719
16720fi
16721
16722lt_prog_compiler_wl_GCJ=
16723lt_prog_compiler_pic_GCJ=
16724lt_prog_compiler_static_GCJ=
16725
16726{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16727echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16728
16729  if test "$GCC" = yes; then
16730    lt_prog_compiler_wl_GCJ='-Wl,'
16731    lt_prog_compiler_static_GCJ='-static'
16732
16733    case $host_os in
16734      aix*)
16735      # All AIX code is PIC.
16736      if test "$host_cpu" = ia64; then
16737	# AIX 5 now supports IA64 processor
16738	lt_prog_compiler_static_GCJ='-Bstatic'
16739      fi
16740      ;;
16741
16742    amigaos*)
16743      # FIXME: we need at least 68020 code to build shared libraries, but
16744      # adding the `-m68020' flag to GCC prevents building anything better,
16745      # like `-m68040'.
16746      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16747      ;;
16748
16749    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16750      # PIC is the default for these OSes.
16751      ;;
16752
16753    mingw* | cygwin* | pw32* | os2*)
16754      # This hack is so that the source file can tell whether it is being
16755      # built for inclusion in a dll (and should export symbols for example).
16756      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16757      # (--disable-auto-import) libraries
16758
16759      ;;
16760
16761    darwin* | rhapsody*)
16762      # PIC is the default on this platform
16763      # Common symbols not allowed in MH_DYLIB files
16764      lt_prog_compiler_pic_GCJ='-fno-common'
16765      ;;
16766
16767    interix[3-9]*)
16768      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16769      # Instead, we relocate shared libraries at runtime.
16770      ;;
16771
16772    msdosdjgpp*)
16773      # Just because we use GCC doesn't mean we suddenly get shared libraries
16774      # on systems that don't support them.
16775      lt_prog_compiler_can_build_shared_GCJ=no
16776      enable_shared=no
16777      ;;
16778
16779    sysv4*MP*)
16780      if test -d /usr/nec; then
16781	lt_prog_compiler_pic_GCJ=-Kconform_pic
16782      fi
16783      ;;
16784
16785    hpux*)
16786      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16787      # not for PA HP-UX.
16788      case $host_cpu in
16789      hppa*64*|ia64*)
16790	# +Z the default
16791	;;
16792      *)
16793	lt_prog_compiler_pic_GCJ='-fPIC'
16794	;;
16795      esac
16796      ;;
16797
16798    *)
16799      lt_prog_compiler_pic_GCJ='-fPIC'
16800      ;;
16801    esac
16802  else
16803    # PORTME Check for flag to pass linker flags through the system compiler.
16804    case $host_os in
16805    aix*)
16806      lt_prog_compiler_wl_GCJ='-Wl,'
16807      if test "$host_cpu" = ia64; then
16808	# AIX 5 now supports IA64 processor
16809	lt_prog_compiler_static_GCJ='-Bstatic'
16810      else
16811	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16812      fi
16813      ;;
16814      darwin*)
16815        # PIC is the default on this platform
16816        # Common symbols not allowed in MH_DYLIB files
16817       case $cc_basename in
16818         xlc*)
16819         lt_prog_compiler_pic_GCJ='-qnocommon'
16820         lt_prog_compiler_wl_GCJ='-Wl,'
16821         ;;
16822       esac
16823       ;;
16824
16825    mingw* | cygwin* | pw32* | os2*)
16826      # This hack is so that the source file can tell whether it is being
16827      # built for inclusion in a dll (and should export symbols for example).
16828
16829      ;;
16830
16831    hpux9* | hpux10* | hpux11*)
16832      lt_prog_compiler_wl_GCJ='-Wl,'
16833      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16834      # not for PA HP-UX.
16835      case $host_cpu in
16836      hppa*64*|ia64*)
16837	# +Z the default
16838	;;
16839      *)
16840	lt_prog_compiler_pic_GCJ='+Z'
16841	;;
16842      esac
16843      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16844      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16845      ;;
16846
16847    irix5* | irix6* | nonstopux*)
16848      lt_prog_compiler_wl_GCJ='-Wl,'
16849      # PIC (with -KPIC) is the default.
16850      lt_prog_compiler_static_GCJ='-non_shared'
16851      ;;
16852
16853    newsos6)
16854      lt_prog_compiler_pic_GCJ='-KPIC'
16855      lt_prog_compiler_static_GCJ='-Bstatic'
16856      ;;
16857
16858    linux* | k*bsd*-gnu)
16859      case $cc_basename in
16860      icc* | ecc*)
16861	lt_prog_compiler_wl_GCJ='-Wl,'
16862	lt_prog_compiler_pic_GCJ='-KPIC'
16863	lt_prog_compiler_static_GCJ='-static'
16864        ;;
16865      pgcc* | pgf77* | pgf90* | pgf95*)
16866        # Portland Group compilers (*not* the Pentium gcc compiler,
16867	# which looks to be a dead project)
16868	lt_prog_compiler_wl_GCJ='-Wl,'
16869	lt_prog_compiler_pic_GCJ='-fpic'
16870	lt_prog_compiler_static_GCJ='-Bstatic'
16871        ;;
16872      ccc*)
16873        lt_prog_compiler_wl_GCJ='-Wl,'
16874        # All Alpha code is PIC.
16875        lt_prog_compiler_static_GCJ='-non_shared'
16876        ;;
16877      *)
16878        case `$CC -V 2>&1 | sed 5q` in
16879	*Sun\ C*)
16880	  # Sun C 5.9
16881	  lt_prog_compiler_pic_GCJ='-KPIC'
16882	  lt_prog_compiler_static_GCJ='-Bstatic'
16883	  lt_prog_compiler_wl_GCJ='-Wl,'
16884	  ;;
16885	*Sun\ F*)
16886	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
16887	  lt_prog_compiler_pic_GCJ='-KPIC'
16888	  lt_prog_compiler_static_GCJ='-Bstatic'
16889	  lt_prog_compiler_wl_GCJ=''
16890	  ;;
16891	esac
16892	;;
16893      esac
16894      ;;
16895
16896    osf3* | osf4* | osf5*)
16897      lt_prog_compiler_wl_GCJ='-Wl,'
16898      # All OSF/1 code is PIC.
16899      lt_prog_compiler_static_GCJ='-non_shared'
16900      ;;
16901
16902    rdos*)
16903      lt_prog_compiler_static_GCJ='-non_shared'
16904      ;;
16905
16906    solaris*)
16907      lt_prog_compiler_pic_GCJ='-KPIC'
16908      lt_prog_compiler_static_GCJ='-Bstatic'
16909      case $cc_basename in
16910      f77* | f90* | f95*)
16911	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16912      *)
16913	lt_prog_compiler_wl_GCJ='-Wl,';;
16914      esac
16915      ;;
16916
16917    sunos4*)
16918      lt_prog_compiler_wl_GCJ='-Qoption ld '
16919      lt_prog_compiler_pic_GCJ='-PIC'
16920      lt_prog_compiler_static_GCJ='-Bstatic'
16921      ;;
16922
16923    sysv4 | sysv4.2uw2* | sysv4.3*)
16924      lt_prog_compiler_wl_GCJ='-Wl,'
16925      lt_prog_compiler_pic_GCJ='-KPIC'
16926      lt_prog_compiler_static_GCJ='-Bstatic'
16927      ;;
16928
16929    sysv4*MP*)
16930      if test -d /usr/nec ;then
16931	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16932	lt_prog_compiler_static_GCJ='-Bstatic'
16933      fi
16934      ;;
16935
16936    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16937      lt_prog_compiler_wl_GCJ='-Wl,'
16938      lt_prog_compiler_pic_GCJ='-KPIC'
16939      lt_prog_compiler_static_GCJ='-Bstatic'
16940      ;;
16941
16942    unicos*)
16943      lt_prog_compiler_wl_GCJ='-Wl,'
16944      lt_prog_compiler_can_build_shared_GCJ=no
16945      ;;
16946
16947    uts4*)
16948      lt_prog_compiler_pic_GCJ='-pic'
16949      lt_prog_compiler_static_GCJ='-Bstatic'
16950      ;;
16951
16952    *)
16953      lt_prog_compiler_can_build_shared_GCJ=no
16954      ;;
16955    esac
16956  fi
16957
16958{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16959echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16960
16961#
16962# Check to make sure the PIC flag actually works.
16963#
16964if test -n "$lt_prog_compiler_pic_GCJ"; then
16965
16966{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16967echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16968if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16969  echo $ECHO_N "(cached) $ECHO_C" >&6
16970else
16971  lt_cv_prog_compiler_pic_works_GCJ=no
16972  ac_outfile=conftest.$ac_objext
16973   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16974   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16975   # Insert the option either (1) after the last *FLAGS variable, or
16976   # (2) before a word containing "conftest.", or (3) at the end.
16977   # Note that $ac_compile itself does not contain backslashes and begins
16978   # with a dollar sign (not a hyphen), so the echo should work correctly.
16979   # The option is referenced via a variable to avoid confusing sed.
16980   lt_compile=`echo "$ac_compile" | $SED \
16981   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16982   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16983   -e 's:$: $lt_compiler_flag:'`
16984   (eval echo "\"\$as_me:16984: $lt_compile\"" >&5)
16985   (eval "$lt_compile" 2>conftest.err)
16986   ac_status=$?
16987   cat conftest.err >&5
16988   echo "$as_me:16988: \$? = $ac_status" >&5
16989   if (exit $ac_status) && test -s "$ac_outfile"; then
16990     # The compiler can only warn and ignore the option if not recognized
16991     # So say no if there are warnings other than the usual output.
16992     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16993     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16994     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16995       lt_cv_prog_compiler_pic_works_GCJ=yes
16996     fi
16997   fi
16998   $rm conftest*
16999
17000fi
17001{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17002echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17003
17004if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17005    case $lt_prog_compiler_pic_GCJ in
17006     "" | " "*) ;;
17007     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17008     esac
17009else
17010    lt_prog_compiler_pic_GCJ=
17011     lt_prog_compiler_can_build_shared_GCJ=no
17012fi
17013
17014fi
17015case $host_os in
17016  # For platforms which do not support PIC, -DPIC is meaningless:
17017  *djgpp*)
17018    lt_prog_compiler_pic_GCJ=
17019    ;;
17020  *)
17021    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17022    ;;
17023esac
17024
17025#
17026# Check to make sure the static flag actually works.
17027#
17028wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17029{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17030echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17031if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17032  echo $ECHO_N "(cached) $ECHO_C" >&6
17033else
17034  lt_cv_prog_compiler_static_works_GCJ=no
17035   save_LDFLAGS="$LDFLAGS"
17036   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17037   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17038   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17039     # The linker can only warn and ignore the option if not recognized
17040     # So say no if there are warnings
17041     if test -s conftest.err; then
17042       # Append any errors to the config.log.
17043       cat conftest.err 1>&5
17044       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17045       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17046       if diff conftest.exp conftest.er2 >/dev/null; then
17047         lt_cv_prog_compiler_static_works_GCJ=yes
17048       fi
17049     else
17050       lt_cv_prog_compiler_static_works_GCJ=yes
17051     fi
17052   fi
17053   $rm -r conftest*
17054   LDFLAGS="$save_LDFLAGS"
17055
17056fi
17057{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17058echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17059
17060if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17061    :
17062else
17063    lt_prog_compiler_static_GCJ=
17064fi
17065
17066
17067{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17068echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17069if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17070  echo $ECHO_N "(cached) $ECHO_C" >&6
17071else
17072  lt_cv_prog_compiler_c_o_GCJ=no
17073   $rm -r conftest 2>/dev/null
17074   mkdir conftest
17075   cd conftest
17076   mkdir out
17077   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17078
17079   lt_compiler_flag="-o out/conftest2.$ac_objext"
17080   # Insert the option either (1) after the last *FLAGS variable, or
17081   # (2) before a word containing "conftest.", or (3) at the end.
17082   # Note that $ac_compile itself does not contain backslashes and begins
17083   # with a dollar sign (not a hyphen), so the echo should work correctly.
17084   lt_compile=`echo "$ac_compile" | $SED \
17085   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17086   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17087   -e 's:$: $lt_compiler_flag:'`
17088   (eval echo "\"\$as_me:17088: $lt_compile\"" >&5)
17089   (eval "$lt_compile" 2>out/conftest.err)
17090   ac_status=$?
17091   cat out/conftest.err >&5
17092   echo "$as_me:17092: \$? = $ac_status" >&5
17093   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17094   then
17095     # The compiler can only warn and ignore the option if not recognized
17096     # So say no if there are warnings
17097     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17098     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17099     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17100       lt_cv_prog_compiler_c_o_GCJ=yes
17101     fi
17102   fi
17103   chmod u+w . 2>&5
17104   $rm conftest*
17105   # SGI C++ compiler will create directory out/ii_files/ for
17106   # template instantiation
17107   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17108   $rm out/* && rmdir out
17109   cd ..
17110   rmdir conftest
17111   $rm conftest*
17112
17113fi
17114{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17115echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17116
17117
17118hard_links="nottested"
17119if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17120  # do not overwrite the value of need_locks provided by the user
17121  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17122echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17123  hard_links=yes
17124  $rm conftest*
17125  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17126  touch conftest.a
17127  ln conftest.a conftest.b 2>&5 || hard_links=no
17128  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17129  { echo "$as_me:$LINENO: result: $hard_links" >&5
17130echo "${ECHO_T}$hard_links" >&6; }
17131  if test "$hard_links" = no; then
17132    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17133echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17134    need_locks=warn
17135  fi
17136else
17137  need_locks=no
17138fi
17139
17140{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17141echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17142
17143  runpath_var=
17144  allow_undefined_flag_GCJ=
17145  enable_shared_with_static_runtimes_GCJ=no
17146  archive_cmds_GCJ=
17147  archive_expsym_cmds_GCJ=
17148  old_archive_From_new_cmds_GCJ=
17149  old_archive_from_expsyms_cmds_GCJ=
17150  export_dynamic_flag_spec_GCJ=
17151  whole_archive_flag_spec_GCJ=
17152  thread_safe_flag_spec_GCJ=
17153  hardcode_libdir_flag_spec_GCJ=
17154  hardcode_libdir_flag_spec_ld_GCJ=
17155  hardcode_libdir_separator_GCJ=
17156  hardcode_direct_GCJ=no
17157  hardcode_minus_L_GCJ=no
17158  hardcode_shlibpath_var_GCJ=unsupported
17159  link_all_deplibs_GCJ=unknown
17160  hardcode_automatic_GCJ=no
17161  module_cmds_GCJ=
17162  module_expsym_cmds_GCJ=
17163  always_export_symbols_GCJ=no
17164  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17165  # include_expsyms should be a list of space-separated symbols to be *always*
17166  # included in the symbol list
17167  include_expsyms_GCJ=
17168  # exclude_expsyms can be an extended regexp of symbols to exclude
17169  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17170  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17171  # as well as any symbol that contains `d'.
17172  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17173  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17174  # platforms (ab)use it in PIC code, but their linkers get confused if
17175  # the symbol is explicitly referenced.  Since portable code cannot
17176  # rely on this symbol name, it's probably fine to never include it in
17177  # preloaded symbol tables.
17178  # Exclude shared library initialization/finalization symbols.
17179  extract_expsyms_cmds=
17180  # Just being paranoid about ensuring that cc_basename is set.
17181  for cc_temp in $compiler""; do
17182  case $cc_temp in
17183    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17184    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17185    \-*) ;;
17186    *) break;;
17187  esac
17188done
17189cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17190
17191  case $host_os in
17192  cygwin* | mingw* | pw32*)
17193    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17194    # When not using gcc, we currently assume that we are using
17195    # Microsoft Visual C++.
17196    if test "$GCC" != yes; then
17197      with_gnu_ld=no
17198    fi
17199    ;;
17200  interix*)
17201    # we just hope/assume this is gcc and not c89 (= MSVC++)
17202    with_gnu_ld=yes
17203    ;;
17204  openbsd*)
17205    with_gnu_ld=no
17206    ;;
17207  esac
17208
17209  ld_shlibs_GCJ=yes
17210  if test "$with_gnu_ld" = yes; then
17211    # If archive_cmds runs LD, not CC, wlarc should be empty
17212    wlarc='${wl}'
17213
17214    # Set some defaults for GNU ld with shared library support. These
17215    # are reset later if shared libraries are not supported. Putting them
17216    # here allows them to be overridden if necessary.
17217    runpath_var=LD_RUN_PATH
17218    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17219    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17220    # ancient GNU ld didn't support --whole-archive et. al.
17221    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17222	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17223      else
17224  	whole_archive_flag_spec_GCJ=
17225    fi
17226    supports_anon_versioning=no
17227    case `$LD -v 2>/dev/null` in
17228      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17229      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17230      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17231      *\ 2.11.*) ;; # other 2.11 versions
17232      *) supports_anon_versioning=yes ;;
17233    esac
17234
17235    # See if GNU ld supports shared libraries.
17236    case $host_os in
17237    aix[3-9]*)
17238      # On AIX/PPC, the GNU linker is very broken
17239      if test "$host_cpu" != ia64; then
17240	ld_shlibs_GCJ=no
17241	cat <<EOF 1>&2
17242
17243*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17244*** to be unable to reliably create shared libraries on AIX.
17245*** Therefore, libtool is disabling shared libraries support.  If you
17246*** really care for shared libraries, you may want to modify your PATH
17247*** so that a non-GNU linker is found, and then restart.
17248
17249EOF
17250      fi
17251      ;;
17252
17253    amigaos*)
17254      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)'
17255      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17256      hardcode_minus_L_GCJ=yes
17257
17258      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17259      # that the semantics of dynamic libraries on AmigaOS, at least up
17260      # to version 4, is to share data among multiple programs linked
17261      # with the same dynamic library.  Since this doesn't match the
17262      # behavior of shared libraries on other platforms, we can't use
17263      # them.
17264      ld_shlibs_GCJ=no
17265      ;;
17266
17267    beos*)
17268      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17269	allow_undefined_flag_GCJ=unsupported
17270	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17271	# support --undefined.  This deserves some investigation.  FIXME
17272	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17273      else
17274	ld_shlibs_GCJ=no
17275      fi
17276      ;;
17277
17278    cygwin* | mingw* | pw32*)
17279      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17280      # as there is no search path for DLLs.
17281      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17282      allow_undefined_flag_GCJ=unsupported
17283      always_export_symbols_GCJ=no
17284      enable_shared_with_static_runtimes_GCJ=yes
17285      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17286
17287      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17288        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17289	# If the export-symbols file already is a .def file (1st line
17290	# is EXPORTS), use it as is; otherwise, prepend...
17291	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17292	  cp $export_symbols $output_objdir/$soname.def;
17293	else
17294	  echo EXPORTS > $output_objdir/$soname.def;
17295	  cat $export_symbols >> $output_objdir/$soname.def;
17296	fi~
17297	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17298      else
17299	ld_shlibs_GCJ=no
17300      fi
17301      ;;
17302
17303    interix[3-9]*)
17304      hardcode_direct_GCJ=no
17305      hardcode_shlibpath_var_GCJ=no
17306      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17307      export_dynamic_flag_spec_GCJ='${wl}-E'
17308      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17309      # Instead, shared libraries are loaded at an image base (0x10000000 by
17310      # default) and relocated if they conflict, which is a slow very memory
17311      # consuming and fragmenting process.  To avoid this, we pick a random,
17312      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17313      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17314      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'
17315      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'
17316      ;;
17317
17318    gnu* | linux* | k*bsd*-gnu)
17319      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17320	tmp_addflag=
17321	case $cc_basename,$host_cpu in
17322	pgcc*)				# Portland Group C compiler
17323	  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'
17324	  tmp_addflag=' $pic_flag'
17325	  ;;
17326	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17327	  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'
17328	  tmp_addflag=' $pic_flag -Mnomain' ;;
17329	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17330	  tmp_addflag=' -i_dynamic' ;;
17331	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17332	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17333	ifc* | ifort*)			# Intel Fortran compiler
17334	  tmp_addflag=' -nofor_main' ;;
17335	esac
17336	case `$CC -V 2>&1 | sed 5q` in
17337	*Sun\ C*)			# Sun C 5.9
17338	  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'
17339	  tmp_sharedflag='-G' ;;
17340	*Sun\ F*)			# Sun Fortran 8.3
17341	  tmp_sharedflag='-G' ;;
17342	*)
17343	  tmp_sharedflag='-shared' ;;
17344	esac
17345	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17346
17347	if test $supports_anon_versioning = yes; then
17348	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17349  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17350  $echo "local: *; };" >> $output_objdir/$libname.ver~
17351	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17352	fi
17353	link_all_deplibs_GCJ=no
17354      else
17355	ld_shlibs_GCJ=no
17356      fi
17357      ;;
17358
17359    netbsd* | netbsdelf*-gnu)
17360      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17361	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17362	wlarc=
17363      else
17364	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17365	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17366      fi
17367      ;;
17368
17369    solaris*)
17370      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17371	ld_shlibs_GCJ=no
17372	cat <<EOF 1>&2
17373
17374*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17375*** create shared libraries on Solaris systems.  Therefore, libtool
17376*** is disabling shared libraries support.  We urge you to upgrade GNU
17377*** binutils to release 2.9.1 or newer.  Another option is to modify
17378*** your PATH or compiler configuration so that the native linker is
17379*** used, and then restart.
17380
17381EOF
17382      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17383	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17384	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17385      else
17386	ld_shlibs_GCJ=no
17387      fi
17388      ;;
17389
17390    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17391      case `$LD -v 2>&1` in
17392        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17393	ld_shlibs_GCJ=no
17394	cat <<_LT_EOF 1>&2
17395
17396*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17397*** reliably create shared libraries on SCO systems.  Therefore, libtool
17398*** is disabling shared libraries support.  We urge you to upgrade GNU
17399*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17400*** your PATH or compiler configuration so that the native linker is
17401*** used, and then restart.
17402
17403_LT_EOF
17404	;;
17405	*)
17406	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17407	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17408	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17409	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17410	  else
17411	    ld_shlibs_GCJ=no
17412	  fi
17413	;;
17414      esac
17415      ;;
17416
17417    sunos4*)
17418      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17419      wlarc=
17420      hardcode_direct_GCJ=yes
17421      hardcode_shlibpath_var_GCJ=no
17422      ;;
17423
17424    *)
17425      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17426	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17427	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17428      else
17429	ld_shlibs_GCJ=no
17430      fi
17431      ;;
17432    esac
17433
17434    if test "$ld_shlibs_GCJ" = no; then
17435      runpath_var=
17436      hardcode_libdir_flag_spec_GCJ=
17437      export_dynamic_flag_spec_GCJ=
17438      whole_archive_flag_spec_GCJ=
17439    fi
17440  else
17441    # PORTME fill in a description of your system's linker (not GNU ld)
17442    case $host_os in
17443    aix3*)
17444      allow_undefined_flag_GCJ=unsupported
17445      always_export_symbols_GCJ=yes
17446      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'
17447      # Note: this linker hardcodes the directories in LIBPATH if there
17448      # are no directories specified by -L.
17449      hardcode_minus_L_GCJ=yes
17450      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17451	# Neither direct hardcoding nor static linking is supported with a
17452	# broken collect2.
17453	hardcode_direct_GCJ=unsupported
17454      fi
17455      ;;
17456
17457    aix[4-9]*)
17458      if test "$host_cpu" = ia64; then
17459	# On IA64, the linker does run time linking by default, so we don't
17460	# have to do anything special.
17461	aix_use_runtimelinking=no
17462	exp_sym_flag='-Bexport'
17463	no_entry_flag=""
17464      else
17465	# If we're using GNU nm, then we don't want the "-C" option.
17466	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17467	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17468	  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'
17469	else
17470	  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'
17471	fi
17472	aix_use_runtimelinking=no
17473
17474	# Test if we are trying to use run time linking or normal
17475	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17476	# need to do runtime linking.
17477	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17478	  for ld_flag in $LDFLAGS; do
17479  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17480  	    aix_use_runtimelinking=yes
17481  	    break
17482  	  fi
17483	  done
17484	  ;;
17485	esac
17486
17487	exp_sym_flag='-bexport'
17488	no_entry_flag='-bnoentry'
17489      fi
17490
17491      # When large executables or shared objects are built, AIX ld can
17492      # have problems creating the table of contents.  If linking a library
17493      # or program results in "error TOC overflow" add -mminimal-toc to
17494      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17495      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17496
17497      archive_cmds_GCJ=''
17498      hardcode_direct_GCJ=yes
17499      hardcode_libdir_separator_GCJ=':'
17500      link_all_deplibs_GCJ=yes
17501
17502      if test "$GCC" = yes; then
17503	case $host_os in aix4.[012]|aix4.[012].*)
17504	# We only want to do this on AIX 4.2 and lower, the check
17505	# below for broken collect2 doesn't work under 4.3+
17506	  collect2name=`${CC} -print-prog-name=collect2`
17507	  if test -f "$collect2name" && \
17508  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17509	  then
17510  	  # We have reworked collect2
17511  	  :
17512	  else
17513  	  # We have old collect2
17514  	  hardcode_direct_GCJ=unsupported
17515  	  # It fails to find uninstalled libraries when the uninstalled
17516  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17517  	  # to unsupported forces relinking
17518  	  hardcode_minus_L_GCJ=yes
17519  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17520  	  hardcode_libdir_separator_GCJ=
17521	  fi
17522	  ;;
17523	esac
17524	shared_flag='-shared'
17525	if test "$aix_use_runtimelinking" = yes; then
17526	  shared_flag="$shared_flag "'${wl}-G'
17527	fi
17528      else
17529	# not using gcc
17530	if test "$host_cpu" = ia64; then
17531  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17532  	# chokes on -Wl,-G. The following line is correct:
17533	  shared_flag='-G'
17534	else
17535	  if test "$aix_use_runtimelinking" = yes; then
17536	    shared_flag='${wl}-G'
17537	  else
17538	    shared_flag='${wl}-bM:SRE'
17539	  fi
17540	fi
17541      fi
17542
17543      # It seems that -bexpall does not export symbols beginning with
17544      # underscore (_), so it is better to generate a list of symbols to export.
17545      always_export_symbols_GCJ=yes
17546      if test "$aix_use_runtimelinking" = yes; then
17547	# Warning - without using the other runtime loading flags (-brtl),
17548	# -berok will link without error, but may produce a broken library.
17549	allow_undefined_flag_GCJ='-berok'
17550       # Determine the default libpath from the value encoded in an empty executable.
17551       cat >conftest.$ac_ext <<_ACEOF
17552/* confdefs.h.  */
17553_ACEOF
17554cat confdefs.h >>conftest.$ac_ext
17555cat >>conftest.$ac_ext <<_ACEOF
17556/* end confdefs.h.  */
17557
17558int
17559main ()
17560{
17561
17562  ;
17563  return 0;
17564}
17565_ACEOF
17566rm -f conftest.$ac_objext conftest$ac_exeext
17567if { (ac_try="$ac_link"
17568case "(($ac_try" in
17569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17570  *) ac_try_echo=$ac_try;;
17571esac
17572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17573  (eval "$ac_link") 2>conftest.er1
17574  ac_status=$?
17575  grep -v '^ *+' conftest.er1 >conftest.err
17576  rm -f conftest.er1
17577  cat conftest.err >&5
17578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579  (exit $ac_status); } && {
17580	 test -z "$ac_c_werror_flag" ||
17581	 test ! -s conftest.err
17582       } && test -s conftest$ac_exeext &&
17583       $as_test_x conftest$ac_exeext; then
17584
17585lt_aix_libpath_sed='
17586    /Import File Strings/,/^$/ {
17587	/^0/ {
17588	    s/^0  *\(.*\)$/\1/
17589	    p
17590	}
17591    }'
17592aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17593# Check for a 64-bit object if we didn't find anything.
17594if test -z "$aix_libpath"; then
17595  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17596fi
17597else
17598  echo "$as_me: failed program was:" >&5
17599sed 's/^/| /' conftest.$ac_ext >&5
17600
17601
17602fi
17603
17604rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17605      conftest$ac_exeext conftest.$ac_ext
17606if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17607
17608       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17609	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"
17610       else
17611	if test "$host_cpu" = ia64; then
17612	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17613	  allow_undefined_flag_GCJ="-z nodefs"
17614	  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"
17615	else
17616	 # Determine the default libpath from the value encoded in an empty executable.
17617	 cat >conftest.$ac_ext <<_ACEOF
17618/* confdefs.h.  */
17619_ACEOF
17620cat confdefs.h >>conftest.$ac_ext
17621cat >>conftest.$ac_ext <<_ACEOF
17622/* end confdefs.h.  */
17623
17624int
17625main ()
17626{
17627
17628  ;
17629  return 0;
17630}
17631_ACEOF
17632rm -f conftest.$ac_objext conftest$ac_exeext
17633if { (ac_try="$ac_link"
17634case "(($ac_try" in
17635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17636  *) ac_try_echo=$ac_try;;
17637esac
17638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17639  (eval "$ac_link") 2>conftest.er1
17640  ac_status=$?
17641  grep -v '^ *+' conftest.er1 >conftest.err
17642  rm -f conftest.er1
17643  cat conftest.err >&5
17644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645  (exit $ac_status); } && {
17646	 test -z "$ac_c_werror_flag" ||
17647	 test ! -s conftest.err
17648       } && test -s conftest$ac_exeext &&
17649       $as_test_x conftest$ac_exeext; then
17650
17651lt_aix_libpath_sed='
17652    /Import File Strings/,/^$/ {
17653	/^0/ {
17654	    s/^0  *\(.*\)$/\1/
17655	    p
17656	}
17657    }'
17658aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17659# Check for a 64-bit object if we didn't find anything.
17660if test -z "$aix_libpath"; then
17661  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17662fi
17663else
17664  echo "$as_me: failed program was:" >&5
17665sed 's/^/| /' conftest.$ac_ext >&5
17666
17667
17668fi
17669
17670rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17671      conftest$ac_exeext conftest.$ac_ext
17672if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17673
17674	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17675	  # Warning - without using the other run time loading flags,
17676	  # -berok will link without error, but may produce a broken library.
17677	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17678	  allow_undefined_flag_GCJ=' ${wl}-berok'
17679	  # Exported symbols can be pulled into shared objects from archives
17680	  whole_archive_flag_spec_GCJ='$convenience'
17681	  archive_cmds_need_lc_GCJ=yes
17682	  # This is similar to how AIX traditionally builds its shared libraries.
17683	  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'
17684	fi
17685      fi
17686      ;;
17687
17688    amigaos*)
17689      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)'
17690      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17691      hardcode_minus_L_GCJ=yes
17692      # see comment about different semantics on the GNU ld section
17693      ld_shlibs_GCJ=no
17694      ;;
17695
17696    bsdi[45]*)
17697      export_dynamic_flag_spec_GCJ=-rdynamic
17698      ;;
17699
17700    cygwin* | mingw* | pw32*)
17701      # When not using gcc, we currently assume that we are using
17702      # Microsoft Visual C++.
17703      # hardcode_libdir_flag_spec is actually meaningless, as there is
17704      # no search path for DLLs.
17705      hardcode_libdir_flag_spec_GCJ=' '
17706      allow_undefined_flag_GCJ=unsupported
17707      # Tell ltmain to make .lib files, not .a files.
17708      libext=lib
17709      # Tell ltmain to make .dll files, not .so files.
17710      shrext_cmds=".dll"
17711      # FIXME: Setting linknames here is a bad hack.
17712      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17713      # The linker will automatically build a .lib file if we build a DLL.
17714      old_archive_From_new_cmds_GCJ='true'
17715      # FIXME: Should let the user specify the lib program.
17716      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17717      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17718      enable_shared_with_static_runtimes_GCJ=yes
17719      ;;
17720
17721    darwin* | rhapsody*)
17722      case $host_os in
17723        rhapsody* | darwin1.[012])
17724         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17725         ;;
17726       *) # Darwin 1.3 on
17727         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17728           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17729         else
17730           case ${MACOSX_DEPLOYMENT_TARGET} in
17731             10.[012])
17732               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17733               ;;
17734             10.*)
17735               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17736               ;;
17737           esac
17738         fi
17739         ;;
17740      esac
17741      archive_cmds_need_lc_GCJ=no
17742      hardcode_direct_GCJ=no
17743      hardcode_automatic_GCJ=yes
17744      hardcode_shlibpath_var_GCJ=unsupported
17745      whole_archive_flag_spec_GCJ=''
17746      link_all_deplibs_GCJ=yes
17747    if test "$GCC" = yes ; then
17748    	output_verbose_link_cmd='echo'
17749        archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17750        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17751        archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17752        module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17753    else
17754      case $cc_basename in
17755        xlc*)
17756         output_verbose_link_cmd='echo'
17757         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17758         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17759          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17760         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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17761          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}'
17762          ;;
17763       *)
17764         ld_shlibs_GCJ=no
17765          ;;
17766      esac
17767    fi
17768      ;;
17769
17770    dgux*)
17771      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17772      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17773      hardcode_shlibpath_var_GCJ=no
17774      ;;
17775
17776    freebsd1*)
17777      ld_shlibs_GCJ=no
17778      ;;
17779
17780    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17781    # support.  Future versions do this automatically, but an explicit c++rt0.o
17782    # does not break anything, and helps significantly (at the cost of a little
17783    # extra space).
17784    freebsd2.2*)
17785      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17786      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17787      hardcode_direct_GCJ=yes
17788      hardcode_shlibpath_var_GCJ=no
17789      ;;
17790
17791    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17792    freebsd2*)
17793      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17794      hardcode_direct_GCJ=yes
17795      hardcode_minus_L_GCJ=yes
17796      hardcode_shlibpath_var_GCJ=no
17797      ;;
17798
17799    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17800    freebsd* | dragonfly*)
17801      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17802      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17803      hardcode_direct_GCJ=yes
17804      hardcode_shlibpath_var_GCJ=no
17805      ;;
17806
17807    hpux9*)
17808      if test "$GCC" = yes; then
17809	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'
17810      else
17811	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'
17812      fi
17813      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17814      hardcode_libdir_separator_GCJ=:
17815      hardcode_direct_GCJ=yes
17816
17817      # hardcode_minus_L: Not really in the search PATH,
17818      # but as the default location of the library.
17819      hardcode_minus_L_GCJ=yes
17820      export_dynamic_flag_spec_GCJ='${wl}-E'
17821      ;;
17822
17823    hpux10*)
17824      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17825	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17826      else
17827	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17828      fi
17829      if test "$with_gnu_ld" = no; then
17830	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17831	hardcode_libdir_separator_GCJ=:
17832
17833	hardcode_direct_GCJ=yes
17834	export_dynamic_flag_spec_GCJ='${wl}-E'
17835
17836	# hardcode_minus_L: Not really in the search PATH,
17837	# but as the default location of the library.
17838	hardcode_minus_L_GCJ=yes
17839      fi
17840      ;;
17841
17842    hpux11*)
17843      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17844	case $host_cpu in
17845	hppa*64*)
17846	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17847	  ;;
17848	ia64*)
17849	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17850	  ;;
17851	*)
17852	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17853	  ;;
17854	esac
17855      else
17856	case $host_cpu in
17857	hppa*64*)
17858	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17859	  ;;
17860	ia64*)
17861	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17862	  ;;
17863	*)
17864	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17865	  ;;
17866	esac
17867      fi
17868      if test "$with_gnu_ld" = no; then
17869	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17870	hardcode_libdir_separator_GCJ=:
17871
17872	case $host_cpu in
17873	hppa*64*|ia64*)
17874	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17875	  hardcode_direct_GCJ=no
17876	  hardcode_shlibpath_var_GCJ=no
17877	  ;;
17878	*)
17879	  hardcode_direct_GCJ=yes
17880	  export_dynamic_flag_spec_GCJ='${wl}-E'
17881
17882	  # hardcode_minus_L: Not really in the search PATH,
17883	  # but as the default location of the library.
17884	  hardcode_minus_L_GCJ=yes
17885	  ;;
17886	esac
17887      fi
17888      ;;
17889
17890    irix5* | irix6* | nonstopux*)
17891      if test "$GCC" = yes; then
17892	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'
17893      else
17894	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'
17895	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17896      fi
17897      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17898      hardcode_libdir_separator_GCJ=:
17899      link_all_deplibs_GCJ=yes
17900      ;;
17901
17902    netbsd* | netbsdelf*-gnu)
17903      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17904	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17905      else
17906	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17907      fi
17908      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17909      hardcode_direct_GCJ=yes
17910      hardcode_shlibpath_var_GCJ=no
17911      ;;
17912
17913    newsos6)
17914      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17915      hardcode_direct_GCJ=yes
17916      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17917      hardcode_libdir_separator_GCJ=:
17918      hardcode_shlibpath_var_GCJ=no
17919      ;;
17920
17921    openbsd*)
17922      if test -f /usr/libexec/ld.so; then
17923	hardcode_direct_GCJ=yes
17924	hardcode_shlibpath_var_GCJ=no
17925	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17926	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17927	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17928	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17929	  export_dynamic_flag_spec_GCJ='${wl}-E'
17930	else
17931	  case $host_os in
17932	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17933	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17934	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
17935	     ;;
17936	   *)
17937	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17938	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17939	     ;;
17940	  esac
17941        fi
17942      else
17943	ld_shlibs_GCJ=no
17944      fi
17945      ;;
17946
17947    os2*)
17948      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17949      hardcode_minus_L_GCJ=yes
17950      allow_undefined_flag_GCJ=unsupported
17951      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'
17952      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17953      ;;
17954
17955    osf3*)
17956      if test "$GCC" = yes; then
17957	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17958	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'
17959      else
17960	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17961	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'
17962      fi
17963      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17964      hardcode_libdir_separator_GCJ=:
17965      ;;
17966
17967    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17968      if test "$GCC" = yes; then
17969	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17970	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'
17971	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17972      else
17973	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17974	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'
17975	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~
17976	$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'
17977
17978	# Both c and cxx compiler support -rpath directly
17979	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17980      fi
17981      hardcode_libdir_separator_GCJ=:
17982      ;;
17983
17984    solaris*)
17985      no_undefined_flag_GCJ=' -z text'
17986      if test "$GCC" = yes; then
17987	wlarc='${wl}'
17988	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17989	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17990	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17991      else
17992	wlarc=''
17993	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17994	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17995  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17996      fi
17997      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17998      hardcode_shlibpath_var_GCJ=no
17999      case $host_os in
18000      solaris2.[0-5] | solaris2.[0-5].*) ;;
18001      *)
18002	# The compiler driver will combine and reorder linker options,
18003	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18004	# but is careful enough not to reorder.
18005 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18006	if test "$GCC" = yes; then
18007	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18008	else
18009	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18010	fi
18011	;;
18012      esac
18013      link_all_deplibs_GCJ=yes
18014      ;;
18015
18016    sunos4*)
18017      if test "x$host_vendor" = xsequent; then
18018	# Use $CC to link under sequent, because it throws in some extra .o
18019	# files that make .init and .fini sections work.
18020	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18021      else
18022	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18023      fi
18024      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18025      hardcode_direct_GCJ=yes
18026      hardcode_minus_L_GCJ=yes
18027      hardcode_shlibpath_var_GCJ=no
18028      ;;
18029
18030    sysv4)
18031      case $host_vendor in
18032	sni)
18033	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18034	  hardcode_direct_GCJ=yes # is this really true???
18035	;;
18036	siemens)
18037	  ## LD is ld it makes a PLAMLIB
18038	  ## CC just makes a GrossModule.
18039	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18040	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18041	  hardcode_direct_GCJ=no
18042        ;;
18043	motorola)
18044	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18045	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18046	;;
18047      esac
18048      runpath_var='LD_RUN_PATH'
18049      hardcode_shlibpath_var_GCJ=no
18050      ;;
18051
18052    sysv4.3*)
18053      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18054      hardcode_shlibpath_var_GCJ=no
18055      export_dynamic_flag_spec_GCJ='-Bexport'
18056      ;;
18057
18058    sysv4*MP*)
18059      if test -d /usr/nec; then
18060	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18061	hardcode_shlibpath_var_GCJ=no
18062	runpath_var=LD_RUN_PATH
18063	hardcode_runpath_var=yes
18064	ld_shlibs_GCJ=yes
18065      fi
18066      ;;
18067
18068    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18069      no_undefined_flag_GCJ='${wl}-z,text'
18070      archive_cmds_need_lc_GCJ=no
18071      hardcode_shlibpath_var_GCJ=no
18072      runpath_var='LD_RUN_PATH'
18073
18074      if test "$GCC" = yes; then
18075	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18076	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18077      else
18078	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18079	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18080      fi
18081      ;;
18082
18083    sysv5* | sco3.2v5* | sco5v6*)
18084      # Note: We can NOT use -z defs as we might desire, because we do not
18085      # link with -lc, and that would cause any symbols used from libc to
18086      # always be unresolved, which means just about no library would
18087      # ever link correctly.  If we're not using GNU ld we use -z text
18088      # though, which does catch some bad symbols but isn't as heavy-handed
18089      # as -z defs.
18090      no_undefined_flag_GCJ='${wl}-z,text'
18091      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18092      archive_cmds_need_lc_GCJ=no
18093      hardcode_shlibpath_var_GCJ=no
18094      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18095      hardcode_libdir_separator_GCJ=':'
18096      link_all_deplibs_GCJ=yes
18097      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18098      runpath_var='LD_RUN_PATH'
18099
18100      if test "$GCC" = yes; then
18101	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18102	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18103      else
18104	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18105	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18106      fi
18107      ;;
18108
18109    uts4*)
18110      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18111      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18112      hardcode_shlibpath_var_GCJ=no
18113      ;;
18114
18115    *)
18116      ld_shlibs_GCJ=no
18117      ;;
18118    esac
18119  fi
18120
18121{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18122echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18123test "$ld_shlibs_GCJ" = no && can_build_shared=no
18124
18125#
18126# Do we need to explicitly link libc?
18127#
18128case "x$archive_cmds_need_lc_GCJ" in
18129x|xyes)
18130  # Assume -lc should be added
18131  archive_cmds_need_lc_GCJ=yes
18132
18133  if test "$enable_shared" = yes && test "$GCC" = yes; then
18134    case $archive_cmds_GCJ in
18135    *'~'*)
18136      # FIXME: we may have to deal with multi-command sequences.
18137      ;;
18138    '$CC '*)
18139      # Test whether the compiler implicitly links with -lc since on some
18140      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18141      # to ld, don't add -lc before -lgcc.
18142      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18143echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18144      $rm conftest*
18145      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18146
18147      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18148  (eval $ac_compile) 2>&5
18149  ac_status=$?
18150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151  (exit $ac_status); } 2>conftest.err; then
18152        soname=conftest
18153        lib=conftest
18154        libobjs=conftest.$ac_objext
18155        deplibs=
18156        wl=$lt_prog_compiler_wl_GCJ
18157	pic_flag=$lt_prog_compiler_pic_GCJ
18158        compiler_flags=-v
18159        linker_flags=-v
18160        verstring=
18161        output_objdir=.
18162        libname=conftest
18163        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18164        allow_undefined_flag_GCJ=
18165        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18166  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18167  ac_status=$?
18168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169  (exit $ac_status); }
18170        then
18171	  archive_cmds_need_lc_GCJ=no
18172        else
18173	  archive_cmds_need_lc_GCJ=yes
18174        fi
18175        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18176      else
18177        cat conftest.err 1>&5
18178      fi
18179      $rm conftest*
18180      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18181echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18182      ;;
18183    esac
18184  fi
18185  ;;
18186esac
18187
18188{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18189echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18190library_names_spec=
18191libname_spec='lib$name'
18192soname_spec=
18193shrext_cmds=".so"
18194postinstall_cmds=
18195postuninstall_cmds=
18196finish_cmds=
18197finish_eval=
18198shlibpath_var=
18199shlibpath_overrides_runpath=unknown
18200version_type=none
18201dynamic_linker="$host_os ld.so"
18202sys_lib_dlsearch_path_spec="/lib /usr/lib"
18203
18204need_lib_prefix=unknown
18205hardcode_into_libs=no
18206
18207# when you set need_version to no, make sure it does not cause -set_version
18208# flags to be left without arguments
18209need_version=unknown
18210
18211case $host_os in
18212aix3*)
18213  version_type=linux
18214  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18215  shlibpath_var=LIBPATH
18216
18217  # AIX 3 has no versioning support, so we append a major version to the name.
18218  soname_spec='${libname}${release}${shared_ext}$major'
18219  ;;
18220
18221aix[4-9]*)
18222  version_type=linux
18223  need_lib_prefix=no
18224  need_version=no
18225  hardcode_into_libs=yes
18226  if test "$host_cpu" = ia64; then
18227    # AIX 5 supports IA64
18228    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18229    shlibpath_var=LD_LIBRARY_PATH
18230  else
18231    # With GCC up to 2.95.x, collect2 would create an import file
18232    # for dependence libraries.  The import file would start with
18233    # the line `#! .'.  This would cause the generated library to
18234    # depend on `.', always an invalid library.  This was fixed in
18235    # development snapshots of GCC prior to 3.0.
18236    case $host_os in
18237      aix4 | aix4.[01] | aix4.[01].*)
18238      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18239	   echo ' yes '
18240	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18241	:
18242      else
18243	can_build_shared=no
18244      fi
18245      ;;
18246    esac
18247    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18248    # soname into executable. Probably we can add versioning support to
18249    # collect2, so additional links can be useful in future.
18250    if test "$aix_use_runtimelinking" = yes; then
18251      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18252      # instead of lib<name>.a to let people know that these are not
18253      # typical AIX shared libraries.
18254      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18255    else
18256      # We preserve .a as extension for shared libraries through AIX4.2
18257      # and later when we are not doing run time linking.
18258      library_names_spec='${libname}${release}.a $libname.a'
18259      soname_spec='${libname}${release}${shared_ext}$major'
18260    fi
18261    shlibpath_var=LIBPATH
18262  fi
18263  ;;
18264
18265amigaos*)
18266  library_names_spec='$libname.ixlibrary $libname.a'
18267  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18268  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'
18269  ;;
18270
18271beos*)
18272  library_names_spec='${libname}${shared_ext}'
18273  dynamic_linker="$host_os ld.so"
18274  shlibpath_var=LIBRARY_PATH
18275  ;;
18276
18277bsdi[45]*)
18278  version_type=linux
18279  need_version=no
18280  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18281  soname_spec='${libname}${release}${shared_ext}$major'
18282  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18283  shlibpath_var=LD_LIBRARY_PATH
18284  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18285  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18286  # the default ld.so.conf also contains /usr/contrib/lib and
18287  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18288  # libtool to hard-code these into programs
18289  ;;
18290
18291cygwin* | mingw* | pw32*)
18292  version_type=windows
18293  shrext_cmds=".dll"
18294  need_version=no
18295  need_lib_prefix=no
18296
18297  case $GCC,$host_os in
18298  yes,cygwin* | yes,mingw* | yes,pw32*)
18299    library_names_spec='$libname.dll.a'
18300    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18301    postinstall_cmds='base_file=`basename \${file}`~
18302      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18303      dldir=$destdir/`dirname \$dlpath`~
18304      test -d \$dldir || mkdir -p \$dldir~
18305      $install_prog $dir/$dlname \$dldir/$dlname~
18306      chmod a+x \$dldir/$dlname'
18307    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18308      dlpath=$dir/\$dldll~
18309       $rm \$dlpath'
18310    shlibpath_overrides_runpath=yes
18311
18312    case $host_os in
18313    cygwin*)
18314      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18315      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18316      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18317      ;;
18318    mingw*)
18319      # MinGW DLLs use traditional 'lib' prefix
18320      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18321      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18322      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18323        # It is most probably a Windows format PATH printed by
18324        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18325        # path with ; separators, and with drive letters. We can handle the
18326        # drive letters (cygwin fileutils understands them), so leave them,
18327        # especially as we might pass files found there to a mingw objdump,
18328        # which wouldn't understand a cygwinified path. Ahh.
18329        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18330      else
18331        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18332      fi
18333      ;;
18334    pw32*)
18335      # pw32 DLLs use 'pw' prefix rather than 'lib'
18336      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18337      ;;
18338    esac
18339    ;;
18340
18341  *)
18342    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18343    ;;
18344  esac
18345  dynamic_linker='Win32 ld.exe'
18346  # FIXME: first we should search . and the directory the executable is in
18347  shlibpath_var=PATH
18348  ;;
18349
18350darwin* | rhapsody*)
18351  dynamic_linker="$host_os dyld"
18352  version_type=darwin
18353  need_lib_prefix=no
18354  need_version=no
18355  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18356  soname_spec='${libname}${release}${major}$shared_ext'
18357  shlibpath_overrides_runpath=yes
18358  shlibpath_var=DYLD_LIBRARY_PATH
18359  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18360
18361  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18362  ;;
18363
18364dgux*)
18365  version_type=linux
18366  need_lib_prefix=no
18367  need_version=no
18368  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18369  soname_spec='${libname}${release}${shared_ext}$major'
18370  shlibpath_var=LD_LIBRARY_PATH
18371  ;;
18372
18373freebsd1*)
18374  dynamic_linker=no
18375  ;;
18376
18377freebsd* | dragonfly*)
18378  # DragonFly does not have aout.  When/if they implement a new
18379  # versioning mechanism, adjust this.
18380  if test -x /usr/bin/objformat; then
18381    objformat=`/usr/bin/objformat`
18382  else
18383    case $host_os in
18384    freebsd[123]*) objformat=aout ;;
18385    *) objformat=elf ;;
18386    esac
18387  fi
18388  version_type=freebsd-$objformat
18389  case $version_type in
18390    freebsd-elf*)
18391      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18392      need_version=no
18393      need_lib_prefix=no
18394      ;;
18395    freebsd-*)
18396      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18397      need_version=yes
18398      ;;
18399  esac
18400  shlibpath_var=LD_LIBRARY_PATH
18401  case $host_os in
18402  freebsd2*)
18403    shlibpath_overrides_runpath=yes
18404    ;;
18405  freebsd3.[01]* | freebsdelf3.[01]*)
18406    shlibpath_overrides_runpath=yes
18407    hardcode_into_libs=yes
18408    ;;
18409  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18410  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18411    shlibpath_overrides_runpath=no
18412    hardcode_into_libs=yes
18413    ;;
18414  *) # from 4.6 on, and DragonFly
18415    shlibpath_overrides_runpath=yes
18416    hardcode_into_libs=yes
18417    ;;
18418  esac
18419  ;;
18420
18421gnu*)
18422  version_type=linux
18423  need_lib_prefix=no
18424  need_version=no
18425  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18426  soname_spec='${libname}${release}${shared_ext}$major'
18427  shlibpath_var=LD_LIBRARY_PATH
18428  hardcode_into_libs=yes
18429  ;;
18430
18431hpux9* | hpux10* | hpux11*)
18432  # Give a soname corresponding to the major version so that dld.sl refuses to
18433  # link against other versions.
18434  version_type=sunos
18435  need_lib_prefix=no
18436  need_version=no
18437  case $host_cpu in
18438  ia64*)
18439    shrext_cmds='.so'
18440    hardcode_into_libs=yes
18441    dynamic_linker="$host_os dld.so"
18442    shlibpath_var=LD_LIBRARY_PATH
18443    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18444    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18445    soname_spec='${libname}${release}${shared_ext}$major'
18446    if test "X$HPUX_IA64_MODE" = X32; then
18447      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18448    else
18449      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18450    fi
18451    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18452    ;;
18453   hppa*64*)
18454     shrext_cmds='.sl'
18455     hardcode_into_libs=yes
18456     dynamic_linker="$host_os dld.sl"
18457     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18458     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18459     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18460     soname_spec='${libname}${release}${shared_ext}$major'
18461     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18462     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18463     ;;
18464   *)
18465    shrext_cmds='.sl'
18466    dynamic_linker="$host_os dld.sl"
18467    shlibpath_var=SHLIB_PATH
18468    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18469    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18470    soname_spec='${libname}${release}${shared_ext}$major'
18471    ;;
18472  esac
18473  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18474  postinstall_cmds='chmod 555 $lib'
18475  ;;
18476
18477interix[3-9]*)
18478  version_type=linux
18479  need_lib_prefix=no
18480  need_version=no
18481  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18482  soname_spec='${libname}${release}${shared_ext}$major'
18483  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18484  shlibpath_var=LD_LIBRARY_PATH
18485  shlibpath_overrides_runpath=no
18486  hardcode_into_libs=yes
18487  ;;
18488
18489irix5* | irix6* | nonstopux*)
18490  case $host_os in
18491    nonstopux*) version_type=nonstopux ;;
18492    *)
18493	if test "$lt_cv_prog_gnu_ld" = yes; then
18494		version_type=linux
18495	else
18496		version_type=irix
18497	fi ;;
18498  esac
18499  need_lib_prefix=no
18500  need_version=no
18501  soname_spec='${libname}${release}${shared_ext}$major'
18502  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18503  case $host_os in
18504  irix5* | nonstopux*)
18505    libsuff= shlibsuff=
18506    ;;
18507  *)
18508    case $LD in # libtool.m4 will add one of these switches to LD
18509    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18510      libsuff= shlibsuff= libmagic=32-bit;;
18511    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18512      libsuff=32 shlibsuff=N32 libmagic=N32;;
18513    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18514      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18515    *) libsuff= shlibsuff= libmagic=never-match;;
18516    esac
18517    ;;
18518  esac
18519  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18520  shlibpath_overrides_runpath=no
18521  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18522  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18523  hardcode_into_libs=yes
18524  ;;
18525
18526# No shared lib support for Linux oldld, aout, or coff.
18527linux*oldld* | linux*aout* | linux*coff*)
18528  dynamic_linker=no
18529  ;;
18530
18531# This must be Linux ELF.
18532linux* | k*bsd*-gnu)
18533  version_type=linux
18534  need_lib_prefix=no
18535  need_version=no
18536  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18537  soname_spec='${libname}${release}${shared_ext}$major'
18538  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18539  shlibpath_var=LD_LIBRARY_PATH
18540  shlibpath_overrides_runpath=no
18541  # This implies no fast_install, which is unacceptable.
18542  # Some rework will be needed to allow for fast_install
18543  # before this can be enabled.
18544  hardcode_into_libs=yes
18545
18546  # Append ld.so.conf contents to the search path
18547  if test -f /etc/ld.so.conf; then
18548    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/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18549    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18550  fi
18551
18552  # We used to test for /lib/ld.so.1 and disable shared libraries on
18553  # powerpc, because MkLinux only supported shared libraries with the
18554  # GNU dynamic linker.  Since this was broken with cross compilers,
18555  # most powerpc-linux boxes support dynamic linking these days and
18556  # people can always --disable-shared, the test was removed, and we
18557  # assume the GNU/Linux dynamic linker is in use.
18558  dynamic_linker='GNU/Linux ld.so'
18559  ;;
18560
18561netbsdelf*-gnu)
18562  version_type=linux
18563  need_lib_prefix=no
18564  need_version=no
18565  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18566  soname_spec='${libname}${release}${shared_ext}$major'
18567  shlibpath_var=LD_LIBRARY_PATH
18568  shlibpath_overrides_runpath=no
18569  hardcode_into_libs=yes
18570  dynamic_linker='NetBSD ld.elf_so'
18571  ;;
18572
18573netbsd*)
18574  version_type=sunos
18575  need_lib_prefix=no
18576  need_version=no
18577  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18578    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18579    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18580    dynamic_linker='NetBSD (a.out) ld.so'
18581  else
18582    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18583    soname_spec='${libname}${release}${shared_ext}$major'
18584    dynamic_linker='NetBSD ld.elf_so'
18585  fi
18586  shlibpath_var=LD_LIBRARY_PATH
18587  shlibpath_overrides_runpath=yes
18588  hardcode_into_libs=yes
18589  ;;
18590
18591newsos6)
18592  version_type=linux
18593  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18594  shlibpath_var=LD_LIBRARY_PATH
18595  shlibpath_overrides_runpath=yes
18596  ;;
18597
18598nto-qnx*)
18599  version_type=linux
18600  need_lib_prefix=no
18601  need_version=no
18602  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18603  soname_spec='${libname}${release}${shared_ext}$major'
18604  shlibpath_var=LD_LIBRARY_PATH
18605  shlibpath_overrides_runpath=yes
18606  ;;
18607
18608openbsd*)
18609  version_type=sunos
18610  sys_lib_dlsearch_path_spec="/usr/lib"
18611  need_lib_prefix=no
18612  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18613  case $host_os in
18614    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18615    *)                         need_version=no  ;;
18616  esac
18617  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18618  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18619  shlibpath_var=LD_LIBRARY_PATH
18620  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18621    case $host_os in
18622      openbsd2.[89] | openbsd2.[89].*)
18623	shlibpath_overrides_runpath=no
18624	;;
18625      *)
18626	shlibpath_overrides_runpath=yes
18627	;;
18628      esac
18629  else
18630    shlibpath_overrides_runpath=yes
18631  fi
18632  ;;
18633
18634os2*)
18635  libname_spec='$name'
18636  shrext_cmds=".dll"
18637  need_lib_prefix=no
18638  library_names_spec='$libname${shared_ext} $libname.a'
18639  dynamic_linker='OS/2 ld.exe'
18640  shlibpath_var=LIBPATH
18641  ;;
18642
18643osf3* | osf4* | osf5*)
18644  version_type=osf
18645  need_lib_prefix=no
18646  need_version=no
18647  soname_spec='${libname}${release}${shared_ext}$major'
18648  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18649  shlibpath_var=LD_LIBRARY_PATH
18650  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18651  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18652  ;;
18653
18654rdos*)
18655  dynamic_linker=no
18656  ;;
18657
18658solaris*)
18659  version_type=linux
18660  need_lib_prefix=no
18661  need_version=no
18662  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18663  soname_spec='${libname}${release}${shared_ext}$major'
18664  shlibpath_var=LD_LIBRARY_PATH
18665  shlibpath_overrides_runpath=yes
18666  hardcode_into_libs=yes
18667  # ldd complains unless libraries are executable
18668  postinstall_cmds='chmod +x $lib'
18669  ;;
18670
18671sunos4*)
18672  version_type=sunos
18673  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18674  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18675  shlibpath_var=LD_LIBRARY_PATH
18676  shlibpath_overrides_runpath=yes
18677  if test "$with_gnu_ld" = yes; then
18678    need_lib_prefix=no
18679  fi
18680  need_version=yes
18681  ;;
18682
18683sysv4 | sysv4.3*)
18684  version_type=linux
18685  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18686  soname_spec='${libname}${release}${shared_ext}$major'
18687  shlibpath_var=LD_LIBRARY_PATH
18688  case $host_vendor in
18689    sni)
18690      shlibpath_overrides_runpath=no
18691      need_lib_prefix=no
18692      export_dynamic_flag_spec='${wl}-Blargedynsym'
18693      runpath_var=LD_RUN_PATH
18694      ;;
18695    siemens)
18696      need_lib_prefix=no
18697      ;;
18698    motorola)
18699      need_lib_prefix=no
18700      need_version=no
18701      shlibpath_overrides_runpath=no
18702      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18703      ;;
18704  esac
18705  ;;
18706
18707sysv4*MP*)
18708  if test -d /usr/nec ;then
18709    version_type=linux
18710    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18711    soname_spec='$libname${shared_ext}.$major'
18712    shlibpath_var=LD_LIBRARY_PATH
18713  fi
18714  ;;
18715
18716sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18717  version_type=freebsd-elf
18718  need_lib_prefix=no
18719  need_version=no
18720  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18721  soname_spec='${libname}${release}${shared_ext}$major'
18722  shlibpath_var=LD_LIBRARY_PATH
18723  hardcode_into_libs=yes
18724  if test "$with_gnu_ld" = yes; then
18725    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18726    shlibpath_overrides_runpath=no
18727  else
18728    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18729    shlibpath_overrides_runpath=yes
18730    case $host_os in
18731      sco3.2v5*)
18732        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18733	;;
18734    esac
18735  fi
18736  sys_lib_dlsearch_path_spec='/usr/lib'
18737  ;;
18738
18739uts4*)
18740  version_type=linux
18741  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18742  soname_spec='${libname}${release}${shared_ext}$major'
18743  shlibpath_var=LD_LIBRARY_PATH
18744  ;;
18745
18746*)
18747  dynamic_linker=no
18748  ;;
18749esac
18750{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18751echo "${ECHO_T}$dynamic_linker" >&6; }
18752test "$dynamic_linker" = no && can_build_shared=no
18753
18754if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18755  echo $ECHO_N "(cached) $ECHO_C" >&6
18756else
18757  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18758fi
18759
18760sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18761if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18762  echo $ECHO_N "(cached) $ECHO_C" >&6
18763else
18764  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18765fi
18766
18767sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18768
18769variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18770if test "$GCC" = yes; then
18771  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18772fi
18773
18774{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18775echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18776hardcode_action_GCJ=
18777if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18778   test -n "$runpath_var_GCJ" || \
18779   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18780
18781  # We can hardcode non-existant directories.
18782  if test "$hardcode_direct_GCJ" != no &&
18783     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18784     # have to relink, otherwise we might link with an installed library
18785     # when we should be linking with a yet-to-be-installed one
18786     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18787     test "$hardcode_minus_L_GCJ" != no; then
18788    # Linking always hardcodes the temporary library directory.
18789    hardcode_action_GCJ=relink
18790  else
18791    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18792    hardcode_action_GCJ=immediate
18793  fi
18794else
18795  # We cannot hardcode anything, or else we can only hardcode existing
18796  # directories.
18797  hardcode_action_GCJ=unsupported
18798fi
18799{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18800echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18801
18802if test "$hardcode_action_GCJ" = relink; then
18803  # Fast installation is not supported
18804  enable_fast_install=no
18805elif test "$shlibpath_overrides_runpath" = yes ||
18806     test "$enable_shared" = no; then
18807  # Fast installation is not necessary
18808  enable_fast_install=needless
18809fi
18810
18811
18812# The else clause should only fire when bootstrapping the
18813# libtool distribution, otherwise you forgot to ship ltmain.sh
18814# with your package, and you will get complaints that there are
18815# no rules to generate ltmain.sh.
18816if test -f "$ltmain"; then
18817  # See if we are running on zsh, and set the options which allow our commands through
18818  # without removal of \ escapes.
18819  if test -n "${ZSH_VERSION+set}" ; then
18820    setopt NO_GLOB_SUBST
18821  fi
18822  # Now quote all the things that may contain metacharacters while being
18823  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18824  # variables and quote the copies for generation of the libtool script.
18825  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18826    SED SHELL STRIP \
18827    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18828    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18829    deplibs_check_method reload_flag reload_cmds need_locks \
18830    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18831    lt_cv_sys_global_symbol_to_c_name_address \
18832    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18833    old_postinstall_cmds old_postuninstall_cmds \
18834    compiler_GCJ \
18835    CC_GCJ \
18836    LD_GCJ \
18837    lt_prog_compiler_wl_GCJ \
18838    lt_prog_compiler_pic_GCJ \
18839    lt_prog_compiler_static_GCJ \
18840    lt_prog_compiler_no_builtin_flag_GCJ \
18841    export_dynamic_flag_spec_GCJ \
18842    thread_safe_flag_spec_GCJ \
18843    whole_archive_flag_spec_GCJ \
18844    enable_shared_with_static_runtimes_GCJ \
18845    old_archive_cmds_GCJ \
18846    old_archive_from_new_cmds_GCJ \
18847    predep_objects_GCJ \
18848    postdep_objects_GCJ \
18849    predeps_GCJ \
18850    postdeps_GCJ \
18851    compiler_lib_search_path_GCJ \
18852    compiler_lib_search_dirs_GCJ \
18853    archive_cmds_GCJ \
18854    archive_expsym_cmds_GCJ \
18855    postinstall_cmds_GCJ \
18856    postuninstall_cmds_GCJ \
18857    old_archive_from_expsyms_cmds_GCJ \
18858    allow_undefined_flag_GCJ \
18859    no_undefined_flag_GCJ \
18860    export_symbols_cmds_GCJ \
18861    hardcode_libdir_flag_spec_GCJ \
18862    hardcode_libdir_flag_spec_ld_GCJ \
18863    hardcode_libdir_separator_GCJ \
18864    hardcode_automatic_GCJ \
18865    module_cmds_GCJ \
18866    module_expsym_cmds_GCJ \
18867    lt_cv_prog_compiler_c_o_GCJ \
18868    fix_srcfile_path_GCJ \
18869    exclude_expsyms_GCJ \
18870    include_expsyms_GCJ; do
18871
18872    case $var in
18873    old_archive_cmds_GCJ | \
18874    old_archive_from_new_cmds_GCJ | \
18875    archive_cmds_GCJ | \
18876    archive_expsym_cmds_GCJ | \
18877    module_cmds_GCJ | \
18878    module_expsym_cmds_GCJ | \
18879    old_archive_from_expsyms_cmds_GCJ | \
18880    export_symbols_cmds_GCJ | \
18881    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18882    postinstall_cmds | postuninstall_cmds | \
18883    old_postinstall_cmds | old_postuninstall_cmds | \
18884    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18885      # Double-quote double-evaled strings.
18886      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18887      ;;
18888    *)
18889      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18890      ;;
18891    esac
18892  done
18893
18894  case $lt_echo in
18895  *'\$0 --fallback-echo"')
18896    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18897    ;;
18898  esac
18899
18900cfgfile="$ofile"
18901
18902  cat <<__EOF__ >> "$cfgfile"
18903# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18904
18905# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18906
18907# Shell to use when invoking shell scripts.
18908SHELL=$lt_SHELL
18909
18910# Whether or not to build shared libraries.
18911build_libtool_libs=$enable_shared
18912
18913# Whether or not to build static libraries.
18914build_old_libs=$enable_static
18915
18916# Whether or not to add -lc for building shared libraries.
18917build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18918
18919# Whether or not to disallow shared libs when runtime libs are static
18920allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18921
18922# Whether or not to optimize for fast installation.
18923fast_install=$enable_fast_install
18924
18925# The host system.
18926host_alias=$host_alias
18927host=$host
18928host_os=$host_os
18929
18930# The build system.
18931build_alias=$build_alias
18932build=$build
18933build_os=$build_os
18934
18935# An echo program that does not interpret backslashes.
18936echo=$lt_echo
18937
18938# The archiver.
18939AR=$lt_AR
18940AR_FLAGS=$lt_AR_FLAGS
18941
18942# A C compiler.
18943LTCC=$lt_LTCC
18944
18945# LTCC compiler flags.
18946LTCFLAGS=$lt_LTCFLAGS
18947
18948# A language-specific compiler.
18949CC=$lt_compiler_GCJ
18950
18951# Is the compiler the GNU C compiler?
18952with_gcc=$GCC_GCJ
18953
18954# An ERE matcher.
18955EGREP=$lt_EGREP
18956
18957# The linker used to build libraries.
18958LD=$lt_LD_GCJ
18959
18960# Whether we need hard or soft links.
18961LN_S=$lt_LN_S
18962
18963# A BSD-compatible nm program.
18964NM=$lt_NM
18965
18966# A symbol stripping program
18967STRIP=$lt_STRIP
18968
18969# Used to examine libraries when file_magic_cmd begins "file"
18970MAGIC_CMD=$MAGIC_CMD
18971
18972# Used on cygwin: DLL creation program.
18973DLLTOOL="$DLLTOOL"
18974
18975# Used on cygwin: object dumper.
18976OBJDUMP="$OBJDUMP"
18977
18978# Used on cygwin: assembler.
18979AS="$AS"
18980
18981# The name of the directory that contains temporary libtool files.
18982objdir=$objdir
18983
18984# How to create reloadable object files.
18985reload_flag=$lt_reload_flag
18986reload_cmds=$lt_reload_cmds
18987
18988# How to pass a linker flag through the compiler.
18989wl=$lt_lt_prog_compiler_wl_GCJ
18990
18991# Object file suffix (normally "o").
18992objext="$ac_objext"
18993
18994# Old archive suffix (normally "a").
18995libext="$libext"
18996
18997# Shared library suffix (normally ".so").
18998shrext_cmds='$shrext_cmds'
18999
19000# Executable file suffix (normally "").
19001exeext="$exeext"
19002
19003# Additional compiler flags for building library objects.
19004pic_flag=$lt_lt_prog_compiler_pic_GCJ
19005pic_mode=$pic_mode
19006
19007# What is the maximum length of a command?
19008max_cmd_len=$lt_cv_sys_max_cmd_len
19009
19010# Does compiler simultaneously support -c and -o options?
19011compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19012
19013# Must we lock files when doing compilation?
19014need_locks=$lt_need_locks
19015
19016# Do we need the lib prefix for modules?
19017need_lib_prefix=$need_lib_prefix
19018
19019# Do we need a version for libraries?
19020need_version=$need_version
19021
19022# Whether dlopen is supported.
19023dlopen_support=$enable_dlopen
19024
19025# Whether dlopen of programs is supported.
19026dlopen_self=$enable_dlopen_self
19027
19028# Whether dlopen of statically linked programs is supported.
19029dlopen_self_static=$enable_dlopen_self_static
19030
19031# Compiler flag to prevent dynamic linking.
19032link_static_flag=$lt_lt_prog_compiler_static_GCJ
19033
19034# Compiler flag to turn off builtin functions.
19035no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19036
19037# Compiler flag to allow reflexive dlopens.
19038export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19039
19040# Compiler flag to generate shared objects directly from archives.
19041whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19042
19043# Compiler flag to generate thread-safe objects.
19044thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19045
19046# Library versioning type.
19047version_type=$version_type
19048
19049# Format of library name prefix.
19050libname_spec=$lt_libname_spec
19051
19052# List of archive names.  First name is the real one, the rest are links.
19053# The last name is the one that the linker finds with -lNAME.
19054library_names_spec=$lt_library_names_spec
19055
19056# The coded name of the library, if different from the real name.
19057soname_spec=$lt_soname_spec
19058
19059# Commands used to build and install an old-style archive.
19060RANLIB=$lt_RANLIB
19061old_archive_cmds=$lt_old_archive_cmds_GCJ
19062old_postinstall_cmds=$lt_old_postinstall_cmds
19063old_postuninstall_cmds=$lt_old_postuninstall_cmds
19064
19065# Create an old-style archive from a shared archive.
19066old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19067
19068# Create a temporary old-style archive to link instead of a shared archive.
19069old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19070
19071# Commands used to build and install a shared archive.
19072archive_cmds=$lt_archive_cmds_GCJ
19073archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19074postinstall_cmds=$lt_postinstall_cmds
19075postuninstall_cmds=$lt_postuninstall_cmds
19076
19077# Commands used to build a loadable module (assumed same as above if empty)
19078module_cmds=$lt_module_cmds_GCJ
19079module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19080
19081# Commands to strip libraries.
19082old_striplib=$lt_old_striplib
19083striplib=$lt_striplib
19084
19085# Dependencies to place before the objects being linked to create a
19086# shared library.
19087predep_objects=$lt_predep_objects_GCJ
19088
19089# Dependencies to place after the objects being linked to create a
19090# shared library.
19091postdep_objects=$lt_postdep_objects_GCJ
19092
19093# Dependencies to place before the objects being linked to create a
19094# shared library.
19095predeps=$lt_predeps_GCJ
19096
19097# Dependencies to place after the objects being linked to create a
19098# shared library.
19099postdeps=$lt_postdeps_GCJ
19100
19101# The directories searched by this compiler when creating a shared
19102# library
19103compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19104
19105# The library search path used internally by the compiler when linking
19106# a shared library.
19107compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19108
19109# Method to check whether dependent libraries are shared objects.
19110deplibs_check_method=$lt_deplibs_check_method
19111
19112# Command to use when deplibs_check_method == file_magic.
19113file_magic_cmd=$lt_file_magic_cmd
19114
19115# Flag that allows shared libraries with undefined symbols to be built.
19116allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19117
19118# Flag that forces no undefined symbols.
19119no_undefined_flag=$lt_no_undefined_flag_GCJ
19120
19121# Commands used to finish a libtool library installation in a directory.
19122finish_cmds=$lt_finish_cmds
19123
19124# Same as above, but a single script fragment to be evaled but not shown.
19125finish_eval=$lt_finish_eval
19126
19127# Take the output of nm and produce a listing of raw symbols and C names.
19128global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19129
19130# Transform the output of nm in a proper C declaration
19131global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19132
19133# Transform the output of nm in a C name address pair
19134global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19135
19136# This is the shared library runtime path variable.
19137runpath_var=$runpath_var
19138
19139# This is the shared library path variable.
19140shlibpath_var=$shlibpath_var
19141
19142# Is shlibpath searched before the hard-coded library search path?
19143shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19144
19145# How to hardcode a shared library path into an executable.
19146hardcode_action=$hardcode_action_GCJ
19147
19148# Whether we should hardcode library paths into libraries.
19149hardcode_into_libs=$hardcode_into_libs
19150
19151# Flag to hardcode \$libdir into a binary during linking.
19152# This must work even if \$libdir does not exist.
19153hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19154
19155# If ld is used when linking, flag to hardcode \$libdir into
19156# a binary during linking. This must work even if \$libdir does
19157# not exist.
19158hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19159
19160# Whether we need a single -rpath flag with a separated argument.
19161hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19162
19163# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19164# resulting binary.
19165hardcode_direct=$hardcode_direct_GCJ
19166
19167# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19168# resulting binary.
19169hardcode_minus_L=$hardcode_minus_L_GCJ
19170
19171# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19172# the resulting binary.
19173hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19174
19175# Set to yes if building a shared library automatically hardcodes DIR into the library
19176# and all subsequent libraries and executables linked against it.
19177hardcode_automatic=$hardcode_automatic_GCJ
19178
19179# Variables whose values should be saved in libtool wrapper scripts and
19180# restored at relink time.
19181variables_saved_for_relink="$variables_saved_for_relink"
19182
19183# Whether libtool must link a program against all its dependency libraries.
19184link_all_deplibs=$link_all_deplibs_GCJ
19185
19186# Compile-time system search path for libraries
19187sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19188
19189# Run-time system search path for libraries
19190sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19191
19192# Fix the shell variable \$srcfile for the compiler.
19193fix_srcfile_path=$lt_fix_srcfile_path
19194
19195# Set to yes if exported symbols are required.
19196always_export_symbols=$always_export_symbols_GCJ
19197
19198# The commands to list exported symbols.
19199export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19200
19201# The commands to extract the exported symbol list from a shared archive.
19202extract_expsyms_cmds=$lt_extract_expsyms_cmds
19203
19204# Symbols that should not be listed in the preloaded symbols.
19205exclude_expsyms=$lt_exclude_expsyms_GCJ
19206
19207# Symbols that must always be exported.
19208include_expsyms=$lt_include_expsyms_GCJ
19209
19210# ### END LIBTOOL TAG CONFIG: $tagname
19211
19212__EOF__
19213
19214
19215else
19216  # If there is no Makefile yet, we rely on a make rule to execute
19217  # `config.status --recheck' to rerun these tests and create the
19218  # libtool script then.
19219  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19220  if test -f "$ltmain_in"; then
19221    test -f Makefile && make "$ltmain"
19222  fi
19223fi
19224
19225
19226ac_ext=c
19227ac_cpp='$CPP $CPPFLAGS'
19228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19230ac_compiler_gnu=$ac_cv_c_compiler_gnu
19231
19232CC="$lt_save_CC"
19233
19234	else
19235	  tagname=""
19236	fi
19237	;;
19238
19239      RC)
19240
19241
19242# Source file extension for RC test sources.
19243ac_ext=rc
19244
19245# Object file extension for compiled RC test sources.
19246objext=o
19247objext_RC=$objext
19248
19249# Code to be used in simple compile tests
19250lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19251
19252# Code to be used in simple link tests
19253lt_simple_link_test_code="$lt_simple_compile_test_code"
19254
19255# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19256
19257# If no C compiler was specified, use CC.
19258LTCC=${LTCC-"$CC"}
19259
19260# If no C compiler flags were specified, use CFLAGS.
19261LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19262
19263# Allow CC to be a program name with arguments.
19264compiler=$CC
19265
19266
19267# save warnings/boilerplate of simple test code
19268ac_outfile=conftest.$ac_objext
19269echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19270eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19271_lt_compiler_boilerplate=`cat conftest.err`
19272$rm conftest*
19273
19274ac_outfile=conftest.$ac_objext
19275echo "$lt_simple_link_test_code" >conftest.$ac_ext
19276eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19277_lt_linker_boilerplate=`cat conftest.err`
19278$rm -r conftest*
19279
19280
19281# Allow CC to be a program name with arguments.
19282lt_save_CC="$CC"
19283CC=${RC-"windres"}
19284compiler=$CC
19285compiler_RC=$CC
19286for cc_temp in $compiler""; do
19287  case $cc_temp in
19288    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19289    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19290    \-*) ;;
19291    *) break;;
19292  esac
19293done
19294cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19295
19296lt_cv_prog_compiler_c_o_RC=yes
19297
19298# The else clause should only fire when bootstrapping the
19299# libtool distribution, otherwise you forgot to ship ltmain.sh
19300# with your package, and you will get complaints that there are
19301# no rules to generate ltmain.sh.
19302if test -f "$ltmain"; then
19303  # See if we are running on zsh, and set the options which allow our commands through
19304  # without removal of \ escapes.
19305  if test -n "${ZSH_VERSION+set}" ; then
19306    setopt NO_GLOB_SUBST
19307  fi
19308  # Now quote all the things that may contain metacharacters while being
19309  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19310  # variables and quote the copies for generation of the libtool script.
19311  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19312    SED SHELL STRIP \
19313    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19314    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19315    deplibs_check_method reload_flag reload_cmds need_locks \
19316    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19317    lt_cv_sys_global_symbol_to_c_name_address \
19318    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19319    old_postinstall_cmds old_postuninstall_cmds \
19320    compiler_RC \
19321    CC_RC \
19322    LD_RC \
19323    lt_prog_compiler_wl_RC \
19324    lt_prog_compiler_pic_RC \
19325    lt_prog_compiler_static_RC \
19326    lt_prog_compiler_no_builtin_flag_RC \
19327    export_dynamic_flag_spec_RC \
19328    thread_safe_flag_spec_RC \
19329    whole_archive_flag_spec_RC \
19330    enable_shared_with_static_runtimes_RC \
19331    old_archive_cmds_RC \
19332    old_archive_from_new_cmds_RC \
19333    predep_objects_RC \
19334    postdep_objects_RC \
19335    predeps_RC \
19336    postdeps_RC \
19337    compiler_lib_search_path_RC \
19338    compiler_lib_search_dirs_RC \
19339    archive_cmds_RC \
19340    archive_expsym_cmds_RC \
19341    postinstall_cmds_RC \
19342    postuninstall_cmds_RC \
19343    old_archive_from_expsyms_cmds_RC \
19344    allow_undefined_flag_RC \
19345    no_undefined_flag_RC \
19346    export_symbols_cmds_RC \
19347    hardcode_libdir_flag_spec_RC \
19348    hardcode_libdir_flag_spec_ld_RC \
19349    hardcode_libdir_separator_RC \
19350    hardcode_automatic_RC \
19351    module_cmds_RC \
19352    module_expsym_cmds_RC \
19353    lt_cv_prog_compiler_c_o_RC \
19354    fix_srcfile_path_RC \
19355    exclude_expsyms_RC \
19356    include_expsyms_RC; do
19357
19358    case $var in
19359    old_archive_cmds_RC | \
19360    old_archive_from_new_cmds_RC | \
19361    archive_cmds_RC | \
19362    archive_expsym_cmds_RC | \
19363    module_cmds_RC | \
19364    module_expsym_cmds_RC | \
19365    old_archive_from_expsyms_cmds_RC | \
19366    export_symbols_cmds_RC | \
19367    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19368    postinstall_cmds | postuninstall_cmds | \
19369    old_postinstall_cmds | old_postuninstall_cmds | \
19370    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19371      # Double-quote double-evaled strings.
19372      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19373      ;;
19374    *)
19375      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19376      ;;
19377    esac
19378  done
19379
19380  case $lt_echo in
19381  *'\$0 --fallback-echo"')
19382    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19383    ;;
19384  esac
19385
19386cfgfile="$ofile"
19387
19388  cat <<__EOF__ >> "$cfgfile"
19389# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19390
19391# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19392
19393# Shell to use when invoking shell scripts.
19394SHELL=$lt_SHELL
19395
19396# Whether or not to build shared libraries.
19397build_libtool_libs=$enable_shared
19398
19399# Whether or not to build static libraries.
19400build_old_libs=$enable_static
19401
19402# Whether or not to add -lc for building shared libraries.
19403build_libtool_need_lc=$archive_cmds_need_lc_RC
19404
19405# Whether or not to disallow shared libs when runtime libs are static
19406allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19407
19408# Whether or not to optimize for fast installation.
19409fast_install=$enable_fast_install
19410
19411# The host system.
19412host_alias=$host_alias
19413host=$host
19414host_os=$host_os
19415
19416# The build system.
19417build_alias=$build_alias
19418build=$build
19419build_os=$build_os
19420
19421# An echo program that does not interpret backslashes.
19422echo=$lt_echo
19423
19424# The archiver.
19425AR=$lt_AR
19426AR_FLAGS=$lt_AR_FLAGS
19427
19428# A C compiler.
19429LTCC=$lt_LTCC
19430
19431# LTCC compiler flags.
19432LTCFLAGS=$lt_LTCFLAGS
19433
19434# A language-specific compiler.
19435CC=$lt_compiler_RC
19436
19437# Is the compiler the GNU C compiler?
19438with_gcc=$GCC_RC
19439
19440# An ERE matcher.
19441EGREP=$lt_EGREP
19442
19443# The linker used to build libraries.
19444LD=$lt_LD_RC
19445
19446# Whether we need hard or soft links.
19447LN_S=$lt_LN_S
19448
19449# A BSD-compatible nm program.
19450NM=$lt_NM
19451
19452# A symbol stripping program
19453STRIP=$lt_STRIP
19454
19455# Used to examine libraries when file_magic_cmd begins "file"
19456MAGIC_CMD=$MAGIC_CMD
19457
19458# Used on cygwin: DLL creation program.
19459DLLTOOL="$DLLTOOL"
19460
19461# Used on cygwin: object dumper.
19462OBJDUMP="$OBJDUMP"
19463
19464# Used on cygwin: assembler.
19465AS="$AS"
19466
19467# The name of the directory that contains temporary libtool files.
19468objdir=$objdir
19469
19470# How to create reloadable object files.
19471reload_flag=$lt_reload_flag
19472reload_cmds=$lt_reload_cmds
19473
19474# How to pass a linker flag through the compiler.
19475wl=$lt_lt_prog_compiler_wl_RC
19476
19477# Object file suffix (normally "o").
19478objext="$ac_objext"
19479
19480# Old archive suffix (normally "a").
19481libext="$libext"
19482
19483# Shared library suffix (normally ".so").
19484shrext_cmds='$shrext_cmds'
19485
19486# Executable file suffix (normally "").
19487exeext="$exeext"
19488
19489# Additional compiler flags for building library objects.
19490pic_flag=$lt_lt_prog_compiler_pic_RC
19491pic_mode=$pic_mode
19492
19493# What is the maximum length of a command?
19494max_cmd_len=$lt_cv_sys_max_cmd_len
19495
19496# Does compiler simultaneously support -c and -o options?
19497compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19498
19499# Must we lock files when doing compilation?
19500need_locks=$lt_need_locks
19501
19502# Do we need the lib prefix for modules?
19503need_lib_prefix=$need_lib_prefix
19504
19505# Do we need a version for libraries?
19506need_version=$need_version
19507
19508# Whether dlopen is supported.
19509dlopen_support=$enable_dlopen
19510
19511# Whether dlopen of programs is supported.
19512dlopen_self=$enable_dlopen_self
19513
19514# Whether dlopen of statically linked programs is supported.
19515dlopen_self_static=$enable_dlopen_self_static
19516
19517# Compiler flag to prevent dynamic linking.
19518link_static_flag=$lt_lt_prog_compiler_static_RC
19519
19520# Compiler flag to turn off builtin functions.
19521no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19522
19523# Compiler flag to allow reflexive dlopens.
19524export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19525
19526# Compiler flag to generate shared objects directly from archives.
19527whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19528
19529# Compiler flag to generate thread-safe objects.
19530thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19531
19532# Library versioning type.
19533version_type=$version_type
19534
19535# Format of library name prefix.
19536libname_spec=$lt_libname_spec
19537
19538# List of archive names.  First name is the real one, the rest are links.
19539# The last name is the one that the linker finds with -lNAME.
19540library_names_spec=$lt_library_names_spec
19541
19542# The coded name of the library, if different from the real name.
19543soname_spec=$lt_soname_spec
19544
19545# Commands used to build and install an old-style archive.
19546RANLIB=$lt_RANLIB
19547old_archive_cmds=$lt_old_archive_cmds_RC
19548old_postinstall_cmds=$lt_old_postinstall_cmds
19549old_postuninstall_cmds=$lt_old_postuninstall_cmds
19550
19551# Create an old-style archive from a shared archive.
19552old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19553
19554# Create a temporary old-style archive to link instead of a shared archive.
19555old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19556
19557# Commands used to build and install a shared archive.
19558archive_cmds=$lt_archive_cmds_RC
19559archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19560postinstall_cmds=$lt_postinstall_cmds
19561postuninstall_cmds=$lt_postuninstall_cmds
19562
19563# Commands used to build a loadable module (assumed same as above if empty)
19564module_cmds=$lt_module_cmds_RC
19565module_expsym_cmds=$lt_module_expsym_cmds_RC
19566
19567# Commands to strip libraries.
19568old_striplib=$lt_old_striplib
19569striplib=$lt_striplib
19570
19571# Dependencies to place before the objects being linked to create a
19572# shared library.
19573predep_objects=$lt_predep_objects_RC
19574
19575# Dependencies to place after the objects being linked to create a
19576# shared library.
19577postdep_objects=$lt_postdep_objects_RC
19578
19579# Dependencies to place before the objects being linked to create a
19580# shared library.
19581predeps=$lt_predeps_RC
19582
19583# Dependencies to place after the objects being linked to create a
19584# shared library.
19585postdeps=$lt_postdeps_RC
19586
19587# The directories searched by this compiler when creating a shared
19588# library
19589compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19590
19591# The library search path used internally by the compiler when linking
19592# a shared library.
19593compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19594
19595# Method to check whether dependent libraries are shared objects.
19596deplibs_check_method=$lt_deplibs_check_method
19597
19598# Command to use when deplibs_check_method == file_magic.
19599file_magic_cmd=$lt_file_magic_cmd
19600
19601# Flag that allows shared libraries with undefined symbols to be built.
19602allow_undefined_flag=$lt_allow_undefined_flag_RC
19603
19604# Flag that forces no undefined symbols.
19605no_undefined_flag=$lt_no_undefined_flag_RC
19606
19607# Commands used to finish a libtool library installation in a directory.
19608finish_cmds=$lt_finish_cmds
19609
19610# Same as above, but a single script fragment to be evaled but not shown.
19611finish_eval=$lt_finish_eval
19612
19613# Take the output of nm and produce a listing of raw symbols and C names.
19614global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19615
19616# Transform the output of nm in a proper C declaration
19617global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19618
19619# Transform the output of nm in a C name address pair
19620global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19621
19622# This is the shared library runtime path variable.
19623runpath_var=$runpath_var
19624
19625# This is the shared library path variable.
19626shlibpath_var=$shlibpath_var
19627
19628# Is shlibpath searched before the hard-coded library search path?
19629shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19630
19631# How to hardcode a shared library path into an executable.
19632hardcode_action=$hardcode_action_RC
19633
19634# Whether we should hardcode library paths into libraries.
19635hardcode_into_libs=$hardcode_into_libs
19636
19637# Flag to hardcode \$libdir into a binary during linking.
19638# This must work even if \$libdir does not exist.
19639hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19640
19641# If ld is used when linking, flag to hardcode \$libdir into
19642# a binary during linking. This must work even if \$libdir does
19643# not exist.
19644hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19645
19646# Whether we need a single -rpath flag with a separated argument.
19647hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19648
19649# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19650# resulting binary.
19651hardcode_direct=$hardcode_direct_RC
19652
19653# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19654# resulting binary.
19655hardcode_minus_L=$hardcode_minus_L_RC
19656
19657# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19658# the resulting binary.
19659hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19660
19661# Set to yes if building a shared library automatically hardcodes DIR into the library
19662# and all subsequent libraries and executables linked against it.
19663hardcode_automatic=$hardcode_automatic_RC
19664
19665# Variables whose values should be saved in libtool wrapper scripts and
19666# restored at relink time.
19667variables_saved_for_relink="$variables_saved_for_relink"
19668
19669# Whether libtool must link a program against all its dependency libraries.
19670link_all_deplibs=$link_all_deplibs_RC
19671
19672# Compile-time system search path for libraries
19673sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19674
19675# Run-time system search path for libraries
19676sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19677
19678# Fix the shell variable \$srcfile for the compiler.
19679fix_srcfile_path=$lt_fix_srcfile_path
19680
19681# Set to yes if exported symbols are required.
19682always_export_symbols=$always_export_symbols_RC
19683
19684# The commands to list exported symbols.
19685export_symbols_cmds=$lt_export_symbols_cmds_RC
19686
19687# The commands to extract the exported symbol list from a shared archive.
19688extract_expsyms_cmds=$lt_extract_expsyms_cmds
19689
19690# Symbols that should not be listed in the preloaded symbols.
19691exclude_expsyms=$lt_exclude_expsyms_RC
19692
19693# Symbols that must always be exported.
19694include_expsyms=$lt_include_expsyms_RC
19695
19696# ### END LIBTOOL TAG CONFIG: $tagname
19697
19698__EOF__
19699
19700
19701else
19702  # If there is no Makefile yet, we rely on a make rule to execute
19703  # `config.status --recheck' to rerun these tests and create the
19704  # libtool script then.
19705  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19706  if test -f "$ltmain_in"; then
19707    test -f Makefile && make "$ltmain"
19708  fi
19709fi
19710
19711
19712ac_ext=c
19713ac_cpp='$CPP $CPPFLAGS'
19714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19716ac_compiler_gnu=$ac_cv_c_compiler_gnu
19717
19718CC="$lt_save_CC"
19719
19720	;;
19721
19722      *)
19723	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19724echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19725   { (exit 1); exit 1; }; }
19726	;;
19727      esac
19728
19729      # Append the new tag name to the list of available tags.
19730      if test -n "$tagname" ; then
19731      available_tags="$available_tags $tagname"
19732    fi
19733    fi
19734  done
19735  IFS="$lt_save_ifs"
19736
19737  # Now substitute the updated list of available tags.
19738  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19739    mv "${ofile}T" "$ofile"
19740    chmod +x "$ofile"
19741  else
19742    rm -f "${ofile}T"
19743    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19744echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19745   { (exit 1); exit 1; }; }
19746  fi
19747fi
19748
19749
19750
19751# This can be used to rebuild libtool when needed
19752LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19753
19754# Always use our own libtool.
19755LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19756
19757# Prevent multiple expansion
19758
19759
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780# Check whether some low-level functions/files are available
19781{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19782echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19783if test "${ac_cv_header_stdc+set}" = set; then
19784  echo $ECHO_N "(cached) $ECHO_C" >&6
19785else
19786  cat >conftest.$ac_ext <<_ACEOF
19787/* confdefs.h.  */
19788_ACEOF
19789cat confdefs.h >>conftest.$ac_ext
19790cat >>conftest.$ac_ext <<_ACEOF
19791/* end confdefs.h.  */
19792#include <stdlib.h>
19793#include <stdarg.h>
19794#include <string.h>
19795#include <float.h>
19796
19797int
19798main ()
19799{
19800
19801  ;
19802  return 0;
19803}
19804_ACEOF
19805rm -f conftest.$ac_objext
19806if { (ac_try="$ac_compile"
19807case "(($ac_try" in
19808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19809  *) ac_try_echo=$ac_try;;
19810esac
19811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19812  (eval "$ac_compile") 2>conftest.er1
19813  ac_status=$?
19814  grep -v '^ *+' conftest.er1 >conftest.err
19815  rm -f conftest.er1
19816  cat conftest.err >&5
19817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818  (exit $ac_status); } && {
19819	 test -z "$ac_c_werror_flag" ||
19820	 test ! -s conftest.err
19821       } && test -s conftest.$ac_objext; then
19822  ac_cv_header_stdc=yes
19823else
19824  echo "$as_me: failed program was:" >&5
19825sed 's/^/| /' conftest.$ac_ext >&5
19826
19827	ac_cv_header_stdc=no
19828fi
19829
19830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19831
19832if test $ac_cv_header_stdc = yes; then
19833  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19834  cat >conftest.$ac_ext <<_ACEOF
19835/* confdefs.h.  */
19836_ACEOF
19837cat confdefs.h >>conftest.$ac_ext
19838cat >>conftest.$ac_ext <<_ACEOF
19839/* end confdefs.h.  */
19840#include <string.h>
19841
19842_ACEOF
19843if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19844  $EGREP "memchr" >/dev/null 2>&1; then
19845  :
19846else
19847  ac_cv_header_stdc=no
19848fi
19849rm -f conftest*
19850
19851fi
19852
19853if test $ac_cv_header_stdc = yes; then
19854  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19855  cat >conftest.$ac_ext <<_ACEOF
19856/* confdefs.h.  */
19857_ACEOF
19858cat confdefs.h >>conftest.$ac_ext
19859cat >>conftest.$ac_ext <<_ACEOF
19860/* end confdefs.h.  */
19861#include <stdlib.h>
19862
19863_ACEOF
19864if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19865  $EGREP "free" >/dev/null 2>&1; then
19866  :
19867else
19868  ac_cv_header_stdc=no
19869fi
19870rm -f conftest*
19871
19872fi
19873
19874if test $ac_cv_header_stdc = yes; then
19875  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19876  if test "$cross_compiling" = yes; then
19877  :
19878else
19879  cat >conftest.$ac_ext <<_ACEOF
19880/* confdefs.h.  */
19881_ACEOF
19882cat confdefs.h >>conftest.$ac_ext
19883cat >>conftest.$ac_ext <<_ACEOF
19884/* end confdefs.h.  */
19885#include <ctype.h>
19886#include <stdlib.h>
19887#if ((' ' & 0x0FF) == 0x020)
19888# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19889# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19890#else
19891# define ISLOWER(c) \
19892		   (('a' <= (c) && (c) <= 'i') \
19893		     || ('j' <= (c) && (c) <= 'r') \
19894		     || ('s' <= (c) && (c) <= 'z'))
19895# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19896#endif
19897
19898#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19899int
19900main ()
19901{
19902  int i;
19903  for (i = 0; i < 256; i++)
19904    if (XOR (islower (i), ISLOWER (i))
19905	|| toupper (i) != TOUPPER (i))
19906      return 2;
19907  return 0;
19908}
19909_ACEOF
19910rm -f conftest$ac_exeext
19911if { (ac_try="$ac_link"
19912case "(($ac_try" in
19913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19914  *) ac_try_echo=$ac_try;;
19915esac
19916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19917  (eval "$ac_link") 2>&5
19918  ac_status=$?
19919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19921  { (case "(($ac_try" in
19922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19923  *) ac_try_echo=$ac_try;;
19924esac
19925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19926  (eval "$ac_try") 2>&5
19927  ac_status=$?
19928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929  (exit $ac_status); }; }; then
19930  :
19931else
19932  echo "$as_me: program exited with status $ac_status" >&5
19933echo "$as_me: failed program was:" >&5
19934sed 's/^/| /' conftest.$ac_ext >&5
19935
19936( exit $ac_status )
19937ac_cv_header_stdc=no
19938fi
19939rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19940fi
19941
19942
19943fi
19944fi
19945{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19946echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19947if test $ac_cv_header_stdc = yes; then
19948
19949cat >>confdefs.h <<\_ACEOF
19950#define STDC_HEADERS 1
19951_ACEOF
19952
19953fi
19954
19955
19956# Built-in memcmp can be inefficient when gcc compiles for x86 processors.
19957# In those cases, use an alternative function instead of memcmp.
19958case $host_cpu in
19959  *86*)
19960    if test "$GCC" = "yes"; then
19961
19962cat >>confdefs.h <<\_ACEOF
19963#define VCDIFF_USE_BLOCK_COMPARE_WORDS 1
19964_ACEOF
19965
19966    fi
19967    ;;
19968esac
19969
19970
19971for ac_header in ext/rope
19972do
19973as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19974if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19975  { echo "$as_me:$LINENO: checking for $ac_header" >&5
19976echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19977if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19978  echo $ECHO_N "(cached) $ECHO_C" >&6
19979fi
19980ac_res=`eval echo '${'$as_ac_Header'}'`
19981	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19982echo "${ECHO_T}$ac_res" >&6; }
19983else
19984  # Is the header compilable?
19985{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19986echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19987cat >conftest.$ac_ext <<_ACEOF
19988/* confdefs.h.  */
19989_ACEOF
19990cat confdefs.h >>conftest.$ac_ext
19991cat >>conftest.$ac_ext <<_ACEOF
19992/* end confdefs.h.  */
19993$ac_includes_default
19994#include <$ac_header>
19995_ACEOF
19996rm -f conftest.$ac_objext
19997if { (ac_try="$ac_compile"
19998case "(($ac_try" in
19999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20000  *) ac_try_echo=$ac_try;;
20001esac
20002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20003  (eval "$ac_compile") 2>conftest.er1
20004  ac_status=$?
20005  grep -v '^ *+' conftest.er1 >conftest.err
20006  rm -f conftest.er1
20007  cat conftest.err >&5
20008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009  (exit $ac_status); } && {
20010	 test -z "$ac_c_werror_flag" ||
20011	 test ! -s conftest.err
20012       } && test -s conftest.$ac_objext; then
20013  ac_header_compiler=yes
20014else
20015  echo "$as_me: failed program was:" >&5
20016sed 's/^/| /' conftest.$ac_ext >&5
20017
20018	ac_header_compiler=no
20019fi
20020
20021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20022{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20023echo "${ECHO_T}$ac_header_compiler" >&6; }
20024
20025# Is the header present?
20026{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20027echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20028cat >conftest.$ac_ext <<_ACEOF
20029/* confdefs.h.  */
20030_ACEOF
20031cat confdefs.h >>conftest.$ac_ext
20032cat >>conftest.$ac_ext <<_ACEOF
20033/* end confdefs.h.  */
20034#include <$ac_header>
20035_ACEOF
20036if { (ac_try="$ac_cpp conftest.$ac_ext"
20037case "(($ac_try" in
20038  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20039  *) ac_try_echo=$ac_try;;
20040esac
20041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20042  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20043  ac_status=$?
20044  grep -v '^ *+' conftest.er1 >conftest.err
20045  rm -f conftest.er1
20046  cat conftest.err >&5
20047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048  (exit $ac_status); } >/dev/null && {
20049	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20050	 test ! -s conftest.err
20051       }; then
20052  ac_header_preproc=yes
20053else
20054  echo "$as_me: failed program was:" >&5
20055sed 's/^/| /' conftest.$ac_ext >&5
20056
20057  ac_header_preproc=no
20058fi
20059
20060rm -f conftest.err conftest.$ac_ext
20061{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20062echo "${ECHO_T}$ac_header_preproc" >&6; }
20063
20064# So?  What about this header?
20065case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20066  yes:no: )
20067    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20068echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20069    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20070echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20071    ac_header_preproc=yes
20072    ;;
20073  no:yes:* )
20074    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20075echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20076    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20077echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20078    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20079echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20080    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20081echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20082    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20083echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20084    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20085echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20086    ( cat <<\_ASBOX
20087## ------------------------------------ ##
20088## Report this to opensource@google.com ##
20089## ------------------------------------ ##
20090_ASBOX
20091     ) | sed "s/^/$as_me: WARNING:     /" >&2
20092    ;;
20093esac
20094{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20095echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20096if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20097  echo $ECHO_N "(cached) $ECHO_C" >&6
20098else
20099  eval "$as_ac_Header=\$ac_header_preproc"
20100fi
20101ac_res=`eval echo '${'$as_ac_Header'}'`
20102	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20103echo "${ECHO_T}$ac_res" >&6; }
20104
20105fi
20106if test `eval echo '${'$as_ac_Header'}'` = yes; then
20107  cat >>confdefs.h <<_ACEOF
20108#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20109_ACEOF
20110
20111fi
20112
20113done
20114
20115
20116for ac_header in getopt.h
20117do
20118as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20119if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20120  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20121echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20122if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20123  echo $ECHO_N "(cached) $ECHO_C" >&6
20124fi
20125ac_res=`eval echo '${'$as_ac_Header'}'`
20126	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20127echo "${ECHO_T}$ac_res" >&6; }
20128else
20129  # Is the header compilable?
20130{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20131echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20132cat >conftest.$ac_ext <<_ACEOF
20133/* confdefs.h.  */
20134_ACEOF
20135cat confdefs.h >>conftest.$ac_ext
20136cat >>conftest.$ac_ext <<_ACEOF
20137/* end confdefs.h.  */
20138$ac_includes_default
20139#include <$ac_header>
20140_ACEOF
20141rm -f conftest.$ac_objext
20142if { (ac_try="$ac_compile"
20143case "(($ac_try" in
20144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20145  *) ac_try_echo=$ac_try;;
20146esac
20147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20148  (eval "$ac_compile") 2>conftest.er1
20149  ac_status=$?
20150  grep -v '^ *+' conftest.er1 >conftest.err
20151  rm -f conftest.er1
20152  cat conftest.err >&5
20153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154  (exit $ac_status); } && {
20155	 test -z "$ac_c_werror_flag" ||
20156	 test ! -s conftest.err
20157       } && test -s conftest.$ac_objext; then
20158  ac_header_compiler=yes
20159else
20160  echo "$as_me: failed program was:" >&5
20161sed 's/^/| /' conftest.$ac_ext >&5
20162
20163	ac_header_compiler=no
20164fi
20165
20166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20167{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20168echo "${ECHO_T}$ac_header_compiler" >&6; }
20169
20170# Is the header present?
20171{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20172echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20173cat >conftest.$ac_ext <<_ACEOF
20174/* confdefs.h.  */
20175_ACEOF
20176cat confdefs.h >>conftest.$ac_ext
20177cat >>conftest.$ac_ext <<_ACEOF
20178/* end confdefs.h.  */
20179#include <$ac_header>
20180_ACEOF
20181if { (ac_try="$ac_cpp conftest.$ac_ext"
20182case "(($ac_try" in
20183  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20184  *) ac_try_echo=$ac_try;;
20185esac
20186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20187  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20188  ac_status=$?
20189  grep -v '^ *+' conftest.er1 >conftest.err
20190  rm -f conftest.er1
20191  cat conftest.err >&5
20192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193  (exit $ac_status); } >/dev/null && {
20194	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20195	 test ! -s conftest.err
20196       }; then
20197  ac_header_preproc=yes
20198else
20199  echo "$as_me: failed program was:" >&5
20200sed 's/^/| /' conftest.$ac_ext >&5
20201
20202  ac_header_preproc=no
20203fi
20204
20205rm -f conftest.err conftest.$ac_ext
20206{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20207echo "${ECHO_T}$ac_header_preproc" >&6; }
20208
20209# So?  What about this header?
20210case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20211  yes:no: )
20212    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20213echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20214    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20215echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20216    ac_header_preproc=yes
20217    ;;
20218  no:yes:* )
20219    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20220echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20221    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20222echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20223    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20224echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20225    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20226echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20227    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20228echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20229    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20230echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20231    ( cat <<\_ASBOX
20232## ------------------------------------ ##
20233## Report this to opensource@google.com ##
20234## ------------------------------------ ##
20235_ASBOX
20236     ) | sed "s/^/$as_me: WARNING:     /" >&2
20237    ;;
20238esac
20239{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20240echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20241if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20242  echo $ECHO_N "(cached) $ECHO_C" >&6
20243else
20244  eval "$as_ac_Header=\$ac_header_preproc"
20245fi
20246ac_res=`eval echo '${'$as_ac_Header'}'`
20247	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20248echo "${ECHO_T}$ac_res" >&6; }
20249
20250fi
20251if test `eval echo '${'$as_ac_Header'}'` = yes; then
20252  cat >>confdefs.h <<_ACEOF
20253#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20254_ACEOF
20255
20256fi
20257
20258done
20259
20260
20261for ac_header in malloc.h
20262do
20263as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20264if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20265  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20266echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20267if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20268  echo $ECHO_N "(cached) $ECHO_C" >&6
20269fi
20270ac_res=`eval echo '${'$as_ac_Header'}'`
20271	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20272echo "${ECHO_T}$ac_res" >&6; }
20273else
20274  # Is the header compilable?
20275{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20276echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20277cat >conftest.$ac_ext <<_ACEOF
20278/* confdefs.h.  */
20279_ACEOF
20280cat confdefs.h >>conftest.$ac_ext
20281cat >>conftest.$ac_ext <<_ACEOF
20282/* end confdefs.h.  */
20283$ac_includes_default
20284#include <$ac_header>
20285_ACEOF
20286rm -f conftest.$ac_objext
20287if { (ac_try="$ac_compile"
20288case "(($ac_try" in
20289  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20290  *) ac_try_echo=$ac_try;;
20291esac
20292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20293  (eval "$ac_compile") 2>conftest.er1
20294  ac_status=$?
20295  grep -v '^ *+' conftest.er1 >conftest.err
20296  rm -f conftest.er1
20297  cat conftest.err >&5
20298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299  (exit $ac_status); } && {
20300	 test -z "$ac_c_werror_flag" ||
20301	 test ! -s conftest.err
20302       } && test -s conftest.$ac_objext; then
20303  ac_header_compiler=yes
20304else
20305  echo "$as_me: failed program was:" >&5
20306sed 's/^/| /' conftest.$ac_ext >&5
20307
20308	ac_header_compiler=no
20309fi
20310
20311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20312{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20313echo "${ECHO_T}$ac_header_compiler" >&6; }
20314
20315# Is the header present?
20316{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20317echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20318cat >conftest.$ac_ext <<_ACEOF
20319/* confdefs.h.  */
20320_ACEOF
20321cat confdefs.h >>conftest.$ac_ext
20322cat >>conftest.$ac_ext <<_ACEOF
20323/* end confdefs.h.  */
20324#include <$ac_header>
20325_ACEOF
20326if { (ac_try="$ac_cpp conftest.$ac_ext"
20327case "(($ac_try" in
20328  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20329  *) ac_try_echo=$ac_try;;
20330esac
20331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20332  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20333  ac_status=$?
20334  grep -v '^ *+' conftest.er1 >conftest.err
20335  rm -f conftest.er1
20336  cat conftest.err >&5
20337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338  (exit $ac_status); } >/dev/null && {
20339	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20340	 test ! -s conftest.err
20341       }; then
20342  ac_header_preproc=yes
20343else
20344  echo "$as_me: failed program was:" >&5
20345sed 's/^/| /' conftest.$ac_ext >&5
20346
20347  ac_header_preproc=no
20348fi
20349
20350rm -f conftest.err conftest.$ac_ext
20351{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20352echo "${ECHO_T}$ac_header_preproc" >&6; }
20353
20354# So?  What about this header?
20355case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20356  yes:no: )
20357    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20358echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20359    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20360echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20361    ac_header_preproc=yes
20362    ;;
20363  no:yes:* )
20364    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20365echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20366    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20367echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20368    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20369echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20370    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20371echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20372    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20373echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20374    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20375echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20376    ( cat <<\_ASBOX
20377## ------------------------------------ ##
20378## Report this to opensource@google.com ##
20379## ------------------------------------ ##
20380_ASBOX
20381     ) | sed "s/^/$as_me: WARNING:     /" >&2
20382    ;;
20383esac
20384{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20385echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20386if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20387  echo $ECHO_N "(cached) $ECHO_C" >&6
20388else
20389  eval "$as_ac_Header=\$ac_header_preproc"
20390fi
20391ac_res=`eval echo '${'$as_ac_Header'}'`
20392	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20393echo "${ECHO_T}$ac_res" >&6; }
20394
20395fi
20396if test `eval echo '${'$as_ac_Header'}'` = yes; then
20397  cat >>confdefs.h <<_ACEOF
20398#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20399_ACEOF
20400
20401fi
20402
20403done
20404
20405
20406for ac_header in sys/mman.h
20407do
20408as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20409if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20410  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20411echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20412if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20413  echo $ECHO_N "(cached) $ECHO_C" >&6
20414fi
20415ac_res=`eval echo '${'$as_ac_Header'}'`
20416	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20417echo "${ECHO_T}$ac_res" >&6; }
20418else
20419  # Is the header compilable?
20420{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20421echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20422cat >conftest.$ac_ext <<_ACEOF
20423/* confdefs.h.  */
20424_ACEOF
20425cat confdefs.h >>conftest.$ac_ext
20426cat >>conftest.$ac_ext <<_ACEOF
20427/* end confdefs.h.  */
20428$ac_includes_default
20429#include <$ac_header>
20430_ACEOF
20431rm -f conftest.$ac_objext
20432if { (ac_try="$ac_compile"
20433case "(($ac_try" in
20434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20435  *) ac_try_echo=$ac_try;;
20436esac
20437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20438  (eval "$ac_compile") 2>conftest.er1
20439  ac_status=$?
20440  grep -v '^ *+' conftest.er1 >conftest.err
20441  rm -f conftest.er1
20442  cat conftest.err >&5
20443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444  (exit $ac_status); } && {
20445	 test -z "$ac_c_werror_flag" ||
20446	 test ! -s conftest.err
20447       } && test -s conftest.$ac_objext; then
20448  ac_header_compiler=yes
20449else
20450  echo "$as_me: failed program was:" >&5
20451sed 's/^/| /' conftest.$ac_ext >&5
20452
20453	ac_header_compiler=no
20454fi
20455
20456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20457{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20458echo "${ECHO_T}$ac_header_compiler" >&6; }
20459
20460# Is the header present?
20461{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20462echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20463cat >conftest.$ac_ext <<_ACEOF
20464/* confdefs.h.  */
20465_ACEOF
20466cat confdefs.h >>conftest.$ac_ext
20467cat >>conftest.$ac_ext <<_ACEOF
20468/* end confdefs.h.  */
20469#include <$ac_header>
20470_ACEOF
20471if { (ac_try="$ac_cpp conftest.$ac_ext"
20472case "(($ac_try" in
20473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20474  *) ac_try_echo=$ac_try;;
20475esac
20476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20477  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20478  ac_status=$?
20479  grep -v '^ *+' conftest.er1 >conftest.err
20480  rm -f conftest.er1
20481  cat conftest.err >&5
20482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483  (exit $ac_status); } >/dev/null && {
20484	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20485	 test ! -s conftest.err
20486       }; then
20487  ac_header_preproc=yes
20488else
20489  echo "$as_me: failed program was:" >&5
20490sed 's/^/| /' conftest.$ac_ext >&5
20491
20492  ac_header_preproc=no
20493fi
20494
20495rm -f conftest.err conftest.$ac_ext
20496{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20497echo "${ECHO_T}$ac_header_preproc" >&6; }
20498
20499# So?  What about this header?
20500case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20501  yes:no: )
20502    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20503echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20504    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20505echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20506    ac_header_preproc=yes
20507    ;;
20508  no:yes:* )
20509    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20510echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20511    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20512echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20513    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20514echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20515    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20516echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20517    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20518echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20519    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20520echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20521    ( cat <<\_ASBOX
20522## ------------------------------------ ##
20523## Report this to opensource@google.com ##
20524## ------------------------------------ ##
20525_ASBOX
20526     ) | sed "s/^/$as_me: WARNING:     /" >&2
20527    ;;
20528esac
20529{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20530echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20531if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20532  echo $ECHO_N "(cached) $ECHO_C" >&6
20533else
20534  eval "$as_ac_Header=\$ac_header_preproc"
20535fi
20536ac_res=`eval echo '${'$as_ac_Header'}'`
20537	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20538echo "${ECHO_T}$ac_res" >&6; }
20539
20540fi
20541if test `eval echo '${'$as_ac_Header'}'` = yes; then
20542  cat >>confdefs.h <<_ACEOF
20543#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20544_ACEOF
20545
20546fi
20547
20548done
20549
20550
20551for ac_header in sys/time.h
20552do
20553as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20554if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20555  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20556echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20557if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20558  echo $ECHO_N "(cached) $ECHO_C" >&6
20559fi
20560ac_res=`eval echo '${'$as_ac_Header'}'`
20561	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20562echo "${ECHO_T}$ac_res" >&6; }
20563else
20564  # Is the header compilable?
20565{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20566echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20567cat >conftest.$ac_ext <<_ACEOF
20568/* confdefs.h.  */
20569_ACEOF
20570cat confdefs.h >>conftest.$ac_ext
20571cat >>conftest.$ac_ext <<_ACEOF
20572/* end confdefs.h.  */
20573$ac_includes_default
20574#include <$ac_header>
20575_ACEOF
20576rm -f conftest.$ac_objext
20577if { (ac_try="$ac_compile"
20578case "(($ac_try" in
20579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20580  *) ac_try_echo=$ac_try;;
20581esac
20582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20583  (eval "$ac_compile") 2>conftest.er1
20584  ac_status=$?
20585  grep -v '^ *+' conftest.er1 >conftest.err
20586  rm -f conftest.er1
20587  cat conftest.err >&5
20588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589  (exit $ac_status); } && {
20590	 test -z "$ac_c_werror_flag" ||
20591	 test ! -s conftest.err
20592       } && test -s conftest.$ac_objext; then
20593  ac_header_compiler=yes
20594else
20595  echo "$as_me: failed program was:" >&5
20596sed 's/^/| /' conftest.$ac_ext >&5
20597
20598	ac_header_compiler=no
20599fi
20600
20601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20602{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20603echo "${ECHO_T}$ac_header_compiler" >&6; }
20604
20605# Is the header present?
20606{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20607echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20608cat >conftest.$ac_ext <<_ACEOF
20609/* confdefs.h.  */
20610_ACEOF
20611cat confdefs.h >>conftest.$ac_ext
20612cat >>conftest.$ac_ext <<_ACEOF
20613/* end confdefs.h.  */
20614#include <$ac_header>
20615_ACEOF
20616if { (ac_try="$ac_cpp conftest.$ac_ext"
20617case "(($ac_try" in
20618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20619  *) ac_try_echo=$ac_try;;
20620esac
20621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20622  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20623  ac_status=$?
20624  grep -v '^ *+' conftest.er1 >conftest.err
20625  rm -f conftest.er1
20626  cat conftest.err >&5
20627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628  (exit $ac_status); } >/dev/null && {
20629	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20630	 test ! -s conftest.err
20631       }; then
20632  ac_header_preproc=yes
20633else
20634  echo "$as_me: failed program was:" >&5
20635sed 's/^/| /' conftest.$ac_ext >&5
20636
20637  ac_header_preproc=no
20638fi
20639
20640rm -f conftest.err conftest.$ac_ext
20641{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20642echo "${ECHO_T}$ac_header_preproc" >&6; }
20643
20644# So?  What about this header?
20645case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20646  yes:no: )
20647    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20648echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20649    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20650echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20651    ac_header_preproc=yes
20652    ;;
20653  no:yes:* )
20654    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20655echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20656    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20657echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20658    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20659echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20660    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20661echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20662    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20663echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20664    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20665echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20666    ( cat <<\_ASBOX
20667## ------------------------------------ ##
20668## Report this to opensource@google.com ##
20669## ------------------------------------ ##
20670_ASBOX
20671     ) | sed "s/^/$as_me: WARNING:     /" >&2
20672    ;;
20673esac
20674{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20675echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20676if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20677  echo $ECHO_N "(cached) $ECHO_C" >&6
20678else
20679  eval "$as_ac_Header=\$ac_header_preproc"
20680fi
20681ac_res=`eval echo '${'$as_ac_Header'}'`
20682	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20683echo "${ECHO_T}$ac_res" >&6; }
20684
20685fi
20686if test `eval echo '${'$as_ac_Header'}'` = yes; then
20687  cat >>confdefs.h <<_ACEOF
20688#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20689_ACEOF
20690
20691fi
20692
20693done
20694
20695
20696for ac_header in unistd.h
20697do
20698as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20699if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20700  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20701echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20702if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20703  echo $ECHO_N "(cached) $ECHO_C" >&6
20704fi
20705ac_res=`eval echo '${'$as_ac_Header'}'`
20706	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20707echo "${ECHO_T}$ac_res" >&6; }
20708else
20709  # Is the header compilable?
20710{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20711echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20712cat >conftest.$ac_ext <<_ACEOF
20713/* confdefs.h.  */
20714_ACEOF
20715cat confdefs.h >>conftest.$ac_ext
20716cat >>conftest.$ac_ext <<_ACEOF
20717/* end confdefs.h.  */
20718$ac_includes_default
20719#include <$ac_header>
20720_ACEOF
20721rm -f conftest.$ac_objext
20722if { (ac_try="$ac_compile"
20723case "(($ac_try" in
20724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20725  *) ac_try_echo=$ac_try;;
20726esac
20727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20728  (eval "$ac_compile") 2>conftest.er1
20729  ac_status=$?
20730  grep -v '^ *+' conftest.er1 >conftest.err
20731  rm -f conftest.er1
20732  cat conftest.err >&5
20733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734  (exit $ac_status); } && {
20735	 test -z "$ac_c_werror_flag" ||
20736	 test ! -s conftest.err
20737       } && test -s conftest.$ac_objext; then
20738  ac_header_compiler=yes
20739else
20740  echo "$as_me: failed program was:" >&5
20741sed 's/^/| /' conftest.$ac_ext >&5
20742
20743	ac_header_compiler=no
20744fi
20745
20746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20747{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20748echo "${ECHO_T}$ac_header_compiler" >&6; }
20749
20750# Is the header present?
20751{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20752echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20753cat >conftest.$ac_ext <<_ACEOF
20754/* confdefs.h.  */
20755_ACEOF
20756cat confdefs.h >>conftest.$ac_ext
20757cat >>conftest.$ac_ext <<_ACEOF
20758/* end confdefs.h.  */
20759#include <$ac_header>
20760_ACEOF
20761if { (ac_try="$ac_cpp conftest.$ac_ext"
20762case "(($ac_try" in
20763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20764  *) ac_try_echo=$ac_try;;
20765esac
20766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20767  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20768  ac_status=$?
20769  grep -v '^ *+' conftest.er1 >conftest.err
20770  rm -f conftest.er1
20771  cat conftest.err >&5
20772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773  (exit $ac_status); } >/dev/null && {
20774	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20775	 test ! -s conftest.err
20776       }; then
20777  ac_header_preproc=yes
20778else
20779  echo "$as_me: failed program was:" >&5
20780sed 's/^/| /' conftest.$ac_ext >&5
20781
20782  ac_header_preproc=no
20783fi
20784
20785rm -f conftest.err conftest.$ac_ext
20786{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20787echo "${ECHO_T}$ac_header_preproc" >&6; }
20788
20789# So?  What about this header?
20790case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20791  yes:no: )
20792    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20793echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20794    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20795echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20796    ac_header_preproc=yes
20797    ;;
20798  no:yes:* )
20799    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20800echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20801    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20802echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20803    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20804echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20805    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20806echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20807    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20808echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20809    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20810echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20811    ( cat <<\_ASBOX
20812## ------------------------------------ ##
20813## Report this to opensource@google.com ##
20814## ------------------------------------ ##
20815_ASBOX
20816     ) | sed "s/^/$as_me: WARNING:     /" >&2
20817    ;;
20818esac
20819{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20820echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20821if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20822  echo $ECHO_N "(cached) $ECHO_C" >&6
20823else
20824  eval "$as_ac_Header=\$ac_header_preproc"
20825fi
20826ac_res=`eval echo '${'$as_ac_Header'}'`
20827	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20828echo "${ECHO_T}$ac_res" >&6; }
20829
20830fi
20831if test `eval echo '${'$as_ac_Header'}'` = yes; then
20832  cat >>confdefs.h <<_ACEOF
20833#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20834_ACEOF
20835
20836fi
20837
20838done
20839
20840
20841for ac_header in windows.h
20842do
20843as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20844if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20845  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20846echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20847if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20848  echo $ECHO_N "(cached) $ECHO_C" >&6
20849fi
20850ac_res=`eval echo '${'$as_ac_Header'}'`
20851	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20852echo "${ECHO_T}$ac_res" >&6; }
20853else
20854  # Is the header compilable?
20855{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20856echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20857cat >conftest.$ac_ext <<_ACEOF
20858/* confdefs.h.  */
20859_ACEOF
20860cat confdefs.h >>conftest.$ac_ext
20861cat >>conftest.$ac_ext <<_ACEOF
20862/* end confdefs.h.  */
20863$ac_includes_default
20864#include <$ac_header>
20865_ACEOF
20866rm -f conftest.$ac_objext
20867if { (ac_try="$ac_compile"
20868case "(($ac_try" in
20869  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20870  *) ac_try_echo=$ac_try;;
20871esac
20872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20873  (eval "$ac_compile") 2>conftest.er1
20874  ac_status=$?
20875  grep -v '^ *+' conftest.er1 >conftest.err
20876  rm -f conftest.er1
20877  cat conftest.err >&5
20878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879  (exit $ac_status); } && {
20880	 test -z "$ac_c_werror_flag" ||
20881	 test ! -s conftest.err
20882       } && test -s conftest.$ac_objext; then
20883  ac_header_compiler=yes
20884else
20885  echo "$as_me: failed program was:" >&5
20886sed 's/^/| /' conftest.$ac_ext >&5
20887
20888	ac_header_compiler=no
20889fi
20890
20891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20892{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20893echo "${ECHO_T}$ac_header_compiler" >&6; }
20894
20895# Is the header present?
20896{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20897echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20898cat >conftest.$ac_ext <<_ACEOF
20899/* confdefs.h.  */
20900_ACEOF
20901cat confdefs.h >>conftest.$ac_ext
20902cat >>conftest.$ac_ext <<_ACEOF
20903/* end confdefs.h.  */
20904#include <$ac_header>
20905_ACEOF
20906if { (ac_try="$ac_cpp conftest.$ac_ext"
20907case "(($ac_try" in
20908  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20909  *) ac_try_echo=$ac_try;;
20910esac
20911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20912  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20913  ac_status=$?
20914  grep -v '^ *+' conftest.er1 >conftest.err
20915  rm -f conftest.er1
20916  cat conftest.err >&5
20917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918  (exit $ac_status); } >/dev/null && {
20919	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20920	 test ! -s conftest.err
20921       }; then
20922  ac_header_preproc=yes
20923else
20924  echo "$as_me: failed program was:" >&5
20925sed 's/^/| /' conftest.$ac_ext >&5
20926
20927  ac_header_preproc=no
20928fi
20929
20930rm -f conftest.err conftest.$ac_ext
20931{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20932echo "${ECHO_T}$ac_header_preproc" >&6; }
20933
20934# So?  What about this header?
20935case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20936  yes:no: )
20937    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20938echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20939    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20940echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20941    ac_header_preproc=yes
20942    ;;
20943  no:yes:* )
20944    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20945echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20946    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20947echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20948    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20949echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20950    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20951echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20952    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20953echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20954    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20955echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20956    ( cat <<\_ASBOX
20957## ------------------------------------ ##
20958## Report this to opensource@google.com ##
20959## ------------------------------------ ##
20960_ASBOX
20961     ) | sed "s/^/$as_me: WARNING:     /" >&2
20962    ;;
20963esac
20964{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20965echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20966if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20967  echo $ECHO_N "(cached) $ECHO_C" >&6
20968else
20969  eval "$as_ac_Header=\$ac_header_preproc"
20970fi
20971ac_res=`eval echo '${'$as_ac_Header'}'`
20972	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20973echo "${ECHO_T}$ac_res" >&6; }
20974
20975fi
20976if test `eval echo '${'$as_ac_Header'}'` = yes; then
20977  cat >>confdefs.h <<_ACEOF
20978#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20979_ACEOF
20980
20981fi
20982
20983done
20984
20985
20986
20987for ac_func in gettimeofday QueryPerformanceCounter
20988do
20989as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20990{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20991echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20992if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20993  echo $ECHO_N "(cached) $ECHO_C" >&6
20994else
20995  cat >conftest.$ac_ext <<_ACEOF
20996/* confdefs.h.  */
20997_ACEOF
20998cat confdefs.h >>conftest.$ac_ext
20999cat >>conftest.$ac_ext <<_ACEOF
21000/* end confdefs.h.  */
21001/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21002   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21003#define $ac_func innocuous_$ac_func
21004
21005/* System header to define __stub macros and hopefully few prototypes,
21006    which can conflict with char $ac_func (); below.
21007    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21008    <limits.h> exists even on freestanding compilers.  */
21009
21010#ifdef __STDC__
21011# include <limits.h>
21012#else
21013# include <assert.h>
21014#endif
21015
21016#undef $ac_func
21017
21018/* Override any GCC internal prototype to avoid an error.
21019   Use char because int might match the return type of a GCC
21020   builtin and then its argument prototype would still apply.  */
21021#ifdef __cplusplus
21022extern "C"
21023#endif
21024char $ac_func ();
21025/* The GNU C library defines this for functions which it implements
21026    to always fail with ENOSYS.  Some functions are actually named
21027    something starting with __ and the normal name is an alias.  */
21028#if defined __stub_$ac_func || defined __stub___$ac_func
21029choke me
21030#endif
21031
21032int
21033main ()
21034{
21035return $ac_func ();
21036  ;
21037  return 0;
21038}
21039_ACEOF
21040rm -f conftest.$ac_objext conftest$ac_exeext
21041if { (ac_try="$ac_link"
21042case "(($ac_try" in
21043  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21044  *) ac_try_echo=$ac_try;;
21045esac
21046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21047  (eval "$ac_link") 2>conftest.er1
21048  ac_status=$?
21049  grep -v '^ *+' conftest.er1 >conftest.err
21050  rm -f conftest.er1
21051  cat conftest.err >&5
21052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053  (exit $ac_status); } && {
21054	 test -z "$ac_c_werror_flag" ||
21055	 test ! -s conftest.err
21056       } && test -s conftest$ac_exeext &&
21057       $as_test_x conftest$ac_exeext; then
21058  eval "$as_ac_var=yes"
21059else
21060  echo "$as_me: failed program was:" >&5
21061sed 's/^/| /' conftest.$ac_ext >&5
21062
21063	eval "$as_ac_var=no"
21064fi
21065
21066rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21067      conftest$ac_exeext conftest.$ac_ext
21068fi
21069ac_res=`eval echo '${'$as_ac_var'}'`
21070	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21071echo "${ECHO_T}$ac_res" >&6; }
21072if test `eval echo '${'$as_ac_var'}'` = yes; then
21073  cat >>confdefs.h <<_ACEOF
21074#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21075_ACEOF
21076
21077fi
21078done
21079
21080
21081
21082for ac_func in memalign posix_memalign
21083do
21084as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21085{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21086echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21087if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21088  echo $ECHO_N "(cached) $ECHO_C" >&6
21089else
21090  cat >conftest.$ac_ext <<_ACEOF
21091/* confdefs.h.  */
21092_ACEOF
21093cat confdefs.h >>conftest.$ac_ext
21094cat >>conftest.$ac_ext <<_ACEOF
21095/* end confdefs.h.  */
21096/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21097   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21098#define $ac_func innocuous_$ac_func
21099
21100/* System header to define __stub macros and hopefully few prototypes,
21101    which can conflict with char $ac_func (); below.
21102    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21103    <limits.h> exists even on freestanding compilers.  */
21104
21105#ifdef __STDC__
21106# include <limits.h>
21107#else
21108# include <assert.h>
21109#endif
21110
21111#undef $ac_func
21112
21113/* Override any GCC internal prototype to avoid an error.
21114   Use char because int might match the return type of a GCC
21115   builtin and then its argument prototype would still apply.  */
21116#ifdef __cplusplus
21117extern "C"
21118#endif
21119char $ac_func ();
21120/* The GNU C library defines this for functions which it implements
21121    to always fail with ENOSYS.  Some functions are actually named
21122    something starting with __ and the normal name is an alias.  */
21123#if defined __stub_$ac_func || defined __stub___$ac_func
21124choke me
21125#endif
21126
21127int
21128main ()
21129{
21130return $ac_func ();
21131  ;
21132  return 0;
21133}
21134_ACEOF
21135rm -f conftest.$ac_objext conftest$ac_exeext
21136if { (ac_try="$ac_link"
21137case "(($ac_try" in
21138  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21139  *) ac_try_echo=$ac_try;;
21140esac
21141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21142  (eval "$ac_link") 2>conftest.er1
21143  ac_status=$?
21144  grep -v '^ *+' conftest.er1 >conftest.err
21145  rm -f conftest.er1
21146  cat conftest.err >&5
21147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148  (exit $ac_status); } && {
21149	 test -z "$ac_c_werror_flag" ||
21150	 test ! -s conftest.err
21151       } && test -s conftest$ac_exeext &&
21152       $as_test_x conftest$ac_exeext; then
21153  eval "$as_ac_var=yes"
21154else
21155  echo "$as_me: failed program was:" >&5
21156sed 's/^/| /' conftest.$ac_ext >&5
21157
21158	eval "$as_ac_var=no"
21159fi
21160
21161rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21162      conftest$ac_exeext conftest.$ac_ext
21163fi
21164ac_res=`eval echo '${'$as_ac_var'}'`
21165	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21166echo "${ECHO_T}$ac_res" >&6; }
21167if test `eval echo '${'$as_ac_var'}'` = yes; then
21168  cat >>confdefs.h <<_ACEOF
21169#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21170_ACEOF
21171
21172fi
21173done
21174
21175
21176for ac_func in mprotect
21177do
21178as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21179{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21180echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21181if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21182  echo $ECHO_N "(cached) $ECHO_C" >&6
21183else
21184  cat >conftest.$ac_ext <<_ACEOF
21185/* confdefs.h.  */
21186_ACEOF
21187cat confdefs.h >>conftest.$ac_ext
21188cat >>conftest.$ac_ext <<_ACEOF
21189/* end confdefs.h.  */
21190/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21191   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21192#define $ac_func innocuous_$ac_func
21193
21194/* System header to define __stub macros and hopefully few prototypes,
21195    which can conflict with char $ac_func (); below.
21196    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21197    <limits.h> exists even on freestanding compilers.  */
21198
21199#ifdef __STDC__
21200# include <limits.h>
21201#else
21202# include <assert.h>
21203#endif
21204
21205#undef $ac_func
21206
21207/* Override any GCC internal prototype to avoid an error.
21208   Use char because int might match the return type of a GCC
21209   builtin and then its argument prototype would still apply.  */
21210#ifdef __cplusplus
21211extern "C"
21212#endif
21213char $ac_func ();
21214/* The GNU C library defines this for functions which it implements
21215    to always fail with ENOSYS.  Some functions are actually named
21216    something starting with __ and the normal name is an alias.  */
21217#if defined __stub_$ac_func || defined __stub___$ac_func
21218choke me
21219#endif
21220
21221int
21222main ()
21223{
21224return $ac_func ();
21225  ;
21226  return 0;
21227}
21228_ACEOF
21229rm -f conftest.$ac_objext conftest$ac_exeext
21230if { (ac_try="$ac_link"
21231case "(($ac_try" in
21232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21233  *) ac_try_echo=$ac_try;;
21234esac
21235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21236  (eval "$ac_link") 2>conftest.er1
21237  ac_status=$?
21238  grep -v '^ *+' conftest.er1 >conftest.err
21239  rm -f conftest.er1
21240  cat conftest.err >&5
21241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242  (exit $ac_status); } && {
21243	 test -z "$ac_c_werror_flag" ||
21244	 test ! -s conftest.err
21245       } && test -s conftest$ac_exeext &&
21246       $as_test_x conftest$ac_exeext; then
21247  eval "$as_ac_var=yes"
21248else
21249  echo "$as_me: failed program was:" >&5
21250sed 's/^/| /' conftest.$ac_ext >&5
21251
21252	eval "$as_ac_var=no"
21253fi
21254
21255rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21256      conftest$ac_exeext conftest.$ac_ext
21257fi
21258ac_res=`eval echo '${'$as_ac_var'}'`
21259	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21260echo "${ECHO_T}$ac_res" >&6; }
21261if test `eval echo '${'$as_ac_var'}'` = yes; then
21262  cat >>confdefs.h <<_ACEOF
21263#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21264_ACEOF
21265
21266fi
21267done
21268
21269
21270# Start of definitions needed by gflags package
21271
21272
21273
21274
21275for ac_header in stdint.h sys/types.h inttypes.h
21276do
21277as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21278if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21279  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21280echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21281if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21282  echo $ECHO_N "(cached) $ECHO_C" >&6
21283fi
21284ac_res=`eval echo '${'$as_ac_Header'}'`
21285	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21286echo "${ECHO_T}$ac_res" >&6; }
21287else
21288  # Is the header compilable?
21289{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21290echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21291cat >conftest.$ac_ext <<_ACEOF
21292/* confdefs.h.  */
21293_ACEOF
21294cat confdefs.h >>conftest.$ac_ext
21295cat >>conftest.$ac_ext <<_ACEOF
21296/* end confdefs.h.  */
21297$ac_includes_default
21298#include <$ac_header>
21299_ACEOF
21300rm -f conftest.$ac_objext
21301if { (ac_try="$ac_compile"
21302case "(($ac_try" in
21303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21304  *) ac_try_echo=$ac_try;;
21305esac
21306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21307  (eval "$ac_compile") 2>conftest.er1
21308  ac_status=$?
21309  grep -v '^ *+' conftest.er1 >conftest.err
21310  rm -f conftest.er1
21311  cat conftest.err >&5
21312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313  (exit $ac_status); } && {
21314	 test -z "$ac_c_werror_flag" ||
21315	 test ! -s conftest.err
21316       } && test -s conftest.$ac_objext; then
21317  ac_header_compiler=yes
21318else
21319  echo "$as_me: failed program was:" >&5
21320sed 's/^/| /' conftest.$ac_ext >&5
21321
21322	ac_header_compiler=no
21323fi
21324
21325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21326{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21327echo "${ECHO_T}$ac_header_compiler" >&6; }
21328
21329# Is the header present?
21330{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21331echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21332cat >conftest.$ac_ext <<_ACEOF
21333/* confdefs.h.  */
21334_ACEOF
21335cat confdefs.h >>conftest.$ac_ext
21336cat >>conftest.$ac_ext <<_ACEOF
21337/* end confdefs.h.  */
21338#include <$ac_header>
21339_ACEOF
21340if { (ac_try="$ac_cpp conftest.$ac_ext"
21341case "(($ac_try" in
21342  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21343  *) ac_try_echo=$ac_try;;
21344esac
21345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21346  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21347  ac_status=$?
21348  grep -v '^ *+' conftest.er1 >conftest.err
21349  rm -f conftest.er1
21350  cat conftest.err >&5
21351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352  (exit $ac_status); } >/dev/null && {
21353	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21354	 test ! -s conftest.err
21355       }; then
21356  ac_header_preproc=yes
21357else
21358  echo "$as_me: failed program was:" >&5
21359sed 's/^/| /' conftest.$ac_ext >&5
21360
21361  ac_header_preproc=no
21362fi
21363
21364rm -f conftest.err conftest.$ac_ext
21365{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21366echo "${ECHO_T}$ac_header_preproc" >&6; }
21367
21368# So?  What about this header?
21369case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21370  yes:no: )
21371    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21372echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21373    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21374echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21375    ac_header_preproc=yes
21376    ;;
21377  no:yes:* )
21378    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21379echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21380    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21381echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21382    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21383echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21384    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21385echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21386    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21387echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21388    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21389echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21390    ( cat <<\_ASBOX
21391## ------------------------------------ ##
21392## Report this to opensource@google.com ##
21393## ------------------------------------ ##
21394_ASBOX
21395     ) | sed "s/^/$as_me: WARNING:     /" >&2
21396    ;;
21397esac
21398{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21399echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21400if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21401  echo $ECHO_N "(cached) $ECHO_C" >&6
21402else
21403  eval "$as_ac_Header=\$ac_header_preproc"
21404fi
21405ac_res=`eval echo '${'$as_ac_Header'}'`
21406	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21407echo "${ECHO_T}$ac_res" >&6; }
21408
21409fi
21410if test `eval echo '${'$as_ac_Header'}'` = yes; then
21411  cat >>confdefs.h <<_ACEOF
21412#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21413_ACEOF
21414
21415fi
21416
21417done
21418
21419
21420for ac_header in fnmatch.h
21421do
21422as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21423if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21424  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21425echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21426if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21427  echo $ECHO_N "(cached) $ECHO_C" >&6
21428fi
21429ac_res=`eval echo '${'$as_ac_Header'}'`
21430	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21431echo "${ECHO_T}$ac_res" >&6; }
21432else
21433  # Is the header compilable?
21434{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21435echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21436cat >conftest.$ac_ext <<_ACEOF
21437/* confdefs.h.  */
21438_ACEOF
21439cat confdefs.h >>conftest.$ac_ext
21440cat >>conftest.$ac_ext <<_ACEOF
21441/* end confdefs.h.  */
21442$ac_includes_default
21443#include <$ac_header>
21444_ACEOF
21445rm -f conftest.$ac_objext
21446if { (ac_try="$ac_compile"
21447case "(($ac_try" in
21448  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21449  *) ac_try_echo=$ac_try;;
21450esac
21451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21452  (eval "$ac_compile") 2>conftest.er1
21453  ac_status=$?
21454  grep -v '^ *+' conftest.er1 >conftest.err
21455  rm -f conftest.er1
21456  cat conftest.err >&5
21457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458  (exit $ac_status); } && {
21459	 test -z "$ac_c_werror_flag" ||
21460	 test ! -s conftest.err
21461       } && test -s conftest.$ac_objext; then
21462  ac_header_compiler=yes
21463else
21464  echo "$as_me: failed program was:" >&5
21465sed 's/^/| /' conftest.$ac_ext >&5
21466
21467	ac_header_compiler=no
21468fi
21469
21470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21471{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21472echo "${ECHO_T}$ac_header_compiler" >&6; }
21473
21474# Is the header present?
21475{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21476echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21477cat >conftest.$ac_ext <<_ACEOF
21478/* confdefs.h.  */
21479_ACEOF
21480cat confdefs.h >>conftest.$ac_ext
21481cat >>conftest.$ac_ext <<_ACEOF
21482/* end confdefs.h.  */
21483#include <$ac_header>
21484_ACEOF
21485if { (ac_try="$ac_cpp conftest.$ac_ext"
21486case "(($ac_try" in
21487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21488  *) ac_try_echo=$ac_try;;
21489esac
21490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21491  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21492  ac_status=$?
21493  grep -v '^ *+' conftest.er1 >conftest.err
21494  rm -f conftest.er1
21495  cat conftest.err >&5
21496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497  (exit $ac_status); } >/dev/null && {
21498	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21499	 test ! -s conftest.err
21500       }; then
21501  ac_header_preproc=yes
21502else
21503  echo "$as_me: failed program was:" >&5
21504sed 's/^/| /' conftest.$ac_ext >&5
21505
21506  ac_header_preproc=no
21507fi
21508
21509rm -f conftest.err conftest.$ac_ext
21510{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21511echo "${ECHO_T}$ac_header_preproc" >&6; }
21512
21513# So?  What about this header?
21514case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21515  yes:no: )
21516    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21517echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21518    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21519echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21520    ac_header_preproc=yes
21521    ;;
21522  no:yes:* )
21523    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21524echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21525    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21526echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21527    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21528echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21529    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21530echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21531    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21532echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21533    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21534echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21535    ( cat <<\_ASBOX
21536## ------------------------------------ ##
21537## Report this to opensource@google.com ##
21538## ------------------------------------ ##
21539_ASBOX
21540     ) | sed "s/^/$as_me: WARNING:     /" >&2
21541    ;;
21542esac
21543{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21544echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21545if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21546  echo $ECHO_N "(cached) $ECHO_C" >&6
21547else
21548  eval "$as_ac_Header=\$ac_header_preproc"
21549fi
21550ac_res=`eval echo '${'$as_ac_Header'}'`
21551	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21552echo "${ECHO_T}$ac_res" >&6; }
21553
21554fi
21555if test `eval echo '${'$as_ac_Header'}'` = yes; then
21556  cat >>confdefs.h <<_ACEOF
21557#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21558_ACEOF
21559
21560fi
21561
21562done
21563
21564
21565
21566for ac_func in strtoll strtoq
21567do
21568as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21569{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21570echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21571if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21572  echo $ECHO_N "(cached) $ECHO_C" >&6
21573else
21574  cat >conftest.$ac_ext <<_ACEOF
21575/* confdefs.h.  */
21576_ACEOF
21577cat confdefs.h >>conftest.$ac_ext
21578cat >>conftest.$ac_ext <<_ACEOF
21579/* end confdefs.h.  */
21580/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21581   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21582#define $ac_func innocuous_$ac_func
21583
21584/* System header to define __stub macros and hopefully few prototypes,
21585    which can conflict with char $ac_func (); below.
21586    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21587    <limits.h> exists even on freestanding compilers.  */
21588
21589#ifdef __STDC__
21590# include <limits.h>
21591#else
21592# include <assert.h>
21593#endif
21594
21595#undef $ac_func
21596
21597/* Override any GCC internal prototype to avoid an error.
21598   Use char because int might match the return type of a GCC
21599   builtin and then its argument prototype would still apply.  */
21600#ifdef __cplusplus
21601extern "C"
21602#endif
21603char $ac_func ();
21604/* The GNU C library defines this for functions which it implements
21605    to always fail with ENOSYS.  Some functions are actually named
21606    something starting with __ and the normal name is an alias.  */
21607#if defined __stub_$ac_func || defined __stub___$ac_func
21608choke me
21609#endif
21610
21611int
21612main ()
21613{
21614return $ac_func ();
21615  ;
21616  return 0;
21617}
21618_ACEOF
21619rm -f conftest.$ac_objext conftest$ac_exeext
21620if { (ac_try="$ac_link"
21621case "(($ac_try" in
21622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21623  *) ac_try_echo=$ac_try;;
21624esac
21625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21626  (eval "$ac_link") 2>conftest.er1
21627  ac_status=$?
21628  grep -v '^ *+' conftest.er1 >conftest.err
21629  rm -f conftest.er1
21630  cat conftest.err >&5
21631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632  (exit $ac_status); } && {
21633	 test -z "$ac_c_werror_flag" ||
21634	 test ! -s conftest.err
21635       } && test -s conftest$ac_exeext &&
21636       $as_test_x conftest$ac_exeext; then
21637  eval "$as_ac_var=yes"
21638else
21639  echo "$as_me: failed program was:" >&5
21640sed 's/^/| /' conftest.$ac_ext >&5
21641
21642	eval "$as_ac_var=no"
21643fi
21644
21645rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21646      conftest$ac_exeext conftest.$ac_ext
21647fi
21648ac_res=`eval echo '${'$as_ac_var'}'`
21649	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21650echo "${ECHO_T}$ac_res" >&6; }
21651if test `eval echo '${'$as_ac_var'}'` = yes; then
21652  cat >>confdefs.h <<_ACEOF
21653#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21654_ACEOF
21655
21656fi
21657done
21658
21659{ echo "$as_me:$LINENO: checking for uint16_t" >&5
21660echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
21661if test "${ac_cv_type_uint16_t+set}" = set; then
21662  echo $ECHO_N "(cached) $ECHO_C" >&6
21663else
21664  cat >conftest.$ac_ext <<_ACEOF
21665/* confdefs.h.  */
21666_ACEOF
21667cat confdefs.h >>conftest.$ac_ext
21668cat >>conftest.$ac_ext <<_ACEOF
21669/* end confdefs.h.  */
21670$ac_includes_default
21671typedef uint16_t ac__type_new_;
21672int
21673main ()
21674{
21675if ((ac__type_new_ *) 0)
21676  return 0;
21677if (sizeof (ac__type_new_))
21678  return 0;
21679  ;
21680  return 0;
21681}
21682_ACEOF
21683rm -f conftest.$ac_objext
21684if { (ac_try="$ac_compile"
21685case "(($ac_try" in
21686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21687  *) ac_try_echo=$ac_try;;
21688esac
21689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21690  (eval "$ac_compile") 2>conftest.er1
21691  ac_status=$?
21692  grep -v '^ *+' conftest.er1 >conftest.err
21693  rm -f conftest.er1
21694  cat conftest.err >&5
21695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696  (exit $ac_status); } && {
21697	 test -z "$ac_c_werror_flag" ||
21698	 test ! -s conftest.err
21699       } && test -s conftest.$ac_objext; then
21700  ac_cv_type_uint16_t=yes
21701else
21702  echo "$as_me: failed program was:" >&5
21703sed 's/^/| /' conftest.$ac_ext >&5
21704
21705	ac_cv_type_uint16_t=no
21706fi
21707
21708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21709fi
21710{ echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
21711echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
21712if test $ac_cv_type_uint16_t = yes; then
21713
21714cat >>confdefs.h <<_ACEOF
21715#define HAVE_UINT16_T 1
21716_ACEOF
21717
21718
21719fi
21720{ echo "$as_me:$LINENO: checking for u_int16_t" >&5
21721echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
21722if test "${ac_cv_type_u_int16_t+set}" = set; then
21723  echo $ECHO_N "(cached) $ECHO_C" >&6
21724else
21725  cat >conftest.$ac_ext <<_ACEOF
21726/* confdefs.h.  */
21727_ACEOF
21728cat confdefs.h >>conftest.$ac_ext
21729cat >>conftest.$ac_ext <<_ACEOF
21730/* end confdefs.h.  */
21731$ac_includes_default
21732typedef u_int16_t ac__type_new_;
21733int
21734main ()
21735{
21736if ((ac__type_new_ *) 0)
21737  return 0;
21738if (sizeof (ac__type_new_))
21739  return 0;
21740  ;
21741  return 0;
21742}
21743_ACEOF
21744rm -f conftest.$ac_objext
21745if { (ac_try="$ac_compile"
21746case "(($ac_try" in
21747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21748  *) ac_try_echo=$ac_try;;
21749esac
21750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21751  (eval "$ac_compile") 2>conftest.er1
21752  ac_status=$?
21753  grep -v '^ *+' conftest.er1 >conftest.err
21754  rm -f conftest.er1
21755  cat conftest.err >&5
21756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757  (exit $ac_status); } && {
21758	 test -z "$ac_c_werror_flag" ||
21759	 test ! -s conftest.err
21760       } && test -s conftest.$ac_objext; then
21761  ac_cv_type_u_int16_t=yes
21762else
21763  echo "$as_me: failed program was:" >&5
21764sed 's/^/| /' conftest.$ac_ext >&5
21765
21766	ac_cv_type_u_int16_t=no
21767fi
21768
21769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21770fi
21771{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
21772echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
21773if test $ac_cv_type_u_int16_t = yes; then
21774
21775cat >>confdefs.h <<_ACEOF
21776#define HAVE_U_INT16_T 1
21777_ACEOF
21778
21779
21780fi
21781{ echo "$as_me:$LINENO: checking for __int16" >&5
21782echo $ECHO_N "checking for __int16... $ECHO_C" >&6; }
21783if test "${ac_cv_type___int16+set}" = set; then
21784  echo $ECHO_N "(cached) $ECHO_C" >&6
21785else
21786  cat >conftest.$ac_ext <<_ACEOF
21787/* confdefs.h.  */
21788_ACEOF
21789cat confdefs.h >>conftest.$ac_ext
21790cat >>conftest.$ac_ext <<_ACEOF
21791/* end confdefs.h.  */
21792$ac_includes_default
21793typedef __int16 ac__type_new_;
21794int
21795main ()
21796{
21797if ((ac__type_new_ *) 0)
21798  return 0;
21799if (sizeof (ac__type_new_))
21800  return 0;
21801  ;
21802  return 0;
21803}
21804_ACEOF
21805rm -f conftest.$ac_objext
21806if { (ac_try="$ac_compile"
21807case "(($ac_try" in
21808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21809  *) ac_try_echo=$ac_try;;
21810esac
21811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21812  (eval "$ac_compile") 2>conftest.er1
21813  ac_status=$?
21814  grep -v '^ *+' conftest.er1 >conftest.err
21815  rm -f conftest.er1
21816  cat conftest.err >&5
21817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818  (exit $ac_status); } && {
21819	 test -z "$ac_c_werror_flag" ||
21820	 test ! -s conftest.err
21821       } && test -s conftest.$ac_objext; then
21822  ac_cv_type___int16=yes
21823else
21824  echo "$as_me: failed program was:" >&5
21825sed 's/^/| /' conftest.$ac_ext >&5
21826
21827	ac_cv_type___int16=no
21828fi
21829
21830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21831fi
21832{ echo "$as_me:$LINENO: result: $ac_cv_type___int16" >&5
21833echo "${ECHO_T}$ac_cv_type___int16" >&6; }
21834if test $ac_cv_type___int16 = yes; then
21835
21836cat >>confdefs.h <<_ACEOF
21837#define HAVE___INT16 1
21838_ACEOF
21839
21840
21841fi
21842
21843
21844
21845  { echo "$as_me:$LINENO: checking for __attribute__" >&5
21846echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
21847  if test "${ac_cv___attribute__+set}" = set; then
21848  echo $ECHO_N "(cached) $ECHO_C" >&6
21849else
21850
21851    cat >conftest.$ac_ext <<_ACEOF
21852/* confdefs.h.  */
21853_ACEOF
21854cat confdefs.h >>conftest.$ac_ext
21855cat >>conftest.$ac_ext <<_ACEOF
21856/* end confdefs.h.  */
21857#include <stdlib.h>
21858       static void foo(void) __attribute__ ((unused));
21859       void foo(void) { exit(1); }
21860int
21861main ()
21862{
21863
21864  ;
21865  return 0;
21866}
21867_ACEOF
21868rm -f conftest.$ac_objext
21869if { (ac_try="$ac_compile"
21870case "(($ac_try" in
21871  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21872  *) ac_try_echo=$ac_try;;
21873esac
21874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21875  (eval "$ac_compile") 2>conftest.er1
21876  ac_status=$?
21877  grep -v '^ *+' conftest.er1 >conftest.err
21878  rm -f conftest.er1
21879  cat conftest.err >&5
21880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881  (exit $ac_status); } && {
21882	 test -z "$ac_c_werror_flag" ||
21883	 test ! -s conftest.err
21884       } && test -s conftest.$ac_objext; then
21885  ac_cv___attribute__=yes
21886else
21887  echo "$as_me: failed program was:" >&5
21888sed 's/^/| /' conftest.$ac_ext >&5
21889
21890	ac_cv___attribute__=no
21891
21892fi
21893
21894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21895fi
21896
21897  if test "$ac_cv___attribute__" = "yes"; then
21898
21899cat >>confdefs.h <<\_ACEOF
21900#define HAVE___ATTRIBUTE__ 1
21901_ACEOF
21902
21903  fi
21904  { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
21905echo "${ECHO_T}$ac_cv___attribute__" >&6; }
21906
21907
21908# End of definitions needed by gflags package
21909
21910# Solaris 10 6/06 has a bug where /usr/sfw/lib/libstdc++.la is empty.
21911# If so, we replace it with our own version.
21912LIBSTDCXX_LA_LINKER_FLAG=
21913if test -f /usr/sfw/lib/libstdc++.la && ! test -s /usr/sfw/lib/libstdc++.la
21914then
21915  LIBSTDCXX_LA_LINKER_FLAG='-L$(top_srcdir)/src/solaris'
21916fi
21917
21918
21919ac_config_files="$ac_config_files Makefile"
21920
21921cat >confcache <<\_ACEOF
21922# This file is a shell script that caches the results of configure
21923# tests run on this system so they can be shared between configure
21924# scripts and configure runs, see configure's option --config-cache.
21925# It is not useful on other systems.  If it contains results you don't
21926# want to keep, you may remove or edit it.
21927#
21928# config.status only pays attention to the cache file if you give it
21929# the --recheck option to rerun configure.
21930#
21931# `ac_cv_env_foo' variables (set or unset) will be overridden when
21932# loading this file, other *unset* `ac_cv_foo' will be assigned the
21933# following values.
21934
21935_ACEOF
21936
21937# The following way of writing the cache mishandles newlines in values,
21938# but we know of no workaround that is simple, portable, and efficient.
21939# So, we kill variables containing newlines.
21940# Ultrix sh set writes to stderr and can't be redirected directly,
21941# and sets the high bit in the cache file unless we assign to the vars.
21942(
21943  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21944    eval ac_val=\$$ac_var
21945    case $ac_val in #(
21946    *${as_nl}*)
21947      case $ac_var in #(
21948      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21949echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21950      esac
21951      case $ac_var in #(
21952      _ | IFS | as_nl) ;; #(
21953      *) $as_unset $ac_var ;;
21954      esac ;;
21955    esac
21956  done
21957
21958  (set) 2>&1 |
21959    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21960    *${as_nl}ac_space=\ *)
21961      # `set' does not quote correctly, so add quotes (double-quote
21962      # substitution turns \\\\ into \\, and sed turns \\ into \).
21963      sed -n \
21964	"s/'/'\\\\''/g;
21965	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21966      ;; #(
21967    *)
21968      # `set' quotes correctly as required by POSIX, so do not add quotes.
21969      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21970      ;;
21971    esac |
21972    sort
21973) |
21974  sed '
21975     /^ac_cv_env_/b end
21976     t clear
21977     :clear
21978     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21979     t end
21980     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21981     :end' >>confcache
21982if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21983  if test -w "$cache_file"; then
21984    test "x$cache_file" != "x/dev/null" &&
21985      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21986echo "$as_me: updating cache $cache_file" >&6;}
21987    cat confcache >$cache_file
21988  else
21989    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21990echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21991  fi
21992fi
21993rm -f confcache
21994
21995test "x$prefix" = xNONE && prefix=$ac_default_prefix
21996# Let make expand exec_prefix.
21997test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21998
21999DEFS=-DHAVE_CONFIG_H
22000
22001ac_libobjs=
22002ac_ltlibobjs=
22003for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22004  # 1. Remove the extension, and $U if already installed.
22005  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22006  ac_i=`echo "$ac_i" | sed "$ac_script"`
22007  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22008  #    will be set to the directory where LIBOBJS objects are built.
22009  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22010  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22011done
22012LIBOBJS=$ac_libobjs
22013
22014LTLIBOBJS=$ac_ltlibobjs
22015
22016
22017if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22018  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22019Usually this means the macro was only invoked conditionally." >&5
22020echo "$as_me: error: conditional \"AMDEP\" was never defined.
22021Usually this means the macro was only invoked conditionally." >&2;}
22022   { (exit 1); exit 1; }; }
22023fi
22024if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22025  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22026Usually this means the macro was only invoked conditionally." >&5
22027echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22028Usually this means the macro was only invoked conditionally." >&2;}
22029   { (exit 1); exit 1; }; }
22030fi
22031if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22032  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22033Usually this means the macro was only invoked conditionally." >&5
22034echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22035Usually this means the macro was only invoked conditionally." >&2;}
22036   { (exit 1); exit 1; }; }
22037fi
22038if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
22039  { { echo "$as_me:$LINENO: error: conditional \"GCC\" was never defined.
22040Usually this means the macro was only invoked conditionally." >&5
22041echo "$as_me: error: conditional \"GCC\" was never defined.
22042Usually this means the macro was only invoked conditionally." >&2;}
22043   { (exit 1); exit 1; }; }
22044fi
22045
22046: ${CONFIG_STATUS=./config.status}
22047ac_clean_files_save=$ac_clean_files
22048ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22049{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22050echo "$as_me: creating $CONFIG_STATUS" >&6;}
22051cat >$CONFIG_STATUS <<_ACEOF
22052#! $SHELL
22053# Generated by $as_me.
22054# Run this file to recreate the current configuration.
22055# Compiler output produced by configure, useful for debugging
22056# configure, is in config.log if it exists.
22057
22058debug=false
22059ac_cs_recheck=false
22060ac_cs_silent=false
22061SHELL=\${CONFIG_SHELL-$SHELL}
22062_ACEOF
22063
22064cat >>$CONFIG_STATUS <<\_ACEOF
22065## --------------------- ##
22066## M4sh Initialization.  ##
22067## --------------------- ##
22068
22069# Be more Bourne compatible
22070DUALCASE=1; export DUALCASE # for MKS sh
22071if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22072  emulate sh
22073  NULLCMD=:
22074  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22075  # is contrary to our usage.  Disable this feature.
22076  alias -g '${1+"$@"}'='"$@"'
22077  setopt NO_GLOB_SUBST
22078else
22079  case `(set -o) 2>/dev/null` in
22080  *posix*) set -o posix ;;
22081esac
22082
22083fi
22084
22085
22086
22087
22088# PATH needs CR
22089# Avoid depending upon Character Ranges.
22090as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22091as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22092as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22093as_cr_digits='0123456789'
22094as_cr_alnum=$as_cr_Letters$as_cr_digits
22095
22096# The user is always right.
22097if test "${PATH_SEPARATOR+set}" != set; then
22098  echo "#! /bin/sh" >conf$$.sh
22099  echo  "exit 0"   >>conf$$.sh
22100  chmod +x conf$$.sh
22101  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22102    PATH_SEPARATOR=';'
22103  else
22104    PATH_SEPARATOR=:
22105  fi
22106  rm -f conf$$.sh
22107fi
22108
22109# Support unset when possible.
22110if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22111  as_unset=unset
22112else
22113  as_unset=false
22114fi
22115
22116
22117# IFS
22118# We need space, tab and new line, in precisely that order.  Quoting is
22119# there to prevent editors from complaining about space-tab.
22120# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22121# splitting by setting IFS to empty value.)
22122as_nl='
22123'
22124IFS=" ""	$as_nl"
22125
22126# Find who we are.  Look in the path if we contain no directory separator.
22127case $0 in
22128  *[\\/]* ) as_myself=$0 ;;
22129  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22130for as_dir in $PATH
22131do
22132  IFS=$as_save_IFS
22133  test -z "$as_dir" && as_dir=.
22134  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22135done
22136IFS=$as_save_IFS
22137
22138     ;;
22139esac
22140# We did not find ourselves, most probably we were run as `sh COMMAND'
22141# in which case we are not to be found in the path.
22142if test "x$as_myself" = x; then
22143  as_myself=$0
22144fi
22145if test ! -f "$as_myself"; then
22146  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22147  { (exit 1); exit 1; }
22148fi
22149
22150# Work around bugs in pre-3.0 UWIN ksh.
22151for as_var in ENV MAIL MAILPATH
22152do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22153done
22154PS1='$ '
22155PS2='> '
22156PS4='+ '
22157
22158# NLS nuisances.
22159for as_var in \
22160  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22161  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22162  LC_TELEPHONE LC_TIME
22163do
22164  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22165    eval $as_var=C; export $as_var
22166  else
22167    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22168  fi
22169done
22170
22171# Required to use basename.
22172if expr a : '\(a\)' >/dev/null 2>&1 &&
22173   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22174  as_expr=expr
22175else
22176  as_expr=false
22177fi
22178
22179if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22180  as_basename=basename
22181else
22182  as_basename=false
22183fi
22184
22185
22186# Name of the executable.
22187as_me=`$as_basename -- "$0" ||
22188$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22189	 X"$0" : 'X\(//\)$' \| \
22190	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22191echo X/"$0" |
22192    sed '/^.*\/\([^/][^/]*\)\/*$/{
22193	    s//\1/
22194	    q
22195	  }
22196	  /^X\/\(\/\/\)$/{
22197	    s//\1/
22198	    q
22199	  }
22200	  /^X\/\(\/\).*/{
22201	    s//\1/
22202	    q
22203	  }
22204	  s/.*/./; q'`
22205
22206# CDPATH.
22207$as_unset CDPATH
22208
22209
22210
22211  as_lineno_1=$LINENO
22212  as_lineno_2=$LINENO
22213  test "x$as_lineno_1" != "x$as_lineno_2" &&
22214  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22215
22216  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22217  # uniformly replaced by the line number.  The first 'sed' inserts a
22218  # line-number line after each line using $LINENO; the second 'sed'
22219  # does the real work.  The second script uses 'N' to pair each
22220  # line-number line with the line containing $LINENO, and appends
22221  # trailing '-' during substitution so that $LINENO is not a special
22222  # case at line end.
22223  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22224  # scripts with optimization help from Paolo Bonzini.  Blame Lee
22225  # E. McMahon (1931-1989) for sed's syntax.  :-)
22226  sed -n '
22227    p
22228    /[$]LINENO/=
22229  ' <$as_myself |
22230    sed '
22231      s/[$]LINENO.*/&-/
22232      t lineno
22233      b
22234      :lineno
22235      N
22236      :loop
22237      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22238      t loop
22239      s/-\n.*//
22240    ' >$as_me.lineno &&
22241  chmod +x "$as_me.lineno" ||
22242    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22243   { (exit 1); exit 1; }; }
22244
22245  # Don't try to exec as it changes $[0], causing all sort of problems
22246  # (the dirname of $[0] is not the place where we might find the
22247  # original and so on.  Autoconf is especially sensitive to this).
22248  . "./$as_me.lineno"
22249  # Exit status is that of the last command.
22250  exit
22251}
22252
22253
22254if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22255  as_dirname=dirname
22256else
22257  as_dirname=false
22258fi
22259
22260ECHO_C= ECHO_N= ECHO_T=
22261case `echo -n x` in
22262-n*)
22263  case `echo 'x\c'` in
22264  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
22265  *)   ECHO_C='\c';;
22266  esac;;
22267*)
22268  ECHO_N='-n';;
22269esac
22270
22271if expr a : '\(a\)' >/dev/null 2>&1 &&
22272   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22273  as_expr=expr
22274else
22275  as_expr=false
22276fi
22277
22278rm -f conf$$ conf$$.exe conf$$.file
22279if test -d conf$$.dir; then
22280  rm -f conf$$.dir/conf$$.file
22281else
22282  rm -f conf$$.dir
22283  mkdir conf$$.dir
22284fi
22285echo >conf$$.file
22286if ln -s conf$$.file conf$$ 2>/dev/null; then
22287  as_ln_s='ln -s'
22288  # ... but there are two gotchas:
22289  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22290  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22291  # In both cases, we have to default to `cp -p'.
22292  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22293    as_ln_s='cp -p'
22294elif ln conf$$.file conf$$ 2>/dev/null; then
22295  as_ln_s=ln
22296else
22297  as_ln_s='cp -p'
22298fi
22299rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22300rmdir conf$$.dir 2>/dev/null
22301
22302if mkdir -p . 2>/dev/null; then
22303  as_mkdir_p=:
22304else
22305  test -d ./-p && rmdir ./-p
22306  as_mkdir_p=false
22307fi
22308
22309if test -x / >/dev/null 2>&1; then
22310  as_test_x='test -x'
22311else
22312  if ls -dL / >/dev/null 2>&1; then
22313    as_ls_L_option=L
22314  else
22315    as_ls_L_option=
22316  fi
22317  as_test_x='
22318    eval sh -c '\''
22319      if test -d "$1"; then
22320        test -d "$1/.";
22321      else
22322	case $1 in
22323        -*)set "./$1";;
22324	esac;
22325	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22326	???[sx]*):;;*)false;;esac;fi
22327    '\'' sh
22328  '
22329fi
22330as_executable_p=$as_test_x
22331
22332# Sed expression to map a string onto a valid CPP name.
22333as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22334
22335# Sed expression to map a string onto a valid variable name.
22336as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22337
22338
22339exec 6>&1
22340
22341# Save the log message, to keep $[0] and so on meaningful, and to
22342# report actual input values of CONFIG_FILES etc. instead of their
22343# values after options handling.
22344ac_log="
22345This file was extended by open-vcdiff $as_me 0.7, which was
22346generated by GNU Autoconf 2.61.  Invocation command line was
22347
22348  CONFIG_FILES    = $CONFIG_FILES
22349  CONFIG_HEADERS  = $CONFIG_HEADERS
22350  CONFIG_LINKS    = $CONFIG_LINKS
22351  CONFIG_COMMANDS = $CONFIG_COMMANDS
22352  $ $0 $@
22353
22354on `(hostname || uname -n) 2>/dev/null | sed 1q`
22355"
22356
22357_ACEOF
22358
22359cat >>$CONFIG_STATUS <<_ACEOF
22360# Files that config.status was made for.
22361config_files="$ac_config_files"
22362config_headers="$ac_config_headers"
22363config_commands="$ac_config_commands"
22364
22365_ACEOF
22366
22367cat >>$CONFIG_STATUS <<\_ACEOF
22368ac_cs_usage="\
22369\`$as_me' instantiates files from templates according to the
22370current configuration.
22371
22372Usage: $0 [OPTIONS] [FILE]...
22373
22374  -h, --help       print this help, then exit
22375  -V, --version    print version number and configuration settings, then exit
22376  -q, --quiet      do not print progress messages
22377  -d, --debug      don't remove temporary files
22378      --recheck    update $as_me by reconfiguring in the same conditions
22379  --file=FILE[:TEMPLATE]
22380		   instantiate the configuration file FILE
22381  --header=FILE[:TEMPLATE]
22382		   instantiate the configuration header FILE
22383
22384Configuration files:
22385$config_files
22386
22387Configuration headers:
22388$config_headers
22389
22390Configuration commands:
22391$config_commands
22392
22393Report bugs to <bug-autoconf@gnu.org>."
22394
22395_ACEOF
22396cat >>$CONFIG_STATUS <<_ACEOF
22397ac_cs_version="\\
22398open-vcdiff config.status 0.7
22399configured by $0, generated by GNU Autoconf 2.61,
22400  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22401
22402Copyright (C) 2006 Free Software Foundation, Inc.
22403This config.status script is free software; the Free Software Foundation
22404gives unlimited permission to copy, distribute and modify it."
22405
22406ac_pwd='$ac_pwd'
22407srcdir='$srcdir'
22408INSTALL='$INSTALL'
22409MKDIR_P='$MKDIR_P'
22410_ACEOF
22411
22412cat >>$CONFIG_STATUS <<\_ACEOF
22413# If no file are specified by the user, then we need to provide default
22414# value.  By we need to know if files were specified by the user.
22415ac_need_defaults=:
22416while test $# != 0
22417do
22418  case $1 in
22419  --*=*)
22420    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22421    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22422    ac_shift=:
22423    ;;
22424  *)
22425    ac_option=$1
22426    ac_optarg=$2
22427    ac_shift=shift
22428    ;;
22429  esac
22430
22431  case $ac_option in
22432  # Handling of the options.
22433  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22434    ac_cs_recheck=: ;;
22435  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22436    echo "$ac_cs_version"; exit ;;
22437  --debug | --debu | --deb | --de | --d | -d )
22438    debug=: ;;
22439  --file | --fil | --fi | --f )
22440    $ac_shift
22441    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22442    ac_need_defaults=false;;
22443  --header | --heade | --head | --hea )
22444    $ac_shift
22445    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22446    ac_need_defaults=false;;
22447  --he | --h)
22448    # Conflict between --help and --header
22449    { echo "$as_me: error: ambiguous option: $1
22450Try \`$0 --help' for more information." >&2
22451   { (exit 1); exit 1; }; };;
22452  --help | --hel | -h )
22453    echo "$ac_cs_usage"; exit ;;
22454  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22455  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22456    ac_cs_silent=: ;;
22457
22458  # This is an error.
22459  -*) { echo "$as_me: error: unrecognized option: $1
22460Try \`$0 --help' for more information." >&2
22461   { (exit 1); exit 1; }; } ;;
22462
22463  *) ac_config_targets="$ac_config_targets $1"
22464     ac_need_defaults=false ;;
22465
22466  esac
22467  shift
22468done
22469
22470ac_configure_extra_args=
22471
22472if $ac_cs_silent; then
22473  exec 6>/dev/null
22474  ac_configure_extra_args="$ac_configure_extra_args --silent"
22475fi
22476
22477_ACEOF
22478cat >>$CONFIG_STATUS <<_ACEOF
22479if \$ac_cs_recheck; then
22480  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22481  CONFIG_SHELL=$SHELL
22482  export CONFIG_SHELL
22483  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22484fi
22485
22486_ACEOF
22487cat >>$CONFIG_STATUS <<\_ACEOF
22488exec 5>>config.log
22489{
22490  echo
22491  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22492## Running $as_me. ##
22493_ASBOX
22494  echo "$ac_log"
22495} >&5
22496
22497_ACEOF
22498cat >>$CONFIG_STATUS <<_ACEOF
22499#
22500# INIT-COMMANDS
22501#
22502AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22503
22504_ACEOF
22505
22506cat >>$CONFIG_STATUS <<\_ACEOF
22507
22508# Handling of arguments.
22509for ac_config_target in $ac_config_targets
22510do
22511  case $ac_config_target in
22512    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
22513    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22514    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22515
22516  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22517echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22518   { (exit 1); exit 1; }; };;
22519  esac
22520done
22521
22522
22523# If the user did not use the arguments to specify the items to instantiate,
22524# then the envvar interface is used.  Set only those that are not.
22525# We use the long form for the default assignment because of an extremely
22526# bizarre bug on SunOS 4.1.3.
22527if $ac_need_defaults; then
22528  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22529  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22530  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22531fi
22532
22533# Have a temporary directory for convenience.  Make it in the build tree
22534# simply because there is no reason against having it here, and in addition,
22535# creating and moving files from /tmp can sometimes cause problems.
22536# Hook for its removal unless debugging.
22537# Note that there is a small window in which the directory will not be cleaned:
22538# after its creation but before its name has been assigned to `$tmp'.
22539$debug ||
22540{
22541  tmp=
22542  trap 'exit_status=$?
22543  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22544' 0
22545  trap '{ (exit 1); exit 1; }' 1 2 13 15
22546}
22547# Create a (secure) tmp directory for tmp files.
22548
22549{
22550  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22551  test -n "$tmp" && test -d "$tmp"
22552}  ||
22553{
22554  tmp=./conf$$-$RANDOM
22555  (umask 077 && mkdir "$tmp")
22556} ||
22557{
22558   echo "$me: cannot create a temporary directory in ." >&2
22559   { (exit 1); exit 1; }
22560}
22561
22562#
22563# Set up the sed scripts for CONFIG_FILES section.
22564#
22565
22566# No need to generate the scripts if there are no CONFIG_FILES.
22567# This happens for instance when ./config.status config.h
22568if test -n "$CONFIG_FILES"; then
22569
22570_ACEOF
22571
22572
22573
22574ac_delim='%!_!# '
22575for ac_last_try in false false false false false :; do
22576  cat >conf$$subs.sed <<_ACEOF
22577SHELL!$SHELL$ac_delim
22578PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22579PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22580PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22581PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22582PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22583PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22584exec_prefix!$exec_prefix$ac_delim
22585prefix!$prefix$ac_delim
22586program_transform_name!$program_transform_name$ac_delim
22587bindir!$bindir$ac_delim
22588sbindir!$sbindir$ac_delim
22589libexecdir!$libexecdir$ac_delim
22590datarootdir!$datarootdir$ac_delim
22591datadir!$datadir$ac_delim
22592sysconfdir!$sysconfdir$ac_delim
22593sharedstatedir!$sharedstatedir$ac_delim
22594localstatedir!$localstatedir$ac_delim
22595includedir!$includedir$ac_delim
22596oldincludedir!$oldincludedir$ac_delim
22597docdir!$docdir$ac_delim
22598infodir!$infodir$ac_delim
22599htmldir!$htmldir$ac_delim
22600dvidir!$dvidir$ac_delim
22601pdfdir!$pdfdir$ac_delim
22602psdir!$psdir$ac_delim
22603libdir!$libdir$ac_delim
22604localedir!$localedir$ac_delim
22605mandir!$mandir$ac_delim
22606DEFS!$DEFS$ac_delim
22607ECHO_C!$ECHO_C$ac_delim
22608ECHO_N!$ECHO_N$ac_delim
22609ECHO_T!$ECHO_T$ac_delim
22610LIBS!$LIBS$ac_delim
22611build_alias!$build_alias$ac_delim
22612host_alias!$host_alias$ac_delim
22613target_alias!$target_alias$ac_delim
22614INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22615INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22616INSTALL_DATA!$INSTALL_DATA$ac_delim
22617am__isrc!$am__isrc$ac_delim
22618CYGPATH_W!$CYGPATH_W$ac_delim
22619PACKAGE!$PACKAGE$ac_delim
22620VERSION!$VERSION$ac_delim
22621ACLOCAL!$ACLOCAL$ac_delim
22622AUTOCONF!$AUTOCONF$ac_delim
22623AUTOMAKE!$AUTOMAKE$ac_delim
22624AUTOHEADER!$AUTOHEADER$ac_delim
22625MAKEINFO!$MAKEINFO$ac_delim
22626install_sh!$install_sh$ac_delim
22627STRIP!$STRIP$ac_delim
22628INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22629mkdir_p!$mkdir_p$ac_delim
22630AWK!$AWK$ac_delim
22631SET_MAKE!$SET_MAKE$ac_delim
22632am__leading_dot!$am__leading_dot$ac_delim
22633AMTAR!$AMTAR$ac_delim
22634am__tar!$am__tar$ac_delim
22635am__untar!$am__untar$ac_delim
22636CC!$CC$ac_delim
22637CFLAGS!$CFLAGS$ac_delim
22638LDFLAGS!$LDFLAGS$ac_delim
22639CPPFLAGS!$CPPFLAGS$ac_delim
22640ac_ct_CC!$ac_ct_CC$ac_delim
22641EXEEXT!$EXEEXT$ac_delim
22642OBJEXT!$OBJEXT$ac_delim
22643DEPDIR!$DEPDIR$ac_delim
22644am__include!$am__include$ac_delim
22645am__quote!$am__quote$ac_delim
22646AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22647AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22648AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22649CCDEPMODE!$CCDEPMODE$ac_delim
22650am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22651am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22652CPP!$CPP$ac_delim
22653CXX!$CXX$ac_delim
22654CXXFLAGS!$CXXFLAGS$ac_delim
22655ac_ct_CXX!$ac_ct_CXX$ac_delim
22656CXXDEPMODE!$CXXDEPMODE$ac_delim
22657am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22658am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22659GCC_TRUE!$GCC_TRUE$ac_delim
22660GCC_FALSE!$GCC_FALSE$ac_delim
22661build!$build$ac_delim
22662build_cpu!$build_cpu$ac_delim
22663build_vendor!$build_vendor$ac_delim
22664build_os!$build_os$ac_delim
22665host!$host$ac_delim
22666host_cpu!$host_cpu$ac_delim
22667host_vendor!$host_vendor$ac_delim
22668host_os!$host_os$ac_delim
22669SED!$SED$ac_delim
22670GREP!$GREP$ac_delim
22671EGREP!$EGREP$ac_delim
22672LN_S!$LN_S$ac_delim
22673ECHO!$ECHO$ac_delim
22674_ACEOF
22675
22676  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22677    break
22678  elif $ac_last_try; then
22679    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22680echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22681   { (exit 1); exit 1; }; }
22682  else
22683    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22684  fi
22685done
22686
22687ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22688if test -n "$ac_eof"; then
22689  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22690  ac_eof=`expr $ac_eof + 1`
22691fi
22692
22693cat >>$CONFIG_STATUS <<_ACEOF
22694cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22695/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22696_ACEOF
22697sed '
22698s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22699s/^/s,@/; s/!/@,|#_!!_#|/
22700:n
22701t n
22702s/'"$ac_delim"'$/,g/; t
22703s/$/\\/; p
22704N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22705' >>$CONFIG_STATUS <conf$$subs.sed
22706rm -f conf$$subs.sed
22707cat >>$CONFIG_STATUS <<_ACEOF
22708CEOF$ac_eof
22709_ACEOF
22710
22711
22712ac_delim='%!_!# '
22713for ac_last_try in false false false false false :; do
22714  cat >conf$$subs.sed <<_ACEOF
22715AR!$AR$ac_delim
22716RANLIB!$RANLIB$ac_delim
22717DSYMUTIL!$DSYMUTIL$ac_delim
22718NMEDIT!$NMEDIT$ac_delim
22719CXXCPP!$CXXCPP$ac_delim
22720F77!$F77$ac_delim
22721FFLAGS!$FFLAGS$ac_delim
22722ac_ct_F77!$ac_ct_F77$ac_delim
22723LIBTOOL!$LIBTOOL$ac_delim
22724LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
22725LIBSTDCXX_LA_LINKER_FLAG!$LIBSTDCXX_LA_LINKER_FLAG$ac_delim
22726LIBOBJS!$LIBOBJS$ac_delim
22727LTLIBOBJS!$LTLIBOBJS$ac_delim
22728_ACEOF
22729
22730  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then
22731    break
22732  elif $ac_last_try; then
22733    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22734echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22735   { (exit 1); exit 1; }; }
22736  else
22737    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22738  fi
22739done
22740
22741ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22742if test -n "$ac_eof"; then
22743  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22744  ac_eof=`expr $ac_eof + 1`
22745fi
22746
22747cat >>$CONFIG_STATUS <<_ACEOF
22748cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22749/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22750_ACEOF
22751sed '
22752s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22753s/^/s,@/; s/!/@,|#_!!_#|/
22754:n
22755t n
22756s/'"$ac_delim"'$/,g/; t
22757s/$/\\/; p
22758N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22759' >>$CONFIG_STATUS <conf$$subs.sed
22760rm -f conf$$subs.sed
22761cat >>$CONFIG_STATUS <<_ACEOF
22762:end
22763s/|#_!!_#|//g
22764CEOF$ac_eof
22765_ACEOF
22766
22767
22768# VPATH may cause trouble with some makes, so we remove $(srcdir),
22769# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22770# trailing colons and then remove the whole line if VPATH becomes empty
22771# (actually we leave an empty line to preserve line numbers).
22772if test "x$srcdir" = x.; then
22773  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
22774s/:*\$(srcdir):*/:/
22775s/:*\${srcdir}:*/:/
22776s/:*@srcdir@:*/:/
22777s/^\([^=]*=[	 ]*\):*/\1/
22778s/:*$//
22779s/^[^=]*=[	 ]*$//
22780}'
22781fi
22782
22783cat >>$CONFIG_STATUS <<\_ACEOF
22784fi # test -n "$CONFIG_FILES"
22785
22786
22787for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22788do
22789  case $ac_tag in
22790  :[FHLC]) ac_mode=$ac_tag; continue;;
22791  esac
22792  case $ac_mode$ac_tag in
22793  :[FHL]*:*);;
22794  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22795echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22796   { (exit 1); exit 1; }; };;
22797  :[FH]-) ac_tag=-:-;;
22798  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22799  esac
22800  ac_save_IFS=$IFS
22801  IFS=:
22802  set x $ac_tag
22803  IFS=$ac_save_IFS
22804  shift
22805  ac_file=$1
22806  shift
22807
22808  case $ac_mode in
22809  :L) ac_source=$1;;
22810  :[FH])
22811    ac_file_inputs=
22812    for ac_f
22813    do
22814      case $ac_f in
22815      -) ac_f="$tmp/stdin";;
22816      *) # Look for the file first in the build tree, then in the source tree
22817	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22818	 # because $ac_f cannot contain `:'.
22819	 test -f "$ac_f" ||
22820	   case $ac_f in
22821	   [\\/$]*) false;;
22822	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22823	   esac ||
22824	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22825echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22826   { (exit 1); exit 1; }; };;
22827      esac
22828      ac_file_inputs="$ac_file_inputs $ac_f"
22829    done
22830
22831    # Let's still pretend it is `configure' which instantiates (i.e., don't
22832    # use $as_me), people would be surprised to read:
22833    #    /* config.h.  Generated by config.status.  */
22834    configure_input="Generated from "`IFS=:
22835	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22836    if test x"$ac_file" != x-; then
22837      configure_input="$ac_file.  $configure_input"
22838      { echo "$as_me:$LINENO: creating $ac_file" >&5
22839echo "$as_me: creating $ac_file" >&6;}
22840    fi
22841
22842    case $ac_tag in
22843    *:-:* | *:-) cat >"$tmp/stdin";;
22844    esac
22845    ;;
22846  esac
22847
22848  ac_dir=`$as_dirname -- "$ac_file" ||
22849$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22850	 X"$ac_file" : 'X\(//\)[^/]' \| \
22851	 X"$ac_file" : 'X\(//\)$' \| \
22852	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22853echo X"$ac_file" |
22854    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22855	    s//\1/
22856	    q
22857	  }
22858	  /^X\(\/\/\)[^/].*/{
22859	    s//\1/
22860	    q
22861	  }
22862	  /^X\(\/\/\)$/{
22863	    s//\1/
22864	    q
22865	  }
22866	  /^X\(\/\).*/{
22867	    s//\1/
22868	    q
22869	  }
22870	  s/.*/./; q'`
22871  { as_dir="$ac_dir"
22872  case $as_dir in #(
22873  -*) as_dir=./$as_dir;;
22874  esac
22875  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22876    as_dirs=
22877    while :; do
22878      case $as_dir in #(
22879      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22880      *) as_qdir=$as_dir;;
22881      esac
22882      as_dirs="'$as_qdir' $as_dirs"
22883      as_dir=`$as_dirname -- "$as_dir" ||
22884$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22885	 X"$as_dir" : 'X\(//\)[^/]' \| \
22886	 X"$as_dir" : 'X\(//\)$' \| \
22887	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22888echo X"$as_dir" |
22889    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22890	    s//\1/
22891	    q
22892	  }
22893	  /^X\(\/\/\)[^/].*/{
22894	    s//\1/
22895	    q
22896	  }
22897	  /^X\(\/\/\)$/{
22898	    s//\1/
22899	    q
22900	  }
22901	  /^X\(\/\).*/{
22902	    s//\1/
22903	    q
22904	  }
22905	  s/.*/./; q'`
22906      test -d "$as_dir" && break
22907    done
22908    test -z "$as_dirs" || eval "mkdir $as_dirs"
22909  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22910echo "$as_me: error: cannot create directory $as_dir" >&2;}
22911   { (exit 1); exit 1; }; }; }
22912  ac_builddir=.
22913
22914case "$ac_dir" in
22915.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22916*)
22917  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22918  # A ".." for each directory in $ac_dir_suffix.
22919  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22920  case $ac_top_builddir_sub in
22921  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22922  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22923  esac ;;
22924esac
22925ac_abs_top_builddir=$ac_pwd
22926ac_abs_builddir=$ac_pwd$ac_dir_suffix
22927# for backward compatibility:
22928ac_top_builddir=$ac_top_build_prefix
22929
22930case $srcdir in
22931  .)  # We are building in place.
22932    ac_srcdir=.
22933    ac_top_srcdir=$ac_top_builddir_sub
22934    ac_abs_top_srcdir=$ac_pwd ;;
22935  [\\/]* | ?:[\\/]* )  # Absolute name.
22936    ac_srcdir=$srcdir$ac_dir_suffix;
22937    ac_top_srcdir=$srcdir
22938    ac_abs_top_srcdir=$srcdir ;;
22939  *) # Relative name.
22940    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22941    ac_top_srcdir=$ac_top_build_prefix$srcdir
22942    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22943esac
22944ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22945
22946
22947  case $ac_mode in
22948  :F)
22949  #
22950  # CONFIG_FILE
22951  #
22952
22953  case $INSTALL in
22954  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22955  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22956  esac
22957  ac_MKDIR_P=$MKDIR_P
22958  case $MKDIR_P in
22959  [\\/$]* | ?:[\\/]* ) ;;
22960  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22961  esac
22962_ACEOF
22963
22964cat >>$CONFIG_STATUS <<\_ACEOF
22965# If the template does not know about datarootdir, expand it.
22966# FIXME: This hack should be removed a few years after 2.60.
22967ac_datarootdir_hack=; ac_datarootdir_seen=
22968
22969case `sed -n '/datarootdir/ {
22970  p
22971  q
22972}
22973/@datadir@/p
22974/@docdir@/p
22975/@infodir@/p
22976/@localedir@/p
22977/@mandir@/p
22978' $ac_file_inputs` in
22979*datarootdir*) ac_datarootdir_seen=yes;;
22980*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22981  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22982echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22983_ACEOF
22984cat >>$CONFIG_STATUS <<_ACEOF
22985  ac_datarootdir_hack='
22986  s&@datadir@&$datadir&g
22987  s&@docdir@&$docdir&g
22988  s&@infodir@&$infodir&g
22989  s&@localedir@&$localedir&g
22990  s&@mandir@&$mandir&g
22991    s&\\\${datarootdir}&$datarootdir&g' ;;
22992esac
22993_ACEOF
22994
22995# Neutralize VPATH when `$srcdir' = `.'.
22996# Shell code in configure.ac might set extrasub.
22997# FIXME: do we really want to maintain this feature?
22998cat >>$CONFIG_STATUS <<_ACEOF
22999  sed "$ac_vpsub
23000$extrasub
23001_ACEOF
23002cat >>$CONFIG_STATUS <<\_ACEOF
23003:t
23004/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23005s&@configure_input@&$configure_input&;t t
23006s&@top_builddir@&$ac_top_builddir_sub&;t t
23007s&@srcdir@&$ac_srcdir&;t t
23008s&@abs_srcdir@&$ac_abs_srcdir&;t t
23009s&@top_srcdir@&$ac_top_srcdir&;t t
23010s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23011s&@builddir@&$ac_builddir&;t t
23012s&@abs_builddir@&$ac_abs_builddir&;t t
23013s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23014s&@INSTALL@&$ac_INSTALL&;t t
23015s&@MKDIR_P@&$ac_MKDIR_P&;t t
23016$ac_datarootdir_hack
23017" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23018
23019test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23020  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23021  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23022  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23023which seems to be undefined.  Please make sure it is defined." >&5
23024echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23025which seems to be undefined.  Please make sure it is defined." >&2;}
23026
23027  rm -f "$tmp/stdin"
23028  case $ac_file in
23029  -) cat "$tmp/out"; rm -f "$tmp/out";;
23030  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23031  esac
23032 ;;
23033  :H)
23034  #
23035  # CONFIG_HEADER
23036  #
23037_ACEOF
23038
23039# Transform confdefs.h into a sed script `conftest.defines', that
23040# substitutes the proper values into config.h.in to produce config.h.
23041rm -f conftest.defines conftest.tail
23042# First, append a space to every undef/define line, to ease matching.
23043echo 's/$/ /' >conftest.defines
23044# Then, protect against being on the right side of a sed subst, or in
23045# an unquoted here document, in config.status.  If some macros were
23046# called several times there might be several #defines for the same
23047# symbol, which is useless.  But do not sort them, since the last
23048# AC_DEFINE must be honored.
23049ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23050# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23051# NAME is the cpp macro being defined, VALUE is the value it is being given.
23052# PARAMS is the parameter list in the macro definition--in most cases, it's
23053# just an empty string.
23054ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
23055ac_dB='\\)[	 (].*,\\1define\\2'
23056ac_dC=' '
23057ac_dD=' ,'
23058
23059uniq confdefs.h |
23060  sed -n '
23061	t rset
23062	:rset
23063	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
23064	t ok
23065	d
23066	:ok
23067	s/[\\&,]/\\&/g
23068	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23069	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23070  ' >>conftest.defines
23071
23072# Remove the space that was appended to ease matching.
23073# Then replace #undef with comments.  This is necessary, for
23074# example, in the case of _POSIX_SOURCE, which is predefined and required
23075# on some systems where configure will not decide to define it.
23076# (The regexp can be short, since the line contains either #define or #undef.)
23077echo 's/ $//
23078s,^[	 #]*u.*,/* & */,' >>conftest.defines
23079
23080# Break up conftest.defines:
23081ac_max_sed_lines=50
23082
23083# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23084# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23085# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23086# et cetera.
23087ac_in='$ac_file_inputs'
23088ac_out='"$tmp/out1"'
23089ac_nxt='"$tmp/out2"'
23090
23091while :
23092do
23093  # Write a here document:
23094    cat >>$CONFIG_STATUS <<_ACEOF
23095    # First, check the format of the line:
23096    cat >"\$tmp/defines.sed" <<\\CEOF
23097/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
23098/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
23099b
23100:def
23101_ACEOF
23102  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23103  echo 'CEOF
23104    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23105  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23106  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23107  grep . conftest.tail >/dev/null || break
23108  rm -f conftest.defines
23109  mv conftest.tail conftest.defines
23110done
23111rm -f conftest.defines conftest.tail
23112
23113echo "ac_result=$ac_in" >>$CONFIG_STATUS
23114cat >>$CONFIG_STATUS <<\_ACEOF
23115  if test x"$ac_file" != x-; then
23116    echo "/* $configure_input  */" >"$tmp/config.h"
23117    cat "$ac_result" >>"$tmp/config.h"
23118    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23119      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23120echo "$as_me: $ac_file is unchanged" >&6;}
23121    else
23122      rm -f $ac_file
23123      mv "$tmp/config.h" $ac_file
23124    fi
23125  else
23126    echo "/* $configure_input  */"
23127    cat "$ac_result"
23128  fi
23129  rm -f "$tmp/out12"
23130# Compute $ac_file's index in $config_headers.
23131_am_arg=$ac_file
23132_am_stamp_count=1
23133for _am_header in $config_headers :; do
23134  case $_am_header in
23135    $_am_arg | $_am_arg:* )
23136      break ;;
23137    * )
23138      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23139  esac
23140done
23141echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23142$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23143	 X"$_am_arg" : 'X\(//\)[^/]' \| \
23144	 X"$_am_arg" : 'X\(//\)$' \| \
23145	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23146echo X"$_am_arg" |
23147    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23148	    s//\1/
23149	    q
23150	  }
23151	  /^X\(\/\/\)[^/].*/{
23152	    s//\1/
23153	    q
23154	  }
23155	  /^X\(\/\/\)$/{
23156	    s//\1/
23157	    q
23158	  }
23159	  /^X\(\/\).*/{
23160	    s//\1/
23161	    q
23162	  }
23163	  s/.*/./; q'`/stamp-h$_am_stamp_count
23164 ;;
23165
23166  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23167echo "$as_me: executing $ac_file commands" >&6;}
23168 ;;
23169  esac
23170
23171
23172  case $ac_file$ac_mode in
23173    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23174  # Strip MF so we end up with the name of the file.
23175  mf=`echo "$mf" | sed -e 's/:.*$//'`
23176  # Check whether this is an Automake generated Makefile or not.
23177  # We used to match only the files named `Makefile.in', but
23178  # some people rename them; so instead we look at the file content.
23179  # Grep'ing the first line is not enough: some people post-process
23180  # each Makefile.in and add a new line on top of each file to say so.
23181  # Grep'ing the whole file is not good either: AIX grep has a line
23182  # limit of 2048, but all sed's we know have understand at least 4000.
23183  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23184    dirpart=`$as_dirname -- "$mf" ||
23185$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23186	 X"$mf" : 'X\(//\)[^/]' \| \
23187	 X"$mf" : 'X\(//\)$' \| \
23188	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23189echo X"$mf" |
23190    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23191	    s//\1/
23192	    q
23193	  }
23194	  /^X\(\/\/\)[^/].*/{
23195	    s//\1/
23196	    q
23197	  }
23198	  /^X\(\/\/\)$/{
23199	    s//\1/
23200	    q
23201	  }
23202	  /^X\(\/\).*/{
23203	    s//\1/
23204	    q
23205	  }
23206	  s/.*/./; q'`
23207  else
23208    continue
23209  fi
23210  # Extract the definition of DEPDIR, am__include, and am__quote
23211  # from the Makefile without running `make'.
23212  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23213  test -z "$DEPDIR" && continue
23214  am__include=`sed -n 's/^am__include = //p' < "$mf"`
23215  test -z "am__include" && continue
23216  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23217  # When using ansi2knr, U may be empty or an underscore; expand it
23218  U=`sed -n 's/^U = //p' < "$mf"`
23219  # Find all dependency output files, they are included files with
23220  # $(DEPDIR) in their names.  We invoke sed twice because it is the
23221  # simplest approach to changing $(DEPDIR) to its actual value in the
23222  # expansion.
23223  for file in `sed -n "
23224    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23225       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23226    # Make sure the directory exists.
23227    test -f "$dirpart/$file" && continue
23228    fdir=`$as_dirname -- "$file" ||
23229$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23230	 X"$file" : 'X\(//\)[^/]' \| \
23231	 X"$file" : 'X\(//\)$' \| \
23232	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23233echo X"$file" |
23234    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23235	    s//\1/
23236	    q
23237	  }
23238	  /^X\(\/\/\)[^/].*/{
23239	    s//\1/
23240	    q
23241	  }
23242	  /^X\(\/\/\)$/{
23243	    s//\1/
23244	    q
23245	  }
23246	  /^X\(\/\).*/{
23247	    s//\1/
23248	    q
23249	  }
23250	  s/.*/./; q'`
23251    { as_dir=$dirpart/$fdir
23252  case $as_dir in #(
23253  -*) as_dir=./$as_dir;;
23254  esac
23255  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23256    as_dirs=
23257    while :; do
23258      case $as_dir in #(
23259      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23260      *) as_qdir=$as_dir;;
23261      esac
23262      as_dirs="'$as_qdir' $as_dirs"
23263      as_dir=`$as_dirname -- "$as_dir" ||
23264$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23265	 X"$as_dir" : 'X\(//\)[^/]' \| \
23266	 X"$as_dir" : 'X\(//\)$' \| \
23267	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23268echo X"$as_dir" |
23269    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23270	    s//\1/
23271	    q
23272	  }
23273	  /^X\(\/\/\)[^/].*/{
23274	    s//\1/
23275	    q
23276	  }
23277	  /^X\(\/\/\)$/{
23278	    s//\1/
23279	    q
23280	  }
23281	  /^X\(\/\).*/{
23282	    s//\1/
23283	    q
23284	  }
23285	  s/.*/./; q'`
23286      test -d "$as_dir" && break
23287    done
23288    test -z "$as_dirs" || eval "mkdir $as_dirs"
23289  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23290echo "$as_me: error: cannot create directory $as_dir" >&2;}
23291   { (exit 1); exit 1; }; }; }
23292    # echo "creating $dirpart/$file"
23293    echo '# dummy' > "$dirpart/$file"
23294  done
23295done
23296 ;;
23297
23298  esac
23299done # for ac_tag
23300
23301
23302{ (exit 0); exit 0; }
23303_ACEOF
23304chmod +x $CONFIG_STATUS
23305ac_clean_files=$ac_clean_files_save
23306
23307
23308# configure is writing to config.log, and then calls config.status.
23309# config.status does its own redirection, appending to config.log.
23310# Unfortunately, on DOS this fails, as config.log is still kept open
23311# by configure, so config.status won't be able to write to it; its
23312# output is simply discarded.  So we exec the FD to /dev/null,
23313# effectively closing config.log, so it can be properly (re)opened and
23314# appended to by config.status.  When coming back to configure, we
23315# need to make the FD available again.
23316if test "$no_create" != yes; then
23317  ac_cs_success=:
23318  ac_config_status_args=
23319  test "$silent" = yes &&
23320    ac_config_status_args="$ac_config_status_args --quiet"
23321  exec 5>/dev/null
23322  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23323  exec 5>>config.log
23324  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23325  # would make configure fail if this is the last instruction.
23326  $ac_cs_success || { (exit 1); exit 1; }
23327fi
23328
23329