1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for hadoop-pipes 0.13.0.
4#
5# Report bugs to <omalley@apache.org>.
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='hadoop-pipes'
730PACKAGE_TARNAME='hadoop-pipes'
731PACKAGE_VERSION='0.13.0'
732PACKAGE_STRING='hadoop-pipes 0.13.0'
733PACKAGE_BUGREPORT='omalley@apache.org'
734
735ac_unique_file="impl/HadoopPipes.cc"
736ac_default_prefix=`pwd`/../install
737# Factoring default headers for most tests.
738ac_includes_default="\
739#include <stdio.h>
740#ifdef HAVE_SYS_TYPES_H
741# include <sys/types.h>
742#endif
743#ifdef HAVE_SYS_STAT_H
744# include <sys/stat.h>
745#endif
746#ifdef STDC_HEADERS
747# include <stdlib.h>
748# include <stddef.h>
749#else
750# ifdef HAVE_STDLIB_H
751#  include <stdlib.h>
752# endif
753#endif
754#ifdef HAVE_STRING_H
755# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
756#  include <memory.h>
757# endif
758# include <string.h>
759#endif
760#ifdef HAVE_STRINGS_H
761# include <strings.h>
762#endif
763#ifdef HAVE_INTTYPES_H
764# include <inttypes.h>
765#endif
766#ifdef HAVE_STDINT_H
767# include <stdint.h>
768#endif
769#ifdef HAVE_UNISTD_H
770# include <unistd.h>
771#endif"
772
773ac_subst_vars='SHELL
774PATH_SEPARATOR
775PACKAGE_NAME
776PACKAGE_TARNAME
777PACKAGE_VERSION
778PACKAGE_STRING
779PACKAGE_BUGREPORT
780exec_prefix
781prefix
782program_transform_name
783bindir
784sbindir
785libexecdir
786datarootdir
787datadir
788sysconfdir
789sharedstatedir
790localstatedir
791includedir
792oldincludedir
793docdir
794infodir
795htmldir
796dvidir
797pdfdir
798psdir
799libdir
800localedir
801mandir
802DEFS
803ECHO_C
804ECHO_N
805ECHO_T
806LIBS
807build_alias
808host_alias
809target_alias
810INSTALL_PROGRAM
811INSTALL_SCRIPT
812INSTALL_DATA
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
847HADOOP_UTILS_PREFIX
848CPP
849GREP
850EGREP
851CXX
852CXXFLAGS
853ac_ct_CXX
854CXXDEPMODE
855am__fastdepCXX_TRUE
856am__fastdepCXX_FALSE
857build
858build_cpu
859build_vendor
860build_os
861host
862host_cpu
863host_vendor
864host_os
865SED
866LN_S
867ECHO
868AR
869RANLIB
870CXXCPP
871F77
872FFLAGS
873ac_ct_F77
874LIBTOOL
875LIBOBJS
876LTLIBOBJS'
877ac_subst_files=''
878      ac_precious_vars='build_alias
879host_alias
880target_alias
881CC
882CFLAGS
883LDFLAGS
884LIBS
885CPPFLAGS
886CPP
887CXX
888CXXFLAGS
889CCC
890CXXCPP
891F77
892FFLAGS'
893
894
895# Initialize some variables set by options.
896ac_init_help=
897ac_init_version=false
898# The variables have the same names as the options, with
899# dashes changed to underlines.
900cache_file=/dev/null
901exec_prefix=NONE
902no_create=
903no_recursion=
904prefix=NONE
905program_prefix=NONE
906program_suffix=NONE
907program_transform_name=s,x,x,
908silent=
909site=
910srcdir=
911verbose=
912x_includes=NONE
913x_libraries=NONE
914
915# Installation directory options.
916# These are left unexpanded so users can "make install exec_prefix=/foo"
917# and all the variables that are supposed to be based on exec_prefix
918# by default will actually change.
919# Use braces instead of parens because sh, perl, etc. also accept them.
920# (The list follows the same order as the GNU Coding Standards.)
921bindir='${exec_prefix}/bin'
922sbindir='${exec_prefix}/sbin'
923libexecdir='${exec_prefix}/libexec'
924datarootdir='${prefix}/share'
925datadir='${datarootdir}'
926sysconfdir='${prefix}/etc'
927sharedstatedir='${prefix}/com'
928localstatedir='${prefix}/var'
929includedir='${prefix}/include'
930oldincludedir='/usr/include'
931docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
932infodir='${datarootdir}/info'
933htmldir='${docdir}'
934dvidir='${docdir}'
935pdfdir='${docdir}'
936psdir='${docdir}'
937libdir='${exec_prefix}/lib'
938localedir='${datarootdir}/locale'
939mandir='${datarootdir}/man'
940
941ac_prev=
942ac_dashdash=
943for ac_option
944do
945  # If the previous option needs an argument, assign it.
946  if test -n "$ac_prev"; then
947    eval $ac_prev=\$ac_option
948    ac_prev=
949    continue
950  fi
951
952  case $ac_option in
953  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
954  *)	ac_optarg=yes ;;
955  esac
956
957  # Accept the important Cygnus configure options, so we can diagnose typos.
958
959  case $ac_dashdash$ac_option in
960  --)
961    ac_dashdash=yes ;;
962
963  -bindir | --bindir | --bindi | --bind | --bin | --bi)
964    ac_prev=bindir ;;
965  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
966    bindir=$ac_optarg ;;
967
968  -build | --build | --buil | --bui | --bu)
969    ac_prev=build_alias ;;
970  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
971    build_alias=$ac_optarg ;;
972
973  -cache-file | --cache-file | --cache-fil | --cache-fi \
974  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
975    ac_prev=cache_file ;;
976  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
977  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
978    cache_file=$ac_optarg ;;
979
980  --config-cache | -C)
981    cache_file=config.cache ;;
982
983  -datadir | --datadir | --datadi | --datad)
984    ac_prev=datadir ;;
985  -datadir=* | --datadir=* | --datadi=* | --datad=*)
986    datadir=$ac_optarg ;;
987
988  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
989  | --dataroo | --dataro | --datar)
990    ac_prev=datarootdir ;;
991  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
992  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
993    datarootdir=$ac_optarg ;;
994
995  -disable-* | --disable-*)
996    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
997    # Reject names that are not valid shell variable names.
998    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
999      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1000   { (exit 1); exit 1; }; }
1001    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1002    eval enable_$ac_feature=no ;;
1003
1004  -docdir | --docdir | --docdi | --doc | --do)
1005    ac_prev=docdir ;;
1006  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1007    docdir=$ac_optarg ;;
1008
1009  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1010    ac_prev=dvidir ;;
1011  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1012    dvidir=$ac_optarg ;;
1013
1014  -enable-* | --enable-*)
1015    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1016    # Reject names that are not valid shell variable names.
1017    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1018      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1019   { (exit 1); exit 1; }; }
1020    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1021    eval enable_$ac_feature=\$ac_optarg ;;
1022
1023  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1024  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1025  | --exec | --exe | --ex)
1026    ac_prev=exec_prefix ;;
1027  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1028  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1029  | --exec=* | --exe=* | --ex=*)
1030    exec_prefix=$ac_optarg ;;
1031
1032  -gas | --gas | --ga | --g)
1033    # Obsolete; use --with-gas.
1034    with_gas=yes ;;
1035
1036  -help | --help | --hel | --he | -h)
1037    ac_init_help=long ;;
1038  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1039    ac_init_help=recursive ;;
1040  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1041    ac_init_help=short ;;
1042
1043  -host | --host | --hos | --ho)
1044    ac_prev=host_alias ;;
1045  -host=* | --host=* | --hos=* | --ho=*)
1046    host_alias=$ac_optarg ;;
1047
1048  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1049    ac_prev=htmldir ;;
1050  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1051  | --ht=*)
1052    htmldir=$ac_optarg ;;
1053
1054  -includedir | --includedir | --includedi | --included | --include \
1055  | --includ | --inclu | --incl | --inc)
1056    ac_prev=includedir ;;
1057  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1058  | --includ=* | --inclu=* | --incl=* | --inc=*)
1059    includedir=$ac_optarg ;;
1060
1061  -infodir | --infodir | --infodi | --infod | --info | --inf)
1062    ac_prev=infodir ;;
1063  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1064    infodir=$ac_optarg ;;
1065
1066  -libdir | --libdir | --libdi | --libd)
1067    ac_prev=libdir ;;
1068  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1069    libdir=$ac_optarg ;;
1070
1071  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1072  | --libexe | --libex | --libe)
1073    ac_prev=libexecdir ;;
1074  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1075  | --libexe=* | --libex=* | --libe=*)
1076    libexecdir=$ac_optarg ;;
1077
1078  -localedir | --localedir | --localedi | --localed | --locale)
1079    ac_prev=localedir ;;
1080  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1081    localedir=$ac_optarg ;;
1082
1083  -localstatedir | --localstatedir | --localstatedi | --localstated \
1084  | --localstate | --localstat | --localsta | --localst | --locals)
1085    ac_prev=localstatedir ;;
1086  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1087  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1088    localstatedir=$ac_optarg ;;
1089
1090  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1091    ac_prev=mandir ;;
1092  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1093    mandir=$ac_optarg ;;
1094
1095  -nfp | --nfp | --nf)
1096    # Obsolete; use --without-fp.
1097    with_fp=no ;;
1098
1099  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1100  | --no-cr | --no-c | -n)
1101    no_create=yes ;;
1102
1103  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1104  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1105    no_recursion=yes ;;
1106
1107  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1108  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1109  | --oldin | --oldi | --old | --ol | --o)
1110    ac_prev=oldincludedir ;;
1111  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1112  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1113  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1114    oldincludedir=$ac_optarg ;;
1115
1116  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1117    ac_prev=prefix ;;
1118  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1119    prefix=$ac_optarg ;;
1120
1121  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1122  | --program-pre | --program-pr | --program-p)
1123    ac_prev=program_prefix ;;
1124  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1125  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1126    program_prefix=$ac_optarg ;;
1127
1128  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1129  | --program-suf | --program-su | --program-s)
1130    ac_prev=program_suffix ;;
1131  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1132  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1133    program_suffix=$ac_optarg ;;
1134
1135  -program-transform-name | --program-transform-name \
1136  | --program-transform-nam | --program-transform-na \
1137  | --program-transform-n | --program-transform- \
1138  | --program-transform | --program-transfor \
1139  | --program-transfo | --program-transf \
1140  | --program-trans | --program-tran \
1141  | --progr-tra | --program-tr | --program-t)
1142    ac_prev=program_transform_name ;;
1143  -program-transform-name=* | --program-transform-name=* \
1144  | --program-transform-nam=* | --program-transform-na=* \
1145  | --program-transform-n=* | --program-transform-=* \
1146  | --program-transform=* | --program-transfor=* \
1147  | --program-transfo=* | --program-transf=* \
1148  | --program-trans=* | --program-tran=* \
1149  | --progr-tra=* | --program-tr=* | --program-t=*)
1150    program_transform_name=$ac_optarg ;;
1151
1152  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1153    ac_prev=pdfdir ;;
1154  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1155    pdfdir=$ac_optarg ;;
1156
1157  -psdir | --psdir | --psdi | --psd | --ps)
1158    ac_prev=psdir ;;
1159  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1160    psdir=$ac_optarg ;;
1161
1162  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1163  | -silent | --silent | --silen | --sile | --sil)
1164    silent=yes ;;
1165
1166  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1167    ac_prev=sbindir ;;
1168  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1169  | --sbi=* | --sb=*)
1170    sbindir=$ac_optarg ;;
1171
1172  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1173  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1174  | --sharedst | --shareds | --shared | --share | --shar \
1175  | --sha | --sh)
1176    ac_prev=sharedstatedir ;;
1177  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1178  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1179  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1180  | --sha=* | --sh=*)
1181    sharedstatedir=$ac_optarg ;;
1182
1183  -site | --site | --sit)
1184    ac_prev=site ;;
1185  -site=* | --site=* | --sit=*)
1186    site=$ac_optarg ;;
1187
1188  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1189    ac_prev=srcdir ;;
1190  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1191    srcdir=$ac_optarg ;;
1192
1193  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1194  | --syscon | --sysco | --sysc | --sys | --sy)
1195    ac_prev=sysconfdir ;;
1196  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1197  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1198    sysconfdir=$ac_optarg ;;
1199
1200  -target | --target | --targe | --targ | --tar | --ta | --t)
1201    ac_prev=target_alias ;;
1202  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1203    target_alias=$ac_optarg ;;
1204
1205  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1206    verbose=yes ;;
1207
1208  -version | --version | --versio | --versi | --vers | -V)
1209    ac_init_version=: ;;
1210
1211  -with-* | --with-*)
1212    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1213    # Reject names that are not valid shell variable names.
1214    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215      { echo "$as_me: error: invalid package name: $ac_package" >&2
1216   { (exit 1); exit 1; }; }
1217    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1218    eval with_$ac_package=\$ac_optarg ;;
1219
1220  -without-* | --without-*)
1221    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1222    # Reject names that are not valid shell variable names.
1223    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224      { echo "$as_me: error: invalid package name: $ac_package" >&2
1225   { (exit 1); exit 1; }; }
1226    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1227    eval with_$ac_package=no ;;
1228
1229  --x)
1230    # Obsolete; use --with-x.
1231    with_x=yes ;;
1232
1233  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234  | --x-incl | --x-inc | --x-in | --x-i)
1235    ac_prev=x_includes ;;
1236  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238    x_includes=$ac_optarg ;;
1239
1240  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242    ac_prev=x_libraries ;;
1243  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245    x_libraries=$ac_optarg ;;
1246
1247  -*) { echo "$as_me: error: unrecognized option: $ac_option
1248Try \`$0 --help' for more information." >&2
1249   { (exit 1); exit 1; }; }
1250    ;;
1251
1252  *=*)
1253    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1254    # Reject names that are not valid shell variable names.
1255    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1256      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1257   { (exit 1); exit 1; }; }
1258    eval $ac_envvar=\$ac_optarg
1259    export $ac_envvar ;;
1260
1261  *)
1262    # FIXME: should be removed in autoconf 3.0.
1263    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1264    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1266    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1267    ;;
1268
1269  esac
1270done
1271
1272if test -n "$ac_prev"; then
1273  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1274  { echo "$as_me: error: missing argument to $ac_option" >&2
1275   { (exit 1); exit 1; }; }
1276fi
1277
1278# Be sure to have absolute directory names.
1279for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1280		datadir sysconfdir sharedstatedir localstatedir includedir \
1281		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1282		libdir localedir mandir
1283do
1284  eval ac_val=\$$ac_var
1285  case $ac_val in
1286    [\\/$]* | ?:[\\/]* )  continue;;
1287    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1288  esac
1289  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1290   { (exit 1); exit 1; }; }
1291done
1292
1293# There might be people who depend on the old broken behavior: `$host'
1294# used to hold the argument of --host etc.
1295# FIXME: To remove some day.
1296build=$build_alias
1297host=$host_alias
1298target=$target_alias
1299
1300# FIXME: To remove some day.
1301if test "x$host_alias" != x; then
1302  if test "x$build_alias" = x; then
1303    cross_compiling=maybe
1304    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1305    If a cross compiler is detected then cross compile mode will be used." >&2
1306  elif test "x$build_alias" != "x$host_alias"; then
1307    cross_compiling=yes
1308  fi
1309fi
1310
1311ac_tool_prefix=
1312test -n "$host_alias" && ac_tool_prefix=$host_alias-
1313
1314test "$silent" = yes && exec 6>/dev/null
1315
1316
1317ac_pwd=`pwd` && test -n "$ac_pwd" &&
1318ac_ls_di=`ls -di .` &&
1319ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1320  { echo "$as_me: error: Working directory cannot be determined" >&2
1321   { (exit 1); exit 1; }; }
1322test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1323  { echo "$as_me: error: pwd does not report name of working directory" >&2
1324   { (exit 1); exit 1; }; }
1325
1326
1327# Find the source files, if location was not specified.
1328if test -z "$srcdir"; then
1329  ac_srcdir_defaulted=yes
1330  # Try the directory containing this script, then the parent directory.
1331  ac_confdir=`$as_dirname -- "$0" ||
1332$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1333	 X"$0" : 'X\(//\)[^/]' \| \
1334	 X"$0" : 'X\(//\)$' \| \
1335	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1336echo X"$0" |
1337    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1338	    s//\1/
1339	    q
1340	  }
1341	  /^X\(\/\/\)[^/].*/{
1342	    s//\1/
1343	    q
1344	  }
1345	  /^X\(\/\/\)$/{
1346	    s//\1/
1347	    q
1348	  }
1349	  /^X\(\/\).*/{
1350	    s//\1/
1351	    q
1352	  }
1353	  s/.*/./; q'`
1354  srcdir=$ac_confdir
1355  if test ! -r "$srcdir/$ac_unique_file"; then
1356    srcdir=..
1357  fi
1358else
1359  ac_srcdir_defaulted=no
1360fi
1361if test ! -r "$srcdir/$ac_unique_file"; then
1362  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1363  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1364   { (exit 1); exit 1; }; }
1365fi
1366ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1367ac_abs_confdir=`(
1368	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1369   { (exit 1); exit 1; }; }
1370	pwd)`
1371# When building in place, set srcdir=.
1372if test "$ac_abs_confdir" = "$ac_pwd"; then
1373  srcdir=.
1374fi
1375# Remove unnecessary trailing slashes from srcdir.
1376# Double slashes in file names in object file debugging info
1377# mess up M-x gdb in Emacs.
1378case $srcdir in
1379*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1380esac
1381for ac_var in $ac_precious_vars; do
1382  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383  eval ac_env_${ac_var}_value=\$${ac_var}
1384  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386done
1387
1388#
1389# Report the --help message.
1390#
1391if test "$ac_init_help" = "long"; then
1392  # Omit some internal or obsolete options to make the list less imposing.
1393  # This message is too long to be a string in the A/UX 3.1 sh.
1394  cat <<_ACEOF
1395\`configure' configures hadoop-pipes 0.13.0 to adapt to many kinds of systems.
1396
1397Usage: $0 [OPTION]... [VAR=VALUE]...
1398
1399To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400VAR=VALUE.  See below for descriptions of some of the useful variables.
1401
1402Defaults for the options are specified in brackets.
1403
1404Configuration:
1405  -h, --help              display this help and exit
1406      --help=short        display options specific to this package
1407      --help=recursive    display the short help of all the included packages
1408  -V, --version           display version information and exit
1409  -q, --quiet, --silent   do not print \`checking...' messages
1410      --cache-file=FILE   cache test results in FILE [disabled]
1411  -C, --config-cache      alias for \`--cache-file=config.cache'
1412  -n, --no-create         do not create output files
1413      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1414
1415Installation directories:
1416  --prefix=PREFIX         install architecture-independent files in PREFIX
1417			  [$ac_default_prefix]
1418  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1419			  [PREFIX]
1420
1421By default, \`make install' will install all the files in
1422\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1423an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424for instance \`--prefix=\$HOME'.
1425
1426For better control, use the options below.
1427
1428Fine tuning of the installation directories:
1429  --bindir=DIR           user executables [EPREFIX/bin]
1430  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1431  --libexecdir=DIR       program executables [EPREFIX/libexec]
1432  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1433  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1434  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1435  --libdir=DIR           object code libraries [EPREFIX/lib]
1436  --includedir=DIR       C header files [PREFIX/include]
1437  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1438  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1439  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1440  --infodir=DIR          info documentation [DATAROOTDIR/info]
1441  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1442  --mandir=DIR           man documentation [DATAROOTDIR/man]
1443  --docdir=DIR           documentation root [DATAROOTDIR/doc/hadoop-pipes]
1444  --htmldir=DIR          html documentation [DOCDIR]
1445  --dvidir=DIR           dvi documentation [DOCDIR]
1446  --pdfdir=DIR           pdf documentation [DOCDIR]
1447  --psdir=DIR            ps documentation [DOCDIR]
1448_ACEOF
1449
1450  cat <<\_ACEOF
1451
1452Program names:
1453  --program-prefix=PREFIX            prepend PREFIX to installed program names
1454  --program-suffix=SUFFIX            append SUFFIX to installed program names
1455  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1456
1457System types:
1458  --build=BUILD     configure for building on BUILD [guessed]
1459  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1460_ACEOF
1461fi
1462
1463if test -n "$ac_init_help"; then
1464  case $ac_init_help in
1465     short | recursive ) echo "Configuration of hadoop-pipes 0.13.0:";;
1466   esac
1467  cat <<\_ACEOF
1468
1469Optional Features:
1470  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1471  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1472  --disable-largefile     omit support for large files
1473  --disable-dependency-tracking  speeds up one-time build
1474  --enable-dependency-tracking   do not reject slow dependency extractors
1475  --enable-shared[=PKGS]  build shared libraries [default=yes]
1476  --enable-static[=PKGS]  build static libraries [default=yes]
1477  --enable-fast-install[=PKGS]
1478                          optimize for fast installation [default=yes]
1479  --disable-libtool-lock  avoid locking (might break parallel builds)
1480
1481Optional Packages:
1482  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1483  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1484  --with-hadoop-utils=<dir>
1485                          directory to get hadoop_utils from
1486  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1487  --with-pic              try to use only PIC/non-PIC objects [default=use
1488                          both]
1489  --with-tags[=TAGS]      include additional configurations [automatic]
1490
1491Some influential environment variables:
1492  CC          C compiler command
1493  CFLAGS      C compiler flags
1494  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1495              nonstandard directory <lib dir>
1496  LIBS        libraries to pass to the linker, e.g. -l<library>
1497  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1498              you have headers in a nonstandard directory <include dir>
1499  CPP         C preprocessor
1500  CXX         C++ compiler command
1501  CXXFLAGS    C++ compiler flags
1502  CXXCPP      C++ preprocessor
1503  F77         Fortran 77 compiler command
1504  FFLAGS      Fortran 77 compiler flags
1505
1506Use these variables to override the choices made by `configure' or to help
1507it to find libraries and programs with nonstandard names/locations.
1508
1509Report bugs to <omalley@apache.org>.
1510_ACEOF
1511ac_status=$?
1512fi
1513
1514if test "$ac_init_help" = "recursive"; then
1515  # If there are subdirs, report their specific --help.
1516  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1517    test -d "$ac_dir" || continue
1518    ac_builddir=.
1519
1520case "$ac_dir" in
1521.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522*)
1523  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1524  # A ".." for each directory in $ac_dir_suffix.
1525  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1526  case $ac_top_builddir_sub in
1527  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529  esac ;;
1530esac
1531ac_abs_top_builddir=$ac_pwd
1532ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533# for backward compatibility:
1534ac_top_builddir=$ac_top_build_prefix
1535
1536case $srcdir in
1537  .)  # We are building in place.
1538    ac_srcdir=.
1539    ac_top_srcdir=$ac_top_builddir_sub
1540    ac_abs_top_srcdir=$ac_pwd ;;
1541  [\\/]* | ?:[\\/]* )  # Absolute name.
1542    ac_srcdir=$srcdir$ac_dir_suffix;
1543    ac_top_srcdir=$srcdir
1544    ac_abs_top_srcdir=$srcdir ;;
1545  *) # Relative name.
1546    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547    ac_top_srcdir=$ac_top_build_prefix$srcdir
1548    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1549esac
1550ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1551
1552    cd "$ac_dir" || { ac_status=$?; continue; }
1553    # Check for guested configure.
1554    if test -f "$ac_srcdir/configure.gnu"; then
1555      echo &&
1556      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557    elif test -f "$ac_srcdir/configure"; then
1558      echo &&
1559      $SHELL "$ac_srcdir/configure" --help=recursive
1560    else
1561      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1562    fi || ac_status=$?
1563    cd "$ac_pwd" || { ac_status=$?; break; }
1564  done
1565fi
1566
1567test -n "$ac_init_help" && exit $ac_status
1568if $ac_init_version; then
1569  cat <<\_ACEOF
1570hadoop-pipes configure 0.13.0
1571generated by GNU Autoconf 2.61
1572
1573Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15742002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1575This configure script is free software; the Free Software Foundation
1576gives unlimited permission to copy, distribute and modify it.
1577_ACEOF
1578  exit
1579fi
1580cat >config.log <<_ACEOF
1581This file contains any messages produced by compilers while
1582running configure, to aid debugging if configure makes a mistake.
1583
1584It was created by hadoop-pipes $as_me 0.13.0, which was
1585generated by GNU Autoconf 2.61.  Invocation command line was
1586
1587  $ $0 $@
1588
1589_ACEOF
1590exec 5>>config.log
1591{
1592cat <<_ASUNAME
1593## --------- ##
1594## Platform. ##
1595## --------- ##
1596
1597hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1598uname -m = `(uname -m) 2>/dev/null || echo unknown`
1599uname -r = `(uname -r) 2>/dev/null || echo unknown`
1600uname -s = `(uname -s) 2>/dev/null || echo unknown`
1601uname -v = `(uname -v) 2>/dev/null || echo unknown`
1602
1603/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1604/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1605
1606/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1607/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1608/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1609/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1610/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1611/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1612/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1613
1614_ASUNAME
1615
1616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617for as_dir in $PATH
1618do
1619  IFS=$as_save_IFS
1620  test -z "$as_dir" && as_dir=.
1621  echo "PATH: $as_dir"
1622done
1623IFS=$as_save_IFS
1624
1625} >&5
1626
1627cat >&5 <<_ACEOF
1628
1629
1630## ----------- ##
1631## Core tests. ##
1632## ----------- ##
1633
1634_ACEOF
1635
1636
1637# Keep a trace of the command line.
1638# Strip out --no-create and --no-recursion so they do not pile up.
1639# Strip out --silent because we don't want to record it for future runs.
1640# Also quote any args containing shell meta-characters.
1641# Make two passes to allow for proper duplicate-argument suppression.
1642ac_configure_args=
1643ac_configure_args0=
1644ac_configure_args1=
1645ac_must_keep_next=false
1646for ac_pass in 1 2
1647do
1648  for ac_arg
1649  do
1650    case $ac_arg in
1651    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1652    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1653    | -silent | --silent | --silen | --sile | --sil)
1654      continue ;;
1655    *\'*)
1656      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1657    esac
1658    case $ac_pass in
1659    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1660    2)
1661      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1662      if test $ac_must_keep_next = true; then
1663	ac_must_keep_next=false # Got value, back to normal.
1664      else
1665	case $ac_arg in
1666	  *=* | --config-cache | -C | -disable-* | --disable-* \
1667	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1668	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1669	  | -with-* | --with-* | -without-* | --without-* | --x)
1670	    case "$ac_configure_args0 " in
1671	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1672	    esac
1673	    ;;
1674	  -* ) ac_must_keep_next=true ;;
1675	esac
1676      fi
1677      ac_configure_args="$ac_configure_args '$ac_arg'"
1678      ;;
1679    esac
1680  done
1681done
1682$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1683$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1684
1685# When interrupted or exit'd, cleanup temporary files, and complete
1686# config.log.  We remove comments because anyway the quotes in there
1687# would cause problems or look ugly.
1688# WARNING: Use '\'' to represent an apostrophe within the trap.
1689# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1690trap 'exit_status=$?
1691  # Save into config.log some information that might help in debugging.
1692  {
1693    echo
1694
1695    cat <<\_ASBOX
1696## ---------------- ##
1697## Cache variables. ##
1698## ---------------- ##
1699_ASBOX
1700    echo
1701    # The following way of writing the cache mishandles newlines in values,
1702(
1703  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1704    eval ac_val=\$$ac_var
1705    case $ac_val in #(
1706    *${as_nl}*)
1707      case $ac_var in #(
1708      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1709echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1710      esac
1711      case $ac_var in #(
1712      _ | IFS | as_nl) ;; #(
1713      *) $as_unset $ac_var ;;
1714      esac ;;
1715    esac
1716  done
1717  (set) 2>&1 |
1718    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1719    *${as_nl}ac_space=\ *)
1720      sed -n \
1721	"s/'\''/'\''\\\\'\'''\''/g;
1722	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1723      ;; #(
1724    *)
1725      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1726      ;;
1727    esac |
1728    sort
1729)
1730    echo
1731
1732    cat <<\_ASBOX
1733## ----------------- ##
1734## Output variables. ##
1735## ----------------- ##
1736_ASBOX
1737    echo
1738    for ac_var in $ac_subst_vars
1739    do
1740      eval ac_val=\$$ac_var
1741      case $ac_val in
1742      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1743      esac
1744      echo "$ac_var='\''$ac_val'\''"
1745    done | sort
1746    echo
1747
1748    if test -n "$ac_subst_files"; then
1749      cat <<\_ASBOX
1750## ------------------- ##
1751## File substitutions. ##
1752## ------------------- ##
1753_ASBOX
1754      echo
1755      for ac_var in $ac_subst_files
1756      do
1757	eval ac_val=\$$ac_var
1758	case $ac_val in
1759	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1760	esac
1761	echo "$ac_var='\''$ac_val'\''"
1762      done | sort
1763      echo
1764    fi
1765
1766    if test -s confdefs.h; then
1767      cat <<\_ASBOX
1768## ----------- ##
1769## confdefs.h. ##
1770## ----------- ##
1771_ASBOX
1772      echo
1773      cat confdefs.h
1774      echo
1775    fi
1776    test "$ac_signal" != 0 &&
1777      echo "$as_me: caught signal $ac_signal"
1778    echo "$as_me: exit $exit_status"
1779  } >&5
1780  rm -f core *.core core.conftest.* &&
1781    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1782    exit $exit_status
1783' 0
1784for ac_signal in 1 2 13 15; do
1785  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1786done
1787ac_signal=0
1788
1789# confdefs.h avoids OS command line length limits that DEFS can exceed.
1790rm -f -r conftest* confdefs.h
1791
1792# Predefined preprocessor variables.
1793
1794cat >>confdefs.h <<_ACEOF
1795#define PACKAGE_NAME "$PACKAGE_NAME"
1796_ACEOF
1797
1798
1799cat >>confdefs.h <<_ACEOF
1800#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1801_ACEOF
1802
1803
1804cat >>confdefs.h <<_ACEOF
1805#define PACKAGE_VERSION "$PACKAGE_VERSION"
1806_ACEOF
1807
1808
1809cat >>confdefs.h <<_ACEOF
1810#define PACKAGE_STRING "$PACKAGE_STRING"
1811_ACEOF
1812
1813
1814cat >>confdefs.h <<_ACEOF
1815#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1816_ACEOF
1817
1818
1819# Let the site file select an alternate cache file if it wants to.
1820# Prefer explicitly selected file to automatically selected ones.
1821if test -n "$CONFIG_SITE"; then
1822  set x "$CONFIG_SITE"
1823elif test "x$prefix" != xNONE; then
1824  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1825else
1826  set x "$ac_default_prefix/share/config.site" \
1827	"$ac_default_prefix/etc/config.site"
1828fi
1829shift
1830for ac_site_file
1831do
1832  if test -r "$ac_site_file"; then
1833    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1834echo "$as_me: loading site script $ac_site_file" >&6;}
1835    sed 's/^/| /' "$ac_site_file" >&5
1836    . "$ac_site_file"
1837  fi
1838done
1839
1840if test -r "$cache_file"; then
1841  # Some versions of bash will fail to source /dev/null (special
1842  # files actually), so we avoid doing that.
1843  if test -f "$cache_file"; then
1844    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1845echo "$as_me: loading cache $cache_file" >&6;}
1846    case $cache_file in
1847      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1848      *)                      . "./$cache_file";;
1849    esac
1850  fi
1851else
1852  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1853echo "$as_me: creating cache $cache_file" >&6;}
1854  >$cache_file
1855fi
1856
1857# Check that the precious variables saved in the cache have kept the same
1858# value.
1859ac_cache_corrupted=false
1860for ac_var in $ac_precious_vars; do
1861  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1862  eval ac_new_set=\$ac_env_${ac_var}_set
1863  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1864  eval ac_new_val=\$ac_env_${ac_var}_value
1865  case $ac_old_set,$ac_new_set in
1866    set,)
1867      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1868echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1869      ac_cache_corrupted=: ;;
1870    ,set)
1871      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1872echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1873      ac_cache_corrupted=: ;;
1874    ,);;
1875    *)
1876      if test "x$ac_old_val" != "x$ac_new_val"; then
1877	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1878echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1879	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1880echo "$as_me:   former value:  $ac_old_val" >&2;}
1881	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1882echo "$as_me:   current value: $ac_new_val" >&2;}
1883	ac_cache_corrupted=:
1884      fi;;
1885  esac
1886  # Pass precious variables to config.status.
1887  if test "$ac_new_set" = set; then
1888    case $ac_new_val in
1889    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1890    *) ac_arg=$ac_var=$ac_new_val ;;
1891    esac
1892    case " $ac_configure_args " in
1893      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1894      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1895    esac
1896  fi
1897done
1898if $ac_cache_corrupted; then
1899  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1900echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1901  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1902echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1903   { (exit 1); exit 1; }; }
1904fi
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930ac_ext=c
1931ac_cpp='$CPP $CPPFLAGS'
1932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1934ac_compiler_gnu=$ac_cv_c_compiler_gnu
1935
1936
1937
1938am__api_version="1.9"
1939ac_aux_dir=
1940for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1941  if test -f "$ac_dir/install-sh"; then
1942    ac_aux_dir=$ac_dir
1943    ac_install_sh="$ac_aux_dir/install-sh -c"
1944    break
1945  elif test -f "$ac_dir/install.sh"; then
1946    ac_aux_dir=$ac_dir
1947    ac_install_sh="$ac_aux_dir/install.sh -c"
1948    break
1949  elif test -f "$ac_dir/shtool"; then
1950    ac_aux_dir=$ac_dir
1951    ac_install_sh="$ac_aux_dir/shtool install -c"
1952    break
1953  fi
1954done
1955if test -z "$ac_aux_dir"; then
1956  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1957echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1958   { (exit 1); exit 1; }; }
1959fi
1960
1961# These three variables are undocumented and unsupported,
1962# and are intended to be withdrawn in a future Autoconf release.
1963# They can cause serious problems if a builder's source tree is in a directory
1964# whose full name contains unusual characters.
1965ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1966ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1967ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1968
1969
1970# Find a good install program.  We prefer a C program (faster),
1971# so one script is as good as another.  But avoid the broken or
1972# incompatible versions:
1973# SysV /etc/install, /usr/sbin/install
1974# SunOS /usr/etc/install
1975# IRIX /sbin/install
1976# AIX /bin/install
1977# AmigaOS /C/install, which installs bootblocks on floppy discs
1978# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1979# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1980# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1981# OS/2's system install, which has a completely different semantic
1982# ./install, which can be erroneously created by make from ./install.sh.
1983{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1984echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1985if test -z "$INSTALL"; then
1986if test "${ac_cv_path_install+set}" = set; then
1987  echo $ECHO_N "(cached) $ECHO_C" >&6
1988else
1989  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990for as_dir in $PATH
1991do
1992  IFS=$as_save_IFS
1993  test -z "$as_dir" && as_dir=.
1994  # Account for people who put trailing slashes in PATH elements.
1995case $as_dir/ in
1996  ./ | .// | /cC/* | \
1997  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1998  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1999  /usr/ucb/* ) ;;
2000  *)
2001    # OSF1 and SCO ODT 3.0 have their own names for install.
2002    # Don't use installbsd from OSF since it installs stuff as root
2003    # by default.
2004    for ac_prog in ginstall scoinst install; do
2005      for ac_exec_ext in '' $ac_executable_extensions; do
2006	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2007	  if test $ac_prog = install &&
2008	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2009	    # AIX install.  It has an incompatible calling convention.
2010	    :
2011	  elif test $ac_prog = install &&
2012	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2013	    # program-specific install script used by HP pwplus--don't use.
2014	    :
2015	  else
2016	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2017	    break 3
2018	  fi
2019	fi
2020      done
2021    done
2022    ;;
2023esac
2024done
2025IFS=$as_save_IFS
2026
2027
2028fi
2029  if test "${ac_cv_path_install+set}" = set; then
2030    INSTALL=$ac_cv_path_install
2031  else
2032    # As a last resort, use the slow shell script.  Don't cache a
2033    # value for INSTALL within a source directory, because that will
2034    # break other packages using the cache if that directory is
2035    # removed, or if the value is a relative name.
2036    INSTALL=$ac_install_sh
2037  fi
2038fi
2039{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2040echo "${ECHO_T}$INSTALL" >&6; }
2041
2042# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2043# It thinks the first close brace ends the variable substitution.
2044test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2045
2046test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2047
2048test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2049
2050{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2051echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2052# Just in case
2053sleep 1
2054echo timestamp > conftest.file
2055# Do `set' in a subshell so we don't clobber the current shell's
2056# arguments.  Must try -L first in case configure is actually a
2057# symlink; some systems play weird games with the mod time of symlinks
2058# (eg FreeBSD returns the mod time of the symlink's containing
2059# directory).
2060if (
2061   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2062   if test "$*" = "X"; then
2063      # -L didn't work.
2064      set X `ls -t $srcdir/configure conftest.file`
2065   fi
2066   rm -f conftest.file
2067   if test "$*" != "X $srcdir/configure conftest.file" \
2068      && test "$*" != "X conftest.file $srcdir/configure"; then
2069
2070      # If neither matched, then we have a broken ls.  This can happen
2071      # if, for instance, CONFIG_SHELL is bash and it inherits a
2072      # broken ls alias from the environment.  This has actually
2073      # happened.  Such a system could not be considered "sane".
2074      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2075alias in your environment" >&5
2076echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2077alias in your environment" >&2;}
2078   { (exit 1); exit 1; }; }
2079   fi
2080
2081   test "$2" = conftest.file
2082   )
2083then
2084   # Ok.
2085   :
2086else
2087   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2088Check your system clock" >&5
2089echo "$as_me: error: newly created file is older than distributed files!
2090Check your system clock" >&2;}
2091   { (exit 1); exit 1; }; }
2092fi
2093{ echo "$as_me:$LINENO: result: yes" >&5
2094echo "${ECHO_T}yes" >&6; }
2095test "$program_prefix" != NONE &&
2096  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2097# Use a double $ so make ignores it.
2098test "$program_suffix" != NONE &&
2099  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2100# Double any \ or $.  echo might interpret backslashes.
2101# By default was `s,x,x', remove it if useless.
2102cat <<\_ACEOF >conftest.sed
2103s/[\\$]/&&/g;s/;s,x,x,$//
2104_ACEOF
2105program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2106rm -f conftest.sed
2107
2108# expand $ac_aux_dir to an absolute path
2109am_aux_dir=`cd $ac_aux_dir && pwd`
2110
2111test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2112# Use eval to expand $SHELL
2113if eval "$MISSING --run true"; then
2114  am_missing_run="$MISSING --run "
2115else
2116  am_missing_run=
2117  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2118echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2119fi
2120
2121if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2122  # We used to keeping the `.' as first argument, in order to
2123  # allow $(mkdir_p) to be used without argument.  As in
2124  #   $(mkdir_p) $(somedir)
2125  # where $(somedir) is conditionally defined.  However this is wrong
2126  # for two reasons:
2127  #  1. if the package is installed by a user who cannot write `.'
2128  #     make install will fail,
2129  #  2. the above comment should most certainly read
2130  #     $(mkdir_p) $(DESTDIR)$(somedir)
2131  #     so it does not work when $(somedir) is undefined and
2132  #     $(DESTDIR) is not.
2133  #  To support the latter case, we have to write
2134  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2135  #  so the `.' trick is pointless.
2136  mkdir_p='mkdir -p --'
2137else
2138  # On NextStep and OpenStep, the `mkdir' command does not
2139  # recognize any option.  It will interpret all options as
2140  # directories to create, and then abort because `.' already
2141  # exists.
2142  for d in ./-p ./--version;
2143  do
2144    test -d $d && rmdir $d
2145  done
2146  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2147  if test -f "$ac_aux_dir/mkinstalldirs"; then
2148    mkdir_p='$(mkinstalldirs)'
2149  else
2150    mkdir_p='$(install_sh) -d'
2151  fi
2152fi
2153
2154for ac_prog in gawk mawk nawk awk
2155do
2156  # Extract the first word of "$ac_prog", so it can be a program name with args.
2157set dummy $ac_prog; ac_word=$2
2158{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2160if test "${ac_cv_prog_AWK+set}" = set; then
2161  echo $ECHO_N "(cached) $ECHO_C" >&6
2162else
2163  if test -n "$AWK"; then
2164  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2165else
2166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167for as_dir in $PATH
2168do
2169  IFS=$as_save_IFS
2170  test -z "$as_dir" && as_dir=.
2171  for ac_exec_ext in '' $ac_executable_extensions; do
2172  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2173    ac_cv_prog_AWK="$ac_prog"
2174    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2175    break 2
2176  fi
2177done
2178done
2179IFS=$as_save_IFS
2180
2181fi
2182fi
2183AWK=$ac_cv_prog_AWK
2184if test -n "$AWK"; then
2185  { echo "$as_me:$LINENO: result: $AWK" >&5
2186echo "${ECHO_T}$AWK" >&6; }
2187else
2188  { echo "$as_me:$LINENO: result: no" >&5
2189echo "${ECHO_T}no" >&6; }
2190fi
2191
2192
2193  test -n "$AWK" && break
2194done
2195
2196{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2197echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2198set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2199if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2200  echo $ECHO_N "(cached) $ECHO_C" >&6
2201else
2202  cat >conftest.make <<\_ACEOF
2203SHELL = /bin/sh
2204all:
2205	@echo '@@@%%%=$(MAKE)=@@@%%%'
2206_ACEOF
2207# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2208case `${MAKE-make} -f conftest.make 2>/dev/null` in
2209  *@@@%%%=?*=@@@%%%*)
2210    eval ac_cv_prog_make_${ac_make}_set=yes;;
2211  *)
2212    eval ac_cv_prog_make_${ac_make}_set=no;;
2213esac
2214rm -f conftest.make
2215fi
2216if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2217  { echo "$as_me:$LINENO: result: yes" >&5
2218echo "${ECHO_T}yes" >&6; }
2219  SET_MAKE=
2220else
2221  { echo "$as_me:$LINENO: result: no" >&5
2222echo "${ECHO_T}no" >&6; }
2223  SET_MAKE="MAKE=${MAKE-make}"
2224fi
2225
2226rm -rf .tst 2>/dev/null
2227mkdir .tst 2>/dev/null
2228if test -d .tst; then
2229  am__leading_dot=.
2230else
2231  am__leading_dot=_
2232fi
2233rmdir .tst 2>/dev/null
2234
2235# test to see if srcdir already configured
2236if test "`cd $srcdir && pwd`" != "`pwd`" &&
2237   test -f $srcdir/config.status; then
2238  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2239echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2240   { (exit 1); exit 1; }; }
2241fi
2242
2243# test whether we have cygpath
2244if test -z "$CYGPATH_W"; then
2245  if (cygpath --version) >/dev/null 2>/dev/null; then
2246    CYGPATH_W='cygpath -w'
2247  else
2248    CYGPATH_W=echo
2249  fi
2250fi
2251
2252
2253# Define the identity of the package.
2254 PACKAGE='hadoop-pipes'
2255 VERSION='0.13.0'
2256
2257
2258cat >>confdefs.h <<_ACEOF
2259#define PACKAGE "$PACKAGE"
2260_ACEOF
2261
2262
2263cat >>confdefs.h <<_ACEOF
2264#define VERSION "$VERSION"
2265_ACEOF
2266
2267# Some tools Automake needs.
2268
2269ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2270
2271
2272AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2273
2274
2275AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2276
2277
2278AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2279
2280
2281MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2282
2283install_sh=${install_sh-"$am_aux_dir/install-sh"}
2284
2285# Installed binaries are usually stripped using `strip' when the user
2286# run `make install-strip'.  However `strip' might not be the right
2287# tool to use in cross-compilation environments, therefore Automake
2288# will honor the `STRIP' environment variable to overrule this program.
2289if test "$cross_compiling" != no; then
2290  if test -n "$ac_tool_prefix"; then
2291  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2292set dummy ${ac_tool_prefix}strip; ac_word=$2
2293{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2295if test "${ac_cv_prog_STRIP+set}" = set; then
2296  echo $ECHO_N "(cached) $ECHO_C" >&6
2297else
2298  if test -n "$STRIP"; then
2299  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2300else
2301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302for as_dir in $PATH
2303do
2304  IFS=$as_save_IFS
2305  test -z "$as_dir" && as_dir=.
2306  for ac_exec_ext in '' $ac_executable_extensions; do
2307  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2308    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2309    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2310    break 2
2311  fi
2312done
2313done
2314IFS=$as_save_IFS
2315
2316fi
2317fi
2318STRIP=$ac_cv_prog_STRIP
2319if test -n "$STRIP"; then
2320  { echo "$as_me:$LINENO: result: $STRIP" >&5
2321echo "${ECHO_T}$STRIP" >&6; }
2322else
2323  { echo "$as_me:$LINENO: result: no" >&5
2324echo "${ECHO_T}no" >&6; }
2325fi
2326
2327
2328fi
2329if test -z "$ac_cv_prog_STRIP"; then
2330  ac_ct_STRIP=$STRIP
2331  # Extract the first word of "strip", so it can be a program name with args.
2332set dummy strip; ac_word=$2
2333{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2335if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2336  echo $ECHO_N "(cached) $ECHO_C" >&6
2337else
2338  if test -n "$ac_ct_STRIP"; then
2339  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2340else
2341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342for as_dir in $PATH
2343do
2344  IFS=$as_save_IFS
2345  test -z "$as_dir" && as_dir=.
2346  for ac_exec_ext in '' $ac_executable_extensions; do
2347  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2348    ac_cv_prog_ac_ct_STRIP="strip"
2349    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2350    break 2
2351  fi
2352done
2353done
2354IFS=$as_save_IFS
2355
2356fi
2357fi
2358ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2359if test -n "$ac_ct_STRIP"; then
2360  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2361echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2362else
2363  { echo "$as_me:$LINENO: result: no" >&5
2364echo "${ECHO_T}no" >&6; }
2365fi
2366
2367  if test "x$ac_ct_STRIP" = x; then
2368    STRIP=":"
2369  else
2370    case $cross_compiling:$ac_tool_warned in
2371yes:)
2372{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2373whose name does not start with the host triplet.  If you think this
2374configuration is useful to you, please write to autoconf@gnu.org." >&5
2375echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2376whose name does not start with the host triplet.  If you think this
2377configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2378ac_tool_warned=yes ;;
2379esac
2380    STRIP=$ac_ct_STRIP
2381  fi
2382else
2383  STRIP="$ac_cv_prog_STRIP"
2384fi
2385
2386fi
2387INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2388
2389# We need awk for the "check" target.  The system "awk" is bad on
2390# some platforms.
2391# Always define AMTAR for backward compatibility.
2392
2393AMTAR=${AMTAR-"${am_missing_run}tar"}
2394
2395am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2396
2397
2398
2399
2400
2401
2402
2403ac_config_headers="$ac_config_headers impl/config.h"
2404
2405ac_config_files="$ac_config_files Makefile"
2406
2407
2408
2409
2410
2411cat >>confdefs.h <<\_ACEOF
2412#define _GNU_SOURCE 1
2413_ACEOF
2414
2415
2416DEPDIR="${am__leading_dot}deps"
2417
2418ac_config_commands="$ac_config_commands depfiles"
2419
2420
2421am_make=${MAKE-make}
2422cat > confinc << 'END'
2423am__doit:
2424	@echo done
2425.PHONY: am__doit
2426END
2427# If we don't find an include directive, just comment out the code.
2428{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2429echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2430am__include="#"
2431am__quote=
2432_am_result=none
2433# First try GNU make style include.
2434echo "include confinc" > confmf
2435# We grep out `Entering directory' and `Leaving directory'
2436# messages which can occur if `w' ends up in MAKEFLAGS.
2437# In particular we don't look at `^make:' because GNU make might
2438# be invoked under some other name (usually "gmake"), in which
2439# case it prints its new name instead of `make'.
2440if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2441   am__include=include
2442   am__quote=
2443   _am_result=GNU
2444fi
2445# Now try BSD make style include.
2446if test "$am__include" = "#"; then
2447   echo '.include "confinc"' > confmf
2448   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2449      am__include=.include
2450      am__quote="\""
2451      _am_result=BSD
2452   fi
2453fi
2454
2455
2456{ echo "$as_me:$LINENO: result: $_am_result" >&5
2457echo "${ECHO_T}$_am_result" >&6; }
2458rm -f confinc confmf
2459
2460# Check whether --enable-dependency-tracking was given.
2461if test "${enable_dependency_tracking+set}" = set; then
2462  enableval=$enable_dependency_tracking;
2463fi
2464
2465if test "x$enable_dependency_tracking" != xno; then
2466  am_depcomp="$ac_aux_dir/depcomp"
2467  AMDEPBACKSLASH='\'
2468fi
2469
2470
2471if test "x$enable_dependency_tracking" != xno; then
2472  AMDEP_TRUE=
2473  AMDEP_FALSE='#'
2474else
2475  AMDEP_TRUE='#'
2476  AMDEP_FALSE=
2477fi
2478
2479
2480
2481ac_ext=c
2482ac_cpp='$CPP $CPPFLAGS'
2483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2485ac_compiler_gnu=$ac_cv_c_compiler_gnu
2486if test -n "$ac_tool_prefix"; then
2487  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2488set dummy ${ac_tool_prefix}gcc; ac_word=$2
2489{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2491if test "${ac_cv_prog_CC+set}" = set; then
2492  echo $ECHO_N "(cached) $ECHO_C" >&6
2493else
2494  if test -n "$CC"; then
2495  ac_cv_prog_CC="$CC" # Let the user override the test.
2496else
2497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498for as_dir in $PATH
2499do
2500  IFS=$as_save_IFS
2501  test -z "$as_dir" && as_dir=.
2502  for ac_exec_ext in '' $ac_executable_extensions; do
2503  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2504    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2505    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2506    break 2
2507  fi
2508done
2509done
2510IFS=$as_save_IFS
2511
2512fi
2513fi
2514CC=$ac_cv_prog_CC
2515if test -n "$CC"; then
2516  { echo "$as_me:$LINENO: result: $CC" >&5
2517echo "${ECHO_T}$CC" >&6; }
2518else
2519  { echo "$as_me:$LINENO: result: no" >&5
2520echo "${ECHO_T}no" >&6; }
2521fi
2522
2523
2524fi
2525if test -z "$ac_cv_prog_CC"; then
2526  ac_ct_CC=$CC
2527  # Extract the first word of "gcc", so it can be a program name with args.
2528set dummy gcc; ac_word=$2
2529{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2531if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2532  echo $ECHO_N "(cached) $ECHO_C" >&6
2533else
2534  if test -n "$ac_ct_CC"; then
2535  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2536else
2537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538for as_dir in $PATH
2539do
2540  IFS=$as_save_IFS
2541  test -z "$as_dir" && as_dir=.
2542  for ac_exec_ext in '' $ac_executable_extensions; do
2543  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2544    ac_cv_prog_ac_ct_CC="gcc"
2545    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2546    break 2
2547  fi
2548done
2549done
2550IFS=$as_save_IFS
2551
2552fi
2553fi
2554ac_ct_CC=$ac_cv_prog_ac_ct_CC
2555if test -n "$ac_ct_CC"; then
2556  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2557echo "${ECHO_T}$ac_ct_CC" >&6; }
2558else
2559  { echo "$as_me:$LINENO: result: no" >&5
2560echo "${ECHO_T}no" >&6; }
2561fi
2562
2563  if test "x$ac_ct_CC" = x; then
2564    CC=""
2565  else
2566    case $cross_compiling:$ac_tool_warned in
2567yes:)
2568{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2569whose name does not start with the host triplet.  If you think this
2570configuration is useful to you, please write to autoconf@gnu.org." >&5
2571echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2572whose name does not start with the host triplet.  If you think this
2573configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2574ac_tool_warned=yes ;;
2575esac
2576    CC=$ac_ct_CC
2577  fi
2578else
2579  CC="$ac_cv_prog_CC"
2580fi
2581
2582if test -z "$CC"; then
2583          if test -n "$ac_tool_prefix"; then
2584    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2585set dummy ${ac_tool_prefix}cc; ac_word=$2
2586{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2588if test "${ac_cv_prog_CC+set}" = set; then
2589  echo $ECHO_N "(cached) $ECHO_C" >&6
2590else
2591  if test -n "$CC"; then
2592  ac_cv_prog_CC="$CC" # Let the user override the test.
2593else
2594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595for as_dir in $PATH
2596do
2597  IFS=$as_save_IFS
2598  test -z "$as_dir" && as_dir=.
2599  for ac_exec_ext in '' $ac_executable_extensions; do
2600  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2601    ac_cv_prog_CC="${ac_tool_prefix}cc"
2602    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2603    break 2
2604  fi
2605done
2606done
2607IFS=$as_save_IFS
2608
2609fi
2610fi
2611CC=$ac_cv_prog_CC
2612if test -n "$CC"; then
2613  { echo "$as_me:$LINENO: result: $CC" >&5
2614echo "${ECHO_T}$CC" >&6; }
2615else
2616  { echo "$as_me:$LINENO: result: no" >&5
2617echo "${ECHO_T}no" >&6; }
2618fi
2619
2620
2621  fi
2622fi
2623if test -z "$CC"; then
2624  # Extract the first word of "cc", so it can be a program name with args.
2625set dummy cc; ac_word=$2
2626{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2628if test "${ac_cv_prog_CC+set}" = set; then
2629  echo $ECHO_N "(cached) $ECHO_C" >&6
2630else
2631  if test -n "$CC"; then
2632  ac_cv_prog_CC="$CC" # Let the user override the test.
2633else
2634  ac_prog_rejected=no
2635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636for as_dir in $PATH
2637do
2638  IFS=$as_save_IFS
2639  test -z "$as_dir" && as_dir=.
2640  for ac_exec_ext in '' $ac_executable_extensions; do
2641  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2642    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2643       ac_prog_rejected=yes
2644       continue
2645     fi
2646    ac_cv_prog_CC="cc"
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
2654if test $ac_prog_rejected = yes; then
2655  # We found a bogon in the path, so make sure we never use it.
2656  set dummy $ac_cv_prog_CC
2657  shift
2658  if test $# != 0; then
2659    # We chose a different compiler from the bogus one.
2660    # However, it has the same basename, so the bogon will be chosen
2661    # first if we set CC to just the basename; use the full file name.
2662    shift
2663    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2664  fi
2665fi
2666fi
2667fi
2668CC=$ac_cv_prog_CC
2669if test -n "$CC"; then
2670  { echo "$as_me:$LINENO: result: $CC" >&5
2671echo "${ECHO_T}$CC" >&6; }
2672else
2673  { echo "$as_me:$LINENO: result: no" >&5
2674echo "${ECHO_T}no" >&6; }
2675fi
2676
2677
2678fi
2679if test -z "$CC"; then
2680  if test -n "$ac_tool_prefix"; then
2681  for ac_prog in cl.exe
2682  do
2683    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2684set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2685{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2687if test "${ac_cv_prog_CC+set}" = set; then
2688  echo $ECHO_N "(cached) $ECHO_C" >&6
2689else
2690  if test -n "$CC"; then
2691  ac_cv_prog_CC="$CC" # Let the user override the test.
2692else
2693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694for as_dir in $PATH
2695do
2696  IFS=$as_save_IFS
2697  test -z "$as_dir" && as_dir=.
2698  for ac_exec_ext in '' $ac_executable_extensions; do
2699  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2700    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2701    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2702    break 2
2703  fi
2704done
2705done
2706IFS=$as_save_IFS
2707
2708fi
2709fi
2710CC=$ac_cv_prog_CC
2711if test -n "$CC"; then
2712  { echo "$as_me:$LINENO: result: $CC" >&5
2713echo "${ECHO_T}$CC" >&6; }
2714else
2715  { echo "$as_me:$LINENO: result: no" >&5
2716echo "${ECHO_T}no" >&6; }
2717fi
2718
2719
2720    test -n "$CC" && break
2721  done
2722fi
2723if test -z "$CC"; then
2724  ac_ct_CC=$CC
2725  for ac_prog in cl.exe
2726do
2727  # Extract the first word of "$ac_prog", so it can be a program name with args.
2728set dummy $ac_prog; ac_word=$2
2729{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2731if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2732  echo $ECHO_N "(cached) $ECHO_C" >&6
2733else
2734  if test -n "$ac_ct_CC"; then
2735  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2736else
2737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738for as_dir in $PATH
2739do
2740  IFS=$as_save_IFS
2741  test -z "$as_dir" && as_dir=.
2742  for ac_exec_ext in '' $ac_executable_extensions; do
2743  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2744    ac_cv_prog_ac_ct_CC="$ac_prog"
2745    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2746    break 2
2747  fi
2748done
2749done
2750IFS=$as_save_IFS
2751
2752fi
2753fi
2754ac_ct_CC=$ac_cv_prog_ac_ct_CC
2755if test -n "$ac_ct_CC"; then
2756  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2757echo "${ECHO_T}$ac_ct_CC" >&6; }
2758else
2759  { echo "$as_me:$LINENO: result: no" >&5
2760echo "${ECHO_T}no" >&6; }
2761fi
2762
2763
2764  test -n "$ac_ct_CC" && break
2765done
2766
2767  if test "x$ac_ct_CC" = x; then
2768    CC=""
2769  else
2770    case $cross_compiling:$ac_tool_warned in
2771yes:)
2772{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2773whose name does not start with the host triplet.  If you think this
2774configuration is useful to you, please write to autoconf@gnu.org." >&5
2775echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2776whose name does not start with the host triplet.  If you think this
2777configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2778ac_tool_warned=yes ;;
2779esac
2780    CC=$ac_ct_CC
2781  fi
2782fi
2783
2784fi
2785
2786
2787test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2788See \`config.log' for more details." >&5
2789echo "$as_me: error: no acceptable C compiler found in \$PATH
2790See \`config.log' for more details." >&2;}
2791   { (exit 1); exit 1; }; }
2792
2793# Provide some information about the compiler.
2794echo "$as_me:$LINENO: checking for C compiler version" >&5
2795ac_compiler=`set X $ac_compile; echo $2`
2796{ (ac_try="$ac_compiler --version >&5"
2797case "(($ac_try" in
2798  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2799  *) ac_try_echo=$ac_try;;
2800esac
2801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2802  (eval "$ac_compiler --version >&5") 2>&5
2803  ac_status=$?
2804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805  (exit $ac_status); }
2806{ (ac_try="$ac_compiler -v >&5"
2807case "(($ac_try" in
2808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809  *) ac_try_echo=$ac_try;;
2810esac
2811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2812  (eval "$ac_compiler -v >&5") 2>&5
2813  ac_status=$?
2814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815  (exit $ac_status); }
2816{ (ac_try="$ac_compiler -V >&5"
2817case "(($ac_try" in
2818  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2819  *) ac_try_echo=$ac_try;;
2820esac
2821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2822  (eval "$ac_compiler -V >&5") 2>&5
2823  ac_status=$?
2824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825  (exit $ac_status); }
2826
2827cat >conftest.$ac_ext <<_ACEOF
2828/* confdefs.h.  */
2829_ACEOF
2830cat confdefs.h >>conftest.$ac_ext
2831cat >>conftest.$ac_ext <<_ACEOF
2832/* end confdefs.h.  */
2833
2834int
2835main ()
2836{
2837
2838  ;
2839  return 0;
2840}
2841_ACEOF
2842ac_clean_files_save=$ac_clean_files
2843ac_clean_files="$ac_clean_files a.out a.exe b.out"
2844# Try to create an executable without -o first, disregard a.out.
2845# It will help us diagnose broken compilers, and finding out an intuition
2846# of exeext.
2847{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2848echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2849ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2850#
2851# List of possible output files, starting from the most likely.
2852# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2853# only as a last resort.  b.out is created by i960 compilers.
2854ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2855#
2856# The IRIX 6 linker writes into existing files which may not be
2857# executable, retaining their permissions.  Remove them first so a
2858# subsequent execution test works.
2859ac_rmfiles=
2860for ac_file in $ac_files
2861do
2862  case $ac_file in
2863    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2864    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2865  esac
2866done
2867rm -f $ac_rmfiles
2868
2869if { (ac_try="$ac_link_default"
2870case "(($ac_try" in
2871  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2872  *) ac_try_echo=$ac_try;;
2873esac
2874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2875  (eval "$ac_link_default") 2>&5
2876  ac_status=$?
2877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878  (exit $ac_status); }; then
2879  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2880# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2881# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2882# so that the user can short-circuit this test for compilers unknown to
2883# Autoconf.
2884for ac_file in $ac_files ''
2885do
2886  test -f "$ac_file" || continue
2887  case $ac_file in
2888    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2889	;;
2890    [ab].out )
2891	# We found the default executable, but exeext='' is most
2892	# certainly right.
2893	break;;
2894    *.* )
2895        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2896	then :; else
2897	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2898	fi
2899	# We set ac_cv_exeext here because the later test for it is not
2900	# safe: cross compilers may not add the suffix if given an `-o'
2901	# argument, so we may need to know it at that point already.
2902	# Even if this section looks crufty: it has the advantage of
2903	# actually working.
2904	break;;
2905    * )
2906	break;;
2907  esac
2908done
2909test "$ac_cv_exeext" = no && ac_cv_exeext=
2910
2911else
2912  ac_file=''
2913fi
2914
2915{ echo "$as_me:$LINENO: result: $ac_file" >&5
2916echo "${ECHO_T}$ac_file" >&6; }
2917if test -z "$ac_file"; then
2918  echo "$as_me: failed program was:" >&5
2919sed 's/^/| /' conftest.$ac_ext >&5
2920
2921{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2922See \`config.log' for more details." >&5
2923echo "$as_me: error: C compiler cannot create executables
2924See \`config.log' for more details." >&2;}
2925   { (exit 77); exit 77; }; }
2926fi
2927
2928ac_exeext=$ac_cv_exeext
2929
2930# Check that the compiler produces executables we can run.  If not, either
2931# the compiler is broken, or we cross compile.
2932{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2933echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2934# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2935# If not cross compiling, check that we can run a simple program.
2936if test "$cross_compiling" != yes; then
2937  if { ac_try='./$ac_file'
2938  { (case "(($ac_try" in
2939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940  *) ac_try_echo=$ac_try;;
2941esac
2942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943  (eval "$ac_try") 2>&5
2944  ac_status=$?
2945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946  (exit $ac_status); }; }; then
2947    cross_compiling=no
2948  else
2949    if test "$cross_compiling" = maybe; then
2950	cross_compiling=yes
2951    else
2952	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2953If you meant to cross compile, use \`--host'.
2954See \`config.log' for more details." >&5
2955echo "$as_me: error: cannot run C compiled programs.
2956If you meant to cross compile, use \`--host'.
2957See \`config.log' for more details." >&2;}
2958   { (exit 1); exit 1; }; }
2959    fi
2960  fi
2961fi
2962{ echo "$as_me:$LINENO: result: yes" >&5
2963echo "${ECHO_T}yes" >&6; }
2964
2965rm -f a.out a.exe conftest$ac_cv_exeext b.out
2966ac_clean_files=$ac_clean_files_save
2967# Check that the compiler produces executables we can run.  If not, either
2968# the compiler is broken, or we cross compile.
2969{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2970echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2971{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2972echo "${ECHO_T}$cross_compiling" >&6; }
2973
2974{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2975echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2976if { (ac_try="$ac_link"
2977case "(($ac_try" in
2978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979  *) ac_try_echo=$ac_try;;
2980esac
2981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982  (eval "$ac_link") 2>&5
2983  ac_status=$?
2984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985  (exit $ac_status); }; then
2986  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2987# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2988# work properly (i.e., refer to `conftest.exe'), while it won't with
2989# `rm'.
2990for ac_file in conftest.exe conftest conftest.*; do
2991  test -f "$ac_file" || continue
2992  case $ac_file in
2993    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2994    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2995	  break;;
2996    * ) break;;
2997  esac
2998done
2999else
3000  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3001See \`config.log' for more details." >&5
3002echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3003See \`config.log' for more details." >&2;}
3004   { (exit 1); exit 1; }; }
3005fi
3006
3007rm -f conftest$ac_cv_exeext
3008{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3009echo "${ECHO_T}$ac_cv_exeext" >&6; }
3010
3011rm -f conftest.$ac_ext
3012EXEEXT=$ac_cv_exeext
3013ac_exeext=$EXEEXT
3014{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3015echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3016if test "${ac_cv_objext+set}" = set; then
3017  echo $ECHO_N "(cached) $ECHO_C" >&6
3018else
3019  cat >conftest.$ac_ext <<_ACEOF
3020/* confdefs.h.  */
3021_ACEOF
3022cat confdefs.h >>conftest.$ac_ext
3023cat >>conftest.$ac_ext <<_ACEOF
3024/* end confdefs.h.  */
3025
3026int
3027main ()
3028{
3029
3030  ;
3031  return 0;
3032}
3033_ACEOF
3034rm -f conftest.o conftest.obj
3035if { (ac_try="$ac_compile"
3036case "(($ac_try" in
3037  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038  *) ac_try_echo=$ac_try;;
3039esac
3040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041  (eval "$ac_compile") 2>&5
3042  ac_status=$?
3043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044  (exit $ac_status); }; then
3045  for ac_file in conftest.o conftest.obj conftest.*; do
3046  test -f "$ac_file" || continue;
3047  case $ac_file in
3048    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3049    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3050       break;;
3051  esac
3052done
3053else
3054  echo "$as_me: failed program was:" >&5
3055sed 's/^/| /' conftest.$ac_ext >&5
3056
3057{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3058See \`config.log' for more details." >&5
3059echo "$as_me: error: cannot compute suffix of object files: cannot compile
3060See \`config.log' for more details." >&2;}
3061   { (exit 1); exit 1; }; }
3062fi
3063
3064rm -f conftest.$ac_cv_objext conftest.$ac_ext
3065fi
3066{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3067echo "${ECHO_T}$ac_cv_objext" >&6; }
3068OBJEXT=$ac_cv_objext
3069ac_objext=$OBJEXT
3070{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3071echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3072if test "${ac_cv_c_compiler_gnu+set}" = set; then
3073  echo $ECHO_N "(cached) $ECHO_C" >&6
3074else
3075  cat >conftest.$ac_ext <<_ACEOF
3076/* confdefs.h.  */
3077_ACEOF
3078cat confdefs.h >>conftest.$ac_ext
3079cat >>conftest.$ac_ext <<_ACEOF
3080/* end confdefs.h.  */
3081
3082int
3083main ()
3084{
3085#ifndef __GNUC__
3086       choke me
3087#endif
3088
3089  ;
3090  return 0;
3091}
3092_ACEOF
3093rm -f conftest.$ac_objext
3094if { (ac_try="$ac_compile"
3095case "(($ac_try" in
3096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097  *) ac_try_echo=$ac_try;;
3098esac
3099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100  (eval "$ac_compile") 2>conftest.er1
3101  ac_status=$?
3102  grep -v '^ *+' conftest.er1 >conftest.err
3103  rm -f conftest.er1
3104  cat conftest.err >&5
3105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106  (exit $ac_status); } && {
3107	 test -z "$ac_c_werror_flag" ||
3108	 test ! -s conftest.err
3109       } && test -s conftest.$ac_objext; then
3110  ac_compiler_gnu=yes
3111else
3112  echo "$as_me: failed program was:" >&5
3113sed 's/^/| /' conftest.$ac_ext >&5
3114
3115	ac_compiler_gnu=no
3116fi
3117
3118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3119ac_cv_c_compiler_gnu=$ac_compiler_gnu
3120
3121fi
3122{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3123echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3124GCC=`test $ac_compiler_gnu = yes && echo yes`
3125ac_test_CFLAGS=${CFLAGS+set}
3126ac_save_CFLAGS=$CFLAGS
3127{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3128echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3129if test "${ac_cv_prog_cc_g+set}" = set; then
3130  echo $ECHO_N "(cached) $ECHO_C" >&6
3131else
3132  ac_save_c_werror_flag=$ac_c_werror_flag
3133   ac_c_werror_flag=yes
3134   ac_cv_prog_cc_g=no
3135   CFLAGS="-g"
3136   cat >conftest.$ac_ext <<_ACEOF
3137/* confdefs.h.  */
3138_ACEOF
3139cat confdefs.h >>conftest.$ac_ext
3140cat >>conftest.$ac_ext <<_ACEOF
3141/* end confdefs.h.  */
3142
3143int
3144main ()
3145{
3146
3147  ;
3148  return 0;
3149}
3150_ACEOF
3151rm -f conftest.$ac_objext
3152if { (ac_try="$ac_compile"
3153case "(($ac_try" in
3154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155  *) ac_try_echo=$ac_try;;
3156esac
3157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158  (eval "$ac_compile") 2>conftest.er1
3159  ac_status=$?
3160  grep -v '^ *+' conftest.er1 >conftest.err
3161  rm -f conftest.er1
3162  cat conftest.err >&5
3163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164  (exit $ac_status); } && {
3165	 test -z "$ac_c_werror_flag" ||
3166	 test ! -s conftest.err
3167       } && test -s conftest.$ac_objext; then
3168  ac_cv_prog_cc_g=yes
3169else
3170  echo "$as_me: failed program was:" >&5
3171sed 's/^/| /' conftest.$ac_ext >&5
3172
3173	CFLAGS=""
3174      cat >conftest.$ac_ext <<_ACEOF
3175/* confdefs.h.  */
3176_ACEOF
3177cat confdefs.h >>conftest.$ac_ext
3178cat >>conftest.$ac_ext <<_ACEOF
3179/* end confdefs.h.  */
3180
3181int
3182main ()
3183{
3184
3185  ;
3186  return 0;
3187}
3188_ACEOF
3189rm -f conftest.$ac_objext
3190if { (ac_try="$ac_compile"
3191case "(($ac_try" in
3192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193  *) ac_try_echo=$ac_try;;
3194esac
3195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3196  (eval "$ac_compile") 2>conftest.er1
3197  ac_status=$?
3198  grep -v '^ *+' conftest.er1 >conftest.err
3199  rm -f conftest.er1
3200  cat conftest.err >&5
3201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202  (exit $ac_status); } && {
3203	 test -z "$ac_c_werror_flag" ||
3204	 test ! -s conftest.err
3205       } && test -s conftest.$ac_objext; then
3206  :
3207else
3208  echo "$as_me: failed program was:" >&5
3209sed 's/^/| /' conftest.$ac_ext >&5
3210
3211	ac_c_werror_flag=$ac_save_c_werror_flag
3212	 CFLAGS="-g"
3213	 cat >conftest.$ac_ext <<_ACEOF
3214/* confdefs.h.  */
3215_ACEOF
3216cat confdefs.h >>conftest.$ac_ext
3217cat >>conftest.$ac_ext <<_ACEOF
3218/* end confdefs.h.  */
3219
3220int
3221main ()
3222{
3223
3224  ;
3225  return 0;
3226}
3227_ACEOF
3228rm -f conftest.$ac_objext
3229if { (ac_try="$ac_compile"
3230case "(($ac_try" in
3231  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232  *) ac_try_echo=$ac_try;;
3233esac
3234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235  (eval "$ac_compile") 2>conftest.er1
3236  ac_status=$?
3237  grep -v '^ *+' conftest.er1 >conftest.err
3238  rm -f conftest.er1
3239  cat conftest.err >&5
3240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241  (exit $ac_status); } && {
3242	 test -z "$ac_c_werror_flag" ||
3243	 test ! -s conftest.err
3244       } && test -s conftest.$ac_objext; then
3245  ac_cv_prog_cc_g=yes
3246else
3247  echo "$as_me: failed program was:" >&5
3248sed 's/^/| /' conftest.$ac_ext >&5
3249
3250
3251fi
3252
3253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3254fi
3255
3256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3257fi
3258
3259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3260   ac_c_werror_flag=$ac_save_c_werror_flag
3261fi
3262{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3263echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3264if test "$ac_test_CFLAGS" = set; then
3265  CFLAGS=$ac_save_CFLAGS
3266elif test $ac_cv_prog_cc_g = yes; then
3267  if test "$GCC" = yes; then
3268    CFLAGS="-g -O2"
3269  else
3270    CFLAGS="-g"
3271  fi
3272else
3273  if test "$GCC" = yes; then
3274    CFLAGS="-O2"
3275  else
3276    CFLAGS=
3277  fi
3278fi
3279{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3280echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3281if test "${ac_cv_prog_cc_c89+set}" = set; then
3282  echo $ECHO_N "(cached) $ECHO_C" >&6
3283else
3284  ac_cv_prog_cc_c89=no
3285ac_save_CC=$CC
3286cat >conftest.$ac_ext <<_ACEOF
3287/* confdefs.h.  */
3288_ACEOF
3289cat confdefs.h >>conftest.$ac_ext
3290cat >>conftest.$ac_ext <<_ACEOF
3291/* end confdefs.h.  */
3292#include <stdarg.h>
3293#include <stdio.h>
3294#include <sys/types.h>
3295#include <sys/stat.h>
3296/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3297struct buf { int x; };
3298FILE * (*rcsopen) (struct buf *, struct stat *, int);
3299static char *e (p, i)
3300     char **p;
3301     int i;
3302{
3303  return p[i];
3304}
3305static char *f (char * (*g) (char **, int), char **p, ...)
3306{
3307  char *s;
3308  va_list v;
3309  va_start (v,p);
3310  s = g (p, va_arg (v,int));
3311  va_end (v);
3312  return s;
3313}
3314
3315/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3316   function prototypes and stuff, but not '\xHH' hex character constants.
3317   These don't provoke an error unfortunately, instead are silently treated
3318   as 'x'.  The following induces an error, until -std is added to get
3319   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3320   array size at least.  It's necessary to write '\x00'==0 to get something
3321   that's true only with -std.  */
3322int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3323
3324/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3325   inside strings and character constants.  */
3326#define FOO(x) 'x'
3327int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3328
3329int test (int i, double x);
3330struct s1 {int (*f) (int a);};
3331struct s2 {int (*f) (double a);};
3332int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3333int argc;
3334char **argv;
3335int
3336main ()
3337{
3338return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3339  ;
3340  return 0;
3341}
3342_ACEOF
3343for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3344	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3345do
3346  CC="$ac_save_CC $ac_arg"
3347  rm -f conftest.$ac_objext
3348if { (ac_try="$ac_compile"
3349case "(($ac_try" in
3350  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351  *) ac_try_echo=$ac_try;;
3352esac
3353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3354  (eval "$ac_compile") 2>conftest.er1
3355  ac_status=$?
3356  grep -v '^ *+' conftest.er1 >conftest.err
3357  rm -f conftest.er1
3358  cat conftest.err >&5
3359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360  (exit $ac_status); } && {
3361	 test -z "$ac_c_werror_flag" ||
3362	 test ! -s conftest.err
3363       } && test -s conftest.$ac_objext; then
3364  ac_cv_prog_cc_c89=$ac_arg
3365else
3366  echo "$as_me: failed program was:" >&5
3367sed 's/^/| /' conftest.$ac_ext >&5
3368
3369
3370fi
3371
3372rm -f core conftest.err conftest.$ac_objext
3373  test "x$ac_cv_prog_cc_c89" != "xno" && break
3374done
3375rm -f conftest.$ac_ext
3376CC=$ac_save_CC
3377
3378fi
3379# AC_CACHE_VAL
3380case "x$ac_cv_prog_cc_c89" in
3381  x)
3382    { echo "$as_me:$LINENO: result: none needed" >&5
3383echo "${ECHO_T}none needed" >&6; } ;;
3384  xno)
3385    { echo "$as_me:$LINENO: result: unsupported" >&5
3386echo "${ECHO_T}unsupported" >&6; } ;;
3387  *)
3388    CC="$CC $ac_cv_prog_cc_c89"
3389    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3390echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3391esac
3392
3393
3394ac_ext=c
3395ac_cpp='$CPP $CPPFLAGS'
3396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3398ac_compiler_gnu=$ac_cv_c_compiler_gnu
3399
3400depcc="$CC"   am_compiler_list=
3401
3402{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3403echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3404if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3405  echo $ECHO_N "(cached) $ECHO_C" >&6
3406else
3407  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3408  # We make a subdir and do the tests there.  Otherwise we can end up
3409  # making bogus files that we don't know about and never remove.  For
3410  # instance it was reported that on HP-UX the gcc test will end up
3411  # making a dummy file named `D' -- because `-MD' means `put the output
3412  # in D'.
3413  mkdir conftest.dir
3414  # Copy depcomp to subdir because otherwise we won't find it if we're
3415  # using a relative directory.
3416  cp "$am_depcomp" conftest.dir
3417  cd conftest.dir
3418  # We will build objects and dependencies in a subdirectory because
3419  # it helps to detect inapplicable dependency modes.  For instance
3420  # both Tru64's cc and ICC support -MD to output dependencies as a
3421  # side effect of compilation, but ICC will put the dependencies in
3422  # the current directory while Tru64 will put them in the object
3423  # directory.
3424  mkdir sub
3425
3426  am_cv_CC_dependencies_compiler_type=none
3427  if test "$am_compiler_list" = ""; then
3428     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3429  fi
3430  for depmode in $am_compiler_list; do
3431    # Setup a source with many dependencies, because some compilers
3432    # like to wrap large dependency lists on column 80 (with \), and
3433    # we should not choose a depcomp mode which is confused by this.
3434    #
3435    # We need to recreate these files for each test, as the compiler may
3436    # overwrite some of them when testing with obscure command lines.
3437    # This happens at least with the AIX C compiler.
3438    : > sub/conftest.c
3439    for i in 1 2 3 4 5 6; do
3440      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3441      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3442      # Solaris 8's {/usr,}/bin/sh.
3443      touch sub/conftst$i.h
3444    done
3445    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3446
3447    case $depmode in
3448    nosideeffect)
3449      # after this tag, mechanisms are not by side-effect, so they'll
3450      # only be used when explicitly requested
3451      if test "x$enable_dependency_tracking" = xyes; then
3452	continue
3453      else
3454	break
3455      fi
3456      ;;
3457    none) break ;;
3458    esac
3459    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3460    # mode.  It turns out that the SunPro C++ compiler does not properly
3461    # handle `-M -o', and we need to detect this.
3462    if depmode=$depmode \
3463       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3464       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3465       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3466         >/dev/null 2>conftest.err &&
3467       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3468       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3469       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3470      # icc doesn't choke on unknown options, it will just issue warnings
3471      # or remarks (even with -Werror).  So we grep stderr for any message
3472      # that says an option was ignored or not supported.
3473      # When given -MP, icc 7.0 and 7.1 complain thusly:
3474      #   icc: Command line warning: ignoring option '-M'; no argument required
3475      # The diagnosis changed in icc 8.0:
3476      #   icc: Command line remark: option '-MP' not supported
3477      if (grep 'ignoring option' conftest.err ||
3478          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3479        am_cv_CC_dependencies_compiler_type=$depmode
3480        break
3481      fi
3482    fi
3483  done
3484
3485  cd ..
3486  rm -rf conftest.dir
3487else
3488  am_cv_CC_dependencies_compiler_type=none
3489fi
3490
3491fi
3492{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3493echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3494CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3495
3496
3497
3498if
3499  test "x$enable_dependency_tracking" != xno \
3500  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3501  am__fastdepCC_TRUE=
3502  am__fastdepCC_FALSE='#'
3503else
3504  am__fastdepCC_TRUE='#'
3505  am__fastdepCC_FALSE=
3506fi
3507
3508
3509
3510# Check whether --enable-largefile was given.
3511if test "${enable_largefile+set}" = set; then
3512  enableval=$enable_largefile;
3513fi
3514
3515if test "$enable_largefile" != no; then
3516
3517  { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3518echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
3519if test "${ac_cv_sys_largefile_CC+set}" = set; then
3520  echo $ECHO_N "(cached) $ECHO_C" >&6
3521else
3522  ac_cv_sys_largefile_CC=no
3523     if test "$GCC" != yes; then
3524       ac_save_CC=$CC
3525       while :; do
3526	 # IRIX 6.2 and later do not support large files by default,
3527	 # so use the C compiler's -n32 option if that helps.
3528	 cat >conftest.$ac_ext <<_ACEOF
3529/* confdefs.h.  */
3530_ACEOF
3531cat confdefs.h >>conftest.$ac_ext
3532cat >>conftest.$ac_ext <<_ACEOF
3533/* end confdefs.h.  */
3534#include <sys/types.h>
3535 /* Check that off_t can represent 2**63 - 1 correctly.
3536    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3537    since some C++ compilers masquerading as C compilers
3538    incorrectly reject 9223372036854775807.  */
3539#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3540  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3541		       && LARGE_OFF_T % 2147483647 == 1)
3542		      ? 1 : -1];
3543int
3544main ()
3545{
3546
3547  ;
3548  return 0;
3549}
3550_ACEOF
3551	 rm -f conftest.$ac_objext
3552if { (ac_try="$ac_compile"
3553case "(($ac_try" in
3554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555  *) ac_try_echo=$ac_try;;
3556esac
3557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3558  (eval "$ac_compile") 2>conftest.er1
3559  ac_status=$?
3560  grep -v '^ *+' conftest.er1 >conftest.err
3561  rm -f conftest.er1
3562  cat conftest.err >&5
3563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564  (exit $ac_status); } && {
3565	 test -z "$ac_c_werror_flag" ||
3566	 test ! -s conftest.err
3567       } && test -s conftest.$ac_objext; then
3568  break
3569else
3570  echo "$as_me: failed program was:" >&5
3571sed 's/^/| /' conftest.$ac_ext >&5
3572
3573
3574fi
3575
3576rm -f core conftest.err conftest.$ac_objext
3577	 CC="$CC -n32"
3578	 rm -f conftest.$ac_objext
3579if { (ac_try="$ac_compile"
3580case "(($ac_try" in
3581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582  *) ac_try_echo=$ac_try;;
3583esac
3584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3585  (eval "$ac_compile") 2>conftest.er1
3586  ac_status=$?
3587  grep -v '^ *+' conftest.er1 >conftest.err
3588  rm -f conftest.er1
3589  cat conftest.err >&5
3590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591  (exit $ac_status); } && {
3592	 test -z "$ac_c_werror_flag" ||
3593	 test ! -s conftest.err
3594       } && test -s conftest.$ac_objext; then
3595  ac_cv_sys_largefile_CC=' -n32'; break
3596else
3597  echo "$as_me: failed program was:" >&5
3598sed 's/^/| /' conftest.$ac_ext >&5
3599
3600
3601fi
3602
3603rm -f core conftest.err conftest.$ac_objext
3604	 break
3605       done
3606       CC=$ac_save_CC
3607       rm -f conftest.$ac_ext
3608    fi
3609fi
3610{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3611echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
3612  if test "$ac_cv_sys_largefile_CC" != no; then
3613    CC=$CC$ac_cv_sys_largefile_CC
3614  fi
3615
3616  { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3617echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
3618if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3619  echo $ECHO_N "(cached) $ECHO_C" >&6
3620else
3621  while :; do
3622  cat >conftest.$ac_ext <<_ACEOF
3623/* confdefs.h.  */
3624_ACEOF
3625cat confdefs.h >>conftest.$ac_ext
3626cat >>conftest.$ac_ext <<_ACEOF
3627/* end confdefs.h.  */
3628#include <sys/types.h>
3629 /* Check that off_t can represent 2**63 - 1 correctly.
3630    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3631    since some C++ compilers masquerading as C compilers
3632    incorrectly reject 9223372036854775807.  */
3633#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3634  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3635		       && LARGE_OFF_T % 2147483647 == 1)
3636		      ? 1 : -1];
3637int
3638main ()
3639{
3640
3641  ;
3642  return 0;
3643}
3644_ACEOF
3645rm -f conftest.$ac_objext
3646if { (ac_try="$ac_compile"
3647case "(($ac_try" in
3648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649  *) ac_try_echo=$ac_try;;
3650esac
3651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3652  (eval "$ac_compile") 2>conftest.er1
3653  ac_status=$?
3654  grep -v '^ *+' conftest.er1 >conftest.err
3655  rm -f conftest.er1
3656  cat conftest.err >&5
3657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658  (exit $ac_status); } && {
3659	 test -z "$ac_c_werror_flag" ||
3660	 test ! -s conftest.err
3661       } && test -s conftest.$ac_objext; then
3662  ac_cv_sys_file_offset_bits=no; break
3663else
3664  echo "$as_me: failed program was:" >&5
3665sed 's/^/| /' conftest.$ac_ext >&5
3666
3667
3668fi
3669
3670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3671  cat >conftest.$ac_ext <<_ACEOF
3672/* confdefs.h.  */
3673_ACEOF
3674cat confdefs.h >>conftest.$ac_ext
3675cat >>conftest.$ac_ext <<_ACEOF
3676/* end confdefs.h.  */
3677#define _FILE_OFFSET_BITS 64
3678#include <sys/types.h>
3679 /* Check that off_t can represent 2**63 - 1 correctly.
3680    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3681    since some C++ compilers masquerading as C compilers
3682    incorrectly reject 9223372036854775807.  */
3683#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3684  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3685		       && LARGE_OFF_T % 2147483647 == 1)
3686		      ? 1 : -1];
3687int
3688main ()
3689{
3690
3691  ;
3692  return 0;
3693}
3694_ACEOF
3695rm -f conftest.$ac_objext
3696if { (ac_try="$ac_compile"
3697case "(($ac_try" in
3698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699  *) ac_try_echo=$ac_try;;
3700esac
3701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3702  (eval "$ac_compile") 2>conftest.er1
3703  ac_status=$?
3704  grep -v '^ *+' conftest.er1 >conftest.err
3705  rm -f conftest.er1
3706  cat conftest.err >&5
3707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708  (exit $ac_status); } && {
3709	 test -z "$ac_c_werror_flag" ||
3710	 test ! -s conftest.err
3711       } && test -s conftest.$ac_objext; then
3712  ac_cv_sys_file_offset_bits=64; break
3713else
3714  echo "$as_me: failed program was:" >&5
3715sed 's/^/| /' conftest.$ac_ext >&5
3716
3717
3718fi
3719
3720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3721  ac_cv_sys_file_offset_bits=unknown
3722  break
3723done
3724fi
3725{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3726echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
3727case $ac_cv_sys_file_offset_bits in #(
3728  no | unknown) ;;
3729  *)
3730cat >>confdefs.h <<_ACEOF
3731#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3732_ACEOF
3733;;
3734esac
3735rm -f conftest*
3736  if test $ac_cv_sys_file_offset_bits = unknown; then
3737    { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3738echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
3739if test "${ac_cv_sys_large_files+set}" = set; then
3740  echo $ECHO_N "(cached) $ECHO_C" >&6
3741else
3742  while :; do
3743  cat >conftest.$ac_ext <<_ACEOF
3744/* confdefs.h.  */
3745_ACEOF
3746cat confdefs.h >>conftest.$ac_ext
3747cat >>conftest.$ac_ext <<_ACEOF
3748/* end confdefs.h.  */
3749#include <sys/types.h>
3750 /* Check that off_t can represent 2**63 - 1 correctly.
3751    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3752    since some C++ compilers masquerading as C compilers
3753    incorrectly reject 9223372036854775807.  */
3754#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3755  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3756		       && LARGE_OFF_T % 2147483647 == 1)
3757		      ? 1 : -1];
3758int
3759main ()
3760{
3761
3762  ;
3763  return 0;
3764}
3765_ACEOF
3766rm -f conftest.$ac_objext
3767if { (ac_try="$ac_compile"
3768case "(($ac_try" in
3769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770  *) ac_try_echo=$ac_try;;
3771esac
3772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3773  (eval "$ac_compile") 2>conftest.er1
3774  ac_status=$?
3775  grep -v '^ *+' conftest.er1 >conftest.err
3776  rm -f conftest.er1
3777  cat conftest.err >&5
3778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779  (exit $ac_status); } && {
3780	 test -z "$ac_c_werror_flag" ||
3781	 test ! -s conftest.err
3782       } && test -s conftest.$ac_objext; then
3783  ac_cv_sys_large_files=no; break
3784else
3785  echo "$as_me: failed program was:" >&5
3786sed 's/^/| /' conftest.$ac_ext >&5
3787
3788
3789fi
3790
3791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3792  cat >conftest.$ac_ext <<_ACEOF
3793/* confdefs.h.  */
3794_ACEOF
3795cat confdefs.h >>conftest.$ac_ext
3796cat >>conftest.$ac_ext <<_ACEOF
3797/* end confdefs.h.  */
3798#define _LARGE_FILES 1
3799#include <sys/types.h>
3800 /* Check that off_t can represent 2**63 - 1 correctly.
3801    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3802    since some C++ compilers masquerading as C compilers
3803    incorrectly reject 9223372036854775807.  */
3804#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3805  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3806		       && LARGE_OFF_T % 2147483647 == 1)
3807		      ? 1 : -1];
3808int
3809main ()
3810{
3811
3812  ;
3813  return 0;
3814}
3815_ACEOF
3816rm -f conftest.$ac_objext
3817if { (ac_try="$ac_compile"
3818case "(($ac_try" in
3819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820  *) ac_try_echo=$ac_try;;
3821esac
3822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3823  (eval "$ac_compile") 2>conftest.er1
3824  ac_status=$?
3825  grep -v '^ *+' conftest.er1 >conftest.err
3826  rm -f conftest.er1
3827  cat conftest.err >&5
3828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829  (exit $ac_status); } && {
3830	 test -z "$ac_c_werror_flag" ||
3831	 test ! -s conftest.err
3832       } && test -s conftest.$ac_objext; then
3833  ac_cv_sys_large_files=1; break
3834else
3835  echo "$as_me: failed program was:" >&5
3836sed 's/^/| /' conftest.$ac_ext >&5
3837
3838
3839fi
3840
3841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3842  ac_cv_sys_large_files=unknown
3843  break
3844done
3845fi
3846{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3847echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
3848case $ac_cv_sys_large_files in #(
3849  no | unknown) ;;
3850  *)
3851cat >>confdefs.h <<_ACEOF
3852#define _LARGE_FILES $ac_cv_sys_large_files
3853_ACEOF
3854;;
3855esac
3856rm -f conftest*
3857  fi
3858fi
3859
3860
3861
3862
3863
3864
3865
3866
3867# Check whether --with-hadoop-utils was given.
3868if test "${with_hadoop_utils+set}" = set; then
3869  withval=$with_hadoop_utils; HADOOP_UTILS_PREFIX="$withval"
3870else
3871  HADOOP_UTILS_PREFIX="\${prefix}"
3872fi
3873
3874
3875
3876ac_ext=c
3877ac_cpp='$CPP $CPPFLAGS'
3878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3880ac_compiler_gnu=$ac_cv_c_compiler_gnu
3881{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3882echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3883# On Suns, sometimes $CPP names a directory.
3884if test -n "$CPP" && test -d "$CPP"; then
3885  CPP=
3886fi
3887if test -z "$CPP"; then
3888  if test "${ac_cv_prog_CPP+set}" = set; then
3889  echo $ECHO_N "(cached) $ECHO_C" >&6
3890else
3891      # Double quotes because CPP needs to be expanded
3892    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3893    do
3894      ac_preproc_ok=false
3895for ac_c_preproc_warn_flag in '' yes
3896do
3897  # Use a header file that comes with gcc, so configuring glibc
3898  # with a fresh cross-compiler works.
3899  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3900  # <limits.h> exists even on freestanding compilers.
3901  # On the NeXT, cc -E runs the code through the compiler's parser,
3902  # not just through cpp. "Syntax error" is here to catch this case.
3903  cat >conftest.$ac_ext <<_ACEOF
3904/* confdefs.h.  */
3905_ACEOF
3906cat confdefs.h >>conftest.$ac_ext
3907cat >>conftest.$ac_ext <<_ACEOF
3908/* end confdefs.h.  */
3909#ifdef __STDC__
3910# include <limits.h>
3911#else
3912# include <assert.h>
3913#endif
3914		     Syntax error
3915_ACEOF
3916if { (ac_try="$ac_cpp conftest.$ac_ext"
3917case "(($ac_try" in
3918  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919  *) ac_try_echo=$ac_try;;
3920esac
3921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3922  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3923  ac_status=$?
3924  grep -v '^ *+' conftest.er1 >conftest.err
3925  rm -f conftest.er1
3926  cat conftest.err >&5
3927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928  (exit $ac_status); } >/dev/null && {
3929	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3930	 test ! -s conftest.err
3931       }; then
3932  :
3933else
3934  echo "$as_me: failed program was:" >&5
3935sed 's/^/| /' conftest.$ac_ext >&5
3936
3937  # Broken: fails on valid input.
3938continue
3939fi
3940
3941rm -f conftest.err conftest.$ac_ext
3942
3943  # OK, works on sane cases.  Now check whether nonexistent headers
3944  # can be detected and how.
3945  cat >conftest.$ac_ext <<_ACEOF
3946/* confdefs.h.  */
3947_ACEOF
3948cat confdefs.h >>conftest.$ac_ext
3949cat >>conftest.$ac_ext <<_ACEOF
3950/* end confdefs.h.  */
3951#include <ac_nonexistent.h>
3952_ACEOF
3953if { (ac_try="$ac_cpp conftest.$ac_ext"
3954case "(($ac_try" in
3955  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956  *) ac_try_echo=$ac_try;;
3957esac
3958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3959  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3960  ac_status=$?
3961  grep -v '^ *+' conftest.er1 >conftest.err
3962  rm -f conftest.er1
3963  cat conftest.err >&5
3964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965  (exit $ac_status); } >/dev/null && {
3966	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3967	 test ! -s conftest.err
3968       }; then
3969  # Broken: success on invalid input.
3970continue
3971else
3972  echo "$as_me: failed program was:" >&5
3973sed 's/^/| /' conftest.$ac_ext >&5
3974
3975  # Passes both tests.
3976ac_preproc_ok=:
3977break
3978fi
3979
3980rm -f conftest.err conftest.$ac_ext
3981
3982done
3983# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3984rm -f conftest.err conftest.$ac_ext
3985if $ac_preproc_ok; then
3986  break
3987fi
3988
3989    done
3990    ac_cv_prog_CPP=$CPP
3991
3992fi
3993  CPP=$ac_cv_prog_CPP
3994else
3995  ac_cv_prog_CPP=$CPP
3996fi
3997{ echo "$as_me:$LINENO: result: $CPP" >&5
3998echo "${ECHO_T}$CPP" >&6; }
3999ac_preproc_ok=false
4000for ac_c_preproc_warn_flag in '' yes
4001do
4002  # Use a header file that comes with gcc, so configuring glibc
4003  # with a fresh cross-compiler works.
4004  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4005  # <limits.h> exists even on freestanding compilers.
4006  # On the NeXT, cc -E runs the code through the compiler's parser,
4007  # not just through cpp. "Syntax error" is here to catch this case.
4008  cat >conftest.$ac_ext <<_ACEOF
4009/* confdefs.h.  */
4010_ACEOF
4011cat confdefs.h >>conftest.$ac_ext
4012cat >>conftest.$ac_ext <<_ACEOF
4013/* end confdefs.h.  */
4014#ifdef __STDC__
4015# include <limits.h>
4016#else
4017# include <assert.h>
4018#endif
4019		     Syntax error
4020_ACEOF
4021if { (ac_try="$ac_cpp conftest.$ac_ext"
4022case "(($ac_try" in
4023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4024  *) ac_try_echo=$ac_try;;
4025esac
4026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4027  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4028  ac_status=$?
4029  grep -v '^ *+' conftest.er1 >conftest.err
4030  rm -f conftest.er1
4031  cat conftest.err >&5
4032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033  (exit $ac_status); } >/dev/null && {
4034	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4035	 test ! -s conftest.err
4036       }; then
4037  :
4038else
4039  echo "$as_me: failed program was:" >&5
4040sed 's/^/| /' conftest.$ac_ext >&5
4041
4042  # Broken: fails on valid input.
4043continue
4044fi
4045
4046rm -f conftest.err conftest.$ac_ext
4047
4048  # OK, works on sane cases.  Now check whether nonexistent headers
4049  # can be detected and how.
4050  cat >conftest.$ac_ext <<_ACEOF
4051/* confdefs.h.  */
4052_ACEOF
4053cat confdefs.h >>conftest.$ac_ext
4054cat >>conftest.$ac_ext <<_ACEOF
4055/* end confdefs.h.  */
4056#include <ac_nonexistent.h>
4057_ACEOF
4058if { (ac_try="$ac_cpp conftest.$ac_ext"
4059case "(($ac_try" in
4060  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061  *) ac_try_echo=$ac_try;;
4062esac
4063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4064  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4065  ac_status=$?
4066  grep -v '^ *+' conftest.er1 >conftest.err
4067  rm -f conftest.er1
4068  cat conftest.err >&5
4069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070  (exit $ac_status); } >/dev/null && {
4071	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4072	 test ! -s conftest.err
4073       }; then
4074  # Broken: success on invalid input.
4075continue
4076else
4077  echo "$as_me: failed program was:" >&5
4078sed 's/^/| /' conftest.$ac_ext >&5
4079
4080  # Passes both tests.
4081ac_preproc_ok=:
4082break
4083fi
4084
4085rm -f conftest.err conftest.$ac_ext
4086
4087done
4088# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4089rm -f conftest.err conftest.$ac_ext
4090if $ac_preproc_ok; then
4091  :
4092else
4093  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4094See \`config.log' for more details." >&5
4095echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4096See \`config.log' for more details." >&2;}
4097   { (exit 1); exit 1; }; }
4098fi
4099
4100ac_ext=c
4101ac_cpp='$CPP $CPPFLAGS'
4102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4104ac_compiler_gnu=$ac_cv_c_compiler_gnu
4105
4106
4107{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4108echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4109if test "${ac_cv_path_GREP+set}" = set; then
4110  echo $ECHO_N "(cached) $ECHO_C" >&6
4111else
4112  # Extract the first word of "grep ggrep" to use in msg output
4113if test -z "$GREP"; then
4114set dummy grep ggrep; ac_prog_name=$2
4115if test "${ac_cv_path_GREP+set}" = set; then
4116  echo $ECHO_N "(cached) $ECHO_C" >&6
4117else
4118  ac_path_GREP_found=false
4119# Loop through the user's path and test for each of PROGNAME-LIST
4120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4122do
4123  IFS=$as_save_IFS
4124  test -z "$as_dir" && as_dir=.
4125  for ac_prog in grep ggrep; do
4126  for ac_exec_ext in '' $ac_executable_extensions; do
4127    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4128    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4129    # Check for GNU ac_path_GREP and select it if it is found.
4130  # Check for GNU $ac_path_GREP
4131case `"$ac_path_GREP" --version 2>&1` in
4132*GNU*)
4133  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4134*)
4135  ac_count=0
4136  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4137  while :
4138  do
4139    cat "conftest.in" "conftest.in" >"conftest.tmp"
4140    mv "conftest.tmp" "conftest.in"
4141    cp "conftest.in" "conftest.nl"
4142    echo 'GREP' >> "conftest.nl"
4143    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4144    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4145    ac_count=`expr $ac_count + 1`
4146    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4147      # Best one so far, save it but keep looking for a better one
4148      ac_cv_path_GREP="$ac_path_GREP"
4149      ac_path_GREP_max=$ac_count
4150    fi
4151    # 10*(2^10) chars as input seems more than enough
4152    test $ac_count -gt 10 && break
4153  done
4154  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4155esac
4156
4157
4158    $ac_path_GREP_found && break 3
4159  done
4160done
4161
4162done
4163IFS=$as_save_IFS
4164
4165
4166fi
4167
4168GREP="$ac_cv_path_GREP"
4169if test -z "$GREP"; then
4170  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4171echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4172   { (exit 1); exit 1; }; }
4173fi
4174
4175else
4176  ac_cv_path_GREP=$GREP
4177fi
4178
4179
4180fi
4181{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4182echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4183 GREP="$ac_cv_path_GREP"
4184
4185
4186{ echo "$as_me:$LINENO: checking for egrep" >&5
4187echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4188if test "${ac_cv_path_EGREP+set}" = set; then
4189  echo $ECHO_N "(cached) $ECHO_C" >&6
4190else
4191  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4192   then ac_cv_path_EGREP="$GREP -E"
4193   else
4194     # Extract the first word of "egrep" to use in msg output
4195if test -z "$EGREP"; then
4196set dummy egrep; ac_prog_name=$2
4197if test "${ac_cv_path_EGREP+set}" = set; then
4198  echo $ECHO_N "(cached) $ECHO_C" >&6
4199else
4200  ac_path_EGREP_found=false
4201# Loop through the user's path and test for each of PROGNAME-LIST
4202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4203for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4204do
4205  IFS=$as_save_IFS
4206  test -z "$as_dir" && as_dir=.
4207  for ac_prog in egrep; do
4208  for ac_exec_ext in '' $ac_executable_extensions; do
4209    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4210    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4211    # Check for GNU ac_path_EGREP and select it if it is found.
4212  # Check for GNU $ac_path_EGREP
4213case `"$ac_path_EGREP" --version 2>&1` in
4214*GNU*)
4215  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4216*)
4217  ac_count=0
4218  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4219  while :
4220  do
4221    cat "conftest.in" "conftest.in" >"conftest.tmp"
4222    mv "conftest.tmp" "conftest.in"
4223    cp "conftest.in" "conftest.nl"
4224    echo 'EGREP' >> "conftest.nl"
4225    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4226    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4227    ac_count=`expr $ac_count + 1`
4228    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4229      # Best one so far, save it but keep looking for a better one
4230      ac_cv_path_EGREP="$ac_path_EGREP"
4231      ac_path_EGREP_max=$ac_count
4232    fi
4233    # 10*(2^10) chars as input seems more than enough
4234    test $ac_count -gt 10 && break
4235  done
4236  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4237esac
4238
4239
4240    $ac_path_EGREP_found && break 3
4241  done
4242done
4243
4244done
4245IFS=$as_save_IFS
4246
4247
4248fi
4249
4250EGREP="$ac_cv_path_EGREP"
4251if test -z "$EGREP"; then
4252  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4253echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4254   { (exit 1); exit 1; }; }
4255fi
4256
4257else
4258  ac_cv_path_EGREP=$EGREP
4259fi
4260
4261
4262   fi
4263fi
4264{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4265echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4266 EGREP="$ac_cv_path_EGREP"
4267
4268
4269{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4270echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4271if test "${ac_cv_header_stdc+set}" = set; then
4272  echo $ECHO_N "(cached) $ECHO_C" >&6
4273else
4274  cat >conftest.$ac_ext <<_ACEOF
4275/* confdefs.h.  */
4276_ACEOF
4277cat confdefs.h >>conftest.$ac_ext
4278cat >>conftest.$ac_ext <<_ACEOF
4279/* end confdefs.h.  */
4280#include <stdlib.h>
4281#include <stdarg.h>
4282#include <string.h>
4283#include <float.h>
4284
4285int
4286main ()
4287{
4288
4289  ;
4290  return 0;
4291}
4292_ACEOF
4293rm -f conftest.$ac_objext
4294if { (ac_try="$ac_compile"
4295case "(($ac_try" in
4296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297  *) ac_try_echo=$ac_try;;
4298esac
4299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4300  (eval "$ac_compile") 2>conftest.er1
4301  ac_status=$?
4302  grep -v '^ *+' conftest.er1 >conftest.err
4303  rm -f conftest.er1
4304  cat conftest.err >&5
4305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306  (exit $ac_status); } && {
4307	 test -z "$ac_c_werror_flag" ||
4308	 test ! -s conftest.err
4309       } && test -s conftest.$ac_objext; then
4310  ac_cv_header_stdc=yes
4311else
4312  echo "$as_me: failed program was:" >&5
4313sed 's/^/| /' conftest.$ac_ext >&5
4314
4315	ac_cv_header_stdc=no
4316fi
4317
4318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4319
4320if test $ac_cv_header_stdc = yes; then
4321  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4322  cat >conftest.$ac_ext <<_ACEOF
4323/* confdefs.h.  */
4324_ACEOF
4325cat confdefs.h >>conftest.$ac_ext
4326cat >>conftest.$ac_ext <<_ACEOF
4327/* end confdefs.h.  */
4328#include <string.h>
4329
4330_ACEOF
4331if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4332  $EGREP "memchr" >/dev/null 2>&1; then
4333  :
4334else
4335  ac_cv_header_stdc=no
4336fi
4337rm -f conftest*
4338
4339fi
4340
4341if test $ac_cv_header_stdc = yes; then
4342  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4343  cat >conftest.$ac_ext <<_ACEOF
4344/* confdefs.h.  */
4345_ACEOF
4346cat confdefs.h >>conftest.$ac_ext
4347cat >>conftest.$ac_ext <<_ACEOF
4348/* end confdefs.h.  */
4349#include <stdlib.h>
4350
4351_ACEOF
4352if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4353  $EGREP "free" >/dev/null 2>&1; then
4354  :
4355else
4356  ac_cv_header_stdc=no
4357fi
4358rm -f conftest*
4359
4360fi
4361
4362if test $ac_cv_header_stdc = yes; then
4363  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4364  if test "$cross_compiling" = yes; then
4365  :
4366else
4367  cat >conftest.$ac_ext <<_ACEOF
4368/* confdefs.h.  */
4369_ACEOF
4370cat confdefs.h >>conftest.$ac_ext
4371cat >>conftest.$ac_ext <<_ACEOF
4372/* end confdefs.h.  */
4373#include <ctype.h>
4374#include <stdlib.h>
4375#if ((' ' & 0x0FF) == 0x020)
4376# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4377# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4378#else
4379# define ISLOWER(c) \
4380		   (('a' <= (c) && (c) <= 'i') \
4381		     || ('j' <= (c) && (c) <= 'r') \
4382		     || ('s' <= (c) && (c) <= 'z'))
4383# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4384#endif
4385
4386#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4387int
4388main ()
4389{
4390  int i;
4391  for (i = 0; i < 256; i++)
4392    if (XOR (islower (i), ISLOWER (i))
4393	|| toupper (i) != TOUPPER (i))
4394      return 2;
4395  return 0;
4396}
4397_ACEOF
4398rm -f conftest$ac_exeext
4399if { (ac_try="$ac_link"
4400case "(($ac_try" in
4401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402  *) ac_try_echo=$ac_try;;
4403esac
4404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4405  (eval "$ac_link") 2>&5
4406  ac_status=$?
4407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4409  { (case "(($ac_try" in
4410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411  *) ac_try_echo=$ac_try;;
4412esac
4413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4414  (eval "$ac_try") 2>&5
4415  ac_status=$?
4416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417  (exit $ac_status); }; }; then
4418  :
4419else
4420  echo "$as_me: program exited with status $ac_status" >&5
4421echo "$as_me: failed program was:" >&5
4422sed 's/^/| /' conftest.$ac_ext >&5
4423
4424( exit $ac_status )
4425ac_cv_header_stdc=no
4426fi
4427rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4428fi
4429
4430
4431fi
4432fi
4433{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4434echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4435if test $ac_cv_header_stdc = yes; then
4436
4437cat >>confdefs.h <<\_ACEOF
4438#define STDC_HEADERS 1
4439_ACEOF
4440
4441fi
4442
4443# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4454		  inttypes.h stdint.h unistd.h
4455do
4456as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4457{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4458echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4459if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4460  echo $ECHO_N "(cached) $ECHO_C" >&6
4461else
4462  cat >conftest.$ac_ext <<_ACEOF
4463/* confdefs.h.  */
4464_ACEOF
4465cat confdefs.h >>conftest.$ac_ext
4466cat >>conftest.$ac_ext <<_ACEOF
4467/* end confdefs.h.  */
4468$ac_includes_default
4469
4470#include <$ac_header>
4471_ACEOF
4472rm -f conftest.$ac_objext
4473if { (ac_try="$ac_compile"
4474case "(($ac_try" in
4475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4476  *) ac_try_echo=$ac_try;;
4477esac
4478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4479  (eval "$ac_compile") 2>conftest.er1
4480  ac_status=$?
4481  grep -v '^ *+' conftest.er1 >conftest.err
4482  rm -f conftest.er1
4483  cat conftest.err >&5
4484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485  (exit $ac_status); } && {
4486	 test -z "$ac_c_werror_flag" ||
4487	 test ! -s conftest.err
4488       } && test -s conftest.$ac_objext; then
4489  eval "$as_ac_Header=yes"
4490else
4491  echo "$as_me: failed program was:" >&5
4492sed 's/^/| /' conftest.$ac_ext >&5
4493
4494	eval "$as_ac_Header=no"
4495fi
4496
4497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4498fi
4499ac_res=`eval echo '${'$as_ac_Header'}'`
4500	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4501echo "${ECHO_T}$ac_res" >&6; }
4502if test `eval echo '${'$as_ac_Header'}'` = yes; then
4503  cat >>confdefs.h <<_ACEOF
4504#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4505_ACEOF
4506
4507fi
4508
4509done
4510
4511
4512
4513
4514for ac_header in pthread.h
4515do
4516as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4517if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4518  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4519echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4520if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4521  echo $ECHO_N "(cached) $ECHO_C" >&6
4522fi
4523ac_res=`eval echo '${'$as_ac_Header'}'`
4524	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4525echo "${ECHO_T}$ac_res" >&6; }
4526else
4527  # Is the header compilable?
4528{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4529echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4530cat >conftest.$ac_ext <<_ACEOF
4531/* confdefs.h.  */
4532_ACEOF
4533cat confdefs.h >>conftest.$ac_ext
4534cat >>conftest.$ac_ext <<_ACEOF
4535/* end confdefs.h.  */
4536$ac_includes_default
4537#include <$ac_header>
4538_ACEOF
4539rm -f conftest.$ac_objext
4540if { (ac_try="$ac_compile"
4541case "(($ac_try" in
4542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4543  *) ac_try_echo=$ac_try;;
4544esac
4545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4546  (eval "$ac_compile") 2>conftest.er1
4547  ac_status=$?
4548  grep -v '^ *+' conftest.er1 >conftest.err
4549  rm -f conftest.er1
4550  cat conftest.err >&5
4551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552  (exit $ac_status); } && {
4553	 test -z "$ac_c_werror_flag" ||
4554	 test ! -s conftest.err
4555       } && test -s conftest.$ac_objext; then
4556  ac_header_compiler=yes
4557else
4558  echo "$as_me: failed program was:" >&5
4559sed 's/^/| /' conftest.$ac_ext >&5
4560
4561	ac_header_compiler=no
4562fi
4563
4564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4565{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4566echo "${ECHO_T}$ac_header_compiler" >&6; }
4567
4568# Is the header present?
4569{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4570echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4571cat >conftest.$ac_ext <<_ACEOF
4572/* confdefs.h.  */
4573_ACEOF
4574cat confdefs.h >>conftest.$ac_ext
4575cat >>conftest.$ac_ext <<_ACEOF
4576/* end confdefs.h.  */
4577#include <$ac_header>
4578_ACEOF
4579if { (ac_try="$ac_cpp conftest.$ac_ext"
4580case "(($ac_try" in
4581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4582  *) ac_try_echo=$ac_try;;
4583esac
4584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4585  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4586  ac_status=$?
4587  grep -v '^ *+' conftest.er1 >conftest.err
4588  rm -f conftest.er1
4589  cat conftest.err >&5
4590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591  (exit $ac_status); } >/dev/null && {
4592	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4593	 test ! -s conftest.err
4594       }; then
4595  ac_header_preproc=yes
4596else
4597  echo "$as_me: failed program was:" >&5
4598sed 's/^/| /' conftest.$ac_ext >&5
4599
4600  ac_header_preproc=no
4601fi
4602
4603rm -f conftest.err conftest.$ac_ext
4604{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4605echo "${ECHO_T}$ac_header_preproc" >&6; }
4606
4607# So?  What about this header?
4608case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4609  yes:no: )
4610    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4611echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4612    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4613echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4614    ac_header_preproc=yes
4615    ;;
4616  no:yes:* )
4617    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4618echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4619    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4620echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4621    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4622echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4623    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4624echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4625    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4626echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4627    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4628echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4629    ( cat <<\_ASBOX
4630## --------------------------------- ##
4631## Report this to omalley@apache.org ##
4632## --------------------------------- ##
4633_ASBOX
4634     ) | sed "s/^/$as_me: WARNING:     /" >&2
4635    ;;
4636esac
4637{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4638echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4639if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4640  echo $ECHO_N "(cached) $ECHO_C" >&6
4641else
4642  eval "$as_ac_Header=\$ac_header_preproc"
4643fi
4644ac_res=`eval echo '${'$as_ac_Header'}'`
4645	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4646echo "${ECHO_T}$ac_res" >&6; }
4647
4648fi
4649if test `eval echo '${'$as_ac_Header'}'` = yes; then
4650  cat >>confdefs.h <<_ACEOF
4651#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4652_ACEOF
4653
4654else
4655  { { echo "$as_me:$LINENO: error: Please check if you have installed the pthread library" >&5
4656echo "$as_me: error: Please check if you have installed the pthread library" >&2;}
4657   { (exit 1); exit 1; }; }
4658fi
4659
4660done
4661
4662
4663{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
4664echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
4665if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
4666  echo $ECHO_N "(cached) $ECHO_C" >&6
4667else
4668  ac_check_lib_save_LIBS=$LIBS
4669LIBS="-lpthread  $LIBS"
4670cat >conftest.$ac_ext <<_ACEOF
4671/* confdefs.h.  */
4672_ACEOF
4673cat confdefs.h >>conftest.$ac_ext
4674cat >>conftest.$ac_ext <<_ACEOF
4675/* end confdefs.h.  */
4676
4677/* Override any GCC internal prototype to avoid an error.
4678   Use char because int might match the return type of a GCC
4679   builtin and then its argument prototype would still apply.  */
4680#ifdef __cplusplus
4681extern "C"
4682#endif
4683char pthread_create ();
4684int
4685main ()
4686{
4687return pthread_create ();
4688  ;
4689  return 0;
4690}
4691_ACEOF
4692rm -f conftest.$ac_objext conftest$ac_exeext
4693if { (ac_try="$ac_link"
4694case "(($ac_try" in
4695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4696  *) ac_try_echo=$ac_try;;
4697esac
4698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4699  (eval "$ac_link") 2>conftest.er1
4700  ac_status=$?
4701  grep -v '^ *+' conftest.er1 >conftest.err
4702  rm -f conftest.er1
4703  cat conftest.err >&5
4704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705  (exit $ac_status); } && {
4706	 test -z "$ac_c_werror_flag" ||
4707	 test ! -s conftest.err
4708       } && test -s conftest$ac_exeext &&
4709       $as_test_x conftest$ac_exeext; then
4710  ac_cv_lib_pthread_pthread_create=yes
4711else
4712  echo "$as_me: failed program was:" >&5
4713sed 's/^/| /' conftest.$ac_ext >&5
4714
4715	ac_cv_lib_pthread_pthread_create=no
4716fi
4717
4718rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4719      conftest$ac_exeext conftest.$ac_ext
4720LIBS=$ac_check_lib_save_LIBS
4721fi
4722{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
4723echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
4724if test $ac_cv_lib_pthread_pthread_create = yes; then
4725  cat >>confdefs.h <<_ACEOF
4726#define HAVE_LIBPTHREAD 1
4727_ACEOF
4728
4729  LIBS="-lpthread $LIBS"
4730
4731else
4732  { { echo "$as_me:$LINENO: error: Cannot find libpthread.so" >&5
4733echo "$as_me: error: Cannot find libpthread.so" >&2;}
4734   { (exit please check); exit please check; }; }
4735fi
4736
4737
4738{ echo "$as_me:$LINENO: checking for HMAC_Init in -lcrypto" >&5
4739echo $ECHO_N "checking for HMAC_Init in -lcrypto... $ECHO_C" >&6; }
4740if test "${ac_cv_lib_ssl_HMAC_Init+set}" = set; then
4741  echo $ECHO_N "(cached) $ECHO_C" >&6
4742else
4743  ac_check_lib_save_LIBS=$LIBS
4744LIBS="-lcrypto  $LIBS"
4745cat >conftest.$ac_ext <<_ACEOF
4746/* confdefs.h.  */
4747_ACEOF
4748cat confdefs.h >>conftest.$ac_ext
4749cat >>conftest.$ac_ext <<_ACEOF
4750/* end confdefs.h.  */
4751
4752/* Override any GCC internal prototype to avoid an error.
4753   Use char because int might match the return type of a GCC
4754   builtin and then its argument prototype would still apply.  */
4755#ifdef __cplusplus
4756extern "C"
4757#endif
4758char HMAC_Init ();
4759int
4760main ()
4761{
4762return HMAC_Init ();
4763  ;
4764  return 0;
4765}
4766_ACEOF
4767rm -f conftest.$ac_objext conftest$ac_exeext
4768if { (ac_try="$ac_link"
4769case "(($ac_try" in
4770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4771  *) ac_try_echo=$ac_try;;
4772esac
4773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4774  (eval "$ac_link") 2>conftest.er1
4775  ac_status=$?
4776  grep -v '^ *+' conftest.er1 >conftest.err
4777  rm -f conftest.er1
4778  cat conftest.err >&5
4779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780  (exit $ac_status); } && {
4781	 test -z "$ac_c_werror_flag" ||
4782	 test ! -s conftest.err
4783       } && test -s conftest$ac_exeext &&
4784       $as_test_x conftest$ac_exeext; then
4785  ac_cv_lib_ssl_HMAC_Init=yes
4786else
4787  echo "$as_me: failed program was:" >&5
4788sed 's/^/| /' conftest.$ac_ext >&5
4789
4790	ac_cv_lib_ssl_HMAC_Init=no
4791fi
4792
4793rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4794      conftest$ac_exeext conftest.$ac_ext
4795LIBS=$ac_check_lib_save_LIBS
4796fi
4797{ echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_HMAC_Init" >&5
4798echo "${ECHO_T}$ac_cv_lib_ssl_HMAC_Init" >&6; }
4799if test $ac_cv_lib_ssl_HMAC_Init = yes; then
4800  cat >>confdefs.h <<_ACEOF
4801#define HAVE_LIBSSL 1
4802_ACEOF
4803
4804  LIBS="-lcrypto $LIBS"
4805
4806else
4807  { { echo "$as_me:$LINENO: error: Cannot find libssl.so" >&5
4808echo "$as_me: error: Cannot find libssl.so" >&2;}
4809   { (exit please check); exit please check; }; }
4810fi
4811
4812
4813
4814
4815touch foo
4816if $INSTALL -C foo bar; then
4817  INSTALL_DATA="$INSTALL_DATA -C"
4818fi
4819rm -f foo bar
4820
4821
4822# Checks for programs.
4823ac_ext=cpp
4824ac_cpp='$CXXCPP $CPPFLAGS'
4825ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4826ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4827ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4828if test -z "$CXX"; then
4829  if test -n "$CCC"; then
4830    CXX=$CCC
4831  else
4832    if test -n "$ac_tool_prefix"; then
4833  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4834  do
4835    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4836set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4837{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4839if test "${ac_cv_prog_CXX+set}" = set; then
4840  echo $ECHO_N "(cached) $ECHO_C" >&6
4841else
4842  if test -n "$CXX"; then
4843  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4844else
4845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846for as_dir in $PATH
4847do
4848  IFS=$as_save_IFS
4849  test -z "$as_dir" && as_dir=.
4850  for ac_exec_ext in '' $ac_executable_extensions; do
4851  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4852    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4853    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4854    break 2
4855  fi
4856done
4857done
4858IFS=$as_save_IFS
4859
4860fi
4861fi
4862CXX=$ac_cv_prog_CXX
4863if test -n "$CXX"; then
4864  { echo "$as_me:$LINENO: result: $CXX" >&5
4865echo "${ECHO_T}$CXX" >&6; }
4866else
4867  { echo "$as_me:$LINENO: result: no" >&5
4868echo "${ECHO_T}no" >&6; }
4869fi
4870
4871
4872    test -n "$CXX" && break
4873  done
4874fi
4875if test -z "$CXX"; then
4876  ac_ct_CXX=$CXX
4877  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4878do
4879  # Extract the first word of "$ac_prog", so it can be a program name with args.
4880set dummy $ac_prog; ac_word=$2
4881{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4883if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4884  echo $ECHO_N "(cached) $ECHO_C" >&6
4885else
4886  if test -n "$ac_ct_CXX"; then
4887  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4888else
4889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890for as_dir in $PATH
4891do
4892  IFS=$as_save_IFS
4893  test -z "$as_dir" && as_dir=.
4894  for ac_exec_ext in '' $ac_executable_extensions; do
4895  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4896    ac_cv_prog_ac_ct_CXX="$ac_prog"
4897    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4898    break 2
4899  fi
4900done
4901done
4902IFS=$as_save_IFS
4903
4904fi
4905fi
4906ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4907if test -n "$ac_ct_CXX"; then
4908  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4909echo "${ECHO_T}$ac_ct_CXX" >&6; }
4910else
4911  { echo "$as_me:$LINENO: result: no" >&5
4912echo "${ECHO_T}no" >&6; }
4913fi
4914
4915
4916  test -n "$ac_ct_CXX" && break
4917done
4918
4919  if test "x$ac_ct_CXX" = x; then
4920    CXX="g++"
4921  else
4922    case $cross_compiling:$ac_tool_warned in
4923yes:)
4924{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4925whose name does not start with the host triplet.  If you think this
4926configuration is useful to you, please write to autoconf@gnu.org." >&5
4927echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4928whose name does not start with the host triplet.  If you think this
4929configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4930ac_tool_warned=yes ;;
4931esac
4932    CXX=$ac_ct_CXX
4933  fi
4934fi
4935
4936  fi
4937fi
4938# Provide some information about the compiler.
4939echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4940ac_compiler=`set X $ac_compile; echo $2`
4941{ (ac_try="$ac_compiler --version >&5"
4942case "(($ac_try" in
4943  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4944  *) ac_try_echo=$ac_try;;
4945esac
4946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4947  (eval "$ac_compiler --version >&5") 2>&5
4948  ac_status=$?
4949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950  (exit $ac_status); }
4951{ (ac_try="$ac_compiler -v >&5"
4952case "(($ac_try" in
4953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4954  *) ac_try_echo=$ac_try;;
4955esac
4956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4957  (eval "$ac_compiler -v >&5") 2>&5
4958  ac_status=$?
4959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960  (exit $ac_status); }
4961{ (ac_try="$ac_compiler -V >&5"
4962case "(($ac_try" in
4963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4964  *) ac_try_echo=$ac_try;;
4965esac
4966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4967  (eval "$ac_compiler -V >&5") 2>&5
4968  ac_status=$?
4969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970  (exit $ac_status); }
4971
4972{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4973echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4974if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4975  echo $ECHO_N "(cached) $ECHO_C" >&6
4976else
4977  cat >conftest.$ac_ext <<_ACEOF
4978/* confdefs.h.  */
4979_ACEOF
4980cat confdefs.h >>conftest.$ac_ext
4981cat >>conftest.$ac_ext <<_ACEOF
4982/* end confdefs.h.  */
4983
4984int
4985main ()
4986{
4987#ifndef __GNUC__
4988       choke me
4989#endif
4990
4991  ;
4992  return 0;
4993}
4994_ACEOF
4995rm -f conftest.$ac_objext
4996if { (ac_try="$ac_compile"
4997case "(($ac_try" in
4998  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4999  *) ac_try_echo=$ac_try;;
5000esac
5001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5002  (eval "$ac_compile") 2>conftest.er1
5003  ac_status=$?
5004  grep -v '^ *+' conftest.er1 >conftest.err
5005  rm -f conftest.er1
5006  cat conftest.err >&5
5007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008  (exit $ac_status); } && {
5009	 test -z "$ac_cxx_werror_flag" ||
5010	 test ! -s conftest.err
5011       } && test -s conftest.$ac_objext; then
5012  ac_compiler_gnu=yes
5013else
5014  echo "$as_me: failed program was:" >&5
5015sed 's/^/| /' conftest.$ac_ext >&5
5016
5017	ac_compiler_gnu=no
5018fi
5019
5020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5021ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5022
5023fi
5024{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5025echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5026GXX=`test $ac_compiler_gnu = yes && echo yes`
5027ac_test_CXXFLAGS=${CXXFLAGS+set}
5028ac_save_CXXFLAGS=$CXXFLAGS
5029{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5030echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5031if test "${ac_cv_prog_cxx_g+set}" = set; then
5032  echo $ECHO_N "(cached) $ECHO_C" >&6
5033else
5034  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5035   ac_cxx_werror_flag=yes
5036   ac_cv_prog_cxx_g=no
5037   CXXFLAGS="-g"
5038   cat >conftest.$ac_ext <<_ACEOF
5039/* confdefs.h.  */
5040_ACEOF
5041cat confdefs.h >>conftest.$ac_ext
5042cat >>conftest.$ac_ext <<_ACEOF
5043/* end confdefs.h.  */
5044
5045int
5046main ()
5047{
5048
5049  ;
5050  return 0;
5051}
5052_ACEOF
5053rm -f conftest.$ac_objext
5054if { (ac_try="$ac_compile"
5055case "(($ac_try" in
5056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5057  *) ac_try_echo=$ac_try;;
5058esac
5059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5060  (eval "$ac_compile") 2>conftest.er1
5061  ac_status=$?
5062  grep -v '^ *+' conftest.er1 >conftest.err
5063  rm -f conftest.er1
5064  cat conftest.err >&5
5065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066  (exit $ac_status); } && {
5067	 test -z "$ac_cxx_werror_flag" ||
5068	 test ! -s conftest.err
5069       } && test -s conftest.$ac_objext; then
5070  ac_cv_prog_cxx_g=yes
5071else
5072  echo "$as_me: failed program was:" >&5
5073sed 's/^/| /' conftest.$ac_ext >&5
5074
5075	CXXFLAGS=""
5076      cat >conftest.$ac_ext <<_ACEOF
5077/* confdefs.h.  */
5078_ACEOF
5079cat confdefs.h >>conftest.$ac_ext
5080cat >>conftest.$ac_ext <<_ACEOF
5081/* end confdefs.h.  */
5082
5083int
5084main ()
5085{
5086
5087  ;
5088  return 0;
5089}
5090_ACEOF
5091rm -f conftest.$ac_objext
5092if { (ac_try="$ac_compile"
5093case "(($ac_try" in
5094  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5095  *) ac_try_echo=$ac_try;;
5096esac
5097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5098  (eval "$ac_compile") 2>conftest.er1
5099  ac_status=$?
5100  grep -v '^ *+' conftest.er1 >conftest.err
5101  rm -f conftest.er1
5102  cat conftest.err >&5
5103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104  (exit $ac_status); } && {
5105	 test -z "$ac_cxx_werror_flag" ||
5106	 test ! -s conftest.err
5107       } && test -s conftest.$ac_objext; then
5108  :
5109else
5110  echo "$as_me: failed program was:" >&5
5111sed 's/^/| /' conftest.$ac_ext >&5
5112
5113	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5114	 CXXFLAGS="-g"
5115	 cat >conftest.$ac_ext <<_ACEOF
5116/* confdefs.h.  */
5117_ACEOF
5118cat confdefs.h >>conftest.$ac_ext
5119cat >>conftest.$ac_ext <<_ACEOF
5120/* end confdefs.h.  */
5121
5122int
5123main ()
5124{
5125
5126  ;
5127  return 0;
5128}
5129_ACEOF
5130rm -f conftest.$ac_objext
5131if { (ac_try="$ac_compile"
5132case "(($ac_try" in
5133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5134  *) ac_try_echo=$ac_try;;
5135esac
5136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5137  (eval "$ac_compile") 2>conftest.er1
5138  ac_status=$?
5139  grep -v '^ *+' conftest.er1 >conftest.err
5140  rm -f conftest.er1
5141  cat conftest.err >&5
5142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143  (exit $ac_status); } && {
5144	 test -z "$ac_cxx_werror_flag" ||
5145	 test ! -s conftest.err
5146       } && test -s conftest.$ac_objext; then
5147  ac_cv_prog_cxx_g=yes
5148else
5149  echo "$as_me: failed program was:" >&5
5150sed 's/^/| /' conftest.$ac_ext >&5
5151
5152
5153fi
5154
5155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5156fi
5157
5158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5159fi
5160
5161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5162   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5163fi
5164{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5165echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5166if test "$ac_test_CXXFLAGS" = set; then
5167  CXXFLAGS=$ac_save_CXXFLAGS
5168elif test $ac_cv_prog_cxx_g = yes; then
5169  if test "$GXX" = yes; then
5170    CXXFLAGS="-g -O2"
5171  else
5172    CXXFLAGS="-g"
5173  fi
5174else
5175  if test "$GXX" = yes; then
5176    CXXFLAGS="-O2"
5177  else
5178    CXXFLAGS=
5179  fi
5180fi
5181ac_ext=c
5182ac_cpp='$CPP $CPPFLAGS'
5183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5185ac_compiler_gnu=$ac_cv_c_compiler_gnu
5186
5187depcc="$CXX"  am_compiler_list=
5188
5189{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5190echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5191if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5192  echo $ECHO_N "(cached) $ECHO_C" >&6
5193else
5194  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5195  # We make a subdir and do the tests there.  Otherwise we can end up
5196  # making bogus files that we don't know about and never remove.  For
5197  # instance it was reported that on HP-UX the gcc test will end up
5198  # making a dummy file named `D' -- because `-MD' means `put the output
5199  # in D'.
5200  mkdir conftest.dir
5201  # Copy depcomp to subdir because otherwise we won't find it if we're
5202  # using a relative directory.
5203  cp "$am_depcomp" conftest.dir
5204  cd conftest.dir
5205  # We will build objects and dependencies in a subdirectory because
5206  # it helps to detect inapplicable dependency modes.  For instance
5207  # both Tru64's cc and ICC support -MD to output dependencies as a
5208  # side effect of compilation, but ICC will put the dependencies in
5209  # the current directory while Tru64 will put them in the object
5210  # directory.
5211  mkdir sub
5212
5213  am_cv_CXX_dependencies_compiler_type=none
5214  if test "$am_compiler_list" = ""; then
5215     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5216  fi
5217  for depmode in $am_compiler_list; do
5218    # Setup a source with many dependencies, because some compilers
5219    # like to wrap large dependency lists on column 80 (with \), and
5220    # we should not choose a depcomp mode which is confused by this.
5221    #
5222    # We need to recreate these files for each test, as the compiler may
5223    # overwrite some of them when testing with obscure command lines.
5224    # This happens at least with the AIX C compiler.
5225    : > sub/conftest.c
5226    for i in 1 2 3 4 5 6; do
5227      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5228      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5229      # Solaris 8's {/usr,}/bin/sh.
5230      touch sub/conftst$i.h
5231    done
5232    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5233
5234    case $depmode in
5235    nosideeffect)
5236      # after this tag, mechanisms are not by side-effect, so they'll
5237      # only be used when explicitly requested
5238      if test "x$enable_dependency_tracking" = xyes; then
5239	continue
5240      else
5241	break
5242      fi
5243      ;;
5244    none) break ;;
5245    esac
5246    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5247    # mode.  It turns out that the SunPro C++ compiler does not properly
5248    # handle `-M -o', and we need to detect this.
5249    if depmode=$depmode \
5250       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5251       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5252       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5253         >/dev/null 2>conftest.err &&
5254       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5255       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5256       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5257      # icc doesn't choke on unknown options, it will just issue warnings
5258      # or remarks (even with -Werror).  So we grep stderr for any message
5259      # that says an option was ignored or not supported.
5260      # When given -MP, icc 7.0 and 7.1 complain thusly:
5261      #   icc: Command line warning: ignoring option '-M'; no argument required
5262      # The diagnosis changed in icc 8.0:
5263      #   icc: Command line remark: option '-MP' not supported
5264      if (grep 'ignoring option' conftest.err ||
5265          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5266        am_cv_CXX_dependencies_compiler_type=$depmode
5267        break
5268      fi
5269    fi
5270  done
5271
5272  cd ..
5273  rm -rf conftest.dir
5274else
5275  am_cv_CXX_dependencies_compiler_type=none
5276fi
5277
5278fi
5279{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5280echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5281CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5282
5283
5284
5285if
5286  test "x$enable_dependency_tracking" != xno \
5287  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5288  am__fastdepCXX_TRUE=
5289  am__fastdepCXX_FALSE='#'
5290else
5291  am__fastdepCXX_TRUE='#'
5292  am__fastdepCXX_FALSE=
5293fi
5294
5295
5296# Check whether --enable-shared was given.
5297if test "${enable_shared+set}" = set; then
5298  enableval=$enable_shared; p=${PACKAGE-default}
5299    case $enableval in
5300    yes) enable_shared=yes ;;
5301    no) enable_shared=no ;;
5302    *)
5303      enable_shared=no
5304      # Look at the argument we got.  We use all the common list separators.
5305      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5306      for pkg in $enableval; do
5307	IFS="$lt_save_ifs"
5308	if test "X$pkg" = "X$p"; then
5309	  enable_shared=yes
5310	fi
5311      done
5312      IFS="$lt_save_ifs"
5313      ;;
5314    esac
5315else
5316  enable_shared=yes
5317fi
5318
5319
5320# Check whether --enable-static was given.
5321if test "${enable_static+set}" = set; then
5322  enableval=$enable_static; p=${PACKAGE-default}
5323    case $enableval in
5324    yes) enable_static=yes ;;
5325    no) enable_static=no ;;
5326    *)
5327     enable_static=no
5328      # Look at the argument we got.  We use all the common list separators.
5329      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5330      for pkg in $enableval; do
5331	IFS="$lt_save_ifs"
5332	if test "X$pkg" = "X$p"; then
5333	  enable_static=yes
5334	fi
5335      done
5336      IFS="$lt_save_ifs"
5337      ;;
5338    esac
5339else
5340  enable_static=yes
5341fi
5342
5343
5344# Check whether --enable-fast-install was given.
5345if test "${enable_fast_install+set}" = set; then
5346  enableval=$enable_fast_install; p=${PACKAGE-default}
5347    case $enableval in
5348    yes) enable_fast_install=yes ;;
5349    no) enable_fast_install=no ;;
5350    *)
5351      enable_fast_install=no
5352      # Look at the argument we got.  We use all the common list separators.
5353      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5354      for pkg in $enableval; do
5355	IFS="$lt_save_ifs"
5356	if test "X$pkg" = "X$p"; then
5357	  enable_fast_install=yes
5358	fi
5359      done
5360      IFS="$lt_save_ifs"
5361      ;;
5362    esac
5363else
5364  enable_fast_install=yes
5365fi
5366
5367
5368# Make sure we can run config.sub.
5369$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5370  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5371echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5372   { (exit 1); exit 1; }; }
5373
5374{ echo "$as_me:$LINENO: checking build system type" >&5
5375echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5376if test "${ac_cv_build+set}" = set; then
5377  echo $ECHO_N "(cached) $ECHO_C" >&6
5378else
5379  ac_build_alias=$build_alias
5380test "x$ac_build_alias" = x &&
5381  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5382test "x$ac_build_alias" = x &&
5383  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5384echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5385   { (exit 1); exit 1; }; }
5386ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5387  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5388echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5389   { (exit 1); exit 1; }; }
5390
5391fi
5392{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5393echo "${ECHO_T}$ac_cv_build" >&6; }
5394case $ac_cv_build in
5395*-*-*) ;;
5396*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5397echo "$as_me: error: invalid value of canonical build" >&2;}
5398   { (exit 1); exit 1; }; };;
5399esac
5400build=$ac_cv_build
5401ac_save_IFS=$IFS; IFS='-'
5402set x $ac_cv_build
5403shift
5404build_cpu=$1
5405build_vendor=$2
5406shift; shift
5407# Remember, the first character of IFS is used to create $*,
5408# except with old shells:
5409build_os=$*
5410IFS=$ac_save_IFS
5411case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5412
5413
5414{ echo "$as_me:$LINENO: checking host system type" >&5
5415echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5416if test "${ac_cv_host+set}" = set; then
5417  echo $ECHO_N "(cached) $ECHO_C" >&6
5418else
5419  if test "x$host_alias" = x; then
5420  ac_cv_host=$ac_cv_build
5421else
5422  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5423    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5424echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5425   { (exit 1); exit 1; }; }
5426fi
5427
5428fi
5429{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5430echo "${ECHO_T}$ac_cv_host" >&6; }
5431case $ac_cv_host in
5432*-*-*) ;;
5433*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5434echo "$as_me: error: invalid value of canonical host" >&2;}
5435   { (exit 1); exit 1; }; };;
5436esac
5437host=$ac_cv_host
5438ac_save_IFS=$IFS; IFS='-'
5439set x $ac_cv_host
5440shift
5441host_cpu=$1
5442host_vendor=$2
5443shift; shift
5444# Remember, the first character of IFS is used to create $*,
5445# except with old shells:
5446host_os=$*
5447IFS=$ac_save_IFS
5448case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5449
5450
5451{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5452echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5453if test "${lt_cv_path_SED+set}" = set; then
5454  echo $ECHO_N "(cached) $ECHO_C" >&6
5455else
5456  # Loop through the user's path and test for sed and gsed.
5457# Then use that list of sed's as ones to test for truncation.
5458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459for as_dir in $PATH
5460do
5461  IFS=$as_save_IFS
5462  test -z "$as_dir" && as_dir=.
5463  for lt_ac_prog in sed gsed; do
5464    for ac_exec_ext in '' $ac_executable_extensions; do
5465      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5466        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5467      fi
5468    done
5469  done
5470done
5471IFS=$as_save_IFS
5472lt_ac_max=0
5473lt_ac_count=0
5474# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5475# along with /bin/sed that truncates output.
5476for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5477  test ! -f $lt_ac_sed && continue
5478  cat /dev/null > conftest.in
5479  lt_ac_count=0
5480  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5481  # Check for GNU sed and select it if it is found.
5482  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5483    lt_cv_path_SED=$lt_ac_sed
5484    break
5485  fi
5486  while true; do
5487    cat conftest.in conftest.in >conftest.tmp
5488    mv conftest.tmp conftest.in
5489    cp conftest.in conftest.nl
5490    echo >>conftest.nl
5491    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5492    cmp -s conftest.out conftest.nl || break
5493    # 10000 chars as input seems more than enough
5494    test $lt_ac_count -gt 10 && break
5495    lt_ac_count=`expr $lt_ac_count + 1`
5496    if test $lt_ac_count -gt $lt_ac_max; then
5497      lt_ac_max=$lt_ac_count
5498      lt_cv_path_SED=$lt_ac_sed
5499    fi
5500  done
5501done
5502
5503fi
5504
5505SED=$lt_cv_path_SED
5506
5507{ echo "$as_me:$LINENO: result: $SED" >&5
5508echo "${ECHO_T}$SED" >&6; }
5509
5510
5511# Check whether --with-gnu-ld was given.
5512if test "${with_gnu_ld+set}" = set; then
5513  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5514else
5515  with_gnu_ld=no
5516fi
5517
5518ac_prog=ld
5519if test "$GCC" = yes; then
5520  # Check if gcc -print-prog-name=ld gives a path.
5521  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5522echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5523  case $host in
5524  *-*-mingw*)
5525    # gcc leaves a trailing carriage return which upsets mingw
5526    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5527  *)
5528    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5529  esac
5530  case $ac_prog in
5531    # Accept absolute paths.
5532    [\\/]* | ?:[\\/]*)
5533      re_direlt='/[^/][^/]*/\.\./'
5534      # Canonicalize the pathname of ld
5535      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5536      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5537	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5538      done
5539      test -z "$LD" && LD="$ac_prog"
5540      ;;
5541  "")
5542    # If it fails, then pretend we aren't using GCC.
5543    ac_prog=ld
5544    ;;
5545  *)
5546    # If it is relative, then search for the first ld in PATH.
5547    with_gnu_ld=unknown
5548    ;;
5549  esac
5550elif test "$with_gnu_ld" = yes; then
5551  { echo "$as_me:$LINENO: checking for GNU ld" >&5
5552echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5553else
5554  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5555echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5556fi
5557if test "${lt_cv_path_LD+set}" = set; then
5558  echo $ECHO_N "(cached) $ECHO_C" >&6
5559else
5560  if test -z "$LD"; then
5561  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5562  for ac_dir in $PATH; do
5563    IFS="$lt_save_ifs"
5564    test -z "$ac_dir" && ac_dir=.
5565    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5566      lt_cv_path_LD="$ac_dir/$ac_prog"
5567      # Check to see if the program is GNU ld.  I'd rather use --version,
5568      # but apparently some variants of GNU ld only accept -v.
5569      # Break only if it was the GNU/non-GNU ld that we prefer.
5570      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5571      *GNU* | *'with BFD'*)
5572	test "$with_gnu_ld" != no && break
5573	;;
5574      *)
5575	test "$with_gnu_ld" != yes && break
5576	;;
5577      esac
5578    fi
5579  done
5580  IFS="$lt_save_ifs"
5581else
5582  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5583fi
5584fi
5585
5586LD="$lt_cv_path_LD"
5587if test -n "$LD"; then
5588  { echo "$as_me:$LINENO: result: $LD" >&5
5589echo "${ECHO_T}$LD" >&6; }
5590else
5591  { echo "$as_me:$LINENO: result: no" >&5
5592echo "${ECHO_T}no" >&6; }
5593fi
5594test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5595echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5596   { (exit 1); exit 1; }; }
5597{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5598echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5599if test "${lt_cv_prog_gnu_ld+set}" = set; then
5600  echo $ECHO_N "(cached) $ECHO_C" >&6
5601else
5602  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5603case `$LD -v 2>&1 </dev/null` in
5604*GNU* | *'with BFD'*)
5605  lt_cv_prog_gnu_ld=yes
5606  ;;
5607*)
5608  lt_cv_prog_gnu_ld=no
5609  ;;
5610esac
5611fi
5612{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5613echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5614with_gnu_ld=$lt_cv_prog_gnu_ld
5615
5616
5617{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5618echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5619if test "${lt_cv_ld_reload_flag+set}" = set; then
5620  echo $ECHO_N "(cached) $ECHO_C" >&6
5621else
5622  lt_cv_ld_reload_flag='-r'
5623fi
5624{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5625echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5626reload_flag=$lt_cv_ld_reload_flag
5627case $reload_flag in
5628"" | " "*) ;;
5629*) reload_flag=" $reload_flag" ;;
5630esac
5631reload_cmds='$LD$reload_flag -o $output$reload_objs'
5632case $host_os in
5633  darwin*)
5634    if test "$GCC" = yes; then
5635      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5636    else
5637      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5638    fi
5639    ;;
5640esac
5641
5642{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5643echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5644if test "${lt_cv_path_NM+set}" = set; then
5645  echo $ECHO_N "(cached) $ECHO_C" >&6
5646else
5647  if test -n "$NM"; then
5648  # Let the user override the test.
5649  lt_cv_path_NM="$NM"
5650else
5651  lt_nm_to_check="${ac_tool_prefix}nm"
5652  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5653    lt_nm_to_check="$lt_nm_to_check nm"
5654  fi
5655  for lt_tmp_nm in $lt_nm_to_check; do
5656    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5657    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5658      IFS="$lt_save_ifs"
5659      test -z "$ac_dir" && ac_dir=.
5660      tmp_nm="$ac_dir/$lt_tmp_nm"
5661      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5662	# Check to see if the nm accepts a BSD-compat flag.
5663	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5664	#   nm: unknown option "B" ignored
5665	# Tru64's nm complains that /dev/null is an invalid object file
5666	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5667	*/dev/null* | *'Invalid file or object type'*)
5668	  lt_cv_path_NM="$tmp_nm -B"
5669	  break
5670	  ;;
5671	*)
5672	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5673	  */dev/null*)
5674	    lt_cv_path_NM="$tmp_nm -p"
5675	    break
5676	    ;;
5677	  *)
5678	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5679	    continue # so that we can try to find one that supports BSD flags
5680	    ;;
5681	  esac
5682	  ;;
5683	esac
5684      fi
5685    done
5686    IFS="$lt_save_ifs"
5687  done
5688  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5689fi
5690fi
5691{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5692echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5693NM="$lt_cv_path_NM"
5694
5695{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5696echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5697LN_S=$as_ln_s
5698if test "$LN_S" = "ln -s"; then
5699  { echo "$as_me:$LINENO: result: yes" >&5
5700echo "${ECHO_T}yes" >&6; }
5701else
5702  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5703echo "${ECHO_T}no, using $LN_S" >&6; }
5704fi
5705
5706{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5707echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
5708if test "${lt_cv_deplibs_check_method+set}" = set; then
5709  echo $ECHO_N "(cached) $ECHO_C" >&6
5710else
5711  lt_cv_file_magic_cmd='$MAGIC_CMD'
5712lt_cv_file_magic_test_file=
5713lt_cv_deplibs_check_method='unknown'
5714# Need to set the preceding variable on all platforms that support
5715# interlibrary dependencies.
5716# 'none' -- dependencies not supported.
5717# `unknown' -- same as none, but documents that we really don't know.
5718# 'pass_all' -- all dependencies passed with no checks.
5719# 'test_compile' -- check by making test program.
5720# 'file_magic [[regex]]' -- check by looking for files in library path
5721# which responds to the $file_magic_cmd with a given extended regex.
5722# If you have `file' or equivalent on your system and you're not sure
5723# whether `pass_all' will *always* work, you probably want this one.
5724
5725case $host_os in
5726aix4* | aix5*)
5727  lt_cv_deplibs_check_method=pass_all
5728  ;;
5729
5730beos*)
5731  lt_cv_deplibs_check_method=pass_all
5732  ;;
5733
5734bsdi[45]*)
5735  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5736  lt_cv_file_magic_cmd='/usr/bin/file -L'
5737  lt_cv_file_magic_test_file=/shlib/libc.so
5738  ;;
5739
5740cygwin*)
5741  # func_win32_libid is a shell function defined in ltmain.sh
5742  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5743  lt_cv_file_magic_cmd='func_win32_libid'
5744  ;;
5745
5746mingw* | pw32*)
5747  # Base MSYS/MinGW do not provide the 'file' command needed by
5748  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5749  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5750  lt_cv_file_magic_cmd='$OBJDUMP -f'
5751  ;;
5752
5753darwin* | rhapsody*)
5754  lt_cv_deplibs_check_method=pass_all
5755  ;;
5756
5757freebsd* | kfreebsd*-gnu | dragonfly*)
5758  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5759    case $host_cpu in
5760    i*86 )
5761      # Not sure whether the presence of OpenBSD here was a mistake.
5762      # Let's accept both of them until this is cleared up.
5763      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5764      lt_cv_file_magic_cmd=/usr/bin/file
5765      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5766      ;;
5767    esac
5768  else
5769    lt_cv_deplibs_check_method=pass_all
5770  fi
5771  ;;
5772
5773gnu*)
5774  lt_cv_deplibs_check_method=pass_all
5775  ;;
5776
5777hpux10.20* | hpux11*)
5778  lt_cv_file_magic_cmd=/usr/bin/file
5779  case $host_cpu in
5780  ia64*)
5781    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5782    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5783    ;;
5784  hppa*64*)
5785    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]'
5786    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5787    ;;
5788  *)
5789    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5790    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5791    ;;
5792  esac
5793  ;;
5794
5795interix3*)
5796  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5797  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5798  ;;
5799
5800irix5* | irix6* | nonstopux*)
5801  case $LD in
5802  *-32|*"-32 ") libmagic=32-bit;;
5803  *-n32|*"-n32 ") libmagic=N32;;
5804  *-64|*"-64 ") libmagic=64-bit;;
5805  *) libmagic=never-match;;
5806  esac
5807  lt_cv_deplibs_check_method=pass_all
5808  ;;
5809
5810# This must be Linux ELF.
5811linux*)
5812  lt_cv_deplibs_check_method=pass_all
5813  ;;
5814
5815netbsd*)
5816  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5817    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5818  else
5819    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5820  fi
5821  ;;
5822
5823newos6*)
5824  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5825  lt_cv_file_magic_cmd=/usr/bin/file
5826  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5827  ;;
5828
5829nto-qnx*)
5830  lt_cv_deplibs_check_method=unknown
5831  ;;
5832
5833openbsd*)
5834  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5835    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5836  else
5837    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5838  fi
5839  ;;
5840
5841osf3* | osf4* | osf5*)
5842  lt_cv_deplibs_check_method=pass_all
5843  ;;
5844
5845solaris*)
5846  lt_cv_deplibs_check_method=pass_all
5847  ;;
5848
5849sysv4 | sysv4.3*)
5850  case $host_vendor in
5851  motorola)
5852    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]'
5853    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5854    ;;
5855  ncr)
5856    lt_cv_deplibs_check_method=pass_all
5857    ;;
5858  sequent)
5859    lt_cv_file_magic_cmd='/bin/file'
5860    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5861    ;;
5862  sni)
5863    lt_cv_file_magic_cmd='/bin/file'
5864    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5865    lt_cv_file_magic_test_file=/lib/libc.so
5866    ;;
5867  siemens)
5868    lt_cv_deplibs_check_method=pass_all
5869    ;;
5870  pc)
5871    lt_cv_deplibs_check_method=pass_all
5872    ;;
5873  esac
5874  ;;
5875
5876sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5877  lt_cv_deplibs_check_method=pass_all
5878  ;;
5879esac
5880
5881fi
5882{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5883echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5884file_magic_cmd=$lt_cv_file_magic_cmd
5885deplibs_check_method=$lt_cv_deplibs_check_method
5886test -z "$deplibs_check_method" && deplibs_check_method=unknown
5887
5888
5889
5890
5891# If no C compiler was specified, use CC.
5892LTCC=${LTCC-"$CC"}
5893
5894# If no C compiler flags were specified, use CFLAGS.
5895LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5896
5897# Allow CC to be a program name with arguments.
5898compiler=$CC
5899
5900# Check whether --enable-libtool-lock was given.
5901if test "${enable_libtool_lock+set}" = set; then
5902  enableval=$enable_libtool_lock;
5903fi
5904
5905test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5906
5907# Some flags need to be propagated to the compiler or linker for good
5908# libtool support.
5909case $host in
5910ia64-*-hpux*)
5911  # Find out which ABI we are using.
5912  echo 'int i;' > conftest.$ac_ext
5913  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5914  (eval $ac_compile) 2>&5
5915  ac_status=$?
5916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917  (exit $ac_status); }; then
5918    case `/usr/bin/file conftest.$ac_objext` in
5919    *ELF-32*)
5920      HPUX_IA64_MODE="32"
5921      ;;
5922    *ELF-64*)
5923      HPUX_IA64_MODE="64"
5924      ;;
5925    esac
5926  fi
5927  rm -rf conftest*
5928  ;;
5929*-*-irix6*)
5930  # Find out which ABI we are using.
5931  echo '#line 5931 "configure"' > conftest.$ac_ext
5932  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5933  (eval $ac_compile) 2>&5
5934  ac_status=$?
5935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936  (exit $ac_status); }; then
5937   if test "$lt_cv_prog_gnu_ld" = yes; then
5938    case `/usr/bin/file conftest.$ac_objext` in
5939    *32-bit*)
5940      LD="${LD-ld} -melf32bsmip"
5941      ;;
5942    *N32*)
5943      LD="${LD-ld} -melf32bmipn32"
5944      ;;
5945    *64-bit*)
5946      LD="${LD-ld} -melf64bmip"
5947      ;;
5948    esac
5949   else
5950    case `/usr/bin/file conftest.$ac_objext` in
5951    *32-bit*)
5952      LD="${LD-ld} -32"
5953      ;;
5954    *N32*)
5955      LD="${LD-ld} -n32"
5956      ;;
5957    *64-bit*)
5958      LD="${LD-ld} -64"
5959      ;;
5960    esac
5961   fi
5962  fi
5963  rm -rf conftest*
5964  ;;
5965
5966x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5967  # Find out which ABI we are using.
5968  echo 'int i;' > conftest.$ac_ext
5969  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5970  (eval $ac_compile) 2>&5
5971  ac_status=$?
5972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973  (exit $ac_status); }; then
5974    case `/usr/bin/file conftest.o` in
5975    *32-bit*)
5976      case $host in
5977        x86_64-*linux*)
5978          LD="${LD-ld} -m elf_i386"
5979          ;;
5980        ppc64-*linux*|powerpc64-*linux*)
5981          LD="${LD-ld} -m elf32ppclinux"
5982          ;;
5983        s390x-*linux*)
5984          LD="${LD-ld} -m elf_s390"
5985          ;;
5986        sparc64-*linux*)
5987          LD="${LD-ld} -m elf32_sparc"
5988          ;;
5989      esac
5990      ;;
5991    *64-bit*)
5992      case $host in
5993        x86_64-*linux*)
5994          LD="${LD-ld} -m elf_x86_64"
5995          ;;
5996        ppc*-*linux*|powerpc*-*linux*)
5997          LD="${LD-ld} -m elf64ppc"
5998          ;;
5999        s390*-*linux*)
6000          LD="${LD-ld} -m elf64_s390"
6001          ;;
6002        sparc*-*linux*)
6003          LD="${LD-ld} -m elf64_sparc"
6004          ;;
6005      esac
6006      ;;
6007    esac
6008  fi
6009  rm -rf conftest*
6010  ;;
6011
6012*-*-sco3.2v5*)
6013  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6014  SAVE_CFLAGS="$CFLAGS"
6015  CFLAGS="$CFLAGS -belf"
6016  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6017echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6018if test "${lt_cv_cc_needs_belf+set}" = set; then
6019  echo $ECHO_N "(cached) $ECHO_C" >&6
6020else
6021  ac_ext=c
6022ac_cpp='$CPP $CPPFLAGS'
6023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6025ac_compiler_gnu=$ac_cv_c_compiler_gnu
6026
6027     cat >conftest.$ac_ext <<_ACEOF
6028/* confdefs.h.  */
6029_ACEOF
6030cat confdefs.h >>conftest.$ac_ext
6031cat >>conftest.$ac_ext <<_ACEOF
6032/* end confdefs.h.  */
6033
6034int
6035main ()
6036{
6037
6038  ;
6039  return 0;
6040}
6041_ACEOF
6042rm -f conftest.$ac_objext conftest$ac_exeext
6043if { (ac_try="$ac_link"
6044case "(($ac_try" in
6045  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6046  *) ac_try_echo=$ac_try;;
6047esac
6048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6049  (eval "$ac_link") 2>conftest.er1
6050  ac_status=$?
6051  grep -v '^ *+' conftest.er1 >conftest.err
6052  rm -f conftest.er1
6053  cat conftest.err >&5
6054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055  (exit $ac_status); } && {
6056	 test -z "$ac_c_werror_flag" ||
6057	 test ! -s conftest.err
6058       } && test -s conftest$ac_exeext &&
6059       $as_test_x conftest$ac_exeext; then
6060  lt_cv_cc_needs_belf=yes
6061else
6062  echo "$as_me: failed program was:" >&5
6063sed 's/^/| /' conftest.$ac_ext >&5
6064
6065	lt_cv_cc_needs_belf=no
6066fi
6067
6068rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6069      conftest$ac_exeext conftest.$ac_ext
6070     ac_ext=c
6071ac_cpp='$CPP $CPPFLAGS'
6072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6074ac_compiler_gnu=$ac_cv_c_compiler_gnu
6075
6076fi
6077{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6078echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6079  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6080    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6081    CFLAGS="$SAVE_CFLAGS"
6082  fi
6083  ;;
6084sparc*-*solaris*)
6085  # Find out which ABI we are using.
6086  echo 'int i;' > conftest.$ac_ext
6087  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6088  (eval $ac_compile) 2>&5
6089  ac_status=$?
6090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091  (exit $ac_status); }; then
6092    case `/usr/bin/file conftest.o` in
6093    *64-bit*)
6094      case $lt_cv_prog_gnu_ld in
6095      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6096      *)    LD="${LD-ld} -64" ;;
6097      esac
6098      ;;
6099    esac
6100  fi
6101  rm -rf conftest*
6102  ;;
6103
6104
6105esac
6106
6107need_locks="$enable_libtool_lock"
6108
6109
6110
6111for ac_header in dlfcn.h
6112do
6113as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6114if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6115  { echo "$as_me:$LINENO: checking for $ac_header" >&5
6116echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6117if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6118  echo $ECHO_N "(cached) $ECHO_C" >&6
6119fi
6120ac_res=`eval echo '${'$as_ac_Header'}'`
6121	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6122echo "${ECHO_T}$ac_res" >&6; }
6123else
6124  # Is the header compilable?
6125{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6126echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6127cat >conftest.$ac_ext <<_ACEOF
6128/* confdefs.h.  */
6129_ACEOF
6130cat confdefs.h >>conftest.$ac_ext
6131cat >>conftest.$ac_ext <<_ACEOF
6132/* end confdefs.h.  */
6133$ac_includes_default
6134#include <$ac_header>
6135_ACEOF
6136rm -f conftest.$ac_objext
6137if { (ac_try="$ac_compile"
6138case "(($ac_try" in
6139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6140  *) ac_try_echo=$ac_try;;
6141esac
6142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6143  (eval "$ac_compile") 2>conftest.er1
6144  ac_status=$?
6145  grep -v '^ *+' conftest.er1 >conftest.err
6146  rm -f conftest.er1
6147  cat conftest.err >&5
6148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149  (exit $ac_status); } && {
6150	 test -z "$ac_c_werror_flag" ||
6151	 test ! -s conftest.err
6152       } && test -s conftest.$ac_objext; then
6153  ac_header_compiler=yes
6154else
6155  echo "$as_me: failed program was:" >&5
6156sed 's/^/| /' conftest.$ac_ext >&5
6157
6158	ac_header_compiler=no
6159fi
6160
6161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6162{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6163echo "${ECHO_T}$ac_header_compiler" >&6; }
6164
6165# Is the header present?
6166{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6167echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6168cat >conftest.$ac_ext <<_ACEOF
6169/* confdefs.h.  */
6170_ACEOF
6171cat confdefs.h >>conftest.$ac_ext
6172cat >>conftest.$ac_ext <<_ACEOF
6173/* end confdefs.h.  */
6174#include <$ac_header>
6175_ACEOF
6176if { (ac_try="$ac_cpp conftest.$ac_ext"
6177case "(($ac_try" in
6178  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6179  *) ac_try_echo=$ac_try;;
6180esac
6181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6182  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6183  ac_status=$?
6184  grep -v '^ *+' conftest.er1 >conftest.err
6185  rm -f conftest.er1
6186  cat conftest.err >&5
6187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188  (exit $ac_status); } >/dev/null && {
6189	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6190	 test ! -s conftest.err
6191       }; then
6192  ac_header_preproc=yes
6193else
6194  echo "$as_me: failed program was:" >&5
6195sed 's/^/| /' conftest.$ac_ext >&5
6196
6197  ac_header_preproc=no
6198fi
6199
6200rm -f conftest.err conftest.$ac_ext
6201{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6202echo "${ECHO_T}$ac_header_preproc" >&6; }
6203
6204# So?  What about this header?
6205case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6206  yes:no: )
6207    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6208echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6209    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6210echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6211    ac_header_preproc=yes
6212    ;;
6213  no:yes:* )
6214    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6215echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6216    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6217echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6218    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6219echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6220    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6221echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6222    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6223echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6224    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6225echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6226    ( cat <<\_ASBOX
6227## --------------------------------- ##
6228## Report this to omalley@apache.org ##
6229## --------------------------------- ##
6230_ASBOX
6231     ) | sed "s/^/$as_me: WARNING:     /" >&2
6232    ;;
6233esac
6234{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6235echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6236if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6237  echo $ECHO_N "(cached) $ECHO_C" >&6
6238else
6239  eval "$as_ac_Header=\$ac_header_preproc"
6240fi
6241ac_res=`eval echo '${'$as_ac_Header'}'`
6242	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6243echo "${ECHO_T}$ac_res" >&6; }
6244
6245fi
6246if test `eval echo '${'$as_ac_Header'}'` = yes; then
6247  cat >>confdefs.h <<_ACEOF
6248#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6249_ACEOF
6250
6251fi
6252
6253done
6254
6255
6256
6257if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6258    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6259    (test "X$CXX" != "Xg++"))) ; then
6260  ac_ext=cpp
6261ac_cpp='$CXXCPP $CPPFLAGS'
6262ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6263ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6264ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6265{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6266echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6267if test -z "$CXXCPP"; then
6268  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6269  echo $ECHO_N "(cached) $ECHO_C" >&6
6270else
6271      # Double quotes because CXXCPP needs to be expanded
6272    for CXXCPP in "$CXX -E" "/lib/cpp"
6273    do
6274      ac_preproc_ok=false
6275for ac_cxx_preproc_warn_flag in '' yes
6276do
6277  # Use a header file that comes with gcc, so configuring glibc
6278  # with a fresh cross-compiler works.
6279  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6280  # <limits.h> exists even on freestanding compilers.
6281  # On the NeXT, cc -E runs the code through the compiler's parser,
6282  # not just through cpp. "Syntax error" is here to catch this case.
6283  cat >conftest.$ac_ext <<_ACEOF
6284/* confdefs.h.  */
6285_ACEOF
6286cat confdefs.h >>conftest.$ac_ext
6287cat >>conftest.$ac_ext <<_ACEOF
6288/* end confdefs.h.  */
6289#ifdef __STDC__
6290# include <limits.h>
6291#else
6292# include <assert.h>
6293#endif
6294		     Syntax error
6295_ACEOF
6296if { (ac_try="$ac_cpp conftest.$ac_ext"
6297case "(($ac_try" in
6298  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6299  *) ac_try_echo=$ac_try;;
6300esac
6301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6302  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6303  ac_status=$?
6304  grep -v '^ *+' conftest.er1 >conftest.err
6305  rm -f conftest.er1
6306  cat conftest.err >&5
6307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308  (exit $ac_status); } >/dev/null && {
6309	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6310	 test ! -s conftest.err
6311       }; then
6312  :
6313else
6314  echo "$as_me: failed program was:" >&5
6315sed 's/^/| /' conftest.$ac_ext >&5
6316
6317  # Broken: fails on valid input.
6318continue
6319fi
6320
6321rm -f conftest.err conftest.$ac_ext
6322
6323  # OK, works on sane cases.  Now check whether nonexistent headers
6324  # can be detected and how.
6325  cat >conftest.$ac_ext <<_ACEOF
6326/* confdefs.h.  */
6327_ACEOF
6328cat confdefs.h >>conftest.$ac_ext
6329cat >>conftest.$ac_ext <<_ACEOF
6330/* end confdefs.h.  */
6331#include <ac_nonexistent.h>
6332_ACEOF
6333if { (ac_try="$ac_cpp conftest.$ac_ext"
6334case "(($ac_try" in
6335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6336  *) ac_try_echo=$ac_try;;
6337esac
6338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6339  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6340  ac_status=$?
6341  grep -v '^ *+' conftest.er1 >conftest.err
6342  rm -f conftest.er1
6343  cat conftest.err >&5
6344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345  (exit $ac_status); } >/dev/null && {
6346	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6347	 test ! -s conftest.err
6348       }; then
6349  # Broken: success on invalid input.
6350continue
6351else
6352  echo "$as_me: failed program was:" >&5
6353sed 's/^/| /' conftest.$ac_ext >&5
6354
6355  # Passes both tests.
6356ac_preproc_ok=:
6357break
6358fi
6359
6360rm -f conftest.err conftest.$ac_ext
6361
6362done
6363# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6364rm -f conftest.err conftest.$ac_ext
6365if $ac_preproc_ok; then
6366  break
6367fi
6368
6369    done
6370    ac_cv_prog_CXXCPP=$CXXCPP
6371
6372fi
6373  CXXCPP=$ac_cv_prog_CXXCPP
6374else
6375  ac_cv_prog_CXXCPP=$CXXCPP
6376fi
6377{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6378echo "${ECHO_T}$CXXCPP" >&6; }
6379ac_preproc_ok=false
6380for ac_cxx_preproc_warn_flag in '' yes
6381do
6382  # Use a header file that comes with gcc, so configuring glibc
6383  # with a fresh cross-compiler works.
6384  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6385  # <limits.h> exists even on freestanding compilers.
6386  # On the NeXT, cc -E runs the code through the compiler's parser,
6387  # not just through cpp. "Syntax error" is here to catch this case.
6388  cat >conftest.$ac_ext <<_ACEOF
6389/* confdefs.h.  */
6390_ACEOF
6391cat confdefs.h >>conftest.$ac_ext
6392cat >>conftest.$ac_ext <<_ACEOF
6393/* end confdefs.h.  */
6394#ifdef __STDC__
6395# include <limits.h>
6396#else
6397# include <assert.h>
6398#endif
6399		     Syntax error
6400_ACEOF
6401if { (ac_try="$ac_cpp conftest.$ac_ext"
6402case "(($ac_try" in
6403  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6404  *) ac_try_echo=$ac_try;;
6405esac
6406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6407  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6408  ac_status=$?
6409  grep -v '^ *+' conftest.er1 >conftest.err
6410  rm -f conftest.er1
6411  cat conftest.err >&5
6412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413  (exit $ac_status); } >/dev/null && {
6414	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6415	 test ! -s conftest.err
6416       }; then
6417  :
6418else
6419  echo "$as_me: failed program was:" >&5
6420sed 's/^/| /' conftest.$ac_ext >&5
6421
6422  # Broken: fails on valid input.
6423continue
6424fi
6425
6426rm -f conftest.err conftest.$ac_ext
6427
6428  # OK, works on sane cases.  Now check whether nonexistent headers
6429  # can be detected and how.
6430  cat >conftest.$ac_ext <<_ACEOF
6431/* confdefs.h.  */
6432_ACEOF
6433cat confdefs.h >>conftest.$ac_ext
6434cat >>conftest.$ac_ext <<_ACEOF
6435/* end confdefs.h.  */
6436#include <ac_nonexistent.h>
6437_ACEOF
6438if { (ac_try="$ac_cpp conftest.$ac_ext"
6439case "(($ac_try" in
6440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6441  *) ac_try_echo=$ac_try;;
6442esac
6443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6444  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6445  ac_status=$?
6446  grep -v '^ *+' conftest.er1 >conftest.err
6447  rm -f conftest.er1
6448  cat conftest.err >&5
6449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450  (exit $ac_status); } >/dev/null && {
6451	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6452	 test ! -s conftest.err
6453       }; then
6454  # Broken: success on invalid input.
6455continue
6456else
6457  echo "$as_me: failed program was:" >&5
6458sed 's/^/| /' conftest.$ac_ext >&5
6459
6460  # Passes both tests.
6461ac_preproc_ok=:
6462break
6463fi
6464
6465rm -f conftest.err conftest.$ac_ext
6466
6467done
6468# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6469rm -f conftest.err conftest.$ac_ext
6470if $ac_preproc_ok; then
6471  :
6472else
6473  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6474See \`config.log' for more details." >&5
6475echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6476See \`config.log' for more details." >&2;}
6477   { (exit 1); exit 1; }; }
6478fi
6479
6480ac_ext=cpp
6481ac_cpp='$CXXCPP $CPPFLAGS'
6482ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6483ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6484ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6485
6486fi
6487
6488
6489ac_ext=f
6490ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6491ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6492ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6493if test -n "$ac_tool_prefix"; then
6494  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
6495  do
6496    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6497set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6498{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6500if test "${ac_cv_prog_F77+set}" = set; then
6501  echo $ECHO_N "(cached) $ECHO_C" >&6
6502else
6503  if test -n "$F77"; then
6504  ac_cv_prog_F77="$F77" # Let the user override the test.
6505else
6506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6507for as_dir in $PATH
6508do
6509  IFS=$as_save_IFS
6510  test -z "$as_dir" && as_dir=.
6511  for ac_exec_ext in '' $ac_executable_extensions; do
6512  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6513    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6514    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6515    break 2
6516  fi
6517done
6518done
6519IFS=$as_save_IFS
6520
6521fi
6522fi
6523F77=$ac_cv_prog_F77
6524if test -n "$F77"; then
6525  { echo "$as_me:$LINENO: result: $F77" >&5
6526echo "${ECHO_T}$F77" >&6; }
6527else
6528  { echo "$as_me:$LINENO: result: no" >&5
6529echo "${ECHO_T}no" >&6; }
6530fi
6531
6532
6533    test -n "$F77" && break
6534  done
6535fi
6536if test -z "$F77"; then
6537  ac_ct_F77=$F77
6538  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
6539do
6540  # Extract the first word of "$ac_prog", so it can be a program name with args.
6541set dummy $ac_prog; ac_word=$2
6542{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6544if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6545  echo $ECHO_N "(cached) $ECHO_C" >&6
6546else
6547  if test -n "$ac_ct_F77"; then
6548  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6549else
6550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551for as_dir in $PATH
6552do
6553  IFS=$as_save_IFS
6554  test -z "$as_dir" && as_dir=.
6555  for ac_exec_ext in '' $ac_executable_extensions; do
6556  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6557    ac_cv_prog_ac_ct_F77="$ac_prog"
6558    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6559    break 2
6560  fi
6561done
6562done
6563IFS=$as_save_IFS
6564
6565fi
6566fi
6567ac_ct_F77=$ac_cv_prog_ac_ct_F77
6568if test -n "$ac_ct_F77"; then
6569  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6570echo "${ECHO_T}$ac_ct_F77" >&6; }
6571else
6572  { echo "$as_me:$LINENO: result: no" >&5
6573echo "${ECHO_T}no" >&6; }
6574fi
6575
6576
6577  test -n "$ac_ct_F77" && break
6578done
6579
6580  if test "x$ac_ct_F77" = x; then
6581    F77=""
6582  else
6583    case $cross_compiling:$ac_tool_warned in
6584yes:)
6585{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6586whose name does not start with the host triplet.  If you think this
6587configuration is useful to you, please write to autoconf@gnu.org." >&5
6588echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6589whose name does not start with the host triplet.  If you think this
6590configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6591ac_tool_warned=yes ;;
6592esac
6593    F77=$ac_ct_F77
6594  fi
6595fi
6596
6597
6598# Provide some information about the compiler.
6599echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6600ac_compiler=`set X $ac_compile; echo $2`
6601{ (ac_try="$ac_compiler --version >&5"
6602case "(($ac_try" in
6603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6604  *) ac_try_echo=$ac_try;;
6605esac
6606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6607  (eval "$ac_compiler --version >&5") 2>&5
6608  ac_status=$?
6609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610  (exit $ac_status); }
6611{ (ac_try="$ac_compiler -v >&5"
6612case "(($ac_try" in
6613  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6614  *) ac_try_echo=$ac_try;;
6615esac
6616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6617  (eval "$ac_compiler -v >&5") 2>&5
6618  ac_status=$?
6619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620  (exit $ac_status); }
6621{ (ac_try="$ac_compiler -V >&5"
6622case "(($ac_try" in
6623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6624  *) ac_try_echo=$ac_try;;
6625esac
6626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6627  (eval "$ac_compiler -V >&5") 2>&5
6628  ac_status=$?
6629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630  (exit $ac_status); }
6631rm -f a.out
6632
6633# If we don't use `.F' as extension, the preprocessor is not run on the
6634# input file.  (Note that this only needs to work for GNU compilers.)
6635ac_save_ext=$ac_ext
6636ac_ext=F
6637{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6638echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6639if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6640  echo $ECHO_N "(cached) $ECHO_C" >&6
6641else
6642  cat >conftest.$ac_ext <<_ACEOF
6643      program main
6644#ifndef __GNUC__
6645       choke me
6646#endif
6647
6648      end
6649_ACEOF
6650rm -f conftest.$ac_objext
6651if { (ac_try="$ac_compile"
6652case "(($ac_try" in
6653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6654  *) ac_try_echo=$ac_try;;
6655esac
6656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6657  (eval "$ac_compile") 2>conftest.er1
6658  ac_status=$?
6659  grep -v '^ *+' conftest.er1 >conftest.err
6660  rm -f conftest.er1
6661  cat conftest.err >&5
6662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663  (exit $ac_status); } && {
6664	 test -z "$ac_f77_werror_flag" ||
6665	 test ! -s conftest.err
6666       } && test -s conftest.$ac_objext; then
6667  ac_compiler_gnu=yes
6668else
6669  echo "$as_me: failed program was:" >&5
6670sed 's/^/| /' conftest.$ac_ext >&5
6671
6672	ac_compiler_gnu=no
6673fi
6674
6675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6676ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6677
6678fi
6679{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6680echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6681ac_ext=$ac_save_ext
6682ac_test_FFLAGS=${FFLAGS+set}
6683ac_save_FFLAGS=$FFLAGS
6684FFLAGS=
6685{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6686echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6687if test "${ac_cv_prog_f77_g+set}" = set; then
6688  echo $ECHO_N "(cached) $ECHO_C" >&6
6689else
6690  FFLAGS=-g
6691cat >conftest.$ac_ext <<_ACEOF
6692      program main
6693
6694      end
6695_ACEOF
6696rm -f conftest.$ac_objext
6697if { (ac_try="$ac_compile"
6698case "(($ac_try" in
6699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6700  *) ac_try_echo=$ac_try;;
6701esac
6702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6703  (eval "$ac_compile") 2>conftest.er1
6704  ac_status=$?
6705  grep -v '^ *+' conftest.er1 >conftest.err
6706  rm -f conftest.er1
6707  cat conftest.err >&5
6708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709  (exit $ac_status); } && {
6710	 test -z "$ac_f77_werror_flag" ||
6711	 test ! -s conftest.err
6712       } && test -s conftest.$ac_objext; then
6713  ac_cv_prog_f77_g=yes
6714else
6715  echo "$as_me: failed program was:" >&5
6716sed 's/^/| /' conftest.$ac_ext >&5
6717
6718	ac_cv_prog_f77_g=no
6719fi
6720
6721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6722
6723fi
6724{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6725echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6726if test "$ac_test_FFLAGS" = set; then
6727  FFLAGS=$ac_save_FFLAGS
6728elif test $ac_cv_prog_f77_g = yes; then
6729  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6730    FFLAGS="-g -O2"
6731  else
6732    FFLAGS="-g"
6733  fi
6734else
6735  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6736    FFLAGS="-O2"
6737  else
6738    FFLAGS=
6739  fi
6740fi
6741
6742G77=`test $ac_compiler_gnu = yes && echo yes`
6743ac_ext=c
6744ac_cpp='$CPP $CPPFLAGS'
6745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6747ac_compiler_gnu=$ac_cv_c_compiler_gnu
6748
6749
6750
6751# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6752
6753# find the maximum length of command line arguments
6754{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6755echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6756if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6757  echo $ECHO_N "(cached) $ECHO_C" >&6
6758else
6759    i=0
6760  teststring="ABCD"
6761
6762  case $build_os in
6763  msdosdjgpp*)
6764    # On DJGPP, this test can blow up pretty badly due to problems in libc
6765    # (any single argument exceeding 2000 bytes causes a buffer overrun
6766    # during glob expansion).  Even if it were fixed, the result of this
6767    # check would be larger than it should be.
6768    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6769    ;;
6770
6771  gnu*)
6772    # Under GNU Hurd, this test is not required because there is
6773    # no limit to the length of command line arguments.
6774    # Libtool will interpret -1 as no limit whatsoever
6775    lt_cv_sys_max_cmd_len=-1;
6776    ;;
6777
6778  cygwin* | mingw*)
6779    # On Win9x/ME, this test blows up -- it succeeds, but takes
6780    # about 5 minutes as the teststring grows exponentially.
6781    # Worse, since 9x/ME are not pre-emptively multitasking,
6782    # you end up with a "frozen" computer, even though with patience
6783    # the test eventually succeeds (with a max line length of 256k).
6784    # Instead, let's just punt: use the minimum linelength reported by
6785    # all of the supported platforms: 8192 (on NT/2K/XP).
6786    lt_cv_sys_max_cmd_len=8192;
6787    ;;
6788
6789  amigaos*)
6790    # On AmigaOS with pdksh, this test takes hours, literally.
6791    # So we just punt and use a minimum line length of 8192.
6792    lt_cv_sys_max_cmd_len=8192;
6793    ;;
6794
6795  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6796    # This has been around since 386BSD, at least.  Likely further.
6797    if test -x /sbin/sysctl; then
6798      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6799    elif test -x /usr/sbin/sysctl; then
6800      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6801    else
6802      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6803    fi
6804    # And add a safety zone
6805    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6806    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6807    ;;
6808
6809  interix*)
6810    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6811    lt_cv_sys_max_cmd_len=196608
6812    ;;
6813
6814  osf*)
6815    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6816    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6817    # nice to cause kernel panics so lets avoid the loop below.
6818    # First set a reasonable default.
6819    lt_cv_sys_max_cmd_len=16384
6820    #
6821    if test -x /sbin/sysconfig; then
6822      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6823        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6824      esac
6825    fi
6826    ;;
6827  sco3.2v5*)
6828    lt_cv_sys_max_cmd_len=102400
6829    ;;
6830  sysv5* | sco5v6* | sysv4.2uw2*)
6831    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6832    if test -n "$kargmax"; then
6833      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6834    else
6835      lt_cv_sys_max_cmd_len=32768
6836    fi
6837    ;;
6838  *)
6839    # If test is not a shell built-in, we'll probably end up computing a
6840    # maximum length that is only half of the actual maximum length, but
6841    # we can't tell.
6842    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6843    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6844	       = "XX$teststring") >/dev/null 2>&1 &&
6845	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
6846	    lt_cv_sys_max_cmd_len=$new_result &&
6847	    test $i != 17 # 1/2 MB should be enough
6848    do
6849      i=`expr $i + 1`
6850      teststring=$teststring$teststring
6851    done
6852    teststring=
6853    # Add a significant safety factor because C++ compilers can tack on massive
6854    # amounts of additional arguments before passing them to the linker.
6855    # It appears as though 1/2 is a usable value.
6856    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6857    ;;
6858  esac
6859
6860fi
6861
6862if test -n $lt_cv_sys_max_cmd_len ; then
6863  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6864echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6865else
6866  { echo "$as_me:$LINENO: result: none" >&5
6867echo "${ECHO_T}none" >&6; }
6868fi
6869
6870
6871
6872
6873# Check for command to grab the raw symbol name followed by C symbol from nm.
6874{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6875echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6876if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6877  echo $ECHO_N "(cached) $ECHO_C" >&6
6878else
6879
6880# These are sane defaults that work on at least a few old systems.
6881# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6882
6883# Character class describing NM global symbol codes.
6884symcode='[BCDEGRST]'
6885
6886# Regexp to match symbols that can be accessed directly from C.
6887sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6888
6889# Transform an extracted symbol line into a proper C declaration
6890lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6891
6892# Transform an extracted symbol line into symbol name and symbol address
6893lt_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'"
6894
6895# Define system-specific variables.
6896case $host_os in
6897aix*)
6898  symcode='[BCDT]'
6899  ;;
6900cygwin* | mingw* | pw32*)
6901  symcode='[ABCDGISTW]'
6902  ;;
6903hpux*) # Its linker distinguishes data from code symbols
6904  if test "$host_cpu" = ia64; then
6905    symcode='[ABCDEGRST]'
6906  fi
6907  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6908  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'"
6909  ;;
6910linux*)
6911  if test "$host_cpu" = ia64; then
6912    symcode='[ABCDGIRSTW]'
6913    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6914    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'"
6915  fi
6916  ;;
6917irix* | nonstopux*)
6918  symcode='[BCDEGRST]'
6919  ;;
6920osf*)
6921  symcode='[BCDEGQRST]'
6922  ;;
6923solaris*)
6924  symcode='[BDRT]'
6925  ;;
6926sco3.2v5*)
6927  symcode='[DT]'
6928  ;;
6929sysv4.2uw2*)
6930  symcode='[DT]'
6931  ;;
6932sysv5* | sco5v6* | unixware* | OpenUNIX*)
6933  symcode='[ABDT]'
6934  ;;
6935sysv4)
6936  symcode='[DFNSTU]'
6937  ;;
6938esac
6939
6940# Handle CRLF in mingw tool chain
6941opt_cr=
6942case $build_os in
6943mingw*)
6944  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6945  ;;
6946esac
6947
6948# If we're using GNU nm, then use its standard symbol codes.
6949case `$NM -V 2>&1` in
6950*GNU* | *'with BFD'*)
6951  symcode='[ABCDGIRSTW]' ;;
6952esac
6953
6954# Try without a prefix undercore, then with it.
6955for ac_symprfx in "" "_"; do
6956
6957  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6958  symxfrm="\\1 $ac_symprfx\\2 \\2"
6959
6960  # Write the raw and C identifiers.
6961  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6962
6963  # Check to see that the pipe works correctly.
6964  pipe_works=no
6965
6966  rm -f conftest*
6967  cat > conftest.$ac_ext <<EOF
6968#ifdef __cplusplus
6969extern "C" {
6970#endif
6971char nm_test_var;
6972void nm_test_func(){}
6973#ifdef __cplusplus
6974}
6975#endif
6976int main(){nm_test_var='a';nm_test_func();return(0);}
6977EOF
6978
6979  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6980  (eval $ac_compile) 2>&5
6981  ac_status=$?
6982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983  (exit $ac_status); }; then
6984    # Now try to grab the symbols.
6985    nlist=conftest.nm
6986    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6987  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6988  ac_status=$?
6989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990  (exit $ac_status); } && test -s "$nlist"; then
6991      # Try sorting and uniquifying the output.
6992      if sort "$nlist" | uniq > "$nlist"T; then
6993	mv -f "$nlist"T "$nlist"
6994      else
6995	rm -f "$nlist"T
6996      fi
6997
6998      # Make sure that we snagged all the symbols we need.
6999      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7000	if grep ' nm_test_func$' "$nlist" >/dev/null; then
7001	  cat <<EOF > conftest.$ac_ext
7002#ifdef __cplusplus
7003extern "C" {
7004#endif
7005
7006EOF
7007	  # Now generate the symbol file.
7008	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7009
7010	  cat <<EOF >> conftest.$ac_ext
7011#if defined (__STDC__) && __STDC__
7012# define lt_ptr_t void *
7013#else
7014# define lt_ptr_t char *
7015# define const
7016#endif
7017
7018/* The mapping between symbol names and symbols. */
7019const struct {
7020  const char *name;
7021  lt_ptr_t address;
7022}
7023lt_preloaded_symbols[] =
7024{
7025EOF
7026	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7027	  cat <<\EOF >> conftest.$ac_ext
7028  {0, (lt_ptr_t) 0}
7029};
7030
7031#ifdef __cplusplus
7032}
7033#endif
7034EOF
7035	  # Now try linking the two files.
7036	  mv conftest.$ac_objext conftstm.$ac_objext
7037	  lt_save_LIBS="$LIBS"
7038	  lt_save_CFLAGS="$CFLAGS"
7039	  LIBS="conftstm.$ac_objext"
7040	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7041	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7042  (eval $ac_link) 2>&5
7043  ac_status=$?
7044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7046	    pipe_works=yes
7047	  fi
7048	  LIBS="$lt_save_LIBS"
7049	  CFLAGS="$lt_save_CFLAGS"
7050	else
7051	  echo "cannot find nm_test_func in $nlist" >&5
7052	fi
7053      else
7054	echo "cannot find nm_test_var in $nlist" >&5
7055      fi
7056    else
7057      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7058    fi
7059  else
7060    echo "$progname: failed program was:" >&5
7061    cat conftest.$ac_ext >&5
7062  fi
7063  rm -f conftest* conftst*
7064
7065  # Do not use the global_symbol_pipe unless it works.
7066  if test "$pipe_works" = yes; then
7067    break
7068  else
7069    lt_cv_sys_global_symbol_pipe=
7070  fi
7071done
7072
7073fi
7074
7075if test -z "$lt_cv_sys_global_symbol_pipe"; then
7076  lt_cv_sys_global_symbol_to_cdecl=
7077fi
7078if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7079  { echo "$as_me:$LINENO: result: failed" >&5
7080echo "${ECHO_T}failed" >&6; }
7081else
7082  { echo "$as_me:$LINENO: result: ok" >&5
7083echo "${ECHO_T}ok" >&6; }
7084fi
7085
7086{ echo "$as_me:$LINENO: checking for objdir" >&5
7087echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7088if test "${lt_cv_objdir+set}" = set; then
7089  echo $ECHO_N "(cached) $ECHO_C" >&6
7090else
7091  rm -f .libs 2>/dev/null
7092mkdir .libs 2>/dev/null
7093if test -d .libs; then
7094  lt_cv_objdir=.libs
7095else
7096  # MS-DOS does not allow filenames that begin with a dot.
7097  lt_cv_objdir=_libs
7098fi
7099rmdir .libs 2>/dev/null
7100fi
7101{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7102echo "${ECHO_T}$lt_cv_objdir" >&6; }
7103objdir=$lt_cv_objdir
7104
7105
7106
7107
7108
7109case $host_os in
7110aix3*)
7111  # AIX sometimes has problems with the GCC collect2 program.  For some
7112  # reason, if we set the COLLECT_NAMES environment variable, the problems
7113  # vanish in a puff of smoke.
7114  if test "X${COLLECT_NAMES+set}" != Xset; then
7115    COLLECT_NAMES=
7116    export COLLECT_NAMES
7117  fi
7118  ;;
7119esac
7120
7121# Sed substitution that helps us do robust quoting.  It backslashifies
7122# metacharacters that are still active within double-quoted strings.
7123Xsed='sed -e 1s/^X//'
7124sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7125
7126# Same as above, but do not quote variable references.
7127double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7128
7129# Sed substitution to delay expansion of an escaped shell variable in a
7130# double_quote_subst'ed string.
7131delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7132
7133# Sed substitution to avoid accidental globbing in evaled expressions
7134no_glob_subst='s/\*/\\\*/g'
7135
7136# Constants:
7137rm="rm -f"
7138
7139# Global variables:
7140default_ofile=libtool
7141can_build_shared=yes
7142
7143# All known linkers require a `.a' archive for static linking (except MSVC,
7144# which needs '.lib').
7145libext=a
7146ltmain="$ac_aux_dir/ltmain.sh"
7147ofile="$default_ofile"
7148with_gnu_ld="$lt_cv_prog_gnu_ld"
7149
7150if test -n "$ac_tool_prefix"; then
7151  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7152set dummy ${ac_tool_prefix}ar; ac_word=$2
7153{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7155if test "${ac_cv_prog_AR+set}" = set; then
7156  echo $ECHO_N "(cached) $ECHO_C" >&6
7157else
7158  if test -n "$AR"; then
7159  ac_cv_prog_AR="$AR" # Let the user override the test.
7160else
7161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162for as_dir in $PATH
7163do
7164  IFS=$as_save_IFS
7165  test -z "$as_dir" && as_dir=.
7166  for ac_exec_ext in '' $ac_executable_extensions; do
7167  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7168    ac_cv_prog_AR="${ac_tool_prefix}ar"
7169    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7170    break 2
7171  fi
7172done
7173done
7174IFS=$as_save_IFS
7175
7176fi
7177fi
7178AR=$ac_cv_prog_AR
7179if test -n "$AR"; then
7180  { echo "$as_me:$LINENO: result: $AR" >&5
7181echo "${ECHO_T}$AR" >&6; }
7182else
7183  { echo "$as_me:$LINENO: result: no" >&5
7184echo "${ECHO_T}no" >&6; }
7185fi
7186
7187
7188fi
7189if test -z "$ac_cv_prog_AR"; then
7190  ac_ct_AR=$AR
7191  # Extract the first word of "ar", so it can be a program name with args.
7192set dummy ar; ac_word=$2
7193{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7195if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7196  echo $ECHO_N "(cached) $ECHO_C" >&6
7197else
7198  if test -n "$ac_ct_AR"; then
7199  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7200else
7201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202for as_dir in $PATH
7203do
7204  IFS=$as_save_IFS
7205  test -z "$as_dir" && as_dir=.
7206  for ac_exec_ext in '' $ac_executable_extensions; do
7207  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7208    ac_cv_prog_ac_ct_AR="ar"
7209    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7210    break 2
7211  fi
7212done
7213done
7214IFS=$as_save_IFS
7215
7216fi
7217fi
7218ac_ct_AR=$ac_cv_prog_ac_ct_AR
7219if test -n "$ac_ct_AR"; then
7220  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7221echo "${ECHO_T}$ac_ct_AR" >&6; }
7222else
7223  { echo "$as_me:$LINENO: result: no" >&5
7224echo "${ECHO_T}no" >&6; }
7225fi
7226
7227  if test "x$ac_ct_AR" = x; then
7228    AR="false"
7229  else
7230    case $cross_compiling:$ac_tool_warned in
7231yes:)
7232{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7233whose name does not start with the host triplet.  If you think this
7234configuration is useful to you, please write to autoconf@gnu.org." >&5
7235echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7236whose name does not start with the host triplet.  If you think this
7237configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7238ac_tool_warned=yes ;;
7239esac
7240    AR=$ac_ct_AR
7241  fi
7242else
7243  AR="$ac_cv_prog_AR"
7244fi
7245
7246if test -n "$ac_tool_prefix"; then
7247  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7248set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7249{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7251if test "${ac_cv_prog_RANLIB+set}" = set; then
7252  echo $ECHO_N "(cached) $ECHO_C" >&6
7253else
7254  if test -n "$RANLIB"; then
7255  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7256else
7257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258for as_dir in $PATH
7259do
7260  IFS=$as_save_IFS
7261  test -z "$as_dir" && as_dir=.
7262  for ac_exec_ext in '' $ac_executable_extensions; do
7263  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7264    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7265    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7266    break 2
7267  fi
7268done
7269done
7270IFS=$as_save_IFS
7271
7272fi
7273fi
7274RANLIB=$ac_cv_prog_RANLIB
7275if test -n "$RANLIB"; then
7276  { echo "$as_me:$LINENO: result: $RANLIB" >&5
7277echo "${ECHO_T}$RANLIB" >&6; }
7278else
7279  { echo "$as_me:$LINENO: result: no" >&5
7280echo "${ECHO_T}no" >&6; }
7281fi
7282
7283
7284fi
7285if test -z "$ac_cv_prog_RANLIB"; then
7286  ac_ct_RANLIB=$RANLIB
7287  # Extract the first word of "ranlib", so it can be a program name with args.
7288set dummy ranlib; ac_word=$2
7289{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7290echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7291if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7292  echo $ECHO_N "(cached) $ECHO_C" >&6
7293else
7294  if test -n "$ac_ct_RANLIB"; then
7295  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7296else
7297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298for as_dir in $PATH
7299do
7300  IFS=$as_save_IFS
7301  test -z "$as_dir" && as_dir=.
7302  for ac_exec_ext in '' $ac_executable_extensions; do
7303  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7304    ac_cv_prog_ac_ct_RANLIB="ranlib"
7305    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7306    break 2
7307  fi
7308done
7309done
7310IFS=$as_save_IFS
7311
7312fi
7313fi
7314ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7315if test -n "$ac_ct_RANLIB"; then
7316  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7317echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7318else
7319  { echo "$as_me:$LINENO: result: no" >&5
7320echo "${ECHO_T}no" >&6; }
7321fi
7322
7323  if test "x$ac_ct_RANLIB" = x; then
7324    RANLIB=":"
7325  else
7326    case $cross_compiling:$ac_tool_warned in
7327yes:)
7328{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7329whose name does not start with the host triplet.  If you think this
7330configuration is useful to you, please write to autoconf@gnu.org." >&5
7331echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7332whose name does not start with the host triplet.  If you think this
7333configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7334ac_tool_warned=yes ;;
7335esac
7336    RANLIB=$ac_ct_RANLIB
7337  fi
7338else
7339  RANLIB="$ac_cv_prog_RANLIB"
7340fi
7341
7342if test -n "$ac_tool_prefix"; then
7343  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7344set dummy ${ac_tool_prefix}strip; ac_word=$2
7345{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7347if test "${ac_cv_prog_STRIP+set}" = set; then
7348  echo $ECHO_N "(cached) $ECHO_C" >&6
7349else
7350  if test -n "$STRIP"; then
7351  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7352else
7353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354for as_dir in $PATH
7355do
7356  IFS=$as_save_IFS
7357  test -z "$as_dir" && as_dir=.
7358  for ac_exec_ext in '' $ac_executable_extensions; do
7359  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7360    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7361    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7362    break 2
7363  fi
7364done
7365done
7366IFS=$as_save_IFS
7367
7368fi
7369fi
7370STRIP=$ac_cv_prog_STRIP
7371if test -n "$STRIP"; then
7372  { echo "$as_me:$LINENO: result: $STRIP" >&5
7373echo "${ECHO_T}$STRIP" >&6; }
7374else
7375  { echo "$as_me:$LINENO: result: no" >&5
7376echo "${ECHO_T}no" >&6; }
7377fi
7378
7379
7380fi
7381if test -z "$ac_cv_prog_STRIP"; then
7382  ac_ct_STRIP=$STRIP
7383  # Extract the first word of "strip", so it can be a program name with args.
7384set dummy strip; ac_word=$2
7385{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7387if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7388  echo $ECHO_N "(cached) $ECHO_C" >&6
7389else
7390  if test -n "$ac_ct_STRIP"; then
7391  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7392else
7393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394for as_dir in $PATH
7395do
7396  IFS=$as_save_IFS
7397  test -z "$as_dir" && as_dir=.
7398  for ac_exec_ext in '' $ac_executable_extensions; do
7399  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7400    ac_cv_prog_ac_ct_STRIP="strip"
7401    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7402    break 2
7403  fi
7404done
7405done
7406IFS=$as_save_IFS
7407
7408fi
7409fi
7410ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7411if test -n "$ac_ct_STRIP"; then
7412  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7413echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7414else
7415  { echo "$as_me:$LINENO: result: no" >&5
7416echo "${ECHO_T}no" >&6; }
7417fi
7418
7419  if test "x$ac_ct_STRIP" = x; then
7420    STRIP=":"
7421  else
7422    case $cross_compiling:$ac_tool_warned in
7423yes:)
7424{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7425whose name does not start with the host triplet.  If you think this
7426configuration is useful to you, please write to autoconf@gnu.org." >&5
7427echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7428whose name does not start with the host triplet.  If you think this
7429configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7430ac_tool_warned=yes ;;
7431esac
7432    STRIP=$ac_ct_STRIP
7433  fi
7434else
7435  STRIP="$ac_cv_prog_STRIP"
7436fi
7437
7438
7439old_CC="$CC"
7440old_CFLAGS="$CFLAGS"
7441
7442# Set sane defaults for various variables
7443test -z "$AR" && AR=ar
7444test -z "$AR_FLAGS" && AR_FLAGS=cru
7445test -z "$AS" && AS=as
7446test -z "$CC" && CC=cc
7447test -z "$LTCC" && LTCC=$CC
7448test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7449test -z "$DLLTOOL" && DLLTOOL=dlltool
7450test -z "$LD" && LD=ld
7451test -z "$LN_S" && LN_S="ln -s"
7452test -z "$MAGIC_CMD" && MAGIC_CMD=file
7453test -z "$NM" && NM=nm
7454test -z "$SED" && SED=sed
7455test -z "$OBJDUMP" && OBJDUMP=objdump
7456test -z "$RANLIB" && RANLIB=:
7457test -z "$STRIP" && STRIP=:
7458test -z "$ac_objext" && ac_objext=o
7459
7460# Determine commands to create old-style static archives.
7461old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7462old_postinstall_cmds='chmod 644 $oldlib'
7463old_postuninstall_cmds=
7464
7465if test -n "$RANLIB"; then
7466  case $host_os in
7467  openbsd*)
7468    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7469    ;;
7470  *)
7471    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7472    ;;
7473  esac
7474  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7475fi
7476
7477for cc_temp in $compiler""; do
7478  case $cc_temp in
7479    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7480    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7481    \-*) ;;
7482    *) break;;
7483  esac
7484done
7485cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7486
7487
7488# Only perform the check for file, if the check method requires it
7489case $deplibs_check_method in
7490file_magic*)
7491  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7492    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7493echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7494if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7495  echo $ECHO_N "(cached) $ECHO_C" >&6
7496else
7497  case $MAGIC_CMD in
7498[\\/*] |  ?:[\\/]*)
7499  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7500  ;;
7501*)
7502  lt_save_MAGIC_CMD="$MAGIC_CMD"
7503  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7504  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7505  for ac_dir in $ac_dummy; do
7506    IFS="$lt_save_ifs"
7507    test -z "$ac_dir" && ac_dir=.
7508    if test -f $ac_dir/${ac_tool_prefix}file; then
7509      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7510      if test -n "$file_magic_test_file"; then
7511	case $deplibs_check_method in
7512	"file_magic "*)
7513	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7514	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7515	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7516	    $EGREP "$file_magic_regex" > /dev/null; then
7517	    :
7518	  else
7519	    cat <<EOF 1>&2
7520
7521*** Warning: the command libtool uses to detect shared libraries,
7522*** $file_magic_cmd, produces output that libtool cannot recognize.
7523*** The result is that libtool may fail to recognize shared libraries
7524*** as such.  This will affect the creation of libtool libraries that
7525*** depend on shared libraries, but programs linked with such libtool
7526*** libraries will work regardless of this problem.  Nevertheless, you
7527*** may want to report the problem to your system manager and/or to
7528*** bug-libtool@gnu.org
7529
7530EOF
7531	  fi ;;
7532	esac
7533      fi
7534      break
7535    fi
7536  done
7537  IFS="$lt_save_ifs"
7538  MAGIC_CMD="$lt_save_MAGIC_CMD"
7539  ;;
7540esac
7541fi
7542
7543MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7544if test -n "$MAGIC_CMD"; then
7545  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7546echo "${ECHO_T}$MAGIC_CMD" >&6; }
7547else
7548  { echo "$as_me:$LINENO: result: no" >&5
7549echo "${ECHO_T}no" >&6; }
7550fi
7551
7552if test -z "$lt_cv_path_MAGIC_CMD"; then
7553  if test -n "$ac_tool_prefix"; then
7554    { echo "$as_me:$LINENO: checking for file" >&5
7555echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7556if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7557  echo $ECHO_N "(cached) $ECHO_C" >&6
7558else
7559  case $MAGIC_CMD in
7560[\\/*] |  ?:[\\/]*)
7561  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7562  ;;
7563*)
7564  lt_save_MAGIC_CMD="$MAGIC_CMD"
7565  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7566  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7567  for ac_dir in $ac_dummy; do
7568    IFS="$lt_save_ifs"
7569    test -z "$ac_dir" && ac_dir=.
7570    if test -f $ac_dir/file; then
7571      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7572      if test -n "$file_magic_test_file"; then
7573	case $deplibs_check_method in
7574	"file_magic "*)
7575	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7576	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7577	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7578	    $EGREP "$file_magic_regex" > /dev/null; then
7579	    :
7580	  else
7581	    cat <<EOF 1>&2
7582
7583*** Warning: the command libtool uses to detect shared libraries,
7584*** $file_magic_cmd, produces output that libtool cannot recognize.
7585*** The result is that libtool may fail to recognize shared libraries
7586*** as such.  This will affect the creation of libtool libraries that
7587*** depend on shared libraries, but programs linked with such libtool
7588*** libraries will work regardless of this problem.  Nevertheless, you
7589*** may want to report the problem to your system manager and/or to
7590*** bug-libtool@gnu.org
7591
7592EOF
7593	  fi ;;
7594	esac
7595      fi
7596      break
7597    fi
7598  done
7599  IFS="$lt_save_ifs"
7600  MAGIC_CMD="$lt_save_MAGIC_CMD"
7601  ;;
7602esac
7603fi
7604
7605MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7606if test -n "$MAGIC_CMD"; then
7607  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7608echo "${ECHO_T}$MAGIC_CMD" >&6; }
7609else
7610  { echo "$as_me:$LINENO: result: no" >&5
7611echo "${ECHO_T}no" >&6; }
7612fi
7613
7614  else
7615    MAGIC_CMD=:
7616  fi
7617fi
7618
7619  fi
7620  ;;
7621esac
7622
7623enable_dlopen=no
7624enable_win32_dll=no
7625
7626# Check whether --enable-libtool-lock was given.
7627if test "${enable_libtool_lock+set}" = set; then
7628  enableval=$enable_libtool_lock;
7629fi
7630
7631test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7632
7633
7634# Check whether --with-pic was given.
7635if test "${with_pic+set}" = set; then
7636  withval=$with_pic; pic_mode="$withval"
7637else
7638  pic_mode=default
7639fi
7640
7641test -z "$pic_mode" && pic_mode=default
7642
7643# Use C for the default configuration in the libtool script
7644tagname=
7645lt_save_CC="$CC"
7646ac_ext=c
7647ac_cpp='$CPP $CPPFLAGS'
7648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7650ac_compiler_gnu=$ac_cv_c_compiler_gnu
7651
7652
7653# Source file extension for C test sources.
7654ac_ext=c
7655
7656# Object file extension for compiled C test sources.
7657objext=o
7658objext=$objext
7659
7660# Code to be used in simple compile tests
7661lt_simple_compile_test_code="int some_variable = 0;\n"
7662
7663# Code to be used in simple link tests
7664lt_simple_link_test_code='int main(){return(0);}\n'
7665
7666
7667# If no C compiler was specified, use CC.
7668LTCC=${LTCC-"$CC"}
7669
7670# If no C compiler flags were specified, use CFLAGS.
7671LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7672
7673# Allow CC to be a program name with arguments.
7674compiler=$CC
7675
7676
7677# save warnings/boilerplate of simple test code
7678ac_outfile=conftest.$ac_objext
7679printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7680eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7681_lt_compiler_boilerplate=`cat conftest.err`
7682$rm conftest*
7683
7684ac_outfile=conftest.$ac_objext
7685printf "$lt_simple_link_test_code" >conftest.$ac_ext
7686eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7687_lt_linker_boilerplate=`cat conftest.err`
7688$rm conftest*
7689
7690
7691
7692lt_prog_compiler_no_builtin_flag=
7693
7694if test "$GCC" = yes; then
7695  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7696
7697
7698{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7699echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7700if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7701  echo $ECHO_N "(cached) $ECHO_C" >&6
7702else
7703  lt_cv_prog_compiler_rtti_exceptions=no
7704  ac_outfile=conftest.$ac_objext
7705   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7706   lt_compiler_flag="-fno-rtti -fno-exceptions"
7707   # Insert the option either (1) after the last *FLAGS variable, or
7708   # (2) before a word containing "conftest.", or (3) at the end.
7709   # Note that $ac_compile itself does not contain backslashes and begins
7710   # with a dollar sign (not a hyphen), so the echo should work correctly.
7711   # The option is referenced via a variable to avoid confusing sed.
7712   lt_compile=`echo "$ac_compile" | $SED \
7713   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7714   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7715   -e 's:$: $lt_compiler_flag:'`
7716   (eval echo "\"\$as_me:7716: $lt_compile\"" >&5)
7717   (eval "$lt_compile" 2>conftest.err)
7718   ac_status=$?
7719   cat conftest.err >&5
7720   echo "$as_me:7720: \$? = $ac_status" >&5
7721   if (exit $ac_status) && test -s "$ac_outfile"; then
7722     # The compiler can only warn and ignore the option if not recognized
7723     # So say no if there are warnings other than the usual output.
7724     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7725     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7726     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7727       lt_cv_prog_compiler_rtti_exceptions=yes
7728     fi
7729   fi
7730   $rm conftest*
7731
7732fi
7733{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7734echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7735
7736if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7737    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7738else
7739    :
7740fi
7741
7742fi
7743
7744lt_prog_compiler_wl=
7745lt_prog_compiler_pic=
7746lt_prog_compiler_static=
7747
7748{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7749echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7750
7751  if test "$GCC" = yes; then
7752    lt_prog_compiler_wl='-Wl,'
7753    lt_prog_compiler_static='-static'
7754
7755    case $host_os in
7756      aix*)
7757      # All AIX code is PIC.
7758      if test "$host_cpu" = ia64; then
7759	# AIX 5 now supports IA64 processor
7760	lt_prog_compiler_static='-Bstatic'
7761      fi
7762      ;;
7763
7764    amigaos*)
7765      # FIXME: we need at least 68020 code to build shared libraries, but
7766      # adding the `-m68020' flag to GCC prevents building anything better,
7767      # like `-m68040'.
7768      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7769      ;;
7770
7771    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7772      # PIC is the default for these OSes.
7773      ;;
7774
7775    mingw* | pw32* | os2*)
7776      # This hack is so that the source file can tell whether it is being
7777      # built for inclusion in a dll (and should export symbols for example).
7778      lt_prog_compiler_pic='-DDLL_EXPORT'
7779      ;;
7780
7781    darwin* | rhapsody*)
7782      # PIC is the default on this platform
7783      # Common symbols not allowed in MH_DYLIB files
7784      lt_prog_compiler_pic='-fno-common'
7785      ;;
7786
7787    interix3*)
7788      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7789      # Instead, we relocate shared libraries at runtime.
7790      ;;
7791
7792    msdosdjgpp*)
7793      # Just because we use GCC doesn't mean we suddenly get shared libraries
7794      # on systems that don't support them.
7795      lt_prog_compiler_can_build_shared=no
7796      enable_shared=no
7797      ;;
7798
7799    sysv4*MP*)
7800      if test -d /usr/nec; then
7801	lt_prog_compiler_pic=-Kconform_pic
7802      fi
7803      ;;
7804
7805    hpux*)
7806      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7807      # not for PA HP-UX.
7808      case $host_cpu in
7809      hppa*64*|ia64*)
7810	# +Z the default
7811	;;
7812      *)
7813	lt_prog_compiler_pic='-fPIC'
7814	;;
7815      esac
7816      ;;
7817
7818    *)
7819      lt_prog_compiler_pic='-fPIC'
7820      ;;
7821    esac
7822  else
7823    # PORTME Check for flag to pass linker flags through the system compiler.
7824    case $host_os in
7825    aix*)
7826      lt_prog_compiler_wl='-Wl,'
7827      if test "$host_cpu" = ia64; then
7828	# AIX 5 now supports IA64 processor
7829	lt_prog_compiler_static='-Bstatic'
7830      else
7831	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7832      fi
7833      ;;
7834      darwin*)
7835        # PIC is the default on this platform
7836        # Common symbols not allowed in MH_DYLIB files
7837       case $cc_basename in
7838         xlc*)
7839         lt_prog_compiler_pic='-qnocommon'
7840         lt_prog_compiler_wl='-Wl,'
7841         ;;
7842       esac
7843       ;;
7844
7845    mingw* | pw32* | os2*)
7846      # This hack is so that the source file can tell whether it is being
7847      # built for inclusion in a dll (and should export symbols for example).
7848      lt_prog_compiler_pic='-DDLL_EXPORT'
7849      ;;
7850
7851    hpux9* | hpux10* | hpux11*)
7852      lt_prog_compiler_wl='-Wl,'
7853      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7854      # not for PA HP-UX.
7855      case $host_cpu in
7856      hppa*64*|ia64*)
7857	# +Z the default
7858	;;
7859      *)
7860	lt_prog_compiler_pic='+Z'
7861	;;
7862      esac
7863      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7864      lt_prog_compiler_static='${wl}-a ${wl}archive'
7865      ;;
7866
7867    irix5* | irix6* | nonstopux*)
7868      lt_prog_compiler_wl='-Wl,'
7869      # PIC (with -KPIC) is the default.
7870      lt_prog_compiler_static='-non_shared'
7871      ;;
7872
7873    newsos6)
7874      lt_prog_compiler_pic='-KPIC'
7875      lt_prog_compiler_static='-Bstatic'
7876      ;;
7877
7878    linux*)
7879      case $cc_basename in
7880      icc* | ecc*)
7881	lt_prog_compiler_wl='-Wl,'
7882	lt_prog_compiler_pic='-KPIC'
7883	lt_prog_compiler_static='-static'
7884        ;;
7885      pgcc* | pgf77* | pgf90* | pgf95*)
7886        # Portland Group compilers (*not* the Pentium gcc compiler,
7887	# which looks to be a dead project)
7888	lt_prog_compiler_wl='-Wl,'
7889	lt_prog_compiler_pic='-fpic'
7890	lt_prog_compiler_static='-Bstatic'
7891        ;;
7892      ccc*)
7893        lt_prog_compiler_wl='-Wl,'
7894        # All Alpha code is PIC.
7895        lt_prog_compiler_static='-non_shared'
7896        ;;
7897      esac
7898      ;;
7899
7900    osf3* | osf4* | osf5*)
7901      lt_prog_compiler_wl='-Wl,'
7902      # All OSF/1 code is PIC.
7903      lt_prog_compiler_static='-non_shared'
7904      ;;
7905
7906    solaris*)
7907      lt_prog_compiler_pic='-KPIC'
7908      lt_prog_compiler_static='-Bstatic'
7909      case $cc_basename in
7910      f77* | f90* | f95*)
7911	lt_prog_compiler_wl='-Qoption ld ';;
7912      *)
7913	lt_prog_compiler_wl='-Wl,';;
7914      esac
7915      ;;
7916
7917    sunos4*)
7918      lt_prog_compiler_wl='-Qoption ld '
7919      lt_prog_compiler_pic='-PIC'
7920      lt_prog_compiler_static='-Bstatic'
7921      ;;
7922
7923    sysv4 | sysv4.2uw2* | sysv4.3*)
7924      lt_prog_compiler_wl='-Wl,'
7925      lt_prog_compiler_pic='-KPIC'
7926      lt_prog_compiler_static='-Bstatic'
7927      ;;
7928
7929    sysv4*MP*)
7930      if test -d /usr/nec ;then
7931	lt_prog_compiler_pic='-Kconform_pic'
7932	lt_prog_compiler_static='-Bstatic'
7933      fi
7934      ;;
7935
7936    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7937      lt_prog_compiler_wl='-Wl,'
7938      lt_prog_compiler_pic='-KPIC'
7939      lt_prog_compiler_static='-Bstatic'
7940      ;;
7941
7942    unicos*)
7943      lt_prog_compiler_wl='-Wl,'
7944      lt_prog_compiler_can_build_shared=no
7945      ;;
7946
7947    uts4*)
7948      lt_prog_compiler_pic='-pic'
7949      lt_prog_compiler_static='-Bstatic'
7950      ;;
7951
7952    *)
7953      lt_prog_compiler_can_build_shared=no
7954      ;;
7955    esac
7956  fi
7957
7958{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7959echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7960
7961#
7962# Check to make sure the PIC flag actually works.
7963#
7964if test -n "$lt_prog_compiler_pic"; then
7965
7966{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7967echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7968if test "${lt_prog_compiler_pic_works+set}" = set; then
7969  echo $ECHO_N "(cached) $ECHO_C" >&6
7970else
7971  lt_prog_compiler_pic_works=no
7972  ac_outfile=conftest.$ac_objext
7973   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7974   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7975   # Insert the option either (1) after the last *FLAGS variable, or
7976   # (2) before a word containing "conftest.", or (3) at the end.
7977   # Note that $ac_compile itself does not contain backslashes and begins
7978   # with a dollar sign (not a hyphen), so the echo should work correctly.
7979   # The option is referenced via a variable to avoid confusing sed.
7980   lt_compile=`echo "$ac_compile" | $SED \
7981   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7982   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7983   -e 's:$: $lt_compiler_flag:'`
7984   (eval echo "\"\$as_me:7984: $lt_compile\"" >&5)
7985   (eval "$lt_compile" 2>conftest.err)
7986   ac_status=$?
7987   cat conftest.err >&5
7988   echo "$as_me:7988: \$? = $ac_status" >&5
7989   if (exit $ac_status) && test -s "$ac_outfile"; then
7990     # The compiler can only warn and ignore the option if not recognized
7991     # So say no if there are warnings other than the usual output.
7992     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7993     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7994     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7995       lt_prog_compiler_pic_works=yes
7996     fi
7997   fi
7998   $rm conftest*
7999
8000fi
8001{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8002echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8003
8004if test x"$lt_prog_compiler_pic_works" = xyes; then
8005    case $lt_prog_compiler_pic in
8006     "" | " "*) ;;
8007     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8008     esac
8009else
8010    lt_prog_compiler_pic=
8011     lt_prog_compiler_can_build_shared=no
8012fi
8013
8014fi
8015case $host_os in
8016  # For platforms which do not support PIC, -DPIC is meaningless:
8017  *djgpp*)
8018    lt_prog_compiler_pic=
8019    ;;
8020  *)
8021    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8022    ;;
8023esac
8024
8025#
8026# Check to make sure the static flag actually works.
8027#
8028wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8029{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8030echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8031if test "${lt_prog_compiler_static_works+set}" = set; then
8032  echo $ECHO_N "(cached) $ECHO_C" >&6
8033else
8034  lt_prog_compiler_static_works=no
8035   save_LDFLAGS="$LDFLAGS"
8036   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8037   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8038   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8039     # The linker can only warn and ignore the option if not recognized
8040     # So say no if there are warnings
8041     if test -s conftest.err; then
8042       # Append any errors to the config.log.
8043       cat conftest.err 1>&5
8044       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8045       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8046       if diff conftest.exp conftest.er2 >/dev/null; then
8047         lt_prog_compiler_static_works=yes
8048       fi
8049     else
8050       lt_prog_compiler_static_works=yes
8051     fi
8052   fi
8053   $rm conftest*
8054   LDFLAGS="$save_LDFLAGS"
8055
8056fi
8057{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8058echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8059
8060if test x"$lt_prog_compiler_static_works" = xyes; then
8061    :
8062else
8063    lt_prog_compiler_static=
8064fi
8065
8066
8067{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8068echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8069if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8070  echo $ECHO_N "(cached) $ECHO_C" >&6
8071else
8072  lt_cv_prog_compiler_c_o=no
8073   $rm -r conftest 2>/dev/null
8074   mkdir conftest
8075   cd conftest
8076   mkdir out
8077   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8078
8079   lt_compiler_flag="-o out/conftest2.$ac_objext"
8080   # Insert the option either (1) after the last *FLAGS variable, or
8081   # (2) before a word containing "conftest.", or (3) at the end.
8082   # Note that $ac_compile itself does not contain backslashes and begins
8083   # with a dollar sign (not a hyphen), so the echo should work correctly.
8084   lt_compile=`echo "$ac_compile" | $SED \
8085   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8086   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8087   -e 's:$: $lt_compiler_flag:'`
8088   (eval echo "\"\$as_me:8088: $lt_compile\"" >&5)
8089   (eval "$lt_compile" 2>out/conftest.err)
8090   ac_status=$?
8091   cat out/conftest.err >&5
8092   echo "$as_me:8092: \$? = $ac_status" >&5
8093   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8094   then
8095     # The compiler can only warn and ignore the option if not recognized
8096     # So say no if there are warnings
8097     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8098     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8099     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8100       lt_cv_prog_compiler_c_o=yes
8101     fi
8102   fi
8103   chmod u+w . 2>&5
8104   $rm conftest*
8105   # SGI C++ compiler will create directory out/ii_files/ for
8106   # template instantiation
8107   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8108   $rm out/* && rmdir out
8109   cd ..
8110   rmdir conftest
8111   $rm conftest*
8112
8113fi
8114{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8115echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8116
8117
8118hard_links="nottested"
8119if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8120  # do not overwrite the value of need_locks provided by the user
8121  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8122echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8123  hard_links=yes
8124  $rm conftest*
8125  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8126  touch conftest.a
8127  ln conftest.a conftest.b 2>&5 || hard_links=no
8128  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8129  { echo "$as_me:$LINENO: result: $hard_links" >&5
8130echo "${ECHO_T}$hard_links" >&6; }
8131  if test "$hard_links" = no; then
8132    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8133echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8134    need_locks=warn
8135  fi
8136else
8137  need_locks=no
8138fi
8139
8140{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8141echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8142
8143  runpath_var=
8144  allow_undefined_flag=
8145  enable_shared_with_static_runtimes=no
8146  archive_cmds=
8147  archive_expsym_cmds=
8148  old_archive_From_new_cmds=
8149  old_archive_from_expsyms_cmds=
8150  export_dynamic_flag_spec=
8151  whole_archive_flag_spec=
8152  thread_safe_flag_spec=
8153  hardcode_libdir_flag_spec=
8154  hardcode_libdir_flag_spec_ld=
8155  hardcode_libdir_separator=
8156  hardcode_direct=no
8157  hardcode_minus_L=no
8158  hardcode_shlibpath_var=unsupported
8159  link_all_deplibs=unknown
8160  hardcode_automatic=no
8161  module_cmds=
8162  module_expsym_cmds=
8163  always_export_symbols=no
8164  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8165  # include_expsyms should be a list of space-separated symbols to be *always*
8166  # included in the symbol list
8167  include_expsyms=
8168  # exclude_expsyms can be an extended regexp of symbols to exclude
8169  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8170  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8171  # as well as any symbol that contains `d'.
8172  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8173  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8174  # platforms (ab)use it in PIC code, but their linkers get confused if
8175  # the symbol is explicitly referenced.  Since portable code cannot
8176  # rely on this symbol name, it's probably fine to never include it in
8177  # preloaded symbol tables.
8178  extract_expsyms_cmds=
8179  # Just being paranoid about ensuring that cc_basename is set.
8180  for cc_temp in $compiler""; do
8181  case $cc_temp in
8182    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8183    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8184    \-*) ;;
8185    *) break;;
8186  esac
8187done
8188cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8189
8190  case $host_os in
8191  cygwin* | mingw* | pw32*)
8192    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8193    # When not using gcc, we currently assume that we are using
8194    # Microsoft Visual C++.
8195    if test "$GCC" != yes; then
8196      with_gnu_ld=no
8197    fi
8198    ;;
8199  interix*)
8200    # we just hope/assume this is gcc and not c89 (= MSVC++)
8201    with_gnu_ld=yes
8202    ;;
8203  openbsd*)
8204    with_gnu_ld=no
8205    ;;
8206  esac
8207
8208  ld_shlibs=yes
8209  if test "$with_gnu_ld" = yes; then
8210    # If archive_cmds runs LD, not CC, wlarc should be empty
8211    wlarc='${wl}'
8212
8213    # Set some defaults for GNU ld with shared library support. These
8214    # are reset later if shared libraries are not supported. Putting them
8215    # here allows them to be overridden if necessary.
8216    runpath_var=LD_RUN_PATH
8217    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8218    export_dynamic_flag_spec='${wl}--export-dynamic'
8219    # ancient GNU ld didn't support --whole-archive et. al.
8220    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8221	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8222      else
8223  	whole_archive_flag_spec=
8224    fi
8225    supports_anon_versioning=no
8226    case `$LD -v 2>/dev/null` in
8227      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8228      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8229      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8230      *\ 2.11.*) ;; # other 2.11 versions
8231      *) supports_anon_versioning=yes ;;
8232    esac
8233
8234    # See if GNU ld supports shared libraries.
8235    case $host_os in
8236    aix3* | aix4* | aix5*)
8237      # On AIX/PPC, the GNU linker is very broken
8238      if test "$host_cpu" != ia64; then
8239	ld_shlibs=no
8240	cat <<EOF 1>&2
8241
8242*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8243*** to be unable to reliably create shared libraries on AIX.
8244*** Therefore, libtool is disabling shared libraries support.  If you
8245*** really care for shared libraries, you may want to modify your PATH
8246*** so that a non-GNU linker is found, and then restart.
8247
8248EOF
8249      fi
8250      ;;
8251
8252    amigaos*)
8253      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)'
8254      hardcode_libdir_flag_spec='-L$libdir'
8255      hardcode_minus_L=yes
8256
8257      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8258      # that the semantics of dynamic libraries on AmigaOS, at least up
8259      # to version 4, is to share data among multiple programs linked
8260      # with the same dynamic library.  Since this doesn't match the
8261      # behavior of shared libraries on other platforms, we can't use
8262      # them.
8263      ld_shlibs=no
8264      ;;
8265
8266    beos*)
8267      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8268	allow_undefined_flag=unsupported
8269	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8270	# support --undefined.  This deserves some investigation.  FIXME
8271	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8272      else
8273	ld_shlibs=no
8274      fi
8275      ;;
8276
8277    cygwin* | mingw* | pw32*)
8278      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8279      # as there is no search path for DLLs.
8280      hardcode_libdir_flag_spec='-L$libdir'
8281      allow_undefined_flag=unsupported
8282      always_export_symbols=no
8283      enable_shared_with_static_runtimes=yes
8284      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8285
8286      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8287        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8288	# If the export-symbols file already is a .def file (1st line
8289	# is EXPORTS), use it as is; otherwise, prepend...
8290	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8291	  cp $export_symbols $output_objdir/$soname.def;
8292	else
8293	  echo EXPORTS > $output_objdir/$soname.def;
8294	  cat $export_symbols >> $output_objdir/$soname.def;
8295	fi~
8296	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8297      else
8298	ld_shlibs=no
8299      fi
8300      ;;
8301
8302    interix3*)
8303      hardcode_direct=no
8304      hardcode_shlibpath_var=no
8305      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8306      export_dynamic_flag_spec='${wl}-E'
8307      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8308      # Instead, shared libraries are loaded at an image base (0x10000000 by
8309      # default) and relocated if they conflict, which is a slow very memory
8310      # consuming and fragmenting process.  To avoid this, we pick a random,
8311      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8312      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8313      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8314      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'
8315      ;;
8316
8317    linux*)
8318      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8319	tmp_addflag=
8320	case $cc_basename,$host_cpu in
8321	pgcc*)				# Portland Group C compiler
8322	  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'
8323	  tmp_addflag=' $pic_flag'
8324	  ;;
8325	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8326	  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'
8327	  tmp_addflag=' $pic_flag -Mnomain' ;;
8328	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8329	  tmp_addflag=' -i_dynamic' ;;
8330	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8331	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8332	ifc* | ifort*)			# Intel Fortran compiler
8333	  tmp_addflag=' -nofor_main' ;;
8334	esac
8335	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8336
8337	if test $supports_anon_versioning = yes; then
8338	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8339  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8340  $echo "local: *; };" >> $output_objdir/$libname.ver~
8341	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8342	fi
8343      else
8344	ld_shlibs=no
8345      fi
8346      ;;
8347
8348    netbsd*)
8349      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8350	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8351	wlarc=
8352      else
8353	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8354	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8355      fi
8356      ;;
8357
8358    solaris*)
8359      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8360	ld_shlibs=no
8361	cat <<EOF 1>&2
8362
8363*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8364*** create shared libraries on Solaris systems.  Therefore, libtool
8365*** is disabling shared libraries support.  We urge you to upgrade GNU
8366*** binutils to release 2.9.1 or newer.  Another option is to modify
8367*** your PATH or compiler configuration so that the native linker is
8368*** used, and then restart.
8369
8370EOF
8371      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8372	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8373	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8374      else
8375	ld_shlibs=no
8376      fi
8377      ;;
8378
8379    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8380      case `$LD -v 2>&1` in
8381        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8382	ld_shlibs=no
8383	cat <<_LT_EOF 1>&2
8384
8385*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8386*** reliably create shared libraries on SCO systems.  Therefore, libtool
8387*** is disabling shared libraries support.  We urge you to upgrade GNU
8388*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8389*** your PATH or compiler configuration so that the native linker is
8390*** used, and then restart.
8391
8392_LT_EOF
8393	;;
8394	*)
8395	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8396	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8397	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8398	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8399	  else
8400	    ld_shlibs=no
8401	  fi
8402	;;
8403      esac
8404      ;;
8405
8406    sunos4*)
8407      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8408      wlarc=
8409      hardcode_direct=yes
8410      hardcode_shlibpath_var=no
8411      ;;
8412
8413    *)
8414      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8415	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8416	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8417      else
8418	ld_shlibs=no
8419      fi
8420      ;;
8421    esac
8422
8423    if test "$ld_shlibs" = no; then
8424      runpath_var=
8425      hardcode_libdir_flag_spec=
8426      export_dynamic_flag_spec=
8427      whole_archive_flag_spec=
8428    fi
8429  else
8430    # PORTME fill in a description of your system's linker (not GNU ld)
8431    case $host_os in
8432    aix3*)
8433      allow_undefined_flag=unsupported
8434      always_export_symbols=yes
8435      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'
8436      # Note: this linker hardcodes the directories in LIBPATH if there
8437      # are no directories specified by -L.
8438      hardcode_minus_L=yes
8439      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8440	# Neither direct hardcoding nor static linking is supported with a
8441	# broken collect2.
8442	hardcode_direct=unsupported
8443      fi
8444      ;;
8445
8446    aix4* | aix5*)
8447      if test "$host_cpu" = ia64; then
8448	# On IA64, the linker does run time linking by default, so we don't
8449	# have to do anything special.
8450	aix_use_runtimelinking=no
8451	exp_sym_flag='-Bexport'
8452	no_entry_flag=""
8453      else
8454	# If we're using GNU nm, then we don't want the "-C" option.
8455	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8456	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8457	  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'
8458	else
8459	  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'
8460	fi
8461	aix_use_runtimelinking=no
8462
8463	# Test if we are trying to use run time linking or normal
8464	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8465	# need to do runtime linking.
8466	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8467	  for ld_flag in $LDFLAGS; do
8468  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8469  	    aix_use_runtimelinking=yes
8470  	    break
8471  	  fi
8472	  done
8473	  ;;
8474	esac
8475
8476	exp_sym_flag='-bexport'
8477	no_entry_flag='-bnoentry'
8478      fi
8479
8480      # When large executables or shared objects are built, AIX ld can
8481      # have problems creating the table of contents.  If linking a library
8482      # or program results in "error TOC overflow" add -mminimal-toc to
8483      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8484      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8485
8486      archive_cmds=''
8487      hardcode_direct=yes
8488      hardcode_libdir_separator=':'
8489      link_all_deplibs=yes
8490
8491      if test "$GCC" = yes; then
8492	case $host_os in aix4.[012]|aix4.[012].*)
8493	# We only want to do this on AIX 4.2 and lower, the check
8494	# below for broken collect2 doesn't work under 4.3+
8495	  collect2name=`${CC} -print-prog-name=collect2`
8496	  if test -f "$collect2name" && \
8497  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8498	  then
8499  	  # We have reworked collect2
8500  	  hardcode_direct=yes
8501	  else
8502  	  # We have old collect2
8503  	  hardcode_direct=unsupported
8504  	  # It fails to find uninstalled libraries when the uninstalled
8505  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8506  	  # to unsupported forces relinking
8507  	  hardcode_minus_L=yes
8508  	  hardcode_libdir_flag_spec='-L$libdir'
8509  	  hardcode_libdir_separator=
8510	  fi
8511	  ;;
8512	esac
8513	shared_flag='-shared'
8514	if test "$aix_use_runtimelinking" = yes; then
8515	  shared_flag="$shared_flag "'${wl}-G'
8516	fi
8517      else
8518	# not using gcc
8519	if test "$host_cpu" = ia64; then
8520  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8521  	# chokes on -Wl,-G. The following line is correct:
8522	  shared_flag='-G'
8523	else
8524	  if test "$aix_use_runtimelinking" = yes; then
8525	    shared_flag='${wl}-G'
8526	  else
8527	    shared_flag='${wl}-bM:SRE'
8528	  fi
8529	fi
8530      fi
8531
8532      # It seems that -bexpall does not export symbols beginning with
8533      # underscore (_), so it is better to generate a list of symbols to export.
8534      always_export_symbols=yes
8535      if test "$aix_use_runtimelinking" = yes; then
8536	# Warning - without using the other runtime loading flags (-brtl),
8537	# -berok will link without error, but may produce a broken library.
8538	allow_undefined_flag='-berok'
8539       # Determine the default libpath from the value encoded in an empty executable.
8540       cat >conftest.$ac_ext <<_ACEOF
8541/* confdefs.h.  */
8542_ACEOF
8543cat confdefs.h >>conftest.$ac_ext
8544cat >>conftest.$ac_ext <<_ACEOF
8545/* end confdefs.h.  */
8546
8547int
8548main ()
8549{
8550
8551  ;
8552  return 0;
8553}
8554_ACEOF
8555rm -f conftest.$ac_objext conftest$ac_exeext
8556if { (ac_try="$ac_link"
8557case "(($ac_try" in
8558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8559  *) ac_try_echo=$ac_try;;
8560esac
8561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8562  (eval "$ac_link") 2>conftest.er1
8563  ac_status=$?
8564  grep -v '^ *+' conftest.er1 >conftest.err
8565  rm -f conftest.er1
8566  cat conftest.err >&5
8567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568  (exit $ac_status); } && {
8569	 test -z "$ac_c_werror_flag" ||
8570	 test ! -s conftest.err
8571       } && test -s conftest$ac_exeext &&
8572       $as_test_x conftest$ac_exeext; then
8573
8574aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8575}'`
8576# Check for a 64-bit object if we didn't find anything.
8577if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8578}'`; fi
8579else
8580  echo "$as_me: failed program was:" >&5
8581sed 's/^/| /' conftest.$ac_ext >&5
8582
8583
8584fi
8585
8586rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8587      conftest$ac_exeext conftest.$ac_ext
8588if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8589
8590       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8591	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"
8592       else
8593	if test "$host_cpu" = ia64; then
8594	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8595	  allow_undefined_flag="-z nodefs"
8596	  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"
8597	else
8598	 # Determine the default libpath from the value encoded in an empty executable.
8599	 cat >conftest.$ac_ext <<_ACEOF
8600/* confdefs.h.  */
8601_ACEOF
8602cat confdefs.h >>conftest.$ac_ext
8603cat >>conftest.$ac_ext <<_ACEOF
8604/* end confdefs.h.  */
8605
8606int
8607main ()
8608{
8609
8610  ;
8611  return 0;
8612}
8613_ACEOF
8614rm -f conftest.$ac_objext conftest$ac_exeext
8615if { (ac_try="$ac_link"
8616case "(($ac_try" in
8617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8618  *) ac_try_echo=$ac_try;;
8619esac
8620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8621  (eval "$ac_link") 2>conftest.er1
8622  ac_status=$?
8623  grep -v '^ *+' conftest.er1 >conftest.err
8624  rm -f conftest.er1
8625  cat conftest.err >&5
8626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627  (exit $ac_status); } && {
8628	 test -z "$ac_c_werror_flag" ||
8629	 test ! -s conftest.err
8630       } && test -s conftest$ac_exeext &&
8631       $as_test_x conftest$ac_exeext; then
8632
8633aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8634}'`
8635# Check for a 64-bit object if we didn't find anything.
8636if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8637}'`; fi
8638else
8639  echo "$as_me: failed program was:" >&5
8640sed 's/^/| /' conftest.$ac_ext >&5
8641
8642
8643fi
8644
8645rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8646      conftest$ac_exeext conftest.$ac_ext
8647if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8648
8649	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8650	  # Warning - without using the other run time loading flags,
8651	  # -berok will link without error, but may produce a broken library.
8652	  no_undefined_flag=' ${wl}-bernotok'
8653	  allow_undefined_flag=' ${wl}-berok'
8654	  # Exported symbols can be pulled into shared objects from archives
8655	  whole_archive_flag_spec='$convenience'
8656	  archive_cmds_need_lc=yes
8657	  # This is similar to how AIX traditionally builds its shared libraries.
8658	  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'
8659	fi
8660      fi
8661      ;;
8662
8663    amigaos*)
8664      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)'
8665      hardcode_libdir_flag_spec='-L$libdir'
8666      hardcode_minus_L=yes
8667      # see comment about different semantics on the GNU ld section
8668      ld_shlibs=no
8669      ;;
8670
8671    bsdi[45]*)
8672      export_dynamic_flag_spec=-rdynamic
8673      ;;
8674
8675    cygwin* | mingw* | pw32*)
8676      # When not using gcc, we currently assume that we are using
8677      # Microsoft Visual C++.
8678      # hardcode_libdir_flag_spec is actually meaningless, as there is
8679      # no search path for DLLs.
8680      hardcode_libdir_flag_spec=' '
8681      allow_undefined_flag=unsupported
8682      # Tell ltmain to make .lib files, not .a files.
8683      libext=lib
8684      # Tell ltmain to make .dll files, not .so files.
8685      shrext_cmds=".dll"
8686      # FIXME: Setting linknames here is a bad hack.
8687      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8688      # The linker will automatically build a .lib file if we build a DLL.
8689      old_archive_From_new_cmds='true'
8690      # FIXME: Should let the user specify the lib program.
8691      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8692      fix_srcfile_path='`cygpath -w "$srcfile"`'
8693      enable_shared_with_static_runtimes=yes
8694      ;;
8695
8696    darwin* | rhapsody*)
8697      case $host_os in
8698        rhapsody* | darwin1.[012])
8699         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8700         ;;
8701       *) # Darwin 1.3 on
8702         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8703           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8704         else
8705           case ${MACOSX_DEPLOYMENT_TARGET} in
8706             10.[012])
8707               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8708               ;;
8709             10.*)
8710               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8711               ;;
8712           esac
8713         fi
8714         ;;
8715      esac
8716      archive_cmds_need_lc=no
8717      hardcode_direct=no
8718      hardcode_automatic=yes
8719      hardcode_shlibpath_var=unsupported
8720      whole_archive_flag_spec=''
8721      link_all_deplibs=yes
8722    if test "$GCC" = yes ; then
8723    	output_verbose_link_cmd='echo'
8724        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8725      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8726      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8727      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8728      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}'
8729    else
8730      case $cc_basename in
8731        xlc*)
8732         output_verbose_link_cmd='echo'
8733         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8734         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8735          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8736         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8737          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}'
8738          ;;
8739       *)
8740         ld_shlibs=no
8741          ;;
8742      esac
8743    fi
8744      ;;
8745
8746    dgux*)
8747      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8748      hardcode_libdir_flag_spec='-L$libdir'
8749      hardcode_shlibpath_var=no
8750      ;;
8751
8752    freebsd1*)
8753      ld_shlibs=no
8754      ;;
8755
8756    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8757    # support.  Future versions do this automatically, but an explicit c++rt0.o
8758    # does not break anything, and helps significantly (at the cost of a little
8759    # extra space).
8760    freebsd2.2*)
8761      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8762      hardcode_libdir_flag_spec='-R$libdir'
8763      hardcode_direct=yes
8764      hardcode_shlibpath_var=no
8765      ;;
8766
8767    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8768    freebsd2*)
8769      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8770      hardcode_direct=yes
8771      hardcode_minus_L=yes
8772      hardcode_shlibpath_var=no
8773      ;;
8774
8775    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8776    freebsd* | kfreebsd*-gnu | dragonfly*)
8777      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8778      hardcode_libdir_flag_spec='-R$libdir'
8779      hardcode_direct=yes
8780      hardcode_shlibpath_var=no
8781      ;;
8782
8783    hpux9*)
8784      if test "$GCC" = yes; then
8785	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'
8786      else
8787	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'
8788      fi
8789      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8790      hardcode_libdir_separator=:
8791      hardcode_direct=yes
8792
8793      # hardcode_minus_L: Not really in the search PATH,
8794      # but as the default location of the library.
8795      hardcode_minus_L=yes
8796      export_dynamic_flag_spec='${wl}-E'
8797      ;;
8798
8799    hpux10*)
8800      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8801	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8802      else
8803	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8804      fi
8805      if test "$with_gnu_ld" = no; then
8806	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8807	hardcode_libdir_separator=:
8808
8809	hardcode_direct=yes
8810	export_dynamic_flag_spec='${wl}-E'
8811
8812	# hardcode_minus_L: Not really in the search PATH,
8813	# but as the default location of the library.
8814	hardcode_minus_L=yes
8815      fi
8816      ;;
8817
8818    hpux11*)
8819      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8820	case $host_cpu in
8821	hppa*64*)
8822	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8823	  ;;
8824	ia64*)
8825	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8826	  ;;
8827	*)
8828	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8829	  ;;
8830	esac
8831      else
8832	case $host_cpu in
8833	hppa*64*)
8834	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8835	  ;;
8836	ia64*)
8837	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8838	  ;;
8839	*)
8840	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8841	  ;;
8842	esac
8843      fi
8844      if test "$with_gnu_ld" = no; then
8845	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8846	hardcode_libdir_separator=:
8847
8848	case $host_cpu in
8849	hppa*64*|ia64*)
8850	  hardcode_libdir_flag_spec_ld='+b $libdir'
8851	  hardcode_direct=no
8852	  hardcode_shlibpath_var=no
8853	  ;;
8854	*)
8855	  hardcode_direct=yes
8856	  export_dynamic_flag_spec='${wl}-E'
8857
8858	  # hardcode_minus_L: Not really in the search PATH,
8859	  # but as the default location of the library.
8860	  hardcode_minus_L=yes
8861	  ;;
8862	esac
8863      fi
8864      ;;
8865
8866    irix5* | irix6* | nonstopux*)
8867      if test "$GCC" = yes; then
8868	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'
8869      else
8870	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'
8871	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8872      fi
8873      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8874      hardcode_libdir_separator=:
8875      link_all_deplibs=yes
8876      ;;
8877
8878    netbsd*)
8879      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8880	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8881      else
8882	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8883      fi
8884      hardcode_libdir_flag_spec='-R$libdir'
8885      hardcode_direct=yes
8886      hardcode_shlibpath_var=no
8887      ;;
8888
8889    newsos6)
8890      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8891      hardcode_direct=yes
8892      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8893      hardcode_libdir_separator=:
8894      hardcode_shlibpath_var=no
8895      ;;
8896
8897    openbsd*)
8898      hardcode_direct=yes
8899      hardcode_shlibpath_var=no
8900      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8901	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8902	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8903	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8904	export_dynamic_flag_spec='${wl}-E'
8905      else
8906       case $host_os in
8907	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8908	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8909	   hardcode_libdir_flag_spec='-R$libdir'
8910	   ;;
8911	 *)
8912	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8913	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8914	   ;;
8915       esac
8916      fi
8917      ;;
8918
8919    os2*)
8920      hardcode_libdir_flag_spec='-L$libdir'
8921      hardcode_minus_L=yes
8922      allow_undefined_flag=unsupported
8923      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'
8924      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8925      ;;
8926
8927    osf3*)
8928      if test "$GCC" = yes; then
8929	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8930	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'
8931      else
8932	allow_undefined_flag=' -expect_unresolved \*'
8933	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'
8934      fi
8935      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8936      hardcode_libdir_separator=:
8937      ;;
8938
8939    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8940      if test "$GCC" = yes; then
8941	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8942	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'
8943	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8944      else
8945	allow_undefined_flag=' -expect_unresolved \*'
8946	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'
8947	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8948	$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'
8949
8950	# Both c and cxx compiler support -rpath directly
8951	hardcode_libdir_flag_spec='-rpath $libdir'
8952      fi
8953      hardcode_libdir_separator=:
8954      ;;
8955
8956    solaris*)
8957      no_undefined_flag=' -z text'
8958      if test "$GCC" = yes; then
8959	wlarc='${wl}'
8960	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8961	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8962	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8963      else
8964	wlarc=''
8965	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8966	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8967  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8968      fi
8969      hardcode_libdir_flag_spec='-R$libdir'
8970      hardcode_shlibpath_var=no
8971      case $host_os in
8972      solaris2.[0-5] | solaris2.[0-5].*) ;;
8973      *)
8974 	# The compiler driver will combine linker options so we
8975 	# cannot just pass the convience library names through
8976 	# without $wl, iff we do not link with $LD.
8977 	# Luckily, gcc supports the same syntax we need for Sun Studio.
8978 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8979 	case $wlarc in
8980 	'')
8981 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8982 	*)
8983 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8984 	esac ;;
8985      esac
8986      link_all_deplibs=yes
8987      ;;
8988
8989    sunos4*)
8990      if test "x$host_vendor" = xsequent; then
8991	# Use $CC to link under sequent, because it throws in some extra .o
8992	# files that make .init and .fini sections work.
8993	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8994      else
8995	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8996      fi
8997      hardcode_libdir_flag_spec='-L$libdir'
8998      hardcode_direct=yes
8999      hardcode_minus_L=yes
9000      hardcode_shlibpath_var=no
9001      ;;
9002
9003    sysv4)
9004      case $host_vendor in
9005	sni)
9006	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9007	  hardcode_direct=yes # is this really true???
9008	;;
9009	siemens)
9010	  ## LD is ld it makes a PLAMLIB
9011	  ## CC just makes a GrossModule.
9012	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9013	  reload_cmds='$CC -r -o $output$reload_objs'
9014	  hardcode_direct=no
9015        ;;
9016	motorola)
9017	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9018	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9019	;;
9020      esac
9021      runpath_var='LD_RUN_PATH'
9022      hardcode_shlibpath_var=no
9023      ;;
9024
9025    sysv4.3*)
9026      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9027      hardcode_shlibpath_var=no
9028      export_dynamic_flag_spec='-Bexport'
9029      ;;
9030
9031    sysv4*MP*)
9032      if test -d /usr/nec; then
9033	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9034	hardcode_shlibpath_var=no
9035	runpath_var=LD_RUN_PATH
9036	hardcode_runpath_var=yes
9037	ld_shlibs=yes
9038      fi
9039      ;;
9040
9041    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9042      no_undefined_flag='${wl}-z,text'
9043      archive_cmds_need_lc=no
9044      hardcode_shlibpath_var=no
9045      runpath_var='LD_RUN_PATH'
9046
9047      if test "$GCC" = yes; then
9048	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9049	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9050      else
9051	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9052	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9053      fi
9054      ;;
9055
9056    sysv5* | sco3.2v5* | sco5v6*)
9057      # Note: We can NOT use -z defs as we might desire, because we do not
9058      # link with -lc, and that would cause any symbols used from libc to
9059      # always be unresolved, which means just about no library would
9060      # ever link correctly.  If we're not using GNU ld we use -z text
9061      # though, which does catch some bad symbols but isn't as heavy-handed
9062      # as -z defs.
9063      no_undefined_flag='${wl}-z,text'
9064      allow_undefined_flag='${wl}-z,nodefs'
9065      archive_cmds_need_lc=no
9066      hardcode_shlibpath_var=no
9067      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9068      hardcode_libdir_separator=':'
9069      link_all_deplibs=yes
9070      export_dynamic_flag_spec='${wl}-Bexport'
9071      runpath_var='LD_RUN_PATH'
9072
9073      if test "$GCC" = yes; then
9074	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9075	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9076      else
9077	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9078	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9079      fi
9080      ;;
9081
9082    uts4*)
9083      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9084      hardcode_libdir_flag_spec='-L$libdir'
9085      hardcode_shlibpath_var=no
9086      ;;
9087
9088    *)
9089      ld_shlibs=no
9090      ;;
9091    esac
9092  fi
9093
9094{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9095echo "${ECHO_T}$ld_shlibs" >&6; }
9096test "$ld_shlibs" = no && can_build_shared=no
9097
9098#
9099# Do we need to explicitly link libc?
9100#
9101case "x$archive_cmds_need_lc" in
9102x|xyes)
9103  # Assume -lc should be added
9104  archive_cmds_need_lc=yes
9105
9106  if test "$enable_shared" = yes && test "$GCC" = yes; then
9107    case $archive_cmds in
9108    *'~'*)
9109      # FIXME: we may have to deal with multi-command sequences.
9110      ;;
9111    '$CC '*)
9112      # Test whether the compiler implicitly links with -lc since on some
9113      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9114      # to ld, don't add -lc before -lgcc.
9115      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9116echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9117      $rm conftest*
9118      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9119
9120      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9121  (eval $ac_compile) 2>&5
9122  ac_status=$?
9123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124  (exit $ac_status); } 2>conftest.err; then
9125        soname=conftest
9126        lib=conftest
9127        libobjs=conftest.$ac_objext
9128        deplibs=
9129        wl=$lt_prog_compiler_wl
9130	pic_flag=$lt_prog_compiler_pic
9131        compiler_flags=-v
9132        linker_flags=-v
9133        verstring=
9134        output_objdir=.
9135        libname=conftest
9136        lt_save_allow_undefined_flag=$allow_undefined_flag
9137        allow_undefined_flag=
9138        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9139  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9140  ac_status=$?
9141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142  (exit $ac_status); }
9143        then
9144	  archive_cmds_need_lc=no
9145        else
9146	  archive_cmds_need_lc=yes
9147        fi
9148        allow_undefined_flag=$lt_save_allow_undefined_flag
9149      else
9150        cat conftest.err 1>&5
9151      fi
9152      $rm conftest*
9153      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9154echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9155      ;;
9156    esac
9157  fi
9158  ;;
9159esac
9160
9161{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9162echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9163library_names_spec=
9164libname_spec='lib$name'
9165soname_spec=
9166shrext_cmds=".so"
9167postinstall_cmds=
9168postuninstall_cmds=
9169finish_cmds=
9170finish_eval=
9171shlibpath_var=
9172shlibpath_overrides_runpath=unknown
9173version_type=none
9174dynamic_linker="$host_os ld.so"
9175sys_lib_dlsearch_path_spec="/lib /usr/lib"
9176if test "$GCC" = yes; then
9177  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9178  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9179    # if the path contains ";" then we assume it to be the separator
9180    # otherwise default to the standard path separator (i.e. ":") - it is
9181    # assumed that no part of a normal pathname contains ";" but that should
9182    # okay in the real world where ";" in dirpaths is itself problematic.
9183    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9184  else
9185    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9186  fi
9187else
9188  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9189fi
9190need_lib_prefix=unknown
9191hardcode_into_libs=no
9192
9193# when you set need_version to no, make sure it does not cause -set_version
9194# flags to be left without arguments
9195need_version=unknown
9196
9197case $host_os in
9198aix3*)
9199  version_type=linux
9200  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9201  shlibpath_var=LIBPATH
9202
9203  # AIX 3 has no versioning support, so we append a major version to the name.
9204  soname_spec='${libname}${release}${shared_ext}$major'
9205  ;;
9206
9207aix4* | aix5*)
9208  version_type=linux
9209  need_lib_prefix=no
9210  need_version=no
9211  hardcode_into_libs=yes
9212  if test "$host_cpu" = ia64; then
9213    # AIX 5 supports IA64
9214    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9215    shlibpath_var=LD_LIBRARY_PATH
9216  else
9217    # With GCC up to 2.95.x, collect2 would create an import file
9218    # for dependence libraries.  The import file would start with
9219    # the line `#! .'.  This would cause the generated library to
9220    # depend on `.', always an invalid library.  This was fixed in
9221    # development snapshots of GCC prior to 3.0.
9222    case $host_os in
9223      aix4 | aix4.[01] | aix4.[01].*)
9224      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9225	   echo ' yes '
9226	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9227	:
9228      else
9229	can_build_shared=no
9230      fi
9231      ;;
9232    esac
9233    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9234    # soname into executable. Probably we can add versioning support to
9235    # collect2, so additional links can be useful in future.
9236    if test "$aix_use_runtimelinking" = yes; then
9237      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9238      # instead of lib<name>.a to let people know that these are not
9239      # typical AIX shared libraries.
9240      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9241    else
9242      # We preserve .a as extension for shared libraries through AIX4.2
9243      # and later when we are not doing run time linking.
9244      library_names_spec='${libname}${release}.a $libname.a'
9245      soname_spec='${libname}${release}${shared_ext}$major'
9246    fi
9247    shlibpath_var=LIBPATH
9248  fi
9249  ;;
9250
9251amigaos*)
9252  library_names_spec='$libname.ixlibrary $libname.a'
9253  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9254  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'
9255  ;;
9256
9257beos*)
9258  library_names_spec='${libname}${shared_ext}'
9259  dynamic_linker="$host_os ld.so"
9260  shlibpath_var=LIBRARY_PATH
9261  ;;
9262
9263bsdi[45]*)
9264  version_type=linux
9265  need_version=no
9266  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9267  soname_spec='${libname}${release}${shared_ext}$major'
9268  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9269  shlibpath_var=LD_LIBRARY_PATH
9270  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9271  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9272  # the default ld.so.conf also contains /usr/contrib/lib and
9273  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9274  # libtool to hard-code these into programs
9275  ;;
9276
9277cygwin* | mingw* | pw32*)
9278  version_type=windows
9279  shrext_cmds=".dll"
9280  need_version=no
9281  need_lib_prefix=no
9282
9283  case $GCC,$host_os in
9284  yes,cygwin* | yes,mingw* | yes,pw32*)
9285    library_names_spec='$libname.dll.a'
9286    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9287    postinstall_cmds='base_file=`basename \${file}`~
9288      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9289      dldir=$destdir/`dirname \$dlpath`~
9290      test -d \$dldir || mkdir -p \$dldir~
9291      $install_prog $dir/$dlname \$dldir/$dlname~
9292      chmod a+x \$dldir/$dlname'
9293    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9294      dlpath=$dir/\$dldll~
9295       $rm \$dlpath'
9296    shlibpath_overrides_runpath=yes
9297
9298    case $host_os in
9299    cygwin*)
9300      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9301      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9302      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9303      ;;
9304    mingw*)
9305      # MinGW DLLs use traditional 'lib' prefix
9306      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9307      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9308      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9309        # It is most probably a Windows format PATH printed by
9310        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9311        # path with ; separators, and with drive letters. We can handle the
9312        # drive letters (cygwin fileutils understands them), so leave them,
9313        # especially as we might pass files found there to a mingw objdump,
9314        # which wouldn't understand a cygwinified path. Ahh.
9315        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9316      else
9317        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9318      fi
9319      ;;
9320    pw32*)
9321      # pw32 DLLs use 'pw' prefix rather than 'lib'
9322      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9323      ;;
9324    esac
9325    ;;
9326
9327  *)
9328    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9329    ;;
9330  esac
9331  dynamic_linker='Win32 ld.exe'
9332  # FIXME: first we should search . and the directory the executable is in
9333  shlibpath_var=PATH
9334  ;;
9335
9336darwin* | rhapsody*)
9337  dynamic_linker="$host_os dyld"
9338  version_type=darwin
9339  need_lib_prefix=no
9340  need_version=no
9341  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9342  soname_spec='${libname}${release}${major}$shared_ext'
9343  shlibpath_overrides_runpath=yes
9344  shlibpath_var=DYLD_LIBRARY_PATH
9345  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9346  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9347  if test "$GCC" = yes; then
9348    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9349  else
9350    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9351  fi
9352  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9353  ;;
9354
9355dgux*)
9356  version_type=linux
9357  need_lib_prefix=no
9358  need_version=no
9359  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9360  soname_spec='${libname}${release}${shared_ext}$major'
9361  shlibpath_var=LD_LIBRARY_PATH
9362  ;;
9363
9364freebsd1*)
9365  dynamic_linker=no
9366  ;;
9367
9368kfreebsd*-gnu)
9369  version_type=linux
9370  need_lib_prefix=no
9371  need_version=no
9372  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9373  soname_spec='${libname}${release}${shared_ext}$major'
9374  shlibpath_var=LD_LIBRARY_PATH
9375  shlibpath_overrides_runpath=no
9376  hardcode_into_libs=yes
9377  dynamic_linker='GNU ld.so'
9378  ;;
9379
9380freebsd* | dragonfly*)
9381  # DragonFly does not have aout.  When/if they implement a new
9382  # versioning mechanism, adjust this.
9383  if test -x /usr/bin/objformat; then
9384    objformat=`/usr/bin/objformat`
9385  else
9386    case $host_os in
9387    freebsd[123]*) objformat=aout ;;
9388    *) objformat=elf ;;
9389    esac
9390  fi
9391  version_type=freebsd-$objformat
9392  case $version_type in
9393    freebsd-elf*)
9394      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9395      need_version=no
9396      need_lib_prefix=no
9397      ;;
9398    freebsd-*)
9399      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9400      need_version=yes
9401      ;;
9402  esac
9403  shlibpath_var=LD_LIBRARY_PATH
9404  case $host_os in
9405  freebsd2*)
9406    shlibpath_overrides_runpath=yes
9407    ;;
9408  freebsd3.[01]* | freebsdelf3.[01]*)
9409    shlibpath_overrides_runpath=yes
9410    hardcode_into_libs=yes
9411    ;;
9412  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9413  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9414    shlibpath_overrides_runpath=no
9415    hardcode_into_libs=yes
9416    ;;
9417  freebsd*) # from 4.6 on
9418    shlibpath_overrides_runpath=yes
9419    hardcode_into_libs=yes
9420    ;;
9421  esac
9422  ;;
9423
9424gnu*)
9425  version_type=linux
9426  need_lib_prefix=no
9427  need_version=no
9428  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9429  soname_spec='${libname}${release}${shared_ext}$major'
9430  shlibpath_var=LD_LIBRARY_PATH
9431  hardcode_into_libs=yes
9432  ;;
9433
9434hpux9* | hpux10* | hpux11*)
9435  # Give a soname corresponding to the major version so that dld.sl refuses to
9436  # link against other versions.
9437  version_type=sunos
9438  need_lib_prefix=no
9439  need_version=no
9440  case $host_cpu in
9441  ia64*)
9442    shrext_cmds='.so'
9443    hardcode_into_libs=yes
9444    dynamic_linker="$host_os dld.so"
9445    shlibpath_var=LD_LIBRARY_PATH
9446    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9447    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9448    soname_spec='${libname}${release}${shared_ext}$major'
9449    if test "X$HPUX_IA64_MODE" = X32; then
9450      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9451    else
9452      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9453    fi
9454    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9455    ;;
9456   hppa*64*)
9457     shrext_cmds='.sl'
9458     hardcode_into_libs=yes
9459     dynamic_linker="$host_os dld.sl"
9460     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9461     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9462     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9463     soname_spec='${libname}${release}${shared_ext}$major'
9464     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9465     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9466     ;;
9467   *)
9468    shrext_cmds='.sl'
9469    dynamic_linker="$host_os dld.sl"
9470    shlibpath_var=SHLIB_PATH
9471    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9472    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9473    soname_spec='${libname}${release}${shared_ext}$major'
9474    ;;
9475  esac
9476  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9477  postinstall_cmds='chmod 555 $lib'
9478  ;;
9479
9480interix3*)
9481  version_type=linux
9482  need_lib_prefix=no
9483  need_version=no
9484  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9485  soname_spec='${libname}${release}${shared_ext}$major'
9486  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9487  shlibpath_var=LD_LIBRARY_PATH
9488  shlibpath_overrides_runpath=no
9489  hardcode_into_libs=yes
9490  ;;
9491
9492irix5* | irix6* | nonstopux*)
9493  case $host_os in
9494    nonstopux*) version_type=nonstopux ;;
9495    *)
9496	if test "$lt_cv_prog_gnu_ld" = yes; then
9497		version_type=linux
9498	else
9499		version_type=irix
9500	fi ;;
9501  esac
9502  need_lib_prefix=no
9503  need_version=no
9504  soname_spec='${libname}${release}${shared_ext}$major'
9505  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9506  case $host_os in
9507  irix5* | nonstopux*)
9508    libsuff= shlibsuff=
9509    ;;
9510  *)
9511    case $LD in # libtool.m4 will add one of these switches to LD
9512    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9513      libsuff= shlibsuff= libmagic=32-bit;;
9514    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9515      libsuff=32 shlibsuff=N32 libmagic=N32;;
9516    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9517      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9518    *) libsuff= shlibsuff= libmagic=never-match;;
9519    esac
9520    ;;
9521  esac
9522  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9523  shlibpath_overrides_runpath=no
9524  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9525  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9526  hardcode_into_libs=yes
9527  ;;
9528
9529# No shared lib support for Linux oldld, aout, or coff.
9530linux*oldld* | linux*aout* | linux*coff*)
9531  dynamic_linker=no
9532  ;;
9533
9534# This must be Linux ELF.
9535linux*)
9536  version_type=linux
9537  need_lib_prefix=no
9538  need_version=no
9539  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9540  soname_spec='${libname}${release}${shared_ext}$major'
9541  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9542  shlibpath_var=LD_LIBRARY_PATH
9543  shlibpath_overrides_runpath=no
9544  # This implies no fast_install, which is unacceptable.
9545  # Some rework will be needed to allow for fast_install
9546  # before this can be enabled.
9547  hardcode_into_libs=yes
9548
9549  # find out which ABI we are using
9550  libsuff=
9551  case "$host_cpu" in
9552  x86_64*|s390x*|powerpc64*)
9553    echo '#line 9553 "configure"' > conftest.$ac_ext
9554    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9555  (eval $ac_compile) 2>&5
9556  ac_status=$?
9557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558  (exit $ac_status); }; then
9559      case `/usr/bin/file conftest.$ac_objext` in
9560      *64-bit*)
9561        libsuff=64
9562        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9563        ;;
9564      esac
9565    fi
9566    rm -rf conftest*
9567    ;;
9568  esac
9569
9570  # Append ld.so.conf contents to the search path
9571  if test -f /etc/ld.so.conf; then
9572    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9573    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9574  fi
9575
9576  # We used to test for /lib/ld.so.1 and disable shared libraries on
9577  # powerpc, because MkLinux only supported shared libraries with the
9578  # GNU dynamic linker.  Since this was broken with cross compilers,
9579  # most powerpc-linux boxes support dynamic linking these days and
9580  # people can always --disable-shared, the test was removed, and we
9581  # assume the GNU/Linux dynamic linker is in use.
9582  dynamic_linker='GNU/Linux ld.so'
9583  ;;
9584
9585knetbsd*-gnu)
9586  version_type=linux
9587  need_lib_prefix=no
9588  need_version=no
9589  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9590  soname_spec='${libname}${release}${shared_ext}$major'
9591  shlibpath_var=LD_LIBRARY_PATH
9592  shlibpath_overrides_runpath=no
9593  hardcode_into_libs=yes
9594  dynamic_linker='GNU ld.so'
9595  ;;
9596
9597netbsd*)
9598  version_type=sunos
9599  need_lib_prefix=no
9600  need_version=no
9601  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9602    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9603    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9604    dynamic_linker='NetBSD (a.out) ld.so'
9605  else
9606    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9607    soname_spec='${libname}${release}${shared_ext}$major'
9608    dynamic_linker='NetBSD ld.elf_so'
9609  fi
9610  shlibpath_var=LD_LIBRARY_PATH
9611  shlibpath_overrides_runpath=yes
9612  hardcode_into_libs=yes
9613  ;;
9614
9615newsos6)
9616  version_type=linux
9617  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9618  shlibpath_var=LD_LIBRARY_PATH
9619  shlibpath_overrides_runpath=yes
9620  ;;
9621
9622nto-qnx*)
9623  version_type=linux
9624  need_lib_prefix=no
9625  need_version=no
9626  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9627  soname_spec='${libname}${release}${shared_ext}$major'
9628  shlibpath_var=LD_LIBRARY_PATH
9629  shlibpath_overrides_runpath=yes
9630  ;;
9631
9632openbsd*)
9633  version_type=sunos
9634  sys_lib_dlsearch_path_spec="/usr/lib"
9635  need_lib_prefix=no
9636  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9637  case $host_os in
9638    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9639    *)                         need_version=no  ;;
9640  esac
9641  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9642  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9643  shlibpath_var=LD_LIBRARY_PATH
9644  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9645    case $host_os in
9646      openbsd2.[89] | openbsd2.[89].*)
9647	shlibpath_overrides_runpath=no
9648	;;
9649      *)
9650	shlibpath_overrides_runpath=yes
9651	;;
9652      esac
9653  else
9654    shlibpath_overrides_runpath=yes
9655  fi
9656  ;;
9657
9658os2*)
9659  libname_spec='$name'
9660  shrext_cmds=".dll"
9661  need_lib_prefix=no
9662  library_names_spec='$libname${shared_ext} $libname.a'
9663  dynamic_linker='OS/2 ld.exe'
9664  shlibpath_var=LIBPATH
9665  ;;
9666
9667osf3* | osf4* | osf5*)
9668  version_type=osf
9669  need_lib_prefix=no
9670  need_version=no
9671  soname_spec='${libname}${release}${shared_ext}$major'
9672  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9673  shlibpath_var=LD_LIBRARY_PATH
9674  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9675  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9676  ;;
9677
9678solaris*)
9679  version_type=linux
9680  need_lib_prefix=no
9681  need_version=no
9682  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9683  soname_spec='${libname}${release}${shared_ext}$major'
9684  shlibpath_var=LD_LIBRARY_PATH
9685  shlibpath_overrides_runpath=yes
9686  hardcode_into_libs=yes
9687  # ldd complains unless libraries are executable
9688  postinstall_cmds='chmod +x $lib'
9689  ;;
9690
9691sunos4*)
9692  version_type=sunos
9693  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9694  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9695  shlibpath_var=LD_LIBRARY_PATH
9696  shlibpath_overrides_runpath=yes
9697  if test "$with_gnu_ld" = yes; then
9698    need_lib_prefix=no
9699  fi
9700  need_version=yes
9701  ;;
9702
9703sysv4 | sysv4.3*)
9704  version_type=linux
9705  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9706  soname_spec='${libname}${release}${shared_ext}$major'
9707  shlibpath_var=LD_LIBRARY_PATH
9708  case $host_vendor in
9709    sni)
9710      shlibpath_overrides_runpath=no
9711      need_lib_prefix=no
9712      export_dynamic_flag_spec='${wl}-Blargedynsym'
9713      runpath_var=LD_RUN_PATH
9714      ;;
9715    siemens)
9716      need_lib_prefix=no
9717      ;;
9718    motorola)
9719      need_lib_prefix=no
9720      need_version=no
9721      shlibpath_overrides_runpath=no
9722      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9723      ;;
9724  esac
9725  ;;
9726
9727sysv4*MP*)
9728  if test -d /usr/nec ;then
9729    version_type=linux
9730    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9731    soname_spec='$libname${shared_ext}.$major'
9732    shlibpath_var=LD_LIBRARY_PATH
9733  fi
9734  ;;
9735
9736sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9737  version_type=freebsd-elf
9738  need_lib_prefix=no
9739  need_version=no
9740  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9741  soname_spec='${libname}${release}${shared_ext}$major'
9742  shlibpath_var=LD_LIBRARY_PATH
9743  hardcode_into_libs=yes
9744  if test "$with_gnu_ld" = yes; then
9745    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9746    shlibpath_overrides_runpath=no
9747  else
9748    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9749    shlibpath_overrides_runpath=yes
9750    case $host_os in
9751      sco3.2v5*)
9752        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9753	;;
9754    esac
9755  fi
9756  sys_lib_dlsearch_path_spec='/usr/lib'
9757  ;;
9758
9759uts4*)
9760  version_type=linux
9761  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9762  soname_spec='${libname}${release}${shared_ext}$major'
9763  shlibpath_var=LD_LIBRARY_PATH
9764  ;;
9765
9766*)
9767  dynamic_linker=no
9768  ;;
9769esac
9770{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9771echo "${ECHO_T}$dynamic_linker" >&6; }
9772test "$dynamic_linker" = no && can_build_shared=no
9773
9774variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9775if test "$GCC" = yes; then
9776  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9777fi
9778
9779{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9780echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9781hardcode_action=
9782if test -n "$hardcode_libdir_flag_spec" || \
9783   test -n "$runpath_var" || \
9784   test "X$hardcode_automatic" = "Xyes" ; then
9785
9786  # We can hardcode non-existant directories.
9787  if test "$hardcode_direct" != no &&
9788     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9789     # have to relink, otherwise we might link with an installed library
9790     # when we should be linking with a yet-to-be-installed one
9791     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9792     test "$hardcode_minus_L" != no; then
9793    # Linking always hardcodes the temporary library directory.
9794    hardcode_action=relink
9795  else
9796    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9797    hardcode_action=immediate
9798  fi
9799else
9800  # We cannot hardcode anything, or else we can only hardcode existing
9801  # directories.
9802  hardcode_action=unsupported
9803fi
9804{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9805echo "${ECHO_T}$hardcode_action" >&6; }
9806
9807if test "$hardcode_action" = relink; then
9808  # Fast installation is not supported
9809  enable_fast_install=no
9810elif test "$shlibpath_overrides_runpath" = yes ||
9811     test "$enable_shared" = no; then
9812  # Fast installation is not necessary
9813  enable_fast_install=needless
9814fi
9815
9816striplib=
9817old_striplib=
9818{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9819echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9820if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9821  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9822  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9823  { echo "$as_me:$LINENO: result: yes" >&5
9824echo "${ECHO_T}yes" >&6; }
9825else
9826# FIXME - insert some real tests, host_os isn't really good enough
9827  case $host_os in
9828   darwin*)
9829       if test -n "$STRIP" ; then
9830         striplib="$STRIP -x"
9831         { echo "$as_me:$LINENO: result: yes" >&5
9832echo "${ECHO_T}yes" >&6; }
9833       else
9834  { echo "$as_me:$LINENO: result: no" >&5
9835echo "${ECHO_T}no" >&6; }
9836fi
9837       ;;
9838   *)
9839  { echo "$as_me:$LINENO: result: no" >&5
9840echo "${ECHO_T}no" >&6; }
9841    ;;
9842  esac
9843fi
9844
9845if test "x$enable_dlopen" != xyes; then
9846  enable_dlopen=unknown
9847  enable_dlopen_self=unknown
9848  enable_dlopen_self_static=unknown
9849else
9850  lt_cv_dlopen=no
9851  lt_cv_dlopen_libs=
9852
9853  case $host_os in
9854  beos*)
9855    lt_cv_dlopen="load_add_on"
9856    lt_cv_dlopen_libs=
9857    lt_cv_dlopen_self=yes
9858    ;;
9859
9860  mingw* | pw32*)
9861    lt_cv_dlopen="LoadLibrary"
9862    lt_cv_dlopen_libs=
9863   ;;
9864
9865  cygwin*)
9866    lt_cv_dlopen="dlopen"
9867    lt_cv_dlopen_libs=
9868   ;;
9869
9870  darwin*)
9871  # if libdl is installed we need to link against it
9872    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9873echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9874if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9875  echo $ECHO_N "(cached) $ECHO_C" >&6
9876else
9877  ac_check_lib_save_LIBS=$LIBS
9878LIBS="-ldl  $LIBS"
9879cat >conftest.$ac_ext <<_ACEOF
9880/* confdefs.h.  */
9881_ACEOF
9882cat confdefs.h >>conftest.$ac_ext
9883cat >>conftest.$ac_ext <<_ACEOF
9884/* end confdefs.h.  */
9885
9886/* Override any GCC internal prototype to avoid an error.
9887   Use char because int might match the return type of a GCC
9888   builtin and then its argument prototype would still apply.  */
9889#ifdef __cplusplus
9890extern "C"
9891#endif
9892char dlopen ();
9893int
9894main ()
9895{
9896return dlopen ();
9897  ;
9898  return 0;
9899}
9900_ACEOF
9901rm -f conftest.$ac_objext conftest$ac_exeext
9902if { (ac_try="$ac_link"
9903case "(($ac_try" in
9904  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9905  *) ac_try_echo=$ac_try;;
9906esac
9907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9908  (eval "$ac_link") 2>conftest.er1
9909  ac_status=$?
9910  grep -v '^ *+' conftest.er1 >conftest.err
9911  rm -f conftest.er1
9912  cat conftest.err >&5
9913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914  (exit $ac_status); } && {
9915	 test -z "$ac_c_werror_flag" ||
9916	 test ! -s conftest.err
9917       } && test -s conftest$ac_exeext &&
9918       $as_test_x conftest$ac_exeext; then
9919  ac_cv_lib_dl_dlopen=yes
9920else
9921  echo "$as_me: failed program was:" >&5
9922sed 's/^/| /' conftest.$ac_ext >&5
9923
9924	ac_cv_lib_dl_dlopen=no
9925fi
9926
9927rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9928      conftest$ac_exeext conftest.$ac_ext
9929LIBS=$ac_check_lib_save_LIBS
9930fi
9931{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9932echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9933if test $ac_cv_lib_dl_dlopen = yes; then
9934  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9935else
9936
9937    lt_cv_dlopen="dyld"
9938    lt_cv_dlopen_libs=
9939    lt_cv_dlopen_self=yes
9940
9941fi
9942
9943   ;;
9944
9945  *)
9946    { echo "$as_me:$LINENO: checking for shl_load" >&5
9947echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9948if test "${ac_cv_func_shl_load+set}" = set; then
9949  echo $ECHO_N "(cached) $ECHO_C" >&6
9950else
9951  cat >conftest.$ac_ext <<_ACEOF
9952/* confdefs.h.  */
9953_ACEOF
9954cat confdefs.h >>conftest.$ac_ext
9955cat >>conftest.$ac_ext <<_ACEOF
9956/* end confdefs.h.  */
9957/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9958   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9959#define shl_load innocuous_shl_load
9960
9961/* System header to define __stub macros and hopefully few prototypes,
9962    which can conflict with char shl_load (); below.
9963    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9964    <limits.h> exists even on freestanding compilers.  */
9965
9966#ifdef __STDC__
9967# include <limits.h>
9968#else
9969# include <assert.h>
9970#endif
9971
9972#undef shl_load
9973
9974/* Override any GCC internal prototype to avoid an error.
9975   Use char because int might match the return type of a GCC
9976   builtin and then its argument prototype would still apply.  */
9977#ifdef __cplusplus
9978extern "C"
9979#endif
9980char shl_load ();
9981/* The GNU C library defines this for functions which it implements
9982    to always fail with ENOSYS.  Some functions are actually named
9983    something starting with __ and the normal name is an alias.  */
9984#if defined __stub_shl_load || defined __stub___shl_load
9985choke me
9986#endif
9987
9988int
9989main ()
9990{
9991return shl_load ();
9992  ;
9993  return 0;
9994}
9995_ACEOF
9996rm -f conftest.$ac_objext conftest$ac_exeext
9997if { (ac_try="$ac_link"
9998case "(($ac_try" in
9999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10000  *) ac_try_echo=$ac_try;;
10001esac
10002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10003  (eval "$ac_link") 2>conftest.er1
10004  ac_status=$?
10005  grep -v '^ *+' conftest.er1 >conftest.err
10006  rm -f conftest.er1
10007  cat conftest.err >&5
10008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009  (exit $ac_status); } && {
10010	 test -z "$ac_c_werror_flag" ||
10011	 test ! -s conftest.err
10012       } && test -s conftest$ac_exeext &&
10013       $as_test_x conftest$ac_exeext; then
10014  ac_cv_func_shl_load=yes
10015else
10016  echo "$as_me: failed program was:" >&5
10017sed 's/^/| /' conftest.$ac_ext >&5
10018
10019	ac_cv_func_shl_load=no
10020fi
10021
10022rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10023      conftest$ac_exeext conftest.$ac_ext
10024fi
10025{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10026echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10027if test $ac_cv_func_shl_load = yes; then
10028  lt_cv_dlopen="shl_load"
10029else
10030  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10031echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10032if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10033  echo $ECHO_N "(cached) $ECHO_C" >&6
10034else
10035  ac_check_lib_save_LIBS=$LIBS
10036LIBS="-ldld  $LIBS"
10037cat >conftest.$ac_ext <<_ACEOF
10038/* confdefs.h.  */
10039_ACEOF
10040cat confdefs.h >>conftest.$ac_ext
10041cat >>conftest.$ac_ext <<_ACEOF
10042/* end confdefs.h.  */
10043
10044/* Override any GCC internal prototype to avoid an error.
10045   Use char because int might match the return type of a GCC
10046   builtin and then its argument prototype would still apply.  */
10047#ifdef __cplusplus
10048extern "C"
10049#endif
10050char shl_load ();
10051int
10052main ()
10053{
10054return shl_load ();
10055  ;
10056  return 0;
10057}
10058_ACEOF
10059rm -f conftest.$ac_objext conftest$ac_exeext
10060if { (ac_try="$ac_link"
10061case "(($ac_try" in
10062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10063  *) ac_try_echo=$ac_try;;
10064esac
10065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10066  (eval "$ac_link") 2>conftest.er1
10067  ac_status=$?
10068  grep -v '^ *+' conftest.er1 >conftest.err
10069  rm -f conftest.er1
10070  cat conftest.err >&5
10071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072  (exit $ac_status); } && {
10073	 test -z "$ac_c_werror_flag" ||
10074	 test ! -s conftest.err
10075       } && test -s conftest$ac_exeext &&
10076       $as_test_x conftest$ac_exeext; then
10077  ac_cv_lib_dld_shl_load=yes
10078else
10079  echo "$as_me: failed program was:" >&5
10080sed 's/^/| /' conftest.$ac_ext >&5
10081
10082	ac_cv_lib_dld_shl_load=no
10083fi
10084
10085rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10086      conftest$ac_exeext conftest.$ac_ext
10087LIBS=$ac_check_lib_save_LIBS
10088fi
10089{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10090echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10091if test $ac_cv_lib_dld_shl_load = yes; then
10092  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10093else
10094  { echo "$as_me:$LINENO: checking for dlopen" >&5
10095echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10096if test "${ac_cv_func_dlopen+set}" = set; then
10097  echo $ECHO_N "(cached) $ECHO_C" >&6
10098else
10099  cat >conftest.$ac_ext <<_ACEOF
10100/* confdefs.h.  */
10101_ACEOF
10102cat confdefs.h >>conftest.$ac_ext
10103cat >>conftest.$ac_ext <<_ACEOF
10104/* end confdefs.h.  */
10105/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10106   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10107#define dlopen innocuous_dlopen
10108
10109/* System header to define __stub macros and hopefully few prototypes,
10110    which can conflict with char dlopen (); below.
10111    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10112    <limits.h> exists even on freestanding compilers.  */
10113
10114#ifdef __STDC__
10115# include <limits.h>
10116#else
10117# include <assert.h>
10118#endif
10119
10120#undef dlopen
10121
10122/* Override any GCC internal prototype to avoid an error.
10123   Use char because int might match the return type of a GCC
10124   builtin and then its argument prototype would still apply.  */
10125#ifdef __cplusplus
10126extern "C"
10127#endif
10128char dlopen ();
10129/* The GNU C library defines this for functions which it implements
10130    to always fail with ENOSYS.  Some functions are actually named
10131    something starting with __ and the normal name is an alias.  */
10132#if defined __stub_dlopen || defined __stub___dlopen
10133choke me
10134#endif
10135
10136int
10137main ()
10138{
10139return dlopen ();
10140  ;
10141  return 0;
10142}
10143_ACEOF
10144rm -f conftest.$ac_objext conftest$ac_exeext
10145if { (ac_try="$ac_link"
10146case "(($ac_try" in
10147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10148  *) ac_try_echo=$ac_try;;
10149esac
10150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10151  (eval "$ac_link") 2>conftest.er1
10152  ac_status=$?
10153  grep -v '^ *+' conftest.er1 >conftest.err
10154  rm -f conftest.er1
10155  cat conftest.err >&5
10156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157  (exit $ac_status); } && {
10158	 test -z "$ac_c_werror_flag" ||
10159	 test ! -s conftest.err
10160       } && test -s conftest$ac_exeext &&
10161       $as_test_x conftest$ac_exeext; then
10162  ac_cv_func_dlopen=yes
10163else
10164  echo "$as_me: failed program was:" >&5
10165sed 's/^/| /' conftest.$ac_ext >&5
10166
10167	ac_cv_func_dlopen=no
10168fi
10169
10170rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10171      conftest$ac_exeext conftest.$ac_ext
10172fi
10173{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10174echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10175if test $ac_cv_func_dlopen = yes; then
10176  lt_cv_dlopen="dlopen"
10177else
10178  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10179echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10180if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10181  echo $ECHO_N "(cached) $ECHO_C" >&6
10182else
10183  ac_check_lib_save_LIBS=$LIBS
10184LIBS="-ldl  $LIBS"
10185cat >conftest.$ac_ext <<_ACEOF
10186/* confdefs.h.  */
10187_ACEOF
10188cat confdefs.h >>conftest.$ac_ext
10189cat >>conftest.$ac_ext <<_ACEOF
10190/* end confdefs.h.  */
10191
10192/* Override any GCC internal prototype to avoid an error.
10193   Use char because int might match the return type of a GCC
10194   builtin and then its argument prototype would still apply.  */
10195#ifdef __cplusplus
10196extern "C"
10197#endif
10198char dlopen ();
10199int
10200main ()
10201{
10202return dlopen ();
10203  ;
10204  return 0;
10205}
10206_ACEOF
10207rm -f conftest.$ac_objext conftest$ac_exeext
10208if { (ac_try="$ac_link"
10209case "(($ac_try" in
10210  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10211  *) ac_try_echo=$ac_try;;
10212esac
10213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10214  (eval "$ac_link") 2>conftest.er1
10215  ac_status=$?
10216  grep -v '^ *+' conftest.er1 >conftest.err
10217  rm -f conftest.er1
10218  cat conftest.err >&5
10219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220  (exit $ac_status); } && {
10221	 test -z "$ac_c_werror_flag" ||
10222	 test ! -s conftest.err
10223       } && test -s conftest$ac_exeext &&
10224       $as_test_x conftest$ac_exeext; then
10225  ac_cv_lib_dl_dlopen=yes
10226else
10227  echo "$as_me: failed program was:" >&5
10228sed 's/^/| /' conftest.$ac_ext >&5
10229
10230	ac_cv_lib_dl_dlopen=no
10231fi
10232
10233rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10234      conftest$ac_exeext conftest.$ac_ext
10235LIBS=$ac_check_lib_save_LIBS
10236fi
10237{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10238echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10239if test $ac_cv_lib_dl_dlopen = yes; then
10240  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10241else
10242  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10243echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10244if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10245  echo $ECHO_N "(cached) $ECHO_C" >&6
10246else
10247  ac_check_lib_save_LIBS=$LIBS
10248LIBS="-lsvld  $LIBS"
10249cat >conftest.$ac_ext <<_ACEOF
10250/* confdefs.h.  */
10251_ACEOF
10252cat confdefs.h >>conftest.$ac_ext
10253cat >>conftest.$ac_ext <<_ACEOF
10254/* end confdefs.h.  */
10255
10256/* Override any GCC internal prototype to avoid an error.
10257   Use char because int might match the return type of a GCC
10258   builtin and then its argument prototype would still apply.  */
10259#ifdef __cplusplus
10260extern "C"
10261#endif
10262char dlopen ();
10263int
10264main ()
10265{
10266return dlopen ();
10267  ;
10268  return 0;
10269}
10270_ACEOF
10271rm -f conftest.$ac_objext conftest$ac_exeext
10272if { (ac_try="$ac_link"
10273case "(($ac_try" in
10274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275  *) ac_try_echo=$ac_try;;
10276esac
10277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10278  (eval "$ac_link") 2>conftest.er1
10279  ac_status=$?
10280  grep -v '^ *+' conftest.er1 >conftest.err
10281  rm -f conftest.er1
10282  cat conftest.err >&5
10283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284  (exit $ac_status); } && {
10285	 test -z "$ac_c_werror_flag" ||
10286	 test ! -s conftest.err
10287       } && test -s conftest$ac_exeext &&
10288       $as_test_x conftest$ac_exeext; then
10289  ac_cv_lib_svld_dlopen=yes
10290else
10291  echo "$as_me: failed program was:" >&5
10292sed 's/^/| /' conftest.$ac_ext >&5
10293
10294	ac_cv_lib_svld_dlopen=no
10295fi
10296
10297rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10298      conftest$ac_exeext conftest.$ac_ext
10299LIBS=$ac_check_lib_save_LIBS
10300fi
10301{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10302echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10303if test $ac_cv_lib_svld_dlopen = yes; then
10304  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10305else
10306  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10307echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10308if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10309  echo $ECHO_N "(cached) $ECHO_C" >&6
10310else
10311  ac_check_lib_save_LIBS=$LIBS
10312LIBS="-ldld  $LIBS"
10313cat >conftest.$ac_ext <<_ACEOF
10314/* confdefs.h.  */
10315_ACEOF
10316cat confdefs.h >>conftest.$ac_ext
10317cat >>conftest.$ac_ext <<_ACEOF
10318/* end confdefs.h.  */
10319
10320/* Override any GCC internal prototype to avoid an error.
10321   Use char because int might match the return type of a GCC
10322   builtin and then its argument prototype would still apply.  */
10323#ifdef __cplusplus
10324extern "C"
10325#endif
10326char dld_link ();
10327int
10328main ()
10329{
10330return dld_link ();
10331  ;
10332  return 0;
10333}
10334_ACEOF
10335rm -f conftest.$ac_objext conftest$ac_exeext
10336if { (ac_try="$ac_link"
10337case "(($ac_try" in
10338  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10339  *) ac_try_echo=$ac_try;;
10340esac
10341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10342  (eval "$ac_link") 2>conftest.er1
10343  ac_status=$?
10344  grep -v '^ *+' conftest.er1 >conftest.err
10345  rm -f conftest.er1
10346  cat conftest.err >&5
10347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348  (exit $ac_status); } && {
10349	 test -z "$ac_c_werror_flag" ||
10350	 test ! -s conftest.err
10351       } && test -s conftest$ac_exeext &&
10352       $as_test_x conftest$ac_exeext; then
10353  ac_cv_lib_dld_dld_link=yes
10354else
10355  echo "$as_me: failed program was:" >&5
10356sed 's/^/| /' conftest.$ac_ext >&5
10357
10358	ac_cv_lib_dld_dld_link=no
10359fi
10360
10361rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10362      conftest$ac_exeext conftest.$ac_ext
10363LIBS=$ac_check_lib_save_LIBS
10364fi
10365{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10366echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10367if test $ac_cv_lib_dld_dld_link = yes; then
10368  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10369fi
10370
10371
10372fi
10373
10374
10375fi
10376
10377
10378fi
10379
10380
10381fi
10382
10383
10384fi
10385
10386    ;;
10387  esac
10388
10389  if test "x$lt_cv_dlopen" != xno; then
10390    enable_dlopen=yes
10391  else
10392    enable_dlopen=no
10393  fi
10394
10395  case $lt_cv_dlopen in
10396  dlopen)
10397    save_CPPFLAGS="$CPPFLAGS"
10398    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10399
10400    save_LDFLAGS="$LDFLAGS"
10401    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10402
10403    save_LIBS="$LIBS"
10404    LIBS="$lt_cv_dlopen_libs $LIBS"
10405
10406    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10407echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10408if test "${lt_cv_dlopen_self+set}" = set; then
10409  echo $ECHO_N "(cached) $ECHO_C" >&6
10410else
10411  	  if test "$cross_compiling" = yes; then :
10412  lt_cv_dlopen_self=cross
10413else
10414  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10415  lt_status=$lt_dlunknown
10416  cat > conftest.$ac_ext <<EOF
10417#line 10417 "configure"
10418#include "confdefs.h"
10419
10420#if HAVE_DLFCN_H
10421#include <dlfcn.h>
10422#endif
10423
10424#include <stdio.h>
10425
10426#ifdef RTLD_GLOBAL
10427#  define LT_DLGLOBAL		RTLD_GLOBAL
10428#else
10429#  ifdef DL_GLOBAL
10430#    define LT_DLGLOBAL		DL_GLOBAL
10431#  else
10432#    define LT_DLGLOBAL		0
10433#  endif
10434#endif
10435
10436/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10437   find out it does not work in some platform. */
10438#ifndef LT_DLLAZY_OR_NOW
10439#  ifdef RTLD_LAZY
10440#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10441#  else
10442#    ifdef DL_LAZY
10443#      define LT_DLLAZY_OR_NOW		DL_LAZY
10444#    else
10445#      ifdef RTLD_NOW
10446#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10447#      else
10448#        ifdef DL_NOW
10449#          define LT_DLLAZY_OR_NOW	DL_NOW
10450#        else
10451#          define LT_DLLAZY_OR_NOW	0
10452#        endif
10453#      endif
10454#    endif
10455#  endif
10456#endif
10457
10458#ifdef __cplusplus
10459extern "C" void exit (int);
10460#endif
10461
10462void fnord() { int i=42;}
10463int main ()
10464{
10465  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10466  int status = $lt_dlunknown;
10467
10468  if (self)
10469    {
10470      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10471      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10472      /* dlclose (self); */
10473    }
10474  else
10475    puts (dlerror ());
10476
10477    exit (status);
10478}
10479EOF
10480  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10481  (eval $ac_link) 2>&5
10482  ac_status=$?
10483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10485    (./conftest; exit; ) >&5 2>/dev/null
10486    lt_status=$?
10487    case x$lt_status in
10488      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10489      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10490      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10491    esac
10492  else :
10493    # compilation failed
10494    lt_cv_dlopen_self=no
10495  fi
10496fi
10497rm -fr conftest*
10498
10499
10500fi
10501{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10502echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10503
10504    if test "x$lt_cv_dlopen_self" = xyes; then
10505      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10506      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10507echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10508if test "${lt_cv_dlopen_self_static+set}" = set; then
10509  echo $ECHO_N "(cached) $ECHO_C" >&6
10510else
10511  	  if test "$cross_compiling" = yes; then :
10512  lt_cv_dlopen_self_static=cross
10513else
10514  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10515  lt_status=$lt_dlunknown
10516  cat > conftest.$ac_ext <<EOF
10517#line 10517 "configure"
10518#include "confdefs.h"
10519
10520#if HAVE_DLFCN_H
10521#include <dlfcn.h>
10522#endif
10523
10524#include <stdio.h>
10525
10526#ifdef RTLD_GLOBAL
10527#  define LT_DLGLOBAL		RTLD_GLOBAL
10528#else
10529#  ifdef DL_GLOBAL
10530#    define LT_DLGLOBAL		DL_GLOBAL
10531#  else
10532#    define LT_DLGLOBAL		0
10533#  endif
10534#endif
10535
10536/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10537   find out it does not work in some platform. */
10538#ifndef LT_DLLAZY_OR_NOW
10539#  ifdef RTLD_LAZY
10540#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10541#  else
10542#    ifdef DL_LAZY
10543#      define LT_DLLAZY_OR_NOW		DL_LAZY
10544#    else
10545#      ifdef RTLD_NOW
10546#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10547#      else
10548#        ifdef DL_NOW
10549#          define LT_DLLAZY_OR_NOW	DL_NOW
10550#        else
10551#          define LT_DLLAZY_OR_NOW	0
10552#        endif
10553#      endif
10554#    endif
10555#  endif
10556#endif
10557
10558#ifdef __cplusplus
10559extern "C" void exit (int);
10560#endif
10561
10562void fnord() { int i=42;}
10563int main ()
10564{
10565  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10566  int status = $lt_dlunknown;
10567
10568  if (self)
10569    {
10570      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10571      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10572      /* dlclose (self); */
10573    }
10574  else
10575    puts (dlerror ());
10576
10577    exit (status);
10578}
10579EOF
10580  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10581  (eval $ac_link) 2>&5
10582  ac_status=$?
10583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10585    (./conftest; exit; ) >&5 2>/dev/null
10586    lt_status=$?
10587    case x$lt_status in
10588      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10589      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10590      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10591    esac
10592  else :
10593    # compilation failed
10594    lt_cv_dlopen_self_static=no
10595  fi
10596fi
10597rm -fr conftest*
10598
10599
10600fi
10601{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10602echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10603    fi
10604
10605    CPPFLAGS="$save_CPPFLAGS"
10606    LDFLAGS="$save_LDFLAGS"
10607    LIBS="$save_LIBS"
10608    ;;
10609  esac
10610
10611  case $lt_cv_dlopen_self in
10612  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10613  *) enable_dlopen_self=unknown ;;
10614  esac
10615
10616  case $lt_cv_dlopen_self_static in
10617  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10618  *) enable_dlopen_self_static=unknown ;;
10619  esac
10620fi
10621
10622
10623# Report which library types will actually be built
10624{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10625echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10626{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10627echo "${ECHO_T}$can_build_shared" >&6; }
10628
10629{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10630echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10631test "$can_build_shared" = "no" && enable_shared=no
10632
10633# On AIX, shared libraries and static libraries use the same namespace, and
10634# are all built from PIC.
10635case $host_os in
10636aix3*)
10637  test "$enable_shared" = yes && enable_static=no
10638  if test -n "$RANLIB"; then
10639    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10640    postinstall_cmds='$RANLIB $lib'
10641  fi
10642  ;;
10643
10644aix4* | aix5*)
10645  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10646    test "$enable_shared" = yes && enable_static=no
10647  fi
10648    ;;
10649esac
10650{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10651echo "${ECHO_T}$enable_shared" >&6; }
10652
10653{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10654echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10655# Make sure either enable_shared or enable_static is yes.
10656test "$enable_shared" = yes || enable_static=yes
10657{ echo "$as_me:$LINENO: result: $enable_static" >&5
10658echo "${ECHO_T}$enable_static" >&6; }
10659
10660# The else clause should only fire when bootstrapping the
10661# libtool distribution, otherwise you forgot to ship ltmain.sh
10662# with your package, and you will get complaints that there are
10663# no rules to generate ltmain.sh.
10664if test -f "$ltmain"; then
10665  # See if we are running on zsh, and set the options which allow our commands through
10666  # without removal of \ escapes.
10667  if test -n "${ZSH_VERSION+set}" ; then
10668    setopt NO_GLOB_SUBST
10669  fi
10670  # Now quote all the things that may contain metacharacters while being
10671  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10672  # variables and quote the copies for generation of the libtool script.
10673  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10674    SED SHELL STRIP \
10675    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10676    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10677    deplibs_check_method reload_flag reload_cmds need_locks \
10678    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10679    lt_cv_sys_global_symbol_to_c_name_address \
10680    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10681    old_postinstall_cmds old_postuninstall_cmds \
10682    compiler \
10683    CC \
10684    LD \
10685    lt_prog_compiler_wl \
10686    lt_prog_compiler_pic \
10687    lt_prog_compiler_static \
10688    lt_prog_compiler_no_builtin_flag \
10689    export_dynamic_flag_spec \
10690    thread_safe_flag_spec \
10691    whole_archive_flag_spec \
10692    enable_shared_with_static_runtimes \
10693    old_archive_cmds \
10694    old_archive_from_new_cmds \
10695    predep_objects \
10696    postdep_objects \
10697    predeps \
10698    postdeps \
10699    compiler_lib_search_path \
10700    archive_cmds \
10701    archive_expsym_cmds \
10702    postinstall_cmds \
10703    postuninstall_cmds \
10704    old_archive_from_expsyms_cmds \
10705    allow_undefined_flag \
10706    no_undefined_flag \
10707    export_symbols_cmds \
10708    hardcode_libdir_flag_spec \
10709    hardcode_libdir_flag_spec_ld \
10710    hardcode_libdir_separator \
10711    hardcode_automatic \
10712    module_cmds \
10713    module_expsym_cmds \
10714    lt_cv_prog_compiler_c_o \
10715    exclude_expsyms \
10716    include_expsyms; do
10717
10718    case $var in
10719    old_archive_cmds | \
10720    old_archive_from_new_cmds | \
10721    archive_cmds | \
10722    archive_expsym_cmds | \
10723    module_cmds | \
10724    module_expsym_cmds | \
10725    old_archive_from_expsyms_cmds | \
10726    export_symbols_cmds | \
10727    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10728    postinstall_cmds | postuninstall_cmds | \
10729    old_postinstall_cmds | old_postuninstall_cmds | \
10730    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10731      # Double-quote double-evaled strings.
10732      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10733      ;;
10734    *)
10735      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10736      ;;
10737    esac
10738  done
10739
10740  case $lt_echo in
10741  *'\$0 --fallback-echo"')
10742    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10743    ;;
10744  esac
10745
10746cfgfile="${ofile}T"
10747  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10748  $rm -f "$cfgfile"
10749  { echo "$as_me:$LINENO: creating $ofile" >&5
10750echo "$as_me: creating $ofile" >&6;}
10751
10752  cat <<__EOF__ >> "$cfgfile"
10753#! $SHELL
10754
10755# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10756# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10757# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10758#
10759# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10760# Free Software Foundation, Inc.
10761#
10762# This file is part of GNU Libtool:
10763# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10764#
10765# This program is free software; you can redistribute it and/or modify
10766# it under the terms of the GNU General Public License as published by
10767# the Free Software Foundation; either version 2 of the License, or
10768# (at your option) any later version.
10769#
10770# This program is distributed in the hope that it will be useful, but
10771# WITHOUT ANY WARRANTY; without even the implied warranty of
10772# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10773# General Public License for more details.
10774#
10775# You should have received a copy of the GNU General Public License
10776# along with this program; if not, write to the Free Software
10777# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10778#
10779# As a special exception to the GNU General Public License, if you
10780# distribute this file as part of a program that contains a
10781# configuration script generated by Autoconf, you may include it under
10782# the same distribution terms that you use for the rest of that program.
10783
10784# A sed program that does not truncate output.
10785SED=$lt_SED
10786
10787# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10788Xsed="$SED -e 1s/^X//"
10789
10790# The HP-UX ksh and POSIX shell print the target directory to stdout
10791# if CDPATH is set.
10792(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10793
10794# The names of the tagged configurations supported by this script.
10795available_tags=
10796
10797# ### BEGIN LIBTOOL CONFIG
10798
10799# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10800
10801# Shell to use when invoking shell scripts.
10802SHELL=$lt_SHELL
10803
10804# Whether or not to build shared libraries.
10805build_libtool_libs=$enable_shared
10806
10807# Whether or not to build static libraries.
10808build_old_libs=$enable_static
10809
10810# Whether or not to add -lc for building shared libraries.
10811build_libtool_need_lc=$archive_cmds_need_lc
10812
10813# Whether or not to disallow shared libs when runtime libs are static
10814allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10815
10816# Whether or not to optimize for fast installation.
10817fast_install=$enable_fast_install
10818
10819# The host system.
10820host_alias=$host_alias
10821host=$host
10822host_os=$host_os
10823
10824# The build system.
10825build_alias=$build_alias
10826build=$build
10827build_os=$build_os
10828
10829# An echo program that does not interpret backslashes.
10830echo=$lt_echo
10831
10832# The archiver.
10833AR=$lt_AR
10834AR_FLAGS=$lt_AR_FLAGS
10835
10836# A C compiler.
10837LTCC=$lt_LTCC
10838
10839# LTCC compiler flags.
10840LTCFLAGS=$lt_LTCFLAGS
10841
10842# A language-specific compiler.
10843CC=$lt_compiler
10844
10845# Is the compiler the GNU C compiler?
10846with_gcc=$GCC
10847
10848gcc_dir=\`$LTCC -print-file-name=. | $SED 's,/\.$,,'\`
10849gcc_ver=\`$LTCC -dumpversion\`
10850
10851# An ERE matcher.
10852EGREP=$lt_EGREP
10853
10854# The linker used to build libraries.
10855LD=$lt_LD
10856
10857# Whether we need hard or soft links.
10858LN_S=$lt_LN_S
10859
10860# A BSD-compatible nm program.
10861NM=$lt_NM
10862
10863# A symbol stripping program
10864STRIP=$lt_STRIP
10865
10866# Used to examine libraries when file_magic_cmd begins "file"
10867MAGIC_CMD=$MAGIC_CMD
10868
10869# Used on cygwin: DLL creation program.
10870DLLTOOL="$DLLTOOL"
10871
10872# Used on cygwin: object dumper.
10873OBJDUMP="$OBJDUMP"
10874
10875# Used on cygwin: assembler.
10876AS="$AS"
10877
10878# The name of the directory that contains temporary libtool files.
10879objdir=$objdir
10880
10881# How to create reloadable object files.
10882reload_flag=$lt_reload_flag
10883reload_cmds=$lt_reload_cmds
10884
10885# How to pass a linker flag through the compiler.
10886wl=$lt_lt_prog_compiler_wl
10887
10888# Object file suffix (normally "o").
10889objext="$ac_objext"
10890
10891# Old archive suffix (normally "a").
10892libext="$libext"
10893
10894# Shared library suffix (normally ".so").
10895shrext_cmds='$shrext_cmds'
10896
10897# Executable file suffix (normally "").
10898exeext="$exeext"
10899
10900# Additional compiler flags for building library objects.
10901pic_flag=$lt_lt_prog_compiler_pic
10902pic_mode=$pic_mode
10903
10904# What is the maximum length of a command?
10905max_cmd_len=$lt_cv_sys_max_cmd_len
10906
10907# Does compiler simultaneously support -c and -o options?
10908compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10909
10910# Must we lock files when doing compilation?
10911need_locks=$lt_need_locks
10912
10913# Do we need the lib prefix for modules?
10914need_lib_prefix=$need_lib_prefix
10915
10916# Do we need a version for libraries?
10917need_version=$need_version
10918
10919# Whether dlopen is supported.
10920dlopen_support=$enable_dlopen
10921
10922# Whether dlopen of programs is supported.
10923dlopen_self=$enable_dlopen_self
10924
10925# Whether dlopen of statically linked programs is supported.
10926dlopen_self_static=$enable_dlopen_self_static
10927
10928# Compiler flag to prevent dynamic linking.
10929link_static_flag=$lt_lt_prog_compiler_static
10930
10931# Compiler flag to turn off builtin functions.
10932no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10933
10934# Compiler flag to allow reflexive dlopens.
10935export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10936
10937# Compiler flag to generate shared objects directly from archives.
10938whole_archive_flag_spec=$lt_whole_archive_flag_spec
10939
10940# Compiler flag to generate thread-safe objects.
10941thread_safe_flag_spec=$lt_thread_safe_flag_spec
10942
10943# Library versioning type.
10944version_type=$version_type
10945
10946# Format of library name prefix.
10947libname_spec=$lt_libname_spec
10948
10949# List of archive names.  First name is the real one, the rest are links.
10950# The last name is the one that the linker finds with -lNAME.
10951library_names_spec=$lt_library_names_spec
10952
10953# The coded name of the library, if different from the real name.
10954soname_spec=$lt_soname_spec
10955
10956# Commands used to build and install an old-style archive.
10957RANLIB=$lt_RANLIB
10958old_archive_cmds=$lt_old_archive_cmds
10959old_postinstall_cmds=$lt_old_postinstall_cmds
10960old_postuninstall_cmds=$lt_old_postuninstall_cmds
10961
10962# Create an old-style archive from a shared archive.
10963old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10964
10965# Create a temporary old-style archive to link instead of a shared archive.
10966old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10967
10968# Commands used to build and install a shared archive.
10969archive_cmds=$lt_archive_cmds
10970archive_expsym_cmds=$lt_archive_expsym_cmds
10971postinstall_cmds=$lt_postinstall_cmds
10972postuninstall_cmds=$lt_postuninstall_cmds
10973
10974# Commands used to build a loadable module (assumed same as above if empty)
10975module_cmds=$lt_module_cmds
10976module_expsym_cmds=$lt_module_expsym_cmds
10977
10978# Commands to strip libraries.
10979old_striplib=$lt_old_striplib
10980striplib=$lt_striplib
10981
10982# Dependencies to place before the objects being linked to create a
10983# shared library.
10984predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10985
10986# Dependencies to place after the objects being linked to create a
10987# shared library.
10988postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10989
10990# Dependencies to place before the objects being linked to create a
10991# shared library.
10992predeps=$lt_predeps
10993
10994# Dependencies to place after the objects being linked to create a
10995# shared library.
10996postdeps=$lt_postdeps
10997
10998# The library search path used internally by the compiler when linking
10999# a shared library.
11000compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
11001
11002# Method to check whether dependent libraries are shared objects.
11003deplibs_check_method=$lt_deplibs_check_method
11004
11005# Command to use when deplibs_check_method == file_magic.
11006file_magic_cmd=$lt_file_magic_cmd
11007
11008# Flag that allows shared libraries with undefined symbols to be built.
11009allow_undefined_flag=$lt_allow_undefined_flag
11010
11011# Flag that forces no undefined symbols.
11012no_undefined_flag=$lt_no_undefined_flag
11013
11014# Commands used to finish a libtool library installation in a directory.
11015finish_cmds=$lt_finish_cmds
11016
11017# Same as above, but a single script fragment to be evaled but not shown.
11018finish_eval=$lt_finish_eval
11019
11020# Take the output of nm and produce a listing of raw symbols and C names.
11021global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11022
11023# Transform the output of nm in a proper C declaration
11024global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11025
11026# Transform the output of nm in a C name address pair
11027global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11028
11029# This is the shared library runtime path variable.
11030runpath_var=$runpath_var
11031
11032# This is the shared library path variable.
11033shlibpath_var=$shlibpath_var
11034
11035# Is shlibpath searched before the hard-coded library search path?
11036shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11037
11038# How to hardcode a shared library path into an executable.
11039hardcode_action=$hardcode_action
11040
11041# Whether we should hardcode library paths into libraries.
11042hardcode_into_libs=$hardcode_into_libs
11043
11044# Flag to hardcode \$libdir into a binary during linking.
11045# This must work even if \$libdir does not exist.
11046hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11047
11048# If ld is used when linking, flag to hardcode \$libdir into
11049# a binary during linking. This must work even if \$libdir does
11050# not exist.
11051hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11052
11053# Whether we need a single -rpath flag with a separated argument.
11054hardcode_libdir_separator=$lt_hardcode_libdir_separator
11055
11056# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11057# resulting binary.
11058hardcode_direct=$hardcode_direct
11059
11060# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11061# resulting binary.
11062hardcode_minus_L=$hardcode_minus_L
11063
11064# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11065# the resulting binary.
11066hardcode_shlibpath_var=$hardcode_shlibpath_var
11067
11068# Set to yes if building a shared library automatically hardcodes DIR into the library
11069# and all subsequent libraries and executables linked against it.
11070hardcode_automatic=$hardcode_automatic
11071
11072# Variables whose values should be saved in libtool wrapper scripts and
11073# restored at relink time.
11074variables_saved_for_relink="$variables_saved_for_relink"
11075
11076# Whether libtool must link a program against all its dependency libraries.
11077link_all_deplibs=$link_all_deplibs
11078
11079# Compile-time system search path for libraries
11080sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
11081
11082# Run-time system search path for libraries
11083sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11084
11085# Fix the shell variable \$srcfile for the compiler.
11086fix_srcfile_path="$fix_srcfile_path"
11087
11088# Set to yes if exported symbols are required.
11089always_export_symbols=$always_export_symbols
11090
11091# The commands to list exported symbols.
11092export_symbols_cmds=$lt_export_symbols_cmds
11093
11094# The commands to extract the exported symbol list from a shared archive.
11095extract_expsyms_cmds=$lt_extract_expsyms_cmds
11096
11097# Symbols that should not be listed in the preloaded symbols.
11098exclude_expsyms=$lt_exclude_expsyms
11099
11100# Symbols that must always be exported.
11101include_expsyms=$lt_include_expsyms
11102
11103# ### END LIBTOOL CONFIG
11104
11105__EOF__
11106
11107
11108  case $host_os in
11109  aix3*)
11110    cat <<\EOF >> "$cfgfile"
11111
11112# AIX sometimes has problems with the GCC collect2 program.  For some
11113# reason, if we set the COLLECT_NAMES environment variable, the problems
11114# vanish in a puff of smoke.
11115if test "X${COLLECT_NAMES+set}" != Xset; then
11116  COLLECT_NAMES=
11117  export COLLECT_NAMES
11118fi
11119EOF
11120    ;;
11121  esac
11122
11123  # We use sed instead of cat because bash on DJGPP gets confused if
11124  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11125  # text mode, it properly converts lines to CR/LF.  This bash problem
11126  # is reportedly fixed, but why not run on old versions too?
11127  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11128
11129  mv -f "$cfgfile" "$ofile" || \
11130    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11131  chmod +x "$ofile"
11132
11133else
11134  # If there is no Makefile yet, we rely on a make rule to execute
11135  # `config.status --recheck' to rerun these tests and create the
11136  # libtool script then.
11137  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11138  if test -f "$ltmain_in"; then
11139    test -f Makefile && make "$ltmain"
11140  fi
11141fi
11142
11143
11144ac_ext=c
11145ac_cpp='$CPP $CPPFLAGS'
11146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11148ac_compiler_gnu=$ac_cv_c_compiler_gnu
11149
11150CC="$lt_save_CC"
11151
11152
11153# Check whether --with-tags was given.
11154if test "${with_tags+set}" = set; then
11155  withval=$with_tags; tagnames="$withval"
11156fi
11157
11158
11159if test -f "$ltmain" && test -n "$tagnames"; then
11160  if test ! -f "${ofile}"; then
11161    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11162echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11163  fi
11164
11165  if test -z "$LTCC"; then
11166    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11167    if test -z "$LTCC"; then
11168      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11169echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11170    else
11171      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11172echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11173    fi
11174  fi
11175  if test -z "$LTCFLAGS"; then
11176    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11177  fi
11178
11179  # Extract list of available tagged configurations in $ofile.
11180  # Note that this assumes the entire list is on one line.
11181  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11182
11183  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11184  for tagname in $tagnames; do
11185    IFS="$lt_save_ifs"
11186    # Check whether tagname contains only valid characters
11187    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11188    "") ;;
11189    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11190echo "$as_me: error: invalid tag name: $tagname" >&2;}
11191   { (exit 1); exit 1; }; }
11192	;;
11193    esac
11194
11195    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11196    then
11197      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11198echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11199   { (exit 1); exit 1; }; }
11200    fi
11201
11202    # Update the list of available tags.
11203    if test -n "$tagname"; then
11204      echo appending configuration tag \"$tagname\" to $ofile
11205
11206      case $tagname in
11207      CXX)
11208	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11209	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11210	    (test "X$CXX" != "Xg++"))) ; then
11211	  ac_ext=cpp
11212ac_cpp='$CXXCPP $CPPFLAGS'
11213ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11214ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11215ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11216
11217
11218
11219
11220archive_cmds_need_lc_CXX=no
11221allow_undefined_flag_CXX=
11222always_export_symbols_CXX=no
11223archive_expsym_cmds_CXX=
11224export_dynamic_flag_spec_CXX=
11225hardcode_direct_CXX=no
11226hardcode_libdir_flag_spec_CXX=
11227hardcode_libdir_flag_spec_ld_CXX=
11228hardcode_libdir_separator_CXX=
11229hardcode_minus_L_CXX=no
11230hardcode_shlibpath_var_CXX=unsupported
11231hardcode_automatic_CXX=no
11232module_cmds_CXX=
11233module_expsym_cmds_CXX=
11234link_all_deplibs_CXX=unknown
11235old_archive_cmds_CXX=$old_archive_cmds
11236no_undefined_flag_CXX=
11237whole_archive_flag_spec_CXX=
11238enable_shared_with_static_runtimes_CXX=no
11239
11240# Dependencies to place before and after the object being linked:
11241predep_objects_CXX=
11242postdep_objects_CXX=
11243predeps_CXX=
11244postdeps_CXX=
11245compiler_lib_search_path_CXX=
11246
11247# Source file extension for C++ test sources.
11248ac_ext=cpp
11249
11250# Object file extension for compiled C++ test sources.
11251objext=o
11252objext_CXX=$objext
11253
11254# Code to be used in simple compile tests
11255lt_simple_compile_test_code="int some_variable = 0;\n"
11256
11257# Code to be used in simple link tests
11258lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11259
11260# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11261
11262# If no C compiler was specified, use CC.
11263LTCC=${LTCC-"$CC"}
11264
11265# If no C compiler flags were specified, use CFLAGS.
11266LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11267
11268# Allow CC to be a program name with arguments.
11269compiler=$CC
11270
11271
11272# save warnings/boilerplate of simple test code
11273ac_outfile=conftest.$ac_objext
11274printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11275eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11276_lt_compiler_boilerplate=`cat conftest.err`
11277$rm conftest*
11278
11279ac_outfile=conftest.$ac_objext
11280printf "$lt_simple_link_test_code" >conftest.$ac_ext
11281eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11282_lt_linker_boilerplate=`cat conftest.err`
11283$rm conftest*
11284
11285
11286# Allow CC to be a program name with arguments.
11287lt_save_CC=$CC
11288lt_save_LD=$LD
11289lt_save_GCC=$GCC
11290GCC=$GXX
11291lt_save_with_gnu_ld=$with_gnu_ld
11292lt_save_path_LD=$lt_cv_path_LD
11293if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11294  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11295else
11296  $as_unset lt_cv_prog_gnu_ld
11297fi
11298if test -n "${lt_cv_path_LDCXX+set}"; then
11299  lt_cv_path_LD=$lt_cv_path_LDCXX
11300else
11301  $as_unset lt_cv_path_LD
11302fi
11303test -z "${LDCXX+set}" || LD=$LDCXX
11304CC=${CXX-"c++"}
11305compiler=$CC
11306compiler_CXX=$CC
11307for cc_temp in $compiler""; do
11308  case $cc_temp in
11309    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11310    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11311    \-*) ;;
11312    *) break;;
11313  esac
11314done
11315cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11316
11317
11318# We don't want -fno-exception wen compiling C++ code, so set the
11319# no_builtin_flag separately
11320if test "$GXX" = yes; then
11321  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11322else
11323  lt_prog_compiler_no_builtin_flag_CXX=
11324fi
11325
11326if test "$GXX" = yes; then
11327  # Set up default GNU C++ configuration
11328
11329
11330# Check whether --with-gnu-ld was given.
11331if test "${with_gnu_ld+set}" = set; then
11332  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11333else
11334  with_gnu_ld=no
11335fi
11336
11337ac_prog=ld
11338if test "$GCC" = yes; then
11339  # Check if gcc -print-prog-name=ld gives a path.
11340  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11341echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11342  case $host in
11343  *-*-mingw*)
11344    # gcc leaves a trailing carriage return which upsets mingw
11345    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11346  *)
11347    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11348  esac
11349  case $ac_prog in
11350    # Accept absolute paths.
11351    [\\/]* | ?:[\\/]*)
11352      re_direlt='/[^/][^/]*/\.\./'
11353      # Canonicalize the pathname of ld
11354      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11355      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11356	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11357      done
11358      test -z "$LD" && LD="$ac_prog"
11359      ;;
11360  "")
11361    # If it fails, then pretend we aren't using GCC.
11362    ac_prog=ld
11363    ;;
11364  *)
11365    # If it is relative, then search for the first ld in PATH.
11366    with_gnu_ld=unknown
11367    ;;
11368  esac
11369elif test "$with_gnu_ld" = yes; then
11370  { echo "$as_me:$LINENO: checking for GNU ld" >&5
11371echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11372else
11373  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11374echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11375fi
11376if test "${lt_cv_path_LD+set}" = set; then
11377  echo $ECHO_N "(cached) $ECHO_C" >&6
11378else
11379  if test -z "$LD"; then
11380  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11381  for ac_dir in $PATH; do
11382    IFS="$lt_save_ifs"
11383    test -z "$ac_dir" && ac_dir=.
11384    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11385      lt_cv_path_LD="$ac_dir/$ac_prog"
11386      # Check to see if the program is GNU ld.  I'd rather use --version,
11387      # but apparently some variants of GNU ld only accept -v.
11388      # Break only if it was the GNU/non-GNU ld that we prefer.
11389      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11390      *GNU* | *'with BFD'*)
11391	test "$with_gnu_ld" != no && break
11392	;;
11393      *)
11394	test "$with_gnu_ld" != yes && break
11395	;;
11396      esac
11397    fi
11398  done
11399  IFS="$lt_save_ifs"
11400else
11401  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11402fi
11403fi
11404
11405LD="$lt_cv_path_LD"
11406if test -n "$LD"; then
11407  { echo "$as_me:$LINENO: result: $LD" >&5
11408echo "${ECHO_T}$LD" >&6; }
11409else
11410  { echo "$as_me:$LINENO: result: no" >&5
11411echo "${ECHO_T}no" >&6; }
11412fi
11413test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11414echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11415   { (exit 1); exit 1; }; }
11416{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11417echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11418if test "${lt_cv_prog_gnu_ld+set}" = set; then
11419  echo $ECHO_N "(cached) $ECHO_C" >&6
11420else
11421  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11422case `$LD -v 2>&1 </dev/null` in
11423*GNU* | *'with BFD'*)
11424  lt_cv_prog_gnu_ld=yes
11425  ;;
11426*)
11427  lt_cv_prog_gnu_ld=no
11428  ;;
11429esac
11430fi
11431{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11432echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11433with_gnu_ld=$lt_cv_prog_gnu_ld
11434
11435
11436
11437  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11438  # archiving commands below assume that GNU ld is being used.
11439  if test "$with_gnu_ld" = yes; then
11440    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11441    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'
11442
11443    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11444    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11445
11446    # If archive_cmds runs LD, not CC, wlarc should be empty
11447    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11448    #     investigate it a little bit more. (MM)
11449    wlarc='${wl}'
11450
11451    # ancient GNU ld didn't support --whole-archive et. al.
11452    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11453	grep 'no-whole-archive' > /dev/null; then
11454      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11455    else
11456      whole_archive_flag_spec_CXX=
11457    fi
11458  else
11459    with_gnu_ld=no
11460    wlarc=
11461
11462    # A generic and very simple default shared library creation
11463    # command for GNU C++ for the case where it uses the native
11464    # linker, instead of GNU ld.  If possible, this setting should
11465    # overridden to take advantage of the native linker features on
11466    # the platform it is being used on.
11467    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11468  fi
11469
11470  # Commands to make compiler produce verbose output that lists
11471  # what "hidden" libraries, object files and flags are used when
11472  # linking a shared library.
11473  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11474
11475else
11476  GXX=no
11477  with_gnu_ld=no
11478  wlarc=
11479fi
11480
11481# PORTME: fill in a description of your system's C++ link characteristics
11482{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11483echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11484ld_shlibs_CXX=yes
11485case $host_os in
11486  aix3*)
11487    # FIXME: insert proper C++ library support
11488    ld_shlibs_CXX=no
11489    ;;
11490  aix4* | aix5*)
11491    if test "$host_cpu" = ia64; then
11492      # On IA64, the linker does run time linking by default, so we don't
11493      # have to do anything special.
11494      aix_use_runtimelinking=no
11495      exp_sym_flag='-Bexport'
11496      no_entry_flag=""
11497    else
11498      aix_use_runtimelinking=no
11499
11500      # Test if we are trying to use run time linking or normal
11501      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11502      # need to do runtime linking.
11503      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11504	for ld_flag in $LDFLAGS; do
11505	  case $ld_flag in
11506	  *-brtl*)
11507	    aix_use_runtimelinking=yes
11508	    break
11509	    ;;
11510	  esac
11511	done
11512	;;
11513      esac
11514
11515      exp_sym_flag='-bexport'
11516      no_entry_flag='-bnoentry'
11517    fi
11518
11519    # When large executables or shared objects are built, AIX ld can
11520    # have problems creating the table of contents.  If linking a library
11521    # or program results in "error TOC overflow" add -mminimal-toc to
11522    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11523    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11524
11525    archive_cmds_CXX=''
11526    hardcode_direct_CXX=yes
11527    hardcode_libdir_separator_CXX=':'
11528    link_all_deplibs_CXX=yes
11529
11530    if test "$GXX" = yes; then
11531      case $host_os in aix4.[012]|aix4.[012].*)
11532      # We only want to do this on AIX 4.2 and lower, the check
11533      # below for broken collect2 doesn't work under 4.3+
11534	collect2name=`${CC} -print-prog-name=collect2`
11535	if test -f "$collect2name" && \
11536	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11537	then
11538	  # We have reworked collect2
11539	  hardcode_direct_CXX=yes
11540	else
11541	  # We have old collect2
11542	  hardcode_direct_CXX=unsupported
11543	  # It fails to find uninstalled libraries when the uninstalled
11544	  # path is not listed in the libpath.  Setting hardcode_minus_L
11545	  # to unsupported forces relinking
11546	  hardcode_minus_L_CXX=yes
11547	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11548	  hardcode_libdir_separator_CXX=
11549	fi
11550	;;
11551      esac
11552      shared_flag='-shared'
11553      if test "$aix_use_runtimelinking" = yes; then
11554	shared_flag="$shared_flag "'${wl}-G'
11555      fi
11556    else
11557      # not using gcc
11558      if test "$host_cpu" = ia64; then
11559	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11560	# chokes on -Wl,-G. The following line is correct:
11561	shared_flag='-G'
11562      else
11563	if test "$aix_use_runtimelinking" = yes; then
11564	  shared_flag='${wl}-G'
11565	else
11566	  shared_flag='${wl}-bM:SRE'
11567	fi
11568      fi
11569    fi
11570
11571    # It seems that -bexpall does not export symbols beginning with
11572    # underscore (_), so it is better to generate a list of symbols to export.
11573    always_export_symbols_CXX=yes
11574    if test "$aix_use_runtimelinking" = yes; then
11575      # Warning - without using the other runtime loading flags (-brtl),
11576      # -berok will link without error, but may produce a broken library.
11577      allow_undefined_flag_CXX='-berok'
11578      # Determine the default libpath from the value encoded in an empty executable.
11579      cat >conftest.$ac_ext <<_ACEOF
11580/* confdefs.h.  */
11581_ACEOF
11582cat confdefs.h >>conftest.$ac_ext
11583cat >>conftest.$ac_ext <<_ACEOF
11584/* end confdefs.h.  */
11585
11586int
11587main ()
11588{
11589
11590  ;
11591  return 0;
11592}
11593_ACEOF
11594rm -f conftest.$ac_objext conftest$ac_exeext
11595if { (ac_try="$ac_link"
11596case "(($ac_try" in
11597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11598  *) ac_try_echo=$ac_try;;
11599esac
11600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11601  (eval "$ac_link") 2>conftest.er1
11602  ac_status=$?
11603  grep -v '^ *+' conftest.er1 >conftest.err
11604  rm -f conftest.er1
11605  cat conftest.err >&5
11606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607  (exit $ac_status); } && {
11608	 test -z "$ac_cxx_werror_flag" ||
11609	 test ! -s conftest.err
11610       } && test -s conftest$ac_exeext &&
11611       $as_test_x conftest$ac_exeext; then
11612
11613aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11614}'`
11615# Check for a 64-bit object if we didn't find anything.
11616if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11617}'`; fi
11618else
11619  echo "$as_me: failed program was:" >&5
11620sed 's/^/| /' conftest.$ac_ext >&5
11621
11622
11623fi
11624
11625rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11626      conftest$ac_exeext conftest.$ac_ext
11627if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11628
11629      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11630
11631      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"
11632     else
11633      if test "$host_cpu" = ia64; then
11634	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11635	allow_undefined_flag_CXX="-z nodefs"
11636	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"
11637      else
11638	# Determine the default libpath from the value encoded in an empty executable.
11639	cat >conftest.$ac_ext <<_ACEOF
11640/* confdefs.h.  */
11641_ACEOF
11642cat confdefs.h >>conftest.$ac_ext
11643cat >>conftest.$ac_ext <<_ACEOF
11644/* end confdefs.h.  */
11645
11646int
11647main ()
11648{
11649
11650  ;
11651  return 0;
11652}
11653_ACEOF
11654rm -f conftest.$ac_objext conftest$ac_exeext
11655if { (ac_try="$ac_link"
11656case "(($ac_try" in
11657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11658  *) ac_try_echo=$ac_try;;
11659esac
11660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11661  (eval "$ac_link") 2>conftest.er1
11662  ac_status=$?
11663  grep -v '^ *+' conftest.er1 >conftest.err
11664  rm -f conftest.er1
11665  cat conftest.err >&5
11666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667  (exit $ac_status); } && {
11668	 test -z "$ac_cxx_werror_flag" ||
11669	 test ! -s conftest.err
11670       } && test -s conftest$ac_exeext &&
11671       $as_test_x conftest$ac_exeext; then
11672
11673aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11674}'`
11675# Check for a 64-bit object if we didn't find anything.
11676if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11677}'`; fi
11678else
11679  echo "$as_me: failed program was:" >&5
11680sed 's/^/| /' conftest.$ac_ext >&5
11681
11682
11683fi
11684
11685rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11686      conftest$ac_exeext conftest.$ac_ext
11687if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11688
11689	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11690	# Warning - without using the other run time loading flags,
11691	# -berok will link without error, but may produce a broken library.
11692	no_undefined_flag_CXX=' ${wl}-bernotok'
11693	allow_undefined_flag_CXX=' ${wl}-berok'
11694	# Exported symbols can be pulled into shared objects from archives
11695	whole_archive_flag_spec_CXX='$convenience'
11696	archive_cmds_need_lc_CXX=yes
11697	# This is similar to how AIX traditionally builds its shared libraries.
11698	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'
11699      fi
11700    fi
11701    ;;
11702
11703  beos*)
11704    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11705      allow_undefined_flag_CXX=unsupported
11706      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11707      # support --undefined.  This deserves some investigation.  FIXME
11708      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11709    else
11710      ld_shlibs_CXX=no
11711    fi
11712    ;;
11713
11714  chorus*)
11715    case $cc_basename in
11716      *)
11717	# FIXME: insert proper C++ library support
11718	ld_shlibs_CXX=no
11719	;;
11720    esac
11721    ;;
11722
11723  cygwin* | mingw* | pw32*)
11724    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11725    # as there is no search path for DLLs.
11726    hardcode_libdir_flag_spec_CXX='-L$libdir'
11727    allow_undefined_flag_CXX=unsupported
11728    always_export_symbols_CXX=no
11729    enable_shared_with_static_runtimes_CXX=yes
11730
11731    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11732      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'
11733      # If the export-symbols file already is a .def file (1st line
11734      # is EXPORTS), use it as is; otherwise, prepend...
11735      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11736	cp $export_symbols $output_objdir/$soname.def;
11737      else
11738	echo EXPORTS > $output_objdir/$soname.def;
11739	cat $export_symbols >> $output_objdir/$soname.def;
11740      fi~
11741      $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'
11742    else
11743      ld_shlibs_CXX=no
11744    fi
11745  ;;
11746      darwin* | rhapsody*)
11747        case $host_os in
11748        rhapsody* | darwin1.[012])
11749         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11750         ;;
11751       *) # Darwin 1.3 on
11752         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11753           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11754         else
11755           case ${MACOSX_DEPLOYMENT_TARGET} in
11756             10.[012])
11757               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11758               ;;
11759             10.*)
11760               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11761               ;;
11762           esac
11763         fi
11764         ;;
11765        esac
11766      archive_cmds_need_lc_CXX=no
11767      hardcode_direct_CXX=no
11768      hardcode_automatic_CXX=yes
11769      hardcode_shlibpath_var_CXX=unsupported
11770      whole_archive_flag_spec_CXX=''
11771      link_all_deplibs_CXX=yes
11772
11773    if test "$GXX" = yes ; then
11774      lt_int_apple_cc_single_mod=no
11775      output_verbose_link_cmd='echo'
11776      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11777       lt_int_apple_cc_single_mod=yes
11778      fi
11779      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11780       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11781      else
11782          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'
11783        fi
11784        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11785        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11786          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11787            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11788          else
11789            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11790          fi
11791            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}'
11792      else
11793      case $cc_basename in
11794        xlc*)
11795         output_verbose_link_cmd='echo'
11796          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11797          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11798          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11799          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11800          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}'
11801          ;;
11802       *)
11803         ld_shlibs_CXX=no
11804          ;;
11805      esac
11806      fi
11807        ;;
11808
11809  dgux*)
11810    case $cc_basename in
11811      ec++*)
11812	# FIXME: insert proper C++ library support
11813	ld_shlibs_CXX=no
11814	;;
11815      ghcx*)
11816	# Green Hills C++ Compiler
11817	# FIXME: insert proper C++ library support
11818	ld_shlibs_CXX=no
11819	;;
11820      *)
11821	# FIXME: insert proper C++ library support
11822	ld_shlibs_CXX=no
11823	;;
11824    esac
11825    ;;
11826  freebsd[12]*)
11827    # C++ shared libraries reported to be fairly broken before switch to ELF
11828    ld_shlibs_CXX=no
11829    ;;
11830  freebsd-elf*)
11831    archive_cmds_need_lc_CXX=no
11832    ;;
11833  freebsd* | kfreebsd*-gnu | dragonfly*)
11834    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11835    # conventions
11836    ld_shlibs_CXX=yes
11837    ;;
11838  gnu*)
11839    ;;
11840  hpux9*)
11841    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11842    hardcode_libdir_separator_CXX=:
11843    export_dynamic_flag_spec_CXX='${wl}-E'
11844    hardcode_direct_CXX=yes
11845    hardcode_minus_L_CXX=yes # Not in the search PATH,
11846				# but as the default
11847				# location of the library.
11848
11849    case $cc_basename in
11850    CC*)
11851      # FIXME: insert proper C++ library support
11852      ld_shlibs_CXX=no
11853      ;;
11854    aCC*)
11855      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'
11856      # Commands to make compiler produce verbose output that lists
11857      # what "hidden" libraries, object files and flags are used when
11858      # linking a shared library.
11859      #
11860      # There doesn't appear to be a way to prevent this compiler from
11861      # explicitly linking system object files so we need to strip them
11862      # from the output so that they don't get included in the library
11863      # dependencies.
11864      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'
11865      ;;
11866    *)
11867      if test "$GXX" = yes; then
11868        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'
11869      else
11870        # FIXME: insert proper C++ library support
11871        ld_shlibs_CXX=no
11872      fi
11873      ;;
11874    esac
11875    ;;
11876  hpux10*|hpux11*)
11877    if test $with_gnu_ld = no; then
11878      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11879      hardcode_libdir_separator_CXX=:
11880
11881      case $host_cpu in
11882      hppa*64*|ia64*)
11883	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11884        ;;
11885      *)
11886	export_dynamic_flag_spec_CXX='${wl}-E'
11887        ;;
11888      esac
11889    fi
11890    case $host_cpu in
11891    hppa*64*|ia64*)
11892      hardcode_direct_CXX=no
11893      hardcode_shlibpath_var_CXX=no
11894      ;;
11895    *)
11896      hardcode_direct_CXX=yes
11897      hardcode_minus_L_CXX=yes # Not in the search PATH,
11898					      # but as the default
11899					      # location of the library.
11900      ;;
11901    esac
11902
11903    case $cc_basename in
11904      CC*)
11905	# FIXME: insert proper C++ library support
11906	ld_shlibs_CXX=no
11907	;;
11908      aCC*)
11909	case $host_cpu in
11910	hppa*64*)
11911	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11912	  ;;
11913	ia64*)
11914	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11915	  ;;
11916	*)
11917	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11918	  ;;
11919	esac
11920	# Commands to make compiler produce verbose output that lists
11921	# what "hidden" libraries, object files and flags are used when
11922	# linking a shared library.
11923	#
11924	# There doesn't appear to be a way to prevent this compiler from
11925	# explicitly linking system object files so we need to strip them
11926	# from the output so that they don't get included in the library
11927	# dependencies.
11928	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'
11929	;;
11930      *)
11931	if test "$GXX" = yes; then
11932	  if test $with_gnu_ld = no; then
11933	    case $host_cpu in
11934	    hppa*64*)
11935	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11936	      ;;
11937	    ia64*)
11938	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11939	      ;;
11940	    *)
11941	      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'
11942	      ;;
11943	    esac
11944	  fi
11945	else
11946	  # FIXME: insert proper C++ library support
11947	  ld_shlibs_CXX=no
11948	fi
11949	;;
11950    esac
11951    ;;
11952  interix3*)
11953    hardcode_direct_CXX=no
11954    hardcode_shlibpath_var_CXX=no
11955    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11956    export_dynamic_flag_spec_CXX='${wl}-E'
11957    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11958    # Instead, shared libraries are loaded at an image base (0x10000000 by
11959    # default) and relocated if they conflict, which is a slow very memory
11960    # consuming and fragmenting process.  To avoid this, we pick a random,
11961    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11962    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11963    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'
11964    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'
11965    ;;
11966  irix5* | irix6*)
11967    case $cc_basename in
11968      CC*)
11969	# SGI C++
11970	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'
11971
11972	# Archives containing C++ object files must be created using
11973	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11974	# necessary to make sure instantiated templates are included
11975	# in the archive.
11976	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11977	;;
11978      *)
11979	if test "$GXX" = yes; then
11980	  if test "$with_gnu_ld" = no; then
11981	    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'
11982	  else
11983	    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'
11984	  fi
11985	fi
11986	link_all_deplibs_CXX=yes
11987	;;
11988    esac
11989    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11990    hardcode_libdir_separator_CXX=:
11991    ;;
11992  linux*)
11993    case $cc_basename in
11994      KCC*)
11995	# Kuck and Associates, Inc. (KAI) C++ Compiler
11996
11997	# KCC will only create a shared library if the output file
11998	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11999	# to its proper name (with version) after linking.
12000	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'
12001	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'
12002	# Commands to make compiler produce verbose output that lists
12003	# what "hidden" libraries, object files and flags are used when
12004	# linking a shared library.
12005	#
12006	# There doesn't appear to be a way to prevent this compiler from
12007	# explicitly linking system object files so we need to strip them
12008	# from the output so that they don't get included in the library
12009	# dependencies.
12010	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'
12011
12012	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12013	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12014
12015	# Archives containing C++ object files must be created using
12016	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12017	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12018	;;
12019      icpc*)
12020	# Intel C++
12021	with_gnu_ld=yes
12022	# version 8.0 and above of icpc choke on multiply defined symbols
12023	# if we add $predep_objects and $postdep_objects, however 7.1 and
12024	# earlier do not add the objects themselves.
12025	case `$CC -V 2>&1` in
12026	*"Version 7."*)
12027  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12028  	  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'
12029	  ;;
12030	*)  # Version 8.0 or newer
12031	  tmp_idyn=
12032	  case $host_cpu in
12033	    ia64*) tmp_idyn=' -i_dynamic';;
12034	  esac
12035  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12036	  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'
12037	  ;;
12038	esac
12039	archive_cmds_need_lc_CXX=no
12040	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12041	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12042	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12043	;;
12044      pgCC*)
12045        # Portland Group C++ compiler
12046	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12047  	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'
12048
12049	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12050	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12051	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'
12052        ;;
12053      cxx*)
12054	# Compaq C++
12055	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12056	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'
12057
12058	runpath_var=LD_RUN_PATH
12059	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12060	hardcode_libdir_separator_CXX=:
12061
12062	# Commands to make compiler produce verbose output that lists
12063	# what "hidden" libraries, object files and flags are used when
12064	# linking a shared library.
12065	#
12066	# There doesn't appear to be a way to prevent this compiler from
12067	# explicitly linking system object files so we need to strip them
12068	# from the output so that they don't get included in the library
12069	# dependencies.
12070	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'
12071	;;
12072    esac
12073    ;;
12074  lynxos*)
12075    # FIXME: insert proper C++ library support
12076    ld_shlibs_CXX=no
12077    ;;
12078  m88k*)
12079    # FIXME: insert proper C++ library support
12080    ld_shlibs_CXX=no
12081    ;;
12082  mvs*)
12083    case $cc_basename in
12084      cxx*)
12085	# FIXME: insert proper C++ library support
12086	ld_shlibs_CXX=no
12087	;;
12088      *)
12089	# FIXME: insert proper C++ library support
12090	ld_shlibs_CXX=no
12091	;;
12092    esac
12093    ;;
12094  netbsd*)
12095    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12096      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12097      wlarc=
12098      hardcode_libdir_flag_spec_CXX='-R$libdir'
12099      hardcode_direct_CXX=yes
12100      hardcode_shlibpath_var_CXX=no
12101    fi
12102    # Workaround some broken pre-1.5 toolchains
12103    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12104    ;;
12105  openbsd2*)
12106    # C++ shared libraries are fairly broken
12107    ld_shlibs_CXX=no
12108    ;;
12109  openbsd*)
12110    hardcode_direct_CXX=yes
12111    hardcode_shlibpath_var_CXX=no
12112    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12113    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12114    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12115      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12116      export_dynamic_flag_spec_CXX='${wl}-E'
12117      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12118    fi
12119    output_verbose_link_cmd='echo'
12120    ;;
12121  osf3*)
12122    case $cc_basename in
12123      KCC*)
12124	# Kuck and Associates, Inc. (KAI) C++ Compiler
12125
12126	# KCC will only create a shared library if the output file
12127	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12128	# to its proper name (with version) after linking.
12129	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'
12130
12131	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12132	hardcode_libdir_separator_CXX=:
12133
12134	# Archives containing C++ object files must be created using
12135	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12136	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12137
12138	;;
12139      RCC*)
12140	# Rational C++ 2.4.1
12141	# FIXME: insert proper C++ library support
12142	ld_shlibs_CXX=no
12143	;;
12144      cxx*)
12145	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12146	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'
12147
12148	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12149	hardcode_libdir_separator_CXX=:
12150
12151	# Commands to make compiler produce verbose output that lists
12152	# what "hidden" libraries, object files and flags are used when
12153	# linking a shared library.
12154	#
12155	# There doesn't appear to be a way to prevent this compiler from
12156	# explicitly linking system object files so we need to strip them
12157	# from the output so that they don't get included in the library
12158	# dependencies.
12159	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'
12160	;;
12161      *)
12162	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12163	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12164	  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'
12165
12166	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12167	  hardcode_libdir_separator_CXX=:
12168
12169	  # Commands to make compiler produce verbose output that lists
12170	  # what "hidden" libraries, object files and flags are used when
12171	  # linking a shared library.
12172	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12173
12174	else
12175	  # FIXME: insert proper C++ library support
12176	  ld_shlibs_CXX=no
12177	fi
12178	;;
12179    esac
12180    ;;
12181  osf4* | osf5*)
12182    case $cc_basename in
12183      KCC*)
12184	# Kuck and Associates, Inc. (KAI) C++ Compiler
12185
12186	# KCC will only create a shared library if the output file
12187	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12188	# to its proper name (with version) after linking.
12189	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'
12190
12191	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12192	hardcode_libdir_separator_CXX=:
12193
12194	# Archives containing C++ object files must be created using
12195	# the KAI C++ compiler.
12196	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12197	;;
12198      RCC*)
12199	# Rational C++ 2.4.1
12200	# FIXME: insert proper C++ library support
12201	ld_shlibs_CXX=no
12202	;;
12203      cxx*)
12204	allow_undefined_flag_CXX=' -expect_unresolved \*'
12205	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'
12206	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12207	  echo "-hidden">> $lib.exp~
12208	  $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~
12209	  $rm $lib.exp'
12210
12211	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12212	hardcode_libdir_separator_CXX=:
12213
12214	# Commands to make compiler produce verbose output that lists
12215	# what "hidden" libraries, object files and flags are used when
12216	# linking a shared library.
12217	#
12218	# There doesn't appear to be a way to prevent this compiler from
12219	# explicitly linking system object files so we need to strip them
12220	# from the output so that they don't get included in the library
12221	# dependencies.
12222	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'
12223	;;
12224      *)
12225	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12226	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12227	 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'
12228
12229	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12230	  hardcode_libdir_separator_CXX=:
12231
12232	  # Commands to make compiler produce verbose output that lists
12233	  # what "hidden" libraries, object files and flags are used when
12234	  # linking a shared library.
12235	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12236
12237	else
12238	  # FIXME: insert proper C++ library support
12239	  ld_shlibs_CXX=no
12240	fi
12241	;;
12242    esac
12243    ;;
12244  psos*)
12245    # FIXME: insert proper C++ library support
12246    ld_shlibs_CXX=no
12247    ;;
12248  sunos4*)
12249    case $cc_basename in
12250      CC*)
12251	# Sun C++ 4.x
12252	# FIXME: insert proper C++ library support
12253	ld_shlibs_CXX=no
12254	;;
12255      lcc*)
12256	# Lucid
12257	# FIXME: insert proper C++ library support
12258	ld_shlibs_CXX=no
12259	;;
12260      *)
12261	# FIXME: insert proper C++ library support
12262	ld_shlibs_CXX=no
12263	;;
12264    esac
12265    ;;
12266  solaris*)
12267    case $cc_basename in
12268      CC*)
12269	# Sun C++ 4.2, 5.x and Centerline C++
12270        archive_cmds_need_lc_CXX=yes
12271	no_undefined_flag_CXX=' -zdefs'
12272	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12273	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12274	$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'
12275
12276	hardcode_libdir_flag_spec_CXX='-R$libdir'
12277	hardcode_shlibpath_var_CXX=no
12278	case $host_os in
12279	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12280	  *)
12281	    # The C++ compiler is used as linker so we must use $wl
12282	    # flag to pass the commands to the underlying system
12283	    # linker. We must also pass each convience library through
12284	    # to the system linker between allextract/defaultextract.
12285	    # The C++ compiler will combine linker options so we
12286	    # cannot just pass the convience library names through
12287	    # without $wl.
12288	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12289	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12290	    ;;
12291	esac
12292	link_all_deplibs_CXX=yes
12293
12294	output_verbose_link_cmd='echo'
12295
12296	# Archives containing C++ object files must be created using
12297	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12298	# necessary to make sure instantiated templates are included
12299	# in the archive.
12300	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12301	;;
12302      gcx*)
12303	# Green Hills C++ Compiler
12304	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12305
12306	# The C++ compiler must be used to create the archive.
12307	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12308	;;
12309      *)
12310	# GNU C++ compiler with Solaris linker
12311	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12312	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12313	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12314	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12315	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12316		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12317
12318	    # Commands to make compiler produce verbose output that lists
12319	    # what "hidden" libraries, object files and flags are used when
12320	    # linking a shared library.
12321	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12322	  else
12323	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12324	    # platform.
12325	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12326	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12327		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12328
12329	    # Commands to make compiler produce verbose output that lists
12330	    # what "hidden" libraries, object files and flags are used when
12331	    # linking a shared library.
12332	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12333	  fi
12334
12335	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12336	fi
12337	;;
12338    esac
12339    ;;
12340  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12341    no_undefined_flag_CXX='${wl}-z,text'
12342    archive_cmds_need_lc_CXX=no
12343    hardcode_shlibpath_var_CXX=no
12344    runpath_var='LD_RUN_PATH'
12345
12346    case $cc_basename in
12347      CC*)
12348	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12349	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12350	;;
12351      *)
12352	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12353	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12354	;;
12355    esac
12356    ;;
12357  sysv5* | sco3.2v5* | sco5v6*)
12358    # Note: We can NOT use -z defs as we might desire, because we do not
12359    # link with -lc, and that would cause any symbols used from libc to
12360    # always be unresolved, which means just about no library would
12361    # ever link correctly.  If we're not using GNU ld we use -z text
12362    # though, which does catch some bad symbols but isn't as heavy-handed
12363    # as -z defs.
12364    # For security reasons, it is highly recommended that you always
12365    # use absolute paths for naming shared libraries, and exclude the
12366    # DT_RUNPATH tag from executables and libraries.  But doing so
12367    # requires that you compile everything twice, which is a pain.
12368    # So that behaviour is only enabled if SCOABSPATH is set to a
12369    # non-empty value in the environment.  Most likely only useful for
12370    # creating official distributions of packages.
12371    # This is a hack until libtool officially supports absolute path
12372    # names for shared libraries.
12373    no_undefined_flag_CXX='${wl}-z,text'
12374    allow_undefined_flag_CXX='${wl}-z,nodefs'
12375    archive_cmds_need_lc_CXX=no
12376    hardcode_shlibpath_var_CXX=no
12377    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12378    hardcode_libdir_separator_CXX=':'
12379    link_all_deplibs_CXX=yes
12380    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12381    runpath_var='LD_RUN_PATH'
12382
12383    case $cc_basename in
12384      CC*)
12385	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12386	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12387	;;
12388      *)
12389	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12390	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12391	;;
12392    esac
12393    ;;
12394  tandem*)
12395    case $cc_basename in
12396      NCC*)
12397	# NonStop-UX NCC 3.20
12398	# FIXME: insert proper C++ library support
12399	ld_shlibs_CXX=no
12400	;;
12401      *)
12402	# FIXME: insert proper C++ library support
12403	ld_shlibs_CXX=no
12404	;;
12405    esac
12406    ;;
12407  vxworks*)
12408    # FIXME: insert proper C++ library support
12409    ld_shlibs_CXX=no
12410    ;;
12411  *)
12412    # FIXME: insert proper C++ library support
12413    ld_shlibs_CXX=no
12414    ;;
12415esac
12416{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12417echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12418test "$ld_shlibs_CXX" = no && can_build_shared=no
12419
12420GCC_CXX="$GXX"
12421LD_CXX="$LD"
12422
12423
12424cat > conftest.$ac_ext <<EOF
12425class Foo
12426{
12427public:
12428  Foo (void) { a = 0; }
12429private:
12430  int a;
12431};
12432EOF
12433
12434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12435  (eval $ac_compile) 2>&5
12436  ac_status=$?
12437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438  (exit $ac_status); }; then
12439  # Parse the compiler output and extract the necessary
12440  # objects, libraries and library flags.
12441
12442  # Sentinel used to keep track of whether or not we are before
12443  # the conftest object file.
12444  pre_test_object_deps_done=no
12445
12446  # The `*' in the case matches for architectures that use `case' in
12447  # $output_verbose_cmd can trigger glob expansion during the loop
12448  # eval without this substitution.
12449  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12450
12451  for p in `eval $output_verbose_link_cmd`; do
12452    case $p in
12453
12454    -L* | -R* | -l*)
12455       # Some compilers place space between "-{L,R}" and the path.
12456       # Remove the space.
12457       if test $p = "-L" \
12458	  || test $p = "-R"; then
12459	 prev=$p
12460	 continue
12461       else
12462	 prev=
12463       fi
12464
12465       if test "$pre_test_object_deps_done" = no; then
12466	 case $p in
12467	 -L* | -R*)
12468	   # Internal compiler library paths should come after those
12469	   # provided the user.  The postdeps already come after the
12470	   # user supplied libs so there is no need to process them.
12471	   if test -z "$compiler_lib_search_path_CXX"; then
12472	     compiler_lib_search_path_CXX="${prev}${p}"
12473	   else
12474	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12475	   fi
12476	   ;;
12477	 # The "-l" case would never come before the object being
12478	 # linked, so don't bother handling this case.
12479	 esac
12480       else
12481	 if test -z "$postdeps_CXX"; then
12482	   postdeps_CXX="${prev}${p}"
12483	 else
12484	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12485	 fi
12486       fi
12487       ;;
12488
12489    *.$objext)
12490       # This assumes that the test object file only shows up
12491       # once in the compiler output.
12492       if test "$p" = "conftest.$objext"; then
12493	 pre_test_object_deps_done=yes
12494	 continue
12495       fi
12496
12497       if test "$pre_test_object_deps_done" = no; then
12498	 if test -z "$predep_objects_CXX"; then
12499	   predep_objects_CXX="$p"
12500	 else
12501	   predep_objects_CXX="$predep_objects_CXX $p"
12502	 fi
12503       else
12504	 if test -z "$postdep_objects_CXX"; then
12505	   postdep_objects_CXX="$p"
12506	 else
12507	   postdep_objects_CXX="$postdep_objects_CXX $p"
12508	 fi
12509       fi
12510       ;;
12511
12512    *) ;; # Ignore the rest.
12513
12514    esac
12515  done
12516
12517  # Clean up.
12518  rm -f a.out a.exe
12519else
12520  echo "libtool.m4: error: problem compiling CXX test program"
12521fi
12522
12523$rm -f confest.$objext
12524
12525# PORTME: override above test on systems where it is broken
12526case $host_os in
12527interix3*)
12528  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12529  # hack all around it, let's just trust "g++" to DTRT.
12530  predep_objects_CXX=
12531  postdep_objects_CXX=
12532  postdeps_CXX=
12533  ;;
12534
12535solaris*)
12536  case $cc_basename in
12537  CC*)
12538    # Adding this requires a known-good setup of shared libraries for
12539    # Sun compiler versions before 5.6, else PIC objects from an old
12540    # archive will be linked into the output, leading to subtle bugs.
12541    postdeps_CXX='-lCstd -lCrun'
12542    ;;
12543  esac
12544  ;;
12545esac
12546
12547
12548case " $postdeps_CXX " in
12549*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12550esac
12551
12552lt_prog_compiler_wl_CXX=
12553lt_prog_compiler_pic_CXX=
12554lt_prog_compiler_static_CXX=
12555
12556{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12557echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12558
12559  # C++ specific cases for pic, static, wl, etc.
12560  if test "$GXX" = yes; then
12561    lt_prog_compiler_wl_CXX='-Wl,'
12562    lt_prog_compiler_static_CXX='-static'
12563
12564    case $host_os in
12565    aix*)
12566      # All AIX code is PIC.
12567      if test "$host_cpu" = ia64; then
12568	# AIX 5 now supports IA64 processor
12569	lt_prog_compiler_static_CXX='-Bstatic'
12570      fi
12571      ;;
12572    amigaos*)
12573      # FIXME: we need at least 68020 code to build shared libraries, but
12574      # adding the `-m68020' flag to GCC prevents building anything better,
12575      # like `-m68040'.
12576      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12577      ;;
12578    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12579      # PIC is the default for these OSes.
12580      ;;
12581    mingw* | os2* | pw32*)
12582      # This hack is so that the source file can tell whether it is being
12583      # built for inclusion in a dll (and should export symbols for example).
12584      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12585      ;;
12586    darwin* | rhapsody*)
12587      # PIC is the default on this platform
12588      # Common symbols not allowed in MH_DYLIB files
12589      lt_prog_compiler_pic_CXX='-fno-common'
12590      ;;
12591    *djgpp*)
12592      # DJGPP does not support shared libraries at all
12593      lt_prog_compiler_pic_CXX=
12594      ;;
12595    interix3*)
12596      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12597      # Instead, we relocate shared libraries at runtime.
12598      ;;
12599    sysv4*MP*)
12600      if test -d /usr/nec; then
12601	lt_prog_compiler_pic_CXX=-Kconform_pic
12602      fi
12603      ;;
12604    hpux*)
12605      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12606      # not for PA HP-UX.
12607      case $host_cpu in
12608      hppa*64*|ia64*)
12609	;;
12610      *)
12611	lt_prog_compiler_pic_CXX='-fPIC'
12612	;;
12613      esac
12614      ;;
12615    *)
12616      lt_prog_compiler_pic_CXX='-fPIC'
12617      ;;
12618    esac
12619  else
12620    case $host_os in
12621      aix4* | aix5*)
12622	# All AIX code is PIC.
12623	if test "$host_cpu" = ia64; then
12624	  # AIX 5 now supports IA64 processor
12625	  lt_prog_compiler_static_CXX='-Bstatic'
12626	else
12627	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12628	fi
12629	;;
12630      chorus*)
12631	case $cc_basename in
12632	cxch68*)
12633	  # Green Hills C++ Compiler
12634	  # _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"
12635	  ;;
12636	esac
12637	;;
12638       darwin*)
12639         # PIC is the default on this platform
12640         # Common symbols not allowed in MH_DYLIB files
12641         case $cc_basename in
12642           xlc*)
12643           lt_prog_compiler_pic_CXX='-qnocommon'
12644           lt_prog_compiler_wl_CXX='-Wl,'
12645           ;;
12646         esac
12647       ;;
12648      dgux*)
12649	case $cc_basename in
12650	  ec++*)
12651	    lt_prog_compiler_pic_CXX='-KPIC'
12652	    ;;
12653	  ghcx*)
12654	    # Green Hills C++ Compiler
12655	    lt_prog_compiler_pic_CXX='-pic'
12656	    ;;
12657	  *)
12658	    ;;
12659	esac
12660	;;
12661      freebsd* | kfreebsd*-gnu | dragonfly*)
12662	# FreeBSD uses GNU C++
12663	;;
12664      hpux9* | hpux10* | hpux11*)
12665	case $cc_basename in
12666	  CC*)
12667	    lt_prog_compiler_wl_CXX='-Wl,'
12668	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12669	    if test "$host_cpu" != ia64; then
12670	      lt_prog_compiler_pic_CXX='+Z'
12671	    fi
12672	    ;;
12673	  aCC*)
12674	    lt_prog_compiler_wl_CXX='-Wl,'
12675	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12676	    case $host_cpu in
12677	    hppa*64*|ia64*)
12678	      # +Z the default
12679	      ;;
12680	    *)
12681	      lt_prog_compiler_pic_CXX='+Z'
12682	      ;;
12683	    esac
12684	    ;;
12685	  *)
12686	    ;;
12687	esac
12688	;;
12689      interix*)
12690	# This is c89, which is MS Visual C++ (no shared libs)
12691	# Anyone wants to do a port?
12692	;;
12693      irix5* | irix6* | nonstopux*)
12694	case $cc_basename in
12695	  CC*)
12696	    lt_prog_compiler_wl_CXX='-Wl,'
12697	    lt_prog_compiler_static_CXX='-non_shared'
12698	    # CC pic flag -KPIC is the default.
12699	    ;;
12700	  *)
12701	    ;;
12702	esac
12703	;;
12704      linux*)
12705	case $cc_basename in
12706	  KCC*)
12707	    # KAI C++ Compiler
12708	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12709	    lt_prog_compiler_pic_CXX='-fPIC'
12710	    ;;
12711	  icpc* | ecpc*)
12712	    # Intel C++
12713	    lt_prog_compiler_wl_CXX='-Wl,'
12714	    lt_prog_compiler_pic_CXX='-KPIC'
12715	    lt_prog_compiler_static_CXX='-static'
12716	    ;;
12717	  pgCC*)
12718	    # Portland Group C++ compiler.
12719	    lt_prog_compiler_wl_CXX='-Wl,'
12720	    lt_prog_compiler_pic_CXX='-fpic'
12721	    lt_prog_compiler_static_CXX='-Bstatic'
12722	    ;;
12723	  cxx*)
12724	    # Compaq C++
12725	    # Make sure the PIC flag is empty.  It appears that all Alpha
12726	    # Linux and Compaq Tru64 Unix objects are PIC.
12727	    lt_prog_compiler_pic_CXX=
12728	    lt_prog_compiler_static_CXX='-non_shared'
12729	    ;;
12730	  *)
12731	    ;;
12732	esac
12733	;;
12734      lynxos*)
12735	;;
12736      m88k*)
12737	;;
12738      mvs*)
12739	case $cc_basename in
12740	  cxx*)
12741	    lt_prog_compiler_pic_CXX='-W c,exportall'
12742	    ;;
12743	  *)
12744	    ;;
12745	esac
12746	;;
12747      netbsd*)
12748	;;
12749      osf3* | osf4* | osf5*)
12750	case $cc_basename in
12751	  KCC*)
12752	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12753	    ;;
12754	  RCC*)
12755	    # Rational C++ 2.4.1
12756	    lt_prog_compiler_pic_CXX='-pic'
12757	    ;;
12758	  cxx*)
12759	    # Digital/Compaq C++
12760	    lt_prog_compiler_wl_CXX='-Wl,'
12761	    # Make sure the PIC flag is empty.  It appears that all Alpha
12762	    # Linux and Compaq Tru64 Unix objects are PIC.
12763	    lt_prog_compiler_pic_CXX=
12764	    lt_prog_compiler_static_CXX='-non_shared'
12765	    ;;
12766	  *)
12767	    ;;
12768	esac
12769	;;
12770      psos*)
12771	;;
12772      solaris*)
12773	case $cc_basename in
12774	  CC*)
12775	    # Sun C++ 4.2, 5.x and Centerline C++
12776	    lt_prog_compiler_pic_CXX='-KPIC'
12777	    lt_prog_compiler_static_CXX='-Bstatic'
12778	    lt_prog_compiler_wl_CXX='-Qoption ld '
12779	    ;;
12780	  gcx*)
12781	    # Green Hills C++ Compiler
12782	    lt_prog_compiler_pic_CXX='-PIC'
12783	    ;;
12784	  *)
12785	    ;;
12786	esac
12787	;;
12788      sunos4*)
12789	case $cc_basename in
12790	  CC*)
12791	    # Sun C++ 4.x
12792	    lt_prog_compiler_pic_CXX='-pic'
12793	    lt_prog_compiler_static_CXX='-Bstatic'
12794	    ;;
12795	  lcc*)
12796	    # Lucid
12797	    lt_prog_compiler_pic_CXX='-pic'
12798	    ;;
12799	  *)
12800	    ;;
12801	esac
12802	;;
12803      tandem*)
12804	case $cc_basename in
12805	  NCC*)
12806	    # NonStop-UX NCC 3.20
12807	    lt_prog_compiler_pic_CXX='-KPIC'
12808	    ;;
12809	  *)
12810	    ;;
12811	esac
12812	;;
12813      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12814	case $cc_basename in
12815	  CC*)
12816	    lt_prog_compiler_wl_CXX='-Wl,'
12817	    lt_prog_compiler_pic_CXX='-KPIC'
12818	    lt_prog_compiler_static_CXX='-Bstatic'
12819	    ;;
12820	esac
12821	;;
12822      vxworks*)
12823	;;
12824      *)
12825	lt_prog_compiler_can_build_shared_CXX=no
12826	;;
12827    esac
12828  fi
12829
12830{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12831echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12832
12833#
12834# Check to make sure the PIC flag actually works.
12835#
12836if test -n "$lt_prog_compiler_pic_CXX"; then
12837
12838{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12839echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12840if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12841  echo $ECHO_N "(cached) $ECHO_C" >&6
12842else
12843  lt_prog_compiler_pic_works_CXX=no
12844  ac_outfile=conftest.$ac_objext
12845   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12846   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12847   # Insert the option either (1) after the last *FLAGS variable, or
12848   # (2) before a word containing "conftest.", or (3) at the end.
12849   # Note that $ac_compile itself does not contain backslashes and begins
12850   # with a dollar sign (not a hyphen), so the echo should work correctly.
12851   # The option is referenced via a variable to avoid confusing sed.
12852   lt_compile=`echo "$ac_compile" | $SED \
12853   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12854   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12855   -e 's:$: $lt_compiler_flag:'`
12856   (eval echo "\"\$as_me:12856: $lt_compile\"" >&5)
12857   (eval "$lt_compile" 2>conftest.err)
12858   ac_status=$?
12859   cat conftest.err >&5
12860   echo "$as_me:12860: \$? = $ac_status" >&5
12861   if (exit $ac_status) && test -s "$ac_outfile"; then
12862     # The compiler can only warn and ignore the option if not recognized
12863     # So say no if there are warnings other than the usual output.
12864     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12865     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12866     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12867       lt_prog_compiler_pic_works_CXX=yes
12868     fi
12869   fi
12870   $rm conftest*
12871
12872fi
12873{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12874echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12875
12876if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12877    case $lt_prog_compiler_pic_CXX in
12878     "" | " "*) ;;
12879     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12880     esac
12881else
12882    lt_prog_compiler_pic_CXX=
12883     lt_prog_compiler_can_build_shared_CXX=no
12884fi
12885
12886fi
12887case $host_os in
12888  # For platforms which do not support PIC, -DPIC is meaningless:
12889  *djgpp*)
12890    lt_prog_compiler_pic_CXX=
12891    ;;
12892  *)
12893    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12894    ;;
12895esac
12896
12897#
12898# Check to make sure the static flag actually works.
12899#
12900wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12901{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12902echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12903if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12904  echo $ECHO_N "(cached) $ECHO_C" >&6
12905else
12906  lt_prog_compiler_static_works_CXX=no
12907   save_LDFLAGS="$LDFLAGS"
12908   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12909   printf "$lt_simple_link_test_code" > conftest.$ac_ext
12910   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12911     # The linker can only warn and ignore the option if not recognized
12912     # So say no if there are warnings
12913     if test -s conftest.err; then
12914       # Append any errors to the config.log.
12915       cat conftest.err 1>&5
12916       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12917       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12918       if diff conftest.exp conftest.er2 >/dev/null; then
12919         lt_prog_compiler_static_works_CXX=yes
12920       fi
12921     else
12922       lt_prog_compiler_static_works_CXX=yes
12923     fi
12924   fi
12925   $rm conftest*
12926   LDFLAGS="$save_LDFLAGS"
12927
12928fi
12929{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12930echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12931
12932if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12933    :
12934else
12935    lt_prog_compiler_static_CXX=
12936fi
12937
12938
12939{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12940echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12941if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12942  echo $ECHO_N "(cached) $ECHO_C" >&6
12943else
12944  lt_cv_prog_compiler_c_o_CXX=no
12945   $rm -r conftest 2>/dev/null
12946   mkdir conftest
12947   cd conftest
12948   mkdir out
12949   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12950
12951   lt_compiler_flag="-o out/conftest2.$ac_objext"
12952   # Insert the option either (1) after the last *FLAGS variable, or
12953   # (2) before a word containing "conftest.", or (3) at the end.
12954   # Note that $ac_compile itself does not contain backslashes and begins
12955   # with a dollar sign (not a hyphen), so the echo should work correctly.
12956   lt_compile=`echo "$ac_compile" | $SED \
12957   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12958   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12959   -e 's:$: $lt_compiler_flag:'`
12960   (eval echo "\"\$as_me:12960: $lt_compile\"" >&5)
12961   (eval "$lt_compile" 2>out/conftest.err)
12962   ac_status=$?
12963   cat out/conftest.err >&5
12964   echo "$as_me:12964: \$? = $ac_status" >&5
12965   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12966   then
12967     # The compiler can only warn and ignore the option if not recognized
12968     # So say no if there are warnings
12969     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12970     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12971     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12972       lt_cv_prog_compiler_c_o_CXX=yes
12973     fi
12974   fi
12975   chmod u+w . 2>&5
12976   $rm conftest*
12977   # SGI C++ compiler will create directory out/ii_files/ for
12978   # template instantiation
12979   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12980   $rm out/* && rmdir out
12981   cd ..
12982   rmdir conftest
12983   $rm conftest*
12984
12985fi
12986{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12987echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12988
12989
12990hard_links="nottested"
12991if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12992  # do not overwrite the value of need_locks provided by the user
12993  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12994echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12995  hard_links=yes
12996  $rm conftest*
12997  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12998  touch conftest.a
12999  ln conftest.a conftest.b 2>&5 || hard_links=no
13000  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13001  { echo "$as_me:$LINENO: result: $hard_links" >&5
13002echo "${ECHO_T}$hard_links" >&6; }
13003  if test "$hard_links" = no; then
13004    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13005echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13006    need_locks=warn
13007  fi
13008else
13009  need_locks=no
13010fi
13011
13012{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13013echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13014
13015  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13016  case $host_os in
13017  aix4* | aix5*)
13018    # If we're using GNU nm, then we don't want the "-C" option.
13019    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13020    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13021      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'
13022    else
13023      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'
13024    fi
13025    ;;
13026  pw32*)
13027    export_symbols_cmds_CXX="$ltdll_cmds"
13028  ;;
13029  cygwin* | mingw*)
13030    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'
13031  ;;
13032  *)
13033    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13034  ;;
13035  esac
13036
13037{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13038echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13039test "$ld_shlibs_CXX" = no && can_build_shared=no
13040
13041#
13042# Do we need to explicitly link libc?
13043#
13044case "x$archive_cmds_need_lc_CXX" in
13045x|xyes)
13046  # Assume -lc should be added
13047  archive_cmds_need_lc_CXX=yes
13048
13049  if test "$enable_shared" = yes && test "$GCC" = yes; then
13050    case $archive_cmds_CXX in
13051    *'~'*)
13052      # FIXME: we may have to deal with multi-command sequences.
13053      ;;
13054    '$CC '*)
13055      # Test whether the compiler implicitly links with -lc since on some
13056      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13057      # to ld, don't add -lc before -lgcc.
13058      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13059echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13060      $rm conftest*
13061      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13062
13063      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13064  (eval $ac_compile) 2>&5
13065  ac_status=$?
13066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067  (exit $ac_status); } 2>conftest.err; then
13068        soname=conftest
13069        lib=conftest
13070        libobjs=conftest.$ac_objext
13071        deplibs=
13072        wl=$lt_prog_compiler_wl_CXX
13073	pic_flag=$lt_prog_compiler_pic_CXX
13074        compiler_flags=-v
13075        linker_flags=-v
13076        verstring=
13077        output_objdir=.
13078        libname=conftest
13079        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13080        allow_undefined_flag_CXX=
13081        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13082  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13083  ac_status=$?
13084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085  (exit $ac_status); }
13086        then
13087	  archive_cmds_need_lc_CXX=no
13088        else
13089	  archive_cmds_need_lc_CXX=yes
13090        fi
13091        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13092      else
13093        cat conftest.err 1>&5
13094      fi
13095      $rm conftest*
13096      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13097echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13098      ;;
13099    esac
13100  fi
13101  ;;
13102esac
13103
13104{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13105echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13106library_names_spec=
13107libname_spec='lib$name'
13108soname_spec=
13109shrext_cmds=".so"
13110postinstall_cmds=
13111postuninstall_cmds=
13112finish_cmds=
13113finish_eval=
13114shlibpath_var=
13115shlibpath_overrides_runpath=unknown
13116version_type=none
13117dynamic_linker="$host_os ld.so"
13118sys_lib_dlsearch_path_spec="/lib /usr/lib"
13119if test "$GCC" = yes; then
13120  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13121  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13122    # if the path contains ";" then we assume it to be the separator
13123    # otherwise default to the standard path separator (i.e. ":") - it is
13124    # assumed that no part of a normal pathname contains ";" but that should
13125    # okay in the real world where ";" in dirpaths is itself problematic.
13126    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13127  else
13128    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13129  fi
13130else
13131  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13132fi
13133need_lib_prefix=unknown
13134hardcode_into_libs=no
13135
13136# when you set need_version to no, make sure it does not cause -set_version
13137# flags to be left without arguments
13138need_version=unknown
13139
13140case $host_os in
13141aix3*)
13142  version_type=linux
13143  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13144  shlibpath_var=LIBPATH
13145
13146  # AIX 3 has no versioning support, so we append a major version to the name.
13147  soname_spec='${libname}${release}${shared_ext}$major'
13148  ;;
13149
13150aix4* | aix5*)
13151  version_type=linux
13152  need_lib_prefix=no
13153  need_version=no
13154  hardcode_into_libs=yes
13155  if test "$host_cpu" = ia64; then
13156    # AIX 5 supports IA64
13157    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13158    shlibpath_var=LD_LIBRARY_PATH
13159  else
13160    # With GCC up to 2.95.x, collect2 would create an import file
13161    # for dependence libraries.  The import file would start with
13162    # the line `#! .'.  This would cause the generated library to
13163    # depend on `.', always an invalid library.  This was fixed in
13164    # development snapshots of GCC prior to 3.0.
13165    case $host_os in
13166      aix4 | aix4.[01] | aix4.[01].*)
13167      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13168	   echo ' yes '
13169	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13170	:
13171      else
13172	can_build_shared=no
13173      fi
13174      ;;
13175    esac
13176    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13177    # soname into executable. Probably we can add versioning support to
13178    # collect2, so additional links can be useful in future.
13179    if test "$aix_use_runtimelinking" = yes; then
13180      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13181      # instead of lib<name>.a to let people know that these are not
13182      # typical AIX shared libraries.
13183      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13184    else
13185      # We preserve .a as extension for shared libraries through AIX4.2
13186      # and later when we are not doing run time linking.
13187      library_names_spec='${libname}${release}.a $libname.a'
13188      soname_spec='${libname}${release}${shared_ext}$major'
13189    fi
13190    shlibpath_var=LIBPATH
13191  fi
13192  ;;
13193
13194amigaos*)
13195  library_names_spec='$libname.ixlibrary $libname.a'
13196  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13197  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'
13198  ;;
13199
13200beos*)
13201  library_names_spec='${libname}${shared_ext}'
13202  dynamic_linker="$host_os ld.so"
13203  shlibpath_var=LIBRARY_PATH
13204  ;;
13205
13206bsdi[45]*)
13207  version_type=linux
13208  need_version=no
13209  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13210  soname_spec='${libname}${release}${shared_ext}$major'
13211  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13212  shlibpath_var=LD_LIBRARY_PATH
13213  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13214  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13215  # the default ld.so.conf also contains /usr/contrib/lib and
13216  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13217  # libtool to hard-code these into programs
13218  ;;
13219
13220cygwin* | mingw* | pw32*)
13221  version_type=windows
13222  shrext_cmds=".dll"
13223  need_version=no
13224  need_lib_prefix=no
13225
13226  case $GCC,$host_os in
13227  yes,cygwin* | yes,mingw* | yes,pw32*)
13228    library_names_spec='$libname.dll.a'
13229    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13230    postinstall_cmds='base_file=`basename \${file}`~
13231      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13232      dldir=$destdir/`dirname \$dlpath`~
13233      test -d \$dldir || mkdir -p \$dldir~
13234      $install_prog $dir/$dlname \$dldir/$dlname~
13235      chmod a+x \$dldir/$dlname'
13236    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13237      dlpath=$dir/\$dldll~
13238       $rm \$dlpath'
13239    shlibpath_overrides_runpath=yes
13240
13241    case $host_os in
13242    cygwin*)
13243      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13244      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13245      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13246      ;;
13247    mingw*)
13248      # MinGW DLLs use traditional 'lib' prefix
13249      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13250      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13251      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13252        # It is most probably a Windows format PATH printed by
13253        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13254        # path with ; separators, and with drive letters. We can handle the
13255        # drive letters (cygwin fileutils understands them), so leave them,
13256        # especially as we might pass files found there to a mingw objdump,
13257        # which wouldn't understand a cygwinified path. Ahh.
13258        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13259      else
13260        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13261      fi
13262      ;;
13263    pw32*)
13264      # pw32 DLLs use 'pw' prefix rather than 'lib'
13265      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13266      ;;
13267    esac
13268    ;;
13269
13270  *)
13271    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13272    ;;
13273  esac
13274  dynamic_linker='Win32 ld.exe'
13275  # FIXME: first we should search . and the directory the executable is in
13276  shlibpath_var=PATH
13277  ;;
13278
13279darwin* | rhapsody*)
13280  dynamic_linker="$host_os dyld"
13281  version_type=darwin
13282  need_lib_prefix=no
13283  need_version=no
13284  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13285  soname_spec='${libname}${release}${major}$shared_ext'
13286  shlibpath_overrides_runpath=yes
13287  shlibpath_var=DYLD_LIBRARY_PATH
13288  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13289  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13290  if test "$GCC" = yes; then
13291    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13292  else
13293    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13294  fi
13295  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13296  ;;
13297
13298dgux*)
13299  version_type=linux
13300  need_lib_prefix=no
13301  need_version=no
13302  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13303  soname_spec='${libname}${release}${shared_ext}$major'
13304  shlibpath_var=LD_LIBRARY_PATH
13305  ;;
13306
13307freebsd1*)
13308  dynamic_linker=no
13309  ;;
13310
13311kfreebsd*-gnu)
13312  version_type=linux
13313  need_lib_prefix=no
13314  need_version=no
13315  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13316  soname_spec='${libname}${release}${shared_ext}$major'
13317  shlibpath_var=LD_LIBRARY_PATH
13318  shlibpath_overrides_runpath=no
13319  hardcode_into_libs=yes
13320  dynamic_linker='GNU ld.so'
13321  ;;
13322
13323freebsd* | dragonfly*)
13324  # DragonFly does not have aout.  When/if they implement a new
13325  # versioning mechanism, adjust this.
13326  if test -x /usr/bin/objformat; then
13327    objformat=`/usr/bin/objformat`
13328  else
13329    case $host_os in
13330    freebsd[123]*) objformat=aout ;;
13331    *) objformat=elf ;;
13332    esac
13333  fi
13334  version_type=freebsd-$objformat
13335  case $version_type in
13336    freebsd-elf*)
13337      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13338      need_version=no
13339      need_lib_prefix=no
13340      ;;
13341    freebsd-*)
13342      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13343      need_version=yes
13344      ;;
13345  esac
13346  shlibpath_var=LD_LIBRARY_PATH
13347  case $host_os in
13348  freebsd2*)
13349    shlibpath_overrides_runpath=yes
13350    ;;
13351  freebsd3.[01]* | freebsdelf3.[01]*)
13352    shlibpath_overrides_runpath=yes
13353    hardcode_into_libs=yes
13354    ;;
13355  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13356  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13357    shlibpath_overrides_runpath=no
13358    hardcode_into_libs=yes
13359    ;;
13360  freebsd*) # from 4.6 on
13361    shlibpath_overrides_runpath=yes
13362    hardcode_into_libs=yes
13363    ;;
13364  esac
13365  ;;
13366
13367gnu*)
13368  version_type=linux
13369  need_lib_prefix=no
13370  need_version=no
13371  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13372  soname_spec='${libname}${release}${shared_ext}$major'
13373  shlibpath_var=LD_LIBRARY_PATH
13374  hardcode_into_libs=yes
13375  ;;
13376
13377hpux9* | hpux10* | hpux11*)
13378  # Give a soname corresponding to the major version so that dld.sl refuses to
13379  # link against other versions.
13380  version_type=sunos
13381  need_lib_prefix=no
13382  need_version=no
13383  case $host_cpu in
13384  ia64*)
13385    shrext_cmds='.so'
13386    hardcode_into_libs=yes
13387    dynamic_linker="$host_os dld.so"
13388    shlibpath_var=LD_LIBRARY_PATH
13389    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13390    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13391    soname_spec='${libname}${release}${shared_ext}$major'
13392    if test "X$HPUX_IA64_MODE" = X32; then
13393      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13394    else
13395      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13396    fi
13397    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13398    ;;
13399   hppa*64*)
13400     shrext_cmds='.sl'
13401     hardcode_into_libs=yes
13402     dynamic_linker="$host_os dld.sl"
13403     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13404     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13405     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13406     soname_spec='${libname}${release}${shared_ext}$major'
13407     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13408     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13409     ;;
13410   *)
13411    shrext_cmds='.sl'
13412    dynamic_linker="$host_os dld.sl"
13413    shlibpath_var=SHLIB_PATH
13414    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13415    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13416    soname_spec='${libname}${release}${shared_ext}$major'
13417    ;;
13418  esac
13419  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13420  postinstall_cmds='chmod 555 $lib'
13421  ;;
13422
13423interix3*)
13424  version_type=linux
13425  need_lib_prefix=no
13426  need_version=no
13427  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13428  soname_spec='${libname}${release}${shared_ext}$major'
13429  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13430  shlibpath_var=LD_LIBRARY_PATH
13431  shlibpath_overrides_runpath=no
13432  hardcode_into_libs=yes
13433  ;;
13434
13435irix5* | irix6* | nonstopux*)
13436  case $host_os in
13437    nonstopux*) version_type=nonstopux ;;
13438    *)
13439	if test "$lt_cv_prog_gnu_ld" = yes; then
13440		version_type=linux
13441	else
13442		version_type=irix
13443	fi ;;
13444  esac
13445  need_lib_prefix=no
13446  need_version=no
13447  soname_spec='${libname}${release}${shared_ext}$major'
13448  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13449  case $host_os in
13450  irix5* | nonstopux*)
13451    libsuff= shlibsuff=
13452    ;;
13453  *)
13454    case $LD in # libtool.m4 will add one of these switches to LD
13455    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13456      libsuff= shlibsuff= libmagic=32-bit;;
13457    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13458      libsuff=32 shlibsuff=N32 libmagic=N32;;
13459    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13460      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13461    *) libsuff= shlibsuff= libmagic=never-match;;
13462    esac
13463    ;;
13464  esac
13465  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13466  shlibpath_overrides_runpath=no
13467  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13468  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13469  hardcode_into_libs=yes
13470  ;;
13471
13472# No shared lib support for Linux oldld, aout, or coff.
13473linux*oldld* | linux*aout* | linux*coff*)
13474  dynamic_linker=no
13475  ;;
13476
13477# This must be Linux ELF.
13478linux*)
13479  version_type=linux
13480  need_lib_prefix=no
13481  need_version=no
13482  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13483  soname_spec='${libname}${release}${shared_ext}$major'
13484  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13485  shlibpath_var=LD_LIBRARY_PATH
13486  shlibpath_overrides_runpath=no
13487  # This implies no fast_install, which is unacceptable.
13488  # Some rework will be needed to allow for fast_install
13489  # before this can be enabled.
13490  hardcode_into_libs=yes
13491
13492  # find out which ABI we are using
13493  libsuff=
13494  case "$host_cpu" in
13495  x86_64*|s390x*|powerpc64*)
13496    echo '#line 13496 "configure"' > conftest.$ac_ext
13497    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13498  (eval $ac_compile) 2>&5
13499  ac_status=$?
13500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501  (exit $ac_status); }; then
13502      case `/usr/bin/file conftest.$ac_objext` in
13503      *64-bit*)
13504        libsuff=64
13505        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13506        ;;
13507      esac
13508    fi
13509    rm -rf conftest*
13510    ;;
13511  esac
13512
13513  # Append ld.so.conf contents to the search path
13514  if test -f /etc/ld.so.conf; then
13515    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13516    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
13517  fi
13518
13519  # We used to test for /lib/ld.so.1 and disable shared libraries on
13520  # powerpc, because MkLinux only supported shared libraries with the
13521  # GNU dynamic linker.  Since this was broken with cross compilers,
13522  # most powerpc-linux boxes support dynamic linking these days and
13523  # people can always --disable-shared, the test was removed, and we
13524  # assume the GNU/Linux dynamic linker is in use.
13525  dynamic_linker='GNU/Linux ld.so'
13526  ;;
13527
13528knetbsd*-gnu)
13529  version_type=linux
13530  need_lib_prefix=no
13531  need_version=no
13532  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13533  soname_spec='${libname}${release}${shared_ext}$major'
13534  shlibpath_var=LD_LIBRARY_PATH
13535  shlibpath_overrides_runpath=no
13536  hardcode_into_libs=yes
13537  dynamic_linker='GNU ld.so'
13538  ;;
13539
13540netbsd*)
13541  version_type=sunos
13542  need_lib_prefix=no
13543  need_version=no
13544  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13545    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13546    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13547    dynamic_linker='NetBSD (a.out) ld.so'
13548  else
13549    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13550    soname_spec='${libname}${release}${shared_ext}$major'
13551    dynamic_linker='NetBSD ld.elf_so'
13552  fi
13553  shlibpath_var=LD_LIBRARY_PATH
13554  shlibpath_overrides_runpath=yes
13555  hardcode_into_libs=yes
13556  ;;
13557
13558newsos6)
13559  version_type=linux
13560  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13561  shlibpath_var=LD_LIBRARY_PATH
13562  shlibpath_overrides_runpath=yes
13563  ;;
13564
13565nto-qnx*)
13566  version_type=linux
13567  need_lib_prefix=no
13568  need_version=no
13569  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13570  soname_spec='${libname}${release}${shared_ext}$major'
13571  shlibpath_var=LD_LIBRARY_PATH
13572  shlibpath_overrides_runpath=yes
13573  ;;
13574
13575openbsd*)
13576  version_type=sunos
13577  sys_lib_dlsearch_path_spec="/usr/lib"
13578  need_lib_prefix=no
13579  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13580  case $host_os in
13581    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13582    *)                         need_version=no  ;;
13583  esac
13584  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13585  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13586  shlibpath_var=LD_LIBRARY_PATH
13587  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13588    case $host_os in
13589      openbsd2.[89] | openbsd2.[89].*)
13590	shlibpath_overrides_runpath=no
13591	;;
13592      *)
13593	shlibpath_overrides_runpath=yes
13594	;;
13595      esac
13596  else
13597    shlibpath_overrides_runpath=yes
13598  fi
13599  ;;
13600
13601os2*)
13602  libname_spec='$name'
13603  shrext_cmds=".dll"
13604  need_lib_prefix=no
13605  library_names_spec='$libname${shared_ext} $libname.a'
13606  dynamic_linker='OS/2 ld.exe'
13607  shlibpath_var=LIBPATH
13608  ;;
13609
13610osf3* | osf4* | osf5*)
13611  version_type=osf
13612  need_lib_prefix=no
13613  need_version=no
13614  soname_spec='${libname}${release}${shared_ext}$major'
13615  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13616  shlibpath_var=LD_LIBRARY_PATH
13617  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13618  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13619  ;;
13620
13621solaris*)
13622  version_type=linux
13623  need_lib_prefix=no
13624  need_version=no
13625  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13626  soname_spec='${libname}${release}${shared_ext}$major'
13627  shlibpath_var=LD_LIBRARY_PATH
13628  shlibpath_overrides_runpath=yes
13629  hardcode_into_libs=yes
13630  # ldd complains unless libraries are executable
13631  postinstall_cmds='chmod +x $lib'
13632  ;;
13633
13634sunos4*)
13635  version_type=sunos
13636  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13637  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13638  shlibpath_var=LD_LIBRARY_PATH
13639  shlibpath_overrides_runpath=yes
13640  if test "$with_gnu_ld" = yes; then
13641    need_lib_prefix=no
13642  fi
13643  need_version=yes
13644  ;;
13645
13646sysv4 | sysv4.3*)
13647  version_type=linux
13648  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13649  soname_spec='${libname}${release}${shared_ext}$major'
13650  shlibpath_var=LD_LIBRARY_PATH
13651  case $host_vendor in
13652    sni)
13653      shlibpath_overrides_runpath=no
13654      need_lib_prefix=no
13655      export_dynamic_flag_spec='${wl}-Blargedynsym'
13656      runpath_var=LD_RUN_PATH
13657      ;;
13658    siemens)
13659      need_lib_prefix=no
13660      ;;
13661    motorola)
13662      need_lib_prefix=no
13663      need_version=no
13664      shlibpath_overrides_runpath=no
13665      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13666      ;;
13667  esac
13668  ;;
13669
13670sysv4*MP*)
13671  if test -d /usr/nec ;then
13672    version_type=linux
13673    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13674    soname_spec='$libname${shared_ext}.$major'
13675    shlibpath_var=LD_LIBRARY_PATH
13676  fi
13677  ;;
13678
13679sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13680  version_type=freebsd-elf
13681  need_lib_prefix=no
13682  need_version=no
13683  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13684  soname_spec='${libname}${release}${shared_ext}$major'
13685  shlibpath_var=LD_LIBRARY_PATH
13686  hardcode_into_libs=yes
13687  if test "$with_gnu_ld" = yes; then
13688    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13689    shlibpath_overrides_runpath=no
13690  else
13691    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13692    shlibpath_overrides_runpath=yes
13693    case $host_os in
13694      sco3.2v5*)
13695        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13696	;;
13697    esac
13698  fi
13699  sys_lib_dlsearch_path_spec='/usr/lib'
13700  ;;
13701
13702uts4*)
13703  version_type=linux
13704  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13705  soname_spec='${libname}${release}${shared_ext}$major'
13706  shlibpath_var=LD_LIBRARY_PATH
13707  ;;
13708
13709*)
13710  dynamic_linker=no
13711  ;;
13712esac
13713{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13714echo "${ECHO_T}$dynamic_linker" >&6; }
13715test "$dynamic_linker" = no && can_build_shared=no
13716
13717variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13718if test "$GCC" = yes; then
13719  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13720fi
13721
13722{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13723echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13724hardcode_action_CXX=
13725if test -n "$hardcode_libdir_flag_spec_CXX" || \
13726   test -n "$runpath_var_CXX" || \
13727   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13728
13729  # We can hardcode non-existant directories.
13730  if test "$hardcode_direct_CXX" != no &&
13731     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13732     # have to relink, otherwise we might link with an installed library
13733     # when we should be linking with a yet-to-be-installed one
13734     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13735     test "$hardcode_minus_L_CXX" != no; then
13736    # Linking always hardcodes the temporary library directory.
13737    hardcode_action_CXX=relink
13738  else
13739    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13740    hardcode_action_CXX=immediate
13741  fi
13742else
13743  # We cannot hardcode anything, or else we can only hardcode existing
13744  # directories.
13745  hardcode_action_CXX=unsupported
13746fi
13747{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13748echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13749
13750if test "$hardcode_action_CXX" = relink; then
13751  # Fast installation is not supported
13752  enable_fast_install=no
13753elif test "$shlibpath_overrides_runpath" = yes ||
13754     test "$enable_shared" = no; then
13755  # Fast installation is not necessary
13756  enable_fast_install=needless
13757fi
13758
13759
13760# The else clause should only fire when bootstrapping the
13761# libtool distribution, otherwise you forgot to ship ltmain.sh
13762# with your package, and you will get complaints that there are
13763# no rules to generate ltmain.sh.
13764if test -f "$ltmain"; then
13765  # See if we are running on zsh, and set the options which allow our commands through
13766  # without removal of \ escapes.
13767  if test -n "${ZSH_VERSION+set}" ; then
13768    setopt NO_GLOB_SUBST
13769  fi
13770  # Now quote all the things that may contain metacharacters while being
13771  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13772  # variables and quote the copies for generation of the libtool script.
13773  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13774    SED SHELL STRIP \
13775    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13776    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13777    deplibs_check_method reload_flag reload_cmds need_locks \
13778    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13779    lt_cv_sys_global_symbol_to_c_name_address \
13780    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13781    old_postinstall_cmds old_postuninstall_cmds \
13782    compiler_CXX \
13783    CC_CXX \
13784    LD_CXX \
13785    lt_prog_compiler_wl_CXX \
13786    lt_prog_compiler_pic_CXX \
13787    lt_prog_compiler_static_CXX \
13788    lt_prog_compiler_no_builtin_flag_CXX \
13789    export_dynamic_flag_spec_CXX \
13790    thread_safe_flag_spec_CXX \
13791    whole_archive_flag_spec_CXX \
13792    enable_shared_with_static_runtimes_CXX \
13793    old_archive_cmds_CXX \
13794    old_archive_from_new_cmds_CXX \
13795    predep_objects_CXX \
13796    postdep_objects_CXX \
13797    predeps_CXX \
13798    postdeps_CXX \
13799    compiler_lib_search_path_CXX \
13800    archive_cmds_CXX \
13801    archive_expsym_cmds_CXX \
13802    postinstall_cmds_CXX \
13803    postuninstall_cmds_CXX \
13804    old_archive_from_expsyms_cmds_CXX \
13805    allow_undefined_flag_CXX \
13806    no_undefined_flag_CXX \
13807    export_symbols_cmds_CXX \
13808    hardcode_libdir_flag_spec_CXX \
13809    hardcode_libdir_flag_spec_ld_CXX \
13810    hardcode_libdir_separator_CXX \
13811    hardcode_automatic_CXX \
13812    module_cmds_CXX \
13813    module_expsym_cmds_CXX \
13814    lt_cv_prog_compiler_c_o_CXX \
13815    exclude_expsyms_CXX \
13816    include_expsyms_CXX; do
13817
13818    case $var in
13819    old_archive_cmds_CXX | \
13820    old_archive_from_new_cmds_CXX | \
13821    archive_cmds_CXX | \
13822    archive_expsym_cmds_CXX | \
13823    module_cmds_CXX | \
13824    module_expsym_cmds_CXX | \
13825    old_archive_from_expsyms_cmds_CXX | \
13826    export_symbols_cmds_CXX | \
13827    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13828    postinstall_cmds | postuninstall_cmds | \
13829    old_postinstall_cmds | old_postuninstall_cmds | \
13830    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13831      # Double-quote double-evaled strings.
13832      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13833      ;;
13834    *)
13835      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13836      ;;
13837    esac
13838  done
13839
13840  case $lt_echo in
13841  *'\$0 --fallback-echo"')
13842    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13843    ;;
13844  esac
13845
13846cfgfile="$ofile"
13847
13848  cat <<__EOF__ >> "$cfgfile"
13849# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13850
13851# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13852
13853# Shell to use when invoking shell scripts.
13854SHELL=$lt_SHELL
13855
13856# Whether or not to build shared libraries.
13857build_libtool_libs=$enable_shared
13858
13859# Whether or not to build static libraries.
13860build_old_libs=$enable_static
13861
13862# Whether or not to add -lc for building shared libraries.
13863build_libtool_need_lc=$archive_cmds_need_lc_CXX
13864
13865# Whether or not to disallow shared libs when runtime libs are static
13866allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13867
13868# Whether or not to optimize for fast installation.
13869fast_install=$enable_fast_install
13870
13871# The host system.
13872host_alias=$host_alias
13873host=$host
13874host_os=$host_os
13875
13876# The build system.
13877build_alias=$build_alias
13878build=$build
13879build_os=$build_os
13880
13881# An echo program that does not interpret backslashes.
13882echo=$lt_echo
13883
13884# The archiver.
13885AR=$lt_AR
13886AR_FLAGS=$lt_AR_FLAGS
13887
13888# A C compiler.
13889LTCC=$lt_LTCC
13890
13891# LTCC compiler flags.
13892LTCFLAGS=$lt_LTCFLAGS
13893
13894# A language-specific compiler.
13895CC=$lt_compiler_CXX
13896
13897# Is the compiler the GNU C compiler?
13898with_gcc=$GCC_CXX
13899
13900gcc_dir=\`$LTCC -print-file-name=. | $SED 's,/\.$,,'\`
13901gcc_ver=\`$LTCC -dumpversion\`
13902
13903# An ERE matcher.
13904EGREP=$lt_EGREP
13905
13906# The linker used to build libraries.
13907LD=$lt_LD_CXX
13908
13909# Whether we need hard or soft links.
13910LN_S=$lt_LN_S
13911
13912# A BSD-compatible nm program.
13913NM=$lt_NM
13914
13915# A symbol stripping program
13916STRIP=$lt_STRIP
13917
13918# Used to examine libraries when file_magic_cmd begins "file"
13919MAGIC_CMD=$MAGIC_CMD
13920
13921# Used on cygwin: DLL creation program.
13922DLLTOOL="$DLLTOOL"
13923
13924# Used on cygwin: object dumper.
13925OBJDUMP="$OBJDUMP"
13926
13927# Used on cygwin: assembler.
13928AS="$AS"
13929
13930# The name of the directory that contains temporary libtool files.
13931objdir=$objdir
13932
13933# How to create reloadable object files.
13934reload_flag=$lt_reload_flag
13935reload_cmds=$lt_reload_cmds
13936
13937# How to pass a linker flag through the compiler.
13938wl=$lt_lt_prog_compiler_wl_CXX
13939
13940# Object file suffix (normally "o").
13941objext="$ac_objext"
13942
13943# Old archive suffix (normally "a").
13944libext="$libext"
13945
13946# Shared library suffix (normally ".so").
13947shrext_cmds='$shrext_cmds'
13948
13949# Executable file suffix (normally "").
13950exeext="$exeext"
13951
13952# Additional compiler flags for building library objects.
13953pic_flag=$lt_lt_prog_compiler_pic_CXX
13954pic_mode=$pic_mode
13955
13956# What is the maximum length of a command?
13957max_cmd_len=$lt_cv_sys_max_cmd_len
13958
13959# Does compiler simultaneously support -c and -o options?
13960compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13961
13962# Must we lock files when doing compilation?
13963need_locks=$lt_need_locks
13964
13965# Do we need the lib prefix for modules?
13966need_lib_prefix=$need_lib_prefix
13967
13968# Do we need a version for libraries?
13969need_version=$need_version
13970
13971# Whether dlopen is supported.
13972dlopen_support=$enable_dlopen
13973
13974# Whether dlopen of programs is supported.
13975dlopen_self=$enable_dlopen_self
13976
13977# Whether dlopen of statically linked programs is supported.
13978dlopen_self_static=$enable_dlopen_self_static
13979
13980# Compiler flag to prevent dynamic linking.
13981link_static_flag=$lt_lt_prog_compiler_static_CXX
13982
13983# Compiler flag to turn off builtin functions.
13984no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13985
13986# Compiler flag to allow reflexive dlopens.
13987export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13988
13989# Compiler flag to generate shared objects directly from archives.
13990whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13991
13992# Compiler flag to generate thread-safe objects.
13993thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13994
13995# Library versioning type.
13996version_type=$version_type
13997
13998# Format of library name prefix.
13999libname_spec=$lt_libname_spec
14000
14001# List of archive names.  First name is the real one, the rest are links.
14002# The last name is the one that the linker finds with -lNAME.
14003library_names_spec=$lt_library_names_spec
14004
14005# The coded name of the library, if different from the real name.
14006soname_spec=$lt_soname_spec
14007
14008# Commands used to build and install an old-style archive.
14009RANLIB=$lt_RANLIB
14010old_archive_cmds=$lt_old_archive_cmds_CXX
14011old_postinstall_cmds=$lt_old_postinstall_cmds
14012old_postuninstall_cmds=$lt_old_postuninstall_cmds
14013
14014# Create an old-style archive from a shared archive.
14015old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14016
14017# Create a temporary old-style archive to link instead of a shared archive.
14018old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14019
14020# Commands used to build and install a shared archive.
14021archive_cmds=$lt_archive_cmds_CXX
14022archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14023postinstall_cmds=$lt_postinstall_cmds
14024postuninstall_cmds=$lt_postuninstall_cmds
14025
14026# Commands used to build a loadable module (assumed same as above if empty)
14027module_cmds=$lt_module_cmds_CXX
14028module_expsym_cmds=$lt_module_expsym_cmds_CXX
14029
14030# Commands to strip libraries.
14031old_striplib=$lt_old_striplib
14032striplib=$lt_striplib
14033
14034# Dependencies to place before the objects being linked to create a
14035# shared library.
14036predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
14037
14038# Dependencies to place after the objects being linked to create a
14039# shared library.
14040postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
14041
14042# Dependencies to place before the objects being linked to create a
14043# shared library.
14044predeps=$lt_predeps_CXX
14045
14046# Dependencies to place after the objects being linked to create a
14047# shared library.
14048postdeps=$lt_postdeps_CXX
14049
14050# The library search path used internally by the compiler when linking
14051# a shared library.
14052compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
14053
14054# Method to check whether dependent libraries are shared objects.
14055deplibs_check_method=$lt_deplibs_check_method
14056
14057# Command to use when deplibs_check_method == file_magic.
14058file_magic_cmd=$lt_file_magic_cmd
14059
14060# Flag that allows shared libraries with undefined symbols to be built.
14061allow_undefined_flag=$lt_allow_undefined_flag_CXX
14062
14063# Flag that forces no undefined symbols.
14064no_undefined_flag=$lt_no_undefined_flag_CXX
14065
14066# Commands used to finish a libtool library installation in a directory.
14067finish_cmds=$lt_finish_cmds
14068
14069# Same as above, but a single script fragment to be evaled but not shown.
14070finish_eval=$lt_finish_eval
14071
14072# Take the output of nm and produce a listing of raw symbols and C names.
14073global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14074
14075# Transform the output of nm in a proper C declaration
14076global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14077
14078# Transform the output of nm in a C name address pair
14079global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14080
14081# This is the shared library runtime path variable.
14082runpath_var=$runpath_var
14083
14084# This is the shared library path variable.
14085shlibpath_var=$shlibpath_var
14086
14087# Is shlibpath searched before the hard-coded library search path?
14088shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14089
14090# How to hardcode a shared library path into an executable.
14091hardcode_action=$hardcode_action_CXX
14092
14093# Whether we should hardcode library paths into libraries.
14094hardcode_into_libs=$hardcode_into_libs
14095
14096# Flag to hardcode \$libdir into a binary during linking.
14097# This must work even if \$libdir does not exist.
14098hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14099
14100# If ld is used when linking, flag to hardcode \$libdir into
14101# a binary during linking. This must work even if \$libdir does
14102# not exist.
14103hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14104
14105# Whether we need a single -rpath flag with a separated argument.
14106hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14107
14108# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14109# resulting binary.
14110hardcode_direct=$hardcode_direct_CXX
14111
14112# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14113# resulting binary.
14114hardcode_minus_L=$hardcode_minus_L_CXX
14115
14116# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14117# the resulting binary.
14118hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14119
14120# Set to yes if building a shared library automatically hardcodes DIR into the library
14121# and all subsequent libraries and executables linked against it.
14122hardcode_automatic=$hardcode_automatic_CXX
14123
14124# Variables whose values should be saved in libtool wrapper scripts and
14125# restored at relink time.
14126variables_saved_for_relink="$variables_saved_for_relink"
14127
14128# Whether libtool must link a program against all its dependency libraries.
14129link_all_deplibs=$link_all_deplibs_CXX
14130
14131# Compile-time system search path for libraries
14132sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
14133
14134# Run-time system search path for libraries
14135sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14136
14137# Fix the shell variable \$srcfile for the compiler.
14138fix_srcfile_path="$fix_srcfile_path_CXX"
14139
14140# Set to yes if exported symbols are required.
14141always_export_symbols=$always_export_symbols_CXX
14142
14143# The commands to list exported symbols.
14144export_symbols_cmds=$lt_export_symbols_cmds_CXX
14145
14146# The commands to extract the exported symbol list from a shared archive.
14147extract_expsyms_cmds=$lt_extract_expsyms_cmds
14148
14149# Symbols that should not be listed in the preloaded symbols.
14150exclude_expsyms=$lt_exclude_expsyms_CXX
14151
14152# Symbols that must always be exported.
14153include_expsyms=$lt_include_expsyms_CXX
14154
14155# ### END LIBTOOL TAG CONFIG: $tagname
14156
14157__EOF__
14158
14159
14160else
14161  # If there is no Makefile yet, we rely on a make rule to execute
14162  # `config.status --recheck' to rerun these tests and create the
14163  # libtool script then.
14164  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14165  if test -f "$ltmain_in"; then
14166    test -f Makefile && make "$ltmain"
14167  fi
14168fi
14169
14170
14171ac_ext=c
14172ac_cpp='$CPP $CPPFLAGS'
14173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14175ac_compiler_gnu=$ac_cv_c_compiler_gnu
14176
14177CC=$lt_save_CC
14178LDCXX=$LD
14179LD=$lt_save_LD
14180GCC=$lt_save_GCC
14181with_gnu_ldcxx=$with_gnu_ld
14182with_gnu_ld=$lt_save_with_gnu_ld
14183lt_cv_path_LDCXX=$lt_cv_path_LD
14184lt_cv_path_LD=$lt_save_path_LD
14185lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14186lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14187
14188	else
14189	  tagname=""
14190	fi
14191	;;
14192
14193      F77)
14194	if test -n "$F77" && test "X$F77" != "Xno"; then
14195
14196ac_ext=f
14197ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14198ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14199ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14200
14201
14202archive_cmds_need_lc_F77=no
14203allow_undefined_flag_F77=
14204always_export_symbols_F77=no
14205archive_expsym_cmds_F77=
14206export_dynamic_flag_spec_F77=
14207hardcode_direct_F77=no
14208hardcode_libdir_flag_spec_F77=
14209hardcode_libdir_flag_spec_ld_F77=
14210hardcode_libdir_separator_F77=
14211hardcode_minus_L_F77=no
14212hardcode_automatic_F77=no
14213module_cmds_F77=
14214module_expsym_cmds_F77=
14215link_all_deplibs_F77=unknown
14216old_archive_cmds_F77=$old_archive_cmds
14217no_undefined_flag_F77=
14218whole_archive_flag_spec_F77=
14219enable_shared_with_static_runtimes_F77=no
14220
14221# Source file extension for f77 test sources.
14222ac_ext=f
14223
14224# Object file extension for compiled f77 test sources.
14225objext=o
14226objext_F77=$objext
14227
14228# Code to be used in simple compile tests
14229lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14230
14231# Code to be used in simple link tests
14232lt_simple_link_test_code="      program t\n      end\n"
14233
14234# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14235
14236# If no C compiler was specified, use CC.
14237LTCC=${LTCC-"$CC"}
14238
14239# If no C compiler flags were specified, use CFLAGS.
14240LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14241
14242# Allow CC to be a program name with arguments.
14243compiler=$CC
14244
14245
14246# save warnings/boilerplate of simple test code
14247ac_outfile=conftest.$ac_objext
14248printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14249eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14250_lt_compiler_boilerplate=`cat conftest.err`
14251$rm conftest*
14252
14253ac_outfile=conftest.$ac_objext
14254printf "$lt_simple_link_test_code" >conftest.$ac_ext
14255eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14256_lt_linker_boilerplate=`cat conftest.err`
14257$rm conftest*
14258
14259
14260# Allow CC to be a program name with arguments.
14261lt_save_CC="$CC"
14262CC=${F77-"f77"}
14263compiler=$CC
14264compiler_F77=$CC
14265for cc_temp in $compiler""; do
14266  case $cc_temp in
14267    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14268    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14269    \-*) ;;
14270    *) break;;
14271  esac
14272done
14273cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14274
14275
14276{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14277echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14278{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14279echo "${ECHO_T}$can_build_shared" >&6; }
14280
14281{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14282echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14283test "$can_build_shared" = "no" && enable_shared=no
14284
14285# On AIX, shared libraries and static libraries use the same namespace, and
14286# are all built from PIC.
14287case $host_os in
14288aix3*)
14289  test "$enable_shared" = yes && enable_static=no
14290  if test -n "$RANLIB"; then
14291    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14292    postinstall_cmds='$RANLIB $lib'
14293  fi
14294  ;;
14295aix4* | aix5*)
14296  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14297    test "$enable_shared" = yes && enable_static=no
14298  fi
14299  ;;
14300esac
14301{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14302echo "${ECHO_T}$enable_shared" >&6; }
14303
14304{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14305echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14306# Make sure either enable_shared or enable_static is yes.
14307test "$enable_shared" = yes || enable_static=yes
14308{ echo "$as_me:$LINENO: result: $enable_static" >&5
14309echo "${ECHO_T}$enable_static" >&6; }
14310
14311GCC_F77="$G77"
14312LD_F77="$LD"
14313
14314lt_prog_compiler_wl_F77=
14315lt_prog_compiler_pic_F77=
14316lt_prog_compiler_static_F77=
14317
14318{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14319echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14320
14321  if test "$GCC" = yes; then
14322    lt_prog_compiler_wl_F77='-Wl,'
14323    lt_prog_compiler_static_F77='-static'
14324
14325    case $host_os in
14326      aix*)
14327      # All AIX code is PIC.
14328      if test "$host_cpu" = ia64; then
14329	# AIX 5 now supports IA64 processor
14330	lt_prog_compiler_static_F77='-Bstatic'
14331      fi
14332      ;;
14333
14334    amigaos*)
14335      # FIXME: we need at least 68020 code to build shared libraries, but
14336      # adding the `-m68020' flag to GCC prevents building anything better,
14337      # like `-m68040'.
14338      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14339      ;;
14340
14341    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14342      # PIC is the default for these OSes.
14343      ;;
14344
14345    mingw* | pw32* | os2*)
14346      # This hack is so that the source file can tell whether it is being
14347      # built for inclusion in a dll (and should export symbols for example).
14348      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14349      ;;
14350
14351    darwin* | rhapsody*)
14352      # PIC is the default on this platform
14353      # Common symbols not allowed in MH_DYLIB files
14354      lt_prog_compiler_pic_F77='-fno-common'
14355      ;;
14356
14357    interix3*)
14358      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14359      # Instead, we relocate shared libraries at runtime.
14360      ;;
14361
14362    msdosdjgpp*)
14363      # Just because we use GCC doesn't mean we suddenly get shared libraries
14364      # on systems that don't support them.
14365      lt_prog_compiler_can_build_shared_F77=no
14366      enable_shared=no
14367      ;;
14368
14369    sysv4*MP*)
14370      if test -d /usr/nec; then
14371	lt_prog_compiler_pic_F77=-Kconform_pic
14372      fi
14373      ;;
14374
14375    hpux*)
14376      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14377      # not for PA HP-UX.
14378      case $host_cpu in
14379      hppa*64*|ia64*)
14380	# +Z the default
14381	;;
14382      *)
14383	lt_prog_compiler_pic_F77='-fPIC'
14384	;;
14385      esac
14386      ;;
14387
14388    *)
14389      lt_prog_compiler_pic_F77='-fPIC'
14390      ;;
14391    esac
14392  else
14393    # PORTME Check for flag to pass linker flags through the system compiler.
14394    case $host_os in
14395    aix*)
14396      lt_prog_compiler_wl_F77='-Wl,'
14397      if test "$host_cpu" = ia64; then
14398	# AIX 5 now supports IA64 processor
14399	lt_prog_compiler_static_F77='-Bstatic'
14400      else
14401	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14402      fi
14403      ;;
14404      darwin*)
14405        # PIC is the default on this platform
14406        # Common symbols not allowed in MH_DYLIB files
14407       case $cc_basename in
14408         xlc*)
14409         lt_prog_compiler_pic_F77='-qnocommon'
14410         lt_prog_compiler_wl_F77='-Wl,'
14411         ;;
14412       esac
14413       ;;
14414
14415    mingw* | pw32* | os2*)
14416      # This hack is so that the source file can tell whether it is being
14417      # built for inclusion in a dll (and should export symbols for example).
14418      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14419      ;;
14420
14421    hpux9* | hpux10* | hpux11*)
14422      lt_prog_compiler_wl_F77='-Wl,'
14423      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14424      # not for PA HP-UX.
14425      case $host_cpu in
14426      hppa*64*|ia64*)
14427	# +Z the default
14428	;;
14429      *)
14430	lt_prog_compiler_pic_F77='+Z'
14431	;;
14432      esac
14433      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14434      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14435      ;;
14436
14437    irix5* | irix6* | nonstopux*)
14438      lt_prog_compiler_wl_F77='-Wl,'
14439      # PIC (with -KPIC) is the default.
14440      lt_prog_compiler_static_F77='-non_shared'
14441      ;;
14442
14443    newsos6)
14444      lt_prog_compiler_pic_F77='-KPIC'
14445      lt_prog_compiler_static_F77='-Bstatic'
14446      ;;
14447
14448    linux*)
14449      case $cc_basename in
14450      icc* | ecc*)
14451	lt_prog_compiler_wl_F77='-Wl,'
14452	lt_prog_compiler_pic_F77='-KPIC'
14453	lt_prog_compiler_static_F77='-static'
14454        ;;
14455      pgcc* | pgf77* | pgf90* | pgf95*)
14456        # Portland Group compilers (*not* the Pentium gcc compiler,
14457	# which looks to be a dead project)
14458	lt_prog_compiler_wl_F77='-Wl,'
14459	lt_prog_compiler_pic_F77='-fpic'
14460	lt_prog_compiler_static_F77='-Bstatic'
14461        ;;
14462      ccc*)
14463        lt_prog_compiler_wl_F77='-Wl,'
14464        # All Alpha code is PIC.
14465        lt_prog_compiler_static_F77='-non_shared'
14466        ;;
14467      esac
14468      ;;
14469
14470    osf3* | osf4* | osf5*)
14471      lt_prog_compiler_wl_F77='-Wl,'
14472      # All OSF/1 code is PIC.
14473      lt_prog_compiler_static_F77='-non_shared'
14474      ;;
14475
14476    solaris*)
14477      lt_prog_compiler_pic_F77='-KPIC'
14478      lt_prog_compiler_static_F77='-Bstatic'
14479      case $cc_basename in
14480      f77* | f90* | f95*)
14481	lt_prog_compiler_wl_F77='-Qoption ld ';;
14482      *)
14483	lt_prog_compiler_wl_F77='-Wl,';;
14484      esac
14485      ;;
14486
14487    sunos4*)
14488      lt_prog_compiler_wl_F77='-Qoption ld '
14489      lt_prog_compiler_pic_F77='-PIC'
14490      lt_prog_compiler_static_F77='-Bstatic'
14491      ;;
14492
14493    sysv4 | sysv4.2uw2* | sysv4.3*)
14494      lt_prog_compiler_wl_F77='-Wl,'
14495      lt_prog_compiler_pic_F77='-KPIC'
14496      lt_prog_compiler_static_F77='-Bstatic'
14497      ;;
14498
14499    sysv4*MP*)
14500      if test -d /usr/nec ;then
14501	lt_prog_compiler_pic_F77='-Kconform_pic'
14502	lt_prog_compiler_static_F77='-Bstatic'
14503      fi
14504      ;;
14505
14506    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14507      lt_prog_compiler_wl_F77='-Wl,'
14508      lt_prog_compiler_pic_F77='-KPIC'
14509      lt_prog_compiler_static_F77='-Bstatic'
14510      ;;
14511
14512    unicos*)
14513      lt_prog_compiler_wl_F77='-Wl,'
14514      lt_prog_compiler_can_build_shared_F77=no
14515      ;;
14516
14517    uts4*)
14518      lt_prog_compiler_pic_F77='-pic'
14519      lt_prog_compiler_static_F77='-Bstatic'
14520      ;;
14521
14522    *)
14523      lt_prog_compiler_can_build_shared_F77=no
14524      ;;
14525    esac
14526  fi
14527
14528{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14529echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14530
14531#
14532# Check to make sure the PIC flag actually works.
14533#
14534if test -n "$lt_prog_compiler_pic_F77"; then
14535
14536{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14537echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14538if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14539  echo $ECHO_N "(cached) $ECHO_C" >&6
14540else
14541  lt_prog_compiler_pic_works_F77=no
14542  ac_outfile=conftest.$ac_objext
14543   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14544   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14545   # Insert the option either (1) after the last *FLAGS variable, or
14546   # (2) before a word containing "conftest.", or (3) at the end.
14547   # Note that $ac_compile itself does not contain backslashes and begins
14548   # with a dollar sign (not a hyphen), so the echo should work correctly.
14549   # The option is referenced via a variable to avoid confusing sed.
14550   lt_compile=`echo "$ac_compile" | $SED \
14551   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14552   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14553   -e 's:$: $lt_compiler_flag:'`
14554   (eval echo "\"\$as_me:14554: $lt_compile\"" >&5)
14555   (eval "$lt_compile" 2>conftest.err)
14556   ac_status=$?
14557   cat conftest.err >&5
14558   echo "$as_me:14558: \$? = $ac_status" >&5
14559   if (exit $ac_status) && test -s "$ac_outfile"; then
14560     # The compiler can only warn and ignore the option if not recognized
14561     # So say no if there are warnings other than the usual output.
14562     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14563     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14564     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14565       lt_prog_compiler_pic_works_F77=yes
14566     fi
14567   fi
14568   $rm conftest*
14569
14570fi
14571{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14572echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14573
14574if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14575    case $lt_prog_compiler_pic_F77 in
14576     "" | " "*) ;;
14577     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14578     esac
14579else
14580    lt_prog_compiler_pic_F77=
14581     lt_prog_compiler_can_build_shared_F77=no
14582fi
14583
14584fi
14585case $host_os in
14586  # For platforms which do not support PIC, -DPIC is meaningless:
14587  *djgpp*)
14588    lt_prog_compiler_pic_F77=
14589    ;;
14590  *)
14591    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14592    ;;
14593esac
14594
14595#
14596# Check to make sure the static flag actually works.
14597#
14598wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14599{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14600echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14601if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14602  echo $ECHO_N "(cached) $ECHO_C" >&6
14603else
14604  lt_prog_compiler_static_works_F77=no
14605   save_LDFLAGS="$LDFLAGS"
14606   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14607   printf "$lt_simple_link_test_code" > conftest.$ac_ext
14608   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14609     # The linker can only warn and ignore the option if not recognized
14610     # So say no if there are warnings
14611     if test -s conftest.err; then
14612       # Append any errors to the config.log.
14613       cat conftest.err 1>&5
14614       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14615       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14616       if diff conftest.exp conftest.er2 >/dev/null; then
14617         lt_prog_compiler_static_works_F77=yes
14618       fi
14619     else
14620       lt_prog_compiler_static_works_F77=yes
14621     fi
14622   fi
14623   $rm conftest*
14624   LDFLAGS="$save_LDFLAGS"
14625
14626fi
14627{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14628echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14629
14630if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14631    :
14632else
14633    lt_prog_compiler_static_F77=
14634fi
14635
14636
14637{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14638echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14639if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14640  echo $ECHO_N "(cached) $ECHO_C" >&6
14641else
14642  lt_cv_prog_compiler_c_o_F77=no
14643   $rm -r conftest 2>/dev/null
14644   mkdir conftest
14645   cd conftest
14646   mkdir out
14647   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14648
14649   lt_compiler_flag="-o out/conftest2.$ac_objext"
14650   # Insert the option either (1) after the last *FLAGS variable, or
14651   # (2) before a word containing "conftest.", or (3) at the end.
14652   # Note that $ac_compile itself does not contain backslashes and begins
14653   # with a dollar sign (not a hyphen), so the echo should work correctly.
14654   lt_compile=`echo "$ac_compile" | $SED \
14655   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14656   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14657   -e 's:$: $lt_compiler_flag:'`
14658   (eval echo "\"\$as_me:14658: $lt_compile\"" >&5)
14659   (eval "$lt_compile" 2>out/conftest.err)
14660   ac_status=$?
14661   cat out/conftest.err >&5
14662   echo "$as_me:14662: \$? = $ac_status" >&5
14663   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14664   then
14665     # The compiler can only warn and ignore the option if not recognized
14666     # So say no if there are warnings
14667     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14668     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14669     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14670       lt_cv_prog_compiler_c_o_F77=yes
14671     fi
14672   fi
14673   chmod u+w . 2>&5
14674   $rm conftest*
14675   # SGI C++ compiler will create directory out/ii_files/ for
14676   # template instantiation
14677   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14678   $rm out/* && rmdir out
14679   cd ..
14680   rmdir conftest
14681   $rm conftest*
14682
14683fi
14684{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14685echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14686
14687
14688hard_links="nottested"
14689if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14690  # do not overwrite the value of need_locks provided by the user
14691  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14692echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14693  hard_links=yes
14694  $rm conftest*
14695  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14696  touch conftest.a
14697  ln conftest.a conftest.b 2>&5 || hard_links=no
14698  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14699  { echo "$as_me:$LINENO: result: $hard_links" >&5
14700echo "${ECHO_T}$hard_links" >&6; }
14701  if test "$hard_links" = no; then
14702    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14703echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14704    need_locks=warn
14705  fi
14706else
14707  need_locks=no
14708fi
14709
14710{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14711echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14712
14713  runpath_var=
14714  allow_undefined_flag_F77=
14715  enable_shared_with_static_runtimes_F77=no
14716  archive_cmds_F77=
14717  archive_expsym_cmds_F77=
14718  old_archive_From_new_cmds_F77=
14719  old_archive_from_expsyms_cmds_F77=
14720  export_dynamic_flag_spec_F77=
14721  whole_archive_flag_spec_F77=
14722  thread_safe_flag_spec_F77=
14723  hardcode_libdir_flag_spec_F77=
14724  hardcode_libdir_flag_spec_ld_F77=
14725  hardcode_libdir_separator_F77=
14726  hardcode_direct_F77=no
14727  hardcode_minus_L_F77=no
14728  hardcode_shlibpath_var_F77=unsupported
14729  link_all_deplibs_F77=unknown
14730  hardcode_automatic_F77=no
14731  module_cmds_F77=
14732  module_expsym_cmds_F77=
14733  always_export_symbols_F77=no
14734  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14735  # include_expsyms should be a list of space-separated symbols to be *always*
14736  # included in the symbol list
14737  include_expsyms_F77=
14738  # exclude_expsyms can be an extended regexp of symbols to exclude
14739  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14740  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14741  # as well as any symbol that contains `d'.
14742  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14743  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14744  # platforms (ab)use it in PIC code, but their linkers get confused if
14745  # the symbol is explicitly referenced.  Since portable code cannot
14746  # rely on this symbol name, it's probably fine to never include it in
14747  # preloaded symbol tables.
14748  extract_expsyms_cmds=
14749  # Just being paranoid about ensuring that cc_basename is set.
14750  for cc_temp in $compiler""; do
14751  case $cc_temp in
14752    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14753    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14754    \-*) ;;
14755    *) break;;
14756  esac
14757done
14758cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14759
14760  case $host_os in
14761  cygwin* | mingw* | pw32*)
14762    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14763    # When not using gcc, we currently assume that we are using
14764    # Microsoft Visual C++.
14765    if test "$GCC" != yes; then
14766      with_gnu_ld=no
14767    fi
14768    ;;
14769  interix*)
14770    # we just hope/assume this is gcc and not c89 (= MSVC++)
14771    with_gnu_ld=yes
14772    ;;
14773  openbsd*)
14774    with_gnu_ld=no
14775    ;;
14776  esac
14777
14778  ld_shlibs_F77=yes
14779  if test "$with_gnu_ld" = yes; then
14780    # If archive_cmds runs LD, not CC, wlarc should be empty
14781    wlarc='${wl}'
14782
14783    # Set some defaults for GNU ld with shared library support. These
14784    # are reset later if shared libraries are not supported. Putting them
14785    # here allows them to be overridden if necessary.
14786    runpath_var=LD_RUN_PATH
14787    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14788    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14789    # ancient GNU ld didn't support --whole-archive et. al.
14790    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14791	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14792      else
14793  	whole_archive_flag_spec_F77=
14794    fi
14795    supports_anon_versioning=no
14796    case `$LD -v 2>/dev/null` in
14797      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14798      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14799      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14800      *\ 2.11.*) ;; # other 2.11 versions
14801      *) supports_anon_versioning=yes ;;
14802    esac
14803
14804    # See if GNU ld supports shared libraries.
14805    case $host_os in
14806    aix3* | aix4* | aix5*)
14807      # On AIX/PPC, the GNU linker is very broken
14808      if test "$host_cpu" != ia64; then
14809	ld_shlibs_F77=no
14810	cat <<EOF 1>&2
14811
14812*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14813*** to be unable to reliably create shared libraries on AIX.
14814*** Therefore, libtool is disabling shared libraries support.  If you
14815*** really care for shared libraries, you may want to modify your PATH
14816*** so that a non-GNU linker is found, and then restart.
14817
14818EOF
14819      fi
14820      ;;
14821
14822    amigaos*)
14823      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)'
14824      hardcode_libdir_flag_spec_F77='-L$libdir'
14825      hardcode_minus_L_F77=yes
14826
14827      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14828      # that the semantics of dynamic libraries on AmigaOS, at least up
14829      # to version 4, is to share data among multiple programs linked
14830      # with the same dynamic library.  Since this doesn't match the
14831      # behavior of shared libraries on other platforms, we can't use
14832      # them.
14833      ld_shlibs_F77=no
14834      ;;
14835
14836    beos*)
14837      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14838	allow_undefined_flag_F77=unsupported
14839	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14840	# support --undefined.  This deserves some investigation.  FIXME
14841	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14842      else
14843	ld_shlibs_F77=no
14844      fi
14845      ;;
14846
14847    cygwin* | mingw* | pw32*)
14848      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14849      # as there is no search path for DLLs.
14850      hardcode_libdir_flag_spec_F77='-L$libdir'
14851      allow_undefined_flag_F77=unsupported
14852      always_export_symbols_F77=no
14853      enable_shared_with_static_runtimes_F77=yes
14854      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14855
14856      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14857        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14858	# If the export-symbols file already is a .def file (1st line
14859	# is EXPORTS), use it as is; otherwise, prepend...
14860	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14861	  cp $export_symbols $output_objdir/$soname.def;
14862	else
14863	  echo EXPORTS > $output_objdir/$soname.def;
14864	  cat $export_symbols >> $output_objdir/$soname.def;
14865	fi~
14866	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14867      else
14868	ld_shlibs_F77=no
14869      fi
14870      ;;
14871
14872    interix3*)
14873      hardcode_direct_F77=no
14874      hardcode_shlibpath_var_F77=no
14875      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14876      export_dynamic_flag_spec_F77='${wl}-E'
14877      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14878      # Instead, shared libraries are loaded at an image base (0x10000000 by
14879      # default) and relocated if they conflict, which is a slow very memory
14880      # consuming and fragmenting process.  To avoid this, we pick a random,
14881      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14882      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14883      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'
14884      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'
14885      ;;
14886
14887    linux*)
14888      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14889	tmp_addflag=
14890	case $cc_basename,$host_cpu in
14891	pgcc*)				# Portland Group C compiler
14892	  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'
14893	  tmp_addflag=' $pic_flag'
14894	  ;;
14895	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14896	  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'
14897	  tmp_addflag=' $pic_flag -Mnomain' ;;
14898	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14899	  tmp_addflag=' -i_dynamic' ;;
14900	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14901	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14902	ifc* | ifort*)			# Intel Fortran compiler
14903	  tmp_addflag=' -nofor_main' ;;
14904	esac
14905	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14906
14907	if test $supports_anon_versioning = yes; then
14908	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14909  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14910  $echo "local: *; };" >> $output_objdir/$libname.ver~
14911	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14912	fi
14913      else
14914	ld_shlibs_F77=no
14915      fi
14916      ;;
14917
14918    netbsd*)
14919      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14920	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14921	wlarc=
14922      else
14923	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14924	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14925      fi
14926      ;;
14927
14928    solaris*)
14929      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14930	ld_shlibs_F77=no
14931	cat <<EOF 1>&2
14932
14933*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14934*** create shared libraries on Solaris systems.  Therefore, libtool
14935*** is disabling shared libraries support.  We urge you to upgrade GNU
14936*** binutils to release 2.9.1 or newer.  Another option is to modify
14937*** your PATH or compiler configuration so that the native linker is
14938*** used, and then restart.
14939
14940EOF
14941      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14942	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14943	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14944      else
14945	ld_shlibs_F77=no
14946      fi
14947      ;;
14948
14949    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14950      case `$LD -v 2>&1` in
14951        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14952	ld_shlibs_F77=no
14953	cat <<_LT_EOF 1>&2
14954
14955*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14956*** reliably create shared libraries on SCO systems.  Therefore, libtool
14957*** is disabling shared libraries support.  We urge you to upgrade GNU
14958*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14959*** your PATH or compiler configuration so that the native linker is
14960*** used, and then restart.
14961
14962_LT_EOF
14963	;;
14964	*)
14965	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14966	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14967	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14968	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14969	  else
14970	    ld_shlibs_F77=no
14971	  fi
14972	;;
14973      esac
14974      ;;
14975
14976    sunos4*)
14977      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14978      wlarc=
14979      hardcode_direct_F77=yes
14980      hardcode_shlibpath_var_F77=no
14981      ;;
14982
14983    *)
14984      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14985	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14986	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14987      else
14988	ld_shlibs_F77=no
14989      fi
14990      ;;
14991    esac
14992
14993    if test "$ld_shlibs_F77" = no; then
14994      runpath_var=
14995      hardcode_libdir_flag_spec_F77=
14996      export_dynamic_flag_spec_F77=
14997      whole_archive_flag_spec_F77=
14998    fi
14999  else
15000    # PORTME fill in a description of your system's linker (not GNU ld)
15001    case $host_os in
15002    aix3*)
15003      allow_undefined_flag_F77=unsupported
15004      always_export_symbols_F77=yes
15005      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'
15006      # Note: this linker hardcodes the directories in LIBPATH if there
15007      # are no directories specified by -L.
15008      hardcode_minus_L_F77=yes
15009      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15010	# Neither direct hardcoding nor static linking is supported with a
15011	# broken collect2.
15012	hardcode_direct_F77=unsupported
15013      fi
15014      ;;
15015
15016    aix4* | aix5*)
15017      if test "$host_cpu" = ia64; then
15018	# On IA64, the linker does run time linking by default, so we don't
15019	# have to do anything special.
15020	aix_use_runtimelinking=no
15021	exp_sym_flag='-Bexport'
15022	no_entry_flag=""
15023      else
15024	# If we're using GNU nm, then we don't want the "-C" option.
15025	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15026	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15027	  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'
15028	else
15029	  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'
15030	fi
15031	aix_use_runtimelinking=no
15032
15033	# Test if we are trying to use run time linking or normal
15034	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15035	# need to do runtime linking.
15036	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15037	  for ld_flag in $LDFLAGS; do
15038  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15039  	    aix_use_runtimelinking=yes
15040  	    break
15041  	  fi
15042	  done
15043	  ;;
15044	esac
15045
15046	exp_sym_flag='-bexport'
15047	no_entry_flag='-bnoentry'
15048      fi
15049
15050      # When large executables or shared objects are built, AIX ld can
15051      # have problems creating the table of contents.  If linking a library
15052      # or program results in "error TOC overflow" add -mminimal-toc to
15053      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15054      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15055
15056      archive_cmds_F77=''
15057      hardcode_direct_F77=yes
15058      hardcode_libdir_separator_F77=':'
15059      link_all_deplibs_F77=yes
15060
15061      if test "$GCC" = yes; then
15062	case $host_os in aix4.[012]|aix4.[012].*)
15063	# We only want to do this on AIX 4.2 and lower, the check
15064	# below for broken collect2 doesn't work under 4.3+
15065	  collect2name=`${CC} -print-prog-name=collect2`
15066	  if test -f "$collect2name" && \
15067  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15068	  then
15069  	  # We have reworked collect2
15070  	  hardcode_direct_F77=yes
15071	  else
15072  	  # We have old collect2
15073  	  hardcode_direct_F77=unsupported
15074  	  # It fails to find uninstalled libraries when the uninstalled
15075  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15076  	  # to unsupported forces relinking
15077  	  hardcode_minus_L_F77=yes
15078  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15079  	  hardcode_libdir_separator_F77=
15080	  fi
15081	  ;;
15082	esac
15083	shared_flag='-shared'
15084	if test "$aix_use_runtimelinking" = yes; then
15085	  shared_flag="$shared_flag "'${wl}-G'
15086	fi
15087      else
15088	# not using gcc
15089	if test "$host_cpu" = ia64; then
15090  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15091  	# chokes on -Wl,-G. The following line is correct:
15092	  shared_flag='-G'
15093	else
15094	  if test "$aix_use_runtimelinking" = yes; then
15095	    shared_flag='${wl}-G'
15096	  else
15097	    shared_flag='${wl}-bM:SRE'
15098	  fi
15099	fi
15100      fi
15101
15102      # It seems that -bexpall does not export symbols beginning with
15103      # underscore (_), so it is better to generate a list of symbols to export.
15104      always_export_symbols_F77=yes
15105      if test "$aix_use_runtimelinking" = yes; then
15106	# Warning - without using the other runtime loading flags (-brtl),
15107	# -berok will link without error, but may produce a broken library.
15108	allow_undefined_flag_F77='-berok'
15109       # Determine the default libpath from the value encoded in an empty executable.
15110       cat >conftest.$ac_ext <<_ACEOF
15111      program main
15112
15113      end
15114_ACEOF
15115rm -f conftest.$ac_objext conftest$ac_exeext
15116if { (ac_try="$ac_link"
15117case "(($ac_try" in
15118  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15119  *) ac_try_echo=$ac_try;;
15120esac
15121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15122  (eval "$ac_link") 2>conftest.er1
15123  ac_status=$?
15124  grep -v '^ *+' conftest.er1 >conftest.err
15125  rm -f conftest.er1
15126  cat conftest.err >&5
15127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128  (exit $ac_status); } && {
15129	 test -z "$ac_f77_werror_flag" ||
15130	 test ! -s conftest.err
15131       } && test -s conftest$ac_exeext &&
15132       $as_test_x conftest$ac_exeext; then
15133
15134aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15135}'`
15136# Check for a 64-bit object if we didn't find anything.
15137if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15138}'`; fi
15139else
15140  echo "$as_me: failed program was:" >&5
15141sed 's/^/| /' conftest.$ac_ext >&5
15142
15143
15144fi
15145
15146rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15147      conftest$ac_exeext conftest.$ac_ext
15148if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15149
15150       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15151	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"
15152       else
15153	if test "$host_cpu" = ia64; then
15154	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15155	  allow_undefined_flag_F77="-z nodefs"
15156	  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"
15157	else
15158	 # Determine the default libpath from the value encoded in an empty executable.
15159	 cat >conftest.$ac_ext <<_ACEOF
15160      program main
15161
15162      end
15163_ACEOF
15164rm -f conftest.$ac_objext conftest$ac_exeext
15165if { (ac_try="$ac_link"
15166case "(($ac_try" in
15167  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15168  *) ac_try_echo=$ac_try;;
15169esac
15170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15171  (eval "$ac_link") 2>conftest.er1
15172  ac_status=$?
15173  grep -v '^ *+' conftest.er1 >conftest.err
15174  rm -f conftest.er1
15175  cat conftest.err >&5
15176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177  (exit $ac_status); } && {
15178	 test -z "$ac_f77_werror_flag" ||
15179	 test ! -s conftest.err
15180       } && test -s conftest$ac_exeext &&
15181       $as_test_x conftest$ac_exeext; then
15182
15183aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15184}'`
15185# Check for a 64-bit object if we didn't find anything.
15186if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15187}'`; fi
15188else
15189  echo "$as_me: failed program was:" >&5
15190sed 's/^/| /' conftest.$ac_ext >&5
15191
15192
15193fi
15194
15195rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15196      conftest$ac_exeext conftest.$ac_ext
15197if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15198
15199	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15200	  # Warning - without using the other run time loading flags,
15201	  # -berok will link without error, but may produce a broken library.
15202	  no_undefined_flag_F77=' ${wl}-bernotok'
15203	  allow_undefined_flag_F77=' ${wl}-berok'
15204	  # Exported symbols can be pulled into shared objects from archives
15205	  whole_archive_flag_spec_F77='$convenience'
15206	  archive_cmds_need_lc_F77=yes
15207	  # This is similar to how AIX traditionally builds its shared libraries.
15208	  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'
15209	fi
15210      fi
15211      ;;
15212
15213    amigaos*)
15214      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)'
15215      hardcode_libdir_flag_spec_F77='-L$libdir'
15216      hardcode_minus_L_F77=yes
15217      # see comment about different semantics on the GNU ld section
15218      ld_shlibs_F77=no
15219      ;;
15220
15221    bsdi[45]*)
15222      export_dynamic_flag_spec_F77=-rdynamic
15223      ;;
15224
15225    cygwin* | mingw* | pw32*)
15226      # When not using gcc, we currently assume that we are using
15227      # Microsoft Visual C++.
15228      # hardcode_libdir_flag_spec is actually meaningless, as there is
15229      # no search path for DLLs.
15230      hardcode_libdir_flag_spec_F77=' '
15231      allow_undefined_flag_F77=unsupported
15232      # Tell ltmain to make .lib files, not .a files.
15233      libext=lib
15234      # Tell ltmain to make .dll files, not .so files.
15235      shrext_cmds=".dll"
15236      # FIXME: Setting linknames here is a bad hack.
15237      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15238      # The linker will automatically build a .lib file if we build a DLL.
15239      old_archive_From_new_cmds_F77='true'
15240      # FIXME: Should let the user specify the lib program.
15241      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15242      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15243      enable_shared_with_static_runtimes_F77=yes
15244      ;;
15245
15246    darwin* | rhapsody*)
15247      case $host_os in
15248        rhapsody* | darwin1.[012])
15249         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15250         ;;
15251       *) # Darwin 1.3 on
15252         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15253           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15254         else
15255           case ${MACOSX_DEPLOYMENT_TARGET} in
15256             10.[012])
15257               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15258               ;;
15259             10.*)
15260               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15261               ;;
15262           esac
15263         fi
15264         ;;
15265      esac
15266      archive_cmds_need_lc_F77=no
15267      hardcode_direct_F77=no
15268      hardcode_automatic_F77=yes
15269      hardcode_shlibpath_var_F77=unsupported
15270      whole_archive_flag_spec_F77=''
15271      link_all_deplibs_F77=yes
15272    if test "$GCC" = yes ; then
15273    	output_verbose_link_cmd='echo'
15274        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15275      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15276      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15277      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15278      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}'
15279    else
15280      case $cc_basename in
15281        xlc*)
15282         output_verbose_link_cmd='echo'
15283         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15284         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15285          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15286         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15287          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}'
15288          ;;
15289       *)
15290         ld_shlibs_F77=no
15291          ;;
15292      esac
15293    fi
15294      ;;
15295
15296    dgux*)
15297      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15298      hardcode_libdir_flag_spec_F77='-L$libdir'
15299      hardcode_shlibpath_var_F77=no
15300      ;;
15301
15302    freebsd1*)
15303      ld_shlibs_F77=no
15304      ;;
15305
15306    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15307    # support.  Future versions do this automatically, but an explicit c++rt0.o
15308    # does not break anything, and helps significantly (at the cost of a little
15309    # extra space).
15310    freebsd2.2*)
15311      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15312      hardcode_libdir_flag_spec_F77='-R$libdir'
15313      hardcode_direct_F77=yes
15314      hardcode_shlibpath_var_F77=no
15315      ;;
15316
15317    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15318    freebsd2*)
15319      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15320      hardcode_direct_F77=yes
15321      hardcode_minus_L_F77=yes
15322      hardcode_shlibpath_var_F77=no
15323      ;;
15324
15325    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15326    freebsd* | kfreebsd*-gnu | dragonfly*)
15327      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15328      hardcode_libdir_flag_spec_F77='-R$libdir'
15329      hardcode_direct_F77=yes
15330      hardcode_shlibpath_var_F77=no
15331      ;;
15332
15333    hpux9*)
15334      if test "$GCC" = yes; then
15335	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'
15336      else
15337	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'
15338      fi
15339      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15340      hardcode_libdir_separator_F77=:
15341      hardcode_direct_F77=yes
15342
15343      # hardcode_minus_L: Not really in the search PATH,
15344      # but as the default location of the library.
15345      hardcode_minus_L_F77=yes
15346      export_dynamic_flag_spec_F77='${wl}-E'
15347      ;;
15348
15349    hpux10*)
15350      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15351	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15352      else
15353	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15354      fi
15355      if test "$with_gnu_ld" = no; then
15356	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15357	hardcode_libdir_separator_F77=:
15358
15359	hardcode_direct_F77=yes
15360	export_dynamic_flag_spec_F77='${wl}-E'
15361
15362	# hardcode_minus_L: Not really in the search PATH,
15363	# but as the default location of the library.
15364	hardcode_minus_L_F77=yes
15365      fi
15366      ;;
15367
15368    hpux11*)
15369      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15370	case $host_cpu in
15371	hppa*64*)
15372	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15373	  ;;
15374	ia64*)
15375	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15376	  ;;
15377	*)
15378	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15379	  ;;
15380	esac
15381      else
15382	case $host_cpu in
15383	hppa*64*)
15384	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15385	  ;;
15386	ia64*)
15387	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15388	  ;;
15389	*)
15390	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15391	  ;;
15392	esac
15393      fi
15394      if test "$with_gnu_ld" = no; then
15395	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15396	hardcode_libdir_separator_F77=:
15397
15398	case $host_cpu in
15399	hppa*64*|ia64*)
15400	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15401	  hardcode_direct_F77=no
15402	  hardcode_shlibpath_var_F77=no
15403	  ;;
15404	*)
15405	  hardcode_direct_F77=yes
15406	  export_dynamic_flag_spec_F77='${wl}-E'
15407
15408	  # hardcode_minus_L: Not really in the search PATH,
15409	  # but as the default location of the library.
15410	  hardcode_minus_L_F77=yes
15411	  ;;
15412	esac
15413      fi
15414      ;;
15415
15416    irix5* | irix6* | nonstopux*)
15417      if test "$GCC" = yes; then
15418	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'
15419      else
15420	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'
15421	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15422      fi
15423      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15424      hardcode_libdir_separator_F77=:
15425      link_all_deplibs_F77=yes
15426      ;;
15427
15428    netbsd*)
15429      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15430	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15431      else
15432	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15433      fi
15434      hardcode_libdir_flag_spec_F77='-R$libdir'
15435      hardcode_direct_F77=yes
15436      hardcode_shlibpath_var_F77=no
15437      ;;
15438
15439    newsos6)
15440      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15441      hardcode_direct_F77=yes
15442      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15443      hardcode_libdir_separator_F77=:
15444      hardcode_shlibpath_var_F77=no
15445      ;;
15446
15447    openbsd*)
15448      hardcode_direct_F77=yes
15449      hardcode_shlibpath_var_F77=no
15450      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15451	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15452	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15453	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15454	export_dynamic_flag_spec_F77='${wl}-E'
15455      else
15456       case $host_os in
15457	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15458	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15459	   hardcode_libdir_flag_spec_F77='-R$libdir'
15460	   ;;
15461	 *)
15462	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15463	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15464	   ;;
15465       esac
15466      fi
15467      ;;
15468
15469    os2*)
15470      hardcode_libdir_flag_spec_F77='-L$libdir'
15471      hardcode_minus_L_F77=yes
15472      allow_undefined_flag_F77=unsupported
15473      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'
15474      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15475      ;;
15476
15477    osf3*)
15478      if test "$GCC" = yes; then
15479	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15480	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'
15481      else
15482	allow_undefined_flag_F77=' -expect_unresolved \*'
15483	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'
15484      fi
15485      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15486      hardcode_libdir_separator_F77=:
15487      ;;
15488
15489    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15490      if test "$GCC" = yes; then
15491	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15492	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'
15493	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15494      else
15495	allow_undefined_flag_F77=' -expect_unresolved \*'
15496	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'
15497	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~
15498	$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'
15499
15500	# Both c and cxx compiler support -rpath directly
15501	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15502      fi
15503      hardcode_libdir_separator_F77=:
15504      ;;
15505
15506    solaris*)
15507      no_undefined_flag_F77=' -z text'
15508      if test "$GCC" = yes; then
15509	wlarc='${wl}'
15510	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15511	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15512	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15513      else
15514	wlarc=''
15515	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15516	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15517  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15518      fi
15519      hardcode_libdir_flag_spec_F77='-R$libdir'
15520      hardcode_shlibpath_var_F77=no
15521      case $host_os in
15522      solaris2.[0-5] | solaris2.[0-5].*) ;;
15523      *)
15524 	# The compiler driver will combine linker options so we
15525 	# cannot just pass the convience library names through
15526 	# without $wl, iff we do not link with $LD.
15527 	# Luckily, gcc supports the same syntax we need for Sun Studio.
15528 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15529 	case $wlarc in
15530 	'')
15531 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15532 	*)
15533 	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15534 	esac ;;
15535      esac
15536      link_all_deplibs_F77=yes
15537      ;;
15538
15539    sunos4*)
15540      if test "x$host_vendor" = xsequent; then
15541	# Use $CC to link under sequent, because it throws in some extra .o
15542	# files that make .init and .fini sections work.
15543	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15544      else
15545	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15546      fi
15547      hardcode_libdir_flag_spec_F77='-L$libdir'
15548      hardcode_direct_F77=yes
15549      hardcode_minus_L_F77=yes
15550      hardcode_shlibpath_var_F77=no
15551      ;;
15552
15553    sysv4)
15554      case $host_vendor in
15555	sni)
15556	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15557	  hardcode_direct_F77=yes # is this really true???
15558	;;
15559	siemens)
15560	  ## LD is ld it makes a PLAMLIB
15561	  ## CC just makes a GrossModule.
15562	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15563	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15564	  hardcode_direct_F77=no
15565        ;;
15566	motorola)
15567	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15568	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15569	;;
15570      esac
15571      runpath_var='LD_RUN_PATH'
15572      hardcode_shlibpath_var_F77=no
15573      ;;
15574
15575    sysv4.3*)
15576      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15577      hardcode_shlibpath_var_F77=no
15578      export_dynamic_flag_spec_F77='-Bexport'
15579      ;;
15580
15581    sysv4*MP*)
15582      if test -d /usr/nec; then
15583	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15584	hardcode_shlibpath_var_F77=no
15585	runpath_var=LD_RUN_PATH
15586	hardcode_runpath_var=yes
15587	ld_shlibs_F77=yes
15588      fi
15589      ;;
15590
15591    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15592      no_undefined_flag_F77='${wl}-z,text'
15593      archive_cmds_need_lc_F77=no
15594      hardcode_shlibpath_var_F77=no
15595      runpath_var='LD_RUN_PATH'
15596
15597      if test "$GCC" = yes; then
15598	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15599	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15600      else
15601	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15602	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15603      fi
15604      ;;
15605
15606    sysv5* | sco3.2v5* | sco5v6*)
15607      # Note: We can NOT use -z defs as we might desire, because we do not
15608      # link with -lc, and that would cause any symbols used from libc to
15609      # always be unresolved, which means just about no library would
15610      # ever link correctly.  If we're not using GNU ld we use -z text
15611      # though, which does catch some bad symbols but isn't as heavy-handed
15612      # as -z defs.
15613      no_undefined_flag_F77='${wl}-z,text'
15614      allow_undefined_flag_F77='${wl}-z,nodefs'
15615      archive_cmds_need_lc_F77=no
15616      hardcode_shlibpath_var_F77=no
15617      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15618      hardcode_libdir_separator_F77=':'
15619      link_all_deplibs_F77=yes
15620      export_dynamic_flag_spec_F77='${wl}-Bexport'
15621      runpath_var='LD_RUN_PATH'
15622
15623      if test "$GCC" = yes; then
15624	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15625	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15626      else
15627	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15628	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15629      fi
15630      ;;
15631
15632    uts4*)
15633      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15634      hardcode_libdir_flag_spec_F77='-L$libdir'
15635      hardcode_shlibpath_var_F77=no
15636      ;;
15637
15638    *)
15639      ld_shlibs_F77=no
15640      ;;
15641    esac
15642  fi
15643
15644{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15645echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15646test "$ld_shlibs_F77" = no && can_build_shared=no
15647
15648#
15649# Do we need to explicitly link libc?
15650#
15651case "x$archive_cmds_need_lc_F77" in
15652x|xyes)
15653  # Assume -lc should be added
15654  archive_cmds_need_lc_F77=yes
15655
15656  if test "$enable_shared" = yes && test "$GCC" = yes; then
15657    case $archive_cmds_F77 in
15658    *'~'*)
15659      # FIXME: we may have to deal with multi-command sequences.
15660      ;;
15661    '$CC '*)
15662      # Test whether the compiler implicitly links with -lc since on some
15663      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15664      # to ld, don't add -lc before -lgcc.
15665      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15666echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15667      $rm conftest*
15668      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15669
15670      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15671  (eval $ac_compile) 2>&5
15672  ac_status=$?
15673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674  (exit $ac_status); } 2>conftest.err; then
15675        soname=conftest
15676        lib=conftest
15677        libobjs=conftest.$ac_objext
15678        deplibs=
15679        wl=$lt_prog_compiler_wl_F77
15680	pic_flag=$lt_prog_compiler_pic_F77
15681        compiler_flags=-v
15682        linker_flags=-v
15683        verstring=
15684        output_objdir=.
15685        libname=conftest
15686        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15687        allow_undefined_flag_F77=
15688        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15689  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15690  ac_status=$?
15691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692  (exit $ac_status); }
15693        then
15694	  archive_cmds_need_lc_F77=no
15695        else
15696	  archive_cmds_need_lc_F77=yes
15697        fi
15698        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15699      else
15700        cat conftest.err 1>&5
15701      fi
15702      $rm conftest*
15703      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15704echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15705      ;;
15706    esac
15707  fi
15708  ;;
15709esac
15710
15711{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15712echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15713library_names_spec=
15714libname_spec='lib$name'
15715soname_spec=
15716shrext_cmds=".so"
15717postinstall_cmds=
15718postuninstall_cmds=
15719finish_cmds=
15720finish_eval=
15721shlibpath_var=
15722shlibpath_overrides_runpath=unknown
15723version_type=none
15724dynamic_linker="$host_os ld.so"
15725sys_lib_dlsearch_path_spec="/lib /usr/lib"
15726if test "$GCC" = yes; then
15727  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15728  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15729    # if the path contains ";" then we assume it to be the separator
15730    # otherwise default to the standard path separator (i.e. ":") - it is
15731    # assumed that no part of a normal pathname contains ";" but that should
15732    # okay in the real world where ";" in dirpaths is itself problematic.
15733    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15734  else
15735    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15736  fi
15737else
15738  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15739fi
15740need_lib_prefix=unknown
15741hardcode_into_libs=no
15742
15743# when you set need_version to no, make sure it does not cause -set_version
15744# flags to be left without arguments
15745need_version=unknown
15746
15747case $host_os in
15748aix3*)
15749  version_type=linux
15750  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15751  shlibpath_var=LIBPATH
15752
15753  # AIX 3 has no versioning support, so we append a major version to the name.
15754  soname_spec='${libname}${release}${shared_ext}$major'
15755  ;;
15756
15757aix4* | aix5*)
15758  version_type=linux
15759  need_lib_prefix=no
15760  need_version=no
15761  hardcode_into_libs=yes
15762  if test "$host_cpu" = ia64; then
15763    # AIX 5 supports IA64
15764    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15765    shlibpath_var=LD_LIBRARY_PATH
15766  else
15767    # With GCC up to 2.95.x, collect2 would create an import file
15768    # for dependence libraries.  The import file would start with
15769    # the line `#! .'.  This would cause the generated library to
15770    # depend on `.', always an invalid library.  This was fixed in
15771    # development snapshots of GCC prior to 3.0.
15772    case $host_os in
15773      aix4 | aix4.[01] | aix4.[01].*)
15774      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15775	   echo ' yes '
15776	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15777	:
15778      else
15779	can_build_shared=no
15780      fi
15781      ;;
15782    esac
15783    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15784    # soname into executable. Probably we can add versioning support to
15785    # collect2, so additional links can be useful in future.
15786    if test "$aix_use_runtimelinking" = yes; then
15787      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15788      # instead of lib<name>.a to let people know that these are not
15789      # typical AIX shared libraries.
15790      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15791    else
15792      # We preserve .a as extension for shared libraries through AIX4.2
15793      # and later when we are not doing run time linking.
15794      library_names_spec='${libname}${release}.a $libname.a'
15795      soname_spec='${libname}${release}${shared_ext}$major'
15796    fi
15797    shlibpath_var=LIBPATH
15798  fi
15799  ;;
15800
15801amigaos*)
15802  library_names_spec='$libname.ixlibrary $libname.a'
15803  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15804  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'
15805  ;;
15806
15807beos*)
15808  library_names_spec='${libname}${shared_ext}'
15809  dynamic_linker="$host_os ld.so"
15810  shlibpath_var=LIBRARY_PATH
15811  ;;
15812
15813bsdi[45]*)
15814  version_type=linux
15815  need_version=no
15816  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15817  soname_spec='${libname}${release}${shared_ext}$major'
15818  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15819  shlibpath_var=LD_LIBRARY_PATH
15820  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15821  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15822  # the default ld.so.conf also contains /usr/contrib/lib and
15823  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15824  # libtool to hard-code these into programs
15825  ;;
15826
15827cygwin* | mingw* | pw32*)
15828  version_type=windows
15829  shrext_cmds=".dll"
15830  need_version=no
15831  need_lib_prefix=no
15832
15833  case $GCC,$host_os in
15834  yes,cygwin* | yes,mingw* | yes,pw32*)
15835    library_names_spec='$libname.dll.a'
15836    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15837    postinstall_cmds='base_file=`basename \${file}`~
15838      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15839      dldir=$destdir/`dirname \$dlpath`~
15840      test -d \$dldir || mkdir -p \$dldir~
15841      $install_prog $dir/$dlname \$dldir/$dlname~
15842      chmod a+x \$dldir/$dlname'
15843    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15844      dlpath=$dir/\$dldll~
15845       $rm \$dlpath'
15846    shlibpath_overrides_runpath=yes
15847
15848    case $host_os in
15849    cygwin*)
15850      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15851      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15852      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15853      ;;
15854    mingw*)
15855      # MinGW DLLs use traditional 'lib' prefix
15856      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15857      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15858      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15859        # It is most probably a Windows format PATH printed by
15860        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15861        # path with ; separators, and with drive letters. We can handle the
15862        # drive letters (cygwin fileutils understands them), so leave them,
15863        # especially as we might pass files found there to a mingw objdump,
15864        # which wouldn't understand a cygwinified path. Ahh.
15865        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15866      else
15867        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15868      fi
15869      ;;
15870    pw32*)
15871      # pw32 DLLs use 'pw' prefix rather than 'lib'
15872      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15873      ;;
15874    esac
15875    ;;
15876
15877  *)
15878    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15879    ;;
15880  esac
15881  dynamic_linker='Win32 ld.exe'
15882  # FIXME: first we should search . and the directory the executable is in
15883  shlibpath_var=PATH
15884  ;;
15885
15886darwin* | rhapsody*)
15887  dynamic_linker="$host_os dyld"
15888  version_type=darwin
15889  need_lib_prefix=no
15890  need_version=no
15891  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15892  soname_spec='${libname}${release}${major}$shared_ext'
15893  shlibpath_overrides_runpath=yes
15894  shlibpath_var=DYLD_LIBRARY_PATH
15895  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15896  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15897  if test "$GCC" = yes; then
15898    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15899  else
15900    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15901  fi
15902  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15903  ;;
15904
15905dgux*)
15906  version_type=linux
15907  need_lib_prefix=no
15908  need_version=no
15909  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15910  soname_spec='${libname}${release}${shared_ext}$major'
15911  shlibpath_var=LD_LIBRARY_PATH
15912  ;;
15913
15914freebsd1*)
15915  dynamic_linker=no
15916  ;;
15917
15918kfreebsd*-gnu)
15919  version_type=linux
15920  need_lib_prefix=no
15921  need_version=no
15922  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15923  soname_spec='${libname}${release}${shared_ext}$major'
15924  shlibpath_var=LD_LIBRARY_PATH
15925  shlibpath_overrides_runpath=no
15926  hardcode_into_libs=yes
15927  dynamic_linker='GNU ld.so'
15928  ;;
15929
15930freebsd* | dragonfly*)
15931  # DragonFly does not have aout.  When/if they implement a new
15932  # versioning mechanism, adjust this.
15933  if test -x /usr/bin/objformat; then
15934    objformat=`/usr/bin/objformat`
15935  else
15936    case $host_os in
15937    freebsd[123]*) objformat=aout ;;
15938    *) objformat=elf ;;
15939    esac
15940  fi
15941  version_type=freebsd-$objformat
15942  case $version_type in
15943    freebsd-elf*)
15944      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15945      need_version=no
15946      need_lib_prefix=no
15947      ;;
15948    freebsd-*)
15949      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15950      need_version=yes
15951      ;;
15952  esac
15953  shlibpath_var=LD_LIBRARY_PATH
15954  case $host_os in
15955  freebsd2*)
15956    shlibpath_overrides_runpath=yes
15957    ;;
15958  freebsd3.[01]* | freebsdelf3.[01]*)
15959    shlibpath_overrides_runpath=yes
15960    hardcode_into_libs=yes
15961    ;;
15962  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15963  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15964    shlibpath_overrides_runpath=no
15965    hardcode_into_libs=yes
15966    ;;
15967  freebsd*) # from 4.6 on
15968    shlibpath_overrides_runpath=yes
15969    hardcode_into_libs=yes
15970    ;;
15971  esac
15972  ;;
15973
15974gnu*)
15975  version_type=linux
15976  need_lib_prefix=no
15977  need_version=no
15978  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15979  soname_spec='${libname}${release}${shared_ext}$major'
15980  shlibpath_var=LD_LIBRARY_PATH
15981  hardcode_into_libs=yes
15982  ;;
15983
15984hpux9* | hpux10* | hpux11*)
15985  # Give a soname corresponding to the major version so that dld.sl refuses to
15986  # link against other versions.
15987  version_type=sunos
15988  need_lib_prefix=no
15989  need_version=no
15990  case $host_cpu in
15991  ia64*)
15992    shrext_cmds='.so'
15993    hardcode_into_libs=yes
15994    dynamic_linker="$host_os dld.so"
15995    shlibpath_var=LD_LIBRARY_PATH
15996    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15997    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15998    soname_spec='${libname}${release}${shared_ext}$major'
15999    if test "X$HPUX_IA64_MODE" = X32; then
16000      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16001    else
16002      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16003    fi
16004    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16005    ;;
16006   hppa*64*)
16007     shrext_cmds='.sl'
16008     hardcode_into_libs=yes
16009     dynamic_linker="$host_os dld.sl"
16010     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16011     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16012     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16013     soname_spec='${libname}${release}${shared_ext}$major'
16014     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16015     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16016     ;;
16017   *)
16018    shrext_cmds='.sl'
16019    dynamic_linker="$host_os dld.sl"
16020    shlibpath_var=SHLIB_PATH
16021    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16022    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16023    soname_spec='${libname}${release}${shared_ext}$major'
16024    ;;
16025  esac
16026  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16027  postinstall_cmds='chmod 555 $lib'
16028  ;;
16029
16030interix3*)
16031  version_type=linux
16032  need_lib_prefix=no
16033  need_version=no
16034  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16035  soname_spec='${libname}${release}${shared_ext}$major'
16036  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16037  shlibpath_var=LD_LIBRARY_PATH
16038  shlibpath_overrides_runpath=no
16039  hardcode_into_libs=yes
16040  ;;
16041
16042irix5* | irix6* | nonstopux*)
16043  case $host_os in
16044    nonstopux*) version_type=nonstopux ;;
16045    *)
16046	if test "$lt_cv_prog_gnu_ld" = yes; then
16047		version_type=linux
16048	else
16049		version_type=irix
16050	fi ;;
16051  esac
16052  need_lib_prefix=no
16053  need_version=no
16054  soname_spec='${libname}${release}${shared_ext}$major'
16055  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16056  case $host_os in
16057  irix5* | nonstopux*)
16058    libsuff= shlibsuff=
16059    ;;
16060  *)
16061    case $LD in # libtool.m4 will add one of these switches to LD
16062    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16063      libsuff= shlibsuff= libmagic=32-bit;;
16064    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16065      libsuff=32 shlibsuff=N32 libmagic=N32;;
16066    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16067      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16068    *) libsuff= shlibsuff= libmagic=never-match;;
16069    esac
16070    ;;
16071  esac
16072  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16073  shlibpath_overrides_runpath=no
16074  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16075  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16076  hardcode_into_libs=yes
16077  ;;
16078
16079# No shared lib support for Linux oldld, aout, or coff.
16080linux*oldld* | linux*aout* | linux*coff*)
16081  dynamic_linker=no
16082  ;;
16083
16084# This must be Linux ELF.
16085linux*)
16086  version_type=linux
16087  need_lib_prefix=no
16088  need_version=no
16089  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16090  soname_spec='${libname}${release}${shared_ext}$major'
16091  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16092  shlibpath_var=LD_LIBRARY_PATH
16093  shlibpath_overrides_runpath=no
16094  # This implies no fast_install, which is unacceptable.
16095  # Some rework will be needed to allow for fast_install
16096  # before this can be enabled.
16097  hardcode_into_libs=yes
16098
16099  # find out which ABI we are using
16100  libsuff=
16101  case "$host_cpu" in
16102  x86_64*|s390x*|powerpc64*)
16103    echo '#line 16103 "configure"' > conftest.$ac_ext
16104    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16105  (eval $ac_compile) 2>&5
16106  ac_status=$?
16107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108  (exit $ac_status); }; then
16109      case `/usr/bin/file conftest.$ac_objext` in
16110      *64-bit*)
16111        libsuff=64
16112        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16113        ;;
16114      esac
16115    fi
16116    rm -rf conftest*
16117    ;;
16118  esac
16119
16120  # Append ld.so.conf contents to the search path
16121  if test -f /etc/ld.so.conf; then
16122    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16123    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
16124  fi
16125
16126  # We used to test for /lib/ld.so.1 and disable shared libraries on
16127  # powerpc, because MkLinux only supported shared libraries with the
16128  # GNU dynamic linker.  Since this was broken with cross compilers,
16129  # most powerpc-linux boxes support dynamic linking these days and
16130  # people can always --disable-shared, the test was removed, and we
16131  # assume the GNU/Linux dynamic linker is in use.
16132  dynamic_linker='GNU/Linux ld.so'
16133  ;;
16134
16135knetbsd*-gnu)
16136  version_type=linux
16137  need_lib_prefix=no
16138  need_version=no
16139  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16140  soname_spec='${libname}${release}${shared_ext}$major'
16141  shlibpath_var=LD_LIBRARY_PATH
16142  shlibpath_overrides_runpath=no
16143  hardcode_into_libs=yes
16144  dynamic_linker='GNU ld.so'
16145  ;;
16146
16147netbsd*)
16148  version_type=sunos
16149  need_lib_prefix=no
16150  need_version=no
16151  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16152    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16153    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16154    dynamic_linker='NetBSD (a.out) ld.so'
16155  else
16156    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16157    soname_spec='${libname}${release}${shared_ext}$major'
16158    dynamic_linker='NetBSD ld.elf_so'
16159  fi
16160  shlibpath_var=LD_LIBRARY_PATH
16161  shlibpath_overrides_runpath=yes
16162  hardcode_into_libs=yes
16163  ;;
16164
16165newsos6)
16166  version_type=linux
16167  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16168  shlibpath_var=LD_LIBRARY_PATH
16169  shlibpath_overrides_runpath=yes
16170  ;;
16171
16172nto-qnx*)
16173  version_type=linux
16174  need_lib_prefix=no
16175  need_version=no
16176  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16177  soname_spec='${libname}${release}${shared_ext}$major'
16178  shlibpath_var=LD_LIBRARY_PATH
16179  shlibpath_overrides_runpath=yes
16180  ;;
16181
16182openbsd*)
16183  version_type=sunos
16184  sys_lib_dlsearch_path_spec="/usr/lib"
16185  need_lib_prefix=no
16186  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16187  case $host_os in
16188    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16189    *)                         need_version=no  ;;
16190  esac
16191  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16192  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16193  shlibpath_var=LD_LIBRARY_PATH
16194  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16195    case $host_os in
16196      openbsd2.[89] | openbsd2.[89].*)
16197	shlibpath_overrides_runpath=no
16198	;;
16199      *)
16200	shlibpath_overrides_runpath=yes
16201	;;
16202      esac
16203  else
16204    shlibpath_overrides_runpath=yes
16205  fi
16206  ;;
16207
16208os2*)
16209  libname_spec='$name'
16210  shrext_cmds=".dll"
16211  need_lib_prefix=no
16212  library_names_spec='$libname${shared_ext} $libname.a'
16213  dynamic_linker='OS/2 ld.exe'
16214  shlibpath_var=LIBPATH
16215  ;;
16216
16217osf3* | osf4* | osf5*)
16218  version_type=osf
16219  need_lib_prefix=no
16220  need_version=no
16221  soname_spec='${libname}${release}${shared_ext}$major'
16222  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16223  shlibpath_var=LD_LIBRARY_PATH
16224  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16225  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16226  ;;
16227
16228solaris*)
16229  version_type=linux
16230  need_lib_prefix=no
16231  need_version=no
16232  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16233  soname_spec='${libname}${release}${shared_ext}$major'
16234  shlibpath_var=LD_LIBRARY_PATH
16235  shlibpath_overrides_runpath=yes
16236  hardcode_into_libs=yes
16237  # ldd complains unless libraries are executable
16238  postinstall_cmds='chmod +x $lib'
16239  ;;
16240
16241sunos4*)
16242  version_type=sunos
16243  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16244  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16245  shlibpath_var=LD_LIBRARY_PATH
16246  shlibpath_overrides_runpath=yes
16247  if test "$with_gnu_ld" = yes; then
16248    need_lib_prefix=no
16249  fi
16250  need_version=yes
16251  ;;
16252
16253sysv4 | sysv4.3*)
16254  version_type=linux
16255  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16256  soname_spec='${libname}${release}${shared_ext}$major'
16257  shlibpath_var=LD_LIBRARY_PATH
16258  case $host_vendor in
16259    sni)
16260      shlibpath_overrides_runpath=no
16261      need_lib_prefix=no
16262      export_dynamic_flag_spec='${wl}-Blargedynsym'
16263      runpath_var=LD_RUN_PATH
16264      ;;
16265    siemens)
16266      need_lib_prefix=no
16267      ;;
16268    motorola)
16269      need_lib_prefix=no
16270      need_version=no
16271      shlibpath_overrides_runpath=no
16272      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16273      ;;
16274  esac
16275  ;;
16276
16277sysv4*MP*)
16278  if test -d /usr/nec ;then
16279    version_type=linux
16280    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16281    soname_spec='$libname${shared_ext}.$major'
16282    shlibpath_var=LD_LIBRARY_PATH
16283  fi
16284  ;;
16285
16286sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16287  version_type=freebsd-elf
16288  need_lib_prefix=no
16289  need_version=no
16290  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16291  soname_spec='${libname}${release}${shared_ext}$major'
16292  shlibpath_var=LD_LIBRARY_PATH
16293  hardcode_into_libs=yes
16294  if test "$with_gnu_ld" = yes; then
16295    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16296    shlibpath_overrides_runpath=no
16297  else
16298    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16299    shlibpath_overrides_runpath=yes
16300    case $host_os in
16301      sco3.2v5*)
16302        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16303	;;
16304    esac
16305  fi
16306  sys_lib_dlsearch_path_spec='/usr/lib'
16307  ;;
16308
16309uts4*)
16310  version_type=linux
16311  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16312  soname_spec='${libname}${release}${shared_ext}$major'
16313  shlibpath_var=LD_LIBRARY_PATH
16314  ;;
16315
16316*)
16317  dynamic_linker=no
16318  ;;
16319esac
16320{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16321echo "${ECHO_T}$dynamic_linker" >&6; }
16322test "$dynamic_linker" = no && can_build_shared=no
16323
16324variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16325if test "$GCC" = yes; then
16326  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16327fi
16328
16329{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16330echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16331hardcode_action_F77=
16332if test -n "$hardcode_libdir_flag_spec_F77" || \
16333   test -n "$runpath_var_F77" || \
16334   test "X$hardcode_automatic_F77" = "Xyes" ; then
16335
16336  # We can hardcode non-existant directories.
16337  if test "$hardcode_direct_F77" != no &&
16338     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16339     # have to relink, otherwise we might link with an installed library
16340     # when we should be linking with a yet-to-be-installed one
16341     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16342     test "$hardcode_minus_L_F77" != no; then
16343    # Linking always hardcodes the temporary library directory.
16344    hardcode_action_F77=relink
16345  else
16346    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16347    hardcode_action_F77=immediate
16348  fi
16349else
16350  # We cannot hardcode anything, or else we can only hardcode existing
16351  # directories.
16352  hardcode_action_F77=unsupported
16353fi
16354{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16355echo "${ECHO_T}$hardcode_action_F77" >&6; }
16356
16357if test "$hardcode_action_F77" = relink; then
16358  # Fast installation is not supported
16359  enable_fast_install=no
16360elif test "$shlibpath_overrides_runpath" = yes ||
16361     test "$enable_shared" = no; then
16362  # Fast installation is not necessary
16363  enable_fast_install=needless
16364fi
16365
16366
16367# The else clause should only fire when bootstrapping the
16368# libtool distribution, otherwise you forgot to ship ltmain.sh
16369# with your package, and you will get complaints that there are
16370# no rules to generate ltmain.sh.
16371if test -f "$ltmain"; then
16372  # See if we are running on zsh, and set the options which allow our commands through
16373  # without removal of \ escapes.
16374  if test -n "${ZSH_VERSION+set}" ; then
16375    setopt NO_GLOB_SUBST
16376  fi
16377  # Now quote all the things that may contain metacharacters while being
16378  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16379  # variables and quote the copies for generation of the libtool script.
16380  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16381    SED SHELL STRIP \
16382    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16383    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16384    deplibs_check_method reload_flag reload_cmds need_locks \
16385    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16386    lt_cv_sys_global_symbol_to_c_name_address \
16387    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16388    old_postinstall_cmds old_postuninstall_cmds \
16389    compiler_F77 \
16390    CC_F77 \
16391    LD_F77 \
16392    lt_prog_compiler_wl_F77 \
16393    lt_prog_compiler_pic_F77 \
16394    lt_prog_compiler_static_F77 \
16395    lt_prog_compiler_no_builtin_flag_F77 \
16396    export_dynamic_flag_spec_F77 \
16397    thread_safe_flag_spec_F77 \
16398    whole_archive_flag_spec_F77 \
16399    enable_shared_with_static_runtimes_F77 \
16400    old_archive_cmds_F77 \
16401    old_archive_from_new_cmds_F77 \
16402    predep_objects_F77 \
16403    postdep_objects_F77 \
16404    predeps_F77 \
16405    postdeps_F77 \
16406    compiler_lib_search_path_F77 \
16407    archive_cmds_F77 \
16408    archive_expsym_cmds_F77 \
16409    postinstall_cmds_F77 \
16410    postuninstall_cmds_F77 \
16411    old_archive_from_expsyms_cmds_F77 \
16412    allow_undefined_flag_F77 \
16413    no_undefined_flag_F77 \
16414    export_symbols_cmds_F77 \
16415    hardcode_libdir_flag_spec_F77 \
16416    hardcode_libdir_flag_spec_ld_F77 \
16417    hardcode_libdir_separator_F77 \
16418    hardcode_automatic_F77 \
16419    module_cmds_F77 \
16420    module_expsym_cmds_F77 \
16421    lt_cv_prog_compiler_c_o_F77 \
16422    exclude_expsyms_F77 \
16423    include_expsyms_F77; do
16424
16425    case $var in
16426    old_archive_cmds_F77 | \
16427    old_archive_from_new_cmds_F77 | \
16428    archive_cmds_F77 | \
16429    archive_expsym_cmds_F77 | \
16430    module_cmds_F77 | \
16431    module_expsym_cmds_F77 | \
16432    old_archive_from_expsyms_cmds_F77 | \
16433    export_symbols_cmds_F77 | \
16434    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16435    postinstall_cmds | postuninstall_cmds | \
16436    old_postinstall_cmds | old_postuninstall_cmds | \
16437    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16438      # Double-quote double-evaled strings.
16439      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16440      ;;
16441    *)
16442      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16443      ;;
16444    esac
16445  done
16446
16447  case $lt_echo in
16448  *'\$0 --fallback-echo"')
16449    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16450    ;;
16451  esac
16452
16453cfgfile="$ofile"
16454
16455  cat <<__EOF__ >> "$cfgfile"
16456# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16457
16458# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16459
16460# Shell to use when invoking shell scripts.
16461SHELL=$lt_SHELL
16462
16463# Whether or not to build shared libraries.
16464build_libtool_libs=$enable_shared
16465
16466# Whether or not to build static libraries.
16467build_old_libs=$enable_static
16468
16469# Whether or not to add -lc for building shared libraries.
16470build_libtool_need_lc=$archive_cmds_need_lc_F77
16471
16472# Whether or not to disallow shared libs when runtime libs are static
16473allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16474
16475# Whether or not to optimize for fast installation.
16476fast_install=$enable_fast_install
16477
16478# The host system.
16479host_alias=$host_alias
16480host=$host
16481host_os=$host_os
16482
16483# The build system.
16484build_alias=$build_alias
16485build=$build
16486build_os=$build_os
16487
16488# An echo program that does not interpret backslashes.
16489echo=$lt_echo
16490
16491# The archiver.
16492AR=$lt_AR
16493AR_FLAGS=$lt_AR_FLAGS
16494
16495# A C compiler.
16496LTCC=$lt_LTCC
16497
16498# LTCC compiler flags.
16499LTCFLAGS=$lt_LTCFLAGS
16500
16501# A language-specific compiler.
16502CC=$lt_compiler_F77
16503
16504# Is the compiler the GNU C compiler?
16505with_gcc=$GCC_F77
16506
16507gcc_dir=\`$LTCC -print-file-name=. | $SED 's,/\.$,,'\`
16508gcc_ver=\`$LTCC -dumpversion\`
16509
16510# An ERE matcher.
16511EGREP=$lt_EGREP
16512
16513# The linker used to build libraries.
16514LD=$lt_LD_F77
16515
16516# Whether we need hard or soft links.
16517LN_S=$lt_LN_S
16518
16519# A BSD-compatible nm program.
16520NM=$lt_NM
16521
16522# A symbol stripping program
16523STRIP=$lt_STRIP
16524
16525# Used to examine libraries when file_magic_cmd begins "file"
16526MAGIC_CMD=$MAGIC_CMD
16527
16528# Used on cygwin: DLL creation program.
16529DLLTOOL="$DLLTOOL"
16530
16531# Used on cygwin: object dumper.
16532OBJDUMP="$OBJDUMP"
16533
16534# Used on cygwin: assembler.
16535AS="$AS"
16536
16537# The name of the directory that contains temporary libtool files.
16538objdir=$objdir
16539
16540# How to create reloadable object files.
16541reload_flag=$lt_reload_flag
16542reload_cmds=$lt_reload_cmds
16543
16544# How to pass a linker flag through the compiler.
16545wl=$lt_lt_prog_compiler_wl_F77
16546
16547# Object file suffix (normally "o").
16548objext="$ac_objext"
16549
16550# Old archive suffix (normally "a").
16551libext="$libext"
16552
16553# Shared library suffix (normally ".so").
16554shrext_cmds='$shrext_cmds'
16555
16556# Executable file suffix (normally "").
16557exeext="$exeext"
16558
16559# Additional compiler flags for building library objects.
16560pic_flag=$lt_lt_prog_compiler_pic_F77
16561pic_mode=$pic_mode
16562
16563# What is the maximum length of a command?
16564max_cmd_len=$lt_cv_sys_max_cmd_len
16565
16566# Does compiler simultaneously support -c and -o options?
16567compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16568
16569# Must we lock files when doing compilation?
16570need_locks=$lt_need_locks
16571
16572# Do we need the lib prefix for modules?
16573need_lib_prefix=$need_lib_prefix
16574
16575# Do we need a version for libraries?
16576need_version=$need_version
16577
16578# Whether dlopen is supported.
16579dlopen_support=$enable_dlopen
16580
16581# Whether dlopen of programs is supported.
16582dlopen_self=$enable_dlopen_self
16583
16584# Whether dlopen of statically linked programs is supported.
16585dlopen_self_static=$enable_dlopen_self_static
16586
16587# Compiler flag to prevent dynamic linking.
16588link_static_flag=$lt_lt_prog_compiler_static_F77
16589
16590# Compiler flag to turn off builtin functions.
16591no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16592
16593# Compiler flag to allow reflexive dlopens.
16594export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16595
16596# Compiler flag to generate shared objects directly from archives.
16597whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16598
16599# Compiler flag to generate thread-safe objects.
16600thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16601
16602# Library versioning type.
16603version_type=$version_type
16604
16605# Format of library name prefix.
16606libname_spec=$lt_libname_spec
16607
16608# List of archive names.  First name is the real one, the rest are links.
16609# The last name is the one that the linker finds with -lNAME.
16610library_names_spec=$lt_library_names_spec
16611
16612# The coded name of the library, if different from the real name.
16613soname_spec=$lt_soname_spec
16614
16615# Commands used to build and install an old-style archive.
16616RANLIB=$lt_RANLIB
16617old_archive_cmds=$lt_old_archive_cmds_F77
16618old_postinstall_cmds=$lt_old_postinstall_cmds
16619old_postuninstall_cmds=$lt_old_postuninstall_cmds
16620
16621# Create an old-style archive from a shared archive.
16622old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16623
16624# Create a temporary old-style archive to link instead of a shared archive.
16625old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16626
16627# Commands used to build and install a shared archive.
16628archive_cmds=$lt_archive_cmds_F77
16629archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16630postinstall_cmds=$lt_postinstall_cmds
16631postuninstall_cmds=$lt_postuninstall_cmds
16632
16633# Commands used to build a loadable module (assumed same as above if empty)
16634module_cmds=$lt_module_cmds_F77
16635module_expsym_cmds=$lt_module_expsym_cmds_F77
16636
16637# Commands to strip libraries.
16638old_striplib=$lt_old_striplib
16639striplib=$lt_striplib
16640
16641# Dependencies to place before the objects being linked to create a
16642# shared library.
16643predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16644
16645# Dependencies to place after the objects being linked to create a
16646# shared library.
16647postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16648
16649# Dependencies to place before the objects being linked to create a
16650# shared library.
16651predeps=$lt_predeps_F77
16652
16653# Dependencies to place after the objects being linked to create a
16654# shared library.
16655postdeps=$lt_postdeps_F77
16656
16657# The library search path used internally by the compiler when linking
16658# a shared library.
16659compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16660
16661# Method to check whether dependent libraries are shared objects.
16662deplibs_check_method=$lt_deplibs_check_method
16663
16664# Command to use when deplibs_check_method == file_magic.
16665file_magic_cmd=$lt_file_magic_cmd
16666
16667# Flag that allows shared libraries with undefined symbols to be built.
16668allow_undefined_flag=$lt_allow_undefined_flag_F77
16669
16670# Flag that forces no undefined symbols.
16671no_undefined_flag=$lt_no_undefined_flag_F77
16672
16673# Commands used to finish a libtool library installation in a directory.
16674finish_cmds=$lt_finish_cmds
16675
16676# Same as above, but a single script fragment to be evaled but not shown.
16677finish_eval=$lt_finish_eval
16678
16679# Take the output of nm and produce a listing of raw symbols and C names.
16680global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16681
16682# Transform the output of nm in a proper C declaration
16683global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16684
16685# Transform the output of nm in a C name address pair
16686global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16687
16688# This is the shared library runtime path variable.
16689runpath_var=$runpath_var
16690
16691# This is the shared library path variable.
16692shlibpath_var=$shlibpath_var
16693
16694# Is shlibpath searched before the hard-coded library search path?
16695shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16696
16697# How to hardcode a shared library path into an executable.
16698hardcode_action=$hardcode_action_F77
16699
16700# Whether we should hardcode library paths into libraries.
16701hardcode_into_libs=$hardcode_into_libs
16702
16703# Flag to hardcode \$libdir into a binary during linking.
16704# This must work even if \$libdir does not exist.
16705hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16706
16707# If ld is used when linking, flag to hardcode \$libdir into
16708# a binary during linking. This must work even if \$libdir does
16709# not exist.
16710hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16711
16712# Whether we need a single -rpath flag with a separated argument.
16713hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16714
16715# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16716# resulting binary.
16717hardcode_direct=$hardcode_direct_F77
16718
16719# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16720# resulting binary.
16721hardcode_minus_L=$hardcode_minus_L_F77
16722
16723# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16724# the resulting binary.
16725hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16726
16727# Set to yes if building a shared library automatically hardcodes DIR into the library
16728# and all subsequent libraries and executables linked against it.
16729hardcode_automatic=$hardcode_automatic_F77
16730
16731# Variables whose values should be saved in libtool wrapper scripts and
16732# restored at relink time.
16733variables_saved_for_relink="$variables_saved_for_relink"
16734
16735# Whether libtool must link a program against all its dependency libraries.
16736link_all_deplibs=$link_all_deplibs_F77
16737
16738# Compile-time system search path for libraries
16739sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16740
16741# Run-time system search path for libraries
16742sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16743
16744# Fix the shell variable \$srcfile for the compiler.
16745fix_srcfile_path="$fix_srcfile_path_F77"
16746
16747# Set to yes if exported symbols are required.
16748always_export_symbols=$always_export_symbols_F77
16749
16750# The commands to list exported symbols.
16751export_symbols_cmds=$lt_export_symbols_cmds_F77
16752
16753# The commands to extract the exported symbol list from a shared archive.
16754extract_expsyms_cmds=$lt_extract_expsyms_cmds
16755
16756# Symbols that should not be listed in the preloaded symbols.
16757exclude_expsyms=$lt_exclude_expsyms_F77
16758
16759# Symbols that must always be exported.
16760include_expsyms=$lt_include_expsyms_F77
16761
16762# ### END LIBTOOL TAG CONFIG: $tagname
16763
16764__EOF__
16765
16766
16767else
16768  # If there is no Makefile yet, we rely on a make rule to execute
16769  # `config.status --recheck' to rerun these tests and create the
16770  # libtool script then.
16771  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16772  if test -f "$ltmain_in"; then
16773    test -f Makefile && make "$ltmain"
16774  fi
16775fi
16776
16777
16778ac_ext=c
16779ac_cpp='$CPP $CPPFLAGS'
16780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16782ac_compiler_gnu=$ac_cv_c_compiler_gnu
16783
16784CC="$lt_save_CC"
16785
16786	else
16787	  tagname=""
16788	fi
16789	;;
16790
16791      GCJ)
16792	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16793
16794
16795# Source file extension for Java test sources.
16796ac_ext=java
16797
16798# Object file extension for compiled Java test sources.
16799objext=o
16800objext_GCJ=$objext
16801
16802# Code to be used in simple compile tests
16803lt_simple_compile_test_code="class foo {}\n"
16804
16805# Code to be used in simple link tests
16806lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16807
16808# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16809
16810# If no C compiler was specified, use CC.
16811LTCC=${LTCC-"$CC"}
16812
16813# If no C compiler flags were specified, use CFLAGS.
16814LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16815
16816# Allow CC to be a program name with arguments.
16817compiler=$CC
16818
16819
16820# save warnings/boilerplate of simple test code
16821ac_outfile=conftest.$ac_objext
16822printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16823eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16824_lt_compiler_boilerplate=`cat conftest.err`
16825$rm conftest*
16826
16827ac_outfile=conftest.$ac_objext
16828printf "$lt_simple_link_test_code" >conftest.$ac_ext
16829eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16830_lt_linker_boilerplate=`cat conftest.err`
16831$rm conftest*
16832
16833
16834# Allow CC to be a program name with arguments.
16835lt_save_CC="$CC"
16836CC=${GCJ-"gcj"}
16837compiler=$CC
16838compiler_GCJ=$CC
16839for cc_temp in $compiler""; do
16840  case $cc_temp in
16841    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16842    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16843    \-*) ;;
16844    *) break;;
16845  esac
16846done
16847cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16848
16849
16850# GCJ did not exist at the time GCC didn't implicitly link libc in.
16851archive_cmds_need_lc_GCJ=no
16852
16853old_archive_cmds_GCJ=$old_archive_cmds
16854
16855
16856lt_prog_compiler_no_builtin_flag_GCJ=
16857
16858if test "$GCC" = yes; then
16859  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16860
16861
16862{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16863echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16864if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16865  echo $ECHO_N "(cached) $ECHO_C" >&6
16866else
16867  lt_cv_prog_compiler_rtti_exceptions=no
16868  ac_outfile=conftest.$ac_objext
16869   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16870   lt_compiler_flag="-fno-rtti -fno-exceptions"
16871   # Insert the option either (1) after the last *FLAGS variable, or
16872   # (2) before a word containing "conftest.", or (3) at the end.
16873   # Note that $ac_compile itself does not contain backslashes and begins
16874   # with a dollar sign (not a hyphen), so the echo should work correctly.
16875   # The option is referenced via a variable to avoid confusing sed.
16876   lt_compile=`echo "$ac_compile" | $SED \
16877   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16878   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16879   -e 's:$: $lt_compiler_flag:'`
16880   (eval echo "\"\$as_me:16880: $lt_compile\"" >&5)
16881   (eval "$lt_compile" 2>conftest.err)
16882   ac_status=$?
16883   cat conftest.err >&5
16884   echo "$as_me:16884: \$? = $ac_status" >&5
16885   if (exit $ac_status) && test -s "$ac_outfile"; then
16886     # The compiler can only warn and ignore the option if not recognized
16887     # So say no if there are warnings other than the usual output.
16888     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16889     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16890     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16891       lt_cv_prog_compiler_rtti_exceptions=yes
16892     fi
16893   fi
16894   $rm conftest*
16895
16896fi
16897{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16898echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16899
16900if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16901    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16902else
16903    :
16904fi
16905
16906fi
16907
16908lt_prog_compiler_wl_GCJ=
16909lt_prog_compiler_pic_GCJ=
16910lt_prog_compiler_static_GCJ=
16911
16912{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16913echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16914
16915  if test "$GCC" = yes; then
16916    lt_prog_compiler_wl_GCJ='-Wl,'
16917    lt_prog_compiler_static_GCJ='-static'
16918
16919    case $host_os in
16920      aix*)
16921      # All AIX code is PIC.
16922      if test "$host_cpu" = ia64; then
16923	# AIX 5 now supports IA64 processor
16924	lt_prog_compiler_static_GCJ='-Bstatic'
16925      fi
16926      ;;
16927
16928    amigaos*)
16929      # FIXME: we need at least 68020 code to build shared libraries, but
16930      # adding the `-m68020' flag to GCC prevents building anything better,
16931      # like `-m68040'.
16932      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16933      ;;
16934
16935    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16936      # PIC is the default for these OSes.
16937      ;;
16938
16939    mingw* | pw32* | os2*)
16940      # This hack is so that the source file can tell whether it is being
16941      # built for inclusion in a dll (and should export symbols for example).
16942      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16943      ;;
16944
16945    darwin* | rhapsody*)
16946      # PIC is the default on this platform
16947      # Common symbols not allowed in MH_DYLIB files
16948      lt_prog_compiler_pic_GCJ='-fno-common'
16949      ;;
16950
16951    interix3*)
16952      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16953      # Instead, we relocate shared libraries at runtime.
16954      ;;
16955
16956    msdosdjgpp*)
16957      # Just because we use GCC doesn't mean we suddenly get shared libraries
16958      # on systems that don't support them.
16959      lt_prog_compiler_can_build_shared_GCJ=no
16960      enable_shared=no
16961      ;;
16962
16963    sysv4*MP*)
16964      if test -d /usr/nec; then
16965	lt_prog_compiler_pic_GCJ=-Kconform_pic
16966      fi
16967      ;;
16968
16969    hpux*)
16970      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16971      # not for PA HP-UX.
16972      case $host_cpu in
16973      hppa*64*|ia64*)
16974	# +Z the default
16975	;;
16976      *)
16977	lt_prog_compiler_pic_GCJ='-fPIC'
16978	;;
16979      esac
16980      ;;
16981
16982    *)
16983      lt_prog_compiler_pic_GCJ='-fPIC'
16984      ;;
16985    esac
16986  else
16987    # PORTME Check for flag to pass linker flags through the system compiler.
16988    case $host_os in
16989    aix*)
16990      lt_prog_compiler_wl_GCJ='-Wl,'
16991      if test "$host_cpu" = ia64; then
16992	# AIX 5 now supports IA64 processor
16993	lt_prog_compiler_static_GCJ='-Bstatic'
16994      else
16995	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16996      fi
16997      ;;
16998      darwin*)
16999        # PIC is the default on this platform
17000        # Common symbols not allowed in MH_DYLIB files
17001       case $cc_basename in
17002         xlc*)
17003         lt_prog_compiler_pic_GCJ='-qnocommon'
17004         lt_prog_compiler_wl_GCJ='-Wl,'
17005         ;;
17006       esac
17007       ;;
17008
17009    mingw* | pw32* | os2*)
17010      # This hack is so that the source file can tell whether it is being
17011      # built for inclusion in a dll (and should export symbols for example).
17012      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17013      ;;
17014
17015    hpux9* | hpux10* | hpux11*)
17016      lt_prog_compiler_wl_GCJ='-Wl,'
17017      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17018      # not for PA HP-UX.
17019      case $host_cpu in
17020      hppa*64*|ia64*)
17021	# +Z the default
17022	;;
17023      *)
17024	lt_prog_compiler_pic_GCJ='+Z'
17025	;;
17026      esac
17027      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17028      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17029      ;;
17030
17031    irix5* | irix6* | nonstopux*)
17032      lt_prog_compiler_wl_GCJ='-Wl,'
17033      # PIC (with -KPIC) is the default.
17034      lt_prog_compiler_static_GCJ='-non_shared'
17035      ;;
17036
17037    newsos6)
17038      lt_prog_compiler_pic_GCJ='-KPIC'
17039      lt_prog_compiler_static_GCJ='-Bstatic'
17040      ;;
17041
17042    linux*)
17043      case $cc_basename in
17044      icc* | ecc*)
17045	lt_prog_compiler_wl_GCJ='-Wl,'
17046	lt_prog_compiler_pic_GCJ='-KPIC'
17047	lt_prog_compiler_static_GCJ='-static'
17048        ;;
17049      pgcc* | pgf77* | pgf90* | pgf95*)
17050        # Portland Group compilers (*not* the Pentium gcc compiler,
17051	# which looks to be a dead project)
17052	lt_prog_compiler_wl_GCJ='-Wl,'
17053	lt_prog_compiler_pic_GCJ='-fpic'
17054	lt_prog_compiler_static_GCJ='-Bstatic'
17055        ;;
17056      ccc*)
17057        lt_prog_compiler_wl_GCJ='-Wl,'
17058        # All Alpha code is PIC.
17059        lt_prog_compiler_static_GCJ='-non_shared'
17060        ;;
17061      esac
17062      ;;
17063
17064    osf3* | osf4* | osf5*)
17065      lt_prog_compiler_wl_GCJ='-Wl,'
17066      # All OSF/1 code is PIC.
17067      lt_prog_compiler_static_GCJ='-non_shared'
17068      ;;
17069
17070    solaris*)
17071      lt_prog_compiler_pic_GCJ='-KPIC'
17072      lt_prog_compiler_static_GCJ='-Bstatic'
17073      case $cc_basename in
17074      f77* | f90* | f95*)
17075	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17076      *)
17077	lt_prog_compiler_wl_GCJ='-Wl,';;
17078      esac
17079      ;;
17080
17081    sunos4*)
17082      lt_prog_compiler_wl_GCJ='-Qoption ld '
17083      lt_prog_compiler_pic_GCJ='-PIC'
17084      lt_prog_compiler_static_GCJ='-Bstatic'
17085      ;;
17086
17087    sysv4 | sysv4.2uw2* | sysv4.3*)
17088      lt_prog_compiler_wl_GCJ='-Wl,'
17089      lt_prog_compiler_pic_GCJ='-KPIC'
17090      lt_prog_compiler_static_GCJ='-Bstatic'
17091      ;;
17092
17093    sysv4*MP*)
17094      if test -d /usr/nec ;then
17095	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17096	lt_prog_compiler_static_GCJ='-Bstatic'
17097      fi
17098      ;;
17099
17100    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17101      lt_prog_compiler_wl_GCJ='-Wl,'
17102      lt_prog_compiler_pic_GCJ='-KPIC'
17103      lt_prog_compiler_static_GCJ='-Bstatic'
17104      ;;
17105
17106    unicos*)
17107      lt_prog_compiler_wl_GCJ='-Wl,'
17108      lt_prog_compiler_can_build_shared_GCJ=no
17109      ;;
17110
17111    uts4*)
17112      lt_prog_compiler_pic_GCJ='-pic'
17113      lt_prog_compiler_static_GCJ='-Bstatic'
17114      ;;
17115
17116    *)
17117      lt_prog_compiler_can_build_shared_GCJ=no
17118      ;;
17119    esac
17120  fi
17121
17122{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17123echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17124
17125#
17126# Check to make sure the PIC flag actually works.
17127#
17128if test -n "$lt_prog_compiler_pic_GCJ"; then
17129
17130{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17131echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17132if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17133  echo $ECHO_N "(cached) $ECHO_C" >&6
17134else
17135  lt_prog_compiler_pic_works_GCJ=no
17136  ac_outfile=conftest.$ac_objext
17137   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17138   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17139   # Insert the option either (1) after the last *FLAGS variable, or
17140   # (2) before a word containing "conftest.", or (3) at the end.
17141   # Note that $ac_compile itself does not contain backslashes and begins
17142   # with a dollar sign (not a hyphen), so the echo should work correctly.
17143   # The option is referenced via a variable to avoid confusing sed.
17144   lt_compile=`echo "$ac_compile" | $SED \
17145   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17146   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17147   -e 's:$: $lt_compiler_flag:'`
17148   (eval echo "\"\$as_me:17148: $lt_compile\"" >&5)
17149   (eval "$lt_compile" 2>conftest.err)
17150   ac_status=$?
17151   cat conftest.err >&5
17152   echo "$as_me:17152: \$? = $ac_status" >&5
17153   if (exit $ac_status) && test -s "$ac_outfile"; then
17154     # The compiler can only warn and ignore the option if not recognized
17155     # So say no if there are warnings other than the usual output.
17156     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17157     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17158     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17159       lt_prog_compiler_pic_works_GCJ=yes
17160     fi
17161   fi
17162   $rm conftest*
17163
17164fi
17165{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17166echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17167
17168if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17169    case $lt_prog_compiler_pic_GCJ in
17170     "" | " "*) ;;
17171     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17172     esac
17173else
17174    lt_prog_compiler_pic_GCJ=
17175     lt_prog_compiler_can_build_shared_GCJ=no
17176fi
17177
17178fi
17179case $host_os in
17180  # For platforms which do not support PIC, -DPIC is meaningless:
17181  *djgpp*)
17182    lt_prog_compiler_pic_GCJ=
17183    ;;
17184  *)
17185    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17186    ;;
17187esac
17188
17189#
17190# Check to make sure the static flag actually works.
17191#
17192wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17193{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17194echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17195if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17196  echo $ECHO_N "(cached) $ECHO_C" >&6
17197else
17198  lt_prog_compiler_static_works_GCJ=no
17199   save_LDFLAGS="$LDFLAGS"
17200   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17201   printf "$lt_simple_link_test_code" > conftest.$ac_ext
17202   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17203     # The linker can only warn and ignore the option if not recognized
17204     # So say no if there are warnings
17205     if test -s conftest.err; then
17206       # Append any errors to the config.log.
17207       cat conftest.err 1>&5
17208       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17209       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17210       if diff conftest.exp conftest.er2 >/dev/null; then
17211         lt_prog_compiler_static_works_GCJ=yes
17212       fi
17213     else
17214       lt_prog_compiler_static_works_GCJ=yes
17215     fi
17216   fi
17217   $rm conftest*
17218   LDFLAGS="$save_LDFLAGS"
17219
17220fi
17221{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17222echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17223
17224if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17225    :
17226else
17227    lt_prog_compiler_static_GCJ=
17228fi
17229
17230
17231{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17232echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17233if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17234  echo $ECHO_N "(cached) $ECHO_C" >&6
17235else
17236  lt_cv_prog_compiler_c_o_GCJ=no
17237   $rm -r conftest 2>/dev/null
17238   mkdir conftest
17239   cd conftest
17240   mkdir out
17241   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17242
17243   lt_compiler_flag="-o out/conftest2.$ac_objext"
17244   # Insert the option either (1) after the last *FLAGS variable, or
17245   # (2) before a word containing "conftest.", or (3) at the end.
17246   # Note that $ac_compile itself does not contain backslashes and begins
17247   # with a dollar sign (not a hyphen), so the echo should work correctly.
17248   lt_compile=`echo "$ac_compile" | $SED \
17249   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17250   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17251   -e 's:$: $lt_compiler_flag:'`
17252   (eval echo "\"\$as_me:17252: $lt_compile\"" >&5)
17253   (eval "$lt_compile" 2>out/conftest.err)
17254   ac_status=$?
17255   cat out/conftest.err >&5
17256   echo "$as_me:17256: \$? = $ac_status" >&5
17257   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17258   then
17259     # The compiler can only warn and ignore the option if not recognized
17260     # So say no if there are warnings
17261     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17262     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17263     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17264       lt_cv_prog_compiler_c_o_GCJ=yes
17265     fi
17266   fi
17267   chmod u+w . 2>&5
17268   $rm conftest*
17269   # SGI C++ compiler will create directory out/ii_files/ for
17270   # template instantiation
17271   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17272   $rm out/* && rmdir out
17273   cd ..
17274   rmdir conftest
17275   $rm conftest*
17276
17277fi
17278{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17279echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17280
17281
17282hard_links="nottested"
17283if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17284  # do not overwrite the value of need_locks provided by the user
17285  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17286echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17287  hard_links=yes
17288  $rm conftest*
17289  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17290  touch conftest.a
17291  ln conftest.a conftest.b 2>&5 || hard_links=no
17292  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17293  { echo "$as_me:$LINENO: result: $hard_links" >&5
17294echo "${ECHO_T}$hard_links" >&6; }
17295  if test "$hard_links" = no; then
17296    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17297echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17298    need_locks=warn
17299  fi
17300else
17301  need_locks=no
17302fi
17303
17304{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17305echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17306
17307  runpath_var=
17308  allow_undefined_flag_GCJ=
17309  enable_shared_with_static_runtimes_GCJ=no
17310  archive_cmds_GCJ=
17311  archive_expsym_cmds_GCJ=
17312  old_archive_From_new_cmds_GCJ=
17313  old_archive_from_expsyms_cmds_GCJ=
17314  export_dynamic_flag_spec_GCJ=
17315  whole_archive_flag_spec_GCJ=
17316  thread_safe_flag_spec_GCJ=
17317  hardcode_libdir_flag_spec_GCJ=
17318  hardcode_libdir_flag_spec_ld_GCJ=
17319  hardcode_libdir_separator_GCJ=
17320  hardcode_direct_GCJ=no
17321  hardcode_minus_L_GCJ=no
17322  hardcode_shlibpath_var_GCJ=unsupported
17323  link_all_deplibs_GCJ=unknown
17324  hardcode_automatic_GCJ=no
17325  module_cmds_GCJ=
17326  module_expsym_cmds_GCJ=
17327  always_export_symbols_GCJ=no
17328  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17329  # include_expsyms should be a list of space-separated symbols to be *always*
17330  # included in the symbol list
17331  include_expsyms_GCJ=
17332  # exclude_expsyms can be an extended regexp of symbols to exclude
17333  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17334  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17335  # as well as any symbol that contains `d'.
17336  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17337  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17338  # platforms (ab)use it in PIC code, but their linkers get confused if
17339  # the symbol is explicitly referenced.  Since portable code cannot
17340  # rely on this symbol name, it's probably fine to never include it in
17341  # preloaded symbol tables.
17342  extract_expsyms_cmds=
17343  # Just being paranoid about ensuring that cc_basename is set.
17344  for cc_temp in $compiler""; do
17345  case $cc_temp in
17346    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17347    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17348    \-*) ;;
17349    *) break;;
17350  esac
17351done
17352cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17353
17354  case $host_os in
17355  cygwin* | mingw* | pw32*)
17356    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17357    # When not using gcc, we currently assume that we are using
17358    # Microsoft Visual C++.
17359    if test "$GCC" != yes; then
17360      with_gnu_ld=no
17361    fi
17362    ;;
17363  interix*)
17364    # we just hope/assume this is gcc and not c89 (= MSVC++)
17365    with_gnu_ld=yes
17366    ;;
17367  openbsd*)
17368    with_gnu_ld=no
17369    ;;
17370  esac
17371
17372  ld_shlibs_GCJ=yes
17373  if test "$with_gnu_ld" = yes; then
17374    # If archive_cmds runs LD, not CC, wlarc should be empty
17375    wlarc='${wl}'
17376
17377    # Set some defaults for GNU ld with shared library support. These
17378    # are reset later if shared libraries are not supported. Putting them
17379    # here allows them to be overridden if necessary.
17380    runpath_var=LD_RUN_PATH
17381    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17382    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17383    # ancient GNU ld didn't support --whole-archive et. al.
17384    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17385	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17386      else
17387  	whole_archive_flag_spec_GCJ=
17388    fi
17389    supports_anon_versioning=no
17390    case `$LD -v 2>/dev/null` in
17391      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17392      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17393      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17394      *\ 2.11.*) ;; # other 2.11 versions
17395      *) supports_anon_versioning=yes ;;
17396    esac
17397
17398    # See if GNU ld supports shared libraries.
17399    case $host_os in
17400    aix3* | aix4* | aix5*)
17401      # On AIX/PPC, the GNU linker is very broken
17402      if test "$host_cpu" != ia64; then
17403	ld_shlibs_GCJ=no
17404	cat <<EOF 1>&2
17405
17406*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17407*** to be unable to reliably create shared libraries on AIX.
17408*** Therefore, libtool is disabling shared libraries support.  If you
17409*** really care for shared libraries, you may want to modify your PATH
17410*** so that a non-GNU linker is found, and then restart.
17411
17412EOF
17413      fi
17414      ;;
17415
17416    amigaos*)
17417      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)'
17418      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17419      hardcode_minus_L_GCJ=yes
17420
17421      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17422      # that the semantics of dynamic libraries on AmigaOS, at least up
17423      # to version 4, is to share data among multiple programs linked
17424      # with the same dynamic library.  Since this doesn't match the
17425      # behavior of shared libraries on other platforms, we can't use
17426      # them.
17427      ld_shlibs_GCJ=no
17428      ;;
17429
17430    beos*)
17431      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17432	allow_undefined_flag_GCJ=unsupported
17433	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17434	# support --undefined.  This deserves some investigation.  FIXME
17435	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17436      else
17437	ld_shlibs_GCJ=no
17438      fi
17439      ;;
17440
17441    cygwin* | mingw* | pw32*)
17442      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17443      # as there is no search path for DLLs.
17444      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17445      allow_undefined_flag_GCJ=unsupported
17446      always_export_symbols_GCJ=no
17447      enable_shared_with_static_runtimes_GCJ=yes
17448      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17449
17450      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17451        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17452	# If the export-symbols file already is a .def file (1st line
17453	# is EXPORTS), use it as is; otherwise, prepend...
17454	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17455	  cp $export_symbols $output_objdir/$soname.def;
17456	else
17457	  echo EXPORTS > $output_objdir/$soname.def;
17458	  cat $export_symbols >> $output_objdir/$soname.def;
17459	fi~
17460	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17461      else
17462	ld_shlibs_GCJ=no
17463      fi
17464      ;;
17465
17466    interix3*)
17467      hardcode_direct_GCJ=no
17468      hardcode_shlibpath_var_GCJ=no
17469      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17470      export_dynamic_flag_spec_GCJ='${wl}-E'
17471      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17472      # Instead, shared libraries are loaded at an image base (0x10000000 by
17473      # default) and relocated if they conflict, which is a slow very memory
17474      # consuming and fragmenting process.  To avoid this, we pick a random,
17475      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17476      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17477      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'
17478      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'
17479      ;;
17480
17481    linux*)
17482      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17483	tmp_addflag=
17484	case $cc_basename,$host_cpu in
17485	pgcc*)				# Portland Group C compiler
17486	  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'
17487	  tmp_addflag=' $pic_flag'
17488	  ;;
17489	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17490	  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'
17491	  tmp_addflag=' $pic_flag -Mnomain' ;;
17492	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17493	  tmp_addflag=' -i_dynamic' ;;
17494	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17495	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17496	ifc* | ifort*)			# Intel Fortran compiler
17497	  tmp_addflag=' -nofor_main' ;;
17498	esac
17499	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17500
17501	if test $supports_anon_versioning = yes; then
17502	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17503  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17504  $echo "local: *; };" >> $output_objdir/$libname.ver~
17505	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17506	fi
17507      else
17508	ld_shlibs_GCJ=no
17509      fi
17510      ;;
17511
17512    netbsd*)
17513      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17514	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17515	wlarc=
17516      else
17517	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17518	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17519      fi
17520      ;;
17521
17522    solaris*)
17523      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17524	ld_shlibs_GCJ=no
17525	cat <<EOF 1>&2
17526
17527*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17528*** create shared libraries on Solaris systems.  Therefore, libtool
17529*** is disabling shared libraries support.  We urge you to upgrade GNU
17530*** binutils to release 2.9.1 or newer.  Another option is to modify
17531*** your PATH or compiler configuration so that the native linker is
17532*** used, and then restart.
17533
17534EOF
17535      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17536	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17537	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17538      else
17539	ld_shlibs_GCJ=no
17540      fi
17541      ;;
17542
17543    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17544      case `$LD -v 2>&1` in
17545        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17546	ld_shlibs_GCJ=no
17547	cat <<_LT_EOF 1>&2
17548
17549*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17550*** reliably create shared libraries on SCO systems.  Therefore, libtool
17551*** is disabling shared libraries support.  We urge you to upgrade GNU
17552*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17553*** your PATH or compiler configuration so that the native linker is
17554*** used, and then restart.
17555
17556_LT_EOF
17557	;;
17558	*)
17559	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17560	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17561	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17562	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17563	  else
17564	    ld_shlibs_GCJ=no
17565	  fi
17566	;;
17567      esac
17568      ;;
17569
17570    sunos4*)
17571      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17572      wlarc=
17573      hardcode_direct_GCJ=yes
17574      hardcode_shlibpath_var_GCJ=no
17575      ;;
17576
17577    *)
17578      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17579	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17580	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17581      else
17582	ld_shlibs_GCJ=no
17583      fi
17584      ;;
17585    esac
17586
17587    if test "$ld_shlibs_GCJ" = no; then
17588      runpath_var=
17589      hardcode_libdir_flag_spec_GCJ=
17590      export_dynamic_flag_spec_GCJ=
17591      whole_archive_flag_spec_GCJ=
17592    fi
17593  else
17594    # PORTME fill in a description of your system's linker (not GNU ld)
17595    case $host_os in
17596    aix3*)
17597      allow_undefined_flag_GCJ=unsupported
17598      always_export_symbols_GCJ=yes
17599      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'
17600      # Note: this linker hardcodes the directories in LIBPATH if there
17601      # are no directories specified by -L.
17602      hardcode_minus_L_GCJ=yes
17603      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17604	# Neither direct hardcoding nor static linking is supported with a
17605	# broken collect2.
17606	hardcode_direct_GCJ=unsupported
17607      fi
17608      ;;
17609
17610    aix4* | aix5*)
17611      if test "$host_cpu" = ia64; then
17612	# On IA64, the linker does run time linking by default, so we don't
17613	# have to do anything special.
17614	aix_use_runtimelinking=no
17615	exp_sym_flag='-Bexport'
17616	no_entry_flag=""
17617      else
17618	# If we're using GNU nm, then we don't want the "-C" option.
17619	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17620	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17621	  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'
17622	else
17623	  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'
17624	fi
17625	aix_use_runtimelinking=no
17626
17627	# Test if we are trying to use run time linking or normal
17628	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17629	# need to do runtime linking.
17630	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17631	  for ld_flag in $LDFLAGS; do
17632  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17633  	    aix_use_runtimelinking=yes
17634  	    break
17635  	  fi
17636	  done
17637	  ;;
17638	esac
17639
17640	exp_sym_flag='-bexport'
17641	no_entry_flag='-bnoentry'
17642      fi
17643
17644      # When large executables or shared objects are built, AIX ld can
17645      # have problems creating the table of contents.  If linking a library
17646      # or program results in "error TOC overflow" add -mminimal-toc to
17647      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17648      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17649
17650      archive_cmds_GCJ=''
17651      hardcode_direct_GCJ=yes
17652      hardcode_libdir_separator_GCJ=':'
17653      link_all_deplibs_GCJ=yes
17654
17655      if test "$GCC" = yes; then
17656	case $host_os in aix4.[012]|aix4.[012].*)
17657	# We only want to do this on AIX 4.2 and lower, the check
17658	# below for broken collect2 doesn't work under 4.3+
17659	  collect2name=`${CC} -print-prog-name=collect2`
17660	  if test -f "$collect2name" && \
17661  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17662	  then
17663  	  # We have reworked collect2
17664  	  hardcode_direct_GCJ=yes
17665	  else
17666  	  # We have old collect2
17667  	  hardcode_direct_GCJ=unsupported
17668  	  # It fails to find uninstalled libraries when the uninstalled
17669  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17670  	  # to unsupported forces relinking
17671  	  hardcode_minus_L_GCJ=yes
17672  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17673  	  hardcode_libdir_separator_GCJ=
17674	  fi
17675	  ;;
17676	esac
17677	shared_flag='-shared'
17678	if test "$aix_use_runtimelinking" = yes; then
17679	  shared_flag="$shared_flag "'${wl}-G'
17680	fi
17681      else
17682	# not using gcc
17683	if test "$host_cpu" = ia64; then
17684  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17685  	# chokes on -Wl,-G. The following line is correct:
17686	  shared_flag='-G'
17687	else
17688	  if test "$aix_use_runtimelinking" = yes; then
17689	    shared_flag='${wl}-G'
17690	  else
17691	    shared_flag='${wl}-bM:SRE'
17692	  fi
17693	fi
17694      fi
17695
17696      # It seems that -bexpall does not export symbols beginning with
17697      # underscore (_), so it is better to generate a list of symbols to export.
17698      always_export_symbols_GCJ=yes
17699      if test "$aix_use_runtimelinking" = yes; then
17700	# Warning - without using the other runtime loading flags (-brtl),
17701	# -berok will link without error, but may produce a broken library.
17702	allow_undefined_flag_GCJ='-berok'
17703       # Determine the default libpath from the value encoded in an empty executable.
17704       cat >conftest.$ac_ext <<_ACEOF
17705/* confdefs.h.  */
17706_ACEOF
17707cat confdefs.h >>conftest.$ac_ext
17708cat >>conftest.$ac_ext <<_ACEOF
17709/* end confdefs.h.  */
17710
17711int
17712main ()
17713{
17714
17715  ;
17716  return 0;
17717}
17718_ACEOF
17719rm -f conftest.$ac_objext conftest$ac_exeext
17720if { (ac_try="$ac_link"
17721case "(($ac_try" in
17722  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17723  *) ac_try_echo=$ac_try;;
17724esac
17725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17726  (eval "$ac_link") 2>conftest.er1
17727  ac_status=$?
17728  grep -v '^ *+' conftest.er1 >conftest.err
17729  rm -f conftest.er1
17730  cat conftest.err >&5
17731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732  (exit $ac_status); } && {
17733	 test -z "$ac_c_werror_flag" ||
17734	 test ! -s conftest.err
17735       } && test -s conftest$ac_exeext &&
17736       $as_test_x conftest$ac_exeext; then
17737
17738aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17739}'`
17740# Check for a 64-bit object if we didn't find anything.
17741if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17742}'`; fi
17743else
17744  echo "$as_me: failed program was:" >&5
17745sed 's/^/| /' conftest.$ac_ext >&5
17746
17747
17748fi
17749
17750rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17751      conftest$ac_exeext conftest.$ac_ext
17752if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17753
17754       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17755	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17756       else
17757	if test "$host_cpu" = ia64; then
17758	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17759	  allow_undefined_flag_GCJ="-z nodefs"
17760	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17761	else
17762	 # Determine the default libpath from the value encoded in an empty executable.
17763	 cat >conftest.$ac_ext <<_ACEOF
17764/* confdefs.h.  */
17765_ACEOF
17766cat confdefs.h >>conftest.$ac_ext
17767cat >>conftest.$ac_ext <<_ACEOF
17768/* end confdefs.h.  */
17769
17770int
17771main ()
17772{
17773
17774  ;
17775  return 0;
17776}
17777_ACEOF
17778rm -f conftest.$ac_objext conftest$ac_exeext
17779if { (ac_try="$ac_link"
17780case "(($ac_try" in
17781  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17782  *) ac_try_echo=$ac_try;;
17783esac
17784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17785  (eval "$ac_link") 2>conftest.er1
17786  ac_status=$?
17787  grep -v '^ *+' conftest.er1 >conftest.err
17788  rm -f conftest.er1
17789  cat conftest.err >&5
17790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791  (exit $ac_status); } && {
17792	 test -z "$ac_c_werror_flag" ||
17793	 test ! -s conftest.err
17794       } && test -s conftest$ac_exeext &&
17795       $as_test_x conftest$ac_exeext; then
17796
17797aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17798}'`
17799# Check for a 64-bit object if we didn't find anything.
17800if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17801}'`; fi
17802else
17803  echo "$as_me: failed program was:" >&5
17804sed 's/^/| /' conftest.$ac_ext >&5
17805
17806
17807fi
17808
17809rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17810      conftest$ac_exeext conftest.$ac_ext
17811if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17812
17813	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17814	  # Warning - without using the other run time loading flags,
17815	  # -berok will link without error, but may produce a broken library.
17816	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17817	  allow_undefined_flag_GCJ=' ${wl}-berok'
17818	  # Exported symbols can be pulled into shared objects from archives
17819	  whole_archive_flag_spec_GCJ='$convenience'
17820	  archive_cmds_need_lc_GCJ=yes
17821	  # This is similar to how AIX traditionally builds its shared libraries.
17822	  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'
17823	fi
17824      fi
17825      ;;
17826
17827    amigaos*)
17828      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)'
17829      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17830      hardcode_minus_L_GCJ=yes
17831      # see comment about different semantics on the GNU ld section
17832      ld_shlibs_GCJ=no
17833      ;;
17834
17835    bsdi[45]*)
17836      export_dynamic_flag_spec_GCJ=-rdynamic
17837      ;;
17838
17839    cygwin* | mingw* | pw32*)
17840      # When not using gcc, we currently assume that we are using
17841      # Microsoft Visual C++.
17842      # hardcode_libdir_flag_spec is actually meaningless, as there is
17843      # no search path for DLLs.
17844      hardcode_libdir_flag_spec_GCJ=' '
17845      allow_undefined_flag_GCJ=unsupported
17846      # Tell ltmain to make .lib files, not .a files.
17847      libext=lib
17848      # Tell ltmain to make .dll files, not .so files.
17849      shrext_cmds=".dll"
17850      # FIXME: Setting linknames here is a bad hack.
17851      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17852      # The linker will automatically build a .lib file if we build a DLL.
17853      old_archive_From_new_cmds_GCJ='true'
17854      # FIXME: Should let the user specify the lib program.
17855      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17856      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17857      enable_shared_with_static_runtimes_GCJ=yes
17858      ;;
17859
17860    darwin* | rhapsody*)
17861      case $host_os in
17862        rhapsody* | darwin1.[012])
17863         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17864         ;;
17865       *) # Darwin 1.3 on
17866         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17867           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17868         else
17869           case ${MACOSX_DEPLOYMENT_TARGET} in
17870             10.[012])
17871               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17872               ;;
17873             10.*)
17874               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17875               ;;
17876           esac
17877         fi
17878         ;;
17879      esac
17880      archive_cmds_need_lc_GCJ=no
17881      hardcode_direct_GCJ=no
17882      hardcode_automatic_GCJ=yes
17883      hardcode_shlibpath_var_GCJ=unsupported
17884      whole_archive_flag_spec_GCJ=''
17885      link_all_deplibs_GCJ=yes
17886    if test "$GCC" = yes ; then
17887    	output_verbose_link_cmd='echo'
17888        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17889      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17890      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17891      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17892      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}'
17893    else
17894      case $cc_basename in
17895        xlc*)
17896         output_verbose_link_cmd='echo'
17897         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17898         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17899          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17900         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17901          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}'
17902          ;;
17903       *)
17904         ld_shlibs_GCJ=no
17905          ;;
17906      esac
17907    fi
17908      ;;
17909
17910    dgux*)
17911      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17912      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17913      hardcode_shlibpath_var_GCJ=no
17914      ;;
17915
17916    freebsd1*)
17917      ld_shlibs_GCJ=no
17918      ;;
17919
17920    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17921    # support.  Future versions do this automatically, but an explicit c++rt0.o
17922    # does not break anything, and helps significantly (at the cost of a little
17923    # extra space).
17924    freebsd2.2*)
17925      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17926      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17927      hardcode_direct_GCJ=yes
17928      hardcode_shlibpath_var_GCJ=no
17929      ;;
17930
17931    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17932    freebsd2*)
17933      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17934      hardcode_direct_GCJ=yes
17935      hardcode_minus_L_GCJ=yes
17936      hardcode_shlibpath_var_GCJ=no
17937      ;;
17938
17939    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17940    freebsd* | kfreebsd*-gnu | dragonfly*)
17941      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17942      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17943      hardcode_direct_GCJ=yes
17944      hardcode_shlibpath_var_GCJ=no
17945      ;;
17946
17947    hpux9*)
17948      if test "$GCC" = yes; then
17949	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'
17950      else
17951	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'
17952      fi
17953      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17954      hardcode_libdir_separator_GCJ=:
17955      hardcode_direct_GCJ=yes
17956
17957      # hardcode_minus_L: Not really in the search PATH,
17958      # but as the default location of the library.
17959      hardcode_minus_L_GCJ=yes
17960      export_dynamic_flag_spec_GCJ='${wl}-E'
17961      ;;
17962
17963    hpux10*)
17964      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17965	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17966      else
17967	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17968      fi
17969      if test "$with_gnu_ld" = no; then
17970	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17971	hardcode_libdir_separator_GCJ=:
17972
17973	hardcode_direct_GCJ=yes
17974	export_dynamic_flag_spec_GCJ='${wl}-E'
17975
17976	# hardcode_minus_L: Not really in the search PATH,
17977	# but as the default location of the library.
17978	hardcode_minus_L_GCJ=yes
17979      fi
17980      ;;
17981
17982    hpux11*)
17983      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17984	case $host_cpu in
17985	hppa*64*)
17986	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17987	  ;;
17988	ia64*)
17989	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17990	  ;;
17991	*)
17992	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17993	  ;;
17994	esac
17995      else
17996	case $host_cpu in
17997	hppa*64*)
17998	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17999	  ;;
18000	ia64*)
18001	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18002	  ;;
18003	*)
18004	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18005	  ;;
18006	esac
18007      fi
18008      if test "$with_gnu_ld" = no; then
18009	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18010	hardcode_libdir_separator_GCJ=:
18011
18012	case $host_cpu in
18013	hppa*64*|ia64*)
18014	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18015	  hardcode_direct_GCJ=no
18016	  hardcode_shlibpath_var_GCJ=no
18017	  ;;
18018	*)
18019	  hardcode_direct_GCJ=yes
18020	  export_dynamic_flag_spec_GCJ='${wl}-E'
18021
18022	  # hardcode_minus_L: Not really in the search PATH,
18023	  # but as the default location of the library.
18024	  hardcode_minus_L_GCJ=yes
18025	  ;;
18026	esac
18027      fi
18028      ;;
18029
18030    irix5* | irix6* | nonstopux*)
18031      if test "$GCC" = yes; then
18032	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'
18033      else
18034	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'
18035	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18036      fi
18037      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18038      hardcode_libdir_separator_GCJ=:
18039      link_all_deplibs_GCJ=yes
18040      ;;
18041
18042    netbsd*)
18043      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18044	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18045      else
18046	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18047      fi
18048      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18049      hardcode_direct_GCJ=yes
18050      hardcode_shlibpath_var_GCJ=no
18051      ;;
18052
18053    newsos6)
18054      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18055      hardcode_direct_GCJ=yes
18056      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18057      hardcode_libdir_separator_GCJ=:
18058      hardcode_shlibpath_var_GCJ=no
18059      ;;
18060
18061    openbsd*)
18062      hardcode_direct_GCJ=yes
18063      hardcode_shlibpath_var_GCJ=no
18064      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18065	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18066	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18067	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18068	export_dynamic_flag_spec_GCJ='${wl}-E'
18069      else
18070       case $host_os in
18071	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18072	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18073	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
18074	   ;;
18075	 *)
18076	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18077	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18078	   ;;
18079       esac
18080      fi
18081      ;;
18082
18083    os2*)
18084      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18085      hardcode_minus_L_GCJ=yes
18086      allow_undefined_flag_GCJ=unsupported
18087      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'
18088      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18089      ;;
18090
18091    osf3*)
18092      if test "$GCC" = yes; then
18093	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18094	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'
18095      else
18096	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18097	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'
18098      fi
18099      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18100      hardcode_libdir_separator_GCJ=:
18101      ;;
18102
18103    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18104      if test "$GCC" = yes; then
18105	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18106	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'
18107	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18108      else
18109	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18110	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'
18111	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~
18112	$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'
18113
18114	# Both c and cxx compiler support -rpath directly
18115	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18116      fi
18117      hardcode_libdir_separator_GCJ=:
18118      ;;
18119
18120    solaris*)
18121      no_undefined_flag_GCJ=' -z text'
18122      if test "$GCC" = yes; then
18123	wlarc='${wl}'
18124	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18125	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18126	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18127      else
18128	wlarc=''
18129	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18130	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18131  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18132      fi
18133      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18134      hardcode_shlibpath_var_GCJ=no
18135      case $host_os in
18136      solaris2.[0-5] | solaris2.[0-5].*) ;;
18137      *)
18138 	# The compiler driver will combine linker options so we
18139 	# cannot just pass the convience library names through
18140 	# without $wl, iff we do not link with $LD.
18141 	# Luckily, gcc supports the same syntax we need for Sun Studio.
18142 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18143 	case $wlarc in
18144 	'')
18145 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18146 	*)
18147 	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18148 	esac ;;
18149      esac
18150      link_all_deplibs_GCJ=yes
18151      ;;
18152
18153    sunos4*)
18154      if test "x$host_vendor" = xsequent; then
18155	# Use $CC to link under sequent, because it throws in some extra .o
18156	# files that make .init and .fini sections work.
18157	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18158      else
18159	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18160      fi
18161      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18162      hardcode_direct_GCJ=yes
18163      hardcode_minus_L_GCJ=yes
18164      hardcode_shlibpath_var_GCJ=no
18165      ;;
18166
18167    sysv4)
18168      case $host_vendor in
18169	sni)
18170	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18171	  hardcode_direct_GCJ=yes # is this really true???
18172	;;
18173	siemens)
18174	  ## LD is ld it makes a PLAMLIB
18175	  ## CC just makes a GrossModule.
18176	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18177	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18178	  hardcode_direct_GCJ=no
18179        ;;
18180	motorola)
18181	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18182	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18183	;;
18184      esac
18185      runpath_var='LD_RUN_PATH'
18186      hardcode_shlibpath_var_GCJ=no
18187      ;;
18188
18189    sysv4.3*)
18190      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18191      hardcode_shlibpath_var_GCJ=no
18192      export_dynamic_flag_spec_GCJ='-Bexport'
18193      ;;
18194
18195    sysv4*MP*)
18196      if test -d /usr/nec; then
18197	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18198	hardcode_shlibpath_var_GCJ=no
18199	runpath_var=LD_RUN_PATH
18200	hardcode_runpath_var=yes
18201	ld_shlibs_GCJ=yes
18202      fi
18203      ;;
18204
18205    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18206      no_undefined_flag_GCJ='${wl}-z,text'
18207      archive_cmds_need_lc_GCJ=no
18208      hardcode_shlibpath_var_GCJ=no
18209      runpath_var='LD_RUN_PATH'
18210
18211      if test "$GCC" = yes; then
18212	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18213	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18214      else
18215	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18216	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18217      fi
18218      ;;
18219
18220    sysv5* | sco3.2v5* | sco5v6*)
18221      # Note: We can NOT use -z defs as we might desire, because we do not
18222      # link with -lc, and that would cause any symbols used from libc to
18223      # always be unresolved, which means just about no library would
18224      # ever link correctly.  If we're not using GNU ld we use -z text
18225      # though, which does catch some bad symbols but isn't as heavy-handed
18226      # as -z defs.
18227      no_undefined_flag_GCJ='${wl}-z,text'
18228      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18229      archive_cmds_need_lc_GCJ=no
18230      hardcode_shlibpath_var_GCJ=no
18231      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18232      hardcode_libdir_separator_GCJ=':'
18233      link_all_deplibs_GCJ=yes
18234      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18235      runpath_var='LD_RUN_PATH'
18236
18237      if test "$GCC" = yes; then
18238	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18239	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18240      else
18241	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18242	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18243      fi
18244      ;;
18245
18246    uts4*)
18247      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18248      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18249      hardcode_shlibpath_var_GCJ=no
18250      ;;
18251
18252    *)
18253      ld_shlibs_GCJ=no
18254      ;;
18255    esac
18256  fi
18257
18258{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18259echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18260test "$ld_shlibs_GCJ" = no && can_build_shared=no
18261
18262#
18263# Do we need to explicitly link libc?
18264#
18265case "x$archive_cmds_need_lc_GCJ" in
18266x|xyes)
18267  # Assume -lc should be added
18268  archive_cmds_need_lc_GCJ=yes
18269
18270  if test "$enable_shared" = yes && test "$GCC" = yes; then
18271    case $archive_cmds_GCJ in
18272    *'~'*)
18273      # FIXME: we may have to deal with multi-command sequences.
18274      ;;
18275    '$CC '*)
18276      # Test whether the compiler implicitly links with -lc since on some
18277      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18278      # to ld, don't add -lc before -lgcc.
18279      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18280echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18281      $rm conftest*
18282      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18283
18284      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18285  (eval $ac_compile) 2>&5
18286  ac_status=$?
18287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288  (exit $ac_status); } 2>conftest.err; then
18289        soname=conftest
18290        lib=conftest
18291        libobjs=conftest.$ac_objext
18292        deplibs=
18293        wl=$lt_prog_compiler_wl_GCJ
18294	pic_flag=$lt_prog_compiler_pic_GCJ
18295        compiler_flags=-v
18296        linker_flags=-v
18297        verstring=
18298        output_objdir=.
18299        libname=conftest
18300        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18301        allow_undefined_flag_GCJ=
18302        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18303  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18304  ac_status=$?
18305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306  (exit $ac_status); }
18307        then
18308	  archive_cmds_need_lc_GCJ=no
18309        else
18310	  archive_cmds_need_lc_GCJ=yes
18311        fi
18312        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18313      else
18314        cat conftest.err 1>&5
18315      fi
18316      $rm conftest*
18317      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18318echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18319      ;;
18320    esac
18321  fi
18322  ;;
18323esac
18324
18325{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18326echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18327library_names_spec=
18328libname_spec='lib$name'
18329soname_spec=
18330shrext_cmds=".so"
18331postinstall_cmds=
18332postuninstall_cmds=
18333finish_cmds=
18334finish_eval=
18335shlibpath_var=
18336shlibpath_overrides_runpath=unknown
18337version_type=none
18338dynamic_linker="$host_os ld.so"
18339sys_lib_dlsearch_path_spec="/lib /usr/lib"
18340if test "$GCC" = yes; then
18341  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18342  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18343    # if the path contains ";" then we assume it to be the separator
18344    # otherwise default to the standard path separator (i.e. ":") - it is
18345    # assumed that no part of a normal pathname contains ";" but that should
18346    # okay in the real world where ";" in dirpaths is itself problematic.
18347    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18348  else
18349    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18350  fi
18351else
18352  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18353fi
18354need_lib_prefix=unknown
18355hardcode_into_libs=no
18356
18357# when you set need_version to no, make sure it does not cause -set_version
18358# flags to be left without arguments
18359need_version=unknown
18360
18361case $host_os in
18362aix3*)
18363  version_type=linux
18364  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18365  shlibpath_var=LIBPATH
18366
18367  # AIX 3 has no versioning support, so we append a major version to the name.
18368  soname_spec='${libname}${release}${shared_ext}$major'
18369  ;;
18370
18371aix4* | aix5*)
18372  version_type=linux
18373  need_lib_prefix=no
18374  need_version=no
18375  hardcode_into_libs=yes
18376  if test "$host_cpu" = ia64; then
18377    # AIX 5 supports IA64
18378    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18379    shlibpath_var=LD_LIBRARY_PATH
18380  else
18381    # With GCC up to 2.95.x, collect2 would create an import file
18382    # for dependence libraries.  The import file would start with
18383    # the line `#! .'.  This would cause the generated library to
18384    # depend on `.', always an invalid library.  This was fixed in
18385    # development snapshots of GCC prior to 3.0.
18386    case $host_os in
18387      aix4 | aix4.[01] | aix4.[01].*)
18388      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18389	   echo ' yes '
18390	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18391	:
18392      else
18393	can_build_shared=no
18394      fi
18395      ;;
18396    esac
18397    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18398    # soname into executable. Probably we can add versioning support to
18399    # collect2, so additional links can be useful in future.
18400    if test "$aix_use_runtimelinking" = yes; then
18401      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18402      # instead of lib<name>.a to let people know that these are not
18403      # typical AIX shared libraries.
18404      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18405    else
18406      # We preserve .a as extension for shared libraries through AIX4.2
18407      # and later when we are not doing run time linking.
18408      library_names_spec='${libname}${release}.a $libname.a'
18409      soname_spec='${libname}${release}${shared_ext}$major'
18410    fi
18411    shlibpath_var=LIBPATH
18412  fi
18413  ;;
18414
18415amigaos*)
18416  library_names_spec='$libname.ixlibrary $libname.a'
18417  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18418  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'
18419  ;;
18420
18421beos*)
18422  library_names_spec='${libname}${shared_ext}'
18423  dynamic_linker="$host_os ld.so"
18424  shlibpath_var=LIBRARY_PATH
18425  ;;
18426
18427bsdi[45]*)
18428  version_type=linux
18429  need_version=no
18430  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18431  soname_spec='${libname}${release}${shared_ext}$major'
18432  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18433  shlibpath_var=LD_LIBRARY_PATH
18434  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18435  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18436  # the default ld.so.conf also contains /usr/contrib/lib and
18437  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18438  # libtool to hard-code these into programs
18439  ;;
18440
18441cygwin* | mingw* | pw32*)
18442  version_type=windows
18443  shrext_cmds=".dll"
18444  need_version=no
18445  need_lib_prefix=no
18446
18447  case $GCC,$host_os in
18448  yes,cygwin* | yes,mingw* | yes,pw32*)
18449    library_names_spec='$libname.dll.a'
18450    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18451    postinstall_cmds='base_file=`basename \${file}`~
18452      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18453      dldir=$destdir/`dirname \$dlpath`~
18454      test -d \$dldir || mkdir -p \$dldir~
18455      $install_prog $dir/$dlname \$dldir/$dlname~
18456      chmod a+x \$dldir/$dlname'
18457    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18458      dlpath=$dir/\$dldll~
18459       $rm \$dlpath'
18460    shlibpath_overrides_runpath=yes
18461
18462    case $host_os in
18463    cygwin*)
18464      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18465      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18466      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18467      ;;
18468    mingw*)
18469      # MinGW DLLs use traditional 'lib' prefix
18470      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18471      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18472      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18473        # It is most probably a Windows format PATH printed by
18474        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18475        # path with ; separators, and with drive letters. We can handle the
18476        # drive letters (cygwin fileutils understands them), so leave them,
18477        # especially as we might pass files found there to a mingw objdump,
18478        # which wouldn't understand a cygwinified path. Ahh.
18479        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18480      else
18481        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18482      fi
18483      ;;
18484    pw32*)
18485      # pw32 DLLs use 'pw' prefix rather than 'lib'
18486      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18487      ;;
18488    esac
18489    ;;
18490
18491  *)
18492    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18493    ;;
18494  esac
18495  dynamic_linker='Win32 ld.exe'
18496  # FIXME: first we should search . and the directory the executable is in
18497  shlibpath_var=PATH
18498  ;;
18499
18500darwin* | rhapsody*)
18501  dynamic_linker="$host_os dyld"
18502  version_type=darwin
18503  need_lib_prefix=no
18504  need_version=no
18505  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18506  soname_spec='${libname}${release}${major}$shared_ext'
18507  shlibpath_overrides_runpath=yes
18508  shlibpath_var=DYLD_LIBRARY_PATH
18509  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18510  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18511  if test "$GCC" = yes; then
18512    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18513  else
18514    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18515  fi
18516  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18517  ;;
18518
18519dgux*)
18520  version_type=linux
18521  need_lib_prefix=no
18522  need_version=no
18523  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18524  soname_spec='${libname}${release}${shared_ext}$major'
18525  shlibpath_var=LD_LIBRARY_PATH
18526  ;;
18527
18528freebsd1*)
18529  dynamic_linker=no
18530  ;;
18531
18532kfreebsd*-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  shlibpath_var=LD_LIBRARY_PATH
18539  shlibpath_overrides_runpath=no
18540  hardcode_into_libs=yes
18541  dynamic_linker='GNU ld.so'
18542  ;;
18543
18544freebsd* | dragonfly*)
18545  # DragonFly does not have aout.  When/if they implement a new
18546  # versioning mechanism, adjust this.
18547  if test -x /usr/bin/objformat; then
18548    objformat=`/usr/bin/objformat`
18549  else
18550    case $host_os in
18551    freebsd[123]*) objformat=aout ;;
18552    *) objformat=elf ;;
18553    esac
18554  fi
18555  version_type=freebsd-$objformat
18556  case $version_type in
18557    freebsd-elf*)
18558      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18559      need_version=no
18560      need_lib_prefix=no
18561      ;;
18562    freebsd-*)
18563      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18564      need_version=yes
18565      ;;
18566  esac
18567  shlibpath_var=LD_LIBRARY_PATH
18568  case $host_os in
18569  freebsd2*)
18570    shlibpath_overrides_runpath=yes
18571    ;;
18572  freebsd3.[01]* | freebsdelf3.[01]*)
18573    shlibpath_overrides_runpath=yes
18574    hardcode_into_libs=yes
18575    ;;
18576  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18577  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18578    shlibpath_overrides_runpath=no
18579    hardcode_into_libs=yes
18580    ;;
18581  freebsd*) # from 4.6 on
18582    shlibpath_overrides_runpath=yes
18583    hardcode_into_libs=yes
18584    ;;
18585  esac
18586  ;;
18587
18588gnu*)
18589  version_type=linux
18590  need_lib_prefix=no
18591  need_version=no
18592  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18593  soname_spec='${libname}${release}${shared_ext}$major'
18594  shlibpath_var=LD_LIBRARY_PATH
18595  hardcode_into_libs=yes
18596  ;;
18597
18598hpux9* | hpux10* | hpux11*)
18599  # Give a soname corresponding to the major version so that dld.sl refuses to
18600  # link against other versions.
18601  version_type=sunos
18602  need_lib_prefix=no
18603  need_version=no
18604  case $host_cpu in
18605  ia64*)
18606    shrext_cmds='.so'
18607    hardcode_into_libs=yes
18608    dynamic_linker="$host_os dld.so"
18609    shlibpath_var=LD_LIBRARY_PATH
18610    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18611    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18612    soname_spec='${libname}${release}${shared_ext}$major'
18613    if test "X$HPUX_IA64_MODE" = X32; then
18614      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18615    else
18616      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18617    fi
18618    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18619    ;;
18620   hppa*64*)
18621     shrext_cmds='.sl'
18622     hardcode_into_libs=yes
18623     dynamic_linker="$host_os dld.sl"
18624     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18625     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18626     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18627     soname_spec='${libname}${release}${shared_ext}$major'
18628     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18629     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18630     ;;
18631   *)
18632    shrext_cmds='.sl'
18633    dynamic_linker="$host_os dld.sl"
18634    shlibpath_var=SHLIB_PATH
18635    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18636    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18637    soname_spec='${libname}${release}${shared_ext}$major'
18638    ;;
18639  esac
18640  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18641  postinstall_cmds='chmod 555 $lib'
18642  ;;
18643
18644interix3*)
18645  version_type=linux
18646  need_lib_prefix=no
18647  need_version=no
18648  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18649  soname_spec='${libname}${release}${shared_ext}$major'
18650  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18651  shlibpath_var=LD_LIBRARY_PATH
18652  shlibpath_overrides_runpath=no
18653  hardcode_into_libs=yes
18654  ;;
18655
18656irix5* | irix6* | nonstopux*)
18657  case $host_os in
18658    nonstopux*) version_type=nonstopux ;;
18659    *)
18660	if test "$lt_cv_prog_gnu_ld" = yes; then
18661		version_type=linux
18662	else
18663		version_type=irix
18664	fi ;;
18665  esac
18666  need_lib_prefix=no
18667  need_version=no
18668  soname_spec='${libname}${release}${shared_ext}$major'
18669  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18670  case $host_os in
18671  irix5* | nonstopux*)
18672    libsuff= shlibsuff=
18673    ;;
18674  *)
18675    case $LD in # libtool.m4 will add one of these switches to LD
18676    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18677      libsuff= shlibsuff= libmagic=32-bit;;
18678    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18679      libsuff=32 shlibsuff=N32 libmagic=N32;;
18680    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18681      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18682    *) libsuff= shlibsuff= libmagic=never-match;;
18683    esac
18684    ;;
18685  esac
18686  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18687  shlibpath_overrides_runpath=no
18688  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18689  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18690  hardcode_into_libs=yes
18691  ;;
18692
18693# No shared lib support for Linux oldld, aout, or coff.
18694linux*oldld* | linux*aout* | linux*coff*)
18695  dynamic_linker=no
18696  ;;
18697
18698# This must be Linux ELF.
18699linux*)
18700  version_type=linux
18701  need_lib_prefix=no
18702  need_version=no
18703  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18704  soname_spec='${libname}${release}${shared_ext}$major'
18705  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18706  shlibpath_var=LD_LIBRARY_PATH
18707  shlibpath_overrides_runpath=no
18708  # This implies no fast_install, which is unacceptable.
18709  # Some rework will be needed to allow for fast_install
18710  # before this can be enabled.
18711  hardcode_into_libs=yes
18712
18713  # find out which ABI we are using
18714  libsuff=
18715  case "$host_cpu" in
18716  x86_64*|s390x*|powerpc64*)
18717    echo '#line 18717 "configure"' > conftest.$ac_ext
18718    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18719  (eval $ac_compile) 2>&5
18720  ac_status=$?
18721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722  (exit $ac_status); }; then
18723      case `/usr/bin/file conftest.$ac_objext` in
18724      *64-bit*)
18725        libsuff=64
18726        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18727        ;;
18728      esac
18729    fi
18730    rm -rf conftest*
18731    ;;
18732  esac
18733
18734  # Append ld.so.conf contents to the search path
18735  if test -f /etc/ld.so.conf; then
18736    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18737    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18738  fi
18739
18740  # We used to test for /lib/ld.so.1 and disable shared libraries on
18741  # powerpc, because MkLinux only supported shared libraries with the
18742  # GNU dynamic linker.  Since this was broken with cross compilers,
18743  # most powerpc-linux boxes support dynamic linking these days and
18744  # people can always --disable-shared, the test was removed, and we
18745  # assume the GNU/Linux dynamic linker is in use.
18746  dynamic_linker='GNU/Linux ld.so'
18747  ;;
18748
18749knetbsd*-gnu)
18750  version_type=linux
18751  need_lib_prefix=no
18752  need_version=no
18753  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18754  soname_spec='${libname}${release}${shared_ext}$major'
18755  shlibpath_var=LD_LIBRARY_PATH
18756  shlibpath_overrides_runpath=no
18757  hardcode_into_libs=yes
18758  dynamic_linker='GNU ld.so'
18759  ;;
18760
18761netbsd*)
18762  version_type=sunos
18763  need_lib_prefix=no
18764  need_version=no
18765  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18766    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18767    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18768    dynamic_linker='NetBSD (a.out) ld.so'
18769  else
18770    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18771    soname_spec='${libname}${release}${shared_ext}$major'
18772    dynamic_linker='NetBSD ld.elf_so'
18773  fi
18774  shlibpath_var=LD_LIBRARY_PATH
18775  shlibpath_overrides_runpath=yes
18776  hardcode_into_libs=yes
18777  ;;
18778
18779newsos6)
18780  version_type=linux
18781  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18782  shlibpath_var=LD_LIBRARY_PATH
18783  shlibpath_overrides_runpath=yes
18784  ;;
18785
18786nto-qnx*)
18787  version_type=linux
18788  need_lib_prefix=no
18789  need_version=no
18790  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18791  soname_spec='${libname}${release}${shared_ext}$major'
18792  shlibpath_var=LD_LIBRARY_PATH
18793  shlibpath_overrides_runpath=yes
18794  ;;
18795
18796openbsd*)
18797  version_type=sunos
18798  sys_lib_dlsearch_path_spec="/usr/lib"
18799  need_lib_prefix=no
18800  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18801  case $host_os in
18802    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18803    *)                         need_version=no  ;;
18804  esac
18805  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18806  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18807  shlibpath_var=LD_LIBRARY_PATH
18808  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18809    case $host_os in
18810      openbsd2.[89] | openbsd2.[89].*)
18811	shlibpath_overrides_runpath=no
18812	;;
18813      *)
18814	shlibpath_overrides_runpath=yes
18815	;;
18816      esac
18817  else
18818    shlibpath_overrides_runpath=yes
18819  fi
18820  ;;
18821
18822os2*)
18823  libname_spec='$name'
18824  shrext_cmds=".dll"
18825  need_lib_prefix=no
18826  library_names_spec='$libname${shared_ext} $libname.a'
18827  dynamic_linker='OS/2 ld.exe'
18828  shlibpath_var=LIBPATH
18829  ;;
18830
18831osf3* | osf4* | osf5*)
18832  version_type=osf
18833  need_lib_prefix=no
18834  need_version=no
18835  soname_spec='${libname}${release}${shared_ext}$major'
18836  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18837  shlibpath_var=LD_LIBRARY_PATH
18838  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18839  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18840  ;;
18841
18842solaris*)
18843  version_type=linux
18844  need_lib_prefix=no
18845  need_version=no
18846  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18847  soname_spec='${libname}${release}${shared_ext}$major'
18848  shlibpath_var=LD_LIBRARY_PATH
18849  shlibpath_overrides_runpath=yes
18850  hardcode_into_libs=yes
18851  # ldd complains unless libraries are executable
18852  postinstall_cmds='chmod +x $lib'
18853  ;;
18854
18855sunos4*)
18856  version_type=sunos
18857  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18858  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18859  shlibpath_var=LD_LIBRARY_PATH
18860  shlibpath_overrides_runpath=yes
18861  if test "$with_gnu_ld" = yes; then
18862    need_lib_prefix=no
18863  fi
18864  need_version=yes
18865  ;;
18866
18867sysv4 | sysv4.3*)
18868  version_type=linux
18869  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18870  soname_spec='${libname}${release}${shared_ext}$major'
18871  shlibpath_var=LD_LIBRARY_PATH
18872  case $host_vendor in
18873    sni)
18874      shlibpath_overrides_runpath=no
18875      need_lib_prefix=no
18876      export_dynamic_flag_spec='${wl}-Blargedynsym'
18877      runpath_var=LD_RUN_PATH
18878      ;;
18879    siemens)
18880      need_lib_prefix=no
18881      ;;
18882    motorola)
18883      need_lib_prefix=no
18884      need_version=no
18885      shlibpath_overrides_runpath=no
18886      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18887      ;;
18888  esac
18889  ;;
18890
18891sysv4*MP*)
18892  if test -d /usr/nec ;then
18893    version_type=linux
18894    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18895    soname_spec='$libname${shared_ext}.$major'
18896    shlibpath_var=LD_LIBRARY_PATH
18897  fi
18898  ;;
18899
18900sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18901  version_type=freebsd-elf
18902  need_lib_prefix=no
18903  need_version=no
18904  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18905  soname_spec='${libname}${release}${shared_ext}$major'
18906  shlibpath_var=LD_LIBRARY_PATH
18907  hardcode_into_libs=yes
18908  if test "$with_gnu_ld" = yes; then
18909    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18910    shlibpath_overrides_runpath=no
18911  else
18912    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18913    shlibpath_overrides_runpath=yes
18914    case $host_os in
18915      sco3.2v5*)
18916        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18917	;;
18918    esac
18919  fi
18920  sys_lib_dlsearch_path_spec='/usr/lib'
18921  ;;
18922
18923uts4*)
18924  version_type=linux
18925  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18926  soname_spec='${libname}${release}${shared_ext}$major'
18927  shlibpath_var=LD_LIBRARY_PATH
18928  ;;
18929
18930*)
18931  dynamic_linker=no
18932  ;;
18933esac
18934{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18935echo "${ECHO_T}$dynamic_linker" >&6; }
18936test "$dynamic_linker" = no && can_build_shared=no
18937
18938variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18939if test "$GCC" = yes; then
18940  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18941fi
18942
18943{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18944echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18945hardcode_action_GCJ=
18946if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18947   test -n "$runpath_var_GCJ" || \
18948   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18949
18950  # We can hardcode non-existant directories.
18951  if test "$hardcode_direct_GCJ" != no &&
18952     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18953     # have to relink, otherwise we might link with an installed library
18954     # when we should be linking with a yet-to-be-installed one
18955     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18956     test "$hardcode_minus_L_GCJ" != no; then
18957    # Linking always hardcodes the temporary library directory.
18958    hardcode_action_GCJ=relink
18959  else
18960    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18961    hardcode_action_GCJ=immediate
18962  fi
18963else
18964  # We cannot hardcode anything, or else we can only hardcode existing
18965  # directories.
18966  hardcode_action_GCJ=unsupported
18967fi
18968{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18969echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18970
18971if test "$hardcode_action_GCJ" = relink; then
18972  # Fast installation is not supported
18973  enable_fast_install=no
18974elif test "$shlibpath_overrides_runpath" = yes ||
18975     test "$enable_shared" = no; then
18976  # Fast installation is not necessary
18977  enable_fast_install=needless
18978fi
18979
18980
18981# The else clause should only fire when bootstrapping the
18982# libtool distribution, otherwise you forgot to ship ltmain.sh
18983# with your package, and you will get complaints that there are
18984# no rules to generate ltmain.sh.
18985if test -f "$ltmain"; then
18986  # See if we are running on zsh, and set the options which allow our commands through
18987  # without removal of \ escapes.
18988  if test -n "${ZSH_VERSION+set}" ; then
18989    setopt NO_GLOB_SUBST
18990  fi
18991  # Now quote all the things that may contain metacharacters while being
18992  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18993  # variables and quote the copies for generation of the libtool script.
18994  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18995    SED SHELL STRIP \
18996    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18997    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18998    deplibs_check_method reload_flag reload_cmds need_locks \
18999    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19000    lt_cv_sys_global_symbol_to_c_name_address \
19001    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19002    old_postinstall_cmds old_postuninstall_cmds \
19003    compiler_GCJ \
19004    CC_GCJ \
19005    LD_GCJ \
19006    lt_prog_compiler_wl_GCJ \
19007    lt_prog_compiler_pic_GCJ \
19008    lt_prog_compiler_static_GCJ \
19009    lt_prog_compiler_no_builtin_flag_GCJ \
19010    export_dynamic_flag_spec_GCJ \
19011    thread_safe_flag_spec_GCJ \
19012    whole_archive_flag_spec_GCJ \
19013    enable_shared_with_static_runtimes_GCJ \
19014    old_archive_cmds_GCJ \
19015    old_archive_from_new_cmds_GCJ \
19016    predep_objects_GCJ \
19017    postdep_objects_GCJ \
19018    predeps_GCJ \
19019    postdeps_GCJ \
19020    compiler_lib_search_path_GCJ \
19021    archive_cmds_GCJ \
19022    archive_expsym_cmds_GCJ \
19023    postinstall_cmds_GCJ \
19024    postuninstall_cmds_GCJ \
19025    old_archive_from_expsyms_cmds_GCJ \
19026    allow_undefined_flag_GCJ \
19027    no_undefined_flag_GCJ \
19028    export_symbols_cmds_GCJ \
19029    hardcode_libdir_flag_spec_GCJ \
19030    hardcode_libdir_flag_spec_ld_GCJ \
19031    hardcode_libdir_separator_GCJ \
19032    hardcode_automatic_GCJ \
19033    module_cmds_GCJ \
19034    module_expsym_cmds_GCJ \
19035    lt_cv_prog_compiler_c_o_GCJ \
19036    exclude_expsyms_GCJ \
19037    include_expsyms_GCJ; do
19038
19039    case $var in
19040    old_archive_cmds_GCJ | \
19041    old_archive_from_new_cmds_GCJ | \
19042    archive_cmds_GCJ | \
19043    archive_expsym_cmds_GCJ | \
19044    module_cmds_GCJ | \
19045    module_expsym_cmds_GCJ | \
19046    old_archive_from_expsyms_cmds_GCJ | \
19047    export_symbols_cmds_GCJ | \
19048    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19049    postinstall_cmds | postuninstall_cmds | \
19050    old_postinstall_cmds | old_postuninstall_cmds | \
19051    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19052      # Double-quote double-evaled strings.
19053      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19054      ;;
19055    *)
19056      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19057      ;;
19058    esac
19059  done
19060
19061  case $lt_echo in
19062  *'\$0 --fallback-echo"')
19063    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19064    ;;
19065  esac
19066
19067cfgfile="$ofile"
19068
19069  cat <<__EOF__ >> "$cfgfile"
19070# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19071
19072# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19073
19074# Shell to use when invoking shell scripts.
19075SHELL=$lt_SHELL
19076
19077# Whether or not to build shared libraries.
19078build_libtool_libs=$enable_shared
19079
19080# Whether or not to build static libraries.
19081build_old_libs=$enable_static
19082
19083# Whether or not to add -lc for building shared libraries.
19084build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19085
19086# Whether or not to disallow shared libs when runtime libs are static
19087allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19088
19089# Whether or not to optimize for fast installation.
19090fast_install=$enable_fast_install
19091
19092# The host system.
19093host_alias=$host_alias
19094host=$host
19095host_os=$host_os
19096
19097# The build system.
19098build_alias=$build_alias
19099build=$build
19100build_os=$build_os
19101
19102# An echo program that does not interpret backslashes.
19103echo=$lt_echo
19104
19105# The archiver.
19106AR=$lt_AR
19107AR_FLAGS=$lt_AR_FLAGS
19108
19109# A C compiler.
19110LTCC=$lt_LTCC
19111
19112# LTCC compiler flags.
19113LTCFLAGS=$lt_LTCFLAGS
19114
19115# A language-specific compiler.
19116CC=$lt_compiler_GCJ
19117
19118# Is the compiler the GNU C compiler?
19119with_gcc=$GCC_GCJ
19120
19121gcc_dir=\`$LTCC -print-file-name=. | $SED 's,/\.$,,'\`
19122gcc_ver=\`$LTCC -dumpversion\`
19123
19124# An ERE matcher.
19125EGREP=$lt_EGREP
19126
19127# The linker used to build libraries.
19128LD=$lt_LD_GCJ
19129
19130# Whether we need hard or soft links.
19131LN_S=$lt_LN_S
19132
19133# A BSD-compatible nm program.
19134NM=$lt_NM
19135
19136# A symbol stripping program
19137STRIP=$lt_STRIP
19138
19139# Used to examine libraries when file_magic_cmd begins "file"
19140MAGIC_CMD=$MAGIC_CMD
19141
19142# Used on cygwin: DLL creation program.
19143DLLTOOL="$DLLTOOL"
19144
19145# Used on cygwin: object dumper.
19146OBJDUMP="$OBJDUMP"
19147
19148# Used on cygwin: assembler.
19149AS="$AS"
19150
19151# The name of the directory that contains temporary libtool files.
19152objdir=$objdir
19153
19154# How to create reloadable object files.
19155reload_flag=$lt_reload_flag
19156reload_cmds=$lt_reload_cmds
19157
19158# How to pass a linker flag through the compiler.
19159wl=$lt_lt_prog_compiler_wl_GCJ
19160
19161# Object file suffix (normally "o").
19162objext="$ac_objext"
19163
19164# Old archive suffix (normally "a").
19165libext="$libext"
19166
19167# Shared library suffix (normally ".so").
19168shrext_cmds='$shrext_cmds'
19169
19170# Executable file suffix (normally "").
19171exeext="$exeext"
19172
19173# Additional compiler flags for building library objects.
19174pic_flag=$lt_lt_prog_compiler_pic_GCJ
19175pic_mode=$pic_mode
19176
19177# What is the maximum length of a command?
19178max_cmd_len=$lt_cv_sys_max_cmd_len
19179
19180# Does compiler simultaneously support -c and -o options?
19181compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19182
19183# Must we lock files when doing compilation?
19184need_locks=$lt_need_locks
19185
19186# Do we need the lib prefix for modules?
19187need_lib_prefix=$need_lib_prefix
19188
19189# Do we need a version for libraries?
19190need_version=$need_version
19191
19192# Whether dlopen is supported.
19193dlopen_support=$enable_dlopen
19194
19195# Whether dlopen of programs is supported.
19196dlopen_self=$enable_dlopen_self
19197
19198# Whether dlopen of statically linked programs is supported.
19199dlopen_self_static=$enable_dlopen_self_static
19200
19201# Compiler flag to prevent dynamic linking.
19202link_static_flag=$lt_lt_prog_compiler_static_GCJ
19203
19204# Compiler flag to turn off builtin functions.
19205no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19206
19207# Compiler flag to allow reflexive dlopens.
19208export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19209
19210# Compiler flag to generate shared objects directly from archives.
19211whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19212
19213# Compiler flag to generate thread-safe objects.
19214thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19215
19216# Library versioning type.
19217version_type=$version_type
19218
19219# Format of library name prefix.
19220libname_spec=$lt_libname_spec
19221
19222# List of archive names.  First name is the real one, the rest are links.
19223# The last name is the one that the linker finds with -lNAME.
19224library_names_spec=$lt_library_names_spec
19225
19226# The coded name of the library, if different from the real name.
19227soname_spec=$lt_soname_spec
19228
19229# Commands used to build and install an old-style archive.
19230RANLIB=$lt_RANLIB
19231old_archive_cmds=$lt_old_archive_cmds_GCJ
19232old_postinstall_cmds=$lt_old_postinstall_cmds
19233old_postuninstall_cmds=$lt_old_postuninstall_cmds
19234
19235# Create an old-style archive from a shared archive.
19236old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19237
19238# Create a temporary old-style archive to link instead of a shared archive.
19239old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19240
19241# Commands used to build and install a shared archive.
19242archive_cmds=$lt_archive_cmds_GCJ
19243archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19244postinstall_cmds=$lt_postinstall_cmds
19245postuninstall_cmds=$lt_postuninstall_cmds
19246
19247# Commands used to build a loadable module (assumed same as above if empty)
19248module_cmds=$lt_module_cmds_GCJ
19249module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19250
19251# Commands to strip libraries.
19252old_striplib=$lt_old_striplib
19253striplib=$lt_striplib
19254
19255# Dependencies to place before the objects being linked to create a
19256# shared library.
19257predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19258
19259# Dependencies to place after the objects being linked to create a
19260# shared library.
19261postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19262
19263# Dependencies to place before the objects being linked to create a
19264# shared library.
19265predeps=$lt_predeps_GCJ
19266
19267# Dependencies to place after the objects being linked to create a
19268# shared library.
19269postdeps=$lt_postdeps_GCJ
19270
19271# The library search path used internally by the compiler when linking
19272# a shared library.
19273compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19274
19275# Method to check whether dependent libraries are shared objects.
19276deplibs_check_method=$lt_deplibs_check_method
19277
19278# Command to use when deplibs_check_method == file_magic.
19279file_magic_cmd=$lt_file_magic_cmd
19280
19281# Flag that allows shared libraries with undefined symbols to be built.
19282allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19283
19284# Flag that forces no undefined symbols.
19285no_undefined_flag=$lt_no_undefined_flag_GCJ
19286
19287# Commands used to finish a libtool library installation in a directory.
19288finish_cmds=$lt_finish_cmds
19289
19290# Same as above, but a single script fragment to be evaled but not shown.
19291finish_eval=$lt_finish_eval
19292
19293# Take the output of nm and produce a listing of raw symbols and C names.
19294global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19295
19296# Transform the output of nm in a proper C declaration
19297global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19298
19299# Transform the output of nm in a C name address pair
19300global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19301
19302# This is the shared library runtime path variable.
19303runpath_var=$runpath_var
19304
19305# This is the shared library path variable.
19306shlibpath_var=$shlibpath_var
19307
19308# Is shlibpath searched before the hard-coded library search path?
19309shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19310
19311# How to hardcode a shared library path into an executable.
19312hardcode_action=$hardcode_action_GCJ
19313
19314# Whether we should hardcode library paths into libraries.
19315hardcode_into_libs=$hardcode_into_libs
19316
19317# Flag to hardcode \$libdir into a binary during linking.
19318# This must work even if \$libdir does not exist.
19319hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19320
19321# If ld is used when linking, flag to hardcode \$libdir into
19322# a binary during linking. This must work even if \$libdir does
19323# not exist.
19324hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19325
19326# Whether we need a single -rpath flag with a separated argument.
19327hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19328
19329# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19330# resulting binary.
19331hardcode_direct=$hardcode_direct_GCJ
19332
19333# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19334# resulting binary.
19335hardcode_minus_L=$hardcode_minus_L_GCJ
19336
19337# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19338# the resulting binary.
19339hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19340
19341# Set to yes if building a shared library automatically hardcodes DIR into the library
19342# and all subsequent libraries and executables linked against it.
19343hardcode_automatic=$hardcode_automatic_GCJ
19344
19345# Variables whose values should be saved in libtool wrapper scripts and
19346# restored at relink time.
19347variables_saved_for_relink="$variables_saved_for_relink"
19348
19349# Whether libtool must link a program against all its dependency libraries.
19350link_all_deplibs=$link_all_deplibs_GCJ
19351
19352# Compile-time system search path for libraries
19353sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19354
19355# Run-time system search path for libraries
19356sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19357
19358# Fix the shell variable \$srcfile for the compiler.
19359fix_srcfile_path="$fix_srcfile_path_GCJ"
19360
19361# Set to yes if exported symbols are required.
19362always_export_symbols=$always_export_symbols_GCJ
19363
19364# The commands to list exported symbols.
19365export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19366
19367# The commands to extract the exported symbol list from a shared archive.
19368extract_expsyms_cmds=$lt_extract_expsyms_cmds
19369
19370# Symbols that should not be listed in the preloaded symbols.
19371exclude_expsyms=$lt_exclude_expsyms_GCJ
19372
19373# Symbols that must always be exported.
19374include_expsyms=$lt_include_expsyms_GCJ
19375
19376# ### END LIBTOOL TAG CONFIG: $tagname
19377
19378__EOF__
19379
19380
19381else
19382  # If there is no Makefile yet, we rely on a make rule to execute
19383  # `config.status --recheck' to rerun these tests and create the
19384  # libtool script then.
19385  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19386  if test -f "$ltmain_in"; then
19387    test -f Makefile && make "$ltmain"
19388  fi
19389fi
19390
19391
19392ac_ext=c
19393ac_cpp='$CPP $CPPFLAGS'
19394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19396ac_compiler_gnu=$ac_cv_c_compiler_gnu
19397
19398CC="$lt_save_CC"
19399
19400	else
19401	  tagname=""
19402	fi
19403	;;
19404
19405      RC)
19406
19407
19408# Source file extension for RC test sources.
19409ac_ext=rc
19410
19411# Object file extension for compiled RC test sources.
19412objext=o
19413objext_RC=$objext
19414
19415# Code to be used in simple compile tests
19416lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19417
19418# Code to be used in simple link tests
19419lt_simple_link_test_code="$lt_simple_compile_test_code"
19420
19421# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19422
19423# If no C compiler was specified, use CC.
19424LTCC=${LTCC-"$CC"}
19425
19426# If no C compiler flags were specified, use CFLAGS.
19427LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19428
19429# Allow CC to be a program name with arguments.
19430compiler=$CC
19431
19432
19433# save warnings/boilerplate of simple test code
19434ac_outfile=conftest.$ac_objext
19435printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19436eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19437_lt_compiler_boilerplate=`cat conftest.err`
19438$rm conftest*
19439
19440ac_outfile=conftest.$ac_objext
19441printf "$lt_simple_link_test_code" >conftest.$ac_ext
19442eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19443_lt_linker_boilerplate=`cat conftest.err`
19444$rm conftest*
19445
19446
19447# Allow CC to be a program name with arguments.
19448lt_save_CC="$CC"
19449CC=${RC-"windres"}
19450compiler=$CC
19451compiler_RC=$CC
19452for cc_temp in $compiler""; do
19453  case $cc_temp in
19454    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19455    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19456    \-*) ;;
19457    *) break;;
19458  esac
19459done
19460cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19461
19462lt_cv_prog_compiler_c_o_RC=yes
19463
19464# The else clause should only fire when bootstrapping the
19465# libtool distribution, otherwise you forgot to ship ltmain.sh
19466# with your package, and you will get complaints that there are
19467# no rules to generate ltmain.sh.
19468if test -f "$ltmain"; then
19469  # See if we are running on zsh, and set the options which allow our commands through
19470  # without removal of \ escapes.
19471  if test -n "${ZSH_VERSION+set}" ; then
19472    setopt NO_GLOB_SUBST
19473  fi
19474  # Now quote all the things that may contain metacharacters while being
19475  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19476  # variables and quote the copies for generation of the libtool script.
19477  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19478    SED SHELL STRIP \
19479    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19480    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19481    deplibs_check_method reload_flag reload_cmds need_locks \
19482    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19483    lt_cv_sys_global_symbol_to_c_name_address \
19484    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19485    old_postinstall_cmds old_postuninstall_cmds \
19486    compiler_RC \
19487    CC_RC \
19488    LD_RC \
19489    lt_prog_compiler_wl_RC \
19490    lt_prog_compiler_pic_RC \
19491    lt_prog_compiler_static_RC \
19492    lt_prog_compiler_no_builtin_flag_RC \
19493    export_dynamic_flag_spec_RC \
19494    thread_safe_flag_spec_RC \
19495    whole_archive_flag_spec_RC \
19496    enable_shared_with_static_runtimes_RC \
19497    old_archive_cmds_RC \
19498    old_archive_from_new_cmds_RC \
19499    predep_objects_RC \
19500    postdep_objects_RC \
19501    predeps_RC \
19502    postdeps_RC \
19503    compiler_lib_search_path_RC \
19504    archive_cmds_RC \
19505    archive_expsym_cmds_RC \
19506    postinstall_cmds_RC \
19507    postuninstall_cmds_RC \
19508    old_archive_from_expsyms_cmds_RC \
19509    allow_undefined_flag_RC \
19510    no_undefined_flag_RC \
19511    export_symbols_cmds_RC \
19512    hardcode_libdir_flag_spec_RC \
19513    hardcode_libdir_flag_spec_ld_RC \
19514    hardcode_libdir_separator_RC \
19515    hardcode_automatic_RC \
19516    module_cmds_RC \
19517    module_expsym_cmds_RC \
19518    lt_cv_prog_compiler_c_o_RC \
19519    exclude_expsyms_RC \
19520    include_expsyms_RC; do
19521
19522    case $var in
19523    old_archive_cmds_RC | \
19524    old_archive_from_new_cmds_RC | \
19525    archive_cmds_RC | \
19526    archive_expsym_cmds_RC | \
19527    module_cmds_RC | \
19528    module_expsym_cmds_RC | \
19529    old_archive_from_expsyms_cmds_RC | \
19530    export_symbols_cmds_RC | \
19531    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19532    postinstall_cmds | postuninstall_cmds | \
19533    old_postinstall_cmds | old_postuninstall_cmds | \
19534    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19535      # Double-quote double-evaled strings.
19536      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19537      ;;
19538    *)
19539      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19540      ;;
19541    esac
19542  done
19543
19544  case $lt_echo in
19545  *'\$0 --fallback-echo"')
19546    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19547    ;;
19548  esac
19549
19550cfgfile="$ofile"
19551
19552  cat <<__EOF__ >> "$cfgfile"
19553# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19554
19555# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19556
19557# Shell to use when invoking shell scripts.
19558SHELL=$lt_SHELL
19559
19560# Whether or not to build shared libraries.
19561build_libtool_libs=$enable_shared
19562
19563# Whether or not to build static libraries.
19564build_old_libs=$enable_static
19565
19566# Whether or not to add -lc for building shared libraries.
19567build_libtool_need_lc=$archive_cmds_need_lc_RC
19568
19569# Whether or not to disallow shared libs when runtime libs are static
19570allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19571
19572# Whether or not to optimize for fast installation.
19573fast_install=$enable_fast_install
19574
19575# The host system.
19576host_alias=$host_alias
19577host=$host
19578host_os=$host_os
19579
19580# The build system.
19581build_alias=$build_alias
19582build=$build
19583build_os=$build_os
19584
19585# An echo program that does not interpret backslashes.
19586echo=$lt_echo
19587
19588# The archiver.
19589AR=$lt_AR
19590AR_FLAGS=$lt_AR_FLAGS
19591
19592# A C compiler.
19593LTCC=$lt_LTCC
19594
19595# LTCC compiler flags.
19596LTCFLAGS=$lt_LTCFLAGS
19597
19598# A language-specific compiler.
19599CC=$lt_compiler_RC
19600
19601# Is the compiler the GNU C compiler?
19602with_gcc=$GCC_RC
19603
19604gcc_dir=\`$LTCC -print-file-name=. | $SED 's,/\.$,,'\`
19605gcc_ver=\`$LTCC -dumpversion\`
19606
19607# An ERE matcher.
19608EGREP=$lt_EGREP
19609
19610# The linker used to build libraries.
19611LD=$lt_LD_RC
19612
19613# Whether we need hard or soft links.
19614LN_S=$lt_LN_S
19615
19616# A BSD-compatible nm program.
19617NM=$lt_NM
19618
19619# A symbol stripping program
19620STRIP=$lt_STRIP
19621
19622# Used to examine libraries when file_magic_cmd begins "file"
19623MAGIC_CMD=$MAGIC_CMD
19624
19625# Used on cygwin: DLL creation program.
19626DLLTOOL="$DLLTOOL"
19627
19628# Used on cygwin: object dumper.
19629OBJDUMP="$OBJDUMP"
19630
19631# Used on cygwin: assembler.
19632AS="$AS"
19633
19634# The name of the directory that contains temporary libtool files.
19635objdir=$objdir
19636
19637# How to create reloadable object files.
19638reload_flag=$lt_reload_flag
19639reload_cmds=$lt_reload_cmds
19640
19641# How to pass a linker flag through the compiler.
19642wl=$lt_lt_prog_compiler_wl_RC
19643
19644# Object file suffix (normally "o").
19645objext="$ac_objext"
19646
19647# Old archive suffix (normally "a").
19648libext="$libext"
19649
19650# Shared library suffix (normally ".so").
19651shrext_cmds='$shrext_cmds'
19652
19653# Executable file suffix (normally "").
19654exeext="$exeext"
19655
19656# Additional compiler flags for building library objects.
19657pic_flag=$lt_lt_prog_compiler_pic_RC
19658pic_mode=$pic_mode
19659
19660# What is the maximum length of a command?
19661max_cmd_len=$lt_cv_sys_max_cmd_len
19662
19663# Does compiler simultaneously support -c and -o options?
19664compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19665
19666# Must we lock files when doing compilation?
19667need_locks=$lt_need_locks
19668
19669# Do we need the lib prefix for modules?
19670need_lib_prefix=$need_lib_prefix
19671
19672# Do we need a version for libraries?
19673need_version=$need_version
19674
19675# Whether dlopen is supported.
19676dlopen_support=$enable_dlopen
19677
19678# Whether dlopen of programs is supported.
19679dlopen_self=$enable_dlopen_self
19680
19681# Whether dlopen of statically linked programs is supported.
19682dlopen_self_static=$enable_dlopen_self_static
19683
19684# Compiler flag to prevent dynamic linking.
19685link_static_flag=$lt_lt_prog_compiler_static_RC
19686
19687# Compiler flag to turn off builtin functions.
19688no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19689
19690# Compiler flag to allow reflexive dlopens.
19691export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19692
19693# Compiler flag to generate shared objects directly from archives.
19694whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19695
19696# Compiler flag to generate thread-safe objects.
19697thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19698
19699# Library versioning type.
19700version_type=$version_type
19701
19702# Format of library name prefix.
19703libname_spec=$lt_libname_spec
19704
19705# List of archive names.  First name is the real one, the rest are links.
19706# The last name is the one that the linker finds with -lNAME.
19707library_names_spec=$lt_library_names_spec
19708
19709# The coded name of the library, if different from the real name.
19710soname_spec=$lt_soname_spec
19711
19712# Commands used to build and install an old-style archive.
19713RANLIB=$lt_RANLIB
19714old_archive_cmds=$lt_old_archive_cmds_RC
19715old_postinstall_cmds=$lt_old_postinstall_cmds
19716old_postuninstall_cmds=$lt_old_postuninstall_cmds
19717
19718# Create an old-style archive from a shared archive.
19719old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19720
19721# Create a temporary old-style archive to link instead of a shared archive.
19722old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19723
19724# Commands used to build and install a shared archive.
19725archive_cmds=$lt_archive_cmds_RC
19726archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19727postinstall_cmds=$lt_postinstall_cmds
19728postuninstall_cmds=$lt_postuninstall_cmds
19729
19730# Commands used to build a loadable module (assumed same as above if empty)
19731module_cmds=$lt_module_cmds_RC
19732module_expsym_cmds=$lt_module_expsym_cmds_RC
19733
19734# Commands to strip libraries.
19735old_striplib=$lt_old_striplib
19736striplib=$lt_striplib
19737
19738# Dependencies to place before the objects being linked to create a
19739# shared library.
19740predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19741
19742# Dependencies to place after the objects being linked to create a
19743# shared library.
19744postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19745
19746# Dependencies to place before the objects being linked to create a
19747# shared library.
19748predeps=$lt_predeps_RC
19749
19750# Dependencies to place after the objects being linked to create a
19751# shared library.
19752postdeps=$lt_postdeps_RC
19753
19754# The library search path used internally by the compiler when linking
19755# a shared library.
19756compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19757
19758# Method to check whether dependent libraries are shared objects.
19759deplibs_check_method=$lt_deplibs_check_method
19760
19761# Command to use when deplibs_check_method == file_magic.
19762file_magic_cmd=$lt_file_magic_cmd
19763
19764# Flag that allows shared libraries with undefined symbols to be built.
19765allow_undefined_flag=$lt_allow_undefined_flag_RC
19766
19767# Flag that forces no undefined symbols.
19768no_undefined_flag=$lt_no_undefined_flag_RC
19769
19770# Commands used to finish a libtool library installation in a directory.
19771finish_cmds=$lt_finish_cmds
19772
19773# Same as above, but a single script fragment to be evaled but not shown.
19774finish_eval=$lt_finish_eval
19775
19776# Take the output of nm and produce a listing of raw symbols and C names.
19777global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19778
19779# Transform the output of nm in a proper C declaration
19780global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19781
19782# Transform the output of nm in a C name address pair
19783global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19784
19785# This is the shared library runtime path variable.
19786runpath_var=$runpath_var
19787
19788# This is the shared library path variable.
19789shlibpath_var=$shlibpath_var
19790
19791# Is shlibpath searched before the hard-coded library search path?
19792shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19793
19794# How to hardcode a shared library path into an executable.
19795hardcode_action=$hardcode_action_RC
19796
19797# Whether we should hardcode library paths into libraries.
19798hardcode_into_libs=$hardcode_into_libs
19799
19800# Flag to hardcode \$libdir into a binary during linking.
19801# This must work even if \$libdir does not exist.
19802hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19803
19804# If ld is used when linking, flag to hardcode \$libdir into
19805# a binary during linking. This must work even if \$libdir does
19806# not exist.
19807hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19808
19809# Whether we need a single -rpath flag with a separated argument.
19810hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19811
19812# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19813# resulting binary.
19814hardcode_direct=$hardcode_direct_RC
19815
19816# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19817# resulting binary.
19818hardcode_minus_L=$hardcode_minus_L_RC
19819
19820# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19821# the resulting binary.
19822hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19823
19824# Set to yes if building a shared library automatically hardcodes DIR into the library
19825# and all subsequent libraries and executables linked against it.
19826hardcode_automatic=$hardcode_automatic_RC
19827
19828# Variables whose values should be saved in libtool wrapper scripts and
19829# restored at relink time.
19830variables_saved_for_relink="$variables_saved_for_relink"
19831
19832# Whether libtool must link a program against all its dependency libraries.
19833link_all_deplibs=$link_all_deplibs_RC
19834
19835# Compile-time system search path for libraries
19836sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19837
19838# Run-time system search path for libraries
19839sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19840
19841# Fix the shell variable \$srcfile for the compiler.
19842fix_srcfile_path="$fix_srcfile_path_RC"
19843
19844# Set to yes if exported symbols are required.
19845always_export_symbols=$always_export_symbols_RC
19846
19847# The commands to list exported symbols.
19848export_symbols_cmds=$lt_export_symbols_cmds_RC
19849
19850# The commands to extract the exported symbol list from a shared archive.
19851extract_expsyms_cmds=$lt_extract_expsyms_cmds
19852
19853# Symbols that should not be listed in the preloaded symbols.
19854exclude_expsyms=$lt_exclude_expsyms_RC
19855
19856# Symbols that must always be exported.
19857include_expsyms=$lt_include_expsyms_RC
19858
19859# ### END LIBTOOL TAG CONFIG: $tagname
19860
19861__EOF__
19862
19863
19864else
19865  # If there is no Makefile yet, we rely on a make rule to execute
19866  # `config.status --recheck' to rerun these tests and create the
19867  # libtool script then.
19868  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19869  if test -f "$ltmain_in"; then
19870    test -f Makefile && make "$ltmain"
19871  fi
19872fi
19873
19874
19875ac_ext=c
19876ac_cpp='$CPP $CPPFLAGS'
19877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19879ac_compiler_gnu=$ac_cv_c_compiler_gnu
19880
19881CC="$lt_save_CC"
19882
19883	;;
19884
19885      *)
19886	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19887echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19888   { (exit 1); exit 1; }; }
19889	;;
19890      esac
19891
19892      # Append the new tag name to the list of available tags.
19893      if test -n "$tagname" ; then
19894      available_tags="$available_tags $tagname"
19895    fi
19896    fi
19897  done
19898  IFS="$lt_save_ifs"
19899
19900  # Now substitute the updated list of available tags.
19901  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19902    mv "${ofile}T" "$ofile"
19903    chmod +x "$ofile"
19904  else
19905    rm -f "${ofile}T"
19906    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19907echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19908   { (exit 1); exit 1; }; }
19909  fi
19910fi
19911
19912
19913
19914# This can be used to rebuild libtool when needed
19915LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19916
19917# Always use our own libtool.
19918LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19919
19920# Prevent multiple expansion
19921
19922
19923
19924
19925
19926
19927
19928
19929
19930
19931
19932
19933
19934
19935
19936
19937
19938
19939
19940
19941
19942# Checks for libraries.
19943
19944# Checks for header files.
19945ac_ext=cpp
19946ac_cpp='$CXXCPP $CPPFLAGS'
19947ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19948ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19949ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19950
19951
19952
19953for ac_header in unistd.h
19954do
19955as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19956if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19957  { echo "$as_me:$LINENO: checking for $ac_header" >&5
19958echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19959if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19960  echo $ECHO_N "(cached) $ECHO_C" >&6
19961fi
19962ac_res=`eval echo '${'$as_ac_Header'}'`
19963	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19964echo "${ECHO_T}$ac_res" >&6; }
19965else
19966  # Is the header compilable?
19967{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19968echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19969cat >conftest.$ac_ext <<_ACEOF
19970/* confdefs.h.  */
19971_ACEOF
19972cat confdefs.h >>conftest.$ac_ext
19973cat >>conftest.$ac_ext <<_ACEOF
19974/* end confdefs.h.  */
19975$ac_includes_default
19976#include <$ac_header>
19977_ACEOF
19978rm -f conftest.$ac_objext
19979if { (ac_try="$ac_compile"
19980case "(($ac_try" in
19981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19982  *) ac_try_echo=$ac_try;;
19983esac
19984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19985  (eval "$ac_compile") 2>conftest.er1
19986  ac_status=$?
19987  grep -v '^ *+' conftest.er1 >conftest.err
19988  rm -f conftest.er1
19989  cat conftest.err >&5
19990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991  (exit $ac_status); } && {
19992	 test -z "$ac_cxx_werror_flag" ||
19993	 test ! -s conftest.err
19994       } && test -s conftest.$ac_objext; then
19995  ac_header_compiler=yes
19996else
19997  echo "$as_me: failed program was:" >&5
19998sed 's/^/| /' conftest.$ac_ext >&5
19999
20000	ac_header_compiler=no
20001fi
20002
20003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20004{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20005echo "${ECHO_T}$ac_header_compiler" >&6; }
20006
20007# Is the header present?
20008{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20009echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20010cat >conftest.$ac_ext <<_ACEOF
20011/* confdefs.h.  */
20012_ACEOF
20013cat confdefs.h >>conftest.$ac_ext
20014cat >>conftest.$ac_ext <<_ACEOF
20015/* end confdefs.h.  */
20016#include <$ac_header>
20017_ACEOF
20018if { (ac_try="$ac_cpp conftest.$ac_ext"
20019case "(($ac_try" in
20020  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20021  *) ac_try_echo=$ac_try;;
20022esac
20023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20024  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20025  ac_status=$?
20026  grep -v '^ *+' conftest.er1 >conftest.err
20027  rm -f conftest.er1
20028  cat conftest.err >&5
20029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030  (exit $ac_status); } >/dev/null && {
20031	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
20032	 test ! -s conftest.err
20033       }; then
20034  ac_header_preproc=yes
20035else
20036  echo "$as_me: failed program was:" >&5
20037sed 's/^/| /' conftest.$ac_ext >&5
20038
20039  ac_header_preproc=no
20040fi
20041
20042rm -f conftest.err conftest.$ac_ext
20043{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20044echo "${ECHO_T}$ac_header_preproc" >&6; }
20045
20046# So?  What about this header?
20047case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20048  yes:no: )
20049    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20050echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20051    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20052echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20053    ac_header_preproc=yes
20054    ;;
20055  no:yes:* )
20056    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20057echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20058    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20059echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20060    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20061echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20062    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20063echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20064    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20065echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20066    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20067echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20068    ( cat <<\_ASBOX
20069## --------------------------------- ##
20070## Report this to omalley@apache.org ##
20071## --------------------------------- ##
20072_ASBOX
20073     ) | sed "s/^/$as_me: WARNING:     /" >&2
20074    ;;
20075esac
20076{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20077echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20078if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20079  echo $ECHO_N "(cached) $ECHO_C" >&6
20080else
20081  eval "$as_ac_Header=\$ac_header_preproc"
20082fi
20083ac_res=`eval echo '${'$as_ac_Header'}'`
20084	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20085echo "${ECHO_T}$ac_res" >&6; }
20086
20087fi
20088if test `eval echo '${'$as_ac_Header'}'` = yes; then
20089  cat >>confdefs.h <<_ACEOF
20090#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20091_ACEOF
20092
20093fi
20094
20095done
20096
20097
20098# Checks for typedefs, structures, and compiler characteristics.
20099{ echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
20100echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
20101if test "${ac_cv_header_stdbool_h+set}" = set; then
20102  echo $ECHO_N "(cached) $ECHO_C" >&6
20103else
20104  cat >conftest.$ac_ext <<_ACEOF
20105/* confdefs.h.  */
20106_ACEOF
20107cat confdefs.h >>conftest.$ac_ext
20108cat >>conftest.$ac_ext <<_ACEOF
20109/* end confdefs.h.  */
20110
20111#include <stdbool.h>
20112#ifndef bool
20113 "error: bool is not defined"
20114#endif
20115#ifndef false
20116 "error: false is not defined"
20117#endif
20118#if false
20119 "error: false is not 0"
20120#endif
20121#ifndef true
20122 "error: true is not defined"
20123#endif
20124#if true != 1
20125 "error: true is not 1"
20126#endif
20127#ifndef __bool_true_false_are_defined
20128 "error: __bool_true_false_are_defined is not defined"
20129#endif
20130
20131	struct s { _Bool s: 1; _Bool t; } s;
20132
20133	char a[true == 1 ? 1 : -1];
20134	char b[false == 0 ? 1 : -1];
20135	char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20136	char d[(bool) 0.5 == true ? 1 : -1];
20137	bool e = &s;
20138	char f[(_Bool) 0.0 == false ? 1 : -1];
20139	char g[true];
20140	char h[sizeof (_Bool)];
20141	char i[sizeof s.t];
20142	enum { j = false, k = true, l = false * true, m = true * 256 };
20143	_Bool n[m];
20144	char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20145	char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20146#	if defined __xlc__ || defined __GNUC__
20147	 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20148	    reported by James Lemley on 2005-10-05; see
20149	    http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20150	    This test is not quite right, since xlc is allowed to
20151	    reject this program, as the initializer for xlcbug is
20152	    not one of the forms that C requires support for.
20153	    However, doing the test right would require a runtime
20154	    test, and that would make cross-compilation harder.
20155	    Let us hope that IBM fixes the xlc bug, and also adds
20156	    support for this kind of constant expression.  In the
20157	    meantime, this test will reject xlc, which is OK, since
20158	    our stdbool.h substitute should suffice.  We also test
20159	    this with GCC, where it should work, to detect more
20160	    quickly whether someone messes up the test in the
20161	    future.  */
20162	 char digs[] = "0123456789";
20163	 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20164#	endif
20165	/* Catch a bug in an HP-UX C compiler.  See
20166	   http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20167	   http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20168	 */
20169	_Bool q = true;
20170	_Bool *pq = &q;
20171
20172int
20173main ()
20174{
20175
20176	*pq |= q;
20177	*pq |= ! q;
20178	/* Refer to every declared value, to avoid compiler optimizations.  */
20179	return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20180		+ !m + !n + !o + !p + !q + !pq);
20181
20182  ;
20183  return 0;
20184}
20185_ACEOF
20186rm -f conftest.$ac_objext
20187if { (ac_try="$ac_compile"
20188case "(($ac_try" in
20189  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20190  *) ac_try_echo=$ac_try;;
20191esac
20192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20193  (eval "$ac_compile") 2>conftest.er1
20194  ac_status=$?
20195  grep -v '^ *+' conftest.er1 >conftest.err
20196  rm -f conftest.er1
20197  cat conftest.err >&5
20198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199  (exit $ac_status); } && {
20200	 test -z "$ac_cxx_werror_flag" ||
20201	 test ! -s conftest.err
20202       } && test -s conftest.$ac_objext; then
20203  ac_cv_header_stdbool_h=yes
20204else
20205  echo "$as_me: failed program was:" >&5
20206sed 's/^/| /' conftest.$ac_ext >&5
20207
20208	ac_cv_header_stdbool_h=no
20209fi
20210
20211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20212fi
20213{ echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
20214echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
20215{ echo "$as_me:$LINENO: checking for _Bool" >&5
20216echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
20217if test "${ac_cv_type__Bool+set}" = set; then
20218  echo $ECHO_N "(cached) $ECHO_C" >&6
20219else
20220  cat >conftest.$ac_ext <<_ACEOF
20221/* confdefs.h.  */
20222_ACEOF
20223cat confdefs.h >>conftest.$ac_ext
20224cat >>conftest.$ac_ext <<_ACEOF
20225/* end confdefs.h.  */
20226$ac_includes_default
20227typedef _Bool ac__type_new_;
20228int
20229main ()
20230{
20231if ((ac__type_new_ *) 0)
20232  return 0;
20233if (sizeof (ac__type_new_))
20234  return 0;
20235  ;
20236  return 0;
20237}
20238_ACEOF
20239rm -f conftest.$ac_objext
20240if { (ac_try="$ac_compile"
20241case "(($ac_try" in
20242  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20243  *) ac_try_echo=$ac_try;;
20244esac
20245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20246  (eval "$ac_compile") 2>conftest.er1
20247  ac_status=$?
20248  grep -v '^ *+' conftest.er1 >conftest.err
20249  rm -f conftest.er1
20250  cat conftest.err >&5
20251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252  (exit $ac_status); } && {
20253	 test -z "$ac_cxx_werror_flag" ||
20254	 test ! -s conftest.err
20255       } && test -s conftest.$ac_objext; then
20256  ac_cv_type__Bool=yes
20257else
20258  echo "$as_me: failed program was:" >&5
20259sed 's/^/| /' conftest.$ac_ext >&5
20260
20261	ac_cv_type__Bool=no
20262fi
20263
20264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20265fi
20266{ echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
20267echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
20268if test $ac_cv_type__Bool = yes; then
20269
20270cat >>confdefs.h <<_ACEOF
20271#define HAVE__BOOL 1
20272_ACEOF
20273
20274
20275fi
20276
20277if test $ac_cv_header_stdbool_h = yes; then
20278
20279cat >>confdefs.h <<\_ACEOF
20280#define HAVE_STDBOOL_H 1
20281_ACEOF
20282
20283fi
20284
20285{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20286echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20287if test "${ac_cv_c_const+set}" = set; then
20288  echo $ECHO_N "(cached) $ECHO_C" >&6
20289else
20290  cat >conftest.$ac_ext <<_ACEOF
20291/* confdefs.h.  */
20292_ACEOF
20293cat confdefs.h >>conftest.$ac_ext
20294cat >>conftest.$ac_ext <<_ACEOF
20295/* end confdefs.h.  */
20296
20297int
20298main ()
20299{
20300/* FIXME: Include the comments suggested by Paul. */
20301#ifndef __cplusplus
20302  /* Ultrix mips cc rejects this.  */
20303  typedef int charset[2];
20304  const charset cs;
20305  /* SunOS 4.1.1 cc rejects this.  */
20306  char const *const *pcpcc;
20307  char **ppc;
20308  /* NEC SVR4.0.2 mips cc rejects this.  */
20309  struct point {int x, y;};
20310  static struct point const zero = {0,0};
20311  /* AIX XL C 1.02.0.0 rejects this.
20312     It does not let you subtract one const X* pointer from another in
20313     an arm of an if-expression whose if-part is not a constant
20314     expression */
20315  const char *g = "string";
20316  pcpcc = &g + (g ? g-g : 0);
20317  /* HPUX 7.0 cc rejects these. */
20318  ++pcpcc;
20319  ppc = (char**) pcpcc;
20320  pcpcc = (char const *const *) ppc;
20321  { /* SCO 3.2v4 cc rejects this.  */
20322    char *t;
20323    char const *s = 0 ? (char *) 0 : (char const *) 0;
20324
20325    *t++ = 0;
20326    if (s) return 0;
20327  }
20328  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20329    int x[] = {25, 17};
20330    const int *foo = &x[0];
20331    ++foo;
20332  }
20333  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20334    typedef const int *iptr;
20335    iptr p = 0;
20336    ++p;
20337  }
20338  { /* AIX XL C 1.02.0.0 rejects this saying
20339       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20340    struct s { int j; const int *ap[3]; };
20341    struct s *b; b->j = 5;
20342  }
20343  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20344    const int foo = 10;
20345    if (!foo) return 0;
20346  }
20347  return !cs[0] && !zero.x;
20348#endif
20349
20350  ;
20351  return 0;
20352}
20353_ACEOF
20354rm -f conftest.$ac_objext
20355if { (ac_try="$ac_compile"
20356case "(($ac_try" in
20357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20358  *) ac_try_echo=$ac_try;;
20359esac
20360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20361  (eval "$ac_compile") 2>conftest.er1
20362  ac_status=$?
20363  grep -v '^ *+' conftest.er1 >conftest.err
20364  rm -f conftest.er1
20365  cat conftest.err >&5
20366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367  (exit $ac_status); } && {
20368	 test -z "$ac_cxx_werror_flag" ||
20369	 test ! -s conftest.err
20370       } && test -s conftest.$ac_objext; then
20371  ac_cv_c_const=yes
20372else
20373  echo "$as_me: failed program was:" >&5
20374sed 's/^/| /' conftest.$ac_ext >&5
20375
20376	ac_cv_c_const=no
20377fi
20378
20379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20380fi
20381{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20382echo "${ECHO_T}$ac_cv_c_const" >&6; }
20383if test $ac_cv_c_const = no; then
20384
20385cat >>confdefs.h <<\_ACEOF
20386#define const
20387_ACEOF
20388
20389fi
20390
20391{ echo "$as_me:$LINENO: checking for off_t" >&5
20392echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
20393if test "${ac_cv_type_off_t+set}" = set; then
20394  echo $ECHO_N "(cached) $ECHO_C" >&6
20395else
20396  cat >conftest.$ac_ext <<_ACEOF
20397/* confdefs.h.  */
20398_ACEOF
20399cat confdefs.h >>conftest.$ac_ext
20400cat >>conftest.$ac_ext <<_ACEOF
20401/* end confdefs.h.  */
20402$ac_includes_default
20403typedef off_t ac__type_new_;
20404int
20405main ()
20406{
20407if ((ac__type_new_ *) 0)
20408  return 0;
20409if (sizeof (ac__type_new_))
20410  return 0;
20411  ;
20412  return 0;
20413}
20414_ACEOF
20415rm -f conftest.$ac_objext
20416if { (ac_try="$ac_compile"
20417case "(($ac_try" in
20418  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20419  *) ac_try_echo=$ac_try;;
20420esac
20421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20422  (eval "$ac_compile") 2>conftest.er1
20423  ac_status=$?
20424  grep -v '^ *+' conftest.er1 >conftest.err
20425  rm -f conftest.er1
20426  cat conftest.err >&5
20427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428  (exit $ac_status); } && {
20429	 test -z "$ac_cxx_werror_flag" ||
20430	 test ! -s conftest.err
20431       } && test -s conftest.$ac_objext; then
20432  ac_cv_type_off_t=yes
20433else
20434  echo "$as_me: failed program was:" >&5
20435sed 's/^/| /' conftest.$ac_ext >&5
20436
20437	ac_cv_type_off_t=no
20438fi
20439
20440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20441fi
20442{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20443echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
20444if test $ac_cv_type_off_t = yes; then
20445  :
20446else
20447
20448cat >>confdefs.h <<_ACEOF
20449#define off_t long int
20450_ACEOF
20451
20452fi
20453
20454{ echo "$as_me:$LINENO: checking for size_t" >&5
20455echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20456if test "${ac_cv_type_size_t+set}" = set; then
20457  echo $ECHO_N "(cached) $ECHO_C" >&6
20458else
20459  cat >conftest.$ac_ext <<_ACEOF
20460/* confdefs.h.  */
20461_ACEOF
20462cat confdefs.h >>conftest.$ac_ext
20463cat >>conftest.$ac_ext <<_ACEOF
20464/* end confdefs.h.  */
20465$ac_includes_default
20466typedef size_t ac__type_new_;
20467int
20468main ()
20469{
20470if ((ac__type_new_ *) 0)
20471  return 0;
20472if (sizeof (ac__type_new_))
20473  return 0;
20474  ;
20475  return 0;
20476}
20477_ACEOF
20478rm -f conftest.$ac_objext
20479if { (ac_try="$ac_compile"
20480case "(($ac_try" in
20481  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20482  *) ac_try_echo=$ac_try;;
20483esac
20484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20485  (eval "$ac_compile") 2>conftest.er1
20486  ac_status=$?
20487  grep -v '^ *+' conftest.er1 >conftest.err
20488  rm -f conftest.er1
20489  cat conftest.err >&5
20490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491  (exit $ac_status); } && {
20492	 test -z "$ac_cxx_werror_flag" ||
20493	 test ! -s conftest.err
20494       } && test -s conftest.$ac_objext; then
20495  ac_cv_type_size_t=yes
20496else
20497  echo "$as_me: failed program was:" >&5
20498sed 's/^/| /' conftest.$ac_ext >&5
20499
20500	ac_cv_type_size_t=no
20501fi
20502
20503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20504fi
20505{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20506echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20507if test $ac_cv_type_size_t = yes; then
20508  :
20509else
20510
20511cat >>confdefs.h <<_ACEOF
20512#define size_t unsigned int
20513_ACEOF
20514
20515fi
20516
20517{ echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
20518echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; }
20519if test "${ac_cv_have_decl_strerror_r+set}" = set; then
20520  echo $ECHO_N "(cached) $ECHO_C" >&6
20521else
20522  cat >conftest.$ac_ext <<_ACEOF
20523/* confdefs.h.  */
20524_ACEOF
20525cat confdefs.h >>conftest.$ac_ext
20526cat >>conftest.$ac_ext <<_ACEOF
20527/* end confdefs.h.  */
20528$ac_includes_default
20529int
20530main ()
20531{
20532#ifndef strerror_r
20533  (void) strerror_r;
20534#endif
20535
20536  ;
20537  return 0;
20538}
20539_ACEOF
20540rm -f conftest.$ac_objext
20541if { (ac_try="$ac_compile"
20542case "(($ac_try" in
20543  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20544  *) ac_try_echo=$ac_try;;
20545esac
20546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20547  (eval "$ac_compile") 2>conftest.er1
20548  ac_status=$?
20549  grep -v '^ *+' conftest.er1 >conftest.err
20550  rm -f conftest.er1
20551  cat conftest.err >&5
20552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553  (exit $ac_status); } && {
20554	 test -z "$ac_cxx_werror_flag" ||
20555	 test ! -s conftest.err
20556       } && test -s conftest.$ac_objext; then
20557  ac_cv_have_decl_strerror_r=yes
20558else
20559  echo "$as_me: failed program was:" >&5
20560sed 's/^/| /' conftest.$ac_ext >&5
20561
20562	ac_cv_have_decl_strerror_r=no
20563fi
20564
20565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20566fi
20567{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
20568echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6; }
20569if test $ac_cv_have_decl_strerror_r = yes; then
20570
20571cat >>confdefs.h <<_ACEOF
20572#define HAVE_DECL_STRERROR_R 1
20573_ACEOF
20574
20575
20576else
20577  cat >>confdefs.h <<_ACEOF
20578#define HAVE_DECL_STRERROR_R 0
20579_ACEOF
20580
20581
20582fi
20583
20584
20585
20586for ac_func in strerror_r
20587do
20588as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20589{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20590echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20591if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20592  echo $ECHO_N "(cached) $ECHO_C" >&6
20593else
20594  cat >conftest.$ac_ext <<_ACEOF
20595/* confdefs.h.  */
20596_ACEOF
20597cat confdefs.h >>conftest.$ac_ext
20598cat >>conftest.$ac_ext <<_ACEOF
20599/* end confdefs.h.  */
20600/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20601   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20602#define $ac_func innocuous_$ac_func
20603
20604/* System header to define __stub macros and hopefully few prototypes,
20605    which can conflict with char $ac_func (); below.
20606    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20607    <limits.h> exists even on freestanding compilers.  */
20608
20609#ifdef __STDC__
20610# include <limits.h>
20611#else
20612# include <assert.h>
20613#endif
20614
20615#undef $ac_func
20616
20617/* Override any GCC internal prototype to avoid an error.
20618   Use char because int might match the return type of a GCC
20619   builtin and then its argument prototype would still apply.  */
20620#ifdef __cplusplus
20621extern "C"
20622#endif
20623char $ac_func ();
20624/* The GNU C library defines this for functions which it implements
20625    to always fail with ENOSYS.  Some functions are actually named
20626    something starting with __ and the normal name is an alias.  */
20627#if defined __stub_$ac_func || defined __stub___$ac_func
20628choke me
20629#endif
20630
20631int
20632main ()
20633{
20634return $ac_func ();
20635  ;
20636  return 0;
20637}
20638_ACEOF
20639rm -f conftest.$ac_objext conftest$ac_exeext
20640if { (ac_try="$ac_link"
20641case "(($ac_try" in
20642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20643  *) ac_try_echo=$ac_try;;
20644esac
20645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20646  (eval "$ac_link") 2>conftest.er1
20647  ac_status=$?
20648  grep -v '^ *+' conftest.er1 >conftest.err
20649  rm -f conftest.er1
20650  cat conftest.err >&5
20651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652  (exit $ac_status); } && {
20653	 test -z "$ac_cxx_werror_flag" ||
20654	 test ! -s conftest.err
20655       } && test -s conftest$ac_exeext &&
20656       $as_test_x conftest$ac_exeext; then
20657  eval "$as_ac_var=yes"
20658else
20659  echo "$as_me: failed program was:" >&5
20660sed 's/^/| /' conftest.$ac_ext >&5
20661
20662	eval "$as_ac_var=no"
20663fi
20664
20665rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20666      conftest$ac_exeext conftest.$ac_ext
20667fi
20668ac_res=`eval echo '${'$as_ac_var'}'`
20669	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20670echo "${ECHO_T}$ac_res" >&6; }
20671if test `eval echo '${'$as_ac_var'}'` = yes; then
20672  cat >>confdefs.h <<_ACEOF
20673#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20674_ACEOF
20675
20676fi
20677done
20678
20679{ echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
20680echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6; }
20681if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
20682  echo $ECHO_N "(cached) $ECHO_C" >&6
20683else
20684
20685    ac_cv_func_strerror_r_char_p=no
20686    if test $ac_cv_have_decl_strerror_r = yes; then
20687      cat >conftest.$ac_ext <<_ACEOF
20688/* confdefs.h.  */
20689_ACEOF
20690cat confdefs.h >>conftest.$ac_ext
20691cat >>conftest.$ac_ext <<_ACEOF
20692/* end confdefs.h.  */
20693$ac_includes_default
20694int
20695main ()
20696{
20697
20698	  char buf[100];
20699	  char x = *strerror_r (0, buf, sizeof buf);
20700	  char *p = strerror_r (0, buf, sizeof buf);
20701	  return !p || x;
20702
20703  ;
20704  return 0;
20705}
20706_ACEOF
20707rm -f conftest.$ac_objext
20708if { (ac_try="$ac_compile"
20709case "(($ac_try" in
20710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20711  *) ac_try_echo=$ac_try;;
20712esac
20713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20714  (eval "$ac_compile") 2>conftest.er1
20715  ac_status=$?
20716  grep -v '^ *+' conftest.er1 >conftest.err
20717  rm -f conftest.er1
20718  cat conftest.err >&5
20719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720  (exit $ac_status); } && {
20721	 test -z "$ac_cxx_werror_flag" ||
20722	 test ! -s conftest.err
20723       } && test -s conftest.$ac_objext; then
20724  ac_cv_func_strerror_r_char_p=yes
20725else
20726  echo "$as_me: failed program was:" >&5
20727sed 's/^/| /' conftest.$ac_ext >&5
20728
20729
20730fi
20731
20732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20733    else
20734      # strerror_r is not declared.  Choose between
20735      # systems that have relatively inaccessible declarations for the
20736      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
20737      # former has a strerror_r that returns char*, while the latter
20738      # has a strerror_r that returns `int'.
20739      # This test should segfault on the DEC system.
20740      if test "$cross_compiling" = yes; then
20741  :
20742else
20743  cat >conftest.$ac_ext <<_ACEOF
20744/* confdefs.h.  */
20745_ACEOF
20746cat confdefs.h >>conftest.$ac_ext
20747cat >>conftest.$ac_ext <<_ACEOF
20748/* end confdefs.h.  */
20749$ac_includes_default
20750	extern char *strerror_r ();
20751int
20752main ()
20753{
20754char buf[100];
20755	  char x = *strerror_r (0, buf, sizeof buf);
20756	  return ! isalpha (x);
20757  ;
20758  return 0;
20759}
20760_ACEOF
20761rm -f conftest$ac_exeext
20762if { (ac_try="$ac_link"
20763case "(($ac_try" in
20764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20765  *) ac_try_echo=$ac_try;;
20766esac
20767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20768  (eval "$ac_link") 2>&5
20769  ac_status=$?
20770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20772  { (case "(($ac_try" in
20773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20774  *) ac_try_echo=$ac_try;;
20775esac
20776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20777  (eval "$ac_try") 2>&5
20778  ac_status=$?
20779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780  (exit $ac_status); }; }; then
20781  ac_cv_func_strerror_r_char_p=yes
20782else
20783  echo "$as_me: program exited with status $ac_status" >&5
20784echo "$as_me: failed program was:" >&5
20785sed 's/^/| /' conftest.$ac_ext >&5
20786
20787fi
20788rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20789fi
20790
20791
20792    fi
20793
20794fi
20795{ echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
20796echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6; }
20797if test $ac_cv_func_strerror_r_char_p = yes; then
20798
20799cat >>confdefs.h <<\_ACEOF
20800#define STRERROR_R_CHAR_P 1
20801_ACEOF
20802
20803fi
20804
20805
20806# Checks for library functions.
20807
20808
20809for ac_func in mkdir uname
20810do
20811as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20812{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20813echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20814if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20815  echo $ECHO_N "(cached) $ECHO_C" >&6
20816else
20817  cat >conftest.$ac_ext <<_ACEOF
20818/* confdefs.h.  */
20819_ACEOF
20820cat confdefs.h >>conftest.$ac_ext
20821cat >>conftest.$ac_ext <<_ACEOF
20822/* end confdefs.h.  */
20823/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20824   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20825#define $ac_func innocuous_$ac_func
20826
20827/* System header to define __stub macros and hopefully few prototypes,
20828    which can conflict with char $ac_func (); below.
20829    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20830    <limits.h> exists even on freestanding compilers.  */
20831
20832#ifdef __STDC__
20833# include <limits.h>
20834#else
20835# include <assert.h>
20836#endif
20837
20838#undef $ac_func
20839
20840/* Override any GCC internal prototype to avoid an error.
20841   Use char because int might match the return type of a GCC
20842   builtin and then its argument prototype would still apply.  */
20843#ifdef __cplusplus
20844extern "C"
20845#endif
20846char $ac_func ();
20847/* The GNU C library defines this for functions which it implements
20848    to always fail with ENOSYS.  Some functions are actually named
20849    something starting with __ and the normal name is an alias.  */
20850#if defined __stub_$ac_func || defined __stub___$ac_func
20851choke me
20852#endif
20853
20854int
20855main ()
20856{
20857return $ac_func ();
20858  ;
20859  return 0;
20860}
20861_ACEOF
20862rm -f conftest.$ac_objext conftest$ac_exeext
20863if { (ac_try="$ac_link"
20864case "(($ac_try" in
20865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20866  *) ac_try_echo=$ac_try;;
20867esac
20868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20869  (eval "$ac_link") 2>conftest.er1
20870  ac_status=$?
20871  grep -v '^ *+' conftest.er1 >conftest.err
20872  rm -f conftest.er1
20873  cat conftest.err >&5
20874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875  (exit $ac_status); } && {
20876	 test -z "$ac_cxx_werror_flag" ||
20877	 test ! -s conftest.err
20878       } && test -s conftest$ac_exeext &&
20879       $as_test_x conftest$ac_exeext; then
20880  eval "$as_ac_var=yes"
20881else
20882  echo "$as_me: failed program was:" >&5
20883sed 's/^/| /' conftest.$ac_ext >&5
20884
20885	eval "$as_ac_var=no"
20886fi
20887
20888rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20889      conftest$ac_exeext conftest.$ac_ext
20890fi
20891ac_res=`eval echo '${'$as_ac_var'}'`
20892	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20893echo "${ECHO_T}$ac_res" >&6; }
20894if test `eval echo '${'$as_ac_var'}'` = yes; then
20895  cat >>confdefs.h <<_ACEOF
20896#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20897_ACEOF
20898
20899fi
20900done
20901
20902cat >confcache <<\_ACEOF
20903# This file is a shell script that caches the results of configure
20904# tests run on this system so they can be shared between configure
20905# scripts and configure runs, see configure's option --config-cache.
20906# It is not useful on other systems.  If it contains results you don't
20907# want to keep, you may remove or edit it.
20908#
20909# config.status only pays attention to the cache file if you give it
20910# the --recheck option to rerun configure.
20911#
20912# `ac_cv_env_foo' variables (set or unset) will be overridden when
20913# loading this file, other *unset* `ac_cv_foo' will be assigned the
20914# following values.
20915
20916_ACEOF
20917
20918# The following way of writing the cache mishandles newlines in values,
20919# but we know of no workaround that is simple, portable, and efficient.
20920# So, we kill variables containing newlines.
20921# Ultrix sh set writes to stderr and can't be redirected directly,
20922# and sets the high bit in the cache file unless we assign to the vars.
20923(
20924  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20925    eval ac_val=\$$ac_var
20926    case $ac_val in #(
20927    *${as_nl}*)
20928      case $ac_var in #(
20929      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20930echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20931      esac
20932      case $ac_var in #(
20933      _ | IFS | as_nl) ;; #(
20934      *) $as_unset $ac_var ;;
20935      esac ;;
20936    esac
20937  done
20938
20939  (set) 2>&1 |
20940    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20941    *${as_nl}ac_space=\ *)
20942      # `set' does not quote correctly, so add quotes (double-quote
20943      # substitution turns \\\\ into \\, and sed turns \\ into \).
20944      sed -n \
20945	"s/'/'\\\\''/g;
20946	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20947      ;; #(
20948    *)
20949      # `set' quotes correctly as required by POSIX, so do not add quotes.
20950      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20951      ;;
20952    esac |
20953    sort
20954) |
20955  sed '
20956     /^ac_cv_env_/b end
20957     t clear
20958     :clear
20959     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20960     t end
20961     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20962     :end' >>confcache
20963if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20964  if test -w "$cache_file"; then
20965    test "x$cache_file" != "x/dev/null" &&
20966      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20967echo "$as_me: updating cache $cache_file" >&6;}
20968    cat confcache >$cache_file
20969  else
20970    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20971echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20972  fi
20973fi
20974rm -f confcache
20975
20976test "x$prefix" = xNONE && prefix=$ac_default_prefix
20977# Let make expand exec_prefix.
20978test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20979
20980DEFS=-DHAVE_CONFIG_H
20981
20982ac_libobjs=
20983ac_ltlibobjs=
20984for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20985  # 1. Remove the extension, and $U if already installed.
20986  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20987  ac_i=`echo "$ac_i" | sed "$ac_script"`
20988  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20989  #    will be set to the directory where LIBOBJS objects are built.
20990  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20991  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20992done
20993LIBOBJS=$ac_libobjs
20994
20995LTLIBOBJS=$ac_ltlibobjs
20996
20997
20998if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20999  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21000Usually this means the macro was only invoked conditionally." >&5
21001echo "$as_me: error: conditional \"AMDEP\" was never defined.
21002Usually this means the macro was only invoked conditionally." >&2;}
21003   { (exit 1); exit 1; }; }
21004fi
21005if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21006  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21007Usually this means the macro was only invoked conditionally." >&5
21008echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21009Usually this means the macro was only invoked conditionally." >&2;}
21010   { (exit 1); exit 1; }; }
21011fi
21012if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21013  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21014Usually this means the macro was only invoked conditionally." >&5
21015echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21016Usually this means the macro was only invoked conditionally." >&2;}
21017   { (exit 1); exit 1; }; }
21018fi
21019
21020: ${CONFIG_STATUS=./config.status}
21021ac_clean_files_save=$ac_clean_files
21022ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21023{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21024echo "$as_me: creating $CONFIG_STATUS" >&6;}
21025cat >$CONFIG_STATUS <<_ACEOF
21026#! $SHELL
21027# Generated by $as_me.
21028# Run this file to recreate the current configuration.
21029# Compiler output produced by configure, useful for debugging
21030# configure, is in config.log if it exists.
21031
21032debug=false
21033ac_cs_recheck=false
21034ac_cs_silent=false
21035SHELL=\${CONFIG_SHELL-$SHELL}
21036_ACEOF
21037
21038cat >>$CONFIG_STATUS <<\_ACEOF
21039## --------------------- ##
21040## M4sh Initialization.  ##
21041## --------------------- ##
21042
21043# Be more Bourne compatible
21044DUALCASE=1; export DUALCASE # for MKS sh
21045if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21046  emulate sh
21047  NULLCMD=:
21048  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21049  # is contrary to our usage.  Disable this feature.
21050  alias -g '${1+"$@"}'='"$@"'
21051  setopt NO_GLOB_SUBST
21052else
21053  case `(set -o) 2>/dev/null` in
21054  *posix*) set -o posix ;;
21055esac
21056
21057fi
21058
21059
21060
21061
21062# PATH needs CR
21063# Avoid depending upon Character Ranges.
21064as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21065as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21066as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21067as_cr_digits='0123456789'
21068as_cr_alnum=$as_cr_Letters$as_cr_digits
21069
21070# The user is always right.
21071if test "${PATH_SEPARATOR+set}" != set; then
21072  echo "#! /bin/sh" >conf$$.sh
21073  echo  "exit 0"   >>conf$$.sh
21074  chmod +x conf$$.sh
21075  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21076    PATH_SEPARATOR=';'
21077  else
21078    PATH_SEPARATOR=:
21079  fi
21080  rm -f conf$$.sh
21081fi
21082
21083# Support unset when possible.
21084if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21085  as_unset=unset
21086else
21087  as_unset=false
21088fi
21089
21090
21091# IFS
21092# We need space, tab and new line, in precisely that order.  Quoting is
21093# there to prevent editors from complaining about space-tab.
21094# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21095# splitting by setting IFS to empty value.)
21096as_nl='
21097'
21098IFS=" ""	$as_nl"
21099
21100# Find who we are.  Look in the path if we contain no directory separator.
21101case $0 in
21102  *[\\/]* ) as_myself=$0 ;;
21103  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21104for as_dir in $PATH
21105do
21106  IFS=$as_save_IFS
21107  test -z "$as_dir" && as_dir=.
21108  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21109done
21110IFS=$as_save_IFS
21111
21112     ;;
21113esac
21114# We did not find ourselves, most probably we were run as `sh COMMAND'
21115# in which case we are not to be found in the path.
21116if test "x$as_myself" = x; then
21117  as_myself=$0
21118fi
21119if test ! -f "$as_myself"; then
21120  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21121  { (exit 1); exit 1; }
21122fi
21123
21124# Work around bugs in pre-3.0 UWIN ksh.
21125for as_var in ENV MAIL MAILPATH
21126do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21127done
21128PS1='$ '
21129PS2='> '
21130PS4='+ '
21131
21132# NLS nuisances.
21133for as_var in \
21134  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21135  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21136  LC_TELEPHONE LC_TIME
21137do
21138  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21139    eval $as_var=C; export $as_var
21140  else
21141    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21142  fi
21143done
21144
21145# Required to use basename.
21146if expr a : '\(a\)' >/dev/null 2>&1 &&
21147   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21148  as_expr=expr
21149else
21150  as_expr=false
21151fi
21152
21153if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21154  as_basename=basename
21155else
21156  as_basename=false
21157fi
21158
21159
21160# Name of the executable.
21161as_me=`$as_basename -- "$0" ||
21162$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21163	 X"$0" : 'X\(//\)$' \| \
21164	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21165echo X/"$0" |
21166    sed '/^.*\/\([^/][^/]*\)\/*$/{
21167	    s//\1/
21168	    q
21169	  }
21170	  /^X\/\(\/\/\)$/{
21171	    s//\1/
21172	    q
21173	  }
21174	  /^X\/\(\/\).*/{
21175	    s//\1/
21176	    q
21177	  }
21178	  s/.*/./; q'`
21179
21180# CDPATH.
21181$as_unset CDPATH
21182
21183
21184
21185  as_lineno_1=$LINENO
21186  as_lineno_2=$LINENO
21187  test "x$as_lineno_1" != "x$as_lineno_2" &&
21188  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21189
21190  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21191  # uniformly replaced by the line number.  The first 'sed' inserts a
21192  # line-number line after each line using $LINENO; the second 'sed'
21193  # does the real work.  The second script uses 'N' to pair each
21194  # line-number line with the line containing $LINENO, and appends
21195  # trailing '-' during substitution so that $LINENO is not a special
21196  # case at line end.
21197  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21198  # scripts with optimization help from Paolo Bonzini.  Blame Lee
21199  # E. McMahon (1931-1989) for sed's syntax.  :-)
21200  sed -n '
21201    p
21202    /[$]LINENO/=
21203  ' <$as_myself |
21204    sed '
21205      s/[$]LINENO.*/&-/
21206      t lineno
21207      b
21208      :lineno
21209      N
21210      :loop
21211      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21212      t loop
21213      s/-\n.*//
21214    ' >$as_me.lineno &&
21215  chmod +x "$as_me.lineno" ||
21216    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21217   { (exit 1); exit 1; }; }
21218
21219  # Don't try to exec as it changes $[0], causing all sort of problems
21220  # (the dirname of $[0] is not the place where we might find the
21221  # original and so on.  Autoconf is especially sensitive to this).
21222  . "./$as_me.lineno"
21223  # Exit status is that of the last command.
21224  exit
21225}
21226
21227
21228if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21229  as_dirname=dirname
21230else
21231  as_dirname=false
21232fi
21233
21234ECHO_C= ECHO_N= ECHO_T=
21235case `echo -n x` in
21236-n*)
21237  case `echo 'x\c'` in
21238  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21239  *)   ECHO_C='\c';;
21240  esac;;
21241*)
21242  ECHO_N='-n';;
21243esac
21244
21245if expr a : '\(a\)' >/dev/null 2>&1 &&
21246   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21247  as_expr=expr
21248else
21249  as_expr=false
21250fi
21251
21252rm -f conf$$ conf$$.exe conf$$.file
21253if test -d conf$$.dir; then
21254  rm -f conf$$.dir/conf$$.file
21255else
21256  rm -f conf$$.dir
21257  mkdir conf$$.dir
21258fi
21259echo >conf$$.file
21260if ln -s conf$$.file conf$$ 2>/dev/null; then
21261  as_ln_s='ln -s'
21262  # ... but there are two gotchas:
21263  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21264  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21265  # In both cases, we have to default to `cp -p'.
21266  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21267    as_ln_s='cp -p'
21268elif ln conf$$.file conf$$ 2>/dev/null; then
21269  as_ln_s=ln
21270else
21271  as_ln_s='cp -p'
21272fi
21273rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21274rmdir conf$$.dir 2>/dev/null
21275
21276if mkdir -p . 2>/dev/null; then
21277  as_mkdir_p=:
21278else
21279  test -d ./-p && rmdir ./-p
21280  as_mkdir_p=false
21281fi
21282
21283if test -x / >/dev/null 2>&1; then
21284  as_test_x='test -x'
21285else
21286  if ls -dL / >/dev/null 2>&1; then
21287    as_ls_L_option=L
21288  else
21289    as_ls_L_option=
21290  fi
21291  as_test_x='
21292    eval sh -c '\''
21293      if test -d "$1"; then
21294        test -d "$1/.";
21295      else
21296	case $1 in
21297        -*)set "./$1";;
21298	esac;
21299	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21300	???[sx]*):;;*)false;;esac;fi
21301    '\'' sh
21302  '
21303fi
21304as_executable_p=$as_test_x
21305
21306# Sed expression to map a string onto a valid CPP name.
21307as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21308
21309# Sed expression to map a string onto a valid variable name.
21310as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21311
21312
21313exec 6>&1
21314
21315# Save the log message, to keep $[0] and so on meaningful, and to
21316# report actual input values of CONFIG_FILES etc. instead of their
21317# values after options handling.
21318ac_log="
21319This file was extended by hadoop-pipes $as_me 0.13.0, which was
21320generated by GNU Autoconf 2.61.  Invocation command line was
21321
21322  CONFIG_FILES    = $CONFIG_FILES
21323  CONFIG_HEADERS  = $CONFIG_HEADERS
21324  CONFIG_LINKS    = $CONFIG_LINKS
21325  CONFIG_COMMANDS = $CONFIG_COMMANDS
21326  $ $0 $@
21327
21328on `(hostname || uname -n) 2>/dev/null | sed 1q`
21329"
21330
21331_ACEOF
21332
21333cat >>$CONFIG_STATUS <<_ACEOF
21334# Files that config.status was made for.
21335config_files="$ac_config_files"
21336config_headers="$ac_config_headers"
21337config_commands="$ac_config_commands"
21338
21339_ACEOF
21340
21341cat >>$CONFIG_STATUS <<\_ACEOF
21342ac_cs_usage="\
21343\`$as_me' instantiates files from templates according to the
21344current configuration.
21345
21346Usage: $0 [OPTIONS] [FILE]...
21347
21348  -h, --help       print this help, then exit
21349  -V, --version    print version number and configuration settings, then exit
21350  -q, --quiet      do not print progress messages
21351  -d, --debug      don't remove temporary files
21352      --recheck    update $as_me by reconfiguring in the same conditions
21353  --file=FILE[:TEMPLATE]
21354		   instantiate the configuration file FILE
21355  --header=FILE[:TEMPLATE]
21356		   instantiate the configuration header FILE
21357
21358Configuration files:
21359$config_files
21360
21361Configuration headers:
21362$config_headers
21363
21364Configuration commands:
21365$config_commands
21366
21367Report bugs to <bug-autoconf@gnu.org>."
21368
21369_ACEOF
21370cat >>$CONFIG_STATUS <<_ACEOF
21371ac_cs_version="\\
21372hadoop-pipes config.status 0.13.0
21373configured by $0, generated by GNU Autoconf 2.61,
21374  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21375
21376Copyright (C) 2006 Free Software Foundation, Inc.
21377This config.status script is free software; the Free Software Foundation
21378gives unlimited permission to copy, distribute and modify it."
21379
21380ac_pwd='$ac_pwd'
21381srcdir='$srcdir'
21382INSTALL='$INSTALL'
21383_ACEOF
21384
21385cat >>$CONFIG_STATUS <<\_ACEOF
21386# If no file are specified by the user, then we need to provide default
21387# value.  By we need to know if files were specified by the user.
21388ac_need_defaults=:
21389while test $# != 0
21390do
21391  case $1 in
21392  --*=*)
21393    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21394    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21395    ac_shift=:
21396    ;;
21397  *)
21398    ac_option=$1
21399    ac_optarg=$2
21400    ac_shift=shift
21401    ;;
21402  esac
21403
21404  case $ac_option in
21405  # Handling of the options.
21406  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21407    ac_cs_recheck=: ;;
21408  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21409    echo "$ac_cs_version"; exit ;;
21410  --debug | --debu | --deb | --de | --d | -d )
21411    debug=: ;;
21412  --file | --fil | --fi | --f )
21413    $ac_shift
21414    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21415    ac_need_defaults=false;;
21416  --header | --heade | --head | --hea )
21417    $ac_shift
21418    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21419    ac_need_defaults=false;;
21420  --he | --h)
21421    # Conflict between --help and --header
21422    { echo "$as_me: error: ambiguous option: $1
21423Try \`$0 --help' for more information." >&2
21424   { (exit 1); exit 1; }; };;
21425  --help | --hel | -h )
21426    echo "$ac_cs_usage"; exit ;;
21427  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21428  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21429    ac_cs_silent=: ;;
21430
21431  # This is an error.
21432  -*) { echo "$as_me: error: unrecognized option: $1
21433Try \`$0 --help' for more information." >&2
21434   { (exit 1); exit 1; }; } ;;
21435
21436  *) ac_config_targets="$ac_config_targets $1"
21437     ac_need_defaults=false ;;
21438
21439  esac
21440  shift
21441done
21442
21443ac_configure_extra_args=
21444
21445if $ac_cs_silent; then
21446  exec 6>/dev/null
21447  ac_configure_extra_args="$ac_configure_extra_args --silent"
21448fi
21449
21450_ACEOF
21451cat >>$CONFIG_STATUS <<_ACEOF
21452if \$ac_cs_recheck; then
21453  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21454  CONFIG_SHELL=$SHELL
21455  export CONFIG_SHELL
21456  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21457fi
21458
21459_ACEOF
21460cat >>$CONFIG_STATUS <<\_ACEOF
21461exec 5>>config.log
21462{
21463  echo
21464  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21465## Running $as_me. ##
21466_ASBOX
21467  echo "$ac_log"
21468} >&5
21469
21470_ACEOF
21471cat >>$CONFIG_STATUS <<_ACEOF
21472#
21473# INIT-COMMANDS
21474#
21475AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21476
21477_ACEOF
21478
21479cat >>$CONFIG_STATUS <<\_ACEOF
21480
21481# Handling of arguments.
21482for ac_config_target in $ac_config_targets
21483do
21484  case $ac_config_target in
21485    "impl/config.h") CONFIG_HEADERS="$CONFIG_HEADERS impl/config.h" ;;
21486    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21487    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21488
21489  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21490echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21491   { (exit 1); exit 1; }; };;
21492  esac
21493done
21494
21495
21496# If the user did not use the arguments to specify the items to instantiate,
21497# then the envvar interface is used.  Set only those that are not.
21498# We use the long form for the default assignment because of an extremely
21499# bizarre bug on SunOS 4.1.3.
21500if $ac_need_defaults; then
21501  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21502  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21503  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21504fi
21505
21506# Have a temporary directory for convenience.  Make it in the build tree
21507# simply because there is no reason against having it here, and in addition,
21508# creating and moving files from /tmp can sometimes cause problems.
21509# Hook for its removal unless debugging.
21510# Note that there is a small window in which the directory will not be cleaned:
21511# after its creation but before its name has been assigned to `$tmp'.
21512$debug ||
21513{
21514  tmp=
21515  trap 'exit_status=$?
21516  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21517' 0
21518  trap '{ (exit 1); exit 1; }' 1 2 13 15
21519}
21520# Create a (secure) tmp directory for tmp files.
21521
21522{
21523  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21524  test -n "$tmp" && test -d "$tmp"
21525}  ||
21526{
21527  tmp=./conf$$-$RANDOM
21528  (umask 077 && mkdir "$tmp")
21529} ||
21530{
21531   echo "$me: cannot create a temporary directory in ." >&2
21532   { (exit 1); exit 1; }
21533}
21534
21535#
21536# Set up the sed scripts for CONFIG_FILES section.
21537#
21538
21539# No need to generate the scripts if there are no CONFIG_FILES.
21540# This happens for instance when ./config.status config.h
21541if test -n "$CONFIG_FILES"; then
21542
21543_ACEOF
21544
21545
21546
21547ac_delim='%!_!# '
21548for ac_last_try in false false false false false :; do
21549  cat >conf$$subs.sed <<_ACEOF
21550SHELL!$SHELL$ac_delim
21551PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21552PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21553PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21554PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21555PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21556PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21557exec_prefix!$exec_prefix$ac_delim
21558prefix!$prefix$ac_delim
21559program_transform_name!$program_transform_name$ac_delim
21560bindir!$bindir$ac_delim
21561sbindir!$sbindir$ac_delim
21562libexecdir!$libexecdir$ac_delim
21563datarootdir!$datarootdir$ac_delim
21564datadir!$datadir$ac_delim
21565sysconfdir!$sysconfdir$ac_delim
21566sharedstatedir!$sharedstatedir$ac_delim
21567localstatedir!$localstatedir$ac_delim
21568includedir!$includedir$ac_delim
21569oldincludedir!$oldincludedir$ac_delim
21570docdir!$docdir$ac_delim
21571infodir!$infodir$ac_delim
21572htmldir!$htmldir$ac_delim
21573dvidir!$dvidir$ac_delim
21574pdfdir!$pdfdir$ac_delim
21575psdir!$psdir$ac_delim
21576libdir!$libdir$ac_delim
21577localedir!$localedir$ac_delim
21578mandir!$mandir$ac_delim
21579DEFS!$DEFS$ac_delim
21580ECHO_C!$ECHO_C$ac_delim
21581ECHO_N!$ECHO_N$ac_delim
21582ECHO_T!$ECHO_T$ac_delim
21583LIBS!$LIBS$ac_delim
21584build_alias!$build_alias$ac_delim
21585host_alias!$host_alias$ac_delim
21586target_alias!$target_alias$ac_delim
21587INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21588INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21589INSTALL_DATA!$INSTALL_DATA$ac_delim
21590CYGPATH_W!$CYGPATH_W$ac_delim
21591PACKAGE!$PACKAGE$ac_delim
21592VERSION!$VERSION$ac_delim
21593ACLOCAL!$ACLOCAL$ac_delim
21594AUTOCONF!$AUTOCONF$ac_delim
21595AUTOMAKE!$AUTOMAKE$ac_delim
21596AUTOHEADER!$AUTOHEADER$ac_delim
21597MAKEINFO!$MAKEINFO$ac_delim
21598install_sh!$install_sh$ac_delim
21599STRIP!$STRIP$ac_delim
21600INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21601mkdir_p!$mkdir_p$ac_delim
21602AWK!$AWK$ac_delim
21603SET_MAKE!$SET_MAKE$ac_delim
21604am__leading_dot!$am__leading_dot$ac_delim
21605AMTAR!$AMTAR$ac_delim
21606am__tar!$am__tar$ac_delim
21607am__untar!$am__untar$ac_delim
21608CC!$CC$ac_delim
21609CFLAGS!$CFLAGS$ac_delim
21610LDFLAGS!$LDFLAGS$ac_delim
21611CPPFLAGS!$CPPFLAGS$ac_delim
21612ac_ct_CC!$ac_ct_CC$ac_delim
21613EXEEXT!$EXEEXT$ac_delim
21614OBJEXT!$OBJEXT$ac_delim
21615DEPDIR!$DEPDIR$ac_delim
21616am__include!$am__include$ac_delim
21617am__quote!$am__quote$ac_delim
21618AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21619AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21620AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21621CCDEPMODE!$CCDEPMODE$ac_delim
21622am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21623am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21624HADOOP_UTILS_PREFIX!$HADOOP_UTILS_PREFIX$ac_delim
21625CPP!$CPP$ac_delim
21626GREP!$GREP$ac_delim
21627EGREP!$EGREP$ac_delim
21628CXX!$CXX$ac_delim
21629CXXFLAGS!$CXXFLAGS$ac_delim
21630ac_ct_CXX!$ac_ct_CXX$ac_delim
21631CXXDEPMODE!$CXXDEPMODE$ac_delim
21632am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21633am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21634build!$build$ac_delim
21635build_cpu!$build_cpu$ac_delim
21636build_vendor!$build_vendor$ac_delim
21637build_os!$build_os$ac_delim
21638host!$host$ac_delim
21639host_cpu!$host_cpu$ac_delim
21640host_vendor!$host_vendor$ac_delim
21641host_os!$host_os$ac_delim
21642SED!$SED$ac_delim
21643LN_S!$LN_S$ac_delim
21644ECHO!$ECHO$ac_delim
21645AR!$AR$ac_delim
21646RANLIB!$RANLIB$ac_delim
21647_ACEOF
21648
21649  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21650    break
21651  elif $ac_last_try; then
21652    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21653echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21654   { (exit 1); exit 1; }; }
21655  else
21656    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21657  fi
21658done
21659
21660ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21661if test -n "$ac_eof"; then
21662  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21663  ac_eof=`expr $ac_eof + 1`
21664fi
21665
21666cat >>$CONFIG_STATUS <<_ACEOF
21667cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21668/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21669_ACEOF
21670sed '
21671s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21672s/^/s,@/; s/!/@,|#_!!_#|/
21673:n
21674t n
21675s/'"$ac_delim"'$/,g/; t
21676s/$/\\/; p
21677N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21678' >>$CONFIG_STATUS <conf$$subs.sed
21679rm -f conf$$subs.sed
21680cat >>$CONFIG_STATUS <<_ACEOF
21681CEOF$ac_eof
21682_ACEOF
21683
21684
21685ac_delim='%!_!# '
21686for ac_last_try in false false false false false :; do
21687  cat >conf$$subs.sed <<_ACEOF
21688CXXCPP!$CXXCPP$ac_delim
21689F77!$F77$ac_delim
21690FFLAGS!$FFLAGS$ac_delim
21691ac_ct_F77!$ac_ct_F77$ac_delim
21692LIBTOOL!$LIBTOOL$ac_delim
21693LIBOBJS!$LIBOBJS$ac_delim
21694LTLIBOBJS!$LTLIBOBJS$ac_delim
21695_ACEOF
21696
21697  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
21698    break
21699  elif $ac_last_try; then
21700    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21701echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21702   { (exit 1); exit 1; }; }
21703  else
21704    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21705  fi
21706done
21707
21708ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21709if test -n "$ac_eof"; then
21710  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21711  ac_eof=`expr $ac_eof + 1`
21712fi
21713
21714cat >>$CONFIG_STATUS <<_ACEOF
21715cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21716/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21717_ACEOF
21718sed '
21719s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21720s/^/s,@/; s/!/@,|#_!!_#|/
21721:n
21722t n
21723s/'"$ac_delim"'$/,g/; t
21724s/$/\\/; p
21725N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21726' >>$CONFIG_STATUS <conf$$subs.sed
21727rm -f conf$$subs.sed
21728cat >>$CONFIG_STATUS <<_ACEOF
21729:end
21730s/|#_!!_#|//g
21731CEOF$ac_eof
21732_ACEOF
21733
21734
21735# VPATH may cause trouble with some makes, so we remove $(srcdir),
21736# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21737# trailing colons and then remove the whole line if VPATH becomes empty
21738# (actually we leave an empty line to preserve line numbers).
21739if test "x$srcdir" = x.; then
21740  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
21741s/:*\$(srcdir):*/:/
21742s/:*\${srcdir}:*/:/
21743s/:*@srcdir@:*/:/
21744s/^\([^=]*=[	 ]*\):*/\1/
21745s/:*$//
21746s/^[^=]*=[	 ]*$//
21747}'
21748fi
21749
21750cat >>$CONFIG_STATUS <<\_ACEOF
21751fi # test -n "$CONFIG_FILES"
21752
21753
21754for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
21755do
21756  case $ac_tag in
21757  :[FHLC]) ac_mode=$ac_tag; continue;;
21758  esac
21759  case $ac_mode$ac_tag in
21760  :[FHL]*:*);;
21761  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21762echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21763   { (exit 1); exit 1; }; };;
21764  :[FH]-) ac_tag=-:-;;
21765  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21766  esac
21767  ac_save_IFS=$IFS
21768  IFS=:
21769  set x $ac_tag
21770  IFS=$ac_save_IFS
21771  shift
21772  ac_file=$1
21773  shift
21774
21775  case $ac_mode in
21776  :L) ac_source=$1;;
21777  :[FH])
21778    ac_file_inputs=
21779    for ac_f
21780    do
21781      case $ac_f in
21782      -) ac_f="$tmp/stdin";;
21783      *) # Look for the file first in the build tree, then in the source tree
21784	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21785	 # because $ac_f cannot contain `:'.
21786	 test -f "$ac_f" ||
21787	   case $ac_f in
21788	   [\\/$]*) false;;
21789	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21790	   esac ||
21791	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21792echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21793   { (exit 1); exit 1; }; };;
21794      esac
21795      ac_file_inputs="$ac_file_inputs $ac_f"
21796    done
21797
21798    # Let's still pretend it is `configure' which instantiates (i.e., don't
21799    # use $as_me), people would be surprised to read:
21800    #    /* config.h.  Generated by config.status.  */
21801    configure_input="Generated from "`IFS=:
21802	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21803    if test x"$ac_file" != x-; then
21804      configure_input="$ac_file.  $configure_input"
21805      { echo "$as_me:$LINENO: creating $ac_file" >&5
21806echo "$as_me: creating $ac_file" >&6;}
21807    fi
21808
21809    case $ac_tag in
21810    *:-:* | *:-) cat >"$tmp/stdin";;
21811    esac
21812    ;;
21813  esac
21814
21815  ac_dir=`$as_dirname -- "$ac_file" ||
21816$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21817	 X"$ac_file" : 'X\(//\)[^/]' \| \
21818	 X"$ac_file" : 'X\(//\)$' \| \
21819	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21820echo X"$ac_file" |
21821    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21822	    s//\1/
21823	    q
21824	  }
21825	  /^X\(\/\/\)[^/].*/{
21826	    s//\1/
21827	    q
21828	  }
21829	  /^X\(\/\/\)$/{
21830	    s//\1/
21831	    q
21832	  }
21833	  /^X\(\/\).*/{
21834	    s//\1/
21835	    q
21836	  }
21837	  s/.*/./; q'`
21838  { as_dir="$ac_dir"
21839  case $as_dir in #(
21840  -*) as_dir=./$as_dir;;
21841  esac
21842  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21843    as_dirs=
21844    while :; do
21845      case $as_dir in #(
21846      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21847      *) as_qdir=$as_dir;;
21848      esac
21849      as_dirs="'$as_qdir' $as_dirs"
21850      as_dir=`$as_dirname -- "$as_dir" ||
21851$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21852	 X"$as_dir" : 'X\(//\)[^/]' \| \
21853	 X"$as_dir" : 'X\(//\)$' \| \
21854	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21855echo X"$as_dir" |
21856    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21857	    s//\1/
21858	    q
21859	  }
21860	  /^X\(\/\/\)[^/].*/{
21861	    s//\1/
21862	    q
21863	  }
21864	  /^X\(\/\/\)$/{
21865	    s//\1/
21866	    q
21867	  }
21868	  /^X\(\/\).*/{
21869	    s//\1/
21870	    q
21871	  }
21872	  s/.*/./; q'`
21873      test -d "$as_dir" && break
21874    done
21875    test -z "$as_dirs" || eval "mkdir $as_dirs"
21876  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21877echo "$as_me: error: cannot create directory $as_dir" >&2;}
21878   { (exit 1); exit 1; }; }; }
21879  ac_builddir=.
21880
21881case "$ac_dir" in
21882.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21883*)
21884  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21885  # A ".." for each directory in $ac_dir_suffix.
21886  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21887  case $ac_top_builddir_sub in
21888  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21889  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21890  esac ;;
21891esac
21892ac_abs_top_builddir=$ac_pwd
21893ac_abs_builddir=$ac_pwd$ac_dir_suffix
21894# for backward compatibility:
21895ac_top_builddir=$ac_top_build_prefix
21896
21897case $srcdir in
21898  .)  # We are building in place.
21899    ac_srcdir=.
21900    ac_top_srcdir=$ac_top_builddir_sub
21901    ac_abs_top_srcdir=$ac_pwd ;;
21902  [\\/]* | ?:[\\/]* )  # Absolute name.
21903    ac_srcdir=$srcdir$ac_dir_suffix;
21904    ac_top_srcdir=$srcdir
21905    ac_abs_top_srcdir=$srcdir ;;
21906  *) # Relative name.
21907    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21908    ac_top_srcdir=$ac_top_build_prefix$srcdir
21909    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21910esac
21911ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21912
21913
21914  case $ac_mode in
21915  :F)
21916  #
21917  # CONFIG_FILE
21918  #
21919
21920  case $INSTALL in
21921  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21922  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21923  esac
21924_ACEOF
21925
21926cat >>$CONFIG_STATUS <<\_ACEOF
21927# If the template does not know about datarootdir, expand it.
21928# FIXME: This hack should be removed a few years after 2.60.
21929ac_datarootdir_hack=; ac_datarootdir_seen=
21930
21931case `sed -n '/datarootdir/ {
21932  p
21933  q
21934}
21935/@datadir@/p
21936/@docdir@/p
21937/@infodir@/p
21938/@localedir@/p
21939/@mandir@/p
21940' $ac_file_inputs` in
21941*datarootdir*) ac_datarootdir_seen=yes;;
21942*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21943  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21944echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21945_ACEOF
21946cat >>$CONFIG_STATUS <<_ACEOF
21947  ac_datarootdir_hack='
21948  s&@datadir@&$datadir&g
21949  s&@docdir@&$docdir&g
21950  s&@infodir@&$infodir&g
21951  s&@localedir@&$localedir&g
21952  s&@mandir@&$mandir&g
21953    s&\\\${datarootdir}&$datarootdir&g' ;;
21954esac
21955_ACEOF
21956
21957# Neutralize VPATH when `$srcdir' = `.'.
21958# Shell code in configure.ac might set extrasub.
21959# FIXME: do we really want to maintain this feature?
21960cat >>$CONFIG_STATUS <<_ACEOF
21961  sed "$ac_vpsub
21962$extrasub
21963_ACEOF
21964cat >>$CONFIG_STATUS <<\_ACEOF
21965:t
21966/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21967s&@configure_input@&$configure_input&;t t
21968s&@top_builddir@&$ac_top_builddir_sub&;t t
21969s&@srcdir@&$ac_srcdir&;t t
21970s&@abs_srcdir@&$ac_abs_srcdir&;t t
21971s&@top_srcdir@&$ac_top_srcdir&;t t
21972s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21973s&@builddir@&$ac_builddir&;t t
21974s&@abs_builddir@&$ac_abs_builddir&;t t
21975s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21976s&@INSTALL@&$ac_INSTALL&;t t
21977$ac_datarootdir_hack
21978" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21979
21980test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21981  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21982  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21983  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21984which seems to be undefined.  Please make sure it is defined." >&5
21985echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21986which seems to be undefined.  Please make sure it is defined." >&2;}
21987
21988  rm -f "$tmp/stdin"
21989  case $ac_file in
21990  -) cat "$tmp/out"; rm -f "$tmp/out";;
21991  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21992  esac
21993 ;;
21994  :H)
21995  #
21996  # CONFIG_HEADER
21997  #
21998_ACEOF
21999
22000# Transform confdefs.h into a sed script `conftest.defines', that
22001# substitutes the proper values into config.h.in to produce config.h.
22002rm -f conftest.defines conftest.tail
22003# First, append a space to every undef/define line, to ease matching.
22004echo 's/$/ /' >conftest.defines
22005# Then, protect against being on the right side of a sed subst, or in
22006# an unquoted here document, in config.status.  If some macros were
22007# called several times there might be several #defines for the same
22008# symbol, which is useless.  But do not sort them, since the last
22009# AC_DEFINE must be honored.
22010ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22011# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22012# NAME is the cpp macro being defined, VALUE is the value it is being given.
22013# PARAMS is the parameter list in the macro definition--in most cases, it's
22014# just an empty string.
22015ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
22016ac_dB='\\)[	 (].*,\\1define\\2'
22017ac_dC=' '
22018ac_dD=' ,'
22019
22020uniq confdefs.h |
22021  sed -n '
22022	t rset
22023	:rset
22024	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
22025	t ok
22026	d
22027	:ok
22028	s/[\\&,]/\\&/g
22029	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22030	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22031  ' >>conftest.defines
22032
22033# Remove the space that was appended to ease matching.
22034# Then replace #undef with comments.  This is necessary, for
22035# example, in the case of _POSIX_SOURCE, which is predefined and required
22036# on some systems where configure will not decide to define it.
22037# (The regexp can be short, since the line contains either #define or #undef.)
22038echo 's/ $//
22039s,^[	 #]*u.*,/* & */,' >>conftest.defines
22040
22041# Break up conftest.defines:
22042ac_max_sed_lines=50
22043
22044# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22045# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22046# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22047# et cetera.
22048ac_in='$ac_file_inputs'
22049ac_out='"$tmp/out1"'
22050ac_nxt='"$tmp/out2"'
22051
22052while :
22053do
22054  # Write a here document:
22055    cat >>$CONFIG_STATUS <<_ACEOF
22056    # First, check the format of the line:
22057    cat >"\$tmp/defines.sed" <<\\CEOF
22058/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
22059/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
22060b
22061:def
22062_ACEOF
22063  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22064  echo 'CEOF
22065    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22066  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22067  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22068  grep . conftest.tail >/dev/null || break
22069  rm -f conftest.defines
22070  mv conftest.tail conftest.defines
22071done
22072rm -f conftest.defines conftest.tail
22073
22074echo "ac_result=$ac_in" >>$CONFIG_STATUS
22075cat >>$CONFIG_STATUS <<\_ACEOF
22076  if test x"$ac_file" != x-; then
22077    echo "/* $configure_input  */" >"$tmp/config.h"
22078    cat "$ac_result" >>"$tmp/config.h"
22079    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22080      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22081echo "$as_me: $ac_file is unchanged" >&6;}
22082    else
22083      rm -f $ac_file
22084      mv "$tmp/config.h" $ac_file
22085    fi
22086  else
22087    echo "/* $configure_input  */"
22088    cat "$ac_result"
22089  fi
22090  rm -f "$tmp/out12"
22091# Compute $ac_file's index in $config_headers.
22092_am_stamp_count=1
22093for _am_header in $config_headers :; do
22094  case $_am_header in
22095    $ac_file | $ac_file:* )
22096      break ;;
22097    * )
22098      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22099  esac
22100done
22101echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
22102$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22103	 X$ac_file : 'X\(//\)[^/]' \| \
22104	 X$ac_file : 'X\(//\)$' \| \
22105	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
22106echo X$ac_file |
22107    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22108	    s//\1/
22109	    q
22110	  }
22111	  /^X\(\/\/\)[^/].*/{
22112	    s//\1/
22113	    q
22114	  }
22115	  /^X\(\/\/\)$/{
22116	    s//\1/
22117	    q
22118	  }
22119	  /^X\(\/\).*/{
22120	    s//\1/
22121	    q
22122	  }
22123	  s/.*/./; q'`/stamp-h$_am_stamp_count
22124 ;;
22125
22126  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22127echo "$as_me: executing $ac_file commands" >&6;}
22128 ;;
22129  esac
22130
22131
22132  case $ac_file$ac_mode in
22133    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22134  # Strip MF so we end up with the name of the file.
22135  mf=`echo "$mf" | sed -e 's/:.*$//'`
22136  # Check whether this is an Automake generated Makefile or not.
22137  # We used to match only the files named `Makefile.in', but
22138  # some people rename them; so instead we look at the file content.
22139  # Grep'ing the first line is not enough: some people post-process
22140  # each Makefile.in and add a new line on top of each file to say so.
22141  # So let's grep whole file.
22142  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22143    dirpart=`$as_dirname -- "$mf" ||
22144$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22145	 X"$mf" : 'X\(//\)[^/]' \| \
22146	 X"$mf" : 'X\(//\)$' \| \
22147	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22148echo X"$mf" |
22149    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22150	    s//\1/
22151	    q
22152	  }
22153	  /^X\(\/\/\)[^/].*/{
22154	    s//\1/
22155	    q
22156	  }
22157	  /^X\(\/\/\)$/{
22158	    s//\1/
22159	    q
22160	  }
22161	  /^X\(\/\).*/{
22162	    s//\1/
22163	    q
22164	  }
22165	  s/.*/./; q'`
22166  else
22167    continue
22168  fi
22169  # Extract the definition of DEPDIR, am__include, and am__quote
22170  # from the Makefile without running `make'.
22171  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22172  test -z "$DEPDIR" && continue
22173  am__include=`sed -n 's/^am__include = //p' < "$mf"`
22174  test -z "am__include" && continue
22175  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22176  # When using ansi2knr, U may be empty or an underscore; expand it
22177  U=`sed -n 's/^U = //p' < "$mf"`
22178  # Find all dependency output files, they are included files with
22179  # $(DEPDIR) in their names.  We invoke sed twice because it is the
22180  # simplest approach to changing $(DEPDIR) to its actual value in the
22181  # expansion.
22182  for file in `sed -n "
22183    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22184       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22185    # Make sure the directory exists.
22186    test -f "$dirpart/$file" && continue
22187    fdir=`$as_dirname -- "$file" ||
22188$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22189	 X"$file" : 'X\(//\)[^/]' \| \
22190	 X"$file" : 'X\(//\)$' \| \
22191	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22192echo X"$file" |
22193    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22194	    s//\1/
22195	    q
22196	  }
22197	  /^X\(\/\/\)[^/].*/{
22198	    s//\1/
22199	    q
22200	  }
22201	  /^X\(\/\/\)$/{
22202	    s//\1/
22203	    q
22204	  }
22205	  /^X\(\/\).*/{
22206	    s//\1/
22207	    q
22208	  }
22209	  s/.*/./; q'`
22210    { as_dir=$dirpart/$fdir
22211  case $as_dir in #(
22212  -*) as_dir=./$as_dir;;
22213  esac
22214  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22215    as_dirs=
22216    while :; do
22217      case $as_dir in #(
22218      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22219      *) as_qdir=$as_dir;;
22220      esac
22221      as_dirs="'$as_qdir' $as_dirs"
22222      as_dir=`$as_dirname -- "$as_dir" ||
22223$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22224	 X"$as_dir" : 'X\(//\)[^/]' \| \
22225	 X"$as_dir" : 'X\(//\)$' \| \
22226	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22227echo X"$as_dir" |
22228    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22229	    s//\1/
22230	    q
22231	  }
22232	  /^X\(\/\/\)[^/].*/{
22233	    s//\1/
22234	    q
22235	  }
22236	  /^X\(\/\/\)$/{
22237	    s//\1/
22238	    q
22239	  }
22240	  /^X\(\/\).*/{
22241	    s//\1/
22242	    q
22243	  }
22244	  s/.*/./; q'`
22245      test -d "$as_dir" && break
22246    done
22247    test -z "$as_dirs" || eval "mkdir $as_dirs"
22248  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22249echo "$as_me: error: cannot create directory $as_dir" >&2;}
22250   { (exit 1); exit 1; }; }; }
22251    # echo "creating $dirpart/$file"
22252    echo '# dummy' > "$dirpart/$file"
22253  done
22254done
22255 ;;
22256
22257  esac
22258done # for ac_tag
22259
22260
22261{ (exit 0); exit 0; }
22262_ACEOF
22263chmod +x $CONFIG_STATUS
22264ac_clean_files=$ac_clean_files_save
22265
22266
22267# configure is writing to config.log, and then calls config.status.
22268# config.status does its own redirection, appending to config.log.
22269# Unfortunately, on DOS this fails, as config.log is still kept open
22270# by configure, so config.status won't be able to write to it; its
22271# output is simply discarded.  So we exec the FD to /dev/null,
22272# effectively closing config.log, so it can be properly (re)opened and
22273# appended to by config.status.  When coming back to configure, we
22274# need to make the FD available again.
22275if test "$no_create" != yes; then
22276  ac_cs_success=:
22277  ac_config_status_args=
22278  test "$silent" = yes &&
22279    ac_config_status_args="$ac_config_status_args --quiet"
22280  exec 5>/dev/null
22281  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22282  exec 5>>config.log
22283  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22284  # would make configure fail if this is the last instruction.
22285  $ac_cs_success || { (exit 1); exit 1; }
22286fi
22287
22288