xref: /sqlite-3.40.0/configure (revision 8a29dfde)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for sqlite 3.5.7.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21  setopt NO_GLOB_SUBST
22else
23  case `(set -o) 2>/dev/null` in
24  *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42  echo "#! /bin/sh" >conf$$.sh
43  echo  "exit 0"   >>conf$$.sh
44  chmod +x conf$$.sh
45  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46    PATH_SEPARATOR=';'
47  else
48    PATH_SEPARATOR=:
49  fi
50  rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55  as_unset=unset
56else
57  as_unset=false
58fi
59
60
61# IFS
62# We need space, tab and new line, in precisely that order.  Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" ""	$as_nl"
69
70# Find who we are.  Look in the path if we contain no directory separator.
71case $0 in
72  *[\\/]* ) as_myself=$0 ;;
73  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76  IFS=$as_save_IFS
77  test -z "$as_dir" && as_dir=.
78  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82     ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87  as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91  { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106  LC_TELEPHONE LC_TIME
107do
108  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109    eval $as_var=C; export $as_var
110  else
111    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112  fi
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117   test "X`expr 00001 : '.*\(...\)'`" = X001; then
118  as_expr=expr
119else
120  as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124  as_basename=basename
125else
126  as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133	 X"$0" : 'X\(//\)$' \| \
134	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136    sed '/^.*\/\([^/][^/]*\)\/*$/{
137	    s//\1/
138	    q
139	  }
140	  /^X\/\(\/\/\)$/{
141	    s//\1/
142	    q
143	  }
144	  /^X\/\(\/\).*/{
145	    s//\1/
146	    q
147	  }
148	  s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155  if (eval ":") 2>/dev/null; then
156  as_have_required=yes
157else
158  as_have_required=no
159fi
160
161  if test $as_have_required = yes && 	 (eval ":
162(as_func_return () {
163  (exit \$1)
164}
165as_func_success () {
166  as_func_return 0
167}
168as_func_failure () {
169  as_func_return 1
170}
171as_func_ret_success () {
172  return 0
173}
174as_func_ret_failure () {
175  return 1
176}
177
178exitcode=0
179if as_func_success; then
180  :
181else
182  exitcode=1
183  echo as_func_success failed.
184fi
185
186if as_func_failure; then
187  exitcode=1
188  echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192  :
193else
194  exitcode=1
195  echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199  exitcode=1
200  echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204  :
205else
206  exitcode=1
207  echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213  as_lineno_1=\$LINENO
214  as_lineno_2=\$LINENO
215  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218  :
219else
220  as_candidate_shells=
221    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224  IFS=$as_save_IFS
225  test -z "$as_dir" && as_dir=.
226  case $as_dir in
227	 /*)
228	   for as_base in sh bash ksh sh5; do
229	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230	   done;;
231       esac
232done
233IFS=$as_save_IFS
234
235
236      for as_shell in $as_candidate_shells $SHELL; do
237	 # Try only shells that exist, to save several forks.
238	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239		{ ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241  emulate sh
242  NULLCMD=:
243  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244  # is contrary to our usage.  Disable this feature.
245  alias -g '${1+"$@"}'='"$@"'
246  setopt NO_GLOB_SUBST
247else
248  case `(set -o) 2>/dev/null` in
249  *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258  CONFIG_SHELL=$as_shell
259	       as_have_required=yes
260	       if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278  (exit $1)
279}
280as_func_success () {
281  as_func_return 0
282}
283as_func_failure () {
284  as_func_return 1
285}
286as_func_ret_success () {
287  return 0
288}
289as_func_ret_failure () {
290  return 1
291}
292
293exitcode=0
294if as_func_success; then
295  :
296else
297  exitcode=1
298  echo as_func_success failed.
299fi
300
301if as_func_failure; then
302  exitcode=1
303  echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307  :
308else
309  exitcode=1
310  echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314  exitcode=1
315  echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319  :
320else
321  exitcode=1
322  echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
328  as_lineno_1=$LINENO
329  as_lineno_2=$LINENO
330  test "x$as_lineno_1" != "x$as_lineno_2" &&
331  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335  break
336fi
337
338fi
339
340      done
341
342      if test "x$CONFIG_SHELL" != x; then
343  for as_var in BASH_ENV ENV
344        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345        done
346        export CONFIG_SHELL
347        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351    if test $as_have_required = no; then
352  echo This script requires a shell more modern than all the
353      echo shells that I found on your system.  Please install a
354      echo modern shell, or manually run the script under such a
355      echo shell if you do have one.
356      { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367  (exit \$1)
368}
369as_func_success () {
370  as_func_return 0
371}
372as_func_failure () {
373  as_func_return 1
374}
375as_func_ret_success () {
376  return 0
377}
378as_func_ret_failure () {
379  return 1
380}
381
382exitcode=0
383if as_func_success; then
384  :
385else
386  exitcode=1
387  echo as_func_success failed.
388fi
389
390if as_func_failure; then
391  exitcode=1
392  echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396  :
397else
398  exitcode=1
399  echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403  exitcode=1
404  echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408  :
409else
410  exitcode=1
411  echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415  echo No shell found that supports shell functions.
416  echo Please tell autoconf@gnu.org about your system,
417  echo including any error possibly output before this
418  echo message
419}
420
421
422
423  as_lineno_1=$LINENO
424  as_lineno_2=$LINENO
425  test "x$as_lineno_1" != "x$as_lineno_2" &&
426  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429  # uniformly replaced by the line number.  The first 'sed' inserts a
430  # line-number line after each line using $LINENO; the second 'sed'
431  # does the real work.  The second script uses 'N' to pair each
432  # line-number line with the line containing $LINENO, and appends
433  # trailing '-' during substitution so that $LINENO is not a special
434  # case at line end.
435  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436  # scripts with optimization help from Paolo Bonzini.  Blame Lee
437  # E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455   { (exit 1); exit 1; }; }
456
457  # Don't try to exec as it changes $[0], causing all sort of problems
458  # (the dirname of $[0] is not the place where we might find the
459  # original and so on.  Autoconf is especially sensitive to this).
460  . "./$as_me.lineno"
461  # Exit status is that of the last command.
462  exit
463}
464
465
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467  as_dirname=dirname
468else
469  as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475  case `echo 'x\c'` in
476  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477  *)   ECHO_C='\c';;
478  esac;;
479*)
480  ECHO_N='-n';;
481esac
482
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484   test "X`expr 00001 : '.*\(...\)'`" = X001; then
485  as_expr=expr
486else
487  as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
491if test -d conf$$.dir; then
492  rm -f conf$$.dir/conf$$.file
493else
494  rm -f conf$$.dir
495  mkdir conf$$.dir
496fi
497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
499  as_ln_s='ln -s'
500  # ... but there are two gotchas:
501  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503  # In both cases, we have to default to `cp -p'.
504  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505    as_ln_s='cp -p'
506elif ln conf$$.file conf$$ 2>/dev/null; then
507  as_ln_s=ln
508else
509  as_ln_s='cp -p'
510fi
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
513
514if mkdir -p . 2>/dev/null; then
515  as_mkdir_p=:
516else
517  test -d ./-p && rmdir ./-p
518  as_mkdir_p=false
519fi
520
521if test -x / >/dev/null 2>&1; then
522  as_test_x='test -x'
523else
524  if ls -dL / >/dev/null 2>&1; then
525    as_ls_L_option=L
526  else
527    as_ls_L_option=
528  fi
529  as_test_x='
530    eval sh -c '\''
531      if test -d "$1"; then
532        test -d "$1/.";
533      else
534	case $1 in
535        -*)set "./$1";;
536	esac;
537	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538	???[sx]*):;;*)false;;esac;fi
539    '\'' sh
540  '
541fi
542as_executable_p=$as_test_x
543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553# Check that we are running under the correct shell.
554SHELL=${CONFIG_SHELL-/bin/sh}
555
556case X$ECHO in
557X*--fallback-echo)
558  # Remove one level of quotation (which was required for Make).
559  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560  ;;
561esac
562
563echo=${ECHO-echo}
564if test "X$1" = X--no-reexec; then
565  # Discard the --no-reexec flag, and continue.
566  shift
567elif test "X$1" = X--fallback-echo; then
568  # Avoid inline document here, it may be left over
569  :
570elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571  # Yippee, $echo works!
572  :
573else
574  # Restart under the correct shell.
575  exec $SHELL "$0" --no-reexec ${1+"$@"}
576fi
577
578if test "X$1" = X--fallback-echo; then
579  # used as fallback echo
580  shift
581  cat <<EOF
582$*
583EOF
584  exit 0
585fi
586
587# The HP-UX ksh and POSIX shell print the target directory to stdout
588# if CDPATH is set.
589(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591if test -z "$ECHO"; then
592if test "X${echo_test_string+set}" != Xset; then
593# find a string as large as possible, as long as the shell can cope with it
594  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597       echo_test_string=`eval $cmd` &&
598       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599    then
600      break
601    fi
602  done
603fi
604
605if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607   test "X$echo_testing_string" = "X$echo_test_string"; then
608  :
609else
610  # The Solaris, AIX, and Digital Unix default echo programs unquote
611  # backslashes.  This makes it impossible to quote backslashes using
612  #   echo "$something" | sed 's/\\/\\\\/g'
613  #
614  # So, first we look for a working echo in the user's PATH.
615
616  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617  for dir in $PATH /usr/ucb; do
618    IFS="$lt_save_ifs"
619    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622       test "X$echo_testing_string" = "X$echo_test_string"; then
623      echo="$dir/echo"
624      break
625    fi
626  done
627  IFS="$lt_save_ifs"
628
629  if test "X$echo" = Xecho; then
630    # We didn't find a better echo, so look for alternatives.
631    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633       test "X$echo_testing_string" = "X$echo_test_string"; then
634      # This shell has a builtin print -r that does the trick.
635      echo='print -r'
636    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637	 test "X$CONFIG_SHELL" != X/bin/ksh; then
638      # If we have ksh, try running configure again with it.
639      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640      export ORIGINAL_CONFIG_SHELL
641      CONFIG_SHELL=/bin/ksh
642      export CONFIG_SHELL
643      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644    else
645      # Try using printf.
646      echo='printf %s\n'
647      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649	 test "X$echo_testing_string" = "X$echo_test_string"; then
650	# Cool, printf works
651	:
652      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653	   test "X$echo_testing_string" = 'X\t' &&
654	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655	   test "X$echo_testing_string" = "X$echo_test_string"; then
656	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657	export CONFIG_SHELL
658	SHELL="$CONFIG_SHELL"
659	export SHELL
660	echo="$CONFIG_SHELL $0 --fallback-echo"
661      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662	   test "X$echo_testing_string" = 'X\t' &&
663	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664	   test "X$echo_testing_string" = "X$echo_test_string"; then
665	echo="$CONFIG_SHELL $0 --fallback-echo"
666      else
667	# maybe with a smaller string...
668	prev=:
669
670	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672	  then
673	    break
674	  fi
675	  prev="$cmd"
676	done
677
678	if test "$prev" != 'sed 50q "$0"'; then
679	  echo_test_string=`eval $prev`
680	  export echo_test_string
681	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682	else
683	  # Oops.  We lost completely, so just stick with echo.
684	  echo=echo
685	fi
686      fi
687    fi
688  fi
689fi
690fi
691
692# Copy echo and quote the copy suitably for passing to libtool from
693# the Makefile, instead of quoting the original, which is used later.
694ECHO=$echo
695if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697fi
698
699
700
701
702tagnames=${tagnames+${tagnames},}CXX
703
704tagnames=${tagnames+${tagnames},}F77
705
706exec 7<&0 </dev/null 6>&1
707
708# Name of the host.
709# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710# so uname gets run too.
711ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713#
714# Initializations.
715#
716ac_default_prefix=/usr/local
717ac_clean_files=
718ac_config_libobj_dir=.
719LIBOBJS=
720cross_compiling=no
721subdirs=
722MFLAGS=
723MAKEFLAGS=
724SHELL=${CONFIG_SHELL-/bin/sh}
725
726# Identity of this package.
727PACKAGE_NAME='sqlite'
728PACKAGE_TARNAME='sqlite'
729PACKAGE_VERSION='3.5.7'
730PACKAGE_STRING='sqlite 3.5.7'
731PACKAGE_BUGREPORT=''
732
733# Factoring default headers for most tests.
734ac_includes_default="\
735#include <stdio.h>
736#ifdef HAVE_SYS_TYPES_H
737# include <sys/types.h>
738#endif
739#ifdef HAVE_SYS_STAT_H
740# include <sys/stat.h>
741#endif
742#ifdef STDC_HEADERS
743# include <stdlib.h>
744# include <stddef.h>
745#else
746# ifdef HAVE_STDLIB_H
747#  include <stdlib.h>
748# endif
749#endif
750#ifdef HAVE_STRING_H
751# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
752#  include <memory.h>
753# endif
754# include <string.h>
755#endif
756#ifdef HAVE_STRINGS_H
757# include <strings.h>
758#endif
759#ifdef HAVE_INTTYPES_H
760# include <inttypes.h>
761#endif
762#ifdef HAVE_STDINT_H
763# include <stdint.h>
764#endif
765#ifdef HAVE_UNISTD_H
766# include <unistd.h>
767#endif"
768
769ac_subst_vars='SHELL
770PATH_SEPARATOR
771PACKAGE_NAME
772PACKAGE_TARNAME
773PACKAGE_VERSION
774PACKAGE_STRING
775PACKAGE_BUGREPORT
776exec_prefix
777prefix
778program_transform_name
779bindir
780sbindir
781libexecdir
782datarootdir
783datadir
784sysconfdir
785sharedstatedir
786localstatedir
787includedir
788oldincludedir
789docdir
790infodir
791htmldir
792dvidir
793pdfdir
794psdir
795libdir
796localedir
797mandir
798DEFS
799ECHO_C
800ECHO_N
801ECHO_T
802LIBS
803build_alias
804host_alias
805target_alias
806build
807build_cpu
808build_vendor
809build_os
810host
811host_cpu
812host_vendor
813host_os
814CC
815CFLAGS
816LDFLAGS
817CPPFLAGS
818ac_ct_CC
819EXEEXT
820OBJEXT
821GREP
822EGREP
823LN_S
824ECHO
825AR
826RANLIB
827STRIP
828CPP
829CXX
830CXXFLAGS
831ac_ct_CXX
832CXXCPP
833F77
834FFLAGS
835ac_ct_F77
836LIBTOOL
837INSTALL_PROGRAM
838INSTALL_SCRIPT
839INSTALL_DATA
840AWK
841TCLSH_CMD
842program_prefix
843VERSION
844RELEASE
845VERSION_NUMBER
846BUILD_CC
847SQLITE_THREADSAFE
848XTHREADCONNECT
849THREADSOVERRIDELOCKS
850ALLOWRELEASE
851TEMP_STORE
852BUILD_EXEEXT
853OS_UNIX
854OS_WIN
855OS_OS2
856TARGET_EXEEXT
857TCL_VERSION
858TCL_BIN_DIR
859TCL_SRC_DIR
860TCL_LIBS
861TCL_INCLUDE_SPEC
862TCL_LIB_FILE
863TCL_LIB_FLAG
864TCL_LIB_SPEC
865TCL_STUB_LIB_FILE
866TCL_STUB_LIB_FLAG
867TCL_STUB_LIB_SPEC
868HAVE_TCL
869TARGET_READLINE_LIBS
870TARGET_READLINE_INC
871TARGET_HAVE_READLINE
872TARGET_DEBUG
873USE_AMALGAMATION
874LOADEXTENSION_FLAGS
875USE_GCOV
876BUILD_CFLAGS
877LIBOBJS
878LTLIBOBJS'
879ac_subst_files=''
880      ac_precious_vars='build_alias
881host_alias
882target_alias
883CC
884CFLAGS
885LDFLAGS
886LIBS
887CPPFLAGS
888CPP
889CXX
890CXXFLAGS
891CCC
892CXXCPP
893F77
894FFLAGS'
895
896
897# Initialize some variables set by options.
898ac_init_help=
899ac_init_version=false
900# The variables have the same names as the options, with
901# dashes changed to underlines.
902cache_file=/dev/null
903exec_prefix=NONE
904no_create=
905no_recursion=
906prefix=NONE
907program_prefix=NONE
908program_suffix=NONE
909program_transform_name=s,x,x,
910silent=
911site=
912srcdir=
913verbose=
914x_includes=NONE
915x_libraries=NONE
916
917# Installation directory options.
918# These are left unexpanded so users can "make install exec_prefix=/foo"
919# and all the variables that are supposed to be based on exec_prefix
920# by default will actually change.
921# Use braces instead of parens because sh, perl, etc. also accept them.
922# (The list follows the same order as the GNU Coding Standards.)
923bindir='${exec_prefix}/bin'
924sbindir='${exec_prefix}/sbin'
925libexecdir='${exec_prefix}/libexec'
926datarootdir='${prefix}/share'
927datadir='${datarootdir}'
928sysconfdir='${prefix}/etc'
929sharedstatedir='${prefix}/com'
930localstatedir='${prefix}/var'
931includedir='${prefix}/include'
932oldincludedir='/usr/include'
933docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
934infodir='${datarootdir}/info'
935htmldir='${docdir}'
936dvidir='${docdir}'
937pdfdir='${docdir}'
938psdir='${docdir}'
939libdir='${exec_prefix}/lib'
940localedir='${datarootdir}/locale'
941mandir='${datarootdir}/man'
942
943ac_prev=
944ac_dashdash=
945for ac_option
946do
947  # If the previous option needs an argument, assign it.
948  if test -n "$ac_prev"; then
949    eval $ac_prev=\$ac_option
950    ac_prev=
951    continue
952  fi
953
954  case $ac_option in
955  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
956  *)	ac_optarg=yes ;;
957  esac
958
959  # Accept the important Cygnus configure options, so we can diagnose typos.
960
961  case $ac_dashdash$ac_option in
962  --)
963    ac_dashdash=yes ;;
964
965  -bindir | --bindir | --bindi | --bind | --bin | --bi)
966    ac_prev=bindir ;;
967  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
968    bindir=$ac_optarg ;;
969
970  -build | --build | --buil | --bui | --bu)
971    ac_prev=build_alias ;;
972  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
973    build_alias=$ac_optarg ;;
974
975  -cache-file | --cache-file | --cache-fil | --cache-fi \
976  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
977    ac_prev=cache_file ;;
978  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
979  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
980    cache_file=$ac_optarg ;;
981
982  --config-cache | -C)
983    cache_file=config.cache ;;
984
985  -datadir | --datadir | --datadi | --datad)
986    ac_prev=datadir ;;
987  -datadir=* | --datadir=* | --datadi=* | --datad=*)
988    datadir=$ac_optarg ;;
989
990  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
991  | --dataroo | --dataro | --datar)
992    ac_prev=datarootdir ;;
993  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
994  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
995    datarootdir=$ac_optarg ;;
996
997  -disable-* | --disable-*)
998    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
999    # Reject names that are not valid shell variable names.
1000    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1001      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1002   { (exit 1); exit 1; }; }
1003    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1004    eval enable_$ac_feature=no ;;
1005
1006  -docdir | --docdir | --docdi | --doc | --do)
1007    ac_prev=docdir ;;
1008  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1009    docdir=$ac_optarg ;;
1010
1011  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1012    ac_prev=dvidir ;;
1013  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1014    dvidir=$ac_optarg ;;
1015
1016  -enable-* | --enable-*)
1017    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1018    # Reject names that are not valid shell variable names.
1019    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1020      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1021   { (exit 1); exit 1; }; }
1022    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1023    eval enable_$ac_feature=\$ac_optarg ;;
1024
1025  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1026  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1027  | --exec | --exe | --ex)
1028    ac_prev=exec_prefix ;;
1029  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1030  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1031  | --exec=* | --exe=* | --ex=*)
1032    exec_prefix=$ac_optarg ;;
1033
1034  -gas | --gas | --ga | --g)
1035    # Obsolete; use --with-gas.
1036    with_gas=yes ;;
1037
1038  -help | --help | --hel | --he | -h)
1039    ac_init_help=long ;;
1040  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1041    ac_init_help=recursive ;;
1042  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1043    ac_init_help=short ;;
1044
1045  -host | --host | --hos | --ho)
1046    ac_prev=host_alias ;;
1047  -host=* | --host=* | --hos=* | --ho=*)
1048    host_alias=$ac_optarg ;;
1049
1050  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1051    ac_prev=htmldir ;;
1052  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1053  | --ht=*)
1054    htmldir=$ac_optarg ;;
1055
1056  -includedir | --includedir | --includedi | --included | --include \
1057  | --includ | --inclu | --incl | --inc)
1058    ac_prev=includedir ;;
1059  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1060  | --includ=* | --inclu=* | --incl=* | --inc=*)
1061    includedir=$ac_optarg ;;
1062
1063  -infodir | --infodir | --infodi | --infod | --info | --inf)
1064    ac_prev=infodir ;;
1065  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1066    infodir=$ac_optarg ;;
1067
1068  -libdir | --libdir | --libdi | --libd)
1069    ac_prev=libdir ;;
1070  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1071    libdir=$ac_optarg ;;
1072
1073  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1074  | --libexe | --libex | --libe)
1075    ac_prev=libexecdir ;;
1076  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1077  | --libexe=* | --libex=* | --libe=*)
1078    libexecdir=$ac_optarg ;;
1079
1080  -localedir | --localedir | --localedi | --localed | --locale)
1081    ac_prev=localedir ;;
1082  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1083    localedir=$ac_optarg ;;
1084
1085  -localstatedir | --localstatedir | --localstatedi | --localstated \
1086  | --localstate | --localstat | --localsta | --localst | --locals)
1087    ac_prev=localstatedir ;;
1088  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1089  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1090    localstatedir=$ac_optarg ;;
1091
1092  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1093    ac_prev=mandir ;;
1094  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1095    mandir=$ac_optarg ;;
1096
1097  -nfp | --nfp | --nf)
1098    # Obsolete; use --without-fp.
1099    with_fp=no ;;
1100
1101  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1102  | --no-cr | --no-c | -n)
1103    no_create=yes ;;
1104
1105  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1106  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1107    no_recursion=yes ;;
1108
1109  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1110  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1111  | --oldin | --oldi | --old | --ol | --o)
1112    ac_prev=oldincludedir ;;
1113  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1114  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1115  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1116    oldincludedir=$ac_optarg ;;
1117
1118  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1119    ac_prev=prefix ;;
1120  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1121    prefix=$ac_optarg ;;
1122
1123  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1124  | --program-pre | --program-pr | --program-p)
1125    ac_prev=program_prefix ;;
1126  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1127  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1128    program_prefix=$ac_optarg ;;
1129
1130  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1131  | --program-suf | --program-su | --program-s)
1132    ac_prev=program_suffix ;;
1133  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1134  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1135    program_suffix=$ac_optarg ;;
1136
1137  -program-transform-name | --program-transform-name \
1138  | --program-transform-nam | --program-transform-na \
1139  | --program-transform-n | --program-transform- \
1140  | --program-transform | --program-transfor \
1141  | --program-transfo | --program-transf \
1142  | --program-trans | --program-tran \
1143  | --progr-tra | --program-tr | --program-t)
1144    ac_prev=program_transform_name ;;
1145  -program-transform-name=* | --program-transform-name=* \
1146  | --program-transform-nam=* | --program-transform-na=* \
1147  | --program-transform-n=* | --program-transform-=* \
1148  | --program-transform=* | --program-transfor=* \
1149  | --program-transfo=* | --program-transf=* \
1150  | --program-trans=* | --program-tran=* \
1151  | --progr-tra=* | --program-tr=* | --program-t=*)
1152    program_transform_name=$ac_optarg ;;
1153
1154  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1155    ac_prev=pdfdir ;;
1156  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1157    pdfdir=$ac_optarg ;;
1158
1159  -psdir | --psdir | --psdi | --psd | --ps)
1160    ac_prev=psdir ;;
1161  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1162    psdir=$ac_optarg ;;
1163
1164  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165  | -silent | --silent | --silen | --sile | --sil)
1166    silent=yes ;;
1167
1168  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1169    ac_prev=sbindir ;;
1170  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1171  | --sbi=* | --sb=*)
1172    sbindir=$ac_optarg ;;
1173
1174  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1175  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1176  | --sharedst | --shareds | --shared | --share | --shar \
1177  | --sha | --sh)
1178    ac_prev=sharedstatedir ;;
1179  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1180  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1181  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1182  | --sha=* | --sh=*)
1183    sharedstatedir=$ac_optarg ;;
1184
1185  -site | --site | --sit)
1186    ac_prev=site ;;
1187  -site=* | --site=* | --sit=*)
1188    site=$ac_optarg ;;
1189
1190  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1191    ac_prev=srcdir ;;
1192  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1193    srcdir=$ac_optarg ;;
1194
1195  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1196  | --syscon | --sysco | --sysc | --sys | --sy)
1197    ac_prev=sysconfdir ;;
1198  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1199  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1200    sysconfdir=$ac_optarg ;;
1201
1202  -target | --target | --targe | --targ | --tar | --ta | --t)
1203    ac_prev=target_alias ;;
1204  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1205    target_alias=$ac_optarg ;;
1206
1207  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1208    verbose=yes ;;
1209
1210  -version | --version | --versio | --versi | --vers | -V)
1211    ac_init_version=: ;;
1212
1213  -with-* | --with-*)
1214    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1215    # Reject names that are not valid shell variable names.
1216    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217      { echo "$as_me: error: invalid package name: $ac_package" >&2
1218   { (exit 1); exit 1; }; }
1219    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1220    eval with_$ac_package=\$ac_optarg ;;
1221
1222  -without-* | --without-*)
1223    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1224    # Reject names that are not valid shell variable names.
1225    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1226      { echo "$as_me: error: invalid package name: $ac_package" >&2
1227   { (exit 1); exit 1; }; }
1228    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1229    eval with_$ac_package=no ;;
1230
1231  --x)
1232    # Obsolete; use --with-x.
1233    with_x=yes ;;
1234
1235  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236  | --x-incl | --x-inc | --x-in | --x-i)
1237    ac_prev=x_includes ;;
1238  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1240    x_includes=$ac_optarg ;;
1241
1242  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244    ac_prev=x_libraries ;;
1245  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1247    x_libraries=$ac_optarg ;;
1248
1249  -*) { echo "$as_me: error: unrecognized option: $ac_option
1250Try \`$0 --help' for more information." >&2
1251   { (exit 1); exit 1; }; }
1252    ;;
1253
1254  *=*)
1255    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256    # Reject names that are not valid shell variable names.
1257    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1258      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1259   { (exit 1); exit 1; }; }
1260    eval $ac_envvar=\$ac_optarg
1261    export $ac_envvar ;;
1262
1263  *)
1264    # FIXME: should be removed in autoconf 3.0.
1265    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1269    ;;
1270
1271  esac
1272done
1273
1274if test -n "$ac_prev"; then
1275  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1276  { echo "$as_me: error: missing argument to $ac_option" >&2
1277   { (exit 1); exit 1; }; }
1278fi
1279
1280# Be sure to have absolute directory names.
1281for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282		datadir sysconfdir sharedstatedir localstatedir includedir \
1283		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284		libdir localedir mandir
1285do
1286  eval ac_val=\$$ac_var
1287  case $ac_val in
1288    [\\/$]* | ?:[\\/]* )  continue;;
1289    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1290  esac
1291  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1292   { (exit 1); exit 1; }; }
1293done
1294
1295# There might be people who depend on the old broken behavior: `$host'
1296# used to hold the argument of --host etc.
1297# FIXME: To remove some day.
1298build=$build_alias
1299host=$host_alias
1300target=$target_alias
1301
1302# FIXME: To remove some day.
1303if test "x$host_alias" != x; then
1304  if test "x$build_alias" = x; then
1305    cross_compiling=maybe
1306    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1307    If a cross compiler is detected then cross compile mode will be used." >&2
1308  elif test "x$build_alias" != "x$host_alias"; then
1309    cross_compiling=yes
1310  fi
1311fi
1312
1313ac_tool_prefix=
1314test -n "$host_alias" && ac_tool_prefix=$host_alias-
1315
1316test "$silent" = yes && exec 6>/dev/null
1317
1318
1319ac_pwd=`pwd` && test -n "$ac_pwd" &&
1320ac_ls_di=`ls -di .` &&
1321ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1322  { echo "$as_me: error: Working directory cannot be determined" >&2
1323   { (exit 1); exit 1; }; }
1324test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1325  { echo "$as_me: error: pwd does not report name of working directory" >&2
1326   { (exit 1); exit 1; }; }
1327
1328
1329# Find the source files, if location was not specified.
1330if test -z "$srcdir"; then
1331  ac_srcdir_defaulted=yes
1332  # Try the directory containing this script, then the parent directory.
1333  ac_confdir=`$as_dirname -- "$0" ||
1334$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335	 X"$0" : 'X\(//\)[^/]' \| \
1336	 X"$0" : 'X\(//\)$' \| \
1337	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1338echo X"$0" |
1339    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340	    s//\1/
1341	    q
1342	  }
1343	  /^X\(\/\/\)[^/].*/{
1344	    s//\1/
1345	    q
1346	  }
1347	  /^X\(\/\/\)$/{
1348	    s//\1/
1349	    q
1350	  }
1351	  /^X\(\/\).*/{
1352	    s//\1/
1353	    q
1354	  }
1355	  s/.*/./; q'`
1356  srcdir=$ac_confdir
1357  if test ! -r "$srcdir/$ac_unique_file"; then
1358    srcdir=..
1359  fi
1360else
1361  ac_srcdir_defaulted=no
1362fi
1363if test ! -r "$srcdir/$ac_unique_file"; then
1364  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1365  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1366   { (exit 1); exit 1; }; }
1367fi
1368ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1369ac_abs_confdir=`(
1370	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1371   { (exit 1); exit 1; }; }
1372	pwd)`
1373# When building in place, set srcdir=.
1374if test "$ac_abs_confdir" = "$ac_pwd"; then
1375  srcdir=.
1376fi
1377# Remove unnecessary trailing slashes from srcdir.
1378# Double slashes in file names in object file debugging info
1379# mess up M-x gdb in Emacs.
1380case $srcdir in
1381*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382esac
1383for ac_var in $ac_precious_vars; do
1384  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385  eval ac_env_${ac_var}_value=\$${ac_var}
1386  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388done
1389
1390#
1391# Report the --help message.
1392#
1393if test "$ac_init_help" = "long"; then
1394  # Omit some internal or obsolete options to make the list less imposing.
1395  # This message is too long to be a string in the A/UX 3.1 sh.
1396  cat <<_ACEOF
1397\`configure' configures sqlite 3.5.7 to adapt to many kinds of systems.
1398
1399Usage: $0 [OPTION]... [VAR=VALUE]...
1400
1401To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402VAR=VALUE.  See below for descriptions of some of the useful variables.
1403
1404Defaults for the options are specified in brackets.
1405
1406Configuration:
1407  -h, --help              display this help and exit
1408      --help=short        display options specific to this package
1409      --help=recursive    display the short help of all the included packages
1410  -V, --version           display version information and exit
1411  -q, --quiet, --silent   do not print \`checking...' messages
1412      --cache-file=FILE   cache test results in FILE [disabled]
1413  -C, --config-cache      alias for \`--cache-file=config.cache'
1414  -n, --no-create         do not create output files
1415      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1416
1417Installation directories:
1418  --prefix=PREFIX         install architecture-independent files in PREFIX
1419			  [$ac_default_prefix]
1420  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1421			  [PREFIX]
1422
1423By default, \`make install' will install all the files in
1424\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1425an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426for instance \`--prefix=\$HOME'.
1427
1428For better control, use the options below.
1429
1430Fine tuning of the installation directories:
1431  --bindir=DIR           user executables [EPREFIX/bin]
1432  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1433  --libexecdir=DIR       program executables [EPREFIX/libexec]
1434  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1435  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1436  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1437  --libdir=DIR           object code libraries [EPREFIX/lib]
1438  --includedir=DIR       C header files [PREFIX/include]
1439  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1440  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1441  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1442  --infodir=DIR          info documentation [DATAROOTDIR/info]
1443  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1444  --mandir=DIR           man documentation [DATAROOTDIR/man]
1445  --docdir=DIR           documentation root [DATAROOTDIR/doc/sqlite]
1446  --htmldir=DIR          html documentation [DOCDIR]
1447  --dvidir=DIR           dvi documentation [DOCDIR]
1448  --pdfdir=DIR           pdf documentation [DOCDIR]
1449  --psdir=DIR            ps documentation [DOCDIR]
1450_ACEOF
1451
1452  cat <<\_ACEOF
1453
1454System types:
1455  --build=BUILD     configure for building on BUILD [guessed]
1456  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1457_ACEOF
1458fi
1459
1460if test -n "$ac_init_help"; then
1461  case $ac_init_help in
1462     short | recursive ) echo "Configuration of sqlite 3.5.7:";;
1463   esac
1464  cat <<\_ACEOF
1465
1466Optional Features:
1467  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1468  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1469  --enable-shared[=PKGS]  build shared libraries [default=yes]
1470  --enable-static[=PKGS]  build static libraries [default=yes]
1471  --enable-fast-install[=PKGS]
1472                          optimize for fast installation [default=yes]
1473  --disable-libtool-lock  avoid locking (might break parallel builds)
1474  --enable-threadsafe     Support threadsafe operation
1475  --enable-cross-thread-connections
1476                          Allow connection sharing across threads
1477  --enable-threads-override-locks
1478                          Threads can override each others locks
1479  --enable-releasemode    Support libtool link to release mode
1480  --enable-tempstore      Use an in-ram database for temporary tables
1481                          (never,no,yes,always)
1482  --disable-tcl           do not build TCL extension
1483  --disable-readline      disable readline support [default=detect]
1484  --enable-debug          enable debugging & verbose explain
1485  --disable-amalgamation  Disable the amalgamation and instead build all files
1486                          separately
1487  --enable-load-extension Enable loading of external extensions
1488  --enable-gcov           Enable coverage testing using gcov
1489
1490Optional Packages:
1491  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1492  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1493  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1494  --with-pic              try to use only PIC/non-PIC objects [default=use
1495                          both]
1496  --with-tags[=TAGS]      include additional configurations [automatic]
1497  --with-hints=FILE       Read configuration options from FILE
1498  --with-tcl=DIR          directory containing tcl configuration
1499                          (tclConfig.sh)
1500  --with-readline-lib     specify readline library
1501  --with-readline-inc     specify readline include paths
1502
1503Some influential environment variables:
1504  CC          C compiler command
1505  CFLAGS      C compiler flags
1506  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1507              nonstandard directory <lib dir>
1508  LIBS        libraries to pass to the linker, e.g. -l<library>
1509  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1510              you have headers in a nonstandard directory <include dir>
1511  CPP         C preprocessor
1512  CXX         C++ compiler command
1513  CXXFLAGS    C++ compiler flags
1514  CXXCPP      C++ preprocessor
1515  F77         Fortran 77 compiler command
1516  FFLAGS      Fortran 77 compiler flags
1517
1518Use these variables to override the choices made by `configure' or to help
1519it to find libraries and programs with nonstandard names/locations.
1520
1521_ACEOF
1522ac_status=$?
1523fi
1524
1525if test "$ac_init_help" = "recursive"; then
1526  # If there are subdirs, report their specific --help.
1527  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1528    test -d "$ac_dir" || continue
1529    ac_builddir=.
1530
1531case "$ac_dir" in
1532.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533*)
1534  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1535  # A ".." for each directory in $ac_dir_suffix.
1536  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1537  case $ac_top_builddir_sub in
1538  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1540  esac ;;
1541esac
1542ac_abs_top_builddir=$ac_pwd
1543ac_abs_builddir=$ac_pwd$ac_dir_suffix
1544# for backward compatibility:
1545ac_top_builddir=$ac_top_build_prefix
1546
1547case $srcdir in
1548  .)  # We are building in place.
1549    ac_srcdir=.
1550    ac_top_srcdir=$ac_top_builddir_sub
1551    ac_abs_top_srcdir=$ac_pwd ;;
1552  [\\/]* | ?:[\\/]* )  # Absolute name.
1553    ac_srcdir=$srcdir$ac_dir_suffix;
1554    ac_top_srcdir=$srcdir
1555    ac_abs_top_srcdir=$srcdir ;;
1556  *) # Relative name.
1557    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1558    ac_top_srcdir=$ac_top_build_prefix$srcdir
1559    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1560esac
1561ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1562
1563    cd "$ac_dir" || { ac_status=$?; continue; }
1564    # Check for guested configure.
1565    if test -f "$ac_srcdir/configure.gnu"; then
1566      echo &&
1567      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1568    elif test -f "$ac_srcdir/configure"; then
1569      echo &&
1570      $SHELL "$ac_srcdir/configure" --help=recursive
1571    else
1572      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1573    fi || ac_status=$?
1574    cd "$ac_pwd" || { ac_status=$?; break; }
1575  done
1576fi
1577
1578test -n "$ac_init_help" && exit $ac_status
1579if $ac_init_version; then
1580  cat <<\_ACEOF
1581sqlite configure 3.5.7
1582generated by GNU Autoconf 2.61
1583
1584Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15852002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1586This configure script is free software; the Free Software Foundation
1587gives unlimited permission to copy, distribute and modify it.
1588_ACEOF
1589  exit
1590fi
1591cat >config.log <<_ACEOF
1592This file contains any messages produced by compilers while
1593running configure, to aid debugging if configure makes a mistake.
1594
1595It was created by sqlite $as_me 3.5.7, which was
1596generated by GNU Autoconf 2.61.  Invocation command line was
1597
1598  $ $0 $@
1599
1600_ACEOF
1601exec 5>>config.log
1602{
1603cat <<_ASUNAME
1604## --------- ##
1605## Platform. ##
1606## --------- ##
1607
1608hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1609uname -m = `(uname -m) 2>/dev/null || echo unknown`
1610uname -r = `(uname -r) 2>/dev/null || echo unknown`
1611uname -s = `(uname -s) 2>/dev/null || echo unknown`
1612uname -v = `(uname -v) 2>/dev/null || echo unknown`
1613
1614/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1615/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1616
1617/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1618/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1619/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1620/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1621/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1622/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1623/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1624
1625_ASUNAME
1626
1627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628for as_dir in $PATH
1629do
1630  IFS=$as_save_IFS
1631  test -z "$as_dir" && as_dir=.
1632  echo "PATH: $as_dir"
1633done
1634IFS=$as_save_IFS
1635
1636} >&5
1637
1638cat >&5 <<_ACEOF
1639
1640
1641## ----------- ##
1642## Core tests. ##
1643## ----------- ##
1644
1645_ACEOF
1646
1647
1648# Keep a trace of the command line.
1649# Strip out --no-create and --no-recursion so they do not pile up.
1650# Strip out --silent because we don't want to record it for future runs.
1651# Also quote any args containing shell meta-characters.
1652# Make two passes to allow for proper duplicate-argument suppression.
1653ac_configure_args=
1654ac_configure_args0=
1655ac_configure_args1=
1656ac_must_keep_next=false
1657for ac_pass in 1 2
1658do
1659  for ac_arg
1660  do
1661    case $ac_arg in
1662    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1663    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1664    | -silent | --silent | --silen | --sile | --sil)
1665      continue ;;
1666    *\'*)
1667      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1668    esac
1669    case $ac_pass in
1670    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1671    2)
1672      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1673      if test $ac_must_keep_next = true; then
1674	ac_must_keep_next=false # Got value, back to normal.
1675      else
1676	case $ac_arg in
1677	  *=* | --config-cache | -C | -disable-* | --disable-* \
1678	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1679	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1680	  | -with-* | --with-* | -without-* | --without-* | --x)
1681	    case "$ac_configure_args0 " in
1682	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1683	    esac
1684	    ;;
1685	  -* ) ac_must_keep_next=true ;;
1686	esac
1687      fi
1688      ac_configure_args="$ac_configure_args '$ac_arg'"
1689      ;;
1690    esac
1691  done
1692done
1693$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1694$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1695
1696# When interrupted or exit'd, cleanup temporary files, and complete
1697# config.log.  We remove comments because anyway the quotes in there
1698# would cause problems or look ugly.
1699# WARNING: Use '\'' to represent an apostrophe within the trap.
1700# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1701trap 'exit_status=$?
1702  # Save into config.log some information that might help in debugging.
1703  {
1704    echo
1705
1706    cat <<\_ASBOX
1707## ---------------- ##
1708## Cache variables. ##
1709## ---------------- ##
1710_ASBOX
1711    echo
1712    # The following way of writing the cache mishandles newlines in values,
1713(
1714  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1715    eval ac_val=\$$ac_var
1716    case $ac_val in #(
1717    *${as_nl}*)
1718      case $ac_var in #(
1719      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1720echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1721      esac
1722      case $ac_var in #(
1723      _ | IFS | as_nl) ;; #(
1724      *) $as_unset $ac_var ;;
1725      esac ;;
1726    esac
1727  done
1728  (set) 2>&1 |
1729    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1730    *${as_nl}ac_space=\ *)
1731      sed -n \
1732	"s/'\''/'\''\\\\'\'''\''/g;
1733	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1734      ;; #(
1735    *)
1736      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1737      ;;
1738    esac |
1739    sort
1740)
1741    echo
1742
1743    cat <<\_ASBOX
1744## ----------------- ##
1745## Output variables. ##
1746## ----------------- ##
1747_ASBOX
1748    echo
1749    for ac_var in $ac_subst_vars
1750    do
1751      eval ac_val=\$$ac_var
1752      case $ac_val in
1753      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1754      esac
1755      echo "$ac_var='\''$ac_val'\''"
1756    done | sort
1757    echo
1758
1759    if test -n "$ac_subst_files"; then
1760      cat <<\_ASBOX
1761## ------------------- ##
1762## File substitutions. ##
1763## ------------------- ##
1764_ASBOX
1765      echo
1766      for ac_var in $ac_subst_files
1767      do
1768	eval ac_val=\$$ac_var
1769	case $ac_val in
1770	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1771	esac
1772	echo "$ac_var='\''$ac_val'\''"
1773      done | sort
1774      echo
1775    fi
1776
1777    if test -s confdefs.h; then
1778      cat <<\_ASBOX
1779## ----------- ##
1780## confdefs.h. ##
1781## ----------- ##
1782_ASBOX
1783      echo
1784      cat confdefs.h
1785      echo
1786    fi
1787    test "$ac_signal" != 0 &&
1788      echo "$as_me: caught signal $ac_signal"
1789    echo "$as_me: exit $exit_status"
1790  } >&5
1791  rm -f core *.core core.conftest.* &&
1792    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1793    exit $exit_status
1794' 0
1795for ac_signal in 1 2 13 15; do
1796  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1797done
1798ac_signal=0
1799
1800# confdefs.h avoids OS command line length limits that DEFS can exceed.
1801rm -f -r conftest* confdefs.h
1802
1803# Predefined preprocessor variables.
1804
1805cat >>confdefs.h <<_ACEOF
1806#define PACKAGE_NAME "$PACKAGE_NAME"
1807_ACEOF
1808
1809
1810cat >>confdefs.h <<_ACEOF
1811#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1812_ACEOF
1813
1814
1815cat >>confdefs.h <<_ACEOF
1816#define PACKAGE_VERSION "$PACKAGE_VERSION"
1817_ACEOF
1818
1819
1820cat >>confdefs.h <<_ACEOF
1821#define PACKAGE_STRING "$PACKAGE_STRING"
1822_ACEOF
1823
1824
1825cat >>confdefs.h <<_ACEOF
1826#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1827_ACEOF
1828
1829
1830# Let the site file select an alternate cache file if it wants to.
1831# Prefer explicitly selected file to automatically selected ones.
1832if test -n "$CONFIG_SITE"; then
1833  set x "$CONFIG_SITE"
1834elif test "x$prefix" != xNONE; then
1835  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1836else
1837  set x "$ac_default_prefix/share/config.site" \
1838	"$ac_default_prefix/etc/config.site"
1839fi
1840shift
1841for ac_site_file
1842do
1843  if test -r "$ac_site_file"; then
1844    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1845echo "$as_me: loading site script $ac_site_file" >&6;}
1846    sed 's/^/| /' "$ac_site_file" >&5
1847    . "$ac_site_file"
1848  fi
1849done
1850
1851if test -r "$cache_file"; then
1852  # Some versions of bash will fail to source /dev/null (special
1853  # files actually), so we avoid doing that.
1854  if test -f "$cache_file"; then
1855    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1856echo "$as_me: loading cache $cache_file" >&6;}
1857    case $cache_file in
1858      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1859      *)                      . "./$cache_file";;
1860    esac
1861  fi
1862else
1863  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1864echo "$as_me: creating cache $cache_file" >&6;}
1865  >$cache_file
1866fi
1867
1868# Check that the precious variables saved in the cache have kept the same
1869# value.
1870ac_cache_corrupted=false
1871for ac_var in $ac_precious_vars; do
1872  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1873  eval ac_new_set=\$ac_env_${ac_var}_set
1874  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1875  eval ac_new_val=\$ac_env_${ac_var}_value
1876  case $ac_old_set,$ac_new_set in
1877    set,)
1878      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1879echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1880      ac_cache_corrupted=: ;;
1881    ,set)
1882      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1883echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1884      ac_cache_corrupted=: ;;
1885    ,);;
1886    *)
1887      if test "x$ac_old_val" != "x$ac_new_val"; then
1888	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1889echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1890	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1891echo "$as_me:   former value:  $ac_old_val" >&2;}
1892	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1893echo "$as_me:   current value: $ac_new_val" >&2;}
1894	ac_cache_corrupted=:
1895      fi;;
1896  esac
1897  # Pass precious variables to config.status.
1898  if test "$ac_new_set" = set; then
1899    case $ac_new_val in
1900    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1901    *) ac_arg=$ac_var=$ac_new_val ;;
1902    esac
1903    case " $ac_configure_args " in
1904      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1905      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1906    esac
1907  fi
1908done
1909if $ac_cache_corrupted; then
1910  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1911echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1912  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1913echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1914   { (exit 1); exit 1; }; }
1915fi
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941ac_ext=c
1942ac_cpp='$CPP $CPPFLAGS'
1943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1945ac_compiler_gnu=$ac_cv_c_compiler_gnu
1946
1947
1948
1949# The following RCS revision string applies to configure.in
1950# $Revision: 1.57 $
1951
1952#########
1953# Programs needed
1954#
1955# Check whether --enable-shared was given.
1956if test "${enable_shared+set}" = set; then
1957  enableval=$enable_shared; p=${PACKAGE-default}
1958    case $enableval in
1959    yes) enable_shared=yes ;;
1960    no) enable_shared=no ;;
1961    *)
1962      enable_shared=no
1963      # Look at the argument we got.  We use all the common list separators.
1964      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1965      for pkg in $enableval; do
1966	IFS="$lt_save_ifs"
1967	if test "X$pkg" = "X$p"; then
1968	  enable_shared=yes
1969	fi
1970      done
1971      IFS="$lt_save_ifs"
1972      ;;
1973    esac
1974else
1975  enable_shared=yes
1976fi
1977
1978
1979# Check whether --enable-static was given.
1980if test "${enable_static+set}" = set; then
1981  enableval=$enable_static; p=${PACKAGE-default}
1982    case $enableval in
1983    yes) enable_static=yes ;;
1984    no) enable_static=no ;;
1985    *)
1986     enable_static=no
1987      # Look at the argument we got.  We use all the common list separators.
1988      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1989      for pkg in $enableval; do
1990	IFS="$lt_save_ifs"
1991	if test "X$pkg" = "X$p"; then
1992	  enable_static=yes
1993	fi
1994      done
1995      IFS="$lt_save_ifs"
1996      ;;
1997    esac
1998else
1999  enable_static=yes
2000fi
2001
2002
2003# Check whether --enable-fast-install was given.
2004if test "${enable_fast_install+set}" = set; then
2005  enableval=$enable_fast_install; p=${PACKAGE-default}
2006    case $enableval in
2007    yes) enable_fast_install=yes ;;
2008    no) enable_fast_install=no ;;
2009    *)
2010      enable_fast_install=no
2011      # Look at the argument we got.  We use all the common list separators.
2012      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2013      for pkg in $enableval; do
2014	IFS="$lt_save_ifs"
2015	if test "X$pkg" = "X$p"; then
2016	  enable_fast_install=yes
2017	fi
2018      done
2019      IFS="$lt_save_ifs"
2020      ;;
2021    esac
2022else
2023  enable_fast_install=yes
2024fi
2025
2026
2027ac_aux_dir=
2028for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2029  if test -f "$ac_dir/install-sh"; then
2030    ac_aux_dir=$ac_dir
2031    ac_install_sh="$ac_aux_dir/install-sh -c"
2032    break
2033  elif test -f "$ac_dir/install.sh"; then
2034    ac_aux_dir=$ac_dir
2035    ac_install_sh="$ac_aux_dir/install.sh -c"
2036    break
2037  elif test -f "$ac_dir/shtool"; then
2038    ac_aux_dir=$ac_dir
2039    ac_install_sh="$ac_aux_dir/shtool install -c"
2040    break
2041  fi
2042done
2043if test -z "$ac_aux_dir"; then
2044  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2045echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2046   { (exit 1); exit 1; }; }
2047fi
2048
2049# These three variables are undocumented and unsupported,
2050# and are intended to be withdrawn in a future Autoconf release.
2051# They can cause serious problems if a builder's source tree is in a directory
2052# whose full name contains unusual characters.
2053ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2054ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2055ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2056
2057
2058# Make sure we can run config.sub.
2059$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2060  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2061echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2062   { (exit 1); exit 1; }; }
2063
2064{ echo "$as_me:$LINENO: checking build system type" >&5
2065echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2066if test "${ac_cv_build+set}" = set; then
2067  echo $ECHO_N "(cached) $ECHO_C" >&6
2068else
2069  ac_build_alias=$build_alias
2070test "x$ac_build_alias" = x &&
2071  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2072test "x$ac_build_alias" = x &&
2073  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2074echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2075   { (exit 1); exit 1; }; }
2076ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2077  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2078echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2079   { (exit 1); exit 1; }; }
2080
2081fi
2082{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2083echo "${ECHO_T}$ac_cv_build" >&6; }
2084case $ac_cv_build in
2085*-*-*) ;;
2086*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2087echo "$as_me: error: invalid value of canonical build" >&2;}
2088   { (exit 1); exit 1; }; };;
2089esac
2090build=$ac_cv_build
2091ac_save_IFS=$IFS; IFS='-'
2092set x $ac_cv_build
2093shift
2094build_cpu=$1
2095build_vendor=$2
2096shift; shift
2097# Remember, the first character of IFS is used to create $*,
2098# except with old shells:
2099build_os=$*
2100IFS=$ac_save_IFS
2101case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2102
2103
2104{ echo "$as_me:$LINENO: checking host system type" >&5
2105echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2106if test "${ac_cv_host+set}" = set; then
2107  echo $ECHO_N "(cached) $ECHO_C" >&6
2108else
2109  if test "x$host_alias" = x; then
2110  ac_cv_host=$ac_cv_build
2111else
2112  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2113    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2114echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2115   { (exit 1); exit 1; }; }
2116fi
2117
2118fi
2119{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2120echo "${ECHO_T}$ac_cv_host" >&6; }
2121case $ac_cv_host in
2122*-*-*) ;;
2123*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2124echo "$as_me: error: invalid value of canonical host" >&2;}
2125   { (exit 1); exit 1; }; };;
2126esac
2127host=$ac_cv_host
2128ac_save_IFS=$IFS; IFS='-'
2129set x $ac_cv_host
2130shift
2131host_cpu=$1
2132host_vendor=$2
2133shift; shift
2134# Remember, the first character of IFS is used to create $*,
2135# except with old shells:
2136host_os=$*
2137IFS=$ac_save_IFS
2138case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2139
2140
2141ac_ext=c
2142ac_cpp='$CPP $CPPFLAGS'
2143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2145ac_compiler_gnu=$ac_cv_c_compiler_gnu
2146if test -n "$ac_tool_prefix"; then
2147  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2148set dummy ${ac_tool_prefix}gcc; ac_word=$2
2149{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2151if test "${ac_cv_prog_CC+set}" = set; then
2152  echo $ECHO_N "(cached) $ECHO_C" >&6
2153else
2154  if test -n "$CC"; then
2155  ac_cv_prog_CC="$CC" # Let the user override the test.
2156else
2157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2158for as_dir in $PATH
2159do
2160  IFS=$as_save_IFS
2161  test -z "$as_dir" && as_dir=.
2162  for ac_exec_ext in '' $ac_executable_extensions; do
2163  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2164    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2165    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2166    break 2
2167  fi
2168done
2169done
2170IFS=$as_save_IFS
2171
2172fi
2173fi
2174CC=$ac_cv_prog_CC
2175if test -n "$CC"; then
2176  { echo "$as_me:$LINENO: result: $CC" >&5
2177echo "${ECHO_T}$CC" >&6; }
2178else
2179  { echo "$as_me:$LINENO: result: no" >&5
2180echo "${ECHO_T}no" >&6; }
2181fi
2182
2183
2184fi
2185if test -z "$ac_cv_prog_CC"; then
2186  ac_ct_CC=$CC
2187  # Extract the first word of "gcc", so it can be a program name with args.
2188set dummy gcc; ac_word=$2
2189{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2191if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2192  echo $ECHO_N "(cached) $ECHO_C" >&6
2193else
2194  if test -n "$ac_ct_CC"; then
2195  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2196else
2197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2198for as_dir in $PATH
2199do
2200  IFS=$as_save_IFS
2201  test -z "$as_dir" && as_dir=.
2202  for ac_exec_ext in '' $ac_executable_extensions; do
2203  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2204    ac_cv_prog_ac_ct_CC="gcc"
2205    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2206    break 2
2207  fi
2208done
2209done
2210IFS=$as_save_IFS
2211
2212fi
2213fi
2214ac_ct_CC=$ac_cv_prog_ac_ct_CC
2215if test -n "$ac_ct_CC"; then
2216  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2217echo "${ECHO_T}$ac_ct_CC" >&6; }
2218else
2219  { echo "$as_me:$LINENO: result: no" >&5
2220echo "${ECHO_T}no" >&6; }
2221fi
2222
2223  if test "x$ac_ct_CC" = x; then
2224    CC=""
2225  else
2226    case $cross_compiling:$ac_tool_warned in
2227yes:)
2228{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2229whose name does not start with the host triplet.  If you think this
2230configuration is useful to you, please write to autoconf@gnu.org." >&5
2231echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2232whose name does not start with the host triplet.  If you think this
2233configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2234ac_tool_warned=yes ;;
2235esac
2236    CC=$ac_ct_CC
2237  fi
2238else
2239  CC="$ac_cv_prog_CC"
2240fi
2241
2242if test -z "$CC"; then
2243          if test -n "$ac_tool_prefix"; then
2244    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2245set dummy ${ac_tool_prefix}cc; ac_word=$2
2246{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2248if test "${ac_cv_prog_CC+set}" = set; then
2249  echo $ECHO_N "(cached) $ECHO_C" >&6
2250else
2251  if test -n "$CC"; then
2252  ac_cv_prog_CC="$CC" # Let the user override the test.
2253else
2254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255for as_dir in $PATH
2256do
2257  IFS=$as_save_IFS
2258  test -z "$as_dir" && as_dir=.
2259  for ac_exec_ext in '' $ac_executable_extensions; do
2260  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2261    ac_cv_prog_CC="${ac_tool_prefix}cc"
2262    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2263    break 2
2264  fi
2265done
2266done
2267IFS=$as_save_IFS
2268
2269fi
2270fi
2271CC=$ac_cv_prog_CC
2272if test -n "$CC"; then
2273  { echo "$as_me:$LINENO: result: $CC" >&5
2274echo "${ECHO_T}$CC" >&6; }
2275else
2276  { echo "$as_me:$LINENO: result: no" >&5
2277echo "${ECHO_T}no" >&6; }
2278fi
2279
2280
2281  fi
2282fi
2283if test -z "$CC"; then
2284  # Extract the first word of "cc", so it can be a program name with args.
2285set dummy cc; ac_word=$2
2286{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2288if test "${ac_cv_prog_CC+set}" = set; then
2289  echo $ECHO_N "(cached) $ECHO_C" >&6
2290else
2291  if test -n "$CC"; then
2292  ac_cv_prog_CC="$CC" # Let the user override the test.
2293else
2294  ac_prog_rejected=no
2295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2296for as_dir in $PATH
2297do
2298  IFS=$as_save_IFS
2299  test -z "$as_dir" && as_dir=.
2300  for ac_exec_ext in '' $ac_executable_extensions; do
2301  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2302    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2303       ac_prog_rejected=yes
2304       continue
2305     fi
2306    ac_cv_prog_CC="cc"
2307    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2308    break 2
2309  fi
2310done
2311done
2312IFS=$as_save_IFS
2313
2314if test $ac_prog_rejected = yes; then
2315  # We found a bogon in the path, so make sure we never use it.
2316  set dummy $ac_cv_prog_CC
2317  shift
2318  if test $# != 0; then
2319    # We chose a different compiler from the bogus one.
2320    # However, it has the same basename, so the bogon will be chosen
2321    # first if we set CC to just the basename; use the full file name.
2322    shift
2323    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2324  fi
2325fi
2326fi
2327fi
2328CC=$ac_cv_prog_CC
2329if test -n "$CC"; then
2330  { echo "$as_me:$LINENO: result: $CC" >&5
2331echo "${ECHO_T}$CC" >&6; }
2332else
2333  { echo "$as_me:$LINENO: result: no" >&5
2334echo "${ECHO_T}no" >&6; }
2335fi
2336
2337
2338fi
2339if test -z "$CC"; then
2340  if test -n "$ac_tool_prefix"; then
2341  for ac_prog in cl.exe
2342  do
2343    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2344set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2345{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2347if test "${ac_cv_prog_CC+set}" = set; then
2348  echo $ECHO_N "(cached) $ECHO_C" >&6
2349else
2350  if test -n "$CC"; then
2351  ac_cv_prog_CC="$CC" # Let the user override the test.
2352else
2353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354for as_dir in $PATH
2355do
2356  IFS=$as_save_IFS
2357  test -z "$as_dir" && as_dir=.
2358  for ac_exec_ext in '' $ac_executable_extensions; do
2359  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2360    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2361    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2362    break 2
2363  fi
2364done
2365done
2366IFS=$as_save_IFS
2367
2368fi
2369fi
2370CC=$ac_cv_prog_CC
2371if test -n "$CC"; then
2372  { echo "$as_me:$LINENO: result: $CC" >&5
2373echo "${ECHO_T}$CC" >&6; }
2374else
2375  { echo "$as_me:$LINENO: result: no" >&5
2376echo "${ECHO_T}no" >&6; }
2377fi
2378
2379
2380    test -n "$CC" && break
2381  done
2382fi
2383if test -z "$CC"; then
2384  ac_ct_CC=$CC
2385  for ac_prog in cl.exe
2386do
2387  # Extract the first word of "$ac_prog", so it can be a program name with args.
2388set dummy $ac_prog; ac_word=$2
2389{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2391if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2392  echo $ECHO_N "(cached) $ECHO_C" >&6
2393else
2394  if test -n "$ac_ct_CC"; then
2395  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2396else
2397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398for as_dir in $PATH
2399do
2400  IFS=$as_save_IFS
2401  test -z "$as_dir" && as_dir=.
2402  for ac_exec_ext in '' $ac_executable_extensions; do
2403  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2404    ac_cv_prog_ac_ct_CC="$ac_prog"
2405    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2406    break 2
2407  fi
2408done
2409done
2410IFS=$as_save_IFS
2411
2412fi
2413fi
2414ac_ct_CC=$ac_cv_prog_ac_ct_CC
2415if test -n "$ac_ct_CC"; then
2416  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2417echo "${ECHO_T}$ac_ct_CC" >&6; }
2418else
2419  { echo "$as_me:$LINENO: result: no" >&5
2420echo "${ECHO_T}no" >&6; }
2421fi
2422
2423
2424  test -n "$ac_ct_CC" && break
2425done
2426
2427  if test "x$ac_ct_CC" = x; then
2428    CC=""
2429  else
2430    case $cross_compiling:$ac_tool_warned in
2431yes:)
2432{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2433whose name does not start with the host triplet.  If you think this
2434configuration is useful to you, please write to autoconf@gnu.org." >&5
2435echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2436whose name does not start with the host triplet.  If you think this
2437configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2438ac_tool_warned=yes ;;
2439esac
2440    CC=$ac_ct_CC
2441  fi
2442fi
2443
2444fi
2445
2446
2447test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2448See \`config.log' for more details." >&5
2449echo "$as_me: error: no acceptable C compiler found in \$PATH
2450See \`config.log' for more details." >&2;}
2451   { (exit 1); exit 1; }; }
2452
2453# Provide some information about the compiler.
2454echo "$as_me:$LINENO: checking for C compiler version" >&5
2455ac_compiler=`set X $ac_compile; echo $2`
2456{ (ac_try="$ac_compiler --version >&5"
2457case "(($ac_try" in
2458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2459  *) ac_try_echo=$ac_try;;
2460esac
2461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2462  (eval "$ac_compiler --version >&5") 2>&5
2463  ac_status=$?
2464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465  (exit $ac_status); }
2466{ (ac_try="$ac_compiler -v >&5"
2467case "(($ac_try" in
2468  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2469  *) ac_try_echo=$ac_try;;
2470esac
2471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2472  (eval "$ac_compiler -v >&5") 2>&5
2473  ac_status=$?
2474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475  (exit $ac_status); }
2476{ (ac_try="$ac_compiler -V >&5"
2477case "(($ac_try" in
2478  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2479  *) ac_try_echo=$ac_try;;
2480esac
2481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2482  (eval "$ac_compiler -V >&5") 2>&5
2483  ac_status=$?
2484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485  (exit $ac_status); }
2486
2487cat >conftest.$ac_ext <<_ACEOF
2488/* confdefs.h.  */
2489_ACEOF
2490cat confdefs.h >>conftest.$ac_ext
2491cat >>conftest.$ac_ext <<_ACEOF
2492/* end confdefs.h.  */
2493
2494int
2495main ()
2496{
2497
2498  ;
2499  return 0;
2500}
2501_ACEOF
2502ac_clean_files_save=$ac_clean_files
2503ac_clean_files="$ac_clean_files a.out a.exe b.out"
2504# Try to create an executable without -o first, disregard a.out.
2505# It will help us diagnose broken compilers, and finding out an intuition
2506# of exeext.
2507{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2508echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2509ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2510#
2511# List of possible output files, starting from the most likely.
2512# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2513# only as a last resort.  b.out is created by i960 compilers.
2514ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2515#
2516# The IRIX 6 linker writes into existing files which may not be
2517# executable, retaining their permissions.  Remove them first so a
2518# subsequent execution test works.
2519ac_rmfiles=
2520for ac_file in $ac_files
2521do
2522  case $ac_file in
2523    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2524    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2525  esac
2526done
2527rm -f $ac_rmfiles
2528
2529if { (ac_try="$ac_link_default"
2530case "(($ac_try" in
2531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2532  *) ac_try_echo=$ac_try;;
2533esac
2534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2535  (eval "$ac_link_default") 2>&5
2536  ac_status=$?
2537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538  (exit $ac_status); }; then
2539  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2540# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2541# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2542# so that the user can short-circuit this test for compilers unknown to
2543# Autoconf.
2544for ac_file in $ac_files ''
2545do
2546  test -f "$ac_file" || continue
2547  case $ac_file in
2548    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2549	;;
2550    [ab].out )
2551	# We found the default executable, but exeext='' is most
2552	# certainly right.
2553	break;;
2554    *.* )
2555        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2556	then :; else
2557	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2558	fi
2559	# We set ac_cv_exeext here because the later test for it is not
2560	# safe: cross compilers may not add the suffix if given an `-o'
2561	# argument, so we may need to know it at that point already.
2562	# Even if this section looks crufty: it has the advantage of
2563	# actually working.
2564	break;;
2565    * )
2566	break;;
2567  esac
2568done
2569test "$ac_cv_exeext" = no && ac_cv_exeext=
2570
2571else
2572  ac_file=''
2573fi
2574
2575{ echo "$as_me:$LINENO: result: $ac_file" >&5
2576echo "${ECHO_T}$ac_file" >&6; }
2577if test -z "$ac_file"; then
2578  echo "$as_me: failed program was:" >&5
2579sed 's/^/| /' conftest.$ac_ext >&5
2580
2581{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2582See \`config.log' for more details." >&5
2583echo "$as_me: error: C compiler cannot create executables
2584See \`config.log' for more details." >&2;}
2585   { (exit 77); exit 77; }; }
2586fi
2587
2588ac_exeext=$ac_cv_exeext
2589
2590# Check that the compiler produces executables we can run.  If not, either
2591# the compiler is broken, or we cross compile.
2592{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2593echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2594# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2595# If not cross compiling, check that we can run a simple program.
2596if test "$cross_compiling" != yes; then
2597  if { ac_try='./$ac_file'
2598  { (case "(($ac_try" in
2599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2600  *) ac_try_echo=$ac_try;;
2601esac
2602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2603  (eval "$ac_try") 2>&5
2604  ac_status=$?
2605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606  (exit $ac_status); }; }; then
2607    cross_compiling=no
2608  else
2609    if test "$cross_compiling" = maybe; then
2610	cross_compiling=yes
2611    else
2612	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2613If you meant to cross compile, use \`--host'.
2614See \`config.log' for more details." >&5
2615echo "$as_me: error: cannot run C compiled programs.
2616If you meant to cross compile, use \`--host'.
2617See \`config.log' for more details." >&2;}
2618   { (exit 1); exit 1; }; }
2619    fi
2620  fi
2621fi
2622{ echo "$as_me:$LINENO: result: yes" >&5
2623echo "${ECHO_T}yes" >&6; }
2624
2625rm -f a.out a.exe conftest$ac_cv_exeext b.out
2626ac_clean_files=$ac_clean_files_save
2627# Check that the compiler produces executables we can run.  If not, either
2628# the compiler is broken, or we cross compile.
2629{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2630echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2631{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2632echo "${ECHO_T}$cross_compiling" >&6; }
2633
2634{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2635echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2636if { (ac_try="$ac_link"
2637case "(($ac_try" in
2638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2639  *) ac_try_echo=$ac_try;;
2640esac
2641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2642  (eval "$ac_link") 2>&5
2643  ac_status=$?
2644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645  (exit $ac_status); }; then
2646  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2647# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2648# work properly (i.e., refer to `conftest.exe'), while it won't with
2649# `rm'.
2650for ac_file in conftest.exe conftest conftest.*; do
2651  test -f "$ac_file" || continue
2652  case $ac_file in
2653    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2654    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2655	  break;;
2656    * ) break;;
2657  esac
2658done
2659else
2660  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2661See \`config.log' for more details." >&5
2662echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2663See \`config.log' for more details." >&2;}
2664   { (exit 1); exit 1; }; }
2665fi
2666
2667rm -f conftest$ac_cv_exeext
2668{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2669echo "${ECHO_T}$ac_cv_exeext" >&6; }
2670
2671rm -f conftest.$ac_ext
2672EXEEXT=$ac_cv_exeext
2673ac_exeext=$EXEEXT
2674{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2675echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2676if test "${ac_cv_objext+set}" = set; then
2677  echo $ECHO_N "(cached) $ECHO_C" >&6
2678else
2679  cat >conftest.$ac_ext <<_ACEOF
2680/* confdefs.h.  */
2681_ACEOF
2682cat confdefs.h >>conftest.$ac_ext
2683cat >>conftest.$ac_ext <<_ACEOF
2684/* end confdefs.h.  */
2685
2686int
2687main ()
2688{
2689
2690  ;
2691  return 0;
2692}
2693_ACEOF
2694rm -f conftest.o conftest.obj
2695if { (ac_try="$ac_compile"
2696case "(($ac_try" in
2697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698  *) ac_try_echo=$ac_try;;
2699esac
2700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2701  (eval "$ac_compile") 2>&5
2702  ac_status=$?
2703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704  (exit $ac_status); }; then
2705  for ac_file in conftest.o conftest.obj conftest.*; do
2706  test -f "$ac_file" || continue;
2707  case $ac_file in
2708    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2709    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2710       break;;
2711  esac
2712done
2713else
2714  echo "$as_me: failed program was:" >&5
2715sed 's/^/| /' conftest.$ac_ext >&5
2716
2717{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2718See \`config.log' for more details." >&5
2719echo "$as_me: error: cannot compute suffix of object files: cannot compile
2720See \`config.log' for more details." >&2;}
2721   { (exit 1); exit 1; }; }
2722fi
2723
2724rm -f conftest.$ac_cv_objext conftest.$ac_ext
2725fi
2726{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2727echo "${ECHO_T}$ac_cv_objext" >&6; }
2728OBJEXT=$ac_cv_objext
2729ac_objext=$OBJEXT
2730{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2731echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2732if test "${ac_cv_c_compiler_gnu+set}" = set; then
2733  echo $ECHO_N "(cached) $ECHO_C" >&6
2734else
2735  cat >conftest.$ac_ext <<_ACEOF
2736/* confdefs.h.  */
2737_ACEOF
2738cat confdefs.h >>conftest.$ac_ext
2739cat >>conftest.$ac_ext <<_ACEOF
2740/* end confdefs.h.  */
2741
2742int
2743main ()
2744{
2745#ifndef __GNUC__
2746       choke me
2747#endif
2748
2749  ;
2750  return 0;
2751}
2752_ACEOF
2753rm -f conftest.$ac_objext
2754if { (ac_try="$ac_compile"
2755case "(($ac_try" in
2756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757  *) ac_try_echo=$ac_try;;
2758esac
2759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2760  (eval "$ac_compile") 2>conftest.er1
2761  ac_status=$?
2762  grep -v '^ *+' conftest.er1 >conftest.err
2763  rm -f conftest.er1
2764  cat conftest.err >&5
2765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766  (exit $ac_status); } && {
2767	 test -z "$ac_c_werror_flag" ||
2768	 test ! -s conftest.err
2769       } && test -s conftest.$ac_objext; then
2770  ac_compiler_gnu=yes
2771else
2772  echo "$as_me: failed program was:" >&5
2773sed 's/^/| /' conftest.$ac_ext >&5
2774
2775	ac_compiler_gnu=no
2776fi
2777
2778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2779ac_cv_c_compiler_gnu=$ac_compiler_gnu
2780
2781fi
2782{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2783echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2784GCC=`test $ac_compiler_gnu = yes && echo yes`
2785ac_test_CFLAGS=${CFLAGS+set}
2786ac_save_CFLAGS=$CFLAGS
2787{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2788echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2789if test "${ac_cv_prog_cc_g+set}" = set; then
2790  echo $ECHO_N "(cached) $ECHO_C" >&6
2791else
2792  ac_save_c_werror_flag=$ac_c_werror_flag
2793   ac_c_werror_flag=yes
2794   ac_cv_prog_cc_g=no
2795   CFLAGS="-g"
2796   cat >conftest.$ac_ext <<_ACEOF
2797/* confdefs.h.  */
2798_ACEOF
2799cat confdefs.h >>conftest.$ac_ext
2800cat >>conftest.$ac_ext <<_ACEOF
2801/* end confdefs.h.  */
2802
2803int
2804main ()
2805{
2806
2807  ;
2808  return 0;
2809}
2810_ACEOF
2811rm -f conftest.$ac_objext
2812if { (ac_try="$ac_compile"
2813case "(($ac_try" in
2814  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815  *) ac_try_echo=$ac_try;;
2816esac
2817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2818  (eval "$ac_compile") 2>conftest.er1
2819  ac_status=$?
2820  grep -v '^ *+' conftest.er1 >conftest.err
2821  rm -f conftest.er1
2822  cat conftest.err >&5
2823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824  (exit $ac_status); } && {
2825	 test -z "$ac_c_werror_flag" ||
2826	 test ! -s conftest.err
2827       } && test -s conftest.$ac_objext; then
2828  ac_cv_prog_cc_g=yes
2829else
2830  echo "$as_me: failed program was:" >&5
2831sed 's/^/| /' conftest.$ac_ext >&5
2832
2833	CFLAGS=""
2834      cat >conftest.$ac_ext <<_ACEOF
2835/* confdefs.h.  */
2836_ACEOF
2837cat confdefs.h >>conftest.$ac_ext
2838cat >>conftest.$ac_ext <<_ACEOF
2839/* end confdefs.h.  */
2840
2841int
2842main ()
2843{
2844
2845  ;
2846  return 0;
2847}
2848_ACEOF
2849rm -f conftest.$ac_objext
2850if { (ac_try="$ac_compile"
2851case "(($ac_try" in
2852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853  *) ac_try_echo=$ac_try;;
2854esac
2855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2856  (eval "$ac_compile") 2>conftest.er1
2857  ac_status=$?
2858  grep -v '^ *+' conftest.er1 >conftest.err
2859  rm -f conftest.er1
2860  cat conftest.err >&5
2861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862  (exit $ac_status); } && {
2863	 test -z "$ac_c_werror_flag" ||
2864	 test ! -s conftest.err
2865       } && test -s conftest.$ac_objext; then
2866  :
2867else
2868  echo "$as_me: failed program was:" >&5
2869sed 's/^/| /' conftest.$ac_ext >&5
2870
2871	ac_c_werror_flag=$ac_save_c_werror_flag
2872	 CFLAGS="-g"
2873	 cat >conftest.$ac_ext <<_ACEOF
2874/* confdefs.h.  */
2875_ACEOF
2876cat confdefs.h >>conftest.$ac_ext
2877cat >>conftest.$ac_ext <<_ACEOF
2878/* end confdefs.h.  */
2879
2880int
2881main ()
2882{
2883
2884  ;
2885  return 0;
2886}
2887_ACEOF
2888rm -f conftest.$ac_objext
2889if { (ac_try="$ac_compile"
2890case "(($ac_try" in
2891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892  *) ac_try_echo=$ac_try;;
2893esac
2894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895  (eval "$ac_compile") 2>conftest.er1
2896  ac_status=$?
2897  grep -v '^ *+' conftest.er1 >conftest.err
2898  rm -f conftest.er1
2899  cat conftest.err >&5
2900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901  (exit $ac_status); } && {
2902	 test -z "$ac_c_werror_flag" ||
2903	 test ! -s conftest.err
2904       } && test -s conftest.$ac_objext; then
2905  ac_cv_prog_cc_g=yes
2906else
2907  echo "$as_me: failed program was:" >&5
2908sed 's/^/| /' conftest.$ac_ext >&5
2909
2910
2911fi
2912
2913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2914fi
2915
2916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2917fi
2918
2919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2920   ac_c_werror_flag=$ac_save_c_werror_flag
2921fi
2922{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2923echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2924if test "$ac_test_CFLAGS" = set; then
2925  CFLAGS=$ac_save_CFLAGS
2926elif test $ac_cv_prog_cc_g = yes; then
2927  if test "$GCC" = yes; then
2928    CFLAGS="-g -O2"
2929  else
2930    CFLAGS="-g"
2931  fi
2932else
2933  if test "$GCC" = yes; then
2934    CFLAGS="-O2"
2935  else
2936    CFLAGS=
2937  fi
2938fi
2939{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2940echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2941if test "${ac_cv_prog_cc_c89+set}" = set; then
2942  echo $ECHO_N "(cached) $ECHO_C" >&6
2943else
2944  ac_cv_prog_cc_c89=no
2945ac_save_CC=$CC
2946cat >conftest.$ac_ext <<_ACEOF
2947/* confdefs.h.  */
2948_ACEOF
2949cat confdefs.h >>conftest.$ac_ext
2950cat >>conftest.$ac_ext <<_ACEOF
2951/* end confdefs.h.  */
2952#include <stdarg.h>
2953#include <stdio.h>
2954#include <sys/types.h>
2955#include <sys/stat.h>
2956/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2957struct buf { int x; };
2958FILE * (*rcsopen) (struct buf *, struct stat *, int);
2959static char *e (p, i)
2960     char **p;
2961     int i;
2962{
2963  return p[i];
2964}
2965static char *f (char * (*g) (char **, int), char **p, ...)
2966{
2967  char *s;
2968  va_list v;
2969  va_start (v,p);
2970  s = g (p, va_arg (v,int));
2971  va_end (v);
2972  return s;
2973}
2974
2975/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2976   function prototypes and stuff, but not '\xHH' hex character constants.
2977   These don't provoke an error unfortunately, instead are silently treated
2978   as 'x'.  The following induces an error, until -std is added to get
2979   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2980   array size at least.  It's necessary to write '\x00'==0 to get something
2981   that's true only with -std.  */
2982int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2983
2984/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2985   inside strings and character constants.  */
2986#define FOO(x) 'x'
2987int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2988
2989int test (int i, double x);
2990struct s1 {int (*f) (int a);};
2991struct s2 {int (*f) (double a);};
2992int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2993int argc;
2994char **argv;
2995int
2996main ()
2997{
2998return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2999  ;
3000  return 0;
3001}
3002_ACEOF
3003for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3004	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3005do
3006  CC="$ac_save_CC $ac_arg"
3007  rm -f conftest.$ac_objext
3008if { (ac_try="$ac_compile"
3009case "(($ac_try" in
3010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011  *) ac_try_echo=$ac_try;;
3012esac
3013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3014  (eval "$ac_compile") 2>conftest.er1
3015  ac_status=$?
3016  grep -v '^ *+' conftest.er1 >conftest.err
3017  rm -f conftest.er1
3018  cat conftest.err >&5
3019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020  (exit $ac_status); } && {
3021	 test -z "$ac_c_werror_flag" ||
3022	 test ! -s conftest.err
3023       } && test -s conftest.$ac_objext; then
3024  ac_cv_prog_cc_c89=$ac_arg
3025else
3026  echo "$as_me: failed program was:" >&5
3027sed 's/^/| /' conftest.$ac_ext >&5
3028
3029
3030fi
3031
3032rm -f core conftest.err conftest.$ac_objext
3033  test "x$ac_cv_prog_cc_c89" != "xno" && break
3034done
3035rm -f conftest.$ac_ext
3036CC=$ac_save_CC
3037
3038fi
3039# AC_CACHE_VAL
3040case "x$ac_cv_prog_cc_c89" in
3041  x)
3042    { echo "$as_me:$LINENO: result: none needed" >&5
3043echo "${ECHO_T}none needed" >&6; } ;;
3044  xno)
3045    { echo "$as_me:$LINENO: result: unsupported" >&5
3046echo "${ECHO_T}unsupported" >&6; } ;;
3047  *)
3048    CC="$CC $ac_cv_prog_cc_c89"
3049    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3050echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3051esac
3052
3053
3054ac_ext=c
3055ac_cpp='$CPP $CPPFLAGS'
3056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3058ac_compiler_gnu=$ac_cv_c_compiler_gnu
3059
3060{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3061echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3062if test "${lt_cv_path_SED+set}" = set; then
3063  echo $ECHO_N "(cached) $ECHO_C" >&6
3064else
3065  # Loop through the user's path and test for sed and gsed.
3066# Then use that list of sed's as ones to test for truncation.
3067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068for as_dir in $PATH
3069do
3070  IFS=$as_save_IFS
3071  test -z "$as_dir" && as_dir=.
3072  for lt_ac_prog in sed gsed; do
3073    for ac_exec_ext in '' $ac_executable_extensions; do
3074      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3075        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3076      fi
3077    done
3078  done
3079done
3080lt_ac_max=0
3081lt_ac_count=0
3082# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3083# along with /bin/sed that truncates output.
3084for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3085  test ! -f $lt_ac_sed && continue
3086  cat /dev/null > conftest.in
3087  lt_ac_count=0
3088  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3089  # Check for GNU sed and select it if it is found.
3090  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3091    lt_cv_path_SED=$lt_ac_sed
3092    break
3093  fi
3094  while true; do
3095    cat conftest.in conftest.in >conftest.tmp
3096    mv conftest.tmp conftest.in
3097    cp conftest.in conftest.nl
3098    echo >>conftest.nl
3099    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3100    cmp -s conftest.out conftest.nl || break
3101    # 10000 chars as input seems more than enough
3102    test $lt_ac_count -gt 10 && break
3103    lt_ac_count=`expr $lt_ac_count + 1`
3104    if test $lt_ac_count -gt $lt_ac_max; then
3105      lt_ac_max=$lt_ac_count
3106      lt_cv_path_SED=$lt_ac_sed
3107    fi
3108  done
3109done
3110
3111fi
3112
3113SED=$lt_cv_path_SED
3114{ echo "$as_me:$LINENO: result: $SED" >&5
3115echo "${ECHO_T}$SED" >&6; }
3116
3117{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3118echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3119if test "${ac_cv_path_GREP+set}" = set; then
3120  echo $ECHO_N "(cached) $ECHO_C" >&6
3121else
3122  # Extract the first word of "grep ggrep" to use in msg output
3123if test -z "$GREP"; then
3124set dummy grep ggrep; ac_prog_name=$2
3125if test "${ac_cv_path_GREP+set}" = set; then
3126  echo $ECHO_N "(cached) $ECHO_C" >&6
3127else
3128  ac_path_GREP_found=false
3129# Loop through the user's path and test for each of PROGNAME-LIST
3130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3132do
3133  IFS=$as_save_IFS
3134  test -z "$as_dir" && as_dir=.
3135  for ac_prog in grep ggrep; do
3136  for ac_exec_ext in '' $ac_executable_extensions; do
3137    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3138    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3139    # Check for GNU ac_path_GREP and select it if it is found.
3140  # Check for GNU $ac_path_GREP
3141case `"$ac_path_GREP" --version 2>&1` in
3142*GNU*)
3143  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3144*)
3145  ac_count=0
3146  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3147  while :
3148  do
3149    cat "conftest.in" "conftest.in" >"conftest.tmp"
3150    mv "conftest.tmp" "conftest.in"
3151    cp "conftest.in" "conftest.nl"
3152    echo 'GREP' >> "conftest.nl"
3153    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3154    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3155    ac_count=`expr $ac_count + 1`
3156    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3157      # Best one so far, save it but keep looking for a better one
3158      ac_cv_path_GREP="$ac_path_GREP"
3159      ac_path_GREP_max=$ac_count
3160    fi
3161    # 10*(2^10) chars as input seems more than enough
3162    test $ac_count -gt 10 && break
3163  done
3164  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3165esac
3166
3167
3168    $ac_path_GREP_found && break 3
3169  done
3170done
3171
3172done
3173IFS=$as_save_IFS
3174
3175
3176fi
3177
3178GREP="$ac_cv_path_GREP"
3179if test -z "$GREP"; then
3180  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3181echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3182   { (exit 1); exit 1; }; }
3183fi
3184
3185else
3186  ac_cv_path_GREP=$GREP
3187fi
3188
3189
3190fi
3191{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3192echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3193 GREP="$ac_cv_path_GREP"
3194
3195
3196{ echo "$as_me:$LINENO: checking for egrep" >&5
3197echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3198if test "${ac_cv_path_EGREP+set}" = set; then
3199  echo $ECHO_N "(cached) $ECHO_C" >&6
3200else
3201  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3202   then ac_cv_path_EGREP="$GREP -E"
3203   else
3204     # Extract the first word of "egrep" to use in msg output
3205if test -z "$EGREP"; then
3206set dummy egrep; ac_prog_name=$2
3207if test "${ac_cv_path_EGREP+set}" = set; then
3208  echo $ECHO_N "(cached) $ECHO_C" >&6
3209else
3210  ac_path_EGREP_found=false
3211# Loop through the user's path and test for each of PROGNAME-LIST
3212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3214do
3215  IFS=$as_save_IFS
3216  test -z "$as_dir" && as_dir=.
3217  for ac_prog in egrep; do
3218  for ac_exec_ext in '' $ac_executable_extensions; do
3219    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3220    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3221    # Check for GNU ac_path_EGREP and select it if it is found.
3222  # Check for GNU $ac_path_EGREP
3223case `"$ac_path_EGREP" --version 2>&1` in
3224*GNU*)
3225  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3226*)
3227  ac_count=0
3228  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3229  while :
3230  do
3231    cat "conftest.in" "conftest.in" >"conftest.tmp"
3232    mv "conftest.tmp" "conftest.in"
3233    cp "conftest.in" "conftest.nl"
3234    echo 'EGREP' >> "conftest.nl"
3235    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3236    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3237    ac_count=`expr $ac_count + 1`
3238    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3239      # Best one so far, save it but keep looking for a better one
3240      ac_cv_path_EGREP="$ac_path_EGREP"
3241      ac_path_EGREP_max=$ac_count
3242    fi
3243    # 10*(2^10) chars as input seems more than enough
3244    test $ac_count -gt 10 && break
3245  done
3246  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3247esac
3248
3249
3250    $ac_path_EGREP_found && break 3
3251  done
3252done
3253
3254done
3255IFS=$as_save_IFS
3256
3257
3258fi
3259
3260EGREP="$ac_cv_path_EGREP"
3261if test -z "$EGREP"; then
3262  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3263echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3264   { (exit 1); exit 1; }; }
3265fi
3266
3267else
3268  ac_cv_path_EGREP=$EGREP
3269fi
3270
3271
3272   fi
3273fi
3274{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3275echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3276 EGREP="$ac_cv_path_EGREP"
3277
3278
3279
3280# Check whether --with-gnu-ld was given.
3281if test "${with_gnu_ld+set}" = set; then
3282  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3283else
3284  with_gnu_ld=no
3285fi
3286
3287ac_prog=ld
3288if test "$GCC" = yes; then
3289  # Check if gcc -print-prog-name=ld gives a path.
3290  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3291echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3292  case $host in
3293  *-*-mingw*)
3294    # gcc leaves a trailing carriage return which upsets mingw
3295    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3296  *)
3297    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3298  esac
3299  case $ac_prog in
3300    # Accept absolute paths.
3301    [\\/]* | ?:[\\/]*)
3302      re_direlt='/[^/][^/]*/\.\./'
3303      # Canonicalize the pathname of ld
3304      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3305      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3306	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3307      done
3308      test -z "$LD" && LD="$ac_prog"
3309      ;;
3310  "")
3311    # If it fails, then pretend we aren't using GCC.
3312    ac_prog=ld
3313    ;;
3314  *)
3315    # If it is relative, then search for the first ld in PATH.
3316    with_gnu_ld=unknown
3317    ;;
3318  esac
3319elif test "$with_gnu_ld" = yes; then
3320  { echo "$as_me:$LINENO: checking for GNU ld" >&5
3321echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3322else
3323  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3324echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3325fi
3326if test "${lt_cv_path_LD+set}" = set; then
3327  echo $ECHO_N "(cached) $ECHO_C" >&6
3328else
3329  if test -z "$LD"; then
3330  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3331  for ac_dir in $PATH; do
3332    IFS="$lt_save_ifs"
3333    test -z "$ac_dir" && ac_dir=.
3334    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3335      lt_cv_path_LD="$ac_dir/$ac_prog"
3336      # Check to see if the program is GNU ld.  I'd rather use --version,
3337      # but apparently some variants of GNU ld only accept -v.
3338      # Break only if it was the GNU/non-GNU ld that we prefer.
3339      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3340      *GNU* | *'with BFD'*)
3341	test "$with_gnu_ld" != no && break
3342	;;
3343      *)
3344	test "$with_gnu_ld" != yes && break
3345	;;
3346      esac
3347    fi
3348  done
3349  IFS="$lt_save_ifs"
3350else
3351  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3352fi
3353fi
3354
3355LD="$lt_cv_path_LD"
3356if test -n "$LD"; then
3357  { echo "$as_me:$LINENO: result: $LD" >&5
3358echo "${ECHO_T}$LD" >&6; }
3359else
3360  { echo "$as_me:$LINENO: result: no" >&5
3361echo "${ECHO_T}no" >&6; }
3362fi
3363test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3364echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3365   { (exit 1); exit 1; }; }
3366{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3367echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3368if test "${lt_cv_prog_gnu_ld+set}" = set; then
3369  echo $ECHO_N "(cached) $ECHO_C" >&6
3370else
3371  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3372case `$LD -v 2>&1 </dev/null` in
3373*GNU* | *'with BFD'*)
3374  lt_cv_prog_gnu_ld=yes
3375  ;;
3376*)
3377  lt_cv_prog_gnu_ld=no
3378  ;;
3379esac
3380fi
3381{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3382echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3383with_gnu_ld=$lt_cv_prog_gnu_ld
3384
3385
3386{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3387echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3388if test "${lt_cv_ld_reload_flag+set}" = set; then
3389  echo $ECHO_N "(cached) $ECHO_C" >&6
3390else
3391  lt_cv_ld_reload_flag='-r'
3392fi
3393{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3394echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3395reload_flag=$lt_cv_ld_reload_flag
3396case $reload_flag in
3397"" | " "*) ;;
3398*) reload_flag=" $reload_flag" ;;
3399esac
3400reload_cmds='$LD$reload_flag -o $output$reload_objs'
3401case $host_os in
3402  darwin*)
3403    if test "$GCC" = yes; then
3404      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3405    else
3406      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3407    fi
3408    ;;
3409esac
3410
3411{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3412echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
3413if test "${lt_cv_path_NM+set}" = set; then
3414  echo $ECHO_N "(cached) $ECHO_C" >&6
3415else
3416  if test -n "$NM"; then
3417  # Let the user override the test.
3418  lt_cv_path_NM="$NM"
3419else
3420  lt_nm_to_check="${ac_tool_prefix}nm"
3421  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3422    lt_nm_to_check="$lt_nm_to_check nm"
3423  fi
3424  for lt_tmp_nm in $lt_nm_to_check; do
3425    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3426    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3427      IFS="$lt_save_ifs"
3428      test -z "$ac_dir" && ac_dir=.
3429      tmp_nm="$ac_dir/$lt_tmp_nm"
3430      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3431	# Check to see if the nm accepts a BSD-compat flag.
3432	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3433	#   nm: unknown option "B" ignored
3434	# Tru64's nm complains that /dev/null is an invalid object file
3435	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3436	*/dev/null* | *'Invalid file or object type'*)
3437	  lt_cv_path_NM="$tmp_nm -B"
3438	  break
3439	  ;;
3440	*)
3441	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3442	  */dev/null*)
3443	    lt_cv_path_NM="$tmp_nm -p"
3444	    break
3445	    ;;
3446	  *)
3447	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3448	    continue # so that we can try to find one that supports BSD flags
3449	    ;;
3450	  esac
3451	  ;;
3452	esac
3453      fi
3454    done
3455    IFS="$lt_save_ifs"
3456  done
3457  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3458fi
3459fi
3460{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3461echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3462NM="$lt_cv_path_NM"
3463
3464{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3465echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3466LN_S=$as_ln_s
3467if test "$LN_S" = "ln -s"; then
3468  { echo "$as_me:$LINENO: result: yes" >&5
3469echo "${ECHO_T}yes" >&6; }
3470else
3471  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3472echo "${ECHO_T}no, using $LN_S" >&6; }
3473fi
3474
3475{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3476echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
3477if test "${lt_cv_deplibs_check_method+set}" = set; then
3478  echo $ECHO_N "(cached) $ECHO_C" >&6
3479else
3480  lt_cv_file_magic_cmd='$MAGIC_CMD'
3481lt_cv_file_magic_test_file=
3482lt_cv_deplibs_check_method='unknown'
3483# Need to set the preceding variable on all platforms that support
3484# interlibrary dependencies.
3485# 'none' -- dependencies not supported.
3486# `unknown' -- same as none, but documents that we really don't know.
3487# 'pass_all' -- all dependencies passed with no checks.
3488# 'test_compile' -- check by making test program.
3489# 'file_magic [[regex]]' -- check by looking for files in library path
3490# which responds to the $file_magic_cmd with a given extended regex.
3491# If you have `file' or equivalent on your system and you're not sure
3492# whether `pass_all' will *always* work, you probably want this one.
3493
3494case $host_os in
3495aix4* | aix5*)
3496  lt_cv_deplibs_check_method=pass_all
3497  ;;
3498
3499beos*)
3500  lt_cv_deplibs_check_method=pass_all
3501  ;;
3502
3503bsdi[45]*)
3504  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3505  lt_cv_file_magic_cmd='/usr/bin/file -L'
3506  lt_cv_file_magic_test_file=/shlib/libc.so
3507  ;;
3508
3509cygwin*)
3510  # func_win32_libid is a shell function defined in ltmain.sh
3511  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3512  lt_cv_file_magic_cmd='func_win32_libid'
3513  ;;
3514
3515mingw* | pw32*)
3516  # Base MSYS/MinGW do not provide the 'file' command needed by
3517  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3518  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3519  lt_cv_file_magic_cmd='$OBJDUMP -f'
3520  ;;
3521
3522darwin* | rhapsody*)
3523  lt_cv_deplibs_check_method=pass_all
3524  ;;
3525
3526freebsd* | kfreebsd*-gnu | dragonfly*)
3527  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3528    case $host_cpu in
3529    i*86 )
3530      # Not sure whether the presence of OpenBSD here was a mistake.
3531      # Let's accept both of them until this is cleared up.
3532      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3533      lt_cv_file_magic_cmd=/usr/bin/file
3534      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3535      ;;
3536    esac
3537  else
3538    lt_cv_deplibs_check_method=pass_all
3539  fi
3540  ;;
3541
3542gnu*)
3543  lt_cv_deplibs_check_method=pass_all
3544  ;;
3545
3546hpux10.20* | hpux11*)
3547  lt_cv_file_magic_cmd=/usr/bin/file
3548  case $host_cpu in
3549  ia64*)
3550    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3551    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3552    ;;
3553  hppa*64*)
3554    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]'
3555    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3556    ;;
3557  *)
3558    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3559    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3560    ;;
3561  esac
3562  ;;
3563
3564interix3*)
3565  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3566  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3567  ;;
3568
3569irix5* | irix6* | nonstopux*)
3570  case $LD in
3571  *-32|*"-32 ") libmagic=32-bit;;
3572  *-n32|*"-n32 ") libmagic=N32;;
3573  *-64|*"-64 ") libmagic=64-bit;;
3574  *) libmagic=never-match;;
3575  esac
3576  lt_cv_deplibs_check_method=pass_all
3577  ;;
3578
3579# This must be Linux ELF.
3580linux*)
3581  lt_cv_deplibs_check_method=pass_all
3582  ;;
3583
3584netbsd*)
3585  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3586    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3587  else
3588    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3589  fi
3590  ;;
3591
3592newos6*)
3593  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3594  lt_cv_file_magic_cmd=/usr/bin/file
3595  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3596  ;;
3597
3598nto-qnx*)
3599  lt_cv_deplibs_check_method=unknown
3600  ;;
3601
3602openbsd*)
3603  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3604    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3605  else
3606    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3607  fi
3608  ;;
3609
3610osf3* | osf4* | osf5*)
3611  lt_cv_deplibs_check_method=pass_all
3612  ;;
3613
3614solaris*)
3615  lt_cv_deplibs_check_method=pass_all
3616  ;;
3617
3618sysv4 | sysv4.3*)
3619  case $host_vendor in
3620  motorola)
3621    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]'
3622    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3623    ;;
3624  ncr)
3625    lt_cv_deplibs_check_method=pass_all
3626    ;;
3627  sequent)
3628    lt_cv_file_magic_cmd='/bin/file'
3629    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3630    ;;
3631  sni)
3632    lt_cv_file_magic_cmd='/bin/file'
3633    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3634    lt_cv_file_magic_test_file=/lib/libc.so
3635    ;;
3636  siemens)
3637    lt_cv_deplibs_check_method=pass_all
3638    ;;
3639  pc)
3640    lt_cv_deplibs_check_method=pass_all
3641    ;;
3642  esac
3643  ;;
3644
3645sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3646  lt_cv_deplibs_check_method=pass_all
3647  ;;
3648esac
3649
3650fi
3651{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3652echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
3653file_magic_cmd=$lt_cv_file_magic_cmd
3654deplibs_check_method=$lt_cv_deplibs_check_method
3655test -z "$deplibs_check_method" && deplibs_check_method=unknown
3656
3657
3658
3659
3660# If no C compiler was specified, use CC.
3661LTCC=${LTCC-"$CC"}
3662
3663# If no C compiler flags were specified, use CFLAGS.
3664LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3665
3666# Allow CC to be a program name with arguments.
3667compiler=$CC
3668
3669
3670# Check whether --enable-libtool-lock was given.
3671if test "${enable_libtool_lock+set}" = set; then
3672  enableval=$enable_libtool_lock;
3673fi
3674
3675test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3676
3677# Some flags need to be propagated to the compiler or linker for good
3678# libtool support.
3679case $host in
3680ia64-*-hpux*)
3681  # Find out which ABI we are using.
3682  echo 'int i;' > conftest.$ac_ext
3683  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3684  (eval $ac_compile) 2>&5
3685  ac_status=$?
3686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687  (exit $ac_status); }; then
3688    case `/usr/bin/file conftest.$ac_objext` in
3689    *ELF-32*)
3690      HPUX_IA64_MODE="32"
3691      ;;
3692    *ELF-64*)
3693      HPUX_IA64_MODE="64"
3694      ;;
3695    esac
3696  fi
3697  rm -rf conftest*
3698  ;;
3699*-*-irix6*)
3700  # Find out which ABI we are using.
3701  echo '#line 3701 "configure"' > conftest.$ac_ext
3702  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3703  (eval $ac_compile) 2>&5
3704  ac_status=$?
3705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706  (exit $ac_status); }; then
3707   if test "$lt_cv_prog_gnu_ld" = yes; then
3708    case `/usr/bin/file conftest.$ac_objext` in
3709    *32-bit*)
3710      LD="${LD-ld} -melf32bsmip"
3711      ;;
3712    *N32*)
3713      LD="${LD-ld} -melf32bmipn32"
3714      ;;
3715    *64-bit*)
3716      LD="${LD-ld} -melf64bmip"
3717      ;;
3718    esac
3719   else
3720    case `/usr/bin/file conftest.$ac_objext` in
3721    *32-bit*)
3722      LD="${LD-ld} -32"
3723      ;;
3724    *N32*)
3725      LD="${LD-ld} -n32"
3726      ;;
3727    *64-bit*)
3728      LD="${LD-ld} -64"
3729      ;;
3730    esac
3731   fi
3732  fi
3733  rm -rf conftest*
3734  ;;
3735
3736x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3737  # Find out which ABI we are using.
3738  echo 'int i;' > conftest.$ac_ext
3739  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3740  (eval $ac_compile) 2>&5
3741  ac_status=$?
3742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743  (exit $ac_status); }; then
3744    case `/usr/bin/file conftest.o` in
3745    *32-bit*)
3746      case $host in
3747        x86_64-*linux*)
3748          LD="${LD-ld} -m elf_i386"
3749          ;;
3750        ppc64-*linux*|powerpc64-*linux*)
3751          LD="${LD-ld} -m elf32ppclinux"
3752          ;;
3753        s390x-*linux*)
3754          LD="${LD-ld} -m elf_s390"
3755          ;;
3756        sparc64-*linux*)
3757          LD="${LD-ld} -m elf32_sparc"
3758          ;;
3759      esac
3760      ;;
3761    *64-bit*)
3762      case $host in
3763        x86_64-*linux*)
3764          LD="${LD-ld} -m elf_x86_64"
3765          ;;
3766        ppc*-*linux*|powerpc*-*linux*)
3767          LD="${LD-ld} -m elf64ppc"
3768          ;;
3769        s390*-*linux*)
3770          LD="${LD-ld} -m elf64_s390"
3771          ;;
3772        sparc*-*linux*)
3773          LD="${LD-ld} -m elf64_sparc"
3774          ;;
3775      esac
3776      ;;
3777    esac
3778  fi
3779  rm -rf conftest*
3780  ;;
3781
3782*-*-sco3.2v5*)
3783  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3784  SAVE_CFLAGS="$CFLAGS"
3785  CFLAGS="$CFLAGS -belf"
3786  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3787echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
3788if test "${lt_cv_cc_needs_belf+set}" = set; then
3789  echo $ECHO_N "(cached) $ECHO_C" >&6
3790else
3791  ac_ext=c
3792ac_cpp='$CPP $CPPFLAGS'
3793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3795ac_compiler_gnu=$ac_cv_c_compiler_gnu
3796
3797     cat >conftest.$ac_ext <<_ACEOF
3798/* confdefs.h.  */
3799_ACEOF
3800cat confdefs.h >>conftest.$ac_ext
3801cat >>conftest.$ac_ext <<_ACEOF
3802/* end confdefs.h.  */
3803
3804int
3805main ()
3806{
3807
3808  ;
3809  return 0;
3810}
3811_ACEOF
3812rm -f conftest.$ac_objext conftest$ac_exeext
3813if { (ac_try="$ac_link"
3814case "(($ac_try" in
3815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816  *) ac_try_echo=$ac_try;;
3817esac
3818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3819  (eval "$ac_link") 2>conftest.er1
3820  ac_status=$?
3821  grep -v '^ *+' conftest.er1 >conftest.err
3822  rm -f conftest.er1
3823  cat conftest.err >&5
3824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825  (exit $ac_status); } && {
3826	 test -z "$ac_c_werror_flag" ||
3827	 test ! -s conftest.err
3828       } && test -s conftest$ac_exeext &&
3829       $as_test_x conftest$ac_exeext; then
3830  lt_cv_cc_needs_belf=yes
3831else
3832  echo "$as_me: failed program was:" >&5
3833sed 's/^/| /' conftest.$ac_ext >&5
3834
3835	lt_cv_cc_needs_belf=no
3836fi
3837
3838rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3839      conftest$ac_exeext conftest.$ac_ext
3840     ac_ext=c
3841ac_cpp='$CPP $CPPFLAGS'
3842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3844ac_compiler_gnu=$ac_cv_c_compiler_gnu
3845
3846fi
3847{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3848echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
3849  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3850    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3851    CFLAGS="$SAVE_CFLAGS"
3852  fi
3853  ;;
3854sparc*-*solaris*)
3855  # Find out which ABI we are using.
3856  echo 'int i;' > conftest.$ac_ext
3857  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3858  (eval $ac_compile) 2>&5
3859  ac_status=$?
3860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861  (exit $ac_status); }; then
3862    case `/usr/bin/file conftest.o` in
3863    *64-bit*)
3864      case $lt_cv_prog_gnu_ld in
3865      yes*) LD="${LD-ld} -m elf64_sparc" ;;
3866      *)    LD="${LD-ld} -64" ;;
3867      esac
3868      ;;
3869    esac
3870  fi
3871  rm -rf conftest*
3872  ;;
3873
3874
3875esac
3876
3877need_locks="$enable_libtool_lock"
3878
3879
3880ac_ext=c
3881ac_cpp='$CPP $CPPFLAGS'
3882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3884ac_compiler_gnu=$ac_cv_c_compiler_gnu
3885{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3886echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3887# On Suns, sometimes $CPP names a directory.
3888if test -n "$CPP" && test -d "$CPP"; then
3889  CPP=
3890fi
3891if test -z "$CPP"; then
3892  if test "${ac_cv_prog_CPP+set}" = set; then
3893  echo $ECHO_N "(cached) $ECHO_C" >&6
3894else
3895      # Double quotes because CPP needs to be expanded
3896    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3897    do
3898      ac_preproc_ok=false
3899for ac_c_preproc_warn_flag in '' yes
3900do
3901  # Use a header file that comes with gcc, so configuring glibc
3902  # with a fresh cross-compiler works.
3903  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3904  # <limits.h> exists even on freestanding compilers.
3905  # On the NeXT, cc -E runs the code through the compiler's parser,
3906  # not just through cpp. "Syntax error" is here to catch this case.
3907  cat >conftest.$ac_ext <<_ACEOF
3908/* confdefs.h.  */
3909_ACEOF
3910cat confdefs.h >>conftest.$ac_ext
3911cat >>conftest.$ac_ext <<_ACEOF
3912/* end confdefs.h.  */
3913#ifdef __STDC__
3914# include <limits.h>
3915#else
3916# include <assert.h>
3917#endif
3918		     Syntax error
3919_ACEOF
3920if { (ac_try="$ac_cpp conftest.$ac_ext"
3921case "(($ac_try" in
3922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3923  *) ac_try_echo=$ac_try;;
3924esac
3925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3926  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3927  ac_status=$?
3928  grep -v '^ *+' conftest.er1 >conftest.err
3929  rm -f conftest.er1
3930  cat conftest.err >&5
3931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932  (exit $ac_status); } >/dev/null && {
3933	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3934	 test ! -s conftest.err
3935       }; then
3936  :
3937else
3938  echo "$as_me: failed program was:" >&5
3939sed 's/^/| /' conftest.$ac_ext >&5
3940
3941  # Broken: fails on valid input.
3942continue
3943fi
3944
3945rm -f conftest.err conftest.$ac_ext
3946
3947  # OK, works on sane cases.  Now check whether nonexistent headers
3948  # can be detected and how.
3949  cat >conftest.$ac_ext <<_ACEOF
3950/* confdefs.h.  */
3951_ACEOF
3952cat confdefs.h >>conftest.$ac_ext
3953cat >>conftest.$ac_ext <<_ACEOF
3954/* end confdefs.h.  */
3955#include <ac_nonexistent.h>
3956_ACEOF
3957if { (ac_try="$ac_cpp conftest.$ac_ext"
3958case "(($ac_try" in
3959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960  *) ac_try_echo=$ac_try;;
3961esac
3962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3963  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3964  ac_status=$?
3965  grep -v '^ *+' conftest.er1 >conftest.err
3966  rm -f conftest.er1
3967  cat conftest.err >&5
3968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969  (exit $ac_status); } >/dev/null && {
3970	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3971	 test ! -s conftest.err
3972       }; then
3973  # Broken: success on invalid input.
3974continue
3975else
3976  echo "$as_me: failed program was:" >&5
3977sed 's/^/| /' conftest.$ac_ext >&5
3978
3979  # Passes both tests.
3980ac_preproc_ok=:
3981break
3982fi
3983
3984rm -f conftest.err conftest.$ac_ext
3985
3986done
3987# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3988rm -f conftest.err conftest.$ac_ext
3989if $ac_preproc_ok; then
3990  break
3991fi
3992
3993    done
3994    ac_cv_prog_CPP=$CPP
3995
3996fi
3997  CPP=$ac_cv_prog_CPP
3998else
3999  ac_cv_prog_CPP=$CPP
4000fi
4001{ echo "$as_me:$LINENO: result: $CPP" >&5
4002echo "${ECHO_T}$CPP" >&6; }
4003ac_preproc_ok=false
4004for ac_c_preproc_warn_flag in '' yes
4005do
4006  # Use a header file that comes with gcc, so configuring glibc
4007  # with a fresh cross-compiler works.
4008  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4009  # <limits.h> exists even on freestanding compilers.
4010  # On the NeXT, cc -E runs the code through the compiler's parser,
4011  # not just through cpp. "Syntax error" is here to catch this case.
4012  cat >conftest.$ac_ext <<_ACEOF
4013/* confdefs.h.  */
4014_ACEOF
4015cat confdefs.h >>conftest.$ac_ext
4016cat >>conftest.$ac_ext <<_ACEOF
4017/* end confdefs.h.  */
4018#ifdef __STDC__
4019# include <limits.h>
4020#else
4021# include <assert.h>
4022#endif
4023		     Syntax error
4024_ACEOF
4025if { (ac_try="$ac_cpp conftest.$ac_ext"
4026case "(($ac_try" in
4027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028  *) ac_try_echo=$ac_try;;
4029esac
4030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4031  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4032  ac_status=$?
4033  grep -v '^ *+' conftest.er1 >conftest.err
4034  rm -f conftest.er1
4035  cat conftest.err >&5
4036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037  (exit $ac_status); } >/dev/null && {
4038	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4039	 test ! -s conftest.err
4040       }; then
4041  :
4042else
4043  echo "$as_me: failed program was:" >&5
4044sed 's/^/| /' conftest.$ac_ext >&5
4045
4046  # Broken: fails on valid input.
4047continue
4048fi
4049
4050rm -f conftest.err conftest.$ac_ext
4051
4052  # OK, works on sane cases.  Now check whether nonexistent headers
4053  # can be detected and how.
4054  cat >conftest.$ac_ext <<_ACEOF
4055/* confdefs.h.  */
4056_ACEOF
4057cat confdefs.h >>conftest.$ac_ext
4058cat >>conftest.$ac_ext <<_ACEOF
4059/* end confdefs.h.  */
4060#include <ac_nonexistent.h>
4061_ACEOF
4062if { (ac_try="$ac_cpp conftest.$ac_ext"
4063case "(($ac_try" in
4064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065  *) ac_try_echo=$ac_try;;
4066esac
4067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4068  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4069  ac_status=$?
4070  grep -v '^ *+' conftest.er1 >conftest.err
4071  rm -f conftest.er1
4072  cat conftest.err >&5
4073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074  (exit $ac_status); } >/dev/null && {
4075	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4076	 test ! -s conftest.err
4077       }; then
4078  # Broken: success on invalid input.
4079continue
4080else
4081  echo "$as_me: failed program was:" >&5
4082sed 's/^/| /' conftest.$ac_ext >&5
4083
4084  # Passes both tests.
4085ac_preproc_ok=:
4086break
4087fi
4088
4089rm -f conftest.err conftest.$ac_ext
4090
4091done
4092# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4093rm -f conftest.err conftest.$ac_ext
4094if $ac_preproc_ok; then
4095  :
4096else
4097  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4098See \`config.log' for more details." >&5
4099echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4100See \`config.log' for more details." >&2;}
4101   { (exit 1); exit 1; }; }
4102fi
4103
4104ac_ext=c
4105ac_cpp='$CPP $CPPFLAGS'
4106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4108ac_compiler_gnu=$ac_cv_c_compiler_gnu
4109
4110
4111{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4112echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4113if test "${ac_cv_header_stdc+set}" = set; then
4114  echo $ECHO_N "(cached) $ECHO_C" >&6
4115else
4116  cat >conftest.$ac_ext <<_ACEOF
4117/* confdefs.h.  */
4118_ACEOF
4119cat confdefs.h >>conftest.$ac_ext
4120cat >>conftest.$ac_ext <<_ACEOF
4121/* end confdefs.h.  */
4122#include <stdlib.h>
4123#include <stdarg.h>
4124#include <string.h>
4125#include <float.h>
4126
4127int
4128main ()
4129{
4130
4131  ;
4132  return 0;
4133}
4134_ACEOF
4135rm -f conftest.$ac_objext
4136if { (ac_try="$ac_compile"
4137case "(($ac_try" in
4138  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139  *) ac_try_echo=$ac_try;;
4140esac
4141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4142  (eval "$ac_compile") 2>conftest.er1
4143  ac_status=$?
4144  grep -v '^ *+' conftest.er1 >conftest.err
4145  rm -f conftest.er1
4146  cat conftest.err >&5
4147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148  (exit $ac_status); } && {
4149	 test -z "$ac_c_werror_flag" ||
4150	 test ! -s conftest.err
4151       } && test -s conftest.$ac_objext; then
4152  ac_cv_header_stdc=yes
4153else
4154  echo "$as_me: failed program was:" >&5
4155sed 's/^/| /' conftest.$ac_ext >&5
4156
4157	ac_cv_header_stdc=no
4158fi
4159
4160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4161
4162if test $ac_cv_header_stdc = yes; then
4163  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4164  cat >conftest.$ac_ext <<_ACEOF
4165/* confdefs.h.  */
4166_ACEOF
4167cat confdefs.h >>conftest.$ac_ext
4168cat >>conftest.$ac_ext <<_ACEOF
4169/* end confdefs.h.  */
4170#include <string.h>
4171
4172_ACEOF
4173if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4174  $EGREP "memchr" >/dev/null 2>&1; then
4175  :
4176else
4177  ac_cv_header_stdc=no
4178fi
4179rm -f conftest*
4180
4181fi
4182
4183if test $ac_cv_header_stdc = yes; then
4184  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4185  cat >conftest.$ac_ext <<_ACEOF
4186/* confdefs.h.  */
4187_ACEOF
4188cat confdefs.h >>conftest.$ac_ext
4189cat >>conftest.$ac_ext <<_ACEOF
4190/* end confdefs.h.  */
4191#include <stdlib.h>
4192
4193_ACEOF
4194if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4195  $EGREP "free" >/dev/null 2>&1; then
4196  :
4197else
4198  ac_cv_header_stdc=no
4199fi
4200rm -f conftest*
4201
4202fi
4203
4204if test $ac_cv_header_stdc = yes; then
4205  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4206  if test "$cross_compiling" = yes; then
4207  :
4208else
4209  cat >conftest.$ac_ext <<_ACEOF
4210/* confdefs.h.  */
4211_ACEOF
4212cat confdefs.h >>conftest.$ac_ext
4213cat >>conftest.$ac_ext <<_ACEOF
4214/* end confdefs.h.  */
4215#include <ctype.h>
4216#include <stdlib.h>
4217#if ((' ' & 0x0FF) == 0x020)
4218# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4219# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4220#else
4221# define ISLOWER(c) \
4222		   (('a' <= (c) && (c) <= 'i') \
4223		     || ('j' <= (c) && (c) <= 'r') \
4224		     || ('s' <= (c) && (c) <= 'z'))
4225# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4226#endif
4227
4228#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4229int
4230main ()
4231{
4232  int i;
4233  for (i = 0; i < 256; i++)
4234    if (XOR (islower (i), ISLOWER (i))
4235	|| toupper (i) != TOUPPER (i))
4236      return 2;
4237  return 0;
4238}
4239_ACEOF
4240rm -f conftest$ac_exeext
4241if { (ac_try="$ac_link"
4242case "(($ac_try" in
4243  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244  *) ac_try_echo=$ac_try;;
4245esac
4246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4247  (eval "$ac_link") 2>&5
4248  ac_status=$?
4249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4251  { (case "(($ac_try" in
4252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253  *) ac_try_echo=$ac_try;;
4254esac
4255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4256  (eval "$ac_try") 2>&5
4257  ac_status=$?
4258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259  (exit $ac_status); }; }; then
4260  :
4261else
4262  echo "$as_me: program exited with status $ac_status" >&5
4263echo "$as_me: failed program was:" >&5
4264sed 's/^/| /' conftest.$ac_ext >&5
4265
4266( exit $ac_status )
4267ac_cv_header_stdc=no
4268fi
4269rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4270fi
4271
4272
4273fi
4274fi
4275{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4276echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4277if test $ac_cv_header_stdc = yes; then
4278
4279cat >>confdefs.h <<\_ACEOF
4280#define STDC_HEADERS 1
4281_ACEOF
4282
4283fi
4284
4285# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4296		  inttypes.h stdint.h unistd.h
4297do
4298as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4299{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4300echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4301if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4302  echo $ECHO_N "(cached) $ECHO_C" >&6
4303else
4304  cat >conftest.$ac_ext <<_ACEOF
4305/* confdefs.h.  */
4306_ACEOF
4307cat confdefs.h >>conftest.$ac_ext
4308cat >>conftest.$ac_ext <<_ACEOF
4309/* end confdefs.h.  */
4310$ac_includes_default
4311
4312#include <$ac_header>
4313_ACEOF
4314rm -f conftest.$ac_objext
4315if { (ac_try="$ac_compile"
4316case "(($ac_try" in
4317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318  *) ac_try_echo=$ac_try;;
4319esac
4320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4321  (eval "$ac_compile") 2>conftest.er1
4322  ac_status=$?
4323  grep -v '^ *+' conftest.er1 >conftest.err
4324  rm -f conftest.er1
4325  cat conftest.err >&5
4326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327  (exit $ac_status); } && {
4328	 test -z "$ac_c_werror_flag" ||
4329	 test ! -s conftest.err
4330       } && test -s conftest.$ac_objext; then
4331  eval "$as_ac_Header=yes"
4332else
4333  echo "$as_me: failed program was:" >&5
4334sed 's/^/| /' conftest.$ac_ext >&5
4335
4336	eval "$as_ac_Header=no"
4337fi
4338
4339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4340fi
4341ac_res=`eval echo '${'$as_ac_Header'}'`
4342	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4343echo "${ECHO_T}$ac_res" >&6; }
4344if test `eval echo '${'$as_ac_Header'}'` = yes; then
4345  cat >>confdefs.h <<_ACEOF
4346#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4347_ACEOF
4348
4349fi
4350
4351done
4352
4353
4354
4355for ac_header in dlfcn.h
4356do
4357as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4358if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4359  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4360echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4361if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4362  echo $ECHO_N "(cached) $ECHO_C" >&6
4363fi
4364ac_res=`eval echo '${'$as_ac_Header'}'`
4365	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4366echo "${ECHO_T}$ac_res" >&6; }
4367else
4368  # Is the header compilable?
4369{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4370echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4371cat >conftest.$ac_ext <<_ACEOF
4372/* confdefs.h.  */
4373_ACEOF
4374cat confdefs.h >>conftest.$ac_ext
4375cat >>conftest.$ac_ext <<_ACEOF
4376/* end confdefs.h.  */
4377$ac_includes_default
4378#include <$ac_header>
4379_ACEOF
4380rm -f conftest.$ac_objext
4381if { (ac_try="$ac_compile"
4382case "(($ac_try" in
4383  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384  *) ac_try_echo=$ac_try;;
4385esac
4386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4387  (eval "$ac_compile") 2>conftest.er1
4388  ac_status=$?
4389  grep -v '^ *+' conftest.er1 >conftest.err
4390  rm -f conftest.er1
4391  cat conftest.err >&5
4392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393  (exit $ac_status); } && {
4394	 test -z "$ac_c_werror_flag" ||
4395	 test ! -s conftest.err
4396       } && test -s conftest.$ac_objext; then
4397  ac_header_compiler=yes
4398else
4399  echo "$as_me: failed program was:" >&5
4400sed 's/^/| /' conftest.$ac_ext >&5
4401
4402	ac_header_compiler=no
4403fi
4404
4405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4406{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4407echo "${ECHO_T}$ac_header_compiler" >&6; }
4408
4409# Is the header present?
4410{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4411echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4412cat >conftest.$ac_ext <<_ACEOF
4413/* confdefs.h.  */
4414_ACEOF
4415cat confdefs.h >>conftest.$ac_ext
4416cat >>conftest.$ac_ext <<_ACEOF
4417/* end confdefs.h.  */
4418#include <$ac_header>
4419_ACEOF
4420if { (ac_try="$ac_cpp conftest.$ac_ext"
4421case "(($ac_try" in
4422  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4423  *) ac_try_echo=$ac_try;;
4424esac
4425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4426  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4427  ac_status=$?
4428  grep -v '^ *+' conftest.er1 >conftest.err
4429  rm -f conftest.er1
4430  cat conftest.err >&5
4431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432  (exit $ac_status); } >/dev/null && {
4433	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4434	 test ! -s conftest.err
4435       }; then
4436  ac_header_preproc=yes
4437else
4438  echo "$as_me: failed program was:" >&5
4439sed 's/^/| /' conftest.$ac_ext >&5
4440
4441  ac_header_preproc=no
4442fi
4443
4444rm -f conftest.err conftest.$ac_ext
4445{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4446echo "${ECHO_T}$ac_header_preproc" >&6; }
4447
4448# So?  What about this header?
4449case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4450  yes:no: )
4451    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4452echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4453    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4454echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4455    ac_header_preproc=yes
4456    ;;
4457  no:yes:* )
4458    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4459echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4460    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4461echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4462    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4463echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4464    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4465echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4466    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4467echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4468    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4469echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4470
4471    ;;
4472esac
4473{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4474echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4475if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4476  echo $ECHO_N "(cached) $ECHO_C" >&6
4477else
4478  eval "$as_ac_Header=\$ac_header_preproc"
4479fi
4480ac_res=`eval echo '${'$as_ac_Header'}'`
4481	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4482echo "${ECHO_T}$ac_res" >&6; }
4483
4484fi
4485if test `eval echo '${'$as_ac_Header'}'` = yes; then
4486  cat >>confdefs.h <<_ACEOF
4487#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4488_ACEOF
4489
4490fi
4491
4492done
4493
4494ac_ext=cpp
4495ac_cpp='$CXXCPP $CPPFLAGS'
4496ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4497ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4498ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4499if test -z "$CXX"; then
4500  if test -n "$CCC"; then
4501    CXX=$CCC
4502  else
4503    if test -n "$ac_tool_prefix"; then
4504  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4505  do
4506    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4507set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4508{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4510if test "${ac_cv_prog_CXX+set}" = set; then
4511  echo $ECHO_N "(cached) $ECHO_C" >&6
4512else
4513  if test -n "$CXX"; then
4514  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4515else
4516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517for as_dir in $PATH
4518do
4519  IFS=$as_save_IFS
4520  test -z "$as_dir" && as_dir=.
4521  for ac_exec_ext in '' $ac_executable_extensions; do
4522  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4523    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4524    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4525    break 2
4526  fi
4527done
4528done
4529IFS=$as_save_IFS
4530
4531fi
4532fi
4533CXX=$ac_cv_prog_CXX
4534if test -n "$CXX"; then
4535  { echo "$as_me:$LINENO: result: $CXX" >&5
4536echo "${ECHO_T}$CXX" >&6; }
4537else
4538  { echo "$as_me:$LINENO: result: no" >&5
4539echo "${ECHO_T}no" >&6; }
4540fi
4541
4542
4543    test -n "$CXX" && break
4544  done
4545fi
4546if test -z "$CXX"; then
4547  ac_ct_CXX=$CXX
4548  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4549do
4550  # Extract the first word of "$ac_prog", so it can be a program name with args.
4551set dummy $ac_prog; ac_word=$2
4552{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4554if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4555  echo $ECHO_N "(cached) $ECHO_C" >&6
4556else
4557  if test -n "$ac_ct_CXX"; then
4558  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4559else
4560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561for as_dir in $PATH
4562do
4563  IFS=$as_save_IFS
4564  test -z "$as_dir" && as_dir=.
4565  for ac_exec_ext in '' $ac_executable_extensions; do
4566  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4567    ac_cv_prog_ac_ct_CXX="$ac_prog"
4568    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4569    break 2
4570  fi
4571done
4572done
4573IFS=$as_save_IFS
4574
4575fi
4576fi
4577ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4578if test -n "$ac_ct_CXX"; then
4579  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4580echo "${ECHO_T}$ac_ct_CXX" >&6; }
4581else
4582  { echo "$as_me:$LINENO: result: no" >&5
4583echo "${ECHO_T}no" >&6; }
4584fi
4585
4586
4587  test -n "$ac_ct_CXX" && break
4588done
4589
4590  if test "x$ac_ct_CXX" = x; then
4591    CXX="g++"
4592  else
4593    case $cross_compiling:$ac_tool_warned in
4594yes:)
4595{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4596whose name does not start with the host triplet.  If you think this
4597configuration is useful to you, please write to [email protected]." >&5
4598echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4599whose name does not start with the host triplet.  If you think this
4600configuration is useful to you, please write to [email protected]." >&2;}
4601ac_tool_warned=yes ;;
4602esac
4603    CXX=$ac_ct_CXX
4604  fi
4605fi
4606
4607  fi
4608fi
4609# Provide some information about the compiler.
4610echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4611ac_compiler=`set X $ac_compile; echo $2`
4612{ (ac_try="$ac_compiler --version >&5"
4613case "(($ac_try" in
4614  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4615  *) ac_try_echo=$ac_try;;
4616esac
4617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4618  (eval "$ac_compiler --version >&5") 2>&5
4619  ac_status=$?
4620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621  (exit $ac_status); }
4622{ (ac_try="$ac_compiler -v >&5"
4623case "(($ac_try" in
4624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625  *) ac_try_echo=$ac_try;;
4626esac
4627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4628  (eval "$ac_compiler -v >&5") 2>&5
4629  ac_status=$?
4630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631  (exit $ac_status); }
4632{ (ac_try="$ac_compiler -V >&5"
4633case "(($ac_try" in
4634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4635  *) ac_try_echo=$ac_try;;
4636esac
4637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4638  (eval "$ac_compiler -V >&5") 2>&5
4639  ac_status=$?
4640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641  (exit $ac_status); }
4642
4643{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4644echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4645if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4646  echo $ECHO_N "(cached) $ECHO_C" >&6
4647else
4648  cat >conftest.$ac_ext <<_ACEOF
4649/* confdefs.h.  */
4650_ACEOF
4651cat confdefs.h >>conftest.$ac_ext
4652cat >>conftest.$ac_ext <<_ACEOF
4653/* end confdefs.h.  */
4654
4655int
4656main ()
4657{
4658#ifndef __GNUC__
4659       choke me
4660#endif
4661
4662  ;
4663  return 0;
4664}
4665_ACEOF
4666rm -f conftest.$ac_objext
4667if { (ac_try="$ac_compile"
4668case "(($ac_try" in
4669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4670  *) ac_try_echo=$ac_try;;
4671esac
4672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4673  (eval "$ac_compile") 2>conftest.er1
4674  ac_status=$?
4675  grep -v '^ *+' conftest.er1 >conftest.err
4676  rm -f conftest.er1
4677  cat conftest.err >&5
4678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679  (exit $ac_status); } && {
4680	 test -z "$ac_cxx_werror_flag" ||
4681	 test ! -s conftest.err
4682       } && test -s conftest.$ac_objext; then
4683  ac_compiler_gnu=yes
4684else
4685  echo "$as_me: failed program was:" >&5
4686sed 's/^/| /' conftest.$ac_ext >&5
4687
4688	ac_compiler_gnu=no
4689fi
4690
4691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4692ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4693
4694fi
4695{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4696echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4697GXX=`test $ac_compiler_gnu = yes && echo yes`
4698ac_test_CXXFLAGS=${CXXFLAGS+set}
4699ac_save_CXXFLAGS=$CXXFLAGS
4700{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4701echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4702if test "${ac_cv_prog_cxx_g+set}" = set; then
4703  echo $ECHO_N "(cached) $ECHO_C" >&6
4704else
4705  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4706   ac_cxx_werror_flag=yes
4707   ac_cv_prog_cxx_g=no
4708   CXXFLAGS="-g"
4709   cat >conftest.$ac_ext <<_ACEOF
4710/* confdefs.h.  */
4711_ACEOF
4712cat confdefs.h >>conftest.$ac_ext
4713cat >>conftest.$ac_ext <<_ACEOF
4714/* end confdefs.h.  */
4715
4716int
4717main ()
4718{
4719
4720  ;
4721  return 0;
4722}
4723_ACEOF
4724rm -f conftest.$ac_objext
4725if { (ac_try="$ac_compile"
4726case "(($ac_try" in
4727  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4728  *) ac_try_echo=$ac_try;;
4729esac
4730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4731  (eval "$ac_compile") 2>conftest.er1
4732  ac_status=$?
4733  grep -v '^ *+' conftest.er1 >conftest.err
4734  rm -f conftest.er1
4735  cat conftest.err >&5
4736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737  (exit $ac_status); } && {
4738	 test -z "$ac_cxx_werror_flag" ||
4739	 test ! -s conftest.err
4740       } && test -s conftest.$ac_objext; then
4741  ac_cv_prog_cxx_g=yes
4742else
4743  echo "$as_me: failed program was:" >&5
4744sed 's/^/| /' conftest.$ac_ext >&5
4745
4746	CXXFLAGS=""
4747      cat >conftest.$ac_ext <<_ACEOF
4748/* confdefs.h.  */
4749_ACEOF
4750cat confdefs.h >>conftest.$ac_ext
4751cat >>conftest.$ac_ext <<_ACEOF
4752/* end confdefs.h.  */
4753
4754int
4755main ()
4756{
4757
4758  ;
4759  return 0;
4760}
4761_ACEOF
4762rm -f conftest.$ac_objext
4763if { (ac_try="$ac_compile"
4764case "(($ac_try" in
4765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4766  *) ac_try_echo=$ac_try;;
4767esac
4768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4769  (eval "$ac_compile") 2>conftest.er1
4770  ac_status=$?
4771  grep -v '^ *+' conftest.er1 >conftest.err
4772  rm -f conftest.er1
4773  cat conftest.err >&5
4774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775  (exit $ac_status); } && {
4776	 test -z "$ac_cxx_werror_flag" ||
4777	 test ! -s conftest.err
4778       } && test -s conftest.$ac_objext; then
4779  :
4780else
4781  echo "$as_me: failed program was:" >&5
4782sed 's/^/| /' conftest.$ac_ext >&5
4783
4784	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4785	 CXXFLAGS="-g"
4786	 cat >conftest.$ac_ext <<_ACEOF
4787/* confdefs.h.  */
4788_ACEOF
4789cat confdefs.h >>conftest.$ac_ext
4790cat >>conftest.$ac_ext <<_ACEOF
4791/* end confdefs.h.  */
4792
4793int
4794main ()
4795{
4796
4797  ;
4798  return 0;
4799}
4800_ACEOF
4801rm -f conftest.$ac_objext
4802if { (ac_try="$ac_compile"
4803case "(($ac_try" in
4804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4805  *) ac_try_echo=$ac_try;;
4806esac
4807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4808  (eval "$ac_compile") 2>conftest.er1
4809  ac_status=$?
4810  grep -v '^ *+' conftest.er1 >conftest.err
4811  rm -f conftest.er1
4812  cat conftest.err >&5
4813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814  (exit $ac_status); } && {
4815	 test -z "$ac_cxx_werror_flag" ||
4816	 test ! -s conftest.err
4817       } && test -s conftest.$ac_objext; then
4818  ac_cv_prog_cxx_g=yes
4819else
4820  echo "$as_me: failed program was:" >&5
4821sed 's/^/| /' conftest.$ac_ext >&5
4822
4823
4824fi
4825
4826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4827fi
4828
4829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4830fi
4831
4832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4833   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4834fi
4835{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4836echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4837if test "$ac_test_CXXFLAGS" = set; then
4838  CXXFLAGS=$ac_save_CXXFLAGS
4839elif test $ac_cv_prog_cxx_g = yes; then
4840  if test "$GXX" = yes; then
4841    CXXFLAGS="-g -O2"
4842  else
4843    CXXFLAGS="-g"
4844  fi
4845else
4846  if test "$GXX" = yes; then
4847    CXXFLAGS="-O2"
4848  else
4849    CXXFLAGS=
4850  fi
4851fi
4852ac_ext=cpp
4853ac_cpp='$CXXCPP $CPPFLAGS'
4854ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4855ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4856ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4857
4858
4859
4860if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4861    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4862    (test "X$CXX" != "Xg++"))) ; then
4863  ac_ext=cpp
4864ac_cpp='$CXXCPP $CPPFLAGS'
4865ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4866ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4867ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4868{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4869echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4870if test -z "$CXXCPP"; then
4871  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4872  echo $ECHO_N "(cached) $ECHO_C" >&6
4873else
4874      # Double quotes because CXXCPP needs to be expanded
4875    for CXXCPP in "$CXX -E" "/lib/cpp"
4876    do
4877      ac_preproc_ok=false
4878for ac_cxx_preproc_warn_flag in '' yes
4879do
4880  # Use a header file that comes with gcc, so configuring glibc
4881  # with a fresh cross-compiler works.
4882  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4883  # <limits.h> exists even on freestanding compilers.
4884  # On the NeXT, cc -E runs the code through the compiler's parser,
4885  # not just through cpp. "Syntax error" is here to catch this case.
4886  cat >conftest.$ac_ext <<_ACEOF
4887/* confdefs.h.  */
4888_ACEOF
4889cat confdefs.h >>conftest.$ac_ext
4890cat >>conftest.$ac_ext <<_ACEOF
4891/* end confdefs.h.  */
4892#ifdef __STDC__
4893# include <limits.h>
4894#else
4895# include <assert.h>
4896#endif
4897		     Syntax error
4898_ACEOF
4899if { (ac_try="$ac_cpp conftest.$ac_ext"
4900case "(($ac_try" in
4901  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4902  *) ac_try_echo=$ac_try;;
4903esac
4904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4905  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4906  ac_status=$?
4907  grep -v '^ *+' conftest.er1 >conftest.err
4908  rm -f conftest.er1
4909  cat conftest.err >&5
4910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911  (exit $ac_status); } >/dev/null && {
4912	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4913	 test ! -s conftest.err
4914       }; then
4915  :
4916else
4917  echo "$as_me: failed program was:" >&5
4918sed 's/^/| /' conftest.$ac_ext >&5
4919
4920  # Broken: fails on valid input.
4921continue
4922fi
4923
4924rm -f conftest.err conftest.$ac_ext
4925
4926  # OK, works on sane cases.  Now check whether nonexistent headers
4927  # can be detected and how.
4928  cat >conftest.$ac_ext <<_ACEOF
4929/* confdefs.h.  */
4930_ACEOF
4931cat confdefs.h >>conftest.$ac_ext
4932cat >>conftest.$ac_ext <<_ACEOF
4933/* end confdefs.h.  */
4934#include <ac_nonexistent.h>
4935_ACEOF
4936if { (ac_try="$ac_cpp conftest.$ac_ext"
4937case "(($ac_try" in
4938  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4939  *) ac_try_echo=$ac_try;;
4940esac
4941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4942  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4943  ac_status=$?
4944  grep -v '^ *+' conftest.er1 >conftest.err
4945  rm -f conftest.er1
4946  cat conftest.err >&5
4947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948  (exit $ac_status); } >/dev/null && {
4949	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4950	 test ! -s conftest.err
4951       }; then
4952  # Broken: success on invalid input.
4953continue
4954else
4955  echo "$as_me: failed program was:" >&5
4956sed 's/^/| /' conftest.$ac_ext >&5
4957
4958  # Passes both tests.
4959ac_preproc_ok=:
4960break
4961fi
4962
4963rm -f conftest.err conftest.$ac_ext
4964
4965done
4966# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4967rm -f conftest.err conftest.$ac_ext
4968if $ac_preproc_ok; then
4969  break
4970fi
4971
4972    done
4973    ac_cv_prog_CXXCPP=$CXXCPP
4974
4975fi
4976  CXXCPP=$ac_cv_prog_CXXCPP
4977else
4978  ac_cv_prog_CXXCPP=$CXXCPP
4979fi
4980{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
4981echo "${ECHO_T}$CXXCPP" >&6; }
4982ac_preproc_ok=false
4983for ac_cxx_preproc_warn_flag in '' yes
4984do
4985  # Use a header file that comes with gcc, so configuring glibc
4986  # with a fresh cross-compiler works.
4987  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4988  # <limits.h> exists even on freestanding compilers.
4989  # On the NeXT, cc -E runs the code through the compiler's parser,
4990  # not just through cpp. "Syntax error" is here to catch this case.
4991  cat >conftest.$ac_ext <<_ACEOF
4992/* confdefs.h.  */
4993_ACEOF
4994cat confdefs.h >>conftest.$ac_ext
4995cat >>conftest.$ac_ext <<_ACEOF
4996/* end confdefs.h.  */
4997#ifdef __STDC__
4998# include <limits.h>
4999#else
5000# include <assert.h>
5001#endif
5002		     Syntax error
5003_ACEOF
5004if { (ac_try="$ac_cpp conftest.$ac_ext"
5005case "(($ac_try" in
5006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5007  *) ac_try_echo=$ac_try;;
5008esac
5009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5010  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5011  ac_status=$?
5012  grep -v '^ *+' conftest.er1 >conftest.err
5013  rm -f conftest.er1
5014  cat conftest.err >&5
5015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016  (exit $ac_status); } >/dev/null && {
5017	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5018	 test ! -s conftest.err
5019       }; then
5020  :
5021else
5022  echo "$as_me: failed program was:" >&5
5023sed 's/^/| /' conftest.$ac_ext >&5
5024
5025  # Broken: fails on valid input.
5026continue
5027fi
5028
5029rm -f conftest.err conftest.$ac_ext
5030
5031  # OK, works on sane cases.  Now check whether nonexistent headers
5032  # can be detected and how.
5033  cat >conftest.$ac_ext <<_ACEOF
5034/* confdefs.h.  */
5035_ACEOF
5036cat confdefs.h >>conftest.$ac_ext
5037cat >>conftest.$ac_ext <<_ACEOF
5038/* end confdefs.h.  */
5039#include <ac_nonexistent.h>
5040_ACEOF
5041if { (ac_try="$ac_cpp conftest.$ac_ext"
5042case "(($ac_try" in
5043  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5044  *) ac_try_echo=$ac_try;;
5045esac
5046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5047  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5048  ac_status=$?
5049  grep -v '^ *+' conftest.er1 >conftest.err
5050  rm -f conftest.er1
5051  cat conftest.err >&5
5052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053  (exit $ac_status); } >/dev/null && {
5054	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5055	 test ! -s conftest.err
5056       }; then
5057  # Broken: success on invalid input.
5058continue
5059else
5060  echo "$as_me: failed program was:" >&5
5061sed 's/^/| /' conftest.$ac_ext >&5
5062
5063  # Passes both tests.
5064ac_preproc_ok=:
5065break
5066fi
5067
5068rm -f conftest.err conftest.$ac_ext
5069
5070done
5071# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5072rm -f conftest.err conftest.$ac_ext
5073if $ac_preproc_ok; then
5074  :
5075else
5076  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5077See \`config.log' for more details." >&5
5078echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5079See \`config.log' for more details." >&2;}
5080   { (exit 1); exit 1; }; }
5081fi
5082
5083ac_ext=cpp
5084ac_cpp='$CXXCPP $CPPFLAGS'
5085ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5086ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5087ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5088
5089fi
5090
5091
5092ac_ext=f
5093ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5094ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5095ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5096if test -n "$ac_tool_prefix"; then
5097  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
5098  do
5099    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5100set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5101{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5103if test "${ac_cv_prog_F77+set}" = set; then
5104  echo $ECHO_N "(cached) $ECHO_C" >&6
5105else
5106  if test -n "$F77"; then
5107  ac_cv_prog_F77="$F77" # Let the user override the test.
5108else
5109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110for as_dir in $PATH
5111do
5112  IFS=$as_save_IFS
5113  test -z "$as_dir" && as_dir=.
5114  for ac_exec_ext in '' $ac_executable_extensions; do
5115  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5116    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5117    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5118    break 2
5119  fi
5120done
5121done
5122IFS=$as_save_IFS
5123
5124fi
5125fi
5126F77=$ac_cv_prog_F77
5127if test -n "$F77"; then
5128  { echo "$as_me:$LINENO: result: $F77" >&5
5129echo "${ECHO_T}$F77" >&6; }
5130else
5131  { echo "$as_me:$LINENO: result: no" >&5
5132echo "${ECHO_T}no" >&6; }
5133fi
5134
5135
5136    test -n "$F77" && break
5137  done
5138fi
5139if test -z "$F77"; then
5140  ac_ct_F77=$F77
5141  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
5142do
5143  # Extract the first word of "$ac_prog", so it can be a program name with args.
5144set dummy $ac_prog; ac_word=$2
5145{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5147if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5148  echo $ECHO_N "(cached) $ECHO_C" >&6
5149else
5150  if test -n "$ac_ct_F77"; then
5151  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5152else
5153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154for as_dir in $PATH
5155do
5156  IFS=$as_save_IFS
5157  test -z "$as_dir" && as_dir=.
5158  for ac_exec_ext in '' $ac_executable_extensions; do
5159  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5160    ac_cv_prog_ac_ct_F77="$ac_prog"
5161    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5162    break 2
5163  fi
5164done
5165done
5166IFS=$as_save_IFS
5167
5168fi
5169fi
5170ac_ct_F77=$ac_cv_prog_ac_ct_F77
5171if test -n "$ac_ct_F77"; then
5172  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5173echo "${ECHO_T}$ac_ct_F77" >&6; }
5174else
5175  { echo "$as_me:$LINENO: result: no" >&5
5176echo "${ECHO_T}no" >&6; }
5177fi
5178
5179
5180  test -n "$ac_ct_F77" && break
5181done
5182
5183  if test "x$ac_ct_F77" = x; then
5184    F77=""
5185  else
5186    case $cross_compiling:$ac_tool_warned in
5187yes:)
5188{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5189whose name does not start with the host triplet.  If you think this
5190configuration is useful to you, please write to [email protected]." >&5
5191echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5192whose name does not start with the host triplet.  If you think this
5193configuration is useful to you, please write to [email protected]." >&2;}
5194ac_tool_warned=yes ;;
5195esac
5196    F77=$ac_ct_F77
5197  fi
5198fi
5199
5200
5201# Provide some information about the compiler.
5202echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5203ac_compiler=`set X $ac_compile; echo $2`
5204{ (ac_try="$ac_compiler --version >&5"
5205case "(($ac_try" in
5206  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5207  *) ac_try_echo=$ac_try;;
5208esac
5209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5210  (eval "$ac_compiler --version >&5") 2>&5
5211  ac_status=$?
5212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213  (exit $ac_status); }
5214{ (ac_try="$ac_compiler -v >&5"
5215case "(($ac_try" in
5216  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5217  *) ac_try_echo=$ac_try;;
5218esac
5219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5220  (eval "$ac_compiler -v >&5") 2>&5
5221  ac_status=$?
5222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223  (exit $ac_status); }
5224{ (ac_try="$ac_compiler -V >&5"
5225case "(($ac_try" in
5226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5227  *) ac_try_echo=$ac_try;;
5228esac
5229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5230  (eval "$ac_compiler -V >&5") 2>&5
5231  ac_status=$?
5232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233  (exit $ac_status); }
5234rm -f a.out
5235
5236# If we don't use `.F' as extension, the preprocessor is not run on the
5237# input file.  (Note that this only needs to work for GNU compilers.)
5238ac_save_ext=$ac_ext
5239ac_ext=F
5240{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5241echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5242if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5243  echo $ECHO_N "(cached) $ECHO_C" >&6
5244else
5245  cat >conftest.$ac_ext <<_ACEOF
5246      program main
5247#ifndef __GNUC__
5248       choke me
5249#endif
5250
5251      end
5252_ACEOF
5253rm -f conftest.$ac_objext
5254if { (ac_try="$ac_compile"
5255case "(($ac_try" in
5256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5257  *) ac_try_echo=$ac_try;;
5258esac
5259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5260  (eval "$ac_compile") 2>conftest.er1
5261  ac_status=$?
5262  grep -v '^ *+' conftest.er1 >conftest.err
5263  rm -f conftest.er1
5264  cat conftest.err >&5
5265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266  (exit $ac_status); } && {
5267	 test -z "$ac_f77_werror_flag" ||
5268	 test ! -s conftest.err
5269       } && test -s conftest.$ac_objext; then
5270  ac_compiler_gnu=yes
5271else
5272  echo "$as_me: failed program was:" >&5
5273sed 's/^/| /' conftest.$ac_ext >&5
5274
5275	ac_compiler_gnu=no
5276fi
5277
5278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5279ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5280
5281fi
5282{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5283echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5284ac_ext=$ac_save_ext
5285ac_test_FFLAGS=${FFLAGS+set}
5286ac_save_FFLAGS=$FFLAGS
5287FFLAGS=
5288{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5289echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5290if test "${ac_cv_prog_f77_g+set}" = set; then
5291  echo $ECHO_N "(cached) $ECHO_C" >&6
5292else
5293  FFLAGS=-g
5294cat >conftest.$ac_ext <<_ACEOF
5295      program main
5296
5297      end
5298_ACEOF
5299rm -f conftest.$ac_objext
5300if { (ac_try="$ac_compile"
5301case "(($ac_try" in
5302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5303  *) ac_try_echo=$ac_try;;
5304esac
5305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5306  (eval "$ac_compile") 2>conftest.er1
5307  ac_status=$?
5308  grep -v '^ *+' conftest.er1 >conftest.err
5309  rm -f conftest.er1
5310  cat conftest.err >&5
5311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312  (exit $ac_status); } && {
5313	 test -z "$ac_f77_werror_flag" ||
5314	 test ! -s conftest.err
5315       } && test -s conftest.$ac_objext; then
5316  ac_cv_prog_f77_g=yes
5317else
5318  echo "$as_me: failed program was:" >&5
5319sed 's/^/| /' conftest.$ac_ext >&5
5320
5321	ac_cv_prog_f77_g=no
5322fi
5323
5324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5325
5326fi
5327{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5328echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5329if test "$ac_test_FFLAGS" = set; then
5330  FFLAGS=$ac_save_FFLAGS
5331elif test $ac_cv_prog_f77_g = yes; then
5332  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5333    FFLAGS="-g -O2"
5334  else
5335    FFLAGS="-g"
5336  fi
5337else
5338  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5339    FFLAGS="-O2"
5340  else
5341    FFLAGS=
5342  fi
5343fi
5344
5345G77=`test $ac_compiler_gnu = yes && echo yes`
5346ac_ext=c
5347ac_cpp='$CPP $CPPFLAGS'
5348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5350ac_compiler_gnu=$ac_cv_c_compiler_gnu
5351
5352
5353
5354# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5355
5356# find the maximum length of command line arguments
5357{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5358echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5359if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5360  echo $ECHO_N "(cached) $ECHO_C" >&6
5361else
5362    i=0
5363  teststring="ABCD"
5364
5365  case $build_os in
5366  msdosdjgpp*)
5367    # On DJGPP, this test can blow up pretty badly due to problems in libc
5368    # (any single argument exceeding 2000 bytes causes a buffer overrun
5369    # during glob expansion).  Even if it were fixed, the result of this
5370    # check would be larger than it should be.
5371    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5372    ;;
5373
5374  gnu*)
5375    # Under GNU Hurd, this test is not required because there is
5376    # no limit to the length of command line arguments.
5377    # Libtool will interpret -1 as no limit whatsoever
5378    lt_cv_sys_max_cmd_len=-1;
5379    ;;
5380
5381  cygwin* | mingw*)
5382    # On Win9x/ME, this test blows up -- it succeeds, but takes
5383    # about 5 minutes as the teststring grows exponentially.
5384    # Worse, since 9x/ME are not pre-emptively multitasking,
5385    # you end up with a "frozen" computer, even though with patience
5386    # the test eventually succeeds (with a max line length of 256k).
5387    # Instead, let's just punt: use the minimum linelength reported by
5388    # all of the supported platforms: 8192 (on NT/2K/XP).
5389    lt_cv_sys_max_cmd_len=8192;
5390    ;;
5391
5392  amigaos*)
5393    # On AmigaOS with pdksh, this test takes hours, literally.
5394    # So we just punt and use a minimum line length of 8192.
5395    lt_cv_sys_max_cmd_len=8192;
5396    ;;
5397
5398  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5399    # This has been around since 386BSD, at least.  Likely further.
5400    if test -x /sbin/sysctl; then
5401      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5402    elif test -x /usr/sbin/sysctl; then
5403      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5404    else
5405      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5406    fi
5407    # And add a safety zone
5408    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5409    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5410    ;;
5411
5412  interix*)
5413    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5414    lt_cv_sys_max_cmd_len=196608
5415    ;;
5416
5417  osf*)
5418    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5419    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5420    # nice to cause kernel panics so lets avoid the loop below.
5421    # First set a reasonable default.
5422    lt_cv_sys_max_cmd_len=16384
5423    #
5424    if test -x /sbin/sysconfig; then
5425      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5426        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5427      esac
5428    fi
5429    ;;
5430  sco3.2v5*)
5431    lt_cv_sys_max_cmd_len=102400
5432    ;;
5433  sysv5* | sco5v6* | sysv4.2uw2*)
5434    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5435    if test -n "$kargmax"; then
5436      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
5437    else
5438      lt_cv_sys_max_cmd_len=32768
5439    fi
5440    ;;
5441  *)
5442    # If test is not a shell built-in, we'll probably end up computing a
5443    # maximum length that is only half of the actual maximum length, but
5444    # we can't tell.
5445    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5446    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5447	       = "XX$teststring") >/dev/null 2>&1 &&
5448	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
5449	    lt_cv_sys_max_cmd_len=$new_result &&
5450	    test $i != 17 # 1/2 MB should be enough
5451    do
5452      i=`expr $i + 1`
5453      teststring=$teststring$teststring
5454    done
5455    teststring=
5456    # Add a significant safety factor because C++ compilers can tack on massive
5457    # amounts of additional arguments before passing them to the linker.
5458    # It appears as though 1/2 is a usable value.
5459    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5460    ;;
5461  esac
5462
5463fi
5464
5465if test -n $lt_cv_sys_max_cmd_len ; then
5466  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5467echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5468else
5469  { echo "$as_me:$LINENO: result: none" >&5
5470echo "${ECHO_T}none" >&6; }
5471fi
5472
5473
5474
5475
5476# Check for command to grab the raw symbol name followed by C symbol from nm.
5477{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5478echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5479if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5480  echo $ECHO_N "(cached) $ECHO_C" >&6
5481else
5482
5483# These are sane defaults that work on at least a few old systems.
5484# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5485
5486# Character class describing NM global symbol codes.
5487symcode='[BCDEGRST]'
5488
5489# Regexp to match symbols that can be accessed directly from C.
5490sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5491
5492# Transform an extracted symbol line into a proper C declaration
5493lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5494
5495# Transform an extracted symbol line into symbol name and symbol address
5496lt_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'"
5497
5498# Define system-specific variables.
5499case $host_os in
5500aix*)
5501  symcode='[BCDT]'
5502  ;;
5503cygwin* | mingw* | pw32*)
5504  symcode='[ABCDGISTW]'
5505  ;;
5506hpux*) # Its linker distinguishes data from code symbols
5507  if test "$host_cpu" = ia64; then
5508    symcode='[ABCDEGRST]'
5509  fi
5510  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5511  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'"
5512  ;;
5513linux*)
5514  if test "$host_cpu" = ia64; then
5515    symcode='[ABCDGIRSTW]'
5516    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5517    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'"
5518  fi
5519  ;;
5520irix* | nonstopux*)
5521  symcode='[BCDEGRST]'
5522  ;;
5523osf*)
5524  symcode='[BCDEGQRST]'
5525  ;;
5526solaris*)
5527  symcode='[BDRT]'
5528  ;;
5529sco3.2v5*)
5530  symcode='[DT]'
5531  ;;
5532sysv4.2uw2*)
5533  symcode='[DT]'
5534  ;;
5535sysv5* | sco5v6* | unixware* | OpenUNIX*)
5536  symcode='[ABDT]'
5537  ;;
5538sysv4)
5539  symcode='[DFNSTU]'
5540  ;;
5541esac
5542
5543# Handle CRLF in mingw tool chain
5544opt_cr=
5545case $build_os in
5546mingw*)
5547  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5548  ;;
5549esac
5550
5551# If we're using GNU nm, then use its standard symbol codes.
5552case `$NM -V 2>&1` in
5553*GNU* | *'with BFD'*)
5554  symcode='[ABCDGIRSTW]' ;;
5555esac
5556
5557# Try without a prefix undercore, then with it.
5558for ac_symprfx in "" "_"; do
5559
5560  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5561  symxfrm="\\1 $ac_symprfx\\2 \\2"
5562
5563  # Write the raw and C identifiers.
5564  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5565
5566  # Check to see that the pipe works correctly.
5567  pipe_works=no
5568
5569  rm -f conftest*
5570  cat > conftest.$ac_ext <<EOF
5571#ifdef __cplusplus
5572extern "C" {
5573#endif
5574char nm_test_var;
5575void nm_test_func(){}
5576#ifdef __cplusplus
5577}
5578#endif
5579int main(){nm_test_var='a';nm_test_func();return(0);}
5580EOF
5581
5582  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5583  (eval $ac_compile) 2>&5
5584  ac_status=$?
5585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586  (exit $ac_status); }; then
5587    # Now try to grab the symbols.
5588    nlist=conftest.nm
5589    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5590  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5591  ac_status=$?
5592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593  (exit $ac_status); } && test -s "$nlist"; then
5594      # Try sorting and uniquifying the output.
5595      if sort "$nlist" | uniq > "$nlist"T; then
5596	mv -f "$nlist"T "$nlist"
5597      else
5598	rm -f "$nlist"T
5599      fi
5600
5601      # Make sure that we snagged all the symbols we need.
5602      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5603	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5604	  cat <<EOF > conftest.$ac_ext
5605#ifdef __cplusplus
5606extern "C" {
5607#endif
5608
5609EOF
5610	  # Now generate the symbol file.
5611	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5612
5613	  cat <<EOF >> conftest.$ac_ext
5614#if defined (__STDC__) && __STDC__
5615# define lt_ptr_t void *
5616#else
5617# define lt_ptr_t char *
5618# define const
5619#endif
5620
5621/* The mapping between symbol names and symbols. */
5622const struct {
5623  const char *name;
5624  lt_ptr_t address;
5625}
5626lt_preloaded_symbols[] =
5627{
5628EOF
5629	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5630	  cat <<\EOF >> conftest.$ac_ext
5631  {0, (lt_ptr_t) 0}
5632};
5633
5634#ifdef __cplusplus
5635}
5636#endif
5637EOF
5638	  # Now try linking the two files.
5639	  mv conftest.$ac_objext conftstm.$ac_objext
5640	  lt_save_LIBS="$LIBS"
5641	  lt_save_CFLAGS="$CFLAGS"
5642	  LIBS="conftstm.$ac_objext"
5643	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5644	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5645  (eval $ac_link) 2>&5
5646  ac_status=$?
5647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5649	    pipe_works=yes
5650	  fi
5651	  LIBS="$lt_save_LIBS"
5652	  CFLAGS="$lt_save_CFLAGS"
5653	else
5654	  echo "cannot find nm_test_func in $nlist" >&5
5655	fi
5656      else
5657	echo "cannot find nm_test_var in $nlist" >&5
5658      fi
5659    else
5660      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5661    fi
5662  else
5663    echo "$progname: failed program was:" >&5
5664    cat conftest.$ac_ext >&5
5665  fi
5666  rm -f conftest* conftst*
5667
5668  # Do not use the global_symbol_pipe unless it works.
5669  if test "$pipe_works" = yes; then
5670    break
5671  else
5672    lt_cv_sys_global_symbol_pipe=
5673  fi
5674done
5675
5676fi
5677
5678if test -z "$lt_cv_sys_global_symbol_pipe"; then
5679  lt_cv_sys_global_symbol_to_cdecl=
5680fi
5681if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5682  { echo "$as_me:$LINENO: result: failed" >&5
5683echo "${ECHO_T}failed" >&6; }
5684else
5685  { echo "$as_me:$LINENO: result: ok" >&5
5686echo "${ECHO_T}ok" >&6; }
5687fi
5688
5689{ echo "$as_me:$LINENO: checking for objdir" >&5
5690echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
5691if test "${lt_cv_objdir+set}" = set; then
5692  echo $ECHO_N "(cached) $ECHO_C" >&6
5693else
5694  rm -f .libs 2>/dev/null
5695mkdir .libs 2>/dev/null
5696if test -d .libs; then
5697  lt_cv_objdir=.libs
5698else
5699  # MS-DOS does not allow filenames that begin with a dot.
5700  lt_cv_objdir=_libs
5701fi
5702rmdir .libs 2>/dev/null
5703fi
5704{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5705echo "${ECHO_T}$lt_cv_objdir" >&6; }
5706objdir=$lt_cv_objdir
5707
5708
5709
5710
5711
5712case $host_os in
5713aix3*)
5714  # AIX sometimes has problems with the GCC collect2 program.  For some
5715  # reason, if we set the COLLECT_NAMES environment variable, the problems
5716  # vanish in a puff of smoke.
5717  if test "X${COLLECT_NAMES+set}" != Xset; then
5718    COLLECT_NAMES=
5719    export COLLECT_NAMES
5720  fi
5721  ;;
5722esac
5723
5724# Sed substitution that helps us do robust quoting.  It backslashifies
5725# metacharacters that are still active within double-quoted strings.
5726Xsed='sed -e 1s/^X//'
5727sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5728
5729# Same as above, but do not quote variable references.
5730double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5731
5732# Sed substitution to delay expansion of an escaped shell variable in a
5733# double_quote_subst'ed string.
5734delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5735
5736# Sed substitution to avoid accidental globbing in evaled expressions
5737no_glob_subst='s/\*/\\\*/g'
5738
5739# Constants:
5740rm="rm -f"
5741
5742# Global variables:
5743default_ofile=libtool
5744can_build_shared=yes
5745
5746# All known linkers require a `.a' archive for static linking (except MSVC,
5747# which needs '.lib').
5748libext=a
5749ltmain="$ac_aux_dir/ltmain.sh"
5750ofile="$default_ofile"
5751with_gnu_ld="$lt_cv_prog_gnu_ld"
5752
5753if test -n "$ac_tool_prefix"; then
5754  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5755set dummy ${ac_tool_prefix}ar; ac_word=$2
5756{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5758if test "${ac_cv_prog_AR+set}" = set; then
5759  echo $ECHO_N "(cached) $ECHO_C" >&6
5760else
5761  if test -n "$AR"; then
5762  ac_cv_prog_AR="$AR" # Let the user override the test.
5763else
5764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765for as_dir in $PATH
5766do
5767  IFS=$as_save_IFS
5768  test -z "$as_dir" && as_dir=.
5769  for ac_exec_ext in '' $ac_executable_extensions; do
5770  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5771    ac_cv_prog_AR="${ac_tool_prefix}ar"
5772    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5773    break 2
5774  fi
5775done
5776done
5777IFS=$as_save_IFS
5778
5779fi
5780fi
5781AR=$ac_cv_prog_AR
5782if test -n "$AR"; then
5783  { echo "$as_me:$LINENO: result: $AR" >&5
5784echo "${ECHO_T}$AR" >&6; }
5785else
5786  { echo "$as_me:$LINENO: result: no" >&5
5787echo "${ECHO_T}no" >&6; }
5788fi
5789
5790
5791fi
5792if test -z "$ac_cv_prog_AR"; then
5793  ac_ct_AR=$AR
5794  # Extract the first word of "ar", so it can be a program name with args.
5795set dummy ar; ac_word=$2
5796{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5798if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5799  echo $ECHO_N "(cached) $ECHO_C" >&6
5800else
5801  if test -n "$ac_ct_AR"; then
5802  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5803else
5804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805for as_dir in $PATH
5806do
5807  IFS=$as_save_IFS
5808  test -z "$as_dir" && as_dir=.
5809  for ac_exec_ext in '' $ac_executable_extensions; do
5810  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5811    ac_cv_prog_ac_ct_AR="ar"
5812    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5813    break 2
5814  fi
5815done
5816done
5817IFS=$as_save_IFS
5818
5819fi
5820fi
5821ac_ct_AR=$ac_cv_prog_ac_ct_AR
5822if test -n "$ac_ct_AR"; then
5823  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5824echo "${ECHO_T}$ac_ct_AR" >&6; }
5825else
5826  { echo "$as_me:$LINENO: result: no" >&5
5827echo "${ECHO_T}no" >&6; }
5828fi
5829
5830  if test "x$ac_ct_AR" = x; then
5831    AR="false"
5832  else
5833    case $cross_compiling:$ac_tool_warned in
5834yes:)
5835{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5836whose name does not start with the host triplet.  If you think this
5837configuration is useful to you, please write to [email protected]." >&5
5838echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5839whose name does not start with the host triplet.  If you think this
5840configuration is useful to you, please write to [email protected]." >&2;}
5841ac_tool_warned=yes ;;
5842esac
5843    AR=$ac_ct_AR
5844  fi
5845else
5846  AR="$ac_cv_prog_AR"
5847fi
5848
5849if test -n "$ac_tool_prefix"; then
5850  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5851set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5852{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5854if test "${ac_cv_prog_RANLIB+set}" = set; then
5855  echo $ECHO_N "(cached) $ECHO_C" >&6
5856else
5857  if test -n "$RANLIB"; then
5858  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5859else
5860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861for as_dir in $PATH
5862do
5863  IFS=$as_save_IFS
5864  test -z "$as_dir" && as_dir=.
5865  for ac_exec_ext in '' $ac_executable_extensions; do
5866  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5867    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5868    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5869    break 2
5870  fi
5871done
5872done
5873IFS=$as_save_IFS
5874
5875fi
5876fi
5877RANLIB=$ac_cv_prog_RANLIB
5878if test -n "$RANLIB"; then
5879  { echo "$as_me:$LINENO: result: $RANLIB" >&5
5880echo "${ECHO_T}$RANLIB" >&6; }
5881else
5882  { echo "$as_me:$LINENO: result: no" >&5
5883echo "${ECHO_T}no" >&6; }
5884fi
5885
5886
5887fi
5888if test -z "$ac_cv_prog_RANLIB"; then
5889  ac_ct_RANLIB=$RANLIB
5890  # Extract the first word of "ranlib", so it can be a program name with args.
5891set dummy ranlib; ac_word=$2
5892{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5894if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5895  echo $ECHO_N "(cached) $ECHO_C" >&6
5896else
5897  if test -n "$ac_ct_RANLIB"; then
5898  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5899else
5900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901for as_dir in $PATH
5902do
5903  IFS=$as_save_IFS
5904  test -z "$as_dir" && as_dir=.
5905  for ac_exec_ext in '' $ac_executable_extensions; do
5906  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5907    ac_cv_prog_ac_ct_RANLIB="ranlib"
5908    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5909    break 2
5910  fi
5911done
5912done
5913IFS=$as_save_IFS
5914
5915fi
5916fi
5917ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5918if test -n "$ac_ct_RANLIB"; then
5919  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5920echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5921else
5922  { echo "$as_me:$LINENO: result: no" >&5
5923echo "${ECHO_T}no" >&6; }
5924fi
5925
5926  if test "x$ac_ct_RANLIB" = x; then
5927    RANLIB=":"
5928  else
5929    case $cross_compiling:$ac_tool_warned in
5930yes:)
5931{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5932whose name does not start with the host triplet.  If you think this
5933configuration is useful to you, please write to [email protected]." >&5
5934echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5935whose name does not start with the host triplet.  If you think this
5936configuration is useful to you, please write to [email protected]." >&2;}
5937ac_tool_warned=yes ;;
5938esac
5939    RANLIB=$ac_ct_RANLIB
5940  fi
5941else
5942  RANLIB="$ac_cv_prog_RANLIB"
5943fi
5944
5945if test -n "$ac_tool_prefix"; then
5946  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5947set dummy ${ac_tool_prefix}strip; ac_word=$2
5948{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5950if test "${ac_cv_prog_STRIP+set}" = set; then
5951  echo $ECHO_N "(cached) $ECHO_C" >&6
5952else
5953  if test -n "$STRIP"; then
5954  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5955else
5956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957for as_dir in $PATH
5958do
5959  IFS=$as_save_IFS
5960  test -z "$as_dir" && as_dir=.
5961  for ac_exec_ext in '' $ac_executable_extensions; do
5962  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5963    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5964    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5965    break 2
5966  fi
5967done
5968done
5969IFS=$as_save_IFS
5970
5971fi
5972fi
5973STRIP=$ac_cv_prog_STRIP
5974if test -n "$STRIP"; then
5975  { echo "$as_me:$LINENO: result: $STRIP" >&5
5976echo "${ECHO_T}$STRIP" >&6; }
5977else
5978  { echo "$as_me:$LINENO: result: no" >&5
5979echo "${ECHO_T}no" >&6; }
5980fi
5981
5982
5983fi
5984if test -z "$ac_cv_prog_STRIP"; then
5985  ac_ct_STRIP=$STRIP
5986  # Extract the first word of "strip", so it can be a program name with args.
5987set dummy strip; ac_word=$2
5988{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5990if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5991  echo $ECHO_N "(cached) $ECHO_C" >&6
5992else
5993  if test -n "$ac_ct_STRIP"; then
5994  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5995else
5996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997for as_dir in $PATH
5998do
5999  IFS=$as_save_IFS
6000  test -z "$as_dir" && as_dir=.
6001  for ac_exec_ext in '' $ac_executable_extensions; do
6002  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6003    ac_cv_prog_ac_ct_STRIP="strip"
6004    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6005    break 2
6006  fi
6007done
6008done
6009IFS=$as_save_IFS
6010
6011fi
6012fi
6013ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6014if test -n "$ac_ct_STRIP"; then
6015  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6016echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6017else
6018  { echo "$as_me:$LINENO: result: no" >&5
6019echo "${ECHO_T}no" >&6; }
6020fi
6021
6022  if test "x$ac_ct_STRIP" = x; then
6023    STRIP=":"
6024  else
6025    case $cross_compiling:$ac_tool_warned in
6026yes:)
6027{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6028whose name does not start with the host triplet.  If you think this
6029configuration is useful to you, please write to [email protected]." >&5
6030echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6031whose name does not start with the host triplet.  If you think this
6032configuration is useful to you, please write to [email protected]." >&2;}
6033ac_tool_warned=yes ;;
6034esac
6035    STRIP=$ac_ct_STRIP
6036  fi
6037else
6038  STRIP="$ac_cv_prog_STRIP"
6039fi
6040
6041
6042old_CC="$CC"
6043old_CFLAGS="$CFLAGS"
6044
6045# Set sane defaults for various variables
6046test -z "$AR" && AR=ar
6047test -z "$AR_FLAGS" && AR_FLAGS=cru
6048test -z "$AS" && AS=as
6049test -z "$CC" && CC=cc
6050test -z "$LTCC" && LTCC=$CC
6051test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6052test -z "$DLLTOOL" && DLLTOOL=dlltool
6053test -z "$LD" && LD=ld
6054test -z "$LN_S" && LN_S="ln -s"
6055test -z "$MAGIC_CMD" && MAGIC_CMD=file
6056test -z "$NM" && NM=nm
6057test -z "$SED" && SED=sed
6058test -z "$OBJDUMP" && OBJDUMP=objdump
6059test -z "$RANLIB" && RANLIB=:
6060test -z "$STRIP" && STRIP=:
6061test -z "$ac_objext" && ac_objext=o
6062
6063# Determine commands to create old-style static archives.
6064old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6065old_postinstall_cmds='chmod 644 $oldlib'
6066old_postuninstall_cmds=
6067
6068if test -n "$RANLIB"; then
6069  case $host_os in
6070  openbsd*)
6071    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6072    ;;
6073  *)
6074    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6075    ;;
6076  esac
6077  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6078fi
6079
6080for cc_temp in $compiler""; do
6081  case $cc_temp in
6082    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6083    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6084    \-*) ;;
6085    *) break;;
6086  esac
6087done
6088cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6089
6090
6091# Only perform the check for file, if the check method requires it
6092case $deplibs_check_method in
6093file_magic*)
6094  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6095    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6096echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6097if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6098  echo $ECHO_N "(cached) $ECHO_C" >&6
6099else
6100  case $MAGIC_CMD in
6101[\\/*] |  ?:[\\/]*)
6102  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6103  ;;
6104*)
6105  lt_save_MAGIC_CMD="$MAGIC_CMD"
6106  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6107  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6108  for ac_dir in $ac_dummy; do
6109    IFS="$lt_save_ifs"
6110    test -z "$ac_dir" && ac_dir=.
6111    if test -f $ac_dir/${ac_tool_prefix}file; then
6112      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6113      if test -n "$file_magic_test_file"; then
6114	case $deplibs_check_method in
6115	"file_magic "*)
6116	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6117	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6118	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6119	    $EGREP "$file_magic_regex" > /dev/null; then
6120	    :
6121	  else
6122	    cat <<EOF 1>&2
6123
6124*** Warning: the command libtool uses to detect shared libraries,
6125*** $file_magic_cmd, produces output that libtool cannot recognize.
6126*** The result is that libtool may fail to recognize shared libraries
6127*** as such.  This will affect the creation of libtool libraries that
6128*** depend on shared libraries, but programs linked with such libtool
6129*** libraries will work regardless of this problem.  Nevertheless, you
6130*** may want to report the problem to your system manager and/or to
6131*** [email protected]
6132
6133EOF
6134	  fi ;;
6135	esac
6136      fi
6137      break
6138    fi
6139  done
6140  IFS="$lt_save_ifs"
6141  MAGIC_CMD="$lt_save_MAGIC_CMD"
6142  ;;
6143esac
6144fi
6145
6146MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6147if test -n "$MAGIC_CMD"; then
6148  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6149echo "${ECHO_T}$MAGIC_CMD" >&6; }
6150else
6151  { echo "$as_me:$LINENO: result: no" >&5
6152echo "${ECHO_T}no" >&6; }
6153fi
6154
6155if test -z "$lt_cv_path_MAGIC_CMD"; then
6156  if test -n "$ac_tool_prefix"; then
6157    { echo "$as_me:$LINENO: checking for file" >&5
6158echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6159if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6160  echo $ECHO_N "(cached) $ECHO_C" >&6
6161else
6162  case $MAGIC_CMD in
6163[\\/*] |  ?:[\\/]*)
6164  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6165  ;;
6166*)
6167  lt_save_MAGIC_CMD="$MAGIC_CMD"
6168  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6169  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6170  for ac_dir in $ac_dummy; do
6171    IFS="$lt_save_ifs"
6172    test -z "$ac_dir" && ac_dir=.
6173    if test -f $ac_dir/file; then
6174      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6175      if test -n "$file_magic_test_file"; then
6176	case $deplibs_check_method in
6177	"file_magic "*)
6178	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6179	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6180	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6181	    $EGREP "$file_magic_regex" > /dev/null; then
6182	    :
6183	  else
6184	    cat <<EOF 1>&2
6185
6186*** Warning: the command libtool uses to detect shared libraries,
6187*** $file_magic_cmd, produces output that libtool cannot recognize.
6188*** The result is that libtool may fail to recognize shared libraries
6189*** as such.  This will affect the creation of libtool libraries that
6190*** depend on shared libraries, but programs linked with such libtool
6191*** libraries will work regardless of this problem.  Nevertheless, you
6192*** may want to report the problem to your system manager and/or to
6193*** [email protected]
6194
6195EOF
6196	  fi ;;
6197	esac
6198      fi
6199      break
6200    fi
6201  done
6202  IFS="$lt_save_ifs"
6203  MAGIC_CMD="$lt_save_MAGIC_CMD"
6204  ;;
6205esac
6206fi
6207
6208MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6209if test -n "$MAGIC_CMD"; then
6210  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6211echo "${ECHO_T}$MAGIC_CMD" >&6; }
6212else
6213  { echo "$as_me:$LINENO: result: no" >&5
6214echo "${ECHO_T}no" >&6; }
6215fi
6216
6217  else
6218    MAGIC_CMD=:
6219  fi
6220fi
6221
6222  fi
6223  ;;
6224esac
6225
6226enable_dlopen=no
6227enable_win32_dll=no
6228
6229# Check whether --enable-libtool-lock was given.
6230if test "${enable_libtool_lock+set}" = set; then
6231  enableval=$enable_libtool_lock;
6232fi
6233
6234test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6235
6236
6237# Check whether --with-pic was given.
6238if test "${with_pic+set}" = set; then
6239  withval=$with_pic; pic_mode="$withval"
6240else
6241  pic_mode=default
6242fi
6243
6244test -z "$pic_mode" && pic_mode=default
6245
6246# Check if we have a version mismatch between libtool.m4 and ltmain.sh.
6247#
6248# Note:  This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
6249#        We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
6250#        calls AC_LIBTOOL_CONFIG and creates libtool.
6251#
6252{ echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
6253echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6; }
6254if test "x$ltmain" = "x" ; then
6255  { echo "$as_me:$LINENO: result: no" >&5
6256echo "${ECHO_T}no" >&6; }
6257  { { echo "$as_me:$LINENO: error:
6258
6259*** [Gentoo] sanity check failed! ***
6260*** \$ltmain is not defined, please check the patch for consistency! ***
6261" >&5
6262echo "$as_me: error:
6263
6264*** [Gentoo] sanity check failed! ***
6265*** \$ltmain is not defined, please check the patch for consistency! ***
6266" >&2;}
6267   { (exit 1); exit 1; }; }
6268fi
6269gentoo_lt_version="1.5.22"
6270gentoo_ltmain_version=`sed -n '/^[ 	]*VERSION=/{s/^[ 	]*VERSION=//;p;q;}' "$ltmain"`
6271if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
6272  { echo "$as_me:$LINENO: result: no" >&5
6273echo "${ECHO_T}no" >&6; }
6274  { { echo "$as_me:$LINENO: error:
6275
6276*** [Gentoo] sanity check failed! ***
6277*** libtool.m4 and ltmain.sh have a version mismatch! ***
6278*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
6279
6280Please run:
6281
6282  libtoolize --copy --force
6283
6284if appropriate, please contact the maintainer of this
6285package (or your distribution) for help.
6286" >&5
6287echo "$as_me: error:
6288
6289*** [Gentoo] sanity check failed! ***
6290*** libtool.m4 and ltmain.sh have a version mismatch! ***
6291*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
6292
6293Please run:
6294
6295  libtoolize --copy --force
6296
6297if appropriate, please contact the maintainer of this
6298package (or your distribution) for help.
6299" >&2;}
6300   { (exit 1); exit 1; }; }
6301else
6302  { echo "$as_me:$LINENO: result: yes" >&5
6303echo "${ECHO_T}yes" >&6; }
6304fi
6305
6306
6307# Use C for the default configuration in the libtool script
6308tagname=
6309lt_save_CC="$CC"
6310ac_ext=c
6311ac_cpp='$CPP $CPPFLAGS'
6312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6314ac_compiler_gnu=$ac_cv_c_compiler_gnu
6315
6316
6317# Source file extension for C test sources.
6318ac_ext=c
6319
6320# Object file extension for compiled C test sources.
6321objext=o
6322objext=$objext
6323
6324# Code to be used in simple compile tests
6325lt_simple_compile_test_code="int some_variable = 0;\n"
6326
6327# Code to be used in simple link tests
6328lt_simple_link_test_code='int main(){return(0);}\n'
6329
6330
6331# If no C compiler was specified, use CC.
6332LTCC=${LTCC-"$CC"}
6333
6334# If no C compiler flags were specified, use CFLAGS.
6335LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6336
6337# Allow CC to be a program name with arguments.
6338compiler=$CC
6339
6340
6341# save warnings/boilerplate of simple test code
6342ac_outfile=conftest.$ac_objext
6343printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6344eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6345_lt_compiler_boilerplate=`cat conftest.err`
6346$rm conftest*
6347
6348ac_outfile=conftest.$ac_objext
6349printf "$lt_simple_link_test_code" >conftest.$ac_ext
6350eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6351_lt_linker_boilerplate=`cat conftest.err`
6352$rm conftest*
6353
6354
6355
6356lt_prog_compiler_no_builtin_flag=
6357
6358if test "$GCC" = yes; then
6359  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6360
6361
6362{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6363echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6364if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6365  echo $ECHO_N "(cached) $ECHO_C" >&6
6366else
6367  lt_cv_prog_compiler_rtti_exceptions=no
6368  ac_outfile=conftest.$ac_objext
6369   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6370   lt_compiler_flag="-fno-rtti -fno-exceptions"
6371   # Insert the option either (1) after the last *FLAGS variable, or
6372   # (2) before a word containing "conftest.", or (3) at the end.
6373   # Note that $ac_compile itself does not contain backslashes and begins
6374   # with a dollar sign (not a hyphen), so the echo should work correctly.
6375   # The option is referenced via a variable to avoid confusing sed.
6376   lt_compile=`echo "$ac_compile" | $SED \
6377   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6378   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6379   -e 's:$: $lt_compiler_flag:'`
6380   (eval echo "\"\$as_me:6380: $lt_compile\"" >&5)
6381   (eval "$lt_compile" 2>conftest.err)
6382   ac_status=$?
6383   cat conftest.err >&5
6384   echo "$as_me:6384: \$? = $ac_status" >&5
6385   if (exit $ac_status) && test -s "$ac_outfile"; then
6386     # The compiler can only warn and ignore the option if not recognized
6387     # So say no if there are warnings other than the usual output.
6388     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6389     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6390     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6391       lt_cv_prog_compiler_rtti_exceptions=yes
6392     fi
6393   fi
6394   $rm conftest*
6395
6396fi
6397{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6398echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6399
6400if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6401    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6402else
6403    :
6404fi
6405
6406fi
6407
6408lt_prog_compiler_wl=
6409lt_prog_compiler_pic=
6410lt_prog_compiler_static=
6411
6412{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6413echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6414
6415  if test "$GCC" = yes; then
6416    lt_prog_compiler_wl='-Wl,'
6417    lt_prog_compiler_static='-static'
6418
6419    case $host_os in
6420      aix*)
6421      # All AIX code is PIC.
6422      if test "$host_cpu" = ia64; then
6423	# AIX 5 now supports IA64 processor
6424	lt_prog_compiler_static='-Bstatic'
6425      fi
6426      ;;
6427
6428    amigaos*)
6429      # FIXME: we need at least 68020 code to build shared libraries, but
6430      # adding the `-m68020' flag to GCC prevents building anything better,
6431      # like `-m68040'.
6432      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6433      ;;
6434
6435    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6436      # PIC is the default for these OSes.
6437      ;;
6438
6439    mingw* | pw32* | os2*)
6440      # This hack is so that the source file can tell whether it is being
6441      # built for inclusion in a dll (and should export symbols for example).
6442      lt_prog_compiler_pic='-DDLL_EXPORT'
6443      ;;
6444
6445    darwin* | rhapsody*)
6446      # PIC is the default on this platform
6447      # Common symbols not allowed in MH_DYLIB files
6448      lt_prog_compiler_pic='-fno-common'
6449      ;;
6450
6451    interix3*)
6452      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6453      # Instead, we relocate shared libraries at runtime.
6454      ;;
6455
6456    msdosdjgpp*)
6457      # Just because we use GCC doesn't mean we suddenly get shared libraries
6458      # on systems that don't support them.
6459      lt_prog_compiler_can_build_shared=no
6460      enable_shared=no
6461      ;;
6462
6463    sysv4*MP*)
6464      if test -d /usr/nec; then
6465	lt_prog_compiler_pic=-Kconform_pic
6466      fi
6467      ;;
6468
6469    hpux*)
6470      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6471      # not for PA HP-UX.
6472      case $host_cpu in
6473      hppa*64*|ia64*)
6474	# +Z the default
6475	;;
6476      *)
6477	lt_prog_compiler_pic='-fPIC'
6478	;;
6479      esac
6480      ;;
6481
6482    *)
6483      lt_prog_compiler_pic='-fPIC'
6484      ;;
6485    esac
6486  else
6487    # PORTME Check for flag to pass linker flags through the system compiler.
6488    case $host_os in
6489    aix*)
6490      lt_prog_compiler_wl='-Wl,'
6491      if test "$host_cpu" = ia64; then
6492	# AIX 5 now supports IA64 processor
6493	lt_prog_compiler_static='-Bstatic'
6494      else
6495	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6496      fi
6497      ;;
6498      darwin*)
6499        # PIC is the default on this platform
6500        # Common symbols not allowed in MH_DYLIB files
6501       case $cc_basename in
6502         xlc*)
6503         lt_prog_compiler_pic='-qnocommon'
6504         lt_prog_compiler_wl='-Wl,'
6505         ;;
6506       esac
6507       ;;
6508
6509    mingw* | pw32* | os2*)
6510      # This hack is so that the source file can tell whether it is being
6511      # built for inclusion in a dll (and should export symbols for example).
6512      lt_prog_compiler_pic='-DDLL_EXPORT'
6513      ;;
6514
6515    hpux9* | hpux10* | hpux11*)
6516      lt_prog_compiler_wl='-Wl,'
6517      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6518      # not for PA HP-UX.
6519      case $host_cpu in
6520      hppa*64*|ia64*)
6521	# +Z the default
6522	;;
6523      *)
6524	lt_prog_compiler_pic='+Z'
6525	;;
6526      esac
6527      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6528      lt_prog_compiler_static='${wl}-a ${wl}archive'
6529      ;;
6530
6531    irix5* | irix6* | nonstopux*)
6532      lt_prog_compiler_wl='-Wl,'
6533      # PIC (with -KPIC) is the default.
6534      lt_prog_compiler_static='-non_shared'
6535      ;;
6536
6537    newsos6)
6538      lt_prog_compiler_pic='-KPIC'
6539      lt_prog_compiler_static='-Bstatic'
6540      ;;
6541
6542    linux*)
6543      case $cc_basename in
6544      icc* | ecc*)
6545	lt_prog_compiler_wl='-Wl,'
6546	lt_prog_compiler_pic='-KPIC'
6547	lt_prog_compiler_static='-static'
6548        ;;
6549      pgcc* | pgf77* | pgf90* | pgf95*)
6550        # Portland Group compilers (*not* the Pentium gcc compiler,
6551	# which looks to be a dead project)
6552	lt_prog_compiler_wl='-Wl,'
6553	lt_prog_compiler_pic='-fpic'
6554	lt_prog_compiler_static='-Bstatic'
6555        ;;
6556      ccc*)
6557        lt_prog_compiler_wl='-Wl,'
6558        # All Alpha code is PIC.
6559        lt_prog_compiler_static='-non_shared'
6560        ;;
6561      esac
6562      ;;
6563
6564    osf3* | osf4* | osf5*)
6565      lt_prog_compiler_wl='-Wl,'
6566      # All OSF/1 code is PIC.
6567      lt_prog_compiler_static='-non_shared'
6568      ;;
6569
6570    solaris*)
6571      lt_prog_compiler_pic='-KPIC'
6572      lt_prog_compiler_static='-Bstatic'
6573      case $cc_basename in
6574      f77* | f90* | f95*)
6575	lt_prog_compiler_wl='-Qoption ld ';;
6576      *)
6577	lt_prog_compiler_wl='-Wl,';;
6578      esac
6579      ;;
6580
6581    sunos4*)
6582      lt_prog_compiler_wl='-Qoption ld '
6583      lt_prog_compiler_pic='-PIC'
6584      lt_prog_compiler_static='-Bstatic'
6585      ;;
6586
6587    sysv4 | sysv4.2uw2* | sysv4.3*)
6588      lt_prog_compiler_wl='-Wl,'
6589      lt_prog_compiler_pic='-KPIC'
6590      lt_prog_compiler_static='-Bstatic'
6591      ;;
6592
6593    sysv4*MP*)
6594      if test -d /usr/nec ;then
6595	lt_prog_compiler_pic='-Kconform_pic'
6596	lt_prog_compiler_static='-Bstatic'
6597      fi
6598      ;;
6599
6600    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6601      lt_prog_compiler_wl='-Wl,'
6602      lt_prog_compiler_pic='-KPIC'
6603      lt_prog_compiler_static='-Bstatic'
6604      ;;
6605
6606    unicos*)
6607      lt_prog_compiler_wl='-Wl,'
6608      lt_prog_compiler_can_build_shared=no
6609      ;;
6610
6611    uts4*)
6612      lt_prog_compiler_pic='-pic'
6613      lt_prog_compiler_static='-Bstatic'
6614      ;;
6615
6616    *)
6617      lt_prog_compiler_can_build_shared=no
6618      ;;
6619    esac
6620  fi
6621
6622{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6623echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
6624
6625#
6626# Check to make sure the PIC flag actually works.
6627#
6628if test -n "$lt_prog_compiler_pic"; then
6629
6630{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6631echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
6632if test "${lt_prog_compiler_pic_works+set}" = set; then
6633  echo $ECHO_N "(cached) $ECHO_C" >&6
6634else
6635  lt_prog_compiler_pic_works=no
6636  ac_outfile=conftest.$ac_objext
6637   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6638   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6639   # Insert the option either (1) after the last *FLAGS variable, or
6640   # (2) before a word containing "conftest.", or (3) at the end.
6641   # Note that $ac_compile itself does not contain backslashes and begins
6642   # with a dollar sign (not a hyphen), so the echo should work correctly.
6643   # The option is referenced via a variable to avoid confusing sed.
6644   lt_compile=`echo "$ac_compile" | $SED \
6645   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6646   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6647   -e 's:$: $lt_compiler_flag:'`
6648   (eval echo "\"\$as_me:6648: $lt_compile\"" >&5)
6649   (eval "$lt_compile" 2>conftest.err)
6650   ac_status=$?
6651   cat conftest.err >&5
6652   echo "$as_me:6652: \$? = $ac_status" >&5
6653   if (exit $ac_status) && test -s "$ac_outfile"; then
6654     # The compiler can only warn and ignore the option if not recognized
6655     # So say no if there are warnings other than the usual output.
6656     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6657     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6658     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6659       lt_prog_compiler_pic_works=yes
6660     fi
6661   fi
6662   $rm conftest*
6663
6664fi
6665{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6666echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
6667
6668if test x"$lt_prog_compiler_pic_works" = xyes; then
6669    case $lt_prog_compiler_pic in
6670     "" | " "*) ;;
6671     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6672     esac
6673else
6674    lt_prog_compiler_pic=
6675     lt_prog_compiler_can_build_shared=no
6676fi
6677
6678fi
6679case $host_os in
6680  # For platforms which do not support PIC, -DPIC is meaningless:
6681  *djgpp*)
6682    lt_prog_compiler_pic=
6683    ;;
6684  *)
6685    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6686    ;;
6687esac
6688
6689#
6690# Check to make sure the static flag actually works.
6691#
6692wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6693{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6694echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
6695if test "${lt_prog_compiler_static_works+set}" = set; then
6696  echo $ECHO_N "(cached) $ECHO_C" >&6
6697else
6698  lt_prog_compiler_static_works=no
6699   save_LDFLAGS="$LDFLAGS"
6700   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6701   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6702   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6703     # The linker can only warn and ignore the option if not recognized
6704     # So say no if there are warnings
6705     if test -s conftest.err; then
6706       # Append any errors to the config.log.
6707       cat conftest.err 1>&5
6708       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6709       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6710       if diff conftest.exp conftest.er2 >/dev/null; then
6711         lt_prog_compiler_static_works=yes
6712       fi
6713     else
6714       lt_prog_compiler_static_works=yes
6715     fi
6716   fi
6717   $rm conftest*
6718   LDFLAGS="$save_LDFLAGS"
6719
6720fi
6721{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6722echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
6723
6724if test x"$lt_prog_compiler_static_works" = xyes; then
6725    :
6726else
6727    lt_prog_compiler_static=
6728fi
6729
6730
6731{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6732echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
6733if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6734  echo $ECHO_N "(cached) $ECHO_C" >&6
6735else
6736  lt_cv_prog_compiler_c_o=no
6737   $rm -r conftest 2>/dev/null
6738   mkdir conftest
6739   cd conftest
6740   mkdir out
6741   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6742
6743   lt_compiler_flag="-o out/conftest2.$ac_objext"
6744   # Insert the option either (1) after the last *FLAGS variable, or
6745   # (2) before a word containing "conftest.", or (3) at the end.
6746   # Note that $ac_compile itself does not contain backslashes and begins
6747   # with a dollar sign (not a hyphen), so the echo should work correctly.
6748   lt_compile=`echo "$ac_compile" | $SED \
6749   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6750   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6751   -e 's:$: $lt_compiler_flag:'`
6752   (eval echo "\"\$as_me:6752: $lt_compile\"" >&5)
6753   (eval "$lt_compile" 2>out/conftest.err)
6754   ac_status=$?
6755   cat out/conftest.err >&5
6756   echo "$as_me:6756: \$? = $ac_status" >&5
6757   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6758   then
6759     # The compiler can only warn and ignore the option if not recognized
6760     # So say no if there are warnings
6761     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6762     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6763     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6764       lt_cv_prog_compiler_c_o=yes
6765     fi
6766   fi
6767   chmod u+w . 2>&5
6768   $rm conftest*
6769   # SGI C++ compiler will create directory out/ii_files/ for
6770   # template instantiation
6771   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6772   $rm out/* && rmdir out
6773   cd ..
6774   rmdir conftest
6775   $rm conftest*
6776
6777fi
6778{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6779echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
6780
6781
6782hard_links="nottested"
6783if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6784  # do not overwrite the value of need_locks provided by the user
6785  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6786echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
6787  hard_links=yes
6788  $rm conftest*
6789  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6790  touch conftest.a
6791  ln conftest.a conftest.b 2>&5 || hard_links=no
6792  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6793  { echo "$as_me:$LINENO: result: $hard_links" >&5
6794echo "${ECHO_T}$hard_links" >&6; }
6795  if test "$hard_links" = no; then
6796    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6797echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6798    need_locks=warn
6799  fi
6800else
6801  need_locks=no
6802fi
6803
6804{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6805echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
6806
6807  runpath_var=
6808  allow_undefined_flag=
6809  enable_shared_with_static_runtimes=no
6810  archive_cmds=
6811  archive_expsym_cmds=
6812  old_archive_From_new_cmds=
6813  old_archive_from_expsyms_cmds=
6814  export_dynamic_flag_spec=
6815  whole_archive_flag_spec=
6816  thread_safe_flag_spec=
6817  hardcode_libdir_flag_spec=
6818  hardcode_libdir_flag_spec_ld=
6819  hardcode_libdir_separator=
6820  hardcode_direct=no
6821  hardcode_minus_L=no
6822  hardcode_shlibpath_var=unsupported
6823  link_all_deplibs=unknown
6824  hardcode_automatic=no
6825  module_cmds=
6826  module_expsym_cmds=
6827  always_export_symbols=no
6828  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6829  # include_expsyms should be a list of space-separated symbols to be *always*
6830  # included in the symbol list
6831  include_expsyms=
6832  # exclude_expsyms can be an extended regexp of symbols to exclude
6833  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6834  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6835  # as well as any symbol that contains `d'.
6836  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6837  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6838  # platforms (ab)use it in PIC code, but their linkers get confused if
6839  # the symbol is explicitly referenced.  Since portable code cannot
6840  # rely on this symbol name, it's probably fine to never include it in
6841  # preloaded symbol tables.
6842  extract_expsyms_cmds=
6843  # Just being paranoid about ensuring that cc_basename is set.
6844  for cc_temp in $compiler""; do
6845  case $cc_temp in
6846    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6847    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6848    \-*) ;;
6849    *) break;;
6850  esac
6851done
6852cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6853
6854  case $host_os in
6855  cygwin* | mingw* | pw32*)
6856    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6857    # When not using gcc, we currently assume that we are using
6858    # Microsoft Visual C++.
6859    if test "$GCC" != yes; then
6860      with_gnu_ld=no
6861    fi
6862    ;;
6863  interix*)
6864    # we just hope/assume this is gcc and not c89 (= MSVC++)
6865    with_gnu_ld=yes
6866    ;;
6867  openbsd*)
6868    with_gnu_ld=no
6869    ;;
6870  esac
6871
6872  ld_shlibs=yes
6873  if test "$with_gnu_ld" = yes; then
6874    # If archive_cmds runs LD, not CC, wlarc should be empty
6875    wlarc='${wl}'
6876
6877    # Set some defaults for GNU ld with shared library support. These
6878    # are reset later if shared libraries are not supported. Putting them
6879    # here allows them to be overridden if necessary.
6880    runpath_var=LD_RUN_PATH
6881    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6882    export_dynamic_flag_spec='${wl}--export-dynamic'
6883    # ancient GNU ld didn't support --whole-archive et. al.
6884    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6885	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6886      else
6887  	whole_archive_flag_spec=
6888    fi
6889    supports_anon_versioning=no
6890    case `$LD -v 2>/dev/null` in
6891      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6892      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6893      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6894      *\ 2.11.*) ;; # other 2.11 versions
6895      *) supports_anon_versioning=yes ;;
6896    esac
6897
6898    # See if GNU ld supports shared libraries.
6899    case $host_os in
6900    aix3* | aix4* | aix5*)
6901      # On AIX/PPC, the GNU linker is very broken
6902      if test "$host_cpu" != ia64; then
6903	ld_shlibs=no
6904	cat <<EOF 1>&2
6905
6906*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6907*** to be unable to reliably create shared libraries on AIX.
6908*** Therefore, libtool is disabling shared libraries support.  If you
6909*** really care for shared libraries, you may want to modify your PATH
6910*** so that a non-GNU linker is found, and then restart.
6911
6912EOF
6913      fi
6914      ;;
6915
6916    amigaos*)
6917      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)'
6918      hardcode_libdir_flag_spec='-L$libdir'
6919      hardcode_minus_L=yes
6920
6921      # Samuel A. Falvo II <[email protected]> reports
6922      # that the semantics of dynamic libraries on AmigaOS, at least up
6923      # to version 4, is to share data among multiple programs linked
6924      # with the same dynamic library.  Since this doesn't match the
6925      # behavior of shared libraries on other platforms, we can't use
6926      # them.
6927      ld_shlibs=no
6928      ;;
6929
6930    beos*)
6931      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6932	allow_undefined_flag=unsupported
6933	# Joseph Beckenbach <[email protected]> says some releases of gcc
6934	# support --undefined.  This deserves some investigation.  FIXME
6935	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6936      else
6937	ld_shlibs=no
6938      fi
6939      ;;
6940
6941    cygwin* | mingw* | pw32*)
6942      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6943      # as there is no search path for DLLs.
6944      hardcode_libdir_flag_spec='-L$libdir'
6945      allow_undefined_flag=unsupported
6946      always_export_symbols=no
6947      enable_shared_with_static_runtimes=yes
6948      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6949
6950      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6951        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6952	# If the export-symbols file already is a .def file (1st line
6953	# is EXPORTS), use it as is; otherwise, prepend...
6954	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6955	  cp $export_symbols $output_objdir/$soname.def;
6956	else
6957	  echo EXPORTS > $output_objdir/$soname.def;
6958	  cat $export_symbols >> $output_objdir/$soname.def;
6959	fi~
6960	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6961      else
6962	ld_shlibs=no
6963      fi
6964      ;;
6965
6966    interix3*)
6967      hardcode_direct=no
6968      hardcode_shlibpath_var=no
6969      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6970      export_dynamic_flag_spec='${wl}-E'
6971      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6972      # Instead, shared libraries are loaded at an image base (0x10000000 by
6973      # default) and relocated if they conflict, which is a slow very memory
6974      # consuming and fragmenting process.  To avoid this, we pick a random,
6975      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6976      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6977      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6978      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'
6979      ;;
6980
6981    linux*)
6982      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6983	tmp_addflag=
6984	case $cc_basename,$host_cpu in
6985	pgcc*)				# Portland Group C compiler
6986	  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'
6987	  tmp_addflag=' $pic_flag'
6988	  ;;
6989	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
6990	  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'
6991	  tmp_addflag=' $pic_flag -Mnomain' ;;
6992	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
6993	  tmp_addflag=' -i_dynamic' ;;
6994	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
6995	  tmp_addflag=' -i_dynamic -nofor_main' ;;
6996	ifc* | ifort*)			# Intel Fortran compiler
6997	  tmp_addflag=' -nofor_main' ;;
6998	esac
6999	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7000
7001	if test $supports_anon_versioning = yes; then
7002	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7003  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7004  $echo "local: *; };" >> $output_objdir/$libname.ver~
7005	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7006	fi
7007      else
7008	ld_shlibs=no
7009      fi
7010      ;;
7011
7012    netbsd*)
7013      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7014	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7015	wlarc=
7016      else
7017	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7018	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7019      fi
7020      ;;
7021
7022    solaris*)
7023      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7024	ld_shlibs=no
7025	cat <<EOF 1>&2
7026
7027*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7028*** create shared libraries on Solaris systems.  Therefore, libtool
7029*** is disabling shared libraries support.  We urge you to upgrade GNU
7030*** binutils to release 2.9.1 or newer.  Another option is to modify
7031*** your PATH or compiler configuration so that the native linker is
7032*** used, and then restart.
7033
7034EOF
7035      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7036	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7037	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7038      else
7039	ld_shlibs=no
7040      fi
7041      ;;
7042
7043    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7044      case `$LD -v 2>&1` in
7045        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7046	ld_shlibs=no
7047	cat <<_LT_EOF 1>&2
7048
7049*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7050*** reliably create shared libraries on SCO systems.  Therefore, libtool
7051*** is disabling shared libraries support.  We urge you to upgrade GNU
7052*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7053*** your PATH or compiler configuration so that the native linker is
7054*** used, and then restart.
7055
7056_LT_EOF
7057	;;
7058	*)
7059	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7060	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7061	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7062	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7063	  else
7064	    ld_shlibs=no
7065	  fi
7066	;;
7067      esac
7068      ;;
7069
7070    sunos4*)
7071      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7072      wlarc=
7073      hardcode_direct=yes
7074      hardcode_shlibpath_var=no
7075      ;;
7076
7077    *)
7078      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7079	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7080	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7081      else
7082	ld_shlibs=no
7083      fi
7084      ;;
7085    esac
7086
7087    if test "$ld_shlibs" = no; then
7088      runpath_var=
7089      hardcode_libdir_flag_spec=
7090      export_dynamic_flag_spec=
7091      whole_archive_flag_spec=
7092    fi
7093  else
7094    # PORTME fill in a description of your system's linker (not GNU ld)
7095    case $host_os in
7096    aix3*)
7097      allow_undefined_flag=unsupported
7098      always_export_symbols=yes
7099      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'
7100      # Note: this linker hardcodes the directories in LIBPATH if there
7101      # are no directories specified by -L.
7102      hardcode_minus_L=yes
7103      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7104	# Neither direct hardcoding nor static linking is supported with a
7105	# broken collect2.
7106	hardcode_direct=unsupported
7107      fi
7108      ;;
7109
7110    aix4* | aix5*)
7111      if test "$host_cpu" = ia64; then
7112	# On IA64, the linker does run time linking by default, so we don't
7113	# have to do anything special.
7114	aix_use_runtimelinking=no
7115	exp_sym_flag='-Bexport'
7116	no_entry_flag=""
7117      else
7118	# If we're using GNU nm, then we don't want the "-C" option.
7119	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7120	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7121	  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'
7122	else
7123	  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'
7124	fi
7125	aix_use_runtimelinking=no
7126
7127	# Test if we are trying to use run time linking or normal
7128	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7129	# need to do runtime linking.
7130	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7131	  for ld_flag in $LDFLAGS; do
7132  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7133  	    aix_use_runtimelinking=yes
7134  	    break
7135  	  fi
7136	  done
7137	  ;;
7138	esac
7139
7140	exp_sym_flag='-bexport'
7141	no_entry_flag='-bnoentry'
7142      fi
7143
7144      # When large executables or shared objects are built, AIX ld can
7145      # have problems creating the table of contents.  If linking a library
7146      # or program results in "error TOC overflow" add -mminimal-toc to
7147      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7148      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7149
7150      archive_cmds=''
7151      hardcode_direct=yes
7152      hardcode_libdir_separator=':'
7153      link_all_deplibs=yes
7154
7155      if test "$GCC" = yes; then
7156	case $host_os in aix4.[012]|aix4.[012].*)
7157	# We only want to do this on AIX 4.2 and lower, the check
7158	# below for broken collect2 doesn't work under 4.3+
7159	  collect2name=`${CC} -print-prog-name=collect2`
7160	  if test -f "$collect2name" && \
7161  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7162	  then
7163  	  # We have reworked collect2
7164  	  hardcode_direct=yes
7165	  else
7166  	  # We have old collect2
7167  	  hardcode_direct=unsupported
7168  	  # It fails to find uninstalled libraries when the uninstalled
7169  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7170  	  # to unsupported forces relinking
7171  	  hardcode_minus_L=yes
7172  	  hardcode_libdir_flag_spec='-L$libdir'
7173  	  hardcode_libdir_separator=
7174	  fi
7175	  ;;
7176	esac
7177	shared_flag='-shared'
7178	if test "$aix_use_runtimelinking" = yes; then
7179	  shared_flag="$shared_flag "'${wl}-G'
7180	fi
7181      else
7182	# not using gcc
7183	if test "$host_cpu" = ia64; then
7184  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7185  	# chokes on -Wl,-G. The following line is correct:
7186	  shared_flag='-G'
7187	else
7188	  if test "$aix_use_runtimelinking" = yes; then
7189	    shared_flag='${wl}-G'
7190	  else
7191	    shared_flag='${wl}-bM:SRE'
7192	  fi
7193	fi
7194      fi
7195
7196      # It seems that -bexpall does not export symbols beginning with
7197      # underscore (_), so it is better to generate a list of symbols to export.
7198      always_export_symbols=yes
7199      if test "$aix_use_runtimelinking" = yes; then
7200	# Warning - without using the other runtime loading flags (-brtl),
7201	# -berok will link without error, but may produce a broken library.
7202	allow_undefined_flag='-berok'
7203       # Determine the default libpath from the value encoded in an empty executable.
7204       cat >conftest.$ac_ext <<_ACEOF
7205/* confdefs.h.  */
7206_ACEOF
7207cat confdefs.h >>conftest.$ac_ext
7208cat >>conftest.$ac_ext <<_ACEOF
7209/* end confdefs.h.  */
7210
7211int
7212main ()
7213{
7214
7215  ;
7216  return 0;
7217}
7218_ACEOF
7219rm -f conftest.$ac_objext conftest$ac_exeext
7220if { (ac_try="$ac_link"
7221case "(($ac_try" in
7222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7223  *) ac_try_echo=$ac_try;;
7224esac
7225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7226  (eval "$ac_link") 2>conftest.er1
7227  ac_status=$?
7228  grep -v '^ *+' conftest.er1 >conftest.err
7229  rm -f conftest.er1
7230  cat conftest.err >&5
7231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232  (exit $ac_status); } && {
7233	 test -z "$ac_c_werror_flag" ||
7234	 test ! -s conftest.err
7235       } && test -s conftest$ac_exeext &&
7236       $as_test_x conftest$ac_exeext; then
7237
7238aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7239}'`
7240# Check for a 64-bit object if we didn't find anything.
7241if 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; }
7242}'`; fi
7243else
7244  echo "$as_me: failed program was:" >&5
7245sed 's/^/| /' conftest.$ac_ext >&5
7246
7247
7248fi
7249
7250rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7251      conftest$ac_exeext conftest.$ac_ext
7252if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7253
7254       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7255	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"
7256       else
7257	if test "$host_cpu" = ia64; then
7258	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7259	  allow_undefined_flag="-z nodefs"
7260	  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"
7261	else
7262	 # Determine the default libpath from the value encoded in an empty executable.
7263	 cat >conftest.$ac_ext <<_ACEOF
7264/* confdefs.h.  */
7265_ACEOF
7266cat confdefs.h >>conftest.$ac_ext
7267cat >>conftest.$ac_ext <<_ACEOF
7268/* end confdefs.h.  */
7269
7270int
7271main ()
7272{
7273
7274  ;
7275  return 0;
7276}
7277_ACEOF
7278rm -f conftest.$ac_objext conftest$ac_exeext
7279if { (ac_try="$ac_link"
7280case "(($ac_try" in
7281  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7282  *) ac_try_echo=$ac_try;;
7283esac
7284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7285  (eval "$ac_link") 2>conftest.er1
7286  ac_status=$?
7287  grep -v '^ *+' conftest.er1 >conftest.err
7288  rm -f conftest.er1
7289  cat conftest.err >&5
7290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291  (exit $ac_status); } && {
7292	 test -z "$ac_c_werror_flag" ||
7293	 test ! -s conftest.err
7294       } && test -s conftest$ac_exeext &&
7295       $as_test_x conftest$ac_exeext; then
7296
7297aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7298}'`
7299# Check for a 64-bit object if we didn't find anything.
7300if 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; }
7301}'`; fi
7302else
7303  echo "$as_me: failed program was:" >&5
7304sed 's/^/| /' conftest.$ac_ext >&5
7305
7306
7307fi
7308
7309rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7310      conftest$ac_exeext conftest.$ac_ext
7311if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7312
7313	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7314	  # Warning - without using the other run time loading flags,
7315	  # -berok will link without error, but may produce a broken library.
7316	  no_undefined_flag=' ${wl}-bernotok'
7317	  allow_undefined_flag=' ${wl}-berok'
7318	  # Exported symbols can be pulled into shared objects from archives
7319	  whole_archive_flag_spec='$convenience'
7320	  archive_cmds_need_lc=yes
7321	  # This is similar to how AIX traditionally builds its shared libraries.
7322	  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'
7323	fi
7324      fi
7325      ;;
7326
7327    amigaos*)
7328      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)'
7329      hardcode_libdir_flag_spec='-L$libdir'
7330      hardcode_minus_L=yes
7331      # see comment about different semantics on the GNU ld section
7332      ld_shlibs=no
7333      ;;
7334
7335    bsdi[45]*)
7336      export_dynamic_flag_spec=-rdynamic
7337      ;;
7338
7339    cygwin* | mingw* | pw32*)
7340      # When not using gcc, we currently assume that we are using
7341      # Microsoft Visual C++.
7342      # hardcode_libdir_flag_spec is actually meaningless, as there is
7343      # no search path for DLLs.
7344      hardcode_libdir_flag_spec=' '
7345      allow_undefined_flag=unsupported
7346      # Tell ltmain to make .lib files, not .a files.
7347      libext=lib
7348      # Tell ltmain to make .dll files, not .so files.
7349      shrext_cmds=".dll"
7350      # FIXME: Setting linknames here is a bad hack.
7351      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7352      # The linker will automatically build a .lib file if we build a DLL.
7353      old_archive_From_new_cmds='true'
7354      # FIXME: Should let the user specify the lib program.
7355      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7356      fix_srcfile_path='`cygpath -w "$srcfile"`'
7357      enable_shared_with_static_runtimes=yes
7358      ;;
7359
7360    darwin* | rhapsody*)
7361      case $host_os in
7362        rhapsody* | darwin1.[012])
7363         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7364         ;;
7365       *) # Darwin 1.3 on
7366         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7367           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7368         else
7369           case ${MACOSX_DEPLOYMENT_TARGET} in
7370             10.[012])
7371               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7372               ;;
7373             10.*)
7374               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7375               ;;
7376           esac
7377         fi
7378         ;;
7379      esac
7380      archive_cmds_need_lc=no
7381      hardcode_direct=no
7382      hardcode_automatic=yes
7383      hardcode_shlibpath_var=unsupported
7384      whole_archive_flag_spec=''
7385      link_all_deplibs=yes
7386    if test "$GCC" = yes ; then
7387    	output_verbose_link_cmd='echo'
7388        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7389      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7390      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7391      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}'
7392      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}'
7393    else
7394      case $cc_basename in
7395        xlc*)
7396         output_verbose_link_cmd='echo'
7397         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7398         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7399          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7400         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}'
7401          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}'
7402          ;;
7403       *)
7404         ld_shlibs=no
7405          ;;
7406      esac
7407    fi
7408      ;;
7409
7410    dgux*)
7411      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7412      hardcode_libdir_flag_spec='-L$libdir'
7413      hardcode_shlibpath_var=no
7414      ;;
7415
7416    freebsd1*)
7417      ld_shlibs=no
7418      ;;
7419
7420    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7421    # support.  Future versions do this automatically, but an explicit c++rt0.o
7422    # does not break anything, and helps significantly (at the cost of a little
7423    # extra space).
7424    freebsd2.2*)
7425      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7426      hardcode_libdir_flag_spec='-R$libdir'
7427      hardcode_direct=yes
7428      hardcode_shlibpath_var=no
7429      ;;
7430
7431    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7432    freebsd2*)
7433      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7434      hardcode_direct=yes
7435      hardcode_minus_L=yes
7436      hardcode_shlibpath_var=no
7437      ;;
7438
7439    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7440    freebsd* | kfreebsd*-gnu | dragonfly*)
7441      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7442      hardcode_libdir_flag_spec='-R$libdir'
7443      hardcode_direct=yes
7444      hardcode_shlibpath_var=no
7445      ;;
7446
7447    hpux9*)
7448      if test "$GCC" = yes; then
7449	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'
7450      else
7451	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'
7452      fi
7453      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7454      hardcode_libdir_separator=:
7455      hardcode_direct=yes
7456
7457      # hardcode_minus_L: Not really in the search PATH,
7458      # but as the default location of the library.
7459      hardcode_minus_L=yes
7460      export_dynamic_flag_spec='${wl}-E'
7461      ;;
7462
7463    hpux10*)
7464      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7465	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7466      else
7467	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7468      fi
7469      if test "$with_gnu_ld" = no; then
7470	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7471	hardcode_libdir_separator=:
7472
7473	hardcode_direct=yes
7474	export_dynamic_flag_spec='${wl}-E'
7475
7476	# hardcode_minus_L: Not really in the search PATH,
7477	# but as the default location of the library.
7478	hardcode_minus_L=yes
7479      fi
7480      ;;
7481
7482    hpux11*)
7483      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7484	case $host_cpu in
7485	hppa*64*)
7486	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7487	  ;;
7488	ia64*)
7489	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7490	  ;;
7491	*)
7492	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7493	  ;;
7494	esac
7495      else
7496	case $host_cpu in
7497	hppa*64*)
7498	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7499	  ;;
7500	ia64*)
7501	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7502	  ;;
7503	*)
7504	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7505	  ;;
7506	esac
7507      fi
7508      if test "$with_gnu_ld" = no; then
7509	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7510	hardcode_libdir_separator=:
7511
7512	case $host_cpu in
7513	hppa*64*|ia64*)
7514	  hardcode_libdir_flag_spec_ld='+b $libdir'
7515	  hardcode_direct=no
7516	  hardcode_shlibpath_var=no
7517	  ;;
7518	*)
7519	  hardcode_direct=yes
7520	  export_dynamic_flag_spec='${wl}-E'
7521
7522	  # hardcode_minus_L: Not really in the search PATH,
7523	  # but as the default location of the library.
7524	  hardcode_minus_L=yes
7525	  ;;
7526	esac
7527      fi
7528      ;;
7529
7530    irix5* | irix6* | nonstopux*)
7531      if test "$GCC" = yes; then
7532	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'
7533      else
7534	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'
7535	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7536      fi
7537      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7538      hardcode_libdir_separator=:
7539      link_all_deplibs=yes
7540      ;;
7541
7542    netbsd*)
7543      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7544	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7545      else
7546	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7547      fi
7548      hardcode_libdir_flag_spec='-R$libdir'
7549      hardcode_direct=yes
7550      hardcode_shlibpath_var=no
7551      ;;
7552
7553    newsos6)
7554      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7555      hardcode_direct=yes
7556      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7557      hardcode_libdir_separator=:
7558      hardcode_shlibpath_var=no
7559      ;;
7560
7561    openbsd*)
7562      hardcode_direct=yes
7563      hardcode_shlibpath_var=no
7564      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7565	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7566	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7567	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7568	export_dynamic_flag_spec='${wl}-E'
7569      else
7570       case $host_os in
7571	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7572	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7573	   hardcode_libdir_flag_spec='-R$libdir'
7574	   ;;
7575	 *)
7576	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7577	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7578	   ;;
7579       esac
7580      fi
7581      ;;
7582
7583    os2*)
7584      hardcode_libdir_flag_spec='-L$libdir'
7585      hardcode_minus_L=yes
7586      allow_undefined_flag=unsupported
7587      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'
7588      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7589      ;;
7590
7591    osf3*)
7592      if test "$GCC" = yes; then
7593	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7594	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'
7595      else
7596	allow_undefined_flag=' -expect_unresolved \*'
7597	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'
7598      fi
7599      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7600      hardcode_libdir_separator=:
7601      ;;
7602
7603    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7604      if test "$GCC" = yes; then
7605	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7606	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'
7607	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7608      else
7609	allow_undefined_flag=' -expect_unresolved \*'
7610	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'
7611	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7612	$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'
7613
7614	# Both c and cxx compiler support -rpath directly
7615	hardcode_libdir_flag_spec='-rpath $libdir'
7616      fi
7617      hardcode_libdir_separator=:
7618      ;;
7619
7620    solaris*)
7621      no_undefined_flag=' -z text'
7622      if test "$GCC" = yes; then
7623	wlarc='${wl}'
7624	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7625	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7626	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7627      else
7628	wlarc=''
7629	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7630	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7631  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7632      fi
7633      hardcode_libdir_flag_spec='-R$libdir'
7634      hardcode_shlibpath_var=no
7635      case $host_os in
7636      solaris2.[0-5] | solaris2.[0-5].*) ;;
7637      *)
7638 	# The compiler driver will combine linker options so we
7639 	# cannot just pass the convience library names through
7640 	# without $wl, iff we do not link with $LD.
7641 	# Luckily, gcc supports the same syntax we need for Sun Studio.
7642 	# Supported since Solaris 2.6 (maybe 2.5.1?)
7643 	case $wlarc in
7644 	'')
7645 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7646 	*)
7647 	  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' ;;
7648 	esac ;;
7649      esac
7650      link_all_deplibs=yes
7651      ;;
7652
7653    sunos4*)
7654      if test "x$host_vendor" = xsequent; then
7655	# Use $CC to link under sequent, because it throws in some extra .o
7656	# files that make .init and .fini sections work.
7657	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7658      else
7659	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7660      fi
7661      hardcode_libdir_flag_spec='-L$libdir'
7662      hardcode_direct=yes
7663      hardcode_minus_L=yes
7664      hardcode_shlibpath_var=no
7665      ;;
7666
7667    sysv4)
7668      case $host_vendor in
7669	sni)
7670	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7671	  hardcode_direct=yes # is this really true???
7672	;;
7673	siemens)
7674	  ## LD is ld it makes a PLAMLIB
7675	  ## CC just makes a GrossModule.
7676	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7677	  reload_cmds='$CC -r -o $output$reload_objs'
7678	  hardcode_direct=no
7679        ;;
7680	motorola)
7681	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7682	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7683	;;
7684      esac
7685      runpath_var='LD_RUN_PATH'
7686      hardcode_shlibpath_var=no
7687      ;;
7688
7689    sysv4.3*)
7690      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7691      hardcode_shlibpath_var=no
7692      export_dynamic_flag_spec='-Bexport'
7693      ;;
7694
7695    sysv4*MP*)
7696      if test -d /usr/nec; then
7697	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7698	hardcode_shlibpath_var=no
7699	runpath_var=LD_RUN_PATH
7700	hardcode_runpath_var=yes
7701	ld_shlibs=yes
7702      fi
7703      ;;
7704
7705    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7706      no_undefined_flag='${wl}-z,text'
7707      archive_cmds_need_lc=no
7708      hardcode_shlibpath_var=no
7709      runpath_var='LD_RUN_PATH'
7710
7711      if test "$GCC" = yes; then
7712	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7713	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7714      else
7715	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7716	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7717      fi
7718      ;;
7719
7720    sysv5* | sco3.2v5* | sco5v6*)
7721      # Note: We can NOT use -z defs as we might desire, because we do not
7722      # link with -lc, and that would cause any symbols used from libc to
7723      # always be unresolved, which means just about no library would
7724      # ever link correctly.  If we're not using GNU ld we use -z text
7725      # though, which does catch some bad symbols but isn't as heavy-handed
7726      # as -z defs.
7727      no_undefined_flag='${wl}-z,text'
7728      allow_undefined_flag='${wl}-z,nodefs'
7729      archive_cmds_need_lc=no
7730      hardcode_shlibpath_var=no
7731      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7732      hardcode_libdir_separator=':'
7733      link_all_deplibs=yes
7734      export_dynamic_flag_spec='${wl}-Bexport'
7735      runpath_var='LD_RUN_PATH'
7736
7737      if test "$GCC" = yes; then
7738	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7739	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7740      else
7741	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7742	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7743      fi
7744      ;;
7745
7746    uts4*)
7747      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7748      hardcode_libdir_flag_spec='-L$libdir'
7749      hardcode_shlibpath_var=no
7750      ;;
7751
7752    *)
7753      ld_shlibs=no
7754      ;;
7755    esac
7756  fi
7757
7758{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7759echo "${ECHO_T}$ld_shlibs" >&6; }
7760test "$ld_shlibs" = no && can_build_shared=no
7761
7762#
7763# Do we need to explicitly link libc?
7764#
7765case "x$archive_cmds_need_lc" in
7766x|xyes)
7767  # Assume -lc should be added
7768  archive_cmds_need_lc=yes
7769
7770  if test "$enable_shared" = yes && test "$GCC" = yes; then
7771    case $archive_cmds in
7772    *'~'*)
7773      # FIXME: we may have to deal with multi-command sequences.
7774      ;;
7775    '$CC '*)
7776      # Test whether the compiler implicitly links with -lc since on some
7777      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7778      # to ld, don't add -lc before -lgcc.
7779      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7780echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7781      $rm conftest*
7782      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7783
7784      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7785  (eval $ac_compile) 2>&5
7786  ac_status=$?
7787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788  (exit $ac_status); } 2>conftest.err; then
7789        soname=conftest
7790        lib=conftest
7791        libobjs=conftest.$ac_objext
7792        deplibs=
7793        wl=$lt_prog_compiler_wl
7794	pic_flag=$lt_prog_compiler_pic
7795        compiler_flags=-v
7796        linker_flags=-v
7797        verstring=
7798        output_objdir=.
7799        libname=conftest
7800        lt_save_allow_undefined_flag=$allow_undefined_flag
7801        allow_undefined_flag=
7802        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7803  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7804  ac_status=$?
7805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806  (exit $ac_status); }
7807        then
7808	  archive_cmds_need_lc=no
7809        else
7810	  archive_cmds_need_lc=yes
7811        fi
7812        allow_undefined_flag=$lt_save_allow_undefined_flag
7813      else
7814        cat conftest.err 1>&5
7815      fi
7816      $rm conftest*
7817      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7818echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
7819      ;;
7820    esac
7821  fi
7822  ;;
7823esac
7824
7825{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7826echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
7827library_names_spec=
7828libname_spec='lib$name'
7829soname_spec=
7830shrext_cmds=".so"
7831postinstall_cmds=
7832postuninstall_cmds=
7833finish_cmds=
7834finish_eval=
7835shlibpath_var=
7836shlibpath_overrides_runpath=unknown
7837version_type=none
7838dynamic_linker="$host_os ld.so"
7839sys_lib_dlsearch_path_spec="/lib /usr/lib"
7840if test "$GCC" = yes; then
7841  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7842  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7843    # if the path contains ";" then we assume it to be the separator
7844    # otherwise default to the standard path separator (i.e. ":") - it is
7845    # assumed that no part of a normal pathname contains ";" but that should
7846    # okay in the real world where ";" in dirpaths is itself problematic.
7847    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7848  else
7849    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7850  fi
7851else
7852  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7853fi
7854need_lib_prefix=unknown
7855hardcode_into_libs=no
7856
7857# when you set need_version to no, make sure it does not cause -set_version
7858# flags to be left without arguments
7859need_version=unknown
7860
7861case $host_os in
7862aix3*)
7863  version_type=linux
7864  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7865  shlibpath_var=LIBPATH
7866
7867  # AIX 3 has no versioning support, so we append a major version to the name.
7868  soname_spec='${libname}${release}${shared_ext}$major'
7869  ;;
7870
7871aix4* | aix5*)
7872  version_type=linux
7873  need_lib_prefix=no
7874  need_version=no
7875  hardcode_into_libs=yes
7876  if test "$host_cpu" = ia64; then
7877    # AIX 5 supports IA64
7878    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7879    shlibpath_var=LD_LIBRARY_PATH
7880  else
7881    # With GCC up to 2.95.x, collect2 would create an import file
7882    # for dependence libraries.  The import file would start with
7883    # the line `#! .'.  This would cause the generated library to
7884    # depend on `.', always an invalid library.  This was fixed in
7885    # development snapshots of GCC prior to 3.0.
7886    case $host_os in
7887      aix4 | aix4.[01] | aix4.[01].*)
7888      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7889	   echo ' yes '
7890	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7891	:
7892      else
7893	can_build_shared=no
7894      fi
7895      ;;
7896    esac
7897    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7898    # soname into executable. Probably we can add versioning support to
7899    # collect2, so additional links can be useful in future.
7900    if test "$aix_use_runtimelinking" = yes; then
7901      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7902      # instead of lib<name>.a to let people know that these are not
7903      # typical AIX shared libraries.
7904      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7905    else
7906      # We preserve .a as extension for shared libraries through AIX4.2
7907      # and later when we are not doing run time linking.
7908      library_names_spec='${libname}${release}.a $libname.a'
7909      soname_spec='${libname}${release}${shared_ext}$major'
7910    fi
7911    shlibpath_var=LIBPATH
7912  fi
7913  ;;
7914
7915amigaos*)
7916  library_names_spec='$libname.ixlibrary $libname.a'
7917  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7918  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'
7919  ;;
7920
7921beos*)
7922  library_names_spec='${libname}${shared_ext}'
7923  dynamic_linker="$host_os ld.so"
7924  shlibpath_var=LIBRARY_PATH
7925  ;;
7926
7927bsdi[45]*)
7928  version_type=linux
7929  need_version=no
7930  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7931  soname_spec='${libname}${release}${shared_ext}$major'
7932  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7933  shlibpath_var=LD_LIBRARY_PATH
7934  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7935  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7936  # the default ld.so.conf also contains /usr/contrib/lib and
7937  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7938  # libtool to hard-code these into programs
7939  ;;
7940
7941cygwin* | mingw* | pw32*)
7942  version_type=windows
7943  shrext_cmds=".dll"
7944  need_version=no
7945  need_lib_prefix=no
7946
7947  case $GCC,$host_os in
7948  yes,cygwin* | yes,mingw* | yes,pw32*)
7949    library_names_spec='$libname.dll.a'
7950    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7951    postinstall_cmds='base_file=`basename \${file}`~
7952      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7953      dldir=$destdir/`dirname \$dlpath`~
7954      test -d \$dldir || mkdir -p \$dldir~
7955      $install_prog $dir/$dlname \$dldir/$dlname~
7956      chmod a+x \$dldir/$dlname'
7957    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7958      dlpath=$dir/\$dldll~
7959       $rm \$dlpath'
7960    shlibpath_overrides_runpath=yes
7961
7962    case $host_os in
7963    cygwin*)
7964      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7965      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7966      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7967      ;;
7968    mingw*)
7969      # MinGW DLLs use traditional 'lib' prefix
7970      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7971      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7972      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7973        # It is most probably a Windows format PATH printed by
7974        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7975        # path with ; separators, and with drive letters. We can handle the
7976        # drive letters (cygwin fileutils understands them), so leave them,
7977        # especially as we might pass files found there to a mingw objdump,
7978        # which wouldn't understand a cygwinified path. Ahh.
7979        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7980      else
7981        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7982      fi
7983      ;;
7984    pw32*)
7985      # pw32 DLLs use 'pw' prefix rather than 'lib'
7986      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7987      ;;
7988    esac
7989    ;;
7990
7991  linux*)
7992    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7993      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7994      supports_anon_versioning=no
7995      case `$LD -v 2>/dev/null` in
7996        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7997        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7998        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7999        *\ 2.11.*) ;; # other 2.11 versions
8000        *) supports_anon_versioning=yes ;;
8001      esac
8002      if test $supports_anon_versioning = yes; then
8003        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8004cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8005$echo "local: *; };" >> $output_objdir/$libname.ver~
8006        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8007      else
8008        $archive_expsym_cmds="$archive_cmds"
8009      fi
8010    else
8011      ld_shlibs=no
8012    fi
8013    ;;
8014
8015  *)
8016    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8017    ;;
8018  esac
8019  dynamic_linker='Win32 ld.exe'
8020  # FIXME: first we should search . and the directory the executable is in
8021  shlibpath_var=PATH
8022  ;;
8023
8024darwin* | rhapsody*)
8025  dynamic_linker="$host_os dyld"
8026  version_type=darwin
8027  need_lib_prefix=no
8028  need_version=no
8029  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8030  soname_spec='${libname}${release}${major}$shared_ext'
8031  shlibpath_overrides_runpath=yes
8032  shlibpath_var=DYLD_LIBRARY_PATH
8033  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8034  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8035  if test "$GCC" = yes; then
8036    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"`
8037  else
8038    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8039  fi
8040  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8041  ;;
8042
8043dgux*)
8044  version_type=linux
8045  need_lib_prefix=no
8046  need_version=no
8047  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8048  soname_spec='${libname}${release}${shared_ext}$major'
8049  shlibpath_var=LD_LIBRARY_PATH
8050  ;;
8051
8052freebsd1*)
8053  dynamic_linker=no
8054  ;;
8055
8056kfreebsd*-gnu)
8057  version_type=linux
8058  need_lib_prefix=no
8059  need_version=no
8060  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8061  soname_spec='${libname}${release}${shared_ext}$major'
8062  shlibpath_var=LD_LIBRARY_PATH
8063  shlibpath_overrides_runpath=no
8064  hardcode_into_libs=yes
8065  dynamic_linker='GNU ld.so'
8066  ;;
8067
8068freebsd* | dragonfly*)
8069  # DragonFly does not have aout.  When/if they implement a new
8070  # versioning mechanism, adjust this.
8071  if test -x /usr/bin/objformat; then
8072    objformat=`/usr/bin/objformat`
8073  else
8074    case $host_os in
8075    freebsd[123]*) objformat=aout ;;
8076    *) objformat=elf ;;
8077    esac
8078  fi
8079  # Handle Gentoo/FreeBSD as it was Linux
8080  case $host_vendor in
8081    gentoo)
8082      version_type=linux ;;
8083    *)
8084      version_type=freebsd-$objformat ;;
8085  esac
8086
8087  case $version_type in
8088    freebsd-elf*)
8089      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8090      need_version=no
8091      need_lib_prefix=no
8092      ;;
8093    freebsd-*)
8094      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8095      need_version=yes
8096      ;;
8097    linux)
8098      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8099      soname_spec='${libname}${release}${shared_ext}$major'
8100      need_lib_prefix=no
8101      need_version=no
8102      ;;
8103  esac
8104  shlibpath_var=LD_LIBRARY_PATH
8105  case $host_os in
8106  freebsd2*)
8107    shlibpath_overrides_runpath=yes
8108    ;;
8109  freebsd3.[01]* | freebsdelf3.[01]*)
8110    shlibpath_overrides_runpath=yes
8111    hardcode_into_libs=yes
8112    ;;
8113  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8114  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8115    shlibpath_overrides_runpath=no
8116    hardcode_into_libs=yes
8117    ;;
8118  freebsd*) # from 4.6 on
8119    shlibpath_overrides_runpath=yes
8120    hardcode_into_libs=yes
8121    ;;
8122  esac
8123  ;;
8124
8125gnu*)
8126  version_type=linux
8127  need_lib_prefix=no
8128  need_version=no
8129  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8130  soname_spec='${libname}${release}${shared_ext}$major'
8131  shlibpath_var=LD_LIBRARY_PATH
8132  hardcode_into_libs=yes
8133  ;;
8134
8135hpux9* | hpux10* | hpux11*)
8136  # Give a soname corresponding to the major version so that dld.sl refuses to
8137  # link against other versions.
8138  version_type=sunos
8139  need_lib_prefix=no
8140  need_version=no
8141  case $host_cpu in
8142  ia64*)
8143    shrext_cmds='.so'
8144    hardcode_into_libs=yes
8145    dynamic_linker="$host_os dld.so"
8146    shlibpath_var=LD_LIBRARY_PATH
8147    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8148    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8149    soname_spec='${libname}${release}${shared_ext}$major'
8150    if test "X$HPUX_IA64_MODE" = X32; then
8151      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8152    else
8153      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8154    fi
8155    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8156    ;;
8157   hppa*64*)
8158     shrext_cmds='.sl'
8159     hardcode_into_libs=yes
8160     dynamic_linker="$host_os dld.sl"
8161     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8162     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8163     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8164     soname_spec='${libname}${release}${shared_ext}$major'
8165     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8166     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8167     ;;
8168   *)
8169    shrext_cmds='.sl'
8170    dynamic_linker="$host_os dld.sl"
8171    shlibpath_var=SHLIB_PATH
8172    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8173    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8174    soname_spec='${libname}${release}${shared_ext}$major'
8175    ;;
8176  esac
8177  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8178  postinstall_cmds='chmod 555 $lib'
8179  ;;
8180
8181interix3*)
8182  version_type=linux
8183  need_lib_prefix=no
8184  need_version=no
8185  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8186  soname_spec='${libname}${release}${shared_ext}$major'
8187  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8188  shlibpath_var=LD_LIBRARY_PATH
8189  shlibpath_overrides_runpath=no
8190  hardcode_into_libs=yes
8191  ;;
8192
8193irix5* | irix6* | nonstopux*)
8194  case $host_os in
8195    nonstopux*) version_type=nonstopux ;;
8196    *)
8197	if test "$lt_cv_prog_gnu_ld" = yes; then
8198		version_type=linux
8199	else
8200		version_type=irix
8201	fi ;;
8202  esac
8203  need_lib_prefix=no
8204  need_version=no
8205  soname_spec='${libname}${release}${shared_ext}$major'
8206  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8207  case $host_os in
8208  irix5* | nonstopux*)
8209    libsuff= shlibsuff=
8210    ;;
8211  *)
8212    case $LD in # libtool.m4 will add one of these switches to LD
8213    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8214      libsuff= shlibsuff= libmagic=32-bit;;
8215    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8216      libsuff=32 shlibsuff=N32 libmagic=N32;;
8217    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8218      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8219    *) libsuff= shlibsuff= libmagic=never-match;;
8220    esac
8221    ;;
8222  esac
8223  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8224  shlibpath_overrides_runpath=no
8225  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8226  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8227  hardcode_into_libs=yes
8228  ;;
8229
8230# No shared lib support for Linux oldld, aout, or coff.
8231linux*oldld* | linux*aout* | linux*coff*)
8232  dynamic_linker=no
8233  ;;
8234
8235# This must be Linux ELF.
8236linux*)
8237  version_type=linux
8238  need_lib_prefix=no
8239  need_version=no
8240  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8241  soname_spec='${libname}${release}${shared_ext}$major'
8242  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8243  shlibpath_var=LD_LIBRARY_PATH
8244  shlibpath_overrides_runpath=no
8245  # This implies no fast_install, which is unacceptable.
8246  # Some rework will be needed to allow for fast_install
8247  # before this can be enabled.
8248  hardcode_into_libs=yes
8249
8250  # Append ld.so.conf contents to the search path
8251  if test -f /etc/ld.so.conf; then
8252    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8253    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8254  fi
8255
8256  # We used to test for /lib/ld.so.1 and disable shared libraries on
8257  # powerpc, because MkLinux only supported shared libraries with the
8258  # GNU dynamic linker.  Since this was broken with cross compilers,
8259  # most powerpc-linux boxes support dynamic linking these days and
8260  # people can always --disable-shared, the test was removed, and we
8261  # assume the GNU/Linux dynamic linker is in use.
8262  dynamic_linker='GNU/Linux ld.so'
8263  ;;
8264
8265knetbsd*-gnu)
8266  version_type=linux
8267  need_lib_prefix=no
8268  need_version=no
8269  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8270  soname_spec='${libname}${release}${shared_ext}$major'
8271  shlibpath_var=LD_LIBRARY_PATH
8272  shlibpath_overrides_runpath=no
8273  hardcode_into_libs=yes
8274  dynamic_linker='GNU ld.so'
8275  ;;
8276
8277netbsd*)
8278  version_type=sunos
8279  need_lib_prefix=no
8280  need_version=no
8281  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8282    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8283    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8284    dynamic_linker='NetBSD (a.out) ld.so'
8285  else
8286    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8287    soname_spec='${libname}${release}${shared_ext}$major'
8288    dynamic_linker='NetBSD ld.elf_so'
8289  fi
8290  shlibpath_var=LD_LIBRARY_PATH
8291  shlibpath_overrides_runpath=yes
8292  hardcode_into_libs=yes
8293  ;;
8294
8295newsos6)
8296  version_type=linux
8297  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8298  shlibpath_var=LD_LIBRARY_PATH
8299  shlibpath_overrides_runpath=yes
8300  ;;
8301
8302nto-qnx*)
8303  version_type=linux
8304  need_lib_prefix=no
8305  need_version=no
8306  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8307  soname_spec='${libname}${release}${shared_ext}$major'
8308  shlibpath_var=LD_LIBRARY_PATH
8309  shlibpath_overrides_runpath=yes
8310  ;;
8311
8312openbsd*)
8313  version_type=sunos
8314  sys_lib_dlsearch_path_spec="/usr/lib"
8315  need_lib_prefix=no
8316  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8317  case $host_os in
8318    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8319    *)                         need_version=no  ;;
8320  esac
8321  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8322  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8323  shlibpath_var=LD_LIBRARY_PATH
8324  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8325    case $host_os in
8326      openbsd2.[89] | openbsd2.[89].*)
8327	shlibpath_overrides_runpath=no
8328	;;
8329      *)
8330	shlibpath_overrides_runpath=yes
8331	;;
8332      esac
8333  else
8334    shlibpath_overrides_runpath=yes
8335  fi
8336  ;;
8337
8338os2*)
8339  libname_spec='$name'
8340  shrext_cmds=".dll"
8341  need_lib_prefix=no
8342  library_names_spec='$libname${shared_ext} $libname.a'
8343  dynamic_linker='OS/2 ld.exe'
8344  shlibpath_var=LIBPATH
8345  ;;
8346
8347osf3* | osf4* | osf5*)
8348  version_type=osf
8349  need_lib_prefix=no
8350  need_version=no
8351  soname_spec='${libname}${release}${shared_ext}$major'
8352  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8353  shlibpath_var=LD_LIBRARY_PATH
8354  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8355  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8356  ;;
8357
8358solaris*)
8359  version_type=linux
8360  need_lib_prefix=no
8361  need_version=no
8362  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8363  soname_spec='${libname}${release}${shared_ext}$major'
8364  shlibpath_var=LD_LIBRARY_PATH
8365  shlibpath_overrides_runpath=yes
8366  hardcode_into_libs=yes
8367  # ldd complains unless libraries are executable
8368  postinstall_cmds='chmod +x $lib'
8369  ;;
8370
8371sunos4*)
8372  version_type=sunos
8373  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8374  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8375  shlibpath_var=LD_LIBRARY_PATH
8376  shlibpath_overrides_runpath=yes
8377  if test "$with_gnu_ld" = yes; then
8378    need_lib_prefix=no
8379  fi
8380  need_version=yes
8381  ;;
8382
8383sysv4 | sysv4.3*)
8384  version_type=linux
8385  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8386  soname_spec='${libname}${release}${shared_ext}$major'
8387  shlibpath_var=LD_LIBRARY_PATH
8388  case $host_vendor in
8389    sni)
8390      shlibpath_overrides_runpath=no
8391      need_lib_prefix=no
8392      export_dynamic_flag_spec='${wl}-Blargedynsym'
8393      runpath_var=LD_RUN_PATH
8394      ;;
8395    siemens)
8396      need_lib_prefix=no
8397      ;;
8398    motorola)
8399      need_lib_prefix=no
8400      need_version=no
8401      shlibpath_overrides_runpath=no
8402      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8403      ;;
8404  esac
8405  ;;
8406
8407sysv4*MP*)
8408  if test -d /usr/nec ;then
8409    version_type=linux
8410    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8411    soname_spec='$libname${shared_ext}.$major'
8412    shlibpath_var=LD_LIBRARY_PATH
8413  fi
8414  ;;
8415
8416sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8417  version_type=freebsd-elf
8418  need_lib_prefix=no
8419  need_version=no
8420  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8421  soname_spec='${libname}${release}${shared_ext}$major'
8422  shlibpath_var=LD_LIBRARY_PATH
8423  hardcode_into_libs=yes
8424  if test "$with_gnu_ld" = yes; then
8425    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8426    shlibpath_overrides_runpath=no
8427  else
8428    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8429    shlibpath_overrides_runpath=yes
8430    case $host_os in
8431      sco3.2v5*)
8432        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8433	;;
8434    esac
8435  fi
8436  sys_lib_dlsearch_path_spec='/usr/lib'
8437  ;;
8438
8439uts4*)
8440  version_type=linux
8441  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8442  soname_spec='${libname}${release}${shared_ext}$major'
8443  shlibpath_var=LD_LIBRARY_PATH
8444  ;;
8445
8446*)
8447  dynamic_linker=no
8448  ;;
8449esac
8450{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8451echo "${ECHO_T}$dynamic_linker" >&6; }
8452test "$dynamic_linker" = no && can_build_shared=no
8453
8454variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8455if test "$GCC" = yes; then
8456  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8457fi
8458
8459{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8460echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8461hardcode_action=
8462if test -n "$hardcode_libdir_flag_spec" || \
8463   test -n "$runpath_var" || \
8464   test "X$hardcode_automatic" = "Xyes" ; then
8465
8466  # We can hardcode non-existant directories.
8467  if test "$hardcode_direct" != no &&
8468     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8469     # have to relink, otherwise we might link with an installed library
8470     # when we should be linking with a yet-to-be-installed one
8471     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8472     test "$hardcode_minus_L" != no; then
8473    # Linking always hardcodes the temporary library directory.
8474    hardcode_action=relink
8475  else
8476    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8477    hardcode_action=immediate
8478  fi
8479else
8480  # We cannot hardcode anything, or else we can only hardcode existing
8481  # directories.
8482  hardcode_action=unsupported
8483fi
8484{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
8485echo "${ECHO_T}$hardcode_action" >&6; }
8486
8487if test "$hardcode_action" = relink; then
8488  # Fast installation is not supported
8489  enable_fast_install=no
8490elif test "$shlibpath_overrides_runpath" = yes ||
8491     test "$enable_shared" = no; then
8492  # Fast installation is not necessary
8493  enable_fast_install=needless
8494fi
8495
8496striplib=
8497old_striplib=
8498{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8499echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8500if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8501  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8502  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8503  { echo "$as_me:$LINENO: result: yes" >&5
8504echo "${ECHO_T}yes" >&6; }
8505else
8506# FIXME - insert some real tests, host_os isn't really good enough
8507  case $host_os in
8508   darwin*)
8509       if test -n "$STRIP" ; then
8510         striplib="$STRIP -x"
8511         { echo "$as_me:$LINENO: result: yes" >&5
8512echo "${ECHO_T}yes" >&6; }
8513       else
8514  { echo "$as_me:$LINENO: result: no" >&5
8515echo "${ECHO_T}no" >&6; }
8516fi
8517       ;;
8518   *)
8519  { echo "$as_me:$LINENO: result: no" >&5
8520echo "${ECHO_T}no" >&6; }
8521    ;;
8522  esac
8523fi
8524
8525if test "x$enable_dlopen" != xyes; then
8526  enable_dlopen=unknown
8527  enable_dlopen_self=unknown
8528  enable_dlopen_self_static=unknown
8529else
8530  lt_cv_dlopen=no
8531  lt_cv_dlopen_libs=
8532
8533  case $host_os in
8534  beos*)
8535    lt_cv_dlopen="load_add_on"
8536    lt_cv_dlopen_libs=
8537    lt_cv_dlopen_self=yes
8538    ;;
8539
8540  mingw* | pw32*)
8541    lt_cv_dlopen="LoadLibrary"
8542    lt_cv_dlopen_libs=
8543   ;;
8544
8545  cygwin*)
8546    lt_cv_dlopen="dlopen"
8547    lt_cv_dlopen_libs=
8548   ;;
8549
8550  darwin*)
8551  # if libdl is installed we need to link against it
8552    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8553echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8554if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8555  echo $ECHO_N "(cached) $ECHO_C" >&6
8556else
8557  ac_check_lib_save_LIBS=$LIBS
8558LIBS="-ldl  $LIBS"
8559cat >conftest.$ac_ext <<_ACEOF
8560/* confdefs.h.  */
8561_ACEOF
8562cat confdefs.h >>conftest.$ac_ext
8563cat >>conftest.$ac_ext <<_ACEOF
8564/* end confdefs.h.  */
8565
8566/* Override any GCC internal prototype to avoid an error.
8567   Use char because int might match the return type of a GCC
8568   builtin and then its argument prototype would still apply.  */
8569#ifdef __cplusplus
8570extern "C"
8571#endif
8572char dlopen ();
8573int
8574main ()
8575{
8576return dlopen ();
8577  ;
8578  return 0;
8579}
8580_ACEOF
8581rm -f conftest.$ac_objext conftest$ac_exeext
8582if { (ac_try="$ac_link"
8583case "(($ac_try" in
8584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8585  *) ac_try_echo=$ac_try;;
8586esac
8587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8588  (eval "$ac_link") 2>conftest.er1
8589  ac_status=$?
8590  grep -v '^ *+' conftest.er1 >conftest.err
8591  rm -f conftest.er1
8592  cat conftest.err >&5
8593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594  (exit $ac_status); } && {
8595	 test -z "$ac_c_werror_flag" ||
8596	 test ! -s conftest.err
8597       } && test -s conftest$ac_exeext &&
8598       $as_test_x conftest$ac_exeext; then
8599  ac_cv_lib_dl_dlopen=yes
8600else
8601  echo "$as_me: failed program was:" >&5
8602sed 's/^/| /' conftest.$ac_ext >&5
8603
8604	ac_cv_lib_dl_dlopen=no
8605fi
8606
8607rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8608      conftest$ac_exeext conftest.$ac_ext
8609LIBS=$ac_check_lib_save_LIBS
8610fi
8611{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8612echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8613if test $ac_cv_lib_dl_dlopen = yes; then
8614  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8615else
8616
8617    lt_cv_dlopen="dyld"
8618    lt_cv_dlopen_libs=
8619    lt_cv_dlopen_self=yes
8620
8621fi
8622
8623   ;;
8624
8625  *)
8626    { echo "$as_me:$LINENO: checking for shl_load" >&5
8627echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8628if test "${ac_cv_func_shl_load+set}" = set; then
8629  echo $ECHO_N "(cached) $ECHO_C" >&6
8630else
8631  cat >conftest.$ac_ext <<_ACEOF
8632/* confdefs.h.  */
8633_ACEOF
8634cat confdefs.h >>conftest.$ac_ext
8635cat >>conftest.$ac_ext <<_ACEOF
8636/* end confdefs.h.  */
8637/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8638   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8639#define shl_load innocuous_shl_load
8640
8641/* System header to define __stub macros and hopefully few prototypes,
8642    which can conflict with char shl_load (); below.
8643    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8644    <limits.h> exists even on freestanding compilers.  */
8645
8646#ifdef __STDC__
8647# include <limits.h>
8648#else
8649# include <assert.h>
8650#endif
8651
8652#undef shl_load
8653
8654/* Override any GCC internal prototype to avoid an error.
8655   Use char because int might match the return type of a GCC
8656   builtin and then its argument prototype would still apply.  */
8657#ifdef __cplusplus
8658extern "C"
8659#endif
8660char shl_load ();
8661/* The GNU C library defines this for functions which it implements
8662    to always fail with ENOSYS.  Some functions are actually named
8663    something starting with __ and the normal name is an alias.  */
8664#if defined __stub_shl_load || defined __stub___shl_load
8665choke me
8666#endif
8667
8668int
8669main ()
8670{
8671return shl_load ();
8672  ;
8673  return 0;
8674}
8675_ACEOF
8676rm -f conftest.$ac_objext conftest$ac_exeext
8677if { (ac_try="$ac_link"
8678case "(($ac_try" in
8679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8680  *) ac_try_echo=$ac_try;;
8681esac
8682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8683  (eval "$ac_link") 2>conftest.er1
8684  ac_status=$?
8685  grep -v '^ *+' conftest.er1 >conftest.err
8686  rm -f conftest.er1
8687  cat conftest.err >&5
8688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689  (exit $ac_status); } && {
8690	 test -z "$ac_c_werror_flag" ||
8691	 test ! -s conftest.err
8692       } && test -s conftest$ac_exeext &&
8693       $as_test_x conftest$ac_exeext; then
8694  ac_cv_func_shl_load=yes
8695else
8696  echo "$as_me: failed program was:" >&5
8697sed 's/^/| /' conftest.$ac_ext >&5
8698
8699	ac_cv_func_shl_load=no
8700fi
8701
8702rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8703      conftest$ac_exeext conftest.$ac_ext
8704fi
8705{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8706echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8707if test $ac_cv_func_shl_load = yes; then
8708  lt_cv_dlopen="shl_load"
8709else
8710  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8711echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8712if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8713  echo $ECHO_N "(cached) $ECHO_C" >&6
8714else
8715  ac_check_lib_save_LIBS=$LIBS
8716LIBS="-ldld  $LIBS"
8717cat >conftest.$ac_ext <<_ACEOF
8718/* confdefs.h.  */
8719_ACEOF
8720cat confdefs.h >>conftest.$ac_ext
8721cat >>conftest.$ac_ext <<_ACEOF
8722/* end confdefs.h.  */
8723
8724/* Override any GCC internal prototype to avoid an error.
8725   Use char because int might match the return type of a GCC
8726   builtin and then its argument prototype would still apply.  */
8727#ifdef __cplusplus
8728extern "C"
8729#endif
8730char shl_load ();
8731int
8732main ()
8733{
8734return shl_load ();
8735  ;
8736  return 0;
8737}
8738_ACEOF
8739rm -f conftest.$ac_objext conftest$ac_exeext
8740if { (ac_try="$ac_link"
8741case "(($ac_try" in
8742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8743  *) ac_try_echo=$ac_try;;
8744esac
8745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8746  (eval "$ac_link") 2>conftest.er1
8747  ac_status=$?
8748  grep -v '^ *+' conftest.er1 >conftest.err
8749  rm -f conftest.er1
8750  cat conftest.err >&5
8751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752  (exit $ac_status); } && {
8753	 test -z "$ac_c_werror_flag" ||
8754	 test ! -s conftest.err
8755       } && test -s conftest$ac_exeext &&
8756       $as_test_x conftest$ac_exeext; then
8757  ac_cv_lib_dld_shl_load=yes
8758else
8759  echo "$as_me: failed program was:" >&5
8760sed 's/^/| /' conftest.$ac_ext >&5
8761
8762	ac_cv_lib_dld_shl_load=no
8763fi
8764
8765rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8766      conftest$ac_exeext conftest.$ac_ext
8767LIBS=$ac_check_lib_save_LIBS
8768fi
8769{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8770echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8771if test $ac_cv_lib_dld_shl_load = yes; then
8772  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8773else
8774  { echo "$as_me:$LINENO: checking for dlopen" >&5
8775echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8776if test "${ac_cv_func_dlopen+set}" = set; then
8777  echo $ECHO_N "(cached) $ECHO_C" >&6
8778else
8779  cat >conftest.$ac_ext <<_ACEOF
8780/* confdefs.h.  */
8781_ACEOF
8782cat confdefs.h >>conftest.$ac_ext
8783cat >>conftest.$ac_ext <<_ACEOF
8784/* end confdefs.h.  */
8785/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8786   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8787#define dlopen innocuous_dlopen
8788
8789/* System header to define __stub macros and hopefully few prototypes,
8790    which can conflict with char dlopen (); below.
8791    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8792    <limits.h> exists even on freestanding compilers.  */
8793
8794#ifdef __STDC__
8795# include <limits.h>
8796#else
8797# include <assert.h>
8798#endif
8799
8800#undef dlopen
8801
8802/* Override any GCC internal prototype to avoid an error.
8803   Use char because int might match the return type of a GCC
8804   builtin and then its argument prototype would still apply.  */
8805#ifdef __cplusplus
8806extern "C"
8807#endif
8808char dlopen ();
8809/* The GNU C library defines this for functions which it implements
8810    to always fail with ENOSYS.  Some functions are actually named
8811    something starting with __ and the normal name is an alias.  */
8812#if defined __stub_dlopen || defined __stub___dlopen
8813choke me
8814#endif
8815
8816int
8817main ()
8818{
8819return dlopen ();
8820  ;
8821  return 0;
8822}
8823_ACEOF
8824rm -f conftest.$ac_objext conftest$ac_exeext
8825if { (ac_try="$ac_link"
8826case "(($ac_try" in
8827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8828  *) ac_try_echo=$ac_try;;
8829esac
8830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8831  (eval "$ac_link") 2>conftest.er1
8832  ac_status=$?
8833  grep -v '^ *+' conftest.er1 >conftest.err
8834  rm -f conftest.er1
8835  cat conftest.err >&5
8836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837  (exit $ac_status); } && {
8838	 test -z "$ac_c_werror_flag" ||
8839	 test ! -s conftest.err
8840       } && test -s conftest$ac_exeext &&
8841       $as_test_x conftest$ac_exeext; then
8842  ac_cv_func_dlopen=yes
8843else
8844  echo "$as_me: failed program was:" >&5
8845sed 's/^/| /' conftest.$ac_ext >&5
8846
8847	ac_cv_func_dlopen=no
8848fi
8849
8850rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8851      conftest$ac_exeext conftest.$ac_ext
8852fi
8853{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8854echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
8855if test $ac_cv_func_dlopen = yes; then
8856  lt_cv_dlopen="dlopen"
8857else
8858  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8859echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8860if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8861  echo $ECHO_N "(cached) $ECHO_C" >&6
8862else
8863  ac_check_lib_save_LIBS=$LIBS
8864LIBS="-ldl  $LIBS"
8865cat >conftest.$ac_ext <<_ACEOF
8866/* confdefs.h.  */
8867_ACEOF
8868cat confdefs.h >>conftest.$ac_ext
8869cat >>conftest.$ac_ext <<_ACEOF
8870/* end confdefs.h.  */
8871
8872/* Override any GCC internal prototype to avoid an error.
8873   Use char because int might match the return type of a GCC
8874   builtin and then its argument prototype would still apply.  */
8875#ifdef __cplusplus
8876extern "C"
8877#endif
8878char dlopen ();
8879int
8880main ()
8881{
8882return dlopen ();
8883  ;
8884  return 0;
8885}
8886_ACEOF
8887rm -f conftest.$ac_objext conftest$ac_exeext
8888if { (ac_try="$ac_link"
8889case "(($ac_try" in
8890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8891  *) ac_try_echo=$ac_try;;
8892esac
8893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8894  (eval "$ac_link") 2>conftest.er1
8895  ac_status=$?
8896  grep -v '^ *+' conftest.er1 >conftest.err
8897  rm -f conftest.er1
8898  cat conftest.err >&5
8899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900  (exit $ac_status); } && {
8901	 test -z "$ac_c_werror_flag" ||
8902	 test ! -s conftest.err
8903       } && test -s conftest$ac_exeext &&
8904       $as_test_x conftest$ac_exeext; then
8905  ac_cv_lib_dl_dlopen=yes
8906else
8907  echo "$as_me: failed program was:" >&5
8908sed 's/^/| /' conftest.$ac_ext >&5
8909
8910	ac_cv_lib_dl_dlopen=no
8911fi
8912
8913rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8914      conftest$ac_exeext conftest.$ac_ext
8915LIBS=$ac_check_lib_save_LIBS
8916fi
8917{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8918echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8919if test $ac_cv_lib_dl_dlopen = yes; then
8920  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8921else
8922  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8923echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
8924if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8925  echo $ECHO_N "(cached) $ECHO_C" >&6
8926else
8927  ac_check_lib_save_LIBS=$LIBS
8928LIBS="-lsvld  $LIBS"
8929cat >conftest.$ac_ext <<_ACEOF
8930/* confdefs.h.  */
8931_ACEOF
8932cat confdefs.h >>conftest.$ac_ext
8933cat >>conftest.$ac_ext <<_ACEOF
8934/* end confdefs.h.  */
8935
8936/* Override any GCC internal prototype to avoid an error.
8937   Use char because int might match the return type of a GCC
8938   builtin and then its argument prototype would still apply.  */
8939#ifdef __cplusplus
8940extern "C"
8941#endif
8942char dlopen ();
8943int
8944main ()
8945{
8946return dlopen ();
8947  ;
8948  return 0;
8949}
8950_ACEOF
8951rm -f conftest.$ac_objext conftest$ac_exeext
8952if { (ac_try="$ac_link"
8953case "(($ac_try" in
8954  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8955  *) ac_try_echo=$ac_try;;
8956esac
8957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8958  (eval "$ac_link") 2>conftest.er1
8959  ac_status=$?
8960  grep -v '^ *+' conftest.er1 >conftest.err
8961  rm -f conftest.er1
8962  cat conftest.err >&5
8963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964  (exit $ac_status); } && {
8965	 test -z "$ac_c_werror_flag" ||
8966	 test ! -s conftest.err
8967       } && test -s conftest$ac_exeext &&
8968       $as_test_x conftest$ac_exeext; then
8969  ac_cv_lib_svld_dlopen=yes
8970else
8971  echo "$as_me: failed program was:" >&5
8972sed 's/^/| /' conftest.$ac_ext >&5
8973
8974	ac_cv_lib_svld_dlopen=no
8975fi
8976
8977rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8978      conftest$ac_exeext conftest.$ac_ext
8979LIBS=$ac_check_lib_save_LIBS
8980fi
8981{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8982echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
8983if test $ac_cv_lib_svld_dlopen = yes; then
8984  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8985else
8986  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8987echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
8988if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8989  echo $ECHO_N "(cached) $ECHO_C" >&6
8990else
8991  ac_check_lib_save_LIBS=$LIBS
8992LIBS="-ldld  $LIBS"
8993cat >conftest.$ac_ext <<_ACEOF
8994/* confdefs.h.  */
8995_ACEOF
8996cat confdefs.h >>conftest.$ac_ext
8997cat >>conftest.$ac_ext <<_ACEOF
8998/* end confdefs.h.  */
8999
9000/* Override any GCC internal prototype to avoid an error.
9001   Use char because int might match the return type of a GCC
9002   builtin and then its argument prototype would still apply.  */
9003#ifdef __cplusplus
9004extern "C"
9005#endif
9006char dld_link ();
9007int
9008main ()
9009{
9010return dld_link ();
9011  ;
9012  return 0;
9013}
9014_ACEOF
9015rm -f conftest.$ac_objext conftest$ac_exeext
9016if { (ac_try="$ac_link"
9017case "(($ac_try" in
9018  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9019  *) ac_try_echo=$ac_try;;
9020esac
9021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9022  (eval "$ac_link") 2>conftest.er1
9023  ac_status=$?
9024  grep -v '^ *+' conftest.er1 >conftest.err
9025  rm -f conftest.er1
9026  cat conftest.err >&5
9027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028  (exit $ac_status); } && {
9029	 test -z "$ac_c_werror_flag" ||
9030	 test ! -s conftest.err
9031       } && test -s conftest$ac_exeext &&
9032       $as_test_x conftest$ac_exeext; then
9033  ac_cv_lib_dld_dld_link=yes
9034else
9035  echo "$as_me: failed program was:" >&5
9036sed 's/^/| /' conftest.$ac_ext >&5
9037
9038	ac_cv_lib_dld_dld_link=no
9039fi
9040
9041rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9042      conftest$ac_exeext conftest.$ac_ext
9043LIBS=$ac_check_lib_save_LIBS
9044fi
9045{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9046echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9047if test $ac_cv_lib_dld_dld_link = yes; then
9048  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9049fi
9050
9051
9052fi
9053
9054
9055fi
9056
9057
9058fi
9059
9060
9061fi
9062
9063
9064fi
9065
9066    ;;
9067  esac
9068
9069  if test "x$lt_cv_dlopen" != xno; then
9070    enable_dlopen=yes
9071  else
9072    enable_dlopen=no
9073  fi
9074
9075  case $lt_cv_dlopen in
9076  dlopen)
9077    save_CPPFLAGS="$CPPFLAGS"
9078    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9079
9080    save_LDFLAGS="$LDFLAGS"
9081    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9082
9083    save_LIBS="$LIBS"
9084    LIBS="$lt_cv_dlopen_libs $LIBS"
9085
9086    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9087echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9088if test "${lt_cv_dlopen_self+set}" = set; then
9089  echo $ECHO_N "(cached) $ECHO_C" >&6
9090else
9091  	  if test "$cross_compiling" = yes; then :
9092  lt_cv_dlopen_self=cross
9093else
9094  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9095  lt_status=$lt_dlunknown
9096  cat > conftest.$ac_ext <<EOF
9097#line 9097 "configure"
9098#include "confdefs.h"
9099
9100#if HAVE_DLFCN_H
9101#include <dlfcn.h>
9102#endif
9103
9104#include <stdio.h>
9105
9106#ifdef RTLD_GLOBAL
9107#  define LT_DLGLOBAL		RTLD_GLOBAL
9108#else
9109#  ifdef DL_GLOBAL
9110#    define LT_DLGLOBAL		DL_GLOBAL
9111#  else
9112#    define LT_DLGLOBAL		0
9113#  endif
9114#endif
9115
9116/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9117   find out it does not work in some platform. */
9118#ifndef LT_DLLAZY_OR_NOW
9119#  ifdef RTLD_LAZY
9120#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9121#  else
9122#    ifdef DL_LAZY
9123#      define LT_DLLAZY_OR_NOW		DL_LAZY
9124#    else
9125#      ifdef RTLD_NOW
9126#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9127#      else
9128#        ifdef DL_NOW
9129#          define LT_DLLAZY_OR_NOW	DL_NOW
9130#        else
9131#          define LT_DLLAZY_OR_NOW	0
9132#        endif
9133#      endif
9134#    endif
9135#  endif
9136#endif
9137
9138#ifdef __cplusplus
9139extern "C" void exit (int);
9140#endif
9141
9142void fnord() { int i=42;}
9143int main ()
9144{
9145  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9146  int status = $lt_dlunknown;
9147
9148  if (self)
9149    {
9150      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9151      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9152      /* dlclose (self); */
9153    }
9154  else
9155    puts (dlerror ());
9156
9157    exit (status);
9158}
9159EOF
9160  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9161  (eval $ac_link) 2>&5
9162  ac_status=$?
9163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9165    (./conftest; exit; ) >&5 2>/dev/null
9166    lt_status=$?
9167    case x$lt_status in
9168      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9169      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9170      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9171    esac
9172  else :
9173    # compilation failed
9174    lt_cv_dlopen_self=no
9175  fi
9176fi
9177rm -fr conftest*
9178
9179
9180fi
9181{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9182echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9183
9184    if test "x$lt_cv_dlopen_self" = xyes; then
9185      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9186      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9187echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9188if test "${lt_cv_dlopen_self_static+set}" = set; then
9189  echo $ECHO_N "(cached) $ECHO_C" >&6
9190else
9191  	  if test "$cross_compiling" = yes; then :
9192  lt_cv_dlopen_self_static=cross
9193else
9194  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9195  lt_status=$lt_dlunknown
9196  cat > conftest.$ac_ext <<EOF
9197#line 9197 "configure"
9198#include "confdefs.h"
9199
9200#if HAVE_DLFCN_H
9201#include <dlfcn.h>
9202#endif
9203
9204#include <stdio.h>
9205
9206#ifdef RTLD_GLOBAL
9207#  define LT_DLGLOBAL		RTLD_GLOBAL
9208#else
9209#  ifdef DL_GLOBAL
9210#    define LT_DLGLOBAL		DL_GLOBAL
9211#  else
9212#    define LT_DLGLOBAL		0
9213#  endif
9214#endif
9215
9216/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9217   find out it does not work in some platform. */
9218#ifndef LT_DLLAZY_OR_NOW
9219#  ifdef RTLD_LAZY
9220#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9221#  else
9222#    ifdef DL_LAZY
9223#      define LT_DLLAZY_OR_NOW		DL_LAZY
9224#    else
9225#      ifdef RTLD_NOW
9226#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9227#      else
9228#        ifdef DL_NOW
9229#          define LT_DLLAZY_OR_NOW	DL_NOW
9230#        else
9231#          define LT_DLLAZY_OR_NOW	0
9232#        endif
9233#      endif
9234#    endif
9235#  endif
9236#endif
9237
9238#ifdef __cplusplus
9239extern "C" void exit (int);
9240#endif
9241
9242void fnord() { int i=42;}
9243int main ()
9244{
9245  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9246  int status = $lt_dlunknown;
9247
9248  if (self)
9249    {
9250      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9251      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9252      /* dlclose (self); */
9253    }
9254  else
9255    puts (dlerror ());
9256
9257    exit (status);
9258}
9259EOF
9260  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9261  (eval $ac_link) 2>&5
9262  ac_status=$?
9263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9265    (./conftest; exit; ) >&5 2>/dev/null
9266    lt_status=$?
9267    case x$lt_status in
9268      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9269      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9270      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9271    esac
9272  else :
9273    # compilation failed
9274    lt_cv_dlopen_self_static=no
9275  fi
9276fi
9277rm -fr conftest*
9278
9279
9280fi
9281{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9282echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9283    fi
9284
9285    CPPFLAGS="$save_CPPFLAGS"
9286    LDFLAGS="$save_LDFLAGS"
9287    LIBS="$save_LIBS"
9288    ;;
9289  esac
9290
9291  case $lt_cv_dlopen_self in
9292  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9293  *) enable_dlopen_self=unknown ;;
9294  esac
9295
9296  case $lt_cv_dlopen_self_static in
9297  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9298  *) enable_dlopen_self_static=unknown ;;
9299  esac
9300fi
9301
9302
9303# Report which library types will actually be built
9304{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9305echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9306{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
9307echo "${ECHO_T}$can_build_shared" >&6; }
9308
9309{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9310echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9311test "$can_build_shared" = "no" && enable_shared=no
9312
9313# On AIX, shared libraries and static libraries use the same namespace, and
9314# are all built from PIC.
9315case $host_os in
9316aix3*)
9317  test "$enable_shared" = yes && enable_static=no
9318  if test -n "$RANLIB"; then
9319    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9320    postinstall_cmds='$RANLIB $lib'
9321  fi
9322  ;;
9323
9324aix4* | aix5*)
9325  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9326    test "$enable_shared" = yes && enable_static=no
9327  fi
9328    ;;
9329esac
9330{ echo "$as_me:$LINENO: result: $enable_shared" >&5
9331echo "${ECHO_T}$enable_shared" >&6; }
9332
9333{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9334echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9335# Make sure either enable_shared or enable_static is yes.
9336test "$enable_shared" = yes || enable_static=yes
9337{ echo "$as_me:$LINENO: result: $enable_static" >&5
9338echo "${ECHO_T}$enable_static" >&6; }
9339
9340# The else clause should only fire when bootstrapping the
9341# libtool distribution, otherwise you forgot to ship ltmain.sh
9342# with your package, and you will get complaints that there are
9343# no rules to generate ltmain.sh.
9344if test -f "$ltmain"; then
9345  # See if we are running on zsh, and set the options which allow our commands through
9346  # without removal of \ escapes.
9347  if test -n "${ZSH_VERSION+set}" ; then
9348    setopt NO_GLOB_SUBST
9349  fi
9350  # Now quote all the things that may contain metacharacters while being
9351  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9352  # variables and quote the copies for generation of the libtool script.
9353  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9354    SED SHELL STRIP \
9355    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9356    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9357    deplibs_check_method reload_flag reload_cmds need_locks \
9358    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9359    lt_cv_sys_global_symbol_to_c_name_address \
9360    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9361    old_postinstall_cmds old_postuninstall_cmds \
9362    compiler \
9363    CC \
9364    LD \
9365    lt_prog_compiler_wl \
9366    lt_prog_compiler_pic \
9367    lt_prog_compiler_static \
9368    lt_prog_compiler_no_builtin_flag \
9369    export_dynamic_flag_spec \
9370    thread_safe_flag_spec \
9371    whole_archive_flag_spec \
9372    enable_shared_with_static_runtimes \
9373    old_archive_cmds \
9374    old_archive_from_new_cmds \
9375    predep_objects \
9376    postdep_objects \
9377    predeps \
9378    postdeps \
9379    compiler_lib_search_path \
9380    archive_cmds \
9381    archive_expsym_cmds \
9382    postinstall_cmds \
9383    postuninstall_cmds \
9384    old_archive_from_expsyms_cmds \
9385    allow_undefined_flag \
9386    no_undefined_flag \
9387    export_symbols_cmds \
9388    hardcode_libdir_flag_spec \
9389    hardcode_libdir_flag_spec_ld \
9390    hardcode_libdir_separator \
9391    hardcode_automatic \
9392    module_cmds \
9393    module_expsym_cmds \
9394    lt_cv_prog_compiler_c_o \
9395    exclude_expsyms \
9396    include_expsyms; do
9397
9398    case $var in
9399    old_archive_cmds | \
9400    old_archive_from_new_cmds | \
9401    archive_cmds | \
9402    archive_expsym_cmds | \
9403    module_cmds | \
9404    module_expsym_cmds | \
9405    old_archive_from_expsyms_cmds | \
9406    export_symbols_cmds | \
9407    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9408    postinstall_cmds | postuninstall_cmds | \
9409    old_postinstall_cmds | old_postuninstall_cmds | \
9410    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9411      # Double-quote double-evaled strings.
9412      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9413      ;;
9414    *)
9415      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9416      ;;
9417    esac
9418  done
9419
9420  case $lt_echo in
9421  *'\$0 --fallback-echo"')
9422    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9423    ;;
9424  esac
9425
9426cfgfile="${ofile}T"
9427  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9428  $rm -f "$cfgfile"
9429  { echo "$as_me:$LINENO: creating $ofile" >&5
9430echo "$as_me: creating $ofile" >&6;}
9431
9432  cat <<__EOF__ >> "$cfgfile"
9433#! $SHELL
9434
9435# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9436# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9437# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9438#
9439# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9440# Free Software Foundation, Inc.
9441#
9442# This file is part of GNU Libtool:
9443# Originally by Gordon Matzigkeit <[email protected]>, 1996
9444#
9445# This program is free software; you can redistribute it and/or modify
9446# it under the terms of the GNU General Public License as published by
9447# the Free Software Foundation; either version 2 of the License, or
9448# (at your option) any later version.
9449#
9450# This program is distributed in the hope that it will be useful, but
9451# WITHOUT ANY WARRANTY; without even the implied warranty of
9452# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9453# General Public License for more details.
9454#
9455# You should have received a copy of the GNU General Public License
9456# along with this program; if not, write to the Free Software
9457# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9458#
9459# As a special exception to the GNU General Public License, if you
9460# distribute this file as part of a program that contains a
9461# configuration script generated by Autoconf, you may include it under
9462# the same distribution terms that you use for the rest of that program.
9463
9464# A sed program that does not truncate output.
9465SED=$lt_SED
9466
9467# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9468Xsed="$SED -e 1s/^X//"
9469
9470# The HP-UX ksh and POSIX shell print the target directory to stdout
9471# if CDPATH is set.
9472(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9473
9474# The names of the tagged configurations supported by this script.
9475available_tags=
9476
9477# ### BEGIN LIBTOOL CONFIG
9478
9479# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9480
9481# Shell to use when invoking shell scripts.
9482SHELL=$lt_SHELL
9483
9484# Whether or not to build shared libraries.
9485build_libtool_libs=$enable_shared
9486
9487# Whether or not to build static libraries.
9488build_old_libs=$enable_static
9489
9490# Whether or not to add -lc for building shared libraries.
9491build_libtool_need_lc=$archive_cmds_need_lc
9492
9493# Whether or not to disallow shared libs when runtime libs are static
9494allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9495
9496# Whether or not to optimize for fast installation.
9497fast_install=$enable_fast_install
9498
9499# The host system.
9500host_alias=$host_alias
9501host=$host
9502host_os=$host_os
9503
9504# The build system.
9505build_alias=$build_alias
9506build=$build
9507build_os=$build_os
9508
9509# An echo program that does not interpret backslashes.
9510echo=$lt_echo
9511
9512# The archiver.
9513AR=$lt_AR
9514AR_FLAGS=$lt_AR_FLAGS
9515
9516# A C compiler.
9517LTCC=$lt_LTCC
9518
9519# LTCC compiler flags.
9520LTCFLAGS=$lt_LTCFLAGS
9521
9522# A language-specific compiler.
9523CC=$lt_compiler
9524
9525# Is the compiler the GNU C compiler?
9526with_gcc=$GCC
9527
9528# An ERE matcher.
9529EGREP=$lt_EGREP
9530
9531# The linker used to build libraries.
9532LD=$lt_LD
9533
9534# Whether we need hard or soft links.
9535LN_S=$lt_LN_S
9536
9537# A BSD-compatible nm program.
9538NM=$lt_NM
9539
9540# A symbol stripping program
9541STRIP=$lt_STRIP
9542
9543# Used to examine libraries when file_magic_cmd begins "file"
9544MAGIC_CMD=$MAGIC_CMD
9545
9546# Used on cygwin: DLL creation program.
9547DLLTOOL="$DLLTOOL"
9548
9549# Used on cygwin: object dumper.
9550OBJDUMP="$OBJDUMP"
9551
9552# Used on cygwin: assembler.
9553AS="$AS"
9554
9555# The name of the directory that contains temporary libtool files.
9556objdir=$objdir
9557
9558# How to create reloadable object files.
9559reload_flag=$lt_reload_flag
9560reload_cmds=$lt_reload_cmds
9561
9562# How to pass a linker flag through the compiler.
9563wl=$lt_lt_prog_compiler_wl
9564
9565# Object file suffix (normally "o").
9566objext="$ac_objext"
9567
9568# Old archive suffix (normally "a").
9569libext="$libext"
9570
9571# Shared library suffix (normally ".so").
9572shrext_cmds='$shrext_cmds'
9573
9574# Executable file suffix (normally "").
9575exeext="$exeext"
9576
9577# Additional compiler flags for building library objects.
9578pic_flag=$lt_lt_prog_compiler_pic
9579pic_mode=$pic_mode
9580
9581# What is the maximum length of a command?
9582max_cmd_len=$lt_cv_sys_max_cmd_len
9583
9584# Does compiler simultaneously support -c and -o options?
9585compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9586
9587# Must we lock files when doing compilation?
9588need_locks=$lt_need_locks
9589
9590# Do we need the lib prefix for modules?
9591need_lib_prefix=$need_lib_prefix
9592
9593# Do we need a version for libraries?
9594need_version=$need_version
9595
9596# Whether dlopen is supported.
9597dlopen_support=$enable_dlopen
9598
9599# Whether dlopen of programs is supported.
9600dlopen_self=$enable_dlopen_self
9601
9602# Whether dlopen of statically linked programs is supported.
9603dlopen_self_static=$enable_dlopen_self_static
9604
9605# Compiler flag to prevent dynamic linking.
9606link_static_flag=$lt_lt_prog_compiler_static
9607
9608# Compiler flag to turn off builtin functions.
9609no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9610
9611# Compiler flag to allow reflexive dlopens.
9612export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9613
9614# Compiler flag to generate shared objects directly from archives.
9615whole_archive_flag_spec=$lt_whole_archive_flag_spec
9616
9617# Compiler flag to generate thread-safe objects.
9618thread_safe_flag_spec=$lt_thread_safe_flag_spec
9619
9620# Library versioning type.
9621version_type=$version_type
9622
9623# Format of library name prefix.
9624libname_spec=$lt_libname_spec
9625
9626# List of archive names.  First name is the real one, the rest are links.
9627# The last name is the one that the linker finds with -lNAME.
9628library_names_spec=$lt_library_names_spec
9629
9630# The coded name of the library, if different from the real name.
9631soname_spec=$lt_soname_spec
9632
9633# Commands used to build and install an old-style archive.
9634RANLIB=$lt_RANLIB
9635old_archive_cmds=$lt_old_archive_cmds
9636old_postinstall_cmds=$lt_old_postinstall_cmds
9637old_postuninstall_cmds=$lt_old_postuninstall_cmds
9638
9639# Create an old-style archive from a shared archive.
9640old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9641
9642# Create a temporary old-style archive to link instead of a shared archive.
9643old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9644
9645# Commands used to build and install a shared archive.
9646archive_cmds=$lt_archive_cmds
9647archive_expsym_cmds=$lt_archive_expsym_cmds
9648postinstall_cmds=$lt_postinstall_cmds
9649postuninstall_cmds=$lt_postuninstall_cmds
9650
9651# Commands used to build a loadable module (assumed same as above if empty)
9652module_cmds=$lt_module_cmds
9653module_expsym_cmds=$lt_module_expsym_cmds
9654
9655# Commands to strip libraries.
9656old_striplib=$lt_old_striplib
9657striplib=$lt_striplib
9658
9659# Dependencies to place before the objects being linked to create a
9660# shared library.
9661predep_objects=$lt_predep_objects
9662
9663# Dependencies to place after the objects being linked to create a
9664# shared library.
9665postdep_objects=$lt_postdep_objects
9666
9667# Dependencies to place before the objects being linked to create a
9668# shared library.
9669predeps=$lt_predeps
9670
9671# Dependencies to place after the objects being linked to create a
9672# shared library.
9673postdeps=$lt_postdeps
9674
9675# The library search path used internally by the compiler when linking
9676# a shared library.
9677compiler_lib_search_path=$lt_compiler_lib_search_path
9678
9679# Method to check whether dependent libraries are shared objects.
9680deplibs_check_method=$lt_deplibs_check_method
9681
9682# Command to use when deplibs_check_method == file_magic.
9683file_magic_cmd=$lt_file_magic_cmd
9684
9685# Flag that allows shared libraries with undefined symbols to be built.
9686allow_undefined_flag=$lt_allow_undefined_flag
9687
9688# Flag that forces no undefined symbols.
9689no_undefined_flag=$lt_no_undefined_flag
9690
9691# Commands used to finish a libtool library installation in a directory.
9692finish_cmds=$lt_finish_cmds
9693
9694# Same as above, but a single script fragment to be evaled but not shown.
9695finish_eval=$lt_finish_eval
9696
9697# Take the output of nm and produce a listing of raw symbols and C names.
9698global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9699
9700# Transform the output of nm in a proper C declaration
9701global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9702
9703# Transform the output of nm in a C name address pair
9704global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9705
9706# This is the shared library runtime path variable.
9707runpath_var=$runpath_var
9708
9709# This is the shared library path variable.
9710shlibpath_var=$shlibpath_var
9711
9712# Is shlibpath searched before the hard-coded library search path?
9713shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9714
9715# How to hardcode a shared library path into an executable.
9716hardcode_action=$hardcode_action
9717
9718# Whether we should hardcode library paths into libraries.
9719hardcode_into_libs=$hardcode_into_libs
9720
9721# Flag to hardcode \$libdir into a binary during linking.
9722# This must work even if \$libdir does not exist.
9723hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9724
9725# If ld is used when linking, flag to hardcode \$libdir into
9726# a binary during linking. This must work even if \$libdir does
9727# not exist.
9728hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9729
9730# Whether we need a single -rpath flag with a separated argument.
9731hardcode_libdir_separator=$lt_hardcode_libdir_separator
9732
9733# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9734# resulting binary.
9735hardcode_direct=$hardcode_direct
9736
9737# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9738# resulting binary.
9739hardcode_minus_L=$hardcode_minus_L
9740
9741# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9742# the resulting binary.
9743hardcode_shlibpath_var=$hardcode_shlibpath_var
9744
9745# Set to yes if building a shared library automatically hardcodes DIR into the library
9746# and all subsequent libraries and executables linked against it.
9747hardcode_automatic=$hardcode_automatic
9748
9749# Variables whose values should be saved in libtool wrapper scripts and
9750# restored at relink time.
9751variables_saved_for_relink="$variables_saved_for_relink"
9752
9753# Whether libtool must link a program against all its dependency libraries.
9754link_all_deplibs=$link_all_deplibs
9755
9756# Compile-time system search path for libraries
9757sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9758
9759# Run-time system search path for libraries
9760sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9761
9762# Fix the shell variable \$srcfile for the compiler.
9763fix_srcfile_path="$fix_srcfile_path"
9764
9765# Set to yes if exported symbols are required.
9766always_export_symbols=$always_export_symbols
9767
9768# The commands to list exported symbols.
9769export_symbols_cmds=$lt_export_symbols_cmds
9770
9771# The commands to extract the exported symbol list from a shared archive.
9772extract_expsyms_cmds=$lt_extract_expsyms_cmds
9773
9774# Symbols that should not be listed in the preloaded symbols.
9775exclude_expsyms=$lt_exclude_expsyms
9776
9777# Symbols that must always be exported.
9778include_expsyms=$lt_include_expsyms
9779
9780# ### END LIBTOOL CONFIG
9781
9782__EOF__
9783
9784
9785  case $host_os in
9786  aix3*)
9787    cat <<\EOF >> "$cfgfile"
9788
9789# AIX sometimes has problems with the GCC collect2 program.  For some
9790# reason, if we set the COLLECT_NAMES environment variable, the problems
9791# vanish in a puff of smoke.
9792if test "X${COLLECT_NAMES+set}" != Xset; then
9793  COLLECT_NAMES=
9794  export COLLECT_NAMES
9795fi
9796EOF
9797    ;;
9798  esac
9799
9800  # We use sed instead of cat because bash on DJGPP gets confused if
9801  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9802  # text mode, it properly converts lines to CR/LF.  This bash problem
9803  # is reportedly fixed, but why not run on old versions too?
9804  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9805
9806  mv -f "$cfgfile" "$ofile" || \
9807    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9808  chmod +x "$ofile"
9809
9810else
9811  # If there is no Makefile yet, we rely on a make rule to execute
9812  # `config.status --recheck' to rerun these tests and create the
9813  # libtool script then.
9814  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9815  if test -f "$ltmain_in"; then
9816    test -f Makefile && make "$ltmain"
9817  fi
9818fi
9819
9820
9821ac_ext=c
9822ac_cpp='$CPP $CPPFLAGS'
9823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9825ac_compiler_gnu=$ac_cv_c_compiler_gnu
9826
9827CC="$lt_save_CC"
9828
9829
9830# Check whether --with-tags was given.
9831if test "${with_tags+set}" = set; then
9832  withval=$with_tags; tagnames="$withval"
9833fi
9834
9835
9836if test -f "$ltmain" && test -n "$tagnames"; then
9837  if test ! -f "${ofile}"; then
9838    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9839echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9840  fi
9841
9842  if test -z "$LTCC"; then
9843    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9844    if test -z "$LTCC"; then
9845      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9846echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9847    else
9848      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9849echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9850    fi
9851  fi
9852  if test -z "$LTCFLAGS"; then
9853    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9854  fi
9855
9856  # Extract list of available tagged configurations in $ofile.
9857  # Note that this assumes the entire list is on one line.
9858  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9859
9860  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9861  for tagname in $tagnames; do
9862    IFS="$lt_save_ifs"
9863    # Check whether tagname contains only valid characters
9864    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9865    "") ;;
9866    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9867echo "$as_me: error: invalid tag name: $tagname" >&2;}
9868   { (exit 1); exit 1; }; }
9869	;;
9870    esac
9871
9872    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9873    then
9874      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9875echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9876   { (exit 1); exit 1; }; }
9877    fi
9878
9879    # Update the list of available tags.
9880    if test -n "$tagname"; then
9881      echo appending configuration tag \"$tagname\" to $ofile
9882
9883      case $tagname in
9884      CXX)
9885	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9886	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9887	    (test "X$CXX" != "Xg++"))) ; then
9888	  ac_ext=cpp
9889ac_cpp='$CXXCPP $CPPFLAGS'
9890ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9891ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9892ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9893
9894
9895
9896
9897archive_cmds_need_lc_CXX=no
9898allow_undefined_flag_CXX=
9899always_export_symbols_CXX=no
9900archive_expsym_cmds_CXX=
9901export_dynamic_flag_spec_CXX=
9902hardcode_direct_CXX=no
9903hardcode_libdir_flag_spec_CXX=
9904hardcode_libdir_flag_spec_ld_CXX=
9905hardcode_libdir_separator_CXX=
9906hardcode_minus_L_CXX=no
9907hardcode_shlibpath_var_CXX=unsupported
9908hardcode_automatic_CXX=no
9909module_cmds_CXX=
9910module_expsym_cmds_CXX=
9911link_all_deplibs_CXX=unknown
9912old_archive_cmds_CXX=$old_archive_cmds
9913no_undefined_flag_CXX=
9914whole_archive_flag_spec_CXX=
9915enable_shared_with_static_runtimes_CXX=no
9916
9917# Dependencies to place before and after the object being linked:
9918predep_objects_CXX=
9919postdep_objects_CXX=
9920predeps_CXX=
9921postdeps_CXX=
9922compiler_lib_search_path_CXX=
9923
9924# Source file extension for C++ test sources.
9925ac_ext=cpp
9926
9927# Object file extension for compiled C++ test sources.
9928objext=o
9929objext_CXX=$objext
9930
9931# Code to be used in simple compile tests
9932lt_simple_compile_test_code="int some_variable = 0;\n"
9933
9934# Code to be used in simple link tests
9935lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9936
9937# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9938
9939# If no C compiler was specified, use CC.
9940LTCC=${LTCC-"$CC"}
9941
9942# If no C compiler flags were specified, use CFLAGS.
9943LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9944
9945# Allow CC to be a program name with arguments.
9946compiler=$CC
9947
9948
9949# save warnings/boilerplate of simple test code
9950ac_outfile=conftest.$ac_objext
9951printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9952eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9953_lt_compiler_boilerplate=`cat conftest.err`
9954$rm conftest*
9955
9956ac_outfile=conftest.$ac_objext
9957printf "$lt_simple_link_test_code" >conftest.$ac_ext
9958eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9959_lt_linker_boilerplate=`cat conftest.err`
9960$rm conftest*
9961
9962
9963# Allow CC to be a program name with arguments.
9964lt_save_CC=$CC
9965lt_save_LD=$LD
9966lt_save_GCC=$GCC
9967GCC=$GXX
9968lt_save_with_gnu_ld=$with_gnu_ld
9969lt_save_path_LD=$lt_cv_path_LD
9970if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9971  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9972else
9973  $as_unset lt_cv_prog_gnu_ld
9974fi
9975if test -n "${lt_cv_path_LDCXX+set}"; then
9976  lt_cv_path_LD=$lt_cv_path_LDCXX
9977else
9978  $as_unset lt_cv_path_LD
9979fi
9980test -z "${LDCXX+set}" || LD=$LDCXX
9981CC=${CXX-"c++"}
9982compiler=$CC
9983compiler_CXX=$CC
9984for cc_temp in $compiler""; do
9985  case $cc_temp in
9986    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9987    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9988    \-*) ;;
9989    *) break;;
9990  esac
9991done
9992cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9993
9994
9995# We don't want -fno-exception wen compiling C++ code, so set the
9996# no_builtin_flag separately
9997if test "$GXX" = yes; then
9998  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9999else
10000  lt_prog_compiler_no_builtin_flag_CXX=
10001fi
10002
10003if test "$GXX" = yes; then
10004  # Set up default GNU C++ configuration
10005
10006
10007# Check whether --with-gnu-ld was given.
10008if test "${with_gnu_ld+set}" = set; then
10009  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10010else
10011  with_gnu_ld=no
10012fi
10013
10014ac_prog=ld
10015if test "$GCC" = yes; then
10016  # Check if gcc -print-prog-name=ld gives a path.
10017  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10018echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10019  case $host in
10020  *-*-mingw*)
10021    # gcc leaves a trailing carriage return which upsets mingw
10022    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10023  *)
10024    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10025  esac
10026  case $ac_prog in
10027    # Accept absolute paths.
10028    [\\/]* | ?:[\\/]*)
10029      re_direlt='/[^/][^/]*/\.\./'
10030      # Canonicalize the pathname of ld
10031      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10032      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10033	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10034      done
10035      test -z "$LD" && LD="$ac_prog"
10036      ;;
10037  "")
10038    # If it fails, then pretend we aren't using GCC.
10039    ac_prog=ld
10040    ;;
10041  *)
10042    # If it is relative, then search for the first ld in PATH.
10043    with_gnu_ld=unknown
10044    ;;
10045  esac
10046elif test "$with_gnu_ld" = yes; then
10047  { echo "$as_me:$LINENO: checking for GNU ld" >&5
10048echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10049else
10050  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10051echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10052fi
10053if test "${lt_cv_path_LD+set}" = set; then
10054  echo $ECHO_N "(cached) $ECHO_C" >&6
10055else
10056  if test -z "$LD"; then
10057  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10058  for ac_dir in $PATH; do
10059    IFS="$lt_save_ifs"
10060    test -z "$ac_dir" && ac_dir=.
10061    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10062      lt_cv_path_LD="$ac_dir/$ac_prog"
10063      # Check to see if the program is GNU ld.  I'd rather use --version,
10064      # but apparently some variants of GNU ld only accept -v.
10065      # Break only if it was the GNU/non-GNU ld that we prefer.
10066      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10067      *GNU* | *'with BFD'*)
10068	test "$with_gnu_ld" != no && break
10069	;;
10070      *)
10071	test "$with_gnu_ld" != yes && break
10072	;;
10073      esac
10074    fi
10075  done
10076  IFS="$lt_save_ifs"
10077else
10078  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10079fi
10080fi
10081
10082LD="$lt_cv_path_LD"
10083if test -n "$LD"; then
10084  { echo "$as_me:$LINENO: result: $LD" >&5
10085echo "${ECHO_T}$LD" >&6; }
10086else
10087  { echo "$as_me:$LINENO: result: no" >&5
10088echo "${ECHO_T}no" >&6; }
10089fi
10090test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10091echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10092   { (exit 1); exit 1; }; }
10093{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10094echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10095if test "${lt_cv_prog_gnu_ld+set}" = set; then
10096  echo $ECHO_N "(cached) $ECHO_C" >&6
10097else
10098  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10099case `$LD -v 2>&1 </dev/null` in
10100*GNU* | *'with BFD'*)
10101  lt_cv_prog_gnu_ld=yes
10102  ;;
10103*)
10104  lt_cv_prog_gnu_ld=no
10105  ;;
10106esac
10107fi
10108{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10109echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10110with_gnu_ld=$lt_cv_prog_gnu_ld
10111
10112
10113
10114  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10115  # archiving commands below assume that GNU ld is being used.
10116  if test "$with_gnu_ld" = yes; then
10117    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10118    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'
10119
10120    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10121    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10122
10123    # If archive_cmds runs LD, not CC, wlarc should be empty
10124    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10125    #     investigate it a little bit more. (MM)
10126    wlarc='${wl}'
10127
10128    # ancient GNU ld didn't support --whole-archive et. al.
10129    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10130	grep 'no-whole-archive' > /dev/null; then
10131      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10132    else
10133      whole_archive_flag_spec_CXX=
10134    fi
10135  else
10136    with_gnu_ld=no
10137    wlarc=
10138
10139    # A generic and very simple default shared library creation
10140    # command for GNU C++ for the case where it uses the native
10141    # linker, instead of GNU ld.  If possible, this setting should
10142    # overridden to take advantage of the native linker features on
10143    # the platform it is being used on.
10144    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10145  fi
10146
10147  # Commands to make compiler produce verbose output that lists
10148  # what "hidden" libraries, object files and flags are used when
10149  # linking a shared library.
10150  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10151
10152else
10153  GXX=no
10154  with_gnu_ld=no
10155  wlarc=
10156fi
10157
10158# PORTME: fill in a description of your system's C++ link characteristics
10159{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10160echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10161ld_shlibs_CXX=yes
10162case $host_os in
10163  aix3*)
10164    # FIXME: insert proper C++ library support
10165    ld_shlibs_CXX=no
10166    ;;
10167  aix4* | aix5*)
10168    if test "$host_cpu" = ia64; then
10169      # On IA64, the linker does run time linking by default, so we don't
10170      # have to do anything special.
10171      aix_use_runtimelinking=no
10172      exp_sym_flag='-Bexport'
10173      no_entry_flag=""
10174    else
10175      aix_use_runtimelinking=no
10176
10177      # Test if we are trying to use run time linking or normal
10178      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10179      # need to do runtime linking.
10180      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10181	for ld_flag in $LDFLAGS; do
10182	  case $ld_flag in
10183	  *-brtl*)
10184	    aix_use_runtimelinking=yes
10185	    break
10186	    ;;
10187	  esac
10188	done
10189	;;
10190      esac
10191
10192      exp_sym_flag='-bexport'
10193      no_entry_flag='-bnoentry'
10194    fi
10195
10196    # When large executables or shared objects are built, AIX ld can
10197    # have problems creating the table of contents.  If linking a library
10198    # or program results in "error TOC overflow" add -mminimal-toc to
10199    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10200    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10201
10202    archive_cmds_CXX=''
10203    hardcode_direct_CXX=yes
10204    hardcode_libdir_separator_CXX=':'
10205    link_all_deplibs_CXX=yes
10206
10207    if test "$GXX" = yes; then
10208      case $host_os in aix4.[012]|aix4.[012].*)
10209      # We only want to do this on AIX 4.2 and lower, the check
10210      # below for broken collect2 doesn't work under 4.3+
10211	collect2name=`${CC} -print-prog-name=collect2`
10212	if test -f "$collect2name" && \
10213	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10214	then
10215	  # We have reworked collect2
10216	  hardcode_direct_CXX=yes
10217	else
10218	  # We have old collect2
10219	  hardcode_direct_CXX=unsupported
10220	  # It fails to find uninstalled libraries when the uninstalled
10221	  # path is not listed in the libpath.  Setting hardcode_minus_L
10222	  # to unsupported forces relinking
10223	  hardcode_minus_L_CXX=yes
10224	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10225	  hardcode_libdir_separator_CXX=
10226	fi
10227	;;
10228      esac
10229      shared_flag='-shared'
10230      if test "$aix_use_runtimelinking" = yes; then
10231	shared_flag="$shared_flag "'${wl}-G'
10232      fi
10233    else
10234      # not using gcc
10235      if test "$host_cpu" = ia64; then
10236	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10237	# chokes on -Wl,-G. The following line is correct:
10238	shared_flag='-G'
10239      else
10240	if test "$aix_use_runtimelinking" = yes; then
10241	  shared_flag='${wl}-G'
10242	else
10243	  shared_flag='${wl}-bM:SRE'
10244	fi
10245      fi
10246    fi
10247
10248    # It seems that -bexpall does not export symbols beginning with
10249    # underscore (_), so it is better to generate a list of symbols to export.
10250    always_export_symbols_CXX=yes
10251    if test "$aix_use_runtimelinking" = yes; then
10252      # Warning - without using the other runtime loading flags (-brtl),
10253      # -berok will link without error, but may produce a broken library.
10254      allow_undefined_flag_CXX='-berok'
10255      # Determine the default libpath from the value encoded in an empty executable.
10256      cat >conftest.$ac_ext <<_ACEOF
10257/* confdefs.h.  */
10258_ACEOF
10259cat confdefs.h >>conftest.$ac_ext
10260cat >>conftest.$ac_ext <<_ACEOF
10261/* end confdefs.h.  */
10262
10263int
10264main ()
10265{
10266
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_cxx_werror_flag" ||
10286	 test ! -s conftest.err
10287       } && test -s conftest$ac_exeext &&
10288       $as_test_x conftest$ac_exeext; then
10289
10290aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10291}'`
10292# Check for a 64-bit object if we didn't find anything.
10293if 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; }
10294}'`; fi
10295else
10296  echo "$as_me: failed program was:" >&5
10297sed 's/^/| /' conftest.$ac_ext >&5
10298
10299
10300fi
10301
10302rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10303      conftest$ac_exeext conftest.$ac_ext
10304if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10305
10306      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10307
10308      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"
10309     else
10310      if test "$host_cpu" = ia64; then
10311	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10312	allow_undefined_flag_CXX="-z nodefs"
10313	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"
10314      else
10315	# Determine the default libpath from the value encoded in an empty executable.
10316	cat >conftest.$ac_ext <<_ACEOF
10317/* confdefs.h.  */
10318_ACEOF
10319cat confdefs.h >>conftest.$ac_ext
10320cat >>conftest.$ac_ext <<_ACEOF
10321/* end confdefs.h.  */
10322
10323int
10324main ()
10325{
10326
10327  ;
10328  return 0;
10329}
10330_ACEOF
10331rm -f conftest.$ac_objext conftest$ac_exeext
10332if { (ac_try="$ac_link"
10333case "(($ac_try" in
10334  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10335  *) ac_try_echo=$ac_try;;
10336esac
10337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10338  (eval "$ac_link") 2>conftest.er1
10339  ac_status=$?
10340  grep -v '^ *+' conftest.er1 >conftest.err
10341  rm -f conftest.er1
10342  cat conftest.err >&5
10343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344  (exit $ac_status); } && {
10345	 test -z "$ac_cxx_werror_flag" ||
10346	 test ! -s conftest.err
10347       } && test -s conftest$ac_exeext &&
10348       $as_test_x conftest$ac_exeext; then
10349
10350aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10351}'`
10352# Check for a 64-bit object if we didn't find anything.
10353if 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; }
10354}'`; fi
10355else
10356  echo "$as_me: failed program was:" >&5
10357sed 's/^/| /' conftest.$ac_ext >&5
10358
10359
10360fi
10361
10362rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10363      conftest$ac_exeext conftest.$ac_ext
10364if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10365
10366	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10367	# Warning - without using the other run time loading flags,
10368	# -berok will link without error, but may produce a broken library.
10369	no_undefined_flag_CXX=' ${wl}-bernotok'
10370	allow_undefined_flag_CXX=' ${wl}-berok'
10371	# Exported symbols can be pulled into shared objects from archives
10372	whole_archive_flag_spec_CXX='$convenience'
10373	archive_cmds_need_lc_CXX=yes
10374	# This is similar to how AIX traditionally builds its shared libraries.
10375	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'
10376      fi
10377    fi
10378    ;;
10379
10380  beos*)
10381    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10382      allow_undefined_flag_CXX=unsupported
10383      # Joseph Beckenbach <[email protected]> says some releases of gcc
10384      # support --undefined.  This deserves some investigation.  FIXME
10385      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10386    else
10387      ld_shlibs_CXX=no
10388    fi
10389    ;;
10390
10391  chorus*)
10392    case $cc_basename in
10393      *)
10394	# FIXME: insert proper C++ library support
10395	ld_shlibs_CXX=no
10396	;;
10397    esac
10398    ;;
10399
10400  cygwin* | mingw* | pw32*)
10401    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10402    # as there is no search path for DLLs.
10403    hardcode_libdir_flag_spec_CXX='-L$libdir'
10404    allow_undefined_flag_CXX=unsupported
10405    always_export_symbols_CXX=no
10406    enable_shared_with_static_runtimes_CXX=yes
10407
10408    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10409      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'
10410      # If the export-symbols file already is a .def file (1st line
10411      # is EXPORTS), use it as is; otherwise, prepend...
10412      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10413	cp $export_symbols $output_objdir/$soname.def;
10414      else
10415	echo EXPORTS > $output_objdir/$soname.def;
10416	cat $export_symbols >> $output_objdir/$soname.def;
10417      fi~
10418      $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'
10419    else
10420      ld_shlibs_CXX=no
10421    fi
10422  ;;
10423      darwin* | rhapsody*)
10424        case $host_os in
10425        rhapsody* | darwin1.[012])
10426         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10427         ;;
10428       *) # Darwin 1.3 on
10429         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10430           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10431         else
10432           case ${MACOSX_DEPLOYMENT_TARGET} in
10433             10.[012])
10434               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10435               ;;
10436             10.*)
10437               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10438               ;;
10439           esac
10440         fi
10441         ;;
10442        esac
10443      archive_cmds_need_lc_CXX=no
10444      hardcode_direct_CXX=no
10445      hardcode_automatic_CXX=yes
10446      hardcode_shlibpath_var_CXX=unsupported
10447      whole_archive_flag_spec_CXX=''
10448      link_all_deplibs_CXX=yes
10449
10450    if test "$GXX" = yes ; then
10451      lt_int_apple_cc_single_mod=no
10452      output_verbose_link_cmd='echo'
10453      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10454       lt_int_apple_cc_single_mod=yes
10455      fi
10456      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10457       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10458      else
10459          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'
10460        fi
10461        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10462        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10463          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10464            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}'
10465          else
10466            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}'
10467          fi
10468            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}'
10469      else
10470      case $cc_basename in
10471        xlc*)
10472         output_verbose_link_cmd='echo'
10473          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'
10474          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10475          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10476          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}'
10477          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}'
10478          ;;
10479       *)
10480         ld_shlibs_CXX=no
10481          ;;
10482      esac
10483      fi
10484        ;;
10485
10486  dgux*)
10487    case $cc_basename in
10488      ec++*)
10489	# FIXME: insert proper C++ library support
10490	ld_shlibs_CXX=no
10491	;;
10492      ghcx*)
10493	# Green Hills C++ Compiler
10494	# FIXME: insert proper C++ library support
10495	ld_shlibs_CXX=no
10496	;;
10497      *)
10498	# FIXME: insert proper C++ library support
10499	ld_shlibs_CXX=no
10500	;;
10501    esac
10502    ;;
10503  freebsd[12]*)
10504    # C++ shared libraries reported to be fairly broken before switch to ELF
10505    ld_shlibs_CXX=no
10506    ;;
10507  freebsd-elf*)
10508    archive_cmds_need_lc_CXX=no
10509    ;;
10510  freebsd* | kfreebsd*-gnu | dragonfly*)
10511    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10512    # conventions
10513    ld_shlibs_CXX=yes
10514    ;;
10515  gnu*)
10516    ;;
10517  hpux9*)
10518    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10519    hardcode_libdir_separator_CXX=:
10520    export_dynamic_flag_spec_CXX='${wl}-E'
10521    hardcode_direct_CXX=yes
10522    hardcode_minus_L_CXX=yes # Not in the search PATH,
10523				# but as the default
10524				# location of the library.
10525
10526    case $cc_basename in
10527    CC*)
10528      # FIXME: insert proper C++ library support
10529      ld_shlibs_CXX=no
10530      ;;
10531    aCC*)
10532      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'
10533      # Commands to make compiler produce verbose output that lists
10534      # what "hidden" libraries, object files and flags are used when
10535      # linking a shared library.
10536      #
10537      # There doesn't appear to be a way to prevent this compiler from
10538      # explicitly linking system object files so we need to strip them
10539      # from the output so that they don't get included in the library
10540      # dependencies.
10541      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'
10542      ;;
10543    *)
10544      if test "$GXX" = yes; then
10545        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'
10546      else
10547        # FIXME: insert proper C++ library support
10548        ld_shlibs_CXX=no
10549      fi
10550      ;;
10551    esac
10552    ;;
10553  hpux10*|hpux11*)
10554    if test $with_gnu_ld = no; then
10555      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10556      hardcode_libdir_separator_CXX=:
10557
10558      case $host_cpu in
10559      hppa*64*|ia64*)
10560	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10561        ;;
10562      *)
10563	export_dynamic_flag_spec_CXX='${wl}-E'
10564        ;;
10565      esac
10566    fi
10567    case $host_cpu in
10568    hppa*64*|ia64*)
10569      hardcode_direct_CXX=no
10570      hardcode_shlibpath_var_CXX=no
10571      ;;
10572    *)
10573      hardcode_direct_CXX=yes
10574      hardcode_minus_L_CXX=yes # Not in the search PATH,
10575					      # but as the default
10576					      # location of the library.
10577      ;;
10578    esac
10579
10580    case $cc_basename in
10581      CC*)
10582	# FIXME: insert proper C++ library support
10583	ld_shlibs_CXX=no
10584	;;
10585      aCC*)
10586	case $host_cpu in
10587	hppa*64*)
10588	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10589	  ;;
10590	ia64*)
10591	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10592	  ;;
10593	*)
10594	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10595	  ;;
10596	esac
10597	# Commands to make compiler produce verbose output that lists
10598	# what "hidden" libraries, object files and flags are used when
10599	# linking a shared library.
10600	#
10601	# There doesn't appear to be a way to prevent this compiler from
10602	# explicitly linking system object files so we need to strip them
10603	# from the output so that they don't get included in the library
10604	# dependencies.
10605	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'
10606	;;
10607      *)
10608	if test "$GXX" = yes; then
10609	  if test $with_gnu_ld = no; then
10610	    case $host_cpu in
10611	    hppa*64*)
10612	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10613	      ;;
10614	    ia64*)
10615	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10616	      ;;
10617	    *)
10618	      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'
10619	      ;;
10620	    esac
10621	  fi
10622	else
10623	  # FIXME: insert proper C++ library support
10624	  ld_shlibs_CXX=no
10625	fi
10626	;;
10627    esac
10628    ;;
10629  interix3*)
10630    hardcode_direct_CXX=no
10631    hardcode_shlibpath_var_CXX=no
10632    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10633    export_dynamic_flag_spec_CXX='${wl}-E'
10634    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10635    # Instead, shared libraries are loaded at an image base (0x10000000 by
10636    # default) and relocated if they conflict, which is a slow very memory
10637    # consuming and fragmenting process.  To avoid this, we pick a random,
10638    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10639    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10640    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'
10641    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'
10642    ;;
10643  irix5* | irix6*)
10644    case $cc_basename in
10645      CC*)
10646	# SGI C++
10647	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'
10648
10649	# Archives containing C++ object files must be created using
10650	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10651	# necessary to make sure instantiated templates are included
10652	# in the archive.
10653	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10654	;;
10655      *)
10656	if test "$GXX" = yes; then
10657	  if test "$with_gnu_ld" = no; then
10658	    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'
10659	  else
10660	    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'
10661	  fi
10662	fi
10663	link_all_deplibs_CXX=yes
10664	;;
10665    esac
10666    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10667    hardcode_libdir_separator_CXX=:
10668    ;;
10669  linux*)
10670    case $cc_basename in
10671      KCC*)
10672	# Kuck and Associates, Inc. (KAI) C++ Compiler
10673
10674	# KCC will only create a shared library if the output file
10675	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10676	# to its proper name (with version) after linking.
10677	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'
10678	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'
10679	# Commands to make compiler produce verbose output that lists
10680	# what "hidden" libraries, object files and flags are used when
10681	# linking a shared library.
10682	#
10683	# There doesn't appear to be a way to prevent this compiler from
10684	# explicitly linking system object files so we need to strip them
10685	# from the output so that they don't get included in the library
10686	# dependencies.
10687	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'
10688
10689	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10690	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10691
10692	# Archives containing C++ object files must be created using
10693	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10694	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10695	;;
10696      icpc*)
10697	# Intel C++
10698	with_gnu_ld=yes
10699	# version 8.0 and above of icpc choke on multiply defined symbols
10700	# if we add $predep_objects and $postdep_objects, however 7.1 and
10701	# earlier do not add the objects themselves.
10702	case `$CC -V 2>&1` in
10703	*"Version 7."*)
10704  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10705  	  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'
10706	  ;;
10707	*)  # Version 8.0 or newer
10708	  tmp_idyn=
10709	  case $host_cpu in
10710	    ia64*) tmp_idyn=' -i_dynamic';;
10711	  esac
10712  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10713	  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'
10714	  ;;
10715	esac
10716	archive_cmds_need_lc_CXX=no
10717	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10718	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10719	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10720	;;
10721      pgCC*)
10722        # Portland Group C++ compiler
10723	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10724  	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'
10725
10726	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10727	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10728	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'
10729        ;;
10730      cxx*)
10731	# Compaq C++
10732	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10733	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'
10734
10735	runpath_var=LD_RUN_PATH
10736	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10737	hardcode_libdir_separator_CXX=:
10738
10739	# Commands to make compiler produce verbose output that lists
10740	# what "hidden" libraries, object files and flags are used when
10741	# linking a shared library.
10742	#
10743	# There doesn't appear to be a way to prevent this compiler from
10744	# explicitly linking system object files so we need to strip them
10745	# from the output so that they don't get included in the library
10746	# dependencies.
10747	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'
10748	;;
10749    esac
10750    ;;
10751  lynxos*)
10752    # FIXME: insert proper C++ library support
10753    ld_shlibs_CXX=no
10754    ;;
10755  m88k*)
10756    # FIXME: insert proper C++ library support
10757    ld_shlibs_CXX=no
10758    ;;
10759  mvs*)
10760    case $cc_basename in
10761      cxx*)
10762	# FIXME: insert proper C++ library support
10763	ld_shlibs_CXX=no
10764	;;
10765      *)
10766	# FIXME: insert proper C++ library support
10767	ld_shlibs_CXX=no
10768	;;
10769    esac
10770    ;;
10771  netbsd*)
10772    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10773      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10774      wlarc=
10775      hardcode_libdir_flag_spec_CXX='-R$libdir'
10776      hardcode_direct_CXX=yes
10777      hardcode_shlibpath_var_CXX=no
10778    fi
10779    # Workaround some broken pre-1.5 toolchains
10780    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10781    ;;
10782  openbsd2*)
10783    # C++ shared libraries are fairly broken
10784    ld_shlibs_CXX=no
10785    ;;
10786  openbsd*)
10787    hardcode_direct_CXX=yes
10788    hardcode_shlibpath_var_CXX=no
10789    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10790    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10791    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10792      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10793      export_dynamic_flag_spec_CXX='${wl}-E'
10794      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10795    fi
10796    output_verbose_link_cmd='echo'
10797    ;;
10798  osf3*)
10799    case $cc_basename in
10800      KCC*)
10801	# Kuck and Associates, Inc. (KAI) C++ Compiler
10802
10803	# KCC will only create a shared library if the output file
10804	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10805	# to its proper name (with version) after linking.
10806	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'
10807
10808	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10809	hardcode_libdir_separator_CXX=:
10810
10811	# Archives containing C++ object files must be created using
10812	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10813	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10814
10815	;;
10816      RCC*)
10817	# Rational C++ 2.4.1
10818	# FIXME: insert proper C++ library support
10819	ld_shlibs_CXX=no
10820	;;
10821      cxx*)
10822	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10823	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'
10824
10825	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10826	hardcode_libdir_separator_CXX=:
10827
10828	# Commands to make compiler produce verbose output that lists
10829	# what "hidden" libraries, object files and flags are used when
10830	# linking a shared library.
10831	#
10832	# There doesn't appear to be a way to prevent this compiler from
10833	# explicitly linking system object files so we need to strip them
10834	# from the output so that they don't get included in the library
10835	# dependencies.
10836	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'
10837	;;
10838      *)
10839	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10840	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10841	  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'
10842
10843	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10844	  hardcode_libdir_separator_CXX=:
10845
10846	  # Commands to make compiler produce verbose output that lists
10847	  # what "hidden" libraries, object files and flags are used when
10848	  # linking a shared library.
10849	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10850
10851	else
10852	  # FIXME: insert proper C++ library support
10853	  ld_shlibs_CXX=no
10854	fi
10855	;;
10856    esac
10857    ;;
10858  osf4* | osf5*)
10859    case $cc_basename in
10860      KCC*)
10861	# Kuck and Associates, Inc. (KAI) C++ Compiler
10862
10863	# KCC will only create a shared library if the output file
10864	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10865	# to its proper name (with version) after linking.
10866	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'
10867
10868	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10869	hardcode_libdir_separator_CXX=:
10870
10871	# Archives containing C++ object files must be created using
10872	# the KAI C++ compiler.
10873	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10874	;;
10875      RCC*)
10876	# Rational C++ 2.4.1
10877	# FIXME: insert proper C++ library support
10878	ld_shlibs_CXX=no
10879	;;
10880      cxx*)
10881	allow_undefined_flag_CXX=' -expect_unresolved \*'
10882	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'
10883	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10884	  echo "-hidden">> $lib.exp~
10885	  $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~
10886	  $rm $lib.exp'
10887
10888	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10889	hardcode_libdir_separator_CXX=:
10890
10891	# Commands to make compiler produce verbose output that lists
10892	# what "hidden" libraries, object files and flags are used when
10893	# linking a shared library.
10894	#
10895	# There doesn't appear to be a way to prevent this compiler from
10896	# explicitly linking system object files so we need to strip them
10897	# from the output so that they don't get included in the library
10898	# dependencies.
10899	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'
10900	;;
10901      *)
10902	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10903	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10904	 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'
10905
10906	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10907	  hardcode_libdir_separator_CXX=:
10908
10909	  # Commands to make compiler produce verbose output that lists
10910	  # what "hidden" libraries, object files and flags are used when
10911	  # linking a shared library.
10912	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10913
10914	else
10915	  # FIXME: insert proper C++ library support
10916	  ld_shlibs_CXX=no
10917	fi
10918	;;
10919    esac
10920    ;;
10921  psos*)
10922    # FIXME: insert proper C++ library support
10923    ld_shlibs_CXX=no
10924    ;;
10925  sunos4*)
10926    case $cc_basename in
10927      CC*)
10928	# Sun C++ 4.x
10929	# FIXME: insert proper C++ library support
10930	ld_shlibs_CXX=no
10931	;;
10932      lcc*)
10933	# Lucid
10934	# FIXME: insert proper C++ library support
10935	ld_shlibs_CXX=no
10936	;;
10937      *)
10938	# FIXME: insert proper C++ library support
10939	ld_shlibs_CXX=no
10940	;;
10941    esac
10942    ;;
10943  solaris*)
10944    case $cc_basename in
10945      CC*)
10946	# Sun C++ 4.2, 5.x and Centerline C++
10947        archive_cmds_need_lc_CXX=yes
10948	no_undefined_flag_CXX=' -zdefs'
10949	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10950	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10951	$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'
10952
10953	hardcode_libdir_flag_spec_CXX='-R$libdir'
10954	hardcode_shlibpath_var_CXX=no
10955	case $host_os in
10956	  solaris2.[0-5] | solaris2.[0-5].*) ;;
10957	  *)
10958	    # The C++ compiler is used as linker so we must use $wl
10959	    # flag to pass the commands to the underlying system
10960	    # linker. We must also pass each convience library through
10961	    # to the system linker between allextract/defaultextract.
10962	    # The C++ compiler will combine linker options so we
10963	    # cannot just pass the convience library names through
10964	    # without $wl.
10965	    # Supported since Solaris 2.6 (maybe 2.5.1?)
10966	    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'
10967	    ;;
10968	esac
10969	link_all_deplibs_CXX=yes
10970
10971	output_verbose_link_cmd='echo'
10972
10973	# Archives containing C++ object files must be created using
10974	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
10975	# necessary to make sure instantiated templates are included
10976	# in the archive.
10977	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10978	;;
10979      gcx*)
10980	# Green Hills C++ Compiler
10981	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10982
10983	# The C++ compiler must be used to create the archive.
10984	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10985	;;
10986      *)
10987	# GNU C++ compiler with Solaris linker
10988	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10989	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10990	  if $CC --version | grep -v '^2\.7' > /dev/null; then
10991	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10992	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10993		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10994
10995	    # Commands to make compiler produce verbose output that lists
10996	    # what "hidden" libraries, object files and flags are used when
10997	    # linking a shared library.
10998	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10999	  else
11000	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11001	    # platform.
11002	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11003	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11004		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11005
11006	    # Commands to make compiler produce verbose output that lists
11007	    # what "hidden" libraries, object files and flags are used when
11008	    # linking a shared library.
11009	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11010	  fi
11011
11012	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11013	fi
11014	;;
11015    esac
11016    ;;
11017  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11018    no_undefined_flag_CXX='${wl}-z,text'
11019    archive_cmds_need_lc_CXX=no
11020    hardcode_shlibpath_var_CXX=no
11021    runpath_var='LD_RUN_PATH'
11022
11023    case $cc_basename in
11024      CC*)
11025	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11026	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11027	;;
11028      *)
11029	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11030	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11031	;;
11032    esac
11033    ;;
11034  sysv5* | sco3.2v5* | sco5v6*)
11035    # Note: We can NOT use -z defs as we might desire, because we do not
11036    # link with -lc, and that would cause any symbols used from libc to
11037    # always be unresolved, which means just about no library would
11038    # ever link correctly.  If we're not using GNU ld we use -z text
11039    # though, which does catch some bad symbols but isn't as heavy-handed
11040    # as -z defs.
11041    # For security reasons, it is highly recommended that you always
11042    # use absolute paths for naming shared libraries, and exclude the
11043    # DT_RUNPATH tag from executables and libraries.  But doing so
11044    # requires that you compile everything twice, which is a pain.
11045    # So that behaviour is only enabled if SCOABSPATH is set to a
11046    # non-empty value in the environment.  Most likely only useful for
11047    # creating official distributions of packages.
11048    # This is a hack until libtool officially supports absolute path
11049    # names for shared libraries.
11050    no_undefined_flag_CXX='${wl}-z,text'
11051    allow_undefined_flag_CXX='${wl}-z,nodefs'
11052    archive_cmds_need_lc_CXX=no
11053    hardcode_shlibpath_var_CXX=no
11054    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11055    hardcode_libdir_separator_CXX=':'
11056    link_all_deplibs_CXX=yes
11057    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11058    runpath_var='LD_RUN_PATH'
11059
11060    case $cc_basename in
11061      CC*)
11062	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11063	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11064	;;
11065      *)
11066	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11067	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11068	;;
11069    esac
11070    ;;
11071  tandem*)
11072    case $cc_basename in
11073      NCC*)
11074	# NonStop-UX NCC 3.20
11075	# FIXME: insert proper C++ library support
11076	ld_shlibs_CXX=no
11077	;;
11078      *)
11079	# FIXME: insert proper C++ library support
11080	ld_shlibs_CXX=no
11081	;;
11082    esac
11083    ;;
11084  vxworks*)
11085    # FIXME: insert proper C++ library support
11086    ld_shlibs_CXX=no
11087    ;;
11088  *)
11089    # FIXME: insert proper C++ library support
11090    ld_shlibs_CXX=no
11091    ;;
11092esac
11093{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11094echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11095test "$ld_shlibs_CXX" = no && can_build_shared=no
11096
11097GCC_CXX="$GXX"
11098LD_CXX="$LD"
11099
11100
11101cat > conftest.$ac_ext <<EOF
11102class Foo
11103{
11104public:
11105  Foo (void) { a = 0; }
11106private:
11107  int a;
11108};
11109EOF
11110
11111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11112  (eval $ac_compile) 2>&5
11113  ac_status=$?
11114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115  (exit $ac_status); }; then
11116  # Parse the compiler output and extract the necessary
11117  # objects, libraries and library flags.
11118
11119  # Sentinel used to keep track of whether or not we are before
11120  # the conftest object file.
11121  pre_test_object_deps_done=no
11122
11123  # The `*' in the case matches for architectures that use `case' in
11124  # $output_verbose_cmd can trigger glob expansion during the loop
11125  # eval without this substitution.
11126  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11127
11128  for p in `eval $output_verbose_link_cmd`; do
11129    case $p in
11130
11131    -L* | -R* | -l*)
11132       # Some compilers place space between "-{L,R}" and the path.
11133       # Remove the space.
11134       if test $p = "-L" \
11135	  || test $p = "-R"; then
11136	 prev=$p
11137	 continue
11138       else
11139	 prev=
11140       fi
11141
11142       if test "$pre_test_object_deps_done" = no; then
11143	 case $p in
11144	 -L* | -R*)
11145	   # Internal compiler library paths should come after those
11146	   # provided the user.  The postdeps already come after the
11147	   # user supplied libs so there is no need to process them.
11148	   if test -z "$compiler_lib_search_path_CXX"; then
11149	     compiler_lib_search_path_CXX="${prev}${p}"
11150	   else
11151	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11152	   fi
11153	   ;;
11154	 # The "-l" case would never come before the object being
11155	 # linked, so don't bother handling this case.
11156	 esac
11157       else
11158	 if test -z "$postdeps_CXX"; then
11159	   postdeps_CXX="${prev}${p}"
11160	 else
11161	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11162	 fi
11163       fi
11164       ;;
11165
11166    *.$objext)
11167       # This assumes that the test object file only shows up
11168       # once in the compiler output.
11169       if test "$p" = "conftest.$objext"; then
11170	 pre_test_object_deps_done=yes
11171	 continue
11172       fi
11173
11174       if test "$pre_test_object_deps_done" = no; then
11175	 if test -z "$predep_objects_CXX"; then
11176	   predep_objects_CXX="$p"
11177	 else
11178	   predep_objects_CXX="$predep_objects_CXX $p"
11179	 fi
11180       else
11181	 if test -z "$postdep_objects_CXX"; then
11182	   postdep_objects_CXX="$p"
11183	 else
11184	   postdep_objects_CXX="$postdep_objects_CXX $p"
11185	 fi
11186       fi
11187       ;;
11188
11189    *) ;; # Ignore the rest.
11190
11191    esac
11192  done
11193
11194  # Clean up.
11195  rm -f a.out a.exe
11196else
11197  echo "libtool.m4: error: problem compiling CXX test program"
11198fi
11199
11200$rm -f confest.$objext
11201
11202# PORTME: override above test on systems where it is broken
11203case $host_os in
11204interix3*)
11205  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11206  # hack all around it, let's just trust "g++" to DTRT.
11207  predep_objects_CXX=
11208  postdep_objects_CXX=
11209  postdeps_CXX=
11210  ;;
11211
11212solaris*)
11213  case $cc_basename in
11214  CC*)
11215    # Adding this requires a known-good setup of shared libraries for
11216    # Sun compiler versions before 5.6, else PIC objects from an old
11217    # archive will be linked into the output, leading to subtle bugs.
11218    postdeps_CXX='-lCstd -lCrun'
11219    ;;
11220  esac
11221  ;;
11222esac
11223
11224
11225case " $postdeps_CXX " in
11226*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11227esac
11228
11229lt_prog_compiler_wl_CXX=
11230lt_prog_compiler_pic_CXX=
11231lt_prog_compiler_static_CXX=
11232
11233{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11234echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11235
11236  # C++ specific cases for pic, static, wl, etc.
11237  if test "$GXX" = yes; then
11238    lt_prog_compiler_wl_CXX='-Wl,'
11239    lt_prog_compiler_static_CXX='-static'
11240
11241    case $host_os in
11242    aix*)
11243      # All AIX code is PIC.
11244      if test "$host_cpu" = ia64; then
11245	# AIX 5 now supports IA64 processor
11246	lt_prog_compiler_static_CXX='-Bstatic'
11247      fi
11248      ;;
11249    amigaos*)
11250      # FIXME: we need at least 68020 code to build shared libraries, but
11251      # adding the `-m68020' flag to GCC prevents building anything better,
11252      # like `-m68040'.
11253      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11254      ;;
11255    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11256      # PIC is the default for these OSes.
11257      ;;
11258    mingw* | os2* | pw32*)
11259      # This hack is so that the source file can tell whether it is being
11260      # built for inclusion in a dll (and should export symbols for example).
11261      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11262      ;;
11263    darwin* | rhapsody*)
11264      # PIC is the default on this platform
11265      # Common symbols not allowed in MH_DYLIB files
11266      lt_prog_compiler_pic_CXX='-fno-common'
11267      ;;
11268    *djgpp*)
11269      # DJGPP does not support shared libraries at all
11270      lt_prog_compiler_pic_CXX=
11271      ;;
11272    interix3*)
11273      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11274      # Instead, we relocate shared libraries at runtime.
11275      ;;
11276    sysv4*MP*)
11277      if test -d /usr/nec; then
11278	lt_prog_compiler_pic_CXX=-Kconform_pic
11279      fi
11280      ;;
11281    hpux*)
11282      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11283      # not for PA HP-UX.
11284      case $host_cpu in
11285      hppa*64*|ia64*)
11286	;;
11287      *)
11288	lt_prog_compiler_pic_CXX='-fPIC'
11289	;;
11290      esac
11291      ;;
11292    *)
11293      lt_prog_compiler_pic_CXX='-fPIC'
11294      ;;
11295    esac
11296  else
11297    case $host_os in
11298      aix4* | aix5*)
11299	# All AIX code is PIC.
11300	if test "$host_cpu" = ia64; then
11301	  # AIX 5 now supports IA64 processor
11302	  lt_prog_compiler_static_CXX='-Bstatic'
11303	else
11304	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11305	fi
11306	;;
11307      chorus*)
11308	case $cc_basename in
11309	cxch68*)
11310	  # Green Hills C++ Compiler
11311	  # _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"
11312	  ;;
11313	esac
11314	;;
11315       darwin*)
11316         # PIC is the default on this platform
11317         # Common symbols not allowed in MH_DYLIB files
11318         case $cc_basename in
11319           xlc*)
11320           lt_prog_compiler_pic_CXX='-qnocommon'
11321           lt_prog_compiler_wl_CXX='-Wl,'
11322           ;;
11323         esac
11324       ;;
11325      dgux*)
11326	case $cc_basename in
11327	  ec++*)
11328	    lt_prog_compiler_pic_CXX='-KPIC'
11329	    ;;
11330	  ghcx*)
11331	    # Green Hills C++ Compiler
11332	    lt_prog_compiler_pic_CXX='-pic'
11333	    ;;
11334	  *)
11335	    ;;
11336	esac
11337	;;
11338      freebsd* | kfreebsd*-gnu | dragonfly*)
11339	# FreeBSD uses GNU C++
11340	;;
11341      hpux9* | hpux10* | hpux11*)
11342	case $cc_basename in
11343	  CC*)
11344	    lt_prog_compiler_wl_CXX='-Wl,'
11345	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11346	    if test "$host_cpu" != ia64; then
11347	      lt_prog_compiler_pic_CXX='+Z'
11348	    fi
11349	    ;;
11350	  aCC*)
11351	    lt_prog_compiler_wl_CXX='-Wl,'
11352	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11353	    case $host_cpu in
11354	    hppa*64*|ia64*)
11355	      # +Z the default
11356	      ;;
11357	    *)
11358	      lt_prog_compiler_pic_CXX='+Z'
11359	      ;;
11360	    esac
11361	    ;;
11362	  *)
11363	    ;;
11364	esac
11365	;;
11366      interix*)
11367	# This is c89, which is MS Visual C++ (no shared libs)
11368	# Anyone wants to do a port?
11369	;;
11370      irix5* | irix6* | nonstopux*)
11371	case $cc_basename in
11372	  CC*)
11373	    lt_prog_compiler_wl_CXX='-Wl,'
11374	    lt_prog_compiler_static_CXX='-non_shared'
11375	    # CC pic flag -KPIC is the default.
11376	    ;;
11377	  *)
11378	    ;;
11379	esac
11380	;;
11381      linux*)
11382	case $cc_basename in
11383	  KCC*)
11384	    # KAI C++ Compiler
11385	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11386	    lt_prog_compiler_pic_CXX='-fPIC'
11387	    ;;
11388	  icpc* | ecpc*)
11389	    # Intel C++
11390	    lt_prog_compiler_wl_CXX='-Wl,'
11391	    lt_prog_compiler_pic_CXX='-KPIC'
11392	    lt_prog_compiler_static_CXX='-static'
11393	    ;;
11394	  pgCC*)
11395	    # Portland Group C++ compiler.
11396	    lt_prog_compiler_wl_CXX='-Wl,'
11397	    lt_prog_compiler_pic_CXX='-fpic'
11398	    lt_prog_compiler_static_CXX='-Bstatic'
11399	    ;;
11400	  cxx*)
11401	    # Compaq C++
11402	    # Make sure the PIC flag is empty.  It appears that all Alpha
11403	    # Linux and Compaq Tru64 Unix objects are PIC.
11404	    lt_prog_compiler_pic_CXX=
11405	    lt_prog_compiler_static_CXX='-non_shared'
11406	    ;;
11407	  *)
11408	    ;;
11409	esac
11410	;;
11411      lynxos*)
11412	;;
11413      m88k*)
11414	;;
11415      mvs*)
11416	case $cc_basename in
11417	  cxx*)
11418	    lt_prog_compiler_pic_CXX='-W c,exportall'
11419	    ;;
11420	  *)
11421	    ;;
11422	esac
11423	;;
11424      netbsd*)
11425	;;
11426      osf3* | osf4* | osf5*)
11427	case $cc_basename in
11428	  KCC*)
11429	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11430	    ;;
11431	  RCC*)
11432	    # Rational C++ 2.4.1
11433	    lt_prog_compiler_pic_CXX='-pic'
11434	    ;;
11435	  cxx*)
11436	    # Digital/Compaq C++
11437	    lt_prog_compiler_wl_CXX='-Wl,'
11438	    # Make sure the PIC flag is empty.  It appears that all Alpha
11439	    # Linux and Compaq Tru64 Unix objects are PIC.
11440	    lt_prog_compiler_pic_CXX=
11441	    lt_prog_compiler_static_CXX='-non_shared'
11442	    ;;
11443	  *)
11444	    ;;
11445	esac
11446	;;
11447      psos*)
11448	;;
11449      solaris*)
11450	case $cc_basename in
11451	  CC*)
11452	    # Sun C++ 4.2, 5.x and Centerline C++
11453	    lt_prog_compiler_pic_CXX='-KPIC'
11454	    lt_prog_compiler_static_CXX='-Bstatic'
11455	    lt_prog_compiler_wl_CXX='-Qoption ld '
11456	    ;;
11457	  gcx*)
11458	    # Green Hills C++ Compiler
11459	    lt_prog_compiler_pic_CXX='-PIC'
11460	    ;;
11461	  *)
11462	    ;;
11463	esac
11464	;;
11465      sunos4*)
11466	case $cc_basename in
11467	  CC*)
11468	    # Sun C++ 4.x
11469	    lt_prog_compiler_pic_CXX='-pic'
11470	    lt_prog_compiler_static_CXX='-Bstatic'
11471	    ;;
11472	  lcc*)
11473	    # Lucid
11474	    lt_prog_compiler_pic_CXX='-pic'
11475	    ;;
11476	  *)
11477	    ;;
11478	esac
11479	;;
11480      tandem*)
11481	case $cc_basename in
11482	  NCC*)
11483	    # NonStop-UX NCC 3.20
11484	    lt_prog_compiler_pic_CXX='-KPIC'
11485	    ;;
11486	  *)
11487	    ;;
11488	esac
11489	;;
11490      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11491	case $cc_basename in
11492	  CC*)
11493	    lt_prog_compiler_wl_CXX='-Wl,'
11494	    lt_prog_compiler_pic_CXX='-KPIC'
11495	    lt_prog_compiler_static_CXX='-Bstatic'
11496	    ;;
11497	esac
11498	;;
11499      vxworks*)
11500	;;
11501      *)
11502	lt_prog_compiler_can_build_shared_CXX=no
11503	;;
11504    esac
11505  fi
11506
11507{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11508echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11509
11510#
11511# Check to make sure the PIC flag actually works.
11512#
11513if test -n "$lt_prog_compiler_pic_CXX"; then
11514
11515{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11516echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11517if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11518  echo $ECHO_N "(cached) $ECHO_C" >&6
11519else
11520  lt_prog_compiler_pic_works_CXX=no
11521  ac_outfile=conftest.$ac_objext
11522   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11523   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11524   # Insert the option either (1) after the last *FLAGS variable, or
11525   # (2) before a word containing "conftest.", or (3) at the end.
11526   # Note that $ac_compile itself does not contain backslashes and begins
11527   # with a dollar sign (not a hyphen), so the echo should work correctly.
11528   # The option is referenced via a variable to avoid confusing sed.
11529   lt_compile=`echo "$ac_compile" | $SED \
11530   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11531   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11532   -e 's:$: $lt_compiler_flag:'`
11533   (eval echo "\"\$as_me:11533: $lt_compile\"" >&5)
11534   (eval "$lt_compile" 2>conftest.err)
11535   ac_status=$?
11536   cat conftest.err >&5
11537   echo "$as_me:11537: \$? = $ac_status" >&5
11538   if (exit $ac_status) && test -s "$ac_outfile"; then
11539     # The compiler can only warn and ignore the option if not recognized
11540     # So say no if there are warnings other than the usual output.
11541     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11542     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11543     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11544       lt_prog_compiler_pic_works_CXX=yes
11545     fi
11546   fi
11547   $rm conftest*
11548
11549fi
11550{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11551echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11552
11553if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11554    case $lt_prog_compiler_pic_CXX in
11555     "" | " "*) ;;
11556     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11557     esac
11558else
11559    lt_prog_compiler_pic_CXX=
11560     lt_prog_compiler_can_build_shared_CXX=no
11561fi
11562
11563fi
11564case $host_os in
11565  # For platforms which do not support PIC, -DPIC is meaningless:
11566  *djgpp*)
11567    lt_prog_compiler_pic_CXX=
11568    ;;
11569  *)
11570    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11571    ;;
11572esac
11573
11574#
11575# Check to make sure the static flag actually works.
11576#
11577wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11578{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11579echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
11580if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11581  echo $ECHO_N "(cached) $ECHO_C" >&6
11582else
11583  lt_prog_compiler_static_works_CXX=no
11584   save_LDFLAGS="$LDFLAGS"
11585   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11586   printf "$lt_simple_link_test_code" > conftest.$ac_ext
11587   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11588     # The linker can only warn and ignore the option if not recognized
11589     # So say no if there are warnings
11590     if test -s conftest.err; then
11591       # Append any errors to the config.log.
11592       cat conftest.err 1>&5
11593       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11594       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11595       if diff conftest.exp conftest.er2 >/dev/null; then
11596         lt_prog_compiler_static_works_CXX=yes
11597       fi
11598     else
11599       lt_prog_compiler_static_works_CXX=yes
11600     fi
11601   fi
11602   $rm conftest*
11603   LDFLAGS="$save_LDFLAGS"
11604
11605fi
11606{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11607echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
11608
11609if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11610    :
11611else
11612    lt_prog_compiler_static_CXX=
11613fi
11614
11615
11616{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11617echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11618if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11619  echo $ECHO_N "(cached) $ECHO_C" >&6
11620else
11621  lt_cv_prog_compiler_c_o_CXX=no
11622   $rm -r conftest 2>/dev/null
11623   mkdir conftest
11624   cd conftest
11625   mkdir out
11626   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11627
11628   lt_compiler_flag="-o out/conftest2.$ac_objext"
11629   # Insert the option either (1) after the last *FLAGS variable, or
11630   # (2) before a word containing "conftest.", or (3) at the end.
11631   # Note that $ac_compile itself does not contain backslashes and begins
11632   # with a dollar sign (not a hyphen), so the echo should work correctly.
11633   lt_compile=`echo "$ac_compile" | $SED \
11634   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11635   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11636   -e 's:$: $lt_compiler_flag:'`
11637   (eval echo "\"\$as_me:11637: $lt_compile\"" >&5)
11638   (eval "$lt_compile" 2>out/conftest.err)
11639   ac_status=$?
11640   cat out/conftest.err >&5
11641   echo "$as_me:11641: \$? = $ac_status" >&5
11642   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11643   then
11644     # The compiler can only warn and ignore the option if not recognized
11645     # So say no if there are warnings
11646     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11647     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11648     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11649       lt_cv_prog_compiler_c_o_CXX=yes
11650     fi
11651   fi
11652   chmod u+w . 2>&5
11653   $rm conftest*
11654   # SGI C++ compiler will create directory out/ii_files/ for
11655   # template instantiation
11656   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11657   $rm out/* && rmdir out
11658   cd ..
11659   rmdir conftest
11660   $rm conftest*
11661
11662fi
11663{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11664echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
11665
11666
11667hard_links="nottested"
11668if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11669  # do not overwrite the value of need_locks provided by the user
11670  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11671echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11672  hard_links=yes
11673  $rm conftest*
11674  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11675  touch conftest.a
11676  ln conftest.a conftest.b 2>&5 || hard_links=no
11677  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11678  { echo "$as_me:$LINENO: result: $hard_links" >&5
11679echo "${ECHO_T}$hard_links" >&6; }
11680  if test "$hard_links" = no; then
11681    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11682echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11683    need_locks=warn
11684  fi
11685else
11686  need_locks=no
11687fi
11688
11689{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11690echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11691
11692  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11693  case $host_os in
11694  aix4* | aix5*)
11695    # If we're using GNU nm, then we don't want the "-C" option.
11696    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11697    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11698      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'
11699    else
11700      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'
11701    fi
11702    ;;
11703  pw32*)
11704    export_symbols_cmds_CXX="$ltdll_cmds"
11705  ;;
11706  cygwin* | mingw*)
11707    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'
11708  ;;
11709  *)
11710    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11711  ;;
11712  esac
11713
11714{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11715echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11716test "$ld_shlibs_CXX" = no && can_build_shared=no
11717
11718#
11719# Do we need to explicitly link libc?
11720#
11721case "x$archive_cmds_need_lc_CXX" in
11722x|xyes)
11723  # Assume -lc should be added
11724  archive_cmds_need_lc_CXX=yes
11725
11726  if test "$enable_shared" = yes && test "$GCC" = yes; then
11727    case $archive_cmds_CXX in
11728    *'~'*)
11729      # FIXME: we may have to deal with multi-command sequences.
11730      ;;
11731    '$CC '*)
11732      # Test whether the compiler implicitly links with -lc since on some
11733      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11734      # to ld, don't add -lc before -lgcc.
11735      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11736echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11737      $rm conftest*
11738      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11739
11740      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11741  (eval $ac_compile) 2>&5
11742  ac_status=$?
11743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744  (exit $ac_status); } 2>conftest.err; then
11745        soname=conftest
11746        lib=conftest
11747        libobjs=conftest.$ac_objext
11748        deplibs=
11749        wl=$lt_prog_compiler_wl_CXX
11750	pic_flag=$lt_prog_compiler_pic_CXX
11751        compiler_flags=-v
11752        linker_flags=-v
11753        verstring=
11754        output_objdir=.
11755        libname=conftest
11756        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11757        allow_undefined_flag_CXX=
11758        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11759  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11760  ac_status=$?
11761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762  (exit $ac_status); }
11763        then
11764	  archive_cmds_need_lc_CXX=no
11765        else
11766	  archive_cmds_need_lc_CXX=yes
11767        fi
11768        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11769      else
11770        cat conftest.err 1>&5
11771      fi
11772      $rm conftest*
11773      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11774echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
11775      ;;
11776    esac
11777  fi
11778  ;;
11779esac
11780
11781{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11782echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11783library_names_spec=
11784libname_spec='lib$name'
11785soname_spec=
11786shrext_cmds=".so"
11787postinstall_cmds=
11788postuninstall_cmds=
11789finish_cmds=
11790finish_eval=
11791shlibpath_var=
11792shlibpath_overrides_runpath=unknown
11793version_type=none
11794dynamic_linker="$host_os ld.so"
11795sys_lib_dlsearch_path_spec="/lib /usr/lib"
11796if test "$GCC" = yes; then
11797  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11798  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11799    # if the path contains ";" then we assume it to be the separator
11800    # otherwise default to the standard path separator (i.e. ":") - it is
11801    # assumed that no part of a normal pathname contains ";" but that should
11802    # okay in the real world where ";" in dirpaths is itself problematic.
11803    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11804  else
11805    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11806  fi
11807else
11808  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11809fi
11810need_lib_prefix=unknown
11811hardcode_into_libs=no
11812
11813# when you set need_version to no, make sure it does not cause -set_version
11814# flags to be left without arguments
11815need_version=unknown
11816
11817case $host_os in
11818aix3*)
11819  version_type=linux
11820  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11821  shlibpath_var=LIBPATH
11822
11823  # AIX 3 has no versioning support, so we append a major version to the name.
11824  soname_spec='${libname}${release}${shared_ext}$major'
11825  ;;
11826
11827aix4* | aix5*)
11828  version_type=linux
11829  need_lib_prefix=no
11830  need_version=no
11831  hardcode_into_libs=yes
11832  if test "$host_cpu" = ia64; then
11833    # AIX 5 supports IA64
11834    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11835    shlibpath_var=LD_LIBRARY_PATH
11836  else
11837    # With GCC up to 2.95.x, collect2 would create an import file
11838    # for dependence libraries.  The import file would start with
11839    # the line `#! .'.  This would cause the generated library to
11840    # depend on `.', always an invalid library.  This was fixed in
11841    # development snapshots of GCC prior to 3.0.
11842    case $host_os in
11843      aix4 | aix4.[01] | aix4.[01].*)
11844      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11845	   echo ' yes '
11846	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11847	:
11848      else
11849	can_build_shared=no
11850      fi
11851      ;;
11852    esac
11853    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11854    # soname into executable. Probably we can add versioning support to
11855    # collect2, so additional links can be useful in future.
11856    if test "$aix_use_runtimelinking" = yes; then
11857      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11858      # instead of lib<name>.a to let people know that these are not
11859      # typical AIX shared libraries.
11860      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11861    else
11862      # We preserve .a as extension for shared libraries through AIX4.2
11863      # and later when we are not doing run time linking.
11864      library_names_spec='${libname}${release}.a $libname.a'
11865      soname_spec='${libname}${release}${shared_ext}$major'
11866    fi
11867    shlibpath_var=LIBPATH
11868  fi
11869  ;;
11870
11871amigaos*)
11872  library_names_spec='$libname.ixlibrary $libname.a'
11873  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11874  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'
11875  ;;
11876
11877beos*)
11878  library_names_spec='${libname}${shared_ext}'
11879  dynamic_linker="$host_os ld.so"
11880  shlibpath_var=LIBRARY_PATH
11881  ;;
11882
11883bsdi[45]*)
11884  version_type=linux
11885  need_version=no
11886  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11887  soname_spec='${libname}${release}${shared_ext}$major'
11888  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11889  shlibpath_var=LD_LIBRARY_PATH
11890  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11891  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11892  # the default ld.so.conf also contains /usr/contrib/lib and
11893  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11894  # libtool to hard-code these into programs
11895  ;;
11896
11897cygwin* | mingw* | pw32*)
11898  version_type=windows
11899  shrext_cmds=".dll"
11900  need_version=no
11901  need_lib_prefix=no
11902
11903  case $GCC,$host_os in
11904  yes,cygwin* | yes,mingw* | yes,pw32*)
11905    library_names_spec='$libname.dll.a'
11906    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11907    postinstall_cmds='base_file=`basename \${file}`~
11908      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11909      dldir=$destdir/`dirname \$dlpath`~
11910      test -d \$dldir || mkdir -p \$dldir~
11911      $install_prog $dir/$dlname \$dldir/$dlname~
11912      chmod a+x \$dldir/$dlname'
11913    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11914      dlpath=$dir/\$dldll~
11915       $rm \$dlpath'
11916    shlibpath_overrides_runpath=yes
11917
11918    case $host_os in
11919    cygwin*)
11920      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11921      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11922      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11923      ;;
11924    mingw*)
11925      # MinGW DLLs use traditional 'lib' prefix
11926      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11927      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11928      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11929        # It is most probably a Windows format PATH printed by
11930        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11931        # path with ; separators, and with drive letters. We can handle the
11932        # drive letters (cygwin fileutils understands them), so leave them,
11933        # especially as we might pass files found there to a mingw objdump,
11934        # which wouldn't understand a cygwinified path. Ahh.
11935        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11936      else
11937        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11938      fi
11939      ;;
11940    pw32*)
11941      # pw32 DLLs use 'pw' prefix rather than 'lib'
11942      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11943      ;;
11944    esac
11945    ;;
11946
11947  linux*)
11948    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
11949      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11950      supports_anon_versioning=no
11951      case `$LD -v 2>/dev/null` in
11952        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11953        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11954        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11955        *\ 2.11.*) ;; # other 2.11 versions
11956        *) supports_anon_versioning=yes ;;
11957      esac
11958      if test $supports_anon_versioning = yes; then
11959        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
11960cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11961$echo "local: *; };" >> $output_objdir/$libname.ver~
11962        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11963      else
11964        $archive_expsym_cmds="$archive_cmds"
11965      fi
11966    else
11967      ld_shlibs=no
11968    fi
11969    ;;
11970
11971  *)
11972    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11973    ;;
11974  esac
11975  dynamic_linker='Win32 ld.exe'
11976  # FIXME: first we should search . and the directory the executable is in
11977  shlibpath_var=PATH
11978  ;;
11979
11980darwin* | rhapsody*)
11981  dynamic_linker="$host_os dyld"
11982  version_type=darwin
11983  need_lib_prefix=no
11984  need_version=no
11985  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11986  soname_spec='${libname}${release}${major}$shared_ext'
11987  shlibpath_overrides_runpath=yes
11988  shlibpath_var=DYLD_LIBRARY_PATH
11989  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11990  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11991  if test "$GCC" = yes; then
11992    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"`
11993  else
11994    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11995  fi
11996  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11997  ;;
11998
11999dgux*)
12000  version_type=linux
12001  need_lib_prefix=no
12002  need_version=no
12003  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12004  soname_spec='${libname}${release}${shared_ext}$major'
12005  shlibpath_var=LD_LIBRARY_PATH
12006  ;;
12007
12008freebsd1*)
12009  dynamic_linker=no
12010  ;;
12011
12012kfreebsd*-gnu)
12013  version_type=linux
12014  need_lib_prefix=no
12015  need_version=no
12016  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12017  soname_spec='${libname}${release}${shared_ext}$major'
12018  shlibpath_var=LD_LIBRARY_PATH
12019  shlibpath_overrides_runpath=no
12020  hardcode_into_libs=yes
12021  dynamic_linker='GNU ld.so'
12022  ;;
12023
12024freebsd* | dragonfly*)
12025  # DragonFly does not have aout.  When/if they implement a new
12026  # versioning mechanism, adjust this.
12027  if test -x /usr/bin/objformat; then
12028    objformat=`/usr/bin/objformat`
12029  else
12030    case $host_os in
12031    freebsd[123]*) objformat=aout ;;
12032    *) objformat=elf ;;
12033    esac
12034  fi
12035  # Handle Gentoo/FreeBSD as it was Linux
12036  case $host_vendor in
12037    gentoo)
12038      version_type=linux ;;
12039    *)
12040      version_type=freebsd-$objformat ;;
12041  esac
12042
12043  case $version_type in
12044    freebsd-elf*)
12045      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12046      need_version=no
12047      need_lib_prefix=no
12048      ;;
12049    freebsd-*)
12050      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12051      need_version=yes
12052      ;;
12053    linux)
12054      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12055      soname_spec='${libname}${release}${shared_ext}$major'
12056      need_lib_prefix=no
12057      need_version=no
12058      ;;
12059  esac
12060  shlibpath_var=LD_LIBRARY_PATH
12061  case $host_os in
12062  freebsd2*)
12063    shlibpath_overrides_runpath=yes
12064    ;;
12065  freebsd3.[01]* | freebsdelf3.[01]*)
12066    shlibpath_overrides_runpath=yes
12067    hardcode_into_libs=yes
12068    ;;
12069  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12070  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12071    shlibpath_overrides_runpath=no
12072    hardcode_into_libs=yes
12073    ;;
12074  freebsd*) # from 4.6 on
12075    shlibpath_overrides_runpath=yes
12076    hardcode_into_libs=yes
12077    ;;
12078  esac
12079  ;;
12080
12081gnu*)
12082  version_type=linux
12083  need_lib_prefix=no
12084  need_version=no
12085  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12086  soname_spec='${libname}${release}${shared_ext}$major'
12087  shlibpath_var=LD_LIBRARY_PATH
12088  hardcode_into_libs=yes
12089  ;;
12090
12091hpux9* | hpux10* | hpux11*)
12092  # Give a soname corresponding to the major version so that dld.sl refuses to
12093  # link against other versions.
12094  version_type=sunos
12095  need_lib_prefix=no
12096  need_version=no
12097  case $host_cpu in
12098  ia64*)
12099    shrext_cmds='.so'
12100    hardcode_into_libs=yes
12101    dynamic_linker="$host_os dld.so"
12102    shlibpath_var=LD_LIBRARY_PATH
12103    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12104    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12105    soname_spec='${libname}${release}${shared_ext}$major'
12106    if test "X$HPUX_IA64_MODE" = X32; then
12107      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12108    else
12109      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12110    fi
12111    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12112    ;;
12113   hppa*64*)
12114     shrext_cmds='.sl'
12115     hardcode_into_libs=yes
12116     dynamic_linker="$host_os dld.sl"
12117     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12118     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12119     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12120     soname_spec='${libname}${release}${shared_ext}$major'
12121     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12122     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12123     ;;
12124   *)
12125    shrext_cmds='.sl'
12126    dynamic_linker="$host_os dld.sl"
12127    shlibpath_var=SHLIB_PATH
12128    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12129    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12130    soname_spec='${libname}${release}${shared_ext}$major'
12131    ;;
12132  esac
12133  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12134  postinstall_cmds='chmod 555 $lib'
12135  ;;
12136
12137interix3*)
12138  version_type=linux
12139  need_lib_prefix=no
12140  need_version=no
12141  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12142  soname_spec='${libname}${release}${shared_ext}$major'
12143  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12144  shlibpath_var=LD_LIBRARY_PATH
12145  shlibpath_overrides_runpath=no
12146  hardcode_into_libs=yes
12147  ;;
12148
12149irix5* | irix6* | nonstopux*)
12150  case $host_os in
12151    nonstopux*) version_type=nonstopux ;;
12152    *)
12153	if test "$lt_cv_prog_gnu_ld" = yes; then
12154		version_type=linux
12155	else
12156		version_type=irix
12157	fi ;;
12158  esac
12159  need_lib_prefix=no
12160  need_version=no
12161  soname_spec='${libname}${release}${shared_ext}$major'
12162  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12163  case $host_os in
12164  irix5* | nonstopux*)
12165    libsuff= shlibsuff=
12166    ;;
12167  *)
12168    case $LD in # libtool.m4 will add one of these switches to LD
12169    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12170      libsuff= shlibsuff= libmagic=32-bit;;
12171    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12172      libsuff=32 shlibsuff=N32 libmagic=N32;;
12173    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12174      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12175    *) libsuff= shlibsuff= libmagic=never-match;;
12176    esac
12177    ;;
12178  esac
12179  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12180  shlibpath_overrides_runpath=no
12181  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12182  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12183  hardcode_into_libs=yes
12184  ;;
12185
12186# No shared lib support for Linux oldld, aout, or coff.
12187linux*oldld* | linux*aout* | linux*coff*)
12188  dynamic_linker=no
12189  ;;
12190
12191# This must be Linux ELF.
12192linux*)
12193  version_type=linux
12194  need_lib_prefix=no
12195  need_version=no
12196  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12197  soname_spec='${libname}${release}${shared_ext}$major'
12198  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12199  shlibpath_var=LD_LIBRARY_PATH
12200  shlibpath_overrides_runpath=no
12201  # This implies no fast_install, which is unacceptable.
12202  # Some rework will be needed to allow for fast_install
12203  # before this can be enabled.
12204  hardcode_into_libs=yes
12205
12206  # Append ld.so.conf contents to the search path
12207  if test -f /etc/ld.so.conf; then
12208    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12209    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12210  fi
12211
12212  # We used to test for /lib/ld.so.1 and disable shared libraries on
12213  # powerpc, because MkLinux only supported shared libraries with the
12214  # GNU dynamic linker.  Since this was broken with cross compilers,
12215  # most powerpc-linux boxes support dynamic linking these days and
12216  # people can always --disable-shared, the test was removed, and we
12217  # assume the GNU/Linux dynamic linker is in use.
12218  dynamic_linker='GNU/Linux ld.so'
12219  ;;
12220
12221knetbsd*-gnu)
12222  version_type=linux
12223  need_lib_prefix=no
12224  need_version=no
12225  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12226  soname_spec='${libname}${release}${shared_ext}$major'
12227  shlibpath_var=LD_LIBRARY_PATH
12228  shlibpath_overrides_runpath=no
12229  hardcode_into_libs=yes
12230  dynamic_linker='GNU ld.so'
12231  ;;
12232
12233netbsd*)
12234  version_type=sunos
12235  need_lib_prefix=no
12236  need_version=no
12237  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12238    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12239    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12240    dynamic_linker='NetBSD (a.out) ld.so'
12241  else
12242    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12243    soname_spec='${libname}${release}${shared_ext}$major'
12244    dynamic_linker='NetBSD ld.elf_so'
12245  fi
12246  shlibpath_var=LD_LIBRARY_PATH
12247  shlibpath_overrides_runpath=yes
12248  hardcode_into_libs=yes
12249  ;;
12250
12251newsos6)
12252  version_type=linux
12253  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12254  shlibpath_var=LD_LIBRARY_PATH
12255  shlibpath_overrides_runpath=yes
12256  ;;
12257
12258nto-qnx*)
12259  version_type=linux
12260  need_lib_prefix=no
12261  need_version=no
12262  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12263  soname_spec='${libname}${release}${shared_ext}$major'
12264  shlibpath_var=LD_LIBRARY_PATH
12265  shlibpath_overrides_runpath=yes
12266  ;;
12267
12268openbsd*)
12269  version_type=sunos
12270  sys_lib_dlsearch_path_spec="/usr/lib"
12271  need_lib_prefix=no
12272  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12273  case $host_os in
12274    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12275    *)                         need_version=no  ;;
12276  esac
12277  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12278  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12279  shlibpath_var=LD_LIBRARY_PATH
12280  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12281    case $host_os in
12282      openbsd2.[89] | openbsd2.[89].*)
12283	shlibpath_overrides_runpath=no
12284	;;
12285      *)
12286	shlibpath_overrides_runpath=yes
12287	;;
12288      esac
12289  else
12290    shlibpath_overrides_runpath=yes
12291  fi
12292  ;;
12293
12294os2*)
12295  libname_spec='$name'
12296  shrext_cmds=".dll"
12297  need_lib_prefix=no
12298  library_names_spec='$libname${shared_ext} $libname.a'
12299  dynamic_linker='OS/2 ld.exe'
12300  shlibpath_var=LIBPATH
12301  ;;
12302
12303osf3* | osf4* | osf5*)
12304  version_type=osf
12305  need_lib_prefix=no
12306  need_version=no
12307  soname_spec='${libname}${release}${shared_ext}$major'
12308  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12309  shlibpath_var=LD_LIBRARY_PATH
12310  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12311  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12312  ;;
12313
12314solaris*)
12315  version_type=linux
12316  need_lib_prefix=no
12317  need_version=no
12318  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12319  soname_spec='${libname}${release}${shared_ext}$major'
12320  shlibpath_var=LD_LIBRARY_PATH
12321  shlibpath_overrides_runpath=yes
12322  hardcode_into_libs=yes
12323  # ldd complains unless libraries are executable
12324  postinstall_cmds='chmod +x $lib'
12325  ;;
12326
12327sunos4*)
12328  version_type=sunos
12329  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12330  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12331  shlibpath_var=LD_LIBRARY_PATH
12332  shlibpath_overrides_runpath=yes
12333  if test "$with_gnu_ld" = yes; then
12334    need_lib_prefix=no
12335  fi
12336  need_version=yes
12337  ;;
12338
12339sysv4 | sysv4.3*)
12340  version_type=linux
12341  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12342  soname_spec='${libname}${release}${shared_ext}$major'
12343  shlibpath_var=LD_LIBRARY_PATH
12344  case $host_vendor in
12345    sni)
12346      shlibpath_overrides_runpath=no
12347      need_lib_prefix=no
12348      export_dynamic_flag_spec='${wl}-Blargedynsym'
12349      runpath_var=LD_RUN_PATH
12350      ;;
12351    siemens)
12352      need_lib_prefix=no
12353      ;;
12354    motorola)
12355      need_lib_prefix=no
12356      need_version=no
12357      shlibpath_overrides_runpath=no
12358      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12359      ;;
12360  esac
12361  ;;
12362
12363sysv4*MP*)
12364  if test -d /usr/nec ;then
12365    version_type=linux
12366    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12367    soname_spec='$libname${shared_ext}.$major'
12368    shlibpath_var=LD_LIBRARY_PATH
12369  fi
12370  ;;
12371
12372sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12373  version_type=freebsd-elf
12374  need_lib_prefix=no
12375  need_version=no
12376  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12377  soname_spec='${libname}${release}${shared_ext}$major'
12378  shlibpath_var=LD_LIBRARY_PATH
12379  hardcode_into_libs=yes
12380  if test "$with_gnu_ld" = yes; then
12381    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12382    shlibpath_overrides_runpath=no
12383  else
12384    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12385    shlibpath_overrides_runpath=yes
12386    case $host_os in
12387      sco3.2v5*)
12388        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12389	;;
12390    esac
12391  fi
12392  sys_lib_dlsearch_path_spec='/usr/lib'
12393  ;;
12394
12395uts4*)
12396  version_type=linux
12397  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12398  soname_spec='${libname}${release}${shared_ext}$major'
12399  shlibpath_var=LD_LIBRARY_PATH
12400  ;;
12401
12402*)
12403  dynamic_linker=no
12404  ;;
12405esac
12406{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12407echo "${ECHO_T}$dynamic_linker" >&6; }
12408test "$dynamic_linker" = no && can_build_shared=no
12409
12410variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12411if test "$GCC" = yes; then
12412  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12413fi
12414
12415{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12416echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12417hardcode_action_CXX=
12418if test -n "$hardcode_libdir_flag_spec_CXX" || \
12419   test -n "$runpath_var_CXX" || \
12420   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12421
12422  # We can hardcode non-existant directories.
12423  if test "$hardcode_direct_CXX" != no &&
12424     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12425     # have to relink, otherwise we might link with an installed library
12426     # when we should be linking with a yet-to-be-installed one
12427     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12428     test "$hardcode_minus_L_CXX" != no; then
12429    # Linking always hardcodes the temporary library directory.
12430    hardcode_action_CXX=relink
12431  else
12432    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12433    hardcode_action_CXX=immediate
12434  fi
12435else
12436  # We cannot hardcode anything, or else we can only hardcode existing
12437  # directories.
12438  hardcode_action_CXX=unsupported
12439fi
12440{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12441echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12442
12443if test "$hardcode_action_CXX" = relink; then
12444  # Fast installation is not supported
12445  enable_fast_install=no
12446elif test "$shlibpath_overrides_runpath" = yes ||
12447     test "$enable_shared" = no; then
12448  # Fast installation is not necessary
12449  enable_fast_install=needless
12450fi
12451
12452
12453# The else clause should only fire when bootstrapping the
12454# libtool distribution, otherwise you forgot to ship ltmain.sh
12455# with your package, and you will get complaints that there are
12456# no rules to generate ltmain.sh.
12457if test -f "$ltmain"; then
12458  # See if we are running on zsh, and set the options which allow our commands through
12459  # without removal of \ escapes.
12460  if test -n "${ZSH_VERSION+set}" ; then
12461    setopt NO_GLOB_SUBST
12462  fi
12463  # Now quote all the things that may contain metacharacters while being
12464  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12465  # variables and quote the copies for generation of the libtool script.
12466  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12467    SED SHELL STRIP \
12468    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12469    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12470    deplibs_check_method reload_flag reload_cmds need_locks \
12471    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12472    lt_cv_sys_global_symbol_to_c_name_address \
12473    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12474    old_postinstall_cmds old_postuninstall_cmds \
12475    compiler_CXX \
12476    CC_CXX \
12477    LD_CXX \
12478    lt_prog_compiler_wl_CXX \
12479    lt_prog_compiler_pic_CXX \
12480    lt_prog_compiler_static_CXX \
12481    lt_prog_compiler_no_builtin_flag_CXX \
12482    export_dynamic_flag_spec_CXX \
12483    thread_safe_flag_spec_CXX \
12484    whole_archive_flag_spec_CXX \
12485    enable_shared_with_static_runtimes_CXX \
12486    old_archive_cmds_CXX \
12487    old_archive_from_new_cmds_CXX \
12488    predep_objects_CXX \
12489    postdep_objects_CXX \
12490    predeps_CXX \
12491    postdeps_CXX \
12492    compiler_lib_search_path_CXX \
12493    archive_cmds_CXX \
12494    archive_expsym_cmds_CXX \
12495    postinstall_cmds_CXX \
12496    postuninstall_cmds_CXX \
12497    old_archive_from_expsyms_cmds_CXX \
12498    allow_undefined_flag_CXX \
12499    no_undefined_flag_CXX \
12500    export_symbols_cmds_CXX \
12501    hardcode_libdir_flag_spec_CXX \
12502    hardcode_libdir_flag_spec_ld_CXX \
12503    hardcode_libdir_separator_CXX \
12504    hardcode_automatic_CXX \
12505    module_cmds_CXX \
12506    module_expsym_cmds_CXX \
12507    lt_cv_prog_compiler_c_o_CXX \
12508    exclude_expsyms_CXX \
12509    include_expsyms_CXX; do
12510
12511    case $var in
12512    old_archive_cmds_CXX | \
12513    old_archive_from_new_cmds_CXX | \
12514    archive_cmds_CXX | \
12515    archive_expsym_cmds_CXX | \
12516    module_cmds_CXX | \
12517    module_expsym_cmds_CXX | \
12518    old_archive_from_expsyms_cmds_CXX | \
12519    export_symbols_cmds_CXX | \
12520    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12521    postinstall_cmds | postuninstall_cmds | \
12522    old_postinstall_cmds | old_postuninstall_cmds | \
12523    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12524      # Double-quote double-evaled strings.
12525      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12526      ;;
12527    *)
12528      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12529      ;;
12530    esac
12531  done
12532
12533  case $lt_echo in
12534  *'\$0 --fallback-echo"')
12535    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12536    ;;
12537  esac
12538
12539cfgfile="$ofile"
12540
12541  cat <<__EOF__ >> "$cfgfile"
12542# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12543
12544# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12545
12546# Shell to use when invoking shell scripts.
12547SHELL=$lt_SHELL
12548
12549# Whether or not to build shared libraries.
12550build_libtool_libs=$enable_shared
12551
12552# Whether or not to build static libraries.
12553build_old_libs=$enable_static
12554
12555# Whether or not to add -lc for building shared libraries.
12556build_libtool_need_lc=$archive_cmds_need_lc_CXX
12557
12558# Whether or not to disallow shared libs when runtime libs are static
12559allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12560
12561# Whether or not to optimize for fast installation.
12562fast_install=$enable_fast_install
12563
12564# The host system.
12565host_alias=$host_alias
12566host=$host
12567host_os=$host_os
12568
12569# The build system.
12570build_alias=$build_alias
12571build=$build
12572build_os=$build_os
12573
12574# An echo program that does not interpret backslashes.
12575echo=$lt_echo
12576
12577# The archiver.
12578AR=$lt_AR
12579AR_FLAGS=$lt_AR_FLAGS
12580
12581# A C compiler.
12582LTCC=$lt_LTCC
12583
12584# LTCC compiler flags.
12585LTCFLAGS=$lt_LTCFLAGS
12586
12587# A language-specific compiler.
12588CC=$lt_compiler_CXX
12589
12590# Is the compiler the GNU C compiler?
12591with_gcc=$GCC_CXX
12592
12593# An ERE matcher.
12594EGREP=$lt_EGREP
12595
12596# The linker used to build libraries.
12597LD=$lt_LD_CXX
12598
12599# Whether we need hard or soft links.
12600LN_S=$lt_LN_S
12601
12602# A BSD-compatible nm program.
12603NM=$lt_NM
12604
12605# A symbol stripping program
12606STRIP=$lt_STRIP
12607
12608# Used to examine libraries when file_magic_cmd begins "file"
12609MAGIC_CMD=$MAGIC_CMD
12610
12611# Used on cygwin: DLL creation program.
12612DLLTOOL="$DLLTOOL"
12613
12614# Used on cygwin: object dumper.
12615OBJDUMP="$OBJDUMP"
12616
12617# Used on cygwin: assembler.
12618AS="$AS"
12619
12620# The name of the directory that contains temporary libtool files.
12621objdir=$objdir
12622
12623# How to create reloadable object files.
12624reload_flag=$lt_reload_flag
12625reload_cmds=$lt_reload_cmds
12626
12627# How to pass a linker flag through the compiler.
12628wl=$lt_lt_prog_compiler_wl_CXX
12629
12630# Object file suffix (normally "o").
12631objext="$ac_objext"
12632
12633# Old archive suffix (normally "a").
12634libext="$libext"
12635
12636# Shared library suffix (normally ".so").
12637shrext_cmds='$shrext_cmds'
12638
12639# Executable file suffix (normally "").
12640exeext="$exeext"
12641
12642# Additional compiler flags for building library objects.
12643pic_flag=$lt_lt_prog_compiler_pic_CXX
12644pic_mode=$pic_mode
12645
12646# What is the maximum length of a command?
12647max_cmd_len=$lt_cv_sys_max_cmd_len
12648
12649# Does compiler simultaneously support -c and -o options?
12650compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12651
12652# Must we lock files when doing compilation?
12653need_locks=$lt_need_locks
12654
12655# Do we need the lib prefix for modules?
12656need_lib_prefix=$need_lib_prefix
12657
12658# Do we need a version for libraries?
12659need_version=$need_version
12660
12661# Whether dlopen is supported.
12662dlopen_support=$enable_dlopen
12663
12664# Whether dlopen of programs is supported.
12665dlopen_self=$enable_dlopen_self
12666
12667# Whether dlopen of statically linked programs is supported.
12668dlopen_self_static=$enable_dlopen_self_static
12669
12670# Compiler flag to prevent dynamic linking.
12671link_static_flag=$lt_lt_prog_compiler_static_CXX
12672
12673# Compiler flag to turn off builtin functions.
12674no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12675
12676# Compiler flag to allow reflexive dlopens.
12677export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12678
12679# Compiler flag to generate shared objects directly from archives.
12680whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12681
12682# Compiler flag to generate thread-safe objects.
12683thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12684
12685# Library versioning type.
12686version_type=$version_type
12687
12688# Format of library name prefix.
12689libname_spec=$lt_libname_spec
12690
12691# List of archive names.  First name is the real one, the rest are links.
12692# The last name is the one that the linker finds with -lNAME.
12693library_names_spec=$lt_library_names_spec
12694
12695# The coded name of the library, if different from the real name.
12696soname_spec=$lt_soname_spec
12697
12698# Commands used to build and install an old-style archive.
12699RANLIB=$lt_RANLIB
12700old_archive_cmds=$lt_old_archive_cmds_CXX
12701old_postinstall_cmds=$lt_old_postinstall_cmds
12702old_postuninstall_cmds=$lt_old_postuninstall_cmds
12703
12704# Create an old-style archive from a shared archive.
12705old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12706
12707# Create a temporary old-style archive to link instead of a shared archive.
12708old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12709
12710# Commands used to build and install a shared archive.
12711archive_cmds=$lt_archive_cmds_CXX
12712archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12713postinstall_cmds=$lt_postinstall_cmds
12714postuninstall_cmds=$lt_postuninstall_cmds
12715
12716# Commands used to build a loadable module (assumed same as above if empty)
12717module_cmds=$lt_module_cmds_CXX
12718module_expsym_cmds=$lt_module_expsym_cmds_CXX
12719
12720# Commands to strip libraries.
12721old_striplib=$lt_old_striplib
12722striplib=$lt_striplib
12723
12724# Dependencies to place before the objects being linked to create a
12725# shared library.
12726predep_objects=$lt_predep_objects_CXX
12727
12728# Dependencies to place after the objects being linked to create a
12729# shared library.
12730postdep_objects=$lt_postdep_objects_CXX
12731
12732# Dependencies to place before the objects being linked to create a
12733# shared library.
12734predeps=$lt_predeps_CXX
12735
12736# Dependencies to place after the objects being linked to create a
12737# shared library.
12738postdeps=$lt_postdeps_CXX
12739
12740# The library search path used internally by the compiler when linking
12741# a shared library.
12742compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12743
12744# Method to check whether dependent libraries are shared objects.
12745deplibs_check_method=$lt_deplibs_check_method
12746
12747# Command to use when deplibs_check_method == file_magic.
12748file_magic_cmd=$lt_file_magic_cmd
12749
12750# Flag that allows shared libraries with undefined symbols to be built.
12751allow_undefined_flag=$lt_allow_undefined_flag_CXX
12752
12753# Flag that forces no undefined symbols.
12754no_undefined_flag=$lt_no_undefined_flag_CXX
12755
12756# Commands used to finish a libtool library installation in a directory.
12757finish_cmds=$lt_finish_cmds
12758
12759# Same as above, but a single script fragment to be evaled but not shown.
12760finish_eval=$lt_finish_eval
12761
12762# Take the output of nm and produce a listing of raw symbols and C names.
12763global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12764
12765# Transform the output of nm in a proper C declaration
12766global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12767
12768# Transform the output of nm in a C name address pair
12769global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12770
12771# This is the shared library runtime path variable.
12772runpath_var=$runpath_var
12773
12774# This is the shared library path variable.
12775shlibpath_var=$shlibpath_var
12776
12777# Is shlibpath searched before the hard-coded library search path?
12778shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12779
12780# How to hardcode a shared library path into an executable.
12781hardcode_action=$hardcode_action_CXX
12782
12783# Whether we should hardcode library paths into libraries.
12784hardcode_into_libs=$hardcode_into_libs
12785
12786# Flag to hardcode \$libdir into a binary during linking.
12787# This must work even if \$libdir does not exist.
12788hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12789
12790# If ld is used when linking, flag to hardcode \$libdir into
12791# a binary during linking. This must work even if \$libdir does
12792# not exist.
12793hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12794
12795# Whether we need a single -rpath flag with a separated argument.
12796hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12797
12798# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12799# resulting binary.
12800hardcode_direct=$hardcode_direct_CXX
12801
12802# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12803# resulting binary.
12804hardcode_minus_L=$hardcode_minus_L_CXX
12805
12806# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12807# the resulting binary.
12808hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12809
12810# Set to yes if building a shared library automatically hardcodes DIR into the library
12811# and all subsequent libraries and executables linked against it.
12812hardcode_automatic=$hardcode_automatic_CXX
12813
12814# Variables whose values should be saved in libtool wrapper scripts and
12815# restored at relink time.
12816variables_saved_for_relink="$variables_saved_for_relink"
12817
12818# Whether libtool must link a program against all its dependency libraries.
12819link_all_deplibs=$link_all_deplibs_CXX
12820
12821# Compile-time system search path for libraries
12822sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12823
12824# Run-time system search path for libraries
12825sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12826
12827# Fix the shell variable \$srcfile for the compiler.
12828fix_srcfile_path="$fix_srcfile_path_CXX"
12829
12830# Set to yes if exported symbols are required.
12831always_export_symbols=$always_export_symbols_CXX
12832
12833# The commands to list exported symbols.
12834export_symbols_cmds=$lt_export_symbols_cmds_CXX
12835
12836# The commands to extract the exported symbol list from a shared archive.
12837extract_expsyms_cmds=$lt_extract_expsyms_cmds
12838
12839# Symbols that should not be listed in the preloaded symbols.
12840exclude_expsyms=$lt_exclude_expsyms_CXX
12841
12842# Symbols that must always be exported.
12843include_expsyms=$lt_include_expsyms_CXX
12844
12845# ### END LIBTOOL TAG CONFIG: $tagname
12846
12847__EOF__
12848
12849
12850else
12851  # If there is no Makefile yet, we rely on a make rule to execute
12852  # `config.status --recheck' to rerun these tests and create the
12853  # libtool script then.
12854  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12855  if test -f "$ltmain_in"; then
12856    test -f Makefile && make "$ltmain"
12857  fi
12858fi
12859
12860
12861ac_ext=c
12862ac_cpp='$CPP $CPPFLAGS'
12863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12865ac_compiler_gnu=$ac_cv_c_compiler_gnu
12866
12867CC=$lt_save_CC
12868LDCXX=$LD
12869LD=$lt_save_LD
12870GCC=$lt_save_GCC
12871with_gnu_ldcxx=$with_gnu_ld
12872with_gnu_ld=$lt_save_with_gnu_ld
12873lt_cv_path_LDCXX=$lt_cv_path_LD
12874lt_cv_path_LD=$lt_save_path_LD
12875lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12876lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12877
12878	else
12879	  tagname=""
12880	fi
12881	;;
12882
12883      F77)
12884	if test -n "$F77" && test "X$F77" != "Xno"; then
12885
12886ac_ext=f
12887ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12888ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12889ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12890
12891
12892archive_cmds_need_lc_F77=no
12893allow_undefined_flag_F77=
12894always_export_symbols_F77=no
12895archive_expsym_cmds_F77=
12896export_dynamic_flag_spec_F77=
12897hardcode_direct_F77=no
12898hardcode_libdir_flag_spec_F77=
12899hardcode_libdir_flag_spec_ld_F77=
12900hardcode_libdir_separator_F77=
12901hardcode_minus_L_F77=no
12902hardcode_automatic_F77=no
12903module_cmds_F77=
12904module_expsym_cmds_F77=
12905link_all_deplibs_F77=unknown
12906old_archive_cmds_F77=$old_archive_cmds
12907no_undefined_flag_F77=
12908whole_archive_flag_spec_F77=
12909enable_shared_with_static_runtimes_F77=no
12910
12911# Source file extension for f77 test sources.
12912ac_ext=f
12913
12914# Object file extension for compiled f77 test sources.
12915objext=o
12916objext_F77=$objext
12917
12918# Code to be used in simple compile tests
12919lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12920
12921# Code to be used in simple link tests
12922lt_simple_link_test_code="      program t\n      end\n"
12923
12924# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12925
12926# If no C compiler was specified, use CC.
12927LTCC=${LTCC-"$CC"}
12928
12929# If no C compiler flags were specified, use CFLAGS.
12930LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12931
12932# Allow CC to be a program name with arguments.
12933compiler=$CC
12934
12935
12936# save warnings/boilerplate of simple test code
12937ac_outfile=conftest.$ac_objext
12938printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12939eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12940_lt_compiler_boilerplate=`cat conftest.err`
12941$rm conftest*
12942
12943ac_outfile=conftest.$ac_objext
12944printf "$lt_simple_link_test_code" >conftest.$ac_ext
12945eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12946_lt_linker_boilerplate=`cat conftest.err`
12947$rm conftest*
12948
12949
12950# Allow CC to be a program name with arguments.
12951lt_save_CC="$CC"
12952CC=${F77-"f77"}
12953compiler=$CC
12954compiler_F77=$CC
12955for cc_temp in $compiler""; do
12956  case $cc_temp in
12957    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12958    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12959    \-*) ;;
12960    *) break;;
12961  esac
12962done
12963cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12964
12965
12966{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12967echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12968{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
12969echo "${ECHO_T}$can_build_shared" >&6; }
12970
12971{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12972echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12973test "$can_build_shared" = "no" && enable_shared=no
12974
12975# On AIX, shared libraries and static libraries use the same namespace, and
12976# are all built from PIC.
12977case $host_os in
12978aix3*)
12979  test "$enable_shared" = yes && enable_static=no
12980  if test -n "$RANLIB"; then
12981    archive_cmds="$archive_cmds~\$RANLIB \$lib"
12982    postinstall_cmds='$RANLIB $lib'
12983  fi
12984  ;;
12985aix4* | aix5*)
12986  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12987    test "$enable_shared" = yes && enable_static=no
12988  fi
12989  ;;
12990esac
12991{ echo "$as_me:$LINENO: result: $enable_shared" >&5
12992echo "${ECHO_T}$enable_shared" >&6; }
12993
12994{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12995echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12996# Make sure either enable_shared or enable_static is yes.
12997test "$enable_shared" = yes || enable_static=yes
12998{ echo "$as_me:$LINENO: result: $enable_static" >&5
12999echo "${ECHO_T}$enable_static" >&6; }
13000
13001GCC_F77="$G77"
13002LD_F77="$LD"
13003
13004lt_prog_compiler_wl_F77=
13005lt_prog_compiler_pic_F77=
13006lt_prog_compiler_static_F77=
13007
13008{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13009echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13010
13011  if test "$GCC" = yes; then
13012    lt_prog_compiler_wl_F77='-Wl,'
13013    lt_prog_compiler_static_F77='-static'
13014
13015    case $host_os in
13016      aix*)
13017      # All AIX code is PIC.
13018      if test "$host_cpu" = ia64; then
13019	# AIX 5 now supports IA64 processor
13020	lt_prog_compiler_static_F77='-Bstatic'
13021      fi
13022      ;;
13023
13024    amigaos*)
13025      # FIXME: we need at least 68020 code to build shared libraries, but
13026      # adding the `-m68020' flag to GCC prevents building anything better,
13027      # like `-m68040'.
13028      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13029      ;;
13030
13031    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13032      # PIC is the default for these OSes.
13033      ;;
13034
13035    mingw* | pw32* | os2*)
13036      # This hack is so that the source file can tell whether it is being
13037      # built for inclusion in a dll (and should export symbols for example).
13038      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13039      ;;
13040
13041    darwin* | rhapsody*)
13042      # PIC is the default on this platform
13043      # Common symbols not allowed in MH_DYLIB files
13044      lt_prog_compiler_pic_F77='-fno-common'
13045      ;;
13046
13047    interix3*)
13048      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13049      # Instead, we relocate shared libraries at runtime.
13050      ;;
13051
13052    msdosdjgpp*)
13053      # Just because we use GCC doesn't mean we suddenly get shared libraries
13054      # on systems that don't support them.
13055      lt_prog_compiler_can_build_shared_F77=no
13056      enable_shared=no
13057      ;;
13058
13059    sysv4*MP*)
13060      if test -d /usr/nec; then
13061	lt_prog_compiler_pic_F77=-Kconform_pic
13062      fi
13063      ;;
13064
13065    hpux*)
13066      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13067      # not for PA HP-UX.
13068      case $host_cpu in
13069      hppa*64*|ia64*)
13070	# +Z the default
13071	;;
13072      *)
13073	lt_prog_compiler_pic_F77='-fPIC'
13074	;;
13075      esac
13076      ;;
13077
13078    *)
13079      lt_prog_compiler_pic_F77='-fPIC'
13080      ;;
13081    esac
13082  else
13083    # PORTME Check for flag to pass linker flags through the system compiler.
13084    case $host_os in
13085    aix*)
13086      lt_prog_compiler_wl_F77='-Wl,'
13087      if test "$host_cpu" = ia64; then
13088	# AIX 5 now supports IA64 processor
13089	lt_prog_compiler_static_F77='-Bstatic'
13090      else
13091	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13092      fi
13093      ;;
13094      darwin*)
13095        # PIC is the default on this platform
13096        # Common symbols not allowed in MH_DYLIB files
13097       case $cc_basename in
13098         xlc*)
13099         lt_prog_compiler_pic_F77='-qnocommon'
13100         lt_prog_compiler_wl_F77='-Wl,'
13101         ;;
13102       esac
13103       ;;
13104
13105    mingw* | pw32* | os2*)
13106      # This hack is so that the source file can tell whether it is being
13107      # built for inclusion in a dll (and should export symbols for example).
13108      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13109      ;;
13110
13111    hpux9* | hpux10* | hpux11*)
13112      lt_prog_compiler_wl_F77='-Wl,'
13113      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13114      # not for PA HP-UX.
13115      case $host_cpu in
13116      hppa*64*|ia64*)
13117	# +Z the default
13118	;;
13119      *)
13120	lt_prog_compiler_pic_F77='+Z'
13121	;;
13122      esac
13123      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13124      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13125      ;;
13126
13127    irix5* | irix6* | nonstopux*)
13128      lt_prog_compiler_wl_F77='-Wl,'
13129      # PIC (with -KPIC) is the default.
13130      lt_prog_compiler_static_F77='-non_shared'
13131      ;;
13132
13133    newsos6)
13134      lt_prog_compiler_pic_F77='-KPIC'
13135      lt_prog_compiler_static_F77='-Bstatic'
13136      ;;
13137
13138    linux*)
13139      case $cc_basename in
13140      icc* | ecc*)
13141	lt_prog_compiler_wl_F77='-Wl,'
13142	lt_prog_compiler_pic_F77='-KPIC'
13143	lt_prog_compiler_static_F77='-static'
13144        ;;
13145      pgcc* | pgf77* | pgf90* | pgf95*)
13146        # Portland Group compilers (*not* the Pentium gcc compiler,
13147	# which looks to be a dead project)
13148	lt_prog_compiler_wl_F77='-Wl,'
13149	lt_prog_compiler_pic_F77='-fpic'
13150	lt_prog_compiler_static_F77='-Bstatic'
13151        ;;
13152      ccc*)
13153        lt_prog_compiler_wl_F77='-Wl,'
13154        # All Alpha code is PIC.
13155        lt_prog_compiler_static_F77='-non_shared'
13156        ;;
13157      esac
13158      ;;
13159
13160    osf3* | osf4* | osf5*)
13161      lt_prog_compiler_wl_F77='-Wl,'
13162      # All OSF/1 code is PIC.
13163      lt_prog_compiler_static_F77='-non_shared'
13164      ;;
13165
13166    solaris*)
13167      lt_prog_compiler_pic_F77='-KPIC'
13168      lt_prog_compiler_static_F77='-Bstatic'
13169      case $cc_basename in
13170      f77* | f90* | f95*)
13171	lt_prog_compiler_wl_F77='-Qoption ld ';;
13172      *)
13173	lt_prog_compiler_wl_F77='-Wl,';;
13174      esac
13175      ;;
13176
13177    sunos4*)
13178      lt_prog_compiler_wl_F77='-Qoption ld '
13179      lt_prog_compiler_pic_F77='-PIC'
13180      lt_prog_compiler_static_F77='-Bstatic'
13181      ;;
13182
13183    sysv4 | sysv4.2uw2* | sysv4.3*)
13184      lt_prog_compiler_wl_F77='-Wl,'
13185      lt_prog_compiler_pic_F77='-KPIC'
13186      lt_prog_compiler_static_F77='-Bstatic'
13187      ;;
13188
13189    sysv4*MP*)
13190      if test -d /usr/nec ;then
13191	lt_prog_compiler_pic_F77='-Kconform_pic'
13192	lt_prog_compiler_static_F77='-Bstatic'
13193      fi
13194      ;;
13195
13196    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13197      lt_prog_compiler_wl_F77='-Wl,'
13198      lt_prog_compiler_pic_F77='-KPIC'
13199      lt_prog_compiler_static_F77='-Bstatic'
13200      ;;
13201
13202    unicos*)
13203      lt_prog_compiler_wl_F77='-Wl,'
13204      lt_prog_compiler_can_build_shared_F77=no
13205      ;;
13206
13207    uts4*)
13208      lt_prog_compiler_pic_F77='-pic'
13209      lt_prog_compiler_static_F77='-Bstatic'
13210      ;;
13211
13212    *)
13213      lt_prog_compiler_can_build_shared_F77=no
13214      ;;
13215    esac
13216  fi
13217
13218{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13219echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13220
13221#
13222# Check to make sure the PIC flag actually works.
13223#
13224if test -n "$lt_prog_compiler_pic_F77"; then
13225
13226{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13227echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13228if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13229  echo $ECHO_N "(cached) $ECHO_C" >&6
13230else
13231  lt_prog_compiler_pic_works_F77=no
13232  ac_outfile=conftest.$ac_objext
13233   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13234   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13235   # Insert the option either (1) after the last *FLAGS variable, or
13236   # (2) before a word containing "conftest.", or (3) at the end.
13237   # Note that $ac_compile itself does not contain backslashes and begins
13238   # with a dollar sign (not a hyphen), so the echo should work correctly.
13239   # The option is referenced via a variable to avoid confusing sed.
13240   lt_compile=`echo "$ac_compile" | $SED \
13241   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13242   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13243   -e 's:$: $lt_compiler_flag:'`
13244   (eval echo "\"\$as_me:13244: $lt_compile\"" >&5)
13245   (eval "$lt_compile" 2>conftest.err)
13246   ac_status=$?
13247   cat conftest.err >&5
13248   echo "$as_me:13248: \$? = $ac_status" >&5
13249   if (exit $ac_status) && test -s "$ac_outfile"; then
13250     # The compiler can only warn and ignore the option if not recognized
13251     # So say no if there are warnings other than the usual output.
13252     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13253     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13254     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13255       lt_prog_compiler_pic_works_F77=yes
13256     fi
13257   fi
13258   $rm conftest*
13259
13260fi
13261{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13262echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13263
13264if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13265    case $lt_prog_compiler_pic_F77 in
13266     "" | " "*) ;;
13267     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13268     esac
13269else
13270    lt_prog_compiler_pic_F77=
13271     lt_prog_compiler_can_build_shared_F77=no
13272fi
13273
13274fi
13275case $host_os in
13276  # For platforms which do not support PIC, -DPIC is meaningless:
13277  *djgpp*)
13278    lt_prog_compiler_pic_F77=
13279    ;;
13280  *)
13281    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13282    ;;
13283esac
13284
13285#
13286# Check to make sure the static flag actually works.
13287#
13288wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13289{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13290echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13291if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13292  echo $ECHO_N "(cached) $ECHO_C" >&6
13293else
13294  lt_prog_compiler_static_works_F77=no
13295   save_LDFLAGS="$LDFLAGS"
13296   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13297   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13298   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13299     # The linker can only warn and ignore the option if not recognized
13300     # So say no if there are warnings
13301     if test -s conftest.err; then
13302       # Append any errors to the config.log.
13303       cat conftest.err 1>&5
13304       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13305       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13306       if diff conftest.exp conftest.er2 >/dev/null; then
13307         lt_prog_compiler_static_works_F77=yes
13308       fi
13309     else
13310       lt_prog_compiler_static_works_F77=yes
13311     fi
13312   fi
13313   $rm conftest*
13314   LDFLAGS="$save_LDFLAGS"
13315
13316fi
13317{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13318echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13319
13320if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13321    :
13322else
13323    lt_prog_compiler_static_F77=
13324fi
13325
13326
13327{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13328echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13329if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13330  echo $ECHO_N "(cached) $ECHO_C" >&6
13331else
13332  lt_cv_prog_compiler_c_o_F77=no
13333   $rm -r conftest 2>/dev/null
13334   mkdir conftest
13335   cd conftest
13336   mkdir out
13337   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13338
13339   lt_compiler_flag="-o out/conftest2.$ac_objext"
13340   # Insert the option either (1) after the last *FLAGS variable, or
13341   # (2) before a word containing "conftest.", or (3) at the end.
13342   # Note that $ac_compile itself does not contain backslashes and begins
13343   # with a dollar sign (not a hyphen), so the echo should work correctly.
13344   lt_compile=`echo "$ac_compile" | $SED \
13345   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13346   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13347   -e 's:$: $lt_compiler_flag:'`
13348   (eval echo "\"\$as_me:13348: $lt_compile\"" >&5)
13349   (eval "$lt_compile" 2>out/conftest.err)
13350   ac_status=$?
13351   cat out/conftest.err >&5
13352   echo "$as_me:13352: \$? = $ac_status" >&5
13353   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13354   then
13355     # The compiler can only warn and ignore the option if not recognized
13356     # So say no if there are warnings
13357     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13358     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13359     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13360       lt_cv_prog_compiler_c_o_F77=yes
13361     fi
13362   fi
13363   chmod u+w . 2>&5
13364   $rm conftest*
13365   # SGI C++ compiler will create directory out/ii_files/ for
13366   # template instantiation
13367   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13368   $rm out/* && rmdir out
13369   cd ..
13370   rmdir conftest
13371   $rm conftest*
13372
13373fi
13374{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13375echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13376
13377
13378hard_links="nottested"
13379if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13380  # do not overwrite the value of need_locks provided by the user
13381  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13382echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13383  hard_links=yes
13384  $rm conftest*
13385  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13386  touch conftest.a
13387  ln conftest.a conftest.b 2>&5 || hard_links=no
13388  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13389  { echo "$as_me:$LINENO: result: $hard_links" >&5
13390echo "${ECHO_T}$hard_links" >&6; }
13391  if test "$hard_links" = no; then
13392    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13393echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13394    need_locks=warn
13395  fi
13396else
13397  need_locks=no
13398fi
13399
13400{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13401echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13402
13403  runpath_var=
13404  allow_undefined_flag_F77=
13405  enable_shared_with_static_runtimes_F77=no
13406  archive_cmds_F77=
13407  archive_expsym_cmds_F77=
13408  old_archive_From_new_cmds_F77=
13409  old_archive_from_expsyms_cmds_F77=
13410  export_dynamic_flag_spec_F77=
13411  whole_archive_flag_spec_F77=
13412  thread_safe_flag_spec_F77=
13413  hardcode_libdir_flag_spec_F77=
13414  hardcode_libdir_flag_spec_ld_F77=
13415  hardcode_libdir_separator_F77=
13416  hardcode_direct_F77=no
13417  hardcode_minus_L_F77=no
13418  hardcode_shlibpath_var_F77=unsupported
13419  link_all_deplibs_F77=unknown
13420  hardcode_automatic_F77=no
13421  module_cmds_F77=
13422  module_expsym_cmds_F77=
13423  always_export_symbols_F77=no
13424  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13425  # include_expsyms should be a list of space-separated symbols to be *always*
13426  # included in the symbol list
13427  include_expsyms_F77=
13428  # exclude_expsyms can be an extended regexp of symbols to exclude
13429  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13430  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13431  # as well as any symbol that contains `d'.
13432  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13433  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13434  # platforms (ab)use it in PIC code, but their linkers get confused if
13435  # the symbol is explicitly referenced.  Since portable code cannot
13436  # rely on this symbol name, it's probably fine to never include it in
13437  # preloaded symbol tables.
13438  extract_expsyms_cmds=
13439  # Just being paranoid about ensuring that cc_basename is set.
13440  for cc_temp in $compiler""; do
13441  case $cc_temp in
13442    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13443    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13444    \-*) ;;
13445    *) break;;
13446  esac
13447done
13448cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13449
13450  case $host_os in
13451  cygwin* | mingw* | pw32*)
13452    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13453    # When not using gcc, we currently assume that we are using
13454    # Microsoft Visual C++.
13455    if test "$GCC" != yes; then
13456      with_gnu_ld=no
13457    fi
13458    ;;
13459  interix*)
13460    # we just hope/assume this is gcc and not c89 (= MSVC++)
13461    with_gnu_ld=yes
13462    ;;
13463  openbsd*)
13464    with_gnu_ld=no
13465    ;;
13466  esac
13467
13468  ld_shlibs_F77=yes
13469  if test "$with_gnu_ld" = yes; then
13470    # If archive_cmds runs LD, not CC, wlarc should be empty
13471    wlarc='${wl}'
13472
13473    # Set some defaults for GNU ld with shared library support. These
13474    # are reset later if shared libraries are not supported. Putting them
13475    # here allows them to be overridden if necessary.
13476    runpath_var=LD_RUN_PATH
13477    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13478    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13479    # ancient GNU ld didn't support --whole-archive et. al.
13480    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13481	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13482      else
13483  	whole_archive_flag_spec_F77=
13484    fi
13485    supports_anon_versioning=no
13486    case `$LD -v 2>/dev/null` in
13487      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13488      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13489      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13490      *\ 2.11.*) ;; # other 2.11 versions
13491      *) supports_anon_versioning=yes ;;
13492    esac
13493
13494    # See if GNU ld supports shared libraries.
13495    case $host_os in
13496    aix3* | aix4* | aix5*)
13497      # On AIX/PPC, the GNU linker is very broken
13498      if test "$host_cpu" != ia64; then
13499	ld_shlibs_F77=no
13500	cat <<EOF 1>&2
13501
13502*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13503*** to be unable to reliably create shared libraries on AIX.
13504*** Therefore, libtool is disabling shared libraries support.  If you
13505*** really care for shared libraries, you may want to modify your PATH
13506*** so that a non-GNU linker is found, and then restart.
13507
13508EOF
13509      fi
13510      ;;
13511
13512    amigaos*)
13513      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)'
13514      hardcode_libdir_flag_spec_F77='-L$libdir'
13515      hardcode_minus_L_F77=yes
13516
13517      # Samuel A. Falvo II <[email protected]> reports
13518      # that the semantics of dynamic libraries on AmigaOS, at least up
13519      # to version 4, is to share data among multiple programs linked
13520      # with the same dynamic library.  Since this doesn't match the
13521      # behavior of shared libraries on other platforms, we can't use
13522      # them.
13523      ld_shlibs_F77=no
13524      ;;
13525
13526    beos*)
13527      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13528	allow_undefined_flag_F77=unsupported
13529	# Joseph Beckenbach <[email protected]> says some releases of gcc
13530	# support --undefined.  This deserves some investigation.  FIXME
13531	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13532      else
13533	ld_shlibs_F77=no
13534      fi
13535      ;;
13536
13537    cygwin* | mingw* | pw32*)
13538      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13539      # as there is no search path for DLLs.
13540      hardcode_libdir_flag_spec_F77='-L$libdir'
13541      allow_undefined_flag_F77=unsupported
13542      always_export_symbols_F77=no
13543      enable_shared_with_static_runtimes_F77=yes
13544      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13545
13546      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13547        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13548	# If the export-symbols file already is a .def file (1st line
13549	# is EXPORTS), use it as is; otherwise, prepend...
13550	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13551	  cp $export_symbols $output_objdir/$soname.def;
13552	else
13553	  echo EXPORTS > $output_objdir/$soname.def;
13554	  cat $export_symbols >> $output_objdir/$soname.def;
13555	fi~
13556	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13557      else
13558	ld_shlibs_F77=no
13559      fi
13560      ;;
13561
13562    interix3*)
13563      hardcode_direct_F77=no
13564      hardcode_shlibpath_var_F77=no
13565      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13566      export_dynamic_flag_spec_F77='${wl}-E'
13567      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13568      # Instead, shared libraries are loaded at an image base (0x10000000 by
13569      # default) and relocated if they conflict, which is a slow very memory
13570      # consuming and fragmenting process.  To avoid this, we pick a random,
13571      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13572      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13573      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'
13574      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'
13575      ;;
13576
13577    linux*)
13578      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13579	tmp_addflag=
13580	case $cc_basename,$host_cpu in
13581	pgcc*)				# Portland Group C compiler
13582	  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'
13583	  tmp_addflag=' $pic_flag'
13584	  ;;
13585	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
13586	  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'
13587	  tmp_addflag=' $pic_flag -Mnomain' ;;
13588	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
13589	  tmp_addflag=' -i_dynamic' ;;
13590	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
13591	  tmp_addflag=' -i_dynamic -nofor_main' ;;
13592	ifc* | ifort*)			# Intel Fortran compiler
13593	  tmp_addflag=' -nofor_main' ;;
13594	esac
13595	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13596
13597	if test $supports_anon_versioning = yes; then
13598	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13599  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13600  $echo "local: *; };" >> $output_objdir/$libname.ver~
13601	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13602	fi
13603      else
13604	ld_shlibs_F77=no
13605      fi
13606      ;;
13607
13608    netbsd*)
13609      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13610	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13611	wlarc=
13612      else
13613	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13614	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13615      fi
13616      ;;
13617
13618    solaris*)
13619      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13620	ld_shlibs_F77=no
13621	cat <<EOF 1>&2
13622
13623*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13624*** create shared libraries on Solaris systems.  Therefore, libtool
13625*** is disabling shared libraries support.  We urge you to upgrade GNU
13626*** binutils to release 2.9.1 or newer.  Another option is to modify
13627*** your PATH or compiler configuration so that the native linker is
13628*** used, and then restart.
13629
13630EOF
13631      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13632	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13633	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13634      else
13635	ld_shlibs_F77=no
13636      fi
13637      ;;
13638
13639    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13640      case `$LD -v 2>&1` in
13641        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13642	ld_shlibs_F77=no
13643	cat <<_LT_EOF 1>&2
13644
13645*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13646*** reliably create shared libraries on SCO systems.  Therefore, libtool
13647*** is disabling shared libraries support.  We urge you to upgrade GNU
13648*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13649*** your PATH or compiler configuration so that the native linker is
13650*** used, and then restart.
13651
13652_LT_EOF
13653	;;
13654	*)
13655	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13656	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13657	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13658	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13659	  else
13660	    ld_shlibs_F77=no
13661	  fi
13662	;;
13663      esac
13664      ;;
13665
13666    sunos4*)
13667      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13668      wlarc=
13669      hardcode_direct_F77=yes
13670      hardcode_shlibpath_var_F77=no
13671      ;;
13672
13673    *)
13674      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13675	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13676	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13677      else
13678	ld_shlibs_F77=no
13679      fi
13680      ;;
13681    esac
13682
13683    if test "$ld_shlibs_F77" = no; then
13684      runpath_var=
13685      hardcode_libdir_flag_spec_F77=
13686      export_dynamic_flag_spec_F77=
13687      whole_archive_flag_spec_F77=
13688    fi
13689  else
13690    # PORTME fill in a description of your system's linker (not GNU ld)
13691    case $host_os in
13692    aix3*)
13693      allow_undefined_flag_F77=unsupported
13694      always_export_symbols_F77=yes
13695      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'
13696      # Note: this linker hardcodes the directories in LIBPATH if there
13697      # are no directories specified by -L.
13698      hardcode_minus_L_F77=yes
13699      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13700	# Neither direct hardcoding nor static linking is supported with a
13701	# broken collect2.
13702	hardcode_direct_F77=unsupported
13703      fi
13704      ;;
13705
13706    aix4* | aix5*)
13707      if test "$host_cpu" = ia64; then
13708	# On IA64, the linker does run time linking by default, so we don't
13709	# have to do anything special.
13710	aix_use_runtimelinking=no
13711	exp_sym_flag='-Bexport'
13712	no_entry_flag=""
13713      else
13714	# If we're using GNU nm, then we don't want the "-C" option.
13715	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13716	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13717	  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'
13718	else
13719	  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'
13720	fi
13721	aix_use_runtimelinking=no
13722
13723	# Test if we are trying to use run time linking or normal
13724	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13725	# need to do runtime linking.
13726	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13727	  for ld_flag in $LDFLAGS; do
13728  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13729  	    aix_use_runtimelinking=yes
13730  	    break
13731  	  fi
13732	  done
13733	  ;;
13734	esac
13735
13736	exp_sym_flag='-bexport'
13737	no_entry_flag='-bnoentry'
13738      fi
13739
13740      # When large executables or shared objects are built, AIX ld can
13741      # have problems creating the table of contents.  If linking a library
13742      # or program results in "error TOC overflow" add -mminimal-toc to
13743      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13744      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13745
13746      archive_cmds_F77=''
13747      hardcode_direct_F77=yes
13748      hardcode_libdir_separator_F77=':'
13749      link_all_deplibs_F77=yes
13750
13751      if test "$GCC" = yes; then
13752	case $host_os in aix4.[012]|aix4.[012].*)
13753	# We only want to do this on AIX 4.2 and lower, the check
13754	# below for broken collect2 doesn't work under 4.3+
13755	  collect2name=`${CC} -print-prog-name=collect2`
13756	  if test -f "$collect2name" && \
13757  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13758	  then
13759  	  # We have reworked collect2
13760  	  hardcode_direct_F77=yes
13761	  else
13762  	  # We have old collect2
13763  	  hardcode_direct_F77=unsupported
13764  	  # It fails to find uninstalled libraries when the uninstalled
13765  	  # path is not listed in the libpath.  Setting hardcode_minus_L
13766  	  # to unsupported forces relinking
13767  	  hardcode_minus_L_F77=yes
13768  	  hardcode_libdir_flag_spec_F77='-L$libdir'
13769  	  hardcode_libdir_separator_F77=
13770	  fi
13771	  ;;
13772	esac
13773	shared_flag='-shared'
13774	if test "$aix_use_runtimelinking" = yes; then
13775	  shared_flag="$shared_flag "'${wl}-G'
13776	fi
13777      else
13778	# not using gcc
13779	if test "$host_cpu" = ia64; then
13780  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13781  	# chokes on -Wl,-G. The following line is correct:
13782	  shared_flag='-G'
13783	else
13784	  if test "$aix_use_runtimelinking" = yes; then
13785	    shared_flag='${wl}-G'
13786	  else
13787	    shared_flag='${wl}-bM:SRE'
13788	  fi
13789	fi
13790      fi
13791
13792      # It seems that -bexpall does not export symbols beginning with
13793      # underscore (_), so it is better to generate a list of symbols to export.
13794      always_export_symbols_F77=yes
13795      if test "$aix_use_runtimelinking" = yes; then
13796	# Warning - without using the other runtime loading flags (-brtl),
13797	# -berok will link without error, but may produce a broken library.
13798	allow_undefined_flag_F77='-berok'
13799       # Determine the default libpath from the value encoded in an empty executable.
13800       cat >conftest.$ac_ext <<_ACEOF
13801      program main
13802
13803      end
13804_ACEOF
13805rm -f conftest.$ac_objext conftest$ac_exeext
13806if { (ac_try="$ac_link"
13807case "(($ac_try" in
13808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13809  *) ac_try_echo=$ac_try;;
13810esac
13811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13812  (eval "$ac_link") 2>conftest.er1
13813  ac_status=$?
13814  grep -v '^ *+' conftest.er1 >conftest.err
13815  rm -f conftest.er1
13816  cat conftest.err >&5
13817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818  (exit $ac_status); } && {
13819	 test -z "$ac_f77_werror_flag" ||
13820	 test ! -s conftest.err
13821       } && test -s conftest$ac_exeext &&
13822       $as_test_x conftest$ac_exeext; then
13823
13824aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13825}'`
13826# Check for a 64-bit object if we didn't find anything.
13827if 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; }
13828}'`; fi
13829else
13830  echo "$as_me: failed program was:" >&5
13831sed 's/^/| /' conftest.$ac_ext >&5
13832
13833
13834fi
13835
13836rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13837      conftest$ac_exeext conftest.$ac_ext
13838if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13839
13840       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13841	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"
13842       else
13843	if test "$host_cpu" = ia64; then
13844	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13845	  allow_undefined_flag_F77="-z nodefs"
13846	  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"
13847	else
13848	 # Determine the default libpath from the value encoded in an empty executable.
13849	 cat >conftest.$ac_ext <<_ACEOF
13850      program main
13851
13852      end
13853_ACEOF
13854rm -f conftest.$ac_objext conftest$ac_exeext
13855if { (ac_try="$ac_link"
13856case "(($ac_try" in
13857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13858  *) ac_try_echo=$ac_try;;
13859esac
13860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13861  (eval "$ac_link") 2>conftest.er1
13862  ac_status=$?
13863  grep -v '^ *+' conftest.er1 >conftest.err
13864  rm -f conftest.er1
13865  cat conftest.err >&5
13866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867  (exit $ac_status); } && {
13868	 test -z "$ac_f77_werror_flag" ||
13869	 test ! -s conftest.err
13870       } && test -s conftest$ac_exeext &&
13871       $as_test_x conftest$ac_exeext; then
13872
13873aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13874}'`
13875# Check for a 64-bit object if we didn't find anything.
13876if 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; }
13877}'`; fi
13878else
13879  echo "$as_me: failed program was:" >&5
13880sed 's/^/| /' conftest.$ac_ext >&5
13881
13882
13883fi
13884
13885rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13886      conftest$ac_exeext conftest.$ac_ext
13887if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13888
13889	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13890	  # Warning - without using the other run time loading flags,
13891	  # -berok will link without error, but may produce a broken library.
13892	  no_undefined_flag_F77=' ${wl}-bernotok'
13893	  allow_undefined_flag_F77=' ${wl}-berok'
13894	  # Exported symbols can be pulled into shared objects from archives
13895	  whole_archive_flag_spec_F77='$convenience'
13896	  archive_cmds_need_lc_F77=yes
13897	  # This is similar to how AIX traditionally builds its shared libraries.
13898	  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'
13899	fi
13900      fi
13901      ;;
13902
13903    amigaos*)
13904      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)'
13905      hardcode_libdir_flag_spec_F77='-L$libdir'
13906      hardcode_minus_L_F77=yes
13907      # see comment about different semantics on the GNU ld section
13908      ld_shlibs_F77=no
13909      ;;
13910
13911    bsdi[45]*)
13912      export_dynamic_flag_spec_F77=-rdynamic
13913      ;;
13914
13915    cygwin* | mingw* | pw32*)
13916      # When not using gcc, we currently assume that we are using
13917      # Microsoft Visual C++.
13918      # hardcode_libdir_flag_spec is actually meaningless, as there is
13919      # no search path for DLLs.
13920      hardcode_libdir_flag_spec_F77=' '
13921      allow_undefined_flag_F77=unsupported
13922      # Tell ltmain to make .lib files, not .a files.
13923      libext=lib
13924      # Tell ltmain to make .dll files, not .so files.
13925      shrext_cmds=".dll"
13926      # FIXME: Setting linknames here is a bad hack.
13927      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13928      # The linker will automatically build a .lib file if we build a DLL.
13929      old_archive_From_new_cmds_F77='true'
13930      # FIXME: Should let the user specify the lib program.
13931      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13932      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13933      enable_shared_with_static_runtimes_F77=yes
13934      ;;
13935
13936    darwin* | rhapsody*)
13937      case $host_os in
13938        rhapsody* | darwin1.[012])
13939         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13940         ;;
13941       *) # Darwin 1.3 on
13942         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13943           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13944         else
13945           case ${MACOSX_DEPLOYMENT_TARGET} in
13946             10.[012])
13947               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13948               ;;
13949             10.*)
13950               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13951               ;;
13952           esac
13953         fi
13954         ;;
13955      esac
13956      archive_cmds_need_lc_F77=no
13957      hardcode_direct_F77=no
13958      hardcode_automatic_F77=yes
13959      hardcode_shlibpath_var_F77=unsupported
13960      whole_archive_flag_spec_F77=''
13961      link_all_deplibs_F77=yes
13962    if test "$GCC" = yes ; then
13963    	output_verbose_link_cmd='echo'
13964        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13965      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13966      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13967      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}'
13968      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}'
13969    else
13970      case $cc_basename in
13971        xlc*)
13972         output_verbose_link_cmd='echo'
13973         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13974         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13975          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13976         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}'
13977          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}'
13978          ;;
13979       *)
13980         ld_shlibs_F77=no
13981          ;;
13982      esac
13983    fi
13984      ;;
13985
13986    dgux*)
13987      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13988      hardcode_libdir_flag_spec_F77='-L$libdir'
13989      hardcode_shlibpath_var_F77=no
13990      ;;
13991
13992    freebsd1*)
13993      ld_shlibs_F77=no
13994      ;;
13995
13996    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13997    # support.  Future versions do this automatically, but an explicit c++rt0.o
13998    # does not break anything, and helps significantly (at the cost of a little
13999    # extra space).
14000    freebsd2.2*)
14001      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14002      hardcode_libdir_flag_spec_F77='-R$libdir'
14003      hardcode_direct_F77=yes
14004      hardcode_shlibpath_var_F77=no
14005      ;;
14006
14007    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14008    freebsd2*)
14009      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14010      hardcode_direct_F77=yes
14011      hardcode_minus_L_F77=yes
14012      hardcode_shlibpath_var_F77=no
14013      ;;
14014
14015    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14016    freebsd* | kfreebsd*-gnu | dragonfly*)
14017      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14018      hardcode_libdir_flag_spec_F77='-R$libdir'
14019      hardcode_direct_F77=yes
14020      hardcode_shlibpath_var_F77=no
14021      ;;
14022
14023    hpux9*)
14024      if test "$GCC" = yes; then
14025	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'
14026      else
14027	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'
14028      fi
14029      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14030      hardcode_libdir_separator_F77=:
14031      hardcode_direct_F77=yes
14032
14033      # hardcode_minus_L: Not really in the search PATH,
14034      # but as the default location of the library.
14035      hardcode_minus_L_F77=yes
14036      export_dynamic_flag_spec_F77='${wl}-E'
14037      ;;
14038
14039    hpux10*)
14040      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14041	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14042      else
14043	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14044      fi
14045      if test "$with_gnu_ld" = no; then
14046	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14047	hardcode_libdir_separator_F77=:
14048
14049	hardcode_direct_F77=yes
14050	export_dynamic_flag_spec_F77='${wl}-E'
14051
14052	# hardcode_minus_L: Not really in the search PATH,
14053	# but as the default location of the library.
14054	hardcode_minus_L_F77=yes
14055      fi
14056      ;;
14057
14058    hpux11*)
14059      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14060	case $host_cpu in
14061	hppa*64*)
14062	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14063	  ;;
14064	ia64*)
14065	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14066	  ;;
14067	*)
14068	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14069	  ;;
14070	esac
14071      else
14072	case $host_cpu in
14073	hppa*64*)
14074	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14075	  ;;
14076	ia64*)
14077	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14078	  ;;
14079	*)
14080	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14081	  ;;
14082	esac
14083      fi
14084      if test "$with_gnu_ld" = no; then
14085	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14086	hardcode_libdir_separator_F77=:
14087
14088	case $host_cpu in
14089	hppa*64*|ia64*)
14090	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14091	  hardcode_direct_F77=no
14092	  hardcode_shlibpath_var_F77=no
14093	  ;;
14094	*)
14095	  hardcode_direct_F77=yes
14096	  export_dynamic_flag_spec_F77='${wl}-E'
14097
14098	  # hardcode_minus_L: Not really in the search PATH,
14099	  # but as the default location of the library.
14100	  hardcode_minus_L_F77=yes
14101	  ;;
14102	esac
14103      fi
14104      ;;
14105
14106    irix5* | irix6* | nonstopux*)
14107      if test "$GCC" = yes; then
14108	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'
14109      else
14110	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'
14111	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14112      fi
14113      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14114      hardcode_libdir_separator_F77=:
14115      link_all_deplibs_F77=yes
14116      ;;
14117
14118    netbsd*)
14119      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14120	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14121      else
14122	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14123      fi
14124      hardcode_libdir_flag_spec_F77='-R$libdir'
14125      hardcode_direct_F77=yes
14126      hardcode_shlibpath_var_F77=no
14127      ;;
14128
14129    newsos6)
14130      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14131      hardcode_direct_F77=yes
14132      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14133      hardcode_libdir_separator_F77=:
14134      hardcode_shlibpath_var_F77=no
14135      ;;
14136
14137    openbsd*)
14138      hardcode_direct_F77=yes
14139      hardcode_shlibpath_var_F77=no
14140      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14141	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14142	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14143	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14144	export_dynamic_flag_spec_F77='${wl}-E'
14145      else
14146       case $host_os in
14147	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14148	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14149	   hardcode_libdir_flag_spec_F77='-R$libdir'
14150	   ;;
14151	 *)
14152	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14153	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14154	   ;;
14155       esac
14156      fi
14157      ;;
14158
14159    os2*)
14160      hardcode_libdir_flag_spec_F77='-L$libdir'
14161      hardcode_minus_L_F77=yes
14162      allow_undefined_flag_F77=unsupported
14163      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'
14164      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14165      ;;
14166
14167    osf3*)
14168      if test "$GCC" = yes; then
14169	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14170	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'
14171      else
14172	allow_undefined_flag_F77=' -expect_unresolved \*'
14173	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'
14174      fi
14175      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14176      hardcode_libdir_separator_F77=:
14177      ;;
14178
14179    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14180      if test "$GCC" = yes; then
14181	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14182	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'
14183	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14184      else
14185	allow_undefined_flag_F77=' -expect_unresolved \*'
14186	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'
14187	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~
14188	$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'
14189
14190	# Both c and cxx compiler support -rpath directly
14191	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14192      fi
14193      hardcode_libdir_separator_F77=:
14194      ;;
14195
14196    solaris*)
14197      no_undefined_flag_F77=' -z text'
14198      if test "$GCC" = yes; then
14199	wlarc='${wl}'
14200	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14201	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14202	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14203      else
14204	wlarc=''
14205	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14206	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14207  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14208      fi
14209      hardcode_libdir_flag_spec_F77='-R$libdir'
14210      hardcode_shlibpath_var_F77=no
14211      case $host_os in
14212      solaris2.[0-5] | solaris2.[0-5].*) ;;
14213      *)
14214 	# The compiler driver will combine linker options so we
14215 	# cannot just pass the convience library names through
14216 	# without $wl, iff we do not link with $LD.
14217 	# Luckily, gcc supports the same syntax we need for Sun Studio.
14218 	# Supported since Solaris 2.6 (maybe 2.5.1?)
14219 	case $wlarc in
14220 	'')
14221 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14222 	*)
14223 	  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' ;;
14224 	esac ;;
14225      esac
14226      link_all_deplibs_F77=yes
14227      ;;
14228
14229    sunos4*)
14230      if test "x$host_vendor" = xsequent; then
14231	# Use $CC to link under sequent, because it throws in some extra .o
14232	# files that make .init and .fini sections work.
14233	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14234      else
14235	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14236      fi
14237      hardcode_libdir_flag_spec_F77='-L$libdir'
14238      hardcode_direct_F77=yes
14239      hardcode_minus_L_F77=yes
14240      hardcode_shlibpath_var_F77=no
14241      ;;
14242
14243    sysv4)
14244      case $host_vendor in
14245	sni)
14246	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14247	  hardcode_direct_F77=yes # is this really true???
14248	;;
14249	siemens)
14250	  ## LD is ld it makes a PLAMLIB
14251	  ## CC just makes a GrossModule.
14252	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14253	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14254	  hardcode_direct_F77=no
14255        ;;
14256	motorola)
14257	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14258	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14259	;;
14260      esac
14261      runpath_var='LD_RUN_PATH'
14262      hardcode_shlibpath_var_F77=no
14263      ;;
14264
14265    sysv4.3*)
14266      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14267      hardcode_shlibpath_var_F77=no
14268      export_dynamic_flag_spec_F77='-Bexport'
14269      ;;
14270
14271    sysv4*MP*)
14272      if test -d /usr/nec; then
14273	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14274	hardcode_shlibpath_var_F77=no
14275	runpath_var=LD_RUN_PATH
14276	hardcode_runpath_var=yes
14277	ld_shlibs_F77=yes
14278      fi
14279      ;;
14280
14281    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14282      no_undefined_flag_F77='${wl}-z,text'
14283      archive_cmds_need_lc_F77=no
14284      hardcode_shlibpath_var_F77=no
14285      runpath_var='LD_RUN_PATH'
14286
14287      if test "$GCC" = yes; then
14288	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14289	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14290      else
14291	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14292	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14293      fi
14294      ;;
14295
14296    sysv5* | sco3.2v5* | sco5v6*)
14297      # Note: We can NOT use -z defs as we might desire, because we do not
14298      # link with -lc, and that would cause any symbols used from libc to
14299      # always be unresolved, which means just about no library would
14300      # ever link correctly.  If we're not using GNU ld we use -z text
14301      # though, which does catch some bad symbols but isn't as heavy-handed
14302      # as -z defs.
14303      no_undefined_flag_F77='${wl}-z,text'
14304      allow_undefined_flag_F77='${wl}-z,nodefs'
14305      archive_cmds_need_lc_F77=no
14306      hardcode_shlibpath_var_F77=no
14307      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14308      hardcode_libdir_separator_F77=':'
14309      link_all_deplibs_F77=yes
14310      export_dynamic_flag_spec_F77='${wl}-Bexport'
14311      runpath_var='LD_RUN_PATH'
14312
14313      if test "$GCC" = yes; then
14314	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14315	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14316      else
14317	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14318	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14319      fi
14320      ;;
14321
14322    uts4*)
14323      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14324      hardcode_libdir_flag_spec_F77='-L$libdir'
14325      hardcode_shlibpath_var_F77=no
14326      ;;
14327
14328    *)
14329      ld_shlibs_F77=no
14330      ;;
14331    esac
14332  fi
14333
14334{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14335echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14336test "$ld_shlibs_F77" = no && can_build_shared=no
14337
14338#
14339# Do we need to explicitly link libc?
14340#
14341case "x$archive_cmds_need_lc_F77" in
14342x|xyes)
14343  # Assume -lc should be added
14344  archive_cmds_need_lc_F77=yes
14345
14346  if test "$enable_shared" = yes && test "$GCC" = yes; then
14347    case $archive_cmds_F77 in
14348    *'~'*)
14349      # FIXME: we may have to deal with multi-command sequences.
14350      ;;
14351    '$CC '*)
14352      # Test whether the compiler implicitly links with -lc since on some
14353      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14354      # to ld, don't add -lc before -lgcc.
14355      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14356echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14357      $rm conftest*
14358      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14359
14360      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14361  (eval $ac_compile) 2>&5
14362  ac_status=$?
14363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364  (exit $ac_status); } 2>conftest.err; then
14365        soname=conftest
14366        lib=conftest
14367        libobjs=conftest.$ac_objext
14368        deplibs=
14369        wl=$lt_prog_compiler_wl_F77
14370	pic_flag=$lt_prog_compiler_pic_F77
14371        compiler_flags=-v
14372        linker_flags=-v
14373        verstring=
14374        output_objdir=.
14375        libname=conftest
14376        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14377        allow_undefined_flag_F77=
14378        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14379  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14380  ac_status=$?
14381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382  (exit $ac_status); }
14383        then
14384	  archive_cmds_need_lc_F77=no
14385        else
14386	  archive_cmds_need_lc_F77=yes
14387        fi
14388        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14389      else
14390        cat conftest.err 1>&5
14391      fi
14392      $rm conftest*
14393      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14394echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14395      ;;
14396    esac
14397  fi
14398  ;;
14399esac
14400
14401{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14402echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14403library_names_spec=
14404libname_spec='lib$name'
14405soname_spec=
14406shrext_cmds=".so"
14407postinstall_cmds=
14408postuninstall_cmds=
14409finish_cmds=
14410finish_eval=
14411shlibpath_var=
14412shlibpath_overrides_runpath=unknown
14413version_type=none
14414dynamic_linker="$host_os ld.so"
14415sys_lib_dlsearch_path_spec="/lib /usr/lib"
14416if test "$GCC" = yes; then
14417  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14418  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14419    # if the path contains ";" then we assume it to be the separator
14420    # otherwise default to the standard path separator (i.e. ":") - it is
14421    # assumed that no part of a normal pathname contains ";" but that should
14422    # okay in the real world where ";" in dirpaths is itself problematic.
14423    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14424  else
14425    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14426  fi
14427else
14428  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14429fi
14430need_lib_prefix=unknown
14431hardcode_into_libs=no
14432
14433# when you set need_version to no, make sure it does not cause -set_version
14434# flags to be left without arguments
14435need_version=unknown
14436
14437case $host_os in
14438aix3*)
14439  version_type=linux
14440  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14441  shlibpath_var=LIBPATH
14442
14443  # AIX 3 has no versioning support, so we append a major version to the name.
14444  soname_spec='${libname}${release}${shared_ext}$major'
14445  ;;
14446
14447aix4* | aix5*)
14448  version_type=linux
14449  need_lib_prefix=no
14450  need_version=no
14451  hardcode_into_libs=yes
14452  if test "$host_cpu" = ia64; then
14453    # AIX 5 supports IA64
14454    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14455    shlibpath_var=LD_LIBRARY_PATH
14456  else
14457    # With GCC up to 2.95.x, collect2 would create an import file
14458    # for dependence libraries.  The import file would start with
14459    # the line `#! .'.  This would cause the generated library to
14460    # depend on `.', always an invalid library.  This was fixed in
14461    # development snapshots of GCC prior to 3.0.
14462    case $host_os in
14463      aix4 | aix4.[01] | aix4.[01].*)
14464      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14465	   echo ' yes '
14466	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14467	:
14468      else
14469	can_build_shared=no
14470      fi
14471      ;;
14472    esac
14473    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14474    # soname into executable. Probably we can add versioning support to
14475    # collect2, so additional links can be useful in future.
14476    if test "$aix_use_runtimelinking" = yes; then
14477      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14478      # instead of lib<name>.a to let people know that these are not
14479      # typical AIX shared libraries.
14480      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14481    else
14482      # We preserve .a as extension for shared libraries through AIX4.2
14483      # and later when we are not doing run time linking.
14484      library_names_spec='${libname}${release}.a $libname.a'
14485      soname_spec='${libname}${release}${shared_ext}$major'
14486    fi
14487    shlibpath_var=LIBPATH
14488  fi
14489  ;;
14490
14491amigaos*)
14492  library_names_spec='$libname.ixlibrary $libname.a'
14493  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14494  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'
14495  ;;
14496
14497beos*)
14498  library_names_spec='${libname}${shared_ext}'
14499  dynamic_linker="$host_os ld.so"
14500  shlibpath_var=LIBRARY_PATH
14501  ;;
14502
14503bsdi[45]*)
14504  version_type=linux
14505  need_version=no
14506  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14507  soname_spec='${libname}${release}${shared_ext}$major'
14508  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14509  shlibpath_var=LD_LIBRARY_PATH
14510  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14511  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14512  # the default ld.so.conf also contains /usr/contrib/lib and
14513  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14514  # libtool to hard-code these into programs
14515  ;;
14516
14517cygwin* | mingw* | pw32*)
14518  version_type=windows
14519  shrext_cmds=".dll"
14520  need_version=no
14521  need_lib_prefix=no
14522
14523  case $GCC,$host_os in
14524  yes,cygwin* | yes,mingw* | yes,pw32*)
14525    library_names_spec='$libname.dll.a'
14526    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14527    postinstall_cmds='base_file=`basename \${file}`~
14528      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14529      dldir=$destdir/`dirname \$dlpath`~
14530      test -d \$dldir || mkdir -p \$dldir~
14531      $install_prog $dir/$dlname \$dldir/$dlname~
14532      chmod a+x \$dldir/$dlname'
14533    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14534      dlpath=$dir/\$dldll~
14535       $rm \$dlpath'
14536    shlibpath_overrides_runpath=yes
14537
14538    case $host_os in
14539    cygwin*)
14540      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14541      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14542      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14543      ;;
14544    mingw*)
14545      # MinGW DLLs use traditional 'lib' prefix
14546      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14547      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14548      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14549        # It is most probably a Windows format PATH printed by
14550        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14551        # path with ; separators, and with drive letters. We can handle the
14552        # drive letters (cygwin fileutils understands them), so leave them,
14553        # especially as we might pass files found there to a mingw objdump,
14554        # which wouldn't understand a cygwinified path. Ahh.
14555        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14556      else
14557        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14558      fi
14559      ;;
14560    pw32*)
14561      # pw32 DLLs use 'pw' prefix rather than 'lib'
14562      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14563      ;;
14564    esac
14565    ;;
14566
14567  linux*)
14568    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14569      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14570      supports_anon_versioning=no
14571      case `$LD -v 2>/dev/null` in
14572        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14573        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14574        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14575        *\ 2.11.*) ;; # other 2.11 versions
14576        *) supports_anon_versioning=yes ;;
14577      esac
14578      if test $supports_anon_versioning = yes; then
14579        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14580cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14581$echo "local: *; };" >> $output_objdir/$libname.ver~
14582        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14583      else
14584        $archive_expsym_cmds="$archive_cmds"
14585      fi
14586    else
14587      ld_shlibs=no
14588    fi
14589    ;;
14590
14591  *)
14592    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14593    ;;
14594  esac
14595  dynamic_linker='Win32 ld.exe'
14596  # FIXME: first we should search . and the directory the executable is in
14597  shlibpath_var=PATH
14598  ;;
14599
14600darwin* | rhapsody*)
14601  dynamic_linker="$host_os dyld"
14602  version_type=darwin
14603  need_lib_prefix=no
14604  need_version=no
14605  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14606  soname_spec='${libname}${release}${major}$shared_ext'
14607  shlibpath_overrides_runpath=yes
14608  shlibpath_var=DYLD_LIBRARY_PATH
14609  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14610  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14611  if test "$GCC" = yes; then
14612    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"`
14613  else
14614    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14615  fi
14616  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14617  ;;
14618
14619dgux*)
14620  version_type=linux
14621  need_lib_prefix=no
14622  need_version=no
14623  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14624  soname_spec='${libname}${release}${shared_ext}$major'
14625  shlibpath_var=LD_LIBRARY_PATH
14626  ;;
14627
14628freebsd1*)
14629  dynamic_linker=no
14630  ;;
14631
14632kfreebsd*-gnu)
14633  version_type=linux
14634  need_lib_prefix=no
14635  need_version=no
14636  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14637  soname_spec='${libname}${release}${shared_ext}$major'
14638  shlibpath_var=LD_LIBRARY_PATH
14639  shlibpath_overrides_runpath=no
14640  hardcode_into_libs=yes
14641  dynamic_linker='GNU ld.so'
14642  ;;
14643
14644freebsd* | dragonfly*)
14645  # DragonFly does not have aout.  When/if they implement a new
14646  # versioning mechanism, adjust this.
14647  if test -x /usr/bin/objformat; then
14648    objformat=`/usr/bin/objformat`
14649  else
14650    case $host_os in
14651    freebsd[123]*) objformat=aout ;;
14652    *) objformat=elf ;;
14653    esac
14654  fi
14655  # Handle Gentoo/FreeBSD as it was Linux
14656  case $host_vendor in
14657    gentoo)
14658      version_type=linux ;;
14659    *)
14660      version_type=freebsd-$objformat ;;
14661  esac
14662
14663  case $version_type in
14664    freebsd-elf*)
14665      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14666      need_version=no
14667      need_lib_prefix=no
14668      ;;
14669    freebsd-*)
14670      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14671      need_version=yes
14672      ;;
14673    linux)
14674      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14675      soname_spec='${libname}${release}${shared_ext}$major'
14676      need_lib_prefix=no
14677      need_version=no
14678      ;;
14679  esac
14680  shlibpath_var=LD_LIBRARY_PATH
14681  case $host_os in
14682  freebsd2*)
14683    shlibpath_overrides_runpath=yes
14684    ;;
14685  freebsd3.[01]* | freebsdelf3.[01]*)
14686    shlibpath_overrides_runpath=yes
14687    hardcode_into_libs=yes
14688    ;;
14689  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14690  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14691    shlibpath_overrides_runpath=no
14692    hardcode_into_libs=yes
14693    ;;
14694  freebsd*) # from 4.6 on
14695    shlibpath_overrides_runpath=yes
14696    hardcode_into_libs=yes
14697    ;;
14698  esac
14699  ;;
14700
14701gnu*)
14702  version_type=linux
14703  need_lib_prefix=no
14704  need_version=no
14705  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14706  soname_spec='${libname}${release}${shared_ext}$major'
14707  shlibpath_var=LD_LIBRARY_PATH
14708  hardcode_into_libs=yes
14709  ;;
14710
14711hpux9* | hpux10* | hpux11*)
14712  # Give a soname corresponding to the major version so that dld.sl refuses to
14713  # link against other versions.
14714  version_type=sunos
14715  need_lib_prefix=no
14716  need_version=no
14717  case $host_cpu in
14718  ia64*)
14719    shrext_cmds='.so'
14720    hardcode_into_libs=yes
14721    dynamic_linker="$host_os dld.so"
14722    shlibpath_var=LD_LIBRARY_PATH
14723    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14724    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14725    soname_spec='${libname}${release}${shared_ext}$major'
14726    if test "X$HPUX_IA64_MODE" = X32; then
14727      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14728    else
14729      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14730    fi
14731    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14732    ;;
14733   hppa*64*)
14734     shrext_cmds='.sl'
14735     hardcode_into_libs=yes
14736     dynamic_linker="$host_os dld.sl"
14737     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14738     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14739     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14740     soname_spec='${libname}${release}${shared_ext}$major'
14741     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14742     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14743     ;;
14744   *)
14745    shrext_cmds='.sl'
14746    dynamic_linker="$host_os dld.sl"
14747    shlibpath_var=SHLIB_PATH
14748    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14749    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14750    soname_spec='${libname}${release}${shared_ext}$major'
14751    ;;
14752  esac
14753  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14754  postinstall_cmds='chmod 555 $lib'
14755  ;;
14756
14757interix3*)
14758  version_type=linux
14759  need_lib_prefix=no
14760  need_version=no
14761  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14762  soname_spec='${libname}${release}${shared_ext}$major'
14763  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14764  shlibpath_var=LD_LIBRARY_PATH
14765  shlibpath_overrides_runpath=no
14766  hardcode_into_libs=yes
14767  ;;
14768
14769irix5* | irix6* | nonstopux*)
14770  case $host_os in
14771    nonstopux*) version_type=nonstopux ;;
14772    *)
14773	if test "$lt_cv_prog_gnu_ld" = yes; then
14774		version_type=linux
14775	else
14776		version_type=irix
14777	fi ;;
14778  esac
14779  need_lib_prefix=no
14780  need_version=no
14781  soname_spec='${libname}${release}${shared_ext}$major'
14782  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14783  case $host_os in
14784  irix5* | nonstopux*)
14785    libsuff= shlibsuff=
14786    ;;
14787  *)
14788    case $LD in # libtool.m4 will add one of these switches to LD
14789    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14790      libsuff= shlibsuff= libmagic=32-bit;;
14791    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14792      libsuff=32 shlibsuff=N32 libmagic=N32;;
14793    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14794      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14795    *) libsuff= shlibsuff= libmagic=never-match;;
14796    esac
14797    ;;
14798  esac
14799  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14800  shlibpath_overrides_runpath=no
14801  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14802  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14803  hardcode_into_libs=yes
14804  ;;
14805
14806# No shared lib support for Linux oldld, aout, or coff.
14807linux*oldld* | linux*aout* | linux*coff*)
14808  dynamic_linker=no
14809  ;;
14810
14811# This must be Linux ELF.
14812linux*)
14813  version_type=linux
14814  need_lib_prefix=no
14815  need_version=no
14816  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14817  soname_spec='${libname}${release}${shared_ext}$major'
14818  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14819  shlibpath_var=LD_LIBRARY_PATH
14820  shlibpath_overrides_runpath=no
14821  # This implies no fast_install, which is unacceptable.
14822  # Some rework will be needed to allow for fast_install
14823  # before this can be enabled.
14824  hardcode_into_libs=yes
14825
14826  # Append ld.so.conf contents to the search path
14827  if test -f /etc/ld.so.conf; then
14828    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14829    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14830  fi
14831
14832  # We used to test for /lib/ld.so.1 and disable shared libraries on
14833  # powerpc, because MkLinux only supported shared libraries with the
14834  # GNU dynamic linker.  Since this was broken with cross compilers,
14835  # most powerpc-linux boxes support dynamic linking these days and
14836  # people can always --disable-shared, the test was removed, and we
14837  # assume the GNU/Linux dynamic linker is in use.
14838  dynamic_linker='GNU/Linux ld.so'
14839  ;;
14840
14841knetbsd*-gnu)
14842  version_type=linux
14843  need_lib_prefix=no
14844  need_version=no
14845  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14846  soname_spec='${libname}${release}${shared_ext}$major'
14847  shlibpath_var=LD_LIBRARY_PATH
14848  shlibpath_overrides_runpath=no
14849  hardcode_into_libs=yes
14850  dynamic_linker='GNU ld.so'
14851  ;;
14852
14853netbsd*)
14854  version_type=sunos
14855  need_lib_prefix=no
14856  need_version=no
14857  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14858    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14859    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14860    dynamic_linker='NetBSD (a.out) ld.so'
14861  else
14862    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14863    soname_spec='${libname}${release}${shared_ext}$major'
14864    dynamic_linker='NetBSD ld.elf_so'
14865  fi
14866  shlibpath_var=LD_LIBRARY_PATH
14867  shlibpath_overrides_runpath=yes
14868  hardcode_into_libs=yes
14869  ;;
14870
14871newsos6)
14872  version_type=linux
14873  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14874  shlibpath_var=LD_LIBRARY_PATH
14875  shlibpath_overrides_runpath=yes
14876  ;;
14877
14878nto-qnx*)
14879  version_type=linux
14880  need_lib_prefix=no
14881  need_version=no
14882  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14883  soname_spec='${libname}${release}${shared_ext}$major'
14884  shlibpath_var=LD_LIBRARY_PATH
14885  shlibpath_overrides_runpath=yes
14886  ;;
14887
14888openbsd*)
14889  version_type=sunos
14890  sys_lib_dlsearch_path_spec="/usr/lib"
14891  need_lib_prefix=no
14892  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14893  case $host_os in
14894    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14895    *)                         need_version=no  ;;
14896  esac
14897  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14898  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14899  shlibpath_var=LD_LIBRARY_PATH
14900  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14901    case $host_os in
14902      openbsd2.[89] | openbsd2.[89].*)
14903	shlibpath_overrides_runpath=no
14904	;;
14905      *)
14906	shlibpath_overrides_runpath=yes
14907	;;
14908      esac
14909  else
14910    shlibpath_overrides_runpath=yes
14911  fi
14912  ;;
14913
14914os2*)
14915  libname_spec='$name'
14916  shrext_cmds=".dll"
14917  need_lib_prefix=no
14918  library_names_spec='$libname${shared_ext} $libname.a'
14919  dynamic_linker='OS/2 ld.exe'
14920  shlibpath_var=LIBPATH
14921  ;;
14922
14923osf3* | osf4* | osf5*)
14924  version_type=osf
14925  need_lib_prefix=no
14926  need_version=no
14927  soname_spec='${libname}${release}${shared_ext}$major'
14928  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14929  shlibpath_var=LD_LIBRARY_PATH
14930  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14931  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14932  ;;
14933
14934solaris*)
14935  version_type=linux
14936  need_lib_prefix=no
14937  need_version=no
14938  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14939  soname_spec='${libname}${release}${shared_ext}$major'
14940  shlibpath_var=LD_LIBRARY_PATH
14941  shlibpath_overrides_runpath=yes
14942  hardcode_into_libs=yes
14943  # ldd complains unless libraries are executable
14944  postinstall_cmds='chmod +x $lib'
14945  ;;
14946
14947sunos4*)
14948  version_type=sunos
14949  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14950  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14951  shlibpath_var=LD_LIBRARY_PATH
14952  shlibpath_overrides_runpath=yes
14953  if test "$with_gnu_ld" = yes; then
14954    need_lib_prefix=no
14955  fi
14956  need_version=yes
14957  ;;
14958
14959sysv4 | sysv4.3*)
14960  version_type=linux
14961  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14962  soname_spec='${libname}${release}${shared_ext}$major'
14963  shlibpath_var=LD_LIBRARY_PATH
14964  case $host_vendor in
14965    sni)
14966      shlibpath_overrides_runpath=no
14967      need_lib_prefix=no
14968      export_dynamic_flag_spec='${wl}-Blargedynsym'
14969      runpath_var=LD_RUN_PATH
14970      ;;
14971    siemens)
14972      need_lib_prefix=no
14973      ;;
14974    motorola)
14975      need_lib_prefix=no
14976      need_version=no
14977      shlibpath_overrides_runpath=no
14978      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14979      ;;
14980  esac
14981  ;;
14982
14983sysv4*MP*)
14984  if test -d /usr/nec ;then
14985    version_type=linux
14986    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14987    soname_spec='$libname${shared_ext}.$major'
14988    shlibpath_var=LD_LIBRARY_PATH
14989  fi
14990  ;;
14991
14992sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14993  version_type=freebsd-elf
14994  need_lib_prefix=no
14995  need_version=no
14996  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14997  soname_spec='${libname}${release}${shared_ext}$major'
14998  shlibpath_var=LD_LIBRARY_PATH
14999  hardcode_into_libs=yes
15000  if test "$with_gnu_ld" = yes; then
15001    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15002    shlibpath_overrides_runpath=no
15003  else
15004    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15005    shlibpath_overrides_runpath=yes
15006    case $host_os in
15007      sco3.2v5*)
15008        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15009	;;
15010    esac
15011  fi
15012  sys_lib_dlsearch_path_spec='/usr/lib'
15013  ;;
15014
15015uts4*)
15016  version_type=linux
15017  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15018  soname_spec='${libname}${release}${shared_ext}$major'
15019  shlibpath_var=LD_LIBRARY_PATH
15020  ;;
15021
15022*)
15023  dynamic_linker=no
15024  ;;
15025esac
15026{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15027echo "${ECHO_T}$dynamic_linker" >&6; }
15028test "$dynamic_linker" = no && can_build_shared=no
15029
15030variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15031if test "$GCC" = yes; then
15032  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15033fi
15034
15035{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15036echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15037hardcode_action_F77=
15038if test -n "$hardcode_libdir_flag_spec_F77" || \
15039   test -n "$runpath_var_F77" || \
15040   test "X$hardcode_automatic_F77" = "Xyes" ; then
15041
15042  # We can hardcode non-existant directories.
15043  if test "$hardcode_direct_F77" != no &&
15044     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15045     # have to relink, otherwise we might link with an installed library
15046     # when we should be linking with a yet-to-be-installed one
15047     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15048     test "$hardcode_minus_L_F77" != no; then
15049    # Linking always hardcodes the temporary library directory.
15050    hardcode_action_F77=relink
15051  else
15052    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15053    hardcode_action_F77=immediate
15054  fi
15055else
15056  # We cannot hardcode anything, or else we can only hardcode existing
15057  # directories.
15058  hardcode_action_F77=unsupported
15059fi
15060{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15061echo "${ECHO_T}$hardcode_action_F77" >&6; }
15062
15063if test "$hardcode_action_F77" = relink; then
15064  # Fast installation is not supported
15065  enable_fast_install=no
15066elif test "$shlibpath_overrides_runpath" = yes ||
15067     test "$enable_shared" = no; then
15068  # Fast installation is not necessary
15069  enable_fast_install=needless
15070fi
15071
15072
15073# The else clause should only fire when bootstrapping the
15074# libtool distribution, otherwise you forgot to ship ltmain.sh
15075# with your package, and you will get complaints that there are
15076# no rules to generate ltmain.sh.
15077if test -f "$ltmain"; then
15078  # See if we are running on zsh, and set the options which allow our commands through
15079  # without removal of \ escapes.
15080  if test -n "${ZSH_VERSION+set}" ; then
15081    setopt NO_GLOB_SUBST
15082  fi
15083  # Now quote all the things that may contain metacharacters while being
15084  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15085  # variables and quote the copies for generation of the libtool script.
15086  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15087    SED SHELL STRIP \
15088    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15089    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15090    deplibs_check_method reload_flag reload_cmds need_locks \
15091    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15092    lt_cv_sys_global_symbol_to_c_name_address \
15093    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15094    old_postinstall_cmds old_postuninstall_cmds \
15095    compiler_F77 \
15096    CC_F77 \
15097    LD_F77 \
15098    lt_prog_compiler_wl_F77 \
15099    lt_prog_compiler_pic_F77 \
15100    lt_prog_compiler_static_F77 \
15101    lt_prog_compiler_no_builtin_flag_F77 \
15102    export_dynamic_flag_spec_F77 \
15103    thread_safe_flag_spec_F77 \
15104    whole_archive_flag_spec_F77 \
15105    enable_shared_with_static_runtimes_F77 \
15106    old_archive_cmds_F77 \
15107    old_archive_from_new_cmds_F77 \
15108    predep_objects_F77 \
15109    postdep_objects_F77 \
15110    predeps_F77 \
15111    postdeps_F77 \
15112    compiler_lib_search_path_F77 \
15113    archive_cmds_F77 \
15114    archive_expsym_cmds_F77 \
15115    postinstall_cmds_F77 \
15116    postuninstall_cmds_F77 \
15117    old_archive_from_expsyms_cmds_F77 \
15118    allow_undefined_flag_F77 \
15119    no_undefined_flag_F77 \
15120    export_symbols_cmds_F77 \
15121    hardcode_libdir_flag_spec_F77 \
15122    hardcode_libdir_flag_spec_ld_F77 \
15123    hardcode_libdir_separator_F77 \
15124    hardcode_automatic_F77 \
15125    module_cmds_F77 \
15126    module_expsym_cmds_F77 \
15127    lt_cv_prog_compiler_c_o_F77 \
15128    exclude_expsyms_F77 \
15129    include_expsyms_F77; do
15130
15131    case $var in
15132    old_archive_cmds_F77 | \
15133    old_archive_from_new_cmds_F77 | \
15134    archive_cmds_F77 | \
15135    archive_expsym_cmds_F77 | \
15136    module_cmds_F77 | \
15137    module_expsym_cmds_F77 | \
15138    old_archive_from_expsyms_cmds_F77 | \
15139    export_symbols_cmds_F77 | \
15140    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15141    postinstall_cmds | postuninstall_cmds | \
15142    old_postinstall_cmds | old_postuninstall_cmds | \
15143    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15144      # Double-quote double-evaled strings.
15145      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15146      ;;
15147    *)
15148      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15149      ;;
15150    esac
15151  done
15152
15153  case $lt_echo in
15154  *'\$0 --fallback-echo"')
15155    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15156    ;;
15157  esac
15158
15159cfgfile="$ofile"
15160
15161  cat <<__EOF__ >> "$cfgfile"
15162# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15163
15164# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15165
15166# Shell to use when invoking shell scripts.
15167SHELL=$lt_SHELL
15168
15169# Whether or not to build shared libraries.
15170build_libtool_libs=$enable_shared
15171
15172# Whether or not to build static libraries.
15173build_old_libs=$enable_static
15174
15175# Whether or not to add -lc for building shared libraries.
15176build_libtool_need_lc=$archive_cmds_need_lc_F77
15177
15178# Whether or not to disallow shared libs when runtime libs are static
15179allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15180
15181# Whether or not to optimize for fast installation.
15182fast_install=$enable_fast_install
15183
15184# The host system.
15185host_alias=$host_alias
15186host=$host
15187host_os=$host_os
15188
15189# The build system.
15190build_alias=$build_alias
15191build=$build
15192build_os=$build_os
15193
15194# An echo program that does not interpret backslashes.
15195echo=$lt_echo
15196
15197# The archiver.
15198AR=$lt_AR
15199AR_FLAGS=$lt_AR_FLAGS
15200
15201# A C compiler.
15202LTCC=$lt_LTCC
15203
15204# LTCC compiler flags.
15205LTCFLAGS=$lt_LTCFLAGS
15206
15207# A language-specific compiler.
15208CC=$lt_compiler_F77
15209
15210# Is the compiler the GNU C compiler?
15211with_gcc=$GCC_F77
15212
15213# An ERE matcher.
15214EGREP=$lt_EGREP
15215
15216# The linker used to build libraries.
15217LD=$lt_LD_F77
15218
15219# Whether we need hard or soft links.
15220LN_S=$lt_LN_S
15221
15222# A BSD-compatible nm program.
15223NM=$lt_NM
15224
15225# A symbol stripping program
15226STRIP=$lt_STRIP
15227
15228# Used to examine libraries when file_magic_cmd begins "file"
15229MAGIC_CMD=$MAGIC_CMD
15230
15231# Used on cygwin: DLL creation program.
15232DLLTOOL="$DLLTOOL"
15233
15234# Used on cygwin: object dumper.
15235OBJDUMP="$OBJDUMP"
15236
15237# Used on cygwin: assembler.
15238AS="$AS"
15239
15240# The name of the directory that contains temporary libtool files.
15241objdir=$objdir
15242
15243# How to create reloadable object files.
15244reload_flag=$lt_reload_flag
15245reload_cmds=$lt_reload_cmds
15246
15247# How to pass a linker flag through the compiler.
15248wl=$lt_lt_prog_compiler_wl_F77
15249
15250# Object file suffix (normally "o").
15251objext="$ac_objext"
15252
15253# Old archive suffix (normally "a").
15254libext="$libext"
15255
15256# Shared library suffix (normally ".so").
15257shrext_cmds='$shrext_cmds'
15258
15259# Executable file suffix (normally "").
15260exeext="$exeext"
15261
15262# Additional compiler flags for building library objects.
15263pic_flag=$lt_lt_prog_compiler_pic_F77
15264pic_mode=$pic_mode
15265
15266# What is the maximum length of a command?
15267max_cmd_len=$lt_cv_sys_max_cmd_len
15268
15269# Does compiler simultaneously support -c and -o options?
15270compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15271
15272# Must we lock files when doing compilation?
15273need_locks=$lt_need_locks
15274
15275# Do we need the lib prefix for modules?
15276need_lib_prefix=$need_lib_prefix
15277
15278# Do we need a version for libraries?
15279need_version=$need_version
15280
15281# Whether dlopen is supported.
15282dlopen_support=$enable_dlopen
15283
15284# Whether dlopen of programs is supported.
15285dlopen_self=$enable_dlopen_self
15286
15287# Whether dlopen of statically linked programs is supported.
15288dlopen_self_static=$enable_dlopen_self_static
15289
15290# Compiler flag to prevent dynamic linking.
15291link_static_flag=$lt_lt_prog_compiler_static_F77
15292
15293# Compiler flag to turn off builtin functions.
15294no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15295
15296# Compiler flag to allow reflexive dlopens.
15297export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15298
15299# Compiler flag to generate shared objects directly from archives.
15300whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15301
15302# Compiler flag to generate thread-safe objects.
15303thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15304
15305# Library versioning type.
15306version_type=$version_type
15307
15308# Format of library name prefix.
15309libname_spec=$lt_libname_spec
15310
15311# List of archive names.  First name is the real one, the rest are links.
15312# The last name is the one that the linker finds with -lNAME.
15313library_names_spec=$lt_library_names_spec
15314
15315# The coded name of the library, if different from the real name.
15316soname_spec=$lt_soname_spec
15317
15318# Commands used to build and install an old-style archive.
15319RANLIB=$lt_RANLIB
15320old_archive_cmds=$lt_old_archive_cmds_F77
15321old_postinstall_cmds=$lt_old_postinstall_cmds
15322old_postuninstall_cmds=$lt_old_postuninstall_cmds
15323
15324# Create an old-style archive from a shared archive.
15325old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15326
15327# Create a temporary old-style archive to link instead of a shared archive.
15328old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15329
15330# Commands used to build and install a shared archive.
15331archive_cmds=$lt_archive_cmds_F77
15332archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15333postinstall_cmds=$lt_postinstall_cmds
15334postuninstall_cmds=$lt_postuninstall_cmds
15335
15336# Commands used to build a loadable module (assumed same as above if empty)
15337module_cmds=$lt_module_cmds_F77
15338module_expsym_cmds=$lt_module_expsym_cmds_F77
15339
15340# Commands to strip libraries.
15341old_striplib=$lt_old_striplib
15342striplib=$lt_striplib
15343
15344# Dependencies to place before the objects being linked to create a
15345# shared library.
15346predep_objects=$lt_predep_objects_F77
15347
15348# Dependencies to place after the objects being linked to create a
15349# shared library.
15350postdep_objects=$lt_postdep_objects_F77
15351
15352# Dependencies to place before the objects being linked to create a
15353# shared library.
15354predeps=$lt_predeps_F77
15355
15356# Dependencies to place after the objects being linked to create a
15357# shared library.
15358postdeps=$lt_postdeps_F77
15359
15360# The library search path used internally by the compiler when linking
15361# a shared library.
15362compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15363
15364# Method to check whether dependent libraries are shared objects.
15365deplibs_check_method=$lt_deplibs_check_method
15366
15367# Command to use when deplibs_check_method == file_magic.
15368file_magic_cmd=$lt_file_magic_cmd
15369
15370# Flag that allows shared libraries with undefined symbols to be built.
15371allow_undefined_flag=$lt_allow_undefined_flag_F77
15372
15373# Flag that forces no undefined symbols.
15374no_undefined_flag=$lt_no_undefined_flag_F77
15375
15376# Commands used to finish a libtool library installation in a directory.
15377finish_cmds=$lt_finish_cmds
15378
15379# Same as above, but a single script fragment to be evaled but not shown.
15380finish_eval=$lt_finish_eval
15381
15382# Take the output of nm and produce a listing of raw symbols and C names.
15383global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15384
15385# Transform the output of nm in a proper C declaration
15386global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15387
15388# Transform the output of nm in a C name address pair
15389global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15390
15391# This is the shared library runtime path variable.
15392runpath_var=$runpath_var
15393
15394# This is the shared library path variable.
15395shlibpath_var=$shlibpath_var
15396
15397# Is shlibpath searched before the hard-coded library search path?
15398shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15399
15400# How to hardcode a shared library path into an executable.
15401hardcode_action=$hardcode_action_F77
15402
15403# Whether we should hardcode library paths into libraries.
15404hardcode_into_libs=$hardcode_into_libs
15405
15406# Flag to hardcode \$libdir into a binary during linking.
15407# This must work even if \$libdir does not exist.
15408hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15409
15410# If ld is used when linking, flag to hardcode \$libdir into
15411# a binary during linking. This must work even if \$libdir does
15412# not exist.
15413hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15414
15415# Whether we need a single -rpath flag with a separated argument.
15416hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15417
15418# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15419# resulting binary.
15420hardcode_direct=$hardcode_direct_F77
15421
15422# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15423# resulting binary.
15424hardcode_minus_L=$hardcode_minus_L_F77
15425
15426# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15427# the resulting binary.
15428hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15429
15430# Set to yes if building a shared library automatically hardcodes DIR into the library
15431# and all subsequent libraries and executables linked against it.
15432hardcode_automatic=$hardcode_automatic_F77
15433
15434# Variables whose values should be saved in libtool wrapper scripts and
15435# restored at relink time.
15436variables_saved_for_relink="$variables_saved_for_relink"
15437
15438# Whether libtool must link a program against all its dependency libraries.
15439link_all_deplibs=$link_all_deplibs_F77
15440
15441# Compile-time system search path for libraries
15442sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15443
15444# Run-time system search path for libraries
15445sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15446
15447# Fix the shell variable \$srcfile for the compiler.
15448fix_srcfile_path="$fix_srcfile_path_F77"
15449
15450# Set to yes if exported symbols are required.
15451always_export_symbols=$always_export_symbols_F77
15452
15453# The commands to list exported symbols.
15454export_symbols_cmds=$lt_export_symbols_cmds_F77
15455
15456# The commands to extract the exported symbol list from a shared archive.
15457extract_expsyms_cmds=$lt_extract_expsyms_cmds
15458
15459# Symbols that should not be listed in the preloaded symbols.
15460exclude_expsyms=$lt_exclude_expsyms_F77
15461
15462# Symbols that must always be exported.
15463include_expsyms=$lt_include_expsyms_F77
15464
15465# ### END LIBTOOL TAG CONFIG: $tagname
15466
15467__EOF__
15468
15469
15470else
15471  # If there is no Makefile yet, we rely on a make rule to execute
15472  # `config.status --recheck' to rerun these tests and create the
15473  # libtool script then.
15474  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15475  if test -f "$ltmain_in"; then
15476    test -f Makefile && make "$ltmain"
15477  fi
15478fi
15479
15480
15481ac_ext=c
15482ac_cpp='$CPP $CPPFLAGS'
15483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15485ac_compiler_gnu=$ac_cv_c_compiler_gnu
15486
15487CC="$lt_save_CC"
15488
15489	else
15490	  tagname=""
15491	fi
15492	;;
15493
15494      GCJ)
15495	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15496
15497
15498# Source file extension for Java test sources.
15499ac_ext=java
15500
15501# Object file extension for compiled Java test sources.
15502objext=o
15503objext_GCJ=$objext
15504
15505# Code to be used in simple compile tests
15506lt_simple_compile_test_code="class foo {}\n"
15507
15508# Code to be used in simple link tests
15509lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15510
15511# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15512
15513# If no C compiler was specified, use CC.
15514LTCC=${LTCC-"$CC"}
15515
15516# If no C compiler flags were specified, use CFLAGS.
15517LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15518
15519# Allow CC to be a program name with arguments.
15520compiler=$CC
15521
15522
15523# save warnings/boilerplate of simple test code
15524ac_outfile=conftest.$ac_objext
15525printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15526eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15527_lt_compiler_boilerplate=`cat conftest.err`
15528$rm conftest*
15529
15530ac_outfile=conftest.$ac_objext
15531printf "$lt_simple_link_test_code" >conftest.$ac_ext
15532eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15533_lt_linker_boilerplate=`cat conftest.err`
15534$rm conftest*
15535
15536
15537# Allow CC to be a program name with arguments.
15538lt_save_CC="$CC"
15539CC=${GCJ-"gcj"}
15540compiler=$CC
15541compiler_GCJ=$CC
15542for cc_temp in $compiler""; do
15543  case $cc_temp in
15544    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15545    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15546    \-*) ;;
15547    *) break;;
15548  esac
15549done
15550cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15551
15552
15553# GCJ did not exist at the time GCC didn't implicitly link libc in.
15554archive_cmds_need_lc_GCJ=no
15555
15556old_archive_cmds_GCJ=$old_archive_cmds
15557
15558
15559lt_prog_compiler_no_builtin_flag_GCJ=
15560
15561if test "$GCC" = yes; then
15562  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15563
15564
15565{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15566echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
15567if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15568  echo $ECHO_N "(cached) $ECHO_C" >&6
15569else
15570  lt_cv_prog_compiler_rtti_exceptions=no
15571  ac_outfile=conftest.$ac_objext
15572   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15573   lt_compiler_flag="-fno-rtti -fno-exceptions"
15574   # Insert the option either (1) after the last *FLAGS variable, or
15575   # (2) before a word containing "conftest.", or (3) at the end.
15576   # Note that $ac_compile itself does not contain backslashes and begins
15577   # with a dollar sign (not a hyphen), so the echo should work correctly.
15578   # The option is referenced via a variable to avoid confusing sed.
15579   lt_compile=`echo "$ac_compile" | $SED \
15580   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15581   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15582   -e 's:$: $lt_compiler_flag:'`
15583   (eval echo "\"\$as_me:15583: $lt_compile\"" >&5)
15584   (eval "$lt_compile" 2>conftest.err)
15585   ac_status=$?
15586   cat conftest.err >&5
15587   echo "$as_me:15587: \$? = $ac_status" >&5
15588   if (exit $ac_status) && test -s "$ac_outfile"; then
15589     # The compiler can only warn and ignore the option if not recognized
15590     # So say no if there are warnings other than the usual output.
15591     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15592     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15593     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15594       lt_cv_prog_compiler_rtti_exceptions=yes
15595     fi
15596   fi
15597   $rm conftest*
15598
15599fi
15600{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15601echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15602
15603if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15604    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15605else
15606    :
15607fi
15608
15609fi
15610
15611lt_prog_compiler_wl_GCJ=
15612lt_prog_compiler_pic_GCJ=
15613lt_prog_compiler_static_GCJ=
15614
15615{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15616echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15617
15618  if test "$GCC" = yes; then
15619    lt_prog_compiler_wl_GCJ='-Wl,'
15620    lt_prog_compiler_static_GCJ='-static'
15621
15622    case $host_os in
15623      aix*)
15624      # All AIX code is PIC.
15625      if test "$host_cpu" = ia64; then
15626	# AIX 5 now supports IA64 processor
15627	lt_prog_compiler_static_GCJ='-Bstatic'
15628      fi
15629      ;;
15630
15631    amigaos*)
15632      # FIXME: we need at least 68020 code to build shared libraries, but
15633      # adding the `-m68020' flag to GCC prevents building anything better,
15634      # like `-m68040'.
15635      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15636      ;;
15637
15638    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15639      # PIC is the default for these OSes.
15640      ;;
15641
15642    mingw* | pw32* | os2*)
15643      # This hack is so that the source file can tell whether it is being
15644      # built for inclusion in a dll (and should export symbols for example).
15645      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15646      ;;
15647
15648    darwin* | rhapsody*)
15649      # PIC is the default on this platform
15650      # Common symbols not allowed in MH_DYLIB files
15651      lt_prog_compiler_pic_GCJ='-fno-common'
15652      ;;
15653
15654    interix3*)
15655      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15656      # Instead, we relocate shared libraries at runtime.
15657      ;;
15658
15659    msdosdjgpp*)
15660      # Just because we use GCC doesn't mean we suddenly get shared libraries
15661      # on systems that don't support them.
15662      lt_prog_compiler_can_build_shared_GCJ=no
15663      enable_shared=no
15664      ;;
15665
15666    sysv4*MP*)
15667      if test -d /usr/nec; then
15668	lt_prog_compiler_pic_GCJ=-Kconform_pic
15669      fi
15670      ;;
15671
15672    hpux*)
15673      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15674      # not for PA HP-UX.
15675      case $host_cpu in
15676      hppa*64*|ia64*)
15677	# +Z the default
15678	;;
15679      *)
15680	lt_prog_compiler_pic_GCJ='-fPIC'
15681	;;
15682      esac
15683      ;;
15684
15685    *)
15686      lt_prog_compiler_pic_GCJ='-fPIC'
15687      ;;
15688    esac
15689  else
15690    # PORTME Check for flag to pass linker flags through the system compiler.
15691    case $host_os in
15692    aix*)
15693      lt_prog_compiler_wl_GCJ='-Wl,'
15694      if test "$host_cpu" = ia64; then
15695	# AIX 5 now supports IA64 processor
15696	lt_prog_compiler_static_GCJ='-Bstatic'
15697      else
15698	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15699      fi
15700      ;;
15701      darwin*)
15702        # PIC is the default on this platform
15703        # Common symbols not allowed in MH_DYLIB files
15704       case $cc_basename in
15705         xlc*)
15706         lt_prog_compiler_pic_GCJ='-qnocommon'
15707         lt_prog_compiler_wl_GCJ='-Wl,'
15708         ;;
15709       esac
15710       ;;
15711
15712    mingw* | pw32* | os2*)
15713      # This hack is so that the source file can tell whether it is being
15714      # built for inclusion in a dll (and should export symbols for example).
15715      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15716      ;;
15717
15718    hpux9* | hpux10* | hpux11*)
15719      lt_prog_compiler_wl_GCJ='-Wl,'
15720      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15721      # not for PA HP-UX.
15722      case $host_cpu in
15723      hppa*64*|ia64*)
15724	# +Z the default
15725	;;
15726      *)
15727	lt_prog_compiler_pic_GCJ='+Z'
15728	;;
15729      esac
15730      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15731      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15732      ;;
15733
15734    irix5* | irix6* | nonstopux*)
15735      lt_prog_compiler_wl_GCJ='-Wl,'
15736      # PIC (with -KPIC) is the default.
15737      lt_prog_compiler_static_GCJ='-non_shared'
15738      ;;
15739
15740    newsos6)
15741      lt_prog_compiler_pic_GCJ='-KPIC'
15742      lt_prog_compiler_static_GCJ='-Bstatic'
15743      ;;
15744
15745    linux*)
15746      case $cc_basename in
15747      icc* | ecc*)
15748	lt_prog_compiler_wl_GCJ='-Wl,'
15749	lt_prog_compiler_pic_GCJ='-KPIC'
15750	lt_prog_compiler_static_GCJ='-static'
15751        ;;
15752      pgcc* | pgf77* | pgf90* | pgf95*)
15753        # Portland Group compilers (*not* the Pentium gcc compiler,
15754	# which looks to be a dead project)
15755	lt_prog_compiler_wl_GCJ='-Wl,'
15756	lt_prog_compiler_pic_GCJ='-fpic'
15757	lt_prog_compiler_static_GCJ='-Bstatic'
15758        ;;
15759      ccc*)
15760        lt_prog_compiler_wl_GCJ='-Wl,'
15761        # All Alpha code is PIC.
15762        lt_prog_compiler_static_GCJ='-non_shared'
15763        ;;
15764      esac
15765      ;;
15766
15767    osf3* | osf4* | osf5*)
15768      lt_prog_compiler_wl_GCJ='-Wl,'
15769      # All OSF/1 code is PIC.
15770      lt_prog_compiler_static_GCJ='-non_shared'
15771      ;;
15772
15773    solaris*)
15774      lt_prog_compiler_pic_GCJ='-KPIC'
15775      lt_prog_compiler_static_GCJ='-Bstatic'
15776      case $cc_basename in
15777      f77* | f90* | f95*)
15778	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15779      *)
15780	lt_prog_compiler_wl_GCJ='-Wl,';;
15781      esac
15782      ;;
15783
15784    sunos4*)
15785      lt_prog_compiler_wl_GCJ='-Qoption ld '
15786      lt_prog_compiler_pic_GCJ='-PIC'
15787      lt_prog_compiler_static_GCJ='-Bstatic'
15788      ;;
15789
15790    sysv4 | sysv4.2uw2* | sysv4.3*)
15791      lt_prog_compiler_wl_GCJ='-Wl,'
15792      lt_prog_compiler_pic_GCJ='-KPIC'
15793      lt_prog_compiler_static_GCJ='-Bstatic'
15794      ;;
15795
15796    sysv4*MP*)
15797      if test -d /usr/nec ;then
15798	lt_prog_compiler_pic_GCJ='-Kconform_pic'
15799	lt_prog_compiler_static_GCJ='-Bstatic'
15800      fi
15801      ;;
15802
15803    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15804      lt_prog_compiler_wl_GCJ='-Wl,'
15805      lt_prog_compiler_pic_GCJ='-KPIC'
15806      lt_prog_compiler_static_GCJ='-Bstatic'
15807      ;;
15808
15809    unicos*)
15810      lt_prog_compiler_wl_GCJ='-Wl,'
15811      lt_prog_compiler_can_build_shared_GCJ=no
15812      ;;
15813
15814    uts4*)
15815      lt_prog_compiler_pic_GCJ='-pic'
15816      lt_prog_compiler_static_GCJ='-Bstatic'
15817      ;;
15818
15819    *)
15820      lt_prog_compiler_can_build_shared_GCJ=no
15821      ;;
15822    esac
15823  fi
15824
15825{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15826echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
15827
15828#
15829# Check to make sure the PIC flag actually works.
15830#
15831if test -n "$lt_prog_compiler_pic_GCJ"; then
15832
15833{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15834echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
15835if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15836  echo $ECHO_N "(cached) $ECHO_C" >&6
15837else
15838  lt_prog_compiler_pic_works_GCJ=no
15839  ac_outfile=conftest.$ac_objext
15840   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15841   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15842   # Insert the option either (1) after the last *FLAGS variable, or
15843   # (2) before a word containing "conftest.", or (3) at the end.
15844   # Note that $ac_compile itself does not contain backslashes and begins
15845   # with a dollar sign (not a hyphen), so the echo should work correctly.
15846   # The option is referenced via a variable to avoid confusing sed.
15847   lt_compile=`echo "$ac_compile" | $SED \
15848   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15849   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15850   -e 's:$: $lt_compiler_flag:'`
15851   (eval echo "\"\$as_me:15851: $lt_compile\"" >&5)
15852   (eval "$lt_compile" 2>conftest.err)
15853   ac_status=$?
15854   cat conftest.err >&5
15855   echo "$as_me:15855: \$? = $ac_status" >&5
15856   if (exit $ac_status) && test -s "$ac_outfile"; then
15857     # The compiler can only warn and ignore the option if not recognized
15858     # So say no if there are warnings other than the usual output.
15859     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15860     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15861     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15862       lt_prog_compiler_pic_works_GCJ=yes
15863     fi
15864   fi
15865   $rm conftest*
15866
15867fi
15868{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15869echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
15870
15871if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15872    case $lt_prog_compiler_pic_GCJ in
15873     "" | " "*) ;;
15874     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15875     esac
15876else
15877    lt_prog_compiler_pic_GCJ=
15878     lt_prog_compiler_can_build_shared_GCJ=no
15879fi
15880
15881fi
15882case $host_os in
15883  # For platforms which do not support PIC, -DPIC is meaningless:
15884  *djgpp*)
15885    lt_prog_compiler_pic_GCJ=
15886    ;;
15887  *)
15888    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15889    ;;
15890esac
15891
15892#
15893# Check to make sure the static flag actually works.
15894#
15895wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15896{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15897echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15898if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15899  echo $ECHO_N "(cached) $ECHO_C" >&6
15900else
15901  lt_prog_compiler_static_works_GCJ=no
15902   save_LDFLAGS="$LDFLAGS"
15903   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15904   printf "$lt_simple_link_test_code" > conftest.$ac_ext
15905   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15906     # The linker can only warn and ignore the option if not recognized
15907     # So say no if there are warnings
15908     if test -s conftest.err; then
15909       # Append any errors to the config.log.
15910       cat conftest.err 1>&5
15911       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15912       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15913       if diff conftest.exp conftest.er2 >/dev/null; then
15914         lt_prog_compiler_static_works_GCJ=yes
15915       fi
15916     else
15917       lt_prog_compiler_static_works_GCJ=yes
15918     fi
15919   fi
15920   $rm conftest*
15921   LDFLAGS="$save_LDFLAGS"
15922
15923fi
15924{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15925echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
15926
15927if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15928    :
15929else
15930    lt_prog_compiler_static_GCJ=
15931fi
15932
15933
15934{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15935echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15936if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15937  echo $ECHO_N "(cached) $ECHO_C" >&6
15938else
15939  lt_cv_prog_compiler_c_o_GCJ=no
15940   $rm -r conftest 2>/dev/null
15941   mkdir conftest
15942   cd conftest
15943   mkdir out
15944   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15945
15946   lt_compiler_flag="-o out/conftest2.$ac_objext"
15947   # Insert the option either (1) after the last *FLAGS variable, or
15948   # (2) before a word containing "conftest.", or (3) at the end.
15949   # Note that $ac_compile itself does not contain backslashes and begins
15950   # with a dollar sign (not a hyphen), so the echo should work correctly.
15951   lt_compile=`echo "$ac_compile" | $SED \
15952   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15953   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15954   -e 's:$: $lt_compiler_flag:'`
15955   (eval echo "\"\$as_me:15955: $lt_compile\"" >&5)
15956   (eval "$lt_compile" 2>out/conftest.err)
15957   ac_status=$?
15958   cat out/conftest.err >&5
15959   echo "$as_me:15959: \$? = $ac_status" >&5
15960   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15961   then
15962     # The compiler can only warn and ignore the option if not recognized
15963     # So say no if there are warnings
15964     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15965     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15966     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15967       lt_cv_prog_compiler_c_o_GCJ=yes
15968     fi
15969   fi
15970   chmod u+w . 2>&5
15971   $rm conftest*
15972   # SGI C++ compiler will create directory out/ii_files/ for
15973   # template instantiation
15974   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15975   $rm out/* && rmdir out
15976   cd ..
15977   rmdir conftest
15978   $rm conftest*
15979
15980fi
15981{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15982echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
15983
15984
15985hard_links="nottested"
15986if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15987  # do not overwrite the value of need_locks provided by the user
15988  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15989echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15990  hard_links=yes
15991  $rm conftest*
15992  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15993  touch conftest.a
15994  ln conftest.a conftest.b 2>&5 || hard_links=no
15995  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15996  { echo "$as_me:$LINENO: result: $hard_links" >&5
15997echo "${ECHO_T}$hard_links" >&6; }
15998  if test "$hard_links" = no; then
15999    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16000echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16001    need_locks=warn
16002  fi
16003else
16004  need_locks=no
16005fi
16006
16007{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16008echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16009
16010  runpath_var=
16011  allow_undefined_flag_GCJ=
16012  enable_shared_with_static_runtimes_GCJ=no
16013  archive_cmds_GCJ=
16014  archive_expsym_cmds_GCJ=
16015  old_archive_From_new_cmds_GCJ=
16016  old_archive_from_expsyms_cmds_GCJ=
16017  export_dynamic_flag_spec_GCJ=
16018  whole_archive_flag_spec_GCJ=
16019  thread_safe_flag_spec_GCJ=
16020  hardcode_libdir_flag_spec_GCJ=
16021  hardcode_libdir_flag_spec_ld_GCJ=
16022  hardcode_libdir_separator_GCJ=
16023  hardcode_direct_GCJ=no
16024  hardcode_minus_L_GCJ=no
16025  hardcode_shlibpath_var_GCJ=unsupported
16026  link_all_deplibs_GCJ=unknown
16027  hardcode_automatic_GCJ=no
16028  module_cmds_GCJ=
16029  module_expsym_cmds_GCJ=
16030  always_export_symbols_GCJ=no
16031  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16032  # include_expsyms should be a list of space-separated symbols to be *always*
16033  # included in the symbol list
16034  include_expsyms_GCJ=
16035  # exclude_expsyms can be an extended regexp of symbols to exclude
16036  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16037  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16038  # as well as any symbol that contains `d'.
16039  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16040  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16041  # platforms (ab)use it in PIC code, but their linkers get confused if
16042  # the symbol is explicitly referenced.  Since portable code cannot
16043  # rely on this symbol name, it's probably fine to never include it in
16044  # preloaded symbol tables.
16045  extract_expsyms_cmds=
16046  # Just being paranoid about ensuring that cc_basename is set.
16047  for cc_temp in $compiler""; do
16048  case $cc_temp in
16049    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16050    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16051    \-*) ;;
16052    *) break;;
16053  esac
16054done
16055cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16056
16057  case $host_os in
16058  cygwin* | mingw* | pw32*)
16059    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16060    # When not using gcc, we currently assume that we are using
16061    # Microsoft Visual C++.
16062    if test "$GCC" != yes; then
16063      with_gnu_ld=no
16064    fi
16065    ;;
16066  interix*)
16067    # we just hope/assume this is gcc and not c89 (= MSVC++)
16068    with_gnu_ld=yes
16069    ;;
16070  openbsd*)
16071    with_gnu_ld=no
16072    ;;
16073  esac
16074
16075  ld_shlibs_GCJ=yes
16076  if test "$with_gnu_ld" = yes; then
16077    # If archive_cmds runs LD, not CC, wlarc should be empty
16078    wlarc='${wl}'
16079
16080    # Set some defaults for GNU ld with shared library support. These
16081    # are reset later if shared libraries are not supported. Putting them
16082    # here allows them to be overridden if necessary.
16083    runpath_var=LD_RUN_PATH
16084    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16085    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16086    # ancient GNU ld didn't support --whole-archive et. al.
16087    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16088	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16089      else
16090  	whole_archive_flag_spec_GCJ=
16091    fi
16092    supports_anon_versioning=no
16093    case `$LD -v 2>/dev/null` in
16094      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16095      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16096      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16097      *\ 2.11.*) ;; # other 2.11 versions
16098      *) supports_anon_versioning=yes ;;
16099    esac
16100
16101    # See if GNU ld supports shared libraries.
16102    case $host_os in
16103    aix3* | aix4* | aix5*)
16104      # On AIX/PPC, the GNU linker is very broken
16105      if test "$host_cpu" != ia64; then
16106	ld_shlibs_GCJ=no
16107	cat <<EOF 1>&2
16108
16109*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16110*** to be unable to reliably create shared libraries on AIX.
16111*** Therefore, libtool is disabling shared libraries support.  If you
16112*** really care for shared libraries, you may want to modify your PATH
16113*** so that a non-GNU linker is found, and then restart.
16114
16115EOF
16116      fi
16117      ;;
16118
16119    amigaos*)
16120      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)'
16121      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16122      hardcode_minus_L_GCJ=yes
16123
16124      # Samuel A. Falvo II <[email protected]> reports
16125      # that the semantics of dynamic libraries on AmigaOS, at least up
16126      # to version 4, is to share data among multiple programs linked
16127      # with the same dynamic library.  Since this doesn't match the
16128      # behavior of shared libraries on other platforms, we can't use
16129      # them.
16130      ld_shlibs_GCJ=no
16131      ;;
16132
16133    beos*)
16134      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16135	allow_undefined_flag_GCJ=unsupported
16136	# Joseph Beckenbach <[email protected]> says some releases of gcc
16137	# support --undefined.  This deserves some investigation.  FIXME
16138	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16139      else
16140	ld_shlibs_GCJ=no
16141      fi
16142      ;;
16143
16144    cygwin* | mingw* | pw32*)
16145      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16146      # as there is no search path for DLLs.
16147      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16148      allow_undefined_flag_GCJ=unsupported
16149      always_export_symbols_GCJ=no
16150      enable_shared_with_static_runtimes_GCJ=yes
16151      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16152
16153      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16154        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16155	# If the export-symbols file already is a .def file (1st line
16156	# is EXPORTS), use it as is; otherwise, prepend...
16157	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16158	  cp $export_symbols $output_objdir/$soname.def;
16159	else
16160	  echo EXPORTS > $output_objdir/$soname.def;
16161	  cat $export_symbols >> $output_objdir/$soname.def;
16162	fi~
16163	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16164      else
16165	ld_shlibs_GCJ=no
16166      fi
16167      ;;
16168
16169    interix3*)
16170      hardcode_direct_GCJ=no
16171      hardcode_shlibpath_var_GCJ=no
16172      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16173      export_dynamic_flag_spec_GCJ='${wl}-E'
16174      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16175      # Instead, shared libraries are loaded at an image base (0x10000000 by
16176      # default) and relocated if they conflict, which is a slow very memory
16177      # consuming and fragmenting process.  To avoid this, we pick a random,
16178      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16179      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16180      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'
16181      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'
16182      ;;
16183
16184    linux*)
16185      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16186	tmp_addflag=
16187	case $cc_basename,$host_cpu in
16188	pgcc*)				# Portland Group C compiler
16189	  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'
16190	  tmp_addflag=' $pic_flag'
16191	  ;;
16192	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16193	  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'
16194	  tmp_addflag=' $pic_flag -Mnomain' ;;
16195	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16196	  tmp_addflag=' -i_dynamic' ;;
16197	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16198	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16199	ifc* | ifort*)			# Intel Fortran compiler
16200	  tmp_addflag=' -nofor_main' ;;
16201	esac
16202	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16203
16204	if test $supports_anon_versioning = yes; then
16205	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16206  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16207  $echo "local: *; };" >> $output_objdir/$libname.ver~
16208	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16209	fi
16210      else
16211	ld_shlibs_GCJ=no
16212      fi
16213      ;;
16214
16215    netbsd*)
16216      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16217	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16218	wlarc=
16219      else
16220	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16221	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16222      fi
16223      ;;
16224
16225    solaris*)
16226      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16227	ld_shlibs_GCJ=no
16228	cat <<EOF 1>&2
16229
16230*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16231*** create shared libraries on Solaris systems.  Therefore, libtool
16232*** is disabling shared libraries support.  We urge you to upgrade GNU
16233*** binutils to release 2.9.1 or newer.  Another option is to modify
16234*** your PATH or compiler configuration so that the native linker is
16235*** used, and then restart.
16236
16237EOF
16238      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16239	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16240	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16241      else
16242	ld_shlibs_GCJ=no
16243      fi
16244      ;;
16245
16246    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16247      case `$LD -v 2>&1` in
16248        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16249	ld_shlibs_GCJ=no
16250	cat <<_LT_EOF 1>&2
16251
16252*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16253*** reliably create shared libraries on SCO systems.  Therefore, libtool
16254*** is disabling shared libraries support.  We urge you to upgrade GNU
16255*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16256*** your PATH or compiler configuration so that the native linker is
16257*** used, and then restart.
16258
16259_LT_EOF
16260	;;
16261	*)
16262	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16263	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16264	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16265	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16266	  else
16267	    ld_shlibs_GCJ=no
16268	  fi
16269	;;
16270      esac
16271      ;;
16272
16273    sunos4*)
16274      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16275      wlarc=
16276      hardcode_direct_GCJ=yes
16277      hardcode_shlibpath_var_GCJ=no
16278      ;;
16279
16280    *)
16281      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16282	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16283	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16284      else
16285	ld_shlibs_GCJ=no
16286      fi
16287      ;;
16288    esac
16289
16290    if test "$ld_shlibs_GCJ" = no; then
16291      runpath_var=
16292      hardcode_libdir_flag_spec_GCJ=
16293      export_dynamic_flag_spec_GCJ=
16294      whole_archive_flag_spec_GCJ=
16295    fi
16296  else
16297    # PORTME fill in a description of your system's linker (not GNU ld)
16298    case $host_os in
16299    aix3*)
16300      allow_undefined_flag_GCJ=unsupported
16301      always_export_symbols_GCJ=yes
16302      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'
16303      # Note: this linker hardcodes the directories in LIBPATH if there
16304      # are no directories specified by -L.
16305      hardcode_minus_L_GCJ=yes
16306      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16307	# Neither direct hardcoding nor static linking is supported with a
16308	# broken collect2.
16309	hardcode_direct_GCJ=unsupported
16310      fi
16311      ;;
16312
16313    aix4* | aix5*)
16314      if test "$host_cpu" = ia64; then
16315	# On IA64, the linker does run time linking by default, so we don't
16316	# have to do anything special.
16317	aix_use_runtimelinking=no
16318	exp_sym_flag='-Bexport'
16319	no_entry_flag=""
16320      else
16321	# If we're using GNU nm, then we don't want the "-C" option.
16322	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16323	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16324	  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'
16325	else
16326	  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'
16327	fi
16328	aix_use_runtimelinking=no
16329
16330	# Test if we are trying to use run time linking or normal
16331	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16332	# need to do runtime linking.
16333	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16334	  for ld_flag in $LDFLAGS; do
16335  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16336  	    aix_use_runtimelinking=yes
16337  	    break
16338  	  fi
16339	  done
16340	  ;;
16341	esac
16342
16343	exp_sym_flag='-bexport'
16344	no_entry_flag='-bnoentry'
16345      fi
16346
16347      # When large executables or shared objects are built, AIX ld can
16348      # have problems creating the table of contents.  If linking a library
16349      # or program results in "error TOC overflow" add -mminimal-toc to
16350      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16351      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16352
16353      archive_cmds_GCJ=''
16354      hardcode_direct_GCJ=yes
16355      hardcode_libdir_separator_GCJ=':'
16356      link_all_deplibs_GCJ=yes
16357
16358      if test "$GCC" = yes; then
16359	case $host_os in aix4.[012]|aix4.[012].*)
16360	# We only want to do this on AIX 4.2 and lower, the check
16361	# below for broken collect2 doesn't work under 4.3+
16362	  collect2name=`${CC} -print-prog-name=collect2`
16363	  if test -f "$collect2name" && \
16364  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16365	  then
16366  	  # We have reworked collect2
16367  	  hardcode_direct_GCJ=yes
16368	  else
16369  	  # We have old collect2
16370  	  hardcode_direct_GCJ=unsupported
16371  	  # It fails to find uninstalled libraries when the uninstalled
16372  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16373  	  # to unsupported forces relinking
16374  	  hardcode_minus_L_GCJ=yes
16375  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16376  	  hardcode_libdir_separator_GCJ=
16377	  fi
16378	  ;;
16379	esac
16380	shared_flag='-shared'
16381	if test "$aix_use_runtimelinking" = yes; then
16382	  shared_flag="$shared_flag "'${wl}-G'
16383	fi
16384      else
16385	# not using gcc
16386	if test "$host_cpu" = ia64; then
16387  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16388  	# chokes on -Wl,-G. The following line is correct:
16389	  shared_flag='-G'
16390	else
16391	  if test "$aix_use_runtimelinking" = yes; then
16392	    shared_flag='${wl}-G'
16393	  else
16394	    shared_flag='${wl}-bM:SRE'
16395	  fi
16396	fi
16397      fi
16398
16399      # It seems that -bexpall does not export symbols beginning with
16400      # underscore (_), so it is better to generate a list of symbols to export.
16401      always_export_symbols_GCJ=yes
16402      if test "$aix_use_runtimelinking" = yes; then
16403	# Warning - without using the other runtime loading flags (-brtl),
16404	# -berok will link without error, but may produce a broken library.
16405	allow_undefined_flag_GCJ='-berok'
16406       # Determine the default libpath from the value encoded in an empty executable.
16407       cat >conftest.$ac_ext <<_ACEOF
16408/* confdefs.h.  */
16409_ACEOF
16410cat confdefs.h >>conftest.$ac_ext
16411cat >>conftest.$ac_ext <<_ACEOF
16412/* end confdefs.h.  */
16413
16414int
16415main ()
16416{
16417
16418  ;
16419  return 0;
16420}
16421_ACEOF
16422rm -f conftest.$ac_objext conftest$ac_exeext
16423if { (ac_try="$ac_link"
16424case "(($ac_try" in
16425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16426  *) ac_try_echo=$ac_try;;
16427esac
16428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16429  (eval "$ac_link") 2>conftest.er1
16430  ac_status=$?
16431  grep -v '^ *+' conftest.er1 >conftest.err
16432  rm -f conftest.er1
16433  cat conftest.err >&5
16434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435  (exit $ac_status); } && {
16436	 test -z "$ac_c_werror_flag" ||
16437	 test ! -s conftest.err
16438       } && test -s conftest$ac_exeext &&
16439       $as_test_x conftest$ac_exeext; then
16440
16441aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16442}'`
16443# Check for a 64-bit object if we didn't find anything.
16444if 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; }
16445}'`; fi
16446else
16447  echo "$as_me: failed program was:" >&5
16448sed 's/^/| /' conftest.$ac_ext >&5
16449
16450
16451fi
16452
16453rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16454      conftest$ac_exeext conftest.$ac_ext
16455if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16456
16457       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16458	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"
16459       else
16460	if test "$host_cpu" = ia64; then
16461	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16462	  allow_undefined_flag_GCJ="-z nodefs"
16463	  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"
16464	else
16465	 # Determine the default libpath from the value encoded in an empty executable.
16466	 cat >conftest.$ac_ext <<_ACEOF
16467/* confdefs.h.  */
16468_ACEOF
16469cat confdefs.h >>conftest.$ac_ext
16470cat >>conftest.$ac_ext <<_ACEOF
16471/* end confdefs.h.  */
16472
16473int
16474main ()
16475{
16476
16477  ;
16478  return 0;
16479}
16480_ACEOF
16481rm -f conftest.$ac_objext conftest$ac_exeext
16482if { (ac_try="$ac_link"
16483case "(($ac_try" in
16484  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16485  *) ac_try_echo=$ac_try;;
16486esac
16487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16488  (eval "$ac_link") 2>conftest.er1
16489  ac_status=$?
16490  grep -v '^ *+' conftest.er1 >conftest.err
16491  rm -f conftest.er1
16492  cat conftest.err >&5
16493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494  (exit $ac_status); } && {
16495	 test -z "$ac_c_werror_flag" ||
16496	 test ! -s conftest.err
16497       } && test -s conftest$ac_exeext &&
16498       $as_test_x conftest$ac_exeext; then
16499
16500aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16501}'`
16502# Check for a 64-bit object if we didn't find anything.
16503if 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; }
16504}'`; fi
16505else
16506  echo "$as_me: failed program was:" >&5
16507sed 's/^/| /' conftest.$ac_ext >&5
16508
16509
16510fi
16511
16512rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16513      conftest$ac_exeext conftest.$ac_ext
16514if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16515
16516	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16517	  # Warning - without using the other run time loading flags,
16518	  # -berok will link without error, but may produce a broken library.
16519	  no_undefined_flag_GCJ=' ${wl}-bernotok'
16520	  allow_undefined_flag_GCJ=' ${wl}-berok'
16521	  # Exported symbols can be pulled into shared objects from archives
16522	  whole_archive_flag_spec_GCJ='$convenience'
16523	  archive_cmds_need_lc_GCJ=yes
16524	  # This is similar to how AIX traditionally builds its shared libraries.
16525	  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'
16526	fi
16527      fi
16528      ;;
16529
16530    amigaos*)
16531      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)'
16532      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16533      hardcode_minus_L_GCJ=yes
16534      # see comment about different semantics on the GNU ld section
16535      ld_shlibs_GCJ=no
16536      ;;
16537
16538    bsdi[45]*)
16539      export_dynamic_flag_spec_GCJ=-rdynamic
16540      ;;
16541
16542    cygwin* | mingw* | pw32*)
16543      # When not using gcc, we currently assume that we are using
16544      # Microsoft Visual C++.
16545      # hardcode_libdir_flag_spec is actually meaningless, as there is
16546      # no search path for DLLs.
16547      hardcode_libdir_flag_spec_GCJ=' '
16548      allow_undefined_flag_GCJ=unsupported
16549      # Tell ltmain to make .lib files, not .a files.
16550      libext=lib
16551      # Tell ltmain to make .dll files, not .so files.
16552      shrext_cmds=".dll"
16553      # FIXME: Setting linknames here is a bad hack.
16554      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16555      # The linker will automatically build a .lib file if we build a DLL.
16556      old_archive_From_new_cmds_GCJ='true'
16557      # FIXME: Should let the user specify the lib program.
16558      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16559      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16560      enable_shared_with_static_runtimes_GCJ=yes
16561      ;;
16562
16563    darwin* | rhapsody*)
16564      case $host_os in
16565        rhapsody* | darwin1.[012])
16566         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16567         ;;
16568       *) # Darwin 1.3 on
16569         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16570           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16571         else
16572           case ${MACOSX_DEPLOYMENT_TARGET} in
16573             10.[012])
16574               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16575               ;;
16576             10.*)
16577               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16578               ;;
16579           esac
16580         fi
16581         ;;
16582      esac
16583      archive_cmds_need_lc_GCJ=no
16584      hardcode_direct_GCJ=no
16585      hardcode_automatic_GCJ=yes
16586      hardcode_shlibpath_var_GCJ=unsupported
16587      whole_archive_flag_spec_GCJ=''
16588      link_all_deplibs_GCJ=yes
16589    if test "$GCC" = yes ; then
16590    	output_verbose_link_cmd='echo'
16591        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16592      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16593      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16594      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}'
16595      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}'
16596    else
16597      case $cc_basename in
16598        xlc*)
16599         output_verbose_link_cmd='echo'
16600         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16601         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16602          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16603         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}'
16604          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}'
16605          ;;
16606       *)
16607         ld_shlibs_GCJ=no
16608          ;;
16609      esac
16610    fi
16611      ;;
16612
16613    dgux*)
16614      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16615      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16616      hardcode_shlibpath_var_GCJ=no
16617      ;;
16618
16619    freebsd1*)
16620      ld_shlibs_GCJ=no
16621      ;;
16622
16623    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16624    # support.  Future versions do this automatically, but an explicit c++rt0.o
16625    # does not break anything, and helps significantly (at the cost of a little
16626    # extra space).
16627    freebsd2.2*)
16628      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16629      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16630      hardcode_direct_GCJ=yes
16631      hardcode_shlibpath_var_GCJ=no
16632      ;;
16633
16634    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16635    freebsd2*)
16636      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16637      hardcode_direct_GCJ=yes
16638      hardcode_minus_L_GCJ=yes
16639      hardcode_shlibpath_var_GCJ=no
16640      ;;
16641
16642    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16643    freebsd* | kfreebsd*-gnu | dragonfly*)
16644      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16645      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16646      hardcode_direct_GCJ=yes
16647      hardcode_shlibpath_var_GCJ=no
16648      ;;
16649
16650    hpux9*)
16651      if test "$GCC" = yes; then
16652	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'
16653      else
16654	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'
16655      fi
16656      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16657      hardcode_libdir_separator_GCJ=:
16658      hardcode_direct_GCJ=yes
16659
16660      # hardcode_minus_L: Not really in the search PATH,
16661      # but as the default location of the library.
16662      hardcode_minus_L_GCJ=yes
16663      export_dynamic_flag_spec_GCJ='${wl}-E'
16664      ;;
16665
16666    hpux10*)
16667      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16668	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16669      else
16670	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16671      fi
16672      if test "$with_gnu_ld" = no; then
16673	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16674	hardcode_libdir_separator_GCJ=:
16675
16676	hardcode_direct_GCJ=yes
16677	export_dynamic_flag_spec_GCJ='${wl}-E'
16678
16679	# hardcode_minus_L: Not really in the search PATH,
16680	# but as the default location of the library.
16681	hardcode_minus_L_GCJ=yes
16682      fi
16683      ;;
16684
16685    hpux11*)
16686      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16687	case $host_cpu in
16688	hppa*64*)
16689	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16690	  ;;
16691	ia64*)
16692	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16693	  ;;
16694	*)
16695	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16696	  ;;
16697	esac
16698      else
16699	case $host_cpu in
16700	hppa*64*)
16701	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16702	  ;;
16703	ia64*)
16704	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16705	  ;;
16706	*)
16707	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16708	  ;;
16709	esac
16710      fi
16711      if test "$with_gnu_ld" = no; then
16712	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16713	hardcode_libdir_separator_GCJ=:
16714
16715	case $host_cpu in
16716	hppa*64*|ia64*)
16717	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16718	  hardcode_direct_GCJ=no
16719	  hardcode_shlibpath_var_GCJ=no
16720	  ;;
16721	*)
16722	  hardcode_direct_GCJ=yes
16723	  export_dynamic_flag_spec_GCJ='${wl}-E'
16724
16725	  # hardcode_minus_L: Not really in the search PATH,
16726	  # but as the default location of the library.
16727	  hardcode_minus_L_GCJ=yes
16728	  ;;
16729	esac
16730      fi
16731      ;;
16732
16733    irix5* | irix6* | nonstopux*)
16734      if test "$GCC" = yes; then
16735	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'
16736      else
16737	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'
16738	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16739      fi
16740      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16741      hardcode_libdir_separator_GCJ=:
16742      link_all_deplibs_GCJ=yes
16743      ;;
16744
16745    netbsd*)
16746      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16747	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16748      else
16749	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16750      fi
16751      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16752      hardcode_direct_GCJ=yes
16753      hardcode_shlibpath_var_GCJ=no
16754      ;;
16755
16756    newsos6)
16757      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16758      hardcode_direct_GCJ=yes
16759      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16760      hardcode_libdir_separator_GCJ=:
16761      hardcode_shlibpath_var_GCJ=no
16762      ;;
16763
16764    openbsd*)
16765      hardcode_direct_GCJ=yes
16766      hardcode_shlibpath_var_GCJ=no
16767      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16768	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16769	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16770	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16771	export_dynamic_flag_spec_GCJ='${wl}-E'
16772      else
16773       case $host_os in
16774	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16775	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16776	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
16777	   ;;
16778	 *)
16779	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16780	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16781	   ;;
16782       esac
16783      fi
16784      ;;
16785
16786    os2*)
16787      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16788      hardcode_minus_L_GCJ=yes
16789      allow_undefined_flag_GCJ=unsupported
16790      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'
16791      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16792      ;;
16793
16794    osf3*)
16795      if test "$GCC" = yes; then
16796	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16797	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'
16798      else
16799	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16800	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'
16801      fi
16802      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16803      hardcode_libdir_separator_GCJ=:
16804      ;;
16805
16806    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16807      if test "$GCC" = yes; then
16808	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16809	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'
16810	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16811      else
16812	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16813	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'
16814	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~
16815	$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'
16816
16817	# Both c and cxx compiler support -rpath directly
16818	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16819      fi
16820      hardcode_libdir_separator_GCJ=:
16821      ;;
16822
16823    solaris*)
16824      no_undefined_flag_GCJ=' -z text'
16825      if test "$GCC" = yes; then
16826	wlarc='${wl}'
16827	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16828	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16829	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16830      else
16831	wlarc=''
16832	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16833	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16834  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16835      fi
16836      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16837      hardcode_shlibpath_var_GCJ=no
16838      case $host_os in
16839      solaris2.[0-5] | solaris2.[0-5].*) ;;
16840      *)
16841 	# The compiler driver will combine linker options so we
16842 	# cannot just pass the convience library names through
16843 	# without $wl, iff we do not link with $LD.
16844 	# Luckily, gcc supports the same syntax we need for Sun Studio.
16845 	# Supported since Solaris 2.6 (maybe 2.5.1?)
16846 	case $wlarc in
16847 	'')
16848 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16849 	*)
16850 	  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' ;;
16851 	esac ;;
16852      esac
16853      link_all_deplibs_GCJ=yes
16854      ;;
16855
16856    sunos4*)
16857      if test "x$host_vendor" = xsequent; then
16858	# Use $CC to link under sequent, because it throws in some extra .o
16859	# files that make .init and .fini sections work.
16860	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16861      else
16862	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16863      fi
16864      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16865      hardcode_direct_GCJ=yes
16866      hardcode_minus_L_GCJ=yes
16867      hardcode_shlibpath_var_GCJ=no
16868      ;;
16869
16870    sysv4)
16871      case $host_vendor in
16872	sni)
16873	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16874	  hardcode_direct_GCJ=yes # is this really true???
16875	;;
16876	siemens)
16877	  ## LD is ld it makes a PLAMLIB
16878	  ## CC just makes a GrossModule.
16879	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16880	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16881	  hardcode_direct_GCJ=no
16882        ;;
16883	motorola)
16884	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16885	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16886	;;
16887      esac
16888      runpath_var='LD_RUN_PATH'
16889      hardcode_shlibpath_var_GCJ=no
16890      ;;
16891
16892    sysv4.3*)
16893      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16894      hardcode_shlibpath_var_GCJ=no
16895      export_dynamic_flag_spec_GCJ='-Bexport'
16896      ;;
16897
16898    sysv4*MP*)
16899      if test -d /usr/nec; then
16900	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16901	hardcode_shlibpath_var_GCJ=no
16902	runpath_var=LD_RUN_PATH
16903	hardcode_runpath_var=yes
16904	ld_shlibs_GCJ=yes
16905      fi
16906      ;;
16907
16908    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16909      no_undefined_flag_GCJ='${wl}-z,text'
16910      archive_cmds_need_lc_GCJ=no
16911      hardcode_shlibpath_var_GCJ=no
16912      runpath_var='LD_RUN_PATH'
16913
16914      if test "$GCC" = yes; then
16915	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16916	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16917      else
16918	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16919	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16920      fi
16921      ;;
16922
16923    sysv5* | sco3.2v5* | sco5v6*)
16924      # Note: We can NOT use -z defs as we might desire, because we do not
16925      # link with -lc, and that would cause any symbols used from libc to
16926      # always be unresolved, which means just about no library would
16927      # ever link correctly.  If we're not using GNU ld we use -z text
16928      # though, which does catch some bad symbols but isn't as heavy-handed
16929      # as -z defs.
16930      no_undefined_flag_GCJ='${wl}-z,text'
16931      allow_undefined_flag_GCJ='${wl}-z,nodefs'
16932      archive_cmds_need_lc_GCJ=no
16933      hardcode_shlibpath_var_GCJ=no
16934      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16935      hardcode_libdir_separator_GCJ=':'
16936      link_all_deplibs_GCJ=yes
16937      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16938      runpath_var='LD_RUN_PATH'
16939
16940      if test "$GCC" = yes; then
16941	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16942	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16943      else
16944	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16945	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16946      fi
16947      ;;
16948
16949    uts4*)
16950      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16951      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16952      hardcode_shlibpath_var_GCJ=no
16953      ;;
16954
16955    *)
16956      ld_shlibs_GCJ=no
16957      ;;
16958    esac
16959  fi
16960
16961{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16962echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
16963test "$ld_shlibs_GCJ" = no && can_build_shared=no
16964
16965#
16966# Do we need to explicitly link libc?
16967#
16968case "x$archive_cmds_need_lc_GCJ" in
16969x|xyes)
16970  # Assume -lc should be added
16971  archive_cmds_need_lc_GCJ=yes
16972
16973  if test "$enable_shared" = yes && test "$GCC" = yes; then
16974    case $archive_cmds_GCJ in
16975    *'~'*)
16976      # FIXME: we may have to deal with multi-command sequences.
16977      ;;
16978    '$CC '*)
16979      # Test whether the compiler implicitly links with -lc since on some
16980      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16981      # to ld, don't add -lc before -lgcc.
16982      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16983echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16984      $rm conftest*
16985      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16986
16987      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16988  (eval $ac_compile) 2>&5
16989  ac_status=$?
16990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991  (exit $ac_status); } 2>conftest.err; then
16992        soname=conftest
16993        lib=conftest
16994        libobjs=conftest.$ac_objext
16995        deplibs=
16996        wl=$lt_prog_compiler_wl_GCJ
16997	pic_flag=$lt_prog_compiler_pic_GCJ
16998        compiler_flags=-v
16999        linker_flags=-v
17000        verstring=
17001        output_objdir=.
17002        libname=conftest
17003        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17004        allow_undefined_flag_GCJ=
17005        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17006  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17007  ac_status=$?
17008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009  (exit $ac_status); }
17010        then
17011	  archive_cmds_need_lc_GCJ=no
17012        else
17013	  archive_cmds_need_lc_GCJ=yes
17014        fi
17015        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17016      else
17017        cat conftest.err 1>&5
17018      fi
17019      $rm conftest*
17020      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17021echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17022      ;;
17023    esac
17024  fi
17025  ;;
17026esac
17027
17028{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17029echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17030library_names_spec=
17031libname_spec='lib$name'
17032soname_spec=
17033shrext_cmds=".so"
17034postinstall_cmds=
17035postuninstall_cmds=
17036finish_cmds=
17037finish_eval=
17038shlibpath_var=
17039shlibpath_overrides_runpath=unknown
17040version_type=none
17041dynamic_linker="$host_os ld.so"
17042sys_lib_dlsearch_path_spec="/lib /usr/lib"
17043if test "$GCC" = yes; then
17044  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17045  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17046    # if the path contains ";" then we assume it to be the separator
17047    # otherwise default to the standard path separator (i.e. ":") - it is
17048    # assumed that no part of a normal pathname contains ";" but that should
17049    # okay in the real world where ";" in dirpaths is itself problematic.
17050    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17051  else
17052    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17053  fi
17054else
17055  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17056fi
17057need_lib_prefix=unknown
17058hardcode_into_libs=no
17059
17060# when you set need_version to no, make sure it does not cause -set_version
17061# flags to be left without arguments
17062need_version=unknown
17063
17064case $host_os in
17065aix3*)
17066  version_type=linux
17067  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17068  shlibpath_var=LIBPATH
17069
17070  # AIX 3 has no versioning support, so we append a major version to the name.
17071  soname_spec='${libname}${release}${shared_ext}$major'
17072  ;;
17073
17074aix4* | aix5*)
17075  version_type=linux
17076  need_lib_prefix=no
17077  need_version=no
17078  hardcode_into_libs=yes
17079  if test "$host_cpu" = ia64; then
17080    # AIX 5 supports IA64
17081    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17082    shlibpath_var=LD_LIBRARY_PATH
17083  else
17084    # With GCC up to 2.95.x, collect2 would create an import file
17085    # for dependence libraries.  The import file would start with
17086    # the line `#! .'.  This would cause the generated library to
17087    # depend on `.', always an invalid library.  This was fixed in
17088    # development snapshots of GCC prior to 3.0.
17089    case $host_os in
17090      aix4 | aix4.[01] | aix4.[01].*)
17091      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17092	   echo ' yes '
17093	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17094	:
17095      else
17096	can_build_shared=no
17097      fi
17098      ;;
17099    esac
17100    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17101    # soname into executable. Probably we can add versioning support to
17102    # collect2, so additional links can be useful in future.
17103    if test "$aix_use_runtimelinking" = yes; then
17104      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17105      # instead of lib<name>.a to let people know that these are not
17106      # typical AIX shared libraries.
17107      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17108    else
17109      # We preserve .a as extension for shared libraries through AIX4.2
17110      # and later when we are not doing run time linking.
17111      library_names_spec='${libname}${release}.a $libname.a'
17112      soname_spec='${libname}${release}${shared_ext}$major'
17113    fi
17114    shlibpath_var=LIBPATH
17115  fi
17116  ;;
17117
17118amigaos*)
17119  library_names_spec='$libname.ixlibrary $libname.a'
17120  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17121  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'
17122  ;;
17123
17124beos*)
17125  library_names_spec='${libname}${shared_ext}'
17126  dynamic_linker="$host_os ld.so"
17127  shlibpath_var=LIBRARY_PATH
17128  ;;
17129
17130bsdi[45]*)
17131  version_type=linux
17132  need_version=no
17133  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17134  soname_spec='${libname}${release}${shared_ext}$major'
17135  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17136  shlibpath_var=LD_LIBRARY_PATH
17137  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17138  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17139  # the default ld.so.conf also contains /usr/contrib/lib and
17140  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17141  # libtool to hard-code these into programs
17142  ;;
17143
17144cygwin* | mingw* | pw32*)
17145  version_type=windows
17146  shrext_cmds=".dll"
17147  need_version=no
17148  need_lib_prefix=no
17149
17150  case $GCC,$host_os in
17151  yes,cygwin* | yes,mingw* | yes,pw32*)
17152    library_names_spec='$libname.dll.a'
17153    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17154    postinstall_cmds='base_file=`basename \${file}`~
17155      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17156      dldir=$destdir/`dirname \$dlpath`~
17157      test -d \$dldir || mkdir -p \$dldir~
17158      $install_prog $dir/$dlname \$dldir/$dlname~
17159      chmod a+x \$dldir/$dlname'
17160    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17161      dlpath=$dir/\$dldll~
17162       $rm \$dlpath'
17163    shlibpath_overrides_runpath=yes
17164
17165    case $host_os in
17166    cygwin*)
17167      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17168      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17169      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17170      ;;
17171    mingw*)
17172      # MinGW DLLs use traditional 'lib' prefix
17173      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17174      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17175      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17176        # It is most probably a Windows format PATH printed by
17177        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17178        # path with ; separators, and with drive letters. We can handle the
17179        # drive letters (cygwin fileutils understands them), so leave them,
17180        # especially as we might pass files found there to a mingw objdump,
17181        # which wouldn't understand a cygwinified path. Ahh.
17182        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17183      else
17184        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17185      fi
17186      ;;
17187    pw32*)
17188      # pw32 DLLs use 'pw' prefix rather than 'lib'
17189      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17190      ;;
17191    esac
17192    ;;
17193
17194  linux*)
17195    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
17196      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17197      supports_anon_versioning=no
17198      case `$LD -v 2>/dev/null` in
17199        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17200        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17201        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17202        *\ 2.11.*) ;; # other 2.11 versions
17203        *) supports_anon_versioning=yes ;;
17204      esac
17205      if test $supports_anon_versioning = yes; then
17206        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
17207cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17208$echo "local: *; };" >> $output_objdir/$libname.ver~
17209        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17210      else
17211        $archive_expsym_cmds="$archive_cmds"
17212      fi
17213    else
17214      ld_shlibs=no
17215    fi
17216    ;;
17217
17218  *)
17219    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17220    ;;
17221  esac
17222  dynamic_linker='Win32 ld.exe'
17223  # FIXME: first we should search . and the directory the executable is in
17224  shlibpath_var=PATH
17225  ;;
17226
17227darwin* | rhapsody*)
17228  dynamic_linker="$host_os dyld"
17229  version_type=darwin
17230  need_lib_prefix=no
17231  need_version=no
17232  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17233  soname_spec='${libname}${release}${major}$shared_ext'
17234  shlibpath_overrides_runpath=yes
17235  shlibpath_var=DYLD_LIBRARY_PATH
17236  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17237  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17238  if test "$GCC" = yes; then
17239    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"`
17240  else
17241    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17242  fi
17243  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17244  ;;
17245
17246dgux*)
17247  version_type=linux
17248  need_lib_prefix=no
17249  need_version=no
17250  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17251  soname_spec='${libname}${release}${shared_ext}$major'
17252  shlibpath_var=LD_LIBRARY_PATH
17253  ;;
17254
17255freebsd1*)
17256  dynamic_linker=no
17257  ;;
17258
17259kfreebsd*-gnu)
17260  version_type=linux
17261  need_lib_prefix=no
17262  need_version=no
17263  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17264  soname_spec='${libname}${release}${shared_ext}$major'
17265  shlibpath_var=LD_LIBRARY_PATH
17266  shlibpath_overrides_runpath=no
17267  hardcode_into_libs=yes
17268  dynamic_linker='GNU ld.so'
17269  ;;
17270
17271freebsd* | dragonfly*)
17272  # DragonFly does not have aout.  When/if they implement a new
17273  # versioning mechanism, adjust this.
17274  if test -x /usr/bin/objformat; then
17275    objformat=`/usr/bin/objformat`
17276  else
17277    case $host_os in
17278    freebsd[123]*) objformat=aout ;;
17279    *) objformat=elf ;;
17280    esac
17281  fi
17282  # Handle Gentoo/FreeBSD as it was Linux
17283  case $host_vendor in
17284    gentoo)
17285      version_type=linux ;;
17286    *)
17287      version_type=freebsd-$objformat ;;
17288  esac
17289
17290  case $version_type in
17291    freebsd-elf*)
17292      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17293      need_version=no
17294      need_lib_prefix=no
17295      ;;
17296    freebsd-*)
17297      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17298      need_version=yes
17299      ;;
17300    linux)
17301      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17302      soname_spec='${libname}${release}${shared_ext}$major'
17303      need_lib_prefix=no
17304      need_version=no
17305      ;;
17306  esac
17307  shlibpath_var=LD_LIBRARY_PATH
17308  case $host_os in
17309  freebsd2*)
17310    shlibpath_overrides_runpath=yes
17311    ;;
17312  freebsd3.[01]* | freebsdelf3.[01]*)
17313    shlibpath_overrides_runpath=yes
17314    hardcode_into_libs=yes
17315    ;;
17316  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17317  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17318    shlibpath_overrides_runpath=no
17319    hardcode_into_libs=yes
17320    ;;
17321  freebsd*) # from 4.6 on
17322    shlibpath_overrides_runpath=yes
17323    hardcode_into_libs=yes
17324    ;;
17325  esac
17326  ;;
17327
17328gnu*)
17329  version_type=linux
17330  need_lib_prefix=no
17331  need_version=no
17332  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17333  soname_spec='${libname}${release}${shared_ext}$major'
17334  shlibpath_var=LD_LIBRARY_PATH
17335  hardcode_into_libs=yes
17336  ;;
17337
17338hpux9* | hpux10* | hpux11*)
17339  # Give a soname corresponding to the major version so that dld.sl refuses to
17340  # link against other versions.
17341  version_type=sunos
17342  need_lib_prefix=no
17343  need_version=no
17344  case $host_cpu in
17345  ia64*)
17346    shrext_cmds='.so'
17347    hardcode_into_libs=yes
17348    dynamic_linker="$host_os dld.so"
17349    shlibpath_var=LD_LIBRARY_PATH
17350    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17351    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17352    soname_spec='${libname}${release}${shared_ext}$major'
17353    if test "X$HPUX_IA64_MODE" = X32; then
17354      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17355    else
17356      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17357    fi
17358    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17359    ;;
17360   hppa*64*)
17361     shrext_cmds='.sl'
17362     hardcode_into_libs=yes
17363     dynamic_linker="$host_os dld.sl"
17364     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17365     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17366     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17367     soname_spec='${libname}${release}${shared_ext}$major'
17368     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17369     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17370     ;;
17371   *)
17372    shrext_cmds='.sl'
17373    dynamic_linker="$host_os dld.sl"
17374    shlibpath_var=SHLIB_PATH
17375    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17376    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17377    soname_spec='${libname}${release}${shared_ext}$major'
17378    ;;
17379  esac
17380  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17381  postinstall_cmds='chmod 555 $lib'
17382  ;;
17383
17384interix3*)
17385  version_type=linux
17386  need_lib_prefix=no
17387  need_version=no
17388  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17389  soname_spec='${libname}${release}${shared_ext}$major'
17390  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17391  shlibpath_var=LD_LIBRARY_PATH
17392  shlibpath_overrides_runpath=no
17393  hardcode_into_libs=yes
17394  ;;
17395
17396irix5* | irix6* | nonstopux*)
17397  case $host_os in
17398    nonstopux*) version_type=nonstopux ;;
17399    *)
17400	if test "$lt_cv_prog_gnu_ld" = yes; then
17401		version_type=linux
17402	else
17403		version_type=irix
17404	fi ;;
17405  esac
17406  need_lib_prefix=no
17407  need_version=no
17408  soname_spec='${libname}${release}${shared_ext}$major'
17409  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17410  case $host_os in
17411  irix5* | nonstopux*)
17412    libsuff= shlibsuff=
17413    ;;
17414  *)
17415    case $LD in # libtool.m4 will add one of these switches to LD
17416    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17417      libsuff= shlibsuff= libmagic=32-bit;;
17418    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17419      libsuff=32 shlibsuff=N32 libmagic=N32;;
17420    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17421      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17422    *) libsuff= shlibsuff= libmagic=never-match;;
17423    esac
17424    ;;
17425  esac
17426  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17427  shlibpath_overrides_runpath=no
17428  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17429  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17430  hardcode_into_libs=yes
17431  ;;
17432
17433# No shared lib support for Linux oldld, aout, or coff.
17434linux*oldld* | linux*aout* | linux*coff*)
17435  dynamic_linker=no
17436  ;;
17437
17438# This must be Linux ELF.
17439linux*)
17440  version_type=linux
17441  need_lib_prefix=no
17442  need_version=no
17443  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17444  soname_spec='${libname}${release}${shared_ext}$major'
17445  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17446  shlibpath_var=LD_LIBRARY_PATH
17447  shlibpath_overrides_runpath=no
17448  # This implies no fast_install, which is unacceptable.
17449  # Some rework will be needed to allow for fast_install
17450  # before this can be enabled.
17451  hardcode_into_libs=yes
17452
17453  # Append ld.so.conf contents to the search path
17454  if test -f /etc/ld.so.conf; then
17455    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17456    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17457  fi
17458
17459  # We used to test for /lib/ld.so.1 and disable shared libraries on
17460  # powerpc, because MkLinux only supported shared libraries with the
17461  # GNU dynamic linker.  Since this was broken with cross compilers,
17462  # most powerpc-linux boxes support dynamic linking these days and
17463  # people can always --disable-shared, the test was removed, and we
17464  # assume the GNU/Linux dynamic linker is in use.
17465  dynamic_linker='GNU/Linux ld.so'
17466  ;;
17467
17468knetbsd*-gnu)
17469  version_type=linux
17470  need_lib_prefix=no
17471  need_version=no
17472  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17473  soname_spec='${libname}${release}${shared_ext}$major'
17474  shlibpath_var=LD_LIBRARY_PATH
17475  shlibpath_overrides_runpath=no
17476  hardcode_into_libs=yes
17477  dynamic_linker='GNU ld.so'
17478  ;;
17479
17480netbsd*)
17481  version_type=sunos
17482  need_lib_prefix=no
17483  need_version=no
17484  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17485    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17486    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17487    dynamic_linker='NetBSD (a.out) ld.so'
17488  else
17489    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17490    soname_spec='${libname}${release}${shared_ext}$major'
17491    dynamic_linker='NetBSD ld.elf_so'
17492  fi
17493  shlibpath_var=LD_LIBRARY_PATH
17494  shlibpath_overrides_runpath=yes
17495  hardcode_into_libs=yes
17496  ;;
17497
17498newsos6)
17499  version_type=linux
17500  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17501  shlibpath_var=LD_LIBRARY_PATH
17502  shlibpath_overrides_runpath=yes
17503  ;;
17504
17505nto-qnx*)
17506  version_type=linux
17507  need_lib_prefix=no
17508  need_version=no
17509  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17510  soname_spec='${libname}${release}${shared_ext}$major'
17511  shlibpath_var=LD_LIBRARY_PATH
17512  shlibpath_overrides_runpath=yes
17513  ;;
17514
17515openbsd*)
17516  version_type=sunos
17517  sys_lib_dlsearch_path_spec="/usr/lib"
17518  need_lib_prefix=no
17519  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17520  case $host_os in
17521    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17522    *)                         need_version=no  ;;
17523  esac
17524  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17525  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17526  shlibpath_var=LD_LIBRARY_PATH
17527  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17528    case $host_os in
17529      openbsd2.[89] | openbsd2.[89].*)
17530	shlibpath_overrides_runpath=no
17531	;;
17532      *)
17533	shlibpath_overrides_runpath=yes
17534	;;
17535      esac
17536  else
17537    shlibpath_overrides_runpath=yes
17538  fi
17539  ;;
17540
17541os2*)
17542  libname_spec='$name'
17543  shrext_cmds=".dll"
17544  need_lib_prefix=no
17545  library_names_spec='$libname${shared_ext} $libname.a'
17546  dynamic_linker='OS/2 ld.exe'
17547  shlibpath_var=LIBPATH
17548  ;;
17549
17550osf3* | osf4* | osf5*)
17551  version_type=osf
17552  need_lib_prefix=no
17553  need_version=no
17554  soname_spec='${libname}${release}${shared_ext}$major'
17555  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17556  shlibpath_var=LD_LIBRARY_PATH
17557  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17558  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17559  ;;
17560
17561solaris*)
17562  version_type=linux
17563  need_lib_prefix=no
17564  need_version=no
17565  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17566  soname_spec='${libname}${release}${shared_ext}$major'
17567  shlibpath_var=LD_LIBRARY_PATH
17568  shlibpath_overrides_runpath=yes
17569  hardcode_into_libs=yes
17570  # ldd complains unless libraries are executable
17571  postinstall_cmds='chmod +x $lib'
17572  ;;
17573
17574sunos4*)
17575  version_type=sunos
17576  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17577  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17578  shlibpath_var=LD_LIBRARY_PATH
17579  shlibpath_overrides_runpath=yes
17580  if test "$with_gnu_ld" = yes; then
17581    need_lib_prefix=no
17582  fi
17583  need_version=yes
17584  ;;
17585
17586sysv4 | sysv4.3*)
17587  version_type=linux
17588  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17589  soname_spec='${libname}${release}${shared_ext}$major'
17590  shlibpath_var=LD_LIBRARY_PATH
17591  case $host_vendor in
17592    sni)
17593      shlibpath_overrides_runpath=no
17594      need_lib_prefix=no
17595      export_dynamic_flag_spec='${wl}-Blargedynsym'
17596      runpath_var=LD_RUN_PATH
17597      ;;
17598    siemens)
17599      need_lib_prefix=no
17600      ;;
17601    motorola)
17602      need_lib_prefix=no
17603      need_version=no
17604      shlibpath_overrides_runpath=no
17605      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17606      ;;
17607  esac
17608  ;;
17609
17610sysv4*MP*)
17611  if test -d /usr/nec ;then
17612    version_type=linux
17613    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17614    soname_spec='$libname${shared_ext}.$major'
17615    shlibpath_var=LD_LIBRARY_PATH
17616  fi
17617  ;;
17618
17619sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17620  version_type=freebsd-elf
17621  need_lib_prefix=no
17622  need_version=no
17623  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17624  soname_spec='${libname}${release}${shared_ext}$major'
17625  shlibpath_var=LD_LIBRARY_PATH
17626  hardcode_into_libs=yes
17627  if test "$with_gnu_ld" = yes; then
17628    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17629    shlibpath_overrides_runpath=no
17630  else
17631    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17632    shlibpath_overrides_runpath=yes
17633    case $host_os in
17634      sco3.2v5*)
17635        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17636	;;
17637    esac
17638  fi
17639  sys_lib_dlsearch_path_spec='/usr/lib'
17640  ;;
17641
17642uts4*)
17643  version_type=linux
17644  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17645  soname_spec='${libname}${release}${shared_ext}$major'
17646  shlibpath_var=LD_LIBRARY_PATH
17647  ;;
17648
17649*)
17650  dynamic_linker=no
17651  ;;
17652esac
17653{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17654echo "${ECHO_T}$dynamic_linker" >&6; }
17655test "$dynamic_linker" = no && can_build_shared=no
17656
17657variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17658if test "$GCC" = yes; then
17659  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17660fi
17661
17662{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17663echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17664hardcode_action_GCJ=
17665if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17666   test -n "$runpath_var_GCJ" || \
17667   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17668
17669  # We can hardcode non-existant directories.
17670  if test "$hardcode_direct_GCJ" != no &&
17671     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17672     # have to relink, otherwise we might link with an installed library
17673     # when we should be linking with a yet-to-be-installed one
17674     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17675     test "$hardcode_minus_L_GCJ" != no; then
17676    # Linking always hardcodes the temporary library directory.
17677    hardcode_action_GCJ=relink
17678  else
17679    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17680    hardcode_action_GCJ=immediate
17681  fi
17682else
17683  # We cannot hardcode anything, or else we can only hardcode existing
17684  # directories.
17685  hardcode_action_GCJ=unsupported
17686fi
17687{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17688echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
17689
17690if test "$hardcode_action_GCJ" = relink; then
17691  # Fast installation is not supported
17692  enable_fast_install=no
17693elif test "$shlibpath_overrides_runpath" = yes ||
17694     test "$enable_shared" = no; then
17695  # Fast installation is not necessary
17696  enable_fast_install=needless
17697fi
17698
17699
17700# The else clause should only fire when bootstrapping the
17701# libtool distribution, otherwise you forgot to ship ltmain.sh
17702# with your package, and you will get complaints that there are
17703# no rules to generate ltmain.sh.
17704if test -f "$ltmain"; then
17705  # See if we are running on zsh, and set the options which allow our commands through
17706  # without removal of \ escapes.
17707  if test -n "${ZSH_VERSION+set}" ; then
17708    setopt NO_GLOB_SUBST
17709  fi
17710  # Now quote all the things that may contain metacharacters while being
17711  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17712  # variables and quote the copies for generation of the libtool script.
17713  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17714    SED SHELL STRIP \
17715    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17716    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17717    deplibs_check_method reload_flag reload_cmds need_locks \
17718    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17719    lt_cv_sys_global_symbol_to_c_name_address \
17720    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17721    old_postinstall_cmds old_postuninstall_cmds \
17722    compiler_GCJ \
17723    CC_GCJ \
17724    LD_GCJ \
17725    lt_prog_compiler_wl_GCJ \
17726    lt_prog_compiler_pic_GCJ \
17727    lt_prog_compiler_static_GCJ \
17728    lt_prog_compiler_no_builtin_flag_GCJ \
17729    export_dynamic_flag_spec_GCJ \
17730    thread_safe_flag_spec_GCJ \
17731    whole_archive_flag_spec_GCJ \
17732    enable_shared_with_static_runtimes_GCJ \
17733    old_archive_cmds_GCJ \
17734    old_archive_from_new_cmds_GCJ \
17735    predep_objects_GCJ \
17736    postdep_objects_GCJ \
17737    predeps_GCJ \
17738    postdeps_GCJ \
17739    compiler_lib_search_path_GCJ \
17740    archive_cmds_GCJ \
17741    archive_expsym_cmds_GCJ \
17742    postinstall_cmds_GCJ \
17743    postuninstall_cmds_GCJ \
17744    old_archive_from_expsyms_cmds_GCJ \
17745    allow_undefined_flag_GCJ \
17746    no_undefined_flag_GCJ \
17747    export_symbols_cmds_GCJ \
17748    hardcode_libdir_flag_spec_GCJ \
17749    hardcode_libdir_flag_spec_ld_GCJ \
17750    hardcode_libdir_separator_GCJ \
17751    hardcode_automatic_GCJ \
17752    module_cmds_GCJ \
17753    module_expsym_cmds_GCJ \
17754    lt_cv_prog_compiler_c_o_GCJ \
17755    exclude_expsyms_GCJ \
17756    include_expsyms_GCJ; do
17757
17758    case $var in
17759    old_archive_cmds_GCJ | \
17760    old_archive_from_new_cmds_GCJ | \
17761    archive_cmds_GCJ | \
17762    archive_expsym_cmds_GCJ | \
17763    module_cmds_GCJ | \
17764    module_expsym_cmds_GCJ | \
17765    old_archive_from_expsyms_cmds_GCJ | \
17766    export_symbols_cmds_GCJ | \
17767    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17768    postinstall_cmds | postuninstall_cmds | \
17769    old_postinstall_cmds | old_postuninstall_cmds | \
17770    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17771      # Double-quote double-evaled strings.
17772      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17773      ;;
17774    *)
17775      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17776      ;;
17777    esac
17778  done
17779
17780  case $lt_echo in
17781  *'\$0 --fallback-echo"')
17782    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17783    ;;
17784  esac
17785
17786cfgfile="$ofile"
17787
17788  cat <<__EOF__ >> "$cfgfile"
17789# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17790
17791# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17792
17793# Shell to use when invoking shell scripts.
17794SHELL=$lt_SHELL
17795
17796# Whether or not to build shared libraries.
17797build_libtool_libs=$enable_shared
17798
17799# Whether or not to build static libraries.
17800build_old_libs=$enable_static
17801
17802# Whether or not to add -lc for building shared libraries.
17803build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17804
17805# Whether or not to disallow shared libs when runtime libs are static
17806allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17807
17808# Whether or not to optimize for fast installation.
17809fast_install=$enable_fast_install
17810
17811# The host system.
17812host_alias=$host_alias
17813host=$host
17814host_os=$host_os
17815
17816# The build system.
17817build_alias=$build_alias
17818build=$build
17819build_os=$build_os
17820
17821# An echo program that does not interpret backslashes.
17822echo=$lt_echo
17823
17824# The archiver.
17825AR=$lt_AR
17826AR_FLAGS=$lt_AR_FLAGS
17827
17828# A C compiler.
17829LTCC=$lt_LTCC
17830
17831# LTCC compiler flags.
17832LTCFLAGS=$lt_LTCFLAGS
17833
17834# A language-specific compiler.
17835CC=$lt_compiler_GCJ
17836
17837# Is the compiler the GNU C compiler?
17838with_gcc=$GCC_GCJ
17839
17840# An ERE matcher.
17841EGREP=$lt_EGREP
17842
17843# The linker used to build libraries.
17844LD=$lt_LD_GCJ
17845
17846# Whether we need hard or soft links.
17847LN_S=$lt_LN_S
17848
17849# A BSD-compatible nm program.
17850NM=$lt_NM
17851
17852# A symbol stripping program
17853STRIP=$lt_STRIP
17854
17855# Used to examine libraries when file_magic_cmd begins "file"
17856MAGIC_CMD=$MAGIC_CMD
17857
17858# Used on cygwin: DLL creation program.
17859DLLTOOL="$DLLTOOL"
17860
17861# Used on cygwin: object dumper.
17862OBJDUMP="$OBJDUMP"
17863
17864# Used on cygwin: assembler.
17865AS="$AS"
17866
17867# The name of the directory that contains temporary libtool files.
17868objdir=$objdir
17869
17870# How to create reloadable object files.
17871reload_flag=$lt_reload_flag
17872reload_cmds=$lt_reload_cmds
17873
17874# How to pass a linker flag through the compiler.
17875wl=$lt_lt_prog_compiler_wl_GCJ
17876
17877# Object file suffix (normally "o").
17878objext="$ac_objext"
17879
17880# Old archive suffix (normally "a").
17881libext="$libext"
17882
17883# Shared library suffix (normally ".so").
17884shrext_cmds='$shrext_cmds'
17885
17886# Executable file suffix (normally "").
17887exeext="$exeext"
17888
17889# Additional compiler flags for building library objects.
17890pic_flag=$lt_lt_prog_compiler_pic_GCJ
17891pic_mode=$pic_mode
17892
17893# What is the maximum length of a command?
17894max_cmd_len=$lt_cv_sys_max_cmd_len
17895
17896# Does compiler simultaneously support -c and -o options?
17897compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17898
17899# Must we lock files when doing compilation?
17900need_locks=$lt_need_locks
17901
17902# Do we need the lib prefix for modules?
17903need_lib_prefix=$need_lib_prefix
17904
17905# Do we need a version for libraries?
17906need_version=$need_version
17907
17908# Whether dlopen is supported.
17909dlopen_support=$enable_dlopen
17910
17911# Whether dlopen of programs is supported.
17912dlopen_self=$enable_dlopen_self
17913
17914# Whether dlopen of statically linked programs is supported.
17915dlopen_self_static=$enable_dlopen_self_static
17916
17917# Compiler flag to prevent dynamic linking.
17918link_static_flag=$lt_lt_prog_compiler_static_GCJ
17919
17920# Compiler flag to turn off builtin functions.
17921no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17922
17923# Compiler flag to allow reflexive dlopens.
17924export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17925
17926# Compiler flag to generate shared objects directly from archives.
17927whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17928
17929# Compiler flag to generate thread-safe objects.
17930thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17931
17932# Library versioning type.
17933version_type=$version_type
17934
17935# Format of library name prefix.
17936libname_spec=$lt_libname_spec
17937
17938# List of archive names.  First name is the real one, the rest are links.
17939# The last name is the one that the linker finds with -lNAME.
17940library_names_spec=$lt_library_names_spec
17941
17942# The coded name of the library, if different from the real name.
17943soname_spec=$lt_soname_spec
17944
17945# Commands used to build and install an old-style archive.
17946RANLIB=$lt_RANLIB
17947old_archive_cmds=$lt_old_archive_cmds_GCJ
17948old_postinstall_cmds=$lt_old_postinstall_cmds
17949old_postuninstall_cmds=$lt_old_postuninstall_cmds
17950
17951# Create an old-style archive from a shared archive.
17952old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17953
17954# Create a temporary old-style archive to link instead of a shared archive.
17955old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17956
17957# Commands used to build and install a shared archive.
17958archive_cmds=$lt_archive_cmds_GCJ
17959archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17960postinstall_cmds=$lt_postinstall_cmds
17961postuninstall_cmds=$lt_postuninstall_cmds
17962
17963# Commands used to build a loadable module (assumed same as above if empty)
17964module_cmds=$lt_module_cmds_GCJ
17965module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17966
17967# Commands to strip libraries.
17968old_striplib=$lt_old_striplib
17969striplib=$lt_striplib
17970
17971# Dependencies to place before the objects being linked to create a
17972# shared library.
17973predep_objects=$lt_predep_objects_GCJ
17974
17975# Dependencies to place after the objects being linked to create a
17976# shared library.
17977postdep_objects=$lt_postdep_objects_GCJ
17978
17979# Dependencies to place before the objects being linked to create a
17980# shared library.
17981predeps=$lt_predeps_GCJ
17982
17983# Dependencies to place after the objects being linked to create a
17984# shared library.
17985postdeps=$lt_postdeps_GCJ
17986
17987# The library search path used internally by the compiler when linking
17988# a shared library.
17989compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17990
17991# Method to check whether dependent libraries are shared objects.
17992deplibs_check_method=$lt_deplibs_check_method
17993
17994# Command to use when deplibs_check_method == file_magic.
17995file_magic_cmd=$lt_file_magic_cmd
17996
17997# Flag that allows shared libraries with undefined symbols to be built.
17998allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17999
18000# Flag that forces no undefined symbols.
18001no_undefined_flag=$lt_no_undefined_flag_GCJ
18002
18003# Commands used to finish a libtool library installation in a directory.
18004finish_cmds=$lt_finish_cmds
18005
18006# Same as above, but a single script fragment to be evaled but not shown.
18007finish_eval=$lt_finish_eval
18008
18009# Take the output of nm and produce a listing of raw symbols and C names.
18010global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18011
18012# Transform the output of nm in a proper C declaration
18013global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18014
18015# Transform the output of nm in a C name address pair
18016global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18017
18018# This is the shared library runtime path variable.
18019runpath_var=$runpath_var
18020
18021# This is the shared library path variable.
18022shlibpath_var=$shlibpath_var
18023
18024# Is shlibpath searched before the hard-coded library search path?
18025shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18026
18027# How to hardcode a shared library path into an executable.
18028hardcode_action=$hardcode_action_GCJ
18029
18030# Whether we should hardcode library paths into libraries.
18031hardcode_into_libs=$hardcode_into_libs
18032
18033# Flag to hardcode \$libdir into a binary during linking.
18034# This must work even if \$libdir does not exist.
18035hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18036
18037# If ld is used when linking, flag to hardcode \$libdir into
18038# a binary during linking. This must work even if \$libdir does
18039# not exist.
18040hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18041
18042# Whether we need a single -rpath flag with a separated argument.
18043hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18044
18045# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18046# resulting binary.
18047hardcode_direct=$hardcode_direct_GCJ
18048
18049# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18050# resulting binary.
18051hardcode_minus_L=$hardcode_minus_L_GCJ
18052
18053# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18054# the resulting binary.
18055hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18056
18057# Set to yes if building a shared library automatically hardcodes DIR into the library
18058# and all subsequent libraries and executables linked against it.
18059hardcode_automatic=$hardcode_automatic_GCJ
18060
18061# Variables whose values should be saved in libtool wrapper scripts and
18062# restored at relink time.
18063variables_saved_for_relink="$variables_saved_for_relink"
18064
18065# Whether libtool must link a program against all its dependency libraries.
18066link_all_deplibs=$link_all_deplibs_GCJ
18067
18068# Compile-time system search path for libraries
18069sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18070
18071# Run-time system search path for libraries
18072sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18073
18074# Fix the shell variable \$srcfile for the compiler.
18075fix_srcfile_path="$fix_srcfile_path_GCJ"
18076
18077# Set to yes if exported symbols are required.
18078always_export_symbols=$always_export_symbols_GCJ
18079
18080# The commands to list exported symbols.
18081export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18082
18083# The commands to extract the exported symbol list from a shared archive.
18084extract_expsyms_cmds=$lt_extract_expsyms_cmds
18085
18086# Symbols that should not be listed in the preloaded symbols.
18087exclude_expsyms=$lt_exclude_expsyms_GCJ
18088
18089# Symbols that must always be exported.
18090include_expsyms=$lt_include_expsyms_GCJ
18091
18092# ### END LIBTOOL TAG CONFIG: $tagname
18093
18094__EOF__
18095
18096
18097else
18098  # If there is no Makefile yet, we rely on a make rule to execute
18099  # `config.status --recheck' to rerun these tests and create the
18100  # libtool script then.
18101  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18102  if test -f "$ltmain_in"; then
18103    test -f Makefile && make "$ltmain"
18104  fi
18105fi
18106
18107
18108ac_ext=c
18109ac_cpp='$CPP $CPPFLAGS'
18110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18112ac_compiler_gnu=$ac_cv_c_compiler_gnu
18113
18114CC="$lt_save_CC"
18115
18116	else
18117	  tagname=""
18118	fi
18119	;;
18120
18121      RC)
18122
18123
18124# Source file extension for RC test sources.
18125ac_ext=rc
18126
18127# Object file extension for compiled RC test sources.
18128objext=o
18129objext_RC=$objext
18130
18131# Code to be used in simple compile tests
18132lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18133
18134# Code to be used in simple link tests
18135lt_simple_link_test_code="$lt_simple_compile_test_code"
18136
18137# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18138
18139# If no C compiler was specified, use CC.
18140LTCC=${LTCC-"$CC"}
18141
18142# If no C compiler flags were specified, use CFLAGS.
18143LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18144
18145# Allow CC to be a program name with arguments.
18146compiler=$CC
18147
18148
18149# save warnings/boilerplate of simple test code
18150ac_outfile=conftest.$ac_objext
18151printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18152eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18153_lt_compiler_boilerplate=`cat conftest.err`
18154$rm conftest*
18155
18156ac_outfile=conftest.$ac_objext
18157printf "$lt_simple_link_test_code" >conftest.$ac_ext
18158eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18159_lt_linker_boilerplate=`cat conftest.err`
18160$rm conftest*
18161
18162
18163# Allow CC to be a program name with arguments.
18164lt_save_CC="$CC"
18165CC=${RC-"windres"}
18166compiler=$CC
18167compiler_RC=$CC
18168for cc_temp in $compiler""; do
18169  case $cc_temp in
18170    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18171    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18172    \-*) ;;
18173    *) break;;
18174  esac
18175done
18176cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18177
18178lt_cv_prog_compiler_c_o_RC=yes
18179
18180# The else clause should only fire when bootstrapping the
18181# libtool distribution, otherwise you forgot to ship ltmain.sh
18182# with your package, and you will get complaints that there are
18183# no rules to generate ltmain.sh.
18184if test -f "$ltmain"; then
18185  # See if we are running on zsh, and set the options which allow our commands through
18186  # without removal of \ escapes.
18187  if test -n "${ZSH_VERSION+set}" ; then
18188    setopt NO_GLOB_SUBST
18189  fi
18190  # Now quote all the things that may contain metacharacters while being
18191  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18192  # variables and quote the copies for generation of the libtool script.
18193  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18194    SED SHELL STRIP \
18195    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18196    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18197    deplibs_check_method reload_flag reload_cmds need_locks \
18198    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18199    lt_cv_sys_global_symbol_to_c_name_address \
18200    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18201    old_postinstall_cmds old_postuninstall_cmds \
18202    compiler_RC \
18203    CC_RC \
18204    LD_RC \
18205    lt_prog_compiler_wl_RC \
18206    lt_prog_compiler_pic_RC \
18207    lt_prog_compiler_static_RC \
18208    lt_prog_compiler_no_builtin_flag_RC \
18209    export_dynamic_flag_spec_RC \
18210    thread_safe_flag_spec_RC \
18211    whole_archive_flag_spec_RC \
18212    enable_shared_with_static_runtimes_RC \
18213    old_archive_cmds_RC \
18214    old_archive_from_new_cmds_RC \
18215    predep_objects_RC \
18216    postdep_objects_RC \
18217    predeps_RC \
18218    postdeps_RC \
18219    compiler_lib_search_path_RC \
18220    archive_cmds_RC \
18221    archive_expsym_cmds_RC \
18222    postinstall_cmds_RC \
18223    postuninstall_cmds_RC \
18224    old_archive_from_expsyms_cmds_RC \
18225    allow_undefined_flag_RC \
18226    no_undefined_flag_RC \
18227    export_symbols_cmds_RC \
18228    hardcode_libdir_flag_spec_RC \
18229    hardcode_libdir_flag_spec_ld_RC \
18230    hardcode_libdir_separator_RC \
18231    hardcode_automatic_RC \
18232    module_cmds_RC \
18233    module_expsym_cmds_RC \
18234    lt_cv_prog_compiler_c_o_RC \
18235    exclude_expsyms_RC \
18236    include_expsyms_RC; do
18237
18238    case $var in
18239    old_archive_cmds_RC | \
18240    old_archive_from_new_cmds_RC | \
18241    archive_cmds_RC | \
18242    archive_expsym_cmds_RC | \
18243    module_cmds_RC | \
18244    module_expsym_cmds_RC | \
18245    old_archive_from_expsyms_cmds_RC | \
18246    export_symbols_cmds_RC | \
18247    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18248    postinstall_cmds | postuninstall_cmds | \
18249    old_postinstall_cmds | old_postuninstall_cmds | \
18250    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18251      # Double-quote double-evaled strings.
18252      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18253      ;;
18254    *)
18255      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18256      ;;
18257    esac
18258  done
18259
18260  case $lt_echo in
18261  *'\$0 --fallback-echo"')
18262    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18263    ;;
18264  esac
18265
18266cfgfile="$ofile"
18267
18268  cat <<__EOF__ >> "$cfgfile"
18269# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18270
18271# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18272
18273# Shell to use when invoking shell scripts.
18274SHELL=$lt_SHELL
18275
18276# Whether or not to build shared libraries.
18277build_libtool_libs=$enable_shared
18278
18279# Whether or not to build static libraries.
18280build_old_libs=$enable_static
18281
18282# Whether or not to add -lc for building shared libraries.
18283build_libtool_need_lc=$archive_cmds_need_lc_RC
18284
18285# Whether or not to disallow shared libs when runtime libs are static
18286allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18287
18288# Whether or not to optimize for fast installation.
18289fast_install=$enable_fast_install
18290
18291# The host system.
18292host_alias=$host_alias
18293host=$host
18294host_os=$host_os
18295
18296# The build system.
18297build_alias=$build_alias
18298build=$build
18299build_os=$build_os
18300
18301# An echo program that does not interpret backslashes.
18302echo=$lt_echo
18303
18304# The archiver.
18305AR=$lt_AR
18306AR_FLAGS=$lt_AR_FLAGS
18307
18308# A C compiler.
18309LTCC=$lt_LTCC
18310
18311# LTCC compiler flags.
18312LTCFLAGS=$lt_LTCFLAGS
18313
18314# A language-specific compiler.
18315CC=$lt_compiler_RC
18316
18317# Is the compiler the GNU C compiler?
18318with_gcc=$GCC_RC
18319
18320# An ERE matcher.
18321EGREP=$lt_EGREP
18322
18323# The linker used to build libraries.
18324LD=$lt_LD_RC
18325
18326# Whether we need hard or soft links.
18327LN_S=$lt_LN_S
18328
18329# A BSD-compatible nm program.
18330NM=$lt_NM
18331
18332# A symbol stripping program
18333STRIP=$lt_STRIP
18334
18335# Used to examine libraries when file_magic_cmd begins "file"
18336MAGIC_CMD=$MAGIC_CMD
18337
18338# Used on cygwin: DLL creation program.
18339DLLTOOL="$DLLTOOL"
18340
18341# Used on cygwin: object dumper.
18342OBJDUMP="$OBJDUMP"
18343
18344# Used on cygwin: assembler.
18345AS="$AS"
18346
18347# The name of the directory that contains temporary libtool files.
18348objdir=$objdir
18349
18350# How to create reloadable object files.
18351reload_flag=$lt_reload_flag
18352reload_cmds=$lt_reload_cmds
18353
18354# How to pass a linker flag through the compiler.
18355wl=$lt_lt_prog_compiler_wl_RC
18356
18357# Object file suffix (normally "o").
18358objext="$ac_objext"
18359
18360# Old archive suffix (normally "a").
18361libext="$libext"
18362
18363# Shared library suffix (normally ".so").
18364shrext_cmds='$shrext_cmds'
18365
18366# Executable file suffix (normally "").
18367exeext="$exeext"
18368
18369# Additional compiler flags for building library objects.
18370pic_flag=$lt_lt_prog_compiler_pic_RC
18371pic_mode=$pic_mode
18372
18373# What is the maximum length of a command?
18374max_cmd_len=$lt_cv_sys_max_cmd_len
18375
18376# Does compiler simultaneously support -c and -o options?
18377compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18378
18379# Must we lock files when doing compilation?
18380need_locks=$lt_need_locks
18381
18382# Do we need the lib prefix for modules?
18383need_lib_prefix=$need_lib_prefix
18384
18385# Do we need a version for libraries?
18386need_version=$need_version
18387
18388# Whether dlopen is supported.
18389dlopen_support=$enable_dlopen
18390
18391# Whether dlopen of programs is supported.
18392dlopen_self=$enable_dlopen_self
18393
18394# Whether dlopen of statically linked programs is supported.
18395dlopen_self_static=$enable_dlopen_self_static
18396
18397# Compiler flag to prevent dynamic linking.
18398link_static_flag=$lt_lt_prog_compiler_static_RC
18399
18400# Compiler flag to turn off builtin functions.
18401no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18402
18403# Compiler flag to allow reflexive dlopens.
18404export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18405
18406# Compiler flag to generate shared objects directly from archives.
18407whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18408
18409# Compiler flag to generate thread-safe objects.
18410thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18411
18412# Library versioning type.
18413version_type=$version_type
18414
18415# Format of library name prefix.
18416libname_spec=$lt_libname_spec
18417
18418# List of archive names.  First name is the real one, the rest are links.
18419# The last name is the one that the linker finds with -lNAME.
18420library_names_spec=$lt_library_names_spec
18421
18422# The coded name of the library, if different from the real name.
18423soname_spec=$lt_soname_spec
18424
18425# Commands used to build and install an old-style archive.
18426RANLIB=$lt_RANLIB
18427old_archive_cmds=$lt_old_archive_cmds_RC
18428old_postinstall_cmds=$lt_old_postinstall_cmds
18429old_postuninstall_cmds=$lt_old_postuninstall_cmds
18430
18431# Create an old-style archive from a shared archive.
18432old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18433
18434# Create a temporary old-style archive to link instead of a shared archive.
18435old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18436
18437# Commands used to build and install a shared archive.
18438archive_cmds=$lt_archive_cmds_RC
18439archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18440postinstall_cmds=$lt_postinstall_cmds
18441postuninstall_cmds=$lt_postuninstall_cmds
18442
18443# Commands used to build a loadable module (assumed same as above if empty)
18444module_cmds=$lt_module_cmds_RC
18445module_expsym_cmds=$lt_module_expsym_cmds_RC
18446
18447# Commands to strip libraries.
18448old_striplib=$lt_old_striplib
18449striplib=$lt_striplib
18450
18451# Dependencies to place before the objects being linked to create a
18452# shared library.
18453predep_objects=$lt_predep_objects_RC
18454
18455# Dependencies to place after the objects being linked to create a
18456# shared library.
18457postdep_objects=$lt_postdep_objects_RC
18458
18459# Dependencies to place before the objects being linked to create a
18460# shared library.
18461predeps=$lt_predeps_RC
18462
18463# Dependencies to place after the objects being linked to create a
18464# shared library.
18465postdeps=$lt_postdeps_RC
18466
18467# The library search path used internally by the compiler when linking
18468# a shared library.
18469compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18470
18471# Method to check whether dependent libraries are shared objects.
18472deplibs_check_method=$lt_deplibs_check_method
18473
18474# Command to use when deplibs_check_method == file_magic.
18475file_magic_cmd=$lt_file_magic_cmd
18476
18477# Flag that allows shared libraries with undefined symbols to be built.
18478allow_undefined_flag=$lt_allow_undefined_flag_RC
18479
18480# Flag that forces no undefined symbols.
18481no_undefined_flag=$lt_no_undefined_flag_RC
18482
18483# Commands used to finish a libtool library installation in a directory.
18484finish_cmds=$lt_finish_cmds
18485
18486# Same as above, but a single script fragment to be evaled but not shown.
18487finish_eval=$lt_finish_eval
18488
18489# Take the output of nm and produce a listing of raw symbols and C names.
18490global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18491
18492# Transform the output of nm in a proper C declaration
18493global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18494
18495# Transform the output of nm in a C name address pair
18496global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18497
18498# This is the shared library runtime path variable.
18499runpath_var=$runpath_var
18500
18501# This is the shared library path variable.
18502shlibpath_var=$shlibpath_var
18503
18504# Is shlibpath searched before the hard-coded library search path?
18505shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18506
18507# How to hardcode a shared library path into an executable.
18508hardcode_action=$hardcode_action_RC
18509
18510# Whether we should hardcode library paths into libraries.
18511hardcode_into_libs=$hardcode_into_libs
18512
18513# Flag to hardcode \$libdir into a binary during linking.
18514# This must work even if \$libdir does not exist.
18515hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18516
18517# If ld is used when linking, flag to hardcode \$libdir into
18518# a binary during linking. This must work even if \$libdir does
18519# not exist.
18520hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18521
18522# Whether we need a single -rpath flag with a separated argument.
18523hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18524
18525# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18526# resulting binary.
18527hardcode_direct=$hardcode_direct_RC
18528
18529# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18530# resulting binary.
18531hardcode_minus_L=$hardcode_minus_L_RC
18532
18533# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18534# the resulting binary.
18535hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18536
18537# Set to yes if building a shared library automatically hardcodes DIR into the library
18538# and all subsequent libraries and executables linked against it.
18539hardcode_automatic=$hardcode_automatic_RC
18540
18541# Variables whose values should be saved in libtool wrapper scripts and
18542# restored at relink time.
18543variables_saved_for_relink="$variables_saved_for_relink"
18544
18545# Whether libtool must link a program against all its dependency libraries.
18546link_all_deplibs=$link_all_deplibs_RC
18547
18548# Compile-time system search path for libraries
18549sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18550
18551# Run-time system search path for libraries
18552sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18553
18554# Fix the shell variable \$srcfile for the compiler.
18555fix_srcfile_path="$fix_srcfile_path_RC"
18556
18557# Set to yes if exported symbols are required.
18558always_export_symbols=$always_export_symbols_RC
18559
18560# The commands to list exported symbols.
18561export_symbols_cmds=$lt_export_symbols_cmds_RC
18562
18563# The commands to extract the exported symbol list from a shared archive.
18564extract_expsyms_cmds=$lt_extract_expsyms_cmds
18565
18566# Symbols that should not be listed in the preloaded symbols.
18567exclude_expsyms=$lt_exclude_expsyms_RC
18568
18569# Symbols that must always be exported.
18570include_expsyms=$lt_include_expsyms_RC
18571
18572# ### END LIBTOOL TAG CONFIG: $tagname
18573
18574__EOF__
18575
18576
18577else
18578  # If there is no Makefile yet, we rely on a make rule to execute
18579  # `config.status --recheck' to rerun these tests and create the
18580  # libtool script then.
18581  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18582  if test -f "$ltmain_in"; then
18583    test -f Makefile && make "$ltmain"
18584  fi
18585fi
18586
18587
18588ac_ext=c
18589ac_cpp='$CPP $CPPFLAGS'
18590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18592ac_compiler_gnu=$ac_cv_c_compiler_gnu
18593
18594CC="$lt_save_CC"
18595
18596	;;
18597
18598      *)
18599	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18600echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18601   { (exit 1); exit 1; }; }
18602	;;
18603      esac
18604
18605      # Append the new tag name to the list of available tags.
18606      if test -n "$tagname" ; then
18607      available_tags="$available_tags $tagname"
18608    fi
18609    fi
18610  done
18611  IFS="$lt_save_ifs"
18612
18613  # Now substitute the updated list of available tags.
18614  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18615    mv "${ofile}T" "$ofile"
18616    chmod +x "$ofile"
18617  else
18618    rm -f "${ofile}T"
18619    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18620echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18621   { (exit 1); exit 1; }; }
18622  fi
18623fi
18624
18625
18626
18627# This can be used to rebuild libtool when needed
18628LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18629
18630# Always use our own libtool.
18631LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18632
18633# Prevent multiple expansion
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654# Find a good install program.  We prefer a C program (faster),
18655# so one script is as good as another.  But avoid the broken or
18656# incompatible versions:
18657# SysV /etc/install, /usr/sbin/install
18658# SunOS /usr/etc/install
18659# IRIX /sbin/install
18660# AIX /bin/install
18661# AmigaOS /C/install, which installs bootblocks on floppy discs
18662# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18663# AFS /usr/afsws/bin/install, which mishandles nonexistent args
18664# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
18665# OS/2's system install, which has a completely different semantic
18666# ./install, which can be erroneously created by make from ./install.sh.
18667{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
18668echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
18669if test -z "$INSTALL"; then
18670if test "${ac_cv_path_install+set}" = set; then
18671  echo $ECHO_N "(cached) $ECHO_C" >&6
18672else
18673  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18674for as_dir in $PATH
18675do
18676  IFS=$as_save_IFS
18677  test -z "$as_dir" && as_dir=.
18678  # Account for people who put trailing slashes in PATH elements.
18679case $as_dir/ in
18680  ./ | .// | /cC/* | \
18681  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
18682  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
18683  /usr/ucb/* ) ;;
18684  *)
18685    # OSF1 and SCO ODT 3.0 have their own names for install.
18686    # Don't use installbsd from OSF since it installs stuff as root
18687    # by default.
18688    for ac_prog in ginstall scoinst install; do
18689      for ac_exec_ext in '' $ac_executable_extensions; do
18690	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
18691	  if test $ac_prog = install &&
18692	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18693	    # AIX install.  It has an incompatible calling convention.
18694	    :
18695	  elif test $ac_prog = install &&
18696	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18697	    # program-specific install script used by HP pwplus--don't use.
18698	    :
18699	  else
18700	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18701	    break 3
18702	  fi
18703	fi
18704      done
18705    done
18706    ;;
18707esac
18708done
18709IFS=$as_save_IFS
18710
18711
18712fi
18713  if test "${ac_cv_path_install+set}" = set; then
18714    INSTALL=$ac_cv_path_install
18715  else
18716    # As a last resort, use the slow shell script.  Don't cache a
18717    # value for INSTALL within a source directory, because that will
18718    # break other packages using the cache if that directory is
18719    # removed, or if the value is a relative name.
18720    INSTALL=$ac_install_sh
18721  fi
18722fi
18723{ echo "$as_me:$LINENO: result: $INSTALL" >&5
18724echo "${ECHO_T}$INSTALL" >&6; }
18725
18726# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18727# It thinks the first close brace ends the variable substitution.
18728test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18729
18730test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18731
18732test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18733
18734for ac_prog in gawk mawk nawk awk
18735do
18736  # Extract the first word of "$ac_prog", so it can be a program name with args.
18737set dummy $ac_prog; ac_word=$2
18738{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18740if test "${ac_cv_prog_AWK+set}" = set; then
18741  echo $ECHO_N "(cached) $ECHO_C" >&6
18742else
18743  if test -n "$AWK"; then
18744  ac_cv_prog_AWK="$AWK" # Let the user override the test.
18745else
18746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18747for as_dir in $PATH
18748do
18749  IFS=$as_save_IFS
18750  test -z "$as_dir" && as_dir=.
18751  for ac_exec_ext in '' $ac_executable_extensions; do
18752  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18753    ac_cv_prog_AWK="$ac_prog"
18754    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18755    break 2
18756  fi
18757done
18758done
18759IFS=$as_save_IFS
18760
18761fi
18762fi
18763AWK=$ac_cv_prog_AWK
18764if test -n "$AWK"; then
18765  { echo "$as_me:$LINENO: result: $AWK" >&5
18766echo "${ECHO_T}$AWK" >&6; }
18767else
18768  { echo "$as_me:$LINENO: result: no" >&5
18769echo "${ECHO_T}no" >&6; }
18770fi
18771
18772
18773  test -n "$AWK" && break
18774done
18775
18776
18777#########
18778# Check for needed/wanted data types
18779{ echo "$as_me:$LINENO: checking for int8_t" >&5
18780echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
18781if test "${ac_cv_type_int8_t+set}" = set; then
18782  echo $ECHO_N "(cached) $ECHO_C" >&6
18783else
18784  cat >conftest.$ac_ext <<_ACEOF
18785/* confdefs.h.  */
18786_ACEOF
18787cat confdefs.h >>conftest.$ac_ext
18788cat >>conftest.$ac_ext <<_ACEOF
18789/* end confdefs.h.  */
18790$ac_includes_default
18791typedef int8_t ac__type_new_;
18792int
18793main ()
18794{
18795if ((ac__type_new_ *) 0)
18796  return 0;
18797if (sizeof (ac__type_new_))
18798  return 0;
18799  ;
18800  return 0;
18801}
18802_ACEOF
18803rm -f conftest.$ac_objext
18804if { (ac_try="$ac_compile"
18805case "(($ac_try" in
18806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18807  *) ac_try_echo=$ac_try;;
18808esac
18809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18810  (eval "$ac_compile") 2>conftest.er1
18811  ac_status=$?
18812  grep -v '^ *+' conftest.er1 >conftest.err
18813  rm -f conftest.er1
18814  cat conftest.err >&5
18815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816  (exit $ac_status); } && {
18817	 test -z "$ac_c_werror_flag" ||
18818	 test ! -s conftest.err
18819       } && test -s conftest.$ac_objext; then
18820  ac_cv_type_int8_t=yes
18821else
18822  echo "$as_me: failed program was:" >&5
18823sed 's/^/| /' conftest.$ac_ext >&5
18824
18825	ac_cv_type_int8_t=no
18826fi
18827
18828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18829fi
18830{ echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
18831echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
18832if test $ac_cv_type_int8_t = yes; then
18833
18834cat >>confdefs.h <<_ACEOF
18835#define HAVE_INT8_T 1
18836_ACEOF
18837
18838
18839fi
18840{ echo "$as_me:$LINENO: checking for int16_t" >&5
18841echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
18842if test "${ac_cv_type_int16_t+set}" = set; then
18843  echo $ECHO_N "(cached) $ECHO_C" >&6
18844else
18845  cat >conftest.$ac_ext <<_ACEOF
18846/* confdefs.h.  */
18847_ACEOF
18848cat confdefs.h >>conftest.$ac_ext
18849cat >>conftest.$ac_ext <<_ACEOF
18850/* end confdefs.h.  */
18851$ac_includes_default
18852typedef int16_t ac__type_new_;
18853int
18854main ()
18855{
18856if ((ac__type_new_ *) 0)
18857  return 0;
18858if (sizeof (ac__type_new_))
18859  return 0;
18860  ;
18861  return 0;
18862}
18863_ACEOF
18864rm -f conftest.$ac_objext
18865if { (ac_try="$ac_compile"
18866case "(($ac_try" in
18867  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18868  *) ac_try_echo=$ac_try;;
18869esac
18870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18871  (eval "$ac_compile") 2>conftest.er1
18872  ac_status=$?
18873  grep -v '^ *+' conftest.er1 >conftest.err
18874  rm -f conftest.er1
18875  cat conftest.err >&5
18876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877  (exit $ac_status); } && {
18878	 test -z "$ac_c_werror_flag" ||
18879	 test ! -s conftest.err
18880       } && test -s conftest.$ac_objext; then
18881  ac_cv_type_int16_t=yes
18882else
18883  echo "$as_me: failed program was:" >&5
18884sed 's/^/| /' conftest.$ac_ext >&5
18885
18886	ac_cv_type_int16_t=no
18887fi
18888
18889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18890fi
18891{ echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
18892echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
18893if test $ac_cv_type_int16_t = yes; then
18894
18895cat >>confdefs.h <<_ACEOF
18896#define HAVE_INT16_T 1
18897_ACEOF
18898
18899
18900fi
18901{ echo "$as_me:$LINENO: checking for int32_t" >&5
18902echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
18903if test "${ac_cv_type_int32_t+set}" = set; then
18904  echo $ECHO_N "(cached) $ECHO_C" >&6
18905else
18906  cat >conftest.$ac_ext <<_ACEOF
18907/* confdefs.h.  */
18908_ACEOF
18909cat confdefs.h >>conftest.$ac_ext
18910cat >>conftest.$ac_ext <<_ACEOF
18911/* end confdefs.h.  */
18912$ac_includes_default
18913typedef int32_t ac__type_new_;
18914int
18915main ()
18916{
18917if ((ac__type_new_ *) 0)
18918  return 0;
18919if (sizeof (ac__type_new_))
18920  return 0;
18921  ;
18922  return 0;
18923}
18924_ACEOF
18925rm -f conftest.$ac_objext
18926if { (ac_try="$ac_compile"
18927case "(($ac_try" in
18928  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18929  *) ac_try_echo=$ac_try;;
18930esac
18931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18932  (eval "$ac_compile") 2>conftest.er1
18933  ac_status=$?
18934  grep -v '^ *+' conftest.er1 >conftest.err
18935  rm -f conftest.er1
18936  cat conftest.err >&5
18937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938  (exit $ac_status); } && {
18939	 test -z "$ac_c_werror_flag" ||
18940	 test ! -s conftest.err
18941       } && test -s conftest.$ac_objext; then
18942  ac_cv_type_int32_t=yes
18943else
18944  echo "$as_me: failed program was:" >&5
18945sed 's/^/| /' conftest.$ac_ext >&5
18946
18947	ac_cv_type_int32_t=no
18948fi
18949
18950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18951fi
18952{ echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
18953echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
18954if test $ac_cv_type_int32_t = yes; then
18955
18956cat >>confdefs.h <<_ACEOF
18957#define HAVE_INT32_T 1
18958_ACEOF
18959
18960
18961fi
18962{ echo "$as_me:$LINENO: checking for int64_t" >&5
18963echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
18964if test "${ac_cv_type_int64_t+set}" = set; then
18965  echo $ECHO_N "(cached) $ECHO_C" >&6
18966else
18967  cat >conftest.$ac_ext <<_ACEOF
18968/* confdefs.h.  */
18969_ACEOF
18970cat confdefs.h >>conftest.$ac_ext
18971cat >>conftest.$ac_ext <<_ACEOF
18972/* end confdefs.h.  */
18973$ac_includes_default
18974typedef int64_t ac__type_new_;
18975int
18976main ()
18977{
18978if ((ac__type_new_ *) 0)
18979  return 0;
18980if (sizeof (ac__type_new_))
18981  return 0;
18982  ;
18983  return 0;
18984}
18985_ACEOF
18986rm -f conftest.$ac_objext
18987if { (ac_try="$ac_compile"
18988case "(($ac_try" in
18989  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18990  *) ac_try_echo=$ac_try;;
18991esac
18992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18993  (eval "$ac_compile") 2>conftest.er1
18994  ac_status=$?
18995  grep -v '^ *+' conftest.er1 >conftest.err
18996  rm -f conftest.er1
18997  cat conftest.err >&5
18998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999  (exit $ac_status); } && {
19000	 test -z "$ac_c_werror_flag" ||
19001	 test ! -s conftest.err
19002       } && test -s conftest.$ac_objext; then
19003  ac_cv_type_int64_t=yes
19004else
19005  echo "$as_me: failed program was:" >&5
19006sed 's/^/| /' conftest.$ac_ext >&5
19007
19008	ac_cv_type_int64_t=no
19009fi
19010
19011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19012fi
19013{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19014echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
19015if test $ac_cv_type_int64_t = yes; then
19016
19017cat >>confdefs.h <<_ACEOF
19018#define HAVE_INT64_T 1
19019_ACEOF
19020
19021
19022fi
19023{ echo "$as_me:$LINENO: checking for intptr_t" >&5
19024echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
19025if test "${ac_cv_type_intptr_t+set}" = set; then
19026  echo $ECHO_N "(cached) $ECHO_C" >&6
19027else
19028  cat >conftest.$ac_ext <<_ACEOF
19029/* confdefs.h.  */
19030_ACEOF
19031cat confdefs.h >>conftest.$ac_ext
19032cat >>conftest.$ac_ext <<_ACEOF
19033/* end confdefs.h.  */
19034$ac_includes_default
19035typedef intptr_t ac__type_new_;
19036int
19037main ()
19038{
19039if ((ac__type_new_ *) 0)
19040  return 0;
19041if (sizeof (ac__type_new_))
19042  return 0;
19043  ;
19044  return 0;
19045}
19046_ACEOF
19047rm -f conftest.$ac_objext
19048if { (ac_try="$ac_compile"
19049case "(($ac_try" in
19050  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19051  *) ac_try_echo=$ac_try;;
19052esac
19053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19054  (eval "$ac_compile") 2>conftest.er1
19055  ac_status=$?
19056  grep -v '^ *+' conftest.er1 >conftest.err
19057  rm -f conftest.er1
19058  cat conftest.err >&5
19059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060  (exit $ac_status); } && {
19061	 test -z "$ac_c_werror_flag" ||
19062	 test ! -s conftest.err
19063       } && test -s conftest.$ac_objext; then
19064  ac_cv_type_intptr_t=yes
19065else
19066  echo "$as_me: failed program was:" >&5
19067sed 's/^/| /' conftest.$ac_ext >&5
19068
19069	ac_cv_type_intptr_t=no
19070fi
19071
19072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19073fi
19074{ echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
19075echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
19076if test $ac_cv_type_intptr_t = yes; then
19077
19078cat >>confdefs.h <<_ACEOF
19079#define HAVE_INTPTR_T 1
19080_ACEOF
19081
19082
19083fi
19084{ echo "$as_me:$LINENO: checking for uint8_t" >&5
19085echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
19086if test "${ac_cv_type_uint8_t+set}" = set; then
19087  echo $ECHO_N "(cached) $ECHO_C" >&6
19088else
19089  cat >conftest.$ac_ext <<_ACEOF
19090/* confdefs.h.  */
19091_ACEOF
19092cat confdefs.h >>conftest.$ac_ext
19093cat >>conftest.$ac_ext <<_ACEOF
19094/* end confdefs.h.  */
19095$ac_includes_default
19096typedef uint8_t ac__type_new_;
19097int
19098main ()
19099{
19100if ((ac__type_new_ *) 0)
19101  return 0;
19102if (sizeof (ac__type_new_))
19103  return 0;
19104  ;
19105  return 0;
19106}
19107_ACEOF
19108rm -f conftest.$ac_objext
19109if { (ac_try="$ac_compile"
19110case "(($ac_try" in
19111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19112  *) ac_try_echo=$ac_try;;
19113esac
19114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19115  (eval "$ac_compile") 2>conftest.er1
19116  ac_status=$?
19117  grep -v '^ *+' conftest.er1 >conftest.err
19118  rm -f conftest.er1
19119  cat conftest.err >&5
19120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121  (exit $ac_status); } && {
19122	 test -z "$ac_c_werror_flag" ||
19123	 test ! -s conftest.err
19124       } && test -s conftest.$ac_objext; then
19125  ac_cv_type_uint8_t=yes
19126else
19127  echo "$as_me: failed program was:" >&5
19128sed 's/^/| /' conftest.$ac_ext >&5
19129
19130	ac_cv_type_uint8_t=no
19131fi
19132
19133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19134fi
19135{ echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
19136echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
19137if test $ac_cv_type_uint8_t = yes; then
19138
19139cat >>confdefs.h <<_ACEOF
19140#define HAVE_UINT8_T 1
19141_ACEOF
19142
19143
19144fi
19145{ echo "$as_me:$LINENO: checking for uint16_t" >&5
19146echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
19147if test "${ac_cv_type_uint16_t+set}" = set; then
19148  echo $ECHO_N "(cached) $ECHO_C" >&6
19149else
19150  cat >conftest.$ac_ext <<_ACEOF
19151/* confdefs.h.  */
19152_ACEOF
19153cat confdefs.h >>conftest.$ac_ext
19154cat >>conftest.$ac_ext <<_ACEOF
19155/* end confdefs.h.  */
19156$ac_includes_default
19157typedef uint16_t ac__type_new_;
19158int
19159main ()
19160{
19161if ((ac__type_new_ *) 0)
19162  return 0;
19163if (sizeof (ac__type_new_))
19164  return 0;
19165  ;
19166  return 0;
19167}
19168_ACEOF
19169rm -f conftest.$ac_objext
19170if { (ac_try="$ac_compile"
19171case "(($ac_try" in
19172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19173  *) ac_try_echo=$ac_try;;
19174esac
19175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19176  (eval "$ac_compile") 2>conftest.er1
19177  ac_status=$?
19178  grep -v '^ *+' conftest.er1 >conftest.err
19179  rm -f conftest.er1
19180  cat conftest.err >&5
19181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182  (exit $ac_status); } && {
19183	 test -z "$ac_c_werror_flag" ||
19184	 test ! -s conftest.err
19185       } && test -s conftest.$ac_objext; then
19186  ac_cv_type_uint16_t=yes
19187else
19188  echo "$as_me: failed program was:" >&5
19189sed 's/^/| /' conftest.$ac_ext >&5
19190
19191	ac_cv_type_uint16_t=no
19192fi
19193
19194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19195fi
19196{ echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
19197echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
19198if test $ac_cv_type_uint16_t = yes; then
19199
19200cat >>confdefs.h <<_ACEOF
19201#define HAVE_UINT16_T 1
19202_ACEOF
19203
19204
19205fi
19206{ echo "$as_me:$LINENO: checking for uint32_t" >&5
19207echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
19208if test "${ac_cv_type_uint32_t+set}" = set; then
19209  echo $ECHO_N "(cached) $ECHO_C" >&6
19210else
19211  cat >conftest.$ac_ext <<_ACEOF
19212/* confdefs.h.  */
19213_ACEOF
19214cat confdefs.h >>conftest.$ac_ext
19215cat >>conftest.$ac_ext <<_ACEOF
19216/* end confdefs.h.  */
19217$ac_includes_default
19218typedef uint32_t ac__type_new_;
19219int
19220main ()
19221{
19222if ((ac__type_new_ *) 0)
19223  return 0;
19224if (sizeof (ac__type_new_))
19225  return 0;
19226  ;
19227  return 0;
19228}
19229_ACEOF
19230rm -f conftest.$ac_objext
19231if { (ac_try="$ac_compile"
19232case "(($ac_try" in
19233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19234  *) ac_try_echo=$ac_try;;
19235esac
19236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19237  (eval "$ac_compile") 2>conftest.er1
19238  ac_status=$?
19239  grep -v '^ *+' conftest.er1 >conftest.err
19240  rm -f conftest.er1
19241  cat conftest.err >&5
19242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243  (exit $ac_status); } && {
19244	 test -z "$ac_c_werror_flag" ||
19245	 test ! -s conftest.err
19246       } && test -s conftest.$ac_objext; then
19247  ac_cv_type_uint32_t=yes
19248else
19249  echo "$as_me: failed program was:" >&5
19250sed 's/^/| /' conftest.$ac_ext >&5
19251
19252	ac_cv_type_uint32_t=no
19253fi
19254
19255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19256fi
19257{ echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
19258echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
19259if test $ac_cv_type_uint32_t = yes; then
19260
19261cat >>confdefs.h <<_ACEOF
19262#define HAVE_UINT32_T 1
19263_ACEOF
19264
19265
19266fi
19267{ echo "$as_me:$LINENO: checking for uint64_t" >&5
19268echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
19269if test "${ac_cv_type_uint64_t+set}" = set; then
19270  echo $ECHO_N "(cached) $ECHO_C" >&6
19271else
19272  cat >conftest.$ac_ext <<_ACEOF
19273/* confdefs.h.  */
19274_ACEOF
19275cat confdefs.h >>conftest.$ac_ext
19276cat >>conftest.$ac_ext <<_ACEOF
19277/* end confdefs.h.  */
19278$ac_includes_default
19279typedef uint64_t ac__type_new_;
19280int
19281main ()
19282{
19283if ((ac__type_new_ *) 0)
19284  return 0;
19285if (sizeof (ac__type_new_))
19286  return 0;
19287  ;
19288  return 0;
19289}
19290_ACEOF
19291rm -f conftest.$ac_objext
19292if { (ac_try="$ac_compile"
19293case "(($ac_try" in
19294  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19295  *) ac_try_echo=$ac_try;;
19296esac
19297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19298  (eval "$ac_compile") 2>conftest.er1
19299  ac_status=$?
19300  grep -v '^ *+' conftest.er1 >conftest.err
19301  rm -f conftest.er1
19302  cat conftest.err >&5
19303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304  (exit $ac_status); } && {
19305	 test -z "$ac_c_werror_flag" ||
19306	 test ! -s conftest.err
19307       } && test -s conftest.$ac_objext; then
19308  ac_cv_type_uint64_t=yes
19309else
19310  echo "$as_me: failed program was:" >&5
19311sed 's/^/| /' conftest.$ac_ext >&5
19312
19313	ac_cv_type_uint64_t=no
19314fi
19315
19316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19317fi
19318{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19319echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
19320if test $ac_cv_type_uint64_t = yes; then
19321
19322cat >>confdefs.h <<_ACEOF
19323#define HAVE_UINT64_T 1
19324_ACEOF
19325
19326
19327fi
19328{ echo "$as_me:$LINENO: checking for uintptr_t" >&5
19329echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
19330if test "${ac_cv_type_uintptr_t+set}" = set; then
19331  echo $ECHO_N "(cached) $ECHO_C" >&6
19332else
19333  cat >conftest.$ac_ext <<_ACEOF
19334/* confdefs.h.  */
19335_ACEOF
19336cat confdefs.h >>conftest.$ac_ext
19337cat >>conftest.$ac_ext <<_ACEOF
19338/* end confdefs.h.  */
19339$ac_includes_default
19340typedef uintptr_t ac__type_new_;
19341int
19342main ()
19343{
19344if ((ac__type_new_ *) 0)
19345  return 0;
19346if (sizeof (ac__type_new_))
19347  return 0;
19348  ;
19349  return 0;
19350}
19351_ACEOF
19352rm -f conftest.$ac_objext
19353if { (ac_try="$ac_compile"
19354case "(($ac_try" in
19355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19356  *) ac_try_echo=$ac_try;;
19357esac
19358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19359  (eval "$ac_compile") 2>conftest.er1
19360  ac_status=$?
19361  grep -v '^ *+' conftest.er1 >conftest.err
19362  rm -f conftest.er1
19363  cat conftest.err >&5
19364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365  (exit $ac_status); } && {
19366	 test -z "$ac_c_werror_flag" ||
19367	 test ! -s conftest.err
19368       } && test -s conftest.$ac_objext; then
19369  ac_cv_type_uintptr_t=yes
19370else
19371  echo "$as_me: failed program was:" >&5
19372sed 's/^/| /' conftest.$ac_ext >&5
19373
19374	ac_cv_type_uintptr_t=no
19375fi
19376
19377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19378fi
19379{ echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
19380echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
19381if test $ac_cv_type_uintptr_t = yes; then
19382
19383cat >>confdefs.h <<_ACEOF
19384#define HAVE_UINTPTR_T 1
19385_ACEOF
19386
19387
19388fi
19389
19390
19391#########
19392# Check for needed/wanted headers
19393
19394
19395
19396
19397for ac_header in sys/types.h stdlib.h stdint.h inttypes.h
19398do
19399as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19400if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19401  { echo "$as_me:$LINENO: checking for $ac_header" >&5
19402echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19403if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19404  echo $ECHO_N "(cached) $ECHO_C" >&6
19405fi
19406ac_res=`eval echo '${'$as_ac_Header'}'`
19407	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19408echo "${ECHO_T}$ac_res" >&6; }
19409else
19410  # Is the header compilable?
19411{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19412echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19413cat >conftest.$ac_ext <<_ACEOF
19414/* confdefs.h.  */
19415_ACEOF
19416cat confdefs.h >>conftest.$ac_ext
19417cat >>conftest.$ac_ext <<_ACEOF
19418/* end confdefs.h.  */
19419$ac_includes_default
19420#include <$ac_header>
19421_ACEOF
19422rm -f conftest.$ac_objext
19423if { (ac_try="$ac_compile"
19424case "(($ac_try" in
19425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19426  *) ac_try_echo=$ac_try;;
19427esac
19428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19429  (eval "$ac_compile") 2>conftest.er1
19430  ac_status=$?
19431  grep -v '^ *+' conftest.er1 >conftest.err
19432  rm -f conftest.er1
19433  cat conftest.err >&5
19434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435  (exit $ac_status); } && {
19436	 test -z "$ac_c_werror_flag" ||
19437	 test ! -s conftest.err
19438       } && test -s conftest.$ac_objext; then
19439  ac_header_compiler=yes
19440else
19441  echo "$as_me: failed program was:" >&5
19442sed 's/^/| /' conftest.$ac_ext >&5
19443
19444	ac_header_compiler=no
19445fi
19446
19447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19448{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19449echo "${ECHO_T}$ac_header_compiler" >&6; }
19450
19451# Is the header present?
19452{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19453echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19454cat >conftest.$ac_ext <<_ACEOF
19455/* confdefs.h.  */
19456_ACEOF
19457cat confdefs.h >>conftest.$ac_ext
19458cat >>conftest.$ac_ext <<_ACEOF
19459/* end confdefs.h.  */
19460#include <$ac_header>
19461_ACEOF
19462if { (ac_try="$ac_cpp conftest.$ac_ext"
19463case "(($ac_try" in
19464  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19465  *) ac_try_echo=$ac_try;;
19466esac
19467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19468  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19469  ac_status=$?
19470  grep -v '^ *+' conftest.er1 >conftest.err
19471  rm -f conftest.er1
19472  cat conftest.err >&5
19473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474  (exit $ac_status); } >/dev/null && {
19475	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19476	 test ! -s conftest.err
19477       }; then
19478  ac_header_preproc=yes
19479else
19480  echo "$as_me: failed program was:" >&5
19481sed 's/^/| /' conftest.$ac_ext >&5
19482
19483  ac_header_preproc=no
19484fi
19485
19486rm -f conftest.err conftest.$ac_ext
19487{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19488echo "${ECHO_T}$ac_header_preproc" >&6; }
19489
19490# So?  What about this header?
19491case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19492  yes:no: )
19493    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19494echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19495    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19496echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19497    ac_header_preproc=yes
19498    ;;
19499  no:yes:* )
19500    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19501echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19502    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19503echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19504    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19505echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19506    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19507echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19508    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19509echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19510    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19511echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19512
19513    ;;
19514esac
19515{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19516echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19517if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19518  echo $ECHO_N "(cached) $ECHO_C" >&6
19519else
19520  eval "$as_ac_Header=\$ac_header_preproc"
19521fi
19522ac_res=`eval echo '${'$as_ac_Header'}'`
19523	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19524echo "${ECHO_T}$ac_res" >&6; }
19525
19526fi
19527if test `eval echo '${'$as_ac_Header'}'` = yes; then
19528  cat >>confdefs.h <<_ACEOF
19529#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19530_ACEOF
19531
19532fi
19533
19534done
19535
19536
19537#########
19538# Figure out whether or not we have these functions
19539#
19540
19541
19542
19543
19544for ac_func in usleep fdatasync localtime_r gmtime_r
19545do
19546as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19547{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19548echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19549if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19550  echo $ECHO_N "(cached) $ECHO_C" >&6
19551else
19552  cat >conftest.$ac_ext <<_ACEOF
19553/* confdefs.h.  */
19554_ACEOF
19555cat confdefs.h >>conftest.$ac_ext
19556cat >>conftest.$ac_ext <<_ACEOF
19557/* end confdefs.h.  */
19558/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19559   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19560#define $ac_func innocuous_$ac_func
19561
19562/* System header to define __stub macros and hopefully few prototypes,
19563    which can conflict with char $ac_func (); below.
19564    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19565    <limits.h> exists even on freestanding compilers.  */
19566
19567#ifdef __STDC__
19568# include <limits.h>
19569#else
19570# include <assert.h>
19571#endif
19572
19573#undef $ac_func
19574
19575/* Override any GCC internal prototype to avoid an error.
19576   Use char because int might match the return type of a GCC
19577   builtin and then its argument prototype would still apply.  */
19578#ifdef __cplusplus
19579extern "C"
19580#endif
19581char $ac_func ();
19582/* The GNU C library defines this for functions which it implements
19583    to always fail with ENOSYS.  Some functions are actually named
19584    something starting with __ and the normal name is an alias.  */
19585#if defined __stub_$ac_func || defined __stub___$ac_func
19586choke me
19587#endif
19588
19589int
19590main ()
19591{
19592return $ac_func ();
19593  ;
19594  return 0;
19595}
19596_ACEOF
19597rm -f conftest.$ac_objext conftest$ac_exeext
19598if { (ac_try="$ac_link"
19599case "(($ac_try" in
19600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19601  *) ac_try_echo=$ac_try;;
19602esac
19603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19604  (eval "$ac_link") 2>conftest.er1
19605  ac_status=$?
19606  grep -v '^ *+' conftest.er1 >conftest.err
19607  rm -f conftest.er1
19608  cat conftest.err >&5
19609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610  (exit $ac_status); } && {
19611	 test -z "$ac_c_werror_flag" ||
19612	 test ! -s conftest.err
19613       } && test -s conftest$ac_exeext &&
19614       $as_test_x conftest$ac_exeext; then
19615  eval "$as_ac_var=yes"
19616else
19617  echo "$as_me: failed program was:" >&5
19618sed 's/^/| /' conftest.$ac_ext >&5
19619
19620	eval "$as_ac_var=no"
19621fi
19622
19623rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19624      conftest$ac_exeext conftest.$ac_ext
19625fi
19626ac_res=`eval echo '${'$as_ac_var'}'`
19627	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19628echo "${ECHO_T}$ac_res" >&6; }
19629if test `eval echo '${'$as_ac_var'}'` = yes; then
19630  cat >>confdefs.h <<_ACEOF
19631#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19632_ACEOF
19633
19634fi
19635done
19636
19637
19638#########
19639# By default, we use the amalgamation (this may be changed below...)
19640#
19641USE_AMALGAMATION=1
19642
19643#########
19644# See whether we can run specific tclsh versions known to work well;
19645# if not, then we fall back to plain tclsh.
19646# TODO: try other versions before falling back?
19647#
19648for ac_prog in tclsh8.4 tclsh
19649do
19650  # Extract the first word of "$ac_prog", so it can be a program name with args.
19651set dummy $ac_prog; ac_word=$2
19652{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19654if test "${ac_cv_prog_TCLSH_CMD+set}" = set; then
19655  echo $ECHO_N "(cached) $ECHO_C" >&6
19656else
19657  if test -n "$TCLSH_CMD"; then
19658  ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
19659else
19660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19661for as_dir in $PATH
19662do
19663  IFS=$as_save_IFS
19664  test -z "$as_dir" && as_dir=.
19665  for ac_exec_ext in '' $ac_executable_extensions; do
19666  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19667    ac_cv_prog_TCLSH_CMD="$ac_prog"
19668    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19669    break 2
19670  fi
19671done
19672done
19673IFS=$as_save_IFS
19674
19675fi
19676fi
19677TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
19678if test -n "$TCLSH_CMD"; then
19679  { echo "$as_me:$LINENO: result: $TCLSH_CMD" >&5
19680echo "${ECHO_T}$TCLSH_CMD" >&6; }
19681else
19682  { echo "$as_me:$LINENO: result: no" >&5
19683echo "${ECHO_T}no" >&6; }
19684fi
19685
19686
19687  test -n "$TCLSH_CMD" && break
19688done
19689test -n "$TCLSH_CMD" || TCLSH_CMD="none"
19690
19691if test "$TCLSH_CMD" = "none"; then
19692  # If we can't find a local tclsh, then building the amalgamation will fail.
19693  # We act as though --disable-amalgamation has been used.
19694  echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
19695  USE_AMALGAMATION=0
19696  TCLSH_CMD="tclsh"
19697fi
19698
19699
19700
19701#########
19702# Set up an appropriate program prefix
19703#
19704if test "$program_prefix" = "NONE"; then
19705  program_prefix=""
19706fi
19707
19708
19709VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
19710echo "Version set to $VERSION"
19711
19712RELEASE=`cat $srcdir/VERSION`
19713echo "Release set to $RELEASE"
19714
19715VERSION_NUMBER=`cat $srcdir/VERSION  \
19716                           | sed 's/[^0-9]/ /g' \
19717                | awk '{printf "%d%03d%03d",$1,$2,$3}'`
19718echo "Version number set to $VERSION_NUMBER"
19719
19720
19721#########
19722# Check to see if the --with-hints=FILE option is used.  If there is none,
19723# then check for a files named "$host.hints" and ../$hosts.hints where
19724# $host is the hostname of the build system.  If still no hints are
19725# found, try looking in $system.hints and ../$system.hints where
19726# $system is the result of uname -s.
19727#
19728
19729# Check whether --with-hints was given.
19730if test "${with_hints+set}" = set; then
19731  withval=$with_hints; hints=$withval
19732fi
19733
19734if test "$hints" = ""; then
19735  host=`hostname | sed 's/\..*//'`
19736  if test -r $host.hints; then
19737    hints=$host.hints
19738  else
19739     if test -r ../$host.hints; then
19740       hints=../$host.hints
19741     fi
19742  fi
19743fi
19744if test "$hints" = ""; then
19745  sys=`uname -s`
19746  if test -r $sys.hints; then
19747    hints=$sys.hints
19748  else
19749     if test -r ../$sys.hints; then
19750       hints=../$sys.hints
19751     fi
19752  fi
19753fi
19754if test "$hints" != ""; then
19755  { echo "$as_me:$LINENO: result: reading hints from $hints" >&5
19756echo "${ECHO_T}reading hints from $hints" >&6; }
19757  . $hints
19758fi
19759
19760#########
19761# Locate a compiler for the build machine.  This compiler should
19762# generate command-line programs that run on the build machine.
19763#
19764if test x"$cross_compiling" = xno; then
19765	BUILD_CC=$CC
19766	BUILD_CFLAGS=$CFLAGS
19767else
19768	if test "${BUILD_CC+set}" != set; then
19769		for ac_prog in gcc cc cl
19770do
19771  # Extract the first word of "$ac_prog", so it can be a program name with args.
19772set dummy $ac_prog; ac_word=$2
19773{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19775if test "${ac_cv_prog_BUILD_CC+set}" = set; then
19776  echo $ECHO_N "(cached) $ECHO_C" >&6
19777else
19778  if test -n "$BUILD_CC"; then
19779  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
19780else
19781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19782for as_dir in $PATH
19783do
19784  IFS=$as_save_IFS
19785  test -z "$as_dir" && as_dir=.
19786  for ac_exec_ext in '' $ac_executable_extensions; do
19787  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19788    ac_cv_prog_BUILD_CC="$ac_prog"
19789    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19790    break 2
19791  fi
19792done
19793done
19794IFS=$as_save_IFS
19795
19796fi
19797fi
19798BUILD_CC=$ac_cv_prog_BUILD_CC
19799if test -n "$BUILD_CC"; then
19800  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
19801echo "${ECHO_T}$BUILD_CC" >&6; }
19802else
19803  { echo "$as_me:$LINENO: result: no" >&5
19804echo "${ECHO_T}no" >&6; }
19805fi
19806
19807
19808  test -n "$BUILD_CC" && break
19809done
19810
19811	fi
19812	if test "${BUILD_CFLAGS+set}" != set; then
19813		BUILD_CFLAGS="-g"
19814	fi
19815fi
19816
19817
19818##########
19819# Do we want to support multithreaded use of sqlite
19820#
19821# Check whether --enable-threadsafe was given.
19822if test "${enable_threadsafe+set}" = set; then
19823  enableval=$enable_threadsafe;
19824else
19825  enable_threadsafe=yes
19826fi
19827
19828{ echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5
19829echo $ECHO_N "checking whether to support threadsafe operation... $ECHO_C" >&6; }
19830if test "$enable_threadsafe" = "no"; then
19831  SQLITE_THREADSAFE=0
19832  { echo "$as_me:$LINENO: result: no" >&5
19833echo "${ECHO_T}no" >&6; }
19834else
19835  SQLITE_THREADSAFE=1
19836  { echo "$as_me:$LINENO: result: yes" >&5
19837echo "${ECHO_T}yes" >&6; }
19838fi
19839
19840
19841if test "$SQLITE_THREADSAFE" = "1"; then
19842  { echo "$as_me:$LINENO: checking for library containing pthread_create" >&5
19843echo $ECHO_N "checking for library containing pthread_create... $ECHO_C" >&6; }
19844if test "${ac_cv_search_pthread_create+set}" = set; then
19845  echo $ECHO_N "(cached) $ECHO_C" >&6
19846else
19847  ac_func_search_save_LIBS=$LIBS
19848cat >conftest.$ac_ext <<_ACEOF
19849/* confdefs.h.  */
19850_ACEOF
19851cat confdefs.h >>conftest.$ac_ext
19852cat >>conftest.$ac_ext <<_ACEOF
19853/* end confdefs.h.  */
19854
19855/* Override any GCC internal prototype to avoid an error.
19856   Use char because int might match the return type of a GCC
19857   builtin and then its argument prototype would still apply.  */
19858#ifdef __cplusplus
19859extern "C"
19860#endif
19861char pthread_create ();
19862int
19863main ()
19864{
19865return pthread_create ();
19866  ;
19867  return 0;
19868}
19869_ACEOF
19870for ac_lib in '' pthread; do
19871  if test -z "$ac_lib"; then
19872    ac_res="none required"
19873  else
19874    ac_res=-l$ac_lib
19875    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19876  fi
19877  rm -f conftest.$ac_objext conftest$ac_exeext
19878if { (ac_try="$ac_link"
19879case "(($ac_try" in
19880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19881  *) ac_try_echo=$ac_try;;
19882esac
19883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19884  (eval "$ac_link") 2>conftest.er1
19885  ac_status=$?
19886  grep -v '^ *+' conftest.er1 >conftest.err
19887  rm -f conftest.er1
19888  cat conftest.err >&5
19889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890  (exit $ac_status); } && {
19891	 test -z "$ac_c_werror_flag" ||
19892	 test ! -s conftest.err
19893       } && test -s conftest$ac_exeext &&
19894       $as_test_x conftest$ac_exeext; then
19895  ac_cv_search_pthread_create=$ac_res
19896else
19897  echo "$as_me: failed program was:" >&5
19898sed 's/^/| /' conftest.$ac_ext >&5
19899
19900
19901fi
19902
19903rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19904      conftest$ac_exeext
19905  if test "${ac_cv_search_pthread_create+set}" = set; then
19906  break
19907fi
19908done
19909if test "${ac_cv_search_pthread_create+set}" = set; then
19910  :
19911else
19912  ac_cv_search_pthread_create=no
19913fi
19914rm conftest.$ac_ext
19915LIBS=$ac_func_search_save_LIBS
19916fi
19917{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5
19918echo "${ECHO_T}$ac_cv_search_pthread_create" >&6; }
19919ac_res=$ac_cv_search_pthread_create
19920if test "$ac_res" != no; then
19921  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19922
19923fi
19924
19925fi
19926
19927##########
19928# Do we want to allow a connection created in one thread to be used
19929# in another thread.  This does not work on many Linux systems (ex: RedHat 9)
19930# due to bugs in the threading implementations.  This is thus off by default.
19931#
19932# Check whether --enable-cross-thread-connections was given.
19933if test "${enable_cross_thread_connections+set}" = set; then
19934  enableval=$enable_cross_thread_connections;
19935else
19936  enable_xthreadconnect=no
19937fi
19938
19939{ echo "$as_me:$LINENO: checking whether to allow connections to be shared across threads" >&5
19940echo $ECHO_N "checking whether to allow connections to be shared across threads... $ECHO_C" >&6; }
19941if test "$enable_xthreadconnect" = "no"; then
19942  XTHREADCONNECT=''
19943  { echo "$as_me:$LINENO: result: no" >&5
19944echo "${ECHO_T}no" >&6; }
19945else
19946  XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
19947  { echo "$as_me:$LINENO: result: yes" >&5
19948echo "${ECHO_T}yes" >&6; }
19949fi
19950
19951
19952##########
19953# Do we want to set threadsOverrideEachOthersLocks variable to be 1 (true) by
19954# default. Normally, a test at runtime is performed to determine the
19955# appropriate value of this variable. Use this option only if you're sure that
19956# threads can safely override each others locks in all runtime situations.
19957#
19958# Check whether --enable-threads-override-locks was given.
19959if test "${enable_threads_override_locks+set}" = set; then
19960  enableval=$enable_threads_override_locks;
19961else
19962  enable_threads_override_locks=no
19963fi
19964
19965{ echo "$as_me:$LINENO: checking whether threads can override each others locks" >&5
19966echo $ECHO_N "checking whether threads can override each others locks... $ECHO_C" >&6; }
19967if test "$enable_threads_override_locks" = "no"; then
19968  THREADSOVERRIDELOCKS='-1'
19969  { echo "$as_me:$LINENO: result: no" >&5
19970echo "${ECHO_T}no" >&6; }
19971else
19972  THREADSOVERRIDELOCKS='1'
19973  { echo "$as_me:$LINENO: result: yes" >&5
19974echo "${ECHO_T}yes" >&6; }
19975fi
19976
19977
19978##########
19979# Do we want to support release
19980#
19981# Check whether --enable-releasemode was given.
19982if test "${enable_releasemode+set}" = set; then
19983  enableval=$enable_releasemode;
19984else
19985  enable_releasemode=no
19986fi
19987
19988{ echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5
19989echo $ECHO_N "checking whether to support shared library linked as release mode or not... $ECHO_C" >&6; }
19990if test "$enable_releasemode" = "no"; then
19991  ALLOWRELEASE=""
19992  { echo "$as_me:$LINENO: result: no" >&5
19993echo "${ECHO_T}no" >&6; }
19994else
19995  ALLOWRELEASE="-release `cat $srcdir/VERSION`"
19996  { echo "$as_me:$LINENO: result: yes" >&5
19997echo "${ECHO_T}yes" >&6; }
19998fi
19999
20000
20001##########
20002# Do we want temporary databases in memory
20003#
20004# Check whether --enable-tempstore was given.
20005if test "${enable_tempstore+set}" = set; then
20006  enableval=$enable_tempstore;
20007else
20008  enable_tempstore=no
20009fi
20010
20011{ echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5
20012echo $ECHO_N "checking whether to use an in-ram database for temporary tables... $ECHO_C" >&6; }
20013case "$enable_tempstore" in
20014  never )
20015    TEMP_STORE=0
20016    { echo "$as_me:$LINENO: result: never" >&5
20017echo "${ECHO_T}never" >&6; }
20018  ;;
20019  no )
20020    TEMP_STORE=1
20021    { echo "$as_me:$LINENO: result: no" >&5
20022echo "${ECHO_T}no" >&6; }
20023  ;;
20024  always )
20025     TEMP_STORE=3
20026    { echo "$as_me:$LINENO: result: always" >&5
20027echo "${ECHO_T}always" >&6; }
20028  ;;
20029  yes )
20030     TEMP_STORE=3
20031    { echo "$as_me:$LINENO: result: always" >&5
20032echo "${ECHO_T}always" >&6; }
20033  ;;
20034  * )
20035    TEMP_STORE=1
20036    { echo "$as_me:$LINENO: result: yes" >&5
20037echo "${ECHO_T}yes" >&6; }
20038  ;;
20039esac
20040
20041
20042
20043###########
20044# Lots of things are different if we are compiling for Windows using
20045# the CYGWIN environment.  So check for that special case and handle
20046# things accordingly.
20047#
20048{ echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5
20049echo $ECHO_N "checking if executables have the .exe suffix... $ECHO_C" >&6; }
20050if test "$config_BUILD_EXEEXT" = ".exe"; then
20051  CYGWIN=yes
20052  { echo "$as_me:$LINENO: result: yes" >&5
20053echo "${ECHO_T}yes" >&6; }
20054else
20055  { echo "$as_me:$LINENO: result: unknown" >&5
20056echo "${ECHO_T}unknown" >&6; }
20057fi
20058if test "$CYGWIN" != "yes"; then
20059  { echo "$as_me:$LINENO: checking host system type" >&5
20060echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
20061if test "${ac_cv_host+set}" = set; then
20062  echo $ECHO_N "(cached) $ECHO_C" >&6
20063else
20064  if test "x$host_alias" = x; then
20065  ac_cv_host=$ac_cv_build
20066else
20067  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
20068    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
20069echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
20070   { (exit 1); exit 1; }; }
20071fi
20072
20073fi
20074{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
20075echo "${ECHO_T}$ac_cv_host" >&6; }
20076case $ac_cv_host in
20077*-*-*) ;;
20078*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
20079echo "$as_me: error: invalid value of canonical host" >&2;}
20080   { (exit 1); exit 1; }; };;
20081esac
20082host=$ac_cv_host
20083ac_save_IFS=$IFS; IFS='-'
20084set x $ac_cv_host
20085shift
20086host_cpu=$1
20087host_vendor=$2
20088shift; shift
20089# Remember, the first character of IFS is used to create $*,
20090# except with old shells:
20091host_os=$*
20092IFS=$ac_save_IFS
20093case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
20094
20095
20096case $host_os in
20097  *cygwin* ) CYGWIN=yes;;
20098	 * ) CYGWIN=no;;
20099esac
20100
20101fi
20102if test "$CYGWIN" = "yes"; then
20103  BUILD_EXEEXT=.exe
20104else
20105  BUILD_EXEEXT=$EXEEXT
20106fi
20107if test x"$cross_compiling" = xno; then
20108  TARGET_EXEEXT=$BUILD_EXEEXT
20109else
20110  TARGET_EXEEXT=$config_TARGET_EXEEXT
20111fi
20112if test "$TARGET_EXEEXT" = ".exe"; then
20113  if test $OS2_SHELL ; then
20114    OS_UNIX=0
20115    OS_WIN=0
20116    OS_OS2=1
20117    CFLAGS="$CFLAGS -DOS_OS2=1"
20118    if test "$ac_compiler_gnu" == "yes" ; then
20119      CFLAGS="$CFLAGS -Zomf -Zexe -Zmap"
20120      BUILD_CFLAGS="$BUILD_CFLAGS -Zomf -Zexe"
20121    fi
20122  else
20123    OS_UNIX=0
20124    OS_WIN=1
20125    OS_OS2=0
20126    tclsubdir=win
20127    CFLAGS="$CFLAGS -DOS_WIN=1"
20128  fi
20129else
20130  OS_UNIX=1
20131  OS_WIN=0
20132  OS_OS2=0
20133  tclsubdir=unix
20134  CFLAGS="$CFLAGS -DOS_UNIX=1"
20135fi
20136
20137
20138
20139
20140
20141
20142
20143##########
20144# Figure out all the parameters needed to compile against Tcl.
20145#
20146# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
20147# macros in the in the tcl.m4 file of the standard TCL distribution.
20148# Those macros could not be used directly since we have to make some
20149# minor changes to accomodate systems that do not have TCL installed.
20150#
20151# Check whether --enable-tcl was given.
20152if test "${enable_tcl+set}" = set; then
20153  enableval=$enable_tcl; use_tcl=$enableval
20154else
20155  use_tcl=yes
20156fi
20157
20158if test "${use_tcl}" = "yes" ; then
20159
20160# Check whether --with-tcl was given.
20161if test "${with_tcl+set}" = set; then
20162  withval=$with_tcl; with_tclconfig=${withval}
20163fi
20164
20165  { echo "$as_me:$LINENO: checking for Tcl configuration" >&5
20166echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; }
20167  if test "${ac_cv_c_tclconfig+set}" = set; then
20168  echo $ECHO_N "(cached) $ECHO_C" >&6
20169else
20170
20171    # First check to see if --with-tcl was specified.
20172    if test x"${with_tclconfig}" != x ; then
20173      if test -f "${with_tclconfig}/tclConfig.sh" ; then
20174        ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
20175      else
20176        { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
20177echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
20178   { (exit 1); exit 1; }; }
20179      fi
20180    fi
20181    # then check for a private Tcl installation
20182    if test x"${ac_cv_c_tclconfig}" = x ; then
20183      for i in \
20184            ../tcl \
20185            `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20186            `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
20187            `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
20188            ../../tcl \
20189            `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20190            `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
20191            `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
20192            ../../../tcl \
20193            `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20194            `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
20195            `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
20196      do
20197        if test -f "$i/unix/tclConfig.sh" ; then
20198          ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
20199          break
20200        fi
20201      done
20202    fi
20203
20204    # check in a few common install locations
20205    if test x"${ac_cv_c_tclconfig}" = x ; then
20206      for i in \
20207            `ls -d ${libdir} 2>/dev/null` \
20208            `ls -d /usr/local/lib 2>/dev/null` \
20209            `ls -d /usr/contrib/lib 2>/dev/null` \
20210            `ls -d /usr/lib 2>/dev/null`
20211      do
20212        if test -f "$i/tclConfig.sh" ; then
20213           ac_cv_c_tclconfig=`(cd $i; pwd)`
20214           break
20215        fi
20216      done
20217    fi
20218
20219    # check in a few other private locations
20220    if test x"${ac_cv_c_tclconfig}" = x ; then
20221      for i in \
20222         ${srcdir}/../tcl \
20223         `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20224         `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
20225         `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
20226      do
20227        if test -f "$i/unix/tclConfig.sh" ; then
20228          ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
20229          break
20230        fi
20231      done
20232    fi
20233
20234fi
20235
20236
20237  if test x"${ac_cv_c_tclconfig}" = x ; then
20238    use_tcl=no
20239    { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
20240echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
20241    { echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
20242echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
20243    { echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
20244echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
20245  else
20246    TCL_BIN_DIR=${ac_cv_c_tclconfig}
20247    { echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
20248echo "${ECHO_T}found $TCL_BIN_DIR/tclConfig.sh" >&6; }
20249
20250    { echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
20251echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6; }
20252    if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
20253      { echo "$as_me:$LINENO: result: loading" >&5
20254echo "${ECHO_T}loading" >&6; }
20255      . $TCL_BIN_DIR/tclConfig.sh
20256    else
20257      { echo "$as_me:$LINENO: result: file not found" >&5
20258echo "${ECHO_T}file not found" >&6; }
20259    fi
20260
20261    #
20262    # If the TCL_BIN_DIR is the build directory (not the install directory),
20263    # then set the common variable name to the value of the build variables.
20264    # For example, the variable TCL_LIB_SPEC will be set to the value
20265    # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
20266    # instead of TCL_BUILD_LIB_SPEC since it will work with both an
20267    # installed and uninstalled version of Tcl.
20268    #
20269
20270    if test -f $TCL_BIN_DIR/Makefile ; then
20271      TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
20272      TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
20273      TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
20274    fi
20275
20276    #
20277    # eval is required to do the TCL_DBGX substitution
20278    #
20279
20280    eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
20281    eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
20282    eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
20283
20284    eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
20285    eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
20286    eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
20287
20288
20289
20290
20291
20292
20293
20294
20295
20296
20297
20298
20299
20300
20301  fi
20302fi
20303if test "${use_tcl}" = "no" ; then
20304  HAVE_TCL=""
20305else
20306  HAVE_TCL=1
20307fi
20308
20309
20310##########
20311# Figure out what C libraries are required to compile programs
20312# that use "readline()" library.
20313#
20314TARGET_READLINE_LIBS=""
20315TARGET_READLINE_INC=""
20316TARGET_HAVE_READLINE=0
20317# Check whether --enable-readline was given.
20318if test "${enable_readline+set}" = set; then
20319  enableval=$enable_readline; with_readline=$enableval
20320else
20321  with_readline=auto
20322fi
20323
20324
20325if test x"$with_readline" != xno; then
20326	found="yes"
20327
20328
20329# Check whether --with-readline-lib was given.
20330if test "${with_readline_lib+set}" = set; then
20331  withval=$with_readline_lib; with_readline_lib=$withval
20332else
20333  with_readline_lib="auto"
20334fi
20335
20336	if test "x$with_readline_lib" = xauto; then
20337		save_LIBS="$LIBS"
20338		LIBS=""
20339		{ echo "$as_me:$LINENO: checking for library containing tgetent" >&5
20340echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6; }
20341if test "${ac_cv_search_tgetent+set}" = set; then
20342  echo $ECHO_N "(cached) $ECHO_C" >&6
20343else
20344  ac_func_search_save_LIBS=$LIBS
20345cat >conftest.$ac_ext <<_ACEOF
20346/* confdefs.h.  */
20347_ACEOF
20348cat confdefs.h >>conftest.$ac_ext
20349cat >>conftest.$ac_ext <<_ACEOF
20350/* end confdefs.h.  */
20351
20352/* Override any GCC internal prototype to avoid an error.
20353   Use char because int might match the return type of a GCC
20354   builtin and then its argument prototype would still apply.  */
20355#ifdef __cplusplus
20356extern "C"
20357#endif
20358char tgetent ();
20359int
20360main ()
20361{
20362return tgetent ();
20363  ;
20364  return 0;
20365}
20366_ACEOF
20367for ac_lib in '' readline ncurses curses termcap; do
20368  if test -z "$ac_lib"; then
20369    ac_res="none required"
20370  else
20371    ac_res=-l$ac_lib
20372    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20373  fi
20374  rm -f conftest.$ac_objext conftest$ac_exeext
20375if { (ac_try="$ac_link"
20376case "(($ac_try" in
20377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20378  *) ac_try_echo=$ac_try;;
20379esac
20380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20381  (eval "$ac_link") 2>conftest.er1
20382  ac_status=$?
20383  grep -v '^ *+' conftest.er1 >conftest.err
20384  rm -f conftest.er1
20385  cat conftest.err >&5
20386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387  (exit $ac_status); } && {
20388	 test -z "$ac_c_werror_flag" ||
20389	 test ! -s conftest.err
20390       } && test -s conftest$ac_exeext &&
20391       $as_test_x conftest$ac_exeext; then
20392  ac_cv_search_tgetent=$ac_res
20393else
20394  echo "$as_me: failed program was:" >&5
20395sed 's/^/| /' conftest.$ac_ext >&5
20396
20397
20398fi
20399
20400rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20401      conftest$ac_exeext
20402  if test "${ac_cv_search_tgetent+set}" = set; then
20403  break
20404fi
20405done
20406if test "${ac_cv_search_tgetent+set}" = set; then
20407  :
20408else
20409  ac_cv_search_tgetent=no
20410fi
20411rm conftest.$ac_ext
20412LIBS=$ac_func_search_save_LIBS
20413fi
20414{ echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
20415echo "${ECHO_T}$ac_cv_search_tgetent" >&6; }
20416ac_res=$ac_cv_search_tgetent
20417if test "$ac_res" != no; then
20418  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20419  term_LIBS="$LIBS"
20420else
20421  term_LIBS=""
20422fi
20423
20424		{ echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
20425echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
20426if test "${ac_cv_lib_readline_readline+set}" = set; then
20427  echo $ECHO_N "(cached) $ECHO_C" >&6
20428else
20429  ac_check_lib_save_LIBS=$LIBS
20430LIBS="-lreadline  $LIBS"
20431cat >conftest.$ac_ext <<_ACEOF
20432/* confdefs.h.  */
20433_ACEOF
20434cat confdefs.h >>conftest.$ac_ext
20435cat >>conftest.$ac_ext <<_ACEOF
20436/* end confdefs.h.  */
20437
20438/* Override any GCC internal prototype to avoid an error.
20439   Use char because int might match the return type of a GCC
20440   builtin and then its argument prototype would still apply.  */
20441#ifdef __cplusplus
20442extern "C"
20443#endif
20444char readline ();
20445int
20446main ()
20447{
20448return readline ();
20449  ;
20450  return 0;
20451}
20452_ACEOF
20453rm -f conftest.$ac_objext conftest$ac_exeext
20454if { (ac_try="$ac_link"
20455case "(($ac_try" in
20456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20457  *) ac_try_echo=$ac_try;;
20458esac
20459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20460  (eval "$ac_link") 2>conftest.er1
20461  ac_status=$?
20462  grep -v '^ *+' conftest.er1 >conftest.err
20463  rm -f conftest.er1
20464  cat conftest.err >&5
20465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466  (exit $ac_status); } && {
20467	 test -z "$ac_c_werror_flag" ||
20468	 test ! -s conftest.err
20469       } && test -s conftest$ac_exeext &&
20470       $as_test_x conftest$ac_exeext; then
20471  ac_cv_lib_readline_readline=yes
20472else
20473  echo "$as_me: failed program was:" >&5
20474sed 's/^/| /' conftest.$ac_ext >&5
20475
20476	ac_cv_lib_readline_readline=no
20477fi
20478
20479rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20480      conftest$ac_exeext conftest.$ac_ext
20481LIBS=$ac_check_lib_save_LIBS
20482fi
20483{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
20484echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
20485if test $ac_cv_lib_readline_readline = yes; then
20486  TARGET_READLINE_LIBS="-lreadline"
20487else
20488  found="no"
20489fi
20490
20491		TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
20492		LIBS="$save_LIBS"
20493	else
20494		TARGET_READLINE_LIBS="$with_readline_lib"
20495	fi
20496
20497
20498# Check whether --with-readline-inc was given.
20499if test "${with_readline_inc+set}" = set; then
20500  withval=$with_readline_inc; with_readline_inc=$withval
20501else
20502  with_readline_inc="auto"
20503fi
20504
20505	if test "x$with_readline_inc" = xauto; then
20506		if test "${ac_cv_header_readline_h+set}" = set; then
20507  { echo "$as_me:$LINENO: checking for readline.h" >&5
20508echo $ECHO_N "checking for readline.h... $ECHO_C" >&6; }
20509if test "${ac_cv_header_readline_h+set}" = set; then
20510  echo $ECHO_N "(cached) $ECHO_C" >&6
20511fi
20512{ echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
20513echo "${ECHO_T}$ac_cv_header_readline_h" >&6; }
20514else
20515  # Is the header compilable?
20516{ echo "$as_me:$LINENO: checking readline.h usability" >&5
20517echo $ECHO_N "checking readline.h usability... $ECHO_C" >&6; }
20518cat >conftest.$ac_ext <<_ACEOF
20519/* confdefs.h.  */
20520_ACEOF
20521cat confdefs.h >>conftest.$ac_ext
20522cat >>conftest.$ac_ext <<_ACEOF
20523/* end confdefs.h.  */
20524$ac_includes_default
20525#include <readline.h>
20526_ACEOF
20527rm -f conftest.$ac_objext
20528if { (ac_try="$ac_compile"
20529case "(($ac_try" in
20530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20531  *) ac_try_echo=$ac_try;;
20532esac
20533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20534  (eval "$ac_compile") 2>conftest.er1
20535  ac_status=$?
20536  grep -v '^ *+' conftest.er1 >conftest.err
20537  rm -f conftest.er1
20538  cat conftest.err >&5
20539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540  (exit $ac_status); } && {
20541	 test -z "$ac_c_werror_flag" ||
20542	 test ! -s conftest.err
20543       } && test -s conftest.$ac_objext; then
20544  ac_header_compiler=yes
20545else
20546  echo "$as_me: failed program was:" >&5
20547sed 's/^/| /' conftest.$ac_ext >&5
20548
20549	ac_header_compiler=no
20550fi
20551
20552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20553{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20554echo "${ECHO_T}$ac_header_compiler" >&6; }
20555
20556# Is the header present?
20557{ echo "$as_me:$LINENO: checking readline.h presence" >&5
20558echo $ECHO_N "checking readline.h presence... $ECHO_C" >&6; }
20559cat >conftest.$ac_ext <<_ACEOF
20560/* confdefs.h.  */
20561_ACEOF
20562cat confdefs.h >>conftest.$ac_ext
20563cat >>conftest.$ac_ext <<_ACEOF
20564/* end confdefs.h.  */
20565#include <readline.h>
20566_ACEOF
20567if { (ac_try="$ac_cpp conftest.$ac_ext"
20568case "(($ac_try" in
20569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20570  *) ac_try_echo=$ac_try;;
20571esac
20572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20573  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20574  ac_status=$?
20575  grep -v '^ *+' conftest.er1 >conftest.err
20576  rm -f conftest.er1
20577  cat conftest.err >&5
20578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579  (exit $ac_status); } >/dev/null && {
20580	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20581	 test ! -s conftest.err
20582       }; then
20583  ac_header_preproc=yes
20584else
20585  echo "$as_me: failed program was:" >&5
20586sed 's/^/| /' conftest.$ac_ext >&5
20587
20588  ac_header_preproc=no
20589fi
20590
20591rm -f conftest.err conftest.$ac_ext
20592{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20593echo "${ECHO_T}$ac_header_preproc" >&6; }
20594
20595# So?  What about this header?
20596case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20597  yes:no: )
20598    { echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
20599echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20600    { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5
20601echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;}
20602    ac_header_preproc=yes
20603    ;;
20604  no:yes:* )
20605    { echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5
20606echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;}
20607    { echo "$as_me:$LINENO: WARNING: readline.h:     check for missing prerequisite headers?" >&5
20608echo "$as_me: WARNING: readline.h:     check for missing prerequisite headers?" >&2;}
20609    { echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5
20610echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;}
20611    { echo "$as_me:$LINENO: WARNING: readline.h:     section \"Present But Cannot Be Compiled\"" >&5
20612echo "$as_me: WARNING: readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20613    { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5
20614echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;}
20615    { echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5
20616echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;}
20617
20618    ;;
20619esac
20620{ echo "$as_me:$LINENO: checking for readline.h" >&5
20621echo $ECHO_N "checking for readline.h... $ECHO_C" >&6; }
20622if test "${ac_cv_header_readline_h+set}" = set; then
20623  echo $ECHO_N "(cached) $ECHO_C" >&6
20624else
20625  ac_cv_header_readline_h=$ac_header_preproc
20626fi
20627{ echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
20628echo "${ECHO_T}$ac_cv_header_readline_h" >&6; }
20629
20630fi
20631if test $ac_cv_header_readline_h = yes; then
20632  found="yes"
20633else
20634
20635			found="no"
20636			if test "$cross_compiling" != yes; then
20637				for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
20638					for subdir in include include/readline; do
20639						as_ac_File=`echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
20640{ echo "$as_me:$LINENO: checking for $dir/$subdir/readline.h" >&5
20641echo $ECHO_N "checking for $dir/$subdir/readline.h... $ECHO_C" >&6; }
20642if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
20643  echo $ECHO_N "(cached) $ECHO_C" >&6
20644else
20645  test "$cross_compiling" = yes &&
20646  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
20647echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
20648   { (exit 1); exit 1; }; }
20649if test -r "$dir/$subdir/readline.h"; then
20650  eval "$as_ac_File=yes"
20651else
20652  eval "$as_ac_File=no"
20653fi
20654fi
20655ac_res=`eval echo '${'$as_ac_File'}'`
20656	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20657echo "${ECHO_T}$ac_res" >&6; }
20658if test `eval echo '${'$as_ac_File'}'` = yes; then
20659  found=yes
20660fi
20661
20662						if test "$found" = "yes"; then
20663							TARGET_READLINE_INC="-I$dir/$subdir"
20664							break
20665						fi
20666					done
20667					test "$found" = "yes" && break
20668				done
20669			fi
20670
20671fi
20672
20673
20674	else
20675		TARGET_READLINE_INC="$with_readline_inc"
20676	fi
20677
20678	if test x"$found" = xno; then
20679		TARGET_READLINE_LIBS=""
20680		TARGET_READLINE_INC=""
20681		TARGET_HAVE_READLINE=0
20682	else
20683		TARGET_HAVE_READLINE=1
20684	fi
20685fi
20686
20687
20688
20689
20690
20691##########
20692# Figure out what C libraries are required to compile programs
20693# that use "fdatasync()" function.
20694#
20695{ echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
20696echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
20697if test "${ac_cv_search_fdatasync+set}" = set; then
20698  echo $ECHO_N "(cached) $ECHO_C" >&6
20699else
20700  ac_func_search_save_LIBS=$LIBS
20701cat >conftest.$ac_ext <<_ACEOF
20702/* confdefs.h.  */
20703_ACEOF
20704cat confdefs.h >>conftest.$ac_ext
20705cat >>conftest.$ac_ext <<_ACEOF
20706/* end confdefs.h.  */
20707
20708/* Override any GCC internal prototype to avoid an error.
20709   Use char because int might match the return type of a GCC
20710   builtin and then its argument prototype would still apply.  */
20711#ifdef __cplusplus
20712extern "C"
20713#endif
20714char fdatasync ();
20715int
20716main ()
20717{
20718return fdatasync ();
20719  ;
20720  return 0;
20721}
20722_ACEOF
20723for ac_lib in '' rt; do
20724  if test -z "$ac_lib"; then
20725    ac_res="none required"
20726  else
20727    ac_res=-l$ac_lib
20728    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20729  fi
20730  rm -f conftest.$ac_objext conftest$ac_exeext
20731if { (ac_try="$ac_link"
20732case "(($ac_try" in
20733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20734  *) ac_try_echo=$ac_try;;
20735esac
20736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20737  (eval "$ac_link") 2>conftest.er1
20738  ac_status=$?
20739  grep -v '^ *+' conftest.er1 >conftest.err
20740  rm -f conftest.er1
20741  cat conftest.err >&5
20742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743  (exit $ac_status); } && {
20744	 test -z "$ac_c_werror_flag" ||
20745	 test ! -s conftest.err
20746       } && test -s conftest$ac_exeext &&
20747       $as_test_x conftest$ac_exeext; then
20748  ac_cv_search_fdatasync=$ac_res
20749else
20750  echo "$as_me: failed program was:" >&5
20751sed 's/^/| /' conftest.$ac_ext >&5
20752
20753
20754fi
20755
20756rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20757      conftest$ac_exeext
20758  if test "${ac_cv_search_fdatasync+set}" = set; then
20759  break
20760fi
20761done
20762if test "${ac_cv_search_fdatasync+set}" = set; then
20763  :
20764else
20765  ac_cv_search_fdatasync=no
20766fi
20767rm conftest.$ac_ext
20768LIBS=$ac_func_search_save_LIBS
20769fi
20770{ echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
20771echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
20772ac_res=$ac_cv_search_fdatasync
20773if test "$ac_res" != no; then
20774  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20775
20776fi
20777
20778
20779#########
20780# check for debug enabled
20781# Check whether --enable-debug was given.
20782if test "${enable_debug+set}" = set; then
20783  enableval=$enable_debug; use_debug=$enableval
20784else
20785  use_debug=no
20786fi
20787
20788if test "${use_debug}" = "yes" ; then
20789  TARGET_DEBUG="-DSQLITE_DEBUG=1"
20790else
20791  TARGET_DEBUG="-DNDEBUG"
20792fi
20793
20794
20795#########
20796# See whether we should use the amalgamation to build
20797# Check whether --enable-amalgamation was given.
20798if test "${enable_amalgamation+set}" = set; then
20799  enableval=$enable_amalgamation; use_amalgamation=$enableval
20800else
20801  use_amalgamation=yes
20802fi
20803
20804if test "${use_amalgamation}" != "yes" ; then
20805  USE_AMALGAMATION=0
20806fi
20807
20808
20809#########
20810# See whether we should allow loadable extensions
20811# Check whether --enable-load-extension was given.
20812if test "${enable_load_extension+set}" = set; then
20813  enableval=$enable_load_extension; use_loadextension=$enableval
20814else
20815  use_loadextension=no
20816fi
20817
20818if test "${use_loadextension}" = "yes" ; then
20819  LOADEXTENSION_FLAGS=""
20820else
20821  LOADEXTENSION_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
20822fi
20823
20824
20825#########
20826# See whether we should allow loadable extensions
20827# Check whether --enable-gcov was given.
20828if test "${enable_gcov+set}" = set; then
20829  enableval=$enable_gcov; use_gcov=$enableval
20830else
20831  use_gcov=no
20832fi
20833
20834if test "${use_gcov}" = "yes" ; then
20835  USE_GCOV=1
20836else
20837  USE_GCOV=0
20838fi
20839
20840
20841
20842#########
20843# Output the config header
20844ac_config_headers="$ac_config_headers config.h"
20845
20846
20847#########
20848# Generate the output files.
20849#
20850
20851ac_config_files="$ac_config_files Makefile sqlite3.pc"
20852
20853cat >confcache <<\_ACEOF
20854# This file is a shell script that caches the results of configure
20855# tests run on this system so they can be shared between configure
20856# scripts and configure runs, see configure's option --config-cache.
20857# It is not useful on other systems.  If it contains results you don't
20858# want to keep, you may remove or edit it.
20859#
20860# config.status only pays attention to the cache file if you give it
20861# the --recheck option to rerun configure.
20862#
20863# `ac_cv_env_foo' variables (set or unset) will be overridden when
20864# loading this file, other *unset* `ac_cv_foo' will be assigned the
20865# following values.
20866
20867_ACEOF
20868
20869# The following way of writing the cache mishandles newlines in values,
20870# but we know of no workaround that is simple, portable, and efficient.
20871# So, we kill variables containing newlines.
20872# Ultrix sh set writes to stderr and can't be redirected directly,
20873# and sets the high bit in the cache file unless we assign to the vars.
20874(
20875  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20876    eval ac_val=\$$ac_var
20877    case $ac_val in #(
20878    *${as_nl}*)
20879      case $ac_var in #(
20880      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20881echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20882      esac
20883      case $ac_var in #(
20884      _ | IFS | as_nl) ;; #(
20885      *) $as_unset $ac_var ;;
20886      esac ;;
20887    esac
20888  done
20889
20890  (set) 2>&1 |
20891    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20892    *${as_nl}ac_space=\ *)
20893      # `set' does not quote correctly, so add quotes (double-quote
20894      # substitution turns \\\\ into \\, and sed turns \\ into \).
20895      sed -n \
20896	"s/'/'\\\\''/g;
20897	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20898      ;; #(
20899    *)
20900      # `set' quotes correctly as required by POSIX, so do not add quotes.
20901      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20902      ;;
20903    esac |
20904    sort
20905) |
20906  sed '
20907     /^ac_cv_env_/b end
20908     t clear
20909     :clear
20910     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20911     t end
20912     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20913     :end' >>confcache
20914if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20915  if test -w "$cache_file"; then
20916    test "x$cache_file" != "x/dev/null" &&
20917      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20918echo "$as_me: updating cache $cache_file" >&6;}
20919    cat confcache >$cache_file
20920  else
20921    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20922echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20923  fi
20924fi
20925rm -f confcache
20926
20927test "x$prefix" = xNONE && prefix=$ac_default_prefix
20928# Let make expand exec_prefix.
20929test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20930
20931DEFS=-DHAVE_CONFIG_H
20932
20933ac_libobjs=
20934ac_ltlibobjs=
20935for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20936  # 1. Remove the extension, and $U if already installed.
20937  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20938  ac_i=`echo "$ac_i" | sed "$ac_script"`
20939  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20940  #    will be set to the directory where LIBOBJS objects are built.
20941  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20942  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20943done
20944LIBOBJS=$ac_libobjs
20945
20946LTLIBOBJS=$ac_ltlibobjs
20947
20948
20949
20950: ${CONFIG_STATUS=./config.status}
20951ac_clean_files_save=$ac_clean_files
20952ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20953{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20954echo "$as_me: creating $CONFIG_STATUS" >&6;}
20955cat >$CONFIG_STATUS <<_ACEOF
20956#! $SHELL
20957# Generated by $as_me.
20958# Run this file to recreate the current configuration.
20959# Compiler output produced by configure, useful for debugging
20960# configure, is in config.log if it exists.
20961
20962debug=false
20963ac_cs_recheck=false
20964ac_cs_silent=false
20965SHELL=\${CONFIG_SHELL-$SHELL}
20966_ACEOF
20967
20968cat >>$CONFIG_STATUS <<\_ACEOF
20969## --------------------- ##
20970## M4sh Initialization.  ##
20971## --------------------- ##
20972
20973# Be more Bourne compatible
20974DUALCASE=1; export DUALCASE # for MKS sh
20975if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20976  emulate sh
20977  NULLCMD=:
20978  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20979  # is contrary to our usage.  Disable this feature.
20980  alias -g '${1+"$@"}'='"$@"'
20981  setopt NO_GLOB_SUBST
20982else
20983  case `(set -o) 2>/dev/null` in
20984  *posix*) set -o posix ;;
20985esac
20986
20987fi
20988
20989
20990
20991
20992# PATH needs CR
20993# Avoid depending upon Character Ranges.
20994as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20995as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20996as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20997as_cr_digits='0123456789'
20998as_cr_alnum=$as_cr_Letters$as_cr_digits
20999
21000# The user is always right.
21001if test "${PATH_SEPARATOR+set}" != set; then
21002  echo "#! /bin/sh" >conf$$.sh
21003  echo  "exit 0"   >>conf$$.sh
21004  chmod +x conf$$.sh
21005  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21006    PATH_SEPARATOR=';'
21007  else
21008    PATH_SEPARATOR=:
21009  fi
21010  rm -f conf$$.sh
21011fi
21012
21013# Support unset when possible.
21014if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21015  as_unset=unset
21016else
21017  as_unset=false
21018fi
21019
21020
21021# IFS
21022# We need space, tab and new line, in precisely that order.  Quoting is
21023# there to prevent editors from complaining about space-tab.
21024# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21025# splitting by setting IFS to empty value.)
21026as_nl='
21027'
21028IFS=" ""	$as_nl"
21029
21030# Find who we are.  Look in the path if we contain no directory separator.
21031case $0 in
21032  *[\\/]* ) as_myself=$0 ;;
21033  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21034for as_dir in $PATH
21035do
21036  IFS=$as_save_IFS
21037  test -z "$as_dir" && as_dir=.
21038  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21039done
21040IFS=$as_save_IFS
21041
21042     ;;
21043esac
21044# We did not find ourselves, most probably we were run as `sh COMMAND'
21045# in which case we are not to be found in the path.
21046if test "x$as_myself" = x; then
21047  as_myself=$0
21048fi
21049if test ! -f "$as_myself"; then
21050  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21051  { (exit 1); exit 1; }
21052fi
21053
21054# Work around bugs in pre-3.0 UWIN ksh.
21055for as_var in ENV MAIL MAILPATH
21056do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21057done
21058PS1='$ '
21059PS2='> '
21060PS4='+ '
21061
21062# NLS nuisances.
21063for as_var in \
21064  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21065  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21066  LC_TELEPHONE LC_TIME
21067do
21068  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21069    eval $as_var=C; export $as_var
21070  else
21071    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21072  fi
21073done
21074
21075# Required to use basename.
21076if expr a : '\(a\)' >/dev/null 2>&1 &&
21077   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21078  as_expr=expr
21079else
21080  as_expr=false
21081fi
21082
21083if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21084  as_basename=basename
21085else
21086  as_basename=false
21087fi
21088
21089
21090# Name of the executable.
21091as_me=`$as_basename -- "$0" ||
21092$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21093	 X"$0" : 'X\(//\)$' \| \
21094	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21095echo X/"$0" |
21096    sed '/^.*\/\([^/][^/]*\)\/*$/{
21097	    s//\1/
21098	    q
21099	  }
21100	  /^X\/\(\/\/\)$/{
21101	    s//\1/
21102	    q
21103	  }
21104	  /^X\/\(\/\).*/{
21105	    s//\1/
21106	    q
21107	  }
21108	  s/.*/./; q'`
21109
21110# CDPATH.
21111$as_unset CDPATH
21112
21113
21114
21115  as_lineno_1=$LINENO
21116  as_lineno_2=$LINENO
21117  test "x$as_lineno_1" != "x$as_lineno_2" &&
21118  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21119
21120  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21121  # uniformly replaced by the line number.  The first 'sed' inserts a
21122  # line-number line after each line using $LINENO; the second 'sed'
21123  # does the real work.  The second script uses 'N' to pair each
21124  # line-number line with the line containing $LINENO, and appends
21125  # trailing '-' during substitution so that $LINENO is not a special
21126  # case at line end.
21127  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21128  # scripts with optimization help from Paolo Bonzini.  Blame Lee
21129  # E. McMahon (1931-1989) for sed's syntax.  :-)
21130  sed -n '
21131    p
21132    /[$]LINENO/=
21133  ' <$as_myself |
21134    sed '
21135      s/[$]LINENO.*/&-/
21136      t lineno
21137      b
21138      :lineno
21139      N
21140      :loop
21141      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21142      t loop
21143      s/-\n.*//
21144    ' >$as_me.lineno &&
21145  chmod +x "$as_me.lineno" ||
21146    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21147   { (exit 1); exit 1; }; }
21148
21149  # Don't try to exec as it changes $[0], causing all sort of problems
21150  # (the dirname of $[0] is not the place where we might find the
21151  # original and so on.  Autoconf is especially sensitive to this).
21152  . "./$as_me.lineno"
21153  # Exit status is that of the last command.
21154  exit
21155}
21156
21157
21158if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21159  as_dirname=dirname
21160else
21161  as_dirname=false
21162fi
21163
21164ECHO_C= ECHO_N= ECHO_T=
21165case `echo -n x` in
21166-n*)
21167  case `echo 'x\c'` in
21168  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21169  *)   ECHO_C='\c';;
21170  esac;;
21171*)
21172  ECHO_N='-n';;
21173esac
21174
21175if expr a : '\(a\)' >/dev/null 2>&1 &&
21176   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21177  as_expr=expr
21178else
21179  as_expr=false
21180fi
21181
21182rm -f conf$$ conf$$.exe conf$$.file
21183if test -d conf$$.dir; then
21184  rm -f conf$$.dir/conf$$.file
21185else
21186  rm -f conf$$.dir
21187  mkdir conf$$.dir
21188fi
21189echo >conf$$.file
21190if ln -s conf$$.file conf$$ 2>/dev/null; then
21191  as_ln_s='ln -s'
21192  # ... but there are two gotchas:
21193  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21194  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21195  # In both cases, we have to default to `cp -p'.
21196  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21197    as_ln_s='cp -p'
21198elif ln conf$$.file conf$$ 2>/dev/null; then
21199  as_ln_s=ln
21200else
21201  as_ln_s='cp -p'
21202fi
21203rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21204rmdir conf$$.dir 2>/dev/null
21205
21206if mkdir -p . 2>/dev/null; then
21207  as_mkdir_p=:
21208else
21209  test -d ./-p && rmdir ./-p
21210  as_mkdir_p=false
21211fi
21212
21213if test -x / >/dev/null 2>&1; then
21214  as_test_x='test -x'
21215else
21216  if ls -dL / >/dev/null 2>&1; then
21217    as_ls_L_option=L
21218  else
21219    as_ls_L_option=
21220  fi
21221  as_test_x='
21222    eval sh -c '\''
21223      if test -d "$1"; then
21224        test -d "$1/.";
21225      else
21226	case $1 in
21227        -*)set "./$1";;
21228	esac;
21229	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21230	???[sx]*):;;*)false;;esac;fi
21231    '\'' sh
21232  '
21233fi
21234as_executable_p=$as_test_x
21235
21236# Sed expression to map a string onto a valid CPP name.
21237as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21238
21239# Sed expression to map a string onto a valid variable name.
21240as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21241
21242
21243exec 6>&1
21244
21245# Save the log message, to keep $[0] and so on meaningful, and to
21246# report actual input values of CONFIG_FILES etc. instead of their
21247# values after options handling.
21248ac_log="
21249This file was extended by sqlite $as_me 3.5.7, which was
21250generated by GNU Autoconf 2.61.  Invocation command line was
21251
21252  CONFIG_FILES    = $CONFIG_FILES
21253  CONFIG_HEADERS  = $CONFIG_HEADERS
21254  CONFIG_LINKS    = $CONFIG_LINKS
21255  CONFIG_COMMANDS = $CONFIG_COMMANDS
21256  $ $0 $@
21257
21258on `(hostname || uname -n) 2>/dev/null | sed 1q`
21259"
21260
21261_ACEOF
21262
21263cat >>$CONFIG_STATUS <<_ACEOF
21264# Files that config.status was made for.
21265config_files="$ac_config_files"
21266config_headers="$ac_config_headers"
21267
21268_ACEOF
21269
21270cat >>$CONFIG_STATUS <<\_ACEOF
21271ac_cs_usage="\
21272\`$as_me' instantiates files from templates according to the
21273current configuration.
21274
21275Usage: $0 [OPTIONS] [FILE]...
21276
21277  -h, --help       print this help, then exit
21278  -V, --version    print version number and configuration settings, then exit
21279  -q, --quiet      do not print progress messages
21280  -d, --debug      don't remove temporary files
21281      --recheck    update $as_me by reconfiguring in the same conditions
21282  --file=FILE[:TEMPLATE]
21283		   instantiate the configuration file FILE
21284  --header=FILE[:TEMPLATE]
21285		   instantiate the configuration header FILE
21286
21287Configuration files:
21288$config_files
21289
21290Configuration headers:
21291$config_headers
21292
21293Report bugs to <[email protected]>."
21294
21295_ACEOF
21296cat >>$CONFIG_STATUS <<_ACEOF
21297ac_cs_version="\\
21298sqlite config.status 3.5.7
21299configured by $0, generated by GNU Autoconf 2.61,
21300  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21301
21302Copyright (C) 2006 Free Software Foundation, Inc.
21303This config.status script is free software; the Free Software Foundation
21304gives unlimited permission to copy, distribute and modify it."
21305
21306ac_pwd='$ac_pwd'
21307srcdir='$srcdir'
21308INSTALL='$INSTALL'
21309_ACEOF
21310
21311cat >>$CONFIG_STATUS <<\_ACEOF
21312# If no file are specified by the user, then we need to provide default
21313# value.  By we need to know if files were specified by the user.
21314ac_need_defaults=:
21315while test $# != 0
21316do
21317  case $1 in
21318  --*=*)
21319    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21320    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21321    ac_shift=:
21322    ;;
21323  *)
21324    ac_option=$1
21325    ac_optarg=$2
21326    ac_shift=shift
21327    ;;
21328  esac
21329
21330  case $ac_option in
21331  # Handling of the options.
21332  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21333    ac_cs_recheck=: ;;
21334  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21335    echo "$ac_cs_version"; exit ;;
21336  --debug | --debu | --deb | --de | --d | -d )
21337    debug=: ;;
21338  --file | --fil | --fi | --f )
21339    $ac_shift
21340    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21341    ac_need_defaults=false;;
21342  --header | --heade | --head | --hea )
21343    $ac_shift
21344    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21345    ac_need_defaults=false;;
21346  --he | --h)
21347    # Conflict between --help and --header
21348    { echo "$as_me: error: ambiguous option: $1
21349Try \`$0 --help' for more information." >&2
21350   { (exit 1); exit 1; }; };;
21351  --help | --hel | -h )
21352    echo "$ac_cs_usage"; exit ;;
21353  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21354  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21355    ac_cs_silent=: ;;
21356
21357  # This is an error.
21358  -*) { echo "$as_me: error: unrecognized option: $1
21359Try \`$0 --help' for more information." >&2
21360   { (exit 1); exit 1; }; } ;;
21361
21362  *) ac_config_targets="$ac_config_targets $1"
21363     ac_need_defaults=false ;;
21364
21365  esac
21366  shift
21367done
21368
21369ac_configure_extra_args=
21370
21371if $ac_cs_silent; then
21372  exec 6>/dev/null
21373  ac_configure_extra_args="$ac_configure_extra_args --silent"
21374fi
21375
21376_ACEOF
21377cat >>$CONFIG_STATUS <<_ACEOF
21378if \$ac_cs_recheck; then
21379  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21380  CONFIG_SHELL=$SHELL
21381  export CONFIG_SHELL
21382  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21383fi
21384
21385_ACEOF
21386cat >>$CONFIG_STATUS <<\_ACEOF
21387exec 5>>config.log
21388{
21389  echo
21390  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21391## Running $as_me. ##
21392_ASBOX
21393  echo "$ac_log"
21394} >&5
21395
21396_ACEOF
21397cat >>$CONFIG_STATUS <<_ACEOF
21398_ACEOF
21399
21400cat >>$CONFIG_STATUS <<\_ACEOF
21401
21402# Handling of arguments.
21403for ac_config_target in $ac_config_targets
21404do
21405  case $ac_config_target in
21406    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21407    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21408    "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
21409
21410  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21411echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21412   { (exit 1); exit 1; }; };;
21413  esac
21414done
21415
21416
21417# If the user did not use the arguments to specify the items to instantiate,
21418# then the envvar interface is used.  Set only those that are not.
21419# We use the long form for the default assignment because of an extremely
21420# bizarre bug on SunOS 4.1.3.
21421if $ac_need_defaults; then
21422  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21423  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21424fi
21425
21426# Have a temporary directory for convenience.  Make it in the build tree
21427# simply because there is no reason against having it here, and in addition,
21428# creating and moving files from /tmp can sometimes cause problems.
21429# Hook for its removal unless debugging.
21430# Note that there is a small window in which the directory will not be cleaned:
21431# after its creation but before its name has been assigned to `$tmp'.
21432$debug ||
21433{
21434  tmp=
21435  trap 'exit_status=$?
21436  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21437' 0
21438  trap '{ (exit 1); exit 1; }' 1 2 13 15
21439}
21440# Create a (secure) tmp directory for tmp files.
21441
21442{
21443  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21444  test -n "$tmp" && test -d "$tmp"
21445}  ||
21446{
21447  tmp=./conf$$-$RANDOM
21448  (umask 077 && mkdir "$tmp")
21449} ||
21450{
21451   echo "$me: cannot create a temporary directory in ." >&2
21452   { (exit 1); exit 1; }
21453}
21454
21455#
21456# Set up the sed scripts for CONFIG_FILES section.
21457#
21458
21459# No need to generate the scripts if there are no CONFIG_FILES.
21460# This happens for instance when ./config.status config.h
21461if test -n "$CONFIG_FILES"; then
21462
21463_ACEOF
21464
21465
21466
21467ac_delim='%!_!# '
21468for ac_last_try in false false false false false :; do
21469  cat >conf$$subs.sed <<_ACEOF
21470SHELL!$SHELL$ac_delim
21471PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21472PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21473PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21474PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21475PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21476PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21477exec_prefix!$exec_prefix$ac_delim
21478prefix!$prefix$ac_delim
21479program_transform_name!$program_transform_name$ac_delim
21480bindir!$bindir$ac_delim
21481sbindir!$sbindir$ac_delim
21482libexecdir!$libexecdir$ac_delim
21483datarootdir!$datarootdir$ac_delim
21484datadir!$datadir$ac_delim
21485sysconfdir!$sysconfdir$ac_delim
21486sharedstatedir!$sharedstatedir$ac_delim
21487localstatedir!$localstatedir$ac_delim
21488includedir!$includedir$ac_delim
21489oldincludedir!$oldincludedir$ac_delim
21490docdir!$docdir$ac_delim
21491infodir!$infodir$ac_delim
21492htmldir!$htmldir$ac_delim
21493dvidir!$dvidir$ac_delim
21494pdfdir!$pdfdir$ac_delim
21495psdir!$psdir$ac_delim
21496libdir!$libdir$ac_delim
21497localedir!$localedir$ac_delim
21498mandir!$mandir$ac_delim
21499DEFS!$DEFS$ac_delim
21500ECHO_C!$ECHO_C$ac_delim
21501ECHO_N!$ECHO_N$ac_delim
21502ECHO_T!$ECHO_T$ac_delim
21503LIBS!$LIBS$ac_delim
21504build_alias!$build_alias$ac_delim
21505host_alias!$host_alias$ac_delim
21506target_alias!$target_alias$ac_delim
21507build!$build$ac_delim
21508build_cpu!$build_cpu$ac_delim
21509build_vendor!$build_vendor$ac_delim
21510build_os!$build_os$ac_delim
21511host!$host$ac_delim
21512host_cpu!$host_cpu$ac_delim
21513host_vendor!$host_vendor$ac_delim
21514host_os!$host_os$ac_delim
21515CC!$CC$ac_delim
21516CFLAGS!$CFLAGS$ac_delim
21517LDFLAGS!$LDFLAGS$ac_delim
21518CPPFLAGS!$CPPFLAGS$ac_delim
21519ac_ct_CC!$ac_ct_CC$ac_delim
21520EXEEXT!$EXEEXT$ac_delim
21521OBJEXT!$OBJEXT$ac_delim
21522GREP!$GREP$ac_delim
21523EGREP!$EGREP$ac_delim
21524LN_S!$LN_S$ac_delim
21525ECHO!$ECHO$ac_delim
21526AR!$AR$ac_delim
21527RANLIB!$RANLIB$ac_delim
21528STRIP!$STRIP$ac_delim
21529CPP!$CPP$ac_delim
21530CXX!$CXX$ac_delim
21531CXXFLAGS!$CXXFLAGS$ac_delim
21532ac_ct_CXX!$ac_ct_CXX$ac_delim
21533CXXCPP!$CXXCPP$ac_delim
21534F77!$F77$ac_delim
21535FFLAGS!$FFLAGS$ac_delim
21536ac_ct_F77!$ac_ct_F77$ac_delim
21537LIBTOOL!$LIBTOOL$ac_delim
21538INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21539INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21540INSTALL_DATA!$INSTALL_DATA$ac_delim
21541AWK!$AWK$ac_delim
21542TCLSH_CMD!$TCLSH_CMD$ac_delim
21543program_prefix!$program_prefix$ac_delim
21544VERSION!$VERSION$ac_delim
21545RELEASE!$RELEASE$ac_delim
21546VERSION_NUMBER!$VERSION_NUMBER$ac_delim
21547BUILD_CC!$BUILD_CC$ac_delim
21548SQLITE_THREADSAFE!$SQLITE_THREADSAFE$ac_delim
21549XTHREADCONNECT!$XTHREADCONNECT$ac_delim
21550THREADSOVERRIDELOCKS!$THREADSOVERRIDELOCKS$ac_delim
21551ALLOWRELEASE!$ALLOWRELEASE$ac_delim
21552TEMP_STORE!$TEMP_STORE$ac_delim
21553BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21554OS_UNIX!$OS_UNIX$ac_delim
21555OS_WIN!$OS_WIN$ac_delim
21556OS_OS2!$OS_OS2$ac_delim
21557TARGET_EXEEXT!$TARGET_EXEEXT$ac_delim
21558TCL_VERSION!$TCL_VERSION$ac_delim
21559TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim
21560TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim
21561TCL_LIBS!$TCL_LIBS$ac_delim
21562TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
21563TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
21564TCL_LIB_FLAG!$TCL_LIB_FLAG$ac_delim
21565TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
21566TCL_STUB_LIB_FILE!$TCL_STUB_LIB_FILE$ac_delim
21567_ACEOF
21568
21569  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21570    break
21571  elif $ac_last_try; then
21572    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21573echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21574   { (exit 1); exit 1; }; }
21575  else
21576    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21577  fi
21578done
21579
21580ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21581if test -n "$ac_eof"; then
21582  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21583  ac_eof=`expr $ac_eof + 1`
21584fi
21585
21586cat >>$CONFIG_STATUS <<_ACEOF
21587cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21588/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21589_ACEOF
21590sed '
21591s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21592s/^/s,@/; s/!/@,|#_!!_#|/
21593:n
21594t n
21595s/'"$ac_delim"'$/,g/; t
21596s/$/\\/; p
21597N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21598' >>$CONFIG_STATUS <conf$$subs.sed
21599rm -f conf$$subs.sed
21600cat >>$CONFIG_STATUS <<_ACEOF
21601CEOF$ac_eof
21602_ACEOF
21603
21604
21605ac_delim='%!_!# '
21606for ac_last_try in false false false false false :; do
21607  cat >conf$$subs.sed <<_ACEOF
21608TCL_STUB_LIB_FLAG!$TCL_STUB_LIB_FLAG$ac_delim
21609TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim
21610HAVE_TCL!$HAVE_TCL$ac_delim
21611TARGET_READLINE_LIBS!$TARGET_READLINE_LIBS$ac_delim
21612TARGET_READLINE_INC!$TARGET_READLINE_INC$ac_delim
21613TARGET_HAVE_READLINE!$TARGET_HAVE_READLINE$ac_delim
21614TARGET_DEBUG!$TARGET_DEBUG$ac_delim
21615USE_AMALGAMATION!$USE_AMALGAMATION$ac_delim
21616LOADEXTENSION_FLAGS!$LOADEXTENSION_FLAGS$ac_delim
21617USE_GCOV!$USE_GCOV$ac_delim
21618BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
21619LIBOBJS!$LIBOBJS$ac_delim
21620LTLIBOBJS!$LTLIBOBJS$ac_delim
21621_ACEOF
21622
21623  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then
21624    break
21625  elif $ac_last_try; then
21626    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21627echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21628   { (exit 1); exit 1; }; }
21629  else
21630    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21631  fi
21632done
21633
21634ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21635if test -n "$ac_eof"; then
21636  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21637  ac_eof=`expr $ac_eof + 1`
21638fi
21639
21640cat >>$CONFIG_STATUS <<_ACEOF
21641cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21642/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21643_ACEOF
21644sed '
21645s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21646s/^/s,@/; s/!/@,|#_!!_#|/
21647:n
21648t n
21649s/'"$ac_delim"'$/,g/; t
21650s/$/\\/; p
21651N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21652' >>$CONFIG_STATUS <conf$$subs.sed
21653rm -f conf$$subs.sed
21654cat >>$CONFIG_STATUS <<_ACEOF
21655:end
21656s/|#_!!_#|//g
21657CEOF$ac_eof
21658_ACEOF
21659
21660
21661# VPATH may cause trouble with some makes, so we remove $(srcdir),
21662# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21663# trailing colons and then remove the whole line if VPATH becomes empty
21664# (actually we leave an empty line to preserve line numbers).
21665if test "x$srcdir" = x.; then
21666  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
21667s/:*\$(srcdir):*/:/
21668s/:*\${srcdir}:*/:/
21669s/:*@srcdir@:*/:/
21670s/^\([^=]*=[	 ]*\):*/\1/
21671s/:*$//
21672s/^[^=]*=[	 ]*$//
21673}'
21674fi
21675
21676cat >>$CONFIG_STATUS <<\_ACEOF
21677fi # test -n "$CONFIG_FILES"
21678
21679
21680for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
21681do
21682  case $ac_tag in
21683  :[FHLC]) ac_mode=$ac_tag; continue;;
21684  esac
21685  case $ac_mode$ac_tag in
21686  :[FHL]*:*);;
21687  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21688echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21689   { (exit 1); exit 1; }; };;
21690  :[FH]-) ac_tag=-:-;;
21691  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21692  esac
21693  ac_save_IFS=$IFS
21694  IFS=:
21695  set x $ac_tag
21696  IFS=$ac_save_IFS
21697  shift
21698  ac_file=$1
21699  shift
21700
21701  case $ac_mode in
21702  :L) ac_source=$1;;
21703  :[FH])
21704    ac_file_inputs=
21705    for ac_f
21706    do
21707      case $ac_f in
21708      -) ac_f="$tmp/stdin";;
21709      *) # Look for the file first in the build tree, then in the source tree
21710	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21711	 # because $ac_f cannot contain `:'.
21712	 test -f "$ac_f" ||
21713	   case $ac_f in
21714	   [\\/$]*) false;;
21715	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21716	   esac ||
21717	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21718echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21719   { (exit 1); exit 1; }; };;
21720      esac
21721      ac_file_inputs="$ac_file_inputs $ac_f"
21722    done
21723
21724    # Let's still pretend it is `configure' which instantiates (i.e., don't
21725    # use $as_me), people would be surprised to read:
21726    #    /* config.h.  Generated by config.status.  */
21727    configure_input="Generated from "`IFS=:
21728	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21729    if test x"$ac_file" != x-; then
21730      configure_input="$ac_file.  $configure_input"
21731      { echo "$as_me:$LINENO: creating $ac_file" >&5
21732echo "$as_me: creating $ac_file" >&6;}
21733    fi
21734
21735    case $ac_tag in
21736    *:-:* | *:-) cat >"$tmp/stdin";;
21737    esac
21738    ;;
21739  esac
21740
21741  ac_dir=`$as_dirname -- "$ac_file" ||
21742$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21743	 X"$ac_file" : 'X\(//\)[^/]' \| \
21744	 X"$ac_file" : 'X\(//\)$' \| \
21745	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21746echo X"$ac_file" |
21747    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21748	    s//\1/
21749	    q
21750	  }
21751	  /^X\(\/\/\)[^/].*/{
21752	    s//\1/
21753	    q
21754	  }
21755	  /^X\(\/\/\)$/{
21756	    s//\1/
21757	    q
21758	  }
21759	  /^X\(\/\).*/{
21760	    s//\1/
21761	    q
21762	  }
21763	  s/.*/./; q'`
21764  { as_dir="$ac_dir"
21765  case $as_dir in #(
21766  -*) as_dir=./$as_dir;;
21767  esac
21768  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21769    as_dirs=
21770    while :; do
21771      case $as_dir in #(
21772      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21773      *) as_qdir=$as_dir;;
21774      esac
21775      as_dirs="'$as_qdir' $as_dirs"
21776      as_dir=`$as_dirname -- "$as_dir" ||
21777$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21778	 X"$as_dir" : 'X\(//\)[^/]' \| \
21779	 X"$as_dir" : 'X\(//\)$' \| \
21780	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21781echo X"$as_dir" |
21782    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21783	    s//\1/
21784	    q
21785	  }
21786	  /^X\(\/\/\)[^/].*/{
21787	    s//\1/
21788	    q
21789	  }
21790	  /^X\(\/\/\)$/{
21791	    s//\1/
21792	    q
21793	  }
21794	  /^X\(\/\).*/{
21795	    s//\1/
21796	    q
21797	  }
21798	  s/.*/./; q'`
21799      test -d "$as_dir" && break
21800    done
21801    test -z "$as_dirs" || eval "mkdir $as_dirs"
21802  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21803echo "$as_me: error: cannot create directory $as_dir" >&2;}
21804   { (exit 1); exit 1; }; }; }
21805  ac_builddir=.
21806
21807case "$ac_dir" in
21808.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21809*)
21810  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21811  # A ".." for each directory in $ac_dir_suffix.
21812  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21813  case $ac_top_builddir_sub in
21814  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21815  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21816  esac ;;
21817esac
21818ac_abs_top_builddir=$ac_pwd
21819ac_abs_builddir=$ac_pwd$ac_dir_suffix
21820# for backward compatibility:
21821ac_top_builddir=$ac_top_build_prefix
21822
21823case $srcdir in
21824  .)  # We are building in place.
21825    ac_srcdir=.
21826    ac_top_srcdir=$ac_top_builddir_sub
21827    ac_abs_top_srcdir=$ac_pwd ;;
21828  [\\/]* | ?:[\\/]* )  # Absolute name.
21829    ac_srcdir=$srcdir$ac_dir_suffix;
21830    ac_top_srcdir=$srcdir
21831    ac_abs_top_srcdir=$srcdir ;;
21832  *) # Relative name.
21833    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21834    ac_top_srcdir=$ac_top_build_prefix$srcdir
21835    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21836esac
21837ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21838
21839
21840  case $ac_mode in
21841  :F)
21842  #
21843  # CONFIG_FILE
21844  #
21845
21846  case $INSTALL in
21847  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21848  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21849  esac
21850_ACEOF
21851
21852cat >>$CONFIG_STATUS <<\_ACEOF
21853# If the template does not know about datarootdir, expand it.
21854# FIXME: This hack should be removed a few years after 2.60.
21855ac_datarootdir_hack=; ac_datarootdir_seen=
21856
21857case `sed -n '/datarootdir/ {
21858  p
21859  q
21860}
21861/@datadir@/p
21862/@docdir@/p
21863/@infodir@/p
21864/@localedir@/p
21865/@mandir@/p
21866' $ac_file_inputs` in
21867*datarootdir*) ac_datarootdir_seen=yes;;
21868*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21869  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21870echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21871_ACEOF
21872cat >>$CONFIG_STATUS <<_ACEOF
21873  ac_datarootdir_hack='
21874  s&@datadir@&$datadir&g
21875  s&@docdir@&$docdir&g
21876  s&@infodir@&$infodir&g
21877  s&@localedir@&$localedir&g
21878  s&@mandir@&$mandir&g
21879    s&\\\${datarootdir}&$datarootdir&g' ;;
21880esac
21881_ACEOF
21882
21883# Neutralize VPATH when `$srcdir' = `.'.
21884# Shell code in configure.ac might set extrasub.
21885# FIXME: do we really want to maintain this feature?
21886cat >>$CONFIG_STATUS <<_ACEOF
21887  sed "$ac_vpsub
21888$extrasub
21889_ACEOF
21890cat >>$CONFIG_STATUS <<\_ACEOF
21891:t
21892/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21893s&@configure_input@&$configure_input&;t t
21894s&@top_builddir@&$ac_top_builddir_sub&;t t
21895s&@srcdir@&$ac_srcdir&;t t
21896s&@abs_srcdir@&$ac_abs_srcdir&;t t
21897s&@top_srcdir@&$ac_top_srcdir&;t t
21898s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21899s&@builddir@&$ac_builddir&;t t
21900s&@abs_builddir@&$ac_abs_builddir&;t t
21901s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21902s&@INSTALL@&$ac_INSTALL&;t t
21903$ac_datarootdir_hack
21904" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21905
21906test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21907  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21908  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21909  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21910which seems to be undefined.  Please make sure it is defined." >&5
21911echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21912which seems to be undefined.  Please make sure it is defined." >&2;}
21913
21914  rm -f "$tmp/stdin"
21915  case $ac_file in
21916  -) cat "$tmp/out"; rm -f "$tmp/out";;
21917  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21918  esac
21919 ;;
21920  :H)
21921  #
21922  # CONFIG_HEADER
21923  #
21924_ACEOF
21925
21926# Transform confdefs.h into a sed script `conftest.defines', that
21927# substitutes the proper values into config.h.in to produce config.h.
21928rm -f conftest.defines conftest.tail
21929# First, append a space to every undef/define line, to ease matching.
21930echo 's/$/ /' >conftest.defines
21931# Then, protect against being on the right side of a sed subst, or in
21932# an unquoted here document, in config.status.  If some macros were
21933# called several times there might be several #defines for the same
21934# symbol, which is useless.  But do not sort them, since the last
21935# AC_DEFINE must be honored.
21936ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21937# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21938# NAME is the cpp macro being defined, VALUE is the value it is being given.
21939# PARAMS is the parameter list in the macro definition--in most cases, it's
21940# just an empty string.
21941ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
21942ac_dB='\\)[	 (].*,\\1define\\2'
21943ac_dC=' '
21944ac_dD=' ,'
21945
21946uniq confdefs.h |
21947  sed -n '
21948	t rset
21949	:rset
21950	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
21951	t ok
21952	d
21953	:ok
21954	s/[\\&,]/\\&/g
21955	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21956	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21957  ' >>conftest.defines
21958
21959# Remove the space that was appended to ease matching.
21960# Then replace #undef with comments.  This is necessary, for
21961# example, in the case of _POSIX_SOURCE, which is predefined and required
21962# on some systems where configure will not decide to define it.
21963# (The regexp can be short, since the line contains either #define or #undef.)
21964echo 's/ $//
21965s,^[	 #]*u.*,/* & */,' >>conftest.defines
21966
21967# Break up conftest.defines:
21968ac_max_sed_lines=50
21969
21970# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21971# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21972# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21973# et cetera.
21974ac_in='$ac_file_inputs'
21975ac_out='"$tmp/out1"'
21976ac_nxt='"$tmp/out2"'
21977
21978while :
21979do
21980  # Write a here document:
21981    cat >>$CONFIG_STATUS <<_ACEOF
21982    # First, check the format of the line:
21983    cat >"\$tmp/defines.sed" <<\\CEOF
21984/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
21985/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
21986b
21987:def
21988_ACEOF
21989  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21990  echo 'CEOF
21991    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21992  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21993  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21994  grep . conftest.tail >/dev/null || break
21995  rm -f conftest.defines
21996  mv conftest.tail conftest.defines
21997done
21998rm -f conftest.defines conftest.tail
21999
22000echo "ac_result=$ac_in" >>$CONFIG_STATUS
22001cat >>$CONFIG_STATUS <<\_ACEOF
22002  if test x"$ac_file" != x-; then
22003    echo "/* $configure_input  */" >"$tmp/config.h"
22004    cat "$ac_result" >>"$tmp/config.h"
22005    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22006      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22007echo "$as_me: $ac_file is unchanged" >&6;}
22008    else
22009      rm -f $ac_file
22010      mv "$tmp/config.h" $ac_file
22011    fi
22012  else
22013    echo "/* $configure_input  */"
22014    cat "$ac_result"
22015  fi
22016  rm -f "$tmp/out12"
22017 ;;
22018
22019
22020  esac
22021
22022done # for ac_tag
22023
22024
22025{ (exit 0); exit 0; }
22026_ACEOF
22027chmod +x $CONFIG_STATUS
22028ac_clean_files=$ac_clean_files_save
22029
22030
22031# configure is writing to config.log, and then calls config.status.
22032# config.status does its own redirection, appending to config.log.
22033# Unfortunately, on DOS this fails, as config.log is still kept open
22034# by configure, so config.status won't be able to write to it; its
22035# output is simply discarded.  So we exec the FD to /dev/null,
22036# effectively closing config.log, so it can be properly (re)opened and
22037# appended to by config.status.  When coming back to configure, we
22038# need to make the FD available again.
22039if test "$no_create" != yes; then
22040  ac_cs_success=:
22041  ac_config_status_args=
22042  test "$silent" = yes &&
22043    ac_config_status_args="$ac_config_status_args --quiet"
22044  exec 5>/dev/null
22045  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22046  exec 5>>config.log
22047  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22048  # would make configure fail if this is the last instruction.
22049  $ac_cs_success || { (exit 1); exit 1; }
22050fi
22051
22052